@prismicio/svelte 2.0.0-pr.36.576a93f → 2.0.0-pr.36.9538bb9
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/types.d.ts +5 -5
- package/package.json +1 -1
- package/src/types.ts +5 -5
package/dist/types.d.ts
CHANGED
|
@@ -25,11 +25,11 @@ export type RichTextComponents = {
|
|
|
25
25
|
oListItem?: RichTextComponent<RTOListItemNode> | ComponentShorthand;
|
|
26
26
|
list?: RichTextComponent<RTListNode> | ComponentShorthand;
|
|
27
27
|
oList?: RichTextComponent<RTOListNode> | ComponentShorthand;
|
|
28
|
-
image?: RichTextComponent<RTImageNode> |
|
|
29
|
-
embed?: RichTextComponent<RTEmbedNode> |
|
|
30
|
-
hyperlink?: RichTextComponent<RTLinkNode> |
|
|
31
|
-
label?: RichTextComponent<RTLabelNode> |
|
|
32
|
-
span?: RichTextComponent<RTSpanNode
|
|
28
|
+
image?: RichTextComponent<RTImageNode> | HTMLAttributes<HTMLImageElement>;
|
|
29
|
+
embed?: RichTextComponent<RTEmbedNode> | HTMLAttributes<HTMLDivElement>;
|
|
30
|
+
hyperlink?: RichTextComponent<RTLinkNode> | HTMLAttributes<HTMLAnchorElement>;
|
|
31
|
+
label?: RichTextComponent<RTLabelNode> | HTMLAttributes<HTMLSpanElement>;
|
|
32
|
+
span?: RichTextComponent<RTSpanNode>;
|
|
33
33
|
};
|
|
34
34
|
export type RichTextComponent<TNode extends RTAnyNode = RTAnyNode> = Component<RichTextComponentProps<TNode>>;
|
|
35
35
|
export type RichTextComponentProps<TNode extends RTAnyNode = RTAnyNode> = {
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -56,11 +56,11 @@ export type RichTextComponents = {
|
|
|
56
56
|
oListItem?: RichTextComponent<RTOListItemNode> | ComponentShorthand;
|
|
57
57
|
list?: RichTextComponent<RTListNode> | ComponentShorthand;
|
|
58
58
|
oList?: RichTextComponent<RTOListNode> | ComponentShorthand;
|
|
59
|
-
image?: RichTextComponent<RTImageNode> |
|
|
60
|
-
embed?: RichTextComponent<RTEmbedNode> |
|
|
61
|
-
hyperlink?: RichTextComponent<RTLinkNode> |
|
|
62
|
-
label?: RichTextComponent<RTLabelNode> |
|
|
63
|
-
span?: RichTextComponent<RTSpanNode
|
|
59
|
+
image?: RichTextComponent<RTImageNode> | HTMLAttributes<HTMLImageElement>;
|
|
60
|
+
embed?: RichTextComponent<RTEmbedNode> | HTMLAttributes<HTMLDivElement>;
|
|
61
|
+
hyperlink?: RichTextComponent<RTLinkNode> | HTMLAttributes<HTMLAnchorElement>;
|
|
62
|
+
label?: RichTextComponent<RTLabelNode> | HTMLAttributes<HTMLSpanElement>;
|
|
63
|
+
span?: RichTextComponent<RTSpanNode>;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
export type RichTextComponent<TNode extends RTAnyNode = RTAnyNode> = Component<
|