@atlaskit/editor-plugin-placeholder-text 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +12 -12
- package/CHANGELOG.md +125 -119
- package/LICENSE.md +6 -8
- package/dist/cjs/styles.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/index.js +3 -1
- package/dist/es2019/styles.js +41 -41
- package/dist/es2019/ui/FloatingToolbar/index.js +3 -1
- package/dist/esm/styles.js +1 -1
- package/dist/esm/ui/FloatingToolbar/index.js +3 -1
- package/dist/types/types.d.ts +1 -4
- package/dist/types/ui/FloatingToolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/index.d.ts +1 -1
- package/package.json +4 -6
- package/report.api.md +21 -23
package/.eslintrc.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
+
},
|
|
6
|
+
overrides: [
|
|
7
|
+
{
|
|
8
|
+
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
|
9
|
+
rules: {
|
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
14
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,329 +1,335 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder-text
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.2.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
13
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
14
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
15
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
16
|
+
- Updated dependencies
|
|
11
17
|
|
|
12
18
|
## 1.2.1
|
|
13
19
|
|
|
14
20
|
### Patch Changes
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
23
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
24
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
25
|
|
|
20
26
|
## 1.2.0
|
|
21
27
|
|
|
22
28
|
### Minor Changes
|
|
23
29
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
31
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
32
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
33
|
|
|
28
34
|
### Patch Changes
|
|
29
35
|
|
|
30
|
-
-
|
|
36
|
+
- Updated dependencies
|
|
31
37
|
|
|
32
38
|
## 1.1.7
|
|
33
39
|
|
|
34
40
|
### Patch Changes
|
|
35
41
|
|
|
36
|
-
-
|
|
42
|
+
- Updated dependencies
|
|
37
43
|
|
|
38
44
|
## 1.1.6
|
|
39
45
|
|
|
40
46
|
### Patch Changes
|
|
41
47
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
49
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
50
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
45
51
|
|
|
46
52
|
## 1.1.5
|
|
47
53
|
|
|
48
54
|
### Patch Changes
|
|
49
55
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
57
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
58
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
59
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
60
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
55
61
|
|
|
56
62
|
## 1.1.4
|
|
57
63
|
|
|
58
64
|
### Patch Changes
|
|
59
65
|
|
|
60
|
-
-
|
|
66
|
+
- Updated dependencies
|
|
61
67
|
|
|
62
68
|
## 1.1.3
|
|
63
69
|
|
|
64
70
|
### Patch Changes
|
|
65
71
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
73
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
74
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
69
75
|
|
|
70
76
|
## 1.1.2
|
|
71
77
|
|
|
72
78
|
### Patch Changes
|
|
73
79
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
81
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
82
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
77
83
|
|
|
78
84
|
## 1.1.1
|
|
79
85
|
|
|
80
86
|
### Patch Changes
|
|
81
87
|
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
89
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
90
|
+
Updating adf-schema version to 35.10.0
|
|
85
91
|
|
|
86
92
|
## 1.1.0
|
|
87
93
|
|
|
88
94
|
### Minor Changes
|
|
89
95
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
97
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
98
|
+
bumped editor-prosemirror version to 4.0.0
|
|
93
99
|
|
|
94
100
|
### Patch Changes
|
|
95
101
|
|
|
96
|
-
-
|
|
102
|
+
- Updated dependencies
|
|
97
103
|
|
|
98
104
|
## 1.0.9
|
|
99
105
|
|
|
100
106
|
### Patch Changes
|
|
101
107
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
109
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
110
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
105
111
|
|
|
106
112
|
## 1.0.8
|
|
107
113
|
|
|
108
114
|
### Patch Changes
|
|
109
115
|
|
|
110
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
116
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
117
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
118
|
+
Bump ADF-schema package to version 35.0.0
|
|
119
|
+
- Updated dependencies
|
|
114
120
|
|
|
115
121
|
## 1.0.7
|
|
116
122
|
|
|
117
123
|
### Patch Changes
|
|
118
124
|
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
126
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
127
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
128
|
+
35.7.0 to 35.8.0
|
|
123
129
|
|
|
124
130
|
## 1.0.6
|
|
125
131
|
|
|
126
132
|
### Patch Changes
|
|
127
133
|
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
135
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
136
|
+
Bump adf-schema to 35.7.0
|
|
131
137
|
|
|
132
138
|
## 1.0.5
|
|
133
139
|
|
|
134
140
|
### Patch Changes
|
|
135
141
|
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
142
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
143
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
144
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
139
145
|
|
|
140
146
|
## 1.0.4
|
|
141
147
|
|
|
142
148
|
### Patch Changes
|
|
143
149
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
150
|
+
- [#82109](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82109)
|
|
151
|
+
[`2ab37a71220d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2ab37a71220d) -
|
|
152
|
+
Setup react 18 types for @atlaskit/editor-plugin-placeholder-text
|
|
147
153
|
|
|
148
154
|
## 1.0.3
|
|
149
155
|
|
|
150
156
|
### Patch Changes
|
|
151
157
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
159
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
160
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
155
161
|
|
|
156
162
|
## 1.0.2
|
|
157
163
|
|
|
158
164
|
### Patch Changes
|
|
159
165
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
-
|
|
166
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
167
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
168
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
169
|
+
- Updated dependencies
|
|
164
170
|
|
|
165
171
|
## 1.0.1
|
|
166
172
|
|
|
167
173
|
### Patch Changes
|
|
168
174
|
|
|
169
|
-
-
|
|
175
|
+
- Updated dependencies
|
|
170
176
|
|
|
171
177
|
## 1.0.0
|
|
172
178
|
|
|
173
179
|
### Major Changes
|
|
174
180
|
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
181
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
182
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
183
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
184
|
+
is to address an issue with Jira plugin consumption.
|
|
179
185
|
|
|
180
186
|
### Patch Changes
|
|
181
187
|
|
|
182
|
-
-
|
|
188
|
+
- Updated dependencies
|
|
183
189
|
|
|
184
190
|
## 0.1.19
|
|
185
191
|
|
|
186
192
|
### Patch Changes
|
|
187
193
|
|
|
188
|
-
-
|
|
189
|
-
|
|
190
|
-
|
|
194
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
195
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
196
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
191
197
|
|
|
192
198
|
## 0.1.18
|
|
193
199
|
|
|
194
200
|
### Patch Changes
|
|
195
201
|
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
-
|
|
202
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
203
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
204
|
+
Move all plugin translations to editor-common
|
|
205
|
+
- Updated dependencies
|
|
200
206
|
|
|
201
207
|
## 0.1.17
|
|
202
208
|
|
|
203
209
|
### Patch Changes
|
|
204
210
|
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
211
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
212
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
213
|
+
Updating adf-schema version to 35.5.1
|
|
208
214
|
|
|
209
215
|
## 0.1.16
|
|
210
216
|
|
|
211
217
|
### Patch Changes
|
|
212
218
|
|
|
213
|
-
-
|
|
219
|
+
- Updated dependencies
|
|
214
220
|
|
|
215
221
|
## 0.1.15
|
|
216
222
|
|
|
217
223
|
### Patch Changes
|
|
218
224
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
225
|
+
- [#66398](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66398)
|
|
226
|
+
[`dd2a685a2f06`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dd2a685a2f06) -
|
|
227
|
+
Bugfix for clicking on a placeholder to focus within the editor when the side context panel is
|
|
228
|
+
open
|
|
229
|
+
- Updated dependencies
|
|
224
230
|
|
|
225
231
|
## 0.1.14
|
|
226
232
|
|
|
227
233
|
### Patch Changes
|
|
228
234
|
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
235
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
236
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
237
|
+
Ensure all editor plugins are marked as singletons
|
|
232
238
|
|
|
233
239
|
## 0.1.13
|
|
234
240
|
|
|
235
241
|
### Patch Changes
|
|
236
242
|
|
|
237
|
-
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
-
|
|
243
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
244
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
245
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
246
|
+
- Updated dependencies
|
|
241
247
|
|
|
242
248
|
## 0.1.12
|
|
243
249
|
|
|
244
250
|
### Patch Changes
|
|
245
251
|
|
|
246
|
-
-
|
|
252
|
+
- Updated dependencies
|
|
247
253
|
|
|
248
254
|
## 0.1.11
|
|
249
255
|
|
|
250
256
|
### Patch Changes
|
|
251
257
|
|
|
252
|
-
-
|
|
253
|
-
|
|
254
|
-
|
|
258
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
259
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
260
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
255
261
|
|
|
256
262
|
## 0.1.10
|
|
257
263
|
|
|
258
264
|
### Patch Changes
|
|
259
265
|
|
|
260
|
-
-
|
|
261
|
-
|
|
262
|
-
|
|
266
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
267
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
268
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
263
269
|
|
|
264
270
|
## 0.1.9
|
|
265
271
|
|
|
266
272
|
### Patch Changes
|
|
267
273
|
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
274
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
275
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
276
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
271
277
|
|
|
272
278
|
## 0.1.8
|
|
273
279
|
|
|
274
280
|
### Patch Changes
|
|
275
281
|
|
|
276
|
-
-
|
|
282
|
+
- Updated dependencies
|
|
277
283
|
|
|
278
284
|
## 0.1.7
|
|
279
285
|
|
|
280
286
|
### Patch Changes
|
|
281
287
|
|
|
282
|
-
-
|
|
288
|
+
- Updated dependencies
|
|
283
289
|
|
|
284
290
|
## 0.1.6
|
|
285
291
|
|
|
286
292
|
### Patch Changes
|
|
287
293
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
294
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
295
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
296
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
291
297
|
|
|
292
298
|
## 0.1.5
|
|
293
299
|
|
|
294
300
|
### Patch Changes
|
|
295
301
|
|
|
296
|
-
-
|
|
297
|
-
|
|
298
|
-
|
|
302
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
303
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
304
|
+
update ADF schema
|
|
299
305
|
|
|
300
306
|
## 0.1.4
|
|
301
307
|
|
|
302
308
|
### Patch Changes
|
|
303
309
|
|
|
304
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
310
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
311
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
312
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
307
313
|
|
|
308
314
|
## 0.1.3
|
|
309
315
|
|
|
310
316
|
### Patch Changes
|
|
311
317
|
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
|
|
318
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
319
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
320
|
+
Upgrade adf-schema package to ^34.0.0
|
|
315
321
|
|
|
316
322
|
## 0.1.2
|
|
317
323
|
|
|
318
324
|
### Patch Changes
|
|
319
325
|
|
|
320
|
-
-
|
|
326
|
+
- Updated dependencies
|
|
321
327
|
|
|
322
328
|
## 0.1.1
|
|
323
329
|
|
|
324
330
|
### Patch Changes
|
|
325
331
|
|
|
326
|
-
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
-
|
|
332
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
333
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
334
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
335
|
+
- 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/styles.js
CHANGED
|
@@ -11,4 +11,4 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _templateObject;
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
14
|
-
var placeholderTextStyles = exports.placeholderTextStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
14
|
+
var placeholderTextStyles = exports.placeholderTextStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror span[data-placeholder] {\n\t\tcolor: ", ";\n\t\tdisplay: inline;\n\t}\n\n\t.ProseMirror span.pm-placeholder {\n\t\tdisplay: inline;\n\t\tcolor: ", ";\n\t}\n\t.ProseMirror span.pm-placeholder__text {\n\t\tdisplay: inline;\n\t\tcolor: ", ";\n\t}\n\n\t.ProseMirror span.pm-placeholder.", " {\n\t\t", "\n\t}\n\n\t.ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n\t\tcolor: ", ";\n\t\tcursor: text;\n\t\tcontent: attr(data-placeholder);\n\t\tdisplay: inline;\n\t}\n\n\t.ProseMirror {\n\t\t.ProseMirror-fake-text-cursor {\n\t\t\tdisplay: inline;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.ProseMirror-fake-text-cursor::after {\n\t\t\tcontent: '';\n\t\t\tdisplay: inline;\n\t\t\ttop: 0;\n\t\t\tposition: absolute;\n\t\t\tborder-right: 1px solid ", ";\n\t\t}\n\n\t\t.ProseMirror-fake-text-selection {\n\t\t\tdisplay: inline;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t}\n\t}\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Background]), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"), "var(--ds-border, rgba(0, 0, 0, 0.4))", "var(--ds-background-selected, ".concat(_colors.B75, ")"));
|
|
@@ -64,7 +64,9 @@ function FloatingToolbar(_ref) {
|
|
|
64
64
|
}, (0, _react2.jsx)("div", {
|
|
65
65
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
66
66
|
css: (0, _styles.container)(fitHeight),
|
|
67
|
-
"data-testid": "popup-container"
|
|
67
|
+
"data-testid": "popup-container"
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
69
|
+
,
|
|
68
70
|
className: className
|
|
69
71
|
}, children));
|
|
70
72
|
}
|
package/dist/es2019/styles.js
CHANGED
|
@@ -3,51 +3,51 @@ import { akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } fro
|
|
|
3
3
|
import { B75, N200 } from '@atlaskit/theme/colors';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
5
5
|
export const placeholderTextStyles = css`
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
.ProseMirror span[data-placeholder] {
|
|
7
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
8
|
+
display: inline;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
.ProseMirror span.pm-placeholder {
|
|
12
|
+
display: inline;
|
|
13
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
14
|
+
}
|
|
15
|
+
.ProseMirror span.pm-placeholder__text {
|
|
16
|
+
display: inline;
|
|
17
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
.ProseMirror span.pm-placeholder.${akEditorSelectedNodeClassName} {
|
|
21
|
+
${getSelectionStyles([SelectionStyle.Background])}
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
.ProseMirror span.pm-placeholder__text[data-placeholder]::after {
|
|
25
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
26
|
+
cursor: text;
|
|
27
|
+
content: attr(data-placeholder);
|
|
28
|
+
display: inline;
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
.ProseMirror {
|
|
32
|
+
.ProseMirror-fake-text-cursor {
|
|
33
|
+
display: inline;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
.ProseMirror-fake-text-cursor::after {
|
|
39
|
+
content: '';
|
|
40
|
+
display: inline;
|
|
41
|
+
top: 0;
|
|
42
|
+
position: absolute;
|
|
43
|
+
border-right: 1px solid ${"var(--ds-border, rgba(0, 0, 0, 0.4))"};
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
.ProseMirror-fake-text-selection {
|
|
47
|
+
display: inline;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
position: relative;
|
|
50
|
+
background-color: ${`var(--ds-background-selected, ${B75})`};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
53
|
`;
|
|
@@ -38,7 +38,9 @@ export default function FloatingToolbar({
|
|
|
38
38
|
}, jsx("div", {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
40
40
|
css: container(fitHeight),
|
|
41
|
-
"data-testid": "popup-container"
|
|
41
|
+
"data-testid": "popup-container"
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
43
|
+
,
|
|
42
44
|
className: className
|
|
43
45
|
}, children));
|
|
44
46
|
}
|
package/dist/esm/styles.js
CHANGED
|
@@ -4,4 +4,4 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
import { akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { B75, N200 } from '@atlaskit/theme/colors';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
7
|
-
export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
7
|
+
export var placeholderTextStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror span[data-placeholder] {\n\t\tcolor: ", ";\n\t\tdisplay: inline;\n\t}\n\n\t.ProseMirror span.pm-placeholder {\n\t\tdisplay: inline;\n\t\tcolor: ", ";\n\t}\n\t.ProseMirror span.pm-placeholder__text {\n\t\tdisplay: inline;\n\t\tcolor: ", ";\n\t}\n\n\t.ProseMirror span.pm-placeholder.", " {\n\t\t", "\n\t}\n\n\t.ProseMirror span.pm-placeholder__text[data-placeholder]::after {\n\t\tcolor: ", ";\n\t\tcursor: text;\n\t\tcontent: attr(data-placeholder);\n\t\tdisplay: inline;\n\t}\n\n\t.ProseMirror {\n\t\t.ProseMirror-fake-text-cursor {\n\t\t\tdisplay: inline;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.ProseMirror-fake-text-cursor::after {\n\t\t\tcontent: '';\n\t\t\tdisplay: inline;\n\t\t\ttop: 0;\n\t\t\tposition: absolute;\n\t\t\tborder-right: 1px solid ", ";\n\t\t}\n\n\t\t.ProseMirror-fake-text-selection {\n\t\t\tdisplay: inline;\n\t\t\tpointer-events: none;\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t}\n\t}\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-text-subtlest, ".concat(N200, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.Background]), "var(--ds-text-subtlest, ".concat(N200, ")"), "var(--ds-border, rgba(0, 0, 0, 0.4))", "var(--ds-background-selected, ".concat(B75, ")"));
|
|
@@ -38,7 +38,9 @@ export default function FloatingToolbar(_ref) {
|
|
|
38
38
|
}, jsx("div", {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
40
40
|
css: container(fitHeight),
|
|
41
|
-
"data-testid": "popup-container"
|
|
41
|
+
"data-testid": "popup-container"
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
43
|
+
,
|
|
42
44
|
className: className
|
|
43
45
|
}, children));
|
|
44
46
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -10,10 +10,7 @@ export interface PlaceholderTextPluginState {
|
|
|
10
10
|
allowInserting: boolean;
|
|
11
11
|
}
|
|
12
12
|
export type PlaceholderTextPlugin = NextEditorPlugin<'placeholderText', {
|
|
13
|
-
dependencies: [
|
|
14
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
15
|
-
OptionalPlugin<TypeAheadPlugin>
|
|
16
|
-
];
|
|
13
|
+
dependencies: [OptionalPlugin<typeof analyticsPlugin>, OptionalPlugin<TypeAheadPlugin>];
|
|
17
14
|
pluginConfiguration: PlaceholderTextOptions;
|
|
18
15
|
sharedState: PlaceholderTextPluginState | undefined;
|
|
19
16
|
actions: {
|
|
@@ -23,5 +23,5 @@ export interface Props {
|
|
|
23
23
|
alignY?: 'bottom' | 'top';
|
|
24
24
|
onPositionCalculated?: (position: Coordinates) => Coordinates;
|
|
25
25
|
}
|
|
26
|
-
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode
|
|
26
|
+
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode } from './utils';
|
|
27
27
|
export default function FloatingToolbar({ children, target, offset, fitWidth, fitHeight, onPositionCalculated, popupsMountPoint, popupsBoundariesElement, className, absoluteOffset, alignX, alignY, zIndex, }: Props): jsx.JSX.Element | null;
|
|
@@ -23,5 +23,5 @@ export interface Props {
|
|
|
23
23
|
alignY?: 'bottom' | 'top';
|
|
24
24
|
onPositionCalculated?: (position: Coordinates) => Coordinates;
|
|
25
25
|
}
|
|
26
|
-
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode
|
|
26
|
+
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode } from './utils';
|
|
27
27
|
export default function FloatingToolbar({ children, target, offset, fitWidth, fitHeight, onPositionCalculated, popupsMountPoint, popupsBoundariesElement, className, absoluteOffset, alignX, alignY, zIndex, }: Props): jsx.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder-text",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "placeholder text plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
32
|
-
"@atlaskit/editor-common": "^
|
|
32
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
36
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
36
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
37
37
|
"@atlaskit/icon": "^22.3.0",
|
|
38
38
|
"@atlaskit/theme": "^12.8.0",
|
|
39
39
|
"@atlaskit/tokens": "^1.49.0",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"@atlaskit/editor-plugin-floating-toolbar": "^1.4.0",
|
|
51
51
|
"@atlaskit/ssr": "*",
|
|
52
52
|
"@atlaskit/visual-regression": "*",
|
|
53
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
54
53
|
"@testing-library/react": "^12.1.5",
|
|
55
54
|
"react-dom": "^16.8.0",
|
|
56
55
|
"typescript": "~5.4.2",
|
|
@@ -100,6 +99,5 @@
|
|
|
100
99
|
"af:exports": {
|
|
101
100
|
".": "./src/index.ts",
|
|
102
101
|
"./styles": "./src/styles.ts"
|
|
103
|
-
}
|
|
104
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
102
|
+
}
|
|
105
103
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-placeholder-text"
|
|
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
|
|
@@ -24,24 +25,21 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
|
24
25
|
|
|
25
26
|
// @public (undocumented)
|
|
26
27
|
export interface PlaceholderTextOptions {
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
// (undocumented)
|
|
29
|
+
allowInserting?: boolean;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
// @public (undocumented)
|
|
32
33
|
export type PlaceholderTextPlugin = NextEditorPlugin<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
showPlaceholderFloatingToolbar: typeof showPlaceholderFloatingToolbar;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
34
|
+
'placeholderText',
|
|
35
|
+
{
|
|
36
|
+
dependencies: [OptionalPlugin<typeof analyticsPlugin>, OptionalPlugin<TypeAheadPlugin>];
|
|
37
|
+
pluginConfiguration: PlaceholderTextOptions;
|
|
38
|
+
sharedState: PlaceholderTextPluginState | undefined;
|
|
39
|
+
actions: {
|
|
40
|
+
showPlaceholderFloatingToolbar: typeof showPlaceholderFloatingToolbar;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
45
43
|
>;
|
|
46
44
|
|
|
47
45
|
// @public (undocumented)
|
|
@@ -49,16 +47,16 @@ export const placeholderTextPlugin: PlaceholderTextPlugin;
|
|
|
49
47
|
|
|
50
48
|
// @public (undocumented)
|
|
51
49
|
export interface PlaceholderTextPluginState {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
// (undocumented)
|
|
51
|
+
allowInserting: boolean;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
showInsertPanelAt: null | number;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
// @public (undocumented)
|
|
59
57
|
const showPlaceholderFloatingToolbar: (
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
state: EditorState,
|
|
59
|
+
dispatch: (tr: Transaction) => void,
|
|
62
60
|
) => boolean;
|
|
63
61
|
|
|
64
62
|
// (No @packageDocumentation comment for this package)
|
|
@@ -72,8 +70,8 @@ const showPlaceholderFloatingToolbar: (
|
|
|
72
70
|
|
|
73
71
|
```json
|
|
74
72
|
{
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
"react": "^16.8.0",
|
|
74
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
77
75
|
}
|
|
78
76
|
```
|
|
79
77
|
|