@potok-web-framework/core 0.9.0 → 0.11.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.
- package/dist/{get-component-instance-id-CP6LDtpX.mjs → get-component-instance-id-DZpM6tZE.mjs} +2 -2
- package/dist/hmr.mjs +2 -2
- package/dist/index.mjs +4 -3
- package/dist/{register-component-B92kGFqC.mjs → register-component-DNEe4xbV.mjs} +1 -1
- package/dist/server.mjs +2 -1
- package/dist/store.mjs +1 -1
- package/package.json +2 -3
package/dist/{get-component-instance-id-CP6LDtpX.mjs → get-component-instance-id-DZpM6tZE.mjs}
RENAMED
|
@@ -62,7 +62,7 @@ var RegisteredComponent = class {
|
|
|
62
62
|
this.cachedInstances.delete(e);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
const HMR_COMPONENTS_REGISTRY = new class {
|
|
65
|
+
const HMR_COMPONENTS_REGISTRY = /* @__PURE__ */ new class {
|
|
66
66
|
components = /* @__PURE__ */ new Map();
|
|
67
67
|
getModuleComponentsMap(e) {
|
|
68
68
|
return this.components.has(e) || this.components.set(e, /* @__PURE__ */ new Map()), this.components.get(e);
|
|
@@ -88,7 +88,7 @@ const HMR_COMPONENTS_REGISTRY = new class {
|
|
|
88
88
|
let n = this.getRegisteredComponent(e, t);
|
|
89
89
|
if (n) for (let e of n.subscribers) e(n);
|
|
90
90
|
}
|
|
91
|
-
}(), HMR_STATE_CACHE = /* @__PURE__ */ new Map(), HMR_STYLES = createSignal({ styles: [] });
|
|
91
|
+
}(), HMR_STATE_CACHE = /* @__PURE__ */ new Map(), HMR_STYLES = /* @__PURE__ */ createSignal({ styles: [] });
|
|
92
92
|
function getComponentInstanceId(e) {
|
|
93
93
|
let t = [], n = e;
|
|
94
94
|
for (; n;) t.push(n.index), n = n.parentBlock ? n.parentBlock.context : null;
|
package/dist/hmr.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as createSignal } from "./lib-node-DyXPvvVQ.mjs";
|
|
2
|
-
import { i as HMR_STYLES } from "./get-component-instance-id-
|
|
3
|
-
import { n as registerComponent } from "./register-component-
|
|
2
|
+
import { i as HMR_STYLES } from "./get-component-instance-id-DZpM6tZE.mjs";
|
|
3
|
+
import { n as registerComponent } from "./register-component-DNEe4xbV.mjs";
|
|
4
4
|
function registerStyle(n, r) {
|
|
5
5
|
let i = HMR_STYLES.styles.find((e) => e.id === n);
|
|
6
6
|
i ? i.css = r : HMR_STYLES.styles = [...HMR_STYLES.styles, createSignal({
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { a as deepTrack, c as untrack, i as createSignal, l as LibBlock, n as batch, o as getSignal, r as createEffect, s as isSignal } from "./lib-node-DyXPvvVQ.mjs";
|
|
2
2
|
import { i as mergeContext, n as text, t as normalizeChildren } from "./normalize-children-BWrn16R7.mjs";
|
|
3
|
-
import { a as Lifecycle, i as HMR_STYLES, o as LibContextReader } from "./get-component-instance-id-
|
|
4
|
-
import { r as Show, t as isRegisteredComponentElement } from "./register-component-
|
|
3
|
+
import { a as Lifecycle, i as HMR_STYLES, o as LibContextReader } from "./get-component-instance-id-DZpM6tZE.mjs";
|
|
4
|
+
import { r as Show, t as isRegisteredComponentElement } from "./register-component-DNEe4xbV.mjs";
|
|
5
5
|
import { n as isPotokPreloader, t as htmlElement } from "./html-element-DBut4UCf.mjs";
|
|
6
6
|
import { t as fragment } from "./fragment-CXNEPBWB.mjs";
|
|
7
7
|
import { i as PRELOAD_SCRIPTS_SCRIPT_ID, n as HYDRATION_STATE_SCRIPT_ID } from "./constants-Bxn0R4hW.mjs";
|
|
8
8
|
import { t as escapeFromScriptTag } from "./escape-from-script-tag-CRT2evI1.mjs";
|
|
9
9
|
import { n as serializeWithTypes } from "./serialization-qOayQbjE.mjs";
|
|
10
|
+
import { clientEntry } from "virtual:client-variables";
|
|
10
11
|
function ClientOnly(e) {
|
|
11
12
|
return LibContextReader({ children: (t) => Show({
|
|
12
13
|
get when() {
|
|
@@ -109,7 +110,7 @@ function FooterScripts() {
|
|
|
109
110
|
})), t.push(htmlElement({
|
|
110
111
|
tag: "script",
|
|
111
112
|
type: "module",
|
|
112
|
-
src:
|
|
113
|
+
src: clientEntry
|
|
113
114
|
})), fragment({ children: t });
|
|
114
115
|
} });
|
|
115
116
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as untrack, i as createSignal, l as LibBlock, r as createEffect } from "./lib-node-DyXPvvVQ.mjs";
|
|
2
2
|
import { i as mergeContext, t as normalizeChildren } from "./normalize-children-BWrn16R7.mjs";
|
|
3
|
-
import { a as Lifecycle, n as HMR_COMPONENTS_REGISTRY, o as LibContextReader, t as getComponentInstanceId } from "./get-component-instance-id-
|
|
3
|
+
import { a as Lifecycle, n as HMR_COMPONENTS_REGISTRY, o as LibContextReader, t as getComponentInstanceId } from "./get-component-instance-id-DZpM6tZE.mjs";
|
|
4
4
|
import { t as fragment } from "./fragment-CXNEPBWB.mjs";
|
|
5
5
|
var ShowClass = class extends LibBlock {
|
|
6
6
|
constructor(t, n) {
|
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { i as createSignal, n as batch } from "./lib-node-DyXPvvVQ.mjs";
|
|
2
2
|
import { t as escapeFromScriptTag } from "./escape-from-script-tag-CRT2evI1.mjs";
|
|
3
3
|
import { n as normalizeCssPropertyValue, t as normalizeCssPropertyName } from "./css-BercB0Kp.mjs";
|
|
4
|
+
import { clientDependencies } from "virtual:client-variables";
|
|
4
5
|
import path from "path";
|
|
5
6
|
async function bootstrapApp(e) {
|
|
6
7
|
let t = e.port ?? 3e3, n = Bun.serve({
|
|
@@ -78,7 +79,7 @@ var ServerNode = class {
|
|
|
78
79
|
}
|
|
79
80
|
throw Error("Not implemented");
|
|
80
81
|
}
|
|
81
|
-
}, clientDependencyScripts =
|
|
82
|
+
}, clientDependencyScripts = clientDependencies.map((t) => createSignal({
|
|
82
83
|
path: t,
|
|
83
84
|
isLoaded: !1
|
|
84
85
|
}));
|
package/dist/store.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as deepTrack, i as createSignal, l as LibBlock, n as batch, r as createEffect } from "./lib-node-DyXPvvVQ.mjs";
|
|
2
2
|
import { i as mergeContext, r as normalizeArray, t as normalizeChildren } from "./normalize-children-BWrn16R7.mjs";
|
|
3
|
-
import { a as Lifecycle, o as LibContextReader, r as HMR_STATE_CACHE, t as getComponentInstanceId } from "./get-component-instance-id-
|
|
3
|
+
import { a as Lifecycle, o as LibContextReader, r as HMR_STATE_CACHE, t as getComponentInstanceId } from "./get-component-instance-id-DZpM6tZE.mjs";
|
|
4
4
|
import { t as isPureObject } from "./is-pure-object-s_MkQp1w.mjs";
|
|
5
5
|
var ContextProvider = class extends LibBlock {
|
|
6
6
|
constructor(e, t, n) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@potok-web-framework/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./dist/index.mjs",
|
|
@@ -31,8 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "vite build",
|
|
34
|
-
"build:watch": "vite build --watch"
|
|
35
|
-
"prepublishOnly": "bun run build"
|
|
34
|
+
"build:watch": "vite build --watch"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@types/bun": "^1.3.6",
|