@atlaskit/editor-plugin-card 0.12.2 → 0.13.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 +16 -0
- package/dist/cjs/common/hooks/useLinkUpgradeDiscoverability.js +56 -0
- package/dist/cjs/common/local-storage.js +4 -1
- package/dist/cjs/common/pulse/index.js +8 -4
- package/dist/cjs/nodeviews/inlineCard.js +26 -4
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +83 -33
- package/dist/cjs/plugin.js +4 -2
- package/dist/cjs/pm-plugins/main.js +33 -4
- package/dist/cjs/toolbar.js +4 -3
- package/dist/cjs/ui/InlineCardOverlay/index.js +2 -1
- package/dist/cjs/ui/LinkToolbarAppearance.js +5 -4
- package/dist/cjs/utils.js +13 -1
- package/dist/es2019/common/hooks/useLinkUpgradeDiscoverability.js +44 -0
- package/dist/es2019/common/local-storage.js +3 -0
- package/dist/es2019/common/pulse/index.js +7 -4
- package/dist/es2019/nodeviews/inlineCard.js +26 -4
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +58 -13
- package/dist/es2019/plugin.js +4 -2
- package/dist/es2019/pm-plugins/main.js +33 -4
- package/dist/es2019/toolbar.js +4 -3
- package/dist/es2019/ui/InlineCardOverlay/index.js +2 -1
- package/dist/es2019/ui/LinkToolbarAppearance.js +4 -3
- package/dist/es2019/utils.js +9 -1
- package/dist/esm/common/hooks/useLinkUpgradeDiscoverability.js +49 -0
- package/dist/esm/common/local-storage.js +3 -0
- package/dist/esm/common/pulse/index.js +8 -4
- package/dist/esm/nodeviews/inlineCard.js +26 -4
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +82 -30
- package/dist/esm/plugin.js +4 -2
- package/dist/esm/pm-plugins/main.js +33 -4
- package/dist/esm/toolbar.js +4 -3
- package/dist/esm/ui/InlineCardOverlay/index.js +2 -1
- package/dist/esm/ui/LinkToolbarAppearance.js +5 -4
- package/dist/esm/utils.js +12 -0
- package/dist/types/common/hooks/useLinkUpgradeDiscoverability.d.ts +17 -0
- package/dist/types/common/local-storage.d.ts +3 -0
- package/dist/types/common/pulse/index.d.ts +7 -1
- package/dist/types/nodeviews/genericCard.d.ts +5 -2
- package/dist/types/nodeviews/inlineCard.d.ts +8 -2
- package/dist/types/nodeviews/inlineCardWithAwareness.d.ts +3 -2
- package/dist/types/pm-plugins/util/state.d.ts +4 -0
- package/dist/types/types.d.ts +11 -7
- package/dist/types/ui/LinkToolbarAppearance.d.ts +1 -1
- package/dist/types/utils.d.ts +5 -3
- package/dist/types-ts4.5/common/hooks/useLinkUpgradeDiscoverability.d.ts +17 -0
- package/dist/types-ts4.5/common/local-storage.d.ts +3 -0
- package/dist/types-ts4.5/common/pulse/index.d.ts +7 -1
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +5 -2
- package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +8 -2
- package/dist/types-ts4.5/nodeviews/inlineCardWithAwareness.d.ts +3 -2
- package/dist/types-ts4.5/pm-plugins/util/state.d.ts +4 -0
- package/dist/types-ts4.5/types.d.ts +11 -7
- package/dist/types-ts4.5/ui/LinkToolbarAppearance.d.ts +1 -1
- package/dist/types-ts4.5/utils.d.ts +5 -3
- package/package.json +4 -4
- package/report.api.md +9 -5
- package/tmp/api-report-tmp.d.ts +9 -5
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
|
-
import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
+
import type { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
10
10
|
import type { CardOptions } from '@atlaskit/editor-common/card';
|
|
11
11
|
import type { CardPluginActions } from '@atlaskit/editor-common/card';
|
|
12
|
-
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
12
|
+
import type { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
13
13
|
import type { CardReplacementInputMethod } from '@atlaskit/editor-common/card';
|
|
14
14
|
import type { DatasourceModalType } from '@atlaskit/editor-common/types';
|
|
15
15
|
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
@@ -22,8 +22,8 @@ import type { LinkPickerOptions } from '@atlaskit/editor-common/types';
|
|
|
22
22
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
23
23
|
import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
24
24
|
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
25
|
-
import { SmartLinkEvents } from '@atlaskit/smart-card';
|
|
26
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
25
|
+
import type { SmartLinkEvents } from '@atlaskit/smart-card';
|
|
26
|
+
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
27
27
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
28
28
|
|
|
29
29
|
// @public (undocumented)
|
|
@@ -76,6 +76,10 @@ type CardPluginState = {
|
|
|
76
76
|
datasourceModalType?: DatasourceModalType;
|
|
77
77
|
datasourceTableRef?: HTMLElement;
|
|
78
78
|
layout?: DatasourceTableLayout;
|
|
79
|
+
inlineCardAwarenessCandidatePosition?: number;
|
|
80
|
+
selectedInlineLinkPosition?: number;
|
|
81
|
+
allowEmbeds?: boolean;
|
|
82
|
+
allowBlockCards?: boolean;
|
|
79
83
|
};
|
|
80
84
|
|
|
81
85
|
// @public (undocumented)
|