@prismicio/editor-fields 0.4.58 → 0.4.59-alpha.xru-link-variant-link-style.0
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/DocumentEditor.d.ts +2 -0
- package/dist/EditorConfig.d.ts +16 -1
- package/dist/SectionEditor.d.ts +5 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +53 -53
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +2 -0
- package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +8 -0
- package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +7 -0
- package/dist/core/SeoMetadata/index.d.ts +2 -0
- package/dist/core/document.d.ts +2 -6
- package/dist/core/service/aiSeoMetadata.d.ts +30 -0
- package/dist/core/service/customType.d.ts +15 -8
- package/dist/core/service/document.d.ts +230 -98
- package/dist/core/service/documentSearch.d.ts +34 -34
- package/dist/core/service/index.d.ts +1 -0
- package/dist/core/service/onboarding.d.ts +3 -0
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +18 -10
- package/dist/core/service/user.d.ts +1 -1
- package/dist/fields/KeyTextField.d.ts +3 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +10 -10
- package/dist/fields/LinkField/LinkField.d.ts +4 -3
- package/dist/fields/LinkField/LinkFieldActions.d.ts +3 -0
- package/dist/fields/LinkField/RepeatableLinkField/useRepeatableLinkField.d.ts +8 -1
- package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +5 -2
- package/dist/fields/LinkField/useLinkField.d.ts +7 -2
- package/dist/fields/MetadataTextField.d.ts +18 -0
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +92 -39
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +28759 -21920
- package/dist/slices/utils.d.ts +14 -2
- package/dist/zones/StaticZoneEditor.d.ts +6 -0
- package/package.json +6 -5
- package/dist/core/service/teamSpace.d.ts +0 -48
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Document, type TextContent } from "@prismicio/types-internal/lib/content";
|
|
3
|
+
import type { StaticCustomType, Text } from "@prismicio/types-internal/lib/customtypes";
|
|
4
|
+
import { type MetadataType } from "../core/service";
|
|
5
|
+
interface MetadataTextFieldProps {
|
|
6
|
+
content: TextContent | undefined;
|
|
7
|
+
documentId: string;
|
|
8
|
+
documentContent: Document;
|
|
9
|
+
documentCustomType: StaticCustomType;
|
|
10
|
+
documentLocale: string;
|
|
11
|
+
field: Text;
|
|
12
|
+
id: string;
|
|
13
|
+
metadataFieldType: MetadataType;
|
|
14
|
+
onContentChange: (content: TextContent | undefined) => void;
|
|
15
|
+
readOnly: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function MetadataTextField(props: MetadataTextFieldProps): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -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" | "
|
|
6
|
+
type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
7
7
|
content: {
|
|
8
8
|
text: string;
|
|
9
9
|
} & {
|
|
@@ -56,7 +56,7 @@ declare const _default: {
|
|
|
56
56
|
} | {
|
|
57
57
|
start: number;
|
|
58
58
|
end: number;
|
|
59
|
-
type: "
|
|
59
|
+
type: "strong" | "em" | "list-item";
|
|
60
60
|
})[] | undefined;
|
|
61
61
|
};
|
|
62
62
|
} & {
|
|
@@ -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" | "
|
|
67
|
+
type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
68
68
|
content: {
|
|
69
69
|
text: string;
|
|
70
70
|
} & {
|
|
@@ -117,7 +117,7 @@ declare const _default: {
|
|
|
117
117
|
} | {
|
|
118
118
|
start: number;
|
|
119
119
|
end: number;
|
|
120
|
-
type: "
|
|
120
|
+
type: "strong" | "em" | "list-item";
|
|
121
121
|
})[] | undefined;
|
|
122
122
|
};
|
|
123
123
|
} & {
|
|
@@ -12,6 +12,6 @@ import { Link } from "./Link/Link";
|
|
|
12
12
|
import { default as OrderedList } from "./OrderedList/OrderedList";
|
|
13
13
|
import { default as Paragraph } from "./Paragraph/Paragraph";
|
|
14
14
|
export declare const MarkExtensions: (import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Link/LinkModel").LinkExtension | import("./Label/LabelModel").LabelExtension)[];
|
|
15
|
-
export type MarkExtensionName = typeof MarkExtensions[number]["name"];
|
|
15
|
+
export type MarkExtensionName = (typeof MarkExtensions)[number]["name"];
|
|
16
16
|
export declare function getAllExtensions(nodeTypes?: Set<RichTextNodeType>): WidgetExtension[];
|
|
17
17
|
export { Bold, BulletList, CodeBlock, Embed, Heading, Image, Italic, Label, Link, OrderedList, Paragraph, };
|