@contentful/field-editor-rich-text 2.0.0-next.42 → 2.0.0-next.45
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 +114 -0
- package/README.md +22 -4
- package/dist/field-editor-rich-text.cjs.development.js +194 -420
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +199 -425
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/environment.d.ts +1 -1
- package/dist/plugins/shared/FetchingWrappedAssetCard.d.ts +0 -10
- package/dist/plugins/shared/FetchingWrappedEntryCard.d.ts +1 -1
- package/dist/plugins/shared/useFetchedEntity.d.ts +8 -0
- package/dist/prepareDocument.d.ts +1 -1
- package/dist/test-utils/jsx.d.ts +1 -1
- package/package.json +8 -7
- package/dist/plugins/shared/EntityStatusIcon.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,120 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.1.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.15...@contentful/field-editor-rich-text@1.1.16) (2022-06-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
9
|
+
|
|
10
|
+
## [1.1.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.14...@contentful/field-editor-rich-text@1.1.15) (2022-05-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
13
|
+
|
|
14
|
+
## [1.1.14](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.13...@contentful/field-editor-rich-text@1.1.14) (2022-05-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
17
|
+
|
|
18
|
+
## [1.1.13](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.12...@contentful/field-editor-rich-text@1.1.13) (2022-05-06)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
21
|
+
|
|
22
|
+
## [1.1.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.11...@contentful/field-editor-rich-text@1.1.12) (2022-05-04)
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- reflect disabled state on fields ([#1125](https://github.com/contentful/field-editors/issues/1125)) ([01502b9](https://github.com/contentful/field-editors/commit/01502b9d785c5f782b0e5de782d092c439cb690f))
|
|
27
|
+
|
|
28
|
+
## [1.1.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.10...@contentful/field-editor-rich-text@1.1.11) (2022-05-03)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
31
|
+
|
|
32
|
+
## [1.1.10](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.9...@contentful/field-editor-rich-text@1.1.10) (2022-04-29)
|
|
33
|
+
|
|
34
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
35
|
+
|
|
36
|
+
## [1.1.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.8...@contentful/field-editor-rich-text@1.1.9) (2022-04-28)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
39
|
+
|
|
40
|
+
## [1.1.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.7...@contentful/field-editor-rich-text@1.1.8) (2022-04-28)
|
|
41
|
+
|
|
42
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
43
|
+
|
|
44
|
+
## [1.1.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.6...@contentful/field-editor-rich-text@1.1.7) (2022-04-19)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
47
|
+
|
|
48
|
+
## [1.1.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.5...@contentful/field-editor-rich-text@1.1.6) (2022-03-31)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
51
|
+
|
|
52
|
+
## [1.1.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.4...@contentful/field-editor-rich-text@1.1.5) (2022-03-29)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
55
|
+
|
|
56
|
+
## [1.1.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.3...@contentful/field-editor-rich-text@1.1.4) (2022-03-02)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
59
|
+
|
|
60
|
+
## [1.1.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.2...@contentful/field-editor-rich-text@1.1.3) (2022-02-15)
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
- bump f36 packages ([#1025](https://github.com/contentful/field-editors/issues/1025)) ([ec37a40](https://github.com/contentful/field-editors/commit/ec37a4000db7cd75c66dd9621136b2272c9feeea))
|
|
65
|
+
|
|
66
|
+
## [1.1.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.1...@contentful/field-editor-rich-text@1.1.2) (2022-02-14)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
69
|
+
|
|
70
|
+
## [1.1.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.1.0...@contentful/field-editor-rich-text@1.1.1) (2022-01-20)
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
- remove empty text hyperlinks ([#997](https://github.com/contentful/field-editors/issues/997)) ([d998132](https://github.com/contentful/field-editors/commit/d998132fbe948a98f6e800211a794bdd1e292233))
|
|
75
|
+
|
|
76
|
+
# [1.1.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.8...@contentful/field-editor-rich-text@1.1.0) (2022-01-11)
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
- bump f36 packages to stable v4 [BAU-521] ([#988](https://github.com/contentful/field-editors/issues/988)) ([419cf56](https://github.com/contentful/field-editors/commit/419cf56692179b074fcfa2743469d5265ed98429))
|
|
81
|
+
|
|
82
|
+
## [1.0.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.7...@contentful/field-editor-rich-text@1.0.8) (2021-12-23)
|
|
83
|
+
|
|
84
|
+
### Bug Fixes
|
|
85
|
+
|
|
86
|
+
- markdown buttons ([#968](https://github.com/contentful/field-editors/issues/968)) ([9803b98](https://github.com/contentful/field-editors/commit/9803b98c25d92df6148686ffe2749a77f7efdbb9))
|
|
87
|
+
|
|
88
|
+
## [1.0.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.6...@contentful/field-editor-rich-text@1.0.7) (2021-12-22)
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
- cache content types for Hyperlink ([#967](https://github.com/contentful/field-editors/issues/967)) ([07e376d](https://github.com/contentful/field-editors/commit/07e376de5157fa6477f060550aacf96af3ab5e85))
|
|
93
|
+
|
|
94
|
+
## [1.0.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.5...@contentful/field-editor-rich-text@1.0.6) (2021-12-20)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
97
|
+
|
|
98
|
+
## [1.0.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.4...@contentful/field-editor-rich-text@1.0.5) (2021-11-27)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
101
|
+
|
|
102
|
+
## [1.0.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.3...@contentful/field-editor-rich-text@1.0.4) (2021-11-26)
|
|
103
|
+
|
|
104
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
105
|
+
|
|
106
|
+
## [1.0.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.2...@contentful/field-editor-rich-text@1.0.3) (2021-11-17)
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
- **card-actions:** update forma 36 to fix card actions click issue ([#927](https://github.com/contentful/field-editors/issues/927)) ([3dfdef2](https://github.com/contentful/field-editors/commit/3dfdef2c2b0045f12ea94ddafca89a8e9f25e7d0))
|
|
111
|
+
|
|
112
|
+
## [1.0.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.1...@contentful/field-editor-rich-text@1.0.2) (2021-11-08)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
115
|
+
|
|
116
|
+
## [1.0.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@1.0.0...@contentful/field-editor-rich-text@1.0.1) (2021-11-08)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
|
119
|
+
|
|
6
120
|
# [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.20.0...@contentful/field-editor-rich-text@1.0.0) (2021-11-04)
|
|
7
121
|
|
|
8
122
|
**Note:** Version bump only for package @contentful/field-editor-rich-text
|
package/README.md
CHANGED
|
@@ -4,15 +4,33 @@
|
|
|
4
4
|
npm install @contentful/field-editor-rich-text
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
-
This package contains
|
|
8
|
-
|
|
9
|
-
This editor app is built on top of [Slate](https://github.com/ianstormtaylor/slate), a third party framework for building highly customizable rich text editing solutions.
|
|
7
|
+
This package contains a React `RichTextEditor` component that is used as default for `RichText` field type in the Contentful web application.
|
|
10
8
|
|
|
11
9
|
```js
|
|
12
10
|
import 'codemirror/lib/codemirror.css';
|
|
13
11
|
import { RichTextEditor } from '@contentful/field-editor-rich-text';
|
|
14
12
|
```
|
|
15
13
|
|
|
14
|
+
## Migrating to v2
|
|
15
|
+
|
|
16
|
+
To bring support for Rich Text Tables we rewrote most of the internals of this package to adapt the latest version of [Slate][slate]. We are releasing this change as v2.0.0.
|
|
17
|
+
|
|
18
|
+
There are two ways our users typically use the rich-text field editor:
|
|
19
|
+
|
|
20
|
+
### 1. By embedding `@contentful/field-editor-rich-text` npm package
|
|
21
|
+
|
|
22
|
+
Since the public API exposed by the package remains the same, upgrading to v2 should be seamless as it's just a matter of installing the latest version from npm. No migration is needed.
|
|
23
|
+
|
|
24
|
+
### 2. By forking the source code
|
|
25
|
+
|
|
26
|
+
You will need to adapt your fork to work with v2. Here is a highlight of the major changes:
|
|
27
|
+
|
|
28
|
+
1. Using Slate >= v0.80.0. If you're upgrading from < 0.50.x please check the library [migration guide](https://docs.slatejs.org/concepts/xx-migrating)
|
|
29
|
+
2. Using Plate as a plugin system. Plate is a powerful plugin system to make it easy to work with Slate. All of the existing rich text plugins were rewrote to use Plate. To learn more, please check Plate's [website][plate]
|
|
30
|
+
|
|
16
31
|
## Credits
|
|
17
32
|
|
|
18
|
-
This package is based on [Slate]
|
|
33
|
+
This package is based on [Slate][slate] & [Plate][plate] and also borrows some of their code. Without them this project would not have been possible.
|
|
34
|
+
|
|
35
|
+
[slate]: https://www.slatejs.org/
|
|
36
|
+
[plate]: https://plate.udecode.io/
|