@atlaskit/editor-plugin-text-formatting 1.7.0 → 1.7.1

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,7 +1,7 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/consistent-type-imports': 'warn',
4
- 'no-duplicate-imports': 'off',
5
- '@typescript-eslint/no-duplicate-imports': 'error',
6
- },
2
+ rules: {
3
+ '@typescript-eslint/consistent-type-imports': 'warn',
4
+ 'no-duplicate-imports': 'off',
5
+ '@typescript-eslint/no-duplicate-imports': 'error',
6
+ },
7
7
  };
package/CHANGELOG.md CHANGED
@@ -1,604 +1,612 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105074](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105074)
8
+ [`546eb6455635`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/546eb6455635) -
9
+ [ux] ED-23044 - The inlineCards with URL should be simplified to url when them are wrapped to
10
+ inline codemark
11
+
3
12
  ## 1.7.0
4
13
 
5
14
  ### Minor Changes
6
15
 
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
16
+ - [#101406](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101406)
17
+ [`6daffd65aec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6daffd65aec4) -
18
+ [ED-23298] Extract primary toolbar components to editor plugin to allow for custom ordering
10
19
 
11
20
  ### Patch Changes
12
21
 
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
22
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
23
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
24
+ [ED-23332] Update adf-schema package to 36.10.1
25
+ - Updated dependencies
17
26
 
18
27
  ## 1.6.1
19
28
 
20
29
  ### Patch Changes
21
30
 
22
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
23
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
24
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
31
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
32
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
33
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
25
34
 
26
35
  ## 1.6.0
27
36
 
28
37
  ### Minor Changes
29
38
 
30
- - [#100553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100553)
31
- [`e0c2a4b9c8ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0c2a4b9c8ae) -
32
- [ED-23157] Clear background color (= highlights) when clearing the formatting on a selection
39
+ - [#100553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100553)
40
+ [`e0c2a4b9c8ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0c2a4b9c8ae) -
41
+ [ED-23157] Clear background color (= highlights) when clearing the formatting on a selection
33
42
 
34
43
  ### Patch Changes
35
44
 
36
- - Updated dependencies
45
+ - Updated dependencies
37
46
 
38
47
  ## 1.5.0
39
48
 
40
49
  ### Minor Changes
41
50
 
42
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
43
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
44
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
51
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
52
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
53
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
45
54
 
46
55
  ### Patch Changes
47
56
 
48
- - Updated dependencies
57
+ - Updated dependencies
49
58
 
50
59
  ## 1.4.7
51
60
 
52
61
  ### Patch Changes
53
62
 
54
- - Updated dependencies
63
+ - Updated dependencies
55
64
 
56
65
  ## 1.4.6
57
66
 
58
67
  ### Patch Changes
59
68
 
60
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
61
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
62
- [ED-22282] Bump adf-schema to 36.1.0
69
+ - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
70
+ [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
71
+ [ED-22282] Bump adf-schema to 36.1.0
63
72
 
64
73
  ## 1.4.5
65
74
 
66
75
  ### Patch Changes
67
76
 
68
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
69
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
70
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
71
- language triggering composition on an empty line.This was fixed in a patch bump of
72
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
77
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
78
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
79
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
80
+ language triggering composition on an empty line.This was fixed in a patch bump of
81
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
73
82
 
74
83
  ## 1.4.4
75
84
 
76
85
  ### Patch Changes
77
86
 
78
- - Updated dependencies
87
+ - Updated dependencies
79
88
 
80
89
  ## 1.4.3
81
90
 
82
91
  ### Patch Changes
83
92
 
84
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
85
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
86
- [ED-23102] Bump ADF schema to version 35.12.2
93
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
94
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
95
+ [ED-23102] Bump ADF schema to version 35.12.2
87
96
 
88
97
  ## 1.4.2
89
98
 
90
99
  ### Patch Changes
91
100
 
92
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
93
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
94
- [ED-23097] Bump ADF schema to version 35.12.1
101
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
102
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
103
+ [ED-23097] Bump ADF schema to version 35.12.1
95
104
 
96
105
  ## 1.4.1
97
106
 
98
107
  ### Patch Changes
99
108
 
100
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
101
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
102
- Updating adf-schema version to 35.10.0
109
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
110
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
111
+ Updating adf-schema version to 35.10.0
103
112
 
104
113
  ## 1.4.0
105
114
 
106
115
  ### Minor Changes
107
116
 
108
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
109
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
110
- bumped editor-prosemirror version to 4.0.0
117
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
118
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
119
+ bumped editor-prosemirror version to 4.0.0
111
120
 
112
121
  ### Patch Changes
113
122
 
114
- - Updated dependencies
123
+ - Updated dependencies
115
124
 
116
125
  ## 1.3.5
117
126
 
118
127
  ### Patch Changes
119
128
 
120
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
121
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
122
- Bump adf-schema to 35.9.2 to support table alignment options
129
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
130
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
131
+ Bump adf-schema to 35.9.2 to support table alignment options
123
132
 
124
133
  ## 1.3.4
125
134
 
126
135
  ### Patch Changes
127
136
 
128
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
129
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
130
- Bump ADF-schema package to version 35.0.0
131
- - Updated dependencies
137
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
138
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
139
+ Bump ADF-schema package to version 35.0.0
140
+ - Updated dependencies
132
141
 
133
142
  ## 1.3.3
134
143
 
135
144
  ### Patch Changes
136
145
 
137
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
138
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
139
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
140
- 35.7.0 to 35.8.0
146
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
147
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
148
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
149
+ 35.7.0 to 35.8.0
141
150
 
142
151
  ## 1.3.2
143
152
 
144
153
  ### Patch Changes
145
154
 
146
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
147
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
148
- Bump adf-schema to 35.7.0
155
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
156
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
157
+ Bump adf-schema to 35.7.0
149
158
 
150
159
  ## 1.3.1
151
160
 
152
161
  ### Patch Changes
153
162
 
154
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
155
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
156
- Upgrade Typescript from `4.9.5` to `5.4.2`
163
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
164
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
165
+ Upgrade Typescript from `4.9.5` to `5.4.2`
157
166
 
158
167
  ## 1.3.0
159
168
 
160
169
  ### Minor Changes
161
170
 
162
- - [#82499](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82499)
163
- [`cbd66fd38b62`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbd66fd38b62) -
164
- Add option to disable strikethrough on text-formatting via disableStrikethrough.
171
+ - [#82499](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82499)
172
+ [`cbd66fd38b62`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbd66fd38b62) -
173
+ Add option to disable strikethrough on text-formatting via disableStrikethrough.
165
174
 
166
175
  ### Patch Changes
167
176
 
168
- - Updated dependencies
177
+ - Updated dependencies
169
178
 
170
179
  ## 1.2.4
171
180
 
172
181
  ### Patch Changes
173
182
 
174
- - [#78492](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78492)
175
- [`3b0b93acfd19`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3b0b93acfd19) -
176
- [ux] [CAMPTASKS-123] faulty formatting state for inline nodes
183
+ - [#78492](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78492)
184
+ [`3b0b93acfd19`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3b0b93acfd19) -
185
+ [ux] [CAMPTASKS-123] faulty formatting state for inline nodes
177
186
 
178
187
  ## 1.2.3
179
188
 
180
189
  ### Patch Changes
181
190
 
182
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
183
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
184
- ED-22553 Updating adf-schema version to 35.6.0
191
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
192
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
193
+ ED-22553 Updating adf-schema version to 35.6.0
185
194
 
186
195
  ## 1.2.2
187
196
 
188
197
  ### Patch Changes
189
198
 
190
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
191
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
192
- ED-22219: adf-schema updated to 35.5.2
193
- - Updated dependencies
199
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
200
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
201
+ ED-22219: adf-schema updated to 35.5.2
202
+ - Updated dependencies
194
203
 
195
204
  ## 1.2.1
196
205
 
197
206
  ### Patch Changes
198
207
 
199
- - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
200
- [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
201
- MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
208
+ - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
209
+ [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
210
+ MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
202
211
 
203
- ## WHY?
212
+ ## WHY?
204
213
 
205
- Removing editor-common dependencies from prosemirror-input-rules package.
214
+ Removing editor-common dependencies from prosemirror-input-rules package.
206
215
 
207
- This makes it easier for editor updates because it simplifies our dependency graph.
216
+ This makes it easier for editor updates because it simplifies our dependency graph.
208
217
 
209
- ## WHAT and HOW?
218
+ ## WHAT and HOW?
210
219
 
211
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
212
- `@atlaskit/editor-common/types`:
220
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
221
+ `@atlaskit/editor-common/types`:
213
222
 
214
- - InputRuleWrapper
215
- - InputRuleHandler
216
- - OnHandlerApply
217
- - createRule
223
+ - InputRuleWrapper
224
+ - InputRuleHandler
225
+ - OnHandlerApply
226
+ - createRule
218
227
 
219
- These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
220
- need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
228
+ These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
229
+ need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
221
230
 
222
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
231
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
223
232
 
224
- - createPlugin
225
- - createInputRulePlugin
233
+ - createPlugin
234
+ - createInputRulePlugin
226
235
 
227
- - Updated dependencies
236
+ - Updated dependencies
228
237
 
229
238
  ## 1.2.0
230
239
 
231
240
  ### Minor Changes
232
241
 
233
- - [#75020](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75020)
234
- [`56d9ebc6e467`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/56d9ebc6e467) -
235
- [ux] ECA11Y-206: Separators fix
242
+ - [#75020](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75020)
243
+ [`56d9ebc6e467`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/56d9ebc6e467) -
244
+ [ux] ECA11Y-206: Separators fix
236
245
 
237
246
  ## 1.1.0
238
247
 
239
248
  ### Minor Changes
240
249
 
241
- - [#73123](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73123)
242
- [`9fd7b5a5e323`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9fd7b5a5e323) -
243
- ECA11Y-206: added role group and aria labels
250
+ - [#73123](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73123)
251
+ [`9fd7b5a5e323`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9fd7b5a5e323) -
252
+ ECA11Y-206: added role group and aria labels
244
253
 
245
254
  ### Patch Changes
246
255
 
247
- - Updated dependencies
256
+ - Updated dependencies
248
257
 
249
258
  ## 1.0.1
250
259
 
251
260
  ### Patch Changes
252
261
 
253
- - Updated dependencies
262
+ - Updated dependencies
254
263
 
255
264
  ## 1.0.0
256
265
 
257
266
  ### Major Changes
258
267
 
259
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
260
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
261
- This changeset exists to bump all editor plugins that currently don't have a major version. This
262
- is to address an issue with Jira plugin consumption.
268
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
269
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
270
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
271
+ is to address an issue with Jira plugin consumption.
263
272
 
264
273
  ### Patch Changes
265
274
 
266
- - Updated dependencies
275
+ - Updated dependencies
267
276
 
268
277
  ## 0.4.26
269
278
 
270
279
  ### Patch Changes
271
280
 
272
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
273
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
274
- Upgrading @atlaskit/editor-prosemirror dependency
281
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
282
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
283
+ Upgrading @atlaskit/editor-prosemirror dependency
275
284
 
276
285
  ## 0.4.25
277
286
 
278
287
  ### Patch Changes
279
288
 
280
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
281
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
282
- Updating adf-schema version to 35.5.1
289
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
290
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
291
+ Updating adf-schema version to 35.5.1
283
292
 
284
293
  ## 0.4.24
285
294
 
286
295
  ### Patch Changes
287
296
 
288
- - Updated dependencies
297
+ - Updated dependencies
289
298
 
290
299
  ## 0.4.23
291
300
 
292
301
  ### Patch Changes
293
302
 
294
- - [#67557](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67557)
295
- [`124d0c6d5286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124d0c6d5286) -
296
- Migrating block-type, text-color, and text-formatting to use useSharedPluginState rather than
297
- WithPluginState. Removing unused option on default preset. Adding formattingIsPresent prop to
298
- TextFormattingState.
299
- - Updated dependencies
303
+ - [#67557](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67557)
304
+ [`124d0c6d5286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124d0c6d5286) -
305
+ Migrating block-type, text-color, and text-formatting to use useSharedPluginState rather than
306
+ WithPluginState. Removing unused option on default preset. Adding formattingIsPresent prop to
307
+ TextFormattingState.
308
+ - Updated dependencies
300
309
 
301
310
  ## 0.4.22
302
311
 
303
312
  ### Patch Changes
304
313
 
305
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
306
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
307
- ED-21609 Update adf-schema to 35.3.0
308
- - Updated dependencies
314
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
315
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
316
+ ED-21609 Update adf-schema to 35.3.0
317
+ - Updated dependencies
309
318
 
310
319
  ## 0.4.21
311
320
 
312
321
  ### Patch Changes
313
322
 
314
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
315
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
316
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
323
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
324
+ [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
325
+ [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
317
326
 
318
327
  ## 0.4.20
319
328
 
320
329
  ### Patch Changes
321
330
 
322
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
323
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
324
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
331
+ - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
332
+ [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
333
+ ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
325
334
 
326
335
  ## 0.4.19
327
336
 
328
337
  ### Patch Changes
329
338
 
330
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
331
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
332
- ED-21371 Update adf-schema to 35.1.0
339
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
340
+ [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
341
+ ED-21371 Update adf-schema to 35.1.0
333
342
 
334
343
  ## 0.4.18
335
344
 
336
345
  ### Patch Changes
337
346
 
338
- - Updated dependencies
347
+ - Updated dependencies
339
348
 
340
349
  ## 0.4.17
341
350
 
342
351
  ### Patch Changes
343
352
 
344
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
345
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
346
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
353
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
354
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
355
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
347
356
 
348
357
  ## 0.4.16
349
358
 
350
359
  ### Patch Changes
351
360
 
352
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
353
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
354
- update ADF schema
361
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
362
+ [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
363
+ update ADF schema
355
364
 
356
365
  ## 0.4.15
357
366
 
358
367
  ### Patch Changes
359
368
 
360
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
361
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
362
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
369
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
370
+ [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
371
+ ED-21266: Updated @atlaskit/adf-schema to 34.0.1
363
372
 
364
373
  ## 0.4.14
365
374
 
366
375
  ### Patch Changes
367
376
 
368
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
369
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
370
- ED-20971 Upgrade adf-schema package to ^34.0.0
377
+ - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
378
+ [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
379
+ Upgrade adf-schema package to ^34.0.0
371
380
 
372
381
  ## 0.4.13
373
382
 
374
383
  ### Patch Changes
375
384
 
376
- - Updated dependencies
385
+ - Updated dependencies
377
386
 
378
387
  ## 0.4.12
379
388
 
380
389
  ### Patch Changes
381
390
 
382
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
383
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
384
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
385
- - Updated dependencies
391
+ - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
392
+ [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
393
+ Upgrade ADF schema version to 33.2.3 for MBE nodes.
394
+ - Updated dependencies
386
395
 
387
396
  ## 0.4.11
388
397
 
389
398
  ### Patch Changes
390
399
 
391
- - [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
392
- [`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) -
393
- Extract code-block plugin from editor-core as `@atlaskit/editor-plugin-code-block`.
400
+ - [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
401
+ [`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) - Extract
402
+ code-block plugin from editor-core as `@atlaskit/editor-plugin-code-block`.
394
403
 
395
404
  ## 0.4.10
396
405
 
397
406
  ### Patch Changes
398
407
 
399
- - [#42570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42570)
400
- [`d7ff4d590d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7ff4d590d7) -
401
- ED-20023: Adding check for undefined item in dropdown menu
408
+ - [#42570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42570)
409
+ [`d7ff4d590d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7ff4d590d7) -
410
+ ED-20023: Adding check for undefined item in dropdown menu
402
411
 
403
412
  ## 0.4.9
404
413
 
405
414
  ### Patch Changes
406
415
 
407
- - Updated dependencies
416
+ - Updated dependencies
408
417
 
409
418
  ## 0.4.8
410
419
 
411
420
  ### Patch Changes
412
421
 
413
- - [#41634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41634)
414
- [`e7cd20932b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7cd20932b9) - on
415
- windows, toggles mark when the capslock is on
422
+ - [#41634](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41634)
423
+ [`e7cd20932b9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7cd20932b9) - on
424
+ windows, toggles mark when the capslock is on
416
425
 
417
426
  ## 0.4.7
418
427
 
419
428
  ### Patch Changes
420
429
 
421
- - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
422
- [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) -
423
- Connect yarn changeset to packages, upgrade adf-schema
430
+ - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
431
+ [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
432
+ yarn changeset to packages, upgrade adf-schema
424
433
 
425
434
  ## 0.4.6
426
435
 
427
436
  ### Patch Changes
428
437
 
429
- - Updated dependencies
438
+ - Updated dependencies
430
439
 
431
440
  ## 0.4.5
432
441
 
433
442
  ### Patch Changes
434
443
 
435
- - [#39984](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39984)
436
- [`37c62369dae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37c62369dae) -
437
- NO-ISSUE Import doc builder types from editor-common
444
+ - [#39984](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39984)
445
+ [`37c62369dae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37c62369dae) - NO-ISSUE
446
+ Import doc builder types from editor-common
438
447
 
439
448
  ## 0.4.4
440
449
 
441
450
  ### Patch Changes
442
451
 
443
- - Updated dependencies
452
+ - Updated dependencies
444
453
 
445
454
  ## 0.4.3
446
455
 
447
456
  ### Patch Changes
448
457
 
449
- - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
450
- [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
451
- adf-schema from AFE and rely on npm package for adf-schema
452
- - [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
453
- adf-schema, use published version
458
+ - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
459
+ [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
460
+ adf-schema from AFE and rely on npm package for adf-schema
461
+ - [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
462
+ adf-schema, use published version
454
463
 
455
464
  ## 0.4.2
456
465
 
457
466
  ### Patch Changes
458
467
 
459
- - [#39628](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39628)
460
- [`1b66c23221e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1b66c23221e) - Fix
461
- missing analytics parameter in media plugin.
468
+ - [#39628](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39628)
469
+ [`1b66c23221e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1b66c23221e) - Fix
470
+ missing analytics parameter in media plugin.
462
471
 
463
472
  ## 0.4.1
464
473
 
465
474
  ### Patch Changes
466
475
 
467
- - [#39304](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39304)
468
- [`6acf9830b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6acf9830b36) - Update
469
- feature flags plugin (@atlaskit/editor-plugin-feature-flags) to use a named export rather than
470
- default export to match other plugins.
476
+ - [#39304](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39304)
477
+ [`6acf9830b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6acf9830b36) - Update
478
+ feature flags plugin (@atlaskit/editor-plugin-feature-flags) to use a named export rather than
479
+ default export to match other plugins.
471
480
 
472
- ```ts
473
- // Before
474
- import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
481
+ ```ts
482
+ // Before
483
+ import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
475
484
 
476
- // After
477
- import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
478
- ```
485
+ // After
486
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
487
+ ```
479
488
 
480
489
  ## 0.4.0
481
490
 
482
491
  ### Minor Changes
483
492
 
484
- - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
485
- [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) -
486
- Updating all plugins with minor version to correct issue with semver.
493
+ - [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
494
+ [`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
495
+ all plugins with minor version to correct issue with semver.
487
496
 
488
497
  ### Patch Changes
489
498
 
490
- - Updated dependencies
499
+ - Updated dependencies
491
500
 
492
501
  ## 0.3.2
493
502
 
494
503
  ### Patch Changes
495
504
 
496
- - [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
497
- [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) -
498
- Removing `dependencies` prop from PluginInjectionAPI and changing signature of
499
- `NextEditorPlugin`.
505
+ - [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
506
+ [`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
507
+ `dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
500
508
 
501
- Previously a `NextEditorPlugin` would be consumed as so:
509
+ Previously a `NextEditorPlugin` would be consumed as so:
502
510
 
503
- ```ts
504
- const plugin: NextEditorPlugin< ... > = (config, api) => {
505
- // Can use api like so:
506
- api.dependencies.core.actions.execute( ... )
507
- return { ... }
508
- }
509
- ```
511
+ ```ts
512
+ const plugin: NextEditorPlugin< ... > = (config, api) => {
513
+ // Can use api like so:
514
+ api.dependencies.core.actions.execute( ... )
515
+ return { ... }
516
+ }
517
+ ```
510
518
 
511
- Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
512
- `dependencies` prop:
519
+ Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
520
+ `dependencies` prop:
513
521
 
514
- ```ts
515
- const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
516
- // Can use api like so:
517
- api.core.actions.execute( ... )
518
- return { ... }
519
- }
520
- ```
522
+ ```ts
523
+ const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
524
+ // Can use api like so:
525
+ api.core.actions.execute( ... )
526
+ return { ... }
527
+ }
528
+ ```
521
529
 
522
- - Updated dependencies
530
+ - Updated dependencies
523
531
 
524
532
  ## 0.3.1
525
533
 
526
534
  ### Patch Changes
527
535
 
528
- - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
529
- [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
530
- atlaskit docs to all existing plugins.
536
+ - [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
537
+ [`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
538
+ atlaskit docs to all existing plugins.
531
539
 
532
540
  ## 0.3.0
533
541
 
534
542
  ### Minor Changes
535
543
 
536
- - [#39023](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39023)
537
- [`4795a87a349`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4795a87a349) -
538
- Migrating some actions of `editor-plugin-list` to commands. Adding sharedState for
539
- `editor-plugin-text-formatting`.
544
+ - [#39023](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39023)
545
+ [`4795a87a349`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4795a87a349) -
546
+ Migrating some actions of `editor-plugin-list` to commands. Adding sharedState for
547
+ `editor-plugin-text-formatting`.
540
548
 
541
549
  ## 0.2.5
542
550
 
543
551
  ### Patch Changes
544
552
 
545
- - [#38976](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38976)
546
- [`33cb07de05f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33cb07de05f) - change
547
- adf-schema to fixed versioning
553
+ - [#38976](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38976)
554
+ [`33cb07de05f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33cb07de05f) - change
555
+ adf-schema to fixed versioning
548
556
 
549
557
  ## 0.2.4
550
558
 
551
559
  ### Patch Changes
552
560
 
553
- - [#38808](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38808)
554
- [`967f4819f58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967f4819f58) -
555
- Introduce core plugin that is always injected into the pluginInjectionApi. This has a new action
556
- `execute` that replaces the existing `executeCommand` that was called from the
557
- `pluginInjectionApi`.
558
- - Updated dependencies
561
+ - [#38808](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38808)
562
+ [`967f4819f58`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967f4819f58) -
563
+ Introduce core plugin that is always injected into the pluginInjectionApi. This has a new action
564
+ `execute` that replaces the existing `executeCommand` that was called from the
565
+ `pluginInjectionApi`.
566
+ - Updated dependencies
559
567
 
560
568
  ## 0.2.3
561
569
 
562
570
  ### Patch Changes
563
571
 
564
- - [#38577](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38577)
565
- [`f12aff135b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f12aff135b6) -
566
- Extract Composition Plugin
572
+ - [#38577](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38577)
573
+ [`f12aff135b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f12aff135b6) - Extract
574
+ Composition Plugin
567
575
 
568
576
  ## 0.2.2
569
577
 
570
578
  ### Patch Changes
571
579
 
572
- - [#38495](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38495)
573
- [`24fc3925d73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24fc3925d73) - Add a
574
- new hook called `usePreset` accesed via `@atlaskit/editor-core/use-preset`. This hook can be
575
- used to safely access state and commands from outside the editor using `EditorContext`.
576
- - Updated dependencies
580
+ - [#38495](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38495)
581
+ [`24fc3925d73`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24fc3925d73) - Add a
582
+ new hook called `usePreset` accesed via `@atlaskit/editor-core/use-preset`. This hook can be used
583
+ to safely access state and commands from outside the editor using `EditorContext`.
584
+ - Updated dependencies
577
585
 
578
586
  ## 0.2.1
579
587
 
580
588
  ### Patch Changes
581
589
 
582
- - [#38679](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38679)
583
- [`5365e42ef97`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5365e42ef97) -
584
- cleaned up more of the \* as keymaps imports to enable better tree-shaking
590
+ - [#38679](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38679)
591
+ [`5365e42ef97`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5365e42ef97) - cleaned
592
+ up more of the \* as keymaps imports to enable better tree-shaking
585
593
 
586
594
  ## 0.2.0
587
595
 
588
596
  ### Minor Changes
589
597
 
590
- - [#38497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38497)
591
- [`43c51e0a282`](https://bitbucket.org/atlassian/atlassian-frontend/commits/43c51e0a282) -
592
- [ED-19431] Migrate all text-formatting plugin actions over to plugin commands
598
+ - [#38497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38497)
599
+ [`43c51e0a282`](https://bitbucket.org/atlassian/atlassian-frontend/commits/43c51e0a282) -
600
+ [ED-19431] Migrate all text-formatting plugin actions over to plugin commands
593
601
 
594
602
  ### Patch Changes
595
603
 
596
- - Updated dependencies
604
+ - Updated dependencies
597
605
 
598
606
  ## 0.1.1
599
607
 
600
608
  ### Patch Changes
601
609
 
602
- - [#38544](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38544)
603
- [`f3728ec49ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3728ec49ab) -
604
- NO-ISSUE Switched analytics plugin to prod dependency to avoid type issues in CI
610
+ - [#38544](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38544)
611
+ [`f3728ec49ab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f3728ec49ab) - NO-ISSUE
612
+ Switched analytics plugin to prod dependency to avoid type issues in CI
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.
@@ -20,6 +20,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _mark = require("@atlaskit/editor-common/mark");
21
21
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
22
22
  var _utils = require("@atlaskit/editor-common/utils");
23
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
24
  var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
24
25
  var _ValidCombinations;
25
26
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
@@ -95,7 +96,7 @@ function addMark(markType, schema, char) {
95
96
  return null;
96
97
  }
97
98
  if (markType.name === 'code') {
98
- (0, _mark.transformSmartCharsMentionsAndEmojis)(tr.mapping.map(start), tr.mapping.map(end), tr);
99
+ (0, _platformFeatureFlags.getBooleanFF)('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? (0, _mark.transformNonTextNodesToText)(tr.mapping.map(start), tr.mapping.map(end), tr) : (0, _mark.transformSmartCharsMentionsAndEmojis)(tr.mapping.map(start), tr.mapping.map(end), tr);
99
100
  }
100
101
  var mappedStart = tr.mapping.map(start);
101
102
  var mappedEnd = tr.mapping.map(end);
@@ -127,7 +127,9 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
127
127
  (0, _react2.jsx)("span", {
128
128
  css: _styles.buttonGroupStyle
129
129
  }, (0, _react2.jsx)("div", {
130
- role: "group",
130
+ role: "group"
131
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
132
+ ,
131
133
  className: 'js-text-format-wrap',
132
134
  "aria-label": labelTextFormat
133
135
  }, message && (0, _react2.jsx)(_ui.Announcer, {
@@ -1,7 +1,8 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import { transformSmartCharsMentionsAndEmojis } from '@atlaskit/editor-common/mark';
2
+ import { transformNonTextNodesToText, transformSmartCharsMentionsAndEmojis } from '@atlaskit/editor-common/mark';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
5
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
6
  import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
6
7
  var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
7
8
  ValidAutoformatChars["STRONG"] = "__";
@@ -83,7 +84,7 @@ function addMark(markType, schema, char) {
83
84
  return null;
84
85
  }
85
86
  if (markType.name === 'code') {
86
- transformSmartCharsMentionsAndEmojis(tr.mapping.map(start), tr.mapping.map(end), tr);
87
+ getBooleanFF('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr) : transformSmartCharsMentionsAndEmojis(tr.mapping.map(start), tr.mapping.map(end), tr);
87
88
  }
88
89
  const mappedStart = tr.mapping.map(start);
89
90
  const mappedEnd = tr.mapping.map(end);
@@ -114,7 +114,9 @@ const ToolbarFormatting = ({
114
114
  jsx("span", {
115
115
  css: buttonGroupStyle
116
116
  }, jsx("div", {
117
- role: "group",
117
+ role: "group"
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
119
+ ,
118
120
  className: 'js-text-format-wrap',
119
121
  "aria-label": labelTextFormat
120
122
  }, message && jsx(Announcer, {
@@ -11,9 +11,10 @@ var _ValidCombinations;
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
14
- import { transformSmartCharsMentionsAndEmojis } from '@atlaskit/editor-common/mark';
14
+ import { transformNonTextNodesToText, transformSmartCharsMentionsAndEmojis } from '@atlaskit/editor-common/mark';
15
15
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
16
16
  import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
17
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
18
  import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
18
19
  var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
19
20
  ValidAutoformatChars["STRONG"] = "__";
@@ -86,7 +87,7 @@ function addMark(markType, schema, char) {
86
87
  return null;
87
88
  }
88
89
  if (markType.name === 'code') {
89
- transformSmartCharsMentionsAndEmojis(tr.mapping.map(start), tr.mapping.map(end), tr);
90
+ getBooleanFF('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr) : transformSmartCharsMentionsAndEmojis(tr.mapping.map(start), tr.mapping.map(end), tr);
90
91
  }
91
92
  var mappedStart = tr.mapping.map(start);
92
93
  var mappedEnd = tr.mapping.map(end);
@@ -119,7 +119,9 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
119
119
  jsx("span", {
120
120
  css: buttonGroupStyle
121
121
  }, jsx("div", {
122
- role: "group",
122
+ role: "group"
123
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
124
+ ,
123
125
  className: 'js-text-format-wrap',
124
126
  "aria-label": labelTextFormat
125
127
  }, message && jsx(Announcer, {
@@ -4,10 +4,7 @@ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolb
4
4
  import type { ToggleMarkEditorCommand } from './commands';
5
5
  export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
6
6
  pluginConfiguration: TextFormattingOptions | undefined;
7
- dependencies: [
8
- OptionalPlugin<AnalyticsPlugin>,
9
- OptionalPlugin<PrimaryToolbarPlugin>
10
- ];
7
+ dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<PrimaryToolbarPlugin>];
11
8
  commands: {
12
9
  toggleSuperscript: ToggleMarkEditorCommand;
13
10
  toggleSubscript: ToggleMarkEditorCommand;
@@ -13,5 +13,5 @@ type Props = {
13
13
  textFormattingState: TextFormattingState | undefined;
14
14
  iconTypeList: IconTypes[];
15
15
  };
16
- export declare const useHasFormattingActived: ({ iconTypeList, textFormattingState, }: Props) => boolean;
16
+ export declare const useHasFormattingActived: ({ iconTypeList, textFormattingState }: Props) => boolean;
17
17
  export {};
@@ -13,5 +13,5 @@ type Props = {
13
13
  textFormattingState: TextFormattingState | undefined;
14
14
  iconTypeList: IconTypes[];
15
15
  };
16
- export declare const useHasFormattingActived: ({ iconTypeList, textFormattingState, }: Props) => boolean;
16
+ export declare const useHasFormattingActived: ({ iconTypeList, textFormattingState }: Props) => boolean;
17
17
  export {};
package/docs/0-intro.tsx CHANGED
@@ -8,15 +8,18 @@ import { token } from '@atlaskit/tokens';
8
8
  export default md`
9
9
 
10
10
  ${createEditorUseOnlyNotice('Editor Plugin Text Formatting', [
11
- { name: 'Editor Core', link: '/packages/editor/editor-core' },
11
+ { name: 'Editor Core', link: '/packages/editor/editor-core' },
12
12
  ])}
13
13
 
14
14
 
15
- ${(
16
- <div style={{ marginTop: token('space.100', '8px') }}>
17
- <AtlassianInternalWarning />
18
- </div>
19
- )}
15
+ ${
16
+ (
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ <div style={{ marginTop: token('space.100', '8px') }}>
19
+ <AtlassianInternalWarning />
20
+ </div>
21
+ )
22
+ }
20
23
 
21
24
  This package includes the text formatting plugin used by \`@atlaskit/editor-core\`.
22
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,13 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^36.10.7",
36
- "@atlaskit/editor-common": "^81.0.0",
36
+ "@atlaskit/editor-common": "^81.2.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
39
39
  "@atlaskit/editor-prosemirror": "4.0.1",
40
40
  "@atlaskit/editor-shared-styles": "^2.11.0",
41
41
  "@atlaskit/editor-tables": "^2.7.0",
42
42
  "@atlaskit/icon": "^22.3.0",
43
+ "@atlaskit/platform-feature-flags": "^0.2.5",
43
44
  "@atlaskit/prosemirror-input-rules": "^3.1.0",
44
45
  "@babel/runtime": "^7.0.0",
45
46
  "@emotion/react": "^11.7.1",
@@ -52,7 +53,6 @@
52
53
  "@atlaskit/editor-plugin-composition": "^1.1.0",
53
54
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
54
55
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
55
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
56
56
  "@testing-library/react": "^12.1.5",
57
57
  "typescript": "~5.4.2"
58
58
  },
@@ -89,5 +89,9 @@
89
89
  ]
90
90
  }
91
91
  },
92
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
92
+ "platform-feature-flags": {
93
+ "platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
94
+ "type": "boolean"
95
+ }
96
+ }
93
97
  }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-text-formatting"
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
@@ -25,30 +26,28 @@ import type { TextFormattingState } from '@atlaskit/editor-common/types';
25
26
 
26
27
  // @public (undocumented)
27
28
  export type TextFormattingPlugin = NextEditorPlugin<
28
- 'textFormatting',
29
- {
30
- pluginConfiguration: TextFormattingOptions | undefined;
31
- dependencies: [OptionalPlugin<typeof analyticsPlugin>];
32
- commands: {
33
- toggleSuperscript: ToggleMarkEditorCommand;
34
- toggleSubscript: ToggleMarkEditorCommand;
35
- toggleStrike: ToggleMarkEditorCommand;
36
- toggleCode: ToggleMarkEditorCommand;
37
- toggleUnderline: ToggleMarkEditorCommand;
38
- toggleEm: ToggleMarkEditorCommand;
39
- toggleStrong: ToggleMarkEditorCommand;
40
- };
41
- sharedState: TextFormattingState | undefined;
42
- }
29
+ 'textFormatting',
30
+ {
31
+ pluginConfiguration: TextFormattingOptions | undefined;
32
+ dependencies: [OptionalPlugin<typeof analyticsPlugin>];
33
+ commands: {
34
+ toggleSuperscript: ToggleMarkEditorCommand;
35
+ toggleSubscript: ToggleMarkEditorCommand;
36
+ toggleStrike: ToggleMarkEditorCommand;
37
+ toggleCode: ToggleMarkEditorCommand;
38
+ toggleUnderline: ToggleMarkEditorCommand;
39
+ toggleEm: ToggleMarkEditorCommand;
40
+ toggleStrong: ToggleMarkEditorCommand;
41
+ };
42
+ sharedState: TextFormattingState | undefined;
43
+ }
43
44
  >;
44
45
 
45
46
  // @public
46
47
  export const textFormattingPlugin: TextFormattingPlugin;
47
48
 
48
49
  // @public (undocumented)
49
- export type ToggleMarkEditorCommand = (
50
- inputMethod: InputMethodBasic,
51
- ) => EditorCommand;
50
+ export type ToggleMarkEditorCommand = (inputMethod: InputMethodBasic) => EditorCommand;
52
51
 
53
52
  // (No @packageDocumentation comment for this package)
54
53
  ```
@@ -61,7 +60,7 @@ export type ToggleMarkEditorCommand = (
61
60
 
62
61
  ```json
63
62
  {
64
- "react": "^16.8.0"
63
+ "react": "^16.8.0"
65
64
  }
66
65
  ```
67
66