x-state-lib 0.3.8 → 0.3.9
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/index.js +17 -20
- package/dist/state/runtime.d.ts +0 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -568,15 +568,7 @@ var no = 1, oo = 4;
|
|
|
568
568
|
function ao(t) {
|
|
569
569
|
return E(t, no | oo);
|
|
570
570
|
}
|
|
571
|
-
function io() {
|
|
572
|
-
return {
|
|
573
|
-
props: {},
|
|
574
|
-
methods: {},
|
|
575
|
-
events: {},
|
|
576
|
-
slots: {}
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
function so(t) {
|
|
571
|
+
function io(t) {
|
|
580
572
|
const e = [], r = (n, i, s) => {
|
|
581
573
|
if (i !== "" && (i += "."), i += n.key, s = ao(s), s.push(n.name), !n.ui && !n.array)
|
|
582
574
|
n.children.forEach((c) => r(c, i, s));
|
|
@@ -595,17 +587,17 @@ function so(t) {
|
|
|
595
587
|
r(n, "", []);
|
|
596
588
|
}), e;
|
|
597
589
|
}
|
|
598
|
-
function
|
|
590
|
+
function so() {
|
|
599
591
|
const t = {};
|
|
600
592
|
for (const e in d) {
|
|
601
593
|
const r = {}, n = d[e];
|
|
602
594
|
for (const i in n.props)
|
|
603
|
-
r[i] =
|
|
595
|
+
r[i] = io(n.props[i]);
|
|
604
596
|
t[e] = r;
|
|
605
597
|
}
|
|
606
598
|
return t;
|
|
607
599
|
}
|
|
608
|
-
function
|
|
600
|
+
function co() {
|
|
609
601
|
const t = {};
|
|
610
602
|
for (const e in d) {
|
|
611
603
|
const r = d[e];
|
|
@@ -613,7 +605,7 @@ function fo() {
|
|
|
613
605
|
}
|
|
614
606
|
return t;
|
|
615
607
|
}
|
|
616
|
-
function
|
|
608
|
+
function uo() {
|
|
617
609
|
const t = {};
|
|
618
610
|
for (const e in d) {
|
|
619
611
|
const r = d[e];
|
|
@@ -621,7 +613,7 @@ function po() {
|
|
|
621
613
|
}
|
|
622
614
|
return t;
|
|
623
615
|
}
|
|
624
|
-
function
|
|
616
|
+
function fo() {
|
|
625
617
|
const t = {};
|
|
626
618
|
for (const e in d) {
|
|
627
619
|
const r = d[e];
|
|
@@ -629,9 +621,18 @@ function lo() {
|
|
|
629
621
|
}
|
|
630
622
|
return t;
|
|
631
623
|
}
|
|
624
|
+
function po() {
|
|
625
|
+
const t = so(), e = co(), r = uo(), n = fo();
|
|
626
|
+
return {
|
|
627
|
+
props: t,
|
|
628
|
+
methods: e,
|
|
629
|
+
events: r,
|
|
630
|
+
slots: n
|
|
631
|
+
};
|
|
632
|
+
}
|
|
632
633
|
const go = function() {
|
|
633
634
|
return window.globalState || (window.globalState = {
|
|
634
|
-
runtime:
|
|
635
|
+
runtime: po(),
|
|
635
636
|
app: xt(),
|
|
636
637
|
compute: Ct(),
|
|
637
638
|
data: Et(),
|
|
@@ -639,14 +640,10 @@ const go = function() {
|
|
|
639
640
|
}), window.globalState;
|
|
640
641
|
}();
|
|
641
642
|
export {
|
|
642
|
-
po as buildEvents,
|
|
643
|
-
fo as buildMethods,
|
|
644
|
-
uo as buildProps,
|
|
645
|
-
lo as buildSlots,
|
|
646
643
|
go as globalState,
|
|
647
644
|
xt as initApp,
|
|
648
645
|
Ct as initCompute,
|
|
649
646
|
Et as initData,
|
|
650
647
|
It as initResource,
|
|
651
|
-
|
|
648
|
+
po as initRuntime
|
|
652
649
|
};
|
package/dist/state/runtime.d.ts
CHANGED
|
@@ -25,7 +25,3 @@ export type Runtime = {
|
|
|
25
25
|
slots: Slots;
|
|
26
26
|
};
|
|
27
27
|
export declare function initRuntime(): Runtime;
|
|
28
|
-
export declare function buildProps(): Props;
|
|
29
|
-
export declare function buildMethods(): Methods;
|
|
30
|
-
export declare function buildEvents(): Events;
|
|
31
|
-
export declare function buildSlots(): Slots;
|