@prismicio/editor-fields 0.4.52-jp-onboarding-guide-triggers-highlight → 0.4.53

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 (59) hide show
  1. package/dist/GroupEditor.d.ts +2 -2
  2. package/dist/SliceSelection.d.ts +4 -4
  3. package/dist/core/MediaLibrary/components/MediaLibraryContext.d.ts +4 -4
  4. package/dist/core/MediaLibrary/components/MediaLibraryToast.d.ts +7 -7
  5. package/dist/core/MediaLibrary/components/MediaList.d.ts +2 -2
  6. package/dist/core/MediaLibrary/components/NewMediaLibraryFeaturesBanner.d.ts +2 -2
  7. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneContainer.d.ts +2 -2
  8. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +2 -2
  9. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +52 -52
  10. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  11. package/dist/core/MediaLibrary/hooks/uploadersData.d.ts +2 -2
  12. package/dist/core/MediaLibrary/hooks/useMediaLibraryAnalytics.d.ts +4 -4
  13. package/dist/core/MediaLibrary/hooks/useMediaLibraryCacheInvalidation.d.ts +2 -2
  14. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +6 -6
  15. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
  16. package/dist/core/SelectionManager/SelectionManagerTypes.d.ts +8 -8
  17. package/dist/core/UID.d.ts +6 -6
  18. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +2 -2
  19. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  20. package/dist/core/document.d.ts +2 -2
  21. package/dist/core/imageUtils.d.ts +4 -4
  22. package/dist/core/service/document.d.ts +12 -12
  23. package/dist/core/service/onboarding.d.ts +5 -5
  24. package/dist/core/service/repository.d.ts +1 -1
  25. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +2 -2
  26. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +2 -2
  27. package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +3 -3
  28. package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +10 -10
  29. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +2 -2
  30. package/dist/fields/ImageField/useImageField.d.ts +2 -2
  31. package/dist/fields/IntegrationField/IntegrationInput.d.ts +6 -6
  32. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
  33. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +5 -4
  34. package/dist/fields/LinkField/Documents/Filters.d.ts +6 -6
  35. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +2 -2
  36. package/dist/fields/LinkField/LinkField.d.ts +7 -7
  37. package/dist/fields/LinkField/LinkImageCard.d.ts +2 -2
  38. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +2 -2
  39. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +2 -2
  40. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +2 -2
  41. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +4 -4
  42. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +2 -2
  43. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +2 -2
  44. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +2 -2
  45. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +2 -2
  46. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  47. package/dist/fields/RichTextField/extensions/Label/Label.d.ts +4 -4
  48. package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +2 -2
  49. package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +11 -11
  50. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +2 -2
  51. package/dist/fields/RichTextField/models/RichTextConfig.d.ts +2 -2
  52. package/dist/index.cjs.js +34 -34
  53. package/dist/index.es.js +15068 -14940
  54. package/dist/slices/LegacySliceEditor.d.ts +2 -2
  55. package/dist/slices/utils.d.ts +1 -1
  56. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +2 -2
  57. package/dist/zones/NonRepeatableZoneEditor.d.ts +2 -2
  58. package/dist/zones/SliceZoneEditor.d.ts +2 -2
  59. package/package.json +4 -4
@@ -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
- height: number;
21
- width: number;
22
20
  description: string | null;
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
  id: string;
30
- height: number;
31
- width: number;
32
30
  description: string | null;
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
  id: string;
58
- height: number;
59
- width: number;
60
58
  description: string | null;
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
  id: string;
68
- height: number;
69
- width: number;
70
68
  description: string | null;
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
  id: string;
80
- height: number;
81
- width: number;
82
80
  description: string | null;
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
  id: string;
92
- height: number;
93
- width: number;
94
92
  description: string | null;
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
  id: string;
103
- height: number;
104
- width: number;
105
103
  description: string | null;
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
  id: string;
114
- height: number;
115
- width: number;
116
114
  description: string | null;
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
  id: string;
128
- height: number;
129
- width: number;
130
128
  description: string | null;
129
+ width: number;
130
+ height: number;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -26,8 +26,8 @@ export declare const searchDocumentStatus: {
26
26
  release: string[];
27
27
  published: string[];
28
28
  };
29
- type getDocumentUrlArgs = {
30
- documentId: string;
29
+ interface getDocumentUrlArgs {
30
+ documentId: string;
31
31
  status?: string;
32
32
  releaseId?: string;
33
33
  versionId?: string;
@@ -5,8 +5,8 @@ import type { MediaAsset, MediaAssetOrExternalImage } from "./MediaLibrary/hooks
5
5
  * A thumbnail is an abstraction of the prismic models for the image fields
6
6
  * We use it to flatten the main image and its thumbnails into a single array.
7
7
  */
8
- export type Thumbnail = {
9
- /** Thumbnail name or MAIN_THUMBNAIL_NAME */
8
+ export interface Thumbnail {
9
+ /** Thumbnail name or MAIN_THUMBNAIL_NAME */
10
10
  name: string;
11
11
  /** Width constraint for the current thumbnail */
12
12
  width?: number | null;
@@ -14,8 +14,8 @@ export type Thumbnail = {
14
14
  height?: number | null;
15
15
  }
16
16
  export declare const MAIN_THUMBNAIL_NAME = "__MAIN_THUMBNAIL__";
17
- export type CropperImage = {
18
- thumbnail: Thumbnail;
17
+ export interface CropperImage {
18
+ thumbnail: Thumbnail;
19
19
  contentView?: ImageContentView;
20
20
  labels: ImageLabel;
21
21
  }
@@ -579,7 +579,7 @@ export declare function createSearchParams<T extends string>(params: {
579
579
  name: T;
580
580
  values: (string | undefined)[];
581
581
  }[]): [string, string][];
582
- export declare function getDocumentByDocumentId(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
582
+ export declare function getDocumentById(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
583
583
  export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDef, unknown>, {
584
584
  [x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
585
585
  type: string;
@@ -854,7 +854,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
854
854
  label?: string | null | undefined;
855
855
  direction?: string | null | undefined;
856
856
  }) | ({
857
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
857
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
858
858
  content: {
859
859
  text: string;
860
860
  } & {
@@ -1201,7 +1201,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1201
1201
  label?: string | null | undefined;
1202
1202
  direction?: string | null | undefined;
1203
1203
  }) | ({
1204
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
1204
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1205
1205
  content: {
1206
1206
  text: string;
1207
1207
  } & {
@@ -1540,7 +1540,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1540
1540
  label?: string | null | undefined;
1541
1541
  direction?: string | null | undefined;
1542
1542
  }) | ({
1543
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
1543
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1544
1544
  content: {
1545
1545
  text: string;
1546
1546
  } & {
@@ -1881,7 +1881,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1881
1881
  label?: string | null | undefined;
1882
1882
  direction?: string | null | undefined;
1883
1883
  }) | ({
1884
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
1884
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1885
1885
  content: {
1886
1886
  text: string;
1887
1887
  } & {
@@ -2220,7 +2220,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2220
2220
  label?: string | null | undefined;
2221
2221
  direction?: string | null | undefined;
2222
2222
  }) | ({
2223
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
2223
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2224
2224
  content: {
2225
2225
  text: string;
2226
2226
  } & {
@@ -2557,7 +2557,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2557
2557
  label?: string | null | undefined;
2558
2558
  direction?: string | null | undefined;
2559
2559
  }) | ({
2560
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
2560
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2561
2561
  content: {
2562
2562
  text: string;
2563
2563
  } & {
@@ -2905,7 +2905,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
2905
2905
  label?: string | null | undefined;
2906
2906
  direction?: string | null | undefined;
2907
2907
  }) | ({
2908
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
2908
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2909
2909
  content: {
2910
2910
  text: string;
2911
2911
  } & {
@@ -3244,7 +3244,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3244
3244
  label?: string | null | undefined;
3245
3245
  direction?: string | null | undefined;
3246
3246
  }) | ({
3247
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
3247
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3248
3248
  content: {
3249
3249
  text: string;
3250
3250
  } & {
@@ -3585,7 +3585,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3585
3585
  label?: string | null | undefined;
3586
3586
  direction?: string | null | undefined;
3587
3587
  }) | ({
3588
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
3588
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3589
3589
  content: {
3590
3590
  text: string;
3591
3591
  } & {
@@ -3924,7 +3924,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
3924
3924
  label?: string | null | undefined;
3925
3925
  direction?: string | null | undefined;
3926
3926
  }) | ({
3927
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
3927
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3928
3928
  content: {
3929
3929
  text: string;
3930
3930
  } & {
@@ -4261,7 +4261,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4261
4261
  label?: string | null | undefined;
4262
4262
  direction?: string | null | undefined;
4263
4263
  }) | ({
4264
- type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
4264
+ type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
4265
4265
  content: {
4266
4266
  text: string;
4267
4267
  } & {
@@ -16,27 +16,27 @@ export declare const onboardingStateSchema: z.ZodObject<{
16
16
  isDismissed: z.ZodBoolean;
17
17
  context: z.ZodObject<{
18
18
  framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
19
- starterId: z.ZodNullable<z.ZodString>;
19
+ starterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
21
  framework: "next" | "nuxt" | "sveltekit" | "other";
22
- starterId: string | null;
22
+ starterId?: string | null | undefined;
23
23
  }, {
24
- starterId: string | null;
25
24
  framework?: unknown;
25
+ starterId?: string | null | undefined;
26
26
  }>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  completedSteps: string[];
29
29
  isDismissed: boolean;
30
30
  context: {
31
31
  framework: "next" | "nuxt" | "sveltekit" | "other";
32
- starterId: string | null;
32
+ starterId?: string | null | undefined;
33
33
  };
34
34
  }, {
35
35
  completedSteps: string[];
36
36
  isDismissed: boolean;
37
37
  context: {
38
- starterId: string | null;
39
38
  framework?: unknown;
39
+ starterId?: string | null | undefined;
40
40
  };
41
41
  }>;
42
42
  export type OnboardingState = z.infer<typeof onboardingStateSchema>;
@@ -93,7 +93,6 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
93
93
  }>;
94
94
  uploadedAvatar: z.ZodOptional<z.ZodString>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- framework: "next" | "nuxt" | "sveltekit" | "other";
97
96
  authors: {
98
97
  id: string;
99
98
  email: string;
@@ -109,6 +108,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
109
108
  quotas: {
110
109
  slicemachineEnabled: boolean;
111
110
  };
111
+ framework: "next" | "nuxt" | "sveltekit" | "other";
112
112
  storageVersion: {
113
113
  major: number;
114
114
  minor: number;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- type ImageAltControlProps = {
3
- readOnly?: boolean;
2
+ interface ImageAltControlProps {
3
+ readOnly?: boolean;
4
4
  altText: string;
5
5
  selected?: boolean;
6
6
  onValueChange: (value: string) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- type ImageFieldTitleProps = {
3
- fieldLabel: string;
2
+ interface ImageFieldTitleProps {
3
+ fieldLabel: string;
4
4
  imageLabel?: string[];
5
5
  }
6
6
  export declare function ImageFieldTitle(props: ImageFieldTitleProps): JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { CropperImage } from "../../../core/imageUtils";
3
3
  import { type CroppedImage } from "./croppedImage";
4
- type CropperDialogProps = {
5
- trigger: React.ReactNode;
4
+ interface CropperDialogProps {
5
+ trigger: React.ReactNode;
6
6
  /** Flattened list of all thumbnails in the field */
7
7
  initialImages: CropperImage[];
8
8
  /** Index of the initial image displayed in the cropper */
@@ -10,7 +10,7 @@ trigger: React.ReactNode;
10
10
  onClose: (result: {
11
11
  croppedImages: CroppedImages;
12
12
  option: number;
13
- }) => void;
13
+ }) => void;
14
14
  renderTooltip: (trigger: ReactNode) => ReactNode;
15
15
  }
16
16
  export declare function CropperDialog(props: CropperDialogProps): JSX.Element;
@@ -1,22 +1,22 @@
1
1
  import { type ImageContent, type ImageContentView } from "@prismicio/types-internal/lib/content";
2
2
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
3
  import { type ImageBlockData } from "../../../core/imageUtils";
4
- export type Point = {
5
- x: number;
4
+ export interface Point {
5
+ x: number;
6
6
  y: number;
7
7
  }
8
- export type Size = {
9
- width: number;
8
+ export interface Size {
9
+ width: number;
10
10
  height: number;
11
11
  }
12
- export type CropArea = {
13
- x: number;
12
+ export interface CropArea {
13
+ x: number;
14
14
  y: number;
15
15
  width: number;
16
16
  height: number;
17
17
  }
18
- export type CroppedImage = {
19
- zoom: number;
18
+ export interface CroppedImage {
19
+ zoom: number;
20
20
  /** x coordinate of the crop rect on the original image */
21
21
  x: number;
22
22
  /** y coordinate of the crop rect on the original image */
@@ -42,8 +42,8 @@ interface UpdateImageMainThumbnailArgs<T> {
42
42
  croppedImage: CroppedImage;
43
43
  }
44
44
  export declare function updateImageMainThumbnail<T extends ImageContent | ImageBlockData>(args: UpdateImageMainThumbnailArgs<T>): T;
45
- type BuildCropUrlArgs = {
46
- origin: ImageContent["origin"];
45
+ interface BuildCropUrlArgs {
46
+ origin: ImageContent["origin"];
47
47
  /** Image crop parameters */
48
48
  croppedImage: CroppedImage;
49
49
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { type MediaAssetType } from "@prismicio/editor-ui";
3
3
  import { type MediaAssetOrExternalImage } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
4
- type MediaDialogProps = {
5
- assetType: MediaAssetType;
4
+ interface MediaDialogProps {
5
+ assetType: MediaAssetType;
6
6
  open: boolean;
7
7
  onOpenChange: (open: boolean) => void;
8
8
  onMediaSelected: (media: MediaAssetOrExternalImage) => void;
@@ -2,8 +2,8 @@ import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
2
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { MediaAssetOrExternalImage } from "../../core/MediaLibrary/hooks/mediaLibraryData";
4
4
  import type { CroppedImages } from "./CropperDialog";
5
- type useImageFieldProps = {
6
- content: ImageContent | undefined;
5
+ interface useImageFieldProps {
6
+ content: ImageContent | undefined;
7
7
  field: Image;
8
8
  onContentChange: (content: ImageContent | undefined) => void;
9
9
  }
@@ -1,21 +1,21 @@
1
1
  /// <reference types="react" />
2
2
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
3
3
  import { type IntegrationItem } from "./integrationData";
4
- type IntegrationSharedInputProps = {
5
- id: string;
4
+ interface IntegrationSharedInputProps {
5
+ id: string;
6
6
  field: IntegrationFieldT;
7
7
  readOnly: boolean;
8
8
  onFocus: () => void;
9
9
  onClearItem: () => void;
10
10
  }
11
- type IntegrationInputProps = IntegrationSharedInputProps & {
12
- catalogId: string;
11
+ interface IntegrationInputProps extends IntegrationSharedInputProps {
12
+ catalogId: string;
13
13
  itemId?: string;
14
14
  item?: IntegrationItem;
15
15
  }
16
16
  export declare function IntegrationInput(props: IntegrationInputProps): JSX.Element;
17
- type IntegrationFooterProps = {
18
- catalogId: string;
17
+ interface IntegrationFooterProps {
18
+ catalogId: string;
19
19
  itemId?: string;
20
20
  item?: IntegrationItem;
21
21
  }
@@ -9,6 +9,7 @@ export interface DocumentCardProps {
9
9
  description?: string;
10
10
  tags: string[];
11
11
  tagsFilter?: Set<FilterOption>;
12
+ highlighted?: boolean;
12
13
  onSelect: () => void;
13
14
  }
14
15
  export declare function DocumentCard(props: DocumentCardProps): JSX.Element;
@@ -1,15 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { type FilterOption } from "@prismicio/editor-ui";
3
- type DocumentsModalProps = {
4
- open: boolean;
3
+ interface DocumentsModalProps {
4
+ open: boolean;
5
5
  onOpenChange: (open: boolean) => void;
6
6
  onSelectDocument: (documentID: string) => void;
7
7
  fixedCustomTypes?: Set<string>;
8
8
  fixedTags?: Set<string>;
9
+ linkedDocumentId?: string;
9
10
  }
10
11
  export declare function DocumentsModal(props: DocumentsModalProps): JSX.Element;
11
- type SortTagsByFilteredTagsArgs = {
12
- tagsFilter: Set<FilterOption>;
12
+ interface SortTagsByFilteredTagsArgs {
13
+ tagsFilter: Set<FilterOption>;
13
14
  tags: string[];
14
15
  }
15
16
  export declare function sortTagsByFilteredTags(args: SortTagsByFilteredTagsArgs): string[];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type FilterOption } from "@prismicio/editor-ui";
3
- type DocumentsListFiltersProps = {
4
- filteredLocales: Set<FilterOption>;
3
+ interface DocumentsListFiltersProps {
4
+ filteredLocales: Set<FilterOption>;
5
5
  setFilteredLocales: (newValue: Set<FilterOption>) => void;
6
6
  filteredTags: Set<FilterOption>;
7
7
  setFilteredTags: (newValue: Set<FilterOption>) => void;
@@ -11,8 +11,8 @@ filteredLocales: Set<FilterOption>;
11
11
  fixedTags?: Set<string>;
12
12
  }
13
13
  export declare function DocumentsListFilters(props: DocumentsListFiltersProps): JSX.Element;
14
- type FilterProps = {
15
- onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
14
+ interface FilterProps {
15
+ onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
16
16
  fixedSelectedValues?: Set<FilterOption>;
17
17
  selectedValues: Set<FilterOption>;
18
18
  label: string;
@@ -21,8 +21,8 @@ onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
21
21
  multiple?: boolean;
22
22
  }
23
23
  export declare function Filter(props: FilterProps): JSX.Element;
24
- type LocalesFilterProps = {
25
- selectedValues: Set<FilterOption>;
24
+ interface LocalesFilterProps {
25
+ selectedValues: Set<FilterOption>;
26
26
  onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
27
27
  }
28
28
  export declare function LocalesFilter(props: LocalesFilterProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type IconName } from "@prismicio/editor-ui";
3
- export type LinkDescriptionCardProps = {
4
- url?: URL | string;
3
+ export interface LinkDescriptionCardProps {
4
+ url?: URL | string;
5
5
  title?: string;
6
6
  subTitle?: string;
7
7
  description?: string;
@@ -2,26 +2,26 @@
2
2
  import { FilledLinkContent, type LinkContent } from "@prismicio/types-internal/lib/content";
3
3
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
4
4
  import { type FieldSelectType } from "./LinkFieldActions";
5
- type LinkFieldProps = {
6
- id?: string;
5
+ interface LinkFieldProps {
6
+ id?: string;
7
7
  field: Link;
8
8
  content: LinkContent | undefined;
9
9
  condensedButtons?: boolean;
10
10
  onContentChange: (content: LinkContent | undefined) => void;
11
11
  }
12
12
  export declare function LinkField(props: LinkFieldProps): JSX.Element;
13
- type GetFieldIconArgs = {
14
- selectType?: FieldSelectType;
13
+ interface GetFieldIconArgs {
14
+ selectType?: FieldSelectType;
15
15
  displayTextEnabled?: boolean;
16
16
  }
17
17
  export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "link" | "notes" | "public";
18
- type FilledLinkFieldProps = {
19
- id?: string;
18
+ interface FilledLinkFieldProps {
19
+ id?: string;
20
20
  condensedButtons?: boolean;
21
21
  field: Link & {
22
22
  config?: {
23
23
  allowText?: false;
24
- };
24
+ };
25
25
  };
26
26
  content: FilledLinkContent | undefined;
27
27
  onContentChange: (content: FilledLinkContent | undefined) => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export type LinkImageCardProps = {
3
- url: string;
2
+ export interface LinkImageCardProps {
3
+ url: string;
4
4
  title: string;
5
5
  subTitle: string;
6
6
  onEdit?: () => void;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
- type NodeItemsProps = {
4
- labels: string[];
3
+ interface NodeItemsProps {
4
+ labels: string[];
5
5
  editor: Editor;
6
6
  }
7
7
  export declare function LabelItems(props: NodeItemsProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- type DocumentDescriptionCardProps = {
3
- docId: string;
2
+ interface DocumentDescriptionCardProps {
3
+ docId: string;
4
4
  onEdit: () => void;
5
5
  onUnlink: () => void;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
3
  import type { Modal } from "../BubbleMenu";
4
- type LinkItemsProps = {
5
- editor: Editor;
4
+ interface LinkItemsProps {
5
+ editor: Editor;
6
6
  setModal: (modal: Modal) => void;
7
7
  }
8
8
  export declare function LinkItems(props: LinkItemsProps): JSX.Element;
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
- type LinkPopoverProps = {
4
- editor: Editor;
3
+ interface LinkPopoverProps {
4
+ editor: Editor;
5
5
  onEditWebLink: () => void;
6
6
  onEditDocumentLink: () => void;
7
7
  onEditMediaLink: () => void;
8
8
  }
9
9
  export declare function LinkPopover(props: LinkPopoverProps): JSX.Element | null;
10
- type DocumentLinkPopoverProps = {
11
- editor: Editor;
10
+ interface DocumentLinkPopoverProps {
11
+ editor: Editor;
12
12
  onEditDocumentLink: () => void;
13
13
  docId: string;
14
14
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
- type SetMediaLinkModalProps = {
4
- open: boolean;
3
+ interface SetMediaLinkModalProps {
4
+ open: boolean;
5
5
  setOpen: (open: boolean) => void;
6
6
  editor: Editor;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
- type SetWebLinkModalProps = {
4
- open: boolean;
3
+ interface SetWebLinkModalProps {
4
+ open: boolean;
5
5
  editor: Editor;
6
6
  setOpen: (open: boolean) => void;
7
7
  }
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
3
  import type { MenuItem } from "../models/MenuItems";
4
- type MarkItemsProps = {
5
- items: MenuItem[];
4
+ interface MarkItemsProps {
5
+ items: MenuItem[];
6
6
  editor: Editor;
7
7
  }
8
8
  export declare function MarkItems(props: MarkItemsProps): JSX.Element | null;