@atlaskit/editor-core 192.7.0 → 193.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.
Files changed (120) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/CollapsedEditor/index.js +3 -3
  3. package/dist/cjs/EditorWithActions/index.js +1 -1
  4. package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
  5. package/dist/cjs/create-editor/ReactEditorView.js +1 -1
  6. package/dist/cjs/create-editor/create-plugins-list.js +0 -1
  7. package/dist/cjs/create-editor/index.js +2 -2
  8. package/dist/cjs/editor.js +1 -1
  9. package/dist/cjs/messages.js +2 -2
  10. package/dist/cjs/nodeviews/context-adapter.js +1 -1
  11. package/dist/cjs/preset-universal.js +8 -1
  12. package/dist/cjs/presets/context.js +2 -2
  13. package/dist/cjs/presets/default.js +1 -2
  14. package/dist/cjs/presets/universal.js +1 -1
  15. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -3
  16. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -3
  17. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +1 -1
  18. package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
  19. package/dist/cjs/ui/Appearance/Chromeless.js +3 -3
  20. package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -5
  21. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +16 -5
  22. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
  23. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
  24. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  25. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -4
  26. package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -2
  27. package/dist/cjs/ui/ChromeCollapsed/index.js +3 -3
  28. package/dist/cjs/ui/CollapsedEditor/index.js +1 -1
  29. package/dist/cjs/ui/ContentStyles/expand.js +6 -3
  30. package/dist/cjs/ui/ContentStyles/extension.js +1 -1
  31. package/dist/cjs/ui/ContentStyles/index.js +19 -5
  32. package/dist/cjs/ui/ContentStyles/media.js +1 -0
  33. package/dist/cjs/ui/ContentStyles/panel.js +1 -0
  34. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -0
  35. package/dist/cjs/ui/ContextPanel/index.js +3 -3
  36. package/dist/cjs/ui/EditorContext/index.js +1 -1
  37. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  38. package/dist/cjs/ui/PluginSlot/index.js +1 -1
  39. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
  40. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  41. package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
  42. package/dist/cjs/ui/WithEditorActions/index.js +1 -1
  43. package/dist/cjs/ui/WithFlash/index.js +28 -8
  44. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
  45. package/dist/cjs/utils/performance/instrumented-plugin.js +1 -1
  46. package/dist/cjs/version-wrapper.js +1 -1
  47. package/dist/es2019/create-editor/ReactEditorView.js +0 -1
  48. package/dist/es2019/create-editor/create-plugins-list.js +0 -1
  49. package/dist/es2019/preset-universal.js +2 -1
  50. package/dist/es2019/presets/default.js +1 -2
  51. package/dist/es2019/presets/universal.js +1 -1
  52. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +4 -4
  53. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -3
  54. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  55. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +24 -15
  56. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -4
  57. package/dist/es2019/ui/AppearanceComponents/Mobile.js +2 -0
  58. package/dist/es2019/ui/ContentStyles/expand.js +4 -3
  59. package/dist/es2019/ui/ContentStyles/extension.js +1 -1
  60. package/dist/es2019/ui/ContentStyles/index.js +13 -13
  61. package/dist/es2019/ui/ContentStyles/media.js +1 -0
  62. package/dist/es2019/ui/ContentStyles/panel.js +1 -0
  63. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -0
  64. package/dist/es2019/ui/WithFlash/index.js +29 -32
  65. package/dist/es2019/version-wrapper.js +1 -1
  66. package/dist/esm/CollapsedEditor/index.js +1 -1
  67. package/dist/esm/EditorWithActions/index.js +1 -1
  68. package/dist/esm/create-editor/ErrorBoundary.js +1 -1
  69. package/dist/esm/create-editor/ReactEditorView.js +1 -1
  70. package/dist/esm/create-editor/create-plugins-list.js +0 -1
  71. package/dist/esm/editor.js +1 -1
  72. package/dist/esm/nodeviews/context-adapter.js +1 -1
  73. package/dist/esm/preset-universal.js +2 -1
  74. package/dist/esm/presets/default.js +1 -2
  75. package/dist/esm/presets/universal.js +1 -1
  76. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +4 -3
  77. package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -3
  78. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +1 -1
  79. package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
  80. package/dist/esm/ui/Appearance/Chromeless.js +1 -1
  81. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -4
  82. package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -3
  83. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -4
  84. package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -0
  85. package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
  86. package/dist/esm/ui/CollapsedEditor/index.js +1 -1
  87. package/dist/esm/ui/ContentStyles/expand.js +6 -3
  88. package/dist/esm/ui/ContentStyles/extension.js +1 -1
  89. package/dist/esm/ui/ContentStyles/index.js +17 -3
  90. package/dist/esm/ui/ContentStyles/media.js +1 -0
  91. package/dist/esm/ui/ContentStyles/panel.js +1 -0
  92. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -0
  93. package/dist/esm/ui/ContextPanel/index.js +1 -1
  94. package/dist/esm/ui/EditorContext/index.js +1 -1
  95. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  96. package/dist/esm/ui/PluginSlot/index.js +1 -1
  97. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
  98. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  99. package/dist/esm/ui/WithEditorActions/index.js +1 -1
  100. package/dist/esm/ui/WithFlash/index.js +28 -7
  101. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  102. package/dist/esm/utils/performance/instrumented-plugin.js +1 -1
  103. package/dist/esm/version-wrapper.js +1 -1
  104. package/dist/types/create-editor/create-preset.d.ts +70 -70
  105. package/dist/types/preset-universal.d.ts +1 -0
  106. package/dist/types/presets/default.d.ts +28 -164
  107. package/dist/types/presets/universal.d.ts +70 -70
  108. package/dist/types/presets/useUniversalPreset.d.ts +70 -70
  109. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  110. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  111. package/dist/types-ts4.5/create-editor/create-preset.d.ts +82 -82
  112. package/dist/types-ts4.5/preset-universal.d.ts +1 -0
  113. package/dist/types-ts4.5/presets/default.d.ts +24 -190
  114. package/dist/types-ts4.5/presets/universal.d.ts +82 -82
  115. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +82 -82
  116. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  117. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  118. package/docs/4-annotations.tsx +1 -1
  119. package/package.json +25 -8
  120. package/docs/editor-use-only.tsx +0 -50
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
12
12
  import { logException } from '@atlaskit/editor-common/monitoring';
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
9
9
  var _templateObject;
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  /** @jsx jsx */
13
13
  import React from 'react';
14
14
  import { css, jsx } from '@emotion/react';
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
7
7
  var _templateObject;
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /** @jsx jsx */
11
11
  import React from 'react';
12
12
  import { css, jsx } from '@emotion/react';
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
15
  /** @jsx jsx */
16
16
  import { PureComponent } from 'react';
17
17
  import { jsx } from '@emotion/react';
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  var WithEditorActions = /*#__PURE__*/function (_React$Component) {
@@ -5,18 +5,39 @@ import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
10
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
10
  /** @jsx jsx */
13
11
  import React from 'react';
14
12
  import { css, jsx, keyframes } from '@emotion/react';
15
13
  import { R100 } from '@atlaskit/theme/colors';
16
- var pulseBackground = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"));
17
- var pulseBackgroundReverse = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(R100, ")"), "var(--ds-blanket-danger, ".concat(R100, ")"));
18
- var flashWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &.-flash > div {\n animation: 0.25s ease-in-out ", ";\n }\n\n & > div {\n animation: 'none';\n }\n"])), pulseBackgroundReverse);
19
- var flashWrapperAnimated = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n\n & > div {\n animation: 0.25s ease-in-out ", ";\n }\n"])), flashWrapper, pulseBackground);
14
+ var pulseBackground = keyframes({
15
+ '50%': {
16
+ backgroundColor: "var(--ds-blanket-danger, ".concat(R100, ")")
17
+ }
18
+ });
19
+ var pulseBackgroundReverse = keyframes({
20
+ '0%': {
21
+ backgroundColor: "var(--ds-blanket-danger, ".concat(R100, ")")
22
+ },
23
+ '50%': {
24
+ backgroundColor: 'auto'
25
+ },
26
+ '100%': {
27
+ backgroundColor: "var(--ds-blanket-danger, ".concat(R100, ")")
28
+ }
29
+ });
30
+ var flashWrapper = css({
31
+ '&.-flash > div': {
32
+ animation: "0.25s ease-in-out ".concat(pulseBackgroundReverse)
33
+ },
34
+ '& > div': {
35
+ animation: "'none'"
36
+ }
37
+ });
38
+ var flashWrapperAnimated = css(_defineProperty({}, "".concat(flashWrapper, " & > div"), {
39
+ animation: "0.25s ease-in-out ".concat(pulseBackground)
40
+ }));
20
41
  var WithFlash = /*#__PURE__*/function (_React$Component) {
21
42
  _inherits(WithFlash, _React$Component);
22
43
  var _super = _createSuper(WithFlash);
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import PropTypes from 'prop-types';
12
12
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
8
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
10
10
  import { startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
11
11
  import { freezeUnsafeTransactionProperties } from './safer-transactions';
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "192.7.0";
2
+ export var version = "193.1.0";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { EditorProps } from '../types';
3
- export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/types").MaybePluginName<"loom">, "codeBidiWarning", import("@atlaskit/editor-common/types").MaybePluginName<"pasteOptionsToolbarPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
3
+ export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[import("@atlaskit/editor-common/types").MaybePluginName<"loom">, "codeBidiWarning", import("@atlaskit/editor-common/types").MaybePluginName<"pasteOptionsToolbarPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
4
4
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
5
5
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
6
6
  sharedState: {
@@ -2334,7 +2334,74 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2334
2334
  actions: {
2335
2335
  insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
2336
2336
  };
2337
- }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
2337
+ }, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
2338
+ pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
2339
+ sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
2340
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2341
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
2342
+ sharedState: {
2343
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
2344
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
2345
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
2346
+ };
2347
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2348
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2349
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2350
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2351
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2352
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2353
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2354
+ dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
2355
+ pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
2356
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2357
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2358
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2359
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2360
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
2361
+ sharedState: {
2362
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
2363
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
2364
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
2365
+ };
2366
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2367
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2368
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2369
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2370
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2371
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2372
+ sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2373
+ actions: {
2374
+ getAvatarColor: (str: string) => {
2375
+ index: number;
2376
+ color: import("@atlaskit/editor-common/collab").Color;
2377
+ };
2378
+ addInlineCommentMark: (props: {
2379
+ from: number;
2380
+ to: number;
2381
+ mark: import("prosemirror-model").Mark;
2382
+ }) => boolean;
2383
+ };
2384
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
2385
+ pluginConfiguration?: {
2386
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2387
+ } | undefined;
2388
+ commands: {
2389
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2390
+ };
2391
+ actions: {
2392
+ applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
2393
+ };
2394
+ }, {
2395
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2396
+ } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2397
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2398
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2399
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2400
+ actions: {
2401
+ stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
2402
+ setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
2403
+ };
2404
+ }, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
2338
2405
  pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
2339
2406
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
2340
2407
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
@@ -3127,74 +3194,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3127
3194
  } | undefined>>];
3128
3195
  }, {
3129
3196
  preferenceToolbarAboveSelection?: boolean | undefined;
3130
- }>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
3131
- pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
3132
- sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
3133
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3134
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
3135
- sharedState: {
3136
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
3137
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
3138
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
3139
- };
3140
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3141
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3142
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3143
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3144
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3145
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3146
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3147
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
3148
- pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
3149
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3150
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3151
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3152
- }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3153
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
3154
- sharedState: {
3155
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
3156
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
3157
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
3158
- };
3159
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3160
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3161
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3162
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3163
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3164
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3165
- sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3166
- actions: {
3167
- getAvatarColor: (str: string) => {
3168
- index: number;
3169
- color: import("@atlaskit/editor-common/collab").Color;
3170
- };
3171
- addInlineCommentMark: (props: {
3172
- from: number;
3173
- to: number;
3174
- mark: import("prosemirror-model").Mark;
3175
- }) => boolean;
3176
- };
3177
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
3178
- pluginConfiguration?: {
3179
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3180
- } | undefined;
3181
- commands: {
3182
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3183
- };
3184
- actions: {
3185
- applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
3186
- };
3187
- }, {
3188
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3189
- } | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3190
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3191
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3192
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3193
- actions: {
3194
- stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
3195
- setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
3196
- };
3197
- }, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
3197
+ }>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
3198
3198
  pluginConfiguration: import("@atlaskit/editor-plugin-block-type").BlockTypePluginOptions | undefined;
3199
3199
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3200
3200
  pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
@@ -1 +1,2 @@
1
1
  export { default as useUniversalPreset } from './presets/useUniversalPreset';
2
+ export { default as createUniversalPreset } from './presets/universal';