@atlaskit/editor-plugin-text-color 1.3.3 → 1.4.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 +4 -4
- package/CHANGELOG.md +171 -150
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +29 -21
- package/dist/cjs/ui/ToolbarTextColor/index.js +2 -3
- package/dist/es2019/plugin.js +28 -20
- package/dist/es2019/ui/ToolbarTextColor/index.js +2 -3
- package/dist/esm/plugin.js +29 -21
- package/dist/esm/ui/ToolbarTextColor/index.js +2 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +2 -5
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +6 -8
- package/report.api.md +21 -20
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,397 +1,418 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#101406](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101406)
|
|
14
|
+
[`6daffd65aec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6daffd65aec4) -
|
|
15
|
+
[ED-23298] Extract primary toolbar components to editor plugin to allow for custom ordering
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
20
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
21
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.3.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
6
27
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
28
|
+
- [#101513](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101513)
|
|
29
|
+
[`98b5dfc33bed`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/98b5dfc33bed) -
|
|
30
|
+
[ux] [ED-23156] The highlight primary toolbar button is disabled when trying to apply it on nodes
|
|
31
|
+
that don't enable the mark and when in a gap cursor. The text color primary toolbar button is
|
|
32
|
+
disabled when selecting text with a highlight.
|
|
12
33
|
|
|
13
34
|
## 1.3.2
|
|
14
35
|
|
|
15
36
|
### Patch Changes
|
|
16
37
|
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
38
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
39
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
40
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
20
41
|
|
|
21
42
|
## 1.3.1
|
|
22
43
|
|
|
23
44
|
### Patch Changes
|
|
24
45
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
46
|
+
- [#100495](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100495)
|
|
47
|
+
[`dbb78a011fac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dbb78a011fac) -
|
|
48
|
+
[ux] [ED-23150] Added `changeColor` command for editor-plugin-highlight, including new
|
|
49
|
+
`removeMark` command for editor-common. Fixed bug with editor-plugin-text-color which prevented
|
|
50
|
+
color from being removed when user selects all.
|
|
51
|
+
- Updated dependencies
|
|
31
52
|
|
|
32
53
|
## 1.3.0
|
|
33
54
|
|
|
34
55
|
### Minor Changes
|
|
35
56
|
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
57
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
58
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
59
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
39
60
|
|
|
40
61
|
### Patch Changes
|
|
41
62
|
|
|
42
|
-
-
|
|
63
|
+
- Updated dependencies
|
|
43
64
|
|
|
44
65
|
## 1.2.2
|
|
45
66
|
|
|
46
67
|
### Patch Changes
|
|
47
68
|
|
|
48
|
-
-
|
|
69
|
+
- Updated dependencies
|
|
49
70
|
|
|
50
71
|
## 1.2.1
|
|
51
72
|
|
|
52
73
|
### Patch Changes
|
|
53
74
|
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
75
|
+
- [#99242](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99242)
|
|
76
|
+
[`854acdf04f29`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/854acdf04f29) -
|
|
77
|
+
Adjust tooltip text for editor toolbar buttons
|
|
78
|
+
- Updated dependencies
|
|
58
79
|
|
|
59
80
|
## 1.2.0
|
|
60
81
|
|
|
61
82
|
### Minor Changes
|
|
62
83
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
- [#98130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98130)
|
|
85
|
+
[`6a3c0d9d6382`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3c0d9d6382) -
|
|
86
|
+
[ED-23154] Add highlight option to main toolbar in editor
|
|
66
87
|
|
|
67
88
|
### Patch Changes
|
|
68
89
|
|
|
69
|
-
-
|
|
90
|
+
- Updated dependencies
|
|
70
91
|
|
|
71
92
|
## 1.1.8
|
|
72
93
|
|
|
73
94
|
### Patch Changes
|
|
74
95
|
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
96
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
97
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
98
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
78
99
|
|
|
79
100
|
## 1.1.7
|
|
80
101
|
|
|
81
102
|
### Patch Changes
|
|
82
103
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
105
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
106
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
107
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
108
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
88
109
|
|
|
89
110
|
## 1.1.6
|
|
90
111
|
|
|
91
112
|
### Patch Changes
|
|
92
113
|
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
114
|
+
- [#93784](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93784)
|
|
115
|
+
[`de2e52677025`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/de2e52677025) -
|
|
116
|
+
ECA11Y-217 Improve editor toolbar screen reader text for text styles and color
|
|
117
|
+
- Updated dependencies
|
|
97
118
|
|
|
98
119
|
## 1.1.5
|
|
99
120
|
|
|
100
121
|
### Patch Changes
|
|
101
122
|
|
|
102
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
103
124
|
|
|
104
125
|
## 1.1.4
|
|
105
126
|
|
|
106
127
|
### Patch Changes
|
|
107
128
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
129
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
130
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
131
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
132
|
+
- [#96613](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96613)
|
|
133
|
+
[`398961a2b0a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/398961a2b0a1) -
|
|
134
|
+
[ux] [ED-23133] Moved stepped rainbow text colour icon styles to editor-common and refactored to
|
|
135
|
+
be reusable
|
|
115
136
|
|
|
116
137
|
## 1.1.3
|
|
117
138
|
|
|
118
139
|
### Patch Changes
|
|
119
140
|
|
|
120
|
-
-
|
|
141
|
+
- Updated dependencies
|
|
121
142
|
|
|
122
143
|
## 1.1.2
|
|
123
144
|
|
|
124
145
|
### Patch Changes
|
|
125
146
|
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
147
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
148
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
149
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
129
150
|
|
|
130
151
|
## 1.1.1
|
|
131
152
|
|
|
132
153
|
### Patch Changes
|
|
133
154
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
155
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
156
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
157
|
+
Updating adf-schema version to 35.10.0
|
|
137
158
|
|
|
138
159
|
## 1.1.0
|
|
139
160
|
|
|
140
161
|
### Minor Changes
|
|
141
162
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
163
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
164
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
165
|
+
bumped editor-prosemirror version to 4.0.0
|
|
145
166
|
|
|
146
167
|
### Patch Changes
|
|
147
168
|
|
|
148
|
-
-
|
|
169
|
+
- Updated dependencies
|
|
149
170
|
|
|
150
171
|
## 1.0.8
|
|
151
172
|
|
|
152
173
|
### Patch Changes
|
|
153
174
|
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
175
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
176
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
177
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
157
178
|
|
|
158
179
|
## 1.0.7
|
|
159
180
|
|
|
160
181
|
### Patch Changes
|
|
161
182
|
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
-
|
|
183
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
184
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
185
|
+
Bump ADF-schema package to version 35.0.0
|
|
186
|
+
- Updated dependencies
|
|
166
187
|
|
|
167
188
|
## 1.0.6
|
|
168
189
|
|
|
169
190
|
### Patch Changes
|
|
170
191
|
|
|
171
|
-
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
192
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
193
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
194
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
195
|
+
35.7.0 to 35.8.0
|
|
175
196
|
|
|
176
197
|
## 1.0.5
|
|
177
198
|
|
|
178
199
|
### Patch Changes
|
|
179
200
|
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
201
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
202
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
203
|
+
Bump adf-schema to 35.7.0
|
|
183
204
|
|
|
184
205
|
## 1.0.4
|
|
185
206
|
|
|
186
207
|
### Patch Changes
|
|
187
208
|
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
-
|
|
209
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
210
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
211
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
212
|
+
- Updated dependencies
|
|
192
213
|
|
|
193
214
|
## 1.0.3
|
|
194
215
|
|
|
195
216
|
### Patch Changes
|
|
196
217
|
|
|
197
|
-
-
|
|
198
|
-
|
|
199
|
-
|
|
218
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
219
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
220
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
200
221
|
|
|
201
222
|
## 1.0.2
|
|
202
223
|
|
|
203
224
|
### Patch Changes
|
|
204
225
|
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
226
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
227
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
228
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
229
|
+
- Updated dependencies
|
|
209
230
|
|
|
210
231
|
## 1.0.1
|
|
211
232
|
|
|
212
233
|
### Patch Changes
|
|
213
234
|
|
|
214
|
-
-
|
|
235
|
+
- Updated dependencies
|
|
215
236
|
|
|
216
237
|
## 1.0.0
|
|
217
238
|
|
|
218
239
|
### Major Changes
|
|
219
240
|
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
241
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
242
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
243
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
244
|
+
is to address an issue with Jira plugin consumption.
|
|
224
245
|
|
|
225
246
|
### Patch Changes
|
|
226
247
|
|
|
227
|
-
-
|
|
248
|
+
- Updated dependencies
|
|
228
249
|
|
|
229
250
|
## 0.2.3
|
|
230
251
|
|
|
231
252
|
### Patch Changes
|
|
232
253
|
|
|
233
|
-
-
|
|
234
|
-
|
|
235
|
-
|
|
254
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
255
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
256
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
236
257
|
|
|
237
258
|
## 0.2.2
|
|
238
259
|
|
|
239
260
|
### Patch Changes
|
|
240
261
|
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
-
|
|
262
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
263
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
264
|
+
Move all plugin translations to editor-common
|
|
265
|
+
- Updated dependencies
|
|
245
266
|
|
|
246
267
|
## 0.2.1
|
|
247
268
|
|
|
248
269
|
### Patch Changes
|
|
249
270
|
|
|
250
|
-
-
|
|
251
|
-
|
|
252
|
-
|
|
271
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
272
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
273
|
+
Updating adf-schema version to 35.5.1
|
|
253
274
|
|
|
254
275
|
## 0.2.0
|
|
255
276
|
|
|
256
277
|
### Minor Changes
|
|
257
278
|
|
|
258
|
-
-
|
|
259
|
-
|
|
260
|
-
|
|
279
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
280
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
281
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
261
282
|
|
|
262
|
-
|
|
283
|
+
Now when using the editor API with the universal preset
|
|
263
284
|
|
|
264
285
|
### Patch Changes
|
|
265
286
|
|
|
266
|
-
-
|
|
287
|
+
- Updated dependencies
|
|
267
288
|
|
|
268
289
|
## 0.1.17
|
|
269
290
|
|
|
270
291
|
### Patch Changes
|
|
271
292
|
|
|
272
|
-
-
|
|
293
|
+
- Updated dependencies
|
|
273
294
|
|
|
274
295
|
## 0.1.16
|
|
275
296
|
|
|
276
297
|
### Patch Changes
|
|
277
298
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
-
|
|
299
|
+
- [#67557](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67557)
|
|
300
|
+
[`124d0c6d5286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124d0c6d5286) -
|
|
301
|
+
Migrating block-type, text-color, and text-formatting to use useSharedPluginState rather than
|
|
302
|
+
WithPluginState. Removing unused option on default preset. Adding formattingIsPresent prop to
|
|
303
|
+
TextFormattingState.
|
|
304
|
+
- Updated dependencies
|
|
284
305
|
|
|
285
306
|
## 0.1.15
|
|
286
307
|
|
|
287
308
|
### Patch Changes
|
|
288
309
|
|
|
289
|
-
-
|
|
290
|
-
|
|
291
|
-
|
|
310
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
311
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
312
|
+
Ensure all editor plugins are marked as singletons
|
|
292
313
|
|
|
293
314
|
## 0.1.14
|
|
294
315
|
|
|
295
316
|
### Patch Changes
|
|
296
317
|
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
-
|
|
318
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
319
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
320
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
321
|
+
- Updated dependencies
|
|
301
322
|
|
|
302
323
|
## 0.1.13
|
|
303
324
|
|
|
304
325
|
### Patch Changes
|
|
305
326
|
|
|
306
|
-
-
|
|
307
|
-
|
|
308
|
-
|
|
327
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
328
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
329
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
309
330
|
|
|
310
331
|
## 0.1.12
|
|
311
332
|
|
|
312
333
|
### Patch Changes
|
|
313
334
|
|
|
314
|
-
-
|
|
315
|
-
|
|
316
|
-
|
|
335
|
+
- [#62088](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62088)
|
|
336
|
+
[`cbb82175953e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbb82175953e) -
|
|
337
|
+
[ux] Fixes the text color popup not disappearing when clicking on the toolbar icon.
|
|
317
338
|
|
|
318
339
|
## 0.1.11
|
|
319
340
|
|
|
320
341
|
### Patch Changes
|
|
321
342
|
|
|
322
|
-
-
|
|
323
|
-
|
|
324
|
-
|
|
343
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
344
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
345
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
325
346
|
|
|
326
347
|
## 0.1.10
|
|
327
348
|
|
|
328
349
|
### Patch Changes
|
|
329
350
|
|
|
330
|
-
-
|
|
331
|
-
|
|
332
|
-
|
|
351
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
352
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
353
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
333
354
|
|
|
334
355
|
## 0.1.9
|
|
335
356
|
|
|
336
357
|
### Patch Changes
|
|
337
358
|
|
|
338
|
-
-
|
|
359
|
+
- Updated dependencies
|
|
339
360
|
|
|
340
361
|
## 0.1.8
|
|
341
362
|
|
|
342
363
|
### Patch Changes
|
|
343
364
|
|
|
344
|
-
-
|
|
345
|
-
|
|
346
|
-
|
|
365
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
366
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
367
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
347
368
|
|
|
348
369
|
## 0.1.7
|
|
349
370
|
|
|
350
371
|
### Patch Changes
|
|
351
372
|
|
|
352
|
-
-
|
|
353
|
-
|
|
354
|
-
|
|
373
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
374
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
375
|
+
update ADF schema
|
|
355
376
|
|
|
356
377
|
## 0.1.6
|
|
357
378
|
|
|
358
379
|
### Patch Changes
|
|
359
380
|
|
|
360
|
-
-
|
|
361
|
-
|
|
362
|
-
|
|
381
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
382
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
383
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
363
384
|
|
|
364
385
|
## 0.1.5
|
|
365
386
|
|
|
366
387
|
### Patch Changes
|
|
367
388
|
|
|
368
|
-
-
|
|
369
|
-
|
|
370
|
-
|
|
389
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
390
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
391
|
+
Upgrade adf-schema package to ^34.0.0
|
|
371
392
|
|
|
372
393
|
## 0.1.4
|
|
373
394
|
|
|
374
395
|
### Patch Changes
|
|
375
396
|
|
|
376
|
-
-
|
|
397
|
+
- Updated dependencies
|
|
377
398
|
|
|
378
399
|
## 0.1.3
|
|
379
400
|
|
|
380
401
|
### Patch Changes
|
|
381
402
|
|
|
382
|
-
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
-
|
|
403
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
404
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
405
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
406
|
+
- Updated dependencies
|
|
386
407
|
|
|
387
408
|
## 0.1.2
|
|
388
409
|
|
|
389
410
|
### Patch Changes
|
|
390
411
|
|
|
391
|
-
-
|
|
412
|
+
- Updated dependencies
|
|
392
413
|
|
|
393
414
|
## 0.1.1
|
|
394
415
|
|
|
395
416
|
### Patch Changes
|
|
396
417
|
|
|
397
|
-
-
|
|
418
|
+
- 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
|
@@ -25,6 +25,25 @@ var pluginConfig = function pluginConfig(textColorConfig) {
|
|
|
25
25
|
var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
26
26
|
var textColorConfig = _ref.config,
|
|
27
27
|
api = _ref.api;
|
|
28
|
+
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
29
|
+
var editorView = _ref2.editorView,
|
|
30
|
+
popupsMountPoint = _ref2.popupsMountPoint,
|
|
31
|
+
popupsBoundariesElement = _ref2.popupsBoundariesElement,
|
|
32
|
+
popupsScrollableElement = _ref2.popupsScrollableElement,
|
|
33
|
+
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
34
|
+
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
|
|
35
|
+
disabled = _ref2.disabled;
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
|
|
37
|
+
isReducedSpacing: isToolbarReducedSpacing,
|
|
38
|
+
editorView: editorView,
|
|
39
|
+
popupsMountPoint: popupsMountPoint,
|
|
40
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
41
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
42
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
43
|
+
disabled: disabled,
|
|
44
|
+
api: api
|
|
45
|
+
});
|
|
46
|
+
};
|
|
28
47
|
return {
|
|
29
48
|
name: 'textColor',
|
|
30
49
|
marks: function marks() {
|
|
@@ -36,8 +55,8 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
|
36
55
|
pmPlugins: function pmPlugins() {
|
|
37
56
|
return [{
|
|
38
57
|
name: 'textColor',
|
|
39
|
-
plugin: function plugin(
|
|
40
|
-
var dispatch =
|
|
58
|
+
plugin: function plugin(_ref3) {
|
|
59
|
+
var dispatch = _ref3.dispatch;
|
|
41
60
|
return (0, _main.createPlugin)(dispatch, pluginConfig(textColorConfig));
|
|
42
61
|
}
|
|
43
62
|
}];
|
|
@@ -54,24 +73,13 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
|
|
|
54
73
|
return (0, _changeColor2.changeColor)(color, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
|
|
55
74
|
}
|
|
56
75
|
},
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
|
|
66
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
67
|
-
editorView: editorView,
|
|
68
|
-
popupsMountPoint: popupsMountPoint,
|
|
69
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
70
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
71
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
72
|
-
disabled: disabled,
|
|
73
|
-
api: api
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
+
usePluginHook: function usePluginHook() {
|
|
77
|
+
var _api$core, _api$primaryToolbar;
|
|
78
|
+
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
79
|
+
name: 'textColor',
|
|
80
|
+
component: primaryToolbarComponent
|
|
81
|
+
}));
|
|
82
|
+
},
|
|
83
|
+
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
76
84
|
};
|
|
77
85
|
};
|
|
@@ -226,9 +226,8 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
|
|
|
226
226
|
hexToPaletteColor: _editorPalette.hexToEditorTextPaletteColor,
|
|
227
227
|
paletteColorTooltipMessages: _uiColor.textPaletteTooltipMessages
|
|
228
228
|
}
|
|
229
|
-
}))),
|
|
230
|
-
|
|
231
|
-
!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.highlight) && (0, _react2.jsx)("span", {
|
|
229
|
+
}))), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
230
|
+
(0, _react2.jsx)("span", {
|
|
232
231
|
css: _styles.separatorStyles
|
|
233
232
|
}))
|
|
234
233
|
);
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -13,6 +13,26 @@ export const textColorPlugin = ({
|
|
|
13
13
|
config: textColorConfig,
|
|
14
14
|
api
|
|
15
15
|
}) => {
|
|
16
|
+
const primaryToolbarComponent = ({
|
|
17
|
+
editorView,
|
|
18
|
+
popupsMountPoint,
|
|
19
|
+
popupsBoundariesElement,
|
|
20
|
+
popupsScrollableElement,
|
|
21
|
+
isToolbarReducedSpacing,
|
|
22
|
+
dispatchAnalyticsEvent,
|
|
23
|
+
disabled
|
|
24
|
+
}) => {
|
|
25
|
+
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
26
|
+
isReducedSpacing: isToolbarReducedSpacing,
|
|
27
|
+
editorView: editorView,
|
|
28
|
+
popupsMountPoint: popupsMountPoint,
|
|
29
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
30
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
31
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
32
|
+
disabled: disabled,
|
|
33
|
+
api: api
|
|
34
|
+
});
|
|
35
|
+
};
|
|
16
36
|
return {
|
|
17
37
|
name: 'textColor',
|
|
18
38
|
marks() {
|
|
@@ -41,26 +61,14 @@ export const textColorPlugin = ({
|
|
|
41
61
|
return changeColor(color, api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
|
|
42
62
|
}
|
|
43
63
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}) {
|
|
53
|
-
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
54
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
55
|
-
editorView: editorView,
|
|
56
|
-
popupsMountPoint: popupsMountPoint,
|
|
57
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
58
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
59
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
60
|
-
disabled: disabled,
|
|
61
|
-
api: api
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
+
usePluginHook: () => {
|
|
65
|
+
var _api$core, _api$primaryToolbar;
|
|
66
|
+
api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
67
|
+
name: 'textColor',
|
|
68
|
+
component: primaryToolbarComponent
|
|
69
|
+
}));
|
|
70
|
+
},
|
|
71
|
+
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
64
72
|
};
|
|
65
73
|
};
|
|
66
74
|
export { textColorPluginKey };
|
|
@@ -205,9 +205,8 @@ export class ToolbarTextColor extends React.Component {
|
|
|
205
205
|
hexToPaletteColor: hexToEditorTextPaletteColor,
|
|
206
206
|
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
207
207
|
}
|
|
208
|
-
}))),
|
|
209
|
-
|
|
210
|
-
!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.highlight) && jsx("span", {
|
|
208
|
+
}))), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
209
|
+
jsx("span", {
|
|
211
210
|
css: separatorStyles
|
|
212
211
|
}))
|
|
213
212
|
);
|
package/dist/esm/plugin.js
CHANGED
|
@@ -12,6 +12,25 @@ var pluginConfig = function pluginConfig(textColorConfig) {
|
|
|
12
12
|
export var textColorPlugin = function textColorPlugin(_ref) {
|
|
13
13
|
var textColorConfig = _ref.config,
|
|
14
14
|
api = _ref.api;
|
|
15
|
+
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
16
|
+
var editorView = _ref2.editorView,
|
|
17
|
+
popupsMountPoint = _ref2.popupsMountPoint,
|
|
18
|
+
popupsBoundariesElement = _ref2.popupsBoundariesElement,
|
|
19
|
+
popupsScrollableElement = _ref2.popupsScrollableElement,
|
|
20
|
+
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
21
|
+
dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
|
|
22
|
+
disabled = _ref2.disabled;
|
|
23
|
+
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
24
|
+
isReducedSpacing: isToolbarReducedSpacing,
|
|
25
|
+
editorView: editorView,
|
|
26
|
+
popupsMountPoint: popupsMountPoint,
|
|
27
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
28
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
29
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
30
|
+
disabled: disabled,
|
|
31
|
+
api: api
|
|
32
|
+
});
|
|
33
|
+
};
|
|
15
34
|
return {
|
|
16
35
|
name: 'textColor',
|
|
17
36
|
marks: function marks() {
|
|
@@ -23,8 +42,8 @@ export var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
23
42
|
pmPlugins: function pmPlugins() {
|
|
24
43
|
return [{
|
|
25
44
|
name: 'textColor',
|
|
26
|
-
plugin: function plugin(
|
|
27
|
-
var dispatch =
|
|
45
|
+
plugin: function plugin(_ref3) {
|
|
46
|
+
var dispatch = _ref3.dispatch;
|
|
28
47
|
return createPlugin(dispatch, pluginConfig(textColorConfig));
|
|
29
48
|
}
|
|
30
49
|
}];
|
|
@@ -41,25 +60,14 @@ export var textColorPlugin = function textColorPlugin(_ref) {
|
|
|
41
60
|
return _changeColor(color, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
|
|
42
61
|
}
|
|
43
62
|
},
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
53
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
54
|
-
editorView: editorView,
|
|
55
|
-
popupsMountPoint: popupsMountPoint,
|
|
56
|
-
popupsBoundariesElement: popupsBoundariesElement,
|
|
57
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
58
|
-
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
59
|
-
disabled: disabled,
|
|
60
|
-
api: api
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
+
usePluginHook: function usePluginHook() {
|
|
64
|
+
var _api$core, _api$primaryToolbar;
|
|
65
|
+
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
66
|
+
name: 'textColor',
|
|
67
|
+
component: primaryToolbarComponent
|
|
68
|
+
}));
|
|
69
|
+
},
|
|
70
|
+
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
63
71
|
};
|
|
64
72
|
};
|
|
65
73
|
export { textColorPluginKey };
|
|
@@ -220,9 +220,8 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
220
220
|
hexToPaletteColor: hexToEditorTextPaletteColor,
|
|
221
221
|
paletteColorTooltipMessages: textPaletteTooltipMessages
|
|
222
222
|
}
|
|
223
|
-
}))),
|
|
224
|
-
|
|
225
|
-
!(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.highlight) && jsx("span", {
|
|
223
|
+
}))), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
224
|
+
jsx("span", {
|
|
226
225
|
css: separatorStyles
|
|
227
226
|
}))
|
|
228
227
|
);
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
4
4
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
5
|
type Config = TextColorPluginConfig | boolean;
|
|
6
6
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
7
7
|
pluginConfiguration: Config | undefined;
|
|
8
|
-
dependencies: [
|
|
9
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
10
|
-
OptionalPlugin<HighlightPlugin>
|
|
11
|
-
];
|
|
8
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<PrimaryToolbarPlugin>];
|
|
12
9
|
actions: {
|
|
13
10
|
changeColor: (color: string) => Command;
|
|
14
11
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
4
4
|
import type { TextColorPluginConfig, TextColorPluginState } from './pm-plugins/main';
|
|
5
5
|
type Config = TextColorPluginConfig | boolean;
|
|
6
6
|
export type TextColorPlugin = NextEditorPlugin<'textColor', {
|
|
7
7
|
pluginConfiguration: Config | undefined;
|
|
8
8
|
dependencies: [
|
|
9
9
|
OptionalPlugin<AnalyticsPlugin>,
|
|
10
|
-
OptionalPlugin<
|
|
10
|
+
OptionalPlugin<PrimaryToolbarPlugin>
|
|
11
11
|
];
|
|
12
12
|
actions: {
|
|
13
13
|
changeColor: (color: string) => Command;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/adf-schema": "^36.
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
37
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
|
-
"@atlaskit/editor-plugin-
|
|
40
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
44
44
|
"@atlaskit/icon": "^22.3.0",
|
|
45
45
|
"@atlaskit/theme": "^12.8.0",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"@af/visual-regression": "*",
|
|
55
55
|
"@atlaskit/ssr": "*",
|
|
56
56
|
"@atlaskit/visual-regression": "*",
|
|
57
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
58
57
|
"@testing-library/react": "^12.1.5",
|
|
59
58
|
"react-dom": "^16.8.0",
|
|
60
59
|
"typescript": "~5.4.2",
|
|
@@ -92,6 +91,5 @@
|
|
|
92
91
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
|
-
}
|
|
96
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
94
|
+
}
|
|
97
95
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-text-color"
|
|
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
|
|
@@ -26,21 +27,21 @@ type Config = TextColorPluginConfig | boolean;
|
|
|
26
27
|
|
|
27
28
|
// @public (undocumented)
|
|
28
29
|
type TextColorDefaultColor = {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
color: string;
|
|
31
|
+
label: string;
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
// @public (undocumented)
|
|
34
35
|
export type TextColorPlugin = NextEditorPlugin<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
'textColor',
|
|
37
|
+
{
|
|
38
|
+
pluginConfiguration: Config | undefined;
|
|
39
|
+
dependencies: TextColorPluginDependencies;
|
|
40
|
+
actions: {
|
|
41
|
+
changeColor: (color: string) => Command;
|
|
42
|
+
};
|
|
43
|
+
sharedState: TextColorPluginState | undefined;
|
|
44
|
+
}
|
|
44
45
|
>;
|
|
45
46
|
|
|
46
47
|
// @public (undocumented)
|
|
@@ -48,8 +49,8 @@ export const textColorPlugin: TextColorPlugin;
|
|
|
48
49
|
|
|
49
50
|
// @public (undocumented)
|
|
50
51
|
export interface TextColorPluginConfig {
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
// (undocumented)
|
|
53
|
+
defaultColor?: TextColorDefaultColor;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
// @public (undocumented)
|
|
@@ -57,10 +58,10 @@ type TextColorPluginDependencies = [OptionalPlugin<AnalyticsPlugin>];
|
|
|
57
58
|
|
|
58
59
|
// @public (undocumented)
|
|
59
60
|
export type TextColorPluginState = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
palette: Array<PaletteColor>;
|
|
62
|
+
defaultColor: string;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
color: null | string;
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
// (No @packageDocumentation comment for this package)
|
|
@@ -74,8 +75,8 @@ export type TextColorPluginState = {
|
|
|
74
75
|
|
|
75
76
|
```json
|
|
76
77
|
{
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
"react": "^16.8.0",
|
|
79
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
79
80
|
}
|
|
80
81
|
```
|
|
81
82
|
|