@prismicio/editor-fields 0.4.44 → 0.4.46

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,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { type MediaAssetOrExternalImage, type MediaAssetType } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
2
+ import { type MediaAssetType } from "@prismicio/editor-ui";
3
+ import { type MediaAssetOrExternalImage } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
3
4
  interface MediaDialogProps {
4
5
  assetType: MediaAssetType;
5
6
  open: boolean;
@@ -8,13 +8,13 @@ export declare function useDocuments(params: {
8
8
  documents: {
9
9
  id: string;
10
10
  title: string;
11
- custom_type_id: string;
12
- group_lang_id: string;
13
11
  language: {
14
12
  id: string;
15
13
  name: string;
16
14
  is_master?: boolean | undefined;
17
15
  };
16
+ custom_type_id: string;
17
+ group_lang_id: string;
18
18
  versions: (({
19
19
  status: "unclassified";
20
20
  } | {
@@ -25,15 +25,15 @@ export declare function useDocuments(params: {
25
25
  } | {
26
26
  status: "archived";
27
27
  }) & {
28
- version_id: string;
29
28
  tags: string[];
30
- custom_type_label: string;
31
- last_modified_date: Date;
32
29
  author: {
33
30
  first_name?: string | undefined;
34
31
  last_name?: string | undefined;
35
32
  email?: string | undefined;
36
33
  };
34
+ version_id: string;
35
+ custom_type_label: string;
36
+ last_modified_date: Date;
37
37
  preview_summary?: string | undefined;
38
38
  preview_image?: string | undefined;
39
39
  uid?: string | undefined;
@@ -51,28 +51,28 @@ export declare function useDocuments(params: {
51
51
  } | {
52
52
  status: "archived";
53
53
  }) & {
54
- version_id: string;
55
54
  tags: string[];
56
- custom_type_label: string;
57
- last_modified_date: Date;
58
55
  author: {
59
56
  first_name?: string | undefined;
60
57
  last_name?: string | undefined;
61
58
  email?: string | undefined;
62
59
  };
60
+ version_id: string;
61
+ custom_type_label: string;
62
+ last_modified_date: Date;
63
63
  preview_summary?: string | undefined;
64
64
  preview_image?: string | undefined;
65
65
  uid?: string | undefined;
66
66
  })[];
67
67
  id: string;
68
68
  title: string;
69
- custom_type_id: string;
70
- group_lang_id: string;
71
69
  language: {
72
70
  id: string;
73
71
  name: string;
74
72
  is_master?: boolean | undefined;
75
73
  };
74
+ custom_type_id: string;
75
+ group_lang_id: string;
76
76
  }[];
77
77
  };
78
78
  };
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
11
11
  }
12
12
  export declare function useLinkField(params: useLinkFieldParams): {
13
13
  contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | undefined;
14
- selectType: "media" | "web" | "document" | undefined;
14
+ selectType: "document" | "media" | "web" | undefined;
15
15
  fieldValue: string;
16
16
  onValueChange: (value: string) => void;
17
17
  onTypeChange: (newValue: FieldSelectTypes) => void;