@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ },
6
6
  };
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
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
8
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
9
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
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
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
16
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
17
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
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
- - Updated dependencies
36
+ - Updated dependencies
22
37
 
23
38
  ## 1.1.11
24
39
 
25
40
  ### Patch Changes
26
41
 
27
- - Updated dependencies
42
+ - Updated dependencies
28
43
 
29
44
  ## 1.1.10
30
45
 
31
46
  ### Patch Changes
32
47
 
33
- - Updated dependencies
48
+ - Updated dependencies
34
49
 
35
50
  ## 1.1.9
36
51
 
37
52
  ### Patch Changes
38
53
 
39
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
40
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
41
- [ED-22282] Bump adf-schema to 36.1.0
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
- - Updated dependencies
62
+ - Updated dependencies
48
63
 
49
64
  ## 1.1.7
50
65
 
51
66
  ### Patch Changes
52
67
 
53
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
54
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
55
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
56
- language triggering composition on an empty line.This was fixed in a patch bump of
57
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
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
- - Updated dependencies
78
+ - Updated dependencies
64
79
 
65
80
  ## 1.1.5
66
81
 
67
82
  ### Patch Changes
68
83
 
69
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
70
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
71
- [ED-23102] Bump ADF schema to version 35.12.2
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
- - Updated dependencies
92
+ - Updated dependencies
78
93
 
79
94
  ## 1.1.3
80
95
 
81
96
  ### Patch Changes
82
97
 
83
- - Updated dependencies
98
+ - Updated dependencies
84
99
 
85
100
  ## 1.1.2
86
101
 
87
102
  ### Patch Changes
88
103
 
89
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
90
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
91
- [ED-23097] Bump ADF schema to version 35.12.1
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
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
98
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
99
- Updating adf-schema version to 35.10.0
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
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
106
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
107
- bumped editor-prosemirror version to 4.0.0
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
- - Updated dependencies
126
+ - Updated dependencies
112
127
 
113
128
  ## 1.0.13
114
129
 
115
130
  ### Patch Changes
116
131
 
117
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
118
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
119
- Bump adf-schema to 35.9.2 to support table alignment options
120
- - Updated dependencies
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
- - [#90781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90781)
127
- [`566fba222315`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/566fba222315) -
128
- Accessible name for datepicker's input field
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
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
135
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
136
- Bump ADF-schema package to version 35.0.0
137
- - Updated dependencies
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
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
144
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
145
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
146
- 35.7.0 to 35.8.0
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
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
153
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
154
- Bump adf-schema to 35.7.0
155
- - Updated dependencies
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
- - Updated dependencies
176
+ - Updated dependencies
162
177
 
163
178
  ## 1.0.7
164
179
 
165
180
  ### Patch Changes
166
181
 
167
- - Updated dependencies
182
+ - Updated dependencies
168
183
 
169
184
  ## 1.0.6
170
185
 
171
186
  ### Patch Changes
172
187
 
173
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
174
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
175
- ED-22553 Updating adf-schema version to 35.6.0
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
- - Updated dependencies
196
+ - Updated dependencies
182
197
 
183
198
  ## 1.0.4
184
199
 
185
200
  ### Patch Changes
186
201
 
187
- - [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391)
188
- [`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) -
189
- Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18
190
- compatible.
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
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
197
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
198
- ED-22219: adf-schema updated to 35.5.2
199
- - Updated dependencies
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
- - Updated dependencies
220
+ - Updated dependencies
206
221
 
207
222
  ## 1.0.1
208
223
 
209
224
  ### Patch Changes
210
225
 
211
- - Updated dependencies
226
+ - Updated dependencies
212
227
 
213
228
  ## 1.0.0
214
229
 
215
230
  ### Major Changes
216
231
 
217
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
218
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
219
- This changeset exists to bump all editor plugins that currently don't have a major version. This
220
- is to address an issue with Jira plugin consumption.
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
- - Updated dependencies
239
+ - Updated dependencies
225
240
 
226
241
  ## 0.3.3
227
242
 
228
243
  ### Patch Changes
229
244
 
230
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
231
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
232
- Upgrading @atlaskit/editor-prosemirror dependency
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
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
239
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
240
- Move all plugin translations to editor-common
241
- - Updated dependencies
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
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
248
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
249
- Updating adf-schema version to 35.5.1
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
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
256
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
257
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
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
- Now when using the editor API with the universal preset
274
+ Now when using the editor API with the universal preset
260
275
 
261
276
  ### Patch Changes
262
277
 
263
- - Updated dependencies
278
+ - Updated dependencies
264
279
 
265
280
  ## 0.2.20
266
281
 
267
282
  ### Patch Changes
268
283
 
269
- - Updated dependencies
284
+ - Updated dependencies
270
285
 
271
286
  ## 0.2.19
272
287
 
273
288
  ### Patch Changes
274
289
 
275
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
276
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
277
- [ED-21835] Change EditorAPI type to always union with undefined
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
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
284
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
285
- ED-21609 Update adf-schema to 35.3.0
286
- - Updated dependencies
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
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
293
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
294
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
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
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
301
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
302
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
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
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
309
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
310
- ED-21371 Update adf-schema to 35.1.0
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
- - [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
317
- [`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) -
318
- Update dependencies that were impacted by HOT-106483 to latest.
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
- - Updated dependencies
339
+ - Updated dependencies
325
340
 
326
341
  ## 0.2.12
327
342
 
328
343
  ### Patch Changes
329
344
 
330
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
331
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
332
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
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
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
339
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
340
- update ADF schema
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
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
347
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
348
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
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
- - [#43549](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43549)
355
- [`8f05c711498`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f05c711498) -
356
- ED-20957 Fixed issue with adding date node inside a codeblock
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
- - [#43694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43694)
363
- [`fa3d07e4692`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa3d07e4692) - [ux]
364
- [ED-20697] Fix issue where dates with dashes were being incorrectly marked as invalid
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
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
371
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
372
- ED-20971 Upgrade adf-schema package to ^34.0.0
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
- - Updated dependencies
393
+ - Updated dependencies
379
394
 
380
395
  ## 0.2.5
381
396
 
382
397
  ### Patch Changes
383
398
 
384
- - [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
385
- [`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
386
- Extracting tasks and decisions code from editor-core to new plugin package.
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
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
393
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
394
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
395
- - Updated dependencies
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
- - Updated dependencies
416
+ - Updated dependencies
402
417
 
403
418
  ## 0.2.2
404
419
 
405
420
  ### Patch Changes
406
421
 
407
- - [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
408
- [`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) -
409
- Extract code-block plugin from editor-core as `@atlaskit/editor-plugin-code-block`.
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
- - Updated dependencies
430
+ - Updated dependencies
416
431
 
417
432
  ## 0.2.0
418
433
 
419
434
  ### Minor Changes
420
435
 
421
- - [#41651](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41651)
422
- [`68871f23ed3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/68871f23ed3) -
423
- Extract Date Plugin
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
- - Updated dependencies
442
+ - Updated dependencies
428
443
 
429
444
  ## 0.1.0
430
445
 
431
446
  ### Minor Changes
432
447
 
433
- - [#41572](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41572)
434
- [`e2c74f2ae09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2c74f2ae09) -
435
- Scaffolding for editor-plugin-date. Adds package.json, LICENSE, tsconfig, exported type and
436
- other fundamentals required to create a new package
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
- you may not use this file except in compliance with the License.
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 under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
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 /*#__PURE__*/_react.default.createElement("span", {
31
- className: _styles.DateSharedCssClassName.DATE_WRAPPER,
32
- onClick: handleClick
33
- }, /*#__PURE__*/_react.default.createElement(_date.Date, {
34
- color: color,
35
- value: timestamp
36
- }, withinIncompleteTask ? (0, _utils.timestampToTaskContext)(timestamp, intl) : (0, _utils.timestampToString)(timestamp, intl)));
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 /*#__PURE__*/React.createElement("span", {
33
- className: DateSharedCssClassName.DATE_WRAPPER,
34
- onClick: handleClick
35
- }, /*#__PURE__*/React.createElement(Date, {
36
- color: color,
37
- value: timestamp
38
- }, withinIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)));
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 /*#__PURE__*/React.createElement("span", {
24
- className: DateSharedCssClassName.DATE_WRAPPER,
25
- onClick: handleClick
26
- }, /*#__PURE__*/React.createElement(Date, {
27
- color: color,
28
- value: timestamp
29
- }, withinIncompleteTask ? timestampToTaskContext(timestamp, intl) : timestampToString(timestamp, intl)));
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,
@@ -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.1",
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.8.0",
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": "^80.4.0",
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.11.0",
43
- "@atlaskit/form": "^10.1.0",
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.48.0",
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 [API Extractor](https://api-extractor.com/).
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
- 'date',
29
- {
30
- pluginConfiguration: DatePluginConfig | undefined;
31
- dependencies: [typeof analyticsPlugin, EditorDisabledPlugin];
32
- sharedState: DatePluginSharedState;
33
- commands: {
34
- insertDate: InsertDate;
35
- deleteDate: DeleteDate;
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
- // (undocumented)
46
- weekStartDay?: WeekDay;
46
+ // (undocumented)
47
+ weekStartDay?: WeekDay;
47
48
  }
48
49
 
49
50
  // @public (undocumented)
50
51
  export type DatePluginSharedState = {
51
- showDatePickerAt?: null | number;
52
- isNew: boolean;
53
- focusDateInput: boolean;
52
+ showDatePickerAt?: null | number;
53
+ isNew: boolean;
54
+ focusDateInput: boolean;
54
55
  };
55
56
 
56
57
  // @public (undocumented)
57
58
  export type DateType = {
58
- year: number;
59
- month: number;
60
- day?: number;
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
- date?: DateType;
69
- inputMethod?: TOOLBAR_MENU_TYPE;
70
- commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER;
71
- enterPressed?: boolean;
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
- "react": "^16.8.0"
86
+ "react": "^16.8.0"
86
87
  }
87
88
  ```
88
89