@prismicio/editor-fields 0.4.77-alpha.bump-types-internal.2 → 0.4.77
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 +46 -6
- package/dist/core/APIExplorer/components/Request/GetAllByEveryTagRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetAllByIDsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetAllBySomeTagsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetAllByTagRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetAllByTypeRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetAllByUIDsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByEveryTagRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByIDRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByIDsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetBySomeTagsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByTagRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetByUIDsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetFirstRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/GetTagsRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/MissingParameterError.d.ts +3 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/formatFilterSnippet.d.ts +2 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/index.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +2 -1
- package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +7 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +3 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +8 -2
- package/dist/core/APIExplorer/components/Request/types.d.ts +17 -3
- package/dist/core/APIExplorer/hooks/useRequestRepositoryTags.d.ts +1 -0
- package/dist/core/APIExplorer/utils.d.ts +4 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +18 -18
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +2 -2
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +2 -2
- package/dist/core/service/document.d.ts +50 -50
- package/dist/core/service/documentSearch.d.ts +15 -15
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/fields/ImageField/useImageField.d.ts +2 -2
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +2 -2
- package/dist/fields/KeyTextField.d.ts +1 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +5 -5
- package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +2 -2
- package/dist/index.cjs.js +47 -47
- package/dist/index.es.js +20493 -19842
- package/package.json +4 -4
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/getFilterSnippet.d.ts +0 -2
|
@@ -6,8 +6,6 @@ export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadA
|
|
|
6
6
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
7
7
|
url: string;
|
|
8
8
|
id: string;
|
|
9
|
-
size: number;
|
|
10
|
-
kind: string;
|
|
11
9
|
tags: {
|
|
12
10
|
id: string;
|
|
13
11
|
name: string;
|
|
@@ -16,6 +14,8 @@ export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadA
|
|
|
16
14
|
count: number;
|
|
17
15
|
uploader_id?: string | undefined;
|
|
18
16
|
}[];
|
|
17
|
+
size: number;
|
|
18
|
+
kind: string;
|
|
19
19
|
last_modified: number;
|
|
20
20
|
filename: string;
|
|
21
21
|
notes?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TextContent } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import type { Text } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
-
import type
|
|
3
|
+
import { type ReactNode } from "react";
|
|
4
4
|
interface Props {
|
|
5
5
|
content: TextContent | undefined;
|
|
6
6
|
field: Text;
|
|
@@ -16,8 +16,8 @@ export declare function useDocuments(params: {
|
|
|
16
16
|
} | {
|
|
17
17
|
status: "archived";
|
|
18
18
|
}) & {
|
|
19
|
-
version_id: string;
|
|
20
19
|
tags: string[];
|
|
20
|
+
version_id: string;
|
|
21
21
|
last_modified_date: Date;
|
|
22
22
|
custom_type_label: string;
|
|
23
23
|
author: {
|
|
@@ -40,8 +40,8 @@ export declare function useDocuments(params: {
|
|
|
40
40
|
} | {
|
|
41
41
|
status: "archived";
|
|
42
42
|
}) & {
|
|
43
|
-
version_id: string;
|
|
44
43
|
tags: string[];
|
|
44
|
+
version_id: string;
|
|
45
45
|
last_modified_date: Date;
|
|
46
46
|
summary?: string | undefined;
|
|
47
47
|
uid?: string | undefined;
|
|
@@ -53,9 +53,9 @@ export declare function useDocuments(params: {
|
|
|
53
53
|
} | undefined;
|
|
54
54
|
}))[];
|
|
55
55
|
language: {
|
|
56
|
-
isMaster?: boolean | undefined;
|
|
57
56
|
id: string;
|
|
58
57
|
label: string;
|
|
58
|
+
isMaster: boolean;
|
|
59
59
|
};
|
|
60
60
|
title: string;
|
|
61
61
|
id: string;
|
|
@@ -72,8 +72,8 @@ export declare function useDocuments(params: {
|
|
|
72
72
|
} | {
|
|
73
73
|
status: "archived";
|
|
74
74
|
}) & {
|
|
75
|
-
version_id: string;
|
|
76
75
|
tags: string[];
|
|
76
|
+
version_id: string;
|
|
77
77
|
last_modified_date: Date;
|
|
78
78
|
custom_type_label: string;
|
|
79
79
|
author: {
|
|
@@ -96,8 +96,8 @@ export declare function useDocuments(params: {
|
|
|
96
96
|
} | {
|
|
97
97
|
status: "archived";
|
|
98
98
|
}) & {
|
|
99
|
-
version_id: string;
|
|
100
99
|
tags: string[];
|
|
100
|
+
version_id: string;
|
|
101
101
|
last_modified_date: Date;
|
|
102
102
|
summary?: string | undefined;
|
|
103
103
|
uid?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type IconName } from "@prismicio/editor-ui";
|
|
2
3
|
import type { RichText } from "@prismicio/types-internal/lib/customtypes";
|
|
3
4
|
import type { ExtendedRichTextContent } from "./types";
|
|
4
5
|
interface Props<TContent extends ExtendedRichTextContent> {
|
|
@@ -14,6 +15,7 @@ interface Props<TContent extends ExtendedRichTextContent> {
|
|
|
14
15
|
* - When `false`, `undefined` will be returned.
|
|
15
16
|
* @default false */
|
|
16
17
|
shouldReturnEmptyContent?: boolean;
|
|
18
|
+
icon?: IconName;
|
|
17
19
|
}
|
|
18
20
|
export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element | null;
|
|
19
21
|
export {};
|
|
@@ -22,8 +22,6 @@ export declare function useImageView(props: useImageViewProps): {
|
|
|
22
22
|
uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
|
|
23
23
|
url: string;
|
|
24
24
|
id: string;
|
|
25
|
-
size: number;
|
|
26
|
-
kind: string;
|
|
27
25
|
tags: {
|
|
28
26
|
id: string;
|
|
29
27
|
name: string;
|
|
@@ -32,6 +30,8 @@ export declare function useImageView(props: useImageViewProps): {
|
|
|
32
30
|
count: number;
|
|
33
31
|
uploader_id?: string | undefined;
|
|
34
32
|
}[];
|
|
33
|
+
size: number;
|
|
34
|
+
kind: string;
|
|
35
35
|
last_modified: number;
|
|
36
36
|
filename: string;
|
|
37
37
|
notes?: string | undefined;
|