@prismicio/editor-fields 0.4.63 → 0.4.64-alpha.fix-simulator-issue.1

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 (67) hide show
  1. package/dist/EditorConfig.d.ts +12 -3
  2. package/dist/core/APIExplorer/APIExplorer.d.ts +2 -0
  3. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +54 -0
  4. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +2 -0
  5. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +2 -0
  6. package/dist/core/APIExplorer/components/Request/GetByTypeRequest.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/GetByUIDRequest.d.ts +1 -0
  8. package/dist/core/APIExplorer/components/Request/GetRepositoryRequest.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/Request/GetRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/Request/GetSingleRequest.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +4 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +6 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +4 -0
  14. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +5 -0
  15. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +7 -0
  16. package/dist/core/APIExplorer/components/Request/components/index.d.ts +3 -0
  17. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +20 -0
  18. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
  19. package/dist/core/APIExplorer/components/Request/types.d.ts +14 -0
  20. package/dist/core/APIExplorer/index.d.ts +1 -0
  21. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +45 -45
  22. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +5 -5
  23. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
  24. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  25. package/dist/core/service/aiSeoMetadata.d.ts +2 -6
  26. package/dist/core/service/customType.d.ts +19 -19
  27. package/dist/core/service/document.d.ts +101 -101
  28. package/dist/core/service/documentSearch.d.ts +30 -30
  29. package/dist/core/service/onboarding.d.ts +3 -3
  30. package/dist/core/service/repository.d.ts +6 -6
  31. package/dist/core/service/role.d.ts +257 -36
  32. package/dist/core/service/user.d.ts +11 -7
  33. package/dist/fields/ImageField/useImageField.d.ts +5 -5
  34. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +5 -5
  35. package/dist/fields/LinkField/Documents/documentsData.d.ts +10 -10
  36. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  37. package/dist/fields/RichTextField/RichTextField.d.ts +7 -0
  38. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +5 -5
  39. package/dist/fields/RichTextField/extensions/Table/Table.d.ts +4 -4
  40. package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +10 -0
  41. package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +10 -0
  42. package/dist/fields/RichTextField/extensions/Table/TableCell/index.d.ts +2 -0
  43. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
  44. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
  45. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
  46. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
  47. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +21 -0
  48. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
  49. package/dist/fields/RichTextField/extensions/Table/TableCell/types.d.ts +17 -0
  50. package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +15 -0
  51. package/dist/fields/RichTextField/extensions/Table/TableEvent.d.ts +31 -0
  52. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +7 -0
  53. package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +9 -0
  54. package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +22 -0
  55. package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +11 -0
  56. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +7 -0
  57. package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +10 -0
  58. package/dist/fields/RichTextField/extensions/Table/menus/TriggerAnchor.d.ts +11 -0
  59. package/dist/fields/RichTextField/extensions/Table/menus/index.d.ts +2 -0
  60. package/dist/fields/RichTextField/extensions/Table/menus/utils.d.ts +23 -0
  61. package/dist/fields/RichTextField/extensions/Table/utils.d.ts +9 -0
  62. package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
  63. package/dist/index.cjs.js +138 -38
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.es.js +59273 -10833
  66. package/dist/slices/utils.d.ts +4 -4
  67. package/package.json +6 -6
@@ -52,9 +52,8 @@ type AISeoMetadata = {
52
52
  aiSeoMetadataEnabled?: never;
53
53
  } | {
54
54
  aiSeoMetadataEnabled: boolean;
55
- awsBedrockAccessKeyId: string;
56
- awsBedrockSecretAccessKey: string;
57
- awsBedrockRegion: string;
55
+ documentBaseUrl: URL;
56
+ repository: string;
58
57
  trackMetadataGeneration: (args: {
59
58
  documentId: string;
60
59
  locale: string;
@@ -96,6 +95,16 @@ interface OnAnalyticsEvent {
96
95
  customTypeFormat: "page" | "custom";
97
96
  }): void;
98
97
  (event: "Unsplash Image Searched" | "Unsplash Image Added"): void;
98
+ (event: "API Explorer Request", args: {
99
+ type: string;
100
+ repositoryID: string;
101
+ }): void;
102
+ (event: "API Explorer Request Error", args: {
103
+ type: string;
104
+ repositoryID: string;
105
+ error?: string;
106
+ url?: string;
107
+ }): void;
99
108
  }
100
109
  interface Analytics {
101
110
  onAnalyticsEvent?: OnAnalyticsEvent;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function APIExplorer(): JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { type PropsWithChildren } from "react";
2
+ import { type RequestRunReturnType, type RequestTypes } from "./Request";
3
+ export type RequestPagination = {
4
+ page?: number;
5
+ pageSize?: number;
6
+ };
7
+ type ResponseBase = {
8
+ duration: number;
9
+ };
10
+ type ResponsePending = {
11
+ status: "pending";
12
+ };
13
+ export type ResponseSuccess = ResponseBase & {
14
+ status: "success";
15
+ url?: string;
16
+ ref?: string;
17
+ data: RequestRunReturnType;
18
+ };
19
+ export type ResponseError = ResponseBase & {
20
+ status: "error";
21
+ url?: string;
22
+ error: Error;
23
+ };
24
+ export type UseAPIExplorerRequestProperties = {
25
+ repository: {
26
+ id: string;
27
+ accessToken: string;
28
+ };
29
+ type: RequestTypes;
30
+ options: {
31
+ [Type in RequestTypes]?: Record<string, string>;
32
+ };
33
+ pagination: RequestPagination;
34
+ response?: ResponsePending | ResponseSuccess | ResponseError;
35
+ };
36
+ type UseAPIExplorerRequestMethods = {
37
+ setRepositoryID: (id: string) => void;
38
+ setRepositoryAccessToken: (token: string) => void;
39
+ setRequestType: (type: RequestTypes) => void;
40
+ setRequestOptions: <Type extends RequestTypes>(type: Type, options: UseAPIExplorerRequestProperties["options"][Type]) => void;
41
+ setPagination: (pagination: {
42
+ page?: number;
43
+ pageSize?: number;
44
+ }) => void;
45
+ run: () => Promise<void>;
46
+ };
47
+ type APIExplorerContextType = {
48
+ request: UseAPIExplorerRequestProperties & UseAPIExplorerRequestMethods;
49
+ };
50
+ type APIExplorerProviderProps = PropsWithChildren;
51
+ export declare const APIExplorerProvider: (props: APIExplorerProviderProps) => JSX.Element;
52
+ export declare function useAPIExplorer(): APIExplorerContextType;
53
+ export declare function useAPIExplorerRequest(): UseAPIExplorerRequestProperties & UseAPIExplorerRequestMethods;
54
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function APIExplorerRequest(): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function APIExplorerResponse(): JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const GetByTypeRequest: import("./createRequest").RequestConfig<"getByType">;
@@ -0,0 +1 @@
1
+ export declare const GetByUIDRequest: import("./createRequest").RequestConfig<"getByUID">;
@@ -0,0 +1 @@
1
+ export declare const GetRepositoryRequest: import("./createRequest").RequestConfig<"getRepository">;
@@ -0,0 +1 @@
1
+ export declare const GetRequest: import("./createRequest").RequestConfig<"get">;
@@ -0,0 +1 @@
1
+ export declare const GetSingleRequest: import("./createRequest").RequestConfig<"getSingle">;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type FormInputProps } from "@prismicio/editor-ui";
3
+ import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
+ export declare function RequestFormInput(props: Pick<RequestFormInputBaseProps, "label"> & FormInputProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export type RequestFormInputBaseProps = {
3
+ label: string;
4
+ children: JSX.Element;
5
+ };
6
+ export declare function RequestFormInputBase(props: RequestFormInputBaseProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type SelectProps } from "@prismicio/editor-ui";
3
+ import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
+ export declare function RequestFormSelect(props: Pick<RequestFormInputBaseProps, "label"> & SelectProps<string>): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request pagination settings.
4
+ */
5
+ export declare function RequestPaginationFieldset(): JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request document type setting.
4
+ */
5
+ export declare function RequestTypeFieldset(props: {
6
+ nonRepeatableOnly?: boolean;
7
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { RequestFormInput } from "./RequestFormInput";
2
+ export { RequestPaginationFieldset } from "./RequestPaginationFieldset";
3
+ export { RequestTypeFieldset } from "./RequestTypeFieldset";
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { Client } from "@prismicio/client";
3
+ import { type FormInputProps } from "@prismicio/editor-ui";
4
+ import { type RequestPagination } from "../APIExplorerContext";
5
+ import type { RequestRunReturnType } from "./types";
6
+ export type RequestConfig<TType extends string> = {
7
+ type: TType;
8
+ Fieldset?: () => JSX.Element;
9
+ getSnippet: (options: Record<string, string | number> & RequestPagination) => string;
10
+ run: (client: Client, options: Record<string, string | number> & RequestPagination) => Promise<RequestRunReturnType>;
11
+ };
12
+ /**
13
+ * A factory for creating request handlers (fieldset, snippet, runner, erc.) for the API explorer.
14
+ *
15
+ * @param config - Request configuration.
16
+ * @returns A request handler to be referenced in `./types.ts` for the API explorer to use.
17
+ */
18
+ export declare function createRequest<TType extends string>(config: RequestConfig<TType>): RequestConfig<TType>;
19
+ export declare function RequestFormInput(props: FormInputProps): JSX.Element;
20
+ export declare function RequestPaginationFieldset(): JSX.Element;
@@ -0,0 +1 @@
1
+ export { type RequestRunReturnType, Requests, type RequestTypes } from "./types";
@@ -0,0 +1,14 @@
1
+ import type { PrismicDocument, Query, Repository } from "@prismicio/client";
2
+ /**
3
+ * All available requests for the API explorer.
4
+ */
5
+ export declare const Requests: {
6
+ readonly get: import("./createRequest").RequestConfig<"get">;
7
+ readonly getByType: import("./createRequest").RequestConfig<"getByType">;
8
+ readonly getByUID: import("./createRequest").RequestConfig<"getByUID">;
9
+ readonly getSingle: import("./createRequest").RequestConfig<"getSingle">;
10
+ readonly getRepository: import("./createRequest").RequestConfig<"getRepository">;
11
+ };
12
+ export type Requests = typeof Requests;
13
+ export type RequestTypes = keyof Requests;
14
+ export type RequestRunReturnType = PrismicDocument[] | PrismicDocument | Query | Repository;
@@ -0,0 +1 @@
1
+ export { APIExplorer } from "./APIExplorer";
@@ -54,6 +54,10 @@ export declare const mediaAssetType: z.ZodObject<{
54
54
  count?: number | undefined;
55
55
  }>, "many">;
56
56
  }, "strip", z.ZodTypeAny, {
57
+ kind: string;
58
+ id: string;
59
+ url: string;
60
+ size: number;
57
61
  tags: {
58
62
  name: string;
59
63
  id: string;
@@ -62,14 +66,10 @@ export declare const mediaAssetType: z.ZodObject<{
62
66
  count: number;
63
67
  uploader_id?: string | undefined;
64
68
  }[];
65
- id: string;
66
- url: string;
67
- kind: string;
68
- size: number;
69
69
  last_modified: number;
70
70
  filename: string;
71
- width?: number | undefined;
72
71
  height?: number | undefined;
72
+ width?: number | undefined;
73
73
  credits?: string | undefined;
74
74
  alt?: string | undefined;
75
75
  notes?: string | undefined;
@@ -82,6 +82,10 @@ export declare const mediaAssetType: z.ZodObject<{
82
82
  filename?: string | undefined;
83
83
  } | undefined;
84
84
  }, {
85
+ kind: string;
86
+ id: string;
87
+ url: string;
88
+ size: number;
85
89
  tags: {
86
90
  name: string;
87
91
  id: string;
@@ -90,14 +94,10 @@ export declare const mediaAssetType: z.ZodObject<{
90
94
  uploader_id?: string | undefined;
91
95
  count?: number | undefined;
92
96
  }[];
93
- id: string;
94
- url: string;
95
- kind: string;
96
- size: number;
97
97
  last_modified: number;
98
98
  filename: string;
99
- width?: number | undefined;
100
99
  height?: number | undefined;
100
+ width?: number | undefined;
101
101
  credits?: string | undefined;
102
102
  alt?: string | undefined;
103
103
  notes?: string | undefined;
@@ -169,6 +169,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
169
169
  count?: number | undefined;
170
170
  }>, "many">;
171
171
  }, "strip", z.ZodTypeAny, {
172
+ kind: string;
173
+ id: string;
174
+ url: string;
175
+ size: number;
172
176
  tags: {
173
177
  name: string;
174
178
  id: string;
@@ -177,14 +181,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
177
181
  count: number;
178
182
  uploader_id?: string | undefined;
179
183
  }[];
180
- id: string;
181
- url: string;
182
- kind: string;
183
- size: number;
184
184
  last_modified: number;
185
185
  filename: string;
186
- width?: number | undefined;
187
186
  height?: number | undefined;
187
+ width?: number | undefined;
188
188
  credits?: string | undefined;
189
189
  alt?: string | undefined;
190
190
  notes?: string | undefined;
@@ -197,6 +197,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
197
197
  filename?: string | undefined;
198
198
  } | undefined;
199
199
  }, {
200
+ kind: string;
201
+ id: string;
202
+ url: string;
203
+ size: number;
200
204
  tags: {
201
205
  name: string;
202
206
  id: string;
@@ -205,14 +209,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
205
209
  uploader_id?: string | undefined;
206
210
  count?: number | undefined;
207
211
  }[];
208
- id: string;
209
- url: string;
210
- kind: string;
211
- size: number;
212
212
  last_modified: number;
213
213
  filename: string;
214
- width?: number | undefined;
215
214
  height?: number | undefined;
215
+ width?: number | undefined;
216
216
  credits?: string | undefined;
217
217
  alt?: string | undefined;
218
218
  notes?: string | undefined;
@@ -228,6 +228,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  total: number;
230
230
  items: {
231
+ kind: string;
232
+ id: string;
233
+ url: string;
234
+ size: number;
231
235
  tags: {
232
236
  name: string;
233
237
  id: string;
@@ -236,14 +240,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
236
240
  count: number;
237
241
  uploader_id?: string | undefined;
238
242
  }[];
239
- id: string;
240
- url: string;
241
- kind: string;
242
- size: number;
243
243
  last_modified: number;
244
244
  filename: string;
245
- width?: number | undefined;
246
245
  height?: number | undefined;
246
+ width?: number | undefined;
247
247
  credits?: string | undefined;
248
248
  alt?: string | undefined;
249
249
  notes?: string | undefined;
@@ -260,6 +260,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
260
260
  }, {
261
261
  total: number;
262
262
  items: {
263
+ kind: string;
264
+ id: string;
265
+ url: string;
266
+ size: number;
263
267
  tags: {
264
268
  name: string;
265
269
  id: string;
@@ -268,14 +272,10 @@ export declare const mediaSearchResponse: z.ZodObject<{
268
272
  uploader_id?: string | undefined;
269
273
  count?: number | undefined;
270
274
  }[];
271
- id: string;
272
- url: string;
273
- kind: string;
274
- size: number;
275
275
  last_modified: number;
276
276
  filename: string;
277
- width?: number | undefined;
278
277
  height?: number | undefined;
278
+ width?: number | undefined;
279
279
  credits?: string | undefined;
280
280
  alt?: string | undefined;
281
281
  notes?: string | undefined;
@@ -308,6 +308,10 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
308
308
  page: number;
309
309
  total: number;
310
310
  items: {
311
+ kind: string;
312
+ id: string;
313
+ url: string;
314
+ size: number;
311
315
  tags: {
312
316
  name: string;
313
317
  id: string;
@@ -316,14 +320,10 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
316
320
  count: number;
317
321
  uploader_id?: string | undefined;
318
322
  }[];
319
- id: string;
320
- url: string;
321
- kind: string;
322
- size: number;
323
323
  last_modified: number;
324
324
  filename: string;
325
- width?: number | undefined;
326
325
  height?: number | undefined;
326
+ width?: number | undefined;
327
327
  credits?: string | undefined;
328
328
  alt?: string | undefined;
329
329
  notes?: string | undefined;
@@ -357,6 +357,10 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
357
357
  setFilters: (filters: Partial<MediaLibraryFilters>) => void;
358
358
  resetFilters: () => void;
359
359
  media: {
360
+ kind: string;
361
+ id: string;
362
+ url: string;
363
+ size: number;
360
364
  tags: {
361
365
  name: string;
362
366
  id: string;
@@ -365,14 +369,10 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
365
369
  count: number;
366
370
  uploader_id?: string | undefined;
367
371
  }[];
368
- id: string;
369
- url: string;
370
- kind: string;
371
- size: number;
372
372
  last_modified: number;
373
373
  filename: string;
374
- width?: number | undefined;
375
374
  height?: number | undefined;
375
+ width?: number | undefined;
376
376
  credits?: string | undefined;
377
377
  alt?: string | undefined;
378
378
  notes?: string | undefined;
@@ -407,6 +407,10 @@ 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
+ kind: string;
411
+ id: string;
412
+ url: string;
413
+ size: number;
410
414
  tags: {
411
415
  name: string;
412
416
  id: string;
@@ -415,14 +419,10 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
415
419
  count: number;
416
420
  uploader_id?: string | undefined;
417
421
  }[];
418
- id: string;
419
- url: string;
420
- kind: string;
421
- size: number;
422
422
  last_modified: number;
423
423
  filename: string;
424
- width?: number | undefined;
425
424
  height?: number | undefined;
425
+ width?: number | undefined;
426
426
  credits?: string | undefined;
427
427
  alt?: string | undefined;
428
428
  notes?: string | undefined;
@@ -37,6 +37,10 @@ export declare function uploadMedia(params: {
37
37
  file: File;
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
+ kind: string;
41
+ id: string;
42
+ url: string;
43
+ size: number;
40
44
  tags: {
41
45
  name: string;
42
46
  id: string;
@@ -45,14 +49,10 @@ export declare function uploadMedia(params: {
45
49
  count: number;
46
50
  uploader_id?: string | undefined;
47
51
  }[];
48
- id: string;
49
- url: string;
50
- kind: string;
51
- size: number;
52
52
  last_modified: number;
53
53
  filename: string;
54
- width?: number | undefined;
55
54
  height?: number | undefined;
55
+ width?: number | undefined;
56
56
  credits?: string | undefined;
57
57
  alt?: string | undefined;
58
58
  notes?: string | undefined;
@@ -1,4 +1,8 @@
1
1
  export declare function useSelectedMedia(): {
2
+ kind: string;
3
+ id: string;
4
+ url: string;
5
+ size: number;
2
6
  tags: {
3
7
  name: string;
4
8
  id: string;
@@ -7,14 +11,10 @@ export declare function useSelectedMedia(): {
7
11
  count: number;
8
12
  uploader_id?: string | undefined;
9
13
  }[];
10
- id: string;
11
- url: string;
12
- kind: string;
13
- size: number;
14
14
  last_modified: number;
15
15
  filename: string;
16
- width?: number | undefined;
17
16
  height?: number | undefined;
17
+ width?: number | undefined;
18
18
  credits?: string | undefined;
19
19
  alt?: string | undefined;
20
20
  notes?: 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
  id: string;
20
- description: string | null;
21
- width: number;
22
20
  height: number;
21
+ width: number;
22
+ description: string | null;
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
  id: string;
30
- description: string | null;
31
- width: number;
32
30
  height: number;
31
+ width: number;
32
+ description: string | null;
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
  id: string;
58
- description: string | null;
59
- width: number;
60
58
  height: number;
59
+ width: number;
60
+ description: string | null;
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
  id: string;
68
- description: string | null;
69
- width: number;
70
68
  height: number;
69
+ width: number;
70
+ description: string | null;
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
  id: string;
80
- description: string | null;
81
- width: number;
82
80
  height: number;
81
+ width: number;
82
+ description: string | null;
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
  id: string;
92
- description: string | null;
93
- width: number;
94
92
  height: number;
93
+ width: number;
94
+ description: string | null;
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
  id: string;
103
- description: string | null;
104
- width: number;
105
103
  height: number;
104
+ width: number;
105
+ description: string | null;
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
  id: string;
114
- description: string | null;
115
- width: number;
116
114
  height: number;
115
+ width: number;
116
+ description: string | null;
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
  id: string;
128
- description: string | null;
129
- width: number;
130
128
  height: number;
129
+ width: number;
130
+ description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -1,18 +1,14 @@
1
1
  import { Document } from "@prismicio/types-internal/lib/content";
2
2
  import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
3
+ import { type AuthStrategy } from "../../EditorConfig";
3
4
  export declare const metaTitleProperty = "meta_title";
4
5
  export declare const metaDescriptionProperty = "meta_description";
5
6
  export type MetadataType = typeof metaTitleProperty | typeof metaDescriptionProperty;
6
7
  interface GenerateSEOMetadataArgs {
7
8
  pageTextContent: string;
8
9
  contentLocale: string;
9
- config: {
10
- accessKeyId: string;
11
- secretAccessKey: string;
12
- region: string;
13
- };
14
10
  }
15
- export declare function generateSEOMetadata(args: GenerateSEOMetadataArgs): Promise<{
11
+ export declare function generateSEOMetadata(repository: string, baseURL: URL, authStrategy: AuthStrategy, body: GenerateSEOMetadataArgs): Promise<{
16
12
  meta_title: string;
17
13
  meta_description: string;
18
14
  }>;