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