@atlaskit/editor-plugin-date 0.2.18 → 0.2.20
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/CHANGELOG.md +12 -0
- package/dist/cjs/plugin.js +6 -3
- package/dist/es2019/plugin.js +6 -3
- package/dist/esm/plugin.js +6 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 0.2.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
14
|
+
|
|
3
15
|
## 0.2.18
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -62,22 +62,25 @@ function ContentComponent(_ref) {
|
|
|
62
62
|
isNew: isNew,
|
|
63
63
|
autoFocus: focusDateInput,
|
|
64
64
|
onDelete: function onDelete() {
|
|
65
|
-
|
|
65
|
+
var _dependencyApi$core;
|
|
66
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute((0, _commands.deleteDateCommand)(dependencyApi));
|
|
66
67
|
editorView.focus();
|
|
67
68
|
},
|
|
68
69
|
onSelect: function onSelect(date, commitMethod) {
|
|
70
|
+
var _dependencyApi$core2;
|
|
69
71
|
// Undefined means couldn't parse date, null means invalid (out of bounds) date
|
|
70
72
|
if (date === undefined || date === null) {
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
73
|
-
dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
|
|
75
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
|
|
74
76
|
date: date,
|
|
75
77
|
commitMethod: commitMethod
|
|
76
78
|
}));
|
|
77
79
|
editorView.focus();
|
|
78
80
|
},
|
|
79
81
|
onTextChanged: function onTextChanged(date) {
|
|
80
|
-
|
|
82
|
+
var _dependencyApi$core3;
|
|
83
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
|
|
81
84
|
date: date,
|
|
82
85
|
enterPressed: false
|
|
83
86
|
}));
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -50,22 +50,25 @@ function ContentComponent({
|
|
|
50
50
|
isNew: isNew,
|
|
51
51
|
autoFocus: focusDateInput,
|
|
52
52
|
onDelete: () => {
|
|
53
|
-
|
|
53
|
+
var _dependencyApi$core;
|
|
54
|
+
dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 ? void 0 : _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
|
|
54
55
|
editorView.focus();
|
|
55
56
|
},
|
|
56
57
|
onSelect: (date, commitMethod) => {
|
|
58
|
+
var _dependencyApi$core2;
|
|
57
59
|
// Undefined means couldn't parse date, null means invalid (out of bounds) date
|
|
58
60
|
if (date === undefined || date === null) {
|
|
59
61
|
return;
|
|
60
62
|
}
|
|
61
|
-
dependencyApi === null || dependencyApi === void 0 ? void 0 : dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
|
|
63
|
+
dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 ? void 0 : _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
|
|
62
64
|
date,
|
|
63
65
|
commitMethod
|
|
64
66
|
}));
|
|
65
67
|
editorView.focus();
|
|
66
68
|
},
|
|
67
69
|
onTextChanged: date => {
|
|
68
|
-
|
|
70
|
+
var _dependencyApi$core3;
|
|
71
|
+
dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 ? void 0 : _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
|
|
69
72
|
date,
|
|
70
73
|
enterPressed: false
|
|
71
74
|
}));
|
package/dist/esm/plugin.js
CHANGED
|
@@ -50,22 +50,25 @@ function ContentComponent(_ref) {
|
|
|
50
50
|
isNew: isNew,
|
|
51
51
|
autoFocus: focusDateInput,
|
|
52
52
|
onDelete: function onDelete() {
|
|
53
|
-
|
|
53
|
+
var _dependencyApi$core;
|
|
54
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
|
|
54
55
|
editorView.focus();
|
|
55
56
|
},
|
|
56
57
|
onSelect: function onSelect(date, commitMethod) {
|
|
58
|
+
var _dependencyApi$core2;
|
|
57
59
|
// Undefined means couldn't parse date, null means invalid (out of bounds) date
|
|
58
60
|
if (date === undefined || date === null) {
|
|
59
61
|
return;
|
|
60
62
|
}
|
|
61
|
-
dependencyApi === null || dependencyApi === void 0 || dependencyApi.core.actions.execute(insertDateCommand(dependencyApi)({
|
|
63
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
|
|
62
64
|
date: date,
|
|
63
65
|
commitMethod: commitMethod
|
|
64
66
|
}));
|
|
65
67
|
editorView.focus();
|
|
66
68
|
},
|
|
67
69
|
onTextChanged: function onTextChanged(date) {
|
|
68
|
-
|
|
70
|
+
var _dependencyApi$core3;
|
|
71
|
+
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core3 = dependencyApi.core) === null || _dependencyApi$core3 === void 0 || _dependencyApi$core3.actions.execute(insertDateCommand(dependencyApi)({
|
|
69
72
|
date: date,
|
|
70
73
|
enterPressed: false
|
|
71
74
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"releaseModel": "continuous",
|
|
14
14
|
"runReact18": false
|
|
15
15
|
},
|
|
16
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
17
|
"main": "dist/cjs/index.js",
|
|
18
18
|
"module": "dist/esm/index.js",
|
|
19
19
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/adf-schema": "^35.3.0",
|
|
36
36
|
"@atlaskit/calendar": "^14.0.3",
|
|
37
37
|
"@atlaskit/date": "^0.10.0",
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/editor-common": "^77.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^0.2.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/locale": "^2.6.0",
|
|
45
45
|
"@atlaskit/textfield": "6.0.0",
|
|
46
46
|
"@atlaskit/theme": "^12.6.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.34.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"date-fns": "^2.17.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
60
60
|
"@atlaskit/editor-plugin-guideline": "^0.5.0",
|
|
61
61
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
62
|
-
"@atlaskit/editor-plugin-selection": "^0.
|
|
63
|
-
"@atlaskit/editor-plugin-table": "^
|
|
62
|
+
"@atlaskit/editor-plugin-selection": "^0.2.0",
|
|
63
|
+
"@atlaskit/editor-plugin-table": "^6.1.0",
|
|
64
64
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^0.2.0",
|
|
65
65
|
"@atlaskit/editor-plugin-type-ahead": "^0.9.0",
|
|
66
66
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|