@launchpad-ui/markdown
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -47,2 +47,3 @@ // ../../scripts/react-shim.js | ||
// src/Markdown.tsx | ||
import { jsx } from "react/jsx-runtime"; | ||
DOMPurify2.addHook("afterSanitizeAttributes", (node) => { | ||
@@ -65,3 +66,3 @@ if (isAnchorNode(node) && node.target.toLowerCase() === "_blank") { | ||
const classes = cx("Markdown", className); | ||
return /* @__PURE__ */ React.createElement(Container, { | ||
return /* @__PURE__ */ jsx(Container, { | ||
className: classes, | ||
@@ -68,0 +69,0 @@ dangerouslySetInnerHTML: { |
@@ -20,3 +20,6 @@ "use strict"; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -77,2 +80,3 @@ | ||
// src/Markdown.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
import_isomorphic_dompurify2.default.addHook("afterSanitizeAttributes", (node) => { | ||
@@ -95,3 +99,3 @@ if (isAnchorNode(node) && node.target.toLowerCase() === "_blank") { | ||
const classes = (0, import_clsx.default)("Markdown", className); | ||
return /* @__PURE__ */ React.createElement(Container, { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, { | ||
className: classes, | ||
@@ -98,0 +102,0 @@ dangerouslySetInnerHTML: { |
{ | ||
"name": "@launchpad-ui/markdown", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"status": "beta", | ||
@@ -35,7 +35,6 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/dompurify": "^2.2.9", | ||
"@types/marked": "^4.0.3", | ||
@@ -42,0 +41,0 @@ "react": "^18.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18470
3
200