@atlaskit/editor-plugin-card 4.5.14 → 4.5.16

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,23 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 4.5.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#103370](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103370)
8
+ [`c121c95a0cf37`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c121c95a0cf37) -
9
+ Cleanup feature flag enable_datasource_react_sweet_state to always use react sweet state for
10
+ powering datasources
11
+ - Updated dependencies
12
+
13
+ ## 4.5.15
14
+
15
+ ### Patch Changes
16
+
17
+ - [#104847](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104847)
18
+ [`b55fc11242d17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b55fc11242d17) -
19
+ Consolidate duplicate import statements
20
+
3
21
  ## 4.5.14
4
22
 
5
23
  ### Patch Changes
@@ -20,22 +20,23 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
20
20
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: INPUT_METHOD) => Command;
21
21
  };
22
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
+ ];
23
37
  export type CardPlugin = NextEditorPlugin<'card', {
24
38
  pluginConfiguration: CardPluginOptions | undefined;
25
- dependencies: [
26
- OptionalPlugin<FeatureFlagsPlugin>,
27
- OptionalPlugin<AnalyticsPlugin>,
28
- OptionalPlugin<EditorViewModePlugin>,
29
- WidthPlugin,
30
- DecorationsPlugin,
31
- GridPlugin,
32
- FloatingToolbarPlugin,
33
- OptionalPlugin<EditorDisabledPlugin>,
34
- OptionalPlugin<SelectionPlugin>,
35
- OptionalPlugin<DummyAnnotationPlugin>,
36
- OptionalPlugin<ConnectivityPlugin>,
37
- OptionalPlugin<BasePlugin>
38
- ];
39
+ dependencies: CardPluginDependencies;
39
40
  sharedState: CardPluginState | null;
40
41
  actions: CardPluginActions;
41
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;
@@ -20,22 +20,23 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
20
20
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: INPUT_METHOD) => Command;
21
21
  };
22
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
+ ];
23
37
  export type CardPlugin = NextEditorPlugin<'card', {
24
38
  pluginConfiguration: CardPluginOptions | undefined;
25
- dependencies: [
26
- OptionalPlugin<FeatureFlagsPlugin>,
27
- OptionalPlugin<AnalyticsPlugin>,
28
- OptionalPlugin<EditorViewModePlugin>,
29
- WidthPlugin,
30
- DecorationsPlugin,
31
- GridPlugin,
32
- FloatingToolbarPlugin,
33
- OptionalPlugin<EditorDisabledPlugin>,
34
- OptionalPlugin<SelectionPlugin>,
35
- OptionalPlugin<DummyAnnotationPlugin>,
36
- OptionalPlugin<ConnectivityPlugin>,
37
- OptionalPlugin<BasePlugin>
38
- ];
39
+ dependencies: CardPluginDependencies;
39
40
  sharedState: CardPluginState | null;
40
41
  actions: CardPluginActions;
41
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.14",
3
+ "version": "4.5.16",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,8 @@
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": "^99.0.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
+ "@atlaskit/editor-common": "^99.5.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.11.0",
39
39
  "@atlaskit/editor-plugin-base": "^2.1.0",
40
40
  "@atlaskit/editor-plugin-connectivity": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
@@ -48,19 +48,19 @@
48
48
  "@atlaskit/editor-prosemirror": "6.2.1",
49
49
  "@atlaskit/editor-shared-styles": "^3.2.0",
50
50
  "@atlaskit/frontend-utilities": "^2.8.0",
51
- "@atlaskit/icon": "^23.3.0",
51
+ "@atlaskit/icon": "^23.4.0",
52
52
  "@atlaskit/link-analytics": "^8.6.0",
53
53
  "@atlaskit/link-client-extension": "^3.0.0",
54
- "@atlaskit/link-datasource": "^3.15.0",
54
+ "@atlaskit/link-datasource": "^3.16.0",
55
55
  "@atlaskit/linking-common": "^6.1.0",
56
56
  "@atlaskit/linking-types": "^9.5.0",
57
57
  "@atlaskit/menu": "2.13.8",
58
58
  "@atlaskit/platform-feature-flags": "^0.3.0",
59
59
  "@atlaskit/primitives": "^13.3.0",
60
- "@atlaskit/smart-card": "^34.0.0",
60
+ "@atlaskit/smart-card": "^34.6.0",
61
61
  "@atlaskit/theme": "^14.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^2.33.0",
63
- "@atlaskit/tokens": "^3.0.0",
62
+ "@atlaskit/tmp-editor-statsig": "^2.39.0",
63
+ "@atlaskit/tokens": "^3.2.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
66
66
  "lodash": "^4.17.21",
@@ -109,10 +109,6 @@
109
109
  }
110
110
  },
111
111
  "platform-feature-flags": {
112
- "enable_datasource_react_sweet_state": {
113
- "type": "boolean",
114
- "referenceOnly": true
115
- },
116
112
  "linking-platform-contenteditable-false-live-view": {
117
113
  "type": "boolean"
118
114
  },