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/dist/voodoo.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Voodoo.js v0.10.0
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.10.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
  };