@atlaskit/editor-plugin-date 1.2.1 → 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 +4 -4
- package/CHANGELOG.md +164 -149
- package/LICENSE.md +6 -8
- package/dist/cjs/nodeviews/date.js +11 -7
- package/dist/es2019/nodeviews/date.js +11 -7
- package/dist/esm/nodeviews/date.js +11 -7
- package/dist/types/commands.d.ts +1 -4
- package/package.json +7 -9
- package/report.api.md +25 -24
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,436 +1,451 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
14
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
15
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.2.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
23
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
24
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
10
25
|
|
|
11
26
|
## 1.2.0
|
|
12
27
|
|
|
13
28
|
### Minor Changes
|
|
14
29
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
31
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
32
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
18
33
|
|
|
19
34
|
### Patch Changes
|
|
20
35
|
|
|
21
|
-
-
|
|
36
|
+
- Updated dependencies
|
|
22
37
|
|
|
23
38
|
## 1.1.11
|
|
24
39
|
|
|
25
40
|
### Patch Changes
|
|
26
41
|
|
|
27
|
-
-
|
|
42
|
+
- Updated dependencies
|
|
28
43
|
|
|
29
44
|
## 1.1.10
|
|
30
45
|
|
|
31
46
|
### Patch Changes
|
|
32
47
|
|
|
33
|
-
-
|
|
48
|
+
- Updated dependencies
|
|
34
49
|
|
|
35
50
|
## 1.1.9
|
|
36
51
|
|
|
37
52
|
### Patch Changes
|
|
38
53
|
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
54
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
55
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
56
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
42
57
|
|
|
43
58
|
## 1.1.8
|
|
44
59
|
|
|
45
60
|
### Patch Changes
|
|
46
61
|
|
|
47
|
-
-
|
|
62
|
+
- Updated dependencies
|
|
48
63
|
|
|
49
64
|
## 1.1.7
|
|
50
65
|
|
|
51
66
|
### Patch Changes
|
|
52
67
|
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
69
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
70
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
71
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
72
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
58
73
|
|
|
59
74
|
## 1.1.6
|
|
60
75
|
|
|
61
76
|
### Patch Changes
|
|
62
77
|
|
|
63
|
-
-
|
|
78
|
+
- Updated dependencies
|
|
64
79
|
|
|
65
80
|
## 1.1.5
|
|
66
81
|
|
|
67
82
|
### Patch Changes
|
|
68
83
|
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
84
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
85
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
86
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
72
87
|
|
|
73
88
|
## 1.1.4
|
|
74
89
|
|
|
75
90
|
### Patch Changes
|
|
76
91
|
|
|
77
|
-
-
|
|
92
|
+
- Updated dependencies
|
|
78
93
|
|
|
79
94
|
## 1.1.3
|
|
80
95
|
|
|
81
96
|
### Patch Changes
|
|
82
97
|
|
|
83
|
-
-
|
|
98
|
+
- Updated dependencies
|
|
84
99
|
|
|
85
100
|
## 1.1.2
|
|
86
101
|
|
|
87
102
|
### Patch Changes
|
|
88
103
|
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
104
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
105
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
106
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
92
107
|
|
|
93
108
|
## 1.1.1
|
|
94
109
|
|
|
95
110
|
### Patch Changes
|
|
96
111
|
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
112
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
113
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
114
|
+
Updating adf-schema version to 35.10.0
|
|
100
115
|
|
|
101
116
|
## 1.1.0
|
|
102
117
|
|
|
103
118
|
### Minor Changes
|
|
104
119
|
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
121
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
122
|
+
bumped editor-prosemirror version to 4.0.0
|
|
108
123
|
|
|
109
124
|
### Patch Changes
|
|
110
125
|
|
|
111
|
-
-
|
|
126
|
+
- Updated dependencies
|
|
112
127
|
|
|
113
128
|
## 1.0.13
|
|
114
129
|
|
|
115
130
|
### Patch Changes
|
|
116
131
|
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
-
|
|
132
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
133
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
134
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
135
|
+
- Updated dependencies
|
|
121
136
|
|
|
122
137
|
## 1.0.12
|
|
123
138
|
|
|
124
139
|
### Patch Changes
|
|
125
140
|
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
- [#90781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90781)
|
|
142
|
+
[`566fba222315`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/566fba222315) -
|
|
143
|
+
Accessible name for datepicker's input field
|
|
129
144
|
|
|
130
145
|
## 1.0.11
|
|
131
146
|
|
|
132
147
|
### Patch Changes
|
|
133
148
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
-
|
|
149
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
150
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
151
|
+
Bump ADF-schema package to version 35.0.0
|
|
152
|
+
- Updated dependencies
|
|
138
153
|
|
|
139
154
|
## 1.0.10
|
|
140
155
|
|
|
141
156
|
### Patch Changes
|
|
142
157
|
|
|
143
|
-
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
158
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
159
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
160
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
161
|
+
35.7.0 to 35.8.0
|
|
147
162
|
|
|
148
163
|
## 1.0.9
|
|
149
164
|
|
|
150
165
|
### Patch Changes
|
|
151
166
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
167
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
168
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
169
|
+
Bump adf-schema to 35.7.0
|
|
170
|
+
- Updated dependencies
|
|
156
171
|
|
|
157
172
|
## 1.0.8
|
|
158
173
|
|
|
159
174
|
### Patch Changes
|
|
160
175
|
|
|
161
|
-
-
|
|
176
|
+
- Updated dependencies
|
|
162
177
|
|
|
163
178
|
## 1.0.7
|
|
164
179
|
|
|
165
180
|
### Patch Changes
|
|
166
181
|
|
|
167
|
-
-
|
|
182
|
+
- Updated dependencies
|
|
168
183
|
|
|
169
184
|
## 1.0.6
|
|
170
185
|
|
|
171
186
|
### Patch Changes
|
|
172
187
|
|
|
173
|
-
-
|
|
174
|
-
|
|
175
|
-
|
|
188
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
189
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
190
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
176
191
|
|
|
177
192
|
## 1.0.5
|
|
178
193
|
|
|
179
194
|
### Patch Changes
|
|
180
195
|
|
|
181
|
-
-
|
|
196
|
+
- Updated dependencies
|
|
182
197
|
|
|
183
198
|
## 1.0.4
|
|
184
199
|
|
|
185
200
|
### Patch Changes
|
|
186
201
|
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
202
|
+
- [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391)
|
|
203
|
+
[`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) -
|
|
204
|
+
Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18
|
|
205
|
+
compatible.
|
|
191
206
|
|
|
192
207
|
## 1.0.3
|
|
193
208
|
|
|
194
209
|
### Patch Changes
|
|
195
210
|
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
-
|
|
211
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
212
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
213
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
214
|
+
- Updated dependencies
|
|
200
215
|
|
|
201
216
|
## 1.0.2
|
|
202
217
|
|
|
203
218
|
### Patch Changes
|
|
204
219
|
|
|
205
|
-
-
|
|
220
|
+
- Updated dependencies
|
|
206
221
|
|
|
207
222
|
## 1.0.1
|
|
208
223
|
|
|
209
224
|
### Patch Changes
|
|
210
225
|
|
|
211
|
-
-
|
|
226
|
+
- Updated dependencies
|
|
212
227
|
|
|
213
228
|
## 1.0.0
|
|
214
229
|
|
|
215
230
|
### Major Changes
|
|
216
231
|
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
232
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
233
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
234
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
235
|
+
is to address an issue with Jira plugin consumption.
|
|
221
236
|
|
|
222
237
|
### Patch Changes
|
|
223
238
|
|
|
224
|
-
-
|
|
239
|
+
- Updated dependencies
|
|
225
240
|
|
|
226
241
|
## 0.3.3
|
|
227
242
|
|
|
228
243
|
### Patch Changes
|
|
229
244
|
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
|
|
245
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
246
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
247
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
233
248
|
|
|
234
249
|
## 0.3.2
|
|
235
250
|
|
|
236
251
|
### Patch Changes
|
|
237
252
|
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
-
|
|
253
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
254
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
255
|
+
Move all plugin translations to editor-common
|
|
256
|
+
- Updated dependencies
|
|
242
257
|
|
|
243
258
|
## 0.3.1
|
|
244
259
|
|
|
245
260
|
### Patch Changes
|
|
246
261
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
262
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
263
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
264
|
+
Updating adf-schema version to 35.5.1
|
|
250
265
|
|
|
251
266
|
## 0.3.0
|
|
252
267
|
|
|
253
268
|
### Minor Changes
|
|
254
269
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
270
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
271
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
272
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
258
273
|
|
|
259
|
-
|
|
274
|
+
Now when using the editor API with the universal preset
|
|
260
275
|
|
|
261
276
|
### Patch Changes
|
|
262
277
|
|
|
263
|
-
-
|
|
278
|
+
- Updated dependencies
|
|
264
279
|
|
|
265
280
|
## 0.2.20
|
|
266
281
|
|
|
267
282
|
### Patch Changes
|
|
268
283
|
|
|
269
|
-
-
|
|
284
|
+
- Updated dependencies
|
|
270
285
|
|
|
271
286
|
## 0.2.19
|
|
272
287
|
|
|
273
288
|
### Patch Changes
|
|
274
289
|
|
|
275
|
-
-
|
|
276
|
-
|
|
277
|
-
|
|
290
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
291
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
292
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
278
293
|
|
|
279
294
|
## 0.2.18
|
|
280
295
|
|
|
281
296
|
### Patch Changes
|
|
282
297
|
|
|
283
|
-
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
-
|
|
298
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
299
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
300
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
301
|
+
- Updated dependencies
|
|
287
302
|
|
|
288
303
|
## 0.2.17
|
|
289
304
|
|
|
290
305
|
### Patch Changes
|
|
291
306
|
|
|
292
|
-
-
|
|
293
|
-
|
|
294
|
-
|
|
307
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
308
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
309
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
295
310
|
|
|
296
311
|
## 0.2.16
|
|
297
312
|
|
|
298
313
|
### Patch Changes
|
|
299
314
|
|
|
300
|
-
-
|
|
301
|
-
|
|
302
|
-
|
|
315
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
316
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
317
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
303
318
|
|
|
304
319
|
## 0.2.15
|
|
305
320
|
|
|
306
321
|
### Patch Changes
|
|
307
322
|
|
|
308
|
-
-
|
|
309
|
-
|
|
310
|
-
|
|
323
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
324
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
325
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
311
326
|
|
|
312
327
|
## 0.2.14
|
|
313
328
|
|
|
314
329
|
### Patch Changes
|
|
315
330
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
331
|
+
- [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
|
|
332
|
+
[`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) -
|
|
333
|
+
Update dependencies that were impacted by HOT-106483 to latest.
|
|
319
334
|
|
|
320
335
|
## 0.2.13
|
|
321
336
|
|
|
322
337
|
### Patch Changes
|
|
323
338
|
|
|
324
|
-
-
|
|
339
|
+
- Updated dependencies
|
|
325
340
|
|
|
326
341
|
## 0.2.12
|
|
327
342
|
|
|
328
343
|
### Patch Changes
|
|
329
344
|
|
|
330
|
-
-
|
|
331
|
-
|
|
332
|
-
|
|
345
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
346
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
347
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
333
348
|
|
|
334
349
|
## 0.2.11
|
|
335
350
|
|
|
336
351
|
### Patch Changes
|
|
337
352
|
|
|
338
|
-
-
|
|
339
|
-
|
|
340
|
-
|
|
353
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
354
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
355
|
+
update ADF schema
|
|
341
356
|
|
|
342
357
|
## 0.2.10
|
|
343
358
|
|
|
344
359
|
### Patch Changes
|
|
345
360
|
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
361
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
362
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
363
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
349
364
|
|
|
350
365
|
## 0.2.9
|
|
351
366
|
|
|
352
367
|
### Patch Changes
|
|
353
368
|
|
|
354
|
-
-
|
|
355
|
-
|
|
356
|
-
|
|
369
|
+
- [#43549](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43549)
|
|
370
|
+
[`8f05c711498`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f05c711498) - ED-20957
|
|
371
|
+
Fixed issue with adding date node inside a codeblock
|
|
357
372
|
|
|
358
373
|
## 0.2.8
|
|
359
374
|
|
|
360
375
|
### Patch Changes
|
|
361
376
|
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
-
|
|
377
|
+
- [#43694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43694)
|
|
378
|
+
[`fa3d07e4692`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa3d07e4692) - [ux]
|
|
379
|
+
[ED-20697] Fix issue where dates with dashes were being incorrectly marked as invalid
|
|
365
380
|
|
|
366
381
|
## 0.2.7
|
|
367
382
|
|
|
368
383
|
### Patch Changes
|
|
369
384
|
|
|
370
|
-
-
|
|
371
|
-
|
|
372
|
-
|
|
385
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
386
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
387
|
+
Upgrade adf-schema package to ^34.0.0
|
|
373
388
|
|
|
374
389
|
## 0.2.6
|
|
375
390
|
|
|
376
391
|
### Patch Changes
|
|
377
392
|
|
|
378
|
-
-
|
|
393
|
+
- Updated dependencies
|
|
379
394
|
|
|
380
395
|
## 0.2.5
|
|
381
396
|
|
|
382
397
|
### Patch Changes
|
|
383
398
|
|
|
384
|
-
-
|
|
385
|
-
|
|
386
|
-
|
|
399
|
+
- [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
|
|
400
|
+
[`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
|
|
401
|
+
Extracting tasks and decisions code from editor-core to new plugin package.
|
|
387
402
|
|
|
388
403
|
## 0.2.4
|
|
389
404
|
|
|
390
405
|
### Patch Changes
|
|
391
406
|
|
|
392
|
-
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
-
|
|
407
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
408
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
409
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
410
|
+
- Updated dependencies
|
|
396
411
|
|
|
397
412
|
## 0.2.3
|
|
398
413
|
|
|
399
414
|
### Patch Changes
|
|
400
415
|
|
|
401
|
-
-
|
|
416
|
+
- Updated dependencies
|
|
402
417
|
|
|
403
418
|
## 0.2.2
|
|
404
419
|
|
|
405
420
|
### Patch Changes
|
|
406
421
|
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
|
|
422
|
+
- [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
|
|
423
|
+
[`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) - Extract
|
|
424
|
+
code-block plugin from editor-core as `@atlaskit/editor-plugin-code-block`.
|
|
410
425
|
|
|
411
426
|
## 0.2.1
|
|
412
427
|
|
|
413
428
|
### Patch Changes
|
|
414
429
|
|
|
415
|
-
-
|
|
430
|
+
- Updated dependencies
|
|
416
431
|
|
|
417
432
|
## 0.2.0
|
|
418
433
|
|
|
419
434
|
### Minor Changes
|
|
420
435
|
|
|
421
|
-
-
|
|
422
|
-
|
|
423
|
-
|
|
436
|
+
- [#41651](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41651)
|
|
437
|
+
[`68871f23ed3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/68871f23ed3) - Extract
|
|
438
|
+
Date Plugin
|
|
424
439
|
|
|
425
440
|
### Patch Changes
|
|
426
441
|
|
|
427
|
-
-
|
|
442
|
+
- Updated dependencies
|
|
428
443
|
|
|
429
444
|
## 0.1.0
|
|
430
445
|
|
|
431
446
|
### Minor Changes
|
|
432
447
|
|
|
433
|
-
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
448
|
+
- [#41572](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41572)
|
|
449
|
+
[`e2c74f2ae09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2c74f2ae09) -
|
|
450
|
+
Scaffolding for editor-plugin-date. Adds package.json, LICENSE, tsconfig, exported type and other
|
|
451
|
+
fundamentals required to create a new package
|
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.
|
|
@@ -27,13 +27,17 @@ function DateNodeView(props) {
|
|
|
27
27
|
var parent = $nodePos.parent;
|
|
28
28
|
var withinIncompleteTask = parent.type === schema.nodes.taskItem && parent.attrs.state !== 'DONE';
|
|
29
29
|
var color = withinIncompleteTask && (0, _utils.isPastDate)(timestamp) ? 'red' : undefined;
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
return (
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
_react.default.createElement("span", {
|
|
34
|
+
className: _styles.DateSharedCssClassName.DATE_WRAPPER,
|
|
35
|
+
onClick: handleClick
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_date.Date, {
|
|
37
|
+
color: color,
|
|
38
|
+
value: timestamp
|
|
39
|
+
}, withinIncompleteTask ? (0, _utils.timestampToTaskContext)(timestamp, intl) : (0, _utils.timestampToString)(timestamp, intl)))
|
|
40
|
+
);
|
|
37
41
|
function handleClick(event) {
|
|
38
42
|
event.nativeEvent.stopImmediatePropagation();
|
|
39
43
|
var _props$view = props.view,
|
|
@@ -29,13 +29,17 @@ export function DateNodeView(props) {
|
|
|
29
29
|
const parent = $nodePos.parent;
|
|
30
30
|
const withinIncompleteTask = parent.type === schema.nodes.taskItem && parent.attrs.state !== 'DONE';
|
|
31
31
|
const color = withinIncompleteTask && isPastDate(timestamp) ? 'red' : undefined;
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
return (
|
|
33
|
+
/*#__PURE__*/
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
35
|
+
React.createElement("span", {
|
|
36
|
+
className: DateSharedCssClassName.DATE_WRAPPER,
|
|
37
|
+
onClick: handleClick
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Date, {
|
|
39
|
+
color: color,
|
|
40
|
+
value: timestamp
|
|
41
|
+
}, withinIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)))
|
|
42
|
+
);
|
|
39
43
|
function handleClick(event) {
|
|
40
44
|
event.nativeEvent.stopImmediatePropagation();
|
|
41
45
|
const {
|
|
@@ -20,13 +20,17 @@ export function DateNodeView(props) {
|
|
|
20
20
|
var parent = $nodePos.parent;
|
|
21
21
|
var withinIncompleteTask = parent.type === schema.nodes.taskItem && parent.attrs.state !== 'DONE';
|
|
22
22
|
var color = withinIncompleteTask && isPastDate(timestamp) ? 'red' : undefined;
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
return (
|
|
24
|
+
/*#__PURE__*/
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
26
|
+
React.createElement("span", {
|
|
27
|
+
className: DateSharedCssClassName.DATE_WRAPPER,
|
|
28
|
+
onClick: handleClick
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Date, {
|
|
30
|
+
color: color,
|
|
31
|
+
value: timestamp
|
|
32
|
+
}, withinIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)))
|
|
33
|
+
);
|
|
30
34
|
function handleClick(event) {
|
|
31
35
|
event.nativeEvent.stopImmediatePropagation();
|
|
32
36
|
var _props$view = props.view,
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ import type { DatePlugin, DeleteDate, InsertDate } from './types';
|
|
|
4
4
|
type DeleteDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[DatePlugin]> | undefined) => DeleteDate;
|
|
5
5
|
/** Delete the date and close the datepicker */
|
|
6
6
|
export declare const deleteDateCommand: DeleteDateCommand;
|
|
7
|
-
type InsertDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[
|
|
8
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
9
|
-
DatePlugin
|
|
10
|
-
]> | undefined) => InsertDate;
|
|
7
|
+
type InsertDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[OptionalPlugin<AnalyticsPlugin>, DatePlugin]> | undefined) => InsertDate;
|
|
11
8
|
export declare const insertDateCommand: InsertDateCommand;
|
|
12
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^36.
|
|
35
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
36
|
"@atlaskit/calendar": "^14.2.0",
|
|
37
37
|
"@atlaskit/date": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
43
|
-
"@atlaskit/form": "^10.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
43
|
+
"@atlaskit/form": "^10.3.0",
|
|
44
44
|
"@atlaskit/locale": "^2.7.0",
|
|
45
45
|
"@atlaskit/textfield": "6.3.1",
|
|
46
46
|
"@atlaskit/theme": "^12.8.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"date-fns": "^2.17.0",
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.3.0",
|
|
65
65
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
66
66
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
67
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
68
67
|
"@testing-library/react": "^12.1.5"
|
|
69
68
|
},
|
|
70
69
|
"peerDependencies": {
|
|
@@ -102,6 +101,5 @@
|
|
|
102
101
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
103
102
|
]
|
|
104
103
|
}
|
|
105
|
-
}
|
|
106
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
104
|
+
}
|
|
107
105
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-date"
|
|
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,16 +26,16 @@ import type { WeekDay } from '@atlaskit/calendar/types';
|
|
|
25
26
|
|
|
26
27
|
// @public (undocumented)
|
|
27
28
|
export type DatePlugin = NextEditorPlugin<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
'date',
|
|
30
|
+
{
|
|
31
|
+
pluginConfiguration: DatePluginConfig | undefined;
|
|
32
|
+
dependencies: [typeof analyticsPlugin, EditorDisabledPlugin];
|
|
33
|
+
sharedState: DatePluginSharedState;
|
|
34
|
+
commands: {
|
|
35
|
+
insertDate: InsertDate;
|
|
36
|
+
deleteDate: DeleteDate;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
38
39
|
>;
|
|
39
40
|
|
|
40
41
|
// @public (undocumented)
|
|
@@ -42,22 +43,22 @@ export const datePlugin: DatePlugin;
|
|
|
42
43
|
|
|
43
44
|
// @public (undocumented)
|
|
44
45
|
export interface DatePluginConfig {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
// (undocumented)
|
|
47
|
+
weekStartDay?: WeekDay;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
// @public (undocumented)
|
|
50
51
|
export type DatePluginSharedState = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
showDatePickerAt?: null | number;
|
|
53
|
+
isNew: boolean;
|
|
54
|
+
focusDateInput: boolean;
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
// @public (undocumented)
|
|
57
58
|
export type DateType = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
year: number;
|
|
60
|
+
month: number;
|
|
61
|
+
day?: number;
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
// @public (undocumented)
|
|
@@ -65,10 +66,10 @@ type DeleteDate = EditorCommand;
|
|
|
65
66
|
|
|
66
67
|
// @public (undocumented)
|
|
67
68
|
type InsertDate = (props: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
date?: DateType;
|
|
70
|
+
inputMethod?: TOOLBAR_MENU_TYPE;
|
|
71
|
+
commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER;
|
|
72
|
+
enterPressed?: boolean;
|
|
72
73
|
}) => EditorCommand;
|
|
73
74
|
|
|
74
75
|
// (No @packageDocumentation comment for this package)
|
|
@@ -82,7 +83,7 @@ type InsertDate = (props: {
|
|
|
82
83
|
|
|
83
84
|
```json
|
|
84
85
|
{
|
|
85
|
-
|
|
86
|
+
"react": "^16.8.0"
|
|
86
87
|
}
|
|
87
88
|
```
|
|
88
89
|
|