@atlaskit/editor-plugin-code-block 1.3.2 → 1.3.4
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 +199 -184
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +2 -1
- package/dist/es2019/plugin.js +28 -25
- package/dist/esm/plugin.js +2 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/actions.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +82 -104
- package/report.api.md +22 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,439 +1,454 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 1.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
8
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
9
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
10
|
+
the fold (in the top 5 results)
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.3.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.3.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
23
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
24
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
25
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
26
|
+
- Updated dependencies
|
|
11
27
|
|
|
12
28
|
## 1.3.1
|
|
13
29
|
|
|
14
30
|
### Patch Changes
|
|
15
31
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
33
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
34
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
35
|
|
|
20
36
|
## 1.3.0
|
|
21
37
|
|
|
22
38
|
### Minor Changes
|
|
23
39
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
40
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
41
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
42
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
43
|
|
|
28
44
|
### Patch Changes
|
|
29
45
|
|
|
30
|
-
-
|
|
46
|
+
- Updated dependencies
|
|
31
47
|
|
|
32
48
|
## 1.2.8
|
|
33
49
|
|
|
34
50
|
### Patch Changes
|
|
35
51
|
|
|
36
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
37
53
|
|
|
38
54
|
## 1.2.7
|
|
39
55
|
|
|
40
56
|
### Patch Changes
|
|
41
57
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
59
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
60
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
45
61
|
|
|
46
62
|
## 1.2.6
|
|
47
63
|
|
|
48
64
|
### Patch Changes
|
|
49
65
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
66
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
67
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
68
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
69
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
70
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
55
71
|
|
|
56
72
|
## 1.2.5
|
|
57
73
|
|
|
58
74
|
### Patch Changes
|
|
59
75
|
|
|
60
|
-
-
|
|
76
|
+
- Updated dependencies
|
|
61
77
|
|
|
62
78
|
## 1.2.4
|
|
63
79
|
|
|
64
80
|
### Patch Changes
|
|
65
81
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
82
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
83
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
84
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
69
85
|
|
|
70
86
|
## 1.2.3
|
|
71
87
|
|
|
72
88
|
### Patch Changes
|
|
73
89
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
- [#95492](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95492)
|
|
91
|
+
[`c88ed307708a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c88ed307708a) -
|
|
92
|
+
[ux] [ED-22897] Replace newlines with hard breaks when codeblock is converted to a paragraph when
|
|
93
|
+
the user presses backspace at the start of the paragraph. (only applies if codeblock is the first
|
|
94
|
+
Node of the document or first node of a list item) Enabled with feature flag
|
|
95
|
+
"platform.editor.codeblock-preserve-newlines_54r3m"
|
|
80
96
|
|
|
81
97
|
## 1.2.2
|
|
82
98
|
|
|
83
99
|
### Patch Changes
|
|
84
100
|
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
88
104
|
|
|
89
105
|
## 1.2.1
|
|
90
106
|
|
|
91
107
|
### Patch Changes
|
|
92
108
|
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
|
96
112
|
|
|
97
113
|
## 1.2.0
|
|
98
114
|
|
|
99
115
|
### Minor Changes
|
|
100
116
|
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
104
120
|
|
|
105
121
|
### Patch Changes
|
|
106
122
|
|
|
107
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
108
124
|
|
|
109
125
|
## 1.1.11
|
|
110
126
|
|
|
111
127
|
### Patch Changes
|
|
112
128
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
129
|
+
- [#91461](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91461)
|
|
130
|
+
[`1b353cb06cc8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b353cb06cc8) -
|
|
131
|
+
[ED-23042] Disable editing in code blocks and expand nodes when editorDisabled state is true
|
|
116
132
|
|
|
117
133
|
## 1.1.10
|
|
118
134
|
|
|
119
135
|
### Patch Changes
|
|
120
136
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
137
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
138
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
139
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
124
140
|
|
|
125
141
|
## 1.1.9
|
|
126
142
|
|
|
127
143
|
### Patch Changes
|
|
128
144
|
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
-
|
|
145
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
146
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
147
|
+
Bump ADF-schema package to version 35.0.0
|
|
148
|
+
- Updated dependencies
|
|
133
149
|
|
|
134
150
|
## 1.1.8
|
|
135
151
|
|
|
136
152
|
### Patch Changes
|
|
137
153
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
154
|
+
- [#91080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91080)
|
|
155
|
+
[`ef9f3c4ad482`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef9f3c4ad482) -
|
|
156
|
+
Revert change for disable code block in live view
|
|
157
|
+
- Updated dependencies
|
|
142
158
|
|
|
143
159
|
## 1.1.7
|
|
144
160
|
|
|
145
161
|
### Patch Changes
|
|
146
162
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
-
|
|
163
|
+
- [#89138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89138)
|
|
164
|
+
[`f70dc8331119`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f70dc8331119) -
|
|
165
|
+
Disable code block content editing in live view mode
|
|
166
|
+
- Updated dependencies
|
|
151
167
|
|
|
152
168
|
## 1.1.6
|
|
153
169
|
|
|
154
170
|
### Patch Changes
|
|
155
171
|
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
172
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
173
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
174
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
175
|
+
35.7.0 to 35.8.0
|
|
160
176
|
|
|
161
177
|
## 1.1.5
|
|
162
178
|
|
|
163
179
|
### Patch Changes
|
|
164
180
|
|
|
165
|
-
-
|
|
166
|
-
|
|
167
|
-
|
|
181
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
182
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
183
|
+
Bump adf-schema to 35.7.0
|
|
168
184
|
|
|
169
185
|
## 1.1.4
|
|
170
186
|
|
|
171
187
|
### Patch Changes
|
|
172
188
|
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
189
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
190
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
191
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
176
192
|
|
|
177
193
|
## 1.1.3
|
|
178
194
|
|
|
179
195
|
### Patch Changes
|
|
180
196
|
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
|
|
197
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
198
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
199
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
184
200
|
|
|
185
201
|
## 1.1.2
|
|
186
202
|
|
|
187
203
|
### Patch Changes
|
|
188
204
|
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
205
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
206
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
207
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
208
|
+
- Updated dependencies
|
|
193
209
|
|
|
194
210
|
## 1.1.1
|
|
195
211
|
|
|
196
212
|
### Patch Changes
|
|
197
213
|
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
214
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
215
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
216
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
201
217
|
|
|
202
|
-
|
|
218
|
+
## WHY?
|
|
203
219
|
|
|
204
|
-
|
|
220
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
205
221
|
|
|
206
|
-
|
|
222
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
207
223
|
|
|
208
|
-
|
|
224
|
+
## WHAT and HOW?
|
|
209
225
|
|
|
210
|
-
|
|
211
|
-
|
|
226
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
227
|
+
`@atlaskit/editor-common/types`:
|
|
212
228
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
229
|
+
- InputRuleWrapper
|
|
230
|
+
- InputRuleHandler
|
|
231
|
+
- OnHandlerApply
|
|
232
|
+
- createRule
|
|
217
233
|
|
|
218
|
-
|
|
219
|
-
|
|
234
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
235
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
220
236
|
|
|
221
|
-
|
|
237
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
222
238
|
|
|
223
|
-
|
|
224
|
-
|
|
239
|
+
- createPlugin
|
|
240
|
+
- createInputRulePlugin
|
|
225
241
|
|
|
226
|
-
-
|
|
242
|
+
- Updated dependencies
|
|
227
243
|
|
|
228
244
|
## 1.1.0
|
|
229
245
|
|
|
230
246
|
### Minor Changes
|
|
231
247
|
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
|
|
248
|
+
- [#75114](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75114)
|
|
249
|
+
[`393ee487af1e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/393ee487af1e) -
|
|
250
|
+
Plugin configuration for code-block plugin is now optional.
|
|
235
251
|
|
|
236
252
|
## 1.0.2
|
|
237
253
|
|
|
238
254
|
### Patch Changes
|
|
239
255
|
|
|
240
|
-
-
|
|
256
|
+
- Updated dependencies
|
|
241
257
|
|
|
242
258
|
## 1.0.1
|
|
243
259
|
|
|
244
260
|
### Patch Changes
|
|
245
261
|
|
|
246
|
-
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
- Updated dependencies
|
|
262
|
+
- [#73044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73044)
|
|
263
|
+
[`0fff4efc0417`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fff4efc0417) -
|
|
264
|
+
[ux] ED-22131 Fixed selection placement when codeblock inserted through quick-insert inside panel
|
|
265
|
+
- Updated dependencies
|
|
251
266
|
|
|
252
267
|
## 1.0.0
|
|
253
268
|
|
|
254
269
|
### Major Changes
|
|
255
270
|
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
271
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
272
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
273
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
274
|
+
is to address an issue with Jira plugin consumption.
|
|
260
275
|
|
|
261
276
|
### Patch Changes
|
|
262
277
|
|
|
263
|
-
-
|
|
278
|
+
- Updated dependencies
|
|
264
279
|
|
|
265
280
|
## 0.1.20
|
|
266
281
|
|
|
267
282
|
### Patch Changes
|
|
268
283
|
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
|
|
284
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
285
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
286
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
272
287
|
|
|
273
288
|
## 0.1.19
|
|
274
289
|
|
|
275
290
|
### Patch Changes
|
|
276
291
|
|
|
277
|
-
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
-
|
|
292
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
293
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
294
|
+
Move all plugin translations to editor-common
|
|
295
|
+
- Updated dependencies
|
|
281
296
|
|
|
282
297
|
## 0.1.18
|
|
283
298
|
|
|
284
299
|
### Patch Changes
|
|
285
300
|
|
|
286
|
-
-
|
|
287
|
-
|
|
288
|
-
|
|
301
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
302
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
303
|
+
Updating adf-schema version to 35.5.1
|
|
289
304
|
|
|
290
305
|
## 0.1.17
|
|
291
306
|
|
|
292
307
|
### Patch Changes
|
|
293
308
|
|
|
294
|
-
-
|
|
309
|
+
- Updated dependencies
|
|
295
310
|
|
|
296
311
|
## 0.1.16
|
|
297
312
|
|
|
298
313
|
### Patch Changes
|
|
299
314
|
|
|
300
|
-
-
|
|
301
|
-
|
|
302
|
-
|
|
315
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
316
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
317
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
303
318
|
|
|
304
319
|
## 0.1.15
|
|
305
320
|
|
|
306
321
|
### Patch Changes
|
|
307
322
|
|
|
308
|
-
-
|
|
309
|
-
|
|
310
|
-
|
|
323
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
324
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
325
|
+
Ensure all editor plugins are marked as singletons
|
|
311
326
|
|
|
312
327
|
## 0.1.14
|
|
313
328
|
|
|
314
329
|
### Patch Changes
|
|
315
330
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
-
|
|
331
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
332
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
333
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
334
|
+
- Updated dependencies
|
|
320
335
|
|
|
321
336
|
## 0.1.13
|
|
322
337
|
|
|
323
338
|
### Patch Changes
|
|
324
339
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
340
|
+
- [#62880](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62880)
|
|
341
|
+
[`a23ec26652ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a23ec26652ea) -
|
|
342
|
+
Extracting breakout plugin from editor-core into new package @atlaskit/editor-plugin-breakout
|
|
328
343
|
|
|
329
344
|
## 0.1.12
|
|
330
345
|
|
|
331
346
|
### Patch Changes
|
|
332
347
|
|
|
333
|
-
-
|
|
334
|
-
|
|
335
|
-
|
|
348
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
349
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
350
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
336
351
|
|
|
337
352
|
## 0.1.11
|
|
338
353
|
|
|
339
354
|
### Patch Changes
|
|
340
355
|
|
|
341
|
-
-
|
|
342
|
-
|
|
343
|
-
|
|
356
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
357
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
358
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
344
359
|
|
|
345
360
|
## 0.1.10
|
|
346
361
|
|
|
347
362
|
### Patch Changes
|
|
348
363
|
|
|
349
|
-
-
|
|
350
|
-
|
|
351
|
-
|
|
364
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
365
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
366
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
352
367
|
|
|
353
368
|
## 0.1.9
|
|
354
369
|
|
|
355
370
|
### Patch Changes
|
|
356
371
|
|
|
357
|
-
-
|
|
372
|
+
- Updated dependencies
|
|
358
373
|
|
|
359
374
|
## 0.1.8
|
|
360
375
|
|
|
361
376
|
### Patch Changes
|
|
362
377
|
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
378
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
379
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
380
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
366
381
|
|
|
367
382
|
## 0.1.7
|
|
368
383
|
|
|
369
384
|
### Patch Changes
|
|
370
385
|
|
|
371
|
-
-
|
|
372
|
-
|
|
373
|
-
|
|
386
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
387
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
388
|
+
update ADF schema
|
|
374
389
|
|
|
375
390
|
## 0.1.6
|
|
376
391
|
|
|
377
392
|
### Patch Changes
|
|
378
393
|
|
|
379
|
-
-
|
|
380
|
-
|
|
381
|
-
|
|
394
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
395
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
396
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
382
397
|
|
|
383
398
|
## 0.1.5
|
|
384
399
|
|
|
385
400
|
### Patch Changes
|
|
386
401
|
|
|
387
|
-
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
402
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
403
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
404
|
+
feature flags plugin optional in all plugins including:
|
|
405
|
+
|
|
406
|
+
- analytics
|
|
407
|
+
- base
|
|
408
|
+
- card
|
|
409
|
+
- code-block
|
|
410
|
+
- expand
|
|
411
|
+
- extension
|
|
412
|
+
- floating-toolbar
|
|
413
|
+
- hyperlink
|
|
414
|
+
- insert-block
|
|
415
|
+
- layout
|
|
416
|
+
- layout
|
|
417
|
+
- list
|
|
418
|
+
- media
|
|
419
|
+
- paste
|
|
420
|
+
- rule
|
|
421
|
+
- table
|
|
422
|
+
- tasks-and-decisions
|
|
423
|
+
|
|
424
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
425
|
+
mandatory to be added to the preset.
|
|
411
426
|
|
|
412
427
|
## 0.1.4
|
|
413
428
|
|
|
414
429
|
### Patch Changes
|
|
415
430
|
|
|
416
|
-
-
|
|
417
|
-
|
|
418
|
-
|
|
431
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
432
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
433
|
+
Upgrade adf-schema package to ^34.0.0
|
|
419
434
|
|
|
420
435
|
## 0.1.3
|
|
421
436
|
|
|
422
437
|
### Patch Changes
|
|
423
438
|
|
|
424
|
-
-
|
|
439
|
+
- Updated dependencies
|
|
425
440
|
|
|
426
441
|
## 0.1.2
|
|
427
442
|
|
|
428
443
|
### Patch Changes
|
|
429
444
|
|
|
430
|
-
-
|
|
445
|
+
- Updated dependencies
|
|
431
446
|
|
|
432
447
|
## 0.1.1
|
|
433
448
|
|
|
434
449
|
### Patch Changes
|
|
435
450
|
|
|
436
|
-
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
-
|
|
451
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
452
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
453
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
454
|
+
- 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/cjs/plugin.js
CHANGED
|
@@ -85,13 +85,14 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
85
85
|
},
|
|
86
86
|
pluginsOptions: {
|
|
87
87
|
quickInsert: function quickInsert(_ref5) {
|
|
88
|
+
var _options$getEditorFea;
|
|
88
89
|
var formatMessage = _ref5.formatMessage;
|
|
89
90
|
return [{
|
|
90
91
|
id: 'codeblock',
|
|
91
92
|
title: formatMessage(_messages.blockTypeMessages.codeblock),
|
|
92
93
|
description: formatMessage(_messages.blockTypeMessages.codeblockDescription),
|
|
93
94
|
keywords: ['code block'],
|
|
94
|
-
priority: 700,
|
|
95
|
+
priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 400 : 700,
|
|
95
96
|
keyshortcut: '```',
|
|
96
97
|
icon: function icon() {
|
|
97
98
|
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconCode, null);
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -74,31 +74,34 @@ const codeBlockPlugin = ({
|
|
|
74
74
|
pluginsOptions: {
|
|
75
75
|
quickInsert: ({
|
|
76
76
|
formatMessage
|
|
77
|
-
}) =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
77
|
+
}) => {
|
|
78
|
+
var _options$getEditorFea;
|
|
79
|
+
return [{
|
|
80
|
+
id: 'codeblock',
|
|
81
|
+
title: formatMessage(blockTypeMessages.codeblock),
|
|
82
|
+
description: formatMessage(blockTypeMessages.codeblockDescription),
|
|
83
|
+
keywords: ['code block'],
|
|
84
|
+
priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 400 : 700,
|
|
85
|
+
keyshortcut: '```',
|
|
86
|
+
icon: () => /*#__PURE__*/React.createElement(IconCode, null),
|
|
87
|
+
action(_insert, state) {
|
|
88
|
+
var _api$analytics3;
|
|
89
|
+
const tr = createInsertCodeBlockTransaction({
|
|
90
|
+
state
|
|
91
|
+
});
|
|
92
|
+
api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions.attachAnalyticsEvent({
|
|
93
|
+
action: ACTION.INSERTED,
|
|
94
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
95
|
+
actionSubjectId: ACTION_SUBJECT_ID.CODE_BLOCK,
|
|
96
|
+
attributes: {
|
|
97
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
98
|
+
},
|
|
99
|
+
eventType: EVENT_TYPE.TRACK
|
|
100
|
+
})(tr);
|
|
101
|
+
return tr;
|
|
102
|
+
}
|
|
103
|
+
}];
|
|
104
|
+
},
|
|
102
105
|
floatingToolbar: getToolbarConfig(options === null || options === void 0 ? void 0 : options.allowCopyToClipboard, api)
|
|
103
106
|
}
|
|
104
107
|
});
|
package/dist/esm/plugin.js
CHANGED
|
@@ -78,13 +78,14 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
78
78
|
},
|
|
79
79
|
pluginsOptions: {
|
|
80
80
|
quickInsert: function quickInsert(_ref5) {
|
|
81
|
+
var _options$getEditorFea;
|
|
81
82
|
var formatMessage = _ref5.formatMessage;
|
|
82
83
|
return [{
|
|
83
84
|
id: 'codeblock',
|
|
84
85
|
title: formatMessage(blockTypeMessages.codeblock),
|
|
85
86
|
description: formatMessage(blockTypeMessages.codeblockDescription),
|
|
86
87
|
keywords: ['code block'],
|
|
87
|
-
priority: 700,
|
|
88
|
+
priority: options !== null && options !== void 0 && (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 400 : 700,
|
|
88
89
|
keyshortcut: '```',
|
|
89
90
|
icon: function icon() {
|
|
90
91
|
return /*#__PURE__*/React.createElement(IconCode, null);
|
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;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { EditorAppearance, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
3
3
|
allowCopyToClipboard?: boolean;
|
|
4
4
|
allowCompositionInputOverride?: boolean;
|
|
5
5
|
appearance?: EditorAppearance | undefined;
|
|
6
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
6
7
|
}
|
|
@@ -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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { EditorAppearance, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAppearance, GetEditorFeatureFlags, LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
3
3
|
allowCopyToClipboard?: boolean;
|
|
4
4
|
allowCompositionInputOverride?: boolean;
|
|
5
5
|
appearance?: EditorAppearance | undefined;
|
|
6
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,105 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"emotion"
|
|
85
|
-
],
|
|
86
|
-
"imports": [
|
|
87
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
92
|
-
"stricter": {
|
|
93
|
-
"no-unused-dependencies": {
|
|
94
|
-
"checkDevDependencies": true
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"platform-feature-flags": {
|
|
98
|
-
"platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
|
-
"platform.editor.codeblock-preserve-newlines_54r3m": {
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
+
"version": "1.3.4",
|
|
4
|
+
"description": "Code block 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: Scarlet",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"inPublicMirror": false,
|
|
14
|
+
"releaseModel": "continuous",
|
|
15
|
+
"runReact18": false
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
|
+
"main": "dist/cjs/index.js",
|
|
19
|
+
"module": "dist/esm/index.js",
|
|
20
|
+
"module:es2019": "dist/es2019/index.js",
|
|
21
|
+
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"atlaskit:src": "src/index.ts",
|
|
29
|
+
"af:exports": {
|
|
30
|
+
".": "./src/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
34
|
+
"@atlaskit/code": "^15.2.0",
|
|
35
|
+
"@atlaskit/editor-common": "^82.6.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
37
|
+
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
39
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
40
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
|
+
"@atlaskit/icon": "^22.3.0",
|
|
42
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
43
|
+
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
44
|
+
"@babel/runtime": "^7.0.0",
|
|
45
|
+
"raf-schd": "^4.0.3"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"react": "^16.8.0",
|
|
49
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"typescript": "~5.4.2"
|
|
53
|
+
},
|
|
54
|
+
"techstack": {
|
|
55
|
+
"@atlassian/frontend": {
|
|
56
|
+
"import-structure": ["atlassian-conventions"],
|
|
57
|
+
"circular-dependencies": ["file-and-folder-level"]
|
|
58
|
+
},
|
|
59
|
+
"@repo/internal": {
|
|
60
|
+
"dom-events": "use-bind-event-listener",
|
|
61
|
+
"analytics": ["analytics-next"],
|
|
62
|
+
"design-tokens": ["color"],
|
|
63
|
+
"theming": ["react-context"],
|
|
64
|
+
"ui-components": ["lite-mode"],
|
|
65
|
+
"deprecation": "no-deprecated-imports",
|
|
66
|
+
"styling": ["emotion", "emotion"],
|
|
67
|
+
"imports": ["import-no-extraneous-disable-for-examples-and-docs"]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"stricter": {
|
|
71
|
+
"no-unused-dependencies": {
|
|
72
|
+
"checkDevDependencies": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"platform-feature-flags": {
|
|
76
|
+
"platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
},
|
|
79
|
+
"platform.editor.codeblock-preserve-newlines_54r3m": {
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
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
|
|