@prismicio/editor-fields 0.4.50 → 0.4.52-jp-onboarding-guide-triggers.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 (63) hide show
  1. package/dist/EditorConfig.d.ts +9 -9
  2. package/dist/GroupEditor.d.ts +2 -2
  3. package/dist/SliceSelection.d.ts +4 -4
  4. package/dist/core/MediaLibrary/components/MediaLibraryContext.d.ts +4 -4
  5. package/dist/core/MediaLibrary/components/MediaLibraryToast.d.ts +7 -7
  6. package/dist/core/MediaLibrary/components/MediaList.d.ts +2 -2
  7. package/dist/core/MediaLibrary/components/NewMediaLibraryFeaturesBanner.d.ts +2 -2
  8. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneContainer.d.ts +2 -2
  9. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +2 -2
  10. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +9 -9
  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 +1 -1
  16. package/dist/core/OnboardingGuide/OnboardingGuide.d.ts +6 -3
  17. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +3 -2
  18. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +3 -2
  19. package/dist/core/OnboardingGuide/components/OnboardingStepDialog.d.ts +3 -2
  20. package/dist/core/OnboardingGuide/content.d.ts +1 -1
  21. package/dist/core/SelectionManager/SelectionManagerTypes.d.ts +8 -8
  22. package/dist/core/UID.d.ts +6 -6
  23. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +2 -2
  24. package/dist/core/document.d.ts +2 -2
  25. package/dist/core/imageUtils.d.ts +4 -4
  26. package/dist/core/service/document.d.ts +11 -11
  27. package/dist/core/service/onboarding.d.ts +4 -2
  28. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +2 -2
  29. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +2 -2
  30. package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +3 -3
  31. package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +10 -10
  32. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +2 -2
  33. package/dist/fields/ImageField/useImageField.d.ts +2 -2
  34. package/dist/fields/IntegrationField/IntegrationInput.d.ts +6 -6
  35. package/dist/fields/IntegrationField/integrationData.d.ts +4 -4
  36. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +4 -4
  37. package/dist/fields/LinkField/Documents/Filters.d.ts +6 -6
  38. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +2 -2
  39. package/dist/fields/LinkField/LinkField.d.ts +7 -7
  40. package/dist/fields/LinkField/LinkImageCard.d.ts +2 -2
  41. package/dist/fields/LinkField/useLinkField.d.ts +2 -2
  42. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +2 -2
  43. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +2 -2
  44. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +2 -2
  45. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +4 -4
  46. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +2 -2
  47. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +2 -2
  48. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +2 -2
  49. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +2 -2
  50. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  51. package/dist/fields/RichTextField/extensions/Label/Label.d.ts +4 -4
  52. package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +2 -2
  53. package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +11 -11
  54. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +2 -2
  55. package/dist/fields/RichTextField/models/RichTextConfig.d.ts +2 -2
  56. package/dist/index.cjs.js +31 -32
  57. package/dist/index.es.js +2802 -2791
  58. package/dist/slices/LegacySliceEditor.d.ts +2 -2
  59. package/dist/slices/utils.d.ts +1 -1
  60. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +2 -2
  61. package/dist/zones/NonRepeatableZoneEditor.d.ts +2 -2
  62. package/dist/zones/SliceZoneEditor.d.ts +2 -2
  63. package/package.json +4 -4
@@ -47,14 +47,14 @@ type IntegrationFields = {
47
47
  integrationFieldsApiBaseUrl: URL;
48
48
  repository: string;
49
49
  };
50
- interface LayoutConfig {
51
- /**
50
+ type LayoutConfig = {
51
+ /**
52
52
  * Teaches fields about their containing scrolling element.
53
53
  */
54
54
  scrollOffsetTop?: number;
55
55
  }
56
- interface OnAnalyticsEvent {
57
- (event: "Media Library Search", args: {
56
+ type OnAnalyticsEvent = {
57
+ (event: "Media Library Search", args: {
58
58
  assetType: MediaAssetType;
59
59
  mode: "browse" | "select";
60
60
  searchQuery: string;
@@ -62,7 +62,7 @@ interface OnAnalyticsEvent {
62
62
  numberOfResults: string;
63
63
  timeToGetResults: string;
64
64
  tags: string;
65
- }): void;
65
+ }): void;
66
66
  (event: "Media Added To Page", args: {
67
67
  assetType: MediaAssetType;
68
68
  searchQuery: string;
@@ -75,11 +75,11 @@ interface OnAnalyticsEvent {
75
75
  }): void;
76
76
  (event: "Unsplash Image Searched" | "Unsplash Image Added"): void;
77
77
  }
78
- interface Analytics {
79
- onAnalyticsEvent?: OnAnalyticsEvent;
78
+ type Analytics = {
79
+ onAnalyticsEvent?: OnAnalyticsEvent;
80
80
  }
81
- interface ErrorTracking {
82
- /** Asks the editor to track this Error in its Error monitoring solution. */
81
+ type ErrorTracking = {
82
+ /** Asks the editor to track this Error in its Error monitoring solution. */
83
83
  onTrackError?: (error: Error) => void;
84
84
  }
85
85
  export type AuthStrategy = "cookie" | "token";
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import type { GroupContent } from "@prismicio/types-internal/lib/content";
3
3
  import type { Group } from "@prismicio/types-internal/lib/customtypes";
4
- interface GroupEditorProps {
5
- content: GroupContent | undefined;
4
+ type GroupEditorProps = {
5
+ content: GroupContent | undefined;
6
6
  group: Group;
7
7
  id: string;
8
8
  readOnly: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export interface SliceSelection {
3
- /**
2
+ export type SliceSelection = {
3
+ /**
4
4
  * The keys of the slices that are currently selected.
5
5
  */
6
6
  ids: string[];
@@ -12,8 +12,8 @@ export interface SliceSelection {
12
12
  */
13
13
  update: (args: SliceSelectionUpdateArgs) => void;
14
14
  }
15
- export interface SliceSelectionUpdateArgs {
16
- id: string;
15
+ export type SliceSelectionUpdateArgs = {
16
+ id: string;
17
17
  requestedFrom: "all" | SliceSelectionArea;
18
18
  shiftKey?: boolean;
19
19
  metaKey?: boolean;
@@ -2,8 +2,8 @@ import { type MediaAssetType } from "@prismicio/editor-ui";
2
2
  import { type PropsWithChildren, type RefObject } from "react";
3
3
  import { type MediaAsset, type MediaLibraryFilters } from "../hooks/mediaLibraryData";
4
4
  import { type UploadFile } from "../hooks/useMediaLibraryUpload";
5
- interface MediaLibraryContextValue {
6
- onScrollToBottom: () => void;
5
+ type MediaLibraryContextValue = {
6
+ onScrollToBottom: () => void;
7
7
  isFetchingMedia: boolean;
8
8
  media: MediaAsset[];
9
9
  mediaTotal: number;
@@ -42,8 +42,8 @@ interface MediaLibraryContextValue {
42
42
  setOpenMediaSection: (section: MediaSection | undefined) => void;
43
43
  }
44
44
  type MediaSection = "tags";
45
- interface MediaLibraryProviderProps extends PropsWithChildren {
46
- /**
45
+ type MediaLibraryProviderProps = PropsWithChildren & {
46
+ /**
47
47
  * The type of media to allow in the media library.
48
48
  * @default all
49
49
  */
@@ -1,18 +1,18 @@
1
1
  import { type IconName } from "@prismicio/editor-ui";
2
2
  import { type ReactNode } from "react";
3
- interface MediaLibraryToastContextValue {
4
- showToast: (config: ToastConfig) => void;
3
+ type MediaLibraryToastContextValue = {
4
+ showToast: (config: ToastConfig) => void;
5
5
  }
6
- interface MediaLibraryToastProviderProps {
7
- children: ReactNode;
6
+ type MediaLibraryToastProviderProps = {
7
+ children: ReactNode;
8
8
  }
9
- interface ToastConfig {
10
- title: string;
9
+ type ToastConfig = {
10
+ title: string;
11
11
  seconds?: number;
12
12
  action?: {
13
13
  title: string;
14
14
  onClick: () => void;
15
- };
15
+ };
16
16
  icon?: IconName;
17
17
  }
18
18
  export declare function MediaLibraryToastProvider(props: MediaLibraryToastProviderProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode, type RefObject } from "react";
2
2
  export declare function MediaList(): JSX.Element;
3
- interface MediaListScrollAreaProps {
4
- children: ReactNode;
3
+ type MediaListScrollAreaProps = {
4
+ children: ReactNode;
5
5
  scrollAreaRef?: RefObject<HTMLDivElement>;
6
6
  onScrollToBottom?: () => void;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- interface NewMediaLibraryFeaturesBannerProps {
3
- maxWidth?: number;
2
+ type NewMediaLibraryFeaturesBannerProps = {
3
+ maxWidth?: number;
4
4
  }
5
5
  export declare function NewMediaLibraryFeaturesBanner(props: NewMediaLibraryFeaturesBannerProps): JSX.Element | null;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
- interface SidepaneContainerProps {
3
- children: ReactNode;
2
+ type SidepaneContainerProps = {
3
+ children: ReactNode;
4
4
  hasSelectedMedia: boolean;
5
5
  }
6
6
  export declare function SidepaneContainer(props: SidepaneContainerProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { type MediaAsset } from "../../../../hooks/mediaLibraryData";
3
- interface SingleMediaMetadataTagsProps {
4
- selectedMedia: MediaAsset;
3
+ type SingleMediaMetadataTagsProps = {
4
+ selectedMedia: MediaAsset;
5
5
  }
6
6
  export declare function SingleMediaMetadataTags(props: SingleMediaMetadataTagsProps): JSX.Element;
7
7
  export {};
@@ -65,8 +65,8 @@ export declare const mediaAssetType: z.ZodObject<{
65
65
  id: string;
66
66
  url: string;
67
67
  size: number;
68
- last_modified: number;
69
68
  kind: string;
69
+ last_modified: number;
70
70
  filename: string;
71
71
  extension?: string | undefined;
72
72
  width?: number | undefined;
@@ -93,8 +93,8 @@ export declare const mediaAssetType: z.ZodObject<{
93
93
  id: string;
94
94
  url: string;
95
95
  size: number;
96
- last_modified: number;
97
96
  kind: string;
97
+ last_modified: number;
98
98
  filename: string;
99
99
  extension?: string | undefined;
100
100
  width?: number | undefined;
@@ -180,8 +180,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
180
180
  id: string;
181
181
  url: string;
182
182
  size: number;
183
- last_modified: number;
184
183
  kind: string;
184
+ last_modified: number;
185
185
  filename: string;
186
186
  extension?: string | undefined;
187
187
  width?: number | undefined;
@@ -208,8 +208,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
208
208
  id: string;
209
209
  url: string;
210
210
  size: number;
211
- last_modified: number;
212
211
  kind: string;
212
+ last_modified: number;
213
213
  filename: string;
214
214
  extension?: string | undefined;
215
215
  width?: number | undefined;
@@ -239,8 +239,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
239
239
  id: string;
240
240
  url: string;
241
241
  size: number;
242
- last_modified: number;
243
242
  kind: string;
243
+ last_modified: number;
244
244
  filename: string;
245
245
  extension?: string | undefined;
246
246
  width?: number | undefined;
@@ -271,8 +271,8 @@ export declare const mediaSearchResponse: z.ZodObject<{
271
271
  id: string;
272
272
  url: string;
273
273
  size: number;
274
- last_modified: number;
275
274
  kind: string;
275
+ last_modified: number;
276
276
  filename: string;
277
277
  extension?: string | undefined;
278
278
  width?: number | undefined;
@@ -319,8 +319,8 @@ export declare function searchMedia(baseUrl: URL | undefined, repository: string
319
319
  id: string;
320
320
  url: string;
321
321
  size: number;
322
- last_modified: number;
323
322
  kind: string;
323
+ last_modified: number;
324
324
  filename: string;
325
325
  extension?: string | undefined;
326
326
  width?: number | undefined;
@@ -368,8 +368,8 @@ export declare function useMediaSearch(args: UseMediaLibrarySearchArgs): {
368
368
  id: string;
369
369
  url: string;
370
370
  size: number;
371
- last_modified: number;
372
371
  kind: string;
372
+ last_modified: number;
373
373
  filename: string;
374
374
  extension?: string | undefined;
375
375
  width?: number | undefined;
@@ -418,8 +418,8 @@ export declare function getMedia(allPages: MediaPage[], keyword: string, assetTy
418
418
  id: string;
419
419
  url: string;
420
420
  size: number;
421
- last_modified: number;
422
421
  kind: string;
422
+ last_modified: number;
423
423
  filename: string;
424
424
  extension?: string | undefined;
425
425
  width?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- export interface UploaderWithMeta {
3
- id: string;
2
+ export type UploaderWithMeta = {
3
+ id: string;
4
4
  name: string;
5
5
  firstName?: string;
6
6
  lastName?: string;
@@ -1,13 +1,13 @@
1
1
  import { type MediaAssetType } from "@prismicio/editor-ui";
2
- interface AnalyticsMediaSearchArgs {
3
- assetType: MediaAssetType;
2
+ type AnalyticsMediaSearchArgs = {
3
+ assetType: MediaAssetType;
4
4
  keyword: string;
5
5
  tagIds: string[];
6
6
  mode: "select" | "browse";
7
7
  }
8
8
  export declare function useMediaLibraryAnalyticsMediaSearch(args: AnalyticsMediaSearchArgs): void;
9
- interface AnalyticsMediaAddedToPageArgs {
10
- assetType: MediaAssetType;
9
+ type AnalyticsMediaAddedToPageArgs = {
10
+ assetType: MediaAssetType;
11
11
  mediaDialogOpen: boolean;
12
12
  }
13
13
  export declare function useMediaLibraryAnalyticsMediaAddedToPage(args: AnalyticsMediaAddedToPageArgs): (mediaId: string) => void;
@@ -1,8 +1,8 @@
1
1
  import { type MediaAssetType } from "@prismicio/editor-ui";
2
2
  import type { EditorConfig } from "../../../EditorConfig";
3
3
  import { type SearchMediaArgs } from "./mediaLibraryData";
4
- interface UseMediaLibraryCacheInvalidationArgs {
5
- revalidate: () => void;
4
+ type UseMediaLibraryCacheInvalidationArgs = {
5
+ revalidate: () => void;
6
6
  config: EditorConfig;
7
7
  keyword: string;
8
8
  assetType: MediaAssetType;
@@ -1,18 +1,18 @@
1
1
  import { type MediaAsset } from "../hooks/mediaLibraryData";
2
2
  export type UploadFile = NewUploadFile | UploadedFile;
3
- interface NewUploadFile {
4
- id: string;
3
+ type NewUploadFile = {
4
+ id: string;
5
5
  file: File;
6
6
  status: "idle" | "uploading" | "error";
7
7
  }
8
- interface UploadedFile {
9
- id: string;
8
+ type UploadedFile = {
9
+ id: string;
10
10
  file: File;
11
11
  status: "success";
12
12
  response: MediaAsset;
13
13
  }
14
- interface UseMediaLibraryUploadArgs {
15
- /**
14
+ type UseMediaLibraryUploadArgs = {
15
+ /**
16
16
  * The upload is about to begin.
17
17
  */
18
18
  onBeforeUpload: (files: UploadFile[]) => void;
@@ -10,8 +10,8 @@ export declare function useSelectedMedia(): {
10
10
  id: string;
11
11
  url: string;
12
12
  size: number;
13
- last_modified: number;
14
13
  kind: string;
14
+ last_modified: number;
15
15
  filename: string;
16
16
  extension?: string | undefined;
17
17
  width?: number | undefined;
@@ -1,10 +1,13 @@
1
- /// <reference types="react" />
2
- import type { OnboardingState, OnboardingTracking } from "../service";
1
+ import { type ReactNode } from "react";
2
+ import type { OnboardingState, OnboardingStepId, OnboardingTracking } from "../service";
3
3
  interface OnboardingGuideProps {
4
4
  onboardingState: OnboardingState;
5
5
  tracking: OnboardingTracking;
6
- onToggleStep: (stepId: string) => Promise<string[]>;
6
+ onToggleStep: (stepId: OnboardingStepId) => Promise<string[]>;
7
7
  onToggleGuide: () => Promise<void>;
8
+ fallback?: ReactNode;
9
+ /** This allows consumers of the onboarding to do something else for certain steps other than opening the modal. */
10
+ stepContentOverride?: Partial<Record<OnboardingStepId, ReactNode>>;
8
11
  }
9
12
  export declare function OnboardingGuide(props: OnboardingGuideProps): JSX.Element | null;
10
13
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { OnboardingStep, OnboardingTracking } from "../../service";
1
+ import type { ReactNode } from "react";
2
+ import type { OnboardingStep, OnboardingStepId, OnboardingTracking } from "../../service";
3
3
  interface OnboardingCardProps {
4
4
  steps: OnboardingStep[];
5
5
  completedSteps: string[];
@@ -7,6 +7,7 @@ interface OnboardingCardProps {
7
7
  tracking: OnboardingTracking;
8
8
  onToggleStep: (step: OnboardingStep) => Promise<void>;
9
9
  onClose?: () => void;
10
+ stepContentOverride?: Partial<Record<OnboardingStepId, ReactNode>>;
10
11
  }
11
12
  export declare function OnboardingCard(props: OnboardingCardProps): JSX.Element;
12
13
  export {};
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
2
- import type { OnboardingStep, OnboardingTracking } from "../../service";
1
+ import { type ReactNode } from "react";
2
+ import type { OnboardingStep, OnboardingStepId, OnboardingTracking } from "../../service";
3
3
  interface OnboardingProgressStepperProps {
4
4
  steps: OnboardingStep[];
5
5
  completedSteps: string[];
6
6
  onToggleStep: (step: OnboardingStep) => Promise<void>;
7
7
  tracking: OnboardingTracking;
8
+ stepContentOverride?: Partial<Record<OnboardingStepId, ReactNode>>;
8
9
  }
9
10
  export declare function OnboardingProgressStepper(props: OnboardingProgressStepperProps): JSX.Element | null;
10
11
  export {};
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { OnboardingStep } from "../../service";
1
+ import { type ReactNode } from "react";
2
+ import type { OnboardingStep, OnboardingStepId } from "../../service";
3
3
  interface OnboardingStepDialogProps {
4
4
  isOpen: boolean;
5
5
  step: OnboardingStep;
@@ -7,6 +7,7 @@ interface OnboardingStepDialogProps {
7
7
  isStepComplete: boolean;
8
8
  onActionClick: () => Promise<void>;
9
9
  onClose: () => void;
10
+ stepContentOverride?: Partial<Record<OnboardingStepId, ReactNode>>;
10
11
  }
11
12
  export declare function OnboardingStepDialog(props: OnboardingStepDialogProps): JSX.Element;
12
13
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { OnboardingFramework, OnboardingStep } from "../service/onboarding";
2
2
  export declare function getOnboardingContent(framework?: OnboardingFramework, starter?: string | null): {
3
3
  steps: OnboardingStep[];
4
- defaultCompletedStepIds: string[];
4
+ defaultCompletedStepIds: ("createPrismicProject" | "chooseLocale" | "createProject" | "setupSliceMachine" | "createPageType" | "codePage" | "createSlice" | "reviewAndPush" | "createContent" | "renderPage")[];
5
5
  tutorialLink: string | undefined;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import type { PropsWithChildren } from "react";
2
2
  export type ID = string;
3
- export interface ToggleSelectionArgs {
4
- /**
3
+ export type ToggleSelectionArgs = {
4
+ /**
5
5
  * The ID of the item to toggle selection for.
6
6
  */
7
7
  id: ID;
@@ -66,14 +66,14 @@ export type SelectionManager = {
66
66
  isSelectAllEnabled: boolean;
67
67
  state: SelectionManagerState;
68
68
  };
69
- interface SelectionState {
70
- selectedIds: ID[];
69
+ type SelectionState = {
70
+ selectedIds: ID[];
71
71
  excludedIds: ID[];
72
72
  isAllSelected: boolean;
73
73
  selectedCount: number;
74
74
  }
75
- export interface SelectionManagerState {
76
- /**
75
+ export type SelectionManagerState = {
76
+ /**
77
77
  * Set of selected IDs.
78
78
  */
79
79
  selectedIds: Set<ID>;
@@ -86,8 +86,8 @@ export interface SelectionManagerState {
86
86
  */
87
87
  isAllSelected: boolean;
88
88
  }
89
- export interface SelectionManagerProviderProps extends PropsWithChildren {
90
- initialState?: Partial<SelectionManagerState>;
89
+ export type SelectionManagerProviderProps = PropsWithChildren & {
90
+ initialState?: Partial<SelectionManagerState>;
91
91
  initialTotalItemCount?: number;
92
92
  isSelectAllEnabled?: boolean;
93
93
  }
@@ -6,19 +6,19 @@ import type { DocumentMeta } from "./service";
6
6
  * Allows the UID Field to directly communicate its important events
7
7
  * with an optional, external party without polluting all the parents in between.
8
8
  */
9
- interface UIDContextValue {
10
- editedUID: MutableRefObject<boolean>;
9
+ type UIDContextValue = {
10
+ editedUID: MutableRefObject<boolean>;
11
11
  onEditUID: () => void;
12
12
  }
13
13
  export declare const UIDContext: import("react").Context<UIDContextValue>;
14
14
  export declare function hasUIDField(customType: CustomType): boolean;
15
- interface isMissingUIDArgs {
16
- content: DocumentT;
15
+ type isMissingUIDArgs = {
16
+ content: DocumentT;
17
17
  customType: CustomType;
18
18
  }
19
19
  export declare function isMissingUID(args: isMissingUIDArgs): boolean;
20
- export interface GetConflictingUidDocumentsArgs {
21
- customTypeId: string;
20
+ export type GetConflictingUidDocumentsArgs = {
21
+ customTypeId: string;
22
22
  languageId: string;
23
23
  documentId: string | undefined;
24
24
  /** The list of documents to check for UID conflicts */
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { ExternalImage } from "../MediaLibrary/hooks/mediaLibraryData";
3
- interface UnsplashLibraryProps {
4
- onSelectedChange?: (media: ExternalImage[]) => void;
3
+ type UnsplashLibraryProps = {
4
+ onSelectedChange?: (media: ExternalImage[]) => void;
5
5
  }
6
6
  export declare function UnsplashLibrary(props: UnsplashLibraryProps): JSX.Element;
7
7
  export {};
@@ -26,8 +26,8 @@ export declare const searchDocumentStatus: {
26
26
  release: string[];
27
27
  published: string[];
28
28
  };
29
- interface getDocumentUrlArgs {
30
- documentId: string;
29
+ type 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 interface Thumbnail {
9
- /** Thumbnail name or MAIN_THUMBNAIL_NAME */
8
+ export type 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 interface Thumbnail {
14
14
  height?: number | null;
15
15
  }
16
16
  export declare const MAIN_THUMBNAIL_NAME = "__MAIN_THUMBNAIL__";
17
- export interface CropperImage {
18
- thumbnail: Thumbnail;
17
+ export type CropperImage = {
18
+ thumbnail: Thumbnail;
19
19
  contentView?: ImageContentView;
20
20
  labels: ImageLabel;
21
21
  }
@@ -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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
857
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1204
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1543
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
1884
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2223
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2560
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
2908
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3247
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3588
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
3927
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
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" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
4264
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
4265
4265
  content: {
4266
4266
  text: string;
4267
4267
  } & {