@atlaskit/editor-common 121.4.2 → 121.5.1

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 (26) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cjs/extensibility/Extension/Extension/index.js +1 -1
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/quick-insert/CompactQuickInsertMenuItem.compiled.css +1 -0
  5. package/dist/cjs/quick-insert/CompactQuickInsertMenuItem.js +8 -4
  6. package/dist/cjs/quick-insert/ElementBrowserQuickInsertMenuItem.js +17 -4
  7. package/dist/cjs/safe-plugin/index.js +1 -2
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/es2019/extensibility/Extension/Extension/index.js +1 -1
  10. package/dist/es2019/monitoring/error.js +1 -1
  11. package/dist/es2019/quick-insert/CompactQuickInsertMenuItem.compiled.css +1 -0
  12. package/dist/es2019/quick-insert/CompactQuickInsertMenuItem.js +7 -3
  13. package/dist/es2019/quick-insert/ElementBrowserQuickInsertMenuItem.js +16 -3
  14. package/dist/es2019/safe-plugin/index.js +1 -2
  15. package/dist/es2019/ui/DropList/index.js +1 -1
  16. package/dist/esm/extensibility/Extension/Extension/index.js +1 -1
  17. package/dist/esm/monitoring/error.js +1 -1
  18. package/dist/esm/quick-insert/CompactQuickInsertMenuItem.compiled.css +1 -0
  19. package/dist/esm/quick-insert/CompactQuickInsertMenuItem.js +8 -4
  20. package/dist/esm/quick-insert/ElementBrowserQuickInsertMenuItem.js +17 -4
  21. package/dist/esm/safe-plugin/index.js +1 -2
  22. package/dist/esm/ui/DropList/index.js +1 -1
  23. package/dist/types/analytics/types/sync-block-events.d.ts +4 -2
  24. package/dist/types/collab/agent-edit-chrome.d.ts +21 -0
  25. package/dist/types/provider-factory/card-provider.d.ts +1 -1
  26. package/package.json +6 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 121.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`df4b53d8f3591`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df4b53d8f3591) -
8
+ Clean up feature gate `platform_editor_native_anchor_patch_3`
9
+ - Updated dependencies
10
+
11
+ ## 121.5.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`ade780c7a1024`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ade780c7a1024) -
16
+ Consolidate the collab/BE-streamed agent telepointer onto the shared redesigned TelepointerAvatar
17
+ (EDITOR-8893). The agent-edit-chrome producer now resolves presentation via the same
18
+ platform_editor_agent_telepointer_redesign experiment and resolveTelepointerPresentation helper
19
+ used by the frontend in-editor-direct-streaming path, replacing the old id-only avatar gated on
20
+ platform_editor_agent_mentions_telepointer_avatar.
21
+
22
+ ### Patch Changes
23
+
24
+ - [`5917191a3107d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5917191a3107d) -
25
+ Clean up feature gate `platform_fix_macro_renders_in_layouts`
26
+ - [`b12eed2cd2633`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b12eed2cd2633) -
27
+ Add node type analytics for non-empty synced block conversions behind the
28
+ platform_editor_sync_block_node_types experiment.
29
+ - Updated dependencies
30
+
3
31
  ## 121.4.2
4
32
 
5
33
  ### Patch Changes
@@ -187,7 +187,7 @@ function ExtensionWithPluginState(props) {
187
187
  className: overflowClassNames,
188
188
  css: [
189
189
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
190
- _styles2.overflowWrapperStyles, (0, _fg.fg)('platform_fix_macro_renders_in_layouts') && containerStyle]
190
+ _styles2.overflowWrapperStyles, containerStyle]
191
191
  }, (0, _react2.jsx)("div", {
192
192
  className: 'extension-overlay',
193
193
  css: _styles.overlay
@@ -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 = "121.4.2";
30
+ var packageVersion = "121.5.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -1,5 +1,6 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
4
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
@@ -20,6 +20,7 @@ var styles = {
20
20
  iconContainer: "_4cvr1h6o _1e0c1txw _1o9zidpf _1bah1h6o _1tke1tcg _1ul91tcg",
21
21
  content: "_16jlkb7n _1o9zkb7n _i0dlidpf _1ul9idpf",
22
22
  icon: "_2rko1qi0 _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
23
+ iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
23
24
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
24
25
  };
25
26
  var itemStyles = (0, _primitives.xcss)({
@@ -93,14 +94,14 @@ var CompactQuickInsertMenuItem = exports.CompactQuickInsertMenuItem = function C
93
94
  id = _ref2.id,
94
95
  isSelected = _ref2.isSelected;
95
96
  var handleClick = (0, _quickInsertMenuItemUtils.useQuickInsertMenuItemSelection)(onSelect);
96
- var wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
97
- xcss: styles.icon
98
- }, iconBefore) : iconBefore;
99
97
  if (!(0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command')) {
98
+ var _wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
99
+ xcss: styles.icon
100
+ }, iconBefore) : iconBefore;
100
101
  return /*#__PURE__*/_react.default.createElement(_buttonItem.default, {
101
102
  "aria-label": ariaLabel,
102
103
  "aria-selected": isSelected,
103
- iconBefore: wrappedIcon,
104
+ iconBefore: _wrappedIcon,
104
105
  id: id,
105
106
  isDisabled: isDisabled,
106
107
  isSelected: isSelected,
@@ -114,6 +115,9 @@ var CompactQuickInsertMenuItem = exports.CompactQuickInsertMenuItem = function C
114
115
  xcss: styles.shortcut
115
116
  }, shortcut)));
116
117
  }
118
+ var wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
119
+ xcss: styles.iconLarge
120
+ }, iconBefore) : iconBefore;
117
121
  return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
118
122
  "aria-label": ariaLabel,
119
123
  "aria-selected": isSelected,
@@ -83,6 +83,20 @@ var iconStyles = (0, _primitives.xcss)({
83
83
  overflow: 'hidden',
84
84
  width: '40px'
85
85
  });
86
+ var iconLargeStyles = (0, _primitives.xcss)({
87
+ alignItems: 'center',
88
+ backgroundColor: 'elevation.surface.overlay',
89
+ borderColor: 'color.border',
90
+ borderRadius: 'radius.large',
91
+ borderStyle: 'solid',
92
+ borderWidth: 'border.width',
93
+ display: 'flex',
94
+ flexShrink: 0,
95
+ height: '40px',
96
+ justifyContent: 'center',
97
+ overflow: 'hidden',
98
+ width: '40px'
99
+ });
86
100
  var descriptionStyles = (0, _primitives.xcss)({
87
101
  color: 'color.text.subtle'
88
102
  });
@@ -114,10 +128,9 @@ var ElementBrowserQuickInsertMenuItem = exports.ElementBrowserQuickInsertMenuIte
114
128
  isSelected = _ref2.isSelected;
115
129
  var itemDescription = description !== null && description !== void 0 ? description : item === null || item === void 0 ? void 0 : item.description;
116
130
  var handleClick = (0, _quickInsertMenuItemUtils.useQuickInsertMenuItemSelection)(onSelect);
117
- var isSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command');
118
131
  var itemStyles = (0, _react.useMemo)(function () {
119
- return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isSlashCommandEnabled && !isDisabled && !isSelected && hoveredItemStyles];
120
- }, [isDisabled, isSelected, isSlashCommandEnabled]);
132
+ return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles];
133
+ }, [isDisabled, isSelected]);
121
134
  return /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
122
135
  "aria-label": ariaLabel,
123
136
  "aria-selected": isSelected,
@@ -129,7 +142,7 @@ var ElementBrowserQuickInsertMenuItem = exports.ElementBrowserQuickInsertMenuIte
129
142
  ,
130
143
  xcss: itemStyles
131
144
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/_react.default.createElement(_primitives.Box, {
132
- xcss: iconStyles
145
+ xcss: (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') ? iconLargeStyles : iconStyles
133
146
  }, iconBefore) : iconBefore, /*#__PURE__*/_react.default.createElement(_primitives.Stack, {
134
147
  space: "space.050",
135
148
  grow: "fill"
@@ -14,7 +14,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
14
14
  var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var _state = require("@atlaskit/editor-prosemirror/state");
17
- var _fg = require("@atlaskit/platform-feature-flags/fg");
18
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
18
  var _isSsr = require("../core-utils/is-ssr");
20
19
  var _nodeAnchorProvider = require("../node-anchor/node-anchor-provider");
@@ -103,7 +102,7 @@ var wrapGetPosExceptions = function wrapGetPosExceptions(spec) {
103
102
  var result = Reflect.apply(target, thisArg, [node, view, safeGetPos].concat((0, _toConsumableArray2.default)(more)));
104
103
  if ((result === null || result === void 0 ? void 0 : result.dom) instanceof HTMLElement ||
105
104
  // SSR result?.dom is not an instance of HTMLElement, but we still want to attach metadata to it
106
- (0, _isSsr.isSSR)() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom) && (0, _fg.fg)('platform_editor_native_anchor_patch_3')) {
105
+ (0, _isSsr.isSSR)() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom)) {
107
106
  var _nodeIdProvider;
108
107
  // we only attach metadata to the dom if its position is known
109
108
  var pos = safeGetPos();
@@ -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 = "121.4.2";
27
+ var packageVersion = "121.5.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -183,7 +183,7 @@ function ExtensionWithPluginState(props) {
183
183
  className: overflowClassNames,
184
184
  css: [
185
185
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
186
- overflowWrapperStyles, fg('platform_fix_macro_renders_in_layouts') && containerStyle]
186
+ overflowWrapperStyles, containerStyle]
187
187
  }, jsx("div", {
188
188
  className: 'extension-overlay',
189
189
  css: overlay
@@ -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 = "121.4.2";
16
+ const packageVersion = "121.5.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -1,5 +1,6 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
4
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
@@ -13,6 +13,7 @@ const styles = {
13
13
  iconContainer: "_4cvr1h6o _1e0c1txw _1o9zidpf _1bah1h6o _1tke1tcg _1ul91tcg",
14
14
  content: "_16jlkb7n _1o9zkb7n _i0dlidpf _1ul9idpf",
15
15
  icon: "_2rko1qi0 _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
16
+ iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
16
17
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
17
18
  };
18
19
  const itemStyles = xcss({
@@ -88,10 +89,10 @@ export const CompactQuickInsertMenuItem = ({
88
89
  isSelected: false
89
90
  };
90
91
  const handleClick = useQuickInsertMenuItemSelection(onSelect);
91
- const wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
92
- xcss: styles.icon
93
- }, iconBefore) : iconBefore;
94
92
  if (!isExperimentEnabled('platform_editor_slash_command')) {
93
+ const wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
94
+ xcss: styles.icon
95
+ }, iconBefore) : iconBefore;
95
96
  return /*#__PURE__*/React.createElement(ButtonItem, {
96
97
  "aria-label": ariaLabel,
97
98
  "aria-selected": isSelected,
@@ -109,6 +110,9 @@ export const CompactQuickInsertMenuItem = ({
109
110
  xcss: styles.shortcut
110
111
  }, shortcut)));
111
112
  }
113
+ const wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
114
+ xcss: styles.iconLarge
115
+ }, iconBefore) : iconBefore;
112
116
  return /*#__PURE__*/React.createElement(Pressable, {
113
117
  "aria-label": ariaLabel,
114
118
  "aria-selected": isSelected,
@@ -74,6 +74,20 @@ const iconStyles = xcss({
74
74
  overflow: 'hidden',
75
75
  width: '40px'
76
76
  });
77
+ const iconLargeStyles = xcss({
78
+ alignItems: 'center',
79
+ backgroundColor: 'elevation.surface.overlay',
80
+ borderColor: 'color.border',
81
+ borderRadius: 'radius.large',
82
+ borderStyle: 'solid',
83
+ borderWidth: 'border.width',
84
+ display: 'flex',
85
+ flexShrink: 0,
86
+ height: '40px',
87
+ justifyContent: 'center',
88
+ overflow: 'hidden',
89
+ width: '40px'
90
+ });
77
91
  const descriptionStyles = xcss({
78
92
  color: 'color.text.subtle'
79
93
  });
@@ -107,8 +121,7 @@ export const ElementBrowserQuickInsertMenuItem = ({
107
121
  };
108
122
  const itemDescription = description !== null && description !== void 0 ? description : item === null || item === void 0 ? void 0 : item.description;
109
123
  const handleClick = useQuickInsertMenuItemSelection(onSelect);
110
- const isSlashCommandEnabled = isExperimentEnabled('platform_editor_slash_command');
111
- const itemStyles = useMemo(() => [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isSlashCommandEnabled && !isDisabled && !isSelected && hoveredItemStyles], [isDisabled, isSelected, isSlashCommandEnabled]);
124
+ const itemStyles = useMemo(() => [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isExperimentEnabled('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles], [isDisabled, isSelected]);
112
125
  return /*#__PURE__*/React.createElement(Pressable, {
113
126
  "aria-label": ariaLabel,
114
127
  "aria-selected": isSelected,
@@ -120,7 +133,7 @@ export const ElementBrowserQuickInsertMenuItem = ({
120
133
  ,
121
134
  xcss: itemStyles
122
135
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
123
- xcss: iconStyles
136
+ xcss: isExperimentEnabled('platform_editor_slash_command') ? iconLargeStyles : iconStyles
124
137
  }, iconBefore) : iconBefore, /*#__PURE__*/React.createElement(Stack, {
125
138
  space: "space.050",
126
139
  grow: "fill"
@@ -1,7 +1,6 @@
1
1
  // oxlint-disable-next-line import/no-duplicates
2
2
 
3
3
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
4
- import { fg } from '@atlaskit/platform-feature-flags/fg';
5
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  import { isSSR } from '../core-utils/is-ssr';
7
6
  import { getNodeIdProvider } from '../node-anchor/node-anchor-provider';
@@ -81,7 +80,7 @@ const wrapGetPosExceptions = spec => {
81
80
  const result = Reflect.apply(target, thisArg, [node, view, safeGetPos, ...more]);
82
81
  if ((result === null || result === void 0 ? void 0 : result.dom) instanceof HTMLElement ||
83
82
  // SSR result?.dom is not an instance of HTMLElement, but we still want to attach metadata to it
84
- isSSR() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom) && fg('platform_editor_native_anchor_patch_3')) {
83
+ isSSR() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom)) {
85
84
  var _nodeIdProvider;
86
85
  // we only attach metadata to the dom if its position is known
87
86
  const pos = safeGetPos();
@@ -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 = "121.4.2";
17
+ const packageVersion = "121.5.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -180,7 +180,7 @@ function ExtensionWithPluginState(props) {
180
180
  className: overflowClassNames,
181
181
  css: [
182
182
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
183
- overflowWrapperStyles, fg('platform_fix_macro_renders_in_layouts') && containerStyle]
183
+ overflowWrapperStyles, containerStyle]
184
184
  }, jsx("div", {
185
185
  className: 'extension-overlay',
186
186
  css: overlay
@@ -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 = "121.4.2";
22
+ var packageVersion = "121.5.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,5 +1,6 @@
1
1
  ._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
2
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
+ ._2rko1mok{border-radius:var(--ds-radius-large,8px)}
3
4
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
4
5
  ._189ee4h9{border-width:var(--ds-border-width,1px)}
5
6
  ._18zr1b66{padding-inline:var(--ds-space-050,4px)}
@@ -13,6 +13,7 @@ var styles = {
13
13
  iconContainer: "_4cvr1h6o _1e0c1txw _1o9zidpf _1bah1h6o _1tke1tcg _1ul91tcg",
14
14
  content: "_16jlkb7n _1o9zkb7n _i0dlidpf _1ul9idpf",
15
15
  icon: "_2rko1qi0 _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
16
+ iconLarge: "_2rko1mok _1reo15vq _18m915vq _1h6d1l7x _1dqonqa1 _189ee4h9 _4cvr1h6o _bfhk1bhr _1e0c1txw _4t3izwfg _1bah1h6o _1bsbzwfg",
16
17
  shortcut: "_2rko12b0 _11c8wadc _1rjcv77o _18zr1b66 _bfhki8nm _syazazsu"
17
18
  };
18
19
  var itemStyles = xcss({
@@ -86,14 +87,14 @@ export var CompactQuickInsertMenuItem = function CompactQuickInsertMenuItem(_ref
86
87
  id = _ref2.id,
87
88
  isSelected = _ref2.isSelected;
88
89
  var handleClick = useQuickInsertMenuItemSelection(onSelect);
89
- var wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
90
- xcss: styles.icon
91
- }, iconBefore) : iconBefore;
92
90
  if (!isExperimentEnabled('platform_editor_slash_command')) {
91
+ var _wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
92
+ xcss: styles.icon
93
+ }, iconBefore) : iconBefore;
93
94
  return /*#__PURE__*/React.createElement(ButtonItem, {
94
95
  "aria-label": ariaLabel,
95
96
  "aria-selected": isSelected,
96
- iconBefore: wrappedIcon,
97
+ iconBefore: _wrappedIcon,
97
98
  id: id,
98
99
  isDisabled: isDisabled,
99
100
  isSelected: isSelected,
@@ -107,6 +108,9 @@ export var CompactQuickInsertMenuItem = function CompactQuickInsertMenuItem(_ref
107
108
  xcss: styles.shortcut
108
109
  }, shortcut)));
109
110
  }
111
+ var wrappedIcon = iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
112
+ xcss: styles.iconLarge
113
+ }, iconBefore) : iconBefore;
110
114
  return /*#__PURE__*/React.createElement(Pressable, {
111
115
  "aria-label": ariaLabel,
112
116
  "aria-selected": isSelected,
@@ -74,6 +74,20 @@ var iconStyles = xcss({
74
74
  overflow: 'hidden',
75
75
  width: '40px'
76
76
  });
77
+ var iconLargeStyles = xcss({
78
+ alignItems: 'center',
79
+ backgroundColor: 'elevation.surface.overlay',
80
+ borderColor: 'color.border',
81
+ borderRadius: 'radius.large',
82
+ borderStyle: 'solid',
83
+ borderWidth: 'border.width',
84
+ display: 'flex',
85
+ flexShrink: 0,
86
+ height: '40px',
87
+ justifyContent: 'center',
88
+ overflow: 'hidden',
89
+ width: '40px'
90
+ });
77
91
  var descriptionStyles = xcss({
78
92
  color: 'color.text.subtle'
79
93
  });
@@ -105,10 +119,9 @@ export var ElementBrowserQuickInsertMenuItem = function ElementBrowserQuickInser
105
119
  isSelected = _ref2.isSelected;
106
120
  var itemDescription = description !== null && description !== void 0 ? description : item === null || item === void 0 ? void 0 : item.description;
107
121
  var handleClick = useQuickInsertMenuItemSelection(onSelect);
108
- var isSlashCommandEnabled = isExperimentEnabled('platform_editor_slash_command');
109
122
  var itemStyles = useMemo(function () {
110
- return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isSlashCommandEnabled && !isDisabled && !isSelected && hoveredItemStyles];
111
- }, [isDisabled, isSelected, isSlashCommandEnabled]);
123
+ return [isDisabled ? borderlessDisabledItemStyles : isSelected ? borderlessSelectedItemStyles : borderlessItemStyles, isExperimentEnabled('platform_editor_slash_command') && !isDisabled && !isSelected && hoveredItemStyles];
124
+ }, [isDisabled, isSelected]);
112
125
  return /*#__PURE__*/React.createElement(Pressable, {
113
126
  "aria-label": ariaLabel,
114
127
  "aria-selected": isSelected,
@@ -120,7 +133,7 @@ export var ElementBrowserQuickInsertMenuItem = function ElementBrowserQuickInser
120
133
  ,
121
134
  xcss: itemStyles
122
135
  }, iconBefore && shouldWrapIcon ? /*#__PURE__*/React.createElement(Box, {
123
- xcss: iconStyles
136
+ xcss: isExperimentEnabled('platform_editor_slash_command') ? iconLargeStyles : iconStyles
124
137
  }, iconBefore) : iconBefore, /*#__PURE__*/React.createElement(Stack, {
125
138
  space: "space.050",
126
139
  grow: "fill"
@@ -12,7 +12,6 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
12
12
  // oxlint-disable-next-line import/no-duplicates
13
13
 
14
14
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
15
- import { fg } from '@atlaskit/platform-feature-flags/fg';
16
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
16
  import { isSSR } from '../core-utils/is-ssr';
18
17
  import { getNodeIdProvider } from '../node-anchor/node-anchor-provider';
@@ -98,7 +97,7 @@ var wrapGetPosExceptions = function wrapGetPosExceptions(spec) {
98
97
  var result = Reflect.apply(target, thisArg, [node, view, safeGetPos].concat(_toConsumableArray(more)));
99
98
  if ((result === null || result === void 0 ? void 0 : result.dom) instanceof HTMLElement ||
100
99
  // SSR result?.dom is not an instance of HTMLElement, but we still want to attach metadata to it
101
- isSSR() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom) && fg('platform_editor_native_anchor_patch_3')) {
100
+ isSSR() && isHTMLElement(result === null || result === void 0 ? void 0 : result.dom)) {
102
101
  var _nodeIdProvider;
103
102
  // we only attach metadata to the dom if its position is known
104
103
  var pos = safeGetPos();
@@ -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 = "121.4.2";
24
+ var packageVersion = "121.5.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -75,14 +75,16 @@ type SyncedBlockEditSourceAttributes = SyncedBlockSuccessAttributes & {
75
75
  sameDocument?: boolean;
76
76
  };
77
77
  /**
78
- * Source `syncedBlockCreate` success attrs. Both optional so legacy payloads
78
+ * Source `syncedBlockCreate` success attrs. All optional so legacy payloads
79
79
  * are unchanged. `inputMethod`: creating surface (enum, PII-safe).
80
80
  * `createdEmpty`: true when created from an empty selection, false when content
81
- * was converted into the block.
81
+ * was converted into the block. `nodeTypes`: sorted types of top-level nodes
82
+ * converted from a non-empty selection.
82
83
  */
83
84
  type SyncedBlockCreateSuccessAttributes = SyncedBlockSuccessAttributes & {
84
85
  createdEmpty?: boolean;
85
86
  inputMethod?: INPUT_METHOD;
87
+ nodeTypes?: string[];
86
88
  };
87
89
  /** First-content-added attrs: join keys only (no user content, PII-safe). */
88
90
  type SyncedBlockAddContentAttributes = SyncedBlockSuccessAttributes;
@@ -10,7 +10,20 @@ export type AgentEditChromeRange = {
10
10
  to: number;
11
11
  };
12
12
  export type AgentEditChromeData = {
13
+ /**
14
+ * The agent's own id in its source system (e.g. Rovo's fixed agent UUID). Distinct from
15
+ * `agentIdentityAccountId`: this identifies *which agent*, not an Atlassian identity.
16
+ */
17
+ agentId?: string;
18
+ /** The Atlassian identity-service account id provisioned for the agent, if any (used to fetch/generate its avatar — see `GeneratedAvatar`). Distinct from `agentId`. */
13
19
  agentIdentityAccountId?: string;
20
+ /** Agent display name. Shown for third-party agents, and used as the avatar's accessible label. */
21
+ agentName?: string;
22
+ /**
23
+ * The agent's `external_config_reference`. Highest-priority avatar input, and what gives
24
+ * out-of-the-box and third-party agents their own avatar.
25
+ */
26
+ agentNamedId?: string;
14
27
  /** Lifetime of both the highlight and telepointer. Omission uses the shared static default; 0 prevents rendering. */
15
28
  autoDismissAfterMs?: number;
16
29
  /** Runtime CSS color value. Consumers should pass an ADS token value. */
@@ -18,10 +31,18 @@ export type AgentEditChromeData = {
18
31
  /** Runtime CSS color value. Consumers should pass an ADS token value. */
19
32
  highlightBorderColor?: string;
20
33
  ranges: AgentEditChromeRange[];
34
+ /**
35
+ * Which badge treatment the telepointer renders. Mirrors `TelepointerAgentKind` from
36
+ * editor-plugin-ai's consolidated `TelepointerAvatar` component. Duplicated here as a plain
37
+ * string union — this package sits below the plugin and cannot import its types.
38
+ */
39
+ telepointerAgentKind?: 'agent' | 'agent-third-party' | 'fallback' | 'rovo';
21
40
  /** Whether to show the telepointer. Omission uses the shared static default. */
22
41
  telepointerEnabled?: boolean;
23
42
  /** Exact telepointer label; omission uses the shared plugin's localized default. */
24
43
  telepointerLabel?: string;
44
+ /** Runtime CSS color value for the telepointer's cursor line. Consumers should pass an ADS token value. */
45
+ telepointerLineColor?: string;
25
46
  };
26
47
  export type AgentEditChromeDynamicConfig = {
27
48
  autoDismissAfterMs: number;
@@ -1,4 +1,4 @@
1
- import type { CardAdf, DatasourceAdf } from '@atlaskit/linking-common';
1
+ import type { CardAdf, DatasourceAdf } from '@atlaskit/linking-common/types';
2
2
  export type CardAppearance = 'inline' | 'block' | 'embed';
3
3
  export interface CardProvider {
4
4
  findPattern: (url: string) => Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "121.4.2",
3
+ "version": "121.5.1",
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/"
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/media-picker": "^72.4.0",
65
65
  "@atlaskit/media-ui": "^30.15.0",
66
66
  "@atlaskit/media-viewer": "^54.8.0",
67
- "@atlaskit/mention": "^28.0.0",
67
+ "@atlaskit/mention": "^29.0.0",
68
68
  "@atlaskit/menu": "^10.2.0",
69
69
  "@atlaskit/object": "^2.3.0",
70
70
  "@atlaskit/onboarding": "^15.4.0",
@@ -73,18 +73,18 @@
73
73
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
74
74
  "@atlaskit/popper": "^9.4.0",
75
75
  "@atlaskit/primitives": "^22.5.0",
76
- "@atlaskit/profilecard": "^26.22.0",
76
+ "@atlaskit/profilecard": "^26.23.0",
77
77
  "@atlaskit/prosemirror-history": "^1.2.0",
78
78
  "@atlaskit/react-compiler-gating": "^0.2.0",
79
- "@atlaskit/react-ufo": "^7.9.0",
79
+ "@atlaskit/react-ufo": "^7.10.0",
80
80
  "@atlaskit/section-message": "^10.2.0",
81
- "@atlaskit/smart-card": "^45.21.0",
81
+ "@atlaskit/smart-card": "^45.22.0",
82
82
  "@atlaskit/smart-user-picker": "^11.8.0",
83
83
  "@atlaskit/spinner": "^20.4.0",
84
84
  "@atlaskit/task-decision": "^21.9.0",
85
85
  "@atlaskit/teams-app-config": "^3.1.0",
86
86
  "@atlaskit/textfield": "^10.2.0",
87
- "@atlaskit/tmp-editor-statsig": "^187.0.0",
87
+ "@atlaskit/tmp-editor-statsig": "^188.0.0",
88
88
  "@atlaskit/tokens": "^16.12.0",
89
89
  "@atlaskit/tooltip": "^24.3.0",
90
90
  "@atlaskit/width-detector": "^7.2.0",
@@ -222,12 +222,6 @@
222
222
  "platform_editor_fix_mixed_types_column_sort": {
223
223
  "type": "boolean"
224
224
  },
225
- "platform_fix_macro_renders_in_layouts": {
226
- "type": "boolean"
227
- },
228
- "platform_editor_native_anchor_patch_3": {
229
- "type": "boolean"
230
- },
231
225
  "jim-lower-ranking-in-jira-macro-search": {
232
226
  "type": "boolean"
233
227
  },