@prismicio/editor-fields 0.4.69 → 0.4.71
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 +70 -29
- package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +8 -3
- package/dist/core/APIExplorer/components/Request/index.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/types.d.ts +1 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +44 -44
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +4 -4
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +4 -4
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/service/customType.d.ts +9 -9
- package/dist/core/service/document.d.ts +163 -163
- package/dist/core/service/documentSearch.d.ts +40 -40
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +10 -10
- package/dist/fields/ImageField/useImageField.d.ts +4 -4
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +4 -4
- package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/RichTextField/RichTextField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +23 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +34 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/tableCellFocusPlugin.d.ts +9 -0
- package/dist/index.cjs.js +133 -46
- package/dist/index.es.js +36889 -32346
- package/dist/slices/utils.d.ts +1 -1
- package/package.json +4 -4
- /package/dist/fields/RichTextField/extensions/Table/{plugins/tableHandles/tableHandlesPluginView.d.ts → TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles/tableHandlesPlugin.d.ts → TableHandles/TableHandlesPlugin.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/index.d.ts +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/utils.d.ts +0 -0
|
@@ -16,20 +16,20 @@ declare const unsplashImage: import("zod").ZodObject<{
|
|
|
16
16
|
alt_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
17
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
18
18
|
}, "strip", import("zod").ZodTypeAny, {
|
|
19
|
-
id: string;
|
|
20
|
-
description: string | null;
|
|
21
19
|
width: number;
|
|
22
20
|
height: number;
|
|
21
|
+
id: string;
|
|
22
|
+
description: string | null;
|
|
23
23
|
urls: {
|
|
24
24
|
small: string;
|
|
25
25
|
full: string;
|
|
26
26
|
};
|
|
27
27
|
alt_description?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
id: string;
|
|
30
|
-
description: string | null;
|
|
31
29
|
width: number;
|
|
32
30
|
height: number;
|
|
31
|
+
id: string;
|
|
32
|
+
description: string | null;
|
|
33
33
|
urls: {
|
|
34
34
|
small: string;
|
|
35
35
|
full: string;
|
|
@@ -54,20 +54,20 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
54
54
|
alt_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
55
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
56
56
|
}, "strip", import("zod").ZodTypeAny, {
|
|
57
|
-
id: string;
|
|
58
|
-
description: string | null;
|
|
59
57
|
width: number;
|
|
60
58
|
height: number;
|
|
59
|
+
id: string;
|
|
60
|
+
description: string | null;
|
|
61
61
|
urls: {
|
|
62
62
|
small: string;
|
|
63
63
|
full: string;
|
|
64
64
|
};
|
|
65
65
|
alt_description?: string | undefined;
|
|
66
66
|
}, {
|
|
67
|
-
id: string;
|
|
68
|
-
description: string | null;
|
|
69
67
|
width: number;
|
|
70
68
|
height: number;
|
|
69
|
+
id: string;
|
|
70
|
+
description: string | null;
|
|
71
71
|
urls: {
|
|
72
72
|
small: string;
|
|
73
73
|
full: string;
|
|
@@ -76,10 +76,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
76
76
|
}>, "many">;
|
|
77
77
|
}, "strip", import("zod").ZodTypeAny, {
|
|
78
78
|
results: {
|
|
79
|
-
id: string;
|
|
80
|
-
description: string | null;
|
|
81
79
|
width: number;
|
|
82
80
|
height: number;
|
|
81
|
+
id: string;
|
|
82
|
+
description: string | null;
|
|
83
83
|
urls: {
|
|
84
84
|
small: string;
|
|
85
85
|
full: string;
|
|
@@ -88,10 +88,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
88
88
|
}[];
|
|
89
89
|
}, {
|
|
90
90
|
results: {
|
|
91
|
-
id: string;
|
|
92
|
-
description: string | null;
|
|
93
91
|
width: number;
|
|
94
92
|
height: number;
|
|
93
|
+
id: string;
|
|
94
|
+
description: string | null;
|
|
95
95
|
urls: {
|
|
96
96
|
small: string;
|
|
97
97
|
full: string;
|
|
@@ -99,10 +99,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
99
99
|
alt_description?: string | undefined;
|
|
100
100
|
}[];
|
|
101
101
|
}>, {
|
|
102
|
-
id: string;
|
|
103
|
-
description: string | null;
|
|
104
102
|
width: number;
|
|
105
103
|
height: number;
|
|
104
|
+
id: string;
|
|
105
|
+
description: string | null;
|
|
106
106
|
urls: {
|
|
107
107
|
small: string;
|
|
108
108
|
full: string;
|
|
@@ -110,10 +110,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
110
110
|
alt_description?: string | undefined;
|
|
111
111
|
}[], {
|
|
112
112
|
results: {
|
|
113
|
-
id: string;
|
|
114
|
-
description: string | null;
|
|
115
113
|
width: number;
|
|
116
114
|
height: number;
|
|
115
|
+
id: string;
|
|
116
|
+
description: string | null;
|
|
117
117
|
urls: {
|
|
118
118
|
small: string;
|
|
119
119
|
full: string;
|
|
@@ -124,10 +124,10 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
|
|
|
124
124
|
export type UnplashSearchApi = TypeOf<typeof unsplashSearchApiType>;
|
|
125
125
|
export type UnsplashImage = TypeOf<typeof unsplashImage>;
|
|
126
126
|
export declare function useUnsplashSearch(baseUrl: URL, term: string): {
|
|
127
|
-
id: string;
|
|
128
|
-
description: string | null;
|
|
129
127
|
width: number;
|
|
130
128
|
height: number;
|
|
129
|
+
id: string;
|
|
130
|
+
description: string | null;
|
|
131
131
|
urls: {
|
|
132
132
|
small: string;
|
|
133
133
|
full: string;
|
|
@@ -7,14 +7,14 @@ declare const CustomType: z.ZodObject<{
|
|
|
7
7
|
repeatable: z.ZodBoolean;
|
|
8
8
|
status: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
label: string;
|
|
10
11
|
status: boolean;
|
|
11
12
|
id: string;
|
|
12
|
-
label: string;
|
|
13
13
|
repeatable: boolean;
|
|
14
14
|
}, {
|
|
15
|
+
label: string;
|
|
15
16
|
status: boolean;
|
|
16
17
|
id: string;
|
|
17
|
-
label: string;
|
|
18
18
|
repeatable: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
export type CustomType = z.TypeOf<typeof CustomType>;
|
|
@@ -24,50 +24,50 @@ interface CustomTypesOptionsArgs {
|
|
|
24
24
|
authStrategy: AuthStrategy;
|
|
25
25
|
}
|
|
26
26
|
export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
27
|
+
label: string;
|
|
27
28
|
status: boolean;
|
|
28
29
|
id: string;
|
|
29
|
-
label: string;
|
|
30
30
|
repeatable: boolean;
|
|
31
31
|
}[], Error, {
|
|
32
|
+
label: string;
|
|
32
33
|
status: boolean;
|
|
33
34
|
id: string;
|
|
34
|
-
label: string;
|
|
35
35
|
repeatable: boolean;
|
|
36
36
|
}[], string[]> & {
|
|
37
37
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
38
|
+
label: string;
|
|
38
39
|
status: boolean;
|
|
39
40
|
id: string;
|
|
40
|
-
label: string;
|
|
41
41
|
repeatable: boolean;
|
|
42
42
|
}[]> | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
45
|
+
label: string;
|
|
45
46
|
status: boolean;
|
|
46
47
|
id: string;
|
|
47
|
-
label: string;
|
|
48
48
|
repeatable: boolean;
|
|
49
49
|
}[]>;
|
|
50
50
|
};
|
|
51
51
|
export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
|
|
52
52
|
export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
|
|
53
|
+
label: string;
|
|
53
54
|
status: boolean;
|
|
54
55
|
id: string;
|
|
55
|
-
label: string;
|
|
56
56
|
repeatable: boolean;
|
|
57
57
|
}[]>;
|
|
58
58
|
export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
|
|
59
|
+
label: string;
|
|
59
60
|
status: boolean;
|
|
60
61
|
id: string;
|
|
61
|
-
label: string;
|
|
62
62
|
repeatable: boolean;
|
|
63
63
|
}[], Error>;
|
|
64
64
|
interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
|
|
65
65
|
id: string;
|
|
66
66
|
}
|
|
67
67
|
export declare function useCustomType(args: CustomTypeOptionsArgs): {
|
|
68
|
+
label: string;
|
|
68
69
|
status: boolean;
|
|
69
70
|
id: string;
|
|
70
|
-
label: string;
|
|
71
71
|
repeatable: boolean;
|
|
72
72
|
};
|
|
73
73
|
export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
|