@atlaskit/editor-common 76.18.7 → 76.18.9

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 (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/quick-insert/assets/datasource-assets-objects.js +17 -33
  5. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +0 -2
  6. package/dist/cjs/styles/index.js +14 -1
  7. package/dist/cjs/styles/shared/breakout.js +10 -0
  8. package/dist/cjs/styles/shared/expand.js +16 -2
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -1
  11. package/dist/cjs/ui-menu/Dropdown/index.js +1 -1
  12. package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -2
  13. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/quick-insert/assets/datasource-assets-objects.js +17 -33
  16. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +0 -2
  17. package/dist/es2019/styles/index.js +3 -2
  18. package/dist/es2019/styles/shared/breakout.js +4 -0
  19. package/dist/es2019/styles/shared/expand.js +13 -1
  20. package/dist/es2019/ui/DropList/index.js +1 -1
  21. package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -1
  22. package/dist/es2019/ui-menu/Dropdown/index.js +1 -1
  23. package/dist/es2019/ui-menu/DropdownMenu/index.js +2 -2
  24. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  25. package/dist/esm/monitoring/error.js +1 -1
  26. package/dist/esm/quick-insert/assets/datasource-assets-objects.js +17 -33
  27. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +0 -2
  28. package/dist/esm/styles/index.js +3 -2
  29. package/dist/esm/styles/shared/breakout.js +4 -0
  30. package/dist/esm/styles/shared/expand.js +15 -1
  31. package/dist/esm/ui/DropList/index.js +1 -1
  32. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
  33. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  34. package/dist/esm/ui-menu/DropdownMenu/index.js +2 -2
  35. package/dist/types/analytics/linking-utils.d.ts +2 -1
  36. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +2 -2
  37. package/dist/types/styles/index.d.ts +2 -1
  38. package/dist/types/styles/shared/breakout.d.ts +4 -0
  39. package/dist/types/styles/shared/expand.d.ts +11 -0
  40. package/dist/types/types/index.d.ts +1 -1
  41. package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
  42. package/dist/types-ts4.5/analytics/linking-utils.d.ts +2 -1
  43. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +2 -2
  44. package/dist/types-ts4.5/styles/index.d.ts +2 -1
  45. package/dist/types-ts4.5/styles/shared/breakout.d.ts +4 -0
  46. package/dist/types-ts4.5/styles/shared/expand.d.ts +11 -0
  47. package/dist/types-ts4.5/types/index.d.ts +1 -1
  48. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
  49. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.18.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43004) [`534feb3059b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/534feb3059b) - [ux] Update text for /assets slash command to add "(Beta)" suffix, and change Assets slash command icon slightly
8
+ - [#42859](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42859) [`16cc82bf2e3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/16cc82bf2e3) - ED-20721 Extract Expand Plugin
9
+ - [#42937](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42937) [`c9a523f6662`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9a523f6662) - Remove internal withAnalytics function.
10
+ - [#42451](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42451) [`36764ad64a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36764ad64a9) - [ECA11Y-87] Mentioned name is not communicated to the users of screen reader
11
+
12
+ ## 76.18.8
13
+
14
+ ### Patch Changes
15
+
16
+ - [#42995](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42995) [`a527682dee6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a527682dee6) - add in missing dependencies for imported types
17
+ - Updated dependencies
18
+
3
19
  ## 76.18.7
4
20
 
5
21
  ### Patch Changes
@@ -24,8 +24,8 @@ var _debounce = _interopRequireDefault(require("lodash/debounce"));
24
24
  var _reactIntlNext = require("react-intl-next");
25
25
  var _adfSchema = require("@atlaskit/adf-schema");
26
26
  var _analyticsNext = require("@atlaskit/analytics-next");
27
- var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
28
27
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
28
+ var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
29
29
  var _colors = require("@atlaskit/theme/colors");
30
30
  var _constants = require("@atlaskit/theme/constants");
31
31
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  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; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "76.18.7";
19
+ var packageVersion = "76.18.9";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -11,44 +11,28 @@ var _react = _interopRequireDefault(require("react"));
11
11
 
12
12
  function IconDatasourceAssetsObjects() {
13
13
  return /*#__PURE__*/_react.default.createElement("svg", {
14
- width: "48",
15
- height: "48",
16
- viewBox: "0 0 48 48",
14
+ width: "42",
15
+ height: "42",
16
+ viewBox: "0 0 42 42",
17
17
  fill: "none",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
19
  }, /*#__PURE__*/_react.default.createElement("rect", {
20
- x: "0.5",
21
- y: "0.5",
22
- width: "47",
23
- height: "47",
24
- rx: "2",
25
- fill: "white"
26
- }), /*#__PURE__*/_react.default.createElement("path", {
27
- fillRule: "evenodd",
28
- clipRule: "evenodd",
29
- d: "M28.6665 18.6667C27.5619 18.6667 26.6665 19.5621 26.6665 20.6667V24.6667C26.6665 25.7713 27.5619 26.6667 28.6665 26.6667H32.6665C33.7711 26.6667 34.6665 25.7713 34.6665 24.6667V20.6667C34.6665 19.5621 33.7711 18.6667 32.6665 18.6667H28.6665ZM31.9998 21.3334H29.3331V24.0001H31.9998V21.3334Z",
30
- fill: "#42526E"
31
- }), /*#__PURE__*/_react.default.createElement("path", {
32
- fillRule: "evenodd",
33
- clipRule: "evenodd",
34
- d: "M28.6665 29.3333C27.5619 29.3333 26.6665 30.2287 26.6665 31.3333V35.3333C26.6665 36.4379 27.5619 37.3333 28.6665 37.3333H32.6665C33.7711 37.3333 34.6665 36.4379 34.6665 35.3333V31.3333C34.6665 30.2287 33.7711 29.3333 32.6665 29.3333H28.6665ZM31.9998 31.9999H29.3331V34.6666H31.9998V31.9999Z",
35
- fill: "#42526E"
20
+ x: "0",
21
+ y: "0",
22
+ width: "42",
23
+ height: "42",
24
+ fill: "var(--ds-background-accent-purple-subtlest, #F3F0FF)"
25
+ }), /*#__PURE__*/_react.default.createElement("rect", {
26
+ x: "8",
27
+ y: "8",
28
+ width: "26",
29
+ height: "26",
30
+ rx: "4",
31
+ fill: "var(--ds-background-input, white)"
36
32
  }), /*#__PURE__*/_react.default.createElement("path", {
37
33
  fillRule: "evenodd",
38
34
  clipRule: "evenodd",
39
- d: "M15.3335 10.6667C14.2289 10.6667 13.3335 11.5621 13.3335 12.6667V16.6667C13.3335 17.7713 14.2289 18.6667 15.3335 18.6667H19.3335C20.4381 18.6667 21.3335 17.7713 21.3335 16.6667V12.6667C21.3335 11.5621 20.4381 10.6667 19.3335 10.6667H15.3335ZM18.6669 13.3334H16.0002V16.0001H18.6669V13.3334Z",
40
- fill: "#42526E"
41
- }), /*#__PURE__*/_react.default.createElement("rect", {
42
- x: "16",
43
- y: "17.3333",
44
- width: "2.66667",
45
- height: "14.6667",
46
- fill: "#42526E"
47
- }), /*#__PURE__*/_react.default.createElement("path", {
48
- d: "M16 32H28V34.6667H18C16.8954 34.6667 16 33.7712 16 32.6667V32Z",
49
- fill: "#42526E"
50
- }), /*#__PURE__*/_react.default.createElement("path", {
51
- d: "M16 21.3333H28V24H18C16.8954 24 16 23.1046 16 22V21.3333Z",
52
- fill: "#42526E"
35
+ d: "M12.667 9.33317H29.3337C31.1746 9.33317 32.667 10.8256 32.667 12.6665V29.3332C32.667 31.1741 31.1746 32.6665 29.3337 32.6665H12.667C10.826 32.6665 9.33366 31.1741 9.33366 29.3332V12.6665C9.33366 10.8256 10.826 9.33317 12.667 9.33317ZM7.66699 12.6665C7.66699 9.90508 9.90557 7.6665 12.667 7.6665H29.3337C32.0951 7.6665 34.3337 9.90508 34.3337 12.6665V29.3332C34.3337 32.0946 32.0951 34.3332 29.3337 34.3332H12.667C9.90557 34.3332 7.66699 32.0946 7.66699 29.3332V12.6665ZM12.9579 13.4165C12.9579 13.0023 13.2937 12.6665 13.7079 12.6665H17.6443C18.0585 12.6665 18.3943 13.0023 18.3943 13.4165V16.9165C18.3943 17.3307 18.0585 17.6665 17.6443 17.6665H16.5823V19.3332H22.0186V18.4165C22.0186 18.0023 22.3544 17.6665 22.7686 17.6665H26.7049C27.1192 17.6665 27.4549 18.0023 27.4549 18.4165V21.9165C27.4549 22.3307 27.1192 22.6665 26.7049 22.6665H22.7686C22.3544 22.6665 22.0186 22.3307 22.0186 21.9165V20.9998H16.5823V25.9998H22.0186V25.0832C22.0186 24.669 22.3544 24.3332 22.7686 24.3332H26.7049C27.1192 24.3332 27.4549 24.669 27.4549 25.0832V28.5832C27.4549 28.9974 27.1192 29.3332 26.7049 29.3332H22.7686C22.3544 29.3332 22.0186 28.9974 22.0186 28.5832V27.6665H16.4368C15.5163 27.6665 14.7701 26.9203 14.7701 25.9998V19.3332V17.6665H13.7079C13.2937 17.6665 12.9579 17.3307 12.9579 16.9165V13.4165ZM14.7701 14.5832C14.7701 14.4451 14.882 14.3332 15.0201 14.3332H16.3322C16.4703 14.3332 16.5822 14.4451 16.5822 14.5832V15.7498C16.5822 15.8879 16.4703 15.9998 16.3322 15.9998H15.0201C14.882 15.9998 14.7701 15.8879 14.7701 15.7498V14.5832ZM24.0805 19.3332C23.9425 19.3332 23.8305 19.4451 23.8305 19.5832V20.7498C23.8305 20.8879 23.9425 20.9998 24.0805 20.9998H25.3927C25.5307 20.9998 25.6427 20.8879 25.6427 20.7498V19.5832C25.6427 19.4451 25.5307 19.3332 25.3927 19.3332H24.0805ZM24.0805 25.9998C23.9425 25.9998 23.8305 26.1118 23.8305 26.2498V27.4165C23.8305 27.5546 23.9425 27.6665 24.0805 27.6665H25.3927C25.5307 27.6665 25.6427 27.5546 25.6427 27.4165V26.2498C25.6427 26.1118 25.5307 25.9998 25.3927 25.9998H24.0805Z",
36
+ fill: "var(--ds-background-accent-gray-bolder-hovered, #44546F)"
53
37
  }));
54
38
  }
@@ -171,7 +171,6 @@ function getPortalChildren(_ref2) {
171
171
  componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : _analytics.ACTION_SUBJECT_ID.UNKNOWN_NODE,
172
172
  dispatchAnalyticsEvent: dispatchAnalyticsEvent
173
173
  }, (0, _react2.jsx)("span", {
174
- "aria-hidden": "true",
175
174
  className: "zeroWidthSpaceContainer"
176
175
  }, (0, _react2.jsx)("span", {
177
176
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
@@ -182,7 +181,6 @@ function getPortalChildren(_ref2) {
182
181
  getPos: nodeViewParams.getPos,
183
182
  node: currentNode
184
183
  }, extraComponentProps)), (0, _react2.jsx)("span", {
185
- "aria-hidden": "true",
186
184
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
187
185
  }));
188
186
  };
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "BODIED_EXT_PADDING", {
21
21
  return _extension.BODIED_EXT_PADDING;
22
22
  }
23
23
  });
24
+ Object.defineProperty(exports, "BreakoutCssClassName", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _breakout.BreakoutCssClassName;
28
+ }
29
+ });
24
30
  Object.defineProperty(exports, "CodeBlockSharedCssClassName", {
25
31
  enumerable: true,
26
32
  get: function get() {
@@ -183,6 +189,12 @@ Object.defineProperty(exports, "embedSpacingStyles", {
183
189
  return _embedCard.embedSpacingStyles;
184
190
  }
185
191
  });
192
+ Object.defineProperty(exports, "expandClassNames", {
193
+ enumerable: true,
194
+ get: function get() {
195
+ return _expand.expandClassNames;
196
+ }
197
+ });
186
198
  Object.defineProperty(exports, "expandIconWrapperStyle", {
187
199
  enumerable: true,
188
200
  get: function get() {
@@ -430,4 +442,5 @@ var _embedCard = require("./shared/embedCard");
430
442
  var _plugins = require("./shared/plugins");
431
443
  var _unsupportedContent = require("./shared/unsupported-content");
432
444
  var _expand = require("./shared/expand");
433
- var _media = require("./shared/media");
445
+ var _media = require("./shared/media");
446
+ var _breakout = require("./shared/breakout");
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.BreakoutCssClassName = void 0;
7
+ var BreakoutCssClassName = exports.BreakoutCssClassName = {
8
+ BREAKOUT_MARK: 'fabric-editor-breakout-mark',
9
+ BREAKOUT_MARK_DOM: 'fabric-editor-breakout-mark-dom'
10
+ };
@@ -4,9 +4,23 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.expandIconWrapperStyle = void 0;
7
+ exports.expandIconWrapperStyle = exports.expandClassNames = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _templateObject;
11
11
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
12
- var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
12
+ var expandIconWrapperStyle = exports.expandIconWrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
13
+ var prefix = 'ak-editor-expand';
14
+ var expandClassNames = exports.expandClassNames = {
15
+ prefix: prefix,
16
+ expanded: "".concat(prefix, "__expanded"),
17
+ titleContainer: "".concat(prefix, "__title-container"),
18
+ inputContainer: "".concat(prefix, "__input-container"),
19
+ iconContainer: "".concat(prefix, "__icon-container"),
20
+ icon: "".concat(prefix, "__icon"),
21
+ titleInput: "".concat(prefix, "__title-input"),
22
+ content: "".concat(prefix, "__content"),
23
+ type: function type(_type) {
24
+ return "".concat(prefix, "__type-").concat(_type);
25
+ }
26
+ };
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
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
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; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "76.18.7";
27
+ var packageVersion = "76.18.9";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -17,9 +17,9 @@ var _components = require("@atlaskit/theme/components");
17
17
  var _constants = require("@atlaskit/theme/constants");
18
18
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
19
19
  var _analytics = require("../../analytics");
20
- var _uiColor = require("../../ui-color");
21
20
  var _Popup = _interopRequireDefault(require("../../ui/Popup"));
22
21
  var _withOuterListeners = _interopRequireDefault(require("../../ui/with-outer-listeners"));
22
+ var _uiColor = require("../../ui-color");
23
23
  var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
24
24
  var _types = require("../ArrowKeyNavigationProvider/types");
25
25
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -15,9 +15,9 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
15
15
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
- var _uiReact = require("../../ui-react");
19
18
  var _DropList = _interopRequireDefault(require("../../ui/DropList"));
20
19
  var _Popup = _interopRequireDefault(require("../../ui/Popup"));
20
+ var _uiReact = require("../../ui-react");
21
21
  var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
22
22
  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); }
23
23
  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; }
@@ -27,10 +27,10 @@ var _colors = require("@atlaskit/theme/colors");
27
27
  var _components = require("@atlaskit/theme/components");
28
28
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
29
29
  var _styles = require("../../styles");
30
- var _ToolbarArrowKeyNavigationProvider = require("../../ui-menu/ToolbarArrowKeyNavigationProvider");
31
- var _uiReact = require("../../ui-react");
32
30
  var _DropList = _interopRequireDefault(require("../../ui/DropList"));
33
31
  var _Popup = _interopRequireDefault(require("../../ui/Popup"));
32
+ var _ToolbarArrowKeyNavigationProvider = require("../../ui-menu/ToolbarArrowKeyNavigationProvider");
33
+ var _uiReact = require("../../ui-react");
34
34
  var _ArrowKeyNavigationProvider = require("../ArrowKeyNavigationProvider");
35
35
  var _types = require("../ArrowKeyNavigationProvider/types");
36
36
  var _excluded = ["children"];
@@ -7,8 +7,8 @@ import debounce from 'lodash/debounce';
7
7
  import { defineMessages, injectIntl } from 'react-intl-next';
8
8
  import { isSafeUrl } from '@atlaskit/adf-schema';
9
9
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
10
- import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
11
10
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
11
+ import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
12
12
  import { N200, N90 } from '@atlaskit/theme/colors';
13
13
  import { fontSizeSmall } from '@atlaskit/theme/constants';
14
14
  import Tooltip from '@atlaskit/tooltip';
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "76.18.7";
3
+ const packageVersion = "76.18.9";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -3,44 +3,28 @@
3
3
  import React from 'react';
4
4
  export default function IconDatasourceAssetsObjects() {
5
5
  return /*#__PURE__*/React.createElement("svg", {
6
- width: "48",
7
- height: "48",
8
- viewBox: "0 0 48 48",
6
+ width: "42",
7
+ height: "42",
8
+ viewBox: "0 0 42 42",
9
9
  fill: "none",
10
10
  xmlns: "http://www.w3.org/2000/svg"
11
11
  }, /*#__PURE__*/React.createElement("rect", {
12
- x: "0.5",
13
- y: "0.5",
14
- width: "47",
15
- height: "47",
16
- rx: "2",
17
- fill: "white"
18
- }), /*#__PURE__*/React.createElement("path", {
19
- fillRule: "evenodd",
20
- clipRule: "evenodd",
21
- d: "M28.6665 18.6667C27.5619 18.6667 26.6665 19.5621 26.6665 20.6667V24.6667C26.6665 25.7713 27.5619 26.6667 28.6665 26.6667H32.6665C33.7711 26.6667 34.6665 25.7713 34.6665 24.6667V20.6667C34.6665 19.5621 33.7711 18.6667 32.6665 18.6667H28.6665ZM31.9998 21.3334H29.3331V24.0001H31.9998V21.3334Z",
22
- fill: "#42526E"
23
- }), /*#__PURE__*/React.createElement("path", {
24
- fillRule: "evenodd",
25
- clipRule: "evenodd",
26
- d: "M28.6665 29.3333C27.5619 29.3333 26.6665 30.2287 26.6665 31.3333V35.3333C26.6665 36.4379 27.5619 37.3333 28.6665 37.3333H32.6665C33.7711 37.3333 34.6665 36.4379 34.6665 35.3333V31.3333C34.6665 30.2287 33.7711 29.3333 32.6665 29.3333H28.6665ZM31.9998 31.9999H29.3331V34.6666H31.9998V31.9999Z",
27
- fill: "#42526E"
12
+ x: "0",
13
+ y: "0",
14
+ width: "42",
15
+ height: "42",
16
+ fill: "var(--ds-background-accent-purple-subtlest, #F3F0FF)"
17
+ }), /*#__PURE__*/React.createElement("rect", {
18
+ x: "8",
19
+ y: "8",
20
+ width: "26",
21
+ height: "26",
22
+ rx: "4",
23
+ fill: "var(--ds-background-input, white)"
28
24
  }), /*#__PURE__*/React.createElement("path", {
29
25
  fillRule: "evenodd",
30
26
  clipRule: "evenodd",
31
- d: "M15.3335 10.6667C14.2289 10.6667 13.3335 11.5621 13.3335 12.6667V16.6667C13.3335 17.7713 14.2289 18.6667 15.3335 18.6667H19.3335C20.4381 18.6667 21.3335 17.7713 21.3335 16.6667V12.6667C21.3335 11.5621 20.4381 10.6667 19.3335 10.6667H15.3335ZM18.6669 13.3334H16.0002V16.0001H18.6669V13.3334Z",
32
- fill: "#42526E"
33
- }), /*#__PURE__*/React.createElement("rect", {
34
- x: "16",
35
- y: "17.3333",
36
- width: "2.66667",
37
- height: "14.6667",
38
- fill: "#42526E"
39
- }), /*#__PURE__*/React.createElement("path", {
40
- d: "M16 32H28V34.6667H18C16.8954 34.6667 16 33.7712 16 32.6667V32Z",
41
- fill: "#42526E"
42
- }), /*#__PURE__*/React.createElement("path", {
43
- d: "M16 21.3333H28V24H18C16.8954 24 16 23.1046 16 22V21.3333Z",
44
- fill: "#42526E"
27
+ d: "M12.667 9.33317H29.3337C31.1746 9.33317 32.667 10.8256 32.667 12.6665V29.3332C32.667 31.1741 31.1746 32.6665 29.3337 32.6665H12.667C10.826 32.6665 9.33366 31.1741 9.33366 29.3332V12.6665C9.33366 10.8256 10.826 9.33317 12.667 9.33317ZM7.66699 12.6665C7.66699 9.90508 9.90557 7.6665 12.667 7.6665H29.3337C32.0951 7.6665 34.3337 9.90508 34.3337 12.6665V29.3332C34.3337 32.0946 32.0951 34.3332 29.3337 34.3332H12.667C9.90557 34.3332 7.66699 32.0946 7.66699 29.3332V12.6665ZM12.9579 13.4165C12.9579 13.0023 13.2937 12.6665 13.7079 12.6665H17.6443C18.0585 12.6665 18.3943 13.0023 18.3943 13.4165V16.9165C18.3943 17.3307 18.0585 17.6665 17.6443 17.6665H16.5823V19.3332H22.0186V18.4165C22.0186 18.0023 22.3544 17.6665 22.7686 17.6665H26.7049C27.1192 17.6665 27.4549 18.0023 27.4549 18.4165V21.9165C27.4549 22.3307 27.1192 22.6665 26.7049 22.6665H22.7686C22.3544 22.6665 22.0186 22.3307 22.0186 21.9165V20.9998H16.5823V25.9998H22.0186V25.0832C22.0186 24.669 22.3544 24.3332 22.7686 24.3332H26.7049C27.1192 24.3332 27.4549 24.669 27.4549 25.0832V28.5832C27.4549 28.9974 27.1192 29.3332 26.7049 29.3332H22.7686C22.3544 29.3332 22.0186 28.9974 22.0186 28.5832V27.6665H16.4368C15.5163 27.6665 14.7701 26.9203 14.7701 25.9998V19.3332V17.6665H13.7079C13.2937 17.6665 12.9579 17.3307 12.9579 16.9165V13.4165ZM14.7701 14.5832C14.7701 14.4451 14.882 14.3332 15.0201 14.3332H16.3322C16.4703 14.3332 16.5822 14.4451 16.5822 14.5832V15.7498C16.5822 15.8879 16.4703 15.9998 16.3322 15.9998H15.0201C14.882 15.9998 14.7701 15.8879 14.7701 15.7498V14.5832ZM24.0805 19.3332C23.9425 19.3332 23.8305 19.4451 23.8305 19.5832V20.7498C23.8305 20.8879 23.9425 20.9998 24.0805 20.9998H25.3927C25.5307 20.9998 25.6427 20.8879 25.6427 20.7498V19.5832C25.6427 19.4451 25.5307 19.3332 25.3927 19.3332H24.0805ZM24.0805 25.9998C23.9425 25.9998 23.8305 26.1118 23.8305 26.2498V27.4165C23.8305 27.5546 23.9425 27.6665 24.0805 27.6665H25.3927C25.5307 27.6665 25.6427 27.5546 25.6427 27.4165V26.2498C25.6427 26.1118 25.5307 25.9998 25.3927 25.9998H24.0805Z",
28
+ fill: "var(--ds-background-accent-gray-bolder-hovered, #44546F)"
45
29
  }));
46
30
  }
@@ -165,7 +165,6 @@ function getPortalChildren({
165
165
  componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 ? void 0 : (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : ACTION_SUBJECT_ID.UNKNOWN_NODE,
166
166
  dispatchAnalyticsEvent: dispatchAnalyticsEvent
167
167
  }, jsx("span", {
168
- "aria-hidden": "true",
169
168
  className: `zeroWidthSpaceContainer`
170
169
  }, jsx("span", {
171
170
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
@@ -176,7 +175,6 @@ function getPortalChildren({
176
175
  getPos: nodeViewParams.getPos,
177
176
  node: currentNode
178
177
  }, extraComponentProps)), jsx("span", {
179
- "aria-hidden": "true",
180
178
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
181
179
  }));
182
180
  };
@@ -28,5 +28,6 @@ export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNE
28
28
  export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
29
29
  export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles } from './shared/plugins';
30
30
  export { UnsupportedSharedCssClassName, unsupportedStyles } from './shared/unsupported-content';
31
- export { expandIconWrapperStyle } from './shared/expand';
32
- export { ClassNames as MediaSharedClassNames } from './shared/media';
31
+ export { expandIconWrapperStyle, expandClassNames } from './shared/expand';
32
+ export { ClassNames as MediaSharedClassNames } from './shared/media';
33
+ export { BreakoutCssClassName } from './shared/breakout';
@@ -0,0 +1,4 @@
1
+ export const BreakoutCssClassName = {
2
+ BREAKOUT_MARK: 'fabric-editor-breakout-mark',
3
+ BREAKOUT_MARK_DOM: 'fabric-editor-breakout-mark-dom'
4
+ };
@@ -2,4 +2,16 @@ import { css } from '@emotion/react';
2
2
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
3
3
  export const expandIconWrapperStyle = css`
4
4
  margin-left: ${"var(--ds-space-negative-100, -8px)"};
5
- `;
5
+ `;
6
+ const prefix = 'ak-editor-expand';
7
+ export const expandClassNames = {
8
+ prefix,
9
+ expanded: `${prefix}__expanded`,
10
+ titleContainer: `${prefix}__title-container`,
11
+ inputContainer: `${prefix}__input-container`,
12
+ iconContainer: `${prefix}__icon-container`,
13
+ icon: `${prefix}__icon`,
14
+ titleInput: `${prefix}__title-input`,
15
+ content: `${prefix}__content`,
16
+ type: type => `${prefix}__type-${type}`
17
+ };
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.18.7";
12
+ const packageVersion = "76.18.9";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -9,9 +9,9 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Tooltip from '@atlaskit/tooltip';
11
11
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
12
- import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
13
12
  import { default as Popup } from '../../ui/Popup';
14
13
  import { default as withOuterListeners } from '../../ui/with-outer-listeners';
14
+ import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
15
15
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
16
16
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
17
17
 
@@ -1,9 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React, { PureComponent } from 'react';
4
- import { withReactEditorViewOuterListeners } from '../../ui-react';
5
4
  import DropdownList from '../../ui/DropList';
6
5
  import Popup from '../../ui/Popup';
6
+ import { withReactEditorViewOuterListeners } from '../../ui-react';
7
7
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
8
8
  /**
9
9
  * Wrapper around @atlaskit/droplist which uses Popup and Portal to render
@@ -11,10 +11,10 @@ import { B100, DN600, DN80, N70, N900 } from '@atlaskit/theme/colors';
11
11
  import { themed } from '@atlaskit/theme/components';
12
12
  import Tooltip from '@atlaskit/tooltip';
13
13
  import { DropdownMenuSharedCssClassName } from '../../styles';
14
- import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
15
- import { withReactEditorViewOuterListeners } from '../../ui-react';
16
14
  import DropList from '../../ui/DropList';
17
15
  import Popup from '../../ui/Popup';
16
+ import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
17
+ import { withReactEditorViewOuterListeners } from '../../ui-react';
18
18
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
19
19
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
20
20
  const wrapper = css`
@@ -21,8 +21,8 @@ import debounce from 'lodash/debounce';
21
21
  import { defineMessages, injectIntl } from 'react-intl-next';
22
22
  import { isSafeUrl } from '@atlaskit/adf-schema';
23
23
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
24
- import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
25
24
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
25
+ import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
26
26
  import { N200, N90 } from '@atlaskit/theme/colors';
27
27
  import { fontSizeSmall } from '@atlaskit/theme/constants';
28
28
  import Tooltip from '@atlaskit/tooltip';
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "76.18.7";
9
+ var packageVersion = "76.18.9";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -3,44 +3,28 @@
3
3
  import React from 'react';
4
4
  export default function IconDatasourceAssetsObjects() {
5
5
  return /*#__PURE__*/React.createElement("svg", {
6
- width: "48",
7
- height: "48",
8
- viewBox: "0 0 48 48",
6
+ width: "42",
7
+ height: "42",
8
+ viewBox: "0 0 42 42",
9
9
  fill: "none",
10
10
  xmlns: "http://www.w3.org/2000/svg"
11
11
  }, /*#__PURE__*/React.createElement("rect", {
12
- x: "0.5",
13
- y: "0.5",
14
- width: "47",
15
- height: "47",
16
- rx: "2",
17
- fill: "white"
18
- }), /*#__PURE__*/React.createElement("path", {
19
- fillRule: "evenodd",
20
- clipRule: "evenodd",
21
- d: "M28.6665 18.6667C27.5619 18.6667 26.6665 19.5621 26.6665 20.6667V24.6667C26.6665 25.7713 27.5619 26.6667 28.6665 26.6667H32.6665C33.7711 26.6667 34.6665 25.7713 34.6665 24.6667V20.6667C34.6665 19.5621 33.7711 18.6667 32.6665 18.6667H28.6665ZM31.9998 21.3334H29.3331V24.0001H31.9998V21.3334Z",
22
- fill: "#42526E"
23
- }), /*#__PURE__*/React.createElement("path", {
24
- fillRule: "evenodd",
25
- clipRule: "evenodd",
26
- d: "M28.6665 29.3333C27.5619 29.3333 26.6665 30.2287 26.6665 31.3333V35.3333C26.6665 36.4379 27.5619 37.3333 28.6665 37.3333H32.6665C33.7711 37.3333 34.6665 36.4379 34.6665 35.3333V31.3333C34.6665 30.2287 33.7711 29.3333 32.6665 29.3333H28.6665ZM31.9998 31.9999H29.3331V34.6666H31.9998V31.9999Z",
27
- fill: "#42526E"
12
+ x: "0",
13
+ y: "0",
14
+ width: "42",
15
+ height: "42",
16
+ fill: "var(--ds-background-accent-purple-subtlest, #F3F0FF)"
17
+ }), /*#__PURE__*/React.createElement("rect", {
18
+ x: "8",
19
+ y: "8",
20
+ width: "26",
21
+ height: "26",
22
+ rx: "4",
23
+ fill: "var(--ds-background-input, white)"
28
24
  }), /*#__PURE__*/React.createElement("path", {
29
25
  fillRule: "evenodd",
30
26
  clipRule: "evenodd",
31
- d: "M15.3335 10.6667C14.2289 10.6667 13.3335 11.5621 13.3335 12.6667V16.6667C13.3335 17.7713 14.2289 18.6667 15.3335 18.6667H19.3335C20.4381 18.6667 21.3335 17.7713 21.3335 16.6667V12.6667C21.3335 11.5621 20.4381 10.6667 19.3335 10.6667H15.3335ZM18.6669 13.3334H16.0002V16.0001H18.6669V13.3334Z",
32
- fill: "#42526E"
33
- }), /*#__PURE__*/React.createElement("rect", {
34
- x: "16",
35
- y: "17.3333",
36
- width: "2.66667",
37
- height: "14.6667",
38
- fill: "#42526E"
39
- }), /*#__PURE__*/React.createElement("path", {
40
- d: "M16 32H28V34.6667H18C16.8954 34.6667 16 33.7712 16 32.6667V32Z",
41
- fill: "#42526E"
42
- }), /*#__PURE__*/React.createElement("path", {
43
- d: "M16 21.3333H28V24H18C16.8954 24 16 23.1046 16 22V21.3333Z",
44
- fill: "#42526E"
27
+ d: "M12.667 9.33317H29.3337C31.1746 9.33317 32.667 10.8256 32.667 12.6665V29.3332C32.667 31.1741 31.1746 32.6665 29.3337 32.6665H12.667C10.826 32.6665 9.33366 31.1741 9.33366 29.3332V12.6665C9.33366 10.8256 10.826 9.33317 12.667 9.33317ZM7.66699 12.6665C7.66699 9.90508 9.90557 7.6665 12.667 7.6665H29.3337C32.0951 7.6665 34.3337 9.90508 34.3337 12.6665V29.3332C34.3337 32.0946 32.0951 34.3332 29.3337 34.3332H12.667C9.90557 34.3332 7.66699 32.0946 7.66699 29.3332V12.6665ZM12.9579 13.4165C12.9579 13.0023 13.2937 12.6665 13.7079 12.6665H17.6443C18.0585 12.6665 18.3943 13.0023 18.3943 13.4165V16.9165C18.3943 17.3307 18.0585 17.6665 17.6443 17.6665H16.5823V19.3332H22.0186V18.4165C22.0186 18.0023 22.3544 17.6665 22.7686 17.6665H26.7049C27.1192 17.6665 27.4549 18.0023 27.4549 18.4165V21.9165C27.4549 22.3307 27.1192 22.6665 26.7049 22.6665H22.7686C22.3544 22.6665 22.0186 22.3307 22.0186 21.9165V20.9998H16.5823V25.9998H22.0186V25.0832C22.0186 24.669 22.3544 24.3332 22.7686 24.3332H26.7049C27.1192 24.3332 27.4549 24.669 27.4549 25.0832V28.5832C27.4549 28.9974 27.1192 29.3332 26.7049 29.3332H22.7686C22.3544 29.3332 22.0186 28.9974 22.0186 28.5832V27.6665H16.4368C15.5163 27.6665 14.7701 26.9203 14.7701 25.9998V19.3332V17.6665H13.7079C13.2937 17.6665 12.9579 17.3307 12.9579 16.9165V13.4165ZM14.7701 14.5832C14.7701 14.4451 14.882 14.3332 15.0201 14.3332H16.3322C16.4703 14.3332 16.5822 14.4451 16.5822 14.5832V15.7498C16.5822 15.8879 16.4703 15.9998 16.3322 15.9998H15.0201C14.882 15.9998 14.7701 15.8879 14.7701 15.7498V14.5832ZM24.0805 19.3332C23.9425 19.3332 23.8305 19.4451 23.8305 19.5832V20.7498C23.8305 20.8879 23.9425 20.9998 24.0805 20.9998H25.3927C25.5307 20.9998 25.6427 20.8879 25.6427 20.7498V19.5832C25.6427 19.4451 25.5307 19.3332 25.3927 19.3332H24.0805ZM24.0805 25.9998C23.9425 25.9998 23.8305 26.1118 23.8305 26.2498V27.4165C23.8305 27.5546 23.9425 27.6665 24.0805 27.6665H25.3927C25.5307 27.6665 25.6427 27.5546 25.6427 27.4165V26.2498C25.6427 26.1118 25.5307 25.9998 25.3927 25.9998H24.0805Z",
28
+ fill: "var(--ds-background-accent-gray-bolder-hovered, #44546F)"
45
29
  }));
46
30
  }
@@ -162,7 +162,6 @@ function getPortalChildren(_ref2) {
162
162
  componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : ACTION_SUBJECT_ID.UNKNOWN_NODE,
163
163
  dispatchAnalyticsEvent: dispatchAnalyticsEvent
164
164
  }, jsx("span", {
165
- "aria-hidden": "true",
166
165
  className: "zeroWidthSpaceContainer"
167
166
  }, jsx("span", {
168
167
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
@@ -173,7 +172,6 @@ function getPortalChildren(_ref2) {
173
172
  getPos: nodeViewParams.getPos,
174
173
  node: currentNode
175
174
  }, extraComponentProps)), jsx("span", {
176
- "aria-hidden": "true",
177
175
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
178
176
  }));
179
177
  };
@@ -28,5 +28,6 @@ export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNE
28
28
  export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
29
29
  export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles } from './shared/plugins';
30
30
  export { UnsupportedSharedCssClassName, unsupportedStyles } from './shared/unsupported-content';
31
- export { expandIconWrapperStyle } from './shared/expand';
32
- export { ClassNames as MediaSharedClassNames } from './shared/media';
31
+ export { expandIconWrapperStyle, expandClassNames } from './shared/expand';
32
+ export { ClassNames as MediaSharedClassNames } from './shared/media';
33
+ export { BreakoutCssClassName } from './shared/breakout';
@@ -0,0 +1,4 @@
1
+ export var BreakoutCssClassName = {
2
+ BREAKOUT_MARK: 'fabric-editor-breakout-mark',
3
+ BREAKOUT_MARK_DOM: 'fabric-editor-breakout-mark-dom'
4
+ };
@@ -2,4 +2,18 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
5
- export var expandIconWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
5
+ export var expandIconWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: ", ";\n"])), "var(--ds-space-negative-100, -8px)");
6
+ var prefix = 'ak-editor-expand';
7
+ export var expandClassNames = {
8
+ prefix: prefix,
9
+ expanded: "".concat(prefix, "__expanded"),
10
+ titleContainer: "".concat(prefix, "__title-container"),
11
+ inputContainer: "".concat(prefix, "__input-container"),
12
+ iconContainer: "".concat(prefix, "__icon-container"),
13
+ icon: "".concat(prefix, "__icon"),
14
+ titleInput: "".concat(prefix, "__title-input"),
15
+ content: "".concat(prefix, "__content"),
16
+ type: function type(_type) {
17
+ return "".concat(prefix, "__type-").concat(_type);
18
+ }
19
+ };
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
19
19
  import { borderRadius } from '@atlaskit/theme/constants';
20
20
  import Layer from '../Layer';
21
21
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "76.18.7";
22
+ var packageVersion = "76.18.9";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -12,9 +12,9 @@ import { themed } from '@atlaskit/theme/components';
12
12
  import { borderRadius } from '@atlaskit/theme/constants';
13
13
  import Tooltip from '@atlaskit/tooltip';
14
14
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
15
- import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
16
15
  import { default as Popup } from '../../ui/Popup';
17
16
  import { default as withOuterListeners } from '../../ui/with-outer-listeners';
17
+ import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
18
18
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
19
19
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
20
20
 
@@ -9,9 +9,9 @@ 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
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; } }
11
11
  import React, { PureComponent } from 'react';
12
- import { withReactEditorViewOuterListeners } from '../../ui-react';
13
12
  import DropdownList from '../../ui/DropList';
14
13
  import Popup from '../../ui/Popup';
14
+ import { withReactEditorViewOuterListeners } from '../../ui-react';
15
15
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
16
16
  /**
17
17
  * Wrapper around @atlaskit/droplist which uses Popup and Portal to render
@@ -27,10 +27,10 @@ import { B100, DN600, DN80, N70, N900 } from '@atlaskit/theme/colors';
27
27
  import { themed } from '@atlaskit/theme/components';
28
28
  import Tooltip from '@atlaskit/tooltip';
29
29
  import { DropdownMenuSharedCssClassName } from '../../styles';
30
- import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
31
- import { withReactEditorViewOuterListeners } from '../../ui-react';
32
30
  import DropList from '../../ui/DropList';
33
31
  import Popup from '../../ui/Popup';
32
+ import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
33
+ import { withReactEditorViewOuterListeners } from '../../ui-react';
34
34
  import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
35
35
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
36
36
  var wrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* tooltip in ToolbarButton is display:block */\n & > div > div {\n display: flex;\n }\n"])));
@@ -1,4 +1,5 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, AnalyticsEventPayload, EVENT_TYPE, INPUT_METHOD } from './types';
1
+ import type { AnalyticsEventPayload } from './types';
2
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types';
2
3
  export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
3
4
  export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
4
5
  export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
- import { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
+ import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { PMPluginFactoryParams } from '../types';
6
6
  export type InlineNodeViewComponentProps = {
7
7
  view: EditorView;
@@ -28,5 +28,6 @@ export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNE
28
28
  export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
29
29
  export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles, } from './shared/plugins';
30
30
  export { UnsupportedSharedCssClassName, unsupportedStyles, } from './shared/unsupported-content';
31
- export { expandIconWrapperStyle } from './shared/expand';
31
+ export { expandIconWrapperStyle, expandClassNames } from './shared/expand';
32
32
  export { ClassNames as MediaSharedClassNames } from './shared/media';
33
+ export { BreakoutCssClassName } from './shared/breakout';
@@ -0,0 +1,4 @@
1
+ export declare const BreakoutCssClassName: {
2
+ BREAKOUT_MARK: string;
3
+ BREAKOUT_MARK_DOM: string;
4
+ };
@@ -1 +1,12 @@
1
1
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
2
+ export declare const expandClassNames: {
3
+ prefix: string;
4
+ expanded: string;
5
+ titleContainer: string;
6
+ inputContainer: string;
7
+ iconContainer: string;
8
+ icon: string;
9
+ titleInput: string;
10
+ content: string;
11
+ type: (type: string) => string;
12
+ };
@@ -28,7 +28,7 @@ export type { EditorReactContext } from './editor-react-context';
28
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
29
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
30
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
31
- export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, } from './next-editor-plugin';
31
+ export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, ExtractNextEditorPlugins, } from './next-editor-plugin';
32
32
  export type { ExtractPublicEditorAPI } from './editor-public-api';
33
33
  export type { EditorCommand, EditorCommandWithMetadata, } from './editor-command';
34
34
  export type IconProps = {
@@ -1,6 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
- import type { WithOutsideClickProps } from '../../ui-react/with-react-editor-view-outer-listeners';
3
2
  import type { OpenChangedEvent } from '../../ui/DropList';
3
+ import type { WithOutsideClickProps } from '../../ui-react/with-react-editor-view-outer-listeners';
4
4
  import type { ArrowKeyNavigationProviderOptions } from '../ArrowKeyNavigationProvider/types';
5
5
  export interface Props {
6
6
  children?: React.ReactNode;
@@ -1,4 +1,5 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, AnalyticsEventPayload, EVENT_TYPE, INPUT_METHOD } from './types';
1
+ import type { AnalyticsEventPayload } from './types';
2
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types';
2
3
  export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
3
4
  export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
4
5
  export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
- import { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
+ import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { PMPluginFactoryParams } from '../types';
6
6
  export type InlineNodeViewComponentProps = {
7
7
  view: EditorView;
@@ -28,5 +28,6 @@ export { smartCardStyles, FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNE
28
28
  export { embedCardStyles, embedSpacingStyles } from './shared/embedCard';
29
29
  export { buttonGroupStyle, separatorStyles, wrapperStyle, triggerWrapperStyles, } from './shared/plugins';
30
30
  export { UnsupportedSharedCssClassName, unsupportedStyles, } from './shared/unsupported-content';
31
- export { expandIconWrapperStyle } from './shared/expand';
31
+ export { expandIconWrapperStyle, expandClassNames } from './shared/expand';
32
32
  export { ClassNames as MediaSharedClassNames } from './shared/media';
33
+ export { BreakoutCssClassName } from './shared/breakout';
@@ -0,0 +1,4 @@
1
+ export declare const BreakoutCssClassName: {
2
+ BREAKOUT_MARK: string;
3
+ BREAKOUT_MARK_DOM: string;
4
+ };
@@ -1 +1,12 @@
1
1
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
2
+ export declare const expandClassNames: {
3
+ prefix: string;
4
+ expanded: string;
5
+ titleContainer: string;
6
+ inputContainer: string;
7
+ iconContainer: string;
8
+ icon: string;
9
+ titleInput: string;
10
+ content: string;
11
+ type: (type: string) => string;
12
+ };
@@ -28,7 +28,7 @@ export type { EditorReactContext } from './editor-react-context';
28
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
29
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
30
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
31
- export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, } from './next-editor-plugin';
31
+ export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, ExtractNextEditorPlugins, } from './next-editor-plugin';
32
32
  export type { ExtractPublicEditorAPI } from './editor-public-api';
33
33
  export type { EditorCommand, EditorCommandWithMetadata, } from './editor-command';
34
34
  export type IconProps = {
@@ -1,6 +1,6 @@
1
1
  import React, { PureComponent } from 'react';
2
- import type { WithOutsideClickProps } from '../../ui-react/with-react-editor-view-outer-listeners';
3
2
  import type { OpenChangedEvent } from '../../ui/DropList';
3
+ import type { WithOutsideClickProps } from '../../ui-react/with-react-editor-view-outer-listeners';
4
4
  import type { ArrowKeyNavigationProviderOptions } from '../ArrowKeyNavigationProvider/types';
5
5
  export interface Props {
6
6
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.18.7",
3
+ "version": "76.18.9",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -92,12 +92,12 @@
92
92
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
93
93
  "@atlaskit/analytics-next": "^9.1.0",
94
94
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
95
- "@atlaskit/button": "^16.13.0",
95
+ "@atlaskit/button": "^16.14.0",
96
96
  "@atlaskit/code": "^14.6.0",
97
97
  "@atlaskit/codemod-utils": "^4.2.0",
98
98
  "@atlaskit/custom-steps": "^0.0.2",
99
99
  "@atlaskit/editor-json-transformer": "^8.10.0",
100
- "@atlaskit/editor-palette": "1.5.1",
100
+ "@atlaskit/editor-palette": "1.5.2",
101
101
  "@atlaskit/editor-prosemirror": "1.1.0",
102
102
  "@atlaskit/editor-shared-styles": "^2.8.0",
103
103
  "@atlaskit/editor-tables": "^2.3.0",
@@ -114,6 +114,7 @@
114
114
  "@atlaskit/menu": "^2.1.0",
115
115
  "@atlaskit/platform-feature-flags": "^0.2.0",
116
116
  "@atlaskit/profilecard": "^19.7.0",
117
+ "@atlaskit/smart-card": "^26.42.0",
117
118
  "@atlaskit/smart-user-picker": "^6.3.0",
118
119
  "@atlaskit/spinner": "^15.6.0",
119
120
  "@atlaskit/task-decision": "^17.9.0",
@@ -127,6 +128,7 @@
127
128
  "@emotion/react": "^11.7.1",
128
129
  "@sentry/browser": "^6.18.2",
129
130
  "@sentry/integrations": "^6.18.2",
131
+ "@sentry/types": "^6.18.2",
130
132
  "chromatism": "^2.6.0",
131
133
  "classnames": "^2.2.5",
132
134
  "clipboard-polyfill": "2.4.3",
@@ -155,12 +157,10 @@
155
157
  "devDependencies": {
156
158
  "@atlaskit/media-core": "^34.1.0",
157
159
  "@atlaskit/media-test-helpers": "^33.0.0",
158
- "@atlaskit/smart-card": "^26.42.0",
159
160
  "@atlaskit/util-data-test": "^17.8.0",
160
161
  "@atlaskit/visual-regression": "*",
161
162
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
162
163
  "@atlassian/feature-flags-test-utils": "*",
163
- "@sentry/types": "^6.18.2",
164
164
  "@testing-library/dom": "^8.17.1",
165
165
  "@testing-library/jest-dom": "^5.16.5",
166
166
  "@testing-library/react": "^12.1.5",