ziex 0.1.0-dev.606 → 0.1.0-dev.618

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.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/index.ts
2
2
  var zx = {
3
3
  name: "zx",
4
- version: "0.1.0-dev.606",
4
+ version: "0.1.0-dev.618",
5
5
  description: "ZX is a framework for building web applications with Zig.",
6
6
  repository: "https://github.com/nurulhudaapon/zx",
7
7
  fingerprint: 14616285862371232000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziex",
3
- "version": "0.1.0-dev.606",
3
+ "version": "0.1.0-dev.618",
4
4
  "description": "ZX is a framework for building web applications with Zig.",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/wasm/index.js CHANGED
@@ -437,13 +437,15 @@ class ZxBridge {
437
437
  bridgeRef.current?.wsClose(wsId, code, reasonPtr, reasonLen);
438
438
  },
439
439
  _ce: (id) => {
440
- const el = document.createElement(TAG_NAMES[id]);
440
+ const tagName = TAG_NAMES[id];
441
+ const el = id >= SVG_TAG_START_INDEX ? document.createElementNS("http://www.w3.org/2000/svg", tagName) : document.createElement(tagName);
441
442
  return storeValueGetRef(el);
442
443
  }
443
444
  }
444
445
  };
445
446
  }
446
447
  }
448
+ var SVG_TAG_START_INDEX = 140;
447
449
  var TAG_NAMES = [
448
450
  "aside",
449
451
  "fragment",
@@ -485,6 +487,7 @@ var TAG_NAMES = [
485
487
  "menu",
486
488
  "main",
487
489
  "p",
490
+ "picture",
488
491
  "pre",
489
492
  "a",
490
493
  "abbr",
package/wasm/init.js CHANGED
@@ -437,13 +437,15 @@ class ZxBridge {
437
437
  bridgeRef.current?.wsClose(wsId, code, reasonPtr, reasonLen);
438
438
  },
439
439
  _ce: (id) => {
440
- const el = document.createElement(TAG_NAMES[id]);
440
+ const tagName = TAG_NAMES[id];
441
+ const el = id >= SVG_TAG_START_INDEX ? document.createElementNS("http://www.w3.org/2000/svg", tagName) : document.createElement(tagName);
441
442
  return storeValueGetRef(el);
442
443
  }
443
444
  }
444
445
  };
445
446
  }
446
447
  }
448
+ var SVG_TAG_START_INDEX = 140;
447
449
  var TAG_NAMES = [
448
450
  "aside",
449
451
  "fragment",
@@ -485,6 +487,7 @@ var TAG_NAMES = [
485
487
  "menu",
486
488
  "main",
487
489
  "p",
490
+ "picture",
488
491
  "pre",
489
492
  "a",
490
493
  "abbr",