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