@atlaskit/editor-plugin-card 13.1.5 → 13.1.7

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 (66) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/nodeviews/toDOM-fixes/blockCard.js +1 -2
  3. package/dist/cjs/nodeviews/toDOM-fixes/embedCard.js +1 -2
  4. package/dist/cjs/nodeviews/toDOM-fixes/inlineCard.js +1 -2
  5. package/dist/cjs/ui/InlineCardOverlay/index.js +3 -4
  6. package/dist/cjs/ui/LayoutButton/index.js +4 -5
  7. package/dist/cjs/ui/ResizableEmbedCard.js +2 -2
  8. package/dist/es2019/nodeviews/toDOM-fixes/blockCard.js +1 -2
  9. package/dist/es2019/nodeviews/toDOM-fixes/embedCard.js +1 -2
  10. package/dist/es2019/nodeviews/toDOM-fixes/inlineCard.js +1 -2
  11. package/dist/es2019/ui/InlineCardOverlay/index.js +3 -4
  12. package/dist/es2019/ui/LayoutButton/index.js +4 -6
  13. package/dist/es2019/ui/ResizableEmbedCard.js +2 -2
  14. package/dist/esm/nodeviews/toDOM-fixes/blockCard.js +1 -2
  15. package/dist/esm/nodeviews/toDOM-fixes/embedCard.js +1 -2
  16. package/dist/esm/nodeviews/toDOM-fixes/inlineCard.js +1 -2
  17. package/dist/esm/ui/InlineCardOverlay/index.js +3 -4
  18. package/dist/esm/ui/LayoutButton/index.js +4 -6
  19. package/dist/esm/ui/ResizableEmbedCard.js +2 -2
  20. package/dist/types/nodeviews/blockCard.d.ts +2 -1
  21. package/dist/types/nodeviews/datasource.d.ts +1 -1
  22. package/dist/types/nodeviews/embedCard.d.ts +2 -1
  23. package/dist/types/nodeviews/genericCard.d.ts +2 -2
  24. package/dist/types/nodeviews/inlineCard.d.ts +1 -1
  25. package/dist/types/nodeviews/lazy-block-card.d.ts +2 -2
  26. package/dist/types/nodeviews/lazy-embed-card.d.ts +2 -2
  27. package/dist/types/nodeviews/lazy-inline-card.d.ts +2 -2
  28. package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
  29. package/dist/types/pm-plugins/util/state.d.ts +2 -2
  30. package/dist/types/pm-plugins/utils.d.ts +2 -2
  31. package/dist/types/ui/ConfigureOverlay/index.d.ts +1 -1
  32. package/dist/types/ui/DatasourceAppearanceButton.d.ts +1 -1
  33. package/dist/types/ui/EditLinkToolbar.d.ts +1 -1
  34. package/dist/types/ui/EditToolbarButton/types.d.ts +2 -2
  35. package/dist/types/ui/EditorAnalyticsContext.d.ts +1 -1
  36. package/dist/types/ui/HyperlinkToolbarAppearance.d.ts +1 -1
  37. package/dist/types/ui/LayoutButton/index.d.ts +1 -5
  38. package/dist/types/ui/LayoutButton/utils.d.ts +1 -1
  39. package/dist/types/ui/LinkToolbarAppearanceDropdown.d.ts +1 -1
  40. package/dist/types/ui/OpenPreviewButton/index.d.ts +2 -2
  41. package/dist/types/ui/analytics/utils.d.ts +4 -3
  42. package/dist/types/ui/editDatasourceAction.d.ts +3 -3
  43. package/dist/types-ts4.5/nodeviews/blockCard.d.ts +2 -1
  44. package/dist/types-ts4.5/nodeviews/datasource.d.ts +1 -1
  45. package/dist/types-ts4.5/nodeviews/embedCard.d.ts +2 -1
  46. package/dist/types-ts4.5/nodeviews/genericCard.d.ts +2 -2
  47. package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +1 -1
  48. package/dist/types-ts4.5/nodeviews/lazy-block-card.d.ts +2 -2
  49. package/dist/types-ts4.5/nodeviews/lazy-embed-card.d.ts +2 -2
  50. package/dist/types-ts4.5/nodeviews/lazy-inline-card.d.ts +2 -2
  51. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
  52. package/dist/types-ts4.5/pm-plugins/util/state.d.ts +2 -2
  53. package/dist/types-ts4.5/pm-plugins/utils.d.ts +2 -2
  54. package/dist/types-ts4.5/ui/ConfigureOverlay/index.d.ts +1 -1
  55. package/dist/types-ts4.5/ui/DatasourceAppearanceButton.d.ts +1 -1
  56. package/dist/types-ts4.5/ui/EditLinkToolbar.d.ts +1 -1
  57. package/dist/types-ts4.5/ui/EditToolbarButton/types.d.ts +2 -2
  58. package/dist/types-ts4.5/ui/EditorAnalyticsContext.d.ts +1 -1
  59. package/dist/types-ts4.5/ui/HyperlinkToolbarAppearance.d.ts +1 -1
  60. package/dist/types-ts4.5/ui/LayoutButton/index.d.ts +1 -5
  61. package/dist/types-ts4.5/ui/LayoutButton/utils.d.ts +1 -1
  62. package/dist/types-ts4.5/ui/LinkToolbarAppearanceDropdown.d.ts +1 -1
  63. package/dist/types-ts4.5/ui/OpenPreviewButton/index.d.ts +2 -2
  64. package/dist/types-ts4.5/ui/analytics/utils.d.ts +4 -3
  65. package/dist/types-ts4.5/ui/editDatasourceAction.d.ts +3 -3
  66. package/package.json +6 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 13.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`5979ce2baa3ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5979ce2baa3ea) -
14
+ Mechanical type-import autofix for rendering and provider packages.
15
+ - [`5892e575833a1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5892e575833a1) -
16
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
17
+ - Updated dependencies
18
+
3
19
  ## 13.1.5
4
20
 
5
21
  ### Patch Changes
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
14
  // @nodeSpecException:toDOM patch
@@ -47,7 +46,7 @@ var blockCardSpecWithFixedToDOM = exports.blockCardSpecWithFixedToDOM = function
47
46
  boxDecorationBreak: 'clone',
48
47
  WebkitBoxDecorationBreak: 'clone',
49
48
  borderRadius: "var(--ds-radius-small, 4px)",
50
- color: "var(--ds-link, ".concat(_colors.B400, ")"),
49
+ color: "var(--ds-link, #1868DB)",
51
50
  lineHeight: '22px',
52
51
  WebkitTransition: '0.1s all ease-in-out',
53
52
  transition: '0.1s all ease-in-out',
@@ -10,7 +10,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _colors = require("@atlaskit/theme/colors");
14
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
16
15
  * Some of these functions and styling are duplicated from their custom node view equivalents
@@ -104,7 +103,7 @@ var embedCardSpecWithFixedToDOM = exports.embedCardSpecWithFixedToDOM = function
104
103
  display: 'inline',
105
104
  boxDecorationBreak: 'clone',
106
105
  borderRadius: "var(--ds-radius-small, 4px)",
107
- color: "var(--ds-link, ".concat(_colors.B400, ")"),
106
+ color: "var(--ds-link, #1868DB)",
108
107
  lineHeight: '22px',
109
108
  WebkitTransition: '0.1s all ease-in-out',
110
109
  transition: '0.1s all ease-in-out',
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
11
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
- var _colors = require("@atlaskit/theme/colors");
13
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
14
  // @nodeSpecException:toDOM patch
@@ -38,7 +37,7 @@ var inlineCardSpecWithFixedToDOM = exports.inlineCardSpecWithFixedToDOM = functi
38
37
  boxDecorationBreak: 'clone',
39
38
  WebkitBoxDecorationBreak: 'clone',
40
39
  borderRadius: "var(--ds-radius-small, 4px)",
41
- color: "var(--ds-link, ".concat(_colors.B400, ")"),
40
+ color: "var(--ds-link, #1868DB)",
42
41
  lineHeight: '22px',
43
42
  WebkitTransition: '0.1s all ease-in-out',
44
43
  transition: '0.1s all ease-in-out',
@@ -17,7 +17,6 @@ var _reactIntlNext = require("react-intl-next");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _whitespace = require("@atlaskit/editor-common/whitespace");
19
19
  var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
20
- var _colors = require("@atlaskit/theme/colors");
21
20
  var _utils = require("./utils");
22
21
  var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
23
22
  /* eslint-disable @atlaskit/design-system/no-nested-styles */
@@ -37,8 +36,8 @@ var OVERLAY_LABEL_CLASSNAME = 'ak-editor-card-overlay-label';
37
36
  var OVERLAY_GRADIENT_CLASSNAME = 'ak-editor-card-overlay-gradient';
38
37
  var OVERLAY_MARKER_CLASSNAME = 'ak-editor-card-overlay-marker';
39
38
  var TEXT_NODE_SELECTOR = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].join(',');
40
- var SMART_LINK_BACKGROUND_COLOR = "var(--ds-surface-raised, ".concat(_colors.N0, ")");
41
- var SMART_LINK_ACTIVE_COLOR = "var(--ds-background-selected, ".concat(_colors.B100, ")");
39
+ var SMART_LINK_BACKGROUND_COLOR = "var(--ds-surface-raised, #FFFFFF)";
40
+ var SMART_LINK_ACTIVE_COLOR = "var(--ds-background-selected, #E9F2FE)";
42
41
  var getGradientWithColor = function getGradientWithColor(color) {
43
42
  return "linear-gradient(270deg, ".concat(color, " 0%, rgba(255, 255, 255, 0.00) 100%)");
44
43
  };
@@ -96,7 +95,7 @@ var iconAndLabelStyles = (0, _react2.css)({
96
95
  // Margin to avoid the background covering the link border
97
96
  marginRight: "var(--ds-space-025, 2px)",
98
97
  background: SMART_LINK_BACKGROUND_COLOR,
99
- color: "var(--ds-text-subtlest, ".concat(_colors.N700, ")")
98
+ color: "var(--ds-text-subtlest, #6B6E76)"
100
99
  });
101
100
  var overflowingContainerStyles = (0, _react2.css)({
102
101
  display: 'flex',
@@ -16,7 +16,6 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _growHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/grow-horizontal"));
17
17
  var _shrinkHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/shrink-horizontal"));
18
18
  var _linkingCommon = require("@atlaskit/linking-common");
19
- var _colors = require("@atlaskit/theme/colors");
20
19
  var _actions = require("../../pm-plugins/actions");
21
20
  var _utils2 = require("../../pm-plugins/utils");
22
21
  var _utils3 = require("./utils");
@@ -26,13 +25,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
26
25
  * @jsx jsx
27
26
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
28
27
  var toolbarButtonWrapperStyles = (0, _react2.css)({
29
- background: "".concat("var(--ds-background-neutral, ".concat(_colors.N20A, ")")),
30
- color: "".concat("var(--ds-icon, ".concat(_colors.N300, ")")),
28
+ background: "var(--ds-background-neutral, #0515240F)",
29
+ color: "var(--ds-icon, #292A2E)",
31
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
32
31
  ':hover': {
33
- background: "".concat("var(--ds-background-neutral-hovered, ".concat(_colors.B300, ")")),
32
+ background: "var(--ds-background-neutral-hovered, #0B120E24)",
34
33
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
35
- color: "var(--ds-icon, white)".concat(" !important")
34
+ color: "var(--ds-icon, #292A2E)".concat(" !important")
36
35
  }
37
36
  });
38
37
  var LayoutButton = exports.LayoutButton = function LayoutButton(_ref) {
@@ -358,11 +358,11 @@ var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Compone
358
358
  }
359
359
  return {
360
360
  left: {
361
- left: "calc(".concat("var(--ds-space-negative-025, -0.125em)", " * 0.5)"),
361
+ left: "calc(".concat("var(--ds-space-negative-025, -2px)", " * 0.5)"),
362
362
  paddingLeft: '0px'
363
363
  },
364
364
  right: {
365
- right: "calc(".concat("var(--ds-space-negative-025, -0.125em)", " * 0.5)"),
365
+ right: "calc(".concat("var(--ds-space-negative-025, -2px)", " * 0.5)"),
366
366
  paddingRight: '0px'
367
367
  }
368
368
  };
@@ -1,7 +1,6 @@
1
1
  import { blockCard, blockCardWithLocalId } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { B400 } from '@atlaskit/theme/colors';
5
4
  // @nodeSpecException:toDOM patch
6
5
  export const blockCardSpecWithFixedToDOM = () => {
7
6
  const blockCardNode = fg('platform_editor_adf_with_localid') ? blockCardWithLocalId : blockCard;
@@ -42,7 +41,7 @@ export const blockCardSpecWithFixedToDOM = () => {
42
41
  boxDecorationBreak: 'clone',
43
42
  WebkitBoxDecorationBreak: 'clone',
44
43
  borderRadius: "var(--ds-radius-small, 4px)",
45
- color: `var(--ds-link, ${B400})`,
44
+ color: "var(--ds-link, #1868DB)",
46
45
  lineHeight: '22px',
47
46
  WebkitTransition: '0.1s all ease-in-out',
48
47
  transition: '0.1s all ease-in-out',
@@ -12,7 +12,6 @@ import { embedCard, embedCardWithLocalId } from '@atlaskit/adf-schema';
12
12
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
13
13
  import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
- import { B400 } from '@atlaskit/theme/colors';
16
15
  // From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
17
16
  function calcMargin(layout) {
18
17
  switch (layout) {
@@ -98,7 +97,7 @@ export const embedCardSpecWithFixedToDOM = () => {
98
97
  display: 'inline',
99
98
  boxDecorationBreak: 'clone',
100
99
  borderRadius: "var(--ds-radius-small, 4px)",
101
- color: `var(--ds-link, ${B400})`,
100
+ color: "var(--ds-link, #1868DB)",
102
101
  lineHeight: '22px',
103
102
  WebkitTransition: '0.1s all ease-in-out',
104
103
  transition: '0.1s all ease-in-out',
@@ -1,7 +1,6 @@
1
1
  import { inlineCard, inlineCardWithLocalId } from '@atlaskit/adf-schema';
2
2
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { B400 } from '@atlaskit/theme/colors';
5
4
  // @nodeSpecException:toDOM patch
6
5
  export const inlineCardSpecWithFixedToDOM = () => {
7
6
  const inlineCardNode = fg('platform_editor_adf_with_localid') ? inlineCardWithLocalId : inlineCard;
@@ -29,7 +28,7 @@ export const inlineCardSpecWithFixedToDOM = () => {
29
28
  boxDecorationBreak: 'clone',
30
29
  WebkitBoxDecorationBreak: 'clone',
31
30
  borderRadius: "var(--ds-radius-small, 4px)",
32
- color: `var(--ds-link, ${B400})`,
31
+ color: "var(--ds-link, #1868DB)",
33
32
  lineHeight: '22px',
34
33
  WebkitTransition: '0.1s all ease-in-out',
35
34
  transition: '0.1s all ease-in-out',
@@ -14,7 +14,6 @@ import { useIntl } from 'react-intl-next';
14
14
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
15
15
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
16
16
  import CustomizeIcon from '@atlaskit/icon/core/customize';
17
- import { B100, N0, N700 } from '@atlaskit/theme/colors';
18
17
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
19
18
  const DEBOUNCE_IN_MS = 5;
20
19
  const ESTIMATED_MIN_WIDTH_IN_PX = 16;
@@ -25,8 +24,8 @@ const OVERLAY_LABEL_CLASSNAME = 'ak-editor-card-overlay-label';
25
24
  const OVERLAY_GRADIENT_CLASSNAME = 'ak-editor-card-overlay-gradient';
26
25
  const OVERLAY_MARKER_CLASSNAME = 'ak-editor-card-overlay-marker';
27
26
  const TEXT_NODE_SELECTOR = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].join(',');
28
- const SMART_LINK_BACKGROUND_COLOR = `var(--ds-surface-raised, ${N0})`;
29
- const SMART_LINK_ACTIVE_COLOR = `var(--ds-background-selected, ${B100})`;
27
+ const SMART_LINK_BACKGROUND_COLOR = "var(--ds-surface-raised, #FFFFFF)";
28
+ const SMART_LINK_ACTIVE_COLOR = "var(--ds-background-selected, #E9F2FE)";
30
29
  const getGradientWithColor = color => {
31
30
  return `linear-gradient(270deg, ${color} 0%, rgba(255, 255, 255, 0.00) 100%)`;
32
31
  };
@@ -89,7 +88,7 @@ const iconAndLabelStyles = css({
89
88
  // Margin to avoid the background covering the link border
90
89
  marginRight: "var(--ds-space-025, 2px)",
91
90
  background: SMART_LINK_BACKGROUND_COLOR,
92
- color: `var(--ds-text-subtlest, ${N700})`
91
+ color: "var(--ds-text-subtlest, #6B6E76)"
93
92
  });
94
93
  const overflowingContainerStyles = css({
95
94
  display: 'flex',
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { useCallback, useMemo } from 'react';
6
-
7
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
8
7
  import { css, jsx } from '@emotion/react';
9
8
  import { injectIntl } from 'react-intl-next';
@@ -14,18 +13,17 @@ import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
14
13
  import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
15
14
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
16
15
  import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
17
- import { B300, N20A, N300 } from '@atlaskit/theme/colors';
18
16
  import { setCardLayout } from '../../pm-plugins/actions';
19
17
  import { isDatasourceNode } from '../../pm-plugins/utils';
20
18
  import { getDatasource, isDatasourceTableLayout } from './utils';
21
19
  const toolbarButtonWrapperStyles = css({
22
- background: `${`var(--ds-background-neutral, ${N20A})`}`,
23
- color: `${`var(--ds-icon, ${N300})`}`,
20
+ background: `${"var(--ds-background-neutral, #0515240F)"}`,
21
+ color: `${"var(--ds-icon, #292A2E)"}`,
24
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
25
23
  ':hover': {
26
- background: `${`var(--ds-background-neutral-hovered, ${B300})`}`,
24
+ background: `${"var(--ds-background-neutral-hovered, #0B120E24)"}`,
27
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
28
- color: `${"var(--ds-icon, white)"} !important`
26
+ color: `${"var(--ds-icon, #292A2E)"} !important`
29
27
  }
30
28
  });
31
29
  export const LayoutButton = ({
@@ -339,11 +339,11 @@ export default class ResizableEmbedCard extends React.Component {
339
339
  }
340
340
  return {
341
341
  left: {
342
- left: `calc(${"var(--ds-space-negative-025, -0.125em)"} * 0.5)`,
342
+ left: `calc(${"var(--ds-space-negative-025, -2px)"} * 0.5)`,
343
343
  paddingLeft: '0px'
344
344
  },
345
345
  right: {
346
- right: `calc(${"var(--ds-space-negative-025, -0.125em)"} * 0.5)`,
346
+ right: `calc(${"var(--ds-space-negative-025, -2px)"} * 0.5)`,
347
347
  paddingRight: '0px'
348
348
  }
349
349
  };
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { blockCard, blockCardWithLocalId } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
- import { B400 } from '@atlaskit/theme/colors';
8
7
  // @nodeSpecException:toDOM patch
9
8
  export var blockCardSpecWithFixedToDOM = function blockCardSpecWithFixedToDOM() {
10
9
  var blockCardNode = fg('platform_editor_adf_with_localid') ? blockCardWithLocalId : blockCard;
@@ -40,7 +39,7 @@ export var blockCardSpecWithFixedToDOM = function blockCardSpecWithFixedToDOM()
40
39
  boxDecorationBreak: 'clone',
41
40
  WebkitBoxDecorationBreak: 'clone',
42
41
  borderRadius: "var(--ds-radius-small, 4px)",
43
- color: "var(--ds-link, ".concat(B400, ")"),
42
+ color: "var(--ds-link, #1868DB)",
44
43
  lineHeight: '22px',
45
44
  WebkitTransition: '0.1s all ease-in-out',
46
45
  transition: '0.1s all ease-in-out',
@@ -15,7 +15,6 @@ import { embedCard, embedCardWithLocalId } from '@atlaskit/adf-schema';
15
15
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
16
16
  import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
17
17
  import { fg } from '@atlaskit/platform-feature-flags';
18
- import { B400 } from '@atlaskit/theme/colors';
19
18
  // From `packages/editor/editor-common/src/ui/MediaSingle/styled.tsx`
20
19
  function calcMargin(layout) {
21
20
  switch (layout) {
@@ -98,7 +97,7 @@ export var embedCardSpecWithFixedToDOM = function embedCardSpecWithFixedToDOM()
98
97
  display: 'inline',
99
98
  boxDecorationBreak: 'clone',
100
99
  borderRadius: "var(--ds-radius-small, 4px)",
101
- color: "var(--ds-link, ".concat(B400, ")"),
100
+ color: "var(--ds-link, #1868DB)",
102
101
  lineHeight: '22px',
103
102
  WebkitTransition: '0.1s all ease-in-out',
104
103
  transition: '0.1s all ease-in-out',
@@ -4,7 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { inlineCard, inlineCardWithLocalId } from '@atlaskit/adf-schema';
5
5
  import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
- import { B400 } from '@atlaskit/theme/colors';
8
7
  // @nodeSpecException:toDOM patch
9
8
  export var inlineCardSpecWithFixedToDOM = function inlineCardSpecWithFixedToDOM() {
10
9
  var inlineCardNode = fg('platform_editor_adf_with_localid') ? inlineCardWithLocalId : inlineCard;
@@ -31,7 +30,7 @@ export var inlineCardSpecWithFixedToDOM = function inlineCardSpecWithFixedToDOM(
31
30
  boxDecorationBreak: 'clone',
32
31
  WebkitBoxDecorationBreak: 'clone',
33
32
  borderRadius: "var(--ds-radius-small, 4px)",
34
- color: "var(--ds-link, ".concat(B400, ")"),
33
+ color: "var(--ds-link, #1868DB)",
35
34
  lineHeight: '22px',
36
35
  WebkitTransition: '0.1s all ease-in-out',
37
36
  transition: '0.1s all ease-in-out',
@@ -18,7 +18,6 @@ import { useIntl } from 'react-intl-next';
18
18
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
19
19
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
20
20
  import CustomizeIcon from '@atlaskit/icon/core/customize';
21
- import { B100, N0, N700 } from '@atlaskit/theme/colors';
22
21
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
23
22
  var DEBOUNCE_IN_MS = 5;
24
23
  var ESTIMATED_MIN_WIDTH_IN_PX = 16;
@@ -29,8 +28,8 @@ var OVERLAY_LABEL_CLASSNAME = 'ak-editor-card-overlay-label';
29
28
  var OVERLAY_GRADIENT_CLASSNAME = 'ak-editor-card-overlay-gradient';
30
29
  var OVERLAY_MARKER_CLASSNAME = 'ak-editor-card-overlay-marker';
31
30
  var TEXT_NODE_SELECTOR = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'].join(',');
32
- var SMART_LINK_BACKGROUND_COLOR = "var(--ds-surface-raised, ".concat(N0, ")");
33
- var SMART_LINK_ACTIVE_COLOR = "var(--ds-background-selected, ".concat(B100, ")");
31
+ var SMART_LINK_BACKGROUND_COLOR = "var(--ds-surface-raised, #FFFFFF)";
32
+ var SMART_LINK_ACTIVE_COLOR = "var(--ds-background-selected, #E9F2FE)";
34
33
  var getGradientWithColor = function getGradientWithColor(color) {
35
34
  return "linear-gradient(270deg, ".concat(color, " 0%, rgba(255, 255, 255, 0.00) 100%)");
36
35
  };
@@ -88,7 +87,7 @@ var iconAndLabelStyles = css({
88
87
  // Margin to avoid the background covering the link border
89
88
  marginRight: "var(--ds-space-025, 2px)",
90
89
  background: SMART_LINK_BACKGROUND_COLOR,
91
- color: "var(--ds-text-subtlest, ".concat(N700, ")")
90
+ color: "var(--ds-text-subtlest, #6B6E76)"
92
91
  });
93
92
  var overflowingContainerStyles = css({
94
93
  display: 'flex',
@@ -6,7 +6,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
6
6
  * @jsx jsx
7
7
  */
8
8
  import { useCallback, useMemo } from 'react';
9
-
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
11
10
  import { css, jsx } from '@emotion/react';
12
11
  import { injectIntl } from 'react-intl-next';
@@ -17,18 +16,17 @@ import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
17
16
  import GrowHorizontalIcon from '@atlaskit/icon/core/grow-horizontal';
18
17
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/shrink-horizontal';
19
18
  import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
20
- import { B300, N20A, N300 } from '@atlaskit/theme/colors';
21
19
  import { setCardLayout } from '../../pm-plugins/actions';
22
20
  import { isDatasourceNode } from '../../pm-plugins/utils';
23
21
  import { getDatasource, isDatasourceTableLayout } from './utils';
24
22
  var toolbarButtonWrapperStyles = css({
25
- background: "".concat("var(--ds-background-neutral, ".concat(N20A, ")")),
26
- color: "".concat("var(--ds-icon, ".concat(N300, ")")),
23
+ background: "var(--ds-background-neutral, #0515240F)",
24
+ color: "var(--ds-icon, #292A2E)",
27
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
28
26
  ':hover': {
29
- background: "".concat("var(--ds-background-neutral-hovered, ".concat(B300, ")")),
27
+ background: "var(--ds-background-neutral-hovered, #0B120E24)",
30
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
31
- color: "var(--ds-icon, white)".concat(" !important")
29
+ color: "var(--ds-icon, #292A2E)".concat(" !important")
32
30
  }
33
31
  });
34
32
  export var LayoutButton = function LayoutButton(_ref) {
@@ -354,11 +354,11 @@ var ResizableEmbedCard = /*#__PURE__*/function (_React$Component) {
354
354
  }
355
355
  return {
356
356
  left: {
357
- left: "calc(".concat("var(--ds-space-negative-025, -0.125em)", " * 0.5)"),
357
+ left: "calc(".concat("var(--ds-space-negative-025, -2px)", " * 0.5)"),
358
358
  paddingLeft: '0px'
359
359
  },
360
360
  right: {
361
- right: "calc(".concat("var(--ds-space-negative-025, -0.125em)", " * 0.5)"),
361
+ right: "calc(".concat("var(--ds-space-negative-025, -2px)", " * 0.5)"),
362
362
  paddingRight: '0px'
363
363
  }
364
364
  };
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import ReactNodeView, { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
2
+ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
3
+ import type { getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
3
4
  import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
4
5
  import type { Node } from '@atlaskit/editor-prosemirror/model';
5
6
  import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
8
- import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
8
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
9
9
  import type { getPosHandler, ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
10
10
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
11
11
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
@@ -1,4 +1,5 @@
1
- import React, { type ComponentProps } from 'react';
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
2
3
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
3
4
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
4
5
  import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
@@ -7,9 +7,9 @@ import type { ProviderFactory, Providers } from '@atlaskit/editor-common/provide
7
7
  import type { ReactComponentProps, getPosHandler } from '@atlaskit/editor-common/react-node-view';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
10
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
10
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
- import { type CardContext } from '@atlaskit/link-provider';
12
+ import type { CardContext } from '@atlaskit/link-provider';
13
13
  import type { CardProps as BaseCardProps } from '@atlaskit/smart-card';
14
14
  import type { cardPlugin } from '../index';
15
15
  export type EditorContext<T> = React.Context<T> & {
@@ -3,7 +3,7 @@ import type { InlineNodeViewComponentProps, getInlineNodeViewProducer } from '@a
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { SmartCardProps } from './genericCard';
6
- import { type InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
6
+ import type { InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
7
7
  export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick, onResolve, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, pluginInjectionApi, disablePreviewPanel, }: SmartCardProps) => React.JSX.Element | null>;
8
8
  export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | 'isPageSSRed' | 'CompetitorPrompt' | 'provider'>;
9
9
  /**
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type BlockCardNodeViewProperties } from './blockCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { BlockCardNodeViewProperties } from './blockCard';
3
3
  export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type EmbedCardNodeViewProperties } from './embedCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { EmbedCardNodeViewProperties } from './embedCard';
3
3
  export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type InlineCardNodeViewProperties } from './inlineCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { InlineCardNodeViewProperties } from './inlineCard';
3
3
  export declare const lazyInlineCardView: (props: InlineCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import { type CardPluginState } from '../types';
2
+ import type { CardPluginState } from '../types';
3
3
  export declare const pluginKey: PluginKey<CardPluginState>;
@@ -3,10 +3,10 @@ import type { ACTION } from '@atlaskit/editor-common/analytics';
3
3
  import type { CardReplacementInputMethod } from '@atlaskit/editor-common/card';
4
4
  import type { CardAppearance, CardProvider } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { DatasourceModalType, EditorAppearance } from '@atlaskit/editor-common/types';
6
- import { type EditorState, type ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
6
+ import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { DatasourceAdfView } from '@atlaskit/linking-common';
8
8
  import type { SmartLinkEvents } from '@atlaskit/smart-card';
9
- import { type CardPluginState, type Request } from '../../types';
9
+ import type { CardPluginState, Request } from '../../types';
10
10
  import type { DatasourceTableLayout } from '../../ui/LayoutButton/types';
11
11
  export declare const getPluginState: (editorState: EditorState) => CardPluginState | undefined;
12
12
  export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState, tr: ReadonlyTransaction) => {
@@ -1,8 +1,8 @@
1
1
  import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
- import { type getPosHandler } from '@atlaskit/editor-common/react-node-view';
2
+ import type { getPosHandler } from '@atlaskit/editor-common/react-node-view';
3
3
  import type { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
5
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CardContext } from '@atlaskit/link-provider';
7
7
  import type { CardInfo, DatasourceNode } from '../types';
8
8
  export declare const appearanceForNodeType: (spec: NodeType) => CardAppearance | undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  declare const OverlayWrapper: ({ view, targetElementPos, children, isHoveredCallback: hoverCallback, onOpenLinkClick, }: {
4
4
  children: JSX.Element;
5
5
  /** Fired when the mouse enters or leaves the overlay button */
@@ -3,7 +3,7 @@ import type { IntlShape } from 'react-intl-next';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { type CardContext } from '@atlaskit/link-provider';
6
+ import type { CardContext } from '@atlaskit/link-provider';
7
7
  export interface DatasourceAppearanceButtonProps {
8
8
  areAnyNewToolbarFlagsEnabled: boolean;
9
9
  cardContext?: CardContext;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { HyperlinkAddToolbarProps } from '@atlaskit/editor-common/link';
5
5
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem, LinkInputType, LinkPickerOptions } from '@atlaskit/editor-common/types';
@@ -1,10 +1,10 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CardContext } from '@atlaskit/link-provider';
7
- import { type CardType } from '../../types';
7
+ import type { CardType } from '../../types';
8
8
  export type EditVariant = 'none' | 'edit-link' | 'edit-datasource' | 'edit-dropdown';
9
9
  export interface EditDatasourceToolbarButtonWithCommonProps {
10
10
  areAnyNewToolbarFlagsEnabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export type EditorAnalyticsContextProps = {
4
4
  children: React.ReactNode;
5
5
  editorView?: EditorView;
@@ -5,7 +5,7 @@ import type { CardOptions } from '@atlaskit/editor-common/card';
5
5
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
6
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import { type CardPlugin } from '../cardPluginType';
8
+ import type { CardPlugin } from '../cardPluginType';
9
9
  export interface HyperlinkToolbarAppearanceProps {
10
10
  cardOptions?: CardOptions;
11
11
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ComponentType, type FC } from 'react';
1
+ import type { ComponentType, FC } from 'react';
6
2
  import { jsx } from '@emotion/react';
7
3
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
4
  import type { LayoutButtonProps, LayoutButtonWrapperProps } from './types';
@@ -1,6 +1,6 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { DatasourceNode } from '../../types';
3
- import { type DatasourceTableLayout } from './types';
3
+ import type { DatasourceTableLayout } from './types';
4
4
  export declare const getDatasource: (editorView: EditorView | undefined) => {
5
5
  depth: number;
6
6
  node: DatasourceNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Command, FloatingToolbarDropdown, FloatingToolbarItem } from '@atlaskit/editor-common/types';
3
- import { type LinkToolbarAppearanceProps } from './LinkToolbarAppearance';
3
+ import type { LinkToolbarAppearanceProps } from './LinkToolbarAppearance';
4
4
  type Props = LinkToolbarAppearanceProps & {
5
5
  allowDatasource?: boolean;
6
6
  dispatchCommand: (command: Command) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
3
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { IntlShape } from 'react-intl-next';
3
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  type OpenPreviewPanelToolbarButtonProps = {
@@ -1,7 +1,8 @@
1
1
  import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
- import { type Node } from '@atlaskit/editor-prosemirror/model';
3
- import { type ReadonlyTransaction, type Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import { type Entity, EVENT_SUBJECT } from './types';
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
3
+ import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
4
+ import { EVENT_SUBJECT } from './types';
5
+ import type { Entity } from './types';
5
6
  export declare function isDatasourceNode(node: Node): boolean;
6
7
  /**
7
8
  * Determine if a node is considered to be a link
@@ -1,4 +1,4 @@
1
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { type Command } from '@atlaskit/editor-common/types';
3
- import { type CardType } from '../types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
+ import type { CardType } from '../types';
4
4
  export declare const editDatasource: (datasourceId: string, editorAnalyticsApi?: EditorAnalyticsAPI, appearance?: CardType, extensionKey?: string) => Command;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import ReactNodeView, { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
2
+ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
3
+ import type { getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
3
4
  import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
4
5
  import type { Node } from '@atlaskit/editor-prosemirror/model';
5
6
  import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
8
- import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
8
+ import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
9
9
  import type { getPosHandler, ReactComponentProps } from '@atlaskit/editor-common/react-node-view';
10
10
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
11
11
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
@@ -1,4 +1,5 @@
1
- import React, { type ComponentProps } from 'react';
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
2
3
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
3
4
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
4
5
  import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
@@ -7,9 +7,9 @@ import type { ProviderFactory, Providers } from '@atlaskit/editor-common/provide
7
7
  import type { ReactComponentProps, getPosHandler } from '@atlaskit/editor-common/react-node-view';
8
8
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
9
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
10
- import { type Transaction } from '@atlaskit/editor-prosemirror/state';
10
+ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
- import { type CardContext } from '@atlaskit/link-provider';
12
+ import type { CardContext } from '@atlaskit/link-provider';
13
13
  import type { CardProps as BaseCardProps } from '@atlaskit/smart-card';
14
14
  import type { cardPlugin } from '../index';
15
15
  export type EditorContext<T> = React.Context<T> & {
@@ -3,7 +3,7 @@ import type { InlineNodeViewComponentProps, getInlineNodeViewProducer } from '@a
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { SmartCardProps } from './genericCard';
6
- import { type InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
6
+ import type { InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
7
7
  export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick, onResolve, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, pluginInjectionApi, disablePreviewPanel, }: SmartCardProps) => React.JSX.Element | null>;
8
8
  export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | 'isPageSSRed' | 'CompetitorPrompt' | 'provider'>;
9
9
  /**
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type BlockCardNodeViewProperties } from './blockCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { BlockCardNodeViewProperties } from './blockCard';
3
3
  export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type EmbedCardNodeViewProperties } from './embedCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { EmbedCardNodeViewProperties } from './embedCard';
3
3
  export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
- import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
- import { type InlineCardNodeViewProperties } from './inlineCard';
1
+ import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
2
+ import type { InlineCardNodeViewProperties } from './inlineCard';
3
3
  export declare const lazyInlineCardView: (props: InlineCardNodeViewProperties) => NodeViewConstructor;
@@ -1,3 +1,3 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import { type CardPluginState } from '../types';
2
+ import type { CardPluginState } from '../types';
3
3
  export declare const pluginKey: PluginKey<CardPluginState>;
@@ -3,10 +3,10 @@ import type { ACTION } from '@atlaskit/editor-common/analytics';
3
3
  import type { CardReplacementInputMethod } from '@atlaskit/editor-common/card';
4
4
  import type { CardAppearance, CardProvider } from '@atlaskit/editor-common/provider-factory';
5
5
  import type { DatasourceModalType, EditorAppearance } from '@atlaskit/editor-common/types';
6
- import { type EditorState, type ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
6
+ import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { DatasourceAdfView } from '@atlaskit/linking-common';
8
8
  import type { SmartLinkEvents } from '@atlaskit/smart-card';
9
- import { type CardPluginState, type Request } from '../../types';
9
+ import type { CardPluginState, Request } from '../../types';
10
10
  import type { DatasourceTableLayout } from '../../ui/LayoutButton/types';
11
11
  export declare const getPluginState: (editorState: EditorState) => CardPluginState | undefined;
12
12
  export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState, tr: ReadonlyTransaction) => {
@@ -1,8 +1,8 @@
1
1
  import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
- import { type getPosHandler } from '@atlaskit/editor-common/react-node-view';
2
+ import type { getPosHandler } from '@atlaskit/editor-common/react-node-view';
3
3
  import type { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
5
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CardContext } from '@atlaskit/link-provider';
7
7
  import type { CardInfo, DatasourceNode } from '../types';
8
8
  export declare const appearanceForNodeType: (spec: NodeType) => CardAppearance | undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  declare const OverlayWrapper: ({ view, targetElementPos, children, isHoveredCallback: hoverCallback, onOpenLinkClick, }: {
4
4
  children: JSX.Element;
5
5
  /** Fired when the mouse enters or leaves the overlay button */
@@ -3,7 +3,7 @@ import type { IntlShape } from 'react-intl-next';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { type CardContext } from '@atlaskit/link-provider';
6
+ import type { CardContext } from '@atlaskit/link-provider';
7
7
  export interface DatasourceAppearanceButtonProps {
8
8
  areAnyNewToolbarFlagsEnabled: boolean;
9
9
  cardContext?: CardContext;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { HyperlinkAddToolbarProps } from '@atlaskit/editor-common/link';
5
5
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem, LinkInputType, LinkPickerOptions } from '@atlaskit/editor-common/types';
@@ -1,10 +1,10 @@
1
- import { type IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CardContext } from '@atlaskit/link-provider';
7
- import { type CardType } from '../../types';
7
+ import type { CardType } from '../../types';
8
8
  export type EditVariant = 'none' | 'edit-link' | 'edit-datasource' | 'edit-dropdown';
9
9
  export interface EditDatasourceToolbarButtonWithCommonProps {
10
10
  areAnyNewToolbarFlagsEnabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export type EditorAnalyticsContextProps = {
4
4
  children: React.ReactNode;
5
5
  editorView?: EditorView;
@@ -5,7 +5,7 @@ import type { CardOptions } from '@atlaskit/editor-common/card';
5
5
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
6
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import { type CardPlugin } from '../cardPluginType';
8
+ import type { CardPlugin } from '../cardPluginType';
9
9
  export interface HyperlinkToolbarAppearanceProps {
10
10
  cardOptions?: CardOptions;
11
11
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ComponentType, type FC } from 'react';
1
+ import type { ComponentType, FC } from 'react';
6
2
  import { jsx } from '@emotion/react';
7
3
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
8
4
  import type { LayoutButtonProps, LayoutButtonWrapperProps } from './types';
@@ -1,6 +1,6 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { DatasourceNode } from '../../types';
3
- import { type DatasourceTableLayout } from './types';
3
+ import type { DatasourceTableLayout } from './types';
4
4
  export declare const getDatasource: (editorView: EditorView | undefined) => {
5
5
  depth: number;
6
6
  node: DatasourceNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { Command, FloatingToolbarDropdown, FloatingToolbarItem } from '@atlaskit/editor-common/types';
3
- import { type LinkToolbarAppearanceProps } from './LinkToolbarAppearance';
3
+ import type { LinkToolbarAppearanceProps } from './LinkToolbarAppearance';
4
4
  type Props = LinkToolbarAppearanceProps & {
5
5
  allowDatasource?: boolean;
6
6
  dispatchCommand: (command: Command) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type IntlShape } from 'react-intl-next';
3
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { IntlShape } from 'react-intl-next';
3
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  type OpenPreviewPanelToolbarButtonProps = {
@@ -1,7 +1,8 @@
1
1
  import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
2
- import { type Node } from '@atlaskit/editor-prosemirror/model';
3
- import { type ReadonlyTransaction, type Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import { type Entity, EVENT_SUBJECT } from './types';
2
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
3
+ import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
4
+ import { EVENT_SUBJECT } from './types';
5
+ import type { Entity } from './types';
5
6
  export declare function isDatasourceNode(node: Node): boolean;
6
7
  /**
7
8
  * Determine if a node is considered to be a link
@@ -1,4 +1,4 @@
1
- import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { type Command } from '@atlaskit/editor-common/types';
3
- import { type CardType } from '../types';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
+ import type { CardType } from '../types';
4
4
  export declare const editDatasource: (datasourceId: string, editorAnalyticsApi?: EditorAnalyticsAPI, appearance?: CardType, extensionKey?: string) => Command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "13.1.5",
3
+ "version": "13.1.7",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/editor-shared-styles": "^3.10.0",
48
48
  "@atlaskit/editor-smart-link-draggable": "^0.2.0",
49
49
  "@atlaskit/frontend-utilities": "^3.2.0",
50
- "@atlaskit/icon": "^33.0.0",
50
+ "@atlaskit/icon": "^33.1.0",
51
51
  "@atlaskit/link": "^3.3.0",
52
52
  "@atlaskit/link-analytics": "^11.0.0",
53
53
  "@atlaskit/link-client-extension": "^6.0.0",
@@ -60,10 +60,9 @@
60
60
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
61
61
  "@atlaskit/primitives": "^18.1.0",
62
62
  "@atlaskit/prosemirror-history": "^0.2.0",
63
- "@atlaskit/smart-card": "^43.27.0",
64
- "@atlaskit/theme": "^22.0.0",
65
- "@atlaskit/tmp-editor-statsig": "^46.0.0",
66
- "@atlaskit/tokens": "^11.2.0",
63
+ "@atlaskit/smart-card": "^43.28.0",
64
+ "@atlaskit/tmp-editor-statsig": "^47.0.0",
65
+ "@atlaskit/tokens": "^11.3.0",
67
66
  "@babel/runtime": "^7.0.0",
68
67
  "@emotion/react": "^11.7.1",
69
68
  "lodash": "^4.17.21",
@@ -72,7 +71,7 @@
72
71
  "uuid": "^3.1.0"
73
72
  },
74
73
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^112.9.0",
74
+ "@atlaskit/editor-common": "^112.10.0",
76
75
  "@atlaskit/link-provider": "^4.3.0",
77
76
  "react": "^18.2.0",
78
77
  "react-intl-next": "npm:react-intl@^5.18.1"