@atlaskit/editor-plugin-card 4.5.13 → 4.5.15

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,27 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 4.5.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#104847](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104847)
8
+ [`b55fc11242d17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b55fc11242d17) -
9
+ Consolidate duplicate import statements
10
+
11
+ ## 4.5.14
12
+
13
+ ### Patch Changes
14
+
15
+ - [#102068](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102068)
16
+ [`d90fc9b7d48bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d90fc9b7d48bf) -
17
+ [ux] Disable datasource items while offline
18
+ - [#97984](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97984)
19
+ [`8ffeab9aaf1ab`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ffeab9aaf1ab) -
20
+ [ux] [ED-23573] Added new actions (resolveMarks and registerMarks) to basePlugin. Callbacks added
21
+ to mentions, card, emoji and base plugins to handle conversion to inline code. Deprecated code
22
+ removed from editor-common.
23
+ - Updated dependencies
24
+
3
25
  ## 4.5.13
4
26
 
5
27
  ### Patch Changes
@@ -32,12 +32,25 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
32
32
  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; } // Ignored via go/ees005
33
33
  // eslint-disable-next-line import/no-named-as-default
34
34
  var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
35
- var _options$lpLinkPicker;
35
+ var _api$base, _options$lpLinkPicker;
36
36
  var _ref$config = _ref.config,
37
37
  options = _ref$config === void 0 ? {} : _ref$config,
38
38
  api = _ref.api;
39
39
  var previousCardProvider;
40
40
  var cardPluginEvents = (0, _createEventsQueue.createEventsQueue)();
41
+ api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || _api$base.actions.registerMarks(function (_ref2) {
42
+ var tr = _ref2.tr,
43
+ node = _ref2.node,
44
+ pos = _ref2.pos;
45
+ var doc = tr.doc;
46
+ var schema = doc.type.schema;
47
+ var inlineCardNodeType = schema.nodes.inlineCard;
48
+ if (node.type === inlineCardNodeType) {
49
+ var newText = node.attrs.url;
50
+ var currentPos = tr.mapping.map(pos);
51
+ tr.replaceWith(currentPos, currentPos + node.nodeSize, schema.text(newText, node.marks));
52
+ }
53
+ });
41
54
  return {
42
55
  name: 'card',
43
56
  getSharedState: function getSharedState(editorState) {
@@ -86,18 +99,18 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
86
99
  }];
87
100
  plugins.push({
88
101
  name: 'cardKeymap',
89
- plugin: function plugin(_ref2) {
90
- var featureFlags = _ref2.featureFlags;
102
+ plugin: function plugin(_ref3) {
103
+ var featureFlags = _ref3.featureFlags;
91
104
  return (0, _keymap.cardKeymap)(featureFlags);
92
105
  }
93
106
  });
94
107
  return plugins;
95
108
  },
96
- contentComponent: function contentComponent(_ref3) {
97
- var editorView = _ref3.editorView,
98
- popupsMountPoint = _ref3.popupsMountPoint,
99
- popupsScrollableElement = _ref3.popupsScrollableElement,
100
- popupsBoundariesElement = _ref3.popupsBoundariesElement;
109
+ contentComponent: function contentComponent(_ref4) {
110
+ var editorView = _ref4.editorView,
111
+ popupsMountPoint = _ref4.popupsMountPoint,
112
+ popupsScrollableElement = _ref4.popupsScrollableElement,
113
+ popupsBoundariesElement = _ref4.popupsBoundariesElement;
101
114
  var breakoutEnabled = options.editorAppearance === 'full-page';
102
115
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_EditorSmartCardEvents.EditorSmartCardEvents, {
103
116
  editorView: editorView
@@ -134,8 +147,8 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
134
147
  return _context.abrupt("return", false);
135
148
  case 5:
136
149
  previousCardProvider = provider;
137
- return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref4) {
138
- var tr = _ref4.tr;
150
+ return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref5) {
151
+ var tr = _ref5.tr;
139
152
  return (0, _actions.setProvider)(provider)(tr);
140
153
  })) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false);
141
154
  case 7:
@@ -156,8 +169,8 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
156
169
  },
157
170
  pluginsOptions: {
158
171
  floatingToolbar: (0, _toolbar.floatingToolbar)(options, (_options$lpLinkPicker = options.lpLinkPicker) !== null && _options$lpLinkPicker !== void 0 ? _options$lpLinkPicker : false, options.linkPicker, api, options.disableFloatingToolbar),
159
- quickInsert: function quickInsert(_ref5) {
160
- var formatMessage = _ref5.formatMessage;
172
+ quickInsert: function quickInsert(_ref6) {
173
+ var formatMessage = _ref6.formatMessage;
161
174
  var quickInsertArray = [];
162
175
  if (!options.allowDatasource) {
163
176
  return quickInsertArray;
@@ -166,6 +179,7 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
166
179
  id: 'datasource',
167
180
  title: formatMessage(_messages.cardMessages.datasourceJiraIssue),
168
181
  description: formatMessage(_messages.cardMessages.datasourceJiraIssueDescription),
182
+ isDisabledOffline: true,
169
183
  categories: ['external-content', 'development'],
170
184
  keywords: ['jira'],
171
185
  featured: true,
@@ -183,6 +197,7 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
183
197
  id: 'datasource',
184
198
  title: formatMessage(_messages.cardMessages.datasourceAssetsObjectsGeneralAvailability),
185
199
  description: formatMessage(_messages.cardMessages.datasourceAssetsObjectsDescription),
200
+ isDisabledOffline: true,
186
201
  categories: ['external-content', 'development'],
187
202
  keywords: ['assets'],
188
203
  icon: function icon() {
@@ -200,6 +215,7 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
200
215
  id: 'datasource',
201
216
  title: formatMessage(_messages.cardMessages.datasourceConfluenceSearch),
202
217
  description: formatMessage(_messages.cardMessages.datasourceConfluenceSearchDescription),
218
+ isDisabledOffline: true,
203
219
  categories: ['external-content', 'development'],
204
220
  keywords: ['confluence'],
205
221
  featured: true,
@@ -24,9 +24,29 @@ export const cardPlugin = ({
24
24
  config: options = {},
25
25
  api
26
26
  }) => {
27
- var _options$lpLinkPicker;
27
+ var _api$base, _options$lpLinkPicker;
28
28
  let previousCardProvider;
29
29
  const cardPluginEvents = createEventsQueue();
30
+ api === null || api === void 0 ? void 0 : (_api$base = api.base) === null || _api$base === void 0 ? void 0 : _api$base.actions.registerMarks(({
31
+ tr,
32
+ node,
33
+ pos
34
+ }) => {
35
+ const {
36
+ doc
37
+ } = tr;
38
+ const {
39
+ schema
40
+ } = doc.type;
41
+ const {
42
+ inlineCard: inlineCardNodeType
43
+ } = schema.nodes;
44
+ if (node.type === inlineCardNodeType) {
45
+ const newText = node.attrs.url;
46
+ const currentPos = tr.mapping.map(pos);
47
+ tr.replaceWith(currentPos, currentPos + node.nodeSize, schema.text(newText, node.marks));
48
+ }
49
+ });
30
50
  return {
31
51
  name: 'card',
32
52
  getSharedState(editorState) {
@@ -138,6 +158,7 @@ export const cardPlugin = ({
138
158
  id: 'datasource',
139
159
  title: formatMessage(messages.datasourceJiraIssue),
140
160
  description: formatMessage(messages.datasourceJiraIssueDescription),
161
+ isDisabledOffline: true,
141
162
  categories: ['external-content', 'development'],
142
163
  keywords: ['jira'],
143
164
  featured: true,
@@ -153,6 +174,7 @@ export const cardPlugin = ({
153
174
  id: 'datasource',
154
175
  title: formatMessage(messages.datasourceAssetsObjectsGeneralAvailability),
155
176
  description: formatMessage(messages.datasourceAssetsObjectsDescription),
177
+ isDisabledOffline: true,
156
178
  categories: ['external-content', 'development'],
157
179
  keywords: ['assets'],
158
180
  icon: () => /*#__PURE__*/React.createElement(IconDatasourceAssetsObjects, null),
@@ -168,6 +190,7 @@ export const cardPlugin = ({
168
190
  id: 'datasource',
169
191
  title: formatMessage(messages.datasourceConfluenceSearch),
170
192
  description: formatMessage(messages.datasourceConfluenceSearchDescription),
193
+ isDisabledOffline: true,
171
194
  categories: ['external-content', 'development'],
172
195
  keywords: ['confluence'],
173
196
  featured: true,
@@ -26,12 +26,25 @@ import { EditorSmartCardEvents } from './ui/EditorSmartCardEvents';
26
26
  import LayoutButton from './ui/LayoutButton';
27
27
  import { floatingToolbar, getEndingToolbarItems, getStartingToolbarItems } from './ui/toolbar';
28
28
  export var cardPlugin = function cardPlugin(_ref) {
29
- var _options$lpLinkPicker;
29
+ var _api$base, _options$lpLinkPicker;
30
30
  var _ref$config = _ref.config,
31
31
  options = _ref$config === void 0 ? {} : _ref$config,
32
32
  api = _ref.api;
33
33
  var previousCardProvider;
34
34
  var cardPluginEvents = createEventsQueue();
35
+ api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || _api$base.actions.registerMarks(function (_ref2) {
36
+ var tr = _ref2.tr,
37
+ node = _ref2.node,
38
+ pos = _ref2.pos;
39
+ var doc = tr.doc;
40
+ var schema = doc.type.schema;
41
+ var inlineCardNodeType = schema.nodes.inlineCard;
42
+ if (node.type === inlineCardNodeType) {
43
+ var newText = node.attrs.url;
44
+ var currentPos = tr.mapping.map(pos);
45
+ tr.replaceWith(currentPos, currentPos + node.nodeSize, schema.text(newText, node.marks));
46
+ }
47
+ });
35
48
  return {
36
49
  name: 'card',
37
50
  getSharedState: function getSharedState(editorState) {
@@ -80,18 +93,18 @@ export var cardPlugin = function cardPlugin(_ref) {
80
93
  }];
81
94
  plugins.push({
82
95
  name: 'cardKeymap',
83
- plugin: function plugin(_ref2) {
84
- var featureFlags = _ref2.featureFlags;
96
+ plugin: function plugin(_ref3) {
97
+ var featureFlags = _ref3.featureFlags;
85
98
  return cardKeymap(featureFlags);
86
99
  }
87
100
  });
88
101
  return plugins;
89
102
  },
90
- contentComponent: function contentComponent(_ref3) {
91
- var editorView = _ref3.editorView,
92
- popupsMountPoint = _ref3.popupsMountPoint,
93
- popupsScrollableElement = _ref3.popupsScrollableElement,
94
- popupsBoundariesElement = _ref3.popupsBoundariesElement;
103
+ contentComponent: function contentComponent(_ref4) {
104
+ var editorView = _ref4.editorView,
105
+ popupsMountPoint = _ref4.popupsMountPoint,
106
+ popupsScrollableElement = _ref4.popupsScrollableElement,
107
+ popupsBoundariesElement = _ref4.popupsBoundariesElement;
95
108
  var breakoutEnabled = options.editorAppearance === 'full-page';
96
109
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EditorSmartCardEvents, {
97
110
  editorView: editorView
@@ -128,8 +141,8 @@ export var cardPlugin = function cardPlugin(_ref) {
128
141
  return _context.abrupt("return", false);
129
142
  case 5:
130
143
  previousCardProvider = provider;
131
- return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref4) {
132
- var tr = _ref4.tr;
144
+ return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref5) {
145
+ var tr = _ref5.tr;
133
146
  return _setProvider(provider)(tr);
134
147
  })) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false);
135
148
  case 7:
@@ -150,8 +163,8 @@ export var cardPlugin = function cardPlugin(_ref) {
150
163
  },
151
164
  pluginsOptions: {
152
165
  floatingToolbar: floatingToolbar(options, (_options$lpLinkPicker = options.lpLinkPicker) !== null && _options$lpLinkPicker !== void 0 ? _options$lpLinkPicker : false, options.linkPicker, api, options.disableFloatingToolbar),
153
- quickInsert: function quickInsert(_ref5) {
154
- var formatMessage = _ref5.formatMessage;
166
+ quickInsert: function quickInsert(_ref6) {
167
+ var formatMessage = _ref6.formatMessage;
155
168
  var quickInsertArray = [];
156
169
  if (!options.allowDatasource) {
157
170
  return quickInsertArray;
@@ -160,6 +173,7 @@ export var cardPlugin = function cardPlugin(_ref) {
160
173
  id: 'datasource',
161
174
  title: formatMessage(messages.datasourceJiraIssue),
162
175
  description: formatMessage(messages.datasourceJiraIssueDescription),
176
+ isDisabledOffline: true,
163
177
  categories: ['external-content', 'development'],
164
178
  keywords: ['jira'],
165
179
  featured: true,
@@ -177,6 +191,7 @@ export var cardPlugin = function cardPlugin(_ref) {
177
191
  id: 'datasource',
178
192
  title: formatMessage(messages.datasourceAssetsObjectsGeneralAvailability),
179
193
  description: formatMessage(messages.datasourceAssetsObjectsDescription),
194
+ isDisabledOffline: true,
180
195
  categories: ['external-content', 'development'],
181
196
  keywords: ['assets'],
182
197
  icon: function icon() {
@@ -194,6 +209,7 @@ export var cardPlugin = function cardPlugin(_ref) {
194
209
  id: 'datasource',
195
210
  title: formatMessage(messages.datasourceConfluenceSearch),
196
211
  description: formatMessage(messages.datasourceConfluenceSearchDescription),
212
+ isDisabledOffline: true,
197
213
  categories: ['external-content', 'development'],
198
214
  keywords: ['confluence'],
199
215
  featured: true,
@@ -3,6 +3,7 @@ import type { CardPluginActions } from '@atlaskit/editor-common/card';
3
3
  import type { NextEditorPlugin, OptionalPlugin, Command } from '@atlaskit/editor-common/types';
4
4
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
5
  import type { InlineCommentPluginState } from '@atlaskit/editor-plugin-annotation';
6
+ import type { BasePlugin } from '@atlaskit/editor-plugin-base';
6
7
  import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
7
8
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
8
9
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -19,21 +20,23 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
19
20
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: INPUT_METHOD) => Command;
20
21
  };
21
22
  }>;
23
+ export type CardPluginDependencies = [
24
+ OptionalPlugin<FeatureFlagsPlugin>,
25
+ OptionalPlugin<AnalyticsPlugin>,
26
+ OptionalPlugin<EditorViewModePlugin>,
27
+ WidthPlugin,
28
+ DecorationsPlugin,
29
+ GridPlugin,
30
+ FloatingToolbarPlugin,
31
+ OptionalPlugin<EditorDisabledPlugin>,
32
+ OptionalPlugin<SelectionPlugin>,
33
+ OptionalPlugin<DummyAnnotationPlugin>,
34
+ OptionalPlugin<ConnectivityPlugin>,
35
+ OptionalPlugin<BasePlugin>
36
+ ];
22
37
  export type CardPlugin = NextEditorPlugin<'card', {
23
38
  pluginConfiguration: CardPluginOptions | undefined;
24
- dependencies: [
25
- OptionalPlugin<FeatureFlagsPlugin>,
26
- OptionalPlugin<AnalyticsPlugin>,
27
- OptionalPlugin<EditorViewModePlugin>,
28
- WidthPlugin,
29
- DecorationsPlugin,
30
- GridPlugin,
31
- FloatingToolbarPlugin,
32
- OptionalPlugin<EditorDisabledPlugin>,
33
- OptionalPlugin<SelectionPlugin>,
34
- OptionalPlugin<DummyAnnotationPlugin>,
35
- OptionalPlugin<ConnectivityPlugin>
36
- ];
39
+ dependencies: CardPluginDependencies;
37
40
  sharedState: CardPluginState | null;
38
41
  actions: CardPluginActions;
39
42
  }>;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
3
- import { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
2
+ import type { InlineNodeViewComponentProps, getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
4
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
4
  import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
6
5
  import type { SmartCardProps } from './genericCard';
@@ -1,2 +1,3 @@
1
+ import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
1
2
  import { type BlockCardNodeViewProperties } from './blockCard';
2
- export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined, decorations: readonly import("prosemirror-view").Decoration[]) => import("prosemirror-view").NodeView | import("./datasource").Datasource | import("./blockCard").BlockCard) | import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
3
+ export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => NodeViewConstructor;
@@ -1,2 +1,3 @@
1
+ import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
1
2
  import { type EmbedCardNodeViewProperties } from './embedCard';
2
- export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor | ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined) => import("./embedCard").EmbedCard);
3
+ export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => NodeViewConstructor;
@@ -3,6 +3,7 @@ import type { CardPluginActions } from '@atlaskit/editor-common/card';
3
3
  import type { NextEditorPlugin, OptionalPlugin, Command } from '@atlaskit/editor-common/types';
4
4
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
5
  import type { InlineCommentPluginState } from '@atlaskit/editor-plugin-annotation';
6
+ import type { BasePlugin } from '@atlaskit/editor-plugin-base';
6
7
  import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
7
8
  import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
8
9
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -19,21 +20,23 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
19
20
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: INPUT_METHOD) => Command;
20
21
  };
21
22
  }>;
23
+ export type CardPluginDependencies = [
24
+ OptionalPlugin<FeatureFlagsPlugin>,
25
+ OptionalPlugin<AnalyticsPlugin>,
26
+ OptionalPlugin<EditorViewModePlugin>,
27
+ WidthPlugin,
28
+ DecorationsPlugin,
29
+ GridPlugin,
30
+ FloatingToolbarPlugin,
31
+ OptionalPlugin<EditorDisabledPlugin>,
32
+ OptionalPlugin<SelectionPlugin>,
33
+ OptionalPlugin<DummyAnnotationPlugin>,
34
+ OptionalPlugin<ConnectivityPlugin>,
35
+ OptionalPlugin<BasePlugin>
36
+ ];
22
37
  export type CardPlugin = NextEditorPlugin<'card', {
23
38
  pluginConfiguration: CardPluginOptions | undefined;
24
- dependencies: [
25
- OptionalPlugin<FeatureFlagsPlugin>,
26
- OptionalPlugin<AnalyticsPlugin>,
27
- OptionalPlugin<EditorViewModePlugin>,
28
- WidthPlugin,
29
- DecorationsPlugin,
30
- GridPlugin,
31
- FloatingToolbarPlugin,
32
- OptionalPlugin<EditorDisabledPlugin>,
33
- OptionalPlugin<SelectionPlugin>,
34
- OptionalPlugin<DummyAnnotationPlugin>,
35
- OptionalPlugin<ConnectivityPlugin>
36
- ];
39
+ dependencies: CardPluginDependencies;
37
40
  sharedState: CardPluginState | null;
38
41
  actions: CardPluginActions;
39
42
  }>;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
3
- import { type getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
2
+ import type { InlineNodeViewComponentProps, getInlineNodeViewProducer } from '@atlaskit/editor-common/react-node-view';
4
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
4
  import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
6
5
  import type { SmartCardProps } from './genericCard';
@@ -1,2 +1,3 @@
1
+ import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
1
2
  import { type BlockCardNodeViewProperties } from './blockCard';
2
- export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined, decorations: readonly import("prosemirror-view").Decoration[]) => import("prosemirror-view").NodeView | import("./datasource").Datasource | import("./blockCard").BlockCard) | import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
3
+ export declare const lazyBlockCardView: (props: BlockCardNodeViewProperties) => NodeViewConstructor;
@@ -1,2 +1,3 @@
1
+ import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
1
2
  import { type EmbedCardNodeViewProperties } from './embedCard';
2
- export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor | ((node: import("prosemirror-model").Node, view: import("prosemirror-view").EditorView, getPos: () => number | undefined) => import("./embedCard").EmbedCard);
3
+ export declare const lazyEmbedCardView: (props: EmbedCardNodeViewProperties) => NodeViewConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "4.5.13",
3
+ "version": "4.5.15",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,9 @@
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/analytics-next": "^10.2.0",
36
36
  "@atlaskit/custom-steps": "^0.9.0",
37
- "@atlaskit/editor-common": "^98.2.0",
37
+ "@atlaskit/editor-common": "^99.4.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
39
+ "@atlaskit/editor-plugin-base": "^2.1.0",
39
40
  "@atlaskit/editor-plugin-connectivity": "^1.1.0",
40
41
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
41
42
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -47,19 +48,19 @@
47
48
  "@atlaskit/editor-prosemirror": "6.2.1",
48
49
  "@atlaskit/editor-shared-styles": "^3.2.0",
49
50
  "@atlaskit/frontend-utilities": "^2.8.0",
50
- "@atlaskit/icon": "^23.1.0",
51
+ "@atlaskit/icon": "^23.4.0",
51
52
  "@atlaskit/link-analytics": "^8.6.0",
52
53
  "@atlaskit/link-client-extension": "^3.0.0",
53
54
  "@atlaskit/link-datasource": "^3.15.0",
54
55
  "@atlaskit/linking-common": "^6.1.0",
55
56
  "@atlaskit/linking-types": "^9.5.0",
56
- "@atlaskit/menu": "2.13.7",
57
+ "@atlaskit/menu": "2.13.8",
57
58
  "@atlaskit/platform-feature-flags": "^0.3.0",
58
59
  "@atlaskit/primitives": "^13.3.0",
59
- "@atlaskit/smart-card": "^34.0.0",
60
+ "@atlaskit/smart-card": "^34.5.0",
60
61
  "@atlaskit/theme": "^14.0.0",
61
- "@atlaskit/tmp-editor-statsig": "^2.32.0",
62
- "@atlaskit/tokens": "^2.5.0",
62
+ "@atlaskit/tmp-editor-statsig": "^2.38.0",
63
+ "@atlaskit/tokens": "^3.1.0",
63
64
  "@babel/runtime": "^7.0.0",
64
65
  "@emotion/react": "^11.7.1",
65
66
  "lodash": "^4.17.21",
@@ -112,9 +113,6 @@
112
113
  "type": "boolean",
113
114
  "referenceOnly": true
114
115
  },
115
- "platform-datasources-enable-two-way-sync": {
116
- "type": "boolean"
117
- },
118
116
  "linking-platform-contenteditable-false-live-view": {
119
117
  "type": "boolean"
120
118
  },