@contentful/field-editor-rich-text 1.0.0-alpha.3 → 1.0.3

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +424 -0
  2. package/LICENSE +1 -1
  3. package/README.md +9 -20
  4. package/dist/RichTextEditor.d.ts +14 -24
  5. package/dist/Toolbar/index.d.ts +6 -14
  6. package/dist/dialogs/HypelinkDialog/HyperlinkDialog.d.ts +54 -0
  7. package/dist/dialogs/openRichTextDialog.d.ts +1 -0
  8. package/dist/dialogs/renderRichTextDialog.d.ts +1 -0
  9. package/dist/field-editor-rich-text.cjs.development.js +3513 -1840
  10. package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
  11. package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
  12. package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
  13. package/dist/field-editor-rich-text.esm.js +3515 -1842
  14. package/dist/field-editor-rich-text.esm.js.map +1 -1
  15. package/dist/helpers/getLinkedContentTypeIdsForNodeType.d.ts +1 -1
  16. package/dist/helpers/newEntitySelectorConfigFromRichTextField.d.ts +1 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/plugins/Bold/index.d.ts +4 -4
  19. package/dist/plugins/Code/index.d.ts +4 -4
  20. package/dist/plugins/CommandPalette/CommandMark.d.ts +2 -3
  21. package/dist/plugins/CommandPalette/CommandPalette.d.ts +0 -4
  22. package/dist/plugins/CommandPalette/CommandPaletteService.d.ts +16 -8
  23. package/dist/plugins/CommandPalette/CommandPanel/CommandPanelMenu.d.ts +4 -9
  24. package/dist/plugins/CommandPalette/CommandPanel/InViewport/InViewport.d.ts +37 -0
  25. package/dist/plugins/CommandPalette/CommandPanel/index.d.ts +5 -19
  26. package/dist/plugins/CommandPalette/Util.d.ts +1 -1
  27. package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.d.ts +4 -13
  28. package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.styles.d.ts +3 -0
  29. package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedAssetCard.d.ts +15 -0
  30. package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedEntryCard.d.ts +15 -0
  31. package/dist/plugins/EmbeddedEntityBlock/ToolbarIcon.d.ts +4 -4
  32. package/dist/plugins/EmbeddedEntityBlock/Util.d.ts +2 -2
  33. package/dist/plugins/EmbeddedEntityBlock/index.d.ts +2 -3
  34. package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.d.ts +5 -13
  35. package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.styles.d.ts +4 -0
  36. package/dist/plugins/EmbeddedEntryInline/FetchingWrappedInlineEntryCard.d.ts +14 -0
  37. package/dist/plugins/EmbeddedEntryInline/ToolbarIcon.d.ts +4 -4
  38. package/dist/plugins/EmbeddedEntryInline/Utils.d.ts +1 -1
  39. package/dist/plugins/EmbeddedEntryInline/index.d.ts +2 -3
  40. package/dist/plugins/EntryEmbedDropdown/index.d.ts +3 -4
  41. package/dist/plugins/Heading/HeadingDropdown.d.ts +12 -13
  42. package/dist/plugins/Heading/HeadingDropdownItem.d.ts +57 -0
  43. package/dist/plugins/Heading/Paragraph.d.ts +57 -1
  44. package/dist/plugins/Heading/index.d.ts +336 -6
  45. package/dist/plugins/Hr/index.d.ts +4 -4
  46. package/dist/plugins/Hyperlink/Hyperlink.d.ts +11 -23
  47. package/dist/plugins/Hyperlink/ToolbarIcon.d.ts +3 -4
  48. package/dist/plugins/Hyperlink/Util.d.ts +4 -4
  49. package/dist/plugins/Hyperlink/styles.d.ts +5 -0
  50. package/dist/plugins/Hyperlink/truncate.d.ts +1 -0
  51. package/dist/plugins/Hyperlink/useRequestStatus.d.ts +6 -0
  52. package/dist/plugins/Italic/index.d.ts +4 -4
  53. package/dist/plugins/List/ToolbarDecorator.d.ts +6 -6
  54. package/dist/plugins/List/index.d.ts +8 -8
  55. package/dist/plugins/Quote/index.d.ts +4 -4
  56. package/dist/plugins/Underlined/index.d.ts +4 -4
  57. package/dist/plugins/shared/BlockSelectDecorator.d.ts +6 -6
  58. package/dist/plugins/shared/BlockToggleDecorator.d.ts +6 -6
  59. package/dist/plugins/shared/MarkToggleDecorator.d.ts +6 -6
  60. package/dist/plugins/shared/PluginApi.d.ts +10 -5
  61. package/dist/plugins/shared/ToolbarDropdownListItem.d.ts +3 -4
  62. package/dist/plugins/shared/ToolbarIcon.d.ts +5 -5
  63. package/dist/plugins/shared/Util.d.ts +1 -0
  64. package/package.json +22 -11
  65. package/dist/plugins/Heading/Heading1.d.ts +0 -2
  66. package/dist/plugins/Heading/Heading2.d.ts +0 -2
  67. package/dist/plugins/Heading/Heading3.d.ts +0 -2
  68. package/dist/plugins/Heading/Heading4.d.ts +0 -2
  69. package/dist/plugins/Heading/Heading5.d.ts +0 -2
  70. package/dist/plugins/Heading/Heading6.d.ts +0 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,424 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [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)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **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))
11
+
12
+ ## [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)
13
+
14
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
15
+
16
+ ## [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)
17
+
18
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
19
+
20
+ # [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)
21
+
22
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
23
+
24
+ # [0.20.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.20...@contentful/field-editor-rich-text@0.20.0) (2021-11-04)
25
+
26
+ ### Features
27
+
28
+ - Forma v4 components adoption ([#805](https://github.com/contentful/field-editors/issues/805)) ([526bde6](https://github.com/contentful/field-editors/commit/526bde6e10e0ee3789705ec10fb31489af7ca59e))
29
+
30
+ ### BREAKING CHANGES
31
+
32
+ - adopts a new Forma v4 beta
33
+
34
+ ## [0.19.20](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.19...@contentful/field-editor-rich-text@0.19.20) (2021-11-01)
35
+
36
+ ### Bug Fixes
37
+
38
+ - **rich-text-editor:** specify font-family ([#907](https://github.com/contentful/field-editors/issues/907)) ([33dee3d](https://github.com/contentful/field-editors/commit/33dee3d6dbec66c7538cad2133d41692bd7839ca))
39
+
40
+ ## [0.19.19](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.18...@contentful/field-editor-rich-text@0.19.19) (2021-10-18)
41
+
42
+ ### Bug Fixes
43
+
44
+ - [] Remove test utils from peer dependencies ([#889](https://github.com/contentful/field-editors/issues/889)) ([3694bd7](https://github.com/contentful/field-editors/commit/3694bd7e706b8beb1f685167125f36ef0cbe82de))
45
+
46
+ ## [0.19.18](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.17...@contentful/field-editor-rich-text@0.19.18) (2021-10-14)
47
+
48
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
49
+
50
+ ## [0.19.17](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.16...@contentful/field-editor-rich-text@0.19.17) (2021-10-06)
51
+
52
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
53
+
54
+ ## [0.19.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.15...@contentful/field-editor-rich-text@0.19.16) (2021-10-06)
55
+
56
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
57
+
58
+ ## [0.19.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.14...@contentful/field-editor-rich-text@0.19.15) (2021-09-20)
59
+
60
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
61
+
62
+ ## [0.19.14](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.13...@contentful/field-editor-rich-text@0.19.14) (2021-09-17)
63
+
64
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
65
+
66
+ ## [0.19.13](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.12...@contentful/field-editor-rich-text@0.19.13) (2021-09-17)
67
+
68
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
69
+
70
+ ## [0.19.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.11...@contentful/field-editor-rich-text@0.19.12) (2021-09-16)
71
+
72
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
73
+
74
+ ## [0.19.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.9...@contentful/field-editor-rich-text@0.19.11) (2021-08-24)
75
+
76
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
77
+
78
+ ## [0.19.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.8...@contentful/field-editor-rich-text@0.19.9) (2021-08-19)
79
+
80
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
81
+
82
+ ## [0.19.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.7...@contentful/field-editor-rich-text@0.19.8) (2021-08-06)
83
+
84
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
85
+
86
+ ## [0.19.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.6...@contentful/field-editor-rich-text@0.19.7) (2021-08-04)
87
+
88
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
89
+
90
+ ## [0.19.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.5...@contentful/field-editor-rich-text@0.19.6) (2021-07-30)
91
+
92
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
93
+
94
+ ## [0.19.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.4...@contentful/field-editor-rich-text@0.19.5) (2021-07-29)
95
+
96
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
97
+
98
+ ## [0.19.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.3...@contentful/field-editor-rich-text@0.19.4) (2021-07-28)
99
+
100
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
101
+
102
+ ## [0.19.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.2...@contentful/field-editor-rich-text@0.19.3) (2021-07-28)
103
+
104
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
105
+
106
+ ## [0.19.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.19.0...@contentful/field-editor-rich-text@0.19.2) (2021-07-26)
107
+
108
+ ### Bug Fixes
109
+
110
+ - adjust rich-text version manually ([#781](https://github.com/contentful/field-editors/issues/781)) ([f770e4f](https://github.com/contentful/field-editors/commit/f770e4f731f1ebec0ac64881c8c60015709fa26d))
111
+
112
+ # [0.19.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.16...@contentful/field-editor-rich-text@0.19.0) (2021-07-23)
113
+
114
+ ### Features
115
+
116
+ - 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
117
+
118
+ ## [0.18.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.13...@contentful/field-editor-rich-text@0.18.16) (2021-07-06)
119
+
120
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
121
+
122
+ ## [0.18.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.13...@contentful/field-editor-rich-text@0.18.15) (2021-07-06)
123
+
124
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
125
+
126
+ ## [0.18.14](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.13...@contentful/field-editor-rich-text@0.18.14) (2021-06-23)
127
+
128
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
129
+
130
+ ## [0.18.13](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.12...@contentful/field-editor-rich-text@0.18.13) (2021-06-23)
131
+
132
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
133
+
134
+ ## [0.18.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.11...@contentful/field-editor-rich-text@0.18.12) (2021-06-22)
135
+
136
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
137
+
138
+ ## [0.18.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.10...@contentful/field-editor-rich-text@0.18.11) (2021-05-20)
139
+
140
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
141
+
142
+ ## [0.18.10](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.9...@contentful/field-editor-rich-text@0.18.10) (2021-04-13)
143
+
144
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
145
+
146
+ ## [0.18.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.8...@contentful/field-editor-rich-text@0.18.9) (2021-04-06)
147
+
148
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
149
+
150
+ ## [0.18.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.7...@contentful/field-editor-rich-text@0.18.8) (2021-03-29)
151
+
152
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
153
+
154
+ ## [0.18.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.6...@contentful/field-editor-rich-text@0.18.7) (2021-03-15)
155
+
156
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
157
+
158
+ ## [0.18.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.5...@contentful/field-editor-rich-text@0.18.6) (2021-03-12)
159
+
160
+ ### Bug Fixes
161
+
162
+ - 🐛 fetching in rich text and optimize scheduled actions ([#630](https://github.com/contentful/field-editors/issues/630)) ([d3ff315](https://github.com/contentful/field-editors/commit/d3ff315364bfd542361c9506f4692e4884687821))
163
+
164
+ ## [0.18.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.4...@contentful/field-editor-rich-text@0.18.5) (2021-03-12)
165
+
166
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
167
+
168
+ ## [0.18.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.3...@contentful/field-editor-rich-text@0.18.4) (2021-03-10)
169
+
170
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
171
+
172
+ ## [0.18.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.2...@contentful/field-editor-rich-text@0.18.3) (2021-03-05)
173
+
174
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
175
+
176
+ ## [0.18.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.1...@contentful/field-editor-rich-text@0.18.2) (2021-03-04)
177
+
178
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
179
+
180
+ ## [0.18.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.18.0...@contentful/field-editor-rich-text@0.18.1) (2021-03-02)
181
+
182
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
183
+
184
+ # [0.18.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.7...@contentful/field-editor-rich-text@0.18.0) (2021-02-19)
185
+
186
+ ### Features
187
+
188
+ - bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
189
+
190
+ ## [0.17.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.6...@contentful/field-editor-rich-text@0.17.7) (2021-02-16)
191
+
192
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
193
+
194
+ ## [0.17.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.5...@contentful/field-editor-rich-text@0.17.6) (2021-02-09)
195
+
196
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
197
+
198
+ ## [0.17.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.4...@contentful/field-editor-rich-text@0.17.5) (2021-02-08)
199
+
200
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
201
+
202
+ ## [0.17.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.3...@contentful/field-editor-rich-text@0.17.4) (2021-02-05)
203
+
204
+ ### Bug Fixes
205
+
206
+ - **rich-text:** command palette and embed dropdown icons ([#585](https://github.com/contentful/field-editors/issues/585)) ([7a1c301](https://github.com/contentful/field-editors/commit/7a1c301dca784700a35e98e23f85c92562d41081))
207
+
208
+ ## [0.17.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.2...@contentful/field-editor-rich-text@0.17.3) (2021-02-03)
209
+
210
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
211
+
212
+ ## [0.17.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.1...@contentful/field-editor-rich-text@0.17.2) (2021-02-01)
213
+
214
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
215
+
216
+ ## [0.17.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.17.0...@contentful/field-editor-rich-text@0.17.1) (2021-01-25)
217
+
218
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
219
+
220
+ # [0.17.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.16.3...@contentful/field-editor-rich-text@0.17.0) (2021-01-20)
221
+
222
+ ### Features
223
+
224
+ - update minimal forma-36 versions to use updated design ([#565](https://github.com/contentful/field-editors/issues/565)) ([332c734](https://github.com/contentful/field-editors/commit/332c734bfaf54f0e9773fcbb460d743b1f5459ec))
225
+
226
+ ## [0.16.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.16.2...@contentful/field-editor-rich-text@0.16.3) (2021-01-20)
227
+
228
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
229
+
230
+ ## [0.16.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.16.1...@contentful/field-editor-rich-text@0.16.2) (2021-01-13)
231
+
232
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
233
+
234
+ ## [0.16.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.16.0...@contentful/field-editor-rich-text@0.16.1) (2021-01-12)
235
+
236
+ ### Bug Fixes
237
+
238
+ - use forma tokens for border radiuses ([#553](https://github.com/contentful/field-editors/issues/553)) ([f4eb745](https://github.com/contentful/field-editors/commit/f4eb74568c7bc0cc25028542821ba64e50e226bd))
239
+
240
+ # [0.16.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.5...@contentful/field-editor-rich-text@0.16.0) (2021-01-12)
241
+
242
+ ### Features
243
+
244
+ - update minimal required Forma version to the 3.73.12 ([#552](https://github.com/contentful/field-editors/issues/552)) ([2816fd9](https://github.com/contentful/field-editors/commit/2816fd960c28815faebf49a9ef8f4c4c0d91fc36))
245
+
246
+ ## [0.15.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.4...@contentful/field-editor-rich-text@0.15.5) (2021-01-11)
247
+
248
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
249
+
250
+ ## [0.15.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.3...@contentful/field-editor-rich-text@0.15.4) (2020-12-23)
251
+
252
+ ### Bug Fixes
253
+
254
+ - use correct prop types ([#538](https://github.com/contentful/field-editors/issues/538)) ([f878a3a](https://github.com/contentful/field-editors/commit/f878a3a4f5c2d32455ac7932540d612a1c1a461a))
255
+
256
+ ## [0.15.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.2...@contentful/field-editor-rich-text@0.15.3) (2020-12-21)
257
+
258
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
259
+
260
+ ## [0.15.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.1...@contentful/field-editor-rich-text@0.15.2) (2020-12-16)
261
+
262
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
263
+
264
+ ## [0.15.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.15.0...@contentful/field-editor-rich-text@0.15.1) (2020-12-16)
265
+
266
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
267
+
268
+ # [0.15.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.39...@contentful/field-editor-rich-text@0.15.0) (2020-12-16)
269
+
270
+ ### Features
271
+
272
+ - minHeight props ([#529](https://github.com/contentful/field-editors/issues/529)) ([672e5d1](https://github.com/contentful/field-editors/commit/672e5d10356547ba99888dfeedc5ffd7b6e264cb))
273
+
274
+ ## [0.14.39](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.38...@contentful/field-editor-rich-text@0.14.39) (2020-12-10)
275
+
276
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
277
+
278
+ ## [0.14.38](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.37...@contentful/field-editor-rich-text@0.14.38) (2020-11-23)
279
+
280
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
281
+
282
+ ## [0.14.37](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.36...@contentful/field-editor-rich-text@0.14.37) (2020-11-23)
283
+
284
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
285
+
286
+ ## [0.14.36](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.35...@contentful/field-editor-rich-text@0.14.36) (2020-11-17)
287
+
288
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
289
+
290
+ ## [0.14.35](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.34...@contentful/field-editor-rich-text@0.14.35) (2020-11-17)
291
+
292
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
293
+
294
+ ## [0.14.34](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.33...@contentful/field-editor-rich-text@0.14.34) (2020-11-13)
295
+
296
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
297
+
298
+ ## [0.14.33](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.32...@contentful/field-editor-rich-text@0.14.33) (2020-11-13)
299
+
300
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
301
+
302
+ ## [0.14.32](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.31...@contentful/field-editor-rich-text@0.14.32) (2020-11-11)
303
+
304
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
305
+
306
+ ## [0.14.31](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.30...@contentful/field-editor-rich-text@0.14.31) (2020-11-10)
307
+
308
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
309
+
310
+ ## [0.14.30](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.29...@contentful/field-editor-rich-text@0.14.30) (2020-11-09)
311
+
312
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
313
+
314
+ ## [0.14.29](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.28...@contentful/field-editor-rich-text@0.14.29) (2020-11-09)
315
+
316
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
317
+
318
+ ## [0.14.28](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.27...@contentful/field-editor-rich-text@0.14.28) (2020-11-06)
319
+
320
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
321
+
322
+ ## [0.14.27](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.26...@contentful/field-editor-rich-text@0.14.27) (2020-11-06)
323
+
324
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
325
+
326
+ ## [0.14.26](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.25...@contentful/field-editor-rich-text@0.14.26) (2020-11-04)
327
+
328
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
329
+
330
+ ## [0.14.25](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.24...@contentful/field-editor-rich-text@0.14.25) (2020-10-28)
331
+
332
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
333
+
334
+ ## [0.14.24](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.23...@contentful/field-editor-rich-text@0.14.24) (2020-10-28)
335
+
336
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
337
+
338
+ ## [0.14.23](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.22...@contentful/field-editor-rich-text@0.14.23) (2020-10-27)
339
+
340
+ ### Bug Fixes
341
+
342
+ - do not call set state on unmounted rich-text ([#463](https://github.com/contentful/field-editors/issues/463)) ([5cc5ef4](https://github.com/contentful/field-editors/commit/5cc5ef4fc18f8c039626b1efd3a5072f2edc7628))
343
+
344
+ ## [0.14.22](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.21...@contentful/field-editor-rich-text@0.14.22) (2020-10-23)
345
+
346
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
347
+
348
+ ## [0.14.21](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.20...@contentful/field-editor-rich-text@0.14.21) (2020-10-21)
349
+
350
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
351
+
352
+ ## [0.14.20](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.19...@contentful/field-editor-rich-text@0.14.20) (2020-10-15)
353
+
354
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
355
+
356
+ ## [0.14.19](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.18...@contentful/field-editor-rich-text@0.14.19) (2020-10-09)
357
+
358
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
359
+
360
+ ## [0.14.18](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.17...@contentful/field-editor-rich-text@0.14.18) (2020-10-09)
361
+
362
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
363
+
364
+ ## [0.14.17](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.16...@contentful/field-editor-rich-text@0.14.17) (2020-10-02)
365
+
366
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
367
+
368
+ ## [0.14.16](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.15...@contentful/field-editor-rich-text@0.14.16) (2020-10-02)
369
+
370
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
371
+
372
+ ## [0.14.15](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.14...@contentful/field-editor-rich-text@0.14.15) (2020-10-01)
373
+
374
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
375
+
376
+ ## [0.14.14](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.13...@contentful/field-editor-rich-text@0.14.14) (2020-09-29)
377
+
378
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
379
+
380
+ ## [0.14.13](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.12...@contentful/field-editor-rich-text@0.14.13) (2020-09-29)
381
+
382
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
383
+
384
+ ## [0.14.12](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.11...@contentful/field-editor-rich-text@0.14.12) (2020-09-22)
385
+
386
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
387
+
388
+ ## [0.14.11](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.10...@contentful/field-editor-rich-text@0.14.11) (2020-09-21)
389
+
390
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
391
+
392
+ ## [0.14.10](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.9...@contentful/field-editor-rich-text@0.14.10) (2020-09-02)
393
+
394
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
395
+
396
+ ## [0.14.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.8...@contentful/field-editor-rich-text@0.14.9) (2020-09-01)
397
+
398
+ ### Bug Fixes
399
+
400
+ - 🐛 allow heigh overflow for hyperlink dialog ([#386](https://github.com/contentful/field-editors/issues/386)) ([2cfd46c](https://github.com/contentful/field-editors/commit/2cfd46c3d238ee32abad6a2ca48b422115d285c3))
401
+
402
+ ## [0.14.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.7...@contentful/field-editor-rich-text@0.14.8) (2020-09-01)
403
+
404
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
405
+
406
+ ## [0.14.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.6...@contentful/field-editor-rich-text@0.14.7) (2020-08-27)
407
+
408
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
409
+
410
+ ## [0.14.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.5...@contentful/field-editor-rich-text@0.14.6) (2020-08-27)
411
+
412
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
413
+
414
+ ## [0.14.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.4...@contentful/field-editor-rich-text@0.14.5) (2020-08-27)
415
+
416
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
417
+
418
+ ## [0.14.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.3...@contentful/field-editor-rich-text@0.14.4) (2020-08-24)
419
+
420
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
421
+
422
+ ## [0.14.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-rich-text@0.14.2...@contentful/field-editor-rich-text@0.14.3) (2020-08-24)
423
+
424
+ **Note:** Version bump only for package @contentful/field-editor-rich-text
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Contentful
3
+ Copyright (c) 2020 Contentful
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,25 +1,14 @@
1
1
  # @contentful/field-editor-rich-text
2
2
 
3
- This package contains a React `RichTextEditor` component and an extension that is used as default for `RichText` field type in the Contentful web application.
3
+ ```bash
4
+ npm install @contentful/field-editor-rich-text
5
+ ```
4
6
 
5
- This editor extension 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.
6
8
 
7
- ## Commands
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.
8
10
 
9
- Uses [`tsdx`](https://github.com/palmerhq/tsdx) - a zero-config CLI that helps you develop, test, and publish modern TypeScript packages with ease.
10
-
11
- ### `yarn watch`
12
-
13
- Runs the project in development/watch mode. Your library will be rebuilt if you make edits.
14
-
15
- ### `yarn build`
16
-
17
- Bundles the package to the `dist` folder.
18
- The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
19
-
20
- ### `yarn test`
21
-
22
- Runs the test watcher (Jest) in an interactive mode.
23
- By default, runs tests related to files changed since the last commit.
24
-
25
- For more information check [`tsdx` documentation](https://github.com/palmerhq/tsdx) out.
11
+ ```js
12
+ import 'codemirror/lib/codemirror.css';
13
+ import { RichTextEditor } from '@contentful/field-editor-rich-text';
14
+ ```
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  declare function RichTextEditor(props: any): JSX.Element;
3
2
  declare namespace RichTextEditor {
4
3
  export namespace defaultProps {
@@ -8,15 +7,20 @@ declare namespace RichTextEditor {
8
7
  export default RichTextEditor;
9
8
  export class ConnectedRichTextEditor extends React.Component<any, any, any> {
10
9
  static propTypes: {
11
- widgetAPI: PropTypes.Validator<PropTypes.InferProps<{
10
+ minHeight: PropTypes.Requireable<string | number>;
11
+ sdk: PropTypes.Validator<PropTypes.InferProps<{
12
12
  field: PropTypes.Validator<PropTypes.InferProps<{
13
13
  id: PropTypes.Validator<string>;
14
14
  locale: PropTypes.Validator<string>;
15
15
  }>>;
16
- permissions: PropTypes.Validator<PropTypes.InferProps<{
17
- canAccessAssets: PropTypes.Validator<boolean>;
18
- canCreateAsset: PropTypes.Validator<boolean>;
19
- canCreateEntryOfContentType: PropTypes.Validator<object>;
16
+ access: PropTypes.Validator<PropTypes.InferProps<{
17
+ can: PropTypes.Validator<(...args: any[]) => any>;
18
+ }>>;
19
+ parameters: PropTypes.Requireable<PropTypes.InferProps<{
20
+ instance: PropTypes.Validator<PropTypes.InferProps<{
21
+ getEntryUrl: PropTypes.Requireable<(...args: any[]) => any>;
22
+ getAssetUrl: PropTypes.Requireable<(...args: any[]) => any>;
23
+ }>>;
20
24
  }>>;
21
25
  }>>;
22
26
  value: PropTypes.Requireable<object>;
@@ -25,11 +29,6 @@ export class ConnectedRichTextEditor extends React.Component<any, any, any> {
25
29
  onAction: PropTypes.Requireable<(...args: any[]) => any>;
26
30
  isToolbarHidden: PropTypes.Requireable<boolean>;
27
31
  actionsDisabled: PropTypes.Requireable<boolean>;
28
- customRenderers: PropTypes.Requireable<PropTypes.InferProps<{
29
- renderEntityBlockEmbed: PropTypes.Requireable<(...args: any[]) => any>;
30
- renderEntryInlineEmbed: PropTypes.Requireable<(...args: any[]) => any>;
31
- renderEntityHyperlinkTooltip: PropTypes.Requireable<(...args: any[]) => any>;
32
- }>>;
33
32
  };
34
33
  static defaultProps: {
35
34
  value: import("@contentful/rich-text-types").Document;
@@ -38,17 +37,12 @@ export class ConnectedRichTextEditor extends React.Component<any, any, any> {
38
37
  isDisabled: boolean;
39
38
  isToolbarHidden: boolean;
40
39
  actionsDisabled: boolean;
41
- customRenderers: {};
42
- };
43
- constructor(props: Readonly<any>);
44
- constructor(props: any, context?: any);
45
- state: {
46
- lastOperations: List<any>;
47
- value: any;
48
40
  };
41
+ constructor(props: any);
42
+ constructor(props: any, context: any);
49
43
  editor: React.RefObject<any>;
50
44
  richTextAPI: {
51
- widgetAPI: {
45
+ sdk: {
52
46
  object: any;
53
47
  };
54
48
  logViewportAction: {
@@ -60,12 +54,8 @@ export class ConnectedRichTextEditor extends React.Component<any, any, any> {
60
54
  };
61
55
  slatePlugins: any[];
62
56
  onChange: (editor: any) => void;
63
- shouldComponentUpdate(nextProps: any, nextState: any): boolean;
64
- callOnChange: (() => void) & import("lodash").Cancelable;
65
- componentDidUpdate(prevProps: any): void;
57
+ callOnChange: import("lodash").DebouncedFunc<() => void>;
66
58
  handleKeyDown: (event: any, editor: any, next: any) => any;
67
- render(): JSX.Element;
68
59
  }
69
60
  import React from "react";
70
- import { List } from "immutable";
71
61
  import PropTypes from "prop-types";
@@ -4,25 +4,17 @@ export default class Toolbar extends React.Component<any, any, any> {
4
4
  isDisabled: PropTypes.Validator<boolean>;
5
5
  editor: PropTypes.Validator<object>;
6
6
  onChange: PropTypes.Validator<(...args: any[]) => any>;
7
- permissions: PropTypes.Validator<PropTypes.InferProps<{
8
- canAccessAssets: PropTypes.Validator<boolean>;
9
- }>>;
10
- };
11
- constructor(props: Readonly<any>);
12
- constructor(props: any, context?: any);
13
- state: {
14
- isAnyMarkEnabled: boolean;
15
- isAnyHyperlinkEnabled: boolean;
16
- isAnyListEnabled: boolean;
17
- headingMenuOpen: boolean;
18
7
  };
8
+ constructor(props: any);
9
+ constructor(props: any, context: any);
10
+ hasMounted: boolean;
11
+ isReadyToSetFocusProgrammatically: boolean;
19
12
  onChange: (...args: any[]) => void;
20
- toggleEmbedDropdown: () => void;
13
+ handleEmbedDropdownOpen: () => void;
21
14
  handleEmbedDropdownClose: () => void;
22
15
  renderEmbeds: (props: any) => JSX.Element;
23
- toggleHeadingMenu: (event: any) => void;
16
+ openHeadingMenu: () => void;
24
17
  closeHeadingMenu: () => void;
25
- render(): JSX.Element;
26
18
  }
27
19
  import React from "react";
28
20
  import PropTypes from "prop-types";
@@ -0,0 +1,54 @@
1
+ export namespace LINK_TYPES {
2
+ export const URI: string;
3
+ export const ENTRY: string;
4
+ export const ASSET: string;
5
+ }
6
+ export class HyperlinkDialog extends React.Component<any, any, any> {
7
+ static propTypes: {
8
+ sdk: PropTypes.Validator<object>;
9
+ labels: PropTypes.Requireable<PropTypes.InferProps<{
10
+ title: PropTypes.Requireable<string>;
11
+ confirm: PropTypes.Requireable<string>;
12
+ }>>;
13
+ value: PropTypes.Requireable<PropTypes.InferProps<{
14
+ text: PropTypes.Requireable<string>;
15
+ uri: PropTypes.Requireable<string>;
16
+ target: PropTypes.Requireable<object>;
17
+ type: PropTypes.Requireable<string>;
18
+ }>>;
19
+ entitySelectorConfigs: PropTypes.Requireable<object>;
20
+ allowedHyperlinkTypes: PropTypes.Requireable<(string | null | undefined)[]>;
21
+ hideText: PropTypes.Requireable<boolean>;
22
+ onClose: PropTypes.Validator<(...args: any[]) => any>;
23
+ };
24
+ static defaultProps: {
25
+ labels: {
26
+ title: string;
27
+ confirm: string;
28
+ };
29
+ value: {};
30
+ hideText: boolean;
31
+ entitySelectorConfigs: {};
32
+ allowedHyperlinkTypes: string[];
33
+ };
34
+ constructor(props: any);
35
+ setTargetEntity(type: any, entity: any): void;
36
+ getValue(): {
37
+ type: any;
38
+ };
39
+ isLinkComplete(): any;
40
+ handleSubmit: (event: any) => void;
41
+ selectEntry: () => Promise<void>;
42
+ selectAsset: () => Promise<void>;
43
+ renderFields(): JSX.Element;
44
+ renderEntityField(): JSX.Element;
45
+ renderEntitySelector(type: any): JSX.Element;
46
+ }
47
+ export function openHyperlinkDialog(dialogs: any, { value, showTextInput, allowedHyperlinkTypes, entitySelectorConfigs }: {
48
+ value: any;
49
+ showTextInput: any;
50
+ allowedHyperlinkTypes: any;
51
+ entitySelectorConfigs: any;
52
+ }): any;
53
+ import React from "react";
54
+ import PropTypes from "prop-types";
@@ -0,0 +1 @@
1
+ export function openRichTextDialog(sdk: any): (options: any) => Promise<unknown>;
@@ -0,0 +1 @@
1
+ export function renderRichTextDialog(sdk: any): JSX.Element;