dune-react 0.0.14 → 0.0.15

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.
@@ -8,6 +8,7 @@ const MAX_WIDTH_MAP = {
8
8
  full: "max-w-none"
9
9
  };
10
10
  function sanitizeHtml(html) {
11
+ if (typeof html !== "string") return "";
11
12
  return html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").replace(/<iframe\b[^>]*>/gi, "").replace(/\bon\w+\s*=/gi, "data-removed=");
12
13
  }
13
14
  const RichText = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dune-react",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -15,7 +15,8 @@
15
15
  "preview-storybook": "npx http-server storybook-static",
16
16
  "build-storybook": "storybook build && cp -r skills storybook-static/skills",
17
17
  "deploy-storybook": "storybook-to-ghpages -- --existing-output-dir=storybook-static",
18
- "ondeploy": "pnpm build-storybook && pnpm deploy-storybook"
18
+ "ondeploy": "pnpm build-storybook && pnpm deploy-storybook",
19
+ "postpublish": "bash scripts/postpublish.sh"
19
20
  },
20
21
  "sideEffects": [
21
22
  "*.css"