voodoojs 0.4.6
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 +77 -0
- package/dist/chunk-234ZLC6W.js +401 -0
- package/dist/chunk-4HQEOXTK.js +10271 -0
- package/dist/chunk-5777LJVW.js +64 -0
- package/dist/chunk-5CKGDARU.js +1845 -0
- package/dist/chunk-A2UOVQBP.js +82 -0
- package/dist/chunk-E27NRARW.js +16 -0
- package/dist/chunk-JZIYRIY6.js +1196 -0
- package/dist/chunk-NNU6WOOU.js +641 -0
- package/dist/chunk-PQZEVFVZ.js +448 -0
- package/dist/chunk-RJUNPXQF.js +946 -0
- package/dist/chunk-U76IRJKH.js +72 -0
- package/dist/essential.cjs +13889 -0
- package/dist/essential.d.cts +24 -0
- package/dist/essential.d.ts +24 -0
- package/dist/essential.js +51 -0
- package/dist/gpu.cjs +2008 -0
- package/dist/gpu.d.cts +68 -0
- package/dist/gpu.d.ts +68 -0
- package/dist/gpu.js +273 -0
- package/dist/http.cjs +467 -0
- package/dist/http.d.cts +148 -0
- package/dist/http.d.ts +148 -0
- package/dist/http.js +7 -0
- package/dist/index-CaLD-0oh.d.cts +608 -0
- package/dist/index-CaLD-0oh.d.ts +608 -0
- package/dist/index-DTllqUtj.d.cts +261 -0
- package/dist/index-DTllqUtj.d.ts +261 -0
- package/dist/index.cjs +23063 -0
- package/dist/index.d.cts +1603 -0
- package/dist/index.d.ts +1603 -0
- package/dist/index.js +6924 -0
- package/dist/query-CKJ4oSpG.d.cts +1595 -0
- package/dist/query-DQFRmu3u.d.ts +1595 -0
- package/dist/reactivity.cjs +676 -0
- package/dist/reactivity.d.cts +188 -0
- package/dist/reactivity.d.ts +188 -0
- package/dist/reactivity.js +4 -0
- package/dist/socket.cjs +2685 -0
- package/dist/socket.d.cts +167 -0
- package/dist/socket.d.ts +167 -0
- package/dist/socket.js +238 -0
- package/dist/style-XEUAGGJK.js +5 -0
- package/dist/utils.cjs +397 -0
- package/dist/utils.d.cts +111 -0
- package/dist/utils.d.ts +111 -0
- package/dist/utils.js +4 -0
- package/dist/voodoo.core.js +8213 -0
- package/dist/voodoo.core.min.js +146 -0
- package/dist/voodoo.full.js +21193 -0
- package/dist/voodoo.full.min.js +1784 -0
- package/dist/voodoo.js +14185 -0
- package/dist/voodoo.min.js +420 -0
- package/package.json +127 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voodoo.js v0.4.6
|
|
3
|
+
* JavaScript feels like magic.
|
|
4
|
+
* (c) 2026 Voodoo.js contributors. MIT License.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// src/runtime/registry.ts
|
|
8
|
+
var config = {
|
|
9
|
+
prefix: "v-",
|
|
10
|
+
autoStart: true,
|
|
11
|
+
autoDiscover: true,
|
|
12
|
+
root: null,
|
|
13
|
+
devtools: false,
|
|
14
|
+
baseURL: "",
|
|
15
|
+
globals: {},
|
|
16
|
+
locale: typeof navigator !== "undefined" ? navigator.language || "pt-BR" : "pt-BR",
|
|
17
|
+
currency: "BRL",
|
|
18
|
+
injectStyles: true,
|
|
19
|
+
cleanAttributes: true,
|
|
20
|
+
sanitizeUrls: true
|
|
21
|
+
};
|
|
22
|
+
var directives = /* @__PURE__ */ new Map();
|
|
23
|
+
var PRIORITY = {
|
|
24
|
+
IGNORE: 100,
|
|
25
|
+
FOR: 90,
|
|
26
|
+
IF: 80,
|
|
27
|
+
DATA: 70,
|
|
28
|
+
COMPONENT: 65,
|
|
29
|
+
REF: 60,
|
|
30
|
+
// Binding comes before model on purpose.
|
|
31
|
+
//
|
|
32
|
+
// `v-model` writes the value to the field, and `:min`, `:max`, `:step` change
|
|
33
|
+
// what the browser accepts as a value. In reverse order, the field would receive
|
|
34
|
+
// the value with the old rules still in place, and the browser itself would round
|
|
35
|
+
// or clamp: `0.12` would become `0` if the previous `step` was `1`.
|
|
36
|
+
BIND: 45,
|
|
37
|
+
MODEL: 40,
|
|
38
|
+
DEFAULT: 0,
|
|
39
|
+
INIT: -10,
|
|
40
|
+
TRANSITION: -20
|
|
41
|
+
};
|
|
42
|
+
function defineDirective(name, setup, options = {}) {
|
|
43
|
+
directives.set(name, {
|
|
44
|
+
name,
|
|
45
|
+
setup,
|
|
46
|
+
priority: options.priority ?? PRIORITY.DEFAULT,
|
|
47
|
+
terminal: options.terminal ?? false
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var components = /* @__PURE__ */ new Map();
|
|
51
|
+
function normalizeComponentName(name) {
|
|
52
|
+
return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
|
|
53
|
+
}
|
|
54
|
+
var installedPlugins = /* @__PURE__ */ new Set();
|
|
55
|
+
function usePlugin(V, plugin, options) {
|
|
56
|
+
if (installedPlugins.has(plugin)) return;
|
|
57
|
+
installedPlugins.add(plugin);
|
|
58
|
+
if (typeof plugin === "function") plugin(V, options);
|
|
59
|
+
else plugin.install(V, options);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { PRIORITY, components, config, defineDirective, directives, normalizeComponentName, usePlugin };
|
|
63
|
+
//# sourceMappingURL=chunk-5777LJVW.js.map
|
|
64
|
+
//# sourceMappingURL=chunk-5777LJVW.js.map
|