@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.
- package/dist/EditorConfig.d.ts +6 -0
- package/dist/FieldContext.d.ts +27 -0
- package/dist/GroupEditor.d.ts +2 -2
- package/dist/SliceSelection.d.ts +4 -4
- package/dist/constants/framework.d.ts +5 -0
- package/dist/core/MediaLibrary/components/MediaLibraryContext.d.ts +4 -4
- package/dist/core/MediaLibrary/components/MediaLibraryToast.d.ts +7 -7
- package/dist/core/MediaLibrary/components/MediaList.d.ts +2 -2
- package/dist/core/MediaLibrary/components/NewMediaLibraryFeaturesBanner.d.ts +2 -2
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneContainer.d.ts +2 -2
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +2 -2
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +61 -61
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/uploadersData.d.ts +2 -2
- package/dist/core/MediaLibrary/hooks/useMediaLibraryAnalytics.d.ts +4 -4
- package/dist/core/MediaLibrary/hooks/useMediaLibraryCacheInvalidation.d.ts +2 -2
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +6 -6
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +6 -6
- package/dist/core/OnboardingGuide/OnboardingGuide.d.ts +7 -4
- package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +2 -1
- package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +2 -1
- package/dist/core/OnboardingGuide/components/OnboardingStepDialog.d.ts +3 -2
- package/dist/core/OnboardingGuide/content.d.ts +9 -2
- package/dist/core/OnboardingGuide/index.d.ts +1 -1
- package/dist/core/SelectionManager/SelectionManagerTypes.d.ts +8 -8
- package/dist/core/UID.d.ts +6 -6
- package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +2 -2
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/document.d.ts +2 -2
- package/dist/core/imageUtils.d.ts +4 -4
- package/dist/core/service/customType.d.ts +6 -6
- package/dist/core/service/document.d.ts +11 -11
- package/dist/core/service/onboarding.d.ts +3 -1
- package/dist/core/service/repository.d.ts +1 -1
- package/dist/fields/ImageField/Components/ImageAltControl.d.ts +2 -2
- package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +2 -2
- package/dist/fields/ImageField/CropperDialog/CropperDialog.d.ts +3 -3
- package/dist/fields/ImageField/CropperDialog/croppedImage.d.ts +10 -10
- package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +2 -2
- package/dist/fields/ImageField/useImageField.d.ts +2 -2
- package/dist/fields/IntegrationField/IntegrationInput.d.ts +6 -6
- package/dist/fields/IntegrationField/integrationData.d.ts +1 -1
- package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +4 -4
- package/dist/fields/LinkField/Documents/Filters.d.ts +6 -6
- package/dist/fields/LinkField/LinkDescriptionCard.d.ts +2 -2
- package/dist/fields/LinkField/LinkField.d.ts +7 -7
- package/dist/fields/LinkField/LinkImageCard.d.ts +2 -2
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +4 -4
- package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +2 -2
- package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +2 -2
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/Label/Label.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +11 -11
- package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +2 -2
- package/dist/fields/RichTextField/models/RichTextConfig.d.ts +2 -2
- package/dist/index.cjs.js +33 -33
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +13962 -13857
- package/dist/slices/LegacySliceEditor.d.ts +2 -2
- package/dist/slices/utils.d.ts +1 -1
- package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +2 -2
- package/dist/zones/NonRepeatableZoneEditor.d.ts +2 -2
- package/dist/zones/SliceZoneEditor.d.ts +2 -2
- 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" | "
|
|
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
|
-
|
|
4
|
-
|
|
3
|
+
type NodeItemsProps = {
|
|
4
|
+
labels: string[];
|
|
5
5
|
editor: Editor;
|
|
6
6
|
}
|
|
7
7
|
export declare function LabelItems(props: NodeItemsProps): JSX.Element;
|
|
@@ -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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
11
|
-
|
|
10
|
+
type DocumentLinkPopoverProps = {
|
|
11
|
+
editor: Editor;
|
|
12
12
|
onEditDocumentLink: () => void;
|
|
13
13
|
docId: string;
|
|
14
14
|
}
|
|
@@ -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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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" | "
|
|
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" | "
|
|
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
|
|
3
|
-
|
|
2
|
+
export type LabelProtocolOptions = {
|
|
3
|
+
scheme: string;
|
|
4
4
|
optionalSlashes?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
|
|
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
|
|
20
|
-
|
|
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
|
|
20
|
-
|
|
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
|
|
27
|
-
|
|
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
|
|
38
|
-
|
|
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
|
-
|
|
47
|
-
|
|
46
|
+
type DocumentLinkData = {
|
|
47
|
+
__TYPE__: "DocumentLink";
|
|
48
48
|
id: string;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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
|
-
|
|
5
|
-
|
|
4
|
+
type Extensions = {
|
|
5
|
+
extensions: WidgetExtension[];
|
|
6
6
|
nodeTypes: Set<RichTextNodeType>;
|
|
7
7
|
}
|
|
8
8
|
export {};
|