@atlaskit/editor-core 193.0.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 (90) hide show
  1. package/CHANGELOG.md +10 -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/index.js +2 -2
  7. package/dist/cjs/editor.js +1 -1
  8. package/dist/cjs/messages.js +2 -2
  9. package/dist/cjs/nodeviews/context-adapter.js +1 -1
  10. package/dist/cjs/presets/context.js +2 -2
  11. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +1 -1
  12. package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
  13. package/dist/cjs/ui/Appearance/Chromeless.js +3 -3
  14. package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -5
  15. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +16 -5
  16. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
  17. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
  18. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  19. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -4
  20. package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -2
  21. package/dist/cjs/ui/ChromeCollapsed/index.js +3 -3
  22. package/dist/cjs/ui/CollapsedEditor/index.js +1 -1
  23. package/dist/cjs/ui/ContentStyles/expand.js +6 -3
  24. package/dist/cjs/ui/ContentStyles/extension.js +1 -1
  25. package/dist/cjs/ui/ContentStyles/index.js +19 -5
  26. package/dist/cjs/ui/ContentStyles/media.js +1 -0
  27. package/dist/cjs/ui/ContentStyles/panel.js +1 -0
  28. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -0
  29. package/dist/cjs/ui/ContextPanel/index.js +3 -3
  30. package/dist/cjs/ui/EditorContext/index.js +1 -1
  31. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  32. package/dist/cjs/ui/PluginSlot/index.js +1 -1
  33. package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
  34. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
  35. package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
  36. package/dist/cjs/ui/WithEditorActions/index.js +1 -1
  37. package/dist/cjs/ui/WithFlash/index.js +28 -8
  38. package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
  39. package/dist/cjs/utils/performance/instrumented-plugin.js +1 -1
  40. package/dist/cjs/version-wrapper.js +1 -1
  41. package/dist/es2019/create-editor/ReactEditorView.js +0 -1
  42. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  43. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +24 -15
  44. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -4
  45. package/dist/es2019/ui/AppearanceComponents/Mobile.js +2 -0
  46. package/dist/es2019/ui/ContentStyles/expand.js +4 -3
  47. package/dist/es2019/ui/ContentStyles/extension.js +1 -1
  48. package/dist/es2019/ui/ContentStyles/index.js +13 -13
  49. package/dist/es2019/ui/ContentStyles/media.js +1 -0
  50. package/dist/es2019/ui/ContentStyles/panel.js +1 -0
  51. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -0
  52. package/dist/es2019/ui/WithFlash/index.js +29 -32
  53. package/dist/es2019/version-wrapper.js +1 -1
  54. package/dist/esm/CollapsedEditor/index.js +1 -1
  55. package/dist/esm/EditorWithActions/index.js +1 -1
  56. package/dist/esm/create-editor/ErrorBoundary.js +1 -1
  57. package/dist/esm/create-editor/ReactEditorView.js +1 -1
  58. package/dist/esm/editor.js +1 -1
  59. package/dist/esm/nodeviews/context-adapter.js +1 -1
  60. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +1 -1
  61. package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
  62. package/dist/esm/ui/Appearance/Chromeless.js +1 -1
  63. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -4
  64. package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -3
  65. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -4
  66. package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -0
  67. package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
  68. package/dist/esm/ui/CollapsedEditor/index.js +1 -1
  69. package/dist/esm/ui/ContentStyles/expand.js +6 -3
  70. package/dist/esm/ui/ContentStyles/extension.js +1 -1
  71. package/dist/esm/ui/ContentStyles/index.js +17 -3
  72. package/dist/esm/ui/ContentStyles/media.js +1 -0
  73. package/dist/esm/ui/ContentStyles/panel.js +1 -0
  74. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -0
  75. package/dist/esm/ui/ContextPanel/index.js +1 -1
  76. package/dist/esm/ui/EditorContext/index.js +1 -1
  77. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  78. package/dist/esm/ui/PluginSlot/index.js +1 -1
  79. package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
  80. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  81. package/dist/esm/ui/WithEditorActions/index.js +1 -1
  82. package/dist/esm/ui/WithFlash/index.js +28 -7
  83. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  84. package/dist/esm/utils/performance/instrumented-plugin.js +1 -1
  85. package/dist/esm/version-wrapper.js +1 -1
  86. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  87. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  88. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  89. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  90. package/package.json +9 -5
@@ -10,6 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _panel = require("@atlaskit/editor-common/panel");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _templateObject;
13
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
13
14
  var panelStyles = exports.panelStyles = function panelStyles() {
14
15
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n cursor: pointer;\n\n /* Danger when top level node */\n &.danger {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", " !important;\n\n .", " {\n color: ", " !important;\n }\n }\n }\n\n .", " {\n cursor: text;\n }\n\n /* Danger when nested node */\n .danger .", " {\n &[data-panel-type] {\n background-color: ", ";\n\n .", " {\n color: ", ";\n }\n }\n }\n\n ", ";\n }\n\n .", ".", ":not(.danger) {\n ", "\n }\n"])), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), _panel.PanelSharedCssClassName.content, _panel.PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), (0, _panel.panelSharedStyles)(), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]));
15
16
  };
@@ -10,4 +10,5 @@ var _react = require("@emotion/react");
10
10
  var _styles = require("@atlaskit/editor-common/styles");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _templateObject;
13
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to `getSelectionStyles`
13
14
  var taskDecisionStyles = exports.taskDecisionStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-decision-wrapper] {\n cursor: pointer;\n }\n\n .", " > [data-decision-wrapper],\n ol[data-node-type='decisionList'].", " {\n border-radius: 4px;\n ", "\n }\n\n .danger {\n .", ".", "\n > div {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n &::after {\n content: none; /* reset the Blanket selection style */\n }\n }\n }\n"])), _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), _styles.TaskDecisionSharedCssClassName.DECISION_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"));
@@ -32,12 +32,12 @@ var _WithPluginState = _interopRequireDefault(require("../WithPluginState"));
32
32
  var _excluded = ["actions"];
33
33
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
34
34
  /** @jsx jsx */
35
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
36
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
37
37
  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; }
38
38
  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) { (0, _defineProperty2.default)(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; }
39
39
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
40
- 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; } }
40
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
41
41
  var ANIM_SPEED_MS = 500;
42
42
  var EDITOR_WIDTH = _editorSharedStyles.akEditorDefaultLayoutWidth + _editorSharedStyles.akEditorBreakoutPadding;
43
43
  var WIDE_EDITOR_WIDTH = _editorSharedStyles.akEditorWideLayoutWidth + _editorSharedStyles.akEditorBreakoutPadding;
@@ -16,7 +16,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
16
16
  var _actions = _interopRequireDefault(require("../../actions"));
17
17
  var _context = require("../../presets/context");
18
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
19
- 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; } }
19
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
20
  var EditorContext = /*#__PURE__*/_react.default.createContext({});
21
21
  var useEditorContext = exports.useEditorContext = function useEditorContext() {
22
22
  return _react.default.useContext(EditorContext);
@@ -16,7 +16,7 @@ var _react = _interopRequireDefault(require("react"));
16
16
  var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _monitoring = require("@atlaskit/editor-common/monitoring");
18
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
19
- 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; } }
19
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
20
  var ErrorBoundary = exports.ErrorBoundary = /*#__PURE__*/function (_React$Component) {
21
21
  (0, _inherits2.default)(ErrorBoundary, _React$Component);
22
22
  var _super = _createSuper(ErrorBoundary);
@@ -22,7 +22,7 @@ var _mountPluginHooks = require("./mount-plugin-hooks");
22
22
  var _templateObject;
23
23
  /** @jsx jsx */
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
- 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; } }
25
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
26
  var pluginsComponentsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n"])));
27
27
  var PluginSlot = exports.default = /*#__PURE__*/function (_React$Component) {
28
28
  (0, _inherits2.default)(PluginSlot, _React$Component);
@@ -17,7 +17,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
17
  var _templateObject;
18
18
  /** @jsx jsx */
19
19
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
20
- 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; } }
20
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
21
  var toolbarComponentsWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n\n @media (max-width: ", "px) {\n justify-content: space-between;\n }\n"])), _editorSharedStyles.akEditorMobileMaxWidth);
22
22
  var ToolbarInner = exports.ToolbarInner = /*#__PURE__*/function (_React$Component) {
23
23
  (0, _inherits2.default)(ToolbarInner, _React$Component);
@@ -18,8 +18,8 @@ var _hooks = require("./hooks");
18
18
  var _Toolbar = require("./Toolbar");
19
19
  var _toolbarSize = require("./toolbar-size");
20
20
  var _types = require("./types");
21
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  /** @jsx jsx */
24
24
 
25
25
  var toolbar = (0, _react2.css)((0, _defineProperty2.default)({
@@ -34,7 +34,7 @@ var _styles = require("./styles");
34
34
  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; }
35
35
  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) { (0, _defineProperty2.default)(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; }
36
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
37
- 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; } } /** @jsx jsx */
37
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
38
38
  var PopupWithOutsideListeners = (0, _withOuterListeners.default)(_ui.Popup);
39
39
  var POPUP_HEIGHT = 388;
40
40
  var POPUP_WIDTH = 280;
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
18
- 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; } }
18
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
19
  var WithEditorActions = exports.default = /*#__PURE__*/function (_React$Component) {
20
20
  (0, _inherits2.default)(WithEditorActions, _React$Component);
21
21
  var _super = _createSuper(WithEditorActions);
@@ -12,18 +12,38 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
12
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
16
15
  var _react = _interopRequireDefault(require("react"));
17
16
  var _react2 = require("@emotion/react");
18
17
  var _colors = require("@atlaskit/theme/colors");
19
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
20
- /** @jsx jsx */
21
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
22
- 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; } }
23
- var pulseBackground = (0, _react2.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"));
24
- var pulseBackgroundReverse = (0, _react2.keyframes)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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(_colors.R100, ")"), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"));
25
- var flashWrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n &.-flash > div {\n animation: 0.25s ease-in-out ", ";\n }\n\n & > div {\n animation: 'none';\n }\n"])), pulseBackgroundReverse);
26
- var flashWrapperAnimated = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n & > div {\n animation: 0.25s ease-in-out ", ";\n }\n"])), flashWrapper, pulseBackground);
19
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
20
+ var pulseBackground = (0, _react2.keyframes)({
21
+ '50%': {
22
+ backgroundColor: "var(--ds-blanket-danger, ".concat(_colors.R100, ")")
23
+ }
24
+ });
25
+ var pulseBackgroundReverse = (0, _react2.keyframes)({
26
+ '0%': {
27
+ backgroundColor: "var(--ds-blanket-danger, ".concat(_colors.R100, ")")
28
+ },
29
+ '50%': {
30
+ backgroundColor: 'auto'
31
+ },
32
+ '100%': {
33
+ backgroundColor: "var(--ds-blanket-danger, ".concat(_colors.R100, ")")
34
+ }
35
+ });
36
+ var flashWrapper = (0, _react2.css)({
37
+ '&.-flash > div': {
38
+ animation: "0.25s ease-in-out ".concat(pulseBackgroundReverse)
39
+ },
40
+ '& > div': {
41
+ animation: "'none'"
42
+ }
43
+ });
44
+ var flashWrapperAnimated = (0, _react2.css)((0, _defineProperty2.default)({}, "".concat(flashWrapper, " & > div"), {
45
+ animation: "0.25s ease-in-out ".concat(pulseBackground)
46
+ }));
27
47
  var WithFlash = exports.default = /*#__PURE__*/function (_React$Component) {
28
48
  (0, _inherits2.default)(WithFlash, _React$Component);
29
49
  var _super = _createSuper(WithFlash);
@@ -19,7 +19,7 @@ var _utils = require("@atlaskit/editor-common/utils");
19
19
  var _helpDialog = require("@atlaskit/editor-plugins/help-dialog");
20
20
  var _eventDispatcher = require("../../event-dispatcher");
21
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
22
- 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; } }
22
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
23
  var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component) {
24
24
  (0, _inherits2.default)(WithHelpTrigger, _React$Component);
25
25
  var _super = _createSuper(WithHelpTrigger);
@@ -15,7 +15,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _saferTransactions = require("./safer-transactions");
17
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
18
- 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; } }
18
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
19
  var InstrumentedPlugin = exports.InstrumentedPlugin = /*#__PURE__*/function (_SafePlugin) {
20
20
  (0, _inherits2.default)(InstrumentedPlugin, _SafePlugin);
21
21
  var _super = _createSuper(InstrumentedPlugin);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "193.0.0";
8
+ var version = exports.version = "193.1.0";
@@ -707,7 +707,6 @@ export class ReactEditorView extends React.Component {
707
707
  this.eventDispatcher.destroy();
708
708
  // this.view will be destroyed when React unmounts in handleEditorViewRef
709
709
  }
710
-
711
710
  // Helper to allow tests to inject plugins directly
712
711
  getPlugins(preset) {
713
712
  const plugins = createPluginsList(preset, this.props.editorProps, this.pluginInjectionAPI);
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
3
2
  /** @jsx jsx */
4
3
  import React, { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
5
4
  import { css, jsx } from '@emotion/react';
@@ -48,8 +47,8 @@ const ContentArea = createEditorContentStyle(css({
48
47
  margin: "var(--ds-space-150, 12px)"
49
48
  },
50
49
  '.gridParent': {
51
- marginLeft: `${CommentEditorMargin - GRID_GUTTER}px`,
52
- marginRight: `${CommentEditorMargin - GRID_GUTTER}px`,
50
+ marginLeft: "var(--ds-space-025, 2px)",
51
+ marginRight: "var(--ds-space-025, 2px)",
53
52
  width: `calc(100% + ${CommentEditorMargin - GRID_GUTTER}px)`
54
53
  },
55
54
  padding: "var(--ds-space-250, 20px)"
@@ -5,6 +5,8 @@ import React, { useEffect, useState } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import { akEditorMenuZIndex, akEditorToolbarKeylineHeight } from '@atlaskit/editor-shared-styles';
7
7
  const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
8
+
9
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
8
10
  const mainToolbarWrapperStyle = (isTwoLineEditorToolbar = false) => css`
9
11
  position: relative;
10
12
  align-items: center;
@@ -44,6 +46,8 @@ const mainToolbarWrapperStyle = (isTwoLineEditorToolbar = false) => css`
44
46
  padding-left: 0;
45
47
  }
46
48
  `;
49
+
50
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
47
51
  const stickyToolbarWrapperStyle = css`
48
52
  /* stylelint-disable declaration-block-no-duplicate-properties */
49
53
  position: relative;
@@ -72,9 +76,12 @@ const StickyToolbar = props => {
72
76
  }
73
77
  }, [props.externalToolbarRef, props.offsetTop]);
74
78
  return jsx("div", {
75
- css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle, css`
76
- top: ${top}px;
77
- `],
79
+ css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle]
80
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
81
+ ,
82
+ style: {
83
+ top: `${top}px`
84
+ },
78
85
  "data-testid": "ak-editor-main-toolbar",
79
86
  className: 'show-keyline'
80
87
  }, props.children);
@@ -125,21 +132,23 @@ export const MainToolbar = ({
125
132
  twoLineEditorToolbar: twoLineEditorToolbar
126
133
  }, children);
127
134
  };
128
- export const mainToolbarCustomComponentsSlotStyle = (isTwoLineEditorToolbar = false) => css`
129
- display: flex;
130
- justify-content: flex-end;
131
- align-items: center;
132
- flex-grow: 1;
133
- padding-right: ${"var(--ds-space-250, 20px)"};
134
- ${isTwoLineEditorToolbar && `
135
+ export const mainToolbarCustomComponentsSlotStyle = (isTwoLineEditorToolbar = false) =>
136
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
137
+ css`
138
+ display: flex;
139
+ justify-content: flex-end;
140
+ align-items: center;
141
+ flex-grow: 1;
142
+ padding-right: ${"var(--ds-space-250, 20px)"};
143
+ > div {
144
+ display: flex;
145
+ flex-shrink: 0;
146
+ }
147
+ ${isTwoLineEditorToolbar && `
135
148
  @media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px) {
136
149
  {
137
150
  padding-right: 0;
138
151
  }
139
152
  }
140
153
  `}
141
- > div {
142
- display: flex;
143
- flex-shrink: 0;
144
- }
145
- `;
154
+ `;
@@ -96,10 +96,8 @@ const editorContentAreaWithLayoutWith = layoutMaxWidth => css({
96
96
  });
97
97
  const editorContentArea = css({
98
98
  lineHeight: '24px',
99
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
100
- paddingTop: '50px',
101
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
102
- paddingBottom: '55px',
99
+ paddingTop: "var(--ds-space-600, 48px)",
100
+ paddingBottom: "var(--ds-space-600, 48px)",
103
101
  height: 'calc( 100% - 105px )',
104
102
  width: '100%',
105
103
  margin: 'auto',
@@ -9,7 +9,9 @@ import WithFlash from '../WithFlash';
9
9
 
10
10
  // Only mobile bridge is using this appearance. We have some plans to decouple the appearances from editor-core. So it doesn't make sense to move this plugin to a separated package for now.
11
11
  // Copied packages/editor/editor-mobile-bridge/src/editor/editor-plugins/mobile-dimensions/index.ts
12
+
12
13
  // Copied from packages/editor/editor-mobile-bridge/src/editor/editor-plugins/mobile-dimensions/types.ts
14
+
13
15
  const mobileEditor = css`
14
16
  min-height: 30px;
15
17
  width: 100%;
@@ -5,13 +5,14 @@ import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
5
5
  import { akEditorSelectedNodeClassName, akLayoutGutterOffset, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  import { N100A, N40A, N50A, R300, R50 } from '@atlaskit/theme/colors';
7
7
  const EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
8
- const EXPAND_ICON_COLOR = () => css`
9
- color: ${`var(--ds-icon-subtle, ${N100A})`};
10
- `;
8
+ const EXPAND_ICON_COLOR = () => css({
9
+ color: `var(--ds-icon-subtle, ${N100A})`
10
+ });
11
11
  const DANGER_STATE_BACKGROUND_COLOR = `var(--ds-background-danger, ${R50})`;
12
12
  const DANGER_STATE_BORDER_COLOR = `var(--ds-border-danger, ${R300})`;
13
13
 
14
14
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
15
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
15
16
  export const expandStyles = () => css`
16
17
  .${expandClassNames.icon} > div {
17
18
  display: flex;
@@ -1,6 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
3
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
3
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
4
4
  export const extensionStyles = css`
5
5
  .multiBodiedExtensionView-content-wrap {
6
6
  &.danger > span > .multiBodiedExtension--container {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Requires manual remediation over time due to use of unsafe nested mixins */
1
2
  /** @jsx jsx */
2
3
  import React, { useMemo } from 'react';
3
4
  import { css, jsx, useTheme } from '@emotion/react';
@@ -119,21 +120,20 @@ const emojiStyles = css`
119
120
  }
120
121
  }
121
122
  `;
122
- export const placeholderStyles = css`
123
- .ProseMirror .placeholder-decoration {
124
- color: ${`var(--ds-text-subtlest, ${N200})`};
125
- width: 100%;
126
- pointer-events: none;
127
- user-select: none;
128
-
129
- .placeholder-android {
130
- pointer-events: none;
131
- outline: none;
132
- user-select: none;
133
- position: absolute;
123
+ export const placeholderStyles = css({
124
+ '.ProseMirror .placeholder-decoration': {
125
+ color: `var(--ds-text-subtlest, ${N200})`,
126
+ width: '100%',
127
+ pointerEvents: 'none',
128
+ userSelect: 'none',
129
+ '.placeholder-android': {
130
+ pointerEvents: 'none',
131
+ outline: 'none',
132
+ userSelect: 'none',
133
+ position: 'absolute'
134
134
  }
135
135
  }
136
- `;
136
+ });
137
137
  const contentStyles = props => css`
138
138
  .ProseMirror {
139
139
  outline: none;
@@ -4,6 +4,7 @@ import { mediaSingleSharedStyle, richMediaClassName } from '@atlaskit/editor-com
4
4
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorSelectedBorderBoldSize, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
5
5
  import { fileCardImageViewSelector, inlinePlayerClassName, newFileExperienceClassName } from '@atlaskit/media-card';
6
6
  import { B200, N60, Y500 } from '@atlaskit/theme/colors';
7
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
7
8
  export const mediaStyles = css`
8
9
  .ProseMirror {
9
10
  ${mediaSingleSharedStyle} & [layout='full-width'] .${richMediaClassName},
@@ -1,6 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { PanelSharedCssClassName, panelSharedStyles } from '@atlaskit/editor-common/panel';
3
3
  import { akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorDeleteIconColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
4
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
4
5
  export const panelStyles = () => css`
5
6
  .ProseMirror {
6
7
  .${PanelSharedCssClassName.prefix} {
@@ -1,6 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
4
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to `getSelectionStyles`
4
5
  export const taskDecisionStyles = css`
5
6
  [data-decision-wrapper] {
6
7
  cursor: pointer;
@@ -3,38 +3,35 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
4
  import { css, jsx, keyframes } from '@emotion/react';
5
5
  import { R100 } from '@atlaskit/theme/colors';
6
- const pulseBackground = keyframes`
7
- 50% {
8
- background-color: ${`var(--ds-blanket-danger, ${R100})`};
9
- }
10
- `;
11
- const pulseBackgroundReverse = keyframes`
12
- 0% {
13
- background-color: ${`var(--ds-blanket-danger, ${R100})`};
14
- }
15
- 50% {
16
- background-color: auto;
17
- }
18
- 100% {
19
- background-color: ${`var(--ds-blanket-danger, ${R100})`};
20
- }
21
- `;
22
- const flashWrapper = css`
23
- &.-flash > div {
24
- animation: 0.25s ease-in-out ${pulseBackgroundReverse};
25
- }
26
-
27
- & > div {
28
- animation: 'none';
29
- }
30
- `;
31
- const flashWrapperAnimated = css`
32
- ${flashWrapper}
33
-
34
- & > div {
35
- animation: 0.25s ease-in-out ${pulseBackground};
36
- }
37
- `;
6
+ const pulseBackground = keyframes({
7
+ '50%': {
8
+ backgroundColor: `var(--ds-blanket-danger, ${R100})`
9
+ }
10
+ });
11
+ const pulseBackgroundReverse = keyframes({
12
+ '0%': {
13
+ backgroundColor: `var(--ds-blanket-danger, ${R100})`
14
+ },
15
+ '50%': {
16
+ backgroundColor: 'auto'
17
+ },
18
+ '100%': {
19
+ backgroundColor: `var(--ds-blanket-danger, ${R100})`
20
+ }
21
+ });
22
+ const flashWrapper = css({
23
+ '&.-flash > div': {
24
+ animation: `0.25s ease-in-out ${pulseBackgroundReverse}`
25
+ },
26
+ '& > div': {
27
+ animation: "'none'"
28
+ }
29
+ });
30
+ const flashWrapperAnimated = css({
31
+ [`${flashWrapper} & > div`]: {
32
+ animation: `0.25s ease-in-out ${pulseBackground}`
33
+ }
34
+ });
38
35
  export default class WithFlash extends React.Component {
39
36
  constructor(...args) {
40
37
  super(...args);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.0.0";
2
+ export const version = "193.1.0";
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _excluded = ["Editor"];
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
  import React from 'react';
13
13
  import ChromeCollapsed from '../ui/ChromeCollapsed';
14
14
  var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- 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; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import PropTypes from 'prop-types';
13
13
  import Editor from '../editor';
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  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; }
11
11
  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; }
12
12
  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); }; }
13
- 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; } }
13
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
14
  import React from 'react';
15
15
  import uuid from 'uuid';
16
16
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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; }
10
10
  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; }
11
11
  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); }; }
12
- 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; } }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import React from 'react';
14
14
  import PropTypes from 'prop-types';
15
15
  import { injectIntl } from 'react-intl-next';
@@ -6,7 +6,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  import _extends from "@babel/runtime/helpers/extends";
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 { 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
  import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
@@ -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';