@atlaskit/editor-core 216.7.25 → 216.7.26

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
+ ## 216.7.26
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9da7abaf781fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9da7abaf781fa) -
8
+ [ux] clean up platform_editor_text_highlight_padding
9
+ - Updated dependencies
10
+
3
11
  ## 216.7.25
4
12
 
5
13
  ### Patch Changes
@@ -82,12 +82,8 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
82
82
  }, (0, _react2.jsx)("div", (0, _extends2.default)({
83
83
  css: editorContainerStyles
84
84
  // eslint-disable-next-line react/jsx-props-no-spreading
85
- }, (0, _expValEquals.expValEquals)('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
86
- 'data-vc-ignore-if-no-layout-shift': true,
87
- 'data-ssr-placeholder': 'fallback'
88
- } : {
89
- 'data-vc-ignore-if-no-layout-shift': true,
90
- 'data-ssr-placeholder-replace': 'fallback'
85
+ }, (0, _expValEquals.expValEquals)('cc_fix_hydration_ttvc', 'isEnabled', true) ? {
86
+ 'data-vc-ignore-if-no-layout-shift': true
91
87
  } : {}), (0, _react2.jsx)(_EditorContext.default, {
92
88
  editorActions: editorActions
93
89
  }, (0, _react2.jsx)(_IntlProviderIfMissingWrapper.IntlProviderIfMissingWrapper, null, (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ReactEditorView.default, {
@@ -704,7 +704,9 @@ function ReactEditorView(props) {
704
704
  id: EDIT_AREA_ID,
705
705
  "aria-describedby": assistiveDescribedBy,
706
706
  "data-editor-id": editorId.current,
707
- "data-vc-ignore-if-no-layout-shift": true
707
+ "data-vc-ignore-if-no-layout-shift": true,
708
+ "data-ssr-placeholder": (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
709
+ "data-ssr-placeholder-replace": (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
708
710
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
709
711
  ,
710
712
  dangerouslySetInnerHTML: (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? {
@@ -218,7 +218,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
218
218
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
219
219
  _textColorStyles.textColorStyles,
220
220
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
221
- _backgroundColorStyles.backgroundColorStyles, (0, _expValEquals.expValEquals)('platform_editor_text_highlight_padding', 'isEnabled', true) &&
221
+ _backgroundColorStyles.backgroundColorStyles,
222
222
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
223
223
  _backgroundColorStyles.textHighlightPaddingStyles,
224
224
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -70,12 +70,8 @@ export const EditorInternal = /*#__PURE__*/memo(({
70
70
  }, jsx("div", _extends({
71
71
  css: editorContainerStyles
72
72
  // eslint-disable-next-line react/jsx-props-no-spreading
73
- }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
74
- 'data-vc-ignore-if-no-layout-shift': true,
75
- 'data-ssr-placeholder': 'fallback'
76
- } : {
77
- 'data-vc-ignore-if-no-layout-shift': true,
78
- 'data-ssr-placeholder-replace': 'fallback'
73
+ }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? {
74
+ 'data-vc-ignore-if-no-layout-shift': true
79
75
  } : {}), jsx(EditorContext, {
80
76
  editorActions: editorActions
81
77
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
@@ -655,7 +655,9 @@ export function ReactEditorView(props) {
655
655
  id: EDIT_AREA_ID,
656
656
  "aria-describedby": assistiveDescribedBy,
657
657
  "data-editor-id": editorId.current,
658
- "data-vc-ignore-if-no-layout-shift": true
658
+ "data-vc-ignore-if-no-layout-shift": true,
659
+ "data-ssr-placeholder": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
660
+ "data-ssr-placeholder-replace": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
659
661
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
660
662
  ,
661
663
  dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
@@ -214,7 +214,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
214
214
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
215
215
  textColorStyles,
216
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
217
- backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
217
+ backgroundColorStyles,
218
218
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
219
219
  textHighlightPaddingStyles,
220
220
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -78,12 +78,8 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
78
78
  }, jsx("div", _extends({
79
79
  css: editorContainerStyles
80
80
  // eslint-disable-next-line react/jsx-props-no-spreading
81
- }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? process.env.REACT_SSR ? {
82
- 'data-vc-ignore-if-no-layout-shift': true,
83
- 'data-ssr-placeholder': 'fallback'
84
- } : {
85
- 'data-vc-ignore-if-no-layout-shift': true,
86
- 'data-ssr-placeholder-replace': 'fallback'
81
+ }, expValEquals('cc_fix_hydration_ttvc', 'isEnabled', true) ? {
82
+ 'data-vc-ignore-if-no-layout-shift': true
87
83
  } : {}), jsx(EditorContext, {
88
84
  editorActions: editorActions
89
85
  }, jsx(IntlProviderIfMissingWrapper, null, jsx(Fragment, null, jsx(ReactEditorViewNext, {
@@ -695,7 +695,9 @@ export function ReactEditorView(props) {
695
695
  id: EDIT_AREA_ID,
696
696
  "aria-describedby": assistiveDescribedBy,
697
697
  "data-editor-id": editorId.current,
698
- "data-vc-ignore-if-no-layout-shift": true
698
+ "data-vc-ignore-if-no-layout-shift": true,
699
+ "data-ssr-placeholder": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined,
700
+ "data-ssr-placeholder-replace": expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? 'editor-view' : undefined
699
701
  // eslint-disable-next-line react/no-danger -- needed for SSR and hydration so react keeps the HTML untouched
700
702
  ,
701
703
  dangerouslySetInnerHTML: expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? {
@@ -210,7 +210,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
210
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
211
211
  textColorStyles,
212
212
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
- backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
213
+ backgroundColorStyles,
214
214
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
215
215
  textHighlightPaddingStyles,
216
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -401,7 +401,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
401
401
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
402
402
  };
403
403
  commands: {
404
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
405
404
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
406
405
  };
407
406
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -493,6 +492,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
493
492
  commands: {
494
493
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
495
494
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
495
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
496
496
  };
497
497
  dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/metrics").MetricsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
498
498
  pluginConfiguration: import("@atlaskit/editor-plugin-quick-insert").QuickInsertPluginOptions | undefined;
@@ -474,7 +474,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
474
474
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
475
475
  };
476
476
  commands: {
477
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
478
477
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
479
478
  };
480
479
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -566,6 +565,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
566
565
  commands: {
567
566
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
568
567
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
568
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
569
569
  };
570
570
  dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/metrics").MetricsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
571
571
  pluginConfiguration: import("@atlaskit/editor-plugin-quick-insert").QuickInsertPluginOptions | undefined;
@@ -401,7 +401,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
401
401
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
402
402
  };
403
403
  commands: {
404
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
405
404
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
406
405
  };
407
406
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/block-controls").BlockControlsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/decorations").DecorationsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
@@ -493,6 +492,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
493
492
  commands: {
494
493
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
495
494
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
495
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
496
496
  };
497
497
  dependencies: [import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-connectivity").ConnectivityPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/metrics").MetricsPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
498
498
  pluginConfiguration: import("@atlaskit/editor-plugin-quick-insert").QuickInsertPluginOptions | undefined;
@@ -566,7 +566,6 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
566
566
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
567
567
  };
568
568
  commands: {
569
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
570
569
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
571
570
  };
572
571
  dependencies: [
@@ -694,6 +693,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
694
693
  commands: {
695
694
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
696
695
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
696
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
697
697
  };
698
698
  dependencies: [
699
699
  import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin,
@@ -639,7 +639,6 @@ export default function createUniversalPresetInternal({ appearance, props, featu
639
639
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
640
640
  };
641
641
  commands: {
642
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
643
642
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
644
643
  };
645
644
  dependencies: [
@@ -767,6 +766,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
767
766
  commands: {
768
767
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
769
768
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
769
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
770
770
  };
771
771
  dependencies: [
772
772
  import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin,
@@ -566,7 +566,6 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
566
566
  registerBlockMenuComponents: (blockMenuComponents: Array<import("@atlaskit/editor-plugins/block-menu").RegisterBlockMenuComponent>) => void;
567
567
  };
568
568
  commands: {
569
- formatNode: (targetType: import("@atlaskit/editor-plugins/block-menu").FormatNodeTargetType, analyticsAttrs?: import("@atlaskit/editor-plugins/block-menu").FormatNodeAnalyticsAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
570
569
  transformNode: (targetType: import("prosemirror-model").NodeType, metadata?: import("@atlaskit/editor-plugins/block-menu").TransformNodeMetadata) => import("@atlaskit/editor-common/types").EditorCommand;
571
570
  };
572
571
  dependencies: [
@@ -694,6 +693,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
694
693
  commands: {
695
694
  addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
696
695
  openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
696
+ removeQuickInsertItem: (key: string) => import("@atlaskit/editor-common/types").EditorCommand;
697
697
  };
698
698
  dependencies: [
699
699
  import("@atlaskit/editor-plugins/type-ahead").TypeAheadPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.7.25",
3
+ "version": "216.7.26",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-json-transformer": "^8.31.0",
50
50
  "@atlaskit/editor-performance-metrics": "^2.1.0",
51
51
  "@atlaskit/editor-plugin-connectivity": "^7.0.0",
52
- "@atlaskit/editor-plugin-quick-insert": "^7.1.0",
52
+ "@atlaskit/editor-plugin-quick-insert": "^7.2.0",
53
53
  "@atlaskit/editor-plugin-user-preferences": "^5.0.0",
54
54
  "@atlaskit/editor-plugins": "^12.0.0",
55
55
  "@atlaskit/editor-prosemirror": "^7.3.0",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^5.1.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^20.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^20.2.0",
70
70
  "@atlaskit/tokens": "^11.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -314,9 +314,6 @@
314
314
  "type": "boolean",
315
315
  "referenceOnly": true
316
316
  },
317
- "platform_editor_text_highlight_padding": {
318
- "type": "boolean"
319
- },
320
317
  "platform_editor_toolbar_aifc_placement_overridden": {
321
318
  "type": "boolean"
322
319
  },