@contentful/field-editor-rich-text 2.0.0-next.42 → 2.0.0-next.45

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,2 +1,2 @@
1
- export declare const HAS_BEFORE_INPUT_SUPPORT: boolean;
2
1
  export declare const IS_SAFARI: boolean;
2
+ export declare const IS_CHROME: boolean;
@@ -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 {};
@@ -9,5 +9,5 @@ interface FetchingWrappedEntryCardProps {
9
9
  onEdit?: VoidFunction;
10
10
  onRemove?: VoidFunction;
11
11
  }
12
- export declare function FetchingWrappedEntryCard(props: FetchingWrappedEntryCardProps): JSX.Element;
12
+ export declare const FetchingWrappedEntryCard: (props: FetchingWrappedEntryCardProps) => JSX.Element;
13
13
  export {};
@@ -0,0 +1,8 @@
1
+ import { Entry, Asset } from '@contentful/app-sdk';
2
+ interface FetchedEntityProps {
3
+ type: 'Entry' | 'Asset';
4
+ id: string;
5
+ onEntityFetchComplete?: VoidFunction;
6
+ }
7
+ export declare function useFetchedEntity({ type, id, onEntityFetchComplete }: FetchedEntityProps): Entry<Record<string, any>> | Asset | "failed" | undefined;
8
+ export {};
@@ -17,4 +17,4 @@ export declare const setEditorContent: (editor: Editor, nodes?: Node[] | undefin
17
17
  * value
18
18
  */
19
19
  export declare const documentToEditorValue: (doc: any) => Descendant[];
20
- export declare const normalizeEditorValue: (value: Descendant[], options?: Pick<CreatePlateEditorOptions<RichTextEditor>, "plugins" | "disableCorePlugins" | "components" | "overrideByKey"> | undefined) => Descendant[] & any[];
20
+ export declare const normalizeEditorValue: (value: Descendant[], options?: Pick<CreatePlateEditorOptions<RichTextEditor>, "plugins" | "disableCorePlugins" | "components" | "overrideByKey" | "normalizeInitialValue"> | undefined) => Descendant[] & any[];
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Add items as needed. Don't forget to adjust hyperscript.d.ts
5
5
  */
6
- export declare const jsx: <S extends "editor" | "text" | "selection" | "element" | "focus" | "anchor" | "cursor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
6
+ export declare const jsx: <S extends "selection" | "text" | "element" | "editor" | "focus" | "anchor" | "cursor" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
7
7
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
8
8
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
9
9
  editor: (tagName: string, attributes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.42",
3
+ "version": "2.0.0-next.45",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },
@@ -27,14 +27,15 @@
27
27
  "prepublishOnly": "yarn build"
28
28
  },
29
29
  "dependencies": {
30
- "@contentful/contentful-slatejs-adapter": "^15.11.0",
30
+ "@contentful/app-sdk": "^4.6.0",
31
+ "@contentful/contentful-slatejs-adapter": "^15.13.1",
31
32
  "@contentful/f36-components": "^4.0.33",
32
33
  "@contentful/f36-icons": "^4.1.1",
33
34
  "@contentful/f36-tokens": "^4.0.0",
34
- "@contentful/field-editor-reference": "^4.0.7",
35
+ "@contentful/field-editor-reference": "^4.3.8",
35
36
  "@contentful/field-editor-shared": "^1.0.3",
36
- "@contentful/rich-text-plain-text-renderer": "^15.11.1",
37
- "@contentful/rich-text-types": "^15.11.1",
37
+ "@contentful/rich-text-plain-text-renderer": "^15.12.1",
38
+ "@contentful/rich-text-types": "^15.12.1",
38
39
  "@udecode/plate-basic-marks": "^10.4.0",
39
40
  "@udecode/plate-break": "^10.4.0",
40
41
  "@udecode/plate-core": "^10.4.0",
@@ -48,10 +49,10 @@
48
49
  "fast-deep-equal": "^3.1.3",
49
50
  "is-hotkey": "^0.2.0",
50
51
  "is-plain-obj": "^3.0.0",
51
- "slate": "^0.77.2",
52
+ "slate": "^0.80.0",
52
53
  "slate-history": "^0.66.0",
53
54
  "slate-hyperscript": "^0.67.0",
54
- "slate-react": "^0.77.3"
55
+ "slate-react": "^0.80.0"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "react": ">=16.14.0",
@@ -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 {};