@prismicio/editor-fields 0.4.88 → 0.4.90

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 (125) hide show
  1. package/dist/DocumentEditor.d.ts +1 -0
  2. package/dist/EditorConfig.d.ts +22 -7
  3. package/dist/GroupAndNestableWidgetSwitch.d.ts +1 -0
  4. package/dist/GroupEditor.d.ts +1 -0
  5. package/dist/NestableWidgetSwitch.d.ts +1 -0
  6. package/dist/SectionEditor.d.ts +1 -0
  7. package/dist/SliceSelection.d.ts +1 -0
  8. package/dist/core/APIExplorer/APIExplorer.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +1 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +1 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +1 -0
  14. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +1 -0
  15. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +1 -0
  16. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +1 -0
  17. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -0
  18. package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +1 -0
  19. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +1 -0
  20. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +1 -0
  21. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +1 -0
  22. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -0
  23. package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +1 -0
  24. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +1 -0
  25. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +1 -0
  26. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
  27. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1413 -1
  28. package/dist/core/EditorErrorBoundary.d.ts +1 -0
  29. package/dist/core/MediaLibrary/MediaLibrary.d.ts +1 -0
  30. package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +1 -0
  31. package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +1 -0
  32. package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +1 -0
  33. package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +1 -0
  34. package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +1 -0
  35. package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +1 -0
  36. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +1 -0
  37. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +1 -0
  38. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +1 -0
  39. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +1 -0
  40. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +1 -0
  41. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +1 -0
  42. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +1 -0
  43. package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +1 -0
  44. package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +1 -0
  45. package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +1 -0
  46. package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +1 -0
  47. package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +1 -0
  48. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +3 -3
  49. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +1 -0
  50. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +1 -0
  51. package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +1 -0
  52. package/dist/core/SelectionManager/SelectionManager.d.ts +1 -0
  53. package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +1 -0
  54. package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +1 -0
  55. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +1 -0
  56. package/dist/core/service/customType.d.ts +16319 -175
  57. package/dist/core/service/document.d.ts +1344 -67
  58. package/dist/core/service/onboarding.d.ts +1 -0
  59. package/dist/core/service/role.d.ts +1 -1
  60. package/dist/fields/BooleanField.d.ts +1 -0
  61. package/dist/fields/ColorField/ColorField.d.ts +1 -0
  62. package/dist/fields/DateField.d.ts +1 -0
  63. package/dist/fields/EmbedField/EmbedField.d.ts +1 -0
  64. package/dist/fields/FieldTextInput.d.ts +1 -0
  65. package/dist/fields/GeoPointField/GeoPointField.d.ts +1 -0
  66. package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +1 -0
  67. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -0
  68. package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +1 -0
  69. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +1 -0
  70. package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
  71. package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +1 -0
  72. package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -0
  73. package/dist/fields/ImageField/ImageField.d.ts +1 -0
  74. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +1 -0
  75. package/dist/fields/IntegrationField/IntegrationDialog.d.ts +1 -0
  76. package/dist/fields/IntegrationField/IntegrationField.d.ts +1 -0
  77. package/dist/fields/IntegrationField/IntegrationInput.d.ts +1 -0
  78. package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +1 -0
  79. package/dist/fields/IntegrationField/integrationData.d.ts +1 -5
  80. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
  81. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +1 -0
  82. package/dist/fields/LinkField/Documents/Filters.d.ts +1 -0
  83. package/dist/fields/LinkField/Documents/useFilters.d.ts +1 -0
  84. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +1 -0
  85. package/dist/fields/LinkField/LinkField.d.ts +1 -0
  86. package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
  87. package/dist/fields/LinkField/LinkImageCard.d.ts +1 -0
  88. package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +1 -0
  89. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
  90. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +1 -0
  91. package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +1 -0
  92. package/dist/fields/LinkField/linkFieldData.d.ts +4 -0
  93. package/dist/fields/LinkField/useLinkField.d.ts +2 -2
  94. package/dist/fields/MetadataTextField.d.ts +1 -0
  95. package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
  96. package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +1 -0
  97. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +1 -0
  98. package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +1 -0
  99. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +1 -0
  100. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +1 -0
  101. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +1 -0
  102. package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +1 -0
  103. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +1 -0
  104. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +1 -0
  105. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +1 -0
  106. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +1 -0
  107. package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
  108. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -0
  109. package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -0
  110. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +1 -0
  111. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +1 -0
  112. package/dist/fields/SelectField.d.ts +1 -0
  113. package/dist/fields/TableField/TableField.d.ts +1 -0
  114. package/dist/fields/TimestampField.d.ts +1 -0
  115. package/dist/fields/UIDField.d.ts +1 -0
  116. package/dist/index.cjs.js +51 -51
  117. package/dist/index.es.js +30333 -29820
  118. package/dist/slices/SharedSliceEditor.d.ts +2 -1
  119. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +1 -0
  120. package/dist/zones/NonRepeatableZoneEditor.d.ts +1 -0
  121. package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
  122. package/dist/zones/SlicePrimaryZoneEditor.d.ts +1 -0
  123. package/dist/zones/SliceZoneEditor.d.ts +1 -0
  124. package/dist/zones/StaticZoneEditor.d.ts +1 -0
  125. package/package.json +8 -6
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { z } from "zod";
2
3
  import { type AuthStrategy } from "../../EditorConfig";
3
4
  export interface OnboardingStep {
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import type { AuthStrategy } from "../../EditorConfig";
3
3
  declare const SimpleRole: z.ZodEnum<["SuperUser", "Owner", "Administrator", "Manager", "Writer", "Readonly"]>;
4
4
  export type SimpleRole = z.infer<typeof SimpleRole>;
5
- export declare function isAdminRole(role?: SimpleRole): boolean;
5
+ export declare function isAdminRole(role: SimpleRole): boolean;
6
6
  export declare function getRoleLabel(role: SimpleRole): string;
7
7
  declare const RolesPerTeamSpace: z.ZodRecord<z.ZodString, z.ZodObject<{
8
8
  rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { BooleanContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { BooleanField as BooleanT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ColorContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Color as ColorT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DateContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Date as DateT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Embed as EmbedT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type TextInputProps } from "@prismicio/editor-ui";
2
3
  export declare const FieldTextInput: (props: TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
3
4
  export declare const fieldInputPadding: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { GeoPointContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { GeoPoint } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface GeoPointFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface EmptyCardContentProps {
2
3
  fieldLabel: string;
3
4
  isUpdating: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ImageAltControlProps {
2
3
  readOnly?: boolean;
3
4
  altText: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type CropperImage } from "../../../core/imageUtils";
2
3
  import { type CroppedImages } from "../CropperDialog";
3
4
  interface ImageFieldHeaderProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ImageFieldTitleProps {
2
3
  fieldLabel: string;
3
4
  imageLabel?: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ImageBlockData } from "../../../core/imageUtils";
2
3
  type LinkTo = ImageBlockData["linkTo"];
3
4
  interface ImageLinkControlProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type ImageContent, type ImageContentView } from "@prismicio/types-internal/lib/content";
2
3
  import { type CropperImage, type ImageBlockData } from "../../../core/imageUtils";
3
4
  import { type CroppedImages } from "../CropperDialog";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { CroppedImage } from "@prismicio/types-internal/lib/content";
2
3
  import type { CropperImage } from "../../../core/imageUtils";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
4
  export interface ImageFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type MediaAssetType } from "@prismicio/editor-ui";
2
3
  import { type MediaAssetOrExternalImage } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
3
4
  interface MediaDialogProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IntegrationItem } from "./integrationData";
2
3
  interface Props {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IntegrationFieldContent } from "@prismicio/types-internal/lib/content";
2
3
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
2
3
  import { type IntegrationItem } from "./integrationData";
3
4
  interface IntegrationSharedInputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IntegrationItem } from "./integrationData";
2
3
  interface Props {
3
4
  item: IntegrationItem;
@@ -40,11 +40,7 @@ declare const integrationItem: z.ZodObject<{
40
40
  imageURL?: string | undefined;
41
41
  }>;
42
42
  export type IntegrationItem = z.TypeOf<typeof integrationItem>;
43
- interface IntegrationCatalogReadArgs {
44
- catalogId: string;
45
- itemId: string;
46
- }
47
- export declare function useIntegrationCatalogRead(args: IntegrationCatalogReadArgs): {
43
+ export declare function useIntegrationCatalogRead(itemId: string): {
48
44
  item: {
49
45
  title: string;
50
46
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  export interface DocumentCardProps {
3
4
  documentTypeId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  interface DocumentsModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  interface DocumentsListFiltersProps {
3
4
  filteredLocales: Set<FilterOption>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { FilterOption } from "@prismicio/editor-ui";
2
3
  export declare function useFilters(fixedCustomTypes?: Set<string>, fixedTags?: Set<string>): {
3
4
  searchTerm: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IconName } from "@prismicio/editor-ui";
2
3
  export interface LinkDescriptionCardProps {
3
4
  url?: URL | string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilledLinkContent, type LinkContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { type FieldSelectType } from "./LinkFieldActions";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type FieldSelectType = "web" | "document" | "media" | "any";
2
3
  interface Props {
3
4
  hasLink: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LinkImageCardProps {
2
3
  url: string;
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type NestableContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface LinkOrRepeatableLinkFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RepeatableContent } from "@prismicio/types-internal/lib/content";
2
3
  import { type Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface RepeatableLinkFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface RepeatableLinkFieldActionsProps {
2
3
  onDelete: () => void;
3
4
  onMoveUp: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface WebLinkOptions {
2
3
  newTab: boolean;
3
4
  }
@@ -0,0 +1,4 @@
1
+ export declare function useLinkFieldDocument(docId: string): {
2
+ title: string;
3
+ isBrokenLink: boolean;
4
+ };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ErrorBoundary } from "@prismicio/editor-ui";
2
3
  import { type LinkContent } from "@prismicio/types-internal/lib/content";
3
4
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
@@ -10,7 +11,7 @@ interface useLinkFieldParams {
10
11
  }
11
12
  export declare function useLinkField(params: useLinkFieldParams): {
12
13
  contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
13
- selectType: "any" | "document" | "web" | "media" | undefined;
14
+ selectType: "any" | "document" | "media" | "web" | undefined;
14
15
  fieldValue: string;
15
16
  onDisplayTextChange: (displayText: string) => void;
16
17
  onValueChange: (value: string, options?: {
@@ -30,7 +31,6 @@ export declare function useLinkField(params: useLinkFieldParams): {
30
31
  variant: string | undefined;
31
32
  onVariantChange: (newVariant: string) => void;
32
33
  };
33
- export declare function useDocumentTitle(id: string): string;
34
34
  interface MapMediaToLinkContentArgs {
35
35
  media: MediaAssetOrExternalImage;
36
36
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Document, type TextContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { StaticCustomType, Text } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { type MetadataType } from "../core/service";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface BubbleMenuProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface ExtraItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface NodeItemsProps {
3
4
  labels: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LabelPopoverProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DocumentDescriptionCardProps {
2
3
  docId: string;
3
4
  onEdit: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { Modal } from "../BubbleMenu";
3
4
  interface LinkItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LinkPopoverProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetDocumentLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetMediaLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetWebLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface MarkItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface NodeItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IconName } from "@prismicio/editor-ui";
2
3
  import type { RichText } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { Transaction } from "@tiptap/pm/state";
@@ -18,6 +19,7 @@ interface Props<TContent extends ExtendedRichTextContent> {
18
19
  */
19
20
  shouldReturnEmptyContent?: boolean;
20
21
  icon?: IconName;
22
+ "data-tag"?: string;
21
23
  }
22
24
  export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element | null;
23
25
  export declare function isTransactionFromExternalUpdate(transaction: Transaction): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
3
4
  import { type NodeViewProps } from "@tiptap/react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
2
3
  import { type NodeViewProps } from "@tiptap/react";
3
4
  import { type ImageBlockData } from "../../../../core/imageUtils";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LimitModalProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface TableHandlesMenusProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SelectContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Select as SelectT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableContent } from "@prismicio/types-internal/lib/content";
2
3
  import { type Table } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { TimestampContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Timestamp } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { UIDContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { UID as UIDType } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface UIDFieldProps {