@atlaskit/editor-core 188.9.5 → 188.10.1

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/plugins/annotation/commands/index.js +2 -5
  3. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  4. package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +2 -4
  5. package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +3 -6
  6. package/dist/cjs/plugins/annotation/update-provider.js +5 -0
  7. package/dist/cjs/utils/commands.js +1 -0
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/plugins/annotation/commands/index.js +2 -5
  10. package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  11. package/dist/es2019/plugins/annotation/pm-plugins/reducer.js +2 -4
  12. package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +3 -6
  13. package/dist/es2019/plugins/annotation/update-provider.js +3 -0
  14. package/dist/es2019/utils/commands.js +1 -0
  15. package/dist/es2019/version-wrapper.js +1 -1
  16. package/dist/esm/plugins/annotation/commands/index.js +2 -5
  17. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  18. package/dist/esm/plugins/annotation/pm-plugins/reducer.js +2 -4
  19. package/dist/esm/plugins/annotation/ui/InlineCommentView.js +3 -6
  20. package/dist/esm/plugins/annotation/update-provider.js +5 -0
  21. package/dist/esm/utils/commands.js +1 -0
  22. package/dist/esm/version-wrapper.js +1 -1
  23. package/dist/types/plugins/annotation/commands/index.d.ts +1 -2
  24. package/dist/types/plugins/annotation/pm-plugins/types.d.ts +0 -4
  25. package/dist/types/plugins/annotation/update-provider.d.ts +4 -0
  26. package/dist/types/plugins/date/actions.d.ts +5 -5
  27. package/dist/types/plugins/date/commands.d.ts +2 -10
  28. package/dist/types/plugins/date/index.d.ts +0 -1
  29. package/dist/types/plugins/date/plugin.d.ts +1 -1
  30. package/dist/types/plugins/date/types.d.ts +0 -27
  31. package/dist/types/plugins/date/ui/DatePicker/date-picker-input.d.ts +1 -1
  32. package/dist/types/plugins/date/ui/DatePicker/index.d.ts +1 -1
  33. package/dist/types/plugins/date/utils/formatParse.d.ts +1 -1
  34. package/dist/types/plugins/date/utils/internal.d.ts +1 -1
  35. package/dist/types/plugins/insert-block/types.d.ts +1 -1
  36. package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
  37. package/dist/types/types/editor-props.d.ts +1 -1
  38. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  39. package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  40. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  41. package/dist/types/utils/commands.d.ts +1 -0
  42. package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +1 -2
  43. package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +0 -4
  44. package/dist/types-ts4.5/plugins/annotation/update-provider.d.ts +4 -0
  45. package/dist/types-ts4.5/plugins/date/actions.d.ts +5 -5
  46. package/dist/types-ts4.5/plugins/date/commands.d.ts +2 -10
  47. package/dist/types-ts4.5/plugins/date/index.d.ts +0 -1
  48. package/dist/types-ts4.5/plugins/date/plugin.d.ts +1 -1
  49. package/dist/types-ts4.5/plugins/date/types.d.ts +0 -30
  50. package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +1 -1
  51. package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +1 -1
  52. package/dist/types-ts4.5/plugins/date/utils/formatParse.d.ts +1 -1
  53. package/dist/types-ts4.5/plugins/date/utils/internal.d.ts +1 -1
  54. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
  55. package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
  56. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  57. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  58. package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
  59. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  60. package/dist/types-ts4.5/utils/commands.d.ts +1 -0
  61. package/package.json +3 -2
  62. package/report.api.md +9 -7
  63. package/tmp/api-report-tmp.d.ts +9 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 188.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#40950](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40950) [`6fa1988ec35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6fa1988ec35) - clean up FF for enabling fallback to reconcile
8
+ - [#40056](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40056) [`1a189e4493d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1a189e4493d) - [ux] COMMENTS-481: reverted changes from ED-19508
9
+
10
+ ## 188.10.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#41206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41206) [`26d333c7c9b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/26d333c7c9b) - ED-20333 Added a new annotation example and fixed annotation experiement by defining off method on AnnotationUpdateEmitter class.
15
+ - [#41572](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41572) [`e2c74f2ae09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2c74f2ae09) - Scaffolding for editor-plugin-date. Adds package.json, LICENSE, tsconfig, exported type and other fundamentals required to create a new package
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 188.9.5
4
22
 
5
23
  ### Patch Changes
@@ -26,12 +26,9 @@ var updateInlineCommentResolvedState = exports.updateInlineCommentResolvedState
26
26
  }
27
27
  return (0, _pluginFactory.createCommand)(command);
28
28
  };
29
- var closeComponent = exports.closeComponent = function closeComponent(state) {
29
+ var closeComponent = exports.closeComponent = function closeComponent() {
30
30
  return (0, _pluginFactory.createCommand)({
31
- type: _types.ACTIONS.CLOSE_COMPONENT,
32
- data: {
33
- lastClosedPos: state.selection.$head.pos
34
- }
31
+ type: _types.ACTIONS.CLOSE_COMPONENT
35
32
  });
36
33
  };
37
34
  var clearDirtyMark = exports.clearDirtyMark = function clearDirtyMark() {
@@ -156,7 +156,7 @@ var inlineCommentPlugin = exports.inlineCommentPlugin = function inlineCommentPl
156
156
  };
157
157
  var setSelectedAnnotationFn = function setSelectedAnnotationFn(annotationId) {
158
158
  if (!annotationId) {
159
- (0, _commands.closeComponent)(editorView.state)(editorView.state, editorView.dispatch);
159
+ (0, _commands.closeComponent)()(editorView.state, editorView.dispatch);
160
160
  } else {
161
161
  (0, _commands.setSelectedAnnotation)(annotationId)(editorView.state, editorView.dispatch);
162
162
  }
@@ -21,8 +21,7 @@ var _default = exports.default = function _default(pluginState, action) {
21
21
  case _types.ACTIONS.INLINE_COMMENT_UPDATE_MOUSE_STATE:
22
22
  var mouseData = Object.assign({}, pluginState.mouseData, action.data.mouseData);
23
23
  return _objectSpread(_objectSpread({}, pluginState), {}, {
24
- mouseData: mouseData,
25
- lastClosedPos: undefined
24
+ mouseData: mouseData
26
25
  });
27
26
  case _types.ACTIONS.SET_INLINE_COMMENT_DRAFT_STATE:
28
27
  return getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -33,8 +32,7 @@ var _default = exports.default = function _default(pluginState, action) {
33
32
  });
34
33
  case _types.ACTIONS.CLOSE_COMPONENT:
35
34
  return _objectSpread(_objectSpread({}, pluginState), {}, {
36
- selectedAnnotations: [],
37
- lastClosedPos: action.data.lastClosedPos
35
+ selectedAnnotations: []
38
36
  });
39
37
  case _types.ACTIONS.ADD_INLINE_COMMENT:
40
38
  var updatedPluginState = getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -45,8 +45,7 @@ function InlineCommentView(_ref) {
45
45
  var _ref2 = inlineCommentState || {},
46
46
  bookmark = _ref2.bookmark,
47
47
  selectedAnnotations = _ref2.selectedAnnotations,
48
- annotations = _ref2.annotations,
49
- lastClosedPos = _ref2.lastClosedPos;
48
+ annotations = _ref2.annotations;
50
49
  var annotationsList = (0, _utils2.getAllAnnotations)(editorView.state.doc);
51
50
  var selection = (0, _utils2.getSelectionPositions)(state, inlineCommentState);
52
51
  var position = findPosForDOM(selection);
@@ -108,9 +107,7 @@ function InlineCommentView(_ref) {
108
107
  var activeAnnotations = (selectedAnnotations === null || selectedAnnotations === void 0 ? void 0 : selectedAnnotations.filter(function (mark) {
109
108
  return annotations && annotations[mark.id] === false;
110
109
  })) || [];
111
- if (!ViewComponent || activeAnnotations.length === 0 ||
112
- // Check if the user has moved the selection since closing the previous comment
113
- editorView.state.selection.$head.pos === lastClosedPos) {
110
+ if (!ViewComponent || activeAnnotations.length === 0) {
114
111
  return null;
115
112
  }
116
113
  var onAnnotationViewed = function onAnnotationViewed() {
@@ -148,7 +145,7 @@ function InlineCommentView(_ref) {
148
145
  return (0, _commands.updateInlineCommentResolvedState)((0, _defineProperty2.default)({}, id, true), _inlineCommentEvents.RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch);
149
146
  },
150
147
  onClose: function onClose() {
151
- (0, _commands.closeComponent)(editorView.state)(editorView.state, editorView.dispatch);
148
+ (0, _commands.closeComponent)()(editorView.state, editorView.dispatch);
152
149
  }
153
150
  }));
154
151
  }
@@ -26,6 +26,11 @@ var AnnotationUpdateEmitter = exports.AnnotationUpdateEmitter = /*#__PURE__*/fun
26
26
  value: function on(event, listener) {
27
27
  return (0, _get2.default)((0, _getPrototypeOf2.default)(AnnotationUpdateEmitter.prototype), "on", this).call(this, event, listener);
28
28
  }
29
+ }, {
30
+ key: "off",
31
+ value: function off(event, listener) {
32
+ return (0, _get2.default)((0, _getPrototypeOf2.default)(AnnotationUpdateEmitter.prototype), "removeListener", this).call(this, event, listener);
33
+ }
29
34
  }]);
30
35
  return AnnotationUpdateEmitter;
31
36
  }(_events.EventEmitter);
@@ -7,6 +7,7 @@ exports.withScrollIntoView = exports.isNthParentOfType = void 0;
7
7
  /**
8
8
  * Creates a filter that checks if the node at a given number of parents above the current
9
9
  * selection is of the correct node type.
10
+ *
10
11
  * @param nodeType The node type to compare the nth parent against
11
12
  * @param depthAway How many levels above the current node to check against. 0 refers to
12
13
  * the current selection's parent, which will be the containing node when the selection
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "188.9.5";
8
+ var version = exports.version = "188.10.1";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -16,11 +16,8 @@ export const updateInlineCommentResolvedState = (partialNewState, resolveMethod)
16
16
  }
17
17
  return createCommand(command);
18
18
  };
19
- export const closeComponent = state => createCommand({
20
- type: ACTIONS.CLOSE_COMPONENT,
21
- data: {
22
- lastClosedPos: state.selection.$head.pos
23
- }
19
+ export const closeComponent = () => createCommand({
20
+ type: ACTIONS.CLOSE_COMPONENT
24
21
  });
25
22
  export const clearDirtyMark = () => createCommand({
26
23
  type: ACTIONS.INLINE_COMMENT_CLEAR_DIRTY_MARK
@@ -99,7 +99,7 @@ export const inlineCommentPlugin = options => {
99
99
  const setVisibility = isVisible => onSetVisibility(editorView)(isVisible);
100
100
  const setSelectedAnnotationFn = annotationId => {
101
101
  if (!annotationId) {
102
- closeComponent(editorView.state)(editorView.state, editorView.dispatch);
102
+ closeComponent()(editorView.state, editorView.dispatch);
103
103
  } else {
104
104
  setSelectedAnnotation(annotationId)(editorView.state, editorView.dispatch);
105
105
  }
@@ -15,8 +15,7 @@ export default ((pluginState, action) => {
15
15
  const mouseData = Object.assign({}, pluginState.mouseData, action.data.mouseData);
16
16
  return {
17
17
  ...pluginState,
18
- mouseData,
19
- lastClosedPos: undefined
18
+ mouseData
20
19
  };
21
20
  case ACTIONS.SET_INLINE_COMMENT_DRAFT_STATE:
22
21
  return getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -29,8 +28,7 @@ export default ((pluginState, action) => {
29
28
  case ACTIONS.CLOSE_COMPONENT:
30
29
  return {
31
30
  ...pluginState,
32
- selectedAnnotations: [],
33
- lastClosedPos: action.data.lastClosedPos
31
+ selectedAnnotations: []
34
32
  };
35
33
  case ACTIONS.ADD_INLINE_COMMENT:
36
34
  const updatedPluginState = getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -44,8 +44,7 @@ export function InlineCommentView({
44
44
  const {
45
45
  bookmark,
46
46
  selectedAnnotations,
47
- annotations,
48
- lastClosedPos
47
+ annotations
49
48
  } = inlineCommentState || {};
50
49
  const annotationsList = getAllAnnotations(editorView.state.doc);
51
50
  const selection = getSelectionPositions(state, inlineCommentState);
@@ -106,9 +105,7 @@ export function InlineCommentView({
106
105
 
107
106
  // View Component
108
107
  const activeAnnotations = (selectedAnnotations === null || selectedAnnotations === void 0 ? void 0 : selectedAnnotations.filter(mark => annotations && annotations[mark.id] === false)) || [];
109
- if (!ViewComponent || activeAnnotations.length === 0 ||
110
- // Check if the user has moved the selection since closing the previous comment
111
- editorView.state.selection.$head.pos === lastClosedPos) {
108
+ if (!ViewComponent || activeAnnotations.length === 0) {
112
109
  return null;
113
110
  }
114
111
  const onAnnotationViewed = () => {
@@ -144,7 +141,7 @@ export function InlineCommentView({
144
141
  [id]: true
145
142
  }, RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch),
146
143
  onClose: () => {
147
- closeComponent(editorView.state)(editorView.state, editorView.dispatch);
144
+ closeComponent()(editorView.state, editorView.dispatch);
148
145
  }
149
146
  }));
150
147
  }
@@ -3,4 +3,7 @@ export class AnnotationUpdateEmitter extends EventEmitter {
3
3
  on(event, listener) {
4
4
  return super.on(event, listener);
5
5
  }
6
+ off(event, listener) {
7
+ return super.removeListener(event, listener);
8
+ }
6
9
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Creates a filter that checks if the node at a given number of parents above the current
3
3
  * selection is of the correct node type.
4
+ *
4
5
  * @param nodeType The node type to compare the nth parent against
5
6
  * @param depthAway How many levels above the current node to check against. 0 refers to
6
7
  * the current selection's parent, which will be the containing node when the selection
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "188.9.5";
2
+ export const version = "188.10.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -19,12 +19,9 @@ export var updateInlineCommentResolvedState = function updateInlineCommentResolv
19
19
  }
20
20
  return createCommand(command);
21
21
  };
22
- export var closeComponent = function closeComponent(state) {
22
+ export var closeComponent = function closeComponent() {
23
23
  return createCommand({
24
- type: ACTIONS.CLOSE_COMPONENT,
25
- data: {
26
- lastClosedPos: state.selection.$head.pos
27
- }
24
+ type: ACTIONS.CLOSE_COMPONENT
28
25
  });
29
26
  };
30
27
  export var clearDirtyMark = function clearDirtyMark() {
@@ -149,7 +149,7 @@ export var inlineCommentPlugin = function inlineCommentPlugin(options) {
149
149
  };
150
150
  var setSelectedAnnotationFn = function setSelectedAnnotationFn(annotationId) {
151
151
  if (!annotationId) {
152
- closeComponent(editorView.state)(editorView.state, editorView.dispatch);
152
+ closeComponent()(editorView.state, editorView.dispatch);
153
153
  } else {
154
154
  setSelectedAnnotation(annotationId)(editorView.state, editorView.dispatch);
155
155
  }
@@ -14,8 +14,7 @@ export default (function (pluginState, action) {
14
14
  case ACTIONS.INLINE_COMMENT_UPDATE_MOUSE_STATE:
15
15
  var mouseData = Object.assign({}, pluginState.mouseData, action.data.mouseData);
16
16
  return _objectSpread(_objectSpread({}, pluginState), {}, {
17
- mouseData: mouseData,
18
- lastClosedPos: undefined
17
+ mouseData: mouseData
19
18
  });
20
19
  case ACTIONS.SET_INLINE_COMMENT_DRAFT_STATE:
21
20
  return getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -26,8 +25,7 @@ export default (function (pluginState, action) {
26
25
  });
27
26
  case ACTIONS.CLOSE_COMPONENT:
28
27
  return _objectSpread(_objectSpread({}, pluginState), {}, {
29
- selectedAnnotations: [],
30
- lastClosedPos: action.data.lastClosedPos
28
+ selectedAnnotations: []
31
29
  });
32
30
  case ACTIONS.ADD_INLINE_COMMENT:
33
31
  var updatedPluginState = getNewDraftState(pluginState, action.data.drafting, action.data.editorState);
@@ -38,8 +38,7 @@ export function InlineCommentView(_ref) {
38
38
  var _ref2 = inlineCommentState || {},
39
39
  bookmark = _ref2.bookmark,
40
40
  selectedAnnotations = _ref2.selectedAnnotations,
41
- annotations = _ref2.annotations,
42
- lastClosedPos = _ref2.lastClosedPos;
41
+ annotations = _ref2.annotations;
43
42
  var annotationsList = getAllAnnotations(editorView.state.doc);
44
43
  var selection = getSelectionPositions(state, inlineCommentState);
45
44
  var position = findPosForDOM(selection);
@@ -101,9 +100,7 @@ export function InlineCommentView(_ref) {
101
100
  var activeAnnotations = (selectedAnnotations === null || selectedAnnotations === void 0 ? void 0 : selectedAnnotations.filter(function (mark) {
102
101
  return annotations && annotations[mark.id] === false;
103
102
  })) || [];
104
- if (!ViewComponent || activeAnnotations.length === 0 ||
105
- // Check if the user has moved the selection since closing the previous comment
106
- editorView.state.selection.$head.pos === lastClosedPos) {
103
+ if (!ViewComponent || activeAnnotations.length === 0) {
107
104
  return null;
108
105
  }
109
106
  var onAnnotationViewed = function onAnnotationViewed() {
@@ -141,7 +138,7 @@ export function InlineCommentView(_ref) {
141
138
  return updateInlineCommentResolvedState(_defineProperty({}, id, true), RESOLVE_METHOD.COMPONENT)(editorView.state, editorView.dispatch);
142
139
  },
143
140
  onClose: function onClose() {
144
- closeComponent(editorView.state)(editorView.state, editorView.dispatch);
141
+ closeComponent()(editorView.state, editorView.dispatch);
145
142
  }
146
143
  }));
147
144
  }
@@ -19,6 +19,11 @@ export var AnnotationUpdateEmitter = /*#__PURE__*/function (_EventEmitter) {
19
19
  value: function on(event, listener) {
20
20
  return _get(_getPrototypeOf(AnnotationUpdateEmitter.prototype), "on", this).call(this, event, listener);
21
21
  }
22
+ }, {
23
+ key: "off",
24
+ value: function off(event, listener) {
25
+ return _get(_getPrototypeOf(AnnotationUpdateEmitter.prototype), "removeListener", this).call(this, event, listener);
26
+ }
22
27
  }]);
23
28
  return AnnotationUpdateEmitter;
24
29
  }(EventEmitter);
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Creates a filter that checks if the node at a given number of parents above the current
3
3
  * selection is of the correct node type.
4
+ *
4
5
  * @param nodeType The node type to compare the nth parent against
5
6
  * @param depthAway How many levels above the current node to check against. 0 refers to
6
7
  * the current selection's parent, which will be the containing node when the selection
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "188.9.5";
2
+ export var version = "188.10.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,11 +1,10 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
1
  import type { RESOLVE_METHOD } from './../../analytics/types/inline-comment-events';
3
2
  import type { Command } from '../../../types';
4
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
5
4
  import { INPUT_METHOD } from '../../analytics';
6
5
  import type { InlineCommentMap, InlineCommentMouseData } from '../pm-plugins/types';
7
6
  export declare const updateInlineCommentResolvedState: (partialNewState: InlineCommentMap, resolveMethod?: RESOLVE_METHOD) => Command;
8
- export declare const closeComponent: (state: EditorState) => Command;
7
+ export declare const closeComponent: () => Command;
9
8
  export declare const clearDirtyMark: () => Command;
10
9
  export declare const removeInlineCommentNearSelection: (id: string) => Command;
11
10
  export declare const setInlineCommentDraftState: (drafting: boolean, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT) => Command;
@@ -43,9 +43,6 @@ export type InlineCommentAction = {
43
43
  type: ACTIONS.INLINE_COMMENT_CLEAR_DIRTY_MARK;
44
44
  } | {
45
45
  type: ACTIONS.CLOSE_COMPONENT;
46
- data: {
47
- lastClosedPos: number;
48
- };
49
46
  } | {
50
47
  type: ACTIONS.ADD_INLINE_COMMENT;
51
48
  data: {
@@ -74,5 +71,4 @@ export type InlineCommentPluginState = {
74
71
  bookmark?: SelectionBookmark;
75
72
  disallowOnWhitespace: boolean;
76
73
  isVisible: boolean;
77
- lastClosedPos?: number;
78
74
  };
@@ -2,7 +2,11 @@
2
2
  import { EventEmitter } from 'events';
3
3
  export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation';
4
4
  export type VisibilityEvent = 'setvisibility';
5
+ type AnnotationCallback = (params: string) => void;
6
+ type VisibilityCallback = (params: boolean) => void;
5
7
  export declare class AnnotationUpdateEmitter extends EventEmitter {
6
8
  on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
7
9
  on(event: UpdateEvent, listener: (annotationId: string) => void): this;
10
+ off(event: string, listener: AnnotationCallback | VisibilityCallback): this;
8
11
  }
12
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { DatePlugin, DateType } from './types';
2
+ import type { DatePlugin, DateType } from '@atlaskit/editor-plugin-date';
3
3
  import type { Command, CommandDispatch, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  export declare const createDate: (isQuickInsertAction?: boolean) => (insert: (node: Node | Object | string, opts?: any) => Transaction, state: EditorState) => Transaction;
5
5
  /** Focus input */
@@ -9,7 +9,7 @@ export declare const closeDatePicker: () => Command;
9
9
  export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
10
10
  date?: DateType | undefined;
11
11
  pluginInjectionApi?: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"date", {
12
- pluginConfiguration: import("./types").DatePluginConfig | undefined;
12
+ pluginConfiguration: import("@atlaskit/editor-plugin-date").DatePluginConfig | undefined;
13
13
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
14
14
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
15
15
  sharedState: {
@@ -24,12 +24,12 @@ export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi,
24
24
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
25
25
  sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
26
26
  }, undefined>];
27
- sharedState: import("./types").DatePluginSharedState;
27
+ sharedState: import("@atlaskit/editor-plugin-date").DatePluginSharedState;
28
28
  commands: {
29
- insertDate: import("./commands").InsertDate;
29
+ insertDate: import("@atlaskit/editor-plugin-date").InsertDate;
30
30
  deleteDate: import("@atlaskit/editor-common/types").EditorCommand;
31
31
  };
32
- }, import("./types").DatePluginConfig | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
32
+ }, import("@atlaskit/editor-plugin-date").DatePluginConfig | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
33
33
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
34
34
  sharedState: {
35
35
  createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
@@ -1,17 +1,9 @@
1
- import type { TOOLBAR_MENU_TYPE, PluginInjectionAPIWithDependencies, EditorCommand, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import type { DatePlugin, DateType } from './types';
1
+ import type { PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
4
2
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- export type DeleteDate = EditorCommand;
3
+ import type { DeleteDate, InsertDate, DatePlugin } from '@atlaskit/editor-plugin-date';
6
4
  type DeleteDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[DatePlugin]> | undefined) => DeleteDate;
7
5
  /** Delete the date and close the datepicker */
8
6
  export declare const deleteDateCommand: DeleteDateCommand;
9
- export type InsertDate = (props: {
10
- date?: DateType;
11
- inputMethod?: TOOLBAR_MENU_TYPE;
12
- commitMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.KEYBOARD;
13
- enterPressed?: boolean;
14
- }) => EditorCommand;
15
7
  type InsertDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[
16
8
  OptionalPlugin<AnalyticsPlugin>,
17
9
  DatePlugin
@@ -1,2 +1 @@
1
1
  export { default as datePlugin } from './plugin';
2
- export type { DatePlugin, DatePluginSharedState, DatePluginConfig, } from './types';
@@ -1,3 +1,3 @@
1
- import type { DatePlugin } from './types';
1
+ import type { DatePlugin } from '@atlaskit/editor-plugin-date';
2
2
  declare const datePlugin: DatePlugin;
3
3
  export default datePlugin;
@@ -1,28 +1 @@
1
- import type { WeekDay } from '@atlaskit/calendar/types';
2
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
4
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import type { InsertDate, DeleteDate } from './commands';
6
- export type DateType = {
7
- year: number;
8
- month: number;
9
- day?: number;
10
- };
11
1
  export type DateSegment = 'day' | 'month' | 'year';
12
- export interface DatePluginConfig {
13
- weekStartDay?: WeekDay;
14
- }
15
- export type DatePluginSharedState = {
16
- showDatePickerAt?: number | null;
17
- isNew: boolean;
18
- focusDateInput: boolean;
19
- };
20
- export type DatePlugin = NextEditorPlugin<'date', {
21
- pluginConfiguration: DatePluginConfig | undefined;
22
- dependencies: [typeof analyticsPlugin, EditorDisabledPlugin];
23
- sharedState: DatePluginSharedState;
24
- commands: {
25
- insertDate: InsertDate;
26
- deleteDate: DeleteDate;
27
- };
28
- }>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
- import type { DateType } from '../../types';
4
+ import type { DateType } from '@atlaskit/editor-plugin-date';
5
5
  export interface InputProps {
6
6
  /** Locale code string (eg. "en-AU") */
7
7
  locale: string;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import type { WeekDay } from '@atlaskit/calendar/types';
4
- import type { DateType } from '../../types';
4
+ import type { DateType } from '@atlaskit/editor-plugin-date';
5
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
7
7
  import type { WrappedComponentProps } from 'react-intl-next';
@@ -1,4 +1,4 @@
1
- import { DateType } from '../types';
1
+ import type { DateType } from '@atlaskit/editor-plugin-date';
2
2
  /**
3
3
  * Attempt to parse a string representing a date in a particular locale to a date object
4
4
  * @param dateString The string representing the date in the given locale, eg '02/12/2000'
@@ -1,5 +1,5 @@
1
- import type { DateType } from '../types';
2
1
  import type { DateSegment } from '../types';
2
+ import type { DateType } from '@atlaskit/editor-plugin-date';
3
3
  /**
4
4
  * Inconclusively check if a date string is valid - a value of false means it is definitely
5
5
  * invalid, a value of true means it might be valid.
@@ -1,7 +1,7 @@
1
1
  import type { OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
3
3
  import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
4
- import type { DatePlugin } from '../date';
4
+ import type { DatePlugin } from '@atlaskit/editor-plugin-date';
5
5
  import type { tablesPlugin } from '@atlaskit/editor-plugin-table';
6
6
  import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
7
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
@@ -1,5 +1,5 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { DatePluginSharedState } from '../../date';
2
+ import type { DatePluginSharedState } from '@atlaskit/editor-plugin-date';
3
3
  import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
4
4
  import type { StatusState } from '@atlaskit/editor-plugin-status';
5
5
  type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
@@ -16,7 +16,7 @@ import type { AnnotationProviders } from '../plugins/annotation/types';
16
16
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
17
17
  import type { CodeBlockOptions } from '../plugins/code-block/types';
18
18
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
19
- import type { DatePluginConfig } from '../plugins/date';
19
+ import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
20
20
  import type { FindReplaceOptions } from '../plugins/find-replace/types';
21
21
  import type { LayoutPluginOptions } from '../plugins/layout/types';
22
22
  import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
@@ -3,7 +3,7 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
3
3
  export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
4
4
  theme?: any;
5
5
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
6
- } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "className" | "onClick" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "start" | "size" | "wrap" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "target" | "useMap" | "wmode" | keyof {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "media" | "list" | "mediaGroup" | "size" | "hidden" | "href" | "id" | "start" | "accessKey" | "as" | "css" | "step" | "wrap" | "preload" | "className" | "onClick" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof {
7
7
  theme?: any;
8
8
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
9
9
  }> & import("react").RefAttributes<HTMLDivElement>>;
@@ -18,5 +18,5 @@ type Props = {
18
18
  isLoading?: boolean;
19
19
  featureFlags?: FeatureFlags;
20
20
  } & WithAnalyticsEventsProps;
21
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "autoSaveReject" | "onChange" | "isLoading" | "fields" | "parameters" | "featureFlags" | "autoSave" | "analyticsContext" | "onCancel" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
21
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "autoSaveReject" | "onChange" | "isLoading" | "fields" | "parameters" | "onCancel" | "featureFlags" | "autoSave" | "analyticsContext" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
22
22
  export default _default;