voodoojs 0.10.0 → 0.10.1
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-246ZC2JD.js} +4 -4
- package/dist/{chunk-3JV2AYK6.js → chunk-2UST7MKN.js} +3 -3
- package/dist/{chunk-QWQPKMUH.js → chunk-4MJIS5RZ.js} +13 -13
- package/dist/{chunk-HW75QJLQ.js → chunk-5D7TM3GL.js} +5 -5
- package/dist/{chunk-OUEXXXTU.js → chunk-5E3UZREN.js} +23 -8
- package/dist/{chunk-PXUSD6TT.js → chunk-D4DNTWIS.js} +3 -3
- package/dist/{chunk-IK4MQQTO.js → chunk-DNIQLT66.js} +6 -6
- package/dist/{chunk-H3RGM7PR.js → chunk-F3Z3HMZR.js} +4 -4
- package/dist/{chunk-TFDCAZYU.js → chunk-KQRWQPD6.js} +4 -4
- package/dist/{chunk-EYNFAYEV.js → chunk-RREZZ4FB.js} +4 -4
- package/dist/{chunk-WGMUFP5Q.js → chunk-WYSN4IOV.js} +5 -5
- 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 +21 -2
- package/dist/index.js +24 -20
- 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-BSEVBI4K.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 +21 -4
- 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/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npm install voodoojs
|
|
|
22
22
|
Or drop it into a page, with nothing else:
|
|
23
23
|
|
|
24
24
|
```html
|
|
25
|
-
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.
|
|
25
|
+
<script src="https://cdn.jsdelivr.net/npm/voodoojs@0.10/dist/voodoo.min.js" defer></script>
|
|
26
26
|
|
|
27
27
|
<div v-data="{ count: 0 }">
|
|
28
28
|
<button @click="count++">Clicked { count } times</button>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __publicField } from './chunk-
|
|
1
|
+
import { __publicField } from './chunk-2UST7MKN.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Voodoo.js v0.10.
|
|
4
|
+
* Voodoo.js v0.10.1
|
|
5
5
|
* JavaScript feels like magic.
|
|
6
6
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
7
7
|
*/
|
|
@@ -637,5 +637,5 @@ function traverse(value, seen = /* @__PURE__ */ new Set()) {
|
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
export { EffectScope, ITERATE_KEY, ReactiveEffect, TriggerType, computed, effect, effectScope, enableTracking, flushSync, getActiveEffect, getActiveScope, handleError, hasChanged, isReactive, isRef, markRaw, nextTick, pauseTracking, queueJob, queuePostFlush, reactive, ref, resetTracking, setErrorHandler, shallowRef, stop, toRaw, track, trigger, unref, warn, watch, watchEffect };
|
|
640
|
-
//# sourceMappingURL=chunk-
|
|
641
|
-
//# sourceMappingURL=chunk-
|
|
640
|
+
//# sourceMappingURL=chunk-246ZC2JD.js.map
|
|
641
|
+
//# sourceMappingURL=chunk-246ZC2JD.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.10.
|
|
2
|
+
* Voodoo.js v0.10.1
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -12,5 +12,5 @@ var __export = (target, all) => {
|
|
|
12
12
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
13
|
|
|
14
14
|
export { __export, __publicField };
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-2UST7MKN.js.map
|
|
16
|
+
//# sourceMappingURL=chunk-2UST7MKN.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { http, HttpError, request } from './chunk-
|
|
2
|
-
import { stringify, markInitialized, markSkipChildren, destroy, walk, removeQuietly, evaluateIn, addCleanup, markNodeScope, setComponentMounter, closestDirective, magic, readAttr, hasAttr, componentAliases, Scope, queryDirective, parse, evaluate, parseAttribute, originalAttributes, hasDirective, findScope, VoodooRuntimeError, VoodooSyntaxError, allowedGlobals, clearParseCache, tokenize, getScope, stopObserving, refresh, start, magics, rootScope, isInitialized, restoreAttributes, hasDirectives } from './chunk-
|
|
3
|
-
import { ref, reactive, handleError, nextTick, queuePostFlush, warn, watch, EffectScope, computed, effect, toRaw, flushSync, effectScope, stop, unref, markRaw, watchEffect, shallowRef, setErrorHandler } from './chunk-
|
|
4
|
-
import { warnDuplicateKey, warn as warn$1, describeElement, warnUnknownComponent, warnAlias, warnRequiredProp } from './chunk-
|
|
5
|
-
import { parseDuration, debounce, utils_exports, throttle, uid, device, escapeHtml } from './chunk-
|
|
6
|
-
import { injectStyle, ensureTokens } from './chunk-
|
|
7
|
-
import { defineDirective, config, PRIORITY, directives, normalizeComponentName, components, usePlugin } from './chunk-
|
|
8
|
-
import { __publicField } from './chunk-
|
|
1
|
+
import { http, HttpError, request } from './chunk-DNIQLT66.js';
|
|
2
|
+
import { stringify, markInitialized, markSkipChildren, destroy, walk, removeQuietly, evaluateIn, addCleanup, markNodeScope, setComponentMounter, closestDirective, magic, readAttr, hasAttr, componentAliases, Scope, queryDirective, parse, evaluate, parseAttribute, originalAttributes, hasDirective, findScope, VoodooRuntimeError, VoodooSyntaxError, allowedGlobals, clearParseCache, tokenize, getScope, stopObserving, refresh, start, magics, rootScope, isInitialized, restoreAttributes, hasDirectives } from './chunk-5E3UZREN.js';
|
|
3
|
+
import { ref, reactive, handleError, nextTick, queuePostFlush, warn, watch, EffectScope, computed, effect, toRaw, flushSync, effectScope, stop, unref, markRaw, watchEffect, shallowRef, setErrorHandler } from './chunk-246ZC2JD.js';
|
|
4
|
+
import { warnDuplicateKey, warn as warn$1, describeElement, warnUnknownComponent, warnAlias, warnRequiredProp } from './chunk-RREZZ4FB.js';
|
|
5
|
+
import { parseDuration, debounce, utils_exports, throttle, uid, device, escapeHtml } from './chunk-F3Z3HMZR.js';
|
|
6
|
+
import { injectStyle, ensureTokens } from './chunk-KQRWQPD6.js';
|
|
7
|
+
import { defineDirective, config, PRIORITY, directives, normalizeComponentName, components, usePlugin } from './chunk-D4DNTWIS.js';
|
|
8
|
+
import { __publicField } from './chunk-2UST7MKN.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Voodoo.js v0.10.
|
|
11
|
+
* Voodoo.js v0.10.1
|
|
12
12
|
* JavaScript feels like magic.
|
|
13
13
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
14
14
|
*/
|
|
@@ -2662,7 +2662,7 @@ var jsonStylesInjected = false;
|
|
|
2662
2662
|
function injectJSONStyles() {
|
|
2663
2663
|
if (jsonStylesInjected) return;
|
|
2664
2664
|
jsonStylesInjected = true;
|
|
2665
|
-
void import('./style-
|
|
2665
|
+
void import('./style-BSEVBI4K.js').then(({ injectStyle: injectStyle2 }) => {
|
|
2666
2666
|
injectStyle2(
|
|
2667
2667
|
"json-render",
|
|
2668
2668
|
`
|
|
@@ -2949,7 +2949,7 @@ function data(values) {
|
|
|
2949
2949
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
2950
2950
|
return rootScope.data;
|
|
2951
2951
|
}
|
|
2952
|
-
var version2 = "0.10.
|
|
2952
|
+
var version2 = "0.10.1";
|
|
2953
2953
|
var core = {
|
|
2954
2954
|
// Utilities first: Voodoo's own names can override.
|
|
2955
2955
|
...utils_exports,
|
|
@@ -10271,5 +10271,5 @@ defineDirective(
|
|
|
10271
10271
|
);
|
|
10272
10272
|
|
|
10273
10273
|
export { VoodooCollection, alert, allStores, applyMask, cache, clearErrors, clipboard, confirm, cookie, core, createApp, createResource, defineComponent, dialog, efeitos, ensurePalette, enter, fadeIn, fadeOut, fromHtml, hotkey, instances, leave, mask, masks, messages, modal, mountComponent, network, palette, prompt, query, ready, ready2, registerMask, removeStore, screen, serializeForm, session, showFieldError, showFormErrors, slideDown, slideUp, sound, storage, store, storeNames, theme, toast, unmask, url, validate, validator, viewTransition, whenElement, whenReady };
|
|
10274
|
-
//# sourceMappingURL=chunk-
|
|
10275
|
-
//# sourceMappingURL=chunk-
|
|
10274
|
+
//# sourceMappingURL=chunk-4MJIS5RZ.js.map
|
|
10275
|
+
//# sourceMappingURL=chunk-4MJIS5RZ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { reactive } from './chunk-
|
|
2
|
-
import { warnOnce } from './chunk-
|
|
1
|
+
import { reactive } from './chunk-246ZC2JD.js';
|
|
2
|
+
import { warnOnce } from './chunk-RREZZ4FB.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Voodoo.js v0.10.
|
|
5
|
+
* Voodoo.js v0.10.1
|
|
6
6
|
* JavaScript feels like magic.
|
|
7
7
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
8
8
|
*/
|
|
@@ -942,5 +942,5 @@ Object.defineProperty(factory, "open", {
|
|
|
942
942
|
var socket = factory;
|
|
943
943
|
|
|
944
944
|
export { ENGINE, SIO, createSocket, decodeEngine, decodeSocketIo, devtoolsBus, encodeSocketIo, engineURL, resolveSocketURL, socket, socketSupported };
|
|
945
|
-
//# sourceMappingURL=chunk-
|
|
946
|
-
//# sourceMappingURL=chunk-
|
|
945
|
+
//# sourceMappingURL=chunk-5D7TM3GL.js.map
|
|
946
|
+
//# sourceMappingURL=chunk-5D7TM3GL.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { reactive, handleError, EffectScope, effect } from './chunk-
|
|
2
|
-
import { inDevelopment, warnInvalidExpression, warnUnknownDirective } from './chunk-
|
|
3
|
-
import { config, directives, components } from './chunk-
|
|
4
|
-
import { __publicField } from './chunk-
|
|
1
|
+
import { reactive, handleError, EffectScope, effect } from './chunk-246ZC2JD.js';
|
|
2
|
+
import { inDevelopment, warnInvalidExpression, warnUnknownDirective } from './chunk-RREZZ4FB.js';
|
|
3
|
+
import { config, directives, components } from './chunk-D4DNTWIS.js';
|
|
4
|
+
import { __publicField } from './chunk-2UST7MKN.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Voodoo.js v0.10.
|
|
7
|
+
* Voodoo.js v0.10.1
|
|
8
8
|
* JavaScript feels like magic.
|
|
9
9
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
10
10
|
*/
|
|
@@ -2043,12 +2043,27 @@ function resolveComponentTag(tagName) {
|
|
|
2043
2043
|
var componentAliases = /* @__PURE__ */ new Map();
|
|
2044
2044
|
var started = false;
|
|
2045
2045
|
var observer = null;
|
|
2046
|
+
var startHooks = [];
|
|
2047
|
+
function onStart(hook) {
|
|
2048
|
+
startHooks.push(hook);
|
|
2049
|
+
}
|
|
2050
|
+
function runPhase(target, after) {
|
|
2051
|
+
for (const hook of startHooks) {
|
|
2052
|
+
try {
|
|
2053
|
+
hook(target, after);
|
|
2054
|
+
} catch (error) {
|
|
2055
|
+
console.error("[Voodoo] a start hook failed", error);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2046
2059
|
function start(root) {
|
|
2047
2060
|
if (typeof document === "undefined") return;
|
|
2048
2061
|
const target = root ?? config.root ?? document.body;
|
|
2049
2062
|
if (!target) return;
|
|
2050
2063
|
Object.assign(allowedGlobals, config.globals);
|
|
2064
|
+
runPhase(target, false);
|
|
2051
2065
|
walk(target, rootScope);
|
|
2066
|
+
runPhase(target, true);
|
|
2052
2067
|
if (!started) {
|
|
2053
2068
|
started = true;
|
|
2054
2069
|
if (config.autoDiscover) observeDOM(target);
|
|
@@ -2086,6 +2101,6 @@ function refresh(root) {
|
|
|
2086
2101
|
walk(root ?? document.body, root ? findScope(root.parentNode) : rootScope);
|
|
2087
2102
|
}
|
|
2088
2103
|
|
|
2089
|
-
export { Scope, VoodooRuntimeError, VoodooSyntaxError, addCleanup, allowedGlobals, clearParseCache, closestDirective, collectDirectives, componentAliases, destroy, evaluate, evaluateIn, findScope, getEffectScopes, getScope, hadDirectives, hasAttr, hasDirective, hasDirectives, isInitialized, magic, magics, markInitialized, markNodeScope, markSkipChildren, originalAttributes, parse, parseAttribute, queryDirective, readAttr, refresh, removeQuietly, restoreAttributes, rootScope, setComponentMounter, start, stopObserving, stringify, tokenize, unwrap, walk };
|
|
2090
|
-
//# sourceMappingURL=chunk-
|
|
2091
|
-
//# sourceMappingURL=chunk-
|
|
2104
|
+
export { Scope, VoodooRuntimeError, VoodooSyntaxError, addCleanup, allowedGlobals, clearParseCache, closestDirective, collectDirectives, componentAliases, destroy, evaluate, evaluateIn, findScope, getEffectScopes, getScope, hadDirectives, hasAttr, hasDirective, hasDirectives, isInitialized, magic, magics, markInitialized, markNodeScope, markSkipChildren, onStart, originalAttributes, parse, parseAttribute, queryDirective, readAttr, refresh, removeQuietly, restoreAttributes, rootScope, setComponentMounter, start, stopObserving, stringify, tokenize, unwrap, walk };
|
|
2105
|
+
//# sourceMappingURL=chunk-5E3UZREN.js.map
|
|
2106
|
+
//# sourceMappingURL=chunk-5E3UZREN.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voodoo.js v0.10.
|
|
2
|
+
* Voodoo.js v0.10.1
|
|
3
3
|
* JavaScript feels like magic.
|
|
4
4
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
5
|
*/
|
|
@@ -61,5 +61,5 @@ function usePlugin(V, plugin, options) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export { PRIORITY, components, config, defineDirective, directives, normalizeComponentName, usePlugin };
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
64
|
+
//# sourceMappingURL=chunk-D4DNTWIS.js.map
|
|
65
|
+
//# sourceMappingURL=chunk-D4DNTWIS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { warnOnce } from './chunk-
|
|
2
|
-
import { parseDuration } from './chunk-
|
|
3
|
-
import { __publicField } from './chunk-
|
|
1
|
+
import { warnOnce } from './chunk-RREZZ4FB.js';
|
|
2
|
+
import { parseDuration } from './chunk-F3Z3HMZR.js';
|
|
3
|
+
import { __publicField } from './chunk-2UST7MKN.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Voodoo.js v0.10.
|
|
6
|
+
* Voodoo.js v0.10.1
|
|
7
7
|
* JavaScript feels like magic.
|
|
8
8
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
9
9
|
*/
|
|
@@ -444,5 +444,5 @@ var http = {
|
|
|
444
444
|
};
|
|
445
445
|
|
|
446
446
|
export { HttpError, clearCache, flushOfflineQueue, http, request };
|
|
447
|
-
//# sourceMappingURL=chunk-
|
|
448
|
-
//# sourceMappingURL=chunk-
|
|
447
|
+
//# sourceMappingURL=chunk-DNIQLT66.js.map
|
|
448
|
+
//# sourceMappingURL=chunk-DNIQLT66.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __export } from './chunk-
|
|
1
|
+
import { __export } from './chunk-2UST7MKN.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Voodoo.js v0.10.
|
|
4
|
+
* Voodoo.js v0.10.1
|
|
5
5
|
* JavaScript feels like magic.
|
|
6
6
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
7
7
|
*/
|
|
@@ -397,5 +397,5 @@ var device = {
|
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, utils_exports, uuid };
|
|
400
|
-
//# sourceMappingURL=chunk-
|
|
401
|
-
//# sourceMappingURL=chunk-
|
|
400
|
+
//# sourceMappingURL=chunk-F3Z3HMZR.js.map
|
|
401
|
+
//# sourceMappingURL=chunk-F3Z3HMZR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { config } from './chunk-
|
|
1
|
+
import { config } from './chunk-D4DNTWIS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Voodoo.js v0.10.
|
|
4
|
+
* Voodoo.js v0.10.1
|
|
5
5
|
* JavaScript feels like magic.
|
|
6
6
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
7
7
|
*/
|
|
@@ -68,5 +68,5 @@ function ensureTokens() {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export { BASE_TOKENS, ensureTokens, injectStyle };
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
71
|
+
//# sourceMappingURL=chunk-KQRWQPD6.js.map
|
|
72
|
+
//# sourceMappingURL=chunk-KQRWQPD6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { config } from './chunk-
|
|
1
|
+
import { config } from './chunk-D4DNTWIS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Voodoo.js v0.10.
|
|
4
|
+
* Voodoo.js v0.10.1
|
|
5
5
|
* JavaScript feels like magic.
|
|
6
6
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
7
7
|
*/
|
|
@@ -78,5 +78,5 @@ function warnAlias(alias, canonical) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export { describeElement, inDevelopment, warn, warnAlias, warnDuplicateKey, warnInvalidExpression, warnOnce, warnRequiredProp, warnUnknownComponent, warnUnknownDirective };
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-RREZZ4FB.js.map
|
|
82
|
+
//# sourceMappingURL=chunk-RREZZ4FB.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { handleError } from './chunk-
|
|
2
|
-
import { warn } from './chunk-
|
|
1
|
+
import { handleError } from './chunk-246ZC2JD.js';
|
|
2
|
+
import { warn } from './chunk-RREZZ4FB.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Voodoo.js v0.10.
|
|
5
|
+
* Voodoo.js v0.10.1
|
|
6
6
|
* JavaScript feels like magic.
|
|
7
7
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
8
8
|
*/
|
|
@@ -1192,5 +1192,5 @@ var gpu = {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
|
|
1194
1194
|
export { clock, compute, describeWgslType, destroy, effect, findEntry, flattenValue, frame, frameLoop, gpu, inferStruct, init, packStruct, reflectBindings, reflectEntries, reflectStructs, reflectWgsl, resetShared, shared, splitTopLevel, stripWgslComments, supported, surface, target, uniforms, writeField, writeStruct };
|
|
1195
|
-
//# sourceMappingURL=chunk-
|
|
1196
|
-
//# sourceMappingURL=chunk-
|
|
1195
|
+
//# sourceMappingURL=chunk-WYSN4IOV.js.map
|
|
1196
|
+
//# sourceMappingURL=chunk-WYSN4IOV.js.map
|
package/dist/essential.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Voodoo.js v0.10.
|
|
6
|
+
* Voodoo.js v0.10.1
|
|
7
7
|
* JavaScript feels like magic.
|
|
8
8
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
9
9
|
*/
|
|
@@ -2931,12 +2931,24 @@ function resolveComponentTag(tagName) {
|
|
|
2931
2931
|
var componentAliases = /* @__PURE__ */ new Map();
|
|
2932
2932
|
var started = false;
|
|
2933
2933
|
var observer = null;
|
|
2934
|
+
var startHooks = [];
|
|
2935
|
+
function runPhase(target, after) {
|
|
2936
|
+
for (const hook of startHooks) {
|
|
2937
|
+
try {
|
|
2938
|
+
hook(target, after);
|
|
2939
|
+
} catch (error) {
|
|
2940
|
+
console.error("[Voodoo] a start hook failed", error);
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2934
2944
|
function start(root) {
|
|
2935
2945
|
if (typeof document === "undefined") return;
|
|
2936
2946
|
const target = root ?? config.root ?? document.body;
|
|
2937
2947
|
if (!target) return;
|
|
2938
2948
|
Object.assign(allowedGlobals, config.globals);
|
|
2949
|
+
runPhase(target, false);
|
|
2939
2950
|
walk(target, rootScope);
|
|
2951
|
+
runPhase(target, true);
|
|
2940
2952
|
if (!started) {
|
|
2941
2953
|
started = true;
|
|
2942
2954
|
if (config.autoDiscover) observeDOM(target);
|
|
@@ -6752,7 +6764,7 @@ function data(values) {
|
|
|
6752
6764
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6753
6765
|
return rootScope.data;
|
|
6754
6766
|
}
|
|
6755
|
-
var version2 = "0.10.
|
|
6767
|
+
var version2 = "0.10.1";
|
|
6756
6768
|
var core = {
|
|
6757
6769
|
// Utilities first: Voodoo's own names can override.
|
|
6758
6770
|
...utils_exports,
|
package/dist/essential.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { core, sound, hotkey, palette, registerMask, unmask, applyMask, masks, mask, clearErrors, showFieldError, showFormErrors, messages, serializeForm, validate, validator, dialog, prompt, confirm, alert, modal, VoodooCollection, fromHtml, ready2, query } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { magic } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
1
|
+
import { core, sound, hotkey, palette, registerMask, unmask, applyMask, masks, mask, clearErrors, showFieldError, showFormErrors, messages, serializeForm, validate, validator, dialog, prompt, confirm, alert, modal, VoodooCollection, fromHtml, ready2, query } from './chunk-4MJIS5RZ.js';
|
|
2
|
+
import './chunk-DNIQLT66.js';
|
|
3
|
+
import { magic } from './chunk-5E3UZREN.js';
|
|
4
|
+
import './chunk-246ZC2JD.js';
|
|
5
|
+
import './chunk-RREZZ4FB.js';
|
|
6
|
+
import './chunk-F3Z3HMZR.js';
|
|
7
|
+
import './chunk-KQRWQPD6.js';
|
|
8
|
+
import './chunk-D4DNTWIS.js';
|
|
9
|
+
import './chunk-2UST7MKN.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Voodoo.js v0.10.
|
|
12
|
+
* Voodoo.js v0.10.1
|
|
13
13
|
* JavaScript feels like magic.
|
|
14
14
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
15
15
|
*/
|
package/dist/gpu.cjs
CHANGED
package/dist/gpu.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { supported, clock, shared, gpu, surface, effect, frameLoop, frame } from './chunk-
|
|
2
|
-
export { clock, compute, describeWgslType, destroy, effect, findEntry, flattenValue, frame, frameLoop, gpu, inferStruct, init, packStruct, reflectBindings, reflectEntries, reflectStructs, reflectWgsl, resetShared, shared, splitTopLevel, stripWgslComments, supported, surface, target, uniforms, writeField, writeStruct } from './chunk-
|
|
3
|
-
import { http } from './chunk-
|
|
4
|
-
import { originalAttributes, destroy } from './chunk-
|
|
5
|
-
import { handleError } from './chunk-
|
|
6
|
-
import { warn, describeElement } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import { defineDirective } from './chunk-
|
|
9
|
-
import './chunk-
|
|
1
|
+
import { supported, clock, shared, gpu, surface, effect, frameLoop, frame } from './chunk-WYSN4IOV.js';
|
|
2
|
+
export { clock, compute, describeWgslType, destroy, effect, findEntry, flattenValue, frame, frameLoop, gpu, inferStruct, init, packStruct, reflectBindings, reflectEntries, reflectStructs, reflectWgsl, resetShared, shared, splitTopLevel, stripWgslComments, supported, surface, target, uniforms, writeField, writeStruct } from './chunk-WYSN4IOV.js';
|
|
3
|
+
import { http } from './chunk-DNIQLT66.js';
|
|
4
|
+
import { originalAttributes, destroy } from './chunk-5E3UZREN.js';
|
|
5
|
+
import { handleError } from './chunk-246ZC2JD.js';
|
|
6
|
+
import { warn, describeElement } from './chunk-RREZZ4FB.js';
|
|
7
|
+
import './chunk-F3Z3HMZR.js';
|
|
8
|
+
import { defineDirective } from './chunk-D4DNTWIS.js';
|
|
9
|
+
import './chunk-2UST7MKN.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Voodoo.js v0.10.
|
|
12
|
+
* Voodoo.js v0.10.1
|
|
13
13
|
* JavaScript feels like magic.
|
|
14
14
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
15
15
|
*/
|
package/dist/http.cjs
CHANGED
package/dist/http.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { HttpError, clearCache, flushOfflineQueue, http, request } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { HttpError, clearCache, flushOfflineQueue, http, request } from './chunk-DNIQLT66.js';
|
|
2
|
+
import './chunk-RREZZ4FB.js';
|
|
3
|
+
import './chunk-F3Z3HMZR.js';
|
|
4
|
+
import './chunk-D4DNTWIS.js';
|
|
5
|
+
import './chunk-2UST7MKN.js';
|
|
6
6
|
//# sourceMappingURL=http.js.map
|
|
7
7
|
//# sourceMappingURL=http.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Voodoo.js v0.10.
|
|
6
|
+
* Voodoo.js v0.10.1
|
|
7
7
|
* JavaScript feels like magic.
|
|
8
8
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
9
9
|
*/
|
|
@@ -2939,12 +2939,27 @@ function resolveComponentTag(tagName) {
|
|
|
2939
2939
|
var componentAliases = /* @__PURE__ */ new Map();
|
|
2940
2940
|
var started = false;
|
|
2941
2941
|
var observer = null;
|
|
2942
|
+
var startHooks = [];
|
|
2943
|
+
function onStart(hook) {
|
|
2944
|
+
startHooks.push(hook);
|
|
2945
|
+
}
|
|
2946
|
+
function runPhase(target2, after) {
|
|
2947
|
+
for (const hook of startHooks) {
|
|
2948
|
+
try {
|
|
2949
|
+
hook(target2, after);
|
|
2950
|
+
} catch (error) {
|
|
2951
|
+
console.error("[Voodoo] a start hook failed", error);
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2942
2955
|
function start(root) {
|
|
2943
2956
|
if (typeof document === "undefined") return;
|
|
2944
2957
|
const target2 = root ?? exports.config.root ?? document.body;
|
|
2945
2958
|
if (!target2) return;
|
|
2946
2959
|
Object.assign(allowedGlobals, exports.config.globals);
|
|
2960
|
+
runPhase(target2, false);
|
|
2947
2961
|
walk(target2, rootScope);
|
|
2962
|
+
runPhase(target2, true);
|
|
2948
2963
|
if (!started) {
|
|
2949
2964
|
started = true;
|
|
2950
2965
|
if (exports.config.autoDiscover) observeDOM(target2);
|
|
@@ -6763,7 +6778,7 @@ function data(values) {
|
|
|
6763
6778
|
Object.defineProperties(rootScope.data, Object.getOwnPropertyDescriptors(values));
|
|
6764
6779
|
return rootScope.data;
|
|
6765
6780
|
}
|
|
6766
|
-
var version2 = "0.10.
|
|
6781
|
+
var version2 = "0.10.1";
|
|
6767
6782
|
var core = {
|
|
6768
6783
|
// Utilities first: Voodoo's own names can override.
|
|
6769
6784
|
...utils_exports,
|
|
@@ -20700,6 +20715,10 @@ var OPAQUE = /* @__PURE__ */ new Set([
|
|
|
20700
20715
|
"NOSCRIPT"
|
|
20701
20716
|
]);
|
|
20702
20717
|
magic("$__jsx", (scope) => scope);
|
|
20718
|
+
onStart((root, after) => {
|
|
20719
|
+
if (after) activateJsx();
|
|
20720
|
+
else extractJsx(root);
|
|
20721
|
+
});
|
|
20703
20722
|
var TEMPLATE = /* @__PURE__ */ Symbol("voodoo.jsx.template");
|
|
20704
20723
|
function isTemplate(value) {
|
|
20705
20724
|
return typeof value === "object" && value !== null && TEMPLATE in value;
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { core, sound, hotkey, palette, registerMask, unmask, applyMask, masks, mask, clearErrors, showFieldError, showFormErrors, messages, serializeForm, validate, validator, dialog, prompt, confirm, alert, modal, VoodooCollection, fromHtml, ready2, query, viewTransition, defineComponent, storage, ensurePalette, instances, storeNames, allStores } from './chunk-
|
|
2
|
-
export { VoodooCollection, alert, allStores, applyMask, cache, clearErrors, clipboard, confirm, cookie, createApp, createResource, defineComponent, dialog, ready as documentReady, enter, fadeIn, fadeOut, fromHtml, hotkey, instances, leave, mask, masks, modal, mountComponent, network, palette, prompt, query, ready2 as ready, registerMask, removeStore, createResource as resource, screen, serializeForm, session, showFormErrors, slideDown, slideUp, sound, efeitos as soundEffects, storage, store, storeNames, theme, toast, unmask, url, validate, validator, viewTransition, whenElement, whenReady } from './chunk-
|
|
3
|
-
export { gpu, reflectWgsl } from './chunk-
|
|
4
|
-
import { http } from './chunk-
|
|
5
|
-
export { HttpError, http, request } from './chunk-
|
|
6
|
-
import { devtoolsBus } from './chunk-
|
|
7
|
-
export { createSocket, devtoolsBus, socket, socketSupported } from './chunk-
|
|
8
|
-
import { magic, markSkipChildren,
|
|
9
|
-
export { Scope, VoodooRuntimeError, VoodooSyntaxError, addCleanup, allowedGlobals, clearParseCache, destroy, evaluate, findScope, getScope, magic, magics, parse, refresh, rootScope, start, stringify, tokenize, walk } from './chunk-
|
|
10
|
-
import { reactive, warn, handleError,
|
|
11
|
-
export { EffectScope, computed, effect, effectScope, flushSync, isReactive, markRaw, nextTick, reactive, ref, shallowRef, stop, toRaw, unref, watch, watchEffect } from './chunk-
|
|
12
|
-
import { warnAlias } from './chunk-
|
|
13
|
-
import { parseDuration, formatNumber, formatCurrency, formatDate, relativeTime, device, setFormatDefaults, uid, merge, escapeHtml, truncate, get, titleCase } from './chunk-
|
|
14
|
-
export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-
|
|
15
|
-
import { ensureTokens, injectStyle } from './chunk-
|
|
16
|
-
export { ensureTokens, injectStyle } from './chunk-
|
|
17
|
-
import { defineDirective, PRIORITY, config } from './chunk-
|
|
18
|
-
export { PRIORITY, config, defineDirective } from './chunk-
|
|
19
|
-
import './chunk-
|
|
1
|
+
import { core, sound, hotkey, palette, registerMask, unmask, applyMask, masks, mask, clearErrors, showFieldError, showFormErrors, messages, serializeForm, validate, validator, dialog, prompt, confirm, alert, modal, VoodooCollection, fromHtml, ready2, query, viewTransition, defineComponent, storage, ensurePalette, instances, storeNames, allStores } from './chunk-4MJIS5RZ.js';
|
|
2
|
+
export { VoodooCollection, alert, allStores, applyMask, cache, clearErrors, clipboard, confirm, cookie, createApp, createResource, defineComponent, dialog, ready as documentReady, enter, fadeIn, fadeOut, fromHtml, hotkey, instances, leave, mask, masks, modal, mountComponent, network, palette, prompt, query, ready2 as ready, registerMask, removeStore, createResource as resource, screen, serializeForm, session, showFormErrors, slideDown, slideUp, sound, efeitos as soundEffects, storage, store, storeNames, theme, toast, unmask, url, validate, validator, viewTransition, whenElement, whenReady } from './chunk-4MJIS5RZ.js';
|
|
3
|
+
export { gpu, reflectWgsl } from './chunk-WYSN4IOV.js';
|
|
4
|
+
import { http } from './chunk-DNIQLT66.js';
|
|
5
|
+
export { HttpError, http, request } from './chunk-DNIQLT66.js';
|
|
6
|
+
import { devtoolsBus } from './chunk-5D7TM3GL.js';
|
|
7
|
+
export { createSocket, devtoolsBus, socket, socketSupported } from './chunk-5D7TM3GL.js';
|
|
8
|
+
import { magic, markSkipChildren, onStart, rootScope, findScope, destroy, readAttr, evaluate, parse, Scope, getScope, walk, unwrap, addCleanup, hadDirectives, collectDirectives, getEffectScopes, evaluateIn } from './chunk-5E3UZREN.js';
|
|
9
|
+
export { Scope, VoodooRuntimeError, VoodooSyntaxError, addCleanup, allowedGlobals, clearParseCache, destroy, evaluate, findScope, getScope, magic, magics, parse, refresh, rootScope, start, stringify, tokenize, walk } from './chunk-5E3UZREN.js';
|
|
10
|
+
import { reactive, warn, handleError, effect, queuePostFlush, nextTick } from './chunk-246ZC2JD.js';
|
|
11
|
+
export { EffectScope, computed, effect, effectScope, flushSync, isReactive, markRaw, nextTick, reactive, ref, shallowRef, stop, toRaw, unref, watch, watchEffect } from './chunk-246ZC2JD.js';
|
|
12
|
+
import { warnAlias } from './chunk-RREZZ4FB.js';
|
|
13
|
+
import { parseDuration, formatNumber, formatCurrency, formatDate, relativeTime, device, setFormatDefaults, uid, merge, escapeHtml, truncate, get, titleCase } from './chunk-F3Z3HMZR.js';
|
|
14
|
+
export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-F3Z3HMZR.js';
|
|
15
|
+
import { ensureTokens, injectStyle } from './chunk-KQRWQPD6.js';
|
|
16
|
+
export { ensureTokens, injectStyle } from './chunk-KQRWQPD6.js';
|
|
17
|
+
import { defineDirective, PRIORITY, config } from './chunk-D4DNTWIS.js';
|
|
18
|
+
export { PRIORITY, config, defineDirective } from './chunk-D4DNTWIS.js';
|
|
19
|
+
import './chunk-2UST7MKN.js';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Voodoo.js v0.10.
|
|
22
|
+
* Voodoo.js v0.10.1
|
|
23
23
|
* JavaScript feels like magic.
|
|
24
24
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
25
25
|
*/
|
|
@@ -6555,6 +6555,10 @@ var OPAQUE = /* @__PURE__ */ new Set([
|
|
|
6555
6555
|
"NOSCRIPT"
|
|
6556
6556
|
]);
|
|
6557
6557
|
magic("$__jsx", (scope) => scope);
|
|
6558
|
+
onStart((root, after) => {
|
|
6559
|
+
if (after) activateJsx();
|
|
6560
|
+
else extractJsx(root);
|
|
6561
|
+
});
|
|
6558
6562
|
var TEMPLATE = /* @__PURE__ */ Symbol("voodoo.jsx.template");
|
|
6559
6563
|
function isTemplate(value) {
|
|
6560
6564
|
return typeof value === "object" && value !== null && TEMPLATE in value;
|
package/dist/reactivity.cjs
CHANGED
package/dist/reactivity.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EffectScope, ITERATE_KEY, ReactiveEffect, TriggerType, computed, effect, effectScope, enableTracking, flushSync, getActiveEffect, getActiveScope, handleError, hasChanged, isReactive, isRef, markRaw, nextTick, pauseTracking, queueJob, queuePostFlush, reactive, ref, resetTracking, setErrorHandler, shallowRef, stop, toRaw, track, trigger, unref, warn, watch, watchEffect } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { EffectScope, ITERATE_KEY, ReactiveEffect, TriggerType, computed, effect, effectScope, enableTracking, flushSync, getActiveEffect, getActiveScope, handleError, hasChanged, isReactive, isRef, markRaw, nextTick, pauseTracking, queueJob, queuePostFlush, reactive, ref, resetTracking, setErrorHandler, shallowRef, stop, toRaw, track, trigger, unref, warn, watch, watchEffect } from './chunk-246ZC2JD.js';
|
|
2
|
+
import './chunk-2UST7MKN.js';
|
|
3
3
|
//# sourceMappingURL=reactivity.js.map
|
|
4
4
|
//# sourceMappingURL=reactivity.js.map
|
package/dist/socket.cjs
CHANGED
package/dist/socket.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { socketSupported, createSocket, socket } from './chunk-
|
|
2
|
-
export { ENGINE, SIO, createSocket, decodeEngine, decodeSocketIo, encodeSocketIo, engineURL, resolveSocketURL, socket, socketSupported } from './chunk-
|
|
3
|
-
import { evaluateIn, readAttr } from './chunk-
|
|
4
|
-
import { reactive } from './chunk-
|
|
5
|
-
import { warnAlias } from './chunk-
|
|
6
|
-
import { parseDuration } from './chunk-
|
|
7
|
-
import { defineDirective, PRIORITY, config } from './chunk-
|
|
8
|
-
import './chunk-
|
|
1
|
+
import { socketSupported, createSocket, socket } from './chunk-5D7TM3GL.js';
|
|
2
|
+
export { ENGINE, SIO, createSocket, decodeEngine, decodeSocketIo, encodeSocketIo, engineURL, resolveSocketURL, socket, socketSupported } from './chunk-5D7TM3GL.js';
|
|
3
|
+
import { evaluateIn, readAttr } from './chunk-5E3UZREN.js';
|
|
4
|
+
import { reactive } from './chunk-246ZC2JD.js';
|
|
5
|
+
import { warnAlias } from './chunk-RREZZ4FB.js';
|
|
6
|
+
import { parseDuration } from './chunk-F3Z3HMZR.js';
|
|
7
|
+
import { defineDirective, PRIORITY, config } from './chunk-D4DNTWIS.js';
|
|
8
|
+
import './chunk-2UST7MKN.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Voodoo.js v0.10.
|
|
11
|
+
* Voodoo.js v0.10.1
|
|
12
12
|
* JavaScript feels like magic.
|
|
13
13
|
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
14
14
|
*/
|
package/dist/utils.cjs
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { capitalize, chunk, clone, debounce, device, escapeHtml, formatCurrency, formatDate, formatFileSize, formatNumber, formatPercent, get, groupBy, isBrowser, matchesMedia, memoize, merge, once, parseDuration, random, relativeTime, sample, set, setFormatDefaults, sleep, slugify, sortBy, stripTags, throttle, titleCase, truncate, uid, unique, uuid } from './chunk-F3Z3HMZR.js';
|
|
2
|
+
import './chunk-2UST7MKN.js';
|
|
3
3
|
//# sourceMappingURL=utils.js.map
|
|
4
4
|
//# sourceMappingURL=utils.js.map
|