@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
package/dist/esm/index.js
CHANGED
|
@@ -1766,8 +1766,8 @@ var SiteName = styled('span')(function (_a) {
|
|
|
1766
1766
|
});
|
|
1767
1767
|
|
|
1768
1768
|
var Link = function (_a) {
|
|
1769
|
-
var id = _a.id, image = _a.image, title = _a.title, description = _a.description, siteName = _a.siteName, sx = _a.sx, props = __rest(_a, ["id", "image", "title", "description", "siteName", "sx"]);
|
|
1770
|
-
return (jsxRuntime.exports.jsxs(RootLink, __assign({ id: id, target:
|
|
1769
|
+
var id = _a.id, image = _a.image, title = _a.title, description = _a.description, siteName = _a.siteName, href = _a.href, sx = _a.sx, props = __rest(_a, ["id", "image", "title", "description", "siteName", "href", "sx"]);
|
|
1770
|
+
return (jsxRuntime.exports.jsxs(RootLink, __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));
|
|
1771
1771
|
};
|
|
1772
1772
|
|
|
1773
1773
|
var RootCheckList = styled('div', {
|
|
@@ -1865,7 +1865,7 @@ var ParagraphNode = function (_a) {
|
|
|
1865
1865
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Paragraph$1 = _a.Paragraph;
|
|
1866
1866
|
var text = data.text;
|
|
1867
1867
|
var _b = Container$1 || {}, sx = _b.sx, containerProps = __rest(_b, ["sx"]);
|
|
1868
|
-
return (jsxRuntime.exports.jsx(Container, __assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Paragraph, __assign({ id: ForkIdWithType(id, type) }, Paragraph$1, { children: jsxRuntime.exports.jsx(RecursiveNode, { html: text, id: id }) })) }), id));
|
|
1868
|
+
return (jsxRuntime.exports.jsx(Container, __assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Paragraph, __assign({ id: ForkIdWithType(id, type) }, Paragraph$1, { children: jsxRuntime.exports.jsx(RecursiveNode, { html: text || '', id: id }) })) }), id));
|
|
1869
1869
|
};
|
|
1870
1870
|
|
|
1871
1871
|
var HeaderNode = function (_a) {
|
|
@@ -1900,7 +1900,7 @@ var ImageNode = function (_a) {
|
|
|
1900
1900
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Image$1 = _a.Image;
|
|
1901
1901
|
var file = data.file, caption = data.caption, withBorder = data.withBorder, stretched = data.stretched, withBackground = data.withBackground;
|
|
1902
1902
|
var _b = Container$1 || {}, sx = _b.sx, containerProps = __rest(_b, ["sx"]);
|
|
1903
|
-
return (jsxRuntime.exports.jsx(Container, __assign({ stretched: stretched, sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Image, __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));
|
|
1903
|
+
return (jsxRuntime.exports.jsx(Container, __assign({ stretched: stretched, sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Image, __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));
|
|
1904
1904
|
};
|
|
1905
1905
|
|
|
1906
1906
|
var TableNode = function (_a) {
|
|
@@ -1948,10 +1948,11 @@ var CodeNode = function (_a) {
|
|
|
1948
1948
|
};
|
|
1949
1949
|
|
|
1950
1950
|
var LinkNode = function (_a) {
|
|
1951
|
+
var _b;
|
|
1951
1952
|
var type = _a.type, data = _a.data, id = _a.id, Container$1 = _a.Container, Link$1 = _a.Link;
|
|
1952
|
-
var
|
|
1953
|
-
var
|
|
1954
|
-
return (jsxRuntime.exports.jsx(Container, __assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Link, __assign({ id: ForkIdWithType(id, type), image: image.url, title: title, description: description, siteName: site_name, href: link }, Link$1)) }), id));
|
|
1953
|
+
var _c = data.meta, image = _c.image, title = _c.title, description = _c.description, site_name = _c.site_name, link = data.link;
|
|
1954
|
+
var _d = Container$1 || {}, sx = _d.sx, containerProps = __rest(_d, ["sx"]);
|
|
1955
|
+
return (jsxRuntime.exports.jsx(Container, __assign({ sx: sx }, containerProps, { children: jsxRuntime.exports.jsx(Link, __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));
|
|
1955
1956
|
};
|
|
1956
1957
|
|
|
1957
1958
|
var DEFAULT_GAP = 10;
|