@atlaskit/editor-plugin-card 6.6.11 → 6.6.13

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,19 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 6.6.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.6.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [#174371](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174371)
14
+ [`05fc53f9168ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05fc53f9168ae) -
15
+ Merge visitCardLink and visitCardLinkAnalyticsOnly functions
16
+
3
17
  ## 6.6.11
4
18
 
5
19
  ### Patch Changes
@@ -104,7 +104,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
104
104
  var _pluginInjectionApi$a;
105
105
  var _ref2 = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {},
106
106
  editorAnalyticsApi = _ref2.actions;
107
- (0, _toolbar.visitCardLinkAnalyticsOnly)(editorAnalyticsApi, _analytics.INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
107
+ (0, _toolbar.visitCardLinkAnalytics)(editorAnalyticsApi, _analytics.INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
108
108
  window.open(url, '_blank');
109
109
  } else {
110
110
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
@@ -14,7 +14,6 @@ var _card = require("@atlaskit/editor-common/card");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
16
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var _compiled = require("@atlaskit/primitives/compiled");
19
18
  var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
20
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -148,7 +147,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
148
147
  return null;
149
148
  }
150
149
  var dispatchCommand = function dispatchCommand(fn) {
151
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? editorView : undefined);
150
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
152
151
  // Refocus the view to ensure the editor has focus
153
152
  if (editorView && !editorView.hasFocus()) {
154
153
  editorView.focus();
@@ -155,7 +155,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
155
155
  };
156
156
  var sendVisitLinkAnalytics = function sendVisitLinkAnalytics(inputMethod) {
157
157
  if (editorAnalyticsApi && view) {
158
- (0, _toolbar.visitCardLinkAnalyticsOnly)(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
158
+ (0, _toolbar.visitCardLinkAnalytics)(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
159
159
  }
160
160
  };
161
161
  var handleDoubleClick = function handleDoubleClick() {
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.visitCardLinkAnalyticsOnly = exports.visitCardLink = exports.shouldRenderToolbarPulse = exports.removeCard = exports.openLinkSettings = exports.getStartingToolbarItems = exports.getSettingsButton = exports.getEndingToolbarItems = exports.floatingToolbar = void 0;
8
+ exports.visitCardLinkAnalytics = exports.shouldRenderToolbarPulse = exports.removeCard = exports.openLinkSettings = exports.getStartingToolbarItems = exports.getSettingsButton = exports.getEndingToolbarItems = exports.floatingToolbar = void 0;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = _interopRequireDefault(require("react"));
@@ -75,21 +75,7 @@ var removeCard = exports.removeCard = function removeCard(editorAnalyticsApi) {
75
75
  action: _analytics.ACTION.DELETED
76
76
  });
77
77
  };
78
- var visitCardLink = exports.visitCardLink = function visitCardLink(editorAnalyticsApi, inputMethod) {
79
- return function (state, dispatch) {
80
- if (!(state.selection instanceof _state.NodeSelection)) {
81
- return false;
82
- }
83
- var type = state.selection.node.type;
84
- if (dispatch) {
85
- var tr = state.tr;
86
- editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent((0, _analytics.buildVisitedNonHyperLinkPayload)(type.name, inputMethod))(tr);
87
- dispatch(tr);
88
- }
89
- return true;
90
- };
91
- };
92
- var visitCardLinkAnalyticsOnly = exports.visitCardLinkAnalyticsOnly = function visitCardLinkAnalyticsOnly(editorAnalyticsApi, inputMethod) {
78
+ var visitCardLinkAnalytics = exports.visitCardLinkAnalytics = function visitCardLinkAnalytics(editorAnalyticsApi, inputMethod) {
93
79
  return function (state, dispatch) {
94
80
  if (!(state.selection instanceof _state.NodeSelection)) {
95
81
  return false;
@@ -312,7 +298,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
312
298
  type: 'separator'
313
299
  }] : [];
314
300
  var openLinkInputMethod = _analytics.INPUT_METHOD.FLOATING_TB;
315
- var editButtonItems = cardOptions.allowDatasource && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? [{
301
+ var editButtonItems = cardOptions.allowDatasource ? [{
316
302
  type: 'custom',
317
303
  fallback: [],
318
304
  render: function render(editorView) {
@@ -344,7 +330,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
344
330
  metadata: metadata,
345
331
  className: 'hyperlink-open-link',
346
332
  title: intl.formatMessage(_messages.linkMessages.openLink),
347
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
333
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
348
334
  href: url,
349
335
  target: '_blank'
350
336
  }, {
@@ -381,7 +367,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
381
367
  metadata: metadata,
382
368
  className: 'hyperlink-open-link',
383
369
  title: intl.formatMessage(_messages.linkMessages.openLink),
384
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
370
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
385
371
  href: url,
386
372
  target: '_blank'
387
373
  }], (0, _toConsumableArray2.default)(commentItems.length > 1 ? [{
@@ -616,7 +602,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
616
602
  metadata: metadata,
617
603
  className: 'hyperlink-open-link',
618
604
  title: intl.formatMessage(_messages.linkMessages.openLink),
619
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
605
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
620
606
  href: node.attrs.url,
621
607
  target: '_blank'
622
608
  });
@@ -15,7 +15,7 @@ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
15
  import { registerCard, removeCard } from '../pm-plugins/actions';
16
16
  import { getAwarenessProps } from '../pm-plugins/utils';
17
17
  import OverlayWrapper from '../ui/ConfigureOverlay';
18
- import { visitCardLinkAnalyticsOnly } from '../ui/toolbar';
18
+ import { visitCardLinkAnalytics } from '../ui/toolbar';
19
19
  import { Card } from './genericCard';
20
20
  import { InlineCardWithAwareness } from './inlineCardWithAwareness';
21
21
  export const InlineCard = /*#__PURE__*/memo(({
@@ -99,7 +99,7 @@ export const InlineCard = /*#__PURE__*/memo(({
99
99
  const {
100
100
  actions: editorAnalyticsApi
101
101
  } = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {};
102
- visitCardLinkAnalyticsOnly(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
102
+ visitCardLinkAnalytics(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
103
103
  window.open(url, '_blank');
104
104
  } else {
105
105
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
@@ -3,7 +3,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
3
3
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
4
4
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
5
5
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { Flex } from '@atlaskit/primitives/compiled';
8
7
  import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
9
8
  const CustomHyperlinkDropdown = props => {
@@ -69,7 +68,7 @@ const CustomHyperlinkDropdown = props => {
69
68
  return null;
70
69
  }
71
70
  const dispatchCommand = fn => {
72
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
71
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
73
72
  // Refocus the view to ensure the editor has focus
74
73
  if (editorView && !editorView.hasFocus()) {
75
74
  editorView.focus();
@@ -13,7 +13,7 @@ import { cardMessages } from '@atlaskit/editor-common/messages';
13
13
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
14
14
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
15
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
- import { visitCardLinkAnalyticsOnly } from '../toolbar';
16
+ import { visitCardLinkAnalytics } from '../toolbar';
17
17
  const containerStyles = css({
18
18
  position: 'relative'
19
19
  });
@@ -136,7 +136,7 @@ const OpenButtonOverlay = ({
136
136
  };
137
137
  const sendVisitLinkAnalytics = inputMethod => {
138
138
  if (editorAnalyticsApi && view) {
139
- visitCardLinkAnalyticsOnly(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
139
+ visitCardLinkAnalytics(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
140
140
  }
141
141
  };
142
142
  const handleDoubleClick = () => {
@@ -62,23 +62,7 @@ export const removeCard = editorAnalyticsApi => commandWithMetadata((state, disp
62
62
  }, {
63
63
  action: ACTION.DELETED
64
64
  });
65
- export const visitCardLink = (editorAnalyticsApi, inputMethod) => (state, dispatch) => {
66
- if (!(state.selection instanceof NodeSelection)) {
67
- return false;
68
- }
69
- const {
70
- type
71
- } = state.selection.node;
72
- if (dispatch) {
73
- const {
74
- tr
75
- } = state;
76
- editorAnalyticsApi === null || editorAnalyticsApi === void 0 ? void 0 : editorAnalyticsApi.attachAnalyticsEvent(buildVisitedNonHyperLinkPayload(type.name, inputMethod))(tr);
77
- dispatch(tr);
78
- }
79
- return true;
80
- };
81
- export const visitCardLinkAnalyticsOnly = (editorAnalyticsApi, inputMethod) => (state, dispatch) => {
65
+ export const visitCardLinkAnalytics = (editorAnalyticsApi, inputMethod) => (state, dispatch) => {
82
66
  if (!(state.selection instanceof NodeSelection)) {
83
67
  return false;
84
68
  }
@@ -306,7 +290,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
306
290
  type: 'separator'
307
291
  }] : [];
308
292
  const openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
309
- const editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
293
+ const editButtonItems = cardOptions.allowDatasource ? [{
310
294
  type: 'custom',
311
295
  fallback: [],
312
296
  render: editorView => /*#__PURE__*/React.createElement(EditToolbarButton, {
@@ -336,7 +320,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
336
320
  metadata: metadata,
337
321
  className: 'hyperlink-open-link',
338
322
  title: intl.formatMessage(linkMessages.openLink),
339
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
323
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
340
324
  href: url,
341
325
  target: '_blank'
342
326
  }, {
@@ -373,7 +357,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
373
357
  metadata: metadata,
374
358
  className: 'hyperlink-open-link',
375
359
  title: intl.formatMessage(linkMessages.openLink),
376
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
360
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
377
361
  href: url,
378
362
  target: '_blank'
379
363
  }, ...(commentItems.length > 1 ? [{
@@ -605,7 +589,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
605
589
  metadata: metadata,
606
590
  className: 'hyperlink-open-link',
607
591
  title: intl.formatMessage(linkMessages.openLink),
608
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
592
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
609
593
  href: node.attrs.url,
610
594
  target: '_blank'
611
595
  });
@@ -16,7 +16,7 @@ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
16
  import { registerCard, removeCard } from '../pm-plugins/actions';
17
17
  import { getAwarenessProps } from '../pm-plugins/utils';
18
18
  import OverlayWrapper from '../ui/ConfigureOverlay';
19
- import { visitCardLinkAnalyticsOnly } from '../ui/toolbar';
19
+ import { visitCardLinkAnalytics } from '../ui/toolbar';
20
20
  import { Card } from './genericCard';
21
21
  import { InlineCardWithAwareness } from './inlineCardWithAwareness';
22
22
  export var InlineCard = /*#__PURE__*/memo(function (_ref) {
@@ -93,7 +93,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
93
93
  var _pluginInjectionApi$a;
94
94
  var _ref2 = (_pluginInjectionApi$a = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.analytics) !== null && _pluginInjectionApi$a !== void 0 ? _pluginInjectionApi$a : {},
95
95
  editorAnalyticsApi = _ref2.actions;
96
- visitCardLinkAnalyticsOnly(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
96
+ visitCardLinkAnalytics(editorAnalyticsApi, INPUT_METHOD.META_CLICK)(view.state, view.dispatch);
97
97
  window.open(url, '_blank');
98
98
  } else {
99
99
  // only trigger the provided onClick callback if the meta key or ctrl key is not pressed
@@ -6,7 +6,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
6
6
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
7
7
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
8
8
  import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Flex } from '@atlaskit/primitives/compiled';
11
10
  import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
12
11
  var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
@@ -139,7 +138,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
139
138
  return null;
140
139
  }
141
140
  var dispatchCommand = function dispatchCommand(fn) {
142
- fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
141
+ fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
143
142
  // Refocus the view to ensure the editor has focus
144
143
  if (editorView && !editorView.hasFocus()) {
145
144
  editorView.focus();
@@ -14,7 +14,7 @@ import { cardMessages } from '@atlaskit/editor-common/messages';
14
14
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
15
15
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
16
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
- import { visitCardLinkAnalyticsOnly } from '../toolbar';
17
+ import { visitCardLinkAnalytics } from '../toolbar';
18
18
  var containerStyles = css({
19
19
  position: 'relative'
20
20
  });
@@ -142,7 +142,7 @@ var OpenButtonOverlay = function OpenButtonOverlay(_ref) {
142
142
  };
143
143
  var sendVisitLinkAnalytics = function sendVisitLinkAnalytics(inputMethod) {
144
144
  if (editorAnalyticsApi && view) {
145
- visitCardLinkAnalyticsOnly(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
145
+ visitCardLinkAnalytics(editorAnalyticsApi, inputMethod)(view.state, view.dispatch);
146
146
  }
147
147
  };
148
148
  var handleDoubleClick = function handleDoubleClick() {
@@ -66,21 +66,7 @@ export var removeCard = function removeCard(editorAnalyticsApi) {
66
66
  action: ACTION.DELETED
67
67
  });
68
68
  };
69
- export var visitCardLink = function visitCardLink(editorAnalyticsApi, inputMethod) {
70
- return function (state, dispatch) {
71
- if (!(state.selection instanceof NodeSelection)) {
72
- return false;
73
- }
74
- var type = state.selection.node.type;
75
- if (dispatch) {
76
- var tr = state.tr;
77
- editorAnalyticsApi === null || editorAnalyticsApi === void 0 || editorAnalyticsApi.attachAnalyticsEvent(buildVisitedNonHyperLinkPayload(type.name, inputMethod))(tr);
78
- dispatch(tr);
79
- }
80
- return true;
81
- };
82
- };
83
- export var visitCardLinkAnalyticsOnly = function visitCardLinkAnalyticsOnly(editorAnalyticsApi, inputMethod) {
69
+ export var visitCardLinkAnalytics = function visitCardLinkAnalytics(editorAnalyticsApi, inputMethod) {
84
70
  return function (state, dispatch) {
85
71
  if (!(state.selection instanceof NodeSelection)) {
86
72
  return false;
@@ -303,7 +289,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
303
289
  type: 'separator'
304
290
  }] : [];
305
291
  var openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
306
- var editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
292
+ var editButtonItems = cardOptions.allowDatasource ? [{
307
293
  type: 'custom',
308
294
  fallback: [],
309
295
  render: function render(editorView) {
@@ -335,7 +321,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
335
321
  metadata: metadata,
336
322
  className: 'hyperlink-open-link',
337
323
  title: intl.formatMessage(linkMessages.openLink),
338
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
324
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
339
325
  href: url,
340
326
  target: '_blank'
341
327
  }, {
@@ -372,7 +358,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
372
358
  metadata: metadata,
373
359
  className: 'hyperlink-open-link',
374
360
  title: intl.formatMessage(linkMessages.openLink),
375
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
361
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
376
362
  href: url,
377
363
  target: '_blank'
378
364
  }], _toConsumableArray(commentItems.length > 1 ? [{
@@ -607,7 +593,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
607
593
  metadata: metadata,
608
594
  className: 'hyperlink-open-link',
609
595
  title: intl.formatMessage(linkMessages.openLink),
610
- onClick: visitCardLink(editorAnalyticsApi, openLinkInputMethod),
596
+ onClick: visitCardLinkAnalytics(editorAnalyticsApi, openLinkInputMethod),
611
597
  href: node.attrs.url,
612
598
  target: '_blank'
613
599
  });
@@ -7,8 +7,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { cardPlugin } from '../index';
8
8
  import type { CardPluginOptions } from '../types';
9
9
  export declare const removeCard: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
10
- export declare const visitCardLink: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR) => Command;
11
- export declare const visitCardLinkAnalyticsOnly: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.META_CLICK) => Command;
10
+ export declare const visitCardLinkAnalytics: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.META_CLICK) => Command;
12
11
  export declare const openLinkSettings: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
13
12
  export declare const floatingToolbar: (cardOptions: CardOptions, lpLinkPicker: boolean, linkPickerOptions?: LinkPickerOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof cardPlugin>, disableFloatingToolbar?: boolean) => FloatingToolbarHandler;
14
13
  export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
@@ -7,8 +7,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { cardPlugin } from '../index';
8
8
  import type { CardPluginOptions } from '../types';
9
9
  export declare const removeCard: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
10
- export declare const visitCardLink: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR) => Command;
11
- export declare const visitCardLinkAnalyticsOnly: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.META_CLICK) => Command;
10
+ export declare const visitCardLinkAnalytics: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.META_CLICK) => Command;
12
11
  export declare const openLinkSettings: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
13
12
  export declare const floatingToolbar: (cardOptions: CardOptions, lpLinkPicker: boolean, linkPickerOptions?: LinkPickerOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof cardPlugin>, disableFloatingToolbar?: boolean) => FloatingToolbarHandler;
14
13
  export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "6.6.11",
3
+ "version": "6.6.13",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^11.1.0",
38
38
  "@atlaskit/button": "^23.2.0",
39
39
  "@atlaskit/custom-steps": "^0.11.0",
40
- "@atlaskit/editor-common": "^107.0.0",
40
+ "@atlaskit/editor-common": "^107.2.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
42
42
  "@atlaskit/editor-plugin-base": "^3.0.0",
43
43
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -51,19 +51,19 @@
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.4.0",
53
53
  "@atlaskit/frontend-utilities": "^3.0.0",
54
- "@atlaskit/icon": "^27.0.0",
54
+ "@atlaskit/icon": "^27.1.0",
55
55
  "@atlaskit/link": "^3.2.0",
56
56
  "@atlaskit/link-analytics": "^10.0.0",
57
57
  "@atlaskit/link-client-extension": "^5.0.0",
58
58
  "@atlaskit/link-datasource": "^4.11.0",
59
59
  "@atlaskit/linking-common": "^9.1.0",
60
- "@atlaskit/linking-types": "^12.1.0",
60
+ "@atlaskit/linking-types": "^13.0.0",
61
61
  "@atlaskit/menu": "^8.0.0",
62
62
  "@atlaskit/platform-feature-flags": "^1.1.0",
63
63
  "@atlaskit/primitives": "^14.9.0",
64
- "@atlaskit/smart-card": "^38.13.0",
64
+ "@atlaskit/smart-card": "^38.14.0",
65
65
  "@atlaskit/theme": "^18.0.0",
66
- "@atlaskit/tmp-editor-statsig": "^8.0.0",
66
+ "@atlaskit/tmp-editor-statsig": "^8.1.0",
67
67
  "@atlaskit/tokens": "^5.4.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -126,9 +126,6 @@
126
126
  "platform_ssr_smartlinks_editor": {
127
127
  "type": "boolean"
128
128
  },
129
- "platform_editor_controls_patch_9": {
130
- "type": "boolean"
131
- },
132
129
  "platform_editor_controls_patch_12": {
133
130
  "type": "boolean"
134
131
  },