@atlaskit/editor-common 88.6.2 → 88.8.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 (75) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/browser/package.json +15 -0
  3. package/dist/cjs/icons/index.js +7 -0
  4. package/dist/cjs/icons/shared/DynamicStrokeIconDecoration.js +46 -0
  5. package/dist/cjs/lazy-node-view/index.js +89 -11
  6. package/dist/cjs/lazy-node-view/node-view.js +27 -7
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/styles/index.js +6 -0
  9. package/dist/cjs/styles/shared/lists.js +2 -2
  10. package/dist/cjs/styles/shared/plugins.js +7 -1
  11. package/dist/cjs/styles/shared/table.js +2 -2
  12. package/dist/cjs/ui/DropList/index.js +1 -1
  13. package/dist/cjs/utils/analytics.js +7 -27
  14. package/dist/cjs/utils/browser.js +3 -4
  15. package/dist/cjs/utils/index.js +20 -5
  16. package/dist/cjs/utils/unsupportedContent/types.js +5 -0
  17. package/dist/es2019/icons/index.js +1 -0
  18. package/dist/es2019/icons/shared/DynamicStrokeIconDecoration.js +40 -0
  19. package/dist/es2019/lazy-node-view/index.js +81 -11
  20. package/dist/es2019/lazy-node-view/node-view.js +25 -6
  21. package/dist/es2019/monitoring/error.js +1 -1
  22. package/dist/es2019/styles/index.js +1 -1
  23. package/dist/es2019/styles/shared/lists.js +1 -1
  24. package/dist/es2019/styles/shared/plugins.js +6 -0
  25. package/dist/es2019/styles/shared/table.js +1 -1
  26. package/dist/es2019/ui/DropList/index.js +1 -1
  27. package/dist/es2019/utils/analytics.js +1 -2
  28. package/dist/es2019/utils/browser.js +1 -1
  29. package/dist/es2019/utils/index.js +47 -3
  30. package/dist/es2019/utils/unsupportedContent/types.js +1 -0
  31. package/dist/esm/icons/index.js +1 -0
  32. package/dist/esm/icons/shared/DynamicStrokeIconDecoration.js +39 -0
  33. package/dist/esm/lazy-node-view/index.js +85 -11
  34. package/dist/esm/lazy-node-view/node-view.js +27 -7
  35. package/dist/esm/monitoring/error.js +1 -1
  36. package/dist/esm/styles/index.js +1 -1
  37. package/dist/esm/styles/shared/lists.js +1 -1
  38. package/dist/esm/styles/shared/plugins.js +6 -0
  39. package/dist/esm/styles/shared/table.js +1 -1
  40. package/dist/esm/ui/DropList/index.js +1 -1
  41. package/dist/esm/utils/analytics.js +1 -2
  42. package/dist/esm/utils/browser.js +1 -1
  43. package/dist/esm/utils/index.js +47 -3
  44. package/dist/esm/utils/unsupportedContent/types.js +1 -0
  45. package/dist/types/icons/index.d.ts +1 -0
  46. package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +13 -0
  47. package/dist/types/lazy-node-view/index.d.ts +18 -1
  48. package/dist/types/lazy-node-view/node-view.d.ts +4 -5
  49. package/dist/types/styles/index.d.ts +1 -1
  50. package/dist/types/styles/shared/plugins.d.ts +1 -0
  51. package/dist/types/utils/analytics.d.ts +1 -20
  52. package/dist/types/utils/browser.d.ts +1 -1
  53. package/dist/types/utils/index.d.ts +48 -4
  54. package/dist/types/utils/track-unsupported-content.d.ts +1 -1
  55. package/dist/types/utils/unsupportedContent/types.d.ts +18 -0
  56. package/dist/types/utils/validate-using-spec.d.ts +1 -1
  57. package/dist/types-ts4.5/icons/index.d.ts +1 -0
  58. package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +13 -0
  59. package/dist/types-ts4.5/lazy-node-view/index.d.ts +18 -1
  60. package/dist/types-ts4.5/lazy-node-view/node-view.d.ts +4 -5
  61. package/dist/types-ts4.5/styles/index.d.ts +1 -1
  62. package/dist/types-ts4.5/styles/shared/plugins.d.ts +1 -0
  63. package/dist/types-ts4.5/utils/analytics.d.ts +1 -20
  64. package/dist/types-ts4.5/utils/browser.d.ts +1 -1
  65. package/dist/types-ts4.5/utils/index.d.ts +48 -4
  66. package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +1 -1
  67. package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +18 -0
  68. package/dist/types-ts4.5/utils/validate-using-spec.d.ts +1 -1
  69. package/package.json +4 -2
  70. package/utils/analytics/package.json +15 -0
  71. package/dist/cjs/lazy-node-view/replace-node-views.js +0 -173
  72. package/dist/es2019/lazy-node-view/replace-node-views.js +0 -166
  73. package/dist/esm/lazy-node-view/replace-node-views.js +0 -166
  74. package/dist/types/lazy-node-view/replace-node-views.d.ts +0 -34
  75. package/dist/types-ts4.5/lazy-node-view/replace-node-views.d.ts +0 -34
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 88.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#136348](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136348)
8
+ [`fb4fb56f1da7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb4fb56f1da7c) -
9
+ Add new optimised entry-points for /browser and /utils/analytics.
10
+ - [#136367](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136367)
11
+ [`4d9450a7e1283`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d9450a7e1283) -
12
+ [ux] Update new icons (text color, highlight, text style) with design change
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
18
+ ## 88.7.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#136261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136261)
23
+ [`7e900c6a2ae84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7e900c6a2ae84) -
24
+ Lazy node view loading without setProps
25
+
26
+ ### Patch Changes
27
+
28
+ - [#136261](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136261)
29
+ [`7e900c6a2ae84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7e900c6a2ae84) -
30
+ Replace LazyNodeView without view.setProps
31
+
3
32
  ## 88.6.2
4
33
 
5
34
  ### Patch Changes
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/browser",
3
+ "main": "../dist/cjs/utils/browser.js",
4
+ "module": "../dist/esm/utils/browser.js",
5
+ "module:es2019": "../dist/es2019/utils/browser.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/utils/browser.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.4": {
10
+ "*": [
11
+ "../dist/types-ts4.5/utils/browser.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "BorderIcon", {
10
10
  return _BorderIcon.BorderIcon;
11
11
  }
12
12
  });
13
+ Object.defineProperty(exports, "DynamicStrokeIconDecoration", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _DynamicStrokeIconDecoration.DynamicStrokeIconDecoration;
17
+ }
18
+ });
13
19
  exports.IconTable = void 0;
14
20
  Object.defineProperty(exports, "PanelErrorIcon", {
15
21
  enumerable: true,
@@ -56,6 +62,7 @@ var _PanelSuccessIcon = require("./shared/PanelSuccessIcon");
56
62
  var _PanelNoteIcon = require("./shared/PanelNoteIcon");
57
63
  var _BorderIcon = require("./shared/BorderIcon");
58
64
  var _SteppedRainbowIconDecoration = require("./shared/SteppedRainbowIconDecoration");
65
+ var _DynamicStrokeIconDecoration = require("./shared/DynamicStrokeIconDecoration");
59
66
  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); }
60
67
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(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; }
61
68
  var IconTable = exports.IconTable = (0, _reactLoadable.default)({
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DynamicStrokeIconDecoration = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _primitives = require("@atlaskit/primitives");
9
+ /**
10
+ * @jsxRuntime classic
11
+ * @jsx jsx
12
+ */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+
15
+ var barStyles = (0, _react.css)({
16
+ position: 'absolute',
17
+ left: 0,
18
+ right: 0,
19
+ top: "var(--ds-space-250, 20px)",
20
+ margin: 'auto',
21
+ width: "var(--ds-space-200, 16px)",
22
+ height: '3px'
23
+ });
24
+ var textColorIconWrapper = (0, _primitives.xcss)({
25
+ position: 'relative'
26
+ });
27
+ var getBackground = function getBackground(selectedColor, disabled) {
28
+ if (selectedColor) {
29
+ return selectedColor;
30
+ }
31
+ return disabled ? "var(--ds-icon-disabled, #091E424F)" : "var(--ds-icon, #44546F)";
32
+ };
33
+ var DynamicStrokeIconDecoration = exports.DynamicStrokeIconDecoration = function DynamicStrokeIconDecoration(_ref) {
34
+ var selectedColor = _ref.selectedColor,
35
+ disabled = _ref.disabled,
36
+ icon = _ref.icon;
37
+ return (0, _react.jsx)(_primitives.Box, {
38
+ xcss: textColorIconWrapper
39
+ }, icon, (0, _react.jsx)("div", {
40
+ "data-testid": "toolbar-icon-dynamic-stroke",
41
+ style: {
42
+ background: getBackground(selectedColor, disabled)
43
+ },
44
+ css: barStyles
45
+ }));
46
+ };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -9,10 +10,20 @@ Object.defineProperty(exports, "convertToInlineCss", {
9
10
  return _cssHelper.convertToInlineCss;
10
11
  }
11
12
  });
13
+ exports.lazyNodeViewDecorationPluginKey = void 0;
14
+ exports.testOnlyIgnoreLazyNodeView = testOnlyIgnoreLazyNodeView;
12
15
  exports.withLazyLoading = void 0;
16
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
+ var _state = require("@atlaskit/editor-prosemirror/state");
13
18
  var _nodeView = require("./node-view");
14
- var _replaceNodeViews = require("./replace-node-views");
15
19
  var _cssHelper = require("./css-helper");
20
+ /**
21
+ * 📢 Public Plugin Key
22
+ *
23
+ * Communication channel between LazyNodeView loader and LazyNodeViewDecorationPlugin.
24
+ */
25
+ var lazyNodeViewDecorationPluginKey = exports.lazyNodeViewDecorationPluginKey = new _state.PluginKey('lazyNodeViewDecoration');
26
+
16
27
  /**
17
28
  * 📢 Public Type
18
29
  *
@@ -25,6 +36,12 @@ var _cssHelper = require("./css-helper");
25
36
  * @see {withLazyLoading}
26
37
  */
27
38
 
39
+ /**
40
+ * 🧱 Internal: Editor FE Platform
41
+ *
42
+ * Caches loaded node view factory functions
43
+ */
44
+
28
45
  /**
29
46
  * 🧱 Internal: Editor FE Platform
30
47
  *
@@ -32,6 +49,33 @@ var _cssHelper = require("./css-helper");
32
49
  */
33
50
  var requestedNodesPerEditorView = new WeakMap();
34
51
 
52
+ /**
53
+ * 🧱 Internal: Editor FE Platform
54
+ *
55
+ * Caches loaded node view factory functions for each editor view
56
+ */
57
+ var resolvedNodesPerEditorView = new WeakMap();
58
+
59
+ /**
60
+ * 🧱 Internal: Editor FE Platform
61
+ *
62
+ * Stores editorView -> raf to debounce NodeView updates.
63
+ */
64
+ var debounceToEditorViewMap = new WeakMap();
65
+ var testOnlyIgnoreLazyNodeViewSet = new WeakSet();
66
+ /**
67
+ * 🧱 Internal: Editor FE Platform
68
+ *
69
+ * Used in tests to prevent lazy node view being replaced by a real node view.
70
+ *
71
+ * This needs to be replaced with proper implementation once LazyNodeView is converted to a plugin.
72
+ *
73
+ * @deprecated DO NOT USE THIS OUSIDE TESTS.
74
+ */
75
+ function testOnlyIgnoreLazyNodeView(view) {
76
+ testOnlyIgnoreLazyNodeViewSet.add(view);
77
+ }
78
+
35
79
  /**
36
80
  * 📢 Public: Any EditorPlugin can use this function
37
81
  *
@@ -75,28 +119,62 @@ var requestedNodesPerEditorView = new WeakMap();
75
119
  var withLazyLoading = exports.withLazyLoading = function withLazyLoading(_ref) {
76
120
  var nodeName = _ref.nodeName,
77
121
  loader = _ref.loader,
78
- getNodeViewOptions = _ref.getNodeViewOptions,
79
- dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent;
122
+ getNodeViewOptions = _ref.getNodeViewOptions;
80
123
  var createLazyNodeView = function createLazyNodeView(node, view, getPos, decorations) {
81
124
  var _node$type;
82
125
  var requestedNodes = requestedNodesPerEditorView.get(view);
83
126
  if (!requestedNodes) {
84
- requestedNodes = new Set(), requestedNodesPerEditorView.set(view, requestedNodes);
127
+ requestedNodes = new Map();
128
+ requestedNodesPerEditorView.set(view, requestedNodes);
129
+ }
130
+ var resolvedNodeViews = resolvedNodesPerEditorView.get(view);
131
+ if (!resolvedNodeViews) {
132
+ resolvedNodesPerEditorView.set(view, new Map());
85
133
  }
86
134
  var wasAlreadyRequested = requestedNodes.has(nodeName);
87
135
  if (wasAlreadyRequested) {
88
- return new _nodeView.LazyNodeView(node, view, getPos);
136
+ var resolvedNodeView = resolvedNodeViews === null || resolvedNodeViews === void 0 ? void 0 : resolvedNodeViews.get(nodeName);
137
+ if (resolvedNodeView && !testOnlyIgnoreLazyNodeViewSet.has(view)) {
138
+ return resolvedNodeView(node, view, getPos, decorations);
139
+ }
140
+ return new _nodeView.LazyNodeView(node, view, getPos, requestedNodes.get(nodeName));
89
141
  }
90
- requestedNodes.add(nodeName);
91
- loader().then(function (nodeViewFuncModule) {
142
+ var loaderPromise = loader().then(function (nodeViewFuncModule) {
143
+ var _resolvedNodesPerEdit;
92
144
  var nodeViewFunc = function nodeViewFunc(node, view, getPos, decorations) {
93
145
  return nodeViewFuncModule(node, view, getPos, decorations, getNodeViewOptions);
94
146
  };
95
- (0, _replaceNodeViews.queueReplaceNodeViews)(view, {
96
- nodeName: nodeName,
97
- nodeViewFunc: nodeViewFunc
147
+ (_resolvedNodesPerEdit = resolvedNodesPerEditorView.get(view)) === null || _resolvedNodesPerEdit === void 0 || _resolvedNodesPerEdit.set(nodeName, nodeViewFunc);
148
+
149
+ /**
150
+ * Triggering lazyNodeViewDecoration plugin to apply decorations
151
+ * to nodes with newly loaded NodeViews.
152
+ */
153
+ var _ref2 = debounceToEditorViewMap.get(view) || [null, new Set()],
154
+ _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
155
+ raf = _ref3[0],
156
+ nodeTypes = _ref3[1];
157
+ if (raf) {
158
+ cancelAnimationFrame(raf);
159
+ }
160
+ nodeTypes.add(node.type.name);
161
+ var nextRaf = requestAnimationFrame(function () {
162
+ debounceToEditorViewMap.set(view, [null, new Set()]);
163
+ var tr = view.state.tr;
164
+ tr.setMeta(lazyNodeViewDecorationPluginKey, {
165
+ type: 'add',
166
+ nodeTypes: nodeTypes
167
+ });
168
+ view.dispatch(tr);
98
169
  });
170
+ debounceToEditorViewMap.set(view, [nextRaf, nodeTypes]);
171
+ /**
172
+ * END triggering LazyNodeViewDecoration plugin
173
+ */
174
+
175
+ return nodeViewFunc;
99
176
  });
177
+ requestedNodes.set(nodeName, loaderPromise);
100
178
  if (typeof ((_node$type = node.type) === null || _node$type === void 0 || (_node$type = _node$type.spec) === null || _node$type === void 0 ? void 0 : _node$type.toDOM) !== 'function') {
101
179
  // TODO: Analytics ED-23982
102
180
  // dispatchAnalyticsEvent({
@@ -109,7 +187,7 @@ var withLazyLoading = exports.withLazyLoading = function withLazyLoading(_ref) {
109
187
  // },
110
188
  // });
111
189
  }
112
- return new _nodeView.LazyNodeView(node, view, getPos);
190
+ return new _nodeView.LazyNodeView(node, view, getPos, loaderPromise);
113
191
  };
114
192
  return createLazyNodeView;
115
193
  };
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.LazyNodeView = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
11
  var _memoize = _interopRequireDefault(require("lodash/memoize"));
11
12
  var _model = require("@atlaskit/editor-prosemirror/model");
12
13
  var getEditorLineWidth = (0, _memoize.default)(function (view) {
@@ -20,18 +21,34 @@ var getEditorLineWidth = (0, _memoize.default)(function (view) {
20
21
  * A NodeView that serves as a placeholder until the actual NodeView is loaded.
21
22
  */
22
23
  var LazyNodeView = exports.LazyNodeView = /*#__PURE__*/function () {
23
- function LazyNodeView(node, view, getPos) {
24
- var _node$type;
24
+ function LazyNodeView(_node, view, _getPos, nodeViewLoader) {
25
+ var _this = this,
26
+ _node$type;
25
27
  (0, _classCallCheck2.default)(this, LazyNodeView);
26
- this.node = node;
27
- if (typeof ((_node$type = node.type) === null || _node$type === void 0 || (_node$type = _node$type.spec) === null || _node$type === void 0 ? void 0 : _node$type.toDOM) !== 'function') {
28
+ (0, _defineProperty2.default)(this, "update", function (node) {
29
+ var prevNode = _this.node;
30
+ _this.node = node;
31
+
32
+ // Forcing NodeView to be re-created
33
+ // so that ProseMirror can replace LazyNodeView with the real one.
34
+ if (_this.isNodeViewLoaded) {
35
+ return false;
36
+ }
37
+
38
+ // Copying some of the default NodeView update behaviour
39
+ // https://github.com/ProseMirror/prosemirror-view/blob/cfa73eb969777f63bcb39972594fd4a9110f5a93/src/viewdesc.ts#L803
40
+ return !_this.node.sameMarkup(prevNode);
41
+ });
42
+ this.node = _node;
43
+ this.isNodeViewLoaded = false;
44
+ if (typeof ((_node$type = _node.type) === null || _node$type === void 0 || (_node$type = _node$type.spec) === null || _node$type === void 0 ? void 0 : _node$type.toDOM) !== 'function') {
28
45
  this.dom = document.createElement('div');
29
46
  return;
30
47
  }
31
48
  var toDOMConfiguration = {
32
49
  editorLineWidth: getEditorLineWidth(view)
33
50
  };
34
- var fallback = _model.DOMSerializer.renderSpec(document, node.type.spec.toDOM(node,
51
+ var fallback = _model.DOMSerializer.renderSpec(document, _node.type.spec.toDOM(_node,
35
52
  // We are injecting a second parameter to be used by the toDOM lazy node view implementations
36
53
  // @ts-expect-error
37
54
  toDOMConfiguration));
@@ -40,16 +57,19 @@ var LazyNodeView = exports.LazyNodeView = /*#__PURE__*/function () {
40
57
  if (this.dom instanceof HTMLElement) {
41
58
  // This attribute is mostly used for debugging purposed
42
59
  // It will help us to found out when the node was replaced
43
- this.dom.setAttribute('data-lazy-node-view', node.type.name);
60
+ this.dom.setAttribute('data-lazy-node-view', _node.type.name);
44
61
  // This is used on Libra tests
45
62
  // We are using this to make sure all lazy noded were replaced
46
63
  // before the test started
47
64
  this.dom.setAttribute('data-lazy-node-view-fallback', 'true');
48
65
  }
66
+ nodeViewLoader.then(function () {
67
+ _this.isNodeViewLoaded = true;
68
+ });
49
69
  }
50
70
  (0, _createClass2.default)(LazyNodeView, [{
51
71
  key: "ignoreMutation",
52
- value: function ignoreMutation(mutation) {
72
+ value: function ignoreMutation() {
53
73
  if (this.node.type.isTextblock) {
54
74
  return false;
55
75
  }
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  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; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "88.6.2";
20
+ var packageVersion = "88.8.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -429,6 +429,12 @@ Object.defineProperty(exports, "triggerWrapperStyles", {
429
429
  return _plugins.triggerWrapperStyles;
430
430
  }
431
431
  });
432
+ Object.defineProperty(exports, "triggerWrapperStylesWithPadding", {
433
+ enumerable: true,
434
+ get: function get() {
435
+ return _plugins.triggerWrapperStylesWithPadding;
436
+ }
437
+ });
432
438
  Object.defineProperty(exports, "unsupportedStyles", {
433
439
  enumerable: true,
434
440
  get: function get() {
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
12
  var _react = require("@emotion/react");
13
13
  var _adfSchema = require("@atlaskit/adf-schema");
14
- var _browser = _interopRequireDefault(require("../../utils/browser"));
14
+ var _browser = require("../../utils/browser");
15
15
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
  var listItemCounterPadding = exports.listItemCounterPadding = 24;
17
17
  var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
@@ -52,4 +52,4 @@ function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat) {
52
52
  }
53
53
 
54
54
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
55
- var listsSharedStyles = exports.listsSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t// For older browsers the do not support flow-root.\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, _browser.default.gecko ? 'display: inline-block;' : '', _adfSchema.orderedListSelector, _adfSchema.bulletListSelector);
55
+ var listsSharedStyles = exports.listsSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t// For older browsers the do not support flow-root.\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, _browser.browser.gecko ? 'display: inline-block;' : '', _adfSchema.orderedListSelector, _adfSchema.bulletListSelector);
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.wrapperStyle = exports.triggerWrapperStyles = exports.separatorStyles = exports.buttonGroupStyle = void 0;
6
+ exports.wrapperStyle = exports.triggerWrapperStylesWithPadding = exports.triggerWrapperStyles = exports.separatorStyles = exports.buttonGroupStyle = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -49,4 +49,10 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)({
49
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
50
50
  var triggerWrapperStyles = exports.triggerWrapperStyles = (0, _react.css)({
51
51
  display: 'flex'
52
+ });
53
+
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
55
+ var triggerWrapperStylesWithPadding = exports.triggerWrapperStylesWithPadding = (0, _react.css)({
56
+ display: 'flex',
57
+ paddingRight: "var(--ds-space-025, 2px)"
52
58
  });
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _browser = _interopRequireDefault(require("../../utils/browser"));
13
+ var _browser = require("../../utils/browser");
14
14
  var _codeBlock = require("./code-block");
15
15
  var _tableCell = require("./tableCell");
16
16
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -47,7 +47,7 @@ var TableSharedCssClassName = exports.TableSharedCssClassName = {
47
47
 
48
48
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
49
49
  var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
50
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: normal;\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t> :first-child:not(style),\n > style:first-child + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), (0, _platformFeatureFlags.fg)('platform_editor_tables_padding_increase') ? "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-250, 20px)") : "var(--ds-space-100, 8px)", _browser.default.gecko || _browser.default.ie || _browser.default.mac && _browser.default.chrome ? 'background-clip: padding-box;' : '', "var(--ds-space-150, 12px)", "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
50
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: normal;\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t> :first-child:not(style),\n > style:first-child + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), (0, _platformFeatureFlags.fg)('platform_editor_tables_padding_increase') ? "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-250, 20px)") : "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', "var(--ds-space-150, 12px)", "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
51
51
  leftCoverWidth: "var(--ds-space-300, 24px)"
52
52
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", (0, _editorSharedStyles.overflowShadow)({
53
53
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
25
25
  * @jsx jsx
26
26
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
27
  var packageName = "@atlaskit/editor-common";
28
- var packageVersion = "88.6.2";
28
+ var packageVersion = "88.8.0";
29
29
  var halfFocusRing = 1;
30
30
  var dropOffset = '0, 8';
31
31
  var DropList = /*#__PURE__*/function (_Component) {
@@ -3,40 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SEVERITY = void 0;
7
- Object.defineProperty(exports, "UNSUPPORTED_CONTENT_LEVEL_SEVERITY", {
8
- enumerable: true,
9
- get: function get() {
10
- return _getUnsupportedContentLevelData.UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
11
- }
12
- });
13
- Object.defineProperty(exports, "UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS", {
14
- enumerable: true,
15
- get: function get() {
16
- return _getUnsupportedContentLevelData.UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS;
17
- }
18
- });
19
- exports.getAnalyticsEventSeverity = exports.getAnalyticsEditorAppearance = exports.getAnalyticsAppearance = exports.analyticsEventKey = void 0;
20
- Object.defineProperty(exports, "getUnsupportedContentLevelData", {
21
- enumerable: true,
22
- get: function get() {
23
- return _getUnsupportedContentLevelData.getUnsupportedContentLevelData;
24
- }
25
- });
26
- var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
27
- var _getUnsupportedContentLevelData = require("./unsupportedContent/get-unsupported-content-level-data");
6
+ exports.getAnalyticsEventSeverity = exports.getAnalyticsEditorAppearance = exports.getAnalyticsAppearance = exports.analyticsEventKey = exports.SEVERITY = void 0;
7
+ var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
28
8
  var getAnalyticsAppearance = exports.getAnalyticsAppearance = function getAnalyticsAppearance(appearance) {
29
9
  switch (appearance) {
30
10
  case 'full-page':
31
- return _analyticsNamespacedContext.EDITOR_APPEARANCE_CONTEXT.FIXED_WIDTH;
11
+ return _FabricEditorAnalyticsContext.EDITOR_APPEARANCE_CONTEXT.FIXED_WIDTH;
32
12
  case 'full-width':
33
- return _analyticsNamespacedContext.EDITOR_APPEARANCE_CONTEXT.FULL_WIDTH;
13
+ return _FabricEditorAnalyticsContext.EDITOR_APPEARANCE_CONTEXT.FULL_WIDTH;
34
14
  case 'comment':
35
- return _analyticsNamespacedContext.EDITOR_APPEARANCE_CONTEXT.COMMENT;
15
+ return _FabricEditorAnalyticsContext.EDITOR_APPEARANCE_CONTEXT.COMMENT;
36
16
  case 'chromeless':
37
- return _analyticsNamespacedContext.EDITOR_APPEARANCE_CONTEXT.CHROMELESS;
17
+ return _FabricEditorAnalyticsContext.EDITOR_APPEARANCE_CONTEXT.CHROMELESS;
38
18
  case 'mobile':
39
- return _analyticsNamespacedContext.EDITOR_APPEARANCE_CONTEXT.MOBILE;
19
+ return _FabricEditorAnalyticsContext.EDITOR_APPEARANCE_CONTEXT.MOBILE;
40
20
  }
41
21
  };
42
22
  var getAnalyticsEditorAppearance = exports.getAnalyticsEditorAppearance = function getAnalyticsEditorAppearance(editorAppearance) {
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- var result = {
6
+ exports.browser = void 0;
7
+ var result = exports.browser = {
8
8
  mac: false,
9
9
  windows: false,
10
10
  ie: false,
@@ -41,5 +41,4 @@ if (typeof navigator !== 'undefined') {
41
41
  result.safari_version = parseInt((navigator.userAgent.match(/Version\/([0-9\._]+).*Safari/) || [])[1], 10);
42
42
  result.supportsIntersectionObserver = typeof window !== 'undefined' && 'IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'intersectionRatio' in window.IntersectionObserverEntry.prototype;
43
43
  result.supportsResizeObserver = typeof window !== 'undefined' && 'ResizeObserver' in window && 'ResizeObserverEntry' in window;
44
- }
45
- var _default = exports.default = result;
44
+ }
@@ -91,13 +91,13 @@ Object.defineProperty(exports, "TTI_SEVERITY_THRESHOLD_DEFAULTS", {
91
91
  Object.defineProperty(exports, "UNSUPPORTED_CONTENT_LEVEL_SEVERITY", {
92
92
  enumerable: true,
93
93
  get: function get() {
94
- return _analytics.UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
94
+ return _getUnsupportedContentLevelData.UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
95
95
  }
96
96
  });
97
97
  Object.defineProperty(exports, "UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS", {
98
98
  enumerable: true,
99
99
  get: function get() {
100
- return _analytics.UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS;
100
+ return _getUnsupportedContentLevelData.UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS;
101
101
  }
102
102
  });
103
103
  Object.defineProperty(exports, "ZERO_WIDTH_JOINER", {
@@ -151,7 +151,7 @@ Object.defineProperty(exports, "breakoutConsts", {
151
151
  Object.defineProperty(exports, "browser", {
152
152
  enumerable: true,
153
153
  get: function get() {
154
- return _browser.default;
154
+ return _browser.browser;
155
155
  }
156
156
  });
157
157
  Object.defineProperty(exports, "calcBreakoutWidth", {
@@ -561,7 +561,7 @@ Object.defineProperty(exports, "getTitle", {
561
561
  Object.defineProperty(exports, "getUnsupportedContentLevelData", {
562
562
  enumerable: true,
563
563
  get: function get() {
564
- return _analytics.getUnsupportedContentLevelData;
564
+ return _getUnsupportedContentLevelData.getUnsupportedContentLevelData;
565
565
  }
566
566
  });
567
567
  Object.defineProperty(exports, "getWrappingOptions", {
@@ -1148,7 +1148,7 @@ var _editorCoreUtils = require("./editor-core-utils");
1148
1148
  var _shouldAutoLinkifyTld = require("./should-auto-linkify-tld");
1149
1149
  var _annotation = require("./annotation");
1150
1150
  var _macro = require("./macro");
1151
- var _browser = _interopRequireDefault(require("./browser"));
1151
+ var _browser = require("./browser");
1152
1152
  var _errorReporter = _interopRequireDefault(require("./error-reporter"));
1153
1153
  var _date = require("./date");
1154
1154
  var _imageLoader = require("./imageLoader");
@@ -1159,6 +1159,7 @@ var _slice = require("./slice");
1159
1159
  var _dom = require("./dom");
1160
1160
  var _traversor = _interopRequireDefault(require("./traversor"));
1161
1161
  var _analytics = require("./analytics");
1162
+ var _getUnsupportedContentLevelData = require("./unsupportedContent/get-unsupported-content-level-data");
1162
1163
  var _trackUnsupportedContent = require("./track-unsupported-content");
1163
1164
  var _measureRender = require("./performance/measure-render");
1164
1165
  var _measure = require("./performance/measure");
@@ -1200,10 +1201,24 @@ var _wrapSelectionIn = require("./wrap-selection-in");
1200
1201
  var _calculateToolbarPosition = require("./calculate-toolbar-position");
1201
1202
  var _nodesByLocalIds = require("./nodes-by-localIds");
1202
1203
  var _pageElementCounts = require("./page-element-counts");
1204
+ /**
1205
+ * @private
1206
+ * @deprecated
1207
+ *
1208
+ * Use entry-point `@atlaskit/editor-common/utils/analytics` instead
1209
+ */
1210
+
1203
1211
  /**
1204
1212
  * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
1205
1213
  */
1206
1214
 
1215
+ /**
1216
+ * @private
1217
+ * @deprecated
1218
+ *
1219
+ * Private API do not use
1220
+ */
1221
+
1207
1222
  // prosemirror-history does not export its plugin key
1208
1223
  var pmHistoryPluginKey = exports.pmHistoryPluginKey = 'history$';
1209
1224
  function shallowEqual() {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -6,6 +6,7 @@ export { PanelSuccessIcon } from './shared/PanelSuccessIcon';
6
6
  export { PanelNoteIcon } from './shared/PanelNoteIcon';
7
7
  export { BorderIcon } from './shared/BorderIcon';
8
8
  export { SteppedRainbowIconDecoration } from './shared/SteppedRainbowIconDecoration';
9
+ export { DynamicStrokeIconDecoration } from './shared/DynamicStrokeIconDecoration';
9
10
  export const IconTable = Loadable({
10
11
  loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-table" */'../icons/shared/table').then(module => module.default),
11
12
  loading: () => null