@wulperstudio/editor-render 0.0.10-beta → 0.0.12-beta
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/cjs/dist/components/Link/index.d.ts +1 -1
- package/dist/cjs/index.js +8 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/dist/components/Link/index.d.ts +1 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -7,5 +7,5 @@ interface LinkProps extends LinkRootProps {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
siteName?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const Link: ({ id, image, title, description, siteName, sx, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Link: ({ id, image, title, description, siteName, href, sx, ...props }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
package/dist/cjs/index.js
CHANGED
|
@@ -1776,8 +1776,8 @@ var SiteName = material.styled('span')(function (_a) {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
|
|
1778
1778
|
var Link = function (_a) {
|
|
1779
|
-
var id = _a.id, image = _a.image, title = _a.title, description = _a.description, siteName = _a.siteName, sx = _a.sx, props = tslib.__rest(_a, ["id", "image", "title", "description", "siteName", "sx"]);
|
|
1780
|
-
return (jsxRuntime.exports.jsxs(RootLink, tslib.__assign({ id: id, target:
|
|
1779
|
+
var id = _a.id, image = _a.image, title = _a.title, description = _a.description, siteName = _a.siteName, href = _a.href, sx = _a.sx, props = tslib.__rest(_a, ["id", "image", "title", "description", "siteName", "href", "sx"]);
|
|
1780
|
+
return (jsxRuntime.exports.jsxs(RootLink, tslib.__assign({ as: href ? 'a' : 'div', id: id, href: href || undefined, target: href ? '_blank' : undefined, rel: href ? 'nofollow noindex noreferrer' : undefined, sx: sx }, props, { children: [jsxRuntime.exports.jsx(ImageFloat, { image: image }), jsxRuntime.exports.jsx(Title, { children: title }), jsxRuntime.exports.jsx(Description, { children: description }), jsxRuntime.exports.jsx(SiteName, { children: siteName })] }), id));
|
|
1781
1781
|
};
|
|
1782
1782
|
|
|
1783
1783
|
var RootCheckList = material.styled('div', {
|
|
@@ -1875,7 +1875,7 @@ var ParagraphNode = function (_a) {
|
|
|
1875
1875
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Paragraph$1 = _a.Paragraph;
|
|
1876
1876
|
var text = data.text;
|
|
1877
1877
|
var _b = Container$1 || {}, sx = _b.sx, containerProps = tslib.__rest(_b, ["sx"]);
|
|
1878
|
-
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Paragraph, tslib.__assign({ id: ForkIdWithType(id, type) }, Paragraph$1, { children: jsxRuntime.exports.jsx(RecursiveNode, { html: text, id: id }) })) }), id));
|
|
1878
|
+
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Paragraph, tslib.__assign({ id: ForkIdWithType(id, type) }, Paragraph$1, { children: jsxRuntime.exports.jsx(RecursiveNode, { html: text || '', id: id }) })) }), id));
|
|
1879
1879
|
};
|
|
1880
1880
|
|
|
1881
1881
|
var HeaderNode = function (_a) {
|
|
@@ -1910,7 +1910,7 @@ var ImageNode = function (_a) {
|
|
|
1910
1910
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Image$1 = _a.Image;
|
|
1911
1911
|
var file = data.file, caption = data.caption, withBorder = data.withBorder, stretched = data.stretched, withBackground = data.withBackground;
|
|
1912
1912
|
var _b = Container$1 || {}, sx = _b.sx, containerProps = tslib.__rest(_b, ["sx"]);
|
|
1913
|
-
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ stretched: stretched, sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Image, tslib.__assign({ id: ForkIdWithType(id, type), src: file === null || file === void 0 ? void 0 : file.url, alt: caption, caption: caption, withBorder: withBorder, stretched: stretched, withBackground: withBackground }, Image$1), ForkIdWithType(id, type)) }), id));
|
|
1913
|
+
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ stretched: stretched, sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Image, tslib.__assign({ id: ForkIdWithType(id, type), src: (file === null || file === void 0 ? void 0 : file.url) || '', alt: caption, caption: caption, withBorder: withBorder, stretched: stretched, withBackground: withBackground }, Image$1), ForkIdWithType(id, type)) }), id));
|
|
1914
1914
|
};
|
|
1915
1915
|
|
|
1916
1916
|
var TableNode = function (_a) {
|
|
@@ -1958,10 +1958,11 @@ var CodeNode = function (_a) {
|
|
|
1958
1958
|
};
|
|
1959
1959
|
|
|
1960
1960
|
var LinkNode = function (_a) {
|
|
1961
|
+
var _b;
|
|
1961
1962
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Link$1 = _a.Link;
|
|
1962
|
-
var
|
|
1963
|
-
var
|
|
1964
|
-
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Link, tslib.__assign({ id: ForkIdWithType(id, type), image: image.url, title: title, description: description, siteName: site_name, href: link }, Link$1)) }), id));
|
|
1963
|
+
var _c = data.meta, image = _c.image, title = _c.title, description = _c.description, site_name = _c.site_name, link = data.link;
|
|
1964
|
+
var _d = Container$1 || {}, sx = _d.sx, containerProps = tslib.__rest(_d, ["sx"]);
|
|
1965
|
+
return (jsxRuntime.exports.jsx(Container, tslib.__assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Link, tslib.__assign({ id: ForkIdWithType(id, type), image: (_b = image === null || image === void 0 ? void 0 : image.url) !== null && _b !== void 0 ? _b : '', title: title !== null && title !== void 0 ? title : '', description: description !== null && description !== void 0 ? description : '', siteName: site_name, href: link !== null && link !== void 0 ? link : '' }, Link$1)) }), id));
|
|
1965
1966
|
};
|
|
1966
1967
|
|
|
1967
1968
|
var DEFAULT_GAP = 10;
|