elements-kit 0.25.0 → 0.26.0
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.
|
@@ -2,7 +2,7 @@ import { _ as onCleanup, u as effect, x as signal } from "./lib-DYypKhxk.mjs";
|
|
|
2
2
|
import "./signals/index.mjs";
|
|
3
3
|
import { r as getRenderer, t as createElement } from "./element-Bwxltm6M.mjs";
|
|
4
4
|
import { Slot } from "./slot.mjs";
|
|
5
|
-
import { HMR_CELLS_SLOT } from "./integrations/hmr-slot.mjs";
|
|
5
|
+
import { HMR_CELLS_SLOT, HMR_SLOT } from "./integrations/hmr-slot.mjs";
|
|
6
6
|
//#region src/jsx-runtime/hot.ts
|
|
7
7
|
const store = globalThis;
|
|
8
8
|
const cells = store[HMR_CELLS_SLOT] ??= /* @__PURE__ */ new WeakMap();
|
|
@@ -19,7 +19,7 @@ function cellFor(type) {
|
|
|
19
19
|
* and non-DOM renderers fall straight through.
|
|
20
20
|
*/
|
|
21
21
|
function createHotElement(type, allProps = {}) {
|
|
22
|
-
if (typeof type !== "function" || getRenderer()) return createElement(type, allProps);
|
|
22
|
+
if (typeof type !== "function" || getRenderer() || !globalThis[HMR_SLOT]) return createElement(type, allProps);
|
|
23
23
|
const cell = cellFor(type);
|
|
24
24
|
const slot = new Slot();
|
|
25
25
|
effect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createElement } from "../element-Bwxltm6M.mjs";
|
|
2
2
|
import { render } from "../render.mjs";
|
|
3
3
|
import { HMR_SLOT } from "./hmr-slot.mjs";
|
|
4
|
-
import { n as updateCells } from "../hot-
|
|
4
|
+
import { n as updateCells } from "../hot-DXg5S-Va.mjs";
|
|
5
5
|
//#region src/integrations/hmr-runtime.ts
|
|
6
6
|
const slot = globalThis;
|
|
7
7
|
const records = /* @__PURE__ */ new Set();
|
package/dist/jsx-runtime/dev.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as Fragment } from "../fragment-DbiYZ5rL.mjs";
|
|
2
|
-
import { t as createHotElement } from "../hot-
|
|
2
|
+
import { t as createHotElement } from "../hot-DXg5S-Va.mjs";
|
|
3
3
|
import "./index.mjs";
|
|
4
4
|
export { Fragment, createHotElement as h, createHotElement as jsx, createHotElement as jsxDEV, createHotElement as jsxs };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elements-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.26.0",
|
|
5
5
|
"description": "A lightweight reactive UI library that transforms native HTMLElements into reactive components with signals. Ideal for framework-agnostic applications and web components.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"webcomponents",
|