@tryghost/koenig-lexical 1.13.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @tryghost/koenig-lexical
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Removed the UMD/CommonJS build; the package is now ESM-only. `main` and the package's `.` export point at `dist/koenig-lexical.js`, and `dist/koenig-lexical.umd.js` is no longer published. Import the editor as an ES module and its styles from `@tryghost/koenig-lexical/style.css`.
8
+
9
+ ### Minor Changes
10
+
11
+ - Added alt text support for the product card image: a productImageAlt property on the product node, rendered as the image's alt attribute on web and email, parsed from HTML on import, and editable from an Alt toggle on the card in the editor
12
+
13
+ - Added `SelectionWordCountPlugin`, which reports the word count of the current selection, including selections inside nested editors such as captions, or `null` while nothing is selected, so an editor can show "X of Y words"
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ - Updated dependencies
20
+
21
+ - Removed the emoji picker's custom element registry fallback for duplicate editor bundles
22
+
23
+ - Updated dependencies
24
+
25
+ - Fixed the image card offering editing and width options for GIFs whose URL has a query string, fragment or uppercase extension
26
+
27
+ - Updated dependencies
28
+
29
+ - Updated dependencies
30
+
31
+ - Removed the drag auto-scroll fallback to a legacy Admin editor container
32
+
33
+ - Updated dependencies
34
+
35
+ - Updated dependencies
36
+
3
37
  ## 1.13.1
4
38
 
5
39
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Ghost editor, based on the Lexical framework.
4
4
 
5
+ The package is published as an ES module only. Consuming apps import the editor
6
+ from `@tryghost/koenig-lexical` and its stylesheet from
7
+ `@tryghost/koenig-lexical/style.css`.
8
+
5
9
  ## Development
6
10
 
7
11
  The editor can be run in two modes:
@@ -61,7 +65,7 @@ All styles are scoped under `.koenig-lexical` class to avoid clashes and keep st
61
65
  - Styles located in `src/styles/` are included in the final built module.
62
66
  - Styles located in `demo/*.css` are only used in the demo and will not be included in the built module.
63
67
 
64
- When packaging the module, styles are included inside the JS file rather than being separate to allow for a single import of the module in the consuming app.
68
+ When packaging the module, styles are built into a separate `dist/style.css`, which consuming apps import alongside the module.
65
69
 
66
70
  **Content fonts**
67
71