@atlaskit/editor-plugin-date 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +4 -4
- package/CHANGELOG.md +169 -153
- package/LICENSE.md +6 -8
- package/dist/cjs/nodeviews/date.js +11 -7
- package/dist/cjs/plugin.js +2 -1
- package/dist/cjs/ui/DatePicker/index.js +1 -0
- package/dist/es2019/nodeviews/date.js +11 -7
- package/dist/es2019/plugin.js +26 -23
- package/dist/es2019/ui/DatePicker/index.js +1 -0
- package/dist/esm/nodeviews/date.js +11 -7
- package/dist/esm/plugin.js +2 -1
- package/dist/esm/ui/DatePicker/index.js +1 -0
- package/dist/types/commands.d.ts +1 -4
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +84 -106
- package/report.api.md +25 -24
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,445 +1,461 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 1.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
8
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
9
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
10
|
+
the fold (in the top 5 results)
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.2.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.2.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
23
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
24
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
25
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
26
|
+
- Updated dependencies
|
|
11
27
|
|
|
12
28
|
## 1.2.1
|
|
13
29
|
|
|
14
30
|
### Patch Changes
|
|
15
31
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
33
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
34
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
35
|
|
|
20
36
|
## 1.2.0
|
|
21
37
|
|
|
22
38
|
### Minor Changes
|
|
23
39
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
40
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
41
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
42
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
43
|
|
|
28
44
|
### Patch Changes
|
|
29
45
|
|
|
30
|
-
-
|
|
46
|
+
- Updated dependencies
|
|
31
47
|
|
|
32
48
|
## 1.1.11
|
|
33
49
|
|
|
34
50
|
### Patch Changes
|
|
35
51
|
|
|
36
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
37
53
|
|
|
38
54
|
## 1.1.10
|
|
39
55
|
|
|
40
56
|
### Patch Changes
|
|
41
57
|
|
|
42
|
-
-
|
|
58
|
+
- Updated dependencies
|
|
43
59
|
|
|
44
60
|
## 1.1.9
|
|
45
61
|
|
|
46
62
|
### Patch Changes
|
|
47
63
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
64
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
65
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
66
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
51
67
|
|
|
52
68
|
## 1.1.8
|
|
53
69
|
|
|
54
70
|
### Patch Changes
|
|
55
71
|
|
|
56
|
-
-
|
|
72
|
+
- Updated dependencies
|
|
57
73
|
|
|
58
74
|
## 1.1.7
|
|
59
75
|
|
|
60
76
|
### Patch Changes
|
|
61
77
|
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
78
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
79
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
80
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
81
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
82
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
67
83
|
|
|
68
84
|
## 1.1.6
|
|
69
85
|
|
|
70
86
|
### Patch Changes
|
|
71
87
|
|
|
72
|
-
-
|
|
88
|
+
- Updated dependencies
|
|
73
89
|
|
|
74
90
|
## 1.1.5
|
|
75
91
|
|
|
76
92
|
### Patch Changes
|
|
77
93
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
94
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
95
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
96
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
81
97
|
|
|
82
98
|
## 1.1.4
|
|
83
99
|
|
|
84
100
|
### Patch Changes
|
|
85
101
|
|
|
86
|
-
-
|
|
102
|
+
- Updated dependencies
|
|
87
103
|
|
|
88
104
|
## 1.1.3
|
|
89
105
|
|
|
90
106
|
### Patch Changes
|
|
91
107
|
|
|
92
|
-
-
|
|
108
|
+
- Updated dependencies
|
|
93
109
|
|
|
94
110
|
## 1.1.2
|
|
95
111
|
|
|
96
112
|
### Patch Changes
|
|
97
113
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
114
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
115
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
116
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
101
117
|
|
|
102
118
|
## 1.1.1
|
|
103
119
|
|
|
104
120
|
### Patch Changes
|
|
105
121
|
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
122
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
123
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
124
|
+
Updating adf-schema version to 35.10.0
|
|
109
125
|
|
|
110
126
|
## 1.1.0
|
|
111
127
|
|
|
112
128
|
### Minor Changes
|
|
113
129
|
|
|
114
|
-
-
|
|
115
|
-
|
|
116
|
-
|
|
130
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
131
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
132
|
+
bumped editor-prosemirror version to 4.0.0
|
|
117
133
|
|
|
118
134
|
### Patch Changes
|
|
119
135
|
|
|
120
|
-
-
|
|
136
|
+
- Updated dependencies
|
|
121
137
|
|
|
122
138
|
## 1.0.13
|
|
123
139
|
|
|
124
140
|
### Patch Changes
|
|
125
141
|
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
-
|
|
142
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
143
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
144
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
145
|
+
- Updated dependencies
|
|
130
146
|
|
|
131
147
|
## 1.0.12
|
|
132
148
|
|
|
133
149
|
### Patch Changes
|
|
134
150
|
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
|
|
151
|
+
- [#90781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90781)
|
|
152
|
+
[`566fba222315`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/566fba222315) -
|
|
153
|
+
Accessible name for datepicker's input field
|
|
138
154
|
|
|
139
155
|
## 1.0.11
|
|
140
156
|
|
|
141
157
|
### Patch Changes
|
|
142
158
|
|
|
143
|
-
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
159
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
160
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
161
|
+
Bump ADF-schema package to version 35.0.0
|
|
162
|
+
- Updated dependencies
|
|
147
163
|
|
|
148
164
|
## 1.0.10
|
|
149
165
|
|
|
150
166
|
### Patch Changes
|
|
151
167
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
168
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
169
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
170
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
171
|
+
35.7.0 to 35.8.0
|
|
156
172
|
|
|
157
173
|
## 1.0.9
|
|
158
174
|
|
|
159
175
|
### Patch Changes
|
|
160
176
|
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
-
|
|
177
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
178
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
179
|
+
Bump adf-schema to 35.7.0
|
|
180
|
+
- Updated dependencies
|
|
165
181
|
|
|
166
182
|
## 1.0.8
|
|
167
183
|
|
|
168
184
|
### Patch Changes
|
|
169
185
|
|
|
170
|
-
-
|
|
186
|
+
- Updated dependencies
|
|
171
187
|
|
|
172
188
|
## 1.0.7
|
|
173
189
|
|
|
174
190
|
### Patch Changes
|
|
175
191
|
|
|
176
|
-
-
|
|
192
|
+
- Updated dependencies
|
|
177
193
|
|
|
178
194
|
## 1.0.6
|
|
179
195
|
|
|
180
196
|
### Patch Changes
|
|
181
197
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
198
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
199
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
200
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
185
201
|
|
|
186
202
|
## 1.0.5
|
|
187
203
|
|
|
188
204
|
### Patch Changes
|
|
189
205
|
|
|
190
|
-
-
|
|
206
|
+
- Updated dependencies
|
|
191
207
|
|
|
192
208
|
## 1.0.4
|
|
193
209
|
|
|
194
210
|
### Patch Changes
|
|
195
211
|
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
212
|
+
- [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391)
|
|
213
|
+
[`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) -
|
|
214
|
+
Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18
|
|
215
|
+
compatible.
|
|
200
216
|
|
|
201
217
|
## 1.0.3
|
|
202
218
|
|
|
203
219
|
### Patch Changes
|
|
204
220
|
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
221
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
222
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
223
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
224
|
+
- Updated dependencies
|
|
209
225
|
|
|
210
226
|
## 1.0.2
|
|
211
227
|
|
|
212
228
|
### Patch Changes
|
|
213
229
|
|
|
214
|
-
-
|
|
230
|
+
- Updated dependencies
|
|
215
231
|
|
|
216
232
|
## 1.0.1
|
|
217
233
|
|
|
218
234
|
### Patch Changes
|
|
219
235
|
|
|
220
|
-
-
|
|
236
|
+
- Updated dependencies
|
|
221
237
|
|
|
222
238
|
## 1.0.0
|
|
223
239
|
|
|
224
240
|
### Major Changes
|
|
225
241
|
|
|
226
|
-
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
242
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
243
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
244
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
245
|
+
is to address an issue with Jira plugin consumption.
|
|
230
246
|
|
|
231
247
|
### Patch Changes
|
|
232
248
|
|
|
233
|
-
-
|
|
249
|
+
- Updated dependencies
|
|
234
250
|
|
|
235
251
|
## 0.3.3
|
|
236
252
|
|
|
237
253
|
### Patch Changes
|
|
238
254
|
|
|
239
|
-
-
|
|
240
|
-
|
|
241
|
-
|
|
255
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
256
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
257
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
242
258
|
|
|
243
259
|
## 0.3.2
|
|
244
260
|
|
|
245
261
|
### Patch Changes
|
|
246
262
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
-
|
|
263
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
264
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
265
|
+
Move all plugin translations to editor-common
|
|
266
|
+
- Updated dependencies
|
|
251
267
|
|
|
252
268
|
## 0.3.1
|
|
253
269
|
|
|
254
270
|
### Patch Changes
|
|
255
271
|
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
272
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
273
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
274
|
+
Updating adf-schema version to 35.5.1
|
|
259
275
|
|
|
260
276
|
## 0.3.0
|
|
261
277
|
|
|
262
278
|
### Minor Changes
|
|
263
279
|
|
|
264
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
280
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
281
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
282
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
267
283
|
|
|
268
|
-
|
|
284
|
+
Now when using the editor API with the universal preset
|
|
269
285
|
|
|
270
286
|
### Patch Changes
|
|
271
287
|
|
|
272
|
-
-
|
|
288
|
+
- Updated dependencies
|
|
273
289
|
|
|
274
290
|
## 0.2.20
|
|
275
291
|
|
|
276
292
|
### Patch Changes
|
|
277
293
|
|
|
278
|
-
-
|
|
294
|
+
- Updated dependencies
|
|
279
295
|
|
|
280
296
|
## 0.2.19
|
|
281
297
|
|
|
282
298
|
### Patch Changes
|
|
283
299
|
|
|
284
|
-
-
|
|
285
|
-
|
|
286
|
-
|
|
300
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
301
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
302
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
287
303
|
|
|
288
304
|
## 0.2.18
|
|
289
305
|
|
|
290
306
|
### Patch Changes
|
|
291
307
|
|
|
292
|
-
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
-
|
|
308
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
309
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
310
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
311
|
+
- Updated dependencies
|
|
296
312
|
|
|
297
313
|
## 0.2.17
|
|
298
314
|
|
|
299
315
|
### Patch Changes
|
|
300
316
|
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
317
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
318
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
319
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
304
320
|
|
|
305
321
|
## 0.2.16
|
|
306
322
|
|
|
307
323
|
### Patch Changes
|
|
308
324
|
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
|
|
325
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
326
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
327
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
312
328
|
|
|
313
329
|
## 0.2.15
|
|
314
330
|
|
|
315
331
|
### Patch Changes
|
|
316
332
|
|
|
317
|
-
-
|
|
318
|
-
|
|
319
|
-
|
|
333
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
334
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
335
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
320
336
|
|
|
321
337
|
## 0.2.14
|
|
322
338
|
|
|
323
339
|
### Patch Changes
|
|
324
340
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
341
|
+
- [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
|
|
342
|
+
[`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) -
|
|
343
|
+
Update dependencies that were impacted by HOT-106483 to latest.
|
|
328
344
|
|
|
329
345
|
## 0.2.13
|
|
330
346
|
|
|
331
347
|
### Patch Changes
|
|
332
348
|
|
|
333
|
-
-
|
|
349
|
+
- Updated dependencies
|
|
334
350
|
|
|
335
351
|
## 0.2.12
|
|
336
352
|
|
|
337
353
|
### Patch Changes
|
|
338
354
|
|
|
339
|
-
-
|
|
340
|
-
|
|
341
|
-
|
|
355
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
356
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
357
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
342
358
|
|
|
343
359
|
## 0.2.11
|
|
344
360
|
|
|
345
361
|
### Patch Changes
|
|
346
362
|
|
|
347
|
-
-
|
|
348
|
-
|
|
349
|
-
|
|
363
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
364
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
365
|
+
update ADF schema
|
|
350
366
|
|
|
351
367
|
## 0.2.10
|
|
352
368
|
|
|
353
369
|
### Patch Changes
|
|
354
370
|
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
|
|
371
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
372
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
373
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
358
374
|
|
|
359
375
|
## 0.2.9
|
|
360
376
|
|
|
361
377
|
### Patch Changes
|
|
362
378
|
|
|
363
|
-
-
|
|
364
|
-
|
|
365
|
-
|
|
379
|
+
- [#43549](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43549)
|
|
380
|
+
[`8f05c711498`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f05c711498) - ED-20957
|
|
381
|
+
Fixed issue with adding date node inside a codeblock
|
|
366
382
|
|
|
367
383
|
## 0.2.8
|
|
368
384
|
|
|
369
385
|
### Patch Changes
|
|
370
386
|
|
|
371
|
-
-
|
|
372
|
-
|
|
373
|
-
|
|
387
|
+
- [#43694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43694)
|
|
388
|
+
[`fa3d07e4692`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa3d07e4692) - [ux]
|
|
389
|
+
[ED-20697] Fix issue where dates with dashes were being incorrectly marked as invalid
|
|
374
390
|
|
|
375
391
|
## 0.2.7
|
|
376
392
|
|
|
377
393
|
### Patch Changes
|
|
378
394
|
|
|
379
|
-
-
|
|
380
|
-
|
|
381
|
-
|
|
395
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
396
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
397
|
+
Upgrade adf-schema package to ^34.0.0
|
|
382
398
|
|
|
383
399
|
## 0.2.6
|
|
384
400
|
|
|
385
401
|
### Patch Changes
|
|
386
402
|
|
|
387
|
-
-
|
|
403
|
+
- Updated dependencies
|
|
388
404
|
|
|
389
405
|
## 0.2.5
|
|
390
406
|
|
|
391
407
|
### Patch Changes
|
|
392
408
|
|
|
393
|
-
-
|
|
394
|
-
|
|
395
|
-
|
|
409
|
+
- [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
|
|
410
|
+
[`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
|
|
411
|
+
Extracting tasks and decisions code from editor-core to new plugin package.
|
|
396
412
|
|
|
397
413
|
## 0.2.4
|
|
398
414
|
|
|
399
415
|
### Patch Changes
|
|
400
416
|
|
|
401
|
-
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
-
|
|
417
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
418
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
419
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
420
|
+
- Updated dependencies
|
|
405
421
|
|
|
406
422
|
## 0.2.3
|
|
407
423
|
|
|
408
424
|
### Patch Changes
|
|
409
425
|
|
|
410
|
-
-
|
|
426
|
+
- Updated dependencies
|
|
411
427
|
|
|
412
428
|
## 0.2.2
|
|
413
429
|
|
|
414
430
|
### Patch Changes
|
|
415
431
|
|
|
416
|
-
-
|
|
417
|
-
|
|
418
|
-
|
|
432
|
+
- [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
|
|
433
|
+
[`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) - Extract
|
|
434
|
+
code-block plugin from editor-core as `@atlaskit/editor-plugin-code-block`.
|
|
419
435
|
|
|
420
436
|
## 0.2.1
|
|
421
437
|
|
|
422
438
|
### Patch Changes
|
|
423
439
|
|
|
424
|
-
-
|
|
440
|
+
- Updated dependencies
|
|
425
441
|
|
|
426
442
|
## 0.2.0
|
|
427
443
|
|
|
428
444
|
### Minor Changes
|
|
429
445
|
|
|
430
|
-
-
|
|
431
|
-
|
|
432
|
-
|
|
446
|
+
- [#41651](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41651)
|
|
447
|
+
[`68871f23ed3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/68871f23ed3) - Extract
|
|
448
|
+
Date Plugin
|
|
433
449
|
|
|
434
450
|
### Patch Changes
|
|
435
451
|
|
|
436
|
-
-
|
|
452
|
+
- Updated dependencies
|
|
437
453
|
|
|
438
454
|
## 0.1.0
|
|
439
455
|
|
|
440
456
|
### Minor Changes
|
|
441
457
|
|
|
442
|
-
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
458
|
+
- [#41572](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41572)
|
|
459
|
+
[`e2c74f2ae09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2c74f2ae09) -
|
|
460
|
+
Scaffolding for editor-plugin-date. Adds package.json, LICENSE, tsconfig, exported type and other
|
|
461
|
+
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,
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -167,12 +167,13 @@ var datePlugin = function datePlugin(_ref3) {
|
|
|
167
167
|
},
|
|
168
168
|
pluginsOptions: {
|
|
169
169
|
quickInsert: function quickInsert(_ref6) {
|
|
170
|
+
var _options$getEditorFea;
|
|
170
171
|
var formatMessage = _ref6.formatMessage;
|
|
171
172
|
return [{
|
|
172
173
|
id: 'date',
|
|
173
174
|
title: formatMessage(_messages.toolbarInsertBlockMessages.date),
|
|
174
175
|
description: formatMessage(_messages.toolbarInsertBlockMessages.dateDescription),
|
|
175
|
-
priority: 800,
|
|
176
|
+
priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 100 : 800,
|
|
176
177
|
keywords: ['calendar', 'day', 'time', 'today', '/'],
|
|
177
178
|
keyshortcut: '//',
|
|
178
179
|
icon: function icon() {
|
|
@@ -30,6 +30,7 @@ var PopupWithListeners = (0, _ui.withOuterListeners)(_ui.Popup);
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
31
31
|
var popupContentWrapper = (0, _react2.css)({
|
|
32
32
|
padding: "var(--ds-space-025, 2px)",
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
34
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
34
35
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N60A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
35
36
|
backgroundColor: "var(--ds-surface-overlay, ".concat(_colors.N0, ")")
|
|
@@ -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 {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -158,29 +158,32 @@ const datePlugin = ({
|
|
|
158
158
|
pluginsOptions: {
|
|
159
159
|
quickInsert: ({
|
|
160
160
|
formatMessage
|
|
161
|
-
}) =>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
161
|
+
}) => {
|
|
162
|
+
var _options$getEditorFea;
|
|
163
|
+
return [{
|
|
164
|
+
id: 'date',
|
|
165
|
+
title: formatMessage(messages.date),
|
|
166
|
+
description: formatMessage(messages.dateDescription),
|
|
167
|
+
priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 100 : 800,
|
|
168
|
+
keywords: ['calendar', 'day', 'time', 'today', '/'],
|
|
169
|
+
keyshortcut: '//',
|
|
170
|
+
icon: () => /*#__PURE__*/React.createElement(IconDate, null),
|
|
171
|
+
action(insert, state) {
|
|
172
|
+
var _api$analytics, _api$analytics$action, _api$analytics$action2;
|
|
173
|
+
const tr = createDate(true)(state);
|
|
174
|
+
api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : (_api$analytics$action2 = _api$analytics$action.attachAnalyticsEvent) === null || _api$analytics$action2 === void 0 ? void 0 : _api$analytics$action2.call(_api$analytics$action, {
|
|
175
|
+
action: ACTION.INSERTED,
|
|
176
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
177
|
+
actionSubjectId: ACTION_SUBJECT_ID.DATE,
|
|
178
|
+
eventType: EVENT_TYPE.TRACK,
|
|
179
|
+
attributes: {
|
|
180
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
181
|
+
}
|
|
182
|
+
})(tr);
|
|
183
|
+
return tr;
|
|
184
|
+
}
|
|
185
|
+
}];
|
|
186
|
+
}
|
|
184
187
|
}
|
|
185
188
|
});
|
|
186
189
|
export default datePlugin;
|
|
@@ -17,6 +17,7 @@ import DatePickerInput from './date-picker-input';
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
18
18
|
const popupContentWrapper = css({
|
|
19
19
|
padding: "var(--ds-space-025, 2px)",
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
21
|
borderRadius: `${borderRadius()}px`,
|
|
21
22
|
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`,
|
|
22
23
|
backgroundColor: `var(--ds-surface-overlay, ${N0})`
|
|
@@ -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/esm/plugin.js
CHANGED
|
@@ -155,12 +155,13 @@ var datePlugin = function datePlugin(_ref3) {
|
|
|
155
155
|
},
|
|
156
156
|
pluginsOptions: {
|
|
157
157
|
quickInsert: function quickInsert(_ref6) {
|
|
158
|
+
var _options$getEditorFea;
|
|
158
159
|
var formatMessage = _ref6.formatMessage;
|
|
159
160
|
return [{
|
|
160
161
|
id: 'date',
|
|
161
162
|
title: formatMessage(messages.date),
|
|
162
163
|
description: formatMessage(messages.dateDescription),
|
|
163
|
-
priority: 800,
|
|
164
|
+
priority: (_options$getEditorFea = options.getEditorFeatureFlags) !== null && _options$getEditorFea !== void 0 && _options$getEditorFea.call(options).platformEditorTypeaheadImprovedRelevancy ? 100 : 800,
|
|
164
165
|
keywords: ['calendar', 'day', 'time', 'today', '/'],
|
|
165
166
|
keyshortcut: '//',
|
|
166
167
|
icon: function icon() {
|
|
@@ -25,6 +25,7 @@ import DatePickerInput from './date-picker-input';
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
26
26
|
var popupContentWrapper = css({
|
|
27
27
|
padding: "var(--ds-space-025, 2px)",
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
29
30
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
|
|
30
31
|
backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")")
|
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/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
2
2
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { EditorCommand, NextEditorPlugin, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
6
6
|
export type DateSegment = 'day' | 'month' | 'year';
|
|
@@ -11,6 +11,7 @@ export type DateType = {
|
|
|
11
11
|
};
|
|
12
12
|
export interface DatePluginConfig {
|
|
13
13
|
weekStartDay?: WeekDay;
|
|
14
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
14
15
|
}
|
|
15
16
|
export type DatePluginSharedState = {
|
|
16
17
|
showDatePickerAt?: number | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
2
2
|
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { EditorCommand, NextEditorPlugin, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorCommand, GetEditorFeatureFlags, NextEditorPlugin, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
6
6
|
export type DateSegment = 'day' | 'month' | 'year';
|
|
@@ -11,6 +11,7 @@ export type DateType = {
|
|
|
11
11
|
};
|
|
12
12
|
export interface DatePluginConfig {
|
|
13
13
|
weekStartDay?: WeekDay;
|
|
14
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
14
15
|
}
|
|
15
16
|
export type DatePluginSharedState = {
|
|
16
17
|
showDatePickerAt?: number | null;
|
package/package.json
CHANGED
|
@@ -1,107 +1,85 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
],
|
|
87
|
-
"design-tokens": [
|
|
88
|
-
"color"
|
|
89
|
-
],
|
|
90
|
-
"theming": [
|
|
91
|
-
"react-context"
|
|
92
|
-
],
|
|
93
|
-
"ui-components": [
|
|
94
|
-
"lite-mode"
|
|
95
|
-
],
|
|
96
|
-
"deprecation": "no-deprecated-imports",
|
|
97
|
-
"styling": [
|
|
98
|
-
"emotion",
|
|
99
|
-
"emotion"
|
|
100
|
-
],
|
|
101
|
-
"imports": [
|
|
102
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
107
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
+
"version": "1.2.4",
|
|
4
|
+
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: AI",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"module:es2019": "dist/es2019/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"typesVersions": {
|
|
22
|
+
">=4.5 <4.9": {
|
|
23
|
+
"*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"atlaskit:src": "src/index.ts",
|
|
28
|
+
"af:exports": {
|
|
29
|
+
".": "./src/index.ts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
33
|
+
"@atlaskit/calendar": "^14.2.0",
|
|
34
|
+
"@atlaskit/date": "^0.10.0",
|
|
35
|
+
"@atlaskit/editor-common": "^82.6.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
38
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
40
|
+
"@atlaskit/form": "^10.3.0",
|
|
41
|
+
"@atlaskit/locale": "^2.7.0",
|
|
42
|
+
"@atlaskit/textfield": "6.3.1",
|
|
43
|
+
"@atlaskit/theme": "^12.9.0",
|
|
44
|
+
"@atlaskit/tokens": "^1.50.0",
|
|
45
|
+
"@babel/runtime": "^7.0.0",
|
|
46
|
+
"@emotion/react": "^11.7.1",
|
|
47
|
+
"date-fns": "^2.17.0",
|
|
48
|
+
"react-dom": "^16.8.0",
|
|
49
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
50
|
+
"react-loadable": "^5.1.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
54
|
+
"@atlaskit/editor-plugin-content-insertion": "^1.2.0",
|
|
55
|
+
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
56
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
57
|
+
"@atlaskit/editor-plugin-guideline": "^1.1.0",
|
|
58
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
|
59
|
+
"@atlaskit/editor-plugin-selection": "^1.2.0",
|
|
60
|
+
"@atlaskit/editor-plugin-table": "^7.17.0",
|
|
61
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.3.0",
|
|
62
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
63
|
+
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
64
|
+
"@testing-library/react": "^12.1.5"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "^16.8.0"
|
|
68
|
+
},
|
|
69
|
+
"techstack": {
|
|
70
|
+
"@atlassian/frontend": {
|
|
71
|
+
"import-structure": ["atlassian-conventions"],
|
|
72
|
+
"circular-dependencies": ["file-and-folder-level"]
|
|
73
|
+
},
|
|
74
|
+
"@repo/internal": {
|
|
75
|
+
"dom-events": "use-bind-event-listener",
|
|
76
|
+
"analytics": ["analytics-next"],
|
|
77
|
+
"design-tokens": ["color"],
|
|
78
|
+
"theming": ["react-context"],
|
|
79
|
+
"ui-components": ["lite-mode"],
|
|
80
|
+
"deprecation": "no-deprecated-imports",
|
|
81
|
+
"styling": ["emotion", "emotion"],
|
|
82
|
+
"imports": ["import-no-extraneous-disable-for-examples-and-docs"]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
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
|
|