@tryghost/koenig-lexical 1.13.1 → 2.1.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 +40 -0
- package/README.md +5 -1
- package/dist/koenig-lexical.js +13204 -12717
- package/dist/koenig-lexical.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -7
- package/dist/koenig-lexical.umd.js +0 -1836
- package/dist/koenig-lexical.umd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @tryghost/koenig-lexical
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added picking a video card's custom thumbnail from the video's own frames, and made the editor's modal (also used by the Markdown help) work from the keyboard
|
|
8
|
+
|
|
9
|
+
## 2.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 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`.
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 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
|
|
18
|
+
|
|
19
|
+
- 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"
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
27
|
+
- Removed the emoji picker's custom element registry fallback for duplicate editor bundles
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
31
|
+
- Fixed the image card offering editing and width options for GIFs whose URL has a query string, fragment or uppercase extension
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
|
|
37
|
+
- Removed the drag auto-scroll fallback to a legacy Admin editor container
|
|
38
|
+
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 1.13.1
|
|
4
44
|
|
|
5
45
|
### 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
|
|
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
|
|