@nerimity/html-embed 1.1.5 → 1.1.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiHA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;IAEtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwHA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;IAEtC"}
package/dist/index.js CHANGED
@@ -6,9 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.htmlToJson = htmlToJson;
7
7
  const htm_1 = __importDefault(require("htm"));
8
8
  const css_1 = __importDefault(require("css"));
9
- const allowedTags = ['div', 'img', 'span', 'strong', 'a', "style"];
9
+ const allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'img', 'span', 'strong', 'a', "style", "p", "ul", "li", "ol", "table", "thead", "tbody", "tr", "td", "th", "blockquote", "pre", "br"];
10
10
  const allowedAttributes = ["href", "src", "color", "style", "class"];
11
11
  const allowedCssProperties = [
12
+ "background-clip",
13
+ "-webkit-background-clip",
14
+ "-webkit-text-fill-color",
12
15
  "display",
13
16
  "position",
14
17
  "inset",
@@ -49,6 +52,7 @@ const allowedCssProperties = [
49
52
  "marginLeft",
50
53
  "marginRight",
51
54
  "flex",
55
+ "flexWrap",
52
56
  "flexShrink",
53
57
  "flexDirection",
54
58
  "gap",
@@ -69,7 +73,12 @@ const allowedCssProperties = [
69
73
  "verticalAlign",
70
74
  "lineHeight",
71
75
  "backdropFilter",
72
- "backgroundClip"
76
+ "backgroundClip",
77
+ "cursor",
78
+ "overflowX",
79
+ "overflowY",
80
+ "userSelect",
81
+ "pointerEvents",
73
82
  ];
74
83
  function h(tag, props, ...children) {
75
84
  // check if tag is safe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nerimity/html-embed",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -2,9 +2,12 @@ import htm from 'htm';
2
2
  import css from 'css';
3
3
 
4
4
 
5
- const allowedTags = ['div', 'img', 'span', 'strong', 'a', "style"]
5
+ const allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'img', 'span', 'strong', 'a', "style", "p", "ul", "li", "ol", "table", "thead", "tbody", "tr", "td", "th", "blockquote", "pre", "br"]
6
6
  const allowedAttributes = ["href", "src", "color", "style", "class"]
7
7
  const allowedCssProperties = [
8
+ "background-clip",
9
+ "-webkit-background-clip",
10
+ "-webkit-text-fill-color",
8
11
  "display",
9
12
  "position",
10
13
  "inset",
@@ -45,6 +48,7 @@ const allowedCssProperties = [
45
48
  "marginLeft",
46
49
  "marginRight",
47
50
  "flex",
51
+ "flexWrap",
48
52
  "flexShrink",
49
53
  "flexDirection",
50
54
  "gap",
@@ -65,9 +69,12 @@ const allowedCssProperties = [
65
69
  "verticalAlign",
66
70
  "lineHeight",
67
71
  "backdropFilter",
68
- "backgroundClip"
69
-
70
-
72
+ "backgroundClip",
73
+ "cursor",
74
+ "overflowX",
75
+ "overflowY",
76
+ "userSelect",
77
+ "pointerEvents",
71
78
  ]
72
79
 
73
80