@atlaskit/editor-plugin-card 12.4.3 → 13.0.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 +17 -0
- package/dist/cjs/nodeviews/datasource.js +1 -1
- package/dist/cjs/nodeviews/inlineCard.js +1 -3
- package/dist/cjs/pm-plugins/utils.js +3 -1
- package/dist/cjs/ui/AwarenessWrapper/index.js +1 -1
- package/dist/cjs/ui/ConfigureOverlay/index.js +1 -1
- package/dist/cjs/ui/DatasourceAppearanceButton.js +1 -1
- package/dist/cjs/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/cjs/ui/EditToolbarButton/index.js +1 -1
- package/dist/cjs/ui/InlineCardOverlay/index.js +1 -1
- package/dist/cjs/ui/LayoutButton/index.js +3 -2
- package/dist/cjs/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/nodeviews/datasource.js +1 -1
- package/dist/es2019/nodeviews/inlineCard.js +3 -5
- package/dist/es2019/pm-plugins/utils.js +3 -1
- package/dist/es2019/ui/AwarenessWrapper/index.js +1 -1
- package/dist/es2019/ui/ConfigureOverlay/index.js +1 -1
- package/dist/es2019/ui/DatasourceAppearanceButton.js +1 -1
- package/dist/es2019/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/es2019/ui/EditToolbarButton/index.js +1 -1
- package/dist/es2019/ui/InlineCardOverlay/index.js +1 -1
- package/dist/es2019/ui/LayoutButton/index.js +3 -2
- package/dist/es2019/ui/ResizableEmbedCard.js +1 -1
- package/dist/esm/nodeviews/datasource.js +1 -1
- package/dist/esm/nodeviews/inlineCard.js +3 -5
- package/dist/esm/pm-plugins/utils.js +3 -1
- package/dist/esm/ui/AwarenessWrapper/index.js +1 -1
- package/dist/esm/ui/ConfigureOverlay/index.js +1 -1
- package/dist/esm/ui/DatasourceAppearanceButton.js +1 -1
- package/dist/esm/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/esm/ui/EditToolbarButton/index.js +1 -1
- package/dist/esm/ui/InlineCardOverlay/index.js +1 -1
- package/dist/esm/ui/LayoutButton/index.js +3 -2
- package/dist/esm/ui/ResizableEmbedCard.js +1 -1
- package/dist/types/nodeviews/blockCard.d.ts +2 -2
- package/dist/types/nodeviews/inlineCard.d.ts +3 -3
- package/dist/types/nodeviews/lazy-inline-card.d.ts +2 -1
- package/dist/types/nodeviews/toDOM-fixes/blockCard.d.ts +18 -17
- package/dist/types/nodeviews/toDOM-fixes/embedCard.d.ts +18 -17
- package/dist/types/nodeviews/toDOM-fixes/inlineCard.d.ts +18 -17
- package/dist/types/pm-plugins/doc.d.ts +2 -2
- package/dist/types/pm-plugins/util/resolve.d.ts +2 -2
- package/dist/types/pm-plugins/util/state.d.ts +28 -20
- package/dist/types/ui/DatasourceDropdownOption.d.ts +8 -7
- package/dist/types/ui/LayoutButton/index.d.ts +9 -4
- package/dist/types/ui/LayoutButton/utils.d.ts +3 -2
- package/dist/types/ui/ResizableEmbedCard.d.ts +3 -2
- package/dist/types/ui/analytics/utils.d.ts +2 -1
- package/dist/types/ui/datasourceErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/lazy-inline-card.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/blockCard.d.ts +18 -17
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/embedCard.d.ts +18 -17
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/inlineCard.d.ts +18 -17
- package/dist/types-ts4.5/pm-plugins/doc.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/util/resolve.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/util/state.d.ts +28 -20
- package/dist/types-ts4.5/ui/DatasourceDropdownOption.d.ts +8 -7
- package/dist/types-ts4.5/ui/LayoutButton/index.d.ts +9 -4
- package/dist/types-ts4.5/ui/LayoutButton/utils.d.ts +3 -2
- package/dist/types-ts4.5/ui/ResizableEmbedCard.d.ts +3 -2
- package/dist/types-ts4.5/ui/analytics/utils.d.ts +2 -1
- package/dist/types-ts4.5/ui/datasourceErrorBoundary.d.ts +1 -1
- package/package.json +17 -17
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
8
8
|
import type { ResizerProps } from '@atlaskit/editor-common/ui';
|
|
9
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
9
10
|
type State = {
|
|
10
11
|
offsetLeft: number;
|
|
11
12
|
resizedPctWidth?: number;
|
|
@@ -29,11 +30,11 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
|
|
|
29
30
|
*/
|
|
30
31
|
checkLayout(oldLayout: RichMediaLayout, newLayout: RichMediaLayout): void;
|
|
31
32
|
calcNewSize: (newWidth: number, stop: boolean) => {
|
|
32
|
-
width: number | null;
|
|
33
33
|
layout: RichMediaLayout;
|
|
34
|
+
width: number | null;
|
|
34
35
|
};
|
|
35
36
|
calcUnwrappedLayout: (pct: number, width: number) => "center" | "wide" | "full-width";
|
|
36
|
-
get $pos():
|
|
37
|
+
get $pos(): ResolvedPos | null;
|
|
37
38
|
/**
|
|
38
39
|
* The maxmimum number of grid columns this node can resize to.
|
|
39
40
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
1
2
|
import { type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import { type ReadonlyTransaction, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import { type Entity, EVENT_SUBJECT } from './types';
|
|
@@ -10,7 +11,7 @@ export declare function getNodeSubject(node: Node): EVENT_SUBJECT | null;
|
|
|
10
11
|
/**
|
|
11
12
|
* Analytics appearance for link object
|
|
12
13
|
*/
|
|
13
|
-
export declare function appearanceForLink(node: Node):
|
|
14
|
+
export declare function appearanceForLink(node: Node): 'url' | CardAppearance;
|
|
14
15
|
export declare function getUrl(node: Node): string | undefined;
|
|
15
16
|
export declare const getNodeContext: (doc: Node, pos: number) => string;
|
|
16
17
|
export declare const findAtPositions: (tr: Transaction | ReadonlyTransaction, positions: number[]) => Entity[];
|
|
@@ -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(): string | number | boolean | React.
|
|
23
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^52.2.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
36
|
-
"@atlaskit/editor-plugin-base": "^
|
|
37
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
39
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
40
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
41
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
42
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
43
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
44
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
45
|
-
"@atlaskit/editor-plugin-width": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-base": "^9.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-connectivity": "^8.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^8.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-feature-flags": "^7.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^10.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-grid": "^8.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-toolbar": "^5.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-width": "^9.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
48
48
|
"@atlaskit/editor-smart-link-draggable": "^0.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/link": "^3.3.0",
|
|
52
52
|
"@atlaskit/link-analytics": "^11.0.0",
|
|
53
53
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
54
|
-
"@atlaskit/link-datasource": "^4.
|
|
54
|
+
"@atlaskit/link-datasource": "^4.34.0",
|
|
55
55
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
56
56
|
"@atlaskit/linking-common": "^9.10.0",
|
|
57
57
|
"@atlaskit/linking-types": "^14.2.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
61
|
"@atlaskit/primitives": "^18.0.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
|
-
"@atlaskit/smart-card": "^43.
|
|
63
|
+
"@atlaskit/smart-card": "^43.26.0",
|
|
64
64
|
"@atlaskit/theme": "^22.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
66
|
-
"@atlaskit/tokens": "^11.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
66
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^
|
|
75
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
76
76
|
"@atlaskit/link-provider": "^4.2.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|