Commit Graph

1994 Commits

Author SHA1 Message Date
Daniel Lockyer
5f311946b5 v5.5.0 2022-07-26 08:23:55 +01:00
Daniel Lockyer
69cc21992d Merged v5.4.1 into main
v5.4.1
2022-07-19 16:00:35 +02:00
Daniel Lockyer
2d405513b3 v5.4.1 2022-07-19 14:57:42 +01:00
Kevin Ansfield
896cd4888f Switched to dynamically loaded external react-mobiledoc-editor package
no issue

- dropped the bundled `react-mobiledoc-editor` package
- updated `<ReactMobiledocEditor>` component to pull in editor components dynamically
  - added a resource function to dynamically import the external module
  - added `Container` and `Editor` components that read from the resource function and wrap components of the same name from the external module
  - added `<Suspense>` around the `Container` and `Editor` components so that React will show a loading state whilst the external components are still being fetched
  - added `<ErrorHandler>` so we can show an error state if loading fails
2022-07-19 12:48:53 +01:00
Kevin Ansfield
d991da399c Added support for building/rendering react components
no issue

- updated ember-cli-build and eslint config to support jsx
- added `react` and `react-dom` libraries
  - included them in the build so the `React` and `ReactDom` globals are available for use by third party components
  - added vendor shims so we can do things like `import * from 'react'` where the imports are referenced directly to the already imported modules
- added `<ReactComponent>` component
  - designed to be extended from in specific react component classes
  - renders a div and calls `renderComponent()` action once inserted - this should be replaced in any extended classes in order to render a react component
  - handles react rendering and teardown
- added `<ReactMobiledocEditor>` react component that renders an editor composed of components provided by the `react-mobiledoc-editor` package
- added `<KoenigReactEditor>` ember component that renders `<ReactMobiledocEditor>` and handles pass-through of Ember arguments and handling of actions
- updated `<GhKoenigEditorReact>` to render `<KoenigReactEditor>` in place of `<KoenigEditor>`
2022-07-19 12:48:53 +01:00
Daniel Lockyer
40240d6b7a v5.4.0 2022-07-15 16:00:33 +01:00
Daniel Lockyer
3f380e266d v5.3.1 2022-07-13 12:55:34 +01:00
Daniel Lockyer
3c63a01eec v5.3.0 2022-07-12 16:24:01 +01:00
Daniel Lockyer
a7c34b7a7e Merged v5.2.4 into main
v5.2.4
2022-07-05 10:52:15 +02:00
Daniel Lockyer
862ace7945 v5.2.4 2022-07-05 09:50:40 +01:00
renovate[bot]
a99f836b83 Update dependency miragejs to v0.1.45 (#2379)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-07-01 13:00:39 +01:00
Daniel Lockyer
cc570d23b0 v5.2.3 2022-06-15 03:59:46 +01:00
Daniel Lockyer
9551e57a00 v5.2.2 2022-06-03 17:50:37 +01:00
Daniel Lockyer
802cf2457f v5.2.1 2022-06-02 12:34:53 +01:00
Daniel Lockyer
facf16becc v5.2.0 2022-06-01 16:28:51 +01:00
Daniel Lockyer
3d0e4c9380 v5.1.1 2022-05-30 13:54:28 +01:00
Daniel Lockyer
f9736d2437 v5.1.0 2022-05-27 16:10:19 +01:00
Hannah Wolfe
8ac5bb5b48 🐛 Fixed word count for RTL languages
closes: https://github.com/TryGhost/Ghost/issues/14365
closes: https://github.com/TryGhost/SDK/issues/366
closes: https://github.com/TryGhost/SDK/issues/389
refs: https://github.com/TryGhost/SDK/pull/431

- our word count helper has been updated to handle RTL languages

Co-authored-by: Emmanuel-Melon <emmanuelgatwech@gmail.com>
2022-05-27 13:58:48 +01:00
Matt Hanley
a8acd63aff Merged v5.0.2 into main
v5.0.2
2022-05-26 15:23:32 +01:00
Daniel Lockyer
bcde7970fb v5.0.2 2022-05-26 15:17:24 +01:00
Kevin Ansfield
aaef8f7d44 Deleted unused <GhProfileImage> component
no issue

- the component became unused when the staff user page design was updated but was never cleaned up
2022-05-26 10:42:10 +01:00
Renovate Bot
f4f519ed90 Update dependency grunt to v1.5.3 [SECURITY] 2022-05-25 22:23:31 +00:00
renovate[bot]
0c07e26cc4 Update babel monorepo to v7.18.2 (#2406)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 11:24:38 +01:00
Kevin Ansfield
5544389b80 Fixed "The routes only function has been deprecated" output in test runs
no issue

`ember-cli-mirage` replaced the use of a default function export with a `createServer` function that applies config and deprecated the older mirage config export style. It will also soon drop support of the separate `testConfig` export we used for defining our test routes.

- switched to the newer `return createServer(config);` server configuration approach
- extracted dev and test routes into separate files for a cleaner base config
2022-05-25 11:03:05 +01:00
renovate[bot]
8115a4b6d2 Update dependency @tryghost/timezone-data to v0.2.68 (#2369)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 10:14:05 +01:00
renovate[bot]
db09ec7b01 Update dependency glob to v8.0.3 (#2383)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:48:24 +01:00
renovate[bot]
e915ca6892 Update dependency @tryghost/color-utils to v0.1.17 (#2385)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:48:11 +01:00
renovate[bot]
7125f2cddd Update dependency @tryghost/helpers to v1.1.69 (#2386)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:47:58 +01:00
renovate[bot]
c3a48193c6 Update dependency @ember/test-helpers to v2.8.1 (#2399)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:47:43 +01:00
renovate[bot]
d3ee4fd4c8 Update dependency @tryghost/members-csv to v1.2.16 (#2393)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:47:29 +01:00
renovate[bot]
c3acdb6c0d Update dependency @tryghost/string to v0.1.26 (#2394)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:47:15 +01:00
renovate[bot]
4d7526bcbd Update babel monorepo to v7.17.12 (#2395)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:47:00 +01:00
renovate[bot]
7c320cd707 Update dependency testem to v3.7.0 (#2400)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:45:55 +01:00
renovate[bot]
4c421a5ab3 Update dependency ember-auto-import to v1.12.2 (#2404)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-25 08:45:41 +01:00
Daniel Lockyer
15b06fce2a v5.0.1 2022-05-24 18:21:40 +01:00
Daniel Lockyer
a559f4c686 v5.0.0 2022-05-23 13:20:52 +01:00
renovate[bot]
bd2485c8da Update dependency glob to v8.0.2 (#2378)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:21:11 +01:00
renovate[bot]
d5eccaf715 Update dependency @tryghost/string to v0.1.25 (#2368)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:20:47 +01:00
renovate[bot]
bd3faf3aba Update dependency @tryghost/helpers to v1.1.67 (#2367)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:20:28 +01:00
renovate[bot]
5e6e4cb695 Update dependency @tryghost/color-utils to v0.1.16 (#2366)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:20:05 +01:00
renovate[bot]
413ae1c1e2 Update dependency ember-tooltips to v3.5.2 (#2361)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:19:48 +01:00
renovate[bot]
059854c73b Update dependency @tryghost/members-csv to v1.2.14 (#2358)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-13 09:19:35 +01:00
Simon Backx
2d4bbad094 Implemented newsletter limits
refs https://github.com/TryGhost/Team/issues/1583

- When adding a newsletter, check the limits (both via button and route)
- When unarchiving a newsletter, check the limits
- Bumped `@tryghost/limit-service` package, required to make limit checking work for newsletter
- Added the `getNewslettersCount` query to the `limit` service
2022-05-11 12:10:26 +02:00
Daniel Lockyer
d0ce852ded v4.46.0 2022-04-28 15:29:17 +01:00
renovate[bot]
8a3a937c37 Update dependency grunt-shell to v4 (#2311)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-25 10:11:25 +01:00
renovate[bot]
69fb818a94 Update dependency @tryghost/nql-lang to v0.3.2 (#2347)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-25 10:09:32 +01:00
renovate[bot]
07b1afc136 Update dependency @tryghost/nql to v0.9.2 (#2346)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-25 09:52:21 +01:00
Daniel Lockyer
a9c4b98049 v4.45.0 2022-04-22 16:00:32 +01:00
Daniel Lockyer
6341b00389 Dropped support for Node 12
refs https://github.com/TryGhost/Toolbox/issues/267

- Node 12 is EOL as of April 30th so we're going to be dropping support
  for it in Ghost too
- the only change in Admin is to update the Node engines range
2022-04-19 15:51:02 +01:00
renovate[bot]
788339124b Update dependency @tryghost/helpers to v1.1.64 (#2340)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-18 10:28:13 +01:00