notion-blocks-chakra-ui
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -57,5 +57,5 @@ "use strict"; | ||
} | ||
return (react_1.default.createElement(react_2.chakra.span, __assign({ key: value.plain_text + idx, fontWeight: bold ? 'bold' : 'unset', fontStyle: italic ? 'italic' : 'unset', textDecoration: textDecoration, textColor: color !== 'default' ? color : 'unset' }, codeProps, props), text.link ? (react_1.default.createElement(react_2.Link, { href: 'https://test.com', isExternal: true, textDecoration: "underline" }, text.content)) : (text.content))); | ||
return (react_1.default.createElement(react_2.chakra.span, __assign({ key: value.plain_text + idx, fontWeight: bold ? 'bold' : 'unset', fontStyle: italic ? 'italic' : 'unset', textDecoration: textDecoration, textColor: color !== 'default' ? color : 'unset' }, codeProps, props), text.link ? (react_1.default.createElement(react_2.Link, { href: text.link.url, isExternal: true, textDecoration: "underline" }, text.content)) : (text.content))); | ||
}))); | ||
}; | ||
exports.NotionText = NotionText; |
@@ -51,4 +51,4 @@ var __assign = (this && this.__assign) || function () { | ||
} | ||
return (React.createElement(chakra.span, __assign({ key: value.plain_text + idx, fontWeight: bold ? 'bold' : 'unset', fontStyle: italic ? 'italic' : 'unset', textDecoration: textDecoration, textColor: color !== 'default' ? color : 'unset' }, codeProps, props), text.link ? (React.createElement(Link, { href: 'https://test.com', isExternal: true, textDecoration: "underline" }, text.content)) : (text.content))); | ||
return (React.createElement(chakra.span, __assign({ key: value.plain_text + idx, fontWeight: bold ? 'bold' : 'unset', fontStyle: italic ? 'italic' : 'unset', textDecoration: textDecoration, textColor: color !== 'default' ? color : 'unset' }, codeProps, props), text.link ? (React.createElement(Link, { href: text.link.url, isExternal: true, textDecoration: "underline" }, text.content)) : (text.content))); | ||
}))); | ||
}; |
{ | ||
"name": "notion-blocks-chakra-ui", | ||
"description": "Parse notion blocks from API to Chakra UI components", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"main": "./lib/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./lib/esm/index.js", |
65802