@potok-web-framework/core 0.10.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.
@@ -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-CP6LDtpX.mjs";
3
- import { n as registerComponent } from "./register-component-B92kGFqC.mjs";
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,7 +1,7 @@
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-CP6LDtpX.mjs";
4
- import { r as Show, t as isRegisteredComponentElement } from "./register-component-B92kGFqC.mjs";
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";
@@ -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-CP6LDtpX.mjs";
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/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-CP6LDtpX.mjs";
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.10.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",