@atlaskit/editor-plugin-card 2.13.4 → 2.14.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.
@@ -1,11 +1,13 @@
1
- import { Component } from 'react';
1
+ /// <reference types="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';
5
- import type { CardProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
+ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
7
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
9
  import type { CardPlatform } from '@atlaskit/smart-card';
10
+ import { type CardPlugin } from '../plugin';
9
11
  export interface HyperlinkToolbarAppearanceProps {
10
12
  intl: IntlShape;
11
13
  editorState: EditorState;
@@ -15,16 +17,9 @@ export interface HyperlinkToolbarAppearanceProps {
15
17
  platform?: CardPlatform;
16
18
  cardOptions?: CardOptions;
17
19
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
20
+ editorPluginApi: ExtractInjectionAPI<CardPlugin> | undefined;
18
21
  }
19
22
  export interface HyperlinkToolbarAppearanceState {
20
23
  supportedUrlsMap: Map<string, boolean>;
21
24
  }
22
- export declare class HyperlinkToolbarAppearance extends Component<HyperlinkToolbarAppearanceProps, HyperlinkToolbarAppearanceState> {
23
- state: HyperlinkToolbarAppearanceState;
24
- cardProvider?: CardProvider;
25
- private getProvider;
26
- private resolveUrl;
27
- componentDidMount: () => Promise<void>;
28
- UNSAFE_componentWillReceiveProps(nextProps: HyperlinkToolbarAppearanceProps): void;
29
- render(): JSX.Element | null;
30
- }
25
+ export declare const HyperlinkToolbarAppearance: (props: HyperlinkToolbarAppearanceProps) => JSX.Element;
@@ -1,11 +1,13 @@
1
- import { Component } from 'react';
1
+ /// <reference types="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';
5
- import type { CardProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
+ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
7
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
9
  import type { CardPlatform } from '@atlaskit/smart-card';
10
+ import { type CardPlugin } from '../plugin';
9
11
  export interface HyperlinkToolbarAppearanceProps {
10
12
  intl: IntlShape;
11
13
  editorState: EditorState;
@@ -15,16 +17,9 @@ export interface HyperlinkToolbarAppearanceProps {
15
17
  platform?: CardPlatform;
16
18
  cardOptions?: CardOptions;
17
19
  editorAnalyticsApi: EditorAnalyticsAPI | undefined;
20
+ editorPluginApi: ExtractInjectionAPI<CardPlugin> | undefined;
18
21
  }
19
22
  export interface HyperlinkToolbarAppearanceState {
20
23
  supportedUrlsMap: Map<string, boolean>;
21
24
  }
22
- export declare class HyperlinkToolbarAppearance extends Component<HyperlinkToolbarAppearanceProps, HyperlinkToolbarAppearanceState> {
23
- state: HyperlinkToolbarAppearanceState;
24
- cardProvider?: CardProvider;
25
- private getProvider;
26
- private resolveUrl;
27
- componentDidMount: () => Promise<void>;
28
- UNSAFE_componentWillReceiveProps(nextProps: HyperlinkToolbarAppearanceProps): void;
29
- render(): JSX.Element | null;
30
- }
25
+ export declare const HyperlinkToolbarAppearance: (props: HyperlinkToolbarAppearanceProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "2.13.4",
3
+ "version": "2.14.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/adf-schema": "^40.9.0",
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
37
  "@atlaskit/custom-steps": "^0.7.0",
38
- "@atlaskit/editor-common": "^88.2.0",
38
+ "@atlaskit/editor-common": "^88.4.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/menu": "2.12.2",
57
57
  "@atlaskit/platform-feature-flags": "^0.3.0",
58
58
  "@atlaskit/primitives": "^12.0.0",
59
- "@atlaskit/smart-card": "^27.18.0",
59
+ "@atlaskit/smart-card": "^27.19.0",
60
60
  "@atlaskit/theme": "^13.0.0",
61
61
  "@atlaskit/tokens": "^1.59.0",
62
62
  "@babel/runtime": "^7.0.0",