@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
|
@@ -13,8 +13,32 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
13
13
|
id: string;
|
|
14
14
|
accessToken?: string | undefined;
|
|
15
15
|
}>;
|
|
16
|
-
type: z.ZodEnum<["get" | "
|
|
17
|
-
options: z.ZodRecord<z.ZodEnum<["get" | "
|
|
16
|
+
type: z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>;
|
|
17
|
+
options: z.ZodRecord<z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>, z.ZodOptional<z.ZodObject<{
|
|
18
|
+
id: z.ZodOptional<z.ZodString>;
|
|
19
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
|
+
type: z.ZodOptional<z.ZodString>;
|
|
21
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
22
|
+
uids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
24
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
tag?: string | undefined;
|
|
27
|
+
type?: string | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
ids?: string[] | undefined;
|
|
30
|
+
uid?: string | undefined;
|
|
31
|
+
uids?: string[] | undefined;
|
|
32
|
+
tags?: string[] | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
tag?: string | undefined;
|
|
35
|
+
type?: string | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
ids?: string[] | undefined;
|
|
38
|
+
uid?: string | undefined;
|
|
39
|
+
uids?: string[] | undefined;
|
|
40
|
+
tags?: string[] | undefined;
|
|
41
|
+
}>>>;
|
|
18
42
|
pagination: z.ZodObject<{
|
|
19
43
|
page: z.ZodOptional<z.ZodNumber>;
|
|
20
44
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -42,8 +66,16 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
42
66
|
args: (string | number | boolean | (string | number | boolean)[])[];
|
|
43
67
|
}[] | undefined>;
|
|
44
68
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
options: Partial<Record<"get" | "
|
|
46
|
-
|
|
69
|
+
options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
|
|
70
|
+
tag?: string | undefined;
|
|
71
|
+
type?: string | undefined;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
ids?: string[] | undefined;
|
|
74
|
+
uid?: string | undefined;
|
|
75
|
+
uids?: string[] | undefined;
|
|
76
|
+
tags?: string[] | undefined;
|
|
77
|
+
} | undefined>>;
|
|
78
|
+
type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
|
|
47
79
|
repository: {
|
|
48
80
|
id: string;
|
|
49
81
|
accessToken?: string | undefined;
|
|
@@ -57,8 +89,16 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
|
|
|
57
89
|
ref?: string | undefined;
|
|
58
90
|
lang?: string | undefined;
|
|
59
91
|
}, {
|
|
60
|
-
options: Partial<Record<"get" | "
|
|
61
|
-
|
|
92
|
+
options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
|
|
93
|
+
tag?: string | undefined;
|
|
94
|
+
type?: string | undefined;
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
ids?: string[] | undefined;
|
|
97
|
+
uid?: string | undefined;
|
|
98
|
+
uids?: string[] | undefined;
|
|
99
|
+
tags?: string[] | undefined;
|
|
100
|
+
} | undefined>>;
|
|
101
|
+
type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
|
|
62
102
|
repository: {
|
|
63
103
|
id: string;
|
|
64
104
|
accessToken?: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllByEveryTagRequest: import("./createRequest").RequestConfig<"getAllByEveryTag">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllByIDsRequest: import("./createRequest").RequestConfig<"getAllByIDs">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllBySomeTagsRequest: import("./createRequest").RequestConfig<"getAllBySomeTags">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllByTagRequest: import("./createRequest").RequestConfig<"getAllByTag">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllByTypeRequest: import("./createRequest").RequestConfig<"getAllByType">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetAllByUIDsRequest: import("./createRequest").RequestConfig<"getAllByUIDs">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetByEveryTagRequest: import("./createRequest").RequestConfig<"getByEveryTag">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetByIDRequest: import("./createRequest").RequestConfig<"getByID">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetByIDsRequest: import("./createRequest").RequestConfig<"getByIDs">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetBySomeTagsRequest: import("./createRequest").RequestConfig<"getBySomeTags">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetByTagRequest: import("./createRequest").RequestConfig<"getByTag">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetByUIDsRequest: import("./createRequest").RequestConfig<"getByUIDs">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetFirstRequest: import("./createRequest").RequestConfig<"getFirst">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GetTagsRequest: import("./createRequest").RequestConfig<"getTags">;
|
package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { formatFilterSnippet } from "./formatFilterSnippet";
|
|
2
2
|
export { queryFiltersToFilters } from "./queryFiltersToFilters";
|
|
3
3
|
export { RequestFiltersFieldset } from "./RequestFiltersFieldset";
|
|
4
4
|
export { type Filter, FilterAnyArg, FilterTypes } from "./types";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FormInputProps } from "@prismicio/editor-ui";
|
|
3
3
|
import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
|
|
4
|
-
export
|
|
4
|
+
export type RequestFormInputProps = Pick<RequestFormInputBaseProps, "label"> & FormInputProps;
|
|
5
|
+
export declare function RequestFormInput(props: RequestFormInputProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type RequestFormInputProps } from "./RequestFormInput";
|
|
3
|
+
export type RequestFormMultiInputProps = Omit<RequestFormInputProps, "value" | "onValueChange"> & {
|
|
4
|
+
value: string[];
|
|
5
|
+
onValueChange: (values: string[]) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function RequestFormMultiInput(props: RequestFormMultiInputProps): JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { RequestFiltersFieldset } from "./RequestFiltersFieldset";
|
|
2
2
|
export { RequestFormInput } from "./RequestFormInput";
|
|
3
|
+
export { RequestFormMultiInput } from "./RequestFormMultiInput";
|
|
3
4
|
export { RequestLangFieldset } from "./RequestLangFieldset";
|
|
4
5
|
export { RequestPaginationFieldset } from "./RequestPaginationFieldset";
|
|
5
6
|
export { RequestRefFieldset } from "./RequestRefFieldset";
|
|
7
|
+
export { RequestTagFieldset } from "./RequestTagFieldset";
|
|
8
|
+
export { RequestTagsFieldset } from "./RequestTagsFieldset";
|
|
6
9
|
export { RequestTypeFieldset } from "./RequestTypeFieldset";
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { BuildQueryURLArgs, Client } from "@prismicio/client";
|
|
3
|
+
import type { SnippetArgs } from "../../utils";
|
|
3
4
|
import type { RequestRunReturnType } from "./types";
|
|
4
5
|
type RequestOptions = {
|
|
6
|
+
id?: string;
|
|
7
|
+
ids?: string[];
|
|
5
8
|
type?: string;
|
|
6
9
|
uid?: string;
|
|
10
|
+
uids?: string[];
|
|
11
|
+
tag?: string;
|
|
12
|
+
tags?: string[];
|
|
7
13
|
signal?: AbortSignal;
|
|
8
14
|
} & Partial<BuildQueryURLArgs>;
|
|
9
15
|
export type RequestConfig<TType extends string> = {
|
|
10
16
|
type: TType;
|
|
11
17
|
Fieldset?: () => JSX.Element;
|
|
12
|
-
|
|
18
|
+
getSnippetArgs?: (options: Omit<RequestOptions, "filters"> & {
|
|
13
19
|
filters?: symbol[];
|
|
14
|
-
}) =>
|
|
20
|
+
}) => SnippetArgs;
|
|
15
21
|
run: (client: Client, options: RequestOptions) => Promise<RequestRunReturnType>;
|
|
16
22
|
};
|
|
17
23
|
/**
|
|
@@ -4,12 +4,26 @@ import type { PrismicDocument, Query, Repository } from "@prismicio/client";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const Requests: {
|
|
6
6
|
readonly get: import("./createRequest").RequestConfig<"get">;
|
|
7
|
-
readonly
|
|
7
|
+
readonly getFirst: import("./createRequest").RequestConfig<"getFirst">;
|
|
8
|
+
readonly getByID: import("./createRequest").RequestConfig<"getByID">;
|
|
9
|
+
readonly getByIDs: import("./createRequest").RequestConfig<"getByIDs">;
|
|
10
|
+
readonly getAllByIDs: import("./createRequest").RequestConfig<"getAllByIDs">;
|
|
8
11
|
readonly getByUID: import("./createRequest").RequestConfig<"getByUID">;
|
|
12
|
+
readonly getByUIDs: import("./createRequest").RequestConfig<"getByUIDs">;
|
|
13
|
+
readonly getAllByUIDs: import("./createRequest").RequestConfig<"getAllByUIDs">;
|
|
9
14
|
readonly getSingle: import("./createRequest").RequestConfig<"getSingle">;
|
|
15
|
+
readonly getByType: import("./createRequest").RequestConfig<"getByType">;
|
|
16
|
+
readonly getAllByType: import("./createRequest").RequestConfig<"getAllByType">;
|
|
17
|
+
readonly getByTag: import("./createRequest").RequestConfig<"getByTag">;
|
|
18
|
+
readonly getAllByTag: import("./createRequest").RequestConfig<"getAllByTag">;
|
|
19
|
+
readonly getByEveryTag: import("./createRequest").RequestConfig<"getByEveryTag">;
|
|
20
|
+
readonly getAllByEveryTag: import("./createRequest").RequestConfig<"getAllByEveryTag">;
|
|
21
|
+
readonly getBySomeTags: import("./createRequest").RequestConfig<"getBySomeTags">;
|
|
22
|
+
readonly getAllBySomeTags: import("./createRequest").RequestConfig<"getAllBySomeTags">;
|
|
10
23
|
readonly getRepository: import("./createRequest").RequestConfig<"getRepository">;
|
|
24
|
+
readonly getTags: import("./createRequest").RequestConfig<"getTags">;
|
|
11
25
|
};
|
|
12
26
|
export type Requests = typeof Requests;
|
|
13
27
|
export type RequestType = keyof Requests;
|
|
14
|
-
export declare const RequestTypes: ["get" | "
|
|
15
|
-
export type RequestRunReturnType = PrismicDocument[] | PrismicDocument | Query | Repository;
|
|
28
|
+
export declare const RequestTypes: ["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]];
|
|
29
|
+
export type RequestRunReturnType = PrismicDocument[] | PrismicDocument | Query | Repository | string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRequestRepositoryTags(): string[] | undefined;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
type Primitive = number | string | boolean | symbol | undefined;
|
|
2
2
|
type PrimitiveWithArray = Primitive | Primitive[];
|
|
3
|
-
export
|
|
3
|
+
export type SnippetArgs = (PrimitiveWithArray | Record<string, PrimitiveWithArray>)[];
|
|
4
|
+
export declare function formatSnippetArgs(args: SnippetArgs, options?: {
|
|
5
|
+
maxLength: number;
|
|
6
|
+
}): string;
|
|
4
7
|
export {};
|
|
@@ -56,8 +56,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
url: string;
|
|
58
58
|
id: string;
|
|
59
|
-
size: number;
|
|
60
|
-
kind: string;
|
|
61
59
|
tags: {
|
|
62
60
|
id: string;
|
|
63
61
|
name: string;
|
|
@@ -66,6 +64,8 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
66
64
|
count: number;
|
|
67
65
|
uploader_id?: string | undefined;
|
|
68
66
|
}[];
|
|
67
|
+
size: number;
|
|
68
|
+
kind: string;
|
|
69
69
|
last_modified: number;
|
|
70
70
|
filename: string;
|
|
71
71
|
notes?: string | undefined;
|
|
@@ -84,8 +84,6 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
84
84
|
}, {
|
|
85
85
|
url: string;
|
|
86
86
|
id: string;
|
|
87
|
-
size: number;
|
|
88
|
-
kind: string;
|
|
89
87
|
tags: {
|
|
90
88
|
id: string;
|
|
91
89
|
name: string;
|
|
@@ -94,6 +92,8 @@ export declare const mediaAssetType: z.ZodObject<{
|
|
|
94
92
|
uploader_id?: string | undefined;
|
|
95
93
|
count?: number | undefined;
|
|
96
94
|
}[];
|
|
95
|
+
size: number;
|
|
96
|
+
kind: string;
|
|
97
97
|
last_modified: number;
|
|
98
98
|
filename: string;
|
|
99
99
|
notes?: string | undefined;
|
|
@@ -171,8 +171,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
url: string;
|
|
173
173
|
id: string;
|
|
174
|
-
size: number;
|
|
175
|
-
kind: string;
|
|
176
174
|
tags: {
|
|
177
175
|
id: string;
|
|
178
176
|
name: string;
|
|
@@ -181,6 +179,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
181
179
|
count: number;
|
|
182
180
|
uploader_id?: string | undefined;
|
|
183
181
|
}[];
|
|
182
|
+
size: number;
|
|
183
|
+
kind: string;
|
|
184
184
|
last_modified: number;
|
|
185
185
|
filename: string;
|
|
186
186
|
notes?: string | undefined;
|
|
@@ -199,8 +199,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
199
199
|
}, {
|
|
200
200
|
url: string;
|
|
201
201
|
id: string;
|
|
202
|
-
size: number;
|
|
203
|
-
kind: string;
|
|
204
202
|
tags: {
|
|
205
203
|
id: string;
|
|
206
204
|
name: string;
|
|
@@ -209,6 +207,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
209
207
|
uploader_id?: string | undefined;
|
|
210
208
|
count?: number | undefined;
|
|
211
209
|
}[];
|
|
210
|
+
size: number;
|
|
211
|
+
kind: string;
|
|
212
212
|
last_modified: number;
|
|
213
213
|
filename: string;
|
|
214
214
|
notes?: string | undefined;
|
|
@@ -230,8 +230,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
230
230
|
items: {
|
|
231
231
|
url: string;
|
|
232
232
|
id: string;
|
|
233
|
-
size: number;
|
|
234
|
-
kind: string;
|
|
235
233
|
tags: {
|
|
236
234
|
id: string;
|
|
237
235
|
name: string;
|
|
@@ -240,6 +238,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
240
238
|
count: number;
|
|
241
239
|
uploader_id?: string | undefined;
|
|
242
240
|
}[];
|
|
241
|
+
size: number;
|
|
242
|
+
kind: string;
|
|
243
243
|
last_modified: number;
|
|
244
244
|
filename: string;
|
|
245
245
|
notes?: string | undefined;
|
|
@@ -262,8 +262,6 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
262
262
|
items: {
|
|
263
263
|
url: string;
|
|
264
264
|
id: string;
|
|
265
|
-
size: number;
|
|
266
|
-
kind: string;
|
|
267
265
|
tags: {
|
|
268
266
|
id: string;
|
|
269
267
|
name: string;
|
|
@@ -272,6 +270,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
|
|
|
272
270
|
uploader_id?: string | undefined;
|
|
273
271
|
count?: number | undefined;
|
|
274
272
|
}[];
|
|
273
|
+
size: number;
|
|
274
|
+
kind: string;
|
|
275
275
|
last_modified: number;
|
|
276
276
|
filename: string;
|
|
277
277
|
notes?: string | undefined;
|
|
@@ -310,8 +310,6 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
310
310
|
items: {
|
|
311
311
|
url: string;
|
|
312
312
|
id: string;
|
|
313
|
-
size: number;
|
|
314
|
-
kind: string;
|
|
315
313
|
tags: {
|
|
316
314
|
id: string;
|
|
317
315
|
name: string;
|
|
@@ -320,6 +318,8 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
|
|
|
320
318
|
count: number;
|
|
321
319
|
uploader_id?: string | undefined;
|
|
322
320
|
}[];
|
|
321
|
+
size: number;
|
|
322
|
+
kind: string;
|
|
323
323
|
last_modified: number;
|
|
324
324
|
filename: string;
|
|
325
325
|
notes?: string | undefined;
|
|
@@ -359,8 +359,6 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
359
359
|
media: {
|
|
360
360
|
url: string;
|
|
361
361
|
id: string;
|
|
362
|
-
size: number;
|
|
363
|
-
kind: string;
|
|
364
362
|
tags: {
|
|
365
363
|
id: string;
|
|
366
364
|
name: string;
|
|
@@ -369,6 +367,8 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
|
|
|
369
367
|
count: number;
|
|
370
368
|
uploader_id?: string | undefined;
|
|
371
369
|
}[];
|
|
370
|
+
size: number;
|
|
371
|
+
kind: string;
|
|
372
372
|
last_modified: number;
|
|
373
373
|
filename: string;
|
|
374
374
|
notes?: string | undefined;
|
|
@@ -409,8 +409,6 @@ type MediaPage = Awaited<ReturnType<typeof searchMedia>>;
|
|
|
409
409
|
export declare function getMedia(allPages: MediaPage[], keyword: string, assetType: MediaAssetType, uploaderId: string | undefined, tags: string): {
|
|
410
410
|
url: string;
|
|
411
411
|
id: string;
|
|
412
|
-
size: number;
|
|
413
|
-
kind: string;
|
|
414
412
|
tags: {
|
|
415
413
|
id: string;
|
|
416
414
|
name: string;
|
|
@@ -419,6 +417,8 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
|
|
|
419
417
|
count: number;
|
|
420
418
|
uploader_id?: string | undefined;
|
|
421
419
|
}[];
|
|
420
|
+
size: number;
|
|
421
|
+
kind: string;
|
|
422
422
|
last_modified: number;
|
|
423
423
|
filename: string;
|
|
424
424
|
notes?: string | undefined;
|
|
@@ -39,8 +39,6 @@ export declare function uploadMedia(params: {
|
|
|
39
39
|
}): Promise<{
|
|
40
40
|
url: string;
|
|
41
41
|
id: string;
|
|
42
|
-
size: number;
|
|
43
|
-
kind: string;
|
|
44
42
|
tags: {
|
|
45
43
|
id: string;
|
|
46
44
|
name: string;
|
|
@@ -49,6 +47,8 @@ export declare function uploadMedia(params: {
|
|
|
49
47
|
count: number;
|
|
50
48
|
uploader_id?: string | undefined;
|
|
51
49
|
}[];
|
|
50
|
+
size: number;
|
|
51
|
+
kind: string;
|
|
52
52
|
last_modified: number;
|
|
53
53
|
filename: string;
|
|
54
54
|
notes?: string | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
2
|
url: string;
|
|
3
3
|
id: string;
|
|
4
|
-
size: number;
|
|
5
|
-
kind: string;
|
|
6
4
|
tags: {
|
|
7
5
|
id: string;
|
|
8
6
|
name: string;
|
|
@@ -11,6 +9,8 @@ export declare function useSelectedMedia(): {
|
|
|
11
9
|
count: number;
|
|
12
10
|
uploader_id?: string | undefined;
|
|
13
11
|
}[];
|
|
12
|
+
size: number;
|
|
13
|
+
kind: string;
|
|
14
14
|
last_modified: number;
|
|
15
15
|
filename: string;
|
|
16
16
|
notes?: string | undefined;
|