@atlaskit/editor-plugin-card 7.2.0 → 7.2.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-plugin-card
2
2
 
3
+ ## 7.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#185241](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185241)
8
+ [`0d1bffce3fedd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d1bffce3fedd) -
9
+ [ux] View embed as block card when page width smaller or equal to 600px
10
+ - Updated dependencies
11
+
3
12
  ## 7.2.0
4
13
 
5
14
  ### Minor Changes
@@ -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.embedCardNodeView = exports.EmbedCardComponent = exports.EmbedCard = void 0;
7
+ exports.embedCardNodeView = exports.EmbedOrBlockCardComponent = exports.EmbedCardComponent = exports.EmbedCard = void 0;
8
8
  var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -20,11 +20,15 @@ var _steps = require("@atlaskit/adf-schema/steps");
20
20
  var _hooks = require("@atlaskit/editor-common/hooks");
21
21
  var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/react-node-view"));
22
22
  var _ui = require("@atlaskit/editor-common/ui");
23
+ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
23
24
  var _utils = require("@atlaskit/editor-common/utils");
24
25
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
26
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
25
27
  var _smartCard = require("@atlaskit/smart-card");
28
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
26
29
  var _actions = require("../pm-plugins/actions");
27
30
  var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
31
+ var _blockCard = require("./blockCard");
28
32
  var _genericCard = require("./genericCard");
29
33
  function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
30
34
  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; }
@@ -57,7 +61,6 @@ var CardInner = function CardInner(_ref) {
57
61
  getLineLength = _ref.getLineLength,
58
62
  view = _ref.view,
59
63
  smartCard = _ref.smartCard,
60
- eventDispatcher = _ref.eventDispatcher,
61
64
  updateSize = _ref.updateSize,
62
65
  getPos = _ref.getPos,
63
66
  aspectRatio = _ref.aspectRatio,
@@ -372,7 +375,51 @@ var EmbedCardComponent = exports.EmbedCardComponent = /*#__PURE__*/function (_Re
372
375
  }
373
376
  }]);
374
377
  }(_react.default.PureComponent);
375
- var WrappedBlockCard = (0, _genericCard.Card)(EmbedCardComponent, _ui.UnsupportedBlock);
378
+ var EmbedOrBlockCardComponent = exports.EmbedOrBlockCardComponent = function EmbedOrBlockCardComponent(props) {
379
+ var width = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(props.pluginInjectionApi, 'width.width');
380
+ var viewAsBlockCard = width && width <= _editorSharedStyles.akEditorFullPageNarrowBreakout;
381
+ return viewAsBlockCard ? /*#__PURE__*/_react.default.createElement(_blockCard.BlockCardComponent, {
382
+ id: props.id,
383
+ node: props.node,
384
+ view: props.view,
385
+ getPos: props.getPos,
386
+ pluginInjectionApi: props.pluginInjectionApi,
387
+ actionOptions: props.actionOptions,
388
+ onClick: props.onClick,
389
+ CompetitorPrompt: props.CompetitorPrompt,
390
+ allowResizing: props.allowResizing,
391
+ fullWidthMode: props.fullWidthMode,
392
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
393
+ eventDispatcher: props.eventDispatcher,
394
+ cardContext: props.cardContext,
395
+ smartCard: props.smartCard,
396
+ hasPreview: props.hasPreview,
397
+ liveHeight: props.liveHeight,
398
+ initialAspectRatio: props.initialAspectRatio
399
+ }) : /*#__PURE__*/_react.default.createElement(EmbedCardComponent, {
400
+ id: props.id,
401
+ node: props.node,
402
+ view: props.view,
403
+ getPos: props.getPos,
404
+ pluginInjectionApi: props.pluginInjectionApi,
405
+ actionOptions: props.actionOptions,
406
+ onClick: props.onClick,
407
+ CompetitorPrompt: props.CompetitorPrompt,
408
+ allowResizing: props.allowResizing,
409
+ fullWidthMode: props.fullWidthMode,
410
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
411
+ eventDispatcher: props.eventDispatcher,
412
+ cardContext: props.cardContext,
413
+ smartCard: props.smartCard,
414
+ hasPreview: props.hasPreview,
415
+ liveHeight: props.liveHeight,
416
+ initialAspectRatio: props.initialAspectRatio
417
+ });
418
+ };
419
+ var WrappedEmbedCardWithCondition = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
420
+ return (0, _expValEquals.expValEquals)('platform_editor_preview_panel_responsiveness', 'isEnabled', true);
421
+ }, EmbedOrBlockCardComponent, EmbedCardComponent);
422
+ var WrappedEmbedCard = (0, _genericCard.Card)(WrappedEmbedCardWithCondition, _ui.UnsupportedBlock);
376
423
  var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
377
424
  function EmbedCard() {
378
425
  var _this2;
@@ -423,7 +470,7 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
423
470
  pluginInjectionApi = _this$reactComponentP3.pluginInjectionApi,
424
471
  onClickCallback = _this$reactComponentP3.onClickCallback,
425
472
  CompetitorPrompt = _this$reactComponentP3.CompetitorPrompt;
426
- return /*#__PURE__*/_react.default.createElement(WrappedBlockCard, {
473
+ return /*#__PURE__*/_react.default.createElement(WrappedEmbedCard, {
427
474
  node: this.node,
428
475
  view: this.view,
429
476
  eventDispatcher: eventDispatcher,
@@ -33,6 +33,7 @@ var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/
33
33
  var _settingsEditorSettings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings--editor-settings"));
34
34
  var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
35
35
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
36
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
36
37
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
37
38
  var _doc = require("../pm-plugins/doc");
38
39
  var _pluginKey = require("../pm-plugins/plugin-key");
@@ -147,7 +148,13 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(cardOpt
147
148
  if (isEmbedCard) {
148
149
  // Ignored via go/ees005
149
150
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
150
- return element.querySelector(".".concat(_styles.richMediaClassName));
151
+ var richMediaElement = element.querySelector(".".concat(_styles.richMediaClassName));
152
+ if (!(0, _expValEquals.expValEquals)('platform_editor_preview_panel_responsiveness', 'isEnabled', true)) {
153
+ return richMediaElement;
154
+ }
155
+ if (richMediaElement) {
156
+ return richMediaElement;
157
+ }
151
158
  }
152
159
  return element;
153
160
  },
@@ -7,11 +7,15 @@ import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
7
7
  import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
8
8
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
9
9
  import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
10
+ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
10
11
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
11
- import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
12
+ import { akEditorFullPageNarrowBreakout, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
13
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
12
14
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
15
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
16
  import { registerCard, removeCard } from '../pm-plugins/actions';
14
17
  import ResizableEmbedCard from '../ui/ResizableEmbedCard';
18
+ import { BlockCardComponent } from './blockCard';
15
19
  import { Card } from './genericCard';
16
20
  const selector = states => {
17
21
  var _states$widthState, _states$widthState2, _states$editorDisable;
@@ -40,7 +44,6 @@ const CardInner = ({
40
44
  getLineLength,
41
45
  view,
42
46
  smartCard,
43
- eventDispatcher,
44
47
  updateSize,
45
48
  getPos,
46
49
  aspectRatio,
@@ -363,7 +366,49 @@ export class EmbedCardComponent extends React.PureComponent {
363
366
  }));
364
367
  }
365
368
  }
366
- const WrappedBlockCard = Card(EmbedCardComponent, UnsupportedBlock);
369
+ export const EmbedOrBlockCardComponent = props => {
370
+ const width = useSharedPluginStateSelector(props.pluginInjectionApi, 'width.width');
371
+ const viewAsBlockCard = width && width <= akEditorFullPageNarrowBreakout;
372
+ return viewAsBlockCard ? /*#__PURE__*/React.createElement(BlockCardComponent, {
373
+ id: props.id,
374
+ node: props.node,
375
+ view: props.view,
376
+ getPos: props.getPos,
377
+ pluginInjectionApi: props.pluginInjectionApi,
378
+ actionOptions: props.actionOptions,
379
+ onClick: props.onClick,
380
+ CompetitorPrompt: props.CompetitorPrompt,
381
+ allowResizing: props.allowResizing,
382
+ fullWidthMode: props.fullWidthMode,
383
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
384
+ eventDispatcher: props.eventDispatcher,
385
+ cardContext: props.cardContext,
386
+ smartCard: props.smartCard,
387
+ hasPreview: props.hasPreview,
388
+ liveHeight: props.liveHeight,
389
+ initialAspectRatio: props.initialAspectRatio
390
+ }) : /*#__PURE__*/React.createElement(EmbedCardComponent, {
391
+ id: props.id,
392
+ node: props.node,
393
+ view: props.view,
394
+ getPos: props.getPos,
395
+ pluginInjectionApi: props.pluginInjectionApi,
396
+ actionOptions: props.actionOptions,
397
+ onClick: props.onClick,
398
+ CompetitorPrompt: props.CompetitorPrompt,
399
+ allowResizing: props.allowResizing,
400
+ fullWidthMode: props.fullWidthMode,
401
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
402
+ eventDispatcher: props.eventDispatcher,
403
+ cardContext: props.cardContext,
404
+ smartCard: props.smartCard,
405
+ hasPreview: props.hasPreview,
406
+ liveHeight: props.liveHeight,
407
+ initialAspectRatio: props.initialAspectRatio
408
+ });
409
+ };
410
+ const WrappedEmbedCardWithCondition = componentWithCondition(() => expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true), EmbedOrBlockCardComponent, EmbedCardComponent);
411
+ const WrappedEmbedCard = Card(WrappedEmbedCardWithCondition, UnsupportedBlock);
367
412
  export class EmbedCard extends ReactNodeView {
368
413
  constructor(...args) {
369
414
  super(...args);
@@ -399,7 +444,7 @@ export class EmbedCard extends ReactNodeView {
399
444
  onClickCallback,
400
445
  CompetitorPrompt
401
446
  } = this.reactComponentProps;
402
- return /*#__PURE__*/React.createElement(WrappedBlockCard, {
447
+ return /*#__PURE__*/React.createElement(WrappedEmbedCard, {
403
448
  node: this.node,
404
449
  view: this.view,
405
450
  eventDispatcher: eventDispatcher,
@@ -23,6 +23,7 @@ import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
23
23
  import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
24
24
  import SettingsIcon from '@atlaskit/icon/core/settings';
25
25
  import { fg } from '@atlaskit/platform-feature-flags';
26
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
26
27
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
27
28
  import { changeSelectedCardToText } from '../pm-plugins/doc';
28
29
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -141,7 +142,13 @@ export const floatingToolbar = (cardOptions, lpLinkPicker, linkPickerOptions, pl
141
142
  if (isEmbedCard) {
142
143
  // Ignored via go/ees005
143
144
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
144
- return element.querySelector(`.${richMediaClassName}`);
145
+ const richMediaElement = element.querySelector(`.${richMediaClassName}`);
146
+ if (!expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true)) {
147
+ return richMediaElement;
148
+ }
149
+ if (richMediaElement) {
150
+ return richMediaElement;
151
+ }
145
152
  }
146
153
  return element;
147
154
  },
@@ -18,11 +18,15 @@ import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
18
18
  import { sharedPluginStateHookMigratorFactory, useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
19
19
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
20
20
  import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
21
+ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
21
22
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
22
- import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
23
+ import { akEditorFullPageNarrowBreakout, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
24
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
23
25
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
26
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
27
  import { registerCard, removeCard as _removeCard } from '../pm-plugins/actions';
25
28
  import ResizableEmbedCard from '../ui/ResizableEmbedCard';
29
+ import { BlockCardComponent } from './blockCard';
26
30
  import { Card } from './genericCard';
27
31
  var selector = function selector(states) {
28
32
  var _states$widthState, _states$widthState2, _states$editorDisable;
@@ -50,7 +54,6 @@ var CardInner = function CardInner(_ref) {
50
54
  getLineLength = _ref.getLineLength,
51
55
  view = _ref.view,
52
56
  smartCard = _ref.smartCard,
53
- eventDispatcher = _ref.eventDispatcher,
54
57
  updateSize = _ref.updateSize,
55
58
  getPos = _ref.getPos,
56
59
  aspectRatio = _ref.aspectRatio,
@@ -365,7 +368,51 @@ export var EmbedCardComponent = /*#__PURE__*/function (_React$PureComponent) {
365
368
  }
366
369
  }]);
367
370
  }(React.PureComponent);
368
- var WrappedBlockCard = Card(EmbedCardComponent, UnsupportedBlock);
371
+ export var EmbedOrBlockCardComponent = function EmbedOrBlockCardComponent(props) {
372
+ var width = useSharedPluginStateSelector(props.pluginInjectionApi, 'width.width');
373
+ var viewAsBlockCard = width && width <= akEditorFullPageNarrowBreakout;
374
+ return viewAsBlockCard ? /*#__PURE__*/React.createElement(BlockCardComponent, {
375
+ id: props.id,
376
+ node: props.node,
377
+ view: props.view,
378
+ getPos: props.getPos,
379
+ pluginInjectionApi: props.pluginInjectionApi,
380
+ actionOptions: props.actionOptions,
381
+ onClick: props.onClick,
382
+ CompetitorPrompt: props.CompetitorPrompt,
383
+ allowResizing: props.allowResizing,
384
+ fullWidthMode: props.fullWidthMode,
385
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
386
+ eventDispatcher: props.eventDispatcher,
387
+ cardContext: props.cardContext,
388
+ smartCard: props.smartCard,
389
+ hasPreview: props.hasPreview,
390
+ liveHeight: props.liveHeight,
391
+ initialAspectRatio: props.initialAspectRatio
392
+ }) : /*#__PURE__*/React.createElement(EmbedCardComponent, {
393
+ id: props.id,
394
+ node: props.node,
395
+ view: props.view,
396
+ getPos: props.getPos,
397
+ pluginInjectionApi: props.pluginInjectionApi,
398
+ actionOptions: props.actionOptions,
399
+ onClick: props.onClick,
400
+ CompetitorPrompt: props.CompetitorPrompt,
401
+ allowResizing: props.allowResizing,
402
+ fullWidthMode: props.fullWidthMode,
403
+ dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
404
+ eventDispatcher: props.eventDispatcher,
405
+ cardContext: props.cardContext,
406
+ smartCard: props.smartCard,
407
+ hasPreview: props.hasPreview,
408
+ liveHeight: props.liveHeight,
409
+ initialAspectRatio: props.initialAspectRatio
410
+ });
411
+ };
412
+ var WrappedEmbedCardWithCondition = componentWithCondition(function () {
413
+ return expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true);
414
+ }, EmbedOrBlockCardComponent, EmbedCardComponent);
415
+ var WrappedEmbedCard = Card(WrappedEmbedCardWithCondition, UnsupportedBlock);
369
416
  export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
370
417
  function EmbedCard() {
371
418
  var _this2;
@@ -416,7 +463,7 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
416
463
  pluginInjectionApi = _this$reactComponentP3.pluginInjectionApi,
417
464
  onClickCallback = _this$reactComponentP3.onClickCallback,
418
465
  CompetitorPrompt = _this$reactComponentP3.CompetitorPrompt;
419
- return /*#__PURE__*/React.createElement(WrappedBlockCard, {
466
+ return /*#__PURE__*/React.createElement(WrappedEmbedCard, {
420
467
  node: this.node,
421
468
  view: this.view,
422
469
  eventDispatcher: eventDispatcher,
@@ -27,6 +27,7 @@ import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
27
27
  import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
28
28
  import SettingsIcon from '@atlaskit/icon/core/settings';
29
29
  import { fg } from '@atlaskit/platform-feature-flags';
30
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
30
31
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
31
32
  import { changeSelectedCardToText } from '../pm-plugins/doc';
32
33
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -138,7 +139,13 @@ export var floatingToolbar = function floatingToolbar(cardOptions, lpLinkPicker,
138
139
  if (isEmbedCard) {
139
140
  // Ignored via go/ees005
140
141
  // eslint-disable-next-line @atlaskit/editor/no-as-casting
141
- return element.querySelector(".".concat(richMediaClassName));
142
+ var richMediaElement = element.querySelector(".".concat(richMediaClassName));
143
+ if (!expValEquals('platform_editor_preview_panel_responsiveness', 'isEnabled', true)) {
144
+ return richMediaElement;
145
+ }
146
+ if (richMediaElement) {
147
+ return richMediaElement;
148
+ }
142
149
  }
143
150
  return element;
144
151
  },
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
3
3
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
4
4
  import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
@@ -43,6 +43,7 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
43
43
  private removeCard;
44
44
  render(): React.JSX.Element;
45
45
  }
46
+ export declare const EmbedOrBlockCardComponent: (props: ComponentProps<typeof EmbedCardComponent>) => React.JSX.Element;
46
47
  export type EmbedCardNodeViewProps = Pick<SmartCardProps, 'eventDispatcher' | 'allowResizing' | 'fullWidthMode' | 'dispatchAnalyticsEvent' | 'pluginInjectionApi' | 'actionOptions' | 'onClickCallback' | 'CompetitorPrompt'>;
47
48
  export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
48
49
  private id;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { type ComponentProps } from 'react';
2
2
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
3
3
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
4
4
  import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
@@ -43,6 +43,7 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
43
43
  private removeCard;
44
44
  render(): React.JSX.Element;
45
45
  }
46
+ export declare const EmbedOrBlockCardComponent: (props: ComponentProps<typeof EmbedCardComponent>) => React.JSX.Element;
46
47
  export type EmbedCardNodeViewProps = Pick<SmartCardProps, 'eventDispatcher' | 'allowResizing' | 'fullWidthMode' | 'dispatchAnalyticsEvent' | 'pluginInjectionApi' | 'actionOptions' | 'onClickCallback' | 'CompetitorPrompt'>;
47
48
  export declare class EmbedCard extends ReactNodeView<EmbedCardNodeViewProps> {
48
49
  private id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-prosemirror": "7.0.0",
50
50
  "@atlaskit/editor-shared-styles": "^3.5.0",
51
51
  "@atlaskit/frontend-utilities": "^3.1.0",
52
- "@atlaskit/icon": "^27.6.0",
52
+ "@atlaskit/icon": "^27.7.0",
53
53
  "@atlaskit/link": "^3.2.0",
54
54
  "@atlaskit/link-analytics": "^10.0.0",
55
55
  "@atlaskit/link-client-extension": "^5.0.0",
@@ -58,10 +58,11 @@
58
58
  "@atlaskit/linking-types": "^14.0.0",
59
59
  "@atlaskit/menu": "^8.0.0",
60
60
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
+ "@atlaskit/platform-feature-flags-react": "^0.2.0",
61
62
  "@atlaskit/primitives": "^14.10.0",
62
63
  "@atlaskit/smart-card": "^40.5.0",
63
64
  "@atlaskit/theme": "^19.0.0",
64
- "@atlaskit/tmp-editor-statsig": "^9.10.0",
65
+ "@atlaskit/tmp-editor-statsig": "^9.12.0",
65
66
  "@atlaskit/tokens": "^5.6.0",
66
67
  "@babel/runtime": "^7.0.0",
67
68
  "@emotion/react": "^11.7.1",
@@ -71,7 +72,7 @@
71
72
  "uuid": "^3.1.0"
72
73
  },
73
74
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^107.11.0",
75
+ "@atlaskit/editor-common": "^107.12.0",
75
76
  "@atlaskit/link-provider": "^3.4.0",
76
77
  "react": "^18.2.0",
77
78
  "react-intl-next": "npm:react-intl@^5.18.1"