@contentful/field-editor-rich-text 2.0.0-next.38 → 2.0.0-next.40

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.
@@ -2,10 +2,9 @@ export declare const styles: {
2
2
  icon: string;
3
3
  };
4
4
  interface EmbeddedEntityBlockToolbarIconProps {
5
- isButton?: boolean;
6
5
  isDisabled: boolean;
7
6
  nodeType: string;
8
7
  onClose: () => void;
9
8
  }
10
- export declare function EmbeddedEntityBlockToolbarIcon({ isButton, isDisabled, nodeType, onClose, }: EmbeddedEntityBlockToolbarIconProps): JSX.Element;
9
+ export declare function EmbeddedEntityBlockToolbarIcon({ isDisabled, nodeType, onClose, }: EmbeddedEntityBlockToolbarIconProps): JSX.Element;
11
10
  export {};
@@ -3,7 +3,6 @@ import { RichTextPlugin } from '../../types';
3
3
  interface ToolbarEmbeddedEntityInlineButtonProps {
4
4
  onClose: () => void;
5
5
  isDisabled: boolean;
6
- isButton?: boolean;
7
6
  }
8
7
  export declare function ToolbarEmbeddedEntityInlineButton(props: ToolbarEmbeddedEntityInlineButtonProps): JSX.Element;
9
8
  export declare function createEmbeddedEntityInlinePlugin(sdk: FieldExtensionSDK): RichTextPlugin;
@@ -10,6 +10,7 @@ interface HyperlinkModalProps {
10
10
  linkEntity?: Link;
11
11
  onClose: (value: unknown) => void;
12
12
  sdk: FieldExtensionSDK;
13
+ readonly: boolean;
13
14
  }
14
15
  export declare function HyperlinkModal(props: HyperlinkModalProps): JSX.Element;
15
16
  export declare function addOrEditLink(editor: RichTextEditor, sdk: FieldExtensionSDK, logAction: TrackingPluginActions['onToolbarAction'] | TrackingPluginActions['onShortcutAction'] | TrackingPluginActions['onViewportAction'], targetPath?: Path): Promise<void>;
@@ -1,5 +1,4 @@
1
1
  import { FieldExtensionSDK } from '@contentful/app-sdk';
2
- import { File } from '@contentful/field-editor-shared';
3
2
  interface FetchingWrappedAssetCardProps {
4
3
  assetId: string;
5
4
  isDisabled: boolean;
@@ -10,14 +9,5 @@ interface FetchingWrappedAssetCardProps {
10
9
  sdk: FieldExtensionSDK;
11
10
  onEntityFetchComplete?: VoidFunction;
12
11
  }
13
- export declare function renderAssetInfo(props: {
14
- entityFile: File;
15
- }): ("" | JSX.Element)[];
16
- export declare function renderActions(props: {
17
- onEdit?: () => void;
18
- onRemove?: () => void;
19
- isDisabled: boolean;
20
- entityFile?: File;
21
- }): (JSX.Element | null)[];
22
12
  export declare function FetchingWrappedAssetCard(props: FetchingWrappedAssetCardProps): JSX.Element;
23
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.38",
3
+ "version": "2.0.0-next.40",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },
@@ -31,7 +31,7 @@
31
31
  "@contentful/f36-components": "^4.0.33",
32
32
  "@contentful/f36-icons": "^4.1.1",
33
33
  "@contentful/f36-tokens": "^4.0.0",
34
- "@contentful/field-editor-reference": "^4.0.7",
34
+ "@contentful/field-editor-reference": "^4.3.3",
35
35
  "@contentful/field-editor-shared": "^1.0.3",
36
36
  "@contentful/rich-text-plain-text-renderer": "^15.11.1",
37
37
  "@contentful/rich-text-types": "^15.11.1",
@@ -1,7 +0,0 @@
1
- import { Entry, Asset } from '@contentful/field-editor-shared';
2
- interface EntityStatusIconProps {
3
- entity: Entry | Asset;
4
- entityType: 'Entry' | 'Asset';
5
- }
6
- export declare function EntityStatusIcon({ entity, entityType }: EntityStatusIconProps): JSX.Element;
7
- export {};