@atlaskit/editor-plugin-date 5.1.4 → 5.1.5
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 +6 -0
- package/dist/cjs/datePlugin.js +2 -1
- package/dist/es2019/datePlugin.js +3 -2
- package/dist/esm/datePlugin.js +3 -2
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/datePlugin.js
CHANGED
|
@@ -18,6 +18,7 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
18
18
|
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
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _actions = require("./pm-plugins/actions");
|
|
22
23
|
var _commands = require("./pm-plugins/commands");
|
|
23
24
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
@@ -143,7 +144,7 @@ var datePlugin = function datePlugin(_ref3) {
|
|
|
143
144
|
nodes: function nodes() {
|
|
144
145
|
return [{
|
|
145
146
|
name: 'date',
|
|
146
|
-
node: _adfSchema.date
|
|
147
|
+
node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.dateWithLocalId : _adfSchema.date
|
|
147
148
|
}];
|
|
148
149
|
},
|
|
149
150
|
pmPlugins: function pmPlugins() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { date } from '@atlaskit/adf-schema';
|
|
3
|
+
import { date, dateWithLocalId } from '@atlaskit/adf-schema';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -10,6 +10,7 @@ import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
|
10
10
|
import { calculateToolbarPositionAboveSelection } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { closeDatePicker, closeDatePickerWithAnalytics, createDate } from './pm-plugins/actions';
|
|
14
15
|
import { deleteDateCommand, insertDateCommand } from './pm-plugins/commands';
|
|
15
16
|
import keymap from './pm-plugins/keymap';
|
|
@@ -133,7 +134,7 @@ const datePlugin = ({
|
|
|
133
134
|
nodes() {
|
|
134
135
|
return [{
|
|
135
136
|
name: 'date',
|
|
136
|
-
node: date
|
|
137
|
+
node: fg('platform_editor_adf_with_localid') ? dateWithLocalId : date
|
|
137
138
|
}];
|
|
138
139
|
},
|
|
139
140
|
pmPlugins() {
|
package/dist/esm/datePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
-
import { date } from '@atlaskit/adf-schema';
|
|
3
|
+
import { date, dateWithLocalId } from '@atlaskit/adf-schema';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
6
6
|
import { ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
@@ -10,6 +10,7 @@ import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
|
10
10
|
import { calculateToolbarPositionAboveSelection } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { closeDatePicker as _closeDatePicker, closeDatePickerWithAnalytics as _closeDatePickerWithAnalytics, createDate } from './pm-plugins/actions';
|
|
14
15
|
import { deleteDateCommand, insertDateCommand } from './pm-plugins/commands';
|
|
15
16
|
import keymap from './pm-plugins/keymap';
|
|
@@ -132,7 +133,7 @@ var datePlugin = function datePlugin(_ref3) {
|
|
|
132
133
|
nodes: function nodes() {
|
|
133
134
|
return [{
|
|
134
135
|
name: 'date',
|
|
135
|
-
node: date
|
|
136
|
+
node: fg('platform_editor_adf_with_localid') ? dateWithLocalId : date
|
|
136
137
|
}];
|
|
137
138
|
},
|
|
138
139
|
pmPlugins: function pmPlugins() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-date",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
4
4
|
"description": "Date plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/textfield": "^8.0.0",
|
|
50
50
|
"@atlaskit/theme": "^19.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^11.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^6.0.0",
|
|
53
53
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
},
|
|
118
118
|
"editor_a11y_announce_date_picker_open": {
|
|
119
119
|
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"platform_editor_adf_with_localid": {
|
|
122
|
+
"type": "boolean"
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
}
|