@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 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,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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - Updated dependencies
70
+ - Updated dependencies
53
71
 
54
72
  ## 3.1.9
55
73
 
56
74
  ### Patch Changes
57
75
 
58
- - Updated dependencies
76
+ - Updated dependencies
59
77
 
60
78
  ## 3.1.8
61
79
 
62
80
  ### Patch Changes
63
81
 
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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - Updated dependencies
118
+ - Updated dependencies
101
119
 
102
120
  ## 3.1.3
103
121
 
104
122
  ### Patch Changes
105
123
 
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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - Updated dependencies
154
+ - Updated dependencies
137
155
 
138
156
  ## 3.0.35
139
157
 
140
158
  ### Patch Changes
141
159
 
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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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`
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
- - [#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.
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
- - [#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
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
- - [#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.
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
- - [#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
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
- - [#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
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
- - [#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.
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
- ## WHY?
249
+ ## WHY?
232
250
 
233
- Removing editor-common dependencies from prosemirror-input-rules package.
251
+ Removing editor-common dependencies from prosemirror-input-rules package.
234
252
 
235
- This makes it easier for editor updates because it simplifies our dependency graph.
253
+ This makes it easier for editor updates because it simplifies our dependency graph.
236
254
 
237
- ## WHAT and HOW?
255
+ ## WHAT and HOW?
238
256
 
239
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
240
- `@atlaskit/editor-common/types`:
257
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
258
+ `@atlaskit/editor-common/types`:
241
259
 
242
- - InputRuleWrapper
243
- - InputRuleHandler
244
- - OnHandlerApply
245
- - createRule
260
+ - InputRuleWrapper
261
+ - InputRuleHandler
262
+ - OnHandlerApply
263
+ - createRule
246
264
 
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( ... ))`).
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
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
268
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
251
269
 
252
- - createPlugin
253
- - createInputRulePlugin
270
+ - createPlugin
271
+ - createInputRulePlugin
254
272
 
255
- - Updated dependencies
273
+ - Updated dependencies
256
274
 
257
275
  ## 3.0.24
258
276
 
259
277
  ### Patch Changes
260
278
 
261
- - Updated dependencies
279
+ - Updated dependencies
262
280
 
263
281
  ## 3.0.23
264
282
 
265
283
  ### Patch Changes
266
284
 
267
- - Updated dependencies
285
+ - Updated dependencies
268
286
 
269
287
  ## 3.0.22
270
288
 
271
289
  ### Patch Changes
272
290
 
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
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
- - [#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
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
- - [#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.
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
- - Updated dependencies
315
+ - Updated dependencies
298
316
 
299
317
  ## 3.0.18
300
318
 
301
319
  ### Patch Changes
302
320
 
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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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.
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
- - [#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
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
- - [#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
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
- - [#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
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
- - [#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
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
- - Updated dependencies
408
+ - Updated dependencies
391
409
 
392
410
  ## 3.0.7
393
411
 
394
412
  ### Patch Changes
395
413
 
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).
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
- - [#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
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
- - [#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
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
- - [#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
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
- - Updated dependencies
446
+ - Updated dependencies
429
447
 
430
448
  ## 3.0.2
431
449
 
432
450
  ### Patch Changes
433
451
 
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
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
- - Updated dependencies
461
+ - Updated dependencies
444
462
 
445
463
  ## 3.0.0
446
464
 
447
465
  ### Major Changes
448
466
 
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.
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
- 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.
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
- 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.)
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
- 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:
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
- Before:
481
+ Before:
464
482
 
465
- ```ts
466
- api?.blockType.actions.setBlockType(blockType, inputMethod)(state, dispatch);
467
- ```
483
+ ```ts
484
+ api?.blockType.actions.setBlockType(blockType, inputMethod)(state, dispatch);
485
+ ```
468
486
 
469
- ```ts
470
- api?.core.actions.execute(api?.blockType.commands.setTextLevel(blockType, inputMethod));
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
- - [#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
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
- - Updated dependencies
501
+ - Updated dependencies
484
502
 
485
503
  ## 1.0.3
486
504
 
487
505
  ### Patch Changes
488
506
 
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
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
- - Updated dependencies
515
+ - Updated dependencies
498
516
 
499
517
  ## 1.0.1
500
518
 
501
519
  ### Patch Changes
502
520
 
503
- - Updated dependencies
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
- 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.
@@ -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: headingNode
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 .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, ")")
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { blockquote, blockquoteWithList, hardBreak, heading, headingStage0 } from '@atlaskit/adf-schema';
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: headingNode
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
- .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})`
@@ -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, headingStage0 } from '@atlaskit/adf-schema';
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: headingNode
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 .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.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": "^81.0.0",
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.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",
@@ -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 [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