esm-styles 0.1.11 → 0.1.12

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,4 +1,15 @@
1
1
  import * as utils from './cartesian.js';
2
+ const svgTags = [
3
+ 'circle',
4
+ 'ellipse',
5
+ 'g',
6
+ 'line',
7
+ 'polygon',
8
+ 'polyline',
9
+ 'path',
10
+ 'rect',
11
+ 'text',
12
+ ];
2
13
  // List of standard HTML tags (not exhaustive, but covers common cases)
3
14
  const HTML_TAGS = new Set([
4
15
  'html',
@@ -135,6 +146,7 @@ const HTML_TAGS = new Set([
135
146
  'strike',
136
147
  'tt',
137
148
  'xmp',
149
+ ...svgTags,
138
150
  ]);
139
151
  const isHtmlTag = (key) => {
140
152
  // Only match if the key is a plain tag name (no underscores, no special chars)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esm-styles",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "A library for working with ESM styles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",