@atlaskit/editor-core 216.7.3 → 216.7.5

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 (27) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -2
  3. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -4
  4. package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +2 -4
  5. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +1 -1
  6. package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +37 -1
  7. package/dist/cjs/ui/Toolbar/Toolbar.js +2 -13
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -2
  10. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +7 -5
  11. package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +2 -4
  12. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +3 -3
  13. package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +56 -0
  14. package/dist/es2019/ui/Toolbar/Toolbar.js +2 -11
  15. package/dist/es2019/version-wrapper.js +1 -1
  16. package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -2
  17. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +7 -5
  18. package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +2 -4
  19. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +2 -2
  20. package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +36 -0
  21. package/dist/esm/ui/Toolbar/Toolbar.js +2 -13
  22. package/dist/esm/version-wrapper.js +1 -1
  23. package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +2 -4
  24. package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +1 -0
  25. package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +2 -4
  26. package/dist/types-ts4.5/ui/EditorContentContainer/styles/smartCardStyles.d.ts +1 -0
  27. package/package.json +6 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.7.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f9ab3b2b9d564`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9ab3b2b9d564) -
8
+ [ux] [ENGHEALTH-43911] update styles for show diff deleted nodes behind
9
+ platform_editor_jan_a11y_fixes
10
+ - Updated dependencies
11
+
12
+ ## 216.7.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [`6e8029473620b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e8029473620b) -
17
+ [EDITOR-4496] clean up experiment platform_editor_toolbar_aifc_patch_3 and remove view-mode plugin
18
+ dependency from loom plugin
19
+ - [`0a9962a3aa24c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a9962a3aa24c) -
20
+ tidy up experiment platform_editor_resizer_styles_cleanup
21
+ - [`7080196995b11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7080196995b11) -
22
+ Cleaning up FG platform_editor_ai_generic_prep_for_aifc
23
+ - Updated dependencies
24
+
3
25
  ## 216.7.3
4
26
 
5
27
  ### Patch Changes
@@ -43,7 +43,7 @@ var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
43
43
  showKeyline = _ref.showKeyline;
44
44
  return /*#__PURE__*/_react.default.createElement("div", {
45
45
  "data-testid": testId,
46
- className: (0, _runtime.ax)([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarNew, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) && styles.mainToolbarZIndex, (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
46
+ className: (0, _runtime.ax)([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarZIndex, styles.mainToolbarNew, (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && (0, _expValEquals.expValEquals)('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
47
47
  }, children);
48
48
  };
49
49
  var FirstChildWrapper = function FirstChildWrapper(_ref2) {
@@ -123,7 +123,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
123
123
  showKeyline: showKeyline || ContextPanelWidth > 0
124
124
  }, beforeIcon && /*#__PURE__*/_react.default.createElement("div", {
125
125
  className: (0, _runtime.ax)([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
126
- }, beforeIcon), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && (0, _toolbar2.isToolbar)(toolbar) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) && (0, _coreUtils.isSSR)() || editorView) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !(0, _coreUtils.isSSR)())) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
126
+ }, beforeIcon), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && (0, _toolbar2.isToolbar)(toolbar) && ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true) && (0, _coreUtils.isSSR)() || editorView) && (!(0, _expValEquals.expValEquals)('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !(0, _coreUtils.isSSR)()) && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
127
127
  toolbar: toolbar,
128
128
  components: components,
129
129
  editorView: editorView,
@@ -225,7 +225,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
225
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
226
226
  _list.listsStyles,
227
227
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
228
- (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc') && _list.diffListStyles,
228
+ _list.diffListStyles,
229
229
  // Condense vertical spacing between list items when content mode dense is active
230
230
  contentMode === 'compact' && ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) ||
231
231
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -237,9 +237,11 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
237
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
238
238
  _rule.ruleStyles,
239
239
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
- (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc') && _smartCardStyles.smartCardDiffStyles,
240
+ _smartCardStyles.smartCardDiffStyles, (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && ((0, _platformFeatureFlags.fg)('platform_editor_jan_a11y_fixes')
241
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
242
- (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc_2') && _smartCardStyles.showDiffDeletedNodeStyles,
242
+ ? _smartCardStyles.showDiffDeletedNodeStylesNew
243
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
244
+ : _smartCardStyles.showDiffDeletedNodeStyles),
243
245
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
244
246
  _mediaStyles.mediaStyles, contentMode === 'compact' && ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) ||
245
247
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -281,7 +283,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
281
283
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
282
284
  (0, _extensionStyles.getExtensionStyles)(contentMode),
283
285
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
284
- (0, _platformFeatureFlags.fg)('platform_editor_ai_generic_prep_for_aifc') && _extensionStyles.extensionDiffStyles,
286
+ _extensionStyles.extensionDiffStyles,
285
287
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
286
288
  _expandStyles.expandStyles, contentMode === 'compact' && ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) ||
287
289
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -23,8 +23,7 @@ var editorUGCTokensDefault = exports.editorUGCTokensDefault = (0, _react.css)({
23
23
  });
24
24
 
25
25
  /**
26
- * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
27
- * - fg('platform-dst-jira-web-fonts')
26
+ * Use when fg('platform_editor_typography_ugc') is enabled, but the following are not enabled:
28
27
  * - fg('atlas_editor_typography_refreshed')
29
28
  */
30
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -40,8 +39,7 @@ var editorUGCTokensModernized = exports.editorUGCTokensModernized = (0, _react.c
40
39
  });
41
40
 
42
41
  /**
43
- * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
44
- * - fg('platform-dst-jira-web-fonts')
42
+ * Use when fg('platform_editor_typography_ugc') is enabled and the following is enabled:
45
43
  * - fg('atlas_editor_typography_refreshed')
46
44
  */
47
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -148,7 +148,7 @@ var resizerStyles = exports.resizerStyles = (0, _react.css)((0, _defineProperty2
148
148
  height: '100%',
149
149
  minHeight: 36
150
150
  }
151
- }), '.ak-editor-selected-node', (0, _defineProperty2.default)({}, "& .".concat(resizerHandleThumbClassName), {
151
+ }), ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName), (0, _defineProperty2.default)({}, "& .".concat(resizerHandleThumbClassName), {
152
152
  background: "var(--ds-border-focused, #4688EC)"
153
153
  })), ".ak-editor-no-interaction .ak-editor-selected-node .".concat(resizerHandleClassName, ":not(:hover) .").concat(resizerHandleThumbClassName), {
154
154
  background: "var(--ds-border, #0B120E24)"
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.smartLinksInLivePagesStyles = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles = exports.smartCardStylesWithSearchMatch = exports.smartCardStyles = exports.smartCardDiffStyles = exports.showDiffDeletedNodeStyles = exports.linkingVisualRefreshV1Styles = exports.editorControlsSmartCardStyles = exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
7
+ exports.smartLinksInLivePagesStyles = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles = exports.smartCardStylesWithSearchMatch = exports.smartCardStyles = exports.smartCardDiffStyles = exports.showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStyles = exports.linkingVisualRefreshV1Styles = exports.editorControlsSmartCardStyles = exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
@@ -74,6 +74,42 @@ var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.c
74
74
  textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
75
75
  }));
76
76
 
77
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
78
+ var showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStylesNew = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
79
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
80
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
81
+ borderColor: 'transparent'
82
+ }), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
84
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
85
+ borderColor: 'transparent'
86
+ }), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
87
+ opacity: 0.8
88
+ })), '.show-diff-deleted-node .media-card-wrapper', {
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
+ '& > div': {
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
92
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
93
+ borderRadius: "var(--ds-radius-small, 4px)",
94
+ opacity: 0.8
95
+ }
96
+ }), '.show-diff-deleted-node-traditional .media-card-wrapper', {
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
98
+ '& > div': {
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
100
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
101
+ borderRadius: "var(--ds-radius-small, 4px)"
102
+ }
103
+ }), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node', {
104
+ textDecoration: 'line-through'
105
+ }), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional', {
106
+ textDecoration: 'line-through',
107
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
108
+ }), '[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional', {
109
+ textDecoration: 'line-through',
110
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
111
+ }));
112
+
77
113
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
78
114
  var smartCardStyles = exports.smartCardStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
79
115
  maxWidth: 'calc(100% - 20px)',
@@ -9,11 +9,9 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _hooks = require("@atlaskit/editor-common/hooks");
10
10
  var _toolbar = require("@atlaskit/editor-common/toolbar");
11
11
  var _types = require("@atlaskit/editor-common/types");
12
- var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
13
12
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
14
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
15
14
  var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
16
- var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
17
15
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
16
  var _ToolbarInner = require("./ToolbarInner");
19
17
  /**
@@ -39,9 +37,7 @@ var Toolbar = exports.Toolbar = function Toolbar(props) {
39
37
  containerElement: props.containerElement
40
38
  });
41
39
  };
42
- var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
43
- return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
44
- }, function (api) {
40
+ var usePluginState = function usePluginState(api) {
45
41
  return (0, _hooks.useSharedPluginStateWithSelector)(api, ['connectivity', 'editorViewMode', 'userPreferences'], function (state) {
46
42
  var _state$connectivitySt, _state$editorViewMode, _state$userPreference;
47
43
  return {
@@ -50,14 +46,7 @@ var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(fun
50
46
  editorToolbarDockingPreference: (_state$userPreference = state.userPreferencesState) === null || _state$userPreference === void 0 || (_state$userPreference = _state$userPreference.preferences) === null || _state$userPreference === void 0 ? void 0 : _state$userPreference.toolbarDockingPosition
51
47
  };
52
48
  });
53
- }, function (api) {
54
- var connectivityStateMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'connectivity.mode');
55
- return {
56
- connectivityStateMode: connectivityStateMode,
57
- editorViewMode: undefined,
58
- editorToolbarDockingPreference: undefined
59
- };
60
- });
49
+ };
61
50
 
62
51
  /**
63
52
  * Renders a primary toolbar, driven by components registed by `editor-plugin-toolbar`. `ToolbarModelRenderer` will just
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "216.7.2";
8
+ var version = exports.version = "216.7.4";
@@ -35,7 +35,7 @@ const MainToolbarWrapper = ({
35
35
  }) => {
36
36
  return /*#__PURE__*/React.createElement("div", {
37
37
  "data-testid": testId,
38
- className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarNew, expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) && styles.mainToolbarZIndex, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
38
+ className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarZIndex, styles.mainToolbarNew, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
39
39
  }, children);
40
40
  };
41
41
  const FirstChildWrapper = ({
@@ -117,7 +117,7 @@ export const FullPageToolbarNext = ({
117
117
  showKeyline: showKeyline || ContextPanelWidth > 0
118
118
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
119
119
  className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
120
- }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (!expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
120
+ }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (!expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !isSSR()) && /*#__PURE__*/React.createElement(ToolbarNext, {
121
121
  toolbar: toolbar,
122
122
  components: components,
123
123
  editorView: editorView,
@@ -56,7 +56,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
56
56
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
57
57
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
58
58
  import { shadowStyles } from './styles/shadowStyles';
59
- import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
59
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
60
60
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
61
61
  import { syncBlockStyles } from './styles/syncBlockStyles';
62
62
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
@@ -221,7 +221,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
221
221
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
222
222
  listsStyles,
223
223
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
224
- fg('platform_editor_ai_generic_prep_for_aifc') && diffListStyles,
224
+ diffListStyles,
225
225
  // Condense vertical spacing between list items when content mode dense is active
226
226
  contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
227
227
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -233,9 +233,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
233
233
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
234
234
  ruleStyles,
235
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
236
- fg('platform_editor_ai_generic_prep_for_aifc') && smartCardDiffStyles,
236
+ smartCardDiffStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && (fg('platform_editor_jan_a11y_fixes')
237
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
238
- fg('platform_editor_ai_generic_prep_for_aifc_2') && showDiffDeletedNodeStyles,
238
+ ? showDiffDeletedNodeStylesNew
239
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
+ : showDiffDeletedNodeStyles),
239
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
242
  mediaStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
241
243
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -277,7 +279,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
277
279
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
278
280
  getExtensionStyles(contentMode),
279
281
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
280
- fg('platform_editor_ai_generic_prep_for_aifc') && extensionDiffStyles,
282
+ extensionDiffStyles,
281
283
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
282
284
  expandStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
283
285
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -17,8 +17,7 @@ export const editorUGCTokensDefault = css({
17
17
  });
18
18
 
19
19
  /**
20
- * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
21
- * - fg('platform-dst-jira-web-fonts')
20
+ * Use when fg('platform_editor_typography_ugc') is enabled, but the following are not enabled:
22
21
  * - fg('atlas_editor_typography_refreshed')
23
22
  */
24
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -34,8 +33,7 @@ export const editorUGCTokensModernized = css({
34
33
  });
35
34
 
36
35
  /**
37
- * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
38
- * - fg('platform-dst-jira-web-fonts')
36
+ * Use when fg('platform_editor_typography_ugc') is enabled and the following is enabled:
39
37
  * - fg('atlas_editor_typography_refreshed')
40
38
  */
41
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
2
2
  import { css } from '@emotion/react';
3
- import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
3
+ import { akEditorFullPageNarrowBreakout, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
4
  export const resizerItemClassName = 'resizer-item';
5
5
  export const resizerHoverZoneClassName = 'resizer-hover-zone';
6
6
  export const resizerExtendedZone = 'resizer-is-extended';
@@ -179,8 +179,8 @@ export const resizerStyles = css({
179
179
  minHeight: 36
180
180
  }
181
181
  },
182
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
183
- '.ak-editor-selected-node': {
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
183
+ [`.${akEditorSelectedNodeClassName}`]: {
184
184
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
185
185
  [`& .${resizerHandleThumbClassName}`]: {
186
186
  background: "var(--ds-border-focused, #4688EC)"
@@ -94,6 +94,62 @@ export const showDiffDeletedNodeStyles = css({
94
94
  }
95
95
  });
96
96
 
97
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
98
+ export const showDiffDeletedNodeStylesNew = css({
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
100
+ [`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}`]: {
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
102
+ [`&.show-diff-deleted-node .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div::after`]: {
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
104
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-gray, #7D818A)"}`,
105
+ borderColor: 'transparent'
106
+ },
107
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
108
+ [`&.show-diff-deleted-node-traditional .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div::after`]: {
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
110
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-red, #E2483D)"}`,
111
+ borderColor: 'transparent'
112
+ },
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-nested-selectors
114
+ [`&.show-diff-deleted-node .${SmartCardSharedCssClassName.LOADER_WRAPPER}`]: {
115
+ opacity: 0.8
116
+ }
117
+ },
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
119
+ '.show-diff-deleted-node .media-card-wrapper': {
120
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
121
+ '& > div': {
122
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
123
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-gray, #7D818A)"}`,
124
+ borderRadius: "var(--ds-radius-small, 4px)",
125
+ opacity: 0.8
126
+ }
127
+ },
128
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
129
+ '.show-diff-deleted-node-traditional .media-card-wrapper': {
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
131
+ '& > div': {
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
133
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-red, #E2483D)"}`,
134
+ borderRadius: "var(--ds-radius-small, 4px)"
135
+ }
136
+ },
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
138
+ '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node': {
139
+ textDecoration: 'line-through'
140
+ },
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
142
+ '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional': {
143
+ textDecoration: 'line-through',
144
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
145
+ },
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
147
+ '[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional': {
148
+ textDecoration: 'line-through',
149
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
150
+ }
151
+ });
152
+
97
153
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
98
154
  export const smartCardStyles = css({
99
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
3
  import { EditorToolbarProvider, EditorToolbarUIProvider } from '@atlaskit/editor-common/toolbar';
4
4
  import { ToolbarSize } from '@atlaskit/editor-common/types';
5
- import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
6
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
7
6
  import { ToolbarButtonGroup, ToolbarDropdownItemSection, ToolbarSection } from '@atlaskit/editor-toolbar';
8
7
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
9
- import { conditionalHooksFactory } from '@atlaskit/platform-feature-flags-react';
10
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
9
  import { ToolbarInner } from './ToolbarInner';
12
10
 
@@ -33,7 +31,7 @@ export const Toolbar = props => {
33
31
  containerElement: props.containerElement
34
32
  });
35
33
  };
36
- const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
34
+ const usePluginState = api => {
37
35
  return useSharedPluginStateWithSelector(api, ['connectivity', 'editorViewMode', 'userPreferences'], state => {
38
36
  var _state$connectivitySt, _state$editorViewMode, _state$userPreference, _state$userPreference2;
39
37
  return {
@@ -42,14 +40,7 @@ const usePluginState = conditionalHooksFactory(() => expValEquals('platform_edit
42
40
  editorToolbarDockingPreference: (_state$userPreference = state.userPreferencesState) === null || _state$userPreference === void 0 ? void 0 : (_state$userPreference2 = _state$userPreference.preferences) === null || _state$userPreference2 === void 0 ? void 0 : _state$userPreference2.toolbarDockingPosition
43
41
  };
44
42
  });
45
- }, api => {
46
- const connectivityStateMode = useSharedPluginStateSelector(api, 'connectivity.mode');
47
- return {
48
- connectivityStateMode,
49
- editorViewMode: undefined,
50
- editorToolbarDockingPreference: undefined
51
- };
52
- });
43
+ };
53
44
 
54
45
  /**
55
46
  * Renders a primary toolbar, driven by components registed by `editor-plugin-toolbar`. `ToolbarModelRenderer` will just
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.7.2";
2
+ export const version = "216.7.4";
@@ -34,7 +34,7 @@ var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
34
34
  showKeyline = _ref.showKeyline;
35
35
  return /*#__PURE__*/React.createElement("div", {
36
36
  "data-testid": testId,
37
- className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarNew, expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) && styles.mainToolbarZIndex, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
37
+ className: ax([styles.mainToolbarWrapper, showKeyline && styles.mainToolbarWithKeyline, styles.mainToolbarZIndex, styles.mainToolbarNew, expValEquals('platform_editor_table_sticky_header_improvements', 'cohort', 'test_with_overflow') && expValEquals('platform_editor_table_sticky_header_patch_9', 'isEnabled', true) && styles.backgroundColor])
38
38
  }, children);
39
39
  };
40
40
  var FirstChildWrapper = function FirstChildWrapper(_ref2) {
@@ -114,7 +114,7 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
114
114
  showKeyline: showKeyline || ContextPanelWidth > 0
115
115
  }, beforeIcon && /*#__PURE__*/React.createElement("div", {
116
116
  className: ax([styles.mainToolbarIconBefore, styles.mainToolbarIconBeforeNew])
117
- }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (!expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true) || (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (!expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !isSSR())) && /*#__PURE__*/React.createElement(ToolbarNext, {
117
+ }, beforeIcon), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FirstChildWrapper, null, primaryToolbarDockingConfigEnabled && components && isToolbar(toolbar) && (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true) && isSSR() || editorView) && (!expValEquals('platform_editor_toolbar_delay_render_fix', 'isEnabled', true) || !isSSR()) && /*#__PURE__*/React.createElement(ToolbarNext, {
118
118
  toolbar: toolbar,
119
119
  components: components,
120
120
  editorView: editorView,
@@ -57,7 +57,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
57
57
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
58
58
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
59
59
  import { shadowStyles } from './styles/shadowStyles';
60
- import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
60
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
61
61
  import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
62
62
  import { syncBlockStyles } from './styles/syncBlockStyles';
63
63
  import { tableCommentEditorStyles, tableContainerOverflowY, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
@@ -217,7 +217,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
217
217
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
218
218
  listsStyles,
219
219
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
220
- fg('platform_editor_ai_generic_prep_for_aifc') && diffListStyles,
220
+ diffListStyles,
221
221
  // Condense vertical spacing between list items when content mode dense is active
222
222
  contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
223
223
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -229,9 +229,11 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
229
229
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
230
230
  ruleStyles,
231
231
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
232
- fg('platform_editor_ai_generic_prep_for_aifc') && smartCardDiffStyles,
232
+ smartCardDiffStyles, fg('platform_editor_ai_generic_prep_for_aifc_2') && (fg('platform_editor_jan_a11y_fixes')
233
233
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
234
- fg('platform_editor_ai_generic_prep_for_aifc_2') && showDiffDeletedNodeStyles,
234
+ ? showDiffDeletedNodeStylesNew
235
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
236
+ : showDiffDeletedNodeStyles),
235
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
236
238
  mediaStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
237
239
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -273,7 +275,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
273
275
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
274
276
  getExtensionStyles(contentMode),
275
277
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
276
- fg('platform_editor_ai_generic_prep_for_aifc') && extensionDiffStyles,
278
+ extensionDiffStyles,
277
279
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
278
280
  expandStyles, contentMode === 'compact' && (expValEquals('confluence_compact_text_format', 'isEnabled', true) ||
279
281
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -17,8 +17,7 @@ export var editorUGCTokensDefault = css({
17
17
  });
18
18
 
19
19
  /**
20
- * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
21
- * - fg('platform-dst-jira-web-fonts')
20
+ * Use when fg('platform_editor_typography_ugc') is enabled, but the following are not enabled:
22
21
  * - fg('atlas_editor_typography_refreshed')
23
22
  */
24
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -34,8 +33,7 @@ export var editorUGCTokensModernized = css({
34
33
  });
35
34
 
36
35
  /**
37
- * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
38
- * - fg('platform-dst-jira-web-fonts')
36
+ * Use when fg('platform_editor_typography_ugc') is enabled and the following is enabled:
39
37
  * - fg('atlas_editor_typography_refreshed')
40
38
  */
41
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
3
3
  import { css } from '@emotion/react';
4
- import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
4
+ import { akEditorFullPageNarrowBreakout, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
5
5
  export var resizerItemClassName = 'resizer-item';
6
6
  export var resizerHoverZoneClassName = 'resizer-hover-zone';
7
7
  export var resizerExtendedZone = 'resizer-is-extended';
@@ -140,7 +140,7 @@ export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_
140
140
  height: '100%',
141
141
  minHeight: 36
142
142
  }
143
- }), '.ak-editor-selected-node', _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
143
+ }), ".".concat(akEditorSelectedNodeClassName), _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
144
144
  background: "var(--ds-border-focused, #4688EC)"
145
145
  })), ".ak-editor-no-interaction .ak-editor-selected-node .".concat(resizerHandleClassName, ":not(:hover) .").concat(resizerHandleThumbClassName), {
146
146
  background: "var(--ds-border, #0B120E24)"
@@ -66,6 +66,42 @@ export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defi
66
66
  textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
67
67
  }));
68
68
 
69
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
70
+ export var showDiffDeletedNodeStylesNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
72
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
73
+ borderColor: 'transparent'
74
+ }), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
76
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
77
+ borderColor: 'transparent'
78
+ }), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
79
+ opacity: 0.8
80
+ })), '.show-diff-deleted-node .media-card-wrapper', {
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
82
+ '& > div': {
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
84
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
85
+ borderRadius: "var(--ds-radius-small, 4px)",
86
+ opacity: 0.8
87
+ }
88
+ }), '.show-diff-deleted-node-traditional .media-card-wrapper', {
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
+ '& > div': {
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
92
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
93
+ borderRadius: "var(--ds-radius-small, 4px)"
94
+ }
95
+ }), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node', {
96
+ textDecoration: 'line-through'
97
+ }), '[data-prosemirror-node-name="blockquote"].show-diff-deleted-node-traditional', {
98
+ textDecoration: 'line-through',
99
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
100
+ }), '[data-prosemirror-node-name="embedCard"].show-diff-deleted-node-traditional', {
101
+ textDecoration: 'line-through',
102
+ textDecorationColor: "var(--ds-border-accent-red, #E2483D)"
103
+ }));
104
+
69
105
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
70
106
  export var smartCardStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty({
71
107
  maxWidth: 'calc(100% - 20px)',
@@ -2,11 +2,9 @@ import React from 'react';
2
2
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
3
  import { EditorToolbarProvider, EditorToolbarUIProvider } from '@atlaskit/editor-common/toolbar';
4
4
  import { ToolbarSize } from '@atlaskit/editor-common/types';
5
- import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
6
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
7
6
  import { ToolbarButtonGroup, ToolbarDropdownItemSection, ToolbarSection } from '@atlaskit/editor-toolbar';
8
7
  import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
9
- import { conditionalHooksFactory } from '@atlaskit/platform-feature-flags-react';
10
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
9
  import { ToolbarInner } from './ToolbarInner';
12
10
 
@@ -33,9 +31,7 @@ export var Toolbar = function Toolbar(props) {
33
31
  containerElement: props.containerElement
34
32
  });
35
33
  };
36
- var usePluginState = conditionalHooksFactory(function () {
37
- return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
38
- }, function (api) {
34
+ var usePluginState = function usePluginState(api) {
39
35
  return useSharedPluginStateWithSelector(api, ['connectivity', 'editorViewMode', 'userPreferences'], function (state) {
40
36
  var _state$connectivitySt, _state$editorViewMode, _state$userPreference;
41
37
  return {
@@ -44,14 +40,7 @@ var usePluginState = conditionalHooksFactory(function () {
44
40
  editorToolbarDockingPreference: (_state$userPreference = state.userPreferencesState) === null || _state$userPreference === void 0 || (_state$userPreference = _state$userPreference.preferences) === null || _state$userPreference === void 0 ? void 0 : _state$userPreference.toolbarDockingPosition
45
41
  };
46
42
  });
47
- }, function (api) {
48
- var connectivityStateMode = useSharedPluginStateSelector(api, 'connectivity.mode');
49
- return {
50
- connectivityStateMode: connectivityStateMode,
51
- editorViewMode: undefined,
52
- editorToolbarDockingPreference: undefined
53
- };
54
- });
43
+ };
55
44
 
56
45
  /**
57
46
  * Renders a primary toolbar, driven by components registed by `editor-plugin-toolbar`. `ToolbarModelRenderer` will just
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.7.2";
2
+ export var version = "216.7.4";
@@ -4,14 +4,12 @@ import { type SerializedStyles } from '@emotion/react';
4
4
  */
5
5
  export declare const editorUGCTokensDefault: SerializedStyles;
6
6
  /**
7
- * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
8
- * - fg('platform-dst-jira-web-fonts')
7
+ * Use when fg('platform_editor_typography_ugc') is enabled, but the following are not enabled:
9
8
  * - fg('atlas_editor_typography_refreshed')
10
9
  */
11
10
  export declare const editorUGCTokensModernized: SerializedStyles;
12
11
  /**
13
- * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
14
- * - fg('platform-dst-jira-web-fonts')
12
+ * Use when fg('platform_editor_typography_ugc') is enabled and the following is enabled:
15
13
  * - fg('atlas_editor_typography_refreshed')
16
14
  */
17
15
  export declare const editorUGCTokensRefreshed: SerializedStyles;
@@ -11,6 +11,7 @@ export declare const SmartCardSharedCssClassName: {
11
11
  export declare const editorControlsSmartCardStyles: SerializedStyles;
12
12
  export declare const smartCardDiffStyles: SerializedStyles;
13
13
  export declare const showDiffDeletedNodeStyles: SerializedStyles;
14
+ export declare const showDiffDeletedNodeStylesNew: SerializedStyles;
14
15
  export declare const smartCardStyles: SerializedStyles;
15
16
  export declare const smartCardStylesWithSearchMatch: SerializedStyles;
16
17
  export declare const smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: SerializedStyles;
@@ -4,14 +4,12 @@ import { type SerializedStyles } from '@emotion/react';
4
4
  */
5
5
  export declare const editorUGCTokensDefault: SerializedStyles;
6
6
  /**
7
- * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
8
- * - fg('platform-dst-jira-web-fonts')
7
+ * Use when fg('platform_editor_typography_ugc') is enabled, but the following are not enabled:
9
8
  * - fg('atlas_editor_typography_refreshed')
10
9
  */
11
10
  export declare const editorUGCTokensModernized: SerializedStyles;
12
11
  /**
13
- * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
14
- * - fg('platform-dst-jira-web-fonts')
12
+ * Use when fg('platform_editor_typography_ugc') is enabled and the following is enabled:
15
13
  * - fg('atlas_editor_typography_refreshed')
16
14
  */
17
15
  export declare const editorUGCTokensRefreshed: SerializedStyles;
@@ -11,6 +11,7 @@ export declare const SmartCardSharedCssClassName: {
11
11
  export declare const editorControlsSmartCardStyles: SerializedStyles;
12
12
  export declare const smartCardDiffStyles: SerializedStyles;
13
13
  export declare const showDiffDeletedNodeStyles: SerializedStyles;
14
+ export declare const showDiffDeletedNodeStylesNew: SerializedStyles;
14
15
  export declare const smartCardStyles: SerializedStyles;
15
16
  export declare const smartCardStylesWithSearchMatch: SerializedStyles;
16
17
  export declare const smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.7.3",
3
+ "version": "216.7.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.0.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.28.0",
69
+ "@atlaskit/tmp-editor-statsig": "^16.30.0",
70
70
  "@atlaskit/tokens": "^10.1.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -112,6 +112,7 @@
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",
113
113
  "@atlaskit/toggle": "^15.2.0",
114
114
  "@atlaskit/util-data-test": "^18.4.0",
115
+ "@atlassian/a11y-jest-testing": "^0.8.0",
115
116
  "@atlassian/adf-schema-json": "^1.33.0",
116
117
  "@atlassian/feature-flags-test-utils": "^1.0.0",
117
118
  "@atlassian/search-provider": "^8.0.0",
@@ -197,9 +198,6 @@
197
198
  "type": "boolean",
198
199
  "referenceOnly": true
199
200
  },
200
- "platform_editor_ai_generic_prep_for_aifc": {
201
- "type": "boolean"
202
- },
203
201
  "platform_editor_use_preferences_plugin": {
204
202
  "type": "boolean",
205
203
  "referenceOnly": true
@@ -288,9 +286,6 @@
288
286
  "type": "boolean",
289
287
  "referenceOnly": true
290
288
  },
291
- "platform-dst-jira-web-fonts": {
292
- "type": "boolean"
293
- },
294
289
  "atlas_editor_typography_refreshed": {
295
290
  "type": "boolean"
296
291
  },
@@ -360,6 +355,9 @@
360
355
  },
361
356
  "platform_editor_context_context_types_migration": {
362
357
  "type": "boolean"
358
+ },
359
+ "platform_editor_jan_a11y_fixes": {
360
+ "type": "boolean"
363
361
  }
364
362
  },
365
363
  "stricter": {