@prismicio/editor-fields 0.4.51 → 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 +4 -2
  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 +3 -1
  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 +27 -27
  57. package/dist/index.es.js +1966 -1938
  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 +1 -1
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- interface ImageAltControlProps {
3
- readOnly?: boolean;
2
+ type 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
- interface ImageFieldTitleProps {
3
- fieldLabel: string;
2
+ type 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
- interface CropperDialogProps {
5
- trigger: React.ReactNode;
4
+ type 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 @@ interface CropperDialogProps {
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 interface Point {
5
- x: number;
4
+ export type Point = {
5
+ x: number;
6
6
  y: number;
7
7
  }
8
- export interface Size {
9
- width: number;
8
+ export type Size = {
9
+ width: number;
10
10
  height: number;
11
11
  }
12
- export interface CropArea {
13
- x: number;
12
+ export type CropArea = {
13
+ x: number;
14
14
  y: number;
15
15
  width: number;
16
16
  height: number;
17
17
  }
18
- export interface CroppedImage {
19
- zoom: number;
18
+ export type 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
- interface BuildCropUrlArgs {
46
- origin: ImageContent["origin"];
45
+ type 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
- interface MediaDialogProps {
5
- assetType: MediaAssetType;
4
+ type 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
- interface useImageFieldProps {
6
- content: ImageContent | undefined;
5
+ type 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
- interface IntegrationSharedInputProps {
5
- id: string;
4
+ type IntegrationSharedInputProps = {
5
+ id: string;
6
6
  field: IntegrationFieldT;
7
7
  readOnly: boolean;
8
8
  onFocus: () => void;
9
9
  onClearItem: () => void;
10
10
  }
11
- interface IntegrationInputProps extends IntegrationSharedInputProps {
12
- catalogId: string;
11
+ type IntegrationInputProps = 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
- interface IntegrationFooterProps {
18
- catalogId: string;
17
+ type IntegrationFooterProps = {
18
+ catalogId: string;
19
19
  itemId?: string;
20
20
  item?: IntegrationItem;
21
21
  }
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- interface IntegrationCatalogSearchArgs {
3
- searchTerm: string;
2
+ type IntegrationCatalogSearchArgs = {
3
+ searchTerm: string;
4
4
  catalogId: string;
5
5
  }
6
6
  export declare function useIntegrationCatalogSearch(args: IntegrationCatalogSearchArgs): {
@@ -40,8 +40,8 @@ declare const integrationItem: z.ZodObject<{
40
40
  description?: string | undefined;
41
41
  }>;
42
42
  export type IntegrationItem = z.TypeOf<typeof integrationItem>;
43
- interface IntegrationCatalogReadArgs {
44
- catalogId: string;
43
+ type IntegrationCatalogReadArgs = {
44
+ catalogId: string;
45
45
  itemId: string;
46
46
  }
47
47
  export declare function useIntegrationCatalogRead(args: IntegrationCatalogReadArgs): {
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { type FilterOption } from "@prismicio/editor-ui";
3
- interface DocumentsModalProps {
4
- open: boolean;
3
+ type 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
9
  }
10
10
  export declare function DocumentsModal(props: DocumentsModalProps): JSX.Element;
11
- interface SortTagsByFilteredTagsArgs {
12
- tagsFilter: Set<FilterOption>;
11
+ type SortTagsByFilteredTagsArgs = {
12
+ tagsFilter: Set<FilterOption>;
13
13
  tags: string[];
14
14
  }
15
15
  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
- interface DocumentsListFiltersProps {
4
- filteredLocales: Set<FilterOption>;
3
+ type 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 @@ interface DocumentsListFiltersProps {
11
11
  fixedTags?: Set<string>;
12
12
  }
13
13
  export declare function DocumentsListFilters(props: DocumentsListFiltersProps): JSX.Element;
14
- interface FilterProps {
15
- onSelectedValuesChange: (selectedValues: Set<FilterOption>) => void;
14
+ type 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 @@ interface FilterProps {
21
21
  multiple?: boolean;
22
22
  }
23
23
  export declare function Filter(props: FilterProps): JSX.Element;
24
- interface LocalesFilterProps {
25
- selectedValues: Set<FilterOption>;
24
+ type 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 interface LinkDescriptionCardProps {
4
- url?: URL | string;
3
+ export type 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
- interface LinkFieldProps {
6
- id?: string;
5
+ type 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
- interface GetFieldIconArgs {
14
- selectType?: FieldSelectType;
13
+ type GetFieldIconArgs = {
14
+ selectType?: FieldSelectType;
15
15
  displayTextEnabled?: boolean;
16
16
  }
17
17
  export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "link" | "notes" | "public";
18
- interface FilledLinkFieldProps {
19
- id?: string;
18
+ type 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 interface LinkImageCardProps {
3
- url: string;
2
+ export type LinkImageCardProps = {
3
+ url: string;
4
4
  title: string;
5
5
  subTitle: string;
6
6
  onEdit?: () => void;
@@ -10,8 +10,8 @@ interface useLinkFieldParams {
10
10
  onContentChange: (content: LinkContent | undefined) => void;
11
11
  }
12
12
  export declare function useLinkField(params: useLinkFieldParams): {
13
- contentType: "DocumentLink" | "ImageLink" | "FileLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
14
- selectType: "document" | "media" | "web" | "any" | undefined;
13
+ contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
14
+ selectType: "document" | "web" | "media" | "any" | undefined;
15
15
  fieldValue: string;
16
16
  onDisplayTextChange: (displayText: string) => void;
17
17
  onValueChange: (value: string, newTab?: boolean) => void;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Editor } from "@tiptap/core";
3
- interface NodeItemsProps {
4
- labels: string[];
3
+ type 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
- interface DocumentDescriptionCardProps {
3
- docId: string;
2
+ type 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
- interface LinkItemsProps {
5
- editor: Editor;
4
+ type 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
- interface LinkPopoverProps {
4
- editor: Editor;
3
+ type 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
- interface DocumentLinkPopoverProps {
11
- editor: Editor;
10
+ type 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
- interface SetMediaLinkModalProps {
4
- open: boolean;
3
+ type 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
- interface SetWebLinkModalProps {
4
- open: boolean;
3
+ type 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
- interface MarkItemsProps {
5
- items: MenuItem[];
4
+ type MarkItemsProps = {
5
+ items: MenuItem[];
6
6
  editor: Editor;
7
7
  }
8
8
  export declare function MarkItems(props: MarkItemsProps): JSX.Element | null;
@@ -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
- interface NodeItemsProps {
5
- items: MenuItem[];
4
+ type NodeItemsProps = {
5
+ items: MenuItem[];
6
6
  editor: Editor;
7
7
  }
8
8
  export declare function NodeItems(props: NodeItemsProps): JSX.Element | null;
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
4
4
  converter: {
5
5
  fromPrismic(schema: Schema<any, any>): (list: {
6
- type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
6
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
7
7
  content: {
8
8
  text: string;
9
9
  } & {
@@ -64,7 +64,7 @@ declare const _default: {
64
64
  direction?: string | undefined;
65
65
  }) => ProsemirrorNode | undefined;
66
66
  toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
67
- type: "image" | "em" | "embed" | "strong" | "list-item" | "paragraph" | "rtl" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "o-list-item";
67
+ type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
68
68
  content: {
69
69
  text: string;
70
70
  } & {
@@ -1,10 +1,10 @@
1
1
  import { LabelExtension } from "./LabelModel";
2
- export interface LabelProtocolOptions {
3
- scheme: string;
2
+ export type LabelProtocolOptions = {
3
+ scheme: string;
4
4
  optionalSlashes?: boolean;
5
5
  }
6
- export interface LabelOptions {
7
- /** These are the values passed into the HTML through the Tiptap extension. */
6
+ export type LabelOptions = {
7
+ /** These are the values passed into the HTML through the Tiptap extension. */
8
8
  htmlAttributes: Record<string, any>;
9
9
  }
10
10
  declare module "@tiptap/core" {
@@ -16,8 +16,8 @@ export declare class LabelExtension {
16
16
  toPrismic(elmt: ProsemirrorMark): LabelElementData;
17
17
  });
18
18
  }
19
- export interface LabelElement {
20
- type: "label";
19
+ export type LabelElement = {
20
+ type: "label";
21
21
  start: number;
22
22
  end: number;
23
23
  data: LabelElementData;
@@ -16,15 +16,15 @@ export declare class LinkExtension {
16
16
  toPrismic(elmt: ProsemirrorMark): LinkElementData;
17
17
  });
18
18
  }
19
- export interface LinkElement {
20
- type: "hyperlink";
19
+ export type LinkElement = {
20
+ type: "hyperlink";
21
21
  start: number;
22
22
  end: number;
23
23
  data: LinkElementData;
24
24
  }
25
25
  export type LinkElementData = ImageLinkData | FileLinkData | DocumentLinkData | ExternalLinkData;
26
- export interface ImageLinkData {
27
- __TYPE__: "ImageLink";
26
+ export type ImageLinkData = {
27
+ __TYPE__: "ImageLink";
28
28
  id: string;
29
29
  url: string;
30
30
  height: string;
@@ -34,8 +34,8 @@ export interface ImageLinkData {
34
34
  kind: string;
35
35
  date?: string | null | undefined;
36
36
  }
37
- export interface FileLinkData {
38
- __TYPE__: "FileLink";
37
+ export type FileLinkData = {
38
+ __TYPE__: "FileLink";
39
39
  id: string;
40
40
  url: string;
41
41
  name: string;
@@ -43,17 +43,17 @@ export interface FileLinkData {
43
43
  size: string;
44
44
  date?: string | null | undefined;
45
45
  }
46
- interface DocumentLinkData {
47
- __TYPE__: "DocumentLink";
46
+ type DocumentLinkData = {
47
+ __TYPE__: "DocumentLink";
48
48
  id: string;
49
49
  }
50
- interface ExternalLinkData {
51
- __TYPE__: "ExternalLink";
50
+ type ExternalLinkData = {
51
+ __TYPE__: "ExternalLink";
52
52
  url: string;
53
53
  kind?: "web";
54
54
  target?: string | null | undefined;
55
55
  preview?: {
56
56
  title?: string;
57
- } | null | undefined;
57
+ } | null | undefined;
58
58
  }
59
59
  export {};
@@ -4,8 +4,8 @@ import type { Node as ProsemirrorNode } from "prosemirror-model";
4
4
  export type Direction = "ltr" | "rtl";
5
5
  export declare const leftToRight: Direction;
6
6
  export declare const rightToLeft: Direction;
7
- interface TextDirectionOptions {
8
- supportedExtensionNames: string[];
7
+ type TextDirectionOptions = {
8
+ supportedExtensionNames: string[];
9
9
  }
10
10
  export declare const attrName = "dir";
11
11
  declare module "@tiptap/core" {
@@ -1,8 +1,8 @@
1
1
  import { RichTextConfig, type RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
2
2
  import { type WidgetExtension } from "./EditorExtension";
3
3
  export declare function composeExtensions(config?: RichTextConfig): Extensions;
4
- interface Extensions {
5
- extensions: WidgetExtension[];
4
+ type Extensions = {
5
+ extensions: WidgetExtension[];
6
6
  nodeTypes: Set<RichTextNodeType>;
7
7
  }
8
8
  export {};