@atlaskit/editor-plugin-date 2.4.25 → 2.4.26

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 2.4.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.4.25
4
10
 
5
11
  ### Patch Changes
@@ -57,6 +57,9 @@ function ContentComponent(_ref) {
57
57
  var showDatePickerAt = dateState.showDatePickerAt,
58
58
  isNew = dateState.isNew,
59
59
  focusDateInput = dateState.focusDateInput;
60
+
61
+ // Ignored via go/ees005
62
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
60
63
  var element = (0, _utils2.findDomRefAtPos)(showDatePickerAt, domAtPos);
61
64
 
62
65
  // Resolves ED-23702 for when the date is wrapped in an inline comment
@@ -11,7 +11,10 @@ var _actions = require("./actions");
11
11
  var _main = require("./main");
12
12
  function keymapPlugin() {
13
13
  var list = {};
14
- (0, _keymaps.bindKeymapWithCommand)(_keymaps.enter.common, function (state, dispatch) {
14
+ (0, _keymaps.bindKeymapWithCommand)(
15
+ // Ignored via go/ees005
16
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
17
+ _keymaps.enter.common, function (state, dispatch) {
15
18
  var datePlugin = (0, _main.getPluginState)(state);
16
19
  var isDateNode = state.selection instanceof _state.NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
17
20
  if (!isDateNode) {
@@ -24,7 +27,10 @@ function keymapPlugin() {
24
27
  (0, _actions.closeDatePicker)()(state, dispatch);
25
28
  return true;
26
29
  }, list);
27
- (0, _keymaps.bindKeymapWithCommand)(_keymaps.tab.common, function (state, dispatch) {
30
+ (0, _keymaps.bindKeymapWithCommand)(
31
+ // Ignored via go/ees005
32
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
33
+ _keymaps.tab.common, function (state, dispatch) {
28
34
  var datePlugin = (0, _main.getPluginState)(state);
29
35
  var isDateNode = state.selection instanceof _state.NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
30
36
  if (!isDateNode) {
@@ -42,6 +42,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
42
42
  var _this;
43
43
  (0, _classCallCheck2.default)(this, DatePicker);
44
44
  _this = _callSuper(this, DatePicker, [props]);
45
+
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
45
48
  (0, _defineProperty2.default)(_this, "handleNewDate", function (date) {
46
49
  _this.props.onTextChanged(date);
47
50
  _this.setState({
@@ -115,6 +118,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
115
118
  isNew = _this$props.isNew,
116
119
  autoFocus = _this$props.autoFocus,
117
120
  weekStartDay = _this$props.weekStartDay;
121
+ // Ignored via go/ees005
122
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
118
123
  var timestamp = element.getAttribute('timestamp');
119
124
  if (this.state === null) {
120
125
  // Without this, you can blow up the page by slowing down cpu, opening date, typing after date
@@ -131,7 +136,10 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
131
136
  if (!timestamp) {
132
137
  return null;
133
138
  }
134
- return (0, _react2.jsx)(PopupWithListeners, {
139
+ return (0, _react2.jsx)(PopupWithListeners
140
+ // Ignored via go/ees005
141
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
142
+ , {
135
143
  target: element,
136
144
  offset: [0, 8],
137
145
  fitHeight: 370,
@@ -32,6 +32,8 @@ function isCursorInFirstDateSegment(cursorPos, date) {
32
32
  var posCounter = cursorPos - 1;
33
33
  var isAdjacent = true;
34
34
  // The date without any non-digit characters on the end
35
+ // Ignored via go/ees005
36
+ // eslint-disable-next-line require-unicode-regexp
35
37
  var strippedDate = date.replace(/[^0-9]+$/g, '');
36
38
  while (posCounter >= 0 && isAdjacent) {
37
39
  var c = strippedDate[posCounter];
@@ -52,6 +54,8 @@ function isCursorInLastDateSegment(cursorPos, date) {
52
54
  var posCounter = cursorPos;
53
55
  var isAdjacent = true;
54
56
  // The date without any non-digit characters on the end
57
+ // Ignored via go/ees005
58
+ // eslint-disable-next-line require-unicode-regexp
55
59
  var strippedDate = date.replace(/[^0-9]+$/g, '');
56
60
  while (posCounter < strippedDate.length && isAdjacent) {
57
61
  var c = strippedDate[posCounter];
@@ -105,6 +109,8 @@ function findDateSegmentByPosition(position, date, locale) {
105
109
  }
106
110
 
107
111
  // The placeholder without any non-digit characters on the end
112
+ // Ignored via go/ees005
113
+ // eslint-disable-next-line require-unicode-regexp
108
114
  var strippedPlaceholder = placeholder.replace(/[^ymd]+$/g, '');
109
115
  var keyToSegment = {
110
116
  d: 'day',
@@ -140,13 +146,20 @@ function getLocaleDatePlaceholder(locale) {
140
146
  year: 1992
141
147
  };
142
148
  var localisedDateString = (0, _formatParse.formatDateType)(uniqueDateType, locale);
149
+
150
+ // Ignored via go/ees005
151
+ // eslint-disable-next-line require-unicode-regexp
143
152
  var shortDateFormat = localisedDateString.replace(/\d+/g, function (str) {
144
153
  if (!str) {
145
154
  return '';
146
155
  }
156
+ // Ignored via go/ees005
157
+ // eslint-disable-next-line no-var
147
158
  var num = parseInt(str);
148
159
  switch (num % 100) {
149
160
  case 92:
161
+ // Ignored via go/ees005
162
+ // eslint-disable-next-line require-unicode-regexp
150
163
  return str.replace(/.{1}/g, 'y');
151
164
  case 1:
152
165
  return str.length === 1 ? 'm' : 'mm';
@@ -45,6 +45,9 @@ function ContentComponent({
45
45
  isNew,
46
46
  focusDateInput
47
47
  } = dateState;
48
+
49
+ // Ignored via go/ees005
50
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
48
51
  const element = findDomRefAtPos(showDatePickerAt, domAtPos);
49
52
 
50
53
  // Resolves ED-23702 for when the date is wrapped in an inline comment
@@ -4,7 +4,10 @@ import { closeDatePicker, focusDateInput, openDatePicker } from './actions';
4
4
  import { getPluginState } from './main';
5
5
  export function keymapPlugin() {
6
6
  const list = {};
7
- bindKeymapWithCommand(enter.common, (state, dispatch) => {
7
+ bindKeymapWithCommand(
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10
+ enter.common, (state, dispatch) => {
8
11
  const datePlugin = getPluginState(state);
9
12
  const isDateNode = state.selection instanceof NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
10
13
  if (!isDateNode) {
@@ -17,7 +20,10 @@ export function keymapPlugin() {
17
20
  closeDatePicker()(state, dispatch);
18
21
  return true;
19
22
  }, list);
20
- bindKeymapWithCommand(tab.common, (state, dispatch) => {
23
+ bindKeymapWithCommand(
24
+ // Ignored via go/ees005
25
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
26
+ tab.common, (state, dispatch) => {
21
27
  const datePlugin = getPluginState(state);
22
28
  const isDateNode = state.selection instanceof NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
23
29
  if (!isDateNode) {
@@ -30,6 +30,9 @@ const popupContentWrapper = css({
30
30
  class DatePicker extends React.Component {
31
31
  constructor(props) {
32
32
  super(props);
33
+
34
+ // Ignored via go/ees005
35
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
33
36
  _defineProperty(this, "handleNewDate", date => {
34
37
  this.props.onTextChanged(date);
35
38
  this.setState({
@@ -101,6 +104,8 @@ class DatePicker extends React.Component {
101
104
  autoFocus,
102
105
  weekStartDay
103
106
  } = this.props;
107
+ // Ignored via go/ees005
108
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
104
109
  const timestamp = element.getAttribute('timestamp');
105
110
  if (this.state === null) {
106
111
  // Without this, you can blow up the page by slowing down cpu, opening date, typing after date
@@ -120,7 +125,10 @@ class DatePicker extends React.Component {
120
125
  if (!timestamp) {
121
126
  return null;
122
127
  }
123
- return jsx(PopupWithListeners, {
128
+ return jsx(PopupWithListeners
129
+ // Ignored via go/ees005
130
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
131
+ , {
124
132
  target: element,
125
133
  offset: [0, 8],
126
134
  fitHeight: 370,
@@ -18,6 +18,8 @@ function isCursorInFirstDateSegment(cursorPos, date) {
18
18
  let posCounter = cursorPos - 1;
19
19
  let isAdjacent = true;
20
20
  // The date without any non-digit characters on the end
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line require-unicode-regexp
21
23
  const strippedDate = date.replace(/[^0-9]+$/g, '');
22
24
  while (posCounter >= 0 && isAdjacent) {
23
25
  const c = strippedDate[posCounter];
@@ -38,6 +40,8 @@ function isCursorInLastDateSegment(cursorPos, date) {
38
40
  let posCounter = cursorPos;
39
41
  let isAdjacent = true;
40
42
  // The date without any non-digit characters on the end
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line require-unicode-regexp
41
45
  const strippedDate = date.replace(/[^0-9]+$/g, '');
42
46
  while (posCounter < strippedDate.length && isAdjacent) {
43
47
  const c = strippedDate[posCounter];
@@ -82,6 +86,8 @@ export function findDateSegmentByPosition(position, date, locale) {
82
86
  }
83
87
 
84
88
  // The placeholder without any non-digit characters on the end
89
+ // Ignored via go/ees005
90
+ // eslint-disable-next-line require-unicode-regexp
85
91
  const strippedPlaceholder = placeholder.replace(/[^ymd]+$/g, '');
86
92
  const keyToSegment = {
87
93
  d: 'day',
@@ -115,13 +121,20 @@ export function getLocaleDatePlaceholder(locale) {
115
121
  year: 1992
116
122
  };
117
123
  const localisedDateString = formatDateType(uniqueDateType, locale);
124
+
125
+ // Ignored via go/ees005
126
+ // eslint-disable-next-line require-unicode-regexp
118
127
  const shortDateFormat = localisedDateString.replace(/\d+/g, str => {
119
128
  if (!str) {
120
129
  return '';
121
130
  }
131
+ // Ignored via go/ees005
132
+ // eslint-disable-next-line no-var
122
133
  var num = parseInt(str);
123
134
  switch (num % 100) {
124
135
  case 92:
136
+ // Ignored via go/ees005
137
+ // eslint-disable-next-line require-unicode-regexp
125
138
  return str.replace(/.{1}/g, 'y');
126
139
  case 1:
127
140
  return str.length === 1 ? 'm' : 'mm';
@@ -45,6 +45,9 @@ function ContentComponent(_ref) {
45
45
  var showDatePickerAt = dateState.showDatePickerAt,
46
46
  isNew = dateState.isNew,
47
47
  focusDateInput = dateState.focusDateInput;
48
+
49
+ // Ignored via go/ees005
50
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
48
51
  var element = findDomRefAtPos(showDatePickerAt, domAtPos);
49
52
 
50
53
  // Resolves ED-23702 for when the date is wrapped in an inline comment
@@ -4,7 +4,10 @@ import { closeDatePicker, focusDateInput, openDatePicker } from './actions';
4
4
  import { getPluginState } from './main';
5
5
  export function keymapPlugin() {
6
6
  var list = {};
7
- bindKeymapWithCommand(enter.common, function (state, dispatch) {
7
+ bindKeymapWithCommand(
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10
+ enter.common, function (state, dispatch) {
8
11
  var datePlugin = getPluginState(state);
9
12
  var isDateNode = state.selection instanceof NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
10
13
  if (!isDateNode) {
@@ -17,7 +20,10 @@ export function keymapPlugin() {
17
20
  closeDatePicker()(state, dispatch);
18
21
  return true;
19
22
  }, list);
20
- bindKeymapWithCommand(tab.common, function (state, dispatch) {
23
+ bindKeymapWithCommand(
24
+ // Ignored via go/ees005
25
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
26
+ tab.common, function (state, dispatch) {
21
27
  var datePlugin = getPluginState(state);
22
28
  var isDateNode = state.selection instanceof NodeSelection ? state.selection.node.type === state.schema.nodes.date : false;
23
29
  if (!isDateNode) {
@@ -39,6 +39,9 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
39
39
  var _this;
40
40
  _classCallCheck(this, DatePicker);
41
41
  _this = _callSuper(this, DatePicker, [props]);
42
+
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
42
45
  _defineProperty(_this, "handleNewDate", function (date) {
43
46
  _this.props.onTextChanged(date);
44
47
  _this.setState({
@@ -112,6 +115,8 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
112
115
  isNew = _this$props.isNew,
113
116
  autoFocus = _this$props.autoFocus,
114
117
  weekStartDay = _this$props.weekStartDay;
118
+ // Ignored via go/ees005
119
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
115
120
  var timestamp = element.getAttribute('timestamp');
116
121
  if (this.state === null) {
117
122
  // Without this, you can blow up the page by slowing down cpu, opening date, typing after date
@@ -128,7 +133,10 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
128
133
  if (!timestamp) {
129
134
  return null;
130
135
  }
131
- return jsx(PopupWithListeners, {
136
+ return jsx(PopupWithListeners
137
+ // Ignored via go/ees005
138
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
139
+ , {
132
140
  target: element,
133
141
  offset: [0, 8],
134
142
  fitHeight: 370,
@@ -21,6 +21,8 @@ function isCursorInFirstDateSegment(cursorPos, date) {
21
21
  var posCounter = cursorPos - 1;
22
22
  var isAdjacent = true;
23
23
  // The date without any non-digit characters on the end
24
+ // Ignored via go/ees005
25
+ // eslint-disable-next-line require-unicode-regexp
24
26
  var strippedDate = date.replace(/[^0-9]+$/g, '');
25
27
  while (posCounter >= 0 && isAdjacent) {
26
28
  var c = strippedDate[posCounter];
@@ -41,6 +43,8 @@ function isCursorInLastDateSegment(cursorPos, date) {
41
43
  var posCounter = cursorPos;
42
44
  var isAdjacent = true;
43
45
  // The date without any non-digit characters on the end
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line require-unicode-regexp
44
48
  var strippedDate = date.replace(/[^0-9]+$/g, '');
45
49
  while (posCounter < strippedDate.length && isAdjacent) {
46
50
  var c = strippedDate[posCounter];
@@ -94,6 +98,8 @@ export function findDateSegmentByPosition(position, date, locale) {
94
98
  }
95
99
 
96
100
  // The placeholder without any non-digit characters on the end
101
+ // Ignored via go/ees005
102
+ // eslint-disable-next-line require-unicode-regexp
97
103
  var strippedPlaceholder = placeholder.replace(/[^ymd]+$/g, '');
98
104
  var keyToSegment = {
99
105
  d: 'day',
@@ -129,13 +135,20 @@ export function getLocaleDatePlaceholder(locale) {
129
135
  year: 1992
130
136
  };
131
137
  var localisedDateString = formatDateType(uniqueDateType, locale);
138
+
139
+ // Ignored via go/ees005
140
+ // eslint-disable-next-line require-unicode-regexp
132
141
  var shortDateFormat = localisedDateString.replace(/\d+/g, function (str) {
133
142
  if (!str) {
134
143
  return '';
135
144
  }
145
+ // Ignored via go/ees005
146
+ // eslint-disable-next-line no-var
136
147
  var num = parseInt(str);
137
148
  switch (num % 100) {
138
149
  case 92:
150
+ // Ignored via go/ees005
151
+ // eslint-disable-next-line require-unicode-regexp
139
152
  return str.replace(/.{1}/g, 'y');
140
153
  case 1:
141
154
  return str.length === 1 ? 'm' : 'mm';
@@ -14,7 +14,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
14
14
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
15
15
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
16
16
  sharedState: {
17
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
17
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
18
18
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
19
19
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
20
20
  };
@@ -31,7 +31,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
31
31
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
32
32
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
33
33
  sharedState: {
34
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
34
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
35
35
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
36
36
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
37
37
  };
@@ -42,14 +42,14 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
42
42
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
43
43
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewModeEffects", {
44
44
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
45
- pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
45
+ pluginConfiguration: import("packages/editor/editor-plugin-collab-edit/dist/types").PrivateCollabEditOptions;
46
46
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
47
47
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
48
48
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
49
49
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
50
50
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
51
51
  sharedState: {
52
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
52
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
53
53
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
54
54
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
55
55
  };
@@ -70,7 +70,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
70
70
  }, {
71
71
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
72
72
  } | undefined>>];
73
- sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
73
+ sharedState: import("packages/editor/editor-plugin-collab-edit/dist/types").CollabEditPluginSharedState;
74
74
  actions: {
75
75
  getAvatarColor: (str: string) => {
76
76
  index: number;
@@ -88,12 +88,12 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
88
88
  isRemoteReplaceDocumentTransaction: (tr: Transaction) => boolean;
89
89
  getCurrentCollabState: () => {
90
90
  version: number | undefined;
91
- sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
92
- content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
91
+ sendableSteps: import("packages/editor/editor-plugin-collab-edit/dist/types").CollabSendableSteps | null | undefined;
92
+ content: import("packages/editor/editor-json-transformer/dist/types").JSONNode | undefined;
93
93
  };
94
94
  validatePMJSONDocument: (doc: any) => boolean;
95
95
  };
96
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
96
+ }, import("packages/editor/editor-plugin-collab-edit/dist/types").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
97
97
  sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
98
98
  dependencies: [];
99
99
  pluginConfiguration?: {
@@ -122,27 +122,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
122
122
  } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
123
123
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
124
124
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
125
- }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
126
- actions: {
127
- startMessage: (messageId: string, variationId?: string | undefined) => Promise<boolean>;
128
- stopMessage: (messageId: string) => Promise<boolean>;
129
- };
130
- pluginConfiguration: import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginConfig;
131
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
132
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
133
- sharedState: {
134
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
135
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
136
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
137
- };
138
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
139
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
140
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
141
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
142
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
143
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
144
- sharedState: import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginState;
145
- }, import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginConfig>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
125
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
146
126
  sharedState: {
147
127
  mode: "online" | "offline";
148
128
  };
@@ -15,7 +15,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
15
15
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
16
16
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
17
17
  sharedState: {
18
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
18
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
19
19
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
20
20
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
21
21
  };
@@ -37,7 +37,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
37
37
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
38
38
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
39
39
  sharedState: {
40
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
40
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
41
41
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
42
42
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
43
43
  };
@@ -52,7 +52,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
52
52
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewModeEffects", {
53
53
  dependencies: [
54
54
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
55
- pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
55
+ pluginConfiguration: import("packages/editor/editor-plugin-collab-edit/dist/types").PrivateCollabEditOptions;
56
56
  dependencies: [
57
57
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
58
58
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
@@ -61,7 +61,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
61
61
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
62
62
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
63
63
  sharedState: {
64
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
64
+ createAnalyticsEvent: import("packages/analytics/analytics-next/dist/types").CreateUIAnalyticsEvent | null;
65
65
  attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
66
66
  performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
67
67
  };
@@ -87,7 +87,7 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
87
87
  mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
88
88
  } | undefined>>
89
89
  ];
90
- sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
90
+ sharedState: import("packages/editor/editor-plugin-collab-edit/dist/types").CollabEditPluginSharedState;
91
91
  actions: {
92
92
  getAvatarColor: (str: string) => {
93
93
  index: number;
@@ -105,12 +105,12 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
105
105
  isRemoteReplaceDocumentTransaction: (tr: Transaction) => boolean;
106
106
  getCurrentCollabState: () => {
107
107
  version: number | undefined;
108
- sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
109
- content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
108
+ sendableSteps: import("packages/editor/editor-plugin-collab-edit/dist/types").CollabSendableSteps | null | undefined;
109
+ content: import("packages/editor/editor-json-transformer/dist/types").JSONNode | undefined;
110
110
  };
111
111
  validatePMJSONDocument: (doc: any) => boolean;
112
112
  };
113
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
113
+ }, import("packages/editor/editor-plugin-collab-edit/dist/types").PrivateCollabEditOptions>,
114
114
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
115
115
  sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
116
116
  dependencies: [
@@ -146,31 +146,6 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
146
146
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
147
147
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
148
148
  }, import("@atlaskit/editor-common/types").FeatureFlags>>,
149
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
150
- actions: {
151
- startMessage: (messageId: string, variationId?: string | undefined) => Promise<boolean>;
152
- stopMessage: (messageId: string) => Promise<boolean>;
153
- };
154
- pluginConfiguration: import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginConfig;
155
- dependencies: [
156
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
157
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
158
- sharedState: {
159
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
160
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
161
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
162
- };
163
- dependencies: [
164
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
165
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
166
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
167
- }, import("@atlaskit/editor-common/types").FeatureFlags>>
168
- ];
169
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
170
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
171
- ];
172
- sharedState: import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginState;
173
- }, import("@atlaskit/editor-plugin-engagement-platform").EngagementPlatformPluginConfig>>,
174
149
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
175
150
  sharedState: {
176
151
  mode: "online" | "offline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "2.4.25",
3
+ "version": "2.4.26",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,9 +34,9 @@
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/calendar": "^16.1.0",
36
36
  "@atlaskit/date": "^0.11.0",
37
- "@atlaskit/editor-common": "^97.0.0",
37
+ "@atlaskit/editor-common": "^97.2.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
39
- "@atlaskit/editor-plugin-annotation": "1.26.7",
39
+ "@atlaskit/editor-plugin-annotation": "1.26.8",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
42
42
  "@atlaskit/editor-prosemirror": "6.2.1",
@@ -65,7 +65,7 @@
65
65
  "@atlaskit/editor-plugin-table": "^8.4.0",
66
66
  "@atlaskit/editor-plugin-tasks-and-decisions": "^2.12.0",
67
67
  "@atlaskit/editor-plugin-type-ahead": "^1.11.0",
68
- "@atlaskit/editor-plugin-width": "^1.3.0",
68
+ "@atlaskit/editor-plugin-width": "^2.0.0",
69
69
  "@testing-library/react": "^12.1.5"
70
70
  },
71
71
  "peerDependencies": {