@prismicio/editor-fields 0.4.75-alpha.support-new-cr-model.1 → 0.4.76-alpha.tree-view-component.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.
- package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +38 -14
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +10 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigPathInput.d.ts +9 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/getFilterSnippet.d.ts +2 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/index.d.ts +3 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/types.d.ts +34 -0
- package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +3 -1
- package/dist/core/APIExplorer/components/Request/index.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/types.d.ts +1 -1
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
- package/dist/core/APIExplorer/utils.d.ts +3 -2
- package/dist/core/DeferredBarChart.d.ts +3 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +93 -93
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +9 -9
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +9 -9
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/customType.d.ts +20 -20
- package/dist/core/service/document.d.ts +174 -174
- package/dist/core/service/documentSearch.d.ts +60 -60
- package/dist/core/service/repository.d.ts +20 -12
- package/dist/core/service/user.d.ts +5 -5
- package/dist/fields/ImageField/useImageField.d.ts +9 -9
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +9 -9
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +19 -19
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +9 -9
- package/dist/index.cjs.js +90 -90
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +21324 -20621
- package/package.json +4 -4
|
@@ -16,19 +16,19 @@ export declare function useDocuments(params: {
|
|
|
16
16
|
} | {
|
|
17
17
|
status: "archived";
|
|
18
18
|
}) & {
|
|
19
|
-
tags: string[];
|
|
20
19
|
version_id: string;
|
|
20
|
+
tags: string[];
|
|
21
21
|
last_modified_date: Date;
|
|
22
22
|
custom_type_label: string;
|
|
23
23
|
author: {
|
|
24
|
+
email?: string | undefined;
|
|
24
25
|
id?: string | undefined;
|
|
25
26
|
first_name?: string | undefined;
|
|
26
27
|
last_name?: string | undefined;
|
|
27
|
-
email?: string | undefined;
|
|
28
28
|
uploadedAvatar?: string | undefined;
|
|
29
29
|
};
|
|
30
|
-
preview_image?: string | undefined;
|
|
31
30
|
uid?: string | undefined;
|
|
31
|
+
preview_image?: string | undefined;
|
|
32
32
|
preview_summary?: string | undefined;
|
|
33
33
|
}) | (({
|
|
34
34
|
status: "unclassified";
|
|
@@ -40,27 +40,27 @@ export declare function useDocuments(params: {
|
|
|
40
40
|
} | {
|
|
41
41
|
status: "archived";
|
|
42
42
|
}) & {
|
|
43
|
-
tags: string[];
|
|
44
43
|
version_id: string;
|
|
44
|
+
tags: string[];
|
|
45
45
|
last_modified_date: Date;
|
|
46
|
-
custom_type_id?: string | undefined;
|
|
47
|
-
preview_image?: string | undefined;
|
|
48
|
-
uid?: string | undefined;
|
|
49
46
|
summary?: string | undefined;
|
|
47
|
+
uid?: string | undefined;
|
|
48
|
+
preview_image?: string | undefined;
|
|
49
|
+
custom_type_id?: string | undefined;
|
|
50
50
|
author_ids?: string[] | undefined;
|
|
51
51
|
highlights?: {
|
|
52
52
|
uid?: string | undefined;
|
|
53
53
|
} | undefined;
|
|
54
54
|
}))[];
|
|
55
|
-
id: string;
|
|
56
|
-
title: string;
|
|
57
|
-
custom_type_id: string;
|
|
58
|
-
group_lang_id: string;
|
|
59
55
|
language: {
|
|
60
56
|
isMaster?: boolean | undefined;
|
|
61
57
|
id: string;
|
|
62
58
|
label: string;
|
|
63
59
|
};
|
|
60
|
+
title: string;
|
|
61
|
+
id: string;
|
|
62
|
+
custom_type_id: string;
|
|
63
|
+
group_lang_id: string;
|
|
64
64
|
} | {
|
|
65
65
|
versions: ((({
|
|
66
66
|
status: "unclassified";
|
|
@@ -72,19 +72,19 @@ export declare function useDocuments(params: {
|
|
|
72
72
|
} | {
|
|
73
73
|
status: "archived";
|
|
74
74
|
}) & {
|
|
75
|
-
tags: string[];
|
|
76
75
|
version_id: string;
|
|
76
|
+
tags: string[];
|
|
77
77
|
last_modified_date: Date;
|
|
78
78
|
custom_type_label: string;
|
|
79
79
|
author: {
|
|
80
|
+
email?: string | undefined;
|
|
80
81
|
id?: string | undefined;
|
|
81
82
|
first_name?: string | undefined;
|
|
82
83
|
last_name?: string | undefined;
|
|
83
|
-
email?: string | undefined;
|
|
84
84
|
uploadedAvatar?: string | undefined;
|
|
85
85
|
};
|
|
86
|
-
preview_image?: string | undefined;
|
|
87
86
|
uid?: string | undefined;
|
|
87
|
+
preview_image?: string | undefined;
|
|
88
88
|
preview_summary?: string | undefined;
|
|
89
89
|
}) | (({
|
|
90
90
|
status: "unclassified";
|
|
@@ -96,20 +96,20 @@ export declare function useDocuments(params: {
|
|
|
96
96
|
} | {
|
|
97
97
|
status: "archived";
|
|
98
98
|
}) & {
|
|
99
|
-
tags: string[];
|
|
100
99
|
version_id: string;
|
|
100
|
+
tags: string[];
|
|
101
101
|
last_modified_date: Date;
|
|
102
|
-
custom_type_id?: string | undefined;
|
|
103
|
-
preview_image?: string | undefined;
|
|
104
|
-
uid?: string | undefined;
|
|
105
102
|
summary?: string | undefined;
|
|
103
|
+
uid?: string | undefined;
|
|
104
|
+
preview_image?: string | undefined;
|
|
105
|
+
custom_type_id?: string | undefined;
|
|
106
106
|
author_ids?: string[] | undefined;
|
|
107
107
|
highlights?: {
|
|
108
108
|
uid?: string | undefined;
|
|
109
109
|
} | undefined;
|
|
110
110
|
}))[];
|
|
111
|
-
id: string;
|
|
112
111
|
title: string;
|
|
112
|
+
id: string;
|
|
113
113
|
custom_type_id: string;
|
|
114
114
|
group_lang_id: string;
|
|
115
115
|
locale_id?: string | undefined;
|
|
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
|
|
|
16
16
|
selectType?: FieldSelectType;
|
|
17
17
|
displayTextEnabled?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function getFieldIcon(args: GetFieldIconArgs): "
|
|
19
|
+
export declare function getFieldIcon(args: GetFieldIconArgs): "description" | "image" | "link" | "notes" | "public";
|
|
20
20
|
interface FilledLinkFieldProps {
|
|
21
21
|
id?: string;
|
|
22
22
|
appearance?: LinkFieldAppearance;
|
|
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function useLinkField(params: useLinkFieldParams): {
|
|
13
13
|
contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
|
|
14
|
-
selectType: "
|
|
14
|
+
selectType: "any" | "document" | "web" | "media" | undefined;
|
|
15
15
|
fieldValue: string;
|
|
16
16
|
onDisplayTextChange: (displayText: string) => void;
|
|
17
17
|
onValueChange: (value: string, options?: {
|
|
@@ -20,32 +20,32 @@ export declare function useImageView(props: useImageViewProps): {
|
|
|
20
20
|
updateContent: (content?: ImageBlockData) => void;
|
|
21
21
|
onClear: () => void;
|
|
22
22
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
23
|
-
id: string;
|
|
24
|
-
kind: string;
|
|
25
23
|
url: string;
|
|
24
|
+
id: string;
|
|
26
25
|
size: number;
|
|
26
|
+
kind: string;
|
|
27
27
|
tags: {
|
|
28
28
|
id: string;
|
|
29
29
|
name: string;
|
|
30
|
-
last_modified: number;
|
|
31
30
|
created_at: number;
|
|
31
|
+
last_modified: number;
|
|
32
32
|
count: number;
|
|
33
33
|
uploader_id?: string | undefined;
|
|
34
34
|
}[];
|
|
35
|
-
filename: string;
|
|
36
35
|
last_modified: number;
|
|
36
|
+
filename: string;
|
|
37
|
+
notes?: string | undefined;
|
|
37
38
|
height?: number | undefined;
|
|
38
39
|
width?: number | undefined;
|
|
39
|
-
|
|
40
|
+
credits?: string | undefined;
|
|
40
41
|
alt?: string | undefined;
|
|
41
42
|
uploader_id?: string | undefined;
|
|
42
|
-
|
|
43
|
-
credits?: string | undefined;
|
|
43
|
+
extension?: string | undefined;
|
|
44
44
|
search_highlight?: {
|
|
45
|
-
filename?: string | undefined;
|
|
46
|
-
alt?: string | undefined;
|
|
47
45
|
notes?: string | undefined;
|
|
48
46
|
credits?: string | undefined;
|
|
47
|
+
alt?: string | undefined;
|
|
48
|
+
filename?: string | undefined;
|
|
49
49
|
} | undefined;
|
|
50
50
|
}, Error, File, unknown>;
|
|
51
51
|
isUploadingImage: boolean;
|