@atlaskit/editor-plugin-card 4.5.16 → 4.5.18
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 +12 -0
- package/dist/cjs/nodeviews/blockCard.js +19 -6
- package/dist/cjs/nodeviews/embedCard.js +16 -1
- package/dist/cjs/nodeviews/inlineCard.js +17 -5
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +18 -3
- package/dist/cjs/pm-plugins/actions.js +12 -3
- package/dist/cjs/pm-plugins/doc.js +5 -25
- package/dist/cjs/pm-plugins/reducers.js +13 -0
- package/dist/cjs/pm-plugins/util/resolve.js +2 -8
- package/dist/cjs/pm-plugins/utils.js +1 -4
- package/dist/cjs/ui/EditLinkToolbar.js +2 -8
- package/dist/cjs/ui/ResizableEmbedCard.js +1 -1
- package/dist/cjs/ui/analytics/events-from-tr.js +0 -3
- package/dist/cjs/ui/analytics/utils.js +1 -4
- package/dist/cjs/ui/editDatasourceAction.js +1 -4
- package/dist/cjs/ui/toolbar.js +7 -28
- package/dist/es2019/nodeviews/blockCard.js +20 -7
- package/dist/es2019/nodeviews/embedCard.js +17 -2
- package/dist/es2019/nodeviews/inlineCard.js +21 -7
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +12 -1
- package/dist/es2019/pm-plugins/actions.js +7 -2
- package/dist/es2019/pm-plugins/doc.js +7 -33
- package/dist/es2019/pm-plugins/reducers.js +12 -0
- package/dist/es2019/pm-plugins/util/resolve.js +2 -8
- package/dist/es2019/pm-plugins/utils.js +2 -8
- package/dist/es2019/ui/EditLinkToolbar.js +2 -8
- package/dist/es2019/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/ui/analytics/events-from-tr.js +0 -3
- package/dist/es2019/ui/analytics/utils.js +1 -4
- package/dist/es2019/ui/editDatasourceAction.js +1 -4
- package/dist/es2019/ui/toolbar.js +7 -28
- package/dist/esm/nodeviews/blockCard.js +20 -7
- package/dist/esm/nodeviews/embedCard.js +17 -2
- package/dist/esm/nodeviews/inlineCard.js +19 -7
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +18 -3
- package/dist/esm/pm-plugins/actions.js +11 -2
- package/dist/esm/pm-plugins/doc.js +5 -25
- package/dist/esm/pm-plugins/reducers.js +13 -0
- package/dist/esm/pm-plugins/util/resolve.js +2 -8
- package/dist/esm/pm-plugins/utils.js +1 -4
- package/dist/esm/ui/EditLinkToolbar.js +2 -8
- package/dist/esm/ui/ResizableEmbedCard.js +1 -1
- package/dist/esm/ui/analytics/events-from-tr.js +0 -3
- package/dist/esm/ui/analytics/utils.js +1 -4
- package/dist/esm/ui/editDatasourceAction.js +1 -4
- package/dist/esm/ui/toolbar.js +7 -28
- package/dist/types/nodeviews/blockCard.d.ts +8 -2
- package/dist/types/nodeviews/embedCard.d.ts +8 -2
- package/dist/types/nodeviews/genericCard.d.ts +3 -1
- package/dist/types/pm-plugins/actions.d.ts +2 -1
- package/dist/types/pm-plugins/util/state.d.ts +1 -0
- package/dist/types/types/index.d.ts +7 -1
- package/dist/types/ui/datasourceErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +8 -2
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +8 -2
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +3 -1
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/util/state.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +7 -1
- package/dist/types-ts4.5/ui/datasourceErrorBoundary.d.ts +1 -1
- package/package.json +26 -22
|
@@ -17,6 +17,7 @@ export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState
|
|
|
17
17
|
pos: number;
|
|
18
18
|
title?: string | undefined;
|
|
19
19
|
url?: string | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
20
21
|
}[];
|
|
21
22
|
provider: import("@atlaskit/editor-common/provider-factory").CardProvider | null;
|
|
22
23
|
datasourceStash: {
|
|
@@ -17,6 +17,7 @@ export type DatasourceNode = Omit<Node, 'attrs'> & {
|
|
|
17
17
|
export type CardInfo = {
|
|
18
18
|
title?: string;
|
|
19
19
|
url?: string;
|
|
20
|
+
id?: string;
|
|
20
21
|
pos: number;
|
|
21
22
|
};
|
|
22
23
|
export type Request = {
|
|
@@ -123,6 +124,10 @@ export type Register = {
|
|
|
123
124
|
type: 'REGISTER';
|
|
124
125
|
info: CardInfo;
|
|
125
126
|
};
|
|
127
|
+
export type RemoveCard = {
|
|
128
|
+
type: 'REMOVE_CARD';
|
|
129
|
+
info: Partial<CardInfo>;
|
|
130
|
+
};
|
|
126
131
|
export type ShowLinkToolbar = {
|
|
127
132
|
type: 'SHOW_LINK_TOOLBAR';
|
|
128
133
|
};
|
|
@@ -159,6 +164,7 @@ type ClearOverlayCandidate = {
|
|
|
159
164
|
type RegisterRemoveOverlayOnInsertedLink = {
|
|
160
165
|
type: 'REGISTER_REMOVE_OVERLAY_ON_INSERTED_LINK';
|
|
161
166
|
callback: () => void;
|
|
167
|
+
info?: Register['info'];
|
|
162
168
|
};
|
|
163
169
|
export type SetDatasourceStash = {
|
|
164
170
|
type: 'SET_DATASOURCE_STASH';
|
|
@@ -171,5 +177,5 @@ export type RemoveDatasourceStash = {
|
|
|
171
177
|
type: 'REMOVE_DATASOURCE_STASH';
|
|
172
178
|
url: string;
|
|
173
179
|
};
|
|
174
|
-
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | ShowDatasourceModal | HideDatasourceModal | RegisterSmartCardEvents | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef | ClearOverlayCandidate | RegisterRemoveOverlayOnInsertedLink | SetDatasourceStash | RemoveDatasourceStash;
|
|
180
|
+
export type CardPluginAction = SetProvider | Queue | Resolve | Register | RemoveCard | ShowLinkToolbar | HideLinkToolbar | ShowDatasourceModal | HideDatasourceModal | RegisterSmartCardEvents | SetDatasourceTableRef | SetCardLayout | SetCardLayoutAndDatasourceTableRef | ClearOverlayCandidate | RegisterRemoveOverlayOnInsertedLink | SetDatasourceStash | RemoveDatasourceStash;
|
|
175
181
|
export {};
|
|
@@ -20,5 +20,5 @@ export declare class DatasourceErrorBoundary extends React.Component<DatasourceE
|
|
|
20
20
|
error: Error | APIError;
|
|
21
21
|
};
|
|
22
22
|
componentDidCatch(error: Error | APIError): void;
|
|
23
|
-
render(): React.
|
|
23
|
+
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.18",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,40 +32,41 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/analytics-next": "^10.
|
|
35
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
36
36
|
"@atlaskit/custom-steps": "^0.9.0",
|
|
37
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
+
"@atlaskit/editor-common": "^99.7.0",
|
|
38
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
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
41
|
+
"@atlaskit/editor-plugin-decorations": "^1.4.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.4.0",
|
|
43
43
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
45
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^1.
|
|
46
|
-
"@atlaskit/editor-plugin-grid": "^1.
|
|
45
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.16.0",
|
|
46
|
+
"@atlaskit/editor-plugin-grid": "^1.3.0",
|
|
47
47
|
"@atlaskit/editor-plugin-width": "^2.0.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
50
|
-
"@atlaskit/frontend-utilities": "^2.
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
52
|
-
"@atlaskit/link-analytics": "^8.
|
|
53
|
-
"@atlaskit/link-client-extension": "^3.
|
|
54
|
-
"@atlaskit/link-datasource": "^3.
|
|
55
|
-
"@atlaskit/linking-common": "^6.
|
|
56
|
-
"@atlaskit/linking-types": "^9.
|
|
57
|
-
"@atlaskit/menu": "2.
|
|
58
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
59
|
-
"@atlaskit/primitives": "^13.
|
|
60
|
-
"@atlaskit/smart-card": "^34.
|
|
61
|
-
"@atlaskit/theme": "^14.
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
63
|
-
"@atlaskit/tokens": "^3.
|
|
50
|
+
"@atlaskit/frontend-utilities": "^2.9.0",
|
|
51
|
+
"@atlaskit/icon": "^23.6.0",
|
|
52
|
+
"@atlaskit/link-analytics": "^8.7.0",
|
|
53
|
+
"@atlaskit/link-client-extension": "^3.1.0",
|
|
54
|
+
"@atlaskit/link-datasource": "^3.18.0",
|
|
55
|
+
"@atlaskit/linking-common": "^6.2.0",
|
|
56
|
+
"@atlaskit/linking-types": "^9.6.0",
|
|
57
|
+
"@atlaskit/menu": "2.14.1",
|
|
58
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
59
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
60
|
+
"@atlaskit/smart-card": "^34.10.0",
|
|
61
|
+
"@atlaskit/theme": "^14.1.0",
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
63
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
67
67
|
"prop-types": "^15.5.10",
|
|
68
|
-
"raf-schd": "^4.0.3"
|
|
68
|
+
"raf-schd": "^4.0.3",
|
|
69
|
+
"uuid": "^3.1.0"
|
|
69
70
|
},
|
|
70
71
|
"peerDependencies": {
|
|
71
72
|
"@atlaskit/link-provider": "^1.17.0",
|
|
@@ -133,6 +134,9 @@
|
|
|
133
134
|
"platform_inline_node_as_valid_annotation_selection": {
|
|
134
135
|
"type": "boolean"
|
|
135
136
|
},
|
|
137
|
+
"platform_editor_fix_card_plugin_state": {
|
|
138
|
+
"type": "boolean"
|
|
139
|
+
},
|
|
136
140
|
"platform_fix_embedded_card_re-rendering": {
|
|
137
141
|
"type": "boolean"
|
|
138
142
|
}
|