@prismicio/editor-fields 0.4.83 → 0.4.85

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 (134) hide show
  1. package/dist/DocumentEditor.d.ts +0 -1
  2. package/dist/EditorConfig.d.ts +15 -3
  3. package/dist/GroupAndNestableWidgetSwitch.d.ts +0 -1
  4. package/dist/GroupEditor.d.ts +0 -1
  5. package/dist/NestableWidgetSwitch.d.ts +0 -1
  6. package/dist/SectionEditor.d.ts +0 -1
  7. package/dist/SliceSelection.d.ts +0 -1
  8. package/dist/core/APIExplorer/APIExplorer.d.ts +0 -1
  9. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +0 -1
  10. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +0 -1
  11. package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +0 -1
  12. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +0 -1
  13. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +0 -1
  14. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +0 -1
  15. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +0 -1
  16. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +0 -1
  17. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +0 -1
  18. package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +0 -1
  19. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +0 -1
  20. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +0 -1
  21. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +0 -1
  22. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +0 -1
  23. package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +0 -1
  24. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +0 -1
  25. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +0 -1
  26. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +0 -1
  27. package/dist/core/EditorErrorBoundary.d.ts +0 -1
  28. package/dist/core/MediaLibrary/MediaLibrary.d.ts +0 -1
  29. package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +0 -1
  30. package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +0 -1
  31. package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +0 -1
  32. package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +0 -1
  33. package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +0 -1
  34. package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +0 -1
  35. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +0 -1
  36. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +0 -1
  37. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +0 -1
  38. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +0 -1
  39. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +0 -1
  40. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +0 -1
  41. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +0 -1
  42. package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +0 -1
  43. package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +0 -1
  44. package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +0 -1
  45. package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +0 -1
  46. package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +0 -1
  47. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +0 -1
  48. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +0 -1
  49. package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +0 -1
  50. package/dist/core/SelectionManager/SelectionManager.d.ts +0 -1
  51. package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +0 -1
  52. package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +0 -1
  53. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +0 -1
  54. package/dist/core/service/onboarding.d.ts +0 -1
  55. package/dist/fields/BooleanField.d.ts +0 -1
  56. package/dist/fields/ColorField/ColorField.d.ts +0 -1
  57. package/dist/fields/DateField.d.ts +0 -1
  58. package/dist/fields/EmbedField/EmbedField.d.ts +0 -1
  59. package/dist/fields/EmbedField/EmbedFooter.d.ts +4 -1
  60. package/dist/fields/FieldTextInput.d.ts +0 -1
  61. package/dist/fields/GeoPointField/GeoPointField.d.ts +2 -5
  62. package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +0 -1
  63. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +0 -1
  64. package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +0 -1
  65. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +0 -1
  66. package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +0 -1
  67. package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +0 -1
  68. package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -2
  69. package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +1 -1
  70. package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +1 -27
  71. package/dist/fields/ImageField/ImageField.d.ts +0 -1
  72. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +0 -1
  73. package/dist/fields/IntegrationField/IntegrationDialog.d.ts +0 -1
  74. package/dist/fields/IntegrationField/IntegrationField.d.ts +0 -1
  75. package/dist/fields/IntegrationField/IntegrationInput.d.ts +0 -1
  76. package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +0 -1
  77. package/dist/fields/KeyTextField.d.ts +0 -1
  78. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +0 -1
  79. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +0 -1
  80. package/dist/fields/LinkField/Documents/Filters.d.ts +0 -1
  81. package/dist/fields/LinkField/Documents/useFilters.d.ts +0 -1
  82. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +0 -1
  83. package/dist/fields/LinkField/LinkField.d.ts +0 -1
  84. package/dist/fields/LinkField/LinkFieldActions.d.ts +0 -1
  85. package/dist/fields/LinkField/LinkImageCard.d.ts +0 -1
  86. package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +0 -1
  87. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +0 -1
  88. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +0 -1
  89. package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +0 -1
  90. package/dist/fields/LinkField/useLinkField.d.ts +0 -1
  91. package/dist/fields/MetadataTextField.d.ts +0 -1
  92. package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +0 -1
  93. package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +0 -1
  94. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +0 -1
  95. package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +0 -1
  96. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +0 -1
  97. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +0 -1
  98. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +0 -1
  99. package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +0 -1
  100. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +0 -1
  101. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +0 -1
  102. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +0 -1
  103. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +0 -1
  104. package/dist/fields/RichTextField/RichTextField.d.ts +3 -2
  105. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +1 -1
  106. package/dist/fields/RichTextField/coreExtensions/Text.d.ts +1 -1
  107. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +0 -1
  108. package/dist/fields/RichTextField/extensions/Embed/useEmbedView.d.ts +10 -2
  109. package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +0 -1
  110. package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +1 -1
  111. package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +1 -1
  112. package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +1 -1
  113. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +0 -1
  114. package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +1 -1
  115. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +0 -1
  116. package/dist/fields/RichTextField/extensions/Table/plugins/tableCellFocusPlugin.d.ts +1 -1
  117. package/dist/fields/RichTextField/extensions/Table/plugins/tableHandles/utils.d.ts +1 -1
  118. package/dist/fields/RichTextField/extensions/Table/utils.d.ts +1 -1
  119. package/dist/fields/RichTextField/models/EditorExtension.d.ts +1 -1
  120. package/dist/fields/SelectField.d.ts +0 -1
  121. package/dist/fields/TableField/TableField.d.ts +0 -1
  122. package/dist/fields/TimestampField.d.ts +0 -1
  123. package/dist/fields/UIDField.d.ts +0 -1
  124. package/dist/index.cjs.js +50 -43
  125. package/dist/index.es.js +33693 -25601
  126. package/dist/slices/SharedSliceEditor.d.ts +0 -1
  127. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +0 -1
  128. package/dist/zones/NonRepeatableZoneEditor.d.ts +0 -1
  129. package/dist/zones/RepeatableZoneEditor.d.ts +0 -1
  130. package/dist/zones/SlicePrimaryZoneEditor.d.ts +0 -1
  131. package/dist/zones/SliceZoneEditor.d.ts +0 -1
  132. package/dist/zones/StaticZoneEditor.d.ts +0 -1
  133. package/package.json +10 -65
  134. package/dist/core/Collaboration/CollaborationPresence.d.ts +0 -7
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Document } from "@prismicio/types-internal/lib/content";
3
2
  import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
4
3
  import { type EditorConfig } from "./EditorConfig";
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import type { BaseMetadata } from "@liveblocks/core";
1
+ import type { BaseMetadata, ThreadData } from "@liveblocks/client";
3
2
  import type { useThreads as useLiveblocksThreads, UseThreadsOptions } from "@liveblocks/react";
4
3
  import { type MediaAssetType } from "@prismicio/editor-ui";
5
- import type { Content, Extension } from "@tiptap/core";
4
+ import type { Content, Editor, Extension } from "@tiptap/core";
5
+ import { type ReactNode } from "react";
6
6
  import type { APIExplorerEvents } from "./core/APIExplorer/components/APIExplorerContext";
7
7
  import type { MetadataType } from "./core/service";
8
8
  export type EditorConfig = {
@@ -12,6 +12,9 @@ export type EditorConfig = {
12
12
  authStrategy: AuthStrategy;
13
13
  useCollaborativeComments?: UseCollaborativeComments;
14
14
  useThreads?: UseThreads;
15
+ CustomThreads?: CustomThreads;
16
+ CollaborationPresence?: CollaborationPresence;
17
+ hasSharedCollaborativeHistory?: boolean;
15
18
  } & OptionalConfigs;
16
19
  type OptionalConfigs = SearchDocuments & MediaLibrary & UIDField & Analytics & ErrorTracking & IntegrationFields & LayoutConfig & UserService & AISeoMetadata;
17
20
  type UserService = {
@@ -119,9 +122,18 @@ interface UseCollaborativeCommentsArgs {
119
122
  }
120
123
  type UseCollaborativeComments = (args: UseCollaborativeCommentsArgs) => Extension;
121
124
  type UseThreads = (options?: UseThreadsOptions<BaseMetadata> | undefined) => ReturnType<typeof useLiveblocksThreads>;
125
+ type CustomThreads = (props: {
126
+ editor: Editor;
127
+ threads: ThreadData<BaseMetadata>[] | undefined;
128
+ }) => JSX.Element;
129
+ type CollaborationPresence = (props: {
130
+ children: ReactNode;
131
+ id: string;
132
+ }) => JSX.Element;
122
133
  export type AuthStrategy = "cookie" | "token";
123
134
  export declare const EditorConfigContext: import("react").Context<EditorConfig | undefined>;
124
135
  export declare function useEditorConfig(): EditorConfig;
136
+ export declare function useCollaborationPresenceComponent(): CollaborationPresence;
125
137
  export declare function throwConfigError(configKey: string): never;
126
138
  export declare function suppressErrors(): void;
127
139
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type GroupContent, type NestableContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Group, NestableWidget } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { GroupContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Group } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface GroupEditorProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NestableContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { NestableWidget } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Document } from "@prismicio/types-internal/lib/content";
3
2
  import type { StaticCustomType, StaticSection } from "@prismicio/types-internal/lib/customtypes";
4
3
  import type { SliceSelection } from "./SliceSelection";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface SliceSelection {
3
2
  /**
4
3
  * The keys of the slices that are currently selected.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type APIExplorerProviderProps } from "./components/APIExplorerContext";
3
2
  type APIExplorerProps = Pick<APIExplorerProviderProps, "repository" | "track">;
4
3
  export declare function APIExplorer(props: APIExplorerProps): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function APIExplorerRequest(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function APIExplorerResponse(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const apiPaths: {
3
2
  doc: string;
4
3
  docType: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FilterType } from "./types";
3
2
  interface FilterConfigDialogProps {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request filters setting.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FormInputProps } from "@prismicio/editor-ui";
3
2
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
3
  export type RequestFormInputProps = Pick<RequestFormInputBaseProps, "label"> & FormInputProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type RequestFormInputBaseProps = {
3
2
  label: string;
4
3
  children: JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FormInputProps } from "@prismicio/editor-ui";
3
2
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
3
  export type RequestFormMultiInputProps = Pick<RequestFormInputBaseProps, "label"> & FormMultiInputProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type SelectProps } from "@prismicio/editor-ui";
3
2
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
3
  export declare function RequestFormSelect(props: Pick<RequestFormInputBaseProps, "label"> & SelectProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request document lang setting.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface OrderingConfigDialogProps {
3
2
  open: boolean;
4
3
  onOpenChange: (open: boolean) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request orderings setting.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request pagination settings.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request ref setting.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Display a fieldset managing a request tag settings.
4
3
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FormInputProps } from "@prismicio/editor-ui";
3
2
  /**
4
3
  * Display a fieldset managing a request tags settings.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type RequestTypeFieldsetProps = {
3
2
  nonRepeatableOnly?: boolean;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { BuildQueryURLArgs, Client, Ordering } from "@prismicio/client";
3
2
  import type { SnippetArgs } from "../../utils";
4
3
  import type { RequestRunReturnType } from "./types";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ErrorBoundaryProps } from "@prismicio/editor-ui";
3
2
  type EditorErrorBoundaryProps = Omit<ErrorBoundaryProps, "onReset">;
4
3
  export declare function EditorErrorBoundary(props: EditorErrorBoundaryProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MediaAssetType } from "@prismicio/editor-ui";
3
2
  interface MediaLibraryProps {
4
3
  /**
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare function EmptyMediaList(): JSX.Element;
3
2
  export declare function NoSearchResults(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function MediaLibraryRenderError(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MediaLibrarySkeletonProps {
3
2
  actionContainer?: Element | null;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DefaultSidepaneContentProps {
3
2
  onFilesUpload: (files: File[]) => void;
4
3
  isUploading: boolean;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function Sidepane(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SidepaneContent(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SidepaneHeader(): JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SidepaneImage(): JSX.Element | null;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SidepaneMetadata(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MediaAsset } from "../../../../hooks/mediaLibraryData";
3
2
  interface MultiMediaMetadataTagsProps {
4
3
  selectedMedia: MediaAsset[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MediaAsset } from "../../../../hooks/mediaLibraryData";
3
2
  interface SingleMediaMetadataTagsProps {
4
3
  selectedMedia: MediaAsset;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type Tag } from "../../../../hooks/tagData";
3
2
  export type addOrRemove = "add" | "remove";
4
3
  interface TagsProps {
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SidepaneTagManager(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  count: number;
4
3
  }
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function Toolbar(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function AssetTypeFilter(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function TagsFilter(): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function UploaderFilter(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { OnboardingStep, OnboardingStepId, OnboardingTracking } from "../../service";
3
2
  interface OnboardingCardProps {
4
3
  steps: OnboardingStep[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { OnboardingStep, OnboardingStepId, OnboardingTracking } from "../../service";
3
2
  interface OnboardingProgressStepperProps {
4
3
  steps: OnboardingStep[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { OnboardingTracking } from "../../service";
3
2
  interface OnboardingTutorialProps {
4
3
  href: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { SelectionManagerProviderProps, SelectionStateListener, UseSelectionManager } from "./SelectionManagerTypes";
3
2
  export declare function SelectionManagerProvider(props: SelectionManagerProviderProps): JSX.Element;
4
3
  interface useSelectionManagerArgs {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MetadataType } from "../../service";
3
2
  interface MetadataBadgeProps {
4
3
  type: MetadataType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MetadataPreviewProps {
3
2
  title: string;
4
3
  description: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ExternalImage } from "../MediaLibrary/hooks/mediaLibraryData";
3
2
  interface UnsplashLibraryProps {
4
3
  onSelectedChange?: (media: ExternalImage[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { z } from "zod";
3
2
  import { type AuthStrategy } from "../../EditorConfig";
4
3
  export interface OnboardingStep {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { BooleanContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { BooleanField as BooleanT } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ColorContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Color as ColorT } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { DateContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Date as DateT } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Embed as EmbedT } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,10 +1,13 @@
1
- /// <reference types="react" />
1
+ import { ErrorBoundary } from "@prismicio/editor-ui";
2
2
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
3
+ import { type RefObject } from "react";
3
4
  interface FooterProps {
4
5
  debouncedUrl: string;
5
6
  content: EmbedContent | undefined;
6
7
  onContentChange: (content?: EmbedContent) => void;
7
8
  selected?: boolean;
9
+ errorBoundary: RefObject<ErrorBoundary>;
10
+ onError: () => void;
8
11
  }
9
12
  export declare function Footer(props: FooterProps): JSX.Element | null;
10
13
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type TextInputProps } from "@prismicio/editor-ui";
3
2
  export declare const FieldTextInput: (props: TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
4
3
  export declare const fieldInputPadding: {
@@ -1,14 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type { GeoPointContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { GeoPoint } from "@prismicio/types-internal/lib/customtypes";
4
- interface GeoPointFieldProps extends useGeoPointFieldProps {
3
+ interface GeoPointFieldProps {
5
4
  field: GeoPoint;
6
5
  id: string;
7
6
  readOnly: boolean;
8
- }
9
- export declare function GeoPointField(props: GeoPointFieldProps): JSX.Element;
10
- interface useGeoPointFieldProps {
11
7
  content: GeoPointContent | undefined;
12
8
  onContentChange: (content?: GeoPointContent) => void;
13
9
  }
10
+ export declare function GeoPointField(props: GeoPointFieldProps): JSX.Element;
14
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface EmptyCardContentProps {
3
2
  fieldLabel: string;
4
3
  isUpdating: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ImageAltControlProps {
3
2
  readOnly?: boolean;
4
3
  altText: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type CropperImage } from "../../../core/imageUtils";
3
2
  import { type CroppedImages } from "../CropperDialog";
4
3
  interface ImageFieldHeaderProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ImageFieldTitleProps {
3
2
  fieldLabel: string;
4
3
  imageLabel?: string[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ImageBlockData } from "../../../core/imageUtils";
3
2
  type LinkTo = ImageBlockData["linkTo"];
4
3
  interface ImageLinkControlProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type ImageContent, type ImageContentView } from "@prismicio/types-internal/lib/content";
3
2
  import { type CropperImage, type ImageBlockData } from "../../../core/imageUtils";
4
3
  import { type CroppedImages } from "../CropperDialog";
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
1
+ import type { CroppedImage } from "@prismicio/types-internal/lib/content";
2
2
  import type { CropperImage } from "../../../core/imageUtils";
3
- import { type CroppedImage } from "./croppedImage";
4
3
  interface Props {
5
4
  selectedImage: CropperImage;
6
5
  imageCrop: CroppedImage;
@@ -1,6 +1,6 @@
1
+ import { type CroppedImage } from "@prismicio/types-internal/lib/content";
1
2
  import { type ReactNode } from "react";
2
3
  import type { CropperImage } from "../../../core/imageUtils";
3
- import { type CroppedImage } from "./croppedImage";
4
4
  interface CropperDialogProps {
5
5
  trigger: React.ReactNode;
6
6
  /** Flattened list of all thumbnails in the field */
@@ -1,4 +1,4 @@
1
- import { type ImageContent, type ImageContentView } from "@prismicio/types-internal/lib/content";
1
+ import { type CroppedImage, type ImageContent } 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
4
  export interface Point {
@@ -15,21 +15,6 @@ export interface CropArea {
15
15
  width: number;
16
16
  height: number;
17
17
  }
18
- export interface CroppedImage {
19
- zoom: number;
20
- /** x coordinate of the crop rect on the original image */
21
- x: number;
22
- /** y coordinate of the crop rect on the original image */
23
- y: number;
24
- /** The width of the crop rect over the original image */
25
- cropWidth: number;
26
- /** The height of the crop rect over the original image */
27
- cropHeight: number;
28
- /** Final (user defined via W input) height of the image */
29
- width: number;
30
- /** Final (user defined via H input) height of the image */
31
- height: number;
32
- }
33
18
  interface UpdateImageArgs<ContentType extends ImageContent | ImageBlockData> {
34
19
  field: Image;
35
20
  content: ContentType;
@@ -42,15 +27,4 @@ interface UpdateImageMainThumbnailArgs<T> {
42
27
  croppedImage: CroppedImage;
43
28
  }
44
29
  export declare function updateImageMainThumbnail<T extends ImageContent | ImageBlockData>(args: UpdateImageMainThumbnailArgs<T>): T;
45
- interface BuildCropUrlArgs {
46
- origin: ImageContent["origin"];
47
- /** Image crop parameters */
48
- croppedImage: CroppedImage;
49
- }
50
- export declare function buildCropUrl(args: BuildCropUrlArgs): string;
51
- /**
52
- * Returns the cropped image object from the content view
53
- * This is used to initialise the cropper state
54
- */
55
- export declare function initCroppedImage(contentView: ImageContentView): CroppedImage;
56
30
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ImageContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
4
3
  export interface ImageFieldProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type MediaAssetType } from "@prismicio/editor-ui";
3
2
  import { type MediaAssetOrExternalImage } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
4
3
  interface MediaDialogProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type IntegrationItem } from "./integrationData";
3
2
  interface Props {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IntegrationFieldContent } from "@prismicio/types-internal/lib/content";
3
2
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
4
3
  interface Props {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
3
2
  import { type IntegrationItem } from "./integrationData";
4
3
  interface IntegrationSharedInputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IntegrationItem } from "./integrationData";
3
2
  interface Props {
4
3
  item: IntegrationItem;
@@ -8,7 +8,6 @@ interface Props {
8
8
  onContentChange: (content: TextContent | undefined) => void;
9
9
  readOnly: boolean;
10
10
  endAdornment?: ReactNode;
11
- placeholder?: string;
12
11
  }
13
12
  export declare function KeyTextField(props: Props): JSX.Element;
14
13
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FilterOption } from "@prismicio/editor-ui";
3
2
  export interface DocumentCardProps {
4
3
  documentTypeId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FilterOption } from "@prismicio/editor-ui";
3
2
  interface DocumentsModalProps {
4
3
  open: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type FilterOption } from "@prismicio/editor-ui";
3
2
  interface DocumentsListFiltersProps {
4
3
  filteredLocales: Set<FilterOption>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { FilterOption } from "@prismicio/editor-ui";
3
2
  export declare function useFilters(fixedCustomTypes?: Set<string>, fixedTags?: Set<string>): {
4
3
  searchTerm: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type IconName } from "@prismicio/editor-ui";
3
2
  export interface LinkDescriptionCardProps {
4
3
  url?: URL | string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilledLinkContent, type LinkContent } from "@prismicio/types-internal/lib/content";
3
2
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
4
3
  import { type FieldSelectType } from "./LinkFieldActions";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type FieldSelectType = "web" | "document" | "media" | "any";
3
2
  interface Props {
4
3
  hasLink: boolean;