@atlaskit/editor-common 130.0.0 → 130.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/messages/snippets.js +1 -1
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/quick-insert/CompactQuickInsertMenuItem.compiled.css +3 -0
  5. package/dist/cjs/quick-insert/CompactQuickInsertMenuItem.js +17 -2
  6. package/dist/cjs/quick-insert/ElementBrowserQuickInsertMenuItem.compiled.css +3 -1
  7. package/dist/cjs/quick-insert/ElementBrowserQuickInsertMenuItem.js +17 -6
  8. package/dist/cjs/quick-insert/get-matching-quick-insert-components.js +20 -10
  9. package/dist/cjs/quick-insert/messages.js +1 -1
  10. package/dist/cjs/ui/DropList/index.js +1 -1
  11. package/dist/cjs/ui/ResizerLegacy/index.js +5 -1
  12. package/dist/es2019/messages/snippets.js +1 -1
  13. package/dist/es2019/monitoring/error.js +1 -1
  14. package/dist/es2019/quick-insert/CompactQuickInsertMenuItem.compiled.css +3 -0
  15. package/dist/es2019/quick-insert/CompactQuickInsertMenuItem.js +17 -2
  16. package/dist/es2019/quick-insert/ElementBrowserQuickInsertMenuItem.compiled.css +3 -1
  17. package/dist/es2019/quick-insert/ElementBrowserQuickInsertMenuItem.js +17 -6
  18. package/dist/es2019/quick-insert/get-matching-quick-insert-components.js +16 -6
  19. package/dist/es2019/quick-insert/messages.js +1 -1
  20. package/dist/es2019/ui/DropList/index.js +1 -1
  21. package/dist/es2019/ui/ResizerLegacy/index.js +5 -1
  22. package/dist/esm/messages/snippets.js +1 -1
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/quick-insert/CompactQuickInsertMenuItem.compiled.css +3 -0
  25. package/dist/esm/quick-insert/CompactQuickInsertMenuItem.js +17 -2
  26. package/dist/esm/quick-insert/ElementBrowserQuickInsertMenuItem.compiled.css +3 -1
  27. package/dist/esm/quick-insert/ElementBrowserQuickInsertMenuItem.js +17 -6
  28. package/dist/esm/quick-insert/get-matching-quick-insert-components.js +20 -10
  29. package/dist/esm/quick-insert/messages.js +1 -1
  30. package/dist/esm/ui/DropList/index.js +1 -1
  31. package/dist/esm/ui/ResizerLegacy/index.js +5 -1
  32. package/dist/types/card/cardOptions.d.ts +5 -0
  33. package/dist/types/quick-insert/CompactQuickInsertMenuItem.d.ts +4 -0
  34. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 130.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`dd269d6b8b56d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd269d6b8b56d) -
8
+ Add optional `experimentalConfigurationOptions?: Record<string, boolean>` to `CardOptions` from
9
+ `@atlaskit/editor-common/card/cardOptions`, inherited by `@atlaskit/editor-plugin-card` options.
10
+
11
+ Setting `platform_sl_3p_preauth_value_modal_killswitch` to `false` in these options prevents the
12
+ editor from mounting the pre-auth modal listener. A value of `true`, an omitted key, or omitted
13
+ options preserve existing eligibility and rollout behavior; they do not override the kill switch
14
+ or experiment allocation. Unrelated keys are ignored by this feature.
15
+
16
+ ### Patch Changes
17
+
18
+ - [`3006f5a69e3d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3006f5a69e3d5) -
19
+ Lower sticky table headers, masks, and dependent controls below the agent control under the
20
+ platform_editor_sticky_headers_zindex experiment.
21
+ - [`bbbf2f64617dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bbbf2f64617dd) -
22
+ Slash menu visual tweaks under platform_editor_slash_command: show View more when a search has
23
+ matches, use color.icon for item icons, rename the Other section to Other elements, and use
24
+ sentence case for the Block template gallery title
25
+ - Updated dependencies
26
+
3
27
  ## 130.0.0
4
28
 
5
29
  ### Major Changes
@@ -28,7 +28,7 @@ var templateGalleryMessages = exports.templateGalleryMessages = (0, _reactIntl.d
28
28
  },
29
29
  templateGalleryTitle: {
30
30
  id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
31
- defaultMessage: 'Block Template Gallery',
31
+ defaultMessage: 'Block template gallery',
32
32
  description: 'Title for the block template gallery quick insert item'
33
33
  }
34
34
  });
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "129.1.2";
30
+ var packageVersion = "130.0.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -13,6 +13,7 @@
13
13
  ._1e0c1txw{display:flex}
14
14
  ._1o9zidpf{flex-shrink:0}
15
15
  ._1o9zkb7n{flex-shrink:1}
16
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
16
17
  ._1reo15vq{overflow-x:hidden}
17
18
  ._1tke1tcg{min-height:24px}
18
19
  ._1ul91tcg{min-width:24px}
@@ -22,4 +23,6 @@
22
23
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
23
24
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
24
25
  ._i0dlidpf{flex-basis:0}
26
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
27
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
25
28
  ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -24,6 +24,17 @@ var styles = {
24
24
  iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
25
25
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
26
26
  };
27
+ var iconColorStyles = null;
28
+
29
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
30
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
31
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
32
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
33
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
34
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
35
+ var pinnedIconColorResetStyles = null;
36
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
37
+
27
38
  var itemStyles = (0, _primitives.xcss)({
28
39
  alignItems: 'center',
29
40
  backgroundColor: 'elevation.surface.overlay',
@@ -137,11 +148,15 @@ var CompactQuickInsertMenuItem = exports.CompactQuickInsertMenuItem = function C
137
148
  xcss: isDisabled ? disabledItemStyles : isSelected ? selectedItemStyles : itemStyles
138
149
  }, wrappedIcon && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
139
150
  xcss: styles.iconContainer
140
- }, wrappedIcon), /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
151
+ }, /*#__PURE__*/_react.default.createElement("span", {
152
+ className: (0, _runtime.ax)(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
153
+ }, wrappedIcon)), /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
141
154
  alignBlock: "center",
142
155
  spread: "space-between",
143
156
  xcss: styles.content
144
- }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/_react.default.createElement(_compiled.Text, null, title), shortcut && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
157
+ }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/_react.default.createElement(_compiled.Text, {
158
+ color: isDisabled ? 'color.text.disabled' : 'color.text'
159
+ }, title), shortcut && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
145
160
  as: "span",
146
161
  xcss: styles.shortcut
147
162
  }, shortcut))), shouldRenderPreview && referenceElement && /*#__PURE__*/_react.default.createElement(_QuickInsertHoverPreview.QuickInsertHoverPreview, {
@@ -1 +1,3 @@
1
- ._syazdgkc{color:var(--ds-icon-subtle,#505258)}
1
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
2
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
3
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
@@ -100,6 +100,16 @@ var iconLargeStyles = (0, _primitives.xcss)({
100
100
  width: '40px'
101
101
  });
102
102
  var iconColorStyles = null;
103
+
104
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
105
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
106
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
107
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
108
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
109
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
110
+ var pinnedIconColorResetStyles = null;
111
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
112
+
103
113
  var shortcutStyles = (0, _primitives.xcss)({
104
114
  backgroundColor: 'color.background.neutral',
105
115
  borderRadius: 'radius.small',
@@ -132,6 +142,11 @@ var ElementBrowserQuickInsertMenuItem = exports.ElementBrowserQuickInsertMenuIte
132
142
  var itemStyles = (0, _react.useMemo)(function () {
133
143
  return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles];
134
144
  }, [isDisabled, isSelected]);
145
+
146
+ // Disabled items keep the dimmed colour inherited from the item.
147
+ var icon = iconBefore ? /*#__PURE__*/_react.default.createElement("span", {
148
+ className: (0, _runtime.ax)(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
149
+ }, iconBefore) : iconBefore;
135
150
  return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
136
151
  "aria-label": ariaLabel,
137
152
  "aria-selected": isSelected,
@@ -145,11 +160,7 @@ var ElementBrowserQuickInsertMenuItem = exports.ElementBrowserQuickInsertMenuIte
145
160
  xcss: itemStyles
146
161
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
147
162
  xcss: (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') ? iconLargeStyles : iconStyles
148
- }, /*#__PURE__*/_react.default.createElement("span", {
149
- className: (0, _runtime.ax)(["_syazdgkc"])
150
- }, iconBefore)) : iconBefore ? /*#__PURE__*/_react.default.createElement("span", {
151
- className: (0, _runtime.ax)(["_syazdgkc"])
152
- }, iconBefore) : null, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
163
+ }, icon) : icon, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
153
164
  space: "space.050",
154
165
  grow: "fill"
155
166
  }, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
@@ -157,7 +168,7 @@ var ElementBrowserQuickInsertMenuItem = exports.ElementBrowserQuickInsertMenuIte
157
168
  spread: "space-between",
158
169
  space: "space.100"
159
170
  }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/_react.default.createElement(_primitives.Text, {
160
- color: "color.text",
171
+ color: isDisabled ? 'color.text.disabled' : 'color.text',
161
172
  maxLines: 1,
162
173
  size: "medium",
163
174
  weight: "medium"
@@ -47,7 +47,7 @@ var getSearchResults = function getSearchResults(matches) {
47
47
  * no empty-query path so browse behavior remains owned by buildQuickInsertMenuModel.
48
48
  */
49
49
  var getMatchingQuickInsertComponents = exports.getMatchingQuickInsertComponents = function getMatchingQuickInsertComponents(_ref4) {
50
- var _childrenMap$get2;
50
+ var _childrenMap$get;
51
51
  var components = _ref4.components,
52
52
  rootComponent = _ref4.rootComponent,
53
53
  query = _ref4.query,
@@ -139,7 +139,9 @@ var getMatchingQuickInsertComponents = exports.getMatchingQuickInsertComponents
139
139
  _iterator2.f();
140
140
  }
141
141
  var sections = Array.from(sectionsByKey.values());
142
- if (sections.length > 0 || query === '') {
142
+ // An empty query is browse mode: `buildQuickInsertMenuModel` supplies the footer there,
143
+ // so this search model must not add a second one.
144
+ if (query === '') {
143
145
  return {
144
146
  footer: undefined,
145
147
  root: root,
@@ -147,21 +149,29 @@ var getMatchingQuickInsertComponents = exports.getMatchingQuickInsertComponents
147
149
  sections: sections
148
150
  };
149
151
  }
152
+ var footerSection = topLevelChildren.find(function (section) {
153
+ return section.type === 'menu-section' && (0, _isMenuFooterSectionKey.isMenuFooterSectionKey)(section.key) && (0, _surfaceRenderer.willComponentRender)(section, childrenMap, surfaceContext);
154
+ });
155
+ var footer = footerSection ? ((_childrenMap$get = childrenMap.get((0, _surfaceRenderer.getComponentIdentity)(footerSection))) !== null && _childrenMap$get !== void 0 ? _childrenMap$get : []).find(function (child) {
156
+ return child.type === 'menu-item' && (0, _surfaceRenderer.willComponentRender)(child, childrenMap, surfaceContext);
157
+ }) : undefined;
158
+ if (sections.length > 0) {
159
+ return {
160
+ footer: footer,
161
+ root: root,
162
+ searchResults: searchResults,
163
+ sections: sections
164
+ };
165
+ }
150
166
  var fallbackItem = topLevelChildren.filter(function (section) {
151
167
  return section.type === 'menu-section' && !(0, _isMenuFooterSectionKey.isMenuFooterSectionKey)(section.key) && (0, _surfaceRenderer.willComponentRender)(section, childrenMap, surfaceContext);
152
168
  }).flatMap(function (section) {
153
- var _childrenMap$get;
154
- return (_childrenMap$get = childrenMap.get((0, _surfaceRenderer.getComponentIdentity)(section))) !== null && _childrenMap$get !== void 0 ? _childrenMap$get : [];
169
+ var _childrenMap$get2;
170
+ return (_childrenMap$get2 = childrenMap.get((0, _surfaceRenderer.getComponentIdentity)(section))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : [];
155
171
  }).find(function (component) {
156
172
  return component.type === _keys.ASK_ROVO_MENU_ITEM.type && component.key === _keys.ASK_ROVO_MENU_ITEM.key && (0, _surfaceRenderer.willComponentRender)(component, childrenMap, surfaceContext);
157
173
  });
158
174
  var fallbackItems = fallbackItem ? [fallbackItem] : [];
159
- var footerSection = topLevelChildren.find(function (section) {
160
- return section.type === 'menu-section' && (0, _isMenuFooterSectionKey.isMenuFooterSectionKey)(section.key) && (0, _surfaceRenderer.willComponentRender)(section, childrenMap, surfaceContext);
161
- });
162
- var footer = footerSection ? ((_childrenMap$get2 = childrenMap.get((0, _surfaceRenderer.getComponentIdentity)(footerSection))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : []).find(function (child) {
163
- return child.type === 'menu-item' && (0, _surfaceRenderer.willComponentRender)(child, childrenMap, surfaceContext);
164
- }) : undefined;
165
175
  return {
166
176
  fallbackItems: fallbackItems,
167
177
  footer: footer,
@@ -138,7 +138,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
138
138
  },
139
139
  categoryOther: {
140
140
  id: 'editor-common.quick-insert.categoryOther',
141
- defaultMessage: 'Other',
141
+ defaultMessage: 'Other elements',
142
142
  description: 'Other items in the Quick Insert menu.'
143
143
  },
144
144
  previewAttributionBy: {
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "129.1.2";
27
+ var packageVersion = "130.0.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -15,6 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
  var _classnames = _interopRequireDefault(require("classnames"));
16
16
  var _reResizable = require("re-resizable");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
18
19
  var _analytics = require("../../analytics");
19
20
  var _styles = require("../../styles");
20
21
  var _utils = require("../../utils");
@@ -164,11 +165,14 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
164
165
  handleComponentFunc = _this$props4.handleComponentFunc,
165
166
  handleStyles = _this$props4.handleStyles;
166
167
  var isResizing = this.state.isResizing;
168
+
169
+ // Tables supply the lower value; media outside tables retains its existing layer.
170
+ var resizeHandleZIndex = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_sticky_headers_zindex') ? "var(--ak-editor-table-resize-handle-z-index, ".concat(_editorSharedStyles.akRichMediaResizeZIndex, ")") : _editorSharedStyles.akRichMediaResizeZIndex;
167
171
  _handleSides.handleSides.forEach(function (side) {
168
172
  handles[side] = "richMedia-resize-handle-".concat(side);
169
173
  baseHandleStyles[side] = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
170
174
  width: '24px'
171
- }, side, "".concat(-13 - innerPadding, "px")), "zIndex", _editorSharedStyles.akRichMediaResizeZIndex), "pointerEvents", 'auto');
175
+ }, side, "".concat(-13 - innerPadding, "px")), "zIndex", resizeHandleZIndex), "pointerEvents", 'auto');
172
176
  var sideHandleComponent = handleComponentFunc && handleComponentFunc(side);
173
177
  if (sideHandleComponent) {
174
178
  handleComponent[side] = sideHandleComponent;
@@ -22,7 +22,7 @@ export const templateGalleryMessages = defineMessages({
22
22
  },
23
23
  templateGalleryTitle: {
24
24
  id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
25
- defaultMessage: 'Block Template Gallery',
25
+ defaultMessage: 'Block template gallery',
26
26
  description: 'Title for the block template gallery quick insert item'
27
27
  }
28
28
  });
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "129.1.2";
16
+ const packageVersion = "130.0.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -13,6 +13,7 @@
13
13
  ._1e0c1txw{display:flex}
14
14
  ._1o9zidpf{flex-shrink:0}
15
15
  ._1o9zkb7n{flex-shrink:1}
16
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
16
17
  ._1reo15vq{overflow-x:hidden}
17
18
  ._1tke1tcg{min-height:24px}
18
19
  ._1ul91tcg{min-width:24px}
@@ -22,4 +23,6 @@
22
23
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
23
24
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
24
25
  ._i0dlidpf{flex-basis:0}
26
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
27
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
25
28
  ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -14,6 +14,17 @@ const styles = {
14
14
  iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
15
15
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
16
16
  };
17
+ const iconColorStyles = null;
18
+
19
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
20
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
21
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
22
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
23
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
24
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
25
+ const pinnedIconColorResetStyles = null;
26
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
27
+
17
28
  const itemStyles = xcss({
18
29
  alignItems: 'center',
19
30
  backgroundColor: 'elevation.surface.overlay',
@@ -123,11 +134,15 @@ export const CompactQuickInsertMenuItem = ({
123
134
  xcss: isDisabled ? disabledItemStyles : isSelected ? selectedItemStyles : itemStyles
124
135
  }, wrappedIcon && /*#__PURE__*/React.createElement(Box, {
125
136
  xcss: styles.iconContainer
126
- }, wrappedIcon), /*#__PURE__*/React.createElement(Inline, {
137
+ }, /*#__PURE__*/React.createElement("span", {
138
+ className: ax(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
139
+ }, wrappedIcon)), /*#__PURE__*/React.createElement(Inline, {
127
140
  alignBlock: "center",
128
141
  spread: "space-between",
129
142
  xcss: styles.content
130
- }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, null, title), shortcut && /*#__PURE__*/React.createElement(Box, {
143
+ }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, {
144
+ color: isDisabled ? 'color.text.disabled' : 'color.text'
145
+ }, title), shortcut && /*#__PURE__*/React.createElement(Box, {
131
146
  as: "span",
132
147
  xcss: styles.shortcut
133
148
  }, shortcut))), shouldRenderPreview && referenceElement && /*#__PURE__*/React.createElement(QuickInsertHoverPreview, {
@@ -1 +1,3 @@
1
- ._syazdgkc{color:var(--ds-icon-subtle,#505258)}
1
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
2
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
3
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
@@ -92,6 +92,16 @@ const iconLargeStyles = xcss({
92
92
  width: '40px'
93
93
  });
94
94
  const iconColorStyles = null;
95
+
96
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
97
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
98
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
99
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
100
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
101
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
102
+ const pinnedIconColorResetStyles = null;
103
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
104
+
95
105
  const shortcutStyles = xcss({
96
106
  backgroundColor: 'color.background.neutral',
97
107
  borderRadius: 'radius.small',
@@ -124,6 +134,11 @@ export const ElementBrowserQuickInsertMenuItem = ({
124
134
  const itemDescription = description !== null && description !== void 0 ? description : item === null || item === void 0 ? void 0 : item.description;
125
135
  const handleClick = useQuickInsertMenuItemSelection(onSelect);
126
136
  const itemStyles = useMemo(() => [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isExperimentEnabled('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles], [isDisabled, isSelected]);
137
+
138
+ // Disabled items keep the dimmed colour inherited from the item.
139
+ const icon = iconBefore ? /*#__PURE__*/React.createElement("span", {
140
+ className: ax(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
141
+ }, iconBefore) : iconBefore;
127
142
  return /*#__PURE__*/React.createElement(Pressable, {
128
143
  "aria-label": ariaLabel,
129
144
  "aria-selected": isSelected,
@@ -137,11 +152,7 @@ export const ElementBrowserQuickInsertMenuItem = ({
137
152
  xcss: itemStyles
138
153
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
139
154
  xcss: isExperimentEnabled('platform_editor_slash_command') ? iconLargeStyles : iconStyles
140
- }, /*#__PURE__*/React.createElement("span", {
141
- className: ax(["_syazdgkc"])
142
- }, iconBefore)) : iconBefore ? /*#__PURE__*/React.createElement("span", {
143
- className: ax(["_syazdgkc"])
144
- }, iconBefore) : null, /*#__PURE__*/React.createElement(Stack, {
155
+ }, icon) : icon, /*#__PURE__*/React.createElement(Stack, {
145
156
  space: "space.050",
146
157
  grow: "fill"
147
158
  }, /*#__PURE__*/React.createElement(Inline, {
@@ -149,7 +160,7 @@ export const ElementBrowserQuickInsertMenuItem = ({
149
160
  spread: "space-between",
150
161
  space: "space.100"
151
162
  }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, {
152
- color: "color.text",
163
+ color: isDisabled ? 'color.text.disabled' : 'color.text',
153
164
  maxLines: 1,
154
165
  size: "medium",
155
166
  weight: "medium"
@@ -33,7 +33,7 @@ export const getMatchingQuickInsertComponents = ({
33
33
  formatMessage,
34
34
  surfaceContext
35
35
  }) => {
36
- var _childrenMap$get3;
36
+ var _childrenMap$get2;
37
37
  const {
38
38
  childrenMap,
39
39
  root,
@@ -91,7 +91,9 @@ export const getMatchingQuickInsertComponents = ({
91
91
  }
92
92
  }
93
93
  const sections = Array.from(sectionsByKey.values());
94
- if (sections.length > 0 || query === '') {
94
+ // An empty query is browse mode: `buildQuickInsertMenuModel` supplies the footer there,
95
+ // so this search model must not add a second one.
96
+ if (query === '') {
95
97
  return {
96
98
  footer: undefined,
97
99
  root,
@@ -99,13 +101,21 @@ export const getMatchingQuickInsertComponents = ({
99
101
  sections
100
102
  };
101
103
  }
104
+ const footerSection = topLevelChildren.find(section => section.type === 'menu-section' && isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext));
105
+ const footer = footerSection ? ((_childrenMap$get2 = childrenMap.get(getComponentIdentity(footerSection))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : []).find(child => child.type === 'menu-item' && willComponentRender(child, childrenMap, surfaceContext)) : undefined;
106
+ if (sections.length > 0) {
107
+ return {
108
+ footer,
109
+ root,
110
+ searchResults,
111
+ sections
112
+ };
113
+ }
102
114
  const fallbackItem = topLevelChildren.filter(section => section.type === 'menu-section' && !isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext)).flatMap(section => {
103
- var _childrenMap$get2;
104
- return (_childrenMap$get2 = childrenMap.get(getComponentIdentity(section))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : [];
115
+ var _childrenMap$get3;
116
+ return (_childrenMap$get3 = childrenMap.get(getComponentIdentity(section))) !== null && _childrenMap$get3 !== void 0 ? _childrenMap$get3 : [];
105
117
  }).find(component => component.type === ASK_ROVO_MENU_ITEM.type && component.key === ASK_ROVO_MENU_ITEM.key && willComponentRender(component, childrenMap, surfaceContext));
106
118
  const fallbackItems = fallbackItem ? [fallbackItem] : [];
107
- const footerSection = topLevelChildren.find(section => section.type === 'menu-section' && isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext));
108
- const footer = footerSection ? ((_childrenMap$get3 = childrenMap.get(getComponentIdentity(footerSection))) !== null && _childrenMap$get3 !== void 0 ? _childrenMap$get3 : []).find(child => child.type === 'menu-item' && willComponentRender(child, childrenMap, surfaceContext)) : undefined;
109
119
  return {
110
120
  fallbackItems,
111
121
  footer,
@@ -132,7 +132,7 @@ export const messages = defineMessages({
132
132
  },
133
133
  categoryOther: {
134
134
  id: 'editor-common.quick-insert.categoryOther',
135
- defaultMessage: 'Other',
135
+ defaultMessage: 'Other elements',
136
136
  description: 'Other items in the Quick Insert menu.'
137
137
  },
138
138
  previewAttributionBy: {
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "129.1.2";
17
+ const packageVersion = "130.0.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { Resizable } from 're-resizable';
5
5
  import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
6
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
7
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
7
8
  import { richMediaClassName } from '../../styles';
8
9
  import { gridTypeForLayout } from '../../utils';
@@ -146,12 +147,15 @@ export default class Resizer extends React.Component {
146
147
  const {
147
148
  isResizing
148
149
  } = this.state;
150
+
151
+ // Tables supply the lower value; media outside tables retains its existing layer.
152
+ const resizeHandleZIndex = isExperimentEnabled('platform_editor_sticky_headers_zindex') ? `var(--ak-editor-table-resize-handle-z-index, ${akRichMediaResizeZIndex})` : akRichMediaResizeZIndex;
149
153
  handleSides.forEach(side => {
150
154
  handles[side] = `richMedia-resize-handle-${side}`;
151
155
  baseHandleStyles[side] = {
152
156
  width: '24px',
153
157
  [side]: `${-13 - innerPadding}px`,
154
- zIndex: akRichMediaResizeZIndex,
158
+ zIndex: resizeHandleZIndex,
155
159
  pointerEvents: 'auto'
156
160
  };
157
161
  const sideHandleComponent = handleComponentFunc && handleComponentFunc(side);
@@ -22,7 +22,7 @@ export var templateGalleryMessages = defineMessages({
22
22
  },
23
23
  templateGalleryTitle: {
24
24
  id: 'editor-plugin-snippets.snippetsPlugin.templateGalleryTitle',
25
- defaultMessage: 'Block Template Gallery',
25
+ defaultMessage: 'Block template gallery',
26
26
  description: 'Title for the block template gallery quick insert item'
27
27
  }
28
28
  });
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "129.1.2";
22
+ var packageVersion = "130.0.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -13,6 +13,7 @@
13
13
  ._1e0c1txw{display:flex}
14
14
  ._1o9zidpf{flex-shrink:0}
15
15
  ._1o9zkb7n{flex-shrink:1}
16
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
16
17
  ._1reo15vq{overflow-x:hidden}
17
18
  ._1tke1tcg{min-height:24px}
18
19
  ._1ul91tcg{min-width:24px}
@@ -22,4 +23,6 @@
22
23
  ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
23
24
  ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
24
25
  ._i0dlidpf{flex-basis:0}
26
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
27
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
25
28
  ._syazazsu{color:var(--ds-text-subtle,#505258)}
@@ -15,6 +15,17 @@ var styles = {
15
15
  iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
16
16
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
17
17
  };
18
+ var iconColorStyles = null;
19
+
20
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
21
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
22
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
23
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
24
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
25
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
26
+ var pinnedIconColorResetStyles = null;
27
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
28
+
18
29
  var itemStyles = xcss({
19
30
  alignItems: 'center',
20
31
  backgroundColor: 'elevation.surface.overlay',
@@ -128,11 +139,15 @@ export var CompactQuickInsertMenuItem = function CompactQuickInsertMenuItem(_ref
128
139
  xcss: isDisabled ? disabledItemStyles : isSelected ? selectedItemStyles : itemStyles
129
140
  }, wrappedIcon && /*#__PURE__*/React.createElement(Box, {
130
141
  xcss: styles.iconContainer
131
- }, wrappedIcon), /*#__PURE__*/React.createElement(Inline, {
142
+ }, /*#__PURE__*/React.createElement("span", {
143
+ className: ax(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
144
+ }, wrappedIcon)), /*#__PURE__*/React.createElement(Inline, {
132
145
  alignBlock: "center",
133
146
  spread: "space-between",
134
147
  xcss: styles.content
135
- }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, null, title), shortcut && /*#__PURE__*/React.createElement(Box, {
148
+ }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, {
149
+ color: isDisabled ? 'color.text.disabled' : 'color.text'
150
+ }, title), shortcut && /*#__PURE__*/React.createElement(Box, {
136
151
  as: "span",
137
152
  xcss: styles.shortcut
138
153
  }, shortcut))), shouldRenderPreview && referenceElement && /*#__PURE__*/React.createElement(QuickInsertHoverPreview, {
@@ -1 +1,3 @@
1
- ._syazdgkc{color:var(--ds-icon-subtle,#505258)}
1
+ ._1pgcjdj5 [style*="--ds-icon-subtle"]{color:inherit!important}
2
+ ._rpzpjdj5 [style*="--ds-icon-accent-gray"]{color:inherit!important}
3
+ ._syaz1q3r{color:var(--ds-icon,#292a2e)}
@@ -92,6 +92,16 @@ var iconLargeStyles = xcss({
92
92
  width: '40px'
93
93
  });
94
94
  var iconColorStyles = null;
95
+
96
+ // Some icons pin a neutral colour inline (for example the Forge and Spotlight icons use
97
+ // color.icon.subtle or color.icon.accent.gray), which would ignore the colour set by the menu item.
98
+ // Reset only those so every icon follows the menu item (color.icon, or the disabled colour).
99
+ // Do NOT widen this to all icon colours: some icons are intentionally coloured (for example skill
100
+ // and brand icons that use other --ds-icon-accent-* tokens) and must keep their own colour.
101
+ /* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles -- Icons pin their colour with an inline style, which only an !important rule on a descendant selector can override. */
102
+ var pinnedIconColorResetStyles = null;
103
+ /* eslint-enable @atlaskit/design-system/no-unsafe-design-token-usage, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-important-styles */
104
+
95
105
  var shortcutStyles = xcss({
96
106
  backgroundColor: 'color.background.neutral',
97
107
  borderRadius: 'radius.small',
@@ -124,6 +134,11 @@ export var ElementBrowserQuickInsertMenuItem = function ElementBrowserQuickInser
124
134
  var itemStyles = useMemo(function () {
125
135
  return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isExperimentEnabled('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles];
126
136
  }, [isDisabled, isSelected]);
137
+
138
+ // Disabled items keep the dimmed colour inherited from the item.
139
+ var icon = iconBefore ? /*#__PURE__*/React.createElement("span", {
140
+ className: ax(["_rpzpjdj5 _1pgcjdj5", !isDisabled && "_syaz1q3r"])
141
+ }, iconBefore) : iconBefore;
127
142
  return /*#__PURE__*/React.createElement(Pressable, {
128
143
  "aria-label": ariaLabel,
129
144
  "aria-selected": isSelected,
@@ -137,11 +152,7 @@ export var ElementBrowserQuickInsertMenuItem = function ElementBrowserQuickInser
137
152
  xcss: itemStyles
138
153
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
139
154
  xcss: isExperimentEnabled('platform_editor_slash_command') ? iconLargeStyles : iconStyles
140
- }, /*#__PURE__*/React.createElement("span", {
141
- className: ax(["_syazdgkc"])
142
- }, iconBefore)) : iconBefore ? /*#__PURE__*/React.createElement("span", {
143
- className: ax(["_syazdgkc"])
144
- }, iconBefore) : null, /*#__PURE__*/React.createElement(Stack, {
155
+ }, icon) : icon, /*#__PURE__*/React.createElement(Stack, {
145
156
  space: "space.050",
146
157
  grow: "fill"
147
158
  }, /*#__PURE__*/React.createElement(Inline, {
@@ -149,7 +160,7 @@ export var ElementBrowserQuickInsertMenuItem = function ElementBrowserQuickInser
149
160
  spread: "space-between",
150
161
  space: "space.100"
151
162
  }, titleContent !== null && titleContent !== void 0 ? titleContent : /*#__PURE__*/React.createElement(Text, {
152
- color: "color.text",
163
+ color: isDisabled ? 'color.text.disabled' : 'color.text',
153
164
  maxLines: 1,
154
165
  size: "medium",
155
166
  weight: "medium"
@@ -40,7 +40,7 @@ var getSearchResults = function getSearchResults(matches) {
40
40
  * no empty-query path so browse behavior remains owned by buildQuickInsertMenuModel.
41
41
  */
42
42
  export var getMatchingQuickInsertComponents = function getMatchingQuickInsertComponents(_ref4) {
43
- var _childrenMap$get2;
43
+ var _childrenMap$get;
44
44
  var components = _ref4.components,
45
45
  rootComponent = _ref4.rootComponent,
46
46
  query = _ref4.query,
@@ -132,7 +132,9 @@ export var getMatchingQuickInsertComponents = function getMatchingQuickInsertCom
132
132
  _iterator2.f();
133
133
  }
134
134
  var sections = Array.from(sectionsByKey.values());
135
- if (sections.length > 0 || query === '') {
135
+ // An empty query is browse mode: `buildQuickInsertMenuModel` supplies the footer there,
136
+ // so this search model must not add a second one.
137
+ if (query === '') {
136
138
  return {
137
139
  footer: undefined,
138
140
  root: root,
@@ -140,21 +142,29 @@ export var getMatchingQuickInsertComponents = function getMatchingQuickInsertCom
140
142
  sections: sections
141
143
  };
142
144
  }
145
+ var footerSection = topLevelChildren.find(function (section) {
146
+ return section.type === 'menu-section' && isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext);
147
+ });
148
+ var footer = footerSection ? ((_childrenMap$get = childrenMap.get(getComponentIdentity(footerSection))) !== null && _childrenMap$get !== void 0 ? _childrenMap$get : []).find(function (child) {
149
+ return child.type === 'menu-item' && willComponentRender(child, childrenMap, surfaceContext);
150
+ }) : undefined;
151
+ if (sections.length > 0) {
152
+ return {
153
+ footer: footer,
154
+ root: root,
155
+ searchResults: searchResults,
156
+ sections: sections
157
+ };
158
+ }
143
159
  var fallbackItem = topLevelChildren.filter(function (section) {
144
160
  return section.type === 'menu-section' && !isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext);
145
161
  }).flatMap(function (section) {
146
- var _childrenMap$get;
147
- return (_childrenMap$get = childrenMap.get(getComponentIdentity(section))) !== null && _childrenMap$get !== void 0 ? _childrenMap$get : [];
162
+ var _childrenMap$get2;
163
+ return (_childrenMap$get2 = childrenMap.get(getComponentIdentity(section))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : [];
148
164
  }).find(function (component) {
149
165
  return component.type === ASK_ROVO_MENU_ITEM.type && component.key === ASK_ROVO_MENU_ITEM.key && willComponentRender(component, childrenMap, surfaceContext);
150
166
  });
151
167
  var fallbackItems = fallbackItem ? [fallbackItem] : [];
152
- var footerSection = topLevelChildren.find(function (section) {
153
- return section.type === 'menu-section' && isMenuFooterSectionKey(section.key) && willComponentRender(section, childrenMap, surfaceContext);
154
- });
155
- var footer = footerSection ? ((_childrenMap$get2 = childrenMap.get(getComponentIdentity(footerSection))) !== null && _childrenMap$get2 !== void 0 ? _childrenMap$get2 : []).find(function (child) {
156
- return child.type === 'menu-item' && willComponentRender(child, childrenMap, surfaceContext);
157
- }) : undefined;
158
168
  return {
159
169
  fallbackItems: fallbackItems,
160
170
  footer: footer,
@@ -132,7 +132,7 @@ export var messages = defineMessages({
132
132
  },
133
133
  categoryOther: {
134
134
  id: 'editor-common.quick-insert.categoryOther',
135
- defaultMessage: 'Other',
135
+ defaultMessage: 'Other elements',
136
136
  description: 'Other items in the Quick Insert menu.'
137
137
  },
138
138
  previewAttributionBy: {
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "129.1.2";
24
+ var packageVersion = "130.0.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -12,6 +12,7 @@ import React from 'react';
12
12
  import classnames from 'classnames';
13
13
  import { Resizable } from 're-resizable';
14
14
  import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
15
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
15
16
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
16
17
  import { richMediaClassName } from '../../styles';
17
18
  import { gridTypeForLayout } from '../../utils';
@@ -157,11 +158,14 @@ var Resizer = /*#__PURE__*/function (_React$Component) {
157
158
  handleComponentFunc = _this$props4.handleComponentFunc,
158
159
  handleStyles = _this$props4.handleStyles;
159
160
  var isResizing = this.state.isResizing;
161
+
162
+ // Tables supply the lower value; media outside tables retains its existing layer.
163
+ var resizeHandleZIndex = isExperimentEnabled('platform_editor_sticky_headers_zindex') ? "var(--ak-editor-table-resize-handle-z-index, ".concat(akRichMediaResizeZIndex, ")") : akRichMediaResizeZIndex;
160
164
  handleSides.forEach(function (side) {
161
165
  handles[side] = "richMedia-resize-handle-".concat(side);
162
166
  baseHandleStyles[side] = _defineProperty(_defineProperty(_defineProperty({
163
167
  width: '24px'
164
- }, side, "".concat(-13 - innerPadding, "px")), "zIndex", akRichMediaResizeZIndex), "pointerEvents", 'auto');
168
+ }, side, "".concat(-13 - innerPadding, "px")), "zIndex", resizeHandleZIndex), "pointerEvents", 'auto');
165
169
  var sideHandleComponent = handleComponentFunc && handleComponentFunc(side);
166
170
  if (sideHandleComponent) {
167
171
  handleComponent[side] = sideHandleComponent;
@@ -57,6 +57,11 @@ export interface CardOptions {
57
57
  * Component: embed
58
58
  */
59
59
  allowWrapping?: boolean;
60
+ /**
61
+ * Boolean configuration options for experimental Smart Link features.
62
+ * Omitted keys preserve each feature's default behavior.
63
+ */
64
+ experimentalConfigurationOptions?: Record<string, boolean>;
60
65
  /**
61
66
  * A flag to determine whether page is SSRed. Directly render card if page is SSRed
62
67
  * with resolved data and skip lazy load process.
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
1
5
  import React from 'react';
2
6
  import type { QuickInsertMenuItemProps } from './QuickInsertMenuItem';
3
7
  export declare const CompactQuickInsertMenuItem: ({ ariaLabel, description, iconBefore, isDisabled, onSelect, preview, previewIcon, previewImageUrls, shortcut, titleContent, shouldShowPreview, shouldClampPreview, shouldWrapIcon, title, }: QuickInsertMenuItemProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "130.0.0",
3
+ "version": "130.1.0",
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/"
@@ -85,7 +85,7 @@
85
85
  "@atlaskit/task-decision": "^21.12.0",
86
86
  "@atlaskit/teams-app-config": "^3.1.0",
87
87
  "@atlaskit/textfield": "^10.2.0",
88
- "@atlaskit/tmp-editor-statsig": "^227.0.0",
88
+ "@atlaskit/tmp-editor-statsig": "^228.0.0",
89
89
  "@atlaskit/tokens": "^20.4.0",
90
90
  "@atlaskit/tooltip": "^24.4.0",
91
91
  "@atlaskit/width-detector": "^7.2.0",