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

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 (71) hide show
  1. package/dist/EditorConfig.d.ts +6 -0
  2. package/dist/FieldContext.d.ts +27 -0
  3. package/dist/GroupEditor.d.ts +2 -2
  4. package/dist/SliceSelection.d.ts +4 -4
  5. package/dist/constants/framework.d.ts +5 -0
  6. package/dist/core/MediaLibrary/components/MediaLibraryContext.d.ts +4 -4
  7. package/dist/core/MediaLibrary/components/MediaLibraryToast.d.ts +7 -7
  8. package/dist/core/MediaLibrary/components/MediaList.d.ts +2 -2
  9. package/dist/core/MediaLibrary/components/NewMediaLibraryFeaturesBanner.d.ts +2 -2
  10. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneContainer.d.ts +2 -2
  11. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +2 -2
  12. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +61 -61
  13. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  14. package/dist/core/MediaLibrary/hooks/uploadersData.d.ts +2 -2
  15. package/dist/core/MediaLibrary/hooks/useMediaLibraryAnalytics.d.ts +4 -4
  16. package/dist/core/MediaLibrary/hooks/useMediaLibraryCacheInvalidation.d.ts +2 -2
  17. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +6 -6
  18. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +6 -6
  19. package/dist/core/OnboardingGuide/OnboardingGuide.d.ts +7 -4
  20. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +2 -1
  21. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +2 -1
  22. package/dist/core/OnboardingGuide/components/OnboardingStepDialog.d.ts +3 -2
  23. package/dist/core/OnboardingGuide/content.d.ts +9 -2
  24. package/dist/core/OnboardingGuide/index.d.ts +1 -1
  25. package/dist/core/SelectionManager/SelectionManagerTypes.d.ts +8 -8
  26. package/dist/core/UID.d.ts +6 -6
  27. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +2 -2
  28. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  29. package/dist/core/document.d.ts +2 -2
  30. package/dist/core/imageUtils.d.ts +4 -4
  31. package/dist/core/service/customType.d.ts +6 -6
  32. package/dist/core/service/document.d.ts +11 -11
  33. package/dist/core/service/onboarding.d.ts +3 -1
  34. package/dist/core/service/repository.d.ts +1 -1
  35. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +2 -2
  36. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +2 -2
  37. package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +3 -3
  38. package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +10 -10
  39. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +2 -2
  40. package/dist/fields/ImageField/useImageField.d.ts +2 -2
  41. package/dist/fields/IntegrationField/IntegrationInput.d.ts +6 -6
  42. package/dist/fields/IntegrationField/integrationData.d.ts +1 -1
  43. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +4 -4
  44. package/dist/fields/LinkField/Documents/Filters.d.ts +6 -6
  45. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +2 -2
  46. package/dist/fields/LinkField/LinkField.d.ts +7 -7
  47. package/dist/fields/LinkField/LinkImageCard.d.ts +2 -2
  48. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  49. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +2 -2
  50. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +2 -2
  51. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +2 -2
  52. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +4 -4
  53. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +2 -2
  54. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +2 -2
  55. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +2 -2
  56. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +2 -2
  57. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  58. package/dist/fields/RichTextField/extensions/Label/Label.d.ts +4 -4
  59. package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +2 -2
  60. package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +11 -11
  61. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +2 -2
  62. package/dist/fields/RichTextField/models/RichTextConfig.d.ts +2 -2
  63. package/dist/index.cjs.js +33 -33
  64. package/dist/index.d.ts +2 -2
  65. package/dist/index.es.js +13962 -13857
  66. package/dist/slices/LegacySliceEditor.d.ts +2 -2
  67. package/dist/slices/utils.d.ts +1 -1
  68. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +2 -2
  69. package/dist/zones/NonRepeatableZoneEditor.d.ts +2 -2
  70. package/dist/zones/SliceZoneEditor.d.ts +2 -2
  71. package/package.json +1 -1
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
11
11
  }
12
12
  export declare function useLinkField(params: useLinkFieldParams): {
13
13
  contentType: "DocumentLink" | "ImageLink" | "FileLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
14
- selectType: "document" | "media" | "web" | "any" | 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 {};