@atlaskit/editor-plugin-card 4.5.17 → 4.5.19
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 +18 -2
- package/dist/cjs/nodeviews/embedCard.js +16 -1
- package/dist/cjs/nodeviews/inlineCard.js +18 -2
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +18 -3
- package/dist/cjs/pm-plugins/actions.js +12 -3
- package/dist/cjs/pm-plugins/reducers.js +13 -0
- package/dist/es2019/nodeviews/blockCard.js +19 -3
- package/dist/es2019/nodeviews/embedCard.js +17 -2
- package/dist/es2019/nodeviews/inlineCard.js +22 -4
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +12 -1
- package/dist/es2019/pm-plugins/actions.js +7 -2
- package/dist/es2019/pm-plugins/reducers.js +12 -0
- package/dist/esm/nodeviews/blockCard.js +19 -3
- package/dist/esm/nodeviews/embedCard.js +17 -2
- package/dist/esm/nodeviews/inlineCard.js +20 -4
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +18 -3
- package/dist/esm/pm-plugins/actions.js +11 -2
- package/dist/esm/pm-plugins/reducers.js +13 -0
- package/dist/types/nodeviews/blockCard.d.ts +11 -5
- package/dist/types/nodeviews/embedCard.d.ts +10 -4
- package/dist/types/nodeviews/genericCard.d.ts +3 -1
- package/dist/types/nodeviews/inlineCard.d.ts +2 -2
- package/dist/types/nodeviews/inlineCardWithAwareness.d.ts +1 -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/DatasourceIcon/index.d.ts +2 -2
- package/dist/types/ui/DatasourceModal/ModalWithState.d.ts +1 -1
- package/dist/types/ui/DatasourceModal/index.d.ts +2 -2
- package/dist/types/ui/EditLinkToolbar.d.ts +2 -2
- package/dist/types/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types/ui/EditorLinkingPlatformAnalytics/index.d.ts +1 -1
- package/dist/types/ui/HyperlinkToolbarAppearance.d.ts +2 -2
- package/dist/types/ui/LinkToolbarAppearance.d.ts +2 -2
- package/dist/types/ui/Pulse/index.d.ts +2 -2
- package/dist/types/ui/ToolbarViewedEvent.d.ts +2 -2
- package/dist/types/ui/WithCardContext.d.ts +1 -1
- package/dist/types/ui/datasourceErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/blockCard.d.ts +11 -5
- package/dist/types-ts4.5/nodeviews/embedCard.d.ts +10 -4
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +3 -1
- package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/inlineCardWithAwareness.d.ts +1 -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/DatasourceIcon/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/DatasourceModal/ModalWithState.d.ts +1 -1
- package/dist/types-ts4.5/ui/DatasourceModal/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/EditLinkToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/EditorAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorLinkingPlatformAnalytics/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/HyperlinkToolbarAppearance.d.ts +2 -2
- package/dist/types-ts4.5/ui/LinkToolbarAppearance.d.ts +2 -2
- package/dist/types-ts4.5/ui/Pulse/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarViewedEvent.d.ts +2 -2
- package/dist/types-ts4.5/ui/WithCardContext.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasourceErrorBoundary.d.ts +1 -1
- package/package.json +15 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { CardContext } from '@atlaskit/link-provider';
|
|
@@ -8,5 +8,5 @@ type DatasourceModalProps = {
|
|
|
8
8
|
editorAnalyticsApi?: EditorAnalyticsAPI;
|
|
9
9
|
cardContext?: CardContext;
|
|
10
10
|
} & ModalTypeToComponentMap;
|
|
11
|
-
export declare const DatasourceModal: ({ view, cardContext, datasourceId: defaultDatasourceId, componentType: Component, }: DatasourceModalProps) => JSX.Element | null;
|
|
11
|
+
export declare const DatasourceModal: ({ view, cardContext, datasourceId: defaultDatasourceId, componentType: Component, }: DatasourceModalProps) => React.JSX.Element | null;
|
|
12
12
|
export {};
|
|
@@ -19,12 +19,12 @@ export type EditLinkToolbarProps = {
|
|
|
19
19
|
forceFocusSelector: ForceFocusSelector | undefined;
|
|
20
20
|
lpLinkPicker: boolean;
|
|
21
21
|
};
|
|
22
|
-
export declare function HyperlinkAddToolbarWithState({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, }: HyperlinkAddToolbarProps): JSX.Element;
|
|
22
|
+
export declare function HyperlinkAddToolbarWithState({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, }: HyperlinkAddToolbarProps): React.JSX.Element;
|
|
23
23
|
export declare class EditLinkToolbar extends React.Component<EditLinkToolbarProps> {
|
|
24
24
|
componentDidUpdate(prevProps: EditLinkToolbarProps): void;
|
|
25
25
|
componentWillUnmount(): void;
|
|
26
26
|
private hideLinkToolbar;
|
|
27
|
-
render(): JSX.Element;
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
export declare const getEditLinkCallback: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, scrollIntoView: boolean) => Command;
|
|
30
30
|
export declare const buildEditLinkToolbar: ({ providerFactory, node, pluginInjectionApi, linkPicker, lpLinkPicker, }: {
|
|
@@ -7,4 +7,4 @@ export type EditorAnalyticsContextProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides location attribute to child events
|
|
9
9
|
*/
|
|
10
|
-
export declare const EditorAnalyticsContext: ({ editorView, children }: EditorAnalyticsContextProps) => JSX.Element;
|
|
10
|
+
export declare const EditorAnalyticsContext: ({ editorView, children }: EditorAnalyticsContextProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IntlShape } from 'react-intl-next';
|
|
3
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
@@ -15,4 +15,4 @@ export interface HyperlinkToolbarAppearanceProps {
|
|
|
15
15
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
16
16
|
editorPluginApi: ExtractInjectionAPI<CardPlugin> | undefined;
|
|
17
17
|
}
|
|
18
|
-
export declare function HyperlinkToolbarAppearance(props: HyperlinkToolbarAppearanceProps): JSX.Element | null;
|
|
18
|
+
export declare function HyperlinkToolbarAppearance(props: HyperlinkToolbarAppearanceProps): React.JSX.Element | null;
|
|
@@ -18,6 +18,6 @@ export interface LinkToolbarAppearanceProps {
|
|
|
18
18
|
isDatasourceView?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare class LinkToolbarAppearance extends React.Component<LinkToolbarAppearanceProps, Object> {
|
|
21
|
-
renderDropdown: (view?: EditorView, cardContext?: CardContext) => JSX.Element | null;
|
|
22
|
-
render(): JSX.Element;
|
|
21
|
+
renderDropdown: (view?: EditorView, cardContext?: CardContext) => React.JSX.Element | null;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type PulseDiscoveryMode = 'start' | 'iteration';
|
|
3
3
|
export interface PulseProps {
|
|
4
4
|
/**
|
|
@@ -21,4 +21,4 @@ export interface PulseProps {
|
|
|
21
21
|
shouldShowPulse?: boolean;
|
|
22
22
|
testId?: string;
|
|
23
23
|
}
|
|
24
|
-
export declare const DiscoveryPulse: ({ children, localStorageKey, localStorageKeyExpirationInMs, discoveryMode, shouldShowPulse, testId, }: PulseProps) => JSX.Element;
|
|
24
|
+
export declare const DiscoveryPulse: ({ children, localStorageKey, localStorageKeyExpirationInMs, discoveryMode, shouldShowPulse, testId, }: PulseProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { EditorAnalyticsContextProps } from './EditorAnalyticsContext';
|
|
3
3
|
type ToolbarViewedEventProps = {
|
|
4
4
|
url?: string;
|
|
@@ -7,5 +7,5 @@ type ToolbarViewedEventProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides analytics context and card context
|
|
9
9
|
*/
|
|
10
|
-
export declare const ToolbarViewedEvent: ({ url, display, editorView, }: ToolbarViewedEventProps & Omit<EditorAnalyticsContextProps, 'children'>) => JSX.Element;
|
|
10
|
+
export declare const ToolbarViewedEvent: ({ url, display, editorView, }: ToolbarViewedEventProps & Omit<EditorAnalyticsContextProps, 'children'>) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import { useSmartCardContext } from '@atlaskit/link-provider';
|
|
3
3
|
export declare const WithCardContext: ({ children, }: {
|
|
4
4
|
children: (cardContext: ReturnType<typeof useSmartCardContext>) => React.ReactNode;
|
|
5
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -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 |
|
|
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": "4.5.
|
|
3
|
+
"version": "4.5.19",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
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.9.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",
|
|
@@ -48,24 +48,25 @@
|
|
|
48
48
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
50
50
|
"@atlaskit/frontend-utilities": "^2.9.0",
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
51
|
+
"@atlaskit/icon": "^23.7.0",
|
|
52
52
|
"@atlaskit/link-analytics": "^8.7.0",
|
|
53
53
|
"@atlaskit/link-client-extension": "^3.1.0",
|
|
54
|
-
"@atlaskit/link-datasource": "^3.
|
|
55
|
-
"@atlaskit/linking-common": "^6.
|
|
54
|
+
"@atlaskit/link-datasource": "^3.18.0",
|
|
55
|
+
"@atlaskit/linking-common": "^6.3.0",
|
|
56
56
|
"@atlaskit/linking-types": "^9.6.0",
|
|
57
|
-
"@atlaskit/menu": "2.14.
|
|
58
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
57
|
+
"@atlaskit/menu": "2.14.2",
|
|
58
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
59
59
|
"@atlaskit/primitives": "^13.4.0",
|
|
60
|
-
"@atlaskit/smart-card": "^34.
|
|
61
|
-
"@atlaskit/theme": "^
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
60
|
+
"@atlaskit/smart-card": "^34.10.0",
|
|
61
|
+
"@atlaskit/theme": "^15.0.0",
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^2.43.0",
|
|
63
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
|
}
|