voodoojs 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.
- package/README.md +1 -1
- package/dist/{chunk-H64IUSGJ.js → chunk-5GWN7E6N.js} +4 -4
- package/dist/{chunk-3JV2AYK6.js → chunk-EYGQD7OP.js} +3 -3
- package/dist/{chunk-H3RGM7PR.js → chunk-FBQPFIHZ.js} +4 -4
- package/dist/{chunk-HW75QJLQ.js → chunk-KAS77SGY.js} +5 -5
- package/dist/{chunk-OUEXXXTU.js → chunk-NUBOX6YQ.js} +23 -8
- package/dist/{chunk-EYNFAYEV.js → chunk-OTRGHJIJ.js} +4 -4
- package/dist/{chunk-QWQPKMUH.js → chunk-PBZCYF2Y.js} +13 -13
- package/dist/{chunk-TFDCAZYU.js → chunk-QL2GIGVQ.js} +4 -4
- package/dist/{chunk-WGMUFP5Q.js → chunk-TZJSPNLV.js} +5 -5
- package/dist/{chunk-IK4MQQTO.js → chunk-VQEJ4DTE.js} +6 -6
- package/dist/{chunk-PXUSD6TT.js → chunk-WIXAZJYS.js} +3 -3
- package/dist/essential.cjs +14 -2
- package/dist/essential.js +10 -10
- package/dist/gpu.cjs +1 -1
- package/dist/gpu.js +10 -10
- package/dist/http.cjs +1 -1
- package/dist/http.js +5 -5
- package/dist/index.cjs +53 -5
- package/dist/index.js +56 -23
- package/dist/reactivity.cjs +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/socket.cjs +1 -1
- package/dist/socket.js +9 -9
- package/dist/style-ZM3TAT4K.js +5 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +2 -2
- package/dist/voodoo.core.js +14 -4
- package/dist/voodoo.core.min.js +13 -13
- package/dist/voodoo.full.js +55 -8
- package/dist/voodoo.full.min.js +37 -37
- package/dist/voodoo.js +14 -4
- package/dist/voodoo.min.js +21 -21
- package/package.json +1 -1
- package/dist/style-NW74ROC5.js +0 -5
package/dist/voodoo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.
|
|
2
|
+
* Voodoo.js v0.11.0
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -2962,13 +2962,25 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
2962
2962
|
var componentAliases = /* @__PURE__ */ new Map();
|
|
2963
2963
|
var started = false;
|
|
2964
2964
|
var observer = null;
|
|
2965
|
+
var startHooks = [];
|
|
2966
|
+
function runPhase(target, after) {
|
|
2967
|
+
for (const hook of startHooks) {
|
|
2968
|
+
try {
|
|
2969
|
+
hook(target, after);
|
|
2970
|
+
} catch (error) {
|
|
2971
|
+
console.error("[Voodoo] a start hook failed", error);
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2965
2975
|
function start(root) {
|
|
2966
2976
|
var _a2;
|
|
2967
2977
|
if (typeof document === "undefined") return;
|
|
2968
2978
|
const target = (_a2 = root != null ? root : config.root) != null ? _a2 : document.body;
|
|
2969
2979
|
if (!target) return;
|
|
2970
2980
|
Object.assign(allowedGlobals, config.globals);
|
|
2981
|
+
runPhase(target, false);
|
|
2971
2982
|
walk(target, rootScope);
|
|
2983
|
+
runPhase(target, true);
|
|
2972
2984
|
if (!started) {
|
|
2973
2985
|
started = true;
|
|
2974
2986
|
if (config.autoDiscover) observeDOM(target);
|
|
@@ -6859,7 +6871,7 @@ Suggestion: attribute expressions accept a single value. If the logic spans more
|
|
|
6859
6871
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6860
6872
|
return rootScope.data;
|
|
6861
6873
|
}
|
|
6862
|
-
var version2 = "0.
|
|
6874
|
+
var version2 = "0.11.0";
|
|
6863
6875
|
var core = {
|
|
6864
6876
|
// Utilities first: Voodoo's own names can override.
|
|
6865
6877
|
...utils_exports,
|
|
@@ -14425,9 +14437,7 @@ textarea.v-dialog-input{min-height:96px;resize:vertical}
|
|
|
14425
14437
|
const boot = () => {
|
|
14426
14438
|
theme.init();
|
|
14427
14439
|
applySavedPalette();
|
|
14428
|
-
if (typeof V2.extractJsx === "function") V2.extractJsx();
|
|
14429
14440
|
V2.start();
|
|
14430
|
-
if (typeof V2.activateJsx === "function") V2.activateJsx();
|
|
14431
14441
|
if (typeof V2.enableXrayShortcut === "function") V2.enableXrayShortcut();
|
|
14432
14442
|
if (config.devtools) mountDevtools(V2);
|
|
14433
14443
|
};
|