@atlaskit/editor-core 209.1.0 → 209.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 209.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#183032](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/183032)
8
+ [`3e085b471bb52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e085b471bb52) -
9
+ [ux] [ED-28482] fix smart link open button for headings
10
+ - Updated dependencies
11
+
3
12
  ## 209.1.0
4
13
 
5
14
  ### Minor Changes
@@ -216,7 +216,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
216
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
217
217
  _annotationStyles.annotationStyles,
218
218
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
219
- _smartCardStyles.smartCardStyles,
219
+ _smartCardStyles.smartCardStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') &&
220
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
221
+ _smartCardStyles.editorControlsSmartCardStyles,
220
222
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
221
223
  _embedCardStyles.embedCardStyles,
222
224
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -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.smartLinksInLivePagesStylesOld = exports.smartLinksInLivePagesStyles = exports.smartCardStyles = exports.linkingVisualRefreshV1Styles = exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
7
+ exports.smartLinksInLivePagesStylesOld = exports.smartLinksInLivePagesStyles = exports.smartCardStyles = 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 _selectionStyles = require("./selectionStyles");
@@ -20,6 +20,16 @@ var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
20
20
  LOADER_WRAPPER: 'loader-wrapper'
21
21
  };
22
22
 
23
+ // Move this into `smartCardStyles` below when cleaning up editor_controls_patch_15
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
25
+ var editorControlsSmartCardStyles = exports.editorControlsSmartCardStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), {
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
27
+ '[data-inlinecard-button-overlay="icon-wrapper-line-height"] span': {
28
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
29
+ lineHeight: 0
30
+ }
31
+ }));
32
+
23
33
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
24
34
  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)({
25
35
  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 = "209.0.3";
8
+ var version = exports.version = "209.1.0";
@@ -54,7 +54,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
54
54
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
55
55
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
56
56
  import { shadowStyles } from './styles/shadowStyles';
57
- import { linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
57
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
58
58
  import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh } from './styles/statusStyles';
59
59
  import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
60
60
  import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
@@ -211,7 +211,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
211
211
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
212
212
  annotationStyles,
213
213
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
214
- smartCardStyles,
214
+ smartCardStyles, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
215
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
216
+ editorControlsSmartCardStyles,
215
217
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
216
218
  embedCardStyles,
217
219
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -11,6 +11,19 @@ export const SmartCardSharedCssClassName = {
11
11
  LOADER_WRAPPER: 'loader-wrapper'
12
12
  };
13
13
 
14
+ // Move this into `smartCardStyles` below when cleaning up editor_controls_patch_15
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
16
+ export const editorControlsSmartCardStyles = css({
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
18
+ [`.${SmartCardSharedCssClassName.INLINE_CARD_CONTAINER}`]: {
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
20
+ '[data-inlinecard-button-overlay="icon-wrapper-line-height"] span': {
21
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
22
+ lineHeight: 0
23
+ }
24
+ }
25
+ });
26
+
14
27
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
28
  export const smartCardStyles = css({
16
29
  // 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 = "209.0.3";
2
+ export const version = "209.1.0";
@@ -54,7 +54,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
54
54
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
55
55
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
56
56
  import { shadowStyles } from './styles/shadowStyles';
57
- import { linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
57
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
58
58
  import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh } from './styles/statusStyles';
59
59
  import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
60
60
  import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
@@ -208,7 +208,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
208
208
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
209
209
  annotationStyles,
210
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
211
- smartCardStyles,
211
+ smartCardStyles, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
212
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
+ editorControlsSmartCardStyles,
212
214
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
213
215
  embedCardStyles,
214
216
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -12,6 +12,16 @@ export var SmartCardSharedCssClassName = {
12
12
  LOADER_WRAPPER: 'loader-wrapper'
13
13
  };
14
14
 
15
+ // Move this into `smartCardStyles` below when cleaning up editor_controls_patch_15
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
17
+ export var editorControlsSmartCardStyles = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), {
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
19
+ '[data-inlinecard-button-overlay="icon-wrapper-line-height"] span': {
20
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
21
+ lineHeight: 0
22
+ }
23
+ }));
24
+
15
25
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
16
26
  export var smartCardStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.INLINE_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty({
17
27
  maxWidth: 'calc(100% - 20px)',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.0.3";
2
+ export var version = "209.1.0";
@@ -277,6 +277,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
277
277
  insertExpand: import("@atlaskit/editor-common/types").Command;
278
278
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
279
279
  };
280
+ commands: {
281
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
282
+ };
280
283
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
281
284
  pluginConfiguration: undefined;
282
285
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -334,6 +334,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
334
334
  insertExpand: import("@atlaskit/editor-common/types").Command;
335
335
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
336
336
  };
337
+ commands: {
338
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
339
+ };
337
340
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
338
341
  pluginConfiguration: undefined;
339
342
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -277,6 +277,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
277
277
  insertExpand: import("@atlaskit/editor-common/types").Command;
278
278
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
279
279
  };
280
+ commands: {
281
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
282
+ };
280
283
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
281
284
  pluginConfiguration: undefined;
282
285
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -7,6 +7,7 @@ export declare const SmartCardSharedCssClassName: {
7
7
  DATASOURCE_CONTAINER: string;
8
8
  LOADER_WRAPPER: string;
9
9
  };
10
+ export declare const editorControlsSmartCardStyles: import("@emotion/react").SerializedStyles;
10
11
  export declare const smartCardStyles: import("@emotion/react").SerializedStyles;
11
12
  export declare const smartLinksInLivePagesStyles: import("@emotion/react").SerializedStyles;
12
13
  export declare const smartLinksInLivePagesStylesOld: import("@emotion/react").SerializedStyles;
@@ -399,6 +399,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
399
399
  insertExpand: import("@atlaskit/editor-common/types").Command;
400
400
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
401
401
  };
402
+ commands: {
403
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
404
+ };
402
405
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
403
406
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
404
407
  pluginConfiguration: undefined;
@@ -456,6 +456,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
456
456
  insertExpand: import("@atlaskit/editor-common/types").Command;
457
457
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
458
458
  };
459
+ commands: {
460
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
461
+ };
459
462
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
460
463
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
461
464
  pluginConfiguration: undefined;
@@ -399,6 +399,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
399
399
  insertExpand: import("@atlaskit/editor-common/types").Command;
400
400
  insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
401
401
  };
402
+ commands: {
403
+ toggleExpandWithMatch: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
404
+ };
402
405
  }, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
403
406
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
404
407
  pluginConfiguration: undefined;
@@ -7,6 +7,7 @@ export declare const SmartCardSharedCssClassName: {
7
7
  DATASOURCE_CONTAINER: string;
8
8
  LOADER_WRAPPER: string;
9
9
  };
10
+ export declare const editorControlsSmartCardStyles: import("@emotion/react").SerializedStyles;
10
11
  export declare const smartCardStyles: import("@emotion/react").SerializedStyles;
11
12
  export declare const smartLinksInLivePagesStyles: import("@emotion/react").SerializedStyles;
12
13
  export declare const smartLinksInLivePagesStylesOld: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "209.1.0",
3
+ "version": "209.1.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/activity-provider": "^2.5.0",
42
- "@atlaskit/adf-schema": "^47.6.0",
42
+ "@atlaskit/adf-schema": "^49.0.5",
43
43
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
44
44
  "@atlaskit/analytics-next": "^11.1.0",
45
45
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
@@ -61,7 +61,7 @@
61
61
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
62
62
  "@atlaskit/react-ufo": "^3.14.0",
63
63
  "@atlaskit/task-decision": "^19.2.0",
64
- "@atlaskit/tmp-editor-statsig": "^9.0.0",
64
+ "@atlaskit/tmp-editor-statsig": "^9.3.0",
65
65
  "@atlaskit/tokens": "^5.4.0",
66
66
  "@atlaskit/tooltip": "^20.3.0",
67
67
  "@atlaskit/width-detector": "^5.0.0",
@@ -104,7 +104,7 @@
104
104
  "@atlaskit/primitives": "^14.10.0",
105
105
  "@atlaskit/renderer": "^120.1.0",
106
106
  "@atlaskit/section-message": "^8.2.0",
107
- "@atlaskit/smart-card": "^39.2.0",
107
+ "@atlaskit/smart-card": "^39.4.0",
108
108
  "@atlaskit/synchrony-test-helpers": "workspace:^",
109
109
  "@atlaskit/toggle": "^15.0.0",
110
110
  "@atlaskit/util-data-test": "^18.0.0",
@@ -578,8 +578,15 @@
578
578
  "platform_editor_vanilla_codebidi_warning": {
579
579
  "type": "boolean"
580
580
  },
581
+ "platform_editor_controls_patch_15": {
582
+ "type": "boolean"
583
+ },
581
584
  "platform_fix_extra_space_last_line_comment_editor": {
582
585
  "type": "boolean"
586
+ },
587
+ "platform_editor_profilecard_style_fix": {
588
+ "type": "boolean",
589
+ "referenceOnly": true
583
590
  }
584
591
  },
585
592
  "stricter": {