ziko 0.47.1 → 0.47.2

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/ziko.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Sun Nov 09 2025 14:56:25 GMT+0100 (UTC+01:00)
5
+ Date : Sun Nov 09 2025 19:09:00 GMT+0100 (UTC+01:00)
6
6
  Git-Repo : https://github.com/zakarialaoui10/ziko.js
7
7
  Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
8
8
  Released under MIT License
@@ -1161,9 +1161,13 @@
1161
1161
  const __HYDRATION__ = {
1162
1162
  store : new Map(),
1163
1163
  index : 0,
1164
- register: function(node, component){
1165
- this.store.set(node, component);
1164
+ register: function(component){
1165
+ this.store.set(this.index++ , component);
1166
1166
  },
1167
+ reset(){
1168
+ this.index = 0;
1169
+ this.store.clear();
1170
+ }
1167
1171
 
1168
1172
  };
1169
1173
 
@@ -1276,7 +1280,7 @@
1276
1280
  // this.element.setAttribute('ziko-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
1277
1281
  // console.log({i : globalThis.__Ziko__.__HYDRATION__.index})
1278
1282
  // const index = globalThis.__Ziko__.__HYDRATION__.index
1279
- // this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
1283
+ this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index);
1280
1284
  globalThis.__Ziko__.__HYDRATION__.register(this.element, () => this);
1281
1285
  }
1282
1286
  globalThis.__Ziko__.__UI__.push(this);
package/dist/ziko.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Sun Nov 09 2025 14:56:25 GMT+0100 (UTC+01:00)
5
+ Date : Sun Nov 09 2025 19:09:00 GMT+0100 (UTC+01:00)
6
6
  Git-Repo : https://github.com/zakarialaoui10/ziko.js
7
7
  Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
8
8
  Released under MIT License
@@ -1155,9 +1155,13 @@ const __Config__ = {
1155
1155
  const __HYDRATION__ = {
1156
1156
  store : new Map(),
1157
1157
  index : 0,
1158
- register: function(node, component){
1159
- this.store.set(node, component);
1158
+ register: function(component){
1159
+ this.store.set(this.index++ , component);
1160
1160
  },
1161
+ reset(){
1162
+ this.index = 0;
1163
+ this.store.clear();
1164
+ }
1161
1165
 
1162
1166
  };
1163
1167
 
@@ -1270,7 +1274,7 @@ class UIElementCore extends UINode{
1270
1274
  // this.element.setAttribute('ziko-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
1271
1275
  // console.log({i : globalThis.__Ziko__.__HYDRATION__.index})
1272
1276
  // const index = globalThis.__Ziko__.__HYDRATION__.index
1273
- // this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
1277
+ this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index);
1274
1278
  globalThis.__Ziko__.__HYDRATION__.register(this.element, () => this);
1275
1279
  }
1276
1280
  globalThis.__Ziko__.__UI__.push(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziko",
3
- "version": "0.47.1",
3
+ "version": "0.47.2",
4
4
  "description": "A versatile JavaScript library offering a rich set of Hyperscript Based UI components, advanced mathematical utilities, interactivity ,animations, client side routing and more ...",
5
5
  "keywords": [
6
6
  "front-end",
@@ -1,8 +1,12 @@
1
1
  export const __HYDRATION__ = {
2
2
  store : new Map(),
3
3
  index : 0,
4
- register: function(node, component){
5
- this.store.set(node, component)
4
+ register: function(component){
5
+ this.store.set(this.index++ , component)
6
6
  },
7
+ reset(){
8
+ this.index = 0;
9
+ this.store.clear()
10
+ }
7
11
 
8
12
  }
@@ -73,7 +73,7 @@ class UIElementCore extends UINode{
73
73
  // this.element.setAttribute('ziko-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
74
74
  // console.log({i : globalThis.__Ziko__.__HYDRATION__.index})
75
75
  // const index = globalThis.__Ziko__.__HYDRATION__.index
76
- // this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
76
+ this.element.setAttribute('data-hydration-index', globalThis.__Ziko__.__HYDRATION__.index)
77
77
  globalThis.__Ziko__.__HYDRATION__.register(this.element, () => this)
78
78
  }
79
79
  globalThis.__Ziko__.__UI__.push(this)