@atlaskit/editor-plugin-date 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js 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,445 +1,451 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.2.2
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
- [ED-23332] Update adf-schema package to 36.10.1
10
- - Updated dependencies
13
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
14
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
15
+ [ED-23332] Update adf-schema package to 36.10.1
16
+ - Updated dependencies
11
17
 
12
18
  ## 1.2.1
13
19
 
14
20
  ### Patch Changes
15
21
 
16
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
17
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
18
- 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
19
25
 
20
26
  ## 1.2.0
21
27
 
22
28
  ### Minor Changes
23
29
 
24
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
25
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
26
- 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
27
33
 
28
34
  ### Patch Changes
29
35
 
30
- - Updated dependencies
36
+ - Updated dependencies
31
37
 
32
38
  ## 1.1.11
33
39
 
34
40
  ### Patch Changes
35
41
 
36
- - Updated dependencies
42
+ - Updated dependencies
37
43
 
38
44
  ## 1.1.10
39
45
 
40
46
  ### Patch Changes
41
47
 
42
- - Updated dependencies
48
+ - Updated dependencies
43
49
 
44
50
  ## 1.1.9
45
51
 
46
52
  ### Patch Changes
47
53
 
48
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
49
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
50
- [ED-22282] Bump adf-schema to 36.1.0
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
51
57
 
52
58
  ## 1.1.8
53
59
 
54
60
  ### Patch Changes
55
61
 
56
- - Updated dependencies
62
+ - Updated dependencies
57
63
 
58
64
  ## 1.1.7
59
65
 
60
66
  ### Patch Changes
61
67
 
62
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
63
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
64
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
65
- language triggering composition on an empty line.This was fixed in a patch bump of
66
- 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
67
73
 
68
74
  ## 1.1.6
69
75
 
70
76
  ### Patch Changes
71
77
 
72
- - Updated dependencies
78
+ - Updated dependencies
73
79
 
74
80
  ## 1.1.5
75
81
 
76
82
  ### Patch Changes
77
83
 
78
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
79
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
80
- [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
81
87
 
82
88
  ## 1.1.4
83
89
 
84
90
  ### Patch Changes
85
91
 
86
- - Updated dependencies
92
+ - Updated dependencies
87
93
 
88
94
  ## 1.1.3
89
95
 
90
96
  ### Patch Changes
91
97
 
92
- - Updated dependencies
98
+ - Updated dependencies
93
99
 
94
100
  ## 1.1.2
95
101
 
96
102
  ### Patch Changes
97
103
 
98
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
99
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
100
- [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
101
107
 
102
108
  ## 1.1.1
103
109
 
104
110
  ### Patch Changes
105
111
 
106
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
107
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
108
- 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
109
115
 
110
116
  ## 1.1.0
111
117
 
112
118
  ### Minor Changes
113
119
 
114
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
115
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
116
- 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
117
123
 
118
124
  ### Patch Changes
119
125
 
120
- - Updated dependencies
126
+ - Updated dependencies
121
127
 
122
128
  ## 1.0.13
123
129
 
124
130
  ### Patch Changes
125
131
 
126
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
127
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
128
- Bump adf-schema to 35.9.2 to support table alignment options
129
- - 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
130
136
 
131
137
  ## 1.0.12
132
138
 
133
139
  ### Patch Changes
134
140
 
135
- - [#90781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90781)
136
- [`566fba222315`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/566fba222315) -
137
- 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
138
144
 
139
145
  ## 1.0.11
140
146
 
141
147
  ### Patch Changes
142
148
 
143
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
144
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
145
- Bump ADF-schema package to version 35.0.0
146
- - 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
147
153
 
148
154
  ## 1.0.10
149
155
 
150
156
  ### Patch Changes
151
157
 
152
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
153
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
154
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
155
- 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
156
162
 
157
163
  ## 1.0.9
158
164
 
159
165
  ### Patch Changes
160
166
 
161
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
162
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
163
- Bump adf-schema to 35.7.0
164
- - 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
165
171
 
166
172
  ## 1.0.8
167
173
 
168
174
  ### Patch Changes
169
175
 
170
- - Updated dependencies
176
+ - Updated dependencies
171
177
 
172
178
  ## 1.0.7
173
179
 
174
180
  ### Patch Changes
175
181
 
176
- - Updated dependencies
182
+ - Updated dependencies
177
183
 
178
184
  ## 1.0.6
179
185
 
180
186
  ### Patch Changes
181
187
 
182
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
183
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
184
- 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
185
191
 
186
192
  ## 1.0.5
187
193
 
188
194
  ### Patch Changes
189
195
 
190
- - Updated dependencies
196
+ - Updated dependencies
191
197
 
192
198
  ## 1.0.4
193
199
 
194
200
  ### Patch Changes
195
201
 
196
- - [#80391](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80391)
197
- [`bf741c7ef44c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf741c7ef44c) -
198
- Make @atlaskit/editor-plugin-table, @atlaskit/date, @atlaskit/editor-plugin-date React 18
199
- 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.
200
206
 
201
207
  ## 1.0.3
202
208
 
203
209
  ### Patch Changes
204
210
 
205
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
206
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
207
- ED-22219: adf-schema updated to 35.5.2
208
- - 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
209
215
 
210
216
  ## 1.0.2
211
217
 
212
218
  ### Patch Changes
213
219
 
214
- - Updated dependencies
220
+ - Updated dependencies
215
221
 
216
222
  ## 1.0.1
217
223
 
218
224
  ### Patch Changes
219
225
 
220
- - Updated dependencies
226
+ - Updated dependencies
221
227
 
222
228
  ## 1.0.0
223
229
 
224
230
  ### Major Changes
225
231
 
226
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
227
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
228
- This changeset exists to bump all editor plugins that currently don't have a major version. This
229
- 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.
230
236
 
231
237
  ### Patch Changes
232
238
 
233
- - Updated dependencies
239
+ - Updated dependencies
234
240
 
235
241
  ## 0.3.3
236
242
 
237
243
  ### Patch Changes
238
244
 
239
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
240
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
241
- 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
242
248
 
243
249
  ## 0.3.2
244
250
 
245
251
  ### Patch Changes
246
252
 
247
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
248
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
249
- Move all plugin translations to editor-common
250
- - 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
251
257
 
252
258
  ## 0.3.1
253
259
 
254
260
  ### Patch Changes
255
261
 
256
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
257
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
258
- 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
259
265
 
260
266
  ## 0.3.0
261
267
 
262
268
  ### Minor Changes
263
269
 
264
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
265
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
266
- 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.
267
273
 
268
- Now when using the editor API with the universal preset
274
+ Now when using the editor API with the universal preset
269
275
 
270
276
  ### Patch Changes
271
277
 
272
- - Updated dependencies
278
+ - Updated dependencies
273
279
 
274
280
  ## 0.2.20
275
281
 
276
282
  ### Patch Changes
277
283
 
278
- - Updated dependencies
284
+ - Updated dependencies
279
285
 
280
286
  ## 0.2.19
281
287
 
282
288
  ### Patch Changes
283
289
 
284
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
285
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
286
- [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
287
293
 
288
294
  ## 0.2.18
289
295
 
290
296
  ### Patch Changes
291
297
 
292
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
293
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
294
- ED-21609 Update adf-schema to 35.3.0
295
- - 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
296
302
 
297
303
  ## 0.2.17
298
304
 
299
305
  ### Patch Changes
300
306
 
301
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
302
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
303
- [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
304
310
 
305
311
  ## 0.2.16
306
312
 
307
313
  ### Patch Changes
308
314
 
309
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
310
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
311
- 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
312
318
 
313
319
  ## 0.2.15
314
320
 
315
321
  ### Patch Changes
316
322
 
317
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
318
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
319
- 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
320
326
 
321
327
  ## 0.2.14
322
328
 
323
329
  ### Patch Changes
324
330
 
325
- - [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029)
326
- [`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) -
327
- 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.
328
334
 
329
335
  ## 0.2.13
330
336
 
331
337
  ### Patch Changes
332
338
 
333
- - Updated dependencies
339
+ - Updated dependencies
334
340
 
335
341
  ## 0.2.12
336
342
 
337
343
  ### Patch Changes
338
344
 
339
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
340
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
341
- 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).
342
348
 
343
349
  ## 0.2.11
344
350
 
345
351
  ### Patch Changes
346
352
 
347
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
348
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
349
- 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
350
356
 
351
357
  ## 0.2.10
352
358
 
353
359
  ### Patch Changes
354
360
 
355
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
356
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
357
- 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
358
364
 
359
365
  ## 0.2.9
360
366
 
361
367
  ### Patch Changes
362
368
 
363
- - [#43549](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43549)
364
- [`8f05c711498`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f05c711498) -
365
- 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
366
372
 
367
373
  ## 0.2.8
368
374
 
369
375
  ### Patch Changes
370
376
 
371
- - [#43694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43694)
372
- [`fa3d07e4692`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa3d07e4692) - [ux]
373
- [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
374
380
 
375
381
  ## 0.2.7
376
382
 
377
383
  ### Patch Changes
378
384
 
379
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
380
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
381
- 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
382
388
 
383
389
  ## 0.2.6
384
390
 
385
391
  ### Patch Changes
386
392
 
387
- - Updated dependencies
393
+ - Updated dependencies
388
394
 
389
395
  ## 0.2.5
390
396
 
391
397
  ### Patch Changes
392
398
 
393
- - [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
394
- [`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
395
- 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.
396
402
 
397
403
  ## 0.2.4
398
404
 
399
405
  ### Patch Changes
400
406
 
401
- - [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
402
- [`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
403
- ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
404
- - 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
405
411
 
406
412
  ## 0.2.3
407
413
 
408
414
  ### Patch Changes
409
415
 
410
- - Updated dependencies
416
+ - Updated dependencies
411
417
 
412
418
  ## 0.2.2
413
419
 
414
420
  ### Patch Changes
415
421
 
416
- - [#42770](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42770)
417
- [`c7a6a824958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c7a6a824958) -
418
- 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`.
419
425
 
420
426
  ## 0.2.1
421
427
 
422
428
  ### Patch Changes
423
429
 
424
- - Updated dependencies
430
+ - Updated dependencies
425
431
 
426
432
  ## 0.2.0
427
433
 
428
434
  ### Minor Changes
429
435
 
430
- - [#41651](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41651)
431
- [`68871f23ed3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/68871f23ed3) -
432
- 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
433
439
 
434
440
  ### Patch Changes
435
441
 
436
- - Updated dependencies
442
+ - Updated dependencies
437
443
 
438
444
  ## 0.1.0
439
445
 
440
446
  ### Minor Changes
441
447
 
442
- - [#41572](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41572)
443
- [`e2c74f2ae09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2c74f2ae09) -
444
- Scaffolding for editor-plugin-date. Adds package.json, LICENSE, tsconfig, exported type and
445
- 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.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",
@@ -35,12 +35,12 @@
35
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": "^81.0.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.2.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",
@@ -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