@atlaskit/editor-plugin-rule 1.3.2 → 1.4.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,411 +1,428 @@
1
1
  # @atlaskit/editor-plugin-rule
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
8
+ [`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
9
+ Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.3.3
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 1.3.2
4
22
 
5
23
  ### Patch Changes
6
24
 
7
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
- [ED-23332] Update adf-schema package to 36.10.1
10
- - Updated dependencies
25
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
26
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
27
+ [ED-23332] Update adf-schema package to 36.10.1
28
+ - Updated dependencies
11
29
 
12
30
  ## 1.3.1
13
31
 
14
32
  ### Patch Changes
15
33
 
16
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
17
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
18
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
34
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
35
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
36
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
19
37
 
20
38
  ## 1.3.0
21
39
 
22
40
  ### Minor Changes
23
41
 
24
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
25
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
26
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
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
27
45
 
28
46
  ### Patch Changes
29
47
 
30
- - Updated dependencies
48
+ - Updated dependencies
31
49
 
32
50
  ## 1.2.7
33
51
 
34
52
  ### Patch Changes
35
53
 
36
- - Updated dependencies
54
+ - Updated dependencies
37
55
 
38
56
  ## 1.2.6
39
57
 
40
58
  ### Patch Changes
41
59
 
42
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
43
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
44
- [ED-22282] Bump adf-schema to 36.1.0
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
45
63
 
46
64
  ## 1.2.5
47
65
 
48
66
  ### Patch Changes
49
67
 
50
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
51
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
52
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
53
- language triggering composition on an empty line.This was fixed in a patch bump of
54
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
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
55
73
 
56
74
  ## 1.2.4
57
75
 
58
76
  ### Patch Changes
59
77
 
60
- - Updated dependencies
78
+ - Updated dependencies
61
79
 
62
80
  ## 1.2.3
63
81
 
64
82
  ### Patch Changes
65
83
 
66
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
67
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
68
- [ED-23102] Bump ADF schema to version 35.12.2
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
69
87
 
70
88
  ## 1.2.2
71
89
 
72
90
  ### Patch Changes
73
91
 
74
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
75
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
76
- [ED-23097] Bump ADF schema to version 35.12.1
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
77
95
 
78
96
  ## 1.2.1
79
97
 
80
98
  ### Patch Changes
81
99
 
82
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
83
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
84
- Updating adf-schema version to 35.10.0
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
85
103
 
86
104
  ## 1.2.0
87
105
 
88
106
  ### Minor Changes
89
107
 
90
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
91
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
92
- bumped editor-prosemirror version to 4.0.0
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
93
111
 
94
112
  ### Patch Changes
95
113
 
96
- - Updated dependencies
114
+ - Updated dependencies
97
115
 
98
116
  ## 1.1.9
99
117
 
100
118
  ### Patch Changes
101
119
 
102
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
103
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
104
- Bump adf-schema to 35.9.2 to support table alignment options
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
105
123
 
106
124
  ## 1.1.8
107
125
 
108
126
  ### Patch Changes
109
127
 
110
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
111
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
112
- Bump ADF-schema package to version 35.0.0
113
- - Updated dependencies
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
114
132
 
115
133
  ## 1.1.7
116
134
 
117
135
  ### Patch Changes
118
136
 
119
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
120
- [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
121
- The internal composition of this package has changed. There is no expected change in behavior.
137
+ - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
138
+ [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
139
+ The internal composition of this package has changed. There is no expected change in behavior.
122
140
 
123
141
  ## 1.1.6
124
142
 
125
143
  ### Patch Changes
126
144
 
127
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
128
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
129
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
130
- 35.7.0 to 35.8.0
145
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
146
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
147
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
148
+ 35.7.0 to 35.8.0
131
149
 
132
150
  ## 1.1.5
133
151
 
134
152
  ### Patch Changes
135
153
 
136
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
137
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
138
- Bump adf-schema to 35.7.0
154
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
155
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
156
+ Bump adf-schema to 35.7.0
139
157
 
140
158
  ## 1.1.4
141
159
 
142
160
  ### Patch Changes
143
161
 
144
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
145
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
146
- Upgrade Typescript from `4.9.5` to `5.4.2`
162
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
163
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
164
+ Upgrade Typescript from `4.9.5` to `5.4.2`
147
165
 
148
166
  ## 1.1.3
149
167
 
150
168
  ### Patch Changes
151
169
 
152
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
153
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
154
- ED-22553 Updating adf-schema version to 35.6.0
170
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
171
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
172
+ ED-22553 Updating adf-schema version to 35.6.0
155
173
 
156
174
  ## 1.1.2
157
175
 
158
176
  ### Patch Changes
159
177
 
160
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
161
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
162
- ED-22219: adf-schema updated to 35.5.2
163
- - Updated dependencies
178
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
179
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
180
+ ED-22219: adf-schema updated to 35.5.2
181
+ - Updated dependencies
164
182
 
165
183
  ## 1.1.1
166
184
 
167
185
  ### Patch Changes
168
186
 
169
- - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
170
- [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
171
- MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
187
+ - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
188
+ [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
189
+ MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
172
190
 
173
- ## WHY?
191
+ ## WHY?
174
192
 
175
- Removing editor-common dependencies from prosemirror-input-rules package.
193
+ Removing editor-common dependencies from prosemirror-input-rules package.
176
194
 
177
- This makes it easier for editor updates because it simplifies our dependency graph.
195
+ This makes it easier for editor updates because it simplifies our dependency graph.
178
196
 
179
- ## WHAT and HOW?
197
+ ## WHAT and HOW?
180
198
 
181
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
182
- `@atlaskit/editor-common/types`:
199
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
200
+ `@atlaskit/editor-common/types`:
183
201
 
184
- - InputRuleWrapper
185
- - InputRuleHandler
186
- - OnHandlerApply
187
- - createRule
202
+ - InputRuleWrapper
203
+ - InputRuleHandler
204
+ - OnHandlerApply
205
+ - createRule
188
206
 
189
- These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
190
- need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
207
+ These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
208
+ need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
191
209
 
192
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
210
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
193
211
 
194
- - createPlugin
195
- - createInputRulePlugin
212
+ - createPlugin
213
+ - createInputRulePlugin
196
214
 
197
- - Updated dependencies
215
+ - Updated dependencies
198
216
 
199
217
  ## 1.1.0
200
218
 
201
219
  ### Minor Changes
202
220
 
203
- - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
204
- [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
205
- Breaking change:
221
+ - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
222
+ [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
223
+ Breaking change:
206
224
 
207
- ## WHAT?:
225
+ ## WHAT?:
208
226
 
209
- Removing feature flags:
227
+ Removing feature flags:
210
228
 
211
- - singleLayout
212
- - newInsertionBehaviour
213
- - interactiveExpand
214
- - findReplace
215
- - findReplaceMatchCase
216
- - extendFloatingToolbar
229
+ - singleLayout
230
+ - newInsertionBehaviour
231
+ - interactiveExpand
232
+ - findReplace
233
+ - findReplaceMatchCase
234
+ - extendFloatingToolbar
217
235
 
218
- ## WHY?:
236
+ ## WHY?:
219
237
 
220
- Because the flags and props are unused/by default active. Removing them will reduce our
221
- maintenance burden
238
+ Because the flags and props are unused/by default active. Removing them will reduce our
239
+ maintenance burden
222
240
 
223
- ## HOW to update your code:
241
+ ## HOW to update your code:
224
242
 
225
- - If you were using the feature flag - the behaviour is now default and you can remove the
226
- flags
227
- - If you were not using the feature flag - the behaviour is now default.
228
- - If you have opted out of using the feature flag - we have been careful to ensure no-one has
229
- opted out of the behaviours. If you do have an issue please reach out to #help-editor.
243
+ - If you were using the feature flag - the behaviour is now default and you can remove the flags
244
+ - If you were not using the feature flag - the behaviour is now default.
245
+ - If you have opted out of using the feature flag - we have been careful to ensure no-one has
246
+ opted out of the behaviours. If you do have an issue please reach out to #help-editor.
230
247
 
231
248
  ### Patch Changes
232
249
 
233
- - Updated dependencies
250
+ - Updated dependencies
234
251
 
235
252
  ## 1.0.0
236
253
 
237
254
  ### Major Changes
238
255
 
239
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
240
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
241
- This changeset exists to bump all editor plugins that currently don't have a major version. This
242
- is to address an issue with Jira plugin consumption.
256
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
257
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
258
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
259
+ is to address an issue with Jira plugin consumption.
243
260
 
244
261
  ### Patch Changes
245
262
 
246
- - Updated dependencies
263
+ - Updated dependencies
247
264
 
248
265
  ## 0.1.19
249
266
 
250
267
  ### Patch Changes
251
268
 
252
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
253
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
254
- Upgrading @atlaskit/editor-prosemirror dependency
269
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
270
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
271
+ Upgrading @atlaskit/editor-prosemirror dependency
255
272
 
256
273
  ## 0.1.18
257
274
 
258
275
  ### Patch Changes
259
276
 
260
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
261
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
262
- Updating adf-schema version to 35.5.1
277
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
278
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
279
+ Updating adf-schema version to 35.5.1
263
280
 
264
281
  ## 0.1.17
265
282
 
266
283
  ### Patch Changes
267
284
 
268
- - Updated dependencies
285
+ - Updated dependencies
269
286
 
270
287
  ## 0.1.16
271
288
 
272
289
  ### Patch Changes
273
290
 
274
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
275
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
276
- ED-21609 Update adf-schema to 35.3.0
277
- - Updated dependencies
291
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
292
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
293
+ ED-21609 Update adf-schema to 35.3.0
294
+ - Updated dependencies
278
295
 
279
296
  ## 0.1.15
280
297
 
281
298
  ### Patch Changes
282
299
 
283
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
284
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
285
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
300
+ - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
301
+ [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
302
+ [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
286
303
 
287
304
  ## 0.1.14
288
305
 
289
306
  ### Patch Changes
290
307
 
291
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
292
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
293
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
308
+ - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
309
+ [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
310
+ ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
294
311
 
295
312
  ## 0.1.13
296
313
 
297
314
  ### Patch Changes
298
315
 
299
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
300
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
301
- ED-21371 Update adf-schema to 35.1.0
316
+ - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
317
+ [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
318
+ ED-21371 Update adf-schema to 35.1.0
302
319
 
303
320
  ## 0.1.12
304
321
 
305
322
  ### Patch Changes
306
323
 
307
- - Updated dependencies
324
+ - Updated dependencies
308
325
 
309
326
  ## 0.1.11
310
327
 
311
328
  ### Patch Changes
312
329
 
313
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
314
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
315
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
330
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
331
+ [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
332
+ Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
316
333
 
317
334
  ## 0.1.10
318
335
 
319
336
  ### Patch Changes
320
337
 
321
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
322
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
323
- update ADF schema
338
+ - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
339
+ [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
340
+ update ADF schema
324
341
 
325
342
  ## 0.1.9
326
343
 
327
344
  ### Patch Changes
328
345
 
329
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
330
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
331
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
346
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
347
+ [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
348
+ ED-21266: Updated @atlaskit/adf-schema to 34.0.1
332
349
 
333
350
  ## 0.1.8
334
351
 
335
352
  ### Patch Changes
336
353
 
337
- - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
338
- [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
339
- feature flags plugin optional in all plugins including:
340
-
341
- - analytics
342
- - base
343
- - card
344
- - code-block
345
- - expand
346
- - extension
347
- - floating-toolbar
348
- - hyperlink
349
- - insert-block
350
- - layout
351
- - layout
352
- - list
353
- - media
354
- - paste
355
- - rule
356
- - table
357
- - tasks-and-decisions
358
-
359
- We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
360
- mandatory to be added to the preset.
354
+ - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
355
+ [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
356
+ feature flags plugin optional in all plugins including:
357
+
358
+ - analytics
359
+ - base
360
+ - card
361
+ - code-block
362
+ - expand
363
+ - extension
364
+ - floating-toolbar
365
+ - hyperlink
366
+ - insert-block
367
+ - layout
368
+ - layout
369
+ - list
370
+ - media
371
+ - paste
372
+ - rule
373
+ - table
374
+ - tasks-and-decisions
375
+
376
+ We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
377
+ mandatory to be added to the preset.
361
378
 
362
379
  ## 0.1.7
363
380
 
364
381
  ### Patch Changes
365
382
 
366
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
367
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
368
- ED-20971 Upgrade adf-schema package to ^34.0.0
383
+ - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
384
+ [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
385
+ Upgrade adf-schema package to ^34.0.0
369
386
 
370
387
  ## 0.1.6
371
388
 
372
389
  ### Patch Changes
373
390
 
374
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
375
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
376
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
377
- - 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
378
395
 
379
396
  ## 0.1.5
380
397
 
381
398
  ### Patch Changes
382
399
 
383
- - Updated dependencies
400
+ - Updated dependencies
384
401
 
385
402
  ## 0.1.4
386
403
 
387
404
  ### Patch Changes
388
405
 
389
- - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
390
- [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) -
391
- Connect yarn changeset to packages, upgrade adf-schema
406
+ - [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
407
+ [`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
408
+ yarn changeset to packages, upgrade adf-schema
392
409
 
393
410
  ## 0.1.3
394
411
 
395
412
  ### Patch Changes
396
413
 
397
- - Updated dependencies
414
+ - Updated dependencies
398
415
 
399
416
  ## 0.1.2
400
417
 
401
418
  ### Patch Changes
402
419
 
403
- - Updated dependencies
420
+ - Updated dependencies
404
421
 
405
422
  ## 0.1.1
406
423
 
407
424
  ### Patch Changes
408
425
 
409
- - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
410
- [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
411
- adf-schema from AFE and rely on npm package for adf-schema
426
+ - [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
427
+ [`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
428
+ adf-schema from AFE and rely on npm package for adf-schema
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.
package/package.json CHANGED
@@ -1,85 +1,83 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-rule",
3
- "version": "1.3.2",
4
- "description": "Rule plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: AI",
12
- "singleton": true,
13
- "releaseModel": "continuous",
14
- "runReact18": false
15
- },
16
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
- "main": "dist/cjs/index.js",
18
- "module": "dist/esm/index.js",
19
- "module:es2019": "dist/es2019/index.js",
20
- "types": "dist/types/index.d.ts",
21
- "typesVersions": {
22
- ">=4.5 <4.9": {
23
- "*": [
24
- "dist/types-ts4.5/*",
25
- "dist/types-ts4.5/index.d.ts"
26
- ]
27
- }
28
- },
29
- "sideEffects": false,
30
- "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
- "dependencies": {
35
- "@atlaskit/adf-schema": "^36.10.7",
36
- "@atlaskit/editor-common": "^81.0.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
- "@atlaskit/editor-prosemirror": "4.0.1",
39
- "@atlaskit/prosemirror-input-rules": "^3.1.0",
40
- "@babel/runtime": "^7.0.0"
41
- },
42
- "peerDependencies": {
43
- "react": "^16.8.0"
44
- },
45
- "devDependencies": {
46
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
47
- "@testing-library/react": "^12.1.5",
48
- "react-dom": "^16.8.0",
49
- "typescript": "~5.4.2"
50
- },
51
- "techstack": {
52
- "@atlassian/frontend": {
53
- "import-structure": [
54
- "atlassian-conventions"
55
- ],
56
- "circular-dependencies": [
57
- "file-and-folder-level"
58
- ]
59
- },
60
- "@repo/internal": {
61
- "dom-events": "use-bind-event-listener",
62
- "analytics": [
63
- "analytics-next"
64
- ],
65
- "design-tokens": [
66
- "color"
67
- ],
68
- "theming": [
69
- "react-context"
70
- ],
71
- "ui-components": [
72
- "lite-mode"
73
- ],
74
- "deprecation": "no-deprecated-imports",
75
- "styling": [
76
- "emotion",
77
- "emotion"
78
- ],
79
- "imports": [
80
- "import-no-extraneous-disable-for-examples-and-docs"
81
- ]
82
- }
83
- },
84
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
85
- }
2
+ "name": "@atlaskit/editor-plugin-rule",
3
+ "version": "1.4.0",
4
+ "description": "Rule plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: AI",
12
+ "singleton": true,
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
15
+ },
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.ts",
31
+ "af:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/adf-schema": "^37.0.0",
36
+ "@atlaskit/editor-common": "^82.12.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.3.0",
38
+ "@atlaskit/editor-prosemirror": "4.0.1",
39
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
40
+ "@babel/runtime": "^7.0.0"
41
+ },
42
+ "peerDependencies": {
43
+ "react": "^16.8.0"
44
+ },
45
+ "devDependencies": {
46
+ "@testing-library/react": "^12.1.5",
47
+ "react-dom": "^16.8.0",
48
+ "typescript": "~5.4.2"
49
+ },
50
+ "techstack": {
51
+ "@atlassian/frontend": {
52
+ "import-structure": [
53
+ "atlassian-conventions"
54
+ ],
55
+ "circular-dependencies": [
56
+ "file-and-folder-level"
57
+ ]
58
+ },
59
+ "@repo/internal": {
60
+ "dom-events": "use-bind-event-listener",
61
+ "analytics": [
62
+ "analytics-next"
63
+ ],
64
+ "design-tokens": [
65
+ "color"
66
+ ],
67
+ "theming": [
68
+ "react-context"
69
+ ],
70
+ "ui-components": [
71
+ "lite-mode"
72
+ ],
73
+ "deprecation": "no-deprecated-imports",
74
+ "styling": [
75
+ "emotion",
76
+ "emotion"
77
+ ],
78
+ "imports": [
79
+ "import-no-extraneous-disable-for-examples-and-docs"
80
+ ]
81
+ }
82
+ }
83
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/editor-plugin-rule"
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
@@ -26,30 +27,27 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
26
27
 
27
28
  // @public (undocumented)
28
29
  const insertHorizontalRule: (
29
- featureFlags: FeatureFlags,
30
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
30
+ featureFlags: FeatureFlags,
31
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
31
32
  ) => (
32
- inputMethod:
33
- | INPUT_METHOD.FORMATTING
34
- | INPUT_METHOD.INSERT_MENU
35
- | INPUT_METHOD.QUICK_INSERT
36
- | INPUT_METHOD.SHORTCUT
37
- | INPUT_METHOD.TOOLBAR,
33
+ inputMethod:
34
+ | INPUT_METHOD.FORMATTING
35
+ | INPUT_METHOD.INSERT_MENU
36
+ | INPUT_METHOD.QUICK_INSERT
37
+ | INPUT_METHOD.SHORTCUT
38
+ | INPUT_METHOD.TOOLBAR,
38
39
  ) => Command;
39
40
 
40
41
  // @public (undocumented)
41
42
  export type RulePlugin = NextEditorPlugin<
42
- 'rule',
43
- {
44
- pluginConfiguration: undefined;
45
- dependencies: [
46
- OptionalPlugin<FeatureFlagsPlugin>,
47
- OptionalPlugin<AnalyticsPlugin>,
48
- ];
49
- actions: {
50
- insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
51
- };
52
- }
43
+ 'rule',
44
+ {
45
+ pluginConfiguration: undefined;
46
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
47
+ actions: {
48
+ insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
49
+ };
50
+ }
53
51
  >;
54
52
 
55
53
  // @public (undocumented)
@@ -66,7 +64,7 @@ export const rulePlugin: RulePlugin;
66
64
 
67
65
  ```json
68
66
  {
69
- "react": "^16.8.0"
67
+ "react": "^16.8.0"
70
68
  }
71
69
  ```
72
70