@atlaskit/editor-plugin-code-block 1.3.1 → 1.3.3
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/CHANGELOG.md +194 -180
- package/LICENSE.md +6 -8
- package/dist/types/actions.d.ts +1 -1
- package/dist/types-ts4.5/actions.d.ts +1 -1
- package/package.json +4 -6
- package/report.api.md +22 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,430 +1,444 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
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
|
|
17
|
+
|
|
3
18
|
## 1.3.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
10
25
|
|
|
11
26
|
## 1.3.0
|
|
12
27
|
|
|
13
28
|
### Minor Changes
|
|
14
29
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
31
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
32
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
18
33
|
|
|
19
34
|
### Patch Changes
|
|
20
35
|
|
|
21
|
-
-
|
|
36
|
+
- Updated dependencies
|
|
22
37
|
|
|
23
38
|
## 1.2.8
|
|
24
39
|
|
|
25
40
|
### Patch Changes
|
|
26
41
|
|
|
27
|
-
-
|
|
42
|
+
- Updated dependencies
|
|
28
43
|
|
|
29
44
|
## 1.2.7
|
|
30
45
|
|
|
31
46
|
### Patch Changes
|
|
32
47
|
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
49
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
50
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
36
51
|
|
|
37
52
|
## 1.2.6
|
|
38
53
|
|
|
39
54
|
### Patch Changes
|
|
40
55
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
56
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
57
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
58
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
59
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
60
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
46
61
|
|
|
47
62
|
## 1.2.5
|
|
48
63
|
|
|
49
64
|
### Patch Changes
|
|
50
65
|
|
|
51
|
-
-
|
|
66
|
+
- Updated dependencies
|
|
52
67
|
|
|
53
68
|
## 1.2.4
|
|
54
69
|
|
|
55
70
|
### Patch Changes
|
|
56
71
|
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
72
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
73
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
74
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
60
75
|
|
|
61
76
|
## 1.2.3
|
|
62
77
|
|
|
63
78
|
### Patch Changes
|
|
64
79
|
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
80
|
+
- [#95492](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95492)
|
|
81
|
+
[`c88ed307708a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c88ed307708a) -
|
|
82
|
+
[ux] [ED-22897] Replace newlines with hard breaks when codeblock is converted to a paragraph when
|
|
83
|
+
the user presses backspace at the start of the paragraph. (only applies if codeblock is the first
|
|
84
|
+
Node of the document or first node of a list item) Enabled with feature flag
|
|
85
|
+
"platform.editor.codeblock-preserve-newlines_54r3m"
|
|
71
86
|
|
|
72
87
|
## 1.2.2
|
|
73
88
|
|
|
74
89
|
### Patch Changes
|
|
75
90
|
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
92
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
93
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
79
94
|
|
|
80
95
|
## 1.2.1
|
|
81
96
|
|
|
82
97
|
### Patch Changes
|
|
83
98
|
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
100
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
101
|
+
Updating adf-schema version to 35.10.0
|
|
87
102
|
|
|
88
103
|
## 1.2.0
|
|
89
104
|
|
|
90
105
|
### Minor Changes
|
|
91
106
|
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
|
|
107
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
108
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
109
|
+
bumped editor-prosemirror version to 4.0.0
|
|
95
110
|
|
|
96
111
|
### Patch Changes
|
|
97
112
|
|
|
98
|
-
-
|
|
113
|
+
- Updated dependencies
|
|
99
114
|
|
|
100
115
|
## 1.1.11
|
|
101
116
|
|
|
102
117
|
### Patch Changes
|
|
103
118
|
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
119
|
+
- [#91461](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91461)
|
|
120
|
+
[`1b353cb06cc8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b353cb06cc8) -
|
|
121
|
+
[ED-23042] Disable editing in code blocks and expand nodes when editorDisabled state is true
|
|
107
122
|
|
|
108
123
|
## 1.1.10
|
|
109
124
|
|
|
110
125
|
### Patch Changes
|
|
111
126
|
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
127
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
128
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
129
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
115
130
|
|
|
116
131
|
## 1.1.9
|
|
117
132
|
|
|
118
133
|
### Patch Changes
|
|
119
134
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
-
|
|
135
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
136
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
137
|
+
Bump ADF-schema package to version 35.0.0
|
|
138
|
+
- Updated dependencies
|
|
124
139
|
|
|
125
140
|
## 1.1.8
|
|
126
141
|
|
|
127
142
|
### Patch Changes
|
|
128
143
|
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
-
|
|
144
|
+
- [#91080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91080)
|
|
145
|
+
[`ef9f3c4ad482`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef9f3c4ad482) -
|
|
146
|
+
Revert change for disable code block in live view
|
|
147
|
+
- Updated dependencies
|
|
133
148
|
|
|
134
149
|
## 1.1.7
|
|
135
150
|
|
|
136
151
|
### Patch Changes
|
|
137
152
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
153
|
+
- [#89138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89138)
|
|
154
|
+
[`f70dc8331119`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f70dc8331119) -
|
|
155
|
+
Disable code block content editing in live view mode
|
|
156
|
+
- Updated dependencies
|
|
142
157
|
|
|
143
158
|
## 1.1.6
|
|
144
159
|
|
|
145
160
|
### Patch Changes
|
|
146
161
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
162
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
163
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
164
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
165
|
+
35.7.0 to 35.8.0
|
|
151
166
|
|
|
152
167
|
## 1.1.5
|
|
153
168
|
|
|
154
169
|
### Patch Changes
|
|
155
170
|
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
171
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
172
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
173
|
+
Bump adf-schema to 35.7.0
|
|
159
174
|
|
|
160
175
|
## 1.1.4
|
|
161
176
|
|
|
162
177
|
### Patch Changes
|
|
163
178
|
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
|
|
179
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
180
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
181
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
167
182
|
|
|
168
183
|
## 1.1.3
|
|
169
184
|
|
|
170
185
|
### Patch Changes
|
|
171
186
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
187
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
188
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
189
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
175
190
|
|
|
176
191
|
## 1.1.2
|
|
177
192
|
|
|
178
193
|
### Patch Changes
|
|
179
194
|
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
195
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
196
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
197
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
198
|
+
- Updated dependencies
|
|
184
199
|
|
|
185
200
|
## 1.1.1
|
|
186
201
|
|
|
187
202
|
### Patch Changes
|
|
188
203
|
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
204
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
205
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
206
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
192
207
|
|
|
193
|
-
|
|
208
|
+
## WHY?
|
|
194
209
|
|
|
195
|
-
|
|
210
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
196
211
|
|
|
197
|
-
|
|
212
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
198
213
|
|
|
199
|
-
|
|
214
|
+
## WHAT and HOW?
|
|
200
215
|
|
|
201
|
-
|
|
202
|
-
|
|
216
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
217
|
+
`@atlaskit/editor-common/types`:
|
|
203
218
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
219
|
+
- InputRuleWrapper
|
|
220
|
+
- InputRuleHandler
|
|
221
|
+
- OnHandlerApply
|
|
222
|
+
- createRule
|
|
208
223
|
|
|
209
|
-
|
|
210
|
-
|
|
224
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
225
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
211
226
|
|
|
212
|
-
|
|
227
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
213
228
|
|
|
214
|
-
|
|
215
|
-
|
|
229
|
+
- createPlugin
|
|
230
|
+
- createInputRulePlugin
|
|
216
231
|
|
|
217
|
-
-
|
|
232
|
+
- Updated dependencies
|
|
218
233
|
|
|
219
234
|
## 1.1.0
|
|
220
235
|
|
|
221
236
|
### Minor Changes
|
|
222
237
|
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
238
|
+
- [#75114](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75114)
|
|
239
|
+
[`393ee487af1e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/393ee487af1e) -
|
|
240
|
+
Plugin configuration for code-block plugin is now optional.
|
|
226
241
|
|
|
227
242
|
## 1.0.2
|
|
228
243
|
|
|
229
244
|
### Patch Changes
|
|
230
245
|
|
|
231
|
-
-
|
|
246
|
+
- Updated dependencies
|
|
232
247
|
|
|
233
248
|
## 1.0.1
|
|
234
249
|
|
|
235
250
|
### Patch Changes
|
|
236
251
|
|
|
237
|
-
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
- Updated dependencies
|
|
252
|
+
- [#73044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73044)
|
|
253
|
+
[`0fff4efc0417`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fff4efc0417) -
|
|
254
|
+
[ux] ED-22131 Fixed selection placement when codeblock inserted through quick-insert inside panel
|
|
255
|
+
- Updated dependencies
|
|
242
256
|
|
|
243
257
|
## 1.0.0
|
|
244
258
|
|
|
245
259
|
### Major Changes
|
|
246
260
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
261
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
262
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
263
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
264
|
+
is to address an issue with Jira plugin consumption.
|
|
251
265
|
|
|
252
266
|
### Patch Changes
|
|
253
267
|
|
|
254
|
-
-
|
|
268
|
+
- Updated dependencies
|
|
255
269
|
|
|
256
270
|
## 0.1.20
|
|
257
271
|
|
|
258
272
|
### Patch Changes
|
|
259
273
|
|
|
260
|
-
-
|
|
261
|
-
|
|
262
|
-
|
|
274
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
275
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
276
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
263
277
|
|
|
264
278
|
## 0.1.19
|
|
265
279
|
|
|
266
280
|
### Patch Changes
|
|
267
281
|
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
-
|
|
282
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
283
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
284
|
+
Move all plugin translations to editor-common
|
|
285
|
+
- Updated dependencies
|
|
272
286
|
|
|
273
287
|
## 0.1.18
|
|
274
288
|
|
|
275
289
|
### Patch Changes
|
|
276
290
|
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
291
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
292
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
293
|
+
Updating adf-schema version to 35.5.1
|
|
280
294
|
|
|
281
295
|
## 0.1.17
|
|
282
296
|
|
|
283
297
|
### Patch Changes
|
|
284
298
|
|
|
285
|
-
-
|
|
299
|
+
- Updated dependencies
|
|
286
300
|
|
|
287
301
|
## 0.1.16
|
|
288
302
|
|
|
289
303
|
### Patch Changes
|
|
290
304
|
|
|
291
|
-
-
|
|
292
|
-
|
|
293
|
-
|
|
305
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
306
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
307
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
294
308
|
|
|
295
309
|
## 0.1.15
|
|
296
310
|
|
|
297
311
|
### Patch Changes
|
|
298
312
|
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
|
|
313
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
314
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
315
|
+
Ensure all editor plugins are marked as singletons
|
|
302
316
|
|
|
303
317
|
## 0.1.14
|
|
304
318
|
|
|
305
319
|
### Patch Changes
|
|
306
320
|
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
-
|
|
321
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
322
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
323
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
324
|
+
- Updated dependencies
|
|
311
325
|
|
|
312
326
|
## 0.1.13
|
|
313
327
|
|
|
314
328
|
### Patch Changes
|
|
315
329
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
330
|
+
- [#62880](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62880)
|
|
331
|
+
[`a23ec26652ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a23ec26652ea) -
|
|
332
|
+
Extracting breakout plugin from editor-core into new package @atlaskit/editor-plugin-breakout
|
|
319
333
|
|
|
320
334
|
## 0.1.12
|
|
321
335
|
|
|
322
336
|
### Patch Changes
|
|
323
337
|
|
|
324
|
-
-
|
|
325
|
-
|
|
326
|
-
|
|
338
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
339
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
340
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
327
341
|
|
|
328
342
|
## 0.1.11
|
|
329
343
|
|
|
330
344
|
### Patch Changes
|
|
331
345
|
|
|
332
|
-
-
|
|
333
|
-
|
|
334
|
-
|
|
346
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
347
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
348
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
335
349
|
|
|
336
350
|
## 0.1.10
|
|
337
351
|
|
|
338
352
|
### Patch Changes
|
|
339
353
|
|
|
340
|
-
-
|
|
341
|
-
|
|
342
|
-
|
|
354
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
355
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
356
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
343
357
|
|
|
344
358
|
## 0.1.9
|
|
345
359
|
|
|
346
360
|
### Patch Changes
|
|
347
361
|
|
|
348
|
-
-
|
|
362
|
+
- Updated dependencies
|
|
349
363
|
|
|
350
364
|
## 0.1.8
|
|
351
365
|
|
|
352
366
|
### Patch Changes
|
|
353
367
|
|
|
354
|
-
-
|
|
355
|
-
|
|
356
|
-
|
|
368
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
369
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
370
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
357
371
|
|
|
358
372
|
## 0.1.7
|
|
359
373
|
|
|
360
374
|
### Patch Changes
|
|
361
375
|
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
-
|
|
376
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
377
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
378
|
+
update ADF schema
|
|
365
379
|
|
|
366
380
|
## 0.1.6
|
|
367
381
|
|
|
368
382
|
### Patch Changes
|
|
369
383
|
|
|
370
|
-
-
|
|
371
|
-
|
|
372
|
-
|
|
384
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
385
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
386
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
373
387
|
|
|
374
388
|
## 0.1.5
|
|
375
389
|
|
|
376
390
|
### Patch Changes
|
|
377
391
|
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
392
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
393
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
394
|
+
feature flags plugin optional in all plugins including:
|
|
395
|
+
|
|
396
|
+
- analytics
|
|
397
|
+
- base
|
|
398
|
+
- card
|
|
399
|
+
- code-block
|
|
400
|
+
- expand
|
|
401
|
+
- extension
|
|
402
|
+
- floating-toolbar
|
|
403
|
+
- hyperlink
|
|
404
|
+
- insert-block
|
|
405
|
+
- layout
|
|
406
|
+
- layout
|
|
407
|
+
- list
|
|
408
|
+
- media
|
|
409
|
+
- paste
|
|
410
|
+
- rule
|
|
411
|
+
- table
|
|
412
|
+
- tasks-and-decisions
|
|
413
|
+
|
|
414
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
415
|
+
mandatory to be added to the preset.
|
|
402
416
|
|
|
403
417
|
## 0.1.4
|
|
404
418
|
|
|
405
419
|
### Patch Changes
|
|
406
420
|
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
|
|
421
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
422
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
423
|
+
Upgrade adf-schema package to ^34.0.0
|
|
410
424
|
|
|
411
425
|
## 0.1.3
|
|
412
426
|
|
|
413
427
|
### Patch Changes
|
|
414
428
|
|
|
415
|
-
-
|
|
429
|
+
- Updated dependencies
|
|
416
430
|
|
|
417
431
|
## 0.1.2
|
|
418
432
|
|
|
419
433
|
### Patch Changes
|
|
420
434
|
|
|
421
|
-
-
|
|
435
|
+
- Updated dependencies
|
|
422
436
|
|
|
423
437
|
## 0.1.1
|
|
424
438
|
|
|
425
439
|
### Patch Changes
|
|
426
440
|
|
|
427
|
-
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
-
|
|
441
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
442
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
443
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
444
|
+
- Updated dependencies
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/dist/types/actions.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const resetShouldIgnoreFollowingMutations: Command;
|
|
|
12
12
|
* if there is text selected it will wrap the current selection if not it will
|
|
13
13
|
* append the codeblock to the end of the document.
|
|
14
14
|
*/
|
|
15
|
-
export declare function createInsertCodeBlockTransaction({ state
|
|
15
|
+
export declare function createInsertCodeBlockTransaction({ state }: {
|
|
16
16
|
state: EditorState;
|
|
17
17
|
}): import("prosemirror-state").Transaction;
|
|
18
18
|
export declare function insertCodeBlockWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): Command;
|
|
@@ -12,7 +12,7 @@ export declare const resetShouldIgnoreFollowingMutations: Command;
|
|
|
12
12
|
* if there is text selected it will wrap the current selection if not it will
|
|
13
13
|
* append the codeblock to the end of the document.
|
|
14
14
|
*/
|
|
15
|
-
export declare function createInsertCodeBlockTransaction({ state
|
|
15
|
+
export declare function createInsertCodeBlockTransaction({ state }: {
|
|
16
16
|
state: EditorState;
|
|
17
17
|
}): import("prosemirror-state").Transaction;
|
|
18
18
|
export declare function insertCodeBlockWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): Command;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/adf-schema": "^36.
|
|
36
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
37
37
|
"@atlaskit/code": "^15.2.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/icon": "^22.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
56
55
|
"typescript": "~5.4.2"
|
|
57
56
|
},
|
|
58
57
|
"techstack": {
|
|
@@ -88,7 +87,6 @@
|
|
|
88
87
|
]
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
92
90
|
"stricter": {
|
|
93
91
|
"no-unused-dependencies": {
|
|
94
92
|
"checkDevDependencies": true
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-code-block"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -27,28 +28,28 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
|
27
28
|
|
|
28
29
|
// @public (undocumented)
|
|
29
30
|
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
// (undocumented)
|
|
32
|
+
allowCompositionInputOverride?: boolean;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
allowCopyToClipboard?: boolean;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
appearance?: EditorAppearance | undefined;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
// @public (undocumented)
|
|
39
40
|
export type CodeBlockPlugin = NextEditorPlugin<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
'codeBlock',
|
|
42
|
+
{
|
|
43
|
+
pluginConfiguration: CodeBlockOptions;
|
|
44
|
+
dependencies: [
|
|
45
|
+
typeof decorationsPlugin,
|
|
46
|
+
typeof compositionPlugin,
|
|
47
|
+
OptionalPlugin<typeof analyticsPlugin>,
|
|
48
|
+
];
|
|
49
|
+
actions: {
|
|
50
|
+
insertCodeBlock: (inputMethod: INPUT_METHOD) => Command;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
52
53
|
>;
|
|
53
54
|
|
|
54
55
|
// @public (undocumented)
|
|
@@ -65,8 +66,8 @@ export const codeBlockPlugin: CodeBlockPlugin;
|
|
|
65
66
|
|
|
66
67
|
```json
|
|
67
68
|
{
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
"react": "^16.8.0",
|
|
70
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
70
71
|
}
|
|
71
72
|
```
|
|
72
73
|
|