@atlaskit/editor-core 215.1.1 → 215.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 215.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`71cac2e4cf915`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/71cac2e4cf915) -
8
+ [FF-CLEANUP] platform_editor_add_border_for_nested_panel
9
+ - Updated dependencies
10
+
3
11
  ## 215.1.1
4
12
 
5
13
  ### Patch Changes
@@ -214,6 +214,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
214
214
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
215
215
  _rule.ruleStyles,
216
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
217
+ (0, _platformFeatureFlags.fg)('aifc_create_enabled') && _smartCardStyles.smartCardDiffStyles,
218
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
217
219
  _mediaStyles.mediaStyles,
218
220
  // merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
219
221
  (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
@@ -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.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.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");
@@ -31,6 +31,17 @@ var editorControlsSmartCardStyles = exports.editorControlsSmartCardStyles = (0,
31
31
  }
32
32
  }));
33
33
 
34
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
+ var smartCardDiffStyles = exports.smartCardDiffStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-changed-decoration-node-standard .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
37
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-purple, #8270DB)"),
38
+ borderColor: 'transparent'
39
+ }), "&.show-diff-changed-decoration-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
41
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-green, #22A06B)"),
42
+ borderColor: 'transparent'
43
+ })));
44
+
34
45
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
46
  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)({
36
47
  maxWidth: 'calc(100% - 20px)',
@@ -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 = "215.1.0";
8
+ var version = exports.version = "215.1.1";
@@ -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, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
59
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles, smartCardDiffStyles } 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, tableLayoutFixes } from './styles/tableStyles';
@@ -210,6 +210,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
210
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
211
211
  ruleStyles,
212
212
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
+ fg('aifc_create_enabled') && smartCardDiffStyles,
214
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
215
  mediaStyles,
214
216
  // merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
215
217
  fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
@@ -25,6 +25,25 @@ export const editorControlsSmartCardStyles = css({
25
25
  }
26
26
  });
27
27
 
28
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
29
+ export const smartCardDiffStyles = css({
30
+ // 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
31
+ [`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}`]: {
32
+ // 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
33
+ [`&.show-diff-changed-decoration-node-standard .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div::after`]: {
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
35
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-purple, #8270DB)"}`,
36
+ borderColor: 'transparent'
37
+ },
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
39
+ [`&.show-diff-changed-decoration-node-traditional .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div::after`]: {
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
41
+ boxShadow: `0 0 0 1px ${"var(--ds-border-accent-green, #22A06B)"}`,
42
+ borderColor: 'transparent'
43
+ }
44
+ }
45
+ });
46
+
28
47
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
29
48
  export const smartCardStyles = css({
30
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "215.1.0";
2
+ export const version = "215.1.1";
@@ -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, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
60
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles, smartCardDiffStyles } 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, tableLayoutFixes } from './styles/tableStyles';
@@ -206,6 +206,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
206
206
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
207
207
  ruleStyles,
208
208
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
209
+ fg('aifc_create_enabled') && smartCardDiffStyles,
210
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
209
211
  mediaStyles,
210
212
  // merge firstWrappedMediaStyles with mediaStyles when clean up platform_editor_fix_media_in_renderer
211
213
  fg('platform_editor_fix_media_in_renderer') && firstWrappedMediaStyles,
@@ -23,6 +23,17 @@ export var editorControlsSmartCardStyles = css(_defineProperty({}, ".".concat(Sm
23
23
  }
24
24
  }));
25
25
 
26
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
27
+ export var smartCardDiffStyles = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty({}, "&.show-diff-changed-decoration-node-standard .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
29
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-purple, #8270DB)"),
30
+ borderColor: 'transparent'
31
+ }), "&.show-diff-changed-decoration-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
33
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-green, #22A06B)"),
34
+ borderColor: 'transparent'
35
+ })));
36
+
26
37
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
27
38
  export var smartCardStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty({
28
39
  maxWidth: 'calc(100% - 20px)',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "215.1.0";
2
+ export var version = "215.1.1";
@@ -553,6 +553,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
553
553
  sharedState: import("packages/editor/editor-plugin-toolbar/dist/types/toolbarPluginType").EditorToolbarPluginState;
554
554
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
555
555
  commands: {
556
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
557
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
556
558
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
557
559
  };
558
560
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -614,6 +614,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
614
614
  sharedState: import("packages/editor/editor-plugin-toolbar/dist/types/toolbarPluginType").EditorToolbarPluginState;
615
615
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
616
616
  commands: {
617
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
618
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
617
619
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
618
620
  };
619
621
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -553,6 +553,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
553
553
  sharedState: import("packages/editor/editor-plugin-toolbar/dist/types/toolbarPluginType").EditorToolbarPluginState;
554
554
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
555
555
  commands: {
556
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
557
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
556
558
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
557
559
  };
558
560
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -9,6 +9,7 @@ export declare const SmartCardSharedCssClassName: {
9
9
  LOADER_WRAPPER: string;
10
10
  };
11
11
  export declare const editorControlsSmartCardStyles: SerializedStyles;
12
+ export declare const smartCardDiffStyles: SerializedStyles;
12
13
  export declare const smartCardStyles: SerializedStyles;
13
14
  export declare const smartCardStylesWithSearchMatch: SerializedStyles;
14
15
  export declare const smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: SerializedStyles;
@@ -800,6 +800,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
800
800
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined,
801
801
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
802
802
  commands: {
803
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
804
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
803
805
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
804
806
  };
805
807
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -861,6 +861,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
861
861
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined,
862
862
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
863
863
  commands: {
864
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
865
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
864
866
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
865
867
  };
866
868
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -800,6 +800,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
800
800
  }, import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions | undefined> | undefined,
801
801
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
802
802
  commands: {
803
+ endHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
804
+ startHistorySlice: (id: string) => import("@atlaskit/editor-common/types").EditorCommand;
803
805
  updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
804
806
  };
805
807
  sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginSharedState | undefined;
@@ -9,6 +9,7 @@ export declare const SmartCardSharedCssClassName: {
9
9
  LOADER_WRAPPER: string;
10
10
  };
11
11
  export declare const editorControlsSmartCardStyles: SerializedStyles;
12
+ export declare const smartCardDiffStyles: SerializedStyles;
12
13
  export declare const smartCardStyles: SerializedStyles;
13
14
  export declare const smartCardStylesWithSearchMatch: SerializedStyles;
14
15
  export declare const smartCardStylesWithSearchMatchAndBlockMenuDangerStyles: SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "215.1.1",
3
+ "version": "215.1.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -222,6 +222,9 @@
222
222
  "type": "boolean",
223
223
  "referenceOnly": true
224
224
  },
225
+ "aifc_create_enabled": {
226
+ "type": "boolean"
227
+ },
225
228
  "platform_editor_use_preferences_plugin": {
226
229
  "type": "boolean",
227
230
  "referenceOnly": true
@@ -415,10 +418,6 @@
415
418
  "platform_editor_lce_scrolltop_mitigation": {
416
419
  "type": "boolean"
417
420
  },
418
- "platform_editor_add_border_for_nested_panel": {
419
- "type": "boolean",
420
- "referenceOnly": true
421
- },
422
421
  "platform_editor_controls_increase_full_page_gutter": {
423
422
  "type": "boolean"
424
423
  },