@contentful/field-editor-markdown 0.16.4 → 1.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
@@ -3,316 +3,191 @@
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
- ## [0.16.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.3...@contentful/field-editor-markdown@0.16.4) (2021-09-17)
6
+ # [1.0.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.18.0...@contentful/field-editor-markdown@1.0.0) (2021-11-04)
7
7
 
8
8
  **Note:** Version bump only for package @contentful/field-editor-markdown
9
9
 
10
+ # [0.18.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.17.1...@contentful/field-editor-markdown@0.18.0) (2021-11-04)
10
11
 
12
+ ### Features
11
13
 
14
+ - Forma v4 components adoption ([#805](https://github.com/contentful/field-editors/issues/805)) ([526bde6](https://github.com/contentful/field-editors/commit/526bde6e10e0ee3789705ec10fb31489af7ca59e))
12
15
 
16
+ ### BREAKING CHANGES
13
17
 
14
- ## [0.16.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.2...@contentful/field-editor-markdown@0.16.3) (2021-09-16)
18
+ - adopts a new Forma v4 beta
15
19
 
16
- **Note:** Version bump only for package @contentful/field-editor-markdown
20
+ ## [0.17.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.17.0...@contentful/field-editor-markdown@0.17.1) (2021-10-14)
17
21
 
22
+ **Note:** Version bump only for package @contentful/field-editor-markdown
18
23
 
24
+ # [0.17.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.4...@contentful/field-editor-markdown@0.17.0) (2021-10-06)
19
25
 
26
+ ### Features
20
27
 
28
+ - [EXT-3161] bump app sdk to v4 ([#881](https://github.com/contentful/field-editors/issues/881)) ([9c4a2af](https://github.com/contentful/field-editors/commit/9c4a2af07da203d59fb5f15c3a5188ecc64b1d44))
21
29
 
22
- ## [0.16.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.1...@contentful/field-editor-markdown@0.16.2) (2021-08-19)
30
+ ## [0.16.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.3...@contentful/field-editor-markdown@0.16.4) (2021-09-17)
23
31
 
24
32
  **Note:** Version bump only for package @contentful/field-editor-markdown
25
33
 
34
+ ## [0.16.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.2...@contentful/field-editor-markdown@0.16.3) (2021-09-16)
26
35
 
36
+ **Note:** Version bump only for package @contentful/field-editor-markdown
27
37
 
38
+ ## [0.16.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.1...@contentful/field-editor-markdown@0.16.2) (2021-08-19)
28
39
 
40
+ **Note:** Version bump only for package @contentful/field-editor-markdown
29
41
 
30
42
  ## [0.16.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.16.0...@contentful/field-editor-markdown@0.16.1) (2021-07-29)
31
43
 
32
44
  **Note:** Version bump only for package @contentful/field-editor-markdown
33
45
 
34
-
35
-
36
-
37
-
38
46
  # [0.16.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.6...@contentful/field-editor-markdown@0.16.0) (2021-07-23)
39
47
 
40
-
41
48
  ### Features
42
49
 
43
- * 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
44
-
45
-
46
-
47
-
50
+ - 💡 new color tokens ([#778](https://github.com/contentful/field-editors/issues/778)) ([fba548d](https://github.com/contentful/field-editors/commit/fba548de32305016df7f2685634eefb14294828f))
48
51
 
49
52
  ## [0.15.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.3...@contentful/field-editor-markdown@0.15.6) (2021-07-06)
50
53
 
51
54
  **Note:** Version bump only for package @contentful/field-editor-markdown
52
55
 
53
-
54
-
55
-
56
-
57
56
  ## [0.15.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.3...@contentful/field-editor-markdown@0.15.5) (2021-07-06)
58
57
 
59
58
  **Note:** Version bump only for package @contentful/field-editor-markdown
60
59
 
61
-
62
-
63
-
64
-
65
60
  ## [0.15.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.3...@contentful/field-editor-markdown@0.15.4) (2021-06-23)
66
61
 
67
62
  **Note:** Version bump only for package @contentful/field-editor-markdown
68
63
 
69
-
70
-
71
-
72
-
73
64
  ## [0.15.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.2...@contentful/field-editor-markdown@0.15.3) (2021-06-23)
74
65
 
75
66
  **Note:** Version bump only for package @contentful/field-editor-markdown
76
67
 
77
-
78
-
79
-
80
-
81
68
  ## [0.15.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.1...@contentful/field-editor-markdown@0.15.2) (2021-06-22)
82
69
 
83
70
  **Note:** Version bump only for package @contentful/field-editor-markdown
84
71
 
85
-
86
-
87
-
88
-
89
72
  ## [0.15.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.15.0...@contentful/field-editor-markdown@0.15.1) (2021-06-11)
90
73
 
91
-
92
74
  ### Bug Fixes
93
75
 
94
- * **markdown:** sanitize Markdown output in preview mode ([#740](https://github.com/contentful/field-editors/issues/740)) ([c50655e](https://github.com/contentful/field-editors/commit/c50655e22df750f22b404e396fb97a9b5c1c9009))
95
-
96
-
97
-
98
-
76
+ - **markdown:** sanitize Markdown output in preview mode ([#740](https://github.com/contentful/field-editors/issues/740)) ([c50655e](https://github.com/contentful/field-editors/commit/c50655e22df750f22b404e396fb97a9b5c1c9009))
99
77
 
100
78
  # [0.15.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.14.4...@contentful/field-editor-markdown@0.15.0) (2021-06-01)
101
79
 
102
-
103
80
  ### Features
104
81
 
105
- * gracefully handle void elements ([#734](https://github.com/contentful/field-editors/issues/734)) ([c359196](https://github.com/contentful/field-editors/commit/c35919604512d526340036f198268d1f26260603))
106
-
107
-
108
-
109
-
82
+ - gracefully handle void elements ([#734](https://github.com/contentful/field-editors/issues/734)) ([c359196](https://github.com/contentful/field-editors/commit/c35919604512d526340036f198268d1f26260603))
110
83
 
111
84
  ## [0.14.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.14.3...@contentful/field-editor-markdown@0.14.4) (2021-04-14)
112
85
 
113
-
114
86
  ### Bug Fixes
115
87
 
116
- * [] auto refresh json and markdown when rendered out of view ([#684](https://github.com/contentful/field-editors/issues/684)) ([faea939](https://github.com/contentful/field-editors/commit/faea93910c934f6ed74ebe4a949ee1d2eea7b28b))
117
-
118
-
119
-
120
-
88
+ - [] auto refresh json and markdown when rendered out of view ([#684](https://github.com/contentful/field-editors/issues/684)) ([faea939](https://github.com/contentful/field-editors/commit/faea93910c934f6ed74ebe4a949ee1d2eea7b28b))
121
89
 
122
90
  ## [0.14.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.14.2...@contentful/field-editor-markdown@0.14.3) (2021-03-22)
123
91
 
124
92
  **Note:** Version bump only for package @contentful/field-editor-markdown
125
93
 
126
-
127
-
128
-
129
-
130
94
  ## [0.14.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.14.1...@contentful/field-editor-markdown@0.14.2) (2021-03-05)
131
95
 
132
96
  **Note:** Version bump only for package @contentful/field-editor-markdown
133
97
 
134
-
135
-
136
-
137
-
138
98
  ## [0.14.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.14.0...@contentful/field-editor-markdown@0.14.1) (2021-03-04)
139
99
 
140
-
141
100
  ### Bug Fixes
142
101
 
143
- * 🐛 allow functional react in preview components ([#621](https://github.com/contentful/field-editors/issues/621)) ([77e7536](https://github.com/contentful/field-editors/commit/77e753690d74073ba5f80be7eecef871cb83fbbe))
144
-
145
-
146
-
147
-
102
+ - 🐛 allow functional react in preview components ([#621](https://github.com/contentful/field-editors/issues/621)) ([77e7536](https://github.com/contentful/field-editors/commit/77e753690d74073ba5f80be7eecef871cb83fbbe))
148
103
 
149
104
  # [0.14.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.13.2...@contentful/field-editor-markdown@0.14.0) (2021-02-19)
150
105
 
151
-
152
106
  ### Features
153
107
 
154
- * bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
155
-
156
-
157
-
158
-
108
+ - bump min version of forma-36 ([#606](https://github.com/contentful/field-editors/issues/606)) ([fd57c7a](https://github.com/contentful/field-editors/commit/fd57c7a4312766af38c01507f17706ab22992617))
159
109
 
160
110
  ## [0.13.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.13.1...@contentful/field-editor-markdown@0.13.2) (2021-02-09)
161
111
 
162
112
  **Note:** Version bump only for package @contentful/field-editor-markdown
163
113
 
164
-
165
-
166
-
167
-
168
114
  ## [0.13.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.13.0...@contentful/field-editor-markdown@0.13.1) (2021-02-08)
169
115
 
170
116
  **Note:** Version bump only for package @contentful/field-editor-markdown
171
117
 
172
-
173
-
174
-
175
-
176
118
  # [0.13.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.12.0...@contentful/field-editor-markdown@0.13.0) (2021-02-01)
177
119
 
178
-
179
120
  ### Features
180
121
 
181
- * swap ui-extension-sdk to app-sdk ([#576](https://github.com/contentful/field-editors/issues/576)) ([ac88b4b](https://github.com/contentful/field-editors/commit/ac88b4bd4573a72f521246fc8fcc873520ca90d4))
182
-
183
-
184
-
185
-
122
+ - swap ui-extension-sdk to app-sdk ([#576](https://github.com/contentful/field-editors/issues/576)) ([ac88b4b](https://github.com/contentful/field-editors/commit/ac88b4bd4573a72f521246fc8fcc873520ca90d4))
186
123
 
187
124
  # [0.12.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.11.1...@contentful/field-editor-markdown@0.12.0) (2021-01-20)
188
125
 
189
-
190
126
  ### Features
191
127
 
192
- * 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))
193
-
194
-
195
-
196
-
128
+ - 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))
197
129
 
198
130
  ## [0.11.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.11.0...@contentful/field-editor-markdown@0.11.1) (2021-01-12)
199
131
 
200
-
201
132
  ### Bug Fixes
202
133
 
203
- * use forma tokens for border radiuses ([#553](https://github.com/contentful/field-editors/issues/553)) ([f4eb745](https://github.com/contentful/field-editors/commit/f4eb74568c7bc0cc25028542821ba64e50e226bd))
204
-
205
-
206
-
207
-
134
+ - use forma tokens for border radiuses ([#553](https://github.com/contentful/field-editors/issues/553)) ([f4eb745](https://github.com/contentful/field-editors/commit/f4eb74568c7bc0cc25028542821ba64e50e226bd))
208
135
 
209
136
  # [0.11.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.10.2...@contentful/field-editor-markdown@0.11.0) (2021-01-12)
210
137
 
211
-
212
138
  ### Features
213
139
 
214
- * 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))
215
-
216
-
217
-
218
-
140
+ - 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))
219
141
 
220
142
  ## [0.10.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.10.1...@contentful/field-editor-markdown@0.10.2) (2021-01-11)
221
143
 
222
144
  **Note:** Version bump only for package @contentful/field-editor-markdown
223
145
 
224
-
225
-
226
-
227
-
228
146
  ## [0.10.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.10.0...@contentful/field-editor-markdown@0.10.1) (2020-12-16)
229
147
 
230
148
  **Note:** Version bump only for package @contentful/field-editor-markdown
231
149
 
232
-
233
-
234
-
235
-
236
150
  # [0.10.0](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.9...@contentful/field-editor-markdown@0.10.0) (2020-12-16)
237
151
 
238
-
239
152
  ### Features
240
153
 
241
- * minHeight props ([#529](https://github.com/contentful/field-editors/issues/529)) ([672e5d1](https://github.com/contentful/field-editors/commit/672e5d10356547ba99888dfeedc5ffd7b6e264cb))
242
-
243
-
244
-
245
-
154
+ - minHeight props ([#529](https://github.com/contentful/field-editors/issues/529)) ([672e5d1](https://github.com/contentful/field-editors/commit/672e5d10356547ba99888dfeedc5ffd7b6e264cb))
246
155
 
247
156
  ## [0.9.9](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.8...@contentful/field-editor-markdown@0.9.9) (2020-12-14)
248
157
 
249
158
  **Note:** Version bump only for package @contentful/field-editor-markdown
250
159
 
251
-
252
-
253
-
254
-
255
160
  ## [0.9.8](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.7...@contentful/field-editor-markdown@0.9.8) (2020-11-30)
256
161
 
257
162
  **Note:** Version bump only for package @contentful/field-editor-markdown
258
163
 
259
-
260
-
261
-
262
-
263
164
  ## [0.9.7](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.6...@contentful/field-editor-markdown@0.9.7) (2020-11-06)
264
165
 
265
166
  **Note:** Version bump only for package @contentful/field-editor-markdown
266
167
 
267
-
268
-
269
-
270
-
271
168
  ## [0.9.6](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.5...@contentful/field-editor-markdown@0.9.6) (2020-11-06)
272
169
 
273
170
  **Note:** Version bump only for package @contentful/field-editor-markdown
274
171
 
275
-
276
-
277
-
278
-
279
172
  ## [0.9.5](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.4...@contentful/field-editor-markdown@0.9.5) (2020-10-28)
280
173
 
281
-
282
174
  ### Bug Fixes
283
175
 
284
- * 🐛 isInitiallyDisabled being null in examples ([#414](https://github.com/contentful/field-editors/issues/414)) ([df53405](https://github.com/contentful/field-editors/commit/df534055cfa64c533725cb5bca392a0a82e54be6))
285
-
286
-
287
-
288
-
176
+ - 🐛 isInitiallyDisabled being null in examples ([#414](https://github.com/contentful/field-editors/issues/414)) ([df53405](https://github.com/contentful/field-editors/commit/df534055cfa64c533725cb5bca392a0a82e54be6))
289
177
 
290
178
  ## [0.9.4](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.3...@contentful/field-editor-markdown@0.9.4) (2020-09-21)
291
179
 
292
180
  **Note:** Version bump only for package @contentful/field-editor-markdown
293
181
 
294
-
295
-
296
-
297
-
298
182
  ## [0.9.3](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.2...@contentful/field-editor-markdown@0.9.3) (2020-08-31)
299
183
 
300
184
  **Note:** Version bump only for package @contentful/field-editor-markdown
301
185
 
302
-
303
-
304
-
305
-
306
186
  ## [0.9.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.1...@contentful/field-editor-markdown@0.9.2) (2020-08-24)
307
187
 
308
-
309
188
  ### Bug Fixes
310
189
 
311
- * trim empty lines in markdown editor ([f2e0532](https://github.com/contentful/field-editors/commit/f2e05324d21f259293a77a364603f2d438a55fed))
312
-
313
-
314
-
315
-
190
+ - trim empty lines in markdown editor ([f2e0532](https://github.com/contentful/field-editors/commit/f2e05324d21f259293a77a364603f2d438a55fed))
316
191
 
317
192
  ## [0.9.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-markdown@0.9.0...@contentful/field-editor-markdown@0.9.1) (2020-08-24)
318
193
 
package/README.md CHANGED
@@ -8,6 +8,5 @@ This package contains a React `MarkdownEditor` component that is used as a defau
8
8
 
9
9
  ```js
10
10
  import 'codemirror/lib/codemirror.css';
11
- import '@contentful/forma-36-react-components/dist/styles.css';
12
11
  import { MarkdownEditor } from '@contentful/field-editor-markdown';
13
12
  ```
@@ -3,4 +3,5 @@ import { HeadingType } from '../types';
3
3
  export declare const HeadingSelector: (props: {
4
4
  children: React.ReactElement;
5
5
  onSelect: (heading: HeadingType) => void;
6
+ tooltip?: string | undefined;
6
7
  }) => JSX.Element;
@@ -5,17 +5,8 @@ declare type IconProps = {
5
5
  className?: string;
6
6
  label: string;
7
7
  };
8
- export declare const Bold: ({ label, ...rest }: IconProps) => JSX.Element;
9
- export declare const Italic: ({ label, ...rest }: IconProps) => JSX.Element;
10
- export declare const Quote: ({ label, ...rest }: IconProps) => JSX.Element;
11
- export declare const List: ({ label, ...rest }: IconProps) => JSX.Element;
12
- export declare const ListOl: ({ label, ...rest }: IconProps) => JSX.Element;
13
- export declare const Link: ({ label, ...rest }: IconProps) => JSX.Element;
14
- export declare const Heading: ({ label, ...rest }: IconProps) => JSX.Element;
15
8
  export declare const Zen: ({ label, ...rest }: IconProps) => JSX.Element;
16
9
  export declare const Strikethrough: ({ label, ...rest }: IconProps) => JSX.Element;
17
- export declare const Code: ({ label, ...rest }: IconProps) => JSX.Element;
18
- export declare const Hr: ({ label, ...rest }: IconProps) => JSX.Element;
19
10
  export declare const Indent: ({ label, ...rest }: IconProps) => JSX.Element;
20
11
  export declare const Dedent: ({ label, ...rest }: IconProps) => JSX.Element;
21
12
  export declare const Cubes: ({ label, ...rest }: IconProps) => JSX.Element;