@atlaskit/editor-plugin-card 7.5.1 → 7.6.0
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 +16 -0
- package/dist/cjs/nodeviews/blockCard.js +75 -22
- package/dist/cjs/nodeviews/embedCard.js +76 -25
- package/dist/cjs/nodeviews/inlineCard.js +51 -6
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +7 -2
- package/dist/cjs/pm-plugins/main.js +7 -2
- package/dist/es2019/nodeviews/blockCard.js +33 -6
- package/dist/es2019/nodeviews/embedCard.js +36 -8
- package/dist/es2019/nodeviews/inlineCard.js +25 -3
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +7 -2
- package/dist/es2019/pm-plugins/main.js +5 -0
- package/dist/esm/nodeviews/blockCard.js +75 -23
- package/dist/esm/nodeviews/embedCard.js +76 -25
- package/dist/esm/nodeviews/inlineCard.js +52 -7
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +7 -2
- package/dist/esm/pm-plugins/main.js +7 -2
- package/dist/types/nodeviews/blockCard.d.ts +10 -3
- package/dist/types/nodeviews/embedCard.d.ts +5 -2
- package/dist/types/nodeviews/genericCard.d.ts +2 -1
- package/dist/types/nodeviews/inlineCard.d.ts +2 -2
- package/dist/types/nodeviews/inlineCardWithAwareness.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +10 -3
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +5 -2
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/inlineCardWithAwareness.d.ts +1 -1
- package/package.json +6 -8
|
@@ -4,8 +4,8 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
4
4
|
import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { SmartCardProps } from './genericCard';
|
|
6
6
|
import { type InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
|
|
7
|
-
export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick: propsOnClick, onResolve: onRes, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, pluginInjectionApi, disablePreviewPanel, }: SmartCardProps) => React.JSX.Element | null>;
|
|
8
|
-
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | 'isPageSSRed' | 'CompetitorPrompt'>;
|
|
7
|
+
export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick: propsOnClick, onResolve: onRes, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, provider, pluginInjectionApi, disablePreviewPanel, }: SmartCardProps) => React.JSX.Element | null>;
|
|
8
|
+
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | 'isPageSSRed' | 'CompetitorPrompt' | 'provider'>;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
* @param props
|
|
@@ -5,4 +5,4 @@ export type InlineCardWithAwarenessProps = {
|
|
|
5
5
|
isPulseEnabled?: boolean;
|
|
6
6
|
isSelected?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const InlineCardWithAwareness: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, pluginInjectionApi, onClick, isPulseEnabled, isOverlayEnabled, isSelected, isPageSSRed, appearance, }: SmartCardProps & InlineCardWithAwarenessProps) => React.JSX.Element>;
|
|
8
|
+
export declare const InlineCardWithAwareness: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, pluginInjectionApi, onClick, isPulseEnabled, isOverlayEnabled, isSelected, isPageSSRed, provider, appearance, }: SmartCardProps & InlineCardWithAwarenessProps) => React.JSX.Element>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,14 +28,12 @@
|
|
|
28
28
|
"*.compiled.css"
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
|
-
"af:exports": {
|
|
32
|
-
".": "./src/index.ts"
|
|
33
|
-
},
|
|
34
31
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
32
|
+
"@atlaskit/adf-schema": "^50.2.3",
|
|
36
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
37
34
|
"@atlaskit/button": "^23.4.0",
|
|
38
35
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
36
|
+
"@atlaskit/editor-card-provider": "^5.6.0",
|
|
39
37
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
40
38
|
"@atlaskit/editor-plugin-base": "^4.1.0",
|
|
41
39
|
"@atlaskit/editor-plugin-connectivity": "^3.1.0",
|
|
@@ -60,9 +58,9 @@
|
|
|
60
58
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
59
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
60
|
"@atlaskit/primitives": "^14.12.0",
|
|
63
|
-
"@atlaskit/smart-card": "^40.
|
|
61
|
+
"@atlaskit/smart-card": "^40.14.0",
|
|
64
62
|
"@atlaskit/theme": "^20.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^11.9.0",
|
|
66
64
|
"@atlaskit/tokens": "^6.1.0",
|
|
67
65
|
"@babel/runtime": "^7.0.0",
|
|
68
66
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
"uuid": "^3.1.0"
|
|
73
71
|
},
|
|
74
72
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^107.
|
|
73
|
+
"@atlaskit/editor-common": "^107.33.0",
|
|
76
74
|
"@atlaskit/link-provider": "^3.7.0",
|
|
77
75
|
"react": "^18.2.0",
|
|
78
76
|
"react-intl-next": "npm:react-intl@^5.18.1"
|