@atlaskit/editor-plugin-date 12.0.2 → 12.1.0
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 +11 -0
- package/dist/cjs/datePlugin.js +2 -3
- package/dist/es2019/datePlugin.js +2 -3
- package/dist/esm/datePlugin.js +2 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-date
|
|
2
2
|
|
|
3
|
+
## 12.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
|
|
8
|
+
Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 12.0.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/datePlugin.js
CHANGED
|
@@ -19,7 +19,6 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
19
19
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
20
20
|
var _comment = _interopRequireDefault(require("@atlaskit/icon/core/comment"));
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
22
|
var _actions = require("./pm-plugins/actions");
|
|
24
23
|
var _commands = require("./pm-plugins/commands");
|
|
25
24
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
@@ -82,7 +81,7 @@ function ContentComponent(_ref) {
|
|
|
82
81
|
,
|
|
83
82
|
onDelete: function onDelete() {
|
|
84
83
|
var _dependencyApi$core;
|
|
85
|
-
if (
|
|
84
|
+
if (!editorView) {
|
|
86
85
|
return;
|
|
87
86
|
}
|
|
88
87
|
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute((0, _commands.deleteDateCommand)(dependencyApi));
|
|
@@ -96,7 +95,7 @@ function ContentComponent(_ref) {
|
|
|
96
95
|
if (date === undefined || date === null) {
|
|
97
96
|
return;
|
|
98
97
|
}
|
|
99
|
-
if (
|
|
98
|
+
if (!editorView) {
|
|
100
99
|
return;
|
|
101
100
|
}
|
|
102
101
|
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute((0, _commands.insertDateCommand)(dependencyApi)({
|
|
@@ -11,7 +11,6 @@ import { calculateToolbarPositionAboveSelection } from '@atlaskit/editor-common/
|
|
|
11
11
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
14
|
import { closeDatePicker, closeDatePickerWithAnalytics, createDate } from './pm-plugins/actions';
|
|
16
15
|
import { deleteDateCommand, insertDateCommand } from './pm-plugins/commands';
|
|
17
16
|
import keymap from './pm-plugins/keymap';
|
|
@@ -69,7 +68,7 @@ function ContentComponent({
|
|
|
69
68
|
,
|
|
70
69
|
onDelete: () => {
|
|
71
70
|
var _dependencyApi$core;
|
|
72
|
-
if (
|
|
71
|
+
if (!editorView) {
|
|
73
72
|
return;
|
|
74
73
|
}
|
|
75
74
|
dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 ? void 0 : _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
|
|
@@ -83,7 +82,7 @@ function ContentComponent({
|
|
|
83
82
|
if (date === undefined || date === null) {
|
|
84
83
|
return;
|
|
85
84
|
}
|
|
86
|
-
if (
|
|
85
|
+
if (!editorView) {
|
|
87
86
|
return;
|
|
88
87
|
}
|
|
89
88
|
dependencyApi === null || dependencyApi === void 0 ? void 0 : (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 ? void 0 : _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
|
package/dist/esm/datePlugin.js
CHANGED
|
@@ -11,7 +11,6 @@ import { calculateToolbarPositionAboveSelection } from '@atlaskit/editor-common/
|
|
|
11
11
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
14
|
import { closeDatePicker as _closeDatePicker, closeDatePickerWithAnalytics as _closeDatePickerWithAnalytics, createDate } from './pm-plugins/actions';
|
|
16
15
|
import { deleteDateCommand, insertDateCommand } from './pm-plugins/commands';
|
|
17
16
|
import keymap from './pm-plugins/keymap';
|
|
@@ -71,7 +70,7 @@ function ContentComponent(_ref) {
|
|
|
71
70
|
,
|
|
72
71
|
onDelete: function onDelete() {
|
|
73
72
|
var _dependencyApi$core;
|
|
74
|
-
if (
|
|
73
|
+
if (!editorView) {
|
|
75
74
|
return;
|
|
76
75
|
}
|
|
77
76
|
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core = dependencyApi.core) === null || _dependencyApi$core === void 0 || _dependencyApi$core.actions.execute(deleteDateCommand(dependencyApi));
|
|
@@ -85,7 +84,7 @@ function ContentComponent(_ref) {
|
|
|
85
84
|
if (date === undefined || date === null) {
|
|
86
85
|
return;
|
|
87
86
|
}
|
|
88
|
-
if (
|
|
87
|
+
if (!editorView) {
|
|
89
88
|
return;
|
|
90
89
|
}
|
|
91
90
|
dependencyApi === null || dependencyApi === void 0 || (_dependencyApi$core2 = dependencyApi.core) === null || _dependencyApi$core2 === void 0 || _dependencyApi$core2.actions.execute(insertDateCommand(dependencyApi)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/calendar": "^17.2.0",
|
|
34
34
|
"@atlaskit/css": "^0.19.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
36
|
-
"@atlaskit/editor-plugin-annotation": "^10.
|
|
36
|
+
"@atlaskit/editor-plugin-annotation": "^10.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^10.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/locale": "^4.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.3.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^65.0.0",
|
|
47
47
|
"@atlaskit/tokens": "^13.0.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-intl": "^6.6.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^114.
|
|
59
|
+
"@atlaskit/editor-common": "^114.6.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|