@atlaskit/editor-plugin-block-type 3.4.0 → 3.5.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/.eslintrc.js +12 -12
- package/CHANGELOG.md +217 -199
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin/index.js +1 -2
- package/dist/cjs/plugin/styles.js +1 -1
- package/dist/cjs/plugin/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/cjs/plugin/ui/ToolbarBlockType/index.js +1 -1
- package/dist/cjs/plugin/ui/ToolbarBlockType/styled.js +2 -1
- package/dist/es2019/plugin/index.js +2 -3
- package/dist/es2019/plugin/styles.js +4 -4
- package/dist/es2019/plugin/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/es2019/plugin/ui/ToolbarBlockType/index.js +1 -1
- package/dist/es2019/plugin/ui/ToolbarBlockType/styled.js +2 -1
- package/dist/esm/plugin/index.js +2 -3
- package/dist/esm/plugin/styles.js +1 -1
- package/dist/esm/plugin/ui/ToolbarBlockType/blocktype-button.js +3 -1
- package/dist/esm/plugin/ui/ToolbarBlockType/index.js +1 -1
- package/dist/esm/plugin/ui/ToolbarBlockType/styled.js +2 -1
- package/dist/types/plugin/index.d.ts +1 -4
- package/package.json +3 -8
- package/report.api.md +51 -53
package/.eslintrc.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
module.exports = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
rules: {
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
5
|
+
},
|
6
|
+
overrides: [
|
7
|
+
{
|
8
|
+
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
9
|
+
rules: {
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
11
|
+
},
|
12
|
+
},
|
13
|
+
],
|
14
14
|
};
|
package/CHANGELOG.md
CHANGED
@@ -1,503 +1,521 @@
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
2
2
|
|
3
|
+
## 3.5.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#105253](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105253)
|
8
|
+
[`a5f3cd26fbd6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a5f3cd26fbd6) -
|
9
|
+
Clean up platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g FF
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [#104809](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104809)
|
14
|
+
[`955319e2b6b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/955319e2b6b1) -
|
15
|
+
[ux] [ECA11Y-50] Changed color contrast for the Text styles shortcuts in the Dropdown menu
|
16
|
+
- [#108295](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108295)
|
17
|
+
[`c28cd3716fc2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c28cd3716fc2) -
|
18
|
+
NO-ISSUE Avoid rendering double separators when positioned in a quote
|
19
|
+
- Updated dependencies
|
20
|
+
|
3
21
|
## 3.4.0
|
4
22
|
|
5
23
|
### Minor Changes
|
6
24
|
|
7
|
-
-
|
8
|
-
|
9
|
-
|
25
|
+
- [#101406](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101406)
|
26
|
+
[`6daffd65aec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6daffd65aec4) -
|
27
|
+
[ED-23298] Extract primary toolbar components to editor plugin to allow for custom ordering
|
10
28
|
|
11
29
|
### Patch Changes
|
12
30
|
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
-
|
31
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
32
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
33
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
34
|
+
- Updated dependencies
|
17
35
|
|
18
36
|
## 3.3.0
|
19
37
|
|
20
38
|
### Minor Changes
|
21
39
|
|
22
|
-
-
|
23
|
-
|
24
|
-
|
40
|
+
- [#102243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102243)
|
41
|
+
[`cfc95dac3d82`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cfc95dac3d82) -
|
42
|
+
Use new paragraph and heading NodeSpecs
|
25
43
|
|
26
44
|
## 3.2.2
|
27
45
|
|
28
46
|
### Patch Changes
|
29
47
|
|
30
|
-
-
|
31
|
-
|
32
|
-
|
48
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
49
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
50
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
33
51
|
|
34
52
|
## 3.2.1
|
35
53
|
|
36
54
|
### Patch Changes
|
37
55
|
|
38
|
-
-
|
39
|
-
|
40
|
-
|
56
|
+
- [#95938](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95938)
|
57
|
+
[`f1309fe9e31b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f1309fe9e31b) -
|
58
|
+
ECA11Y-224: Missing list markup for 'Text styles' dropdown in the main toolbar
|
41
59
|
|
42
60
|
## 3.2.0
|
43
61
|
|
44
62
|
### Minor Changes
|
45
63
|
|
46
|
-
-
|
47
|
-
|
48
|
-
|
64
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
65
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
66
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
49
67
|
|
50
68
|
### Patch Changes
|
51
69
|
|
52
|
-
-
|
70
|
+
- Updated dependencies
|
53
71
|
|
54
72
|
## 3.1.9
|
55
73
|
|
56
74
|
### Patch Changes
|
57
75
|
|
58
|
-
-
|
76
|
+
- Updated dependencies
|
59
77
|
|
60
78
|
## 3.1.8
|
61
79
|
|
62
80
|
### Patch Changes
|
63
81
|
|
64
|
-
-
|
65
|
-
|
66
|
-
|
67
|
-
-
|
82
|
+
- [#99242](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99242)
|
83
|
+
[`854acdf04f29`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/854acdf04f29) -
|
84
|
+
Adjust tooltip text for editor toolbar buttons
|
85
|
+
- Updated dependencies
|
68
86
|
|
69
87
|
## 3.1.7
|
70
88
|
|
71
89
|
### Patch Changes
|
72
90
|
|
73
|
-
-
|
74
|
-
|
75
|
-
|
91
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
92
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
93
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
76
94
|
|
77
95
|
## 3.1.6
|
78
96
|
|
79
97
|
### Patch Changes
|
80
98
|
|
81
|
-
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
99
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
100
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
101
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
102
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
103
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
86
104
|
|
87
105
|
## 3.1.5
|
88
106
|
|
89
107
|
### Patch Changes
|
90
108
|
|
91
|
-
-
|
92
|
-
|
93
|
-
|
94
|
-
-
|
109
|
+
- [#93784](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93784)
|
110
|
+
[`de2e52677025`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de2e52677025) -
|
111
|
+
ECA11Y-217 Improve editor toolbar screen reader text for text styles and color
|
112
|
+
- Updated dependencies
|
95
113
|
|
96
114
|
## 3.1.4
|
97
115
|
|
98
116
|
### Patch Changes
|
99
117
|
|
100
|
-
-
|
118
|
+
- Updated dependencies
|
101
119
|
|
102
120
|
## 3.1.3
|
103
121
|
|
104
122
|
### Patch Changes
|
105
123
|
|
106
|
-
-
|
107
|
-
|
108
|
-
|
124
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
125
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
126
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
109
127
|
|
110
128
|
## 3.1.2
|
111
129
|
|
112
130
|
### Patch Changes
|
113
131
|
|
114
|
-
-
|
115
|
-
|
116
|
-
|
132
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
133
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
134
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
117
135
|
|
118
136
|
## 3.1.1
|
119
137
|
|
120
138
|
### Patch Changes
|
121
139
|
|
122
|
-
-
|
123
|
-
|
124
|
-
|
140
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
141
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
142
|
+
Updating adf-schema version to 35.10.0
|
125
143
|
|
126
144
|
## 3.1.0
|
127
145
|
|
128
146
|
### Minor Changes
|
129
147
|
|
130
|
-
-
|
131
|
-
|
132
|
-
|
148
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
149
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
150
|
+
bumped editor-prosemirror version to 4.0.0
|
133
151
|
|
134
152
|
### Patch Changes
|
135
153
|
|
136
|
-
-
|
154
|
+
- Updated dependencies
|
137
155
|
|
138
156
|
## 3.0.35
|
139
157
|
|
140
158
|
### Patch Changes
|
141
159
|
|
142
|
-
-
|
143
|
-
|
144
|
-
|
160
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
161
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
162
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
145
163
|
|
146
164
|
## 3.0.34
|
147
165
|
|
148
166
|
### Patch Changes
|
149
167
|
|
150
|
-
-
|
151
|
-
|
152
|
-
|
153
|
-
-
|
168
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
169
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
170
|
+
Bump ADF-schema package to version 35.0.0
|
171
|
+
- Updated dependencies
|
154
172
|
|
155
173
|
## 3.0.33
|
156
174
|
|
157
175
|
### Patch Changes
|
158
176
|
|
159
|
-
-
|
160
|
-
|
161
|
-
|
162
|
-
|
177
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
178
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
179
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
180
|
+
35.7.0 to 35.8.0
|
163
181
|
|
164
182
|
## 3.0.32
|
165
183
|
|
166
184
|
### Patch Changes
|
167
185
|
|
168
|
-
-
|
169
|
-
|
170
|
-
|
186
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
187
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
188
|
+
Bump adf-schema to 35.7.0
|
171
189
|
|
172
190
|
## 3.0.31
|
173
191
|
|
174
192
|
### Patch Changes
|
175
193
|
|
176
|
-
-
|
177
|
-
|
178
|
-
|
194
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
195
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
196
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
179
197
|
|
180
198
|
## 3.0.30
|
181
199
|
|
182
200
|
### Patch Changes
|
183
201
|
|
184
|
-
-
|
185
|
-
|
186
|
-
|
202
|
+
- [#80883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80883)
|
203
|
+
[`5ecfa883d4ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ecfa883d4ba) -
|
204
|
+
React 18 types for alignment, annotation, avatar-group and blocktype plugins.
|
187
205
|
|
188
206
|
## 3.0.29
|
189
207
|
|
190
208
|
### Patch Changes
|
191
209
|
|
192
|
-
-
|
193
|
-
|
194
|
-
|
210
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
211
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
212
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
195
213
|
|
196
214
|
## 3.0.28
|
197
215
|
|
198
216
|
### Patch Changes
|
199
217
|
|
200
|
-
-
|
201
|
-
|
202
|
-
|
203
|
-
|
218
|
+
- [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518)
|
219
|
+
[`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) -
|
220
|
+
Migrates some style calls to a slightly different object syntax and other minor cleanup around
|
221
|
+
eslint rules.
|
204
222
|
|
205
223
|
## 3.0.27
|
206
224
|
|
207
225
|
### Patch Changes
|
208
226
|
|
209
|
-
-
|
210
|
-
|
211
|
-
|
212
|
-
-
|
227
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
228
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
229
|
+
ED-22219: adf-schema updated to 35.5.2
|
230
|
+
- Updated dependencies
|
213
231
|
|
214
232
|
## 3.0.26
|
215
233
|
|
216
234
|
### Patch Changes
|
217
235
|
|
218
|
-
-
|
219
|
-
|
220
|
-
|
221
|
-
-
|
236
|
+
- [#76093](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76093)
|
237
|
+
[`fc113e0c416f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc113e0c416f) -
|
238
|
+
ED-22243 handling of backspace for mediaGroup node nested in panel
|
239
|
+
- Updated dependencies
|
222
240
|
|
223
241
|
## 3.0.25
|
224
242
|
|
225
243
|
### Patch Changes
|
226
244
|
|
227
|
-
-
|
228
|
-
|
229
|
-
|
245
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
246
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
247
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
230
248
|
|
231
|
-
|
249
|
+
## WHY?
|
232
250
|
|
233
|
-
|
251
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
234
252
|
|
235
|
-
|
253
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
236
254
|
|
237
|
-
|
255
|
+
## WHAT and HOW?
|
238
256
|
|
239
|
-
|
240
|
-
|
257
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
258
|
+
`@atlaskit/editor-common/types`:
|
241
259
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
260
|
+
- InputRuleWrapper
|
261
|
+
- InputRuleHandler
|
262
|
+
- OnHandlerApply
|
263
|
+
- createRule
|
246
264
|
|
247
|
-
|
248
|
-
|
265
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
266
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
249
267
|
|
250
|
-
|
268
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
251
269
|
|
252
|
-
|
253
|
-
|
270
|
+
- createPlugin
|
271
|
+
- createInputRulePlugin
|
254
272
|
|
255
|
-
-
|
273
|
+
- Updated dependencies
|
256
274
|
|
257
275
|
## 3.0.24
|
258
276
|
|
259
277
|
### Patch Changes
|
260
278
|
|
261
|
-
-
|
279
|
+
- Updated dependencies
|
262
280
|
|
263
281
|
## 3.0.23
|
264
282
|
|
265
283
|
### Patch Changes
|
266
284
|
|
267
|
-
-
|
285
|
+
- Updated dependencies
|
268
286
|
|
269
287
|
## 3.0.22
|
270
288
|
|
271
289
|
### Patch Changes
|
272
290
|
|
273
|
-
-
|
274
|
-
|
275
|
-
|
291
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
292
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
293
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
276
294
|
|
277
295
|
## 3.0.21
|
278
296
|
|
279
297
|
### Patch Changes
|
280
298
|
|
281
|
-
-
|
282
|
-
|
283
|
-
|
299
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
300
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
301
|
+
Updating adf-schema version to 35.5.1
|
284
302
|
|
285
303
|
## 3.0.20
|
286
304
|
|
287
305
|
### Patch Changes
|
288
306
|
|
289
|
-
-
|
290
|
-
|
291
|
-
|
307
|
+
- [#68217](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68217)
|
308
|
+
[`bfd8d2ded4aa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfd8d2ded4aa) -
|
309
|
+
[ux] correctly delete the decision list inside panel having only one decision item.
|
292
310
|
|
293
311
|
## 3.0.19
|
294
312
|
|
295
313
|
### Patch Changes
|
296
314
|
|
297
|
-
-
|
315
|
+
- Updated dependencies
|
298
316
|
|
299
317
|
## 3.0.18
|
300
318
|
|
301
319
|
### Patch Changes
|
302
320
|
|
303
|
-
-
|
304
|
-
|
305
|
-
|
306
|
-
-
|
321
|
+
- [#67857](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67857)
|
322
|
+
[`9f1035441959`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f1035441959) -
|
323
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
324
|
+
- Updated dependencies
|
307
325
|
|
308
326
|
## 3.0.17
|
309
327
|
|
310
328
|
### Patch Changes
|
311
329
|
|
312
|
-
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
-
|
330
|
+
- [#67557](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67557)
|
331
|
+
[`124d0c6d5286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124d0c6d5286) -
|
332
|
+
Migrating block-type, text-color, and text-formatting to use useSharedPluginState rather than
|
333
|
+
WithPluginState. Removing unused option on default preset. Adding formattingIsPresent prop to
|
334
|
+
TextFormattingState.
|
335
|
+
- Updated dependencies
|
318
336
|
|
319
337
|
## 3.0.16
|
320
338
|
|
321
339
|
### Patch Changes
|
322
340
|
|
323
|
-
-
|
324
|
-
|
325
|
-
|
341
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
342
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
343
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
326
344
|
|
327
345
|
## 3.0.15
|
328
346
|
|
329
347
|
### Patch Changes
|
330
348
|
|
331
|
-
-
|
332
|
-
|
333
|
-
|
349
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
350
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
351
|
+
Ensure all editor plugins are marked as singletons
|
334
352
|
|
335
353
|
## 3.0.14
|
336
354
|
|
337
355
|
### Patch Changes
|
338
356
|
|
339
|
-
-
|
340
|
-
|
341
|
-
|
342
|
-
-
|
357
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
358
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
359
|
+
ED-21609 Update adf-schema to 35.3.0
|
360
|
+
- Updated dependencies
|
343
361
|
|
344
362
|
## 3.0.13
|
345
363
|
|
346
364
|
### Patch Changes
|
347
365
|
|
348
|
-
-
|
349
|
-
|
350
|
-
|
351
|
-
|
366
|
+
- [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923)
|
367
|
+
[`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) -
|
368
|
+
Remove legacy theming logic from all Editor plugin packages. Theming is still available via the
|
369
|
+
@atlaskit/tokens package.
|
352
370
|
|
353
371
|
## 3.0.12
|
354
372
|
|
355
373
|
### Patch Changes
|
356
374
|
|
357
|
-
-
|
358
|
-
|
359
|
-
|
375
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
376
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
377
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
360
378
|
|
361
379
|
## 3.0.11
|
362
380
|
|
363
381
|
### Patch Changes
|
364
382
|
|
365
|
-
-
|
366
|
-
|
367
|
-
|
368
|
-
-
|
383
|
+
- [#60534](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60534)
|
384
|
+
[`191a38f1ea23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/191a38f1ea23) -
|
385
|
+
ED-20966 Use blockQuoteWithList PMNode when 'allow-list-in-blockquote' FF is enabled
|
386
|
+
- Updated dependencies
|
369
387
|
|
370
388
|
## 3.0.10
|
371
389
|
|
372
390
|
### Patch Changes
|
373
391
|
|
374
|
-
-
|
375
|
-
|
376
|
-
|
392
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
393
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
394
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
377
395
|
|
378
396
|
## 3.0.9
|
379
397
|
|
380
398
|
### Patch Changes
|
381
399
|
|
382
|
-
-
|
383
|
-
|
384
|
-
|
400
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
401
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
402
|
+
ED-21371 Update adf-schema to 35.1.0
|
385
403
|
|
386
404
|
## 3.0.8
|
387
405
|
|
388
406
|
### Patch Changes
|
389
407
|
|
390
|
-
-
|
408
|
+
- Updated dependencies
|
391
409
|
|
392
410
|
## 3.0.7
|
393
411
|
|
394
412
|
### Patch Changes
|
395
413
|
|
396
|
-
-
|
397
|
-
|
398
|
-
|
414
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
415
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
416
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
399
417
|
|
400
418
|
## 3.0.6
|
401
419
|
|
402
420
|
### Patch Changes
|
403
421
|
|
404
|
-
-
|
405
|
-
|
406
|
-
|
422
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
423
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
424
|
+
update ADF schema
|
407
425
|
|
408
426
|
## 3.0.5
|
409
427
|
|
410
428
|
### Patch Changes
|
411
429
|
|
412
|
-
-
|
413
|
-
|
414
|
-
|
430
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
431
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
432
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
415
433
|
|
416
434
|
## 3.0.4
|
417
435
|
|
418
436
|
### Patch Changes
|
419
437
|
|
420
|
-
-
|
421
|
-
|
422
|
-
|
438
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
439
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
440
|
+
Upgrade adf-schema package to ^34.0.0
|
423
441
|
|
424
442
|
## 3.0.3
|
425
443
|
|
426
444
|
### Patch Changes
|
427
445
|
|
428
|
-
-
|
446
|
+
- Updated dependencies
|
429
447
|
|
430
448
|
## 3.0.2
|
431
449
|
|
432
450
|
### Patch Changes
|
433
451
|
|
434
|
-
-
|
435
|
-
|
436
|
-
|
437
|
-
-
|
452
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
453
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
454
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
455
|
+
- Updated dependencies
|
438
456
|
|
439
457
|
## 3.0.1
|
440
458
|
|
441
459
|
### Patch Changes
|
442
460
|
|
443
|
-
-
|
461
|
+
- Updated dependencies
|
444
462
|
|
445
463
|
## 3.0.0
|
446
464
|
|
447
465
|
### Major Changes
|
448
466
|
|
449
|
-
-
|
450
|
-
|
451
|
-
|
467
|
+
- [#42090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42090)
|
468
|
+
[`dfea93d39c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfea93d39c9) -
|
469
|
+
Replacing setBlockType action on `editor-plugin-block-type` with setTextLevel command.
|
452
470
|
|
453
|
-
|
454
|
-
|
471
|
+
WHAT/WHY?: setBlockType is only for headings/text so the naming is not clear, it is also an action
|
472
|
+
which makes it difficult to use by external consumers.
|
455
473
|
|
456
|
-
|
457
|
-
|
458
|
-
|
474
|
+
This replacement can be easily used by external consumers (ie. for custom toolbars) and also has
|
475
|
+
more type safety (for setBlockType the name parameter is any string but setTextLevel only accepts
|
476
|
+
valid values including "normal", "heading1", "heading2" etc.)
|
459
477
|
|
460
|
-
|
461
|
-
|
478
|
+
HOW?: This API at this stage should be unused by consumers to the best of our knowledge. However
|
479
|
+
if you are using it you should change as so:
|
462
480
|
|
463
|
-
|
481
|
+
Before:
|
464
482
|
|
465
|
-
|
466
|
-
|
467
|
-
|
483
|
+
```ts
|
484
|
+
api?.blockType.actions.setBlockType(blockType, inputMethod)(state, dispatch);
|
485
|
+
```
|
468
486
|
|
469
|
-
|
470
|
-
|
471
|
-
|
487
|
+
```ts
|
488
|
+
api?.core.actions.execute(api?.blockType.commands.setTextLevel(blockType, inputMethod));
|
489
|
+
```
|
472
490
|
|
473
491
|
## 2.0.0
|
474
492
|
|
475
493
|
### Major Changes
|
476
494
|
|
477
|
-
-
|
478
|
-
|
479
|
-
|
495
|
+
- [#40850](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40850)
|
496
|
+
[`e7cead0f099`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7cead0f099) - Move
|
497
|
+
shared messages to editor-common
|
480
498
|
|
481
499
|
### Patch Changes
|
482
500
|
|
483
|
-
-
|
501
|
+
- Updated dependencies
|
484
502
|
|
485
503
|
## 1.0.3
|
486
504
|
|
487
505
|
### Patch Changes
|
488
506
|
|
489
|
-
-
|
490
|
-
|
491
|
-
|
507
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
|
508
|
+
[`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
|
509
|
+
yarn changeset to packages, upgrade adf-schema
|
492
510
|
|
493
511
|
## 1.0.2
|
494
512
|
|
495
513
|
### Patch Changes
|
496
514
|
|
497
|
-
-
|
515
|
+
- Updated dependencies
|
498
516
|
|
499
517
|
## 1.0.1
|
500
518
|
|
501
519
|
### Patch Changes
|
502
520
|
|
503
|
-
-
|
521
|
+
- Updated dependencies
|
package/LICENSE.md
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
2
2
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
|
5
|
-
You may obtain a copy of the License at
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
6
5
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
8
7
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
10
|
-
distributed
|
11
|
-
|
12
|
-
|
13
|
-
limitations under the License.
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
11
|
+
License.
|
package/dist/cjs/plugin/index.js
CHANGED
@@ -127,10 +127,9 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
127
127
|
name: 'blockType',
|
128
128
|
nodes: function nodes() {
|
129
129
|
var blockquoteNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-list-in-blockquote') ? _adfSchema.blockquoteWithList : _adfSchema.blockquote;
|
130
|
-
var headingNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? _adfSchema.headingStage0 : _adfSchema.heading;
|
131
130
|
var nodes = [{
|
132
131
|
name: 'heading',
|
133
|
-
node:
|
132
|
+
node: _adfSchema.heading
|
134
133
|
}, {
|
135
134
|
name: 'blockquote',
|
136
135
|
node: blockquoteNode
|
@@ -11,5 +11,5 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _templateObject;
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
13
13
|
var blocktypeStyles = exports.blocktypeStyles = function blocktypeStyles() {
|
14
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
14
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)());
|
15
15
|
};
|
@@ -25,7 +25,9 @@ var BlockTypeButton = exports.BlockTypeButton = function BlockTypeButton(props)
|
|
25
25
|
var toolipTextStyles = props.formatMessage(_messages.toolbarMessages.textStylesTooltip);
|
26
26
|
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
27
27
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
28
|
-
selected: props.selected
|
28
|
+
selected: props.selected
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
30
|
+
,
|
29
31
|
className: "block-type-btn",
|
30
32
|
disabled: props.disabled,
|
31
33
|
onClick: props.onClick,
|
@@ -199,7 +199,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
199
199
|
formatMessage: formatMessage,
|
200
200
|
"aria-expanded": active,
|
201
201
|
blockTypeName: currentBlockType.name
|
202
|
-
}), (0, _react2.jsx)("span", {
|
202
|
+
}), !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _react2.jsx)("span", {
|
203
203
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
204
204
|
css: _styles.separatorStyles
|
205
205
|
}))
|
@@ -24,7 +24,8 @@ var blockTypeMenuItemStyle = exports.blockTypeMenuItemStyle = function blockType
|
|
24
24
|
};
|
25
25
|
};
|
26
26
|
var keyboardShortcut = exports.keyboardShortcut = (0, _react.css)(_shortcut.shortcutStyle, {
|
27
|
-
marginLeft: "var(--ds-space-200, 16px)"
|
27
|
+
marginLeft: "var(--ds-space-200, 16px)",
|
28
|
+
color: "var(--ds-icon, ".concat(_colors.N400, ")")
|
28
29
|
});
|
29
30
|
var keyboardShortcutSelect = exports.keyboardShortcutSelect = (0, _react.css)({
|
30
31
|
color: "var(--ds-icon, ".concat(_colors.N400, ")")
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { blockquote, blockquoteWithList, hardBreak, heading
|
2
|
+
import { blockquote, blockquoteWithList, hardBreak, heading } from '@atlaskit/adf-schema';
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
4
4
|
import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
|
5
5
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
@@ -113,10 +113,9 @@ const blockTypePlugin = ({
|
|
113
113
|
name: 'blockType',
|
114
114
|
nodes() {
|
115
115
|
const blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
|
116
|
-
const headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
|
117
116
|
const nodes = [{
|
118
117
|
name: 'heading',
|
119
|
-
node:
|
118
|
+
node: heading
|
120
119
|
}, {
|
121
120
|
name: 'blockquote',
|
122
121
|
node: blockquoteNode
|
@@ -3,8 +3,8 @@ import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-c
|
|
3
3
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
5
5
|
export const blocktypeStyles = () => css`
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
.ProseMirror {
|
7
|
+
${blockquoteSharedStyles};
|
8
|
+
${headingsSharedStyles()};
|
9
|
+
}
|
10
10
|
`;
|
@@ -17,7 +17,9 @@ export const BlockTypeButton = props => {
|
|
17
17
|
const toolipTextStyles = props.formatMessage(toolbarMessages.textStylesTooltip);
|
18
18
|
return jsx(ToolbarButton, {
|
19
19
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
20
|
-
selected: props.selected
|
20
|
+
selected: props.selected
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
22
|
+
,
|
21
23
|
className: "block-type-btn",
|
22
24
|
disabled: props.disabled,
|
23
25
|
onClick: props.onClick,
|
@@ -179,7 +179,7 @@ class ToolbarBlockType extends React.PureComponent {
|
|
179
179
|
formatMessage: formatMessage,
|
180
180
|
"aria-expanded": active,
|
181
181
|
blockTypeName: currentBlockType.name
|
182
|
-
}), jsx("span", {
|
182
|
+
}), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
|
183
183
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
184
184
|
css: separatorStyles
|
185
185
|
}))
|
@@ -15,7 +15,8 @@ export const blockTypeMenuItemStyle = (tagName, selected) => {
|
|
15
15
|
}, selectedStyle);
|
16
16
|
};
|
17
17
|
export const keyboardShortcut = css(shortcutStyle, {
|
18
|
-
marginLeft: "var(--ds-space-200, 16px)"
|
18
|
+
marginLeft: "var(--ds-space-200, 16px)",
|
19
|
+
color: `var(--ds-icon, ${N400})`
|
19
20
|
});
|
20
21
|
export const keyboardShortcutSelect = css({
|
21
22
|
color: `var(--ds-icon, ${N400})`
|
package/dist/esm/plugin/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
2
|
import React from 'react';
|
3
|
-
import { blockquote, blockquoteWithList, hardBreak, heading
|
3
|
+
import { blockquote, blockquoteWithList, hardBreak, heading } from '@atlaskit/adf-schema';
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
5
5
|
import { keymap, toggleBlockQuote, tooltip } from '@atlaskit/editor-common/keymaps';
|
6
6
|
import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
|
@@ -114,10 +114,9 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
|
|
114
114
|
name: 'blockType',
|
115
115
|
nodes: function nodes() {
|
116
116
|
var blockquoteNode = getBooleanFF('platform.editor.allow-list-in-blockquote') ? blockquoteWithList : blockquote;
|
117
|
-
var headingNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? headingStage0 : heading;
|
118
117
|
var nodes = [{
|
119
118
|
name: 'heading',
|
120
|
-
node:
|
119
|
+
node: heading
|
121
120
|
}, {
|
122
121
|
name: 'blockquote',
|
123
122
|
node: blockquoteNode
|
@@ -5,5 +5,5 @@ import { blockquoteSharedStyles, headingsSharedStyles } from '@atlaskit/editor-c
|
|
5
5
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Imports are not safe in an object syntax
|
7
7
|
export var blocktypeStyles = function blocktypeStyles() {
|
8
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
8
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", ";\n\t\t", ";\n\t}\n"])), blockquoteSharedStyles, headingsSharedStyles());
|
9
9
|
};
|
@@ -17,7 +17,9 @@ export var BlockTypeButton = function BlockTypeButton(props) {
|
|
17
17
|
var toolipTextStyles = props.formatMessage(toolbarMessages.textStylesTooltip);
|
18
18
|
return jsx(ToolbarButton, {
|
19
19
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
20
|
-
selected: props.selected
|
20
|
+
selected: props.selected
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
22
|
+
,
|
21
23
|
className: "block-type-btn",
|
22
24
|
disabled: props.disabled,
|
23
25
|
onClick: props.onClick,
|
@@ -193,7 +193,7 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
193
193
|
formatMessage: formatMessage,
|
194
194
|
"aria-expanded": active,
|
195
195
|
blockTypeName: currentBlockType.name
|
196
|
-
}), jsx("span", {
|
196
|
+
}), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
|
197
197
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
198
198
|
css: separatorStyles
|
199
199
|
}))
|
@@ -17,7 +17,8 @@ export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, sel
|
|
17
17
|
};
|
18
18
|
};
|
19
19
|
export var keyboardShortcut = css(shortcutStyle, {
|
20
|
-
marginLeft: "var(--ds-space-200, 16px)"
|
20
|
+
marginLeft: "var(--ds-space-200, 16px)",
|
21
|
+
color: "var(--ds-icon, ".concat(N400, ")")
|
21
22
|
});
|
22
23
|
export var keyboardShortcutSelect = css({
|
23
24
|
color: "var(--ds-icon, ".concat(N400, ")")
|
@@ -7,10 +7,7 @@ import type { BlockTypeState } from './pm-plugins/main';
|
|
7
7
|
import type { BlockTypePluginOptions } from './types';
|
8
8
|
export type BlockTypePlugin = NextEditorPlugin<'blockType', {
|
9
9
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
10
|
-
dependencies: [
|
11
|
-
OptionalPlugin<AnalyticsPlugin>,
|
12
|
-
OptionalPlugin<PrimaryToolbarPlugin>
|
13
|
-
];
|
10
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<PrimaryToolbarPlugin>];
|
14
11
|
sharedState: BlockTypeState | undefined;
|
15
12
|
actions: {
|
16
13
|
insertBlockQuote: (inputMethod: InputMethod) => Command;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.5.0",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -36,11 +36,11 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@atlaskit/adf-schema": "^36.10.7",
|
39
|
-
"@atlaskit/editor-common": "^
|
39
|
+
"@atlaskit/editor-common": "^82.0.0",
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
42
42
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
43
|
-
"@atlaskit/editor-shared-styles": "^2.
|
43
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
44
44
|
"@atlaskit/editor-tables": "^2.7.0",
|
45
45
|
"@atlaskit/icon": "^22.3.0",
|
46
46
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
@@ -62,7 +62,6 @@
|
|
62
62
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
63
63
|
"@atlaskit/ssr": "*",
|
64
64
|
"@atlaskit/visual-regression": "*",
|
65
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
66
65
|
"@testing-library/react": "^12.1.5",
|
67
66
|
"@testing-library/user-event": "^14.4.3",
|
68
67
|
"react-dom": "^16.8.0",
|
@@ -102,13 +101,9 @@
|
|
102
101
|
]
|
103
102
|
}
|
104
103
|
},
|
105
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
106
104
|
"platform-feature-flags": {
|
107
105
|
"platform.editor.allow-list-in-blockquote": {
|
108
106
|
"type": "boolean"
|
109
|
-
},
|
110
|
-
"platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
|
111
|
-
"type": "boolean"
|
112
107
|
}
|
113
108
|
}
|
114
109
|
}
|
package/report.api.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-block-type"
|
4
4
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
7
8
|
|
8
9
|
### Table of contents
|
@@ -28,35 +29,32 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
28
29
|
|
29
30
|
// @public (undocumented)
|
30
31
|
export interface BlockType {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
// (undocumented)
|
33
|
+
level?: HeadingLevelsAndNormalText;
|
34
|
+
// (undocumented)
|
35
|
+
name: string;
|
36
|
+
// (undocumented)
|
37
|
+
nodeName: string;
|
38
|
+
// (undocumented)
|
39
|
+
tagName?: string;
|
40
|
+
// (undocumented)
|
41
|
+
title: MessageDescriptor;
|
41
42
|
}
|
42
43
|
|
43
44
|
// @public (undocumented)
|
44
45
|
export type BlockTypePlugin = NextEditorPlugin<
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
) => EditorCommand;
|
58
|
-
};
|
59
|
-
}
|
46
|
+
'blockType',
|
47
|
+
{
|
48
|
+
pluginConfiguration: BlockTypePluginOptions | undefined;
|
49
|
+
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
50
|
+
sharedState: BlockTypeState | undefined;
|
51
|
+
actions: {
|
52
|
+
insertBlockQuote: (inputMethod: InputMethod) => Command;
|
53
|
+
};
|
54
|
+
commands: {
|
55
|
+
setTextLevel: (level: TextBlockTypes, inputMethod: InputMethod) => EditorCommand;
|
56
|
+
};
|
57
|
+
}
|
60
58
|
>;
|
61
59
|
|
62
60
|
// @public (undocumented)
|
@@ -64,46 +62,46 @@ export const blockTypePlugin: BlockTypePlugin;
|
|
64
62
|
|
65
63
|
// @public (undocumented)
|
66
64
|
export interface BlockTypePluginOptions {
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
65
|
+
// (undocumented)
|
66
|
+
allowBlockType?: {
|
67
|
+
exclude?: Array<AllowedBlockTypes>;
|
68
|
+
};
|
69
|
+
// (undocumented)
|
70
|
+
isUndoRedoButtonsEnabled?: boolean;
|
71
|
+
// (undocumented)
|
72
|
+
lastNodeMustBeParagraph?: boolean;
|
75
73
|
}
|
76
74
|
|
77
75
|
// @public (undocumented)
|
78
76
|
export type BlockTypeState = {
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
77
|
+
currentBlockType: BlockType;
|
78
|
+
blockTypesDisabled: boolean;
|
79
|
+
availableBlockTypes: BlockType[];
|
80
|
+
availableWrapperBlockTypes: BlockType[];
|
83
81
|
};
|
84
82
|
|
85
83
|
// @public (undocumented)
|
86
84
|
export type DropdownItem = MenuItem & {
|
87
|
-
|
85
|
+
value: BlockType;
|
88
86
|
};
|
89
87
|
|
90
88
|
// @public (undocumented)
|
91
89
|
export type InputMethod =
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
90
|
+
| INPUT_METHOD.FORMATTING
|
91
|
+
| INPUT_METHOD.INSERT_MENU
|
92
|
+
| INPUT_METHOD.KEYBOARD
|
93
|
+
| INPUT_METHOD.SHORTCUT
|
94
|
+
| INPUT_METHOD.TOOLBAR;
|
97
95
|
|
98
96
|
// @public (undocumented)
|
99
97
|
export type TextBlockTypes =
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
98
|
+
| 'heading1'
|
99
|
+
| 'heading2'
|
100
|
+
| 'heading3'
|
101
|
+
| 'heading4'
|
102
|
+
| 'heading5'
|
103
|
+
| 'heading6'
|
104
|
+
| 'normal';
|
107
105
|
|
108
106
|
// (No @packageDocumentation comment for this package)
|
109
107
|
```
|
@@ -116,8 +114,8 @@ export type TextBlockTypes =
|
|
116
114
|
|
117
115
|
```json
|
118
116
|
{
|
119
|
-
|
120
|
-
|
117
|
+
"react": "^16.8.0",
|
118
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
121
119
|
}
|
122
120
|
```
|
123
121
|
|