@prismicio/editor-fields 0.4.77-alpha.bump-types-internal.1 → 0.4.77-alpha.bump-types-internal.3

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.
Files changed (43) hide show
  1. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +48 -8
  2. package/dist/core/APIExplorer/components/Request/GetAllByEveryTagRequest.d.ts +1 -0
  3. package/dist/core/APIExplorer/components/Request/GetAllByIDsRequest.d.ts +1 -0
  4. package/dist/core/APIExplorer/components/Request/GetAllBySomeTagsRequest.d.ts +1 -0
  5. package/dist/core/APIExplorer/components/Request/GetAllByTagRequest.d.ts +1 -0
  6. package/dist/core/APIExplorer/components/Request/GetAllByTypeRequest.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/GetAllByUIDsRequest.d.ts +1 -0
  8. package/dist/core/APIExplorer/components/Request/GetByEveryTagRequest.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/Request/GetByIDRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/Request/GetByIDsRequest.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/GetBySomeTagsRequest.d.ts +1 -0
  12. package/dist/core/APIExplorer/components/Request/GetByTagRequest.d.ts +1 -0
  13. package/dist/core/APIExplorer/components/Request/GetByUIDsRequest.d.ts +1 -0
  14. package/dist/core/APIExplorer/components/Request/GetFirstRequest.d.ts +1 -0
  15. package/dist/core/APIExplorer/components/Request/GetTagsRequest.d.ts +1 -0
  16. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/formatFilterSnippet.d.ts +2 -0
  17. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/index.d.ts +1 -1
  18. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +2 -1
  19. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +7 -0
  20. package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +5 -0
  21. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +5 -0
  22. package/dist/core/APIExplorer/components/Request/components/index.d.ts +3 -0
  23. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +8 -2
  24. package/dist/core/APIExplorer/components/Request/types.d.ts +17 -3
  25. package/dist/core/APIExplorer/hooks/useRequestRepositoryTags.d.ts +1 -0
  26. package/dist/core/APIExplorer/utils.d.ts +4 -1
  27. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +36 -36
  28. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +4 -4
  29. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +4 -4
  30. package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
  31. package/dist/core/service/document.d.ts +100 -100
  32. package/dist/core/service/documentSearch.d.ts +25 -25
  33. package/dist/core/service/repository.d.ts +18 -18
  34. package/dist/fields/ImageField/useImageField.d.ts +4 -4
  35. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +4 -4
  36. package/dist/fields/KeyTextField.d.ts +1 -1
  37. package/dist/fields/LinkField/Documents/documentsData.d.ts +9 -9
  38. package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
  39. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +4 -4
  40. package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
  41. package/dist/index.cjs.js +47 -47
  42. package/dist/index.es.js +21080 -20488
  43. package/package.json +5 -5
@@ -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" | "getByType" | "getByUID" | "getSingle" | "getRepository", ...("get" | "getByType" | "getByUID" | "getSingle" | "getRepository")[]]>;
17
- options: z.ZodRecord<z.ZodEnum<["get" | "getByType" | "getByUID" | "getSingle" | "getRepository", ...("get" | "getByType" | "getByUID" | "getSingle" | "getRepository")[]]>, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
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,37 +66,53 @@ 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" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
46
- type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
47
69
  repository: {
48
70
  id: string;
49
71
  accessToken?: string | undefined;
50
72
  };
73
+ options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
74
+ tag?: string | undefined;
75
+ type?: string | undefined;
76
+ id?: string | undefined;
77
+ ids?: string[] | undefined;
78
+ uid?: string | undefined;
79
+ uids?: string[] | undefined;
80
+ tags?: string[] | undefined;
81
+ } | undefined>>;
82
+ type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
51
83
  filters: Filter[];
52
84
  pagination: {
53
85
  pageSize?: number | undefined;
54
86
  page?: number | undefined;
55
87
  };
56
88
  advanced: boolean;
57
- ref?: string | undefined;
58
89
  lang?: string | undefined;
90
+ ref?: string | undefined;
59
91
  }, {
60
- options: Partial<Record<"get" | "getByType" | "getByUID" | "getSingle" | "getRepository", Record<string, string> | undefined>>;
61
- type: "get" | "getByType" | "getByUID" | "getSingle" | "getRepository";
62
92
  repository: {
63
93
  id: string;
64
94
  accessToken?: string | undefined;
65
95
  };
96
+ options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
97
+ tag?: string | undefined;
98
+ type?: string | undefined;
99
+ id?: string | undefined;
100
+ ids?: string[] | undefined;
101
+ uid?: string | undefined;
102
+ uids?: string[] | undefined;
103
+ tags?: string[] | undefined;
104
+ } | undefined>>;
105
+ type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
66
106
  pagination: {
67
107
  pageSize?: number | undefined;
68
108
  page?: number | undefined;
69
109
  };
70
- ref?: string | undefined;
71
110
  filters?: {
72
111
  type: "at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore";
73
112
  args: (string | number | boolean | (string | number | boolean)[])[];
74
113
  }[] | undefined;
75
114
  lang?: string | undefined;
115
+ ref?: string | undefined;
76
116
  advanced?: boolean | undefined;
77
117
  }>;
78
118
  export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
@@ -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">;
@@ -0,0 +1,2 @@
1
+ import { type Filter } from "./types";
2
+ export declare function formatFilterSnippet(filter: Filter): string;
@@ -1,4 +1,4 @@
1
- export { getFilterSnippet } from "./getFilterSnippet";
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 declare function RequestFormInput(props: Pick<RequestFormInputBaseProps, "label"> & FormInputProps): JSX.Element;
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;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request tag settings.
4
+ */
5
+ export declare function RequestTagFieldset(): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request tags settings.
4
+ */
5
+ export declare function RequestTagsFieldset(): 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
- getSnippet: (options: Omit<RequestOptions, "filters"> & {
18
+ getSnippetArgs?: (options: Omit<RequestOptions, "filters"> & {
13
19
  filters?: symbol[];
14
- }) => string;
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 getByType: import("./createRequest").RequestConfig<"getByType">;
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" | "getByType" | "getByUID" | "getSingle" | "getRepository", ...("get" | "getByType" | "getByUID" | "getSingle" | "getRepository")[]];
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 declare function getSnippetArgs(...args: (PrimitiveWithArray | Record<string, PrimitiveWithArray>)[]): string;
3
+ export type SnippetArgs = (PrimitiveWithArray | Record<string, PrimitiveWithArray>)[];
4
+ export declare function formatSnippetArgs(args: SnippetArgs, options?: {
5
+ maxLength: number;
6
+ }): string;
4
7
  export {};
@@ -54,10 +54,7 @@ export declare const mediaAssetType: z.ZodObject<{
54
54
  count?: number | undefined;
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
- url: string;
58
57
  id: string;
59
- size: number;
60
- kind: string;
61
58
  tags: {
62
59
  id: string;
63
60
  name: string;
@@ -66,11 +63,14 @@ export declare const mediaAssetType: z.ZodObject<{
66
63
  count: number;
67
64
  uploader_id?: string | undefined;
68
65
  }[];
66
+ size: number;
67
+ url: string;
68
+ kind: string;
69
69
  last_modified: number;
70
70
  filename: string;
71
71
  notes?: string | undefined;
72
- height?: number | undefined;
73
72
  width?: number | undefined;
73
+ height?: number | undefined;
74
74
  credits?: string | undefined;
75
75
  alt?: string | undefined;
76
76
  uploader_id?: string | undefined;
@@ -82,10 +82,7 @@ export declare const mediaAssetType: z.ZodObject<{
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
- url: string;
86
85
  id: string;
87
- size: number;
88
- kind: string;
89
86
  tags: {
90
87
  id: string;
91
88
  name: string;
@@ -94,11 +91,14 @@ export declare const mediaAssetType: z.ZodObject<{
94
91
  uploader_id?: string | undefined;
95
92
  count?: number | undefined;
96
93
  }[];
94
+ size: number;
95
+ url: string;
96
+ kind: string;
97
97
  last_modified: number;
98
98
  filename: string;
99
99
  notes?: string | undefined;
100
- height?: number | undefined;
101
100
  width?: number | undefined;
101
+ height?: number | undefined;
102
102
  credits?: string | undefined;
103
103
  alt?: string | undefined;
104
104
  uploader_id?: string | undefined;
@@ -169,10 +169,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
169
169
  count?: number | undefined;
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
- url: string;
173
172
  id: string;
174
- size: number;
175
- kind: string;
176
173
  tags: {
177
174
  id: string;
178
175
  name: string;
@@ -181,11 +178,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
181
178
  count: number;
182
179
  uploader_id?: string | undefined;
183
180
  }[];
181
+ size: number;
182
+ url: string;
183
+ kind: string;
184
184
  last_modified: number;
185
185
  filename: string;
186
186
  notes?: string | undefined;
187
- height?: number | undefined;
188
187
  width?: number | undefined;
188
+ height?: number | undefined;
189
189
  credits?: string | undefined;
190
190
  alt?: string | undefined;
191
191
  uploader_id?: string | undefined;
@@ -197,10 +197,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
- url: string;
201
200
  id: string;
202
- size: number;
203
- kind: string;
204
201
  tags: {
205
202
  id: string;
206
203
  name: string;
@@ -209,11 +206,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
209
206
  uploader_id?: string | undefined;
210
207
  count?: number | undefined;
211
208
  }[];
209
+ size: number;
210
+ url: string;
211
+ kind: string;
212
212
  last_modified: number;
213
213
  filename: string;
214
214
  notes?: string | undefined;
215
- height?: number | undefined;
216
215
  width?: number | undefined;
216
+ height?: number | undefined;
217
217
  credits?: string | undefined;
218
218
  alt?: string | undefined;
219
219
  uploader_id?: string | undefined;
@@ -228,10 +228,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  total: number;
230
230
  items: {
231
- url: string;
232
231
  id: string;
233
- size: number;
234
- kind: string;
235
232
  tags: {
236
233
  id: string;
237
234
  name: string;
@@ -240,11 +237,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
240
237
  count: number;
241
238
  uploader_id?: string | undefined;
242
239
  }[];
240
+ size: number;
241
+ url: string;
242
+ kind: string;
243
243
  last_modified: number;
244
244
  filename: string;
245
245
  notes?: string | undefined;
246
- height?: number | undefined;
247
246
  width?: number | undefined;
247
+ height?: number | undefined;
248
248
  credits?: string | undefined;
249
249
  alt?: string | undefined;
250
250
  uploader_id?: string | undefined;
@@ -260,10 +260,7 @@ export declare const mediaSearchResponse: z.ZodObject<{
260
260
  }, {
261
261
  total: number;
262
262
  items: {
263
- url: string;
264
263
  id: string;
265
- size: number;
266
- kind: string;
267
264
  tags: {
268
265
  id: string;
269
266
  name: string;
@@ -272,11 +269,14 @@ export declare const mediaSearchResponse: z.ZodObject<{
272
269
  uploader_id?: string | undefined;
273
270
  count?: number | undefined;
274
271
  }[];
272
+ size: number;
273
+ url: string;
274
+ kind: string;
275
275
  last_modified: number;
276
276
  filename: string;
277
277
  notes?: string | undefined;
278
- height?: number | undefined;
279
278
  width?: number | undefined;
279
+ height?: number | undefined;
280
280
  credits?: string | undefined;
281
281
  alt?: string | undefined;
282
282
  uploader_id?: string | undefined;
@@ -308,10 +308,7 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
308
308
  page: number;
309
309
  total: number;
310
310
  items: {
311
- url: string;
312
311
  id: string;
313
- size: number;
314
- kind: string;
315
312
  tags: {
316
313
  id: string;
317
314
  name: string;
@@ -320,11 +317,14 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
320
317
  count: number;
321
318
  uploader_id?: string | undefined;
322
319
  }[];
320
+ size: number;
321
+ url: string;
322
+ kind: string;
323
323
  last_modified: number;
324
324
  filename: string;
325
325
  notes?: string | undefined;
326
- height?: number | undefined;
327
326
  width?: number | undefined;
327
+ height?: number | undefined;
328
328
  credits?: string | undefined;
329
329
  alt?: string | undefined;
330
330
  uploader_id?: string | undefined;
@@ -357,10 +357,7 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
357
357
  setFilters: (filters: Partial<MediaLibraryFilters>) => void;
358
358
  resetFilters: () => void;
359
359
  media: {
360
- url: string;
361
360
  id: string;
362
- size: number;
363
- kind: string;
364
361
  tags: {
365
362
  id: string;
366
363
  name: string;
@@ -369,11 +366,14 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
369
366
  count: number;
370
367
  uploader_id?: string | undefined;
371
368
  }[];
369
+ size: number;
370
+ url: string;
371
+ kind: string;
372
372
  last_modified: number;
373
373
  filename: string;
374
374
  notes?: string | undefined;
375
- height?: number | undefined;
376
375
  width?: number | undefined;
376
+ height?: number | undefined;
377
377
  credits?: string | undefined;
378
378
  alt?: string | undefined;
379
379
  uploader_id?: string | undefined;
@@ -407,10 +407,7 @@ declare function deleteMedia(mediaIds: string[]): void;
407
407
  declare function deleteSearchData(args: MediaLibraryFilters): void;
408
408
  type MediaPage = Awaited<ReturnType<typeof searchMedia>>;
409
409
  export declare function getMedia(allPages: MediaPage[], keyword: string, assetType: MediaAssetType, uploaderId: string | undefined, tags: string): {
410
- url: string;
411
410
  id: string;
412
- size: number;
413
- kind: string;
414
411
  tags: {
415
412
  id: string;
416
413
  name: string;
@@ -419,11 +416,14 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
419
416
  count: number;
420
417
  uploader_id?: string | undefined;
421
418
  }[];
419
+ size: number;
420
+ url: string;
421
+ kind: string;
422
422
  last_modified: number;
423
423
  filename: string;
424
424
  notes?: string | undefined;
425
- height?: number | undefined;
426
425
  width?: number | undefined;
426
+ height?: number | undefined;
427
427
  credits?: string | undefined;
428
428
  alt?: string | undefined;
429
429
  uploader_id?: string | undefined;
@@ -37,10 +37,7 @@ export declare function uploadMedia(params: {
37
37
  file: File;
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
- url: string;
41
40
  id: string;
42
- size: number;
43
- kind: string;
44
41
  tags: {
45
42
  id: string;
46
43
  name: string;
@@ -49,11 +46,14 @@ export declare function uploadMedia(params: {
49
46
  count: number;
50
47
  uploader_id?: string | undefined;
51
48
  }[];
49
+ size: number;
50
+ url: string;
51
+ kind: string;
52
52
  last_modified: number;
53
53
  filename: string;
54
54
  notes?: string | undefined;
55
- height?: number | undefined;
56
55
  width?: number | undefined;
56
+ height?: number | undefined;
57
57
  credits?: string | undefined;
58
58
  alt?: string | undefined;
59
59
  uploader_id?: string | undefined;
@@ -1,8 +1,5 @@
1
1
  export declare function useSelectedMedia(): {
2
- url: string;
3
2
  id: string;
4
- size: number;
5
- kind: string;
6
3
  tags: {
7
4
  id: string;
8
5
  name: string;
@@ -11,11 +8,14 @@ export declare function useSelectedMedia(): {
11
8
  count: number;
12
9
  uploader_id?: string | undefined;
13
10
  }[];
11
+ size: number;
12
+ url: string;
13
+ kind: string;
14
14
  last_modified: number;
15
15
  filename: string;
16
16
  notes?: string | undefined;
17
- height?: number | undefined;
18
17
  width?: number | undefined;
18
+ height?: number | undefined;
19
19
  credits?: string | undefined;
20
20
  alt?: string | undefined;
21
21
  uploader_id?: string | undefined;
@@ -17,9 +17,9 @@ declare const unsplashImage: import("zod").ZodObject<{
17
17
  description: import("zod").ZodNullable<import("zod").ZodString>;
18
18
  }, "strip", import("zod").ZodTypeAny, {
19
19
  description: string | null;
20
- height: number;
21
20
  id: string;
22
21
  width: number;
22
+ height: number;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
@@ -27,9 +27,9 @@ declare const unsplashImage: import("zod").ZodObject<{
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
29
  description: string | null;
30
- height: number;
31
30
  id: string;
32
31
  width: number;
32
+ height: number;
33
33
  urls: {
34
34
  small: string;
35
35
  full: string;
@@ -55,9 +55,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
55
55
  description: import("zod").ZodNullable<import("zod").ZodString>;
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
57
  description: string | null;
58
- height: number;
59
58
  id: string;
60
59
  width: number;
60
+ height: number;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
@@ -65,9 +65,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
67
  description: string | null;
68
- height: number;
69
68
  id: string;
70
69
  width: number;
70
+ height: number;
71
71
  urls: {
72
72
  small: string;
73
73
  full: string;
@@ -77,9 +77,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
77
77
  }, "strip", import("zod").ZodTypeAny, {
78
78
  results: {
79
79
  description: string | null;
80
- height: number;
81
80
  id: string;
82
81
  width: number;
82
+ height: number;
83
83
  urls: {
84
84
  small: string;
85
85
  full: string;
@@ -89,9 +89,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
89
89
  }, {
90
90
  results: {
91
91
  description: string | null;
92
- height: number;
93
92
  id: string;
94
93
  width: number;
94
+ height: number;
95
95
  urls: {
96
96
  small: string;
97
97
  full: string;
@@ -100,9 +100,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
100
100
  }[];
101
101
  }>, {
102
102
  description: string | null;
103
- height: number;
104
103
  id: string;
105
104
  width: number;
105
+ height: number;
106
106
  urls: {
107
107
  small: string;
108
108
  full: string;
@@ -111,9 +111,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
111
111
  }[], {
112
112
  results: {
113
113
  description: string | null;
114
- height: number;
115
114
  id: string;
116
115
  width: number;
116
+ height: number;
117
117
  urls: {
118
118
  small: string;
119
119
  full: string;
@@ -125,9 +125,9 @@ 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
127
  description: string | null;
128
- height: number;
129
128
  id: string;
130
129
  width: number;
130
+ height: number;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;