@valbuild/react 0.21.1 → 0.22.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/{ValProvider-e8201907.cjs.prod.js → ValProvider-4b3dcddd.cjs.prod.js} +206 -210
- package/dist/ValProvider-772ad108.browser.esm.js +618 -0
- package/dist/{ValProvider-91d1bef0.cjs.dev.js → ValProvider-7be3721e.cjs.dev.js} +206 -210
- package/dist/ValProvider-ecdd4b68.esm.js +618 -0
- package/dist/ValProvider-f27d153f.worker.esm.js +616 -0
- package/dist/{ValUI-43955bc2.browser.esm.js → ValUI-1bebc456.browser.esm.js} +10 -4
- package/dist/{ValUI-2db816eb.esm.js → ValUI-2dc20794.esm.js} +10 -4
- package/dist/ValUI-702583bb.cjs.js +7 -0
- package/dist/{ValUI-9b5a2304.cjs.prod.js → ValUI-702583bb.cjs.prod.js} +10 -4
- package/dist/{ValUI-28c5f528.cjs.dev.js → ValUI-968a38fb.cjs.dev.js} +10 -4
- package/dist/{ValUI-ba280067.worker.esm.js → ValUI-a93bea98.worker.esm.js} +10 -4
- package/dist/declarations/src/ValProvider.d.ts +1 -2
- package/dist/declarations/src/ValStore.d.ts +2 -1
- package/dist/declarations/src/stega/stegaEncode.d.ts +2 -1
- package/dist/{slicedToArray-5bddfa58.cjs.prod.js → slicedToArray-1fc98f25.cjs.prod.js} +19 -19
- package/dist/{slicedToArray-0cbb3d34.browser.esm.js → slicedToArray-4510c35a.worker.esm.js} +19 -19
- package/dist/{slicedToArray-5a51fd33.worker.esm.js → slicedToArray-5418adeb.esm.js} +19 -19
- package/dist/{slicedToArray-b4fb91fa.esm.js → slicedToArray-964e1994.browser.esm.js} +19 -19
- package/dist/{slicedToArray-7b1713a7.cjs.dev.js → slicedToArray-fb0bef7d.cjs.dev.js} +19 -19
- package/dist/typeof-16428c61.cjs.prod.js +13 -0
- package/dist/typeof-9915e135.browser.esm.js +11 -0
- package/dist/typeof-a1531d8f.esm.js +11 -0
- package/dist/typeof-b568f48f.cjs.dev.js +13 -0
- package/dist/typeof-e0c837cc.worker.esm.js +11 -0
- package/dist/valbuild-react.browser.esm.js +2 -2
- package/dist/valbuild-react.cjs.dev.js +2 -2
- package/dist/valbuild-react.cjs.prod.js +2 -2
- package/dist/valbuild-react.esm.js +2 -2
- package/dist/valbuild-react.worker.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.browser.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.dev.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.cjs.prod.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.esm.js +2 -2
- package/jsx-dev-runtime/dist/valbuild-react-jsx-dev-runtime.worker.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.browser.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.dev.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.cjs.prod.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.esm.js +2 -2
- package/jsx-runtime/dist/valbuild-react-jsx-runtime.worker.esm.js +2 -2
- package/package.json +3 -3
- package/src/ShadowRoot.tsx +1 -1
- package/src/ValProvider.tsx +3 -2
- package/src/ValStore.ts +2 -4
- package/src/ValUI.tsx +8 -3
- package/src/stega/stegaEncode.ts +3 -0
- package/stega/dist/valbuild-react-stega.browser.esm.js +17 -17
- package/stega/dist/valbuild-react-stega.cjs.dev.js +17 -17
- package/stega/dist/valbuild-react-stega.cjs.prod.js +17 -17
- package/stega/dist/valbuild-react-stega.esm.js +17 -17
- package/stega/dist/valbuild-react-stega.worker.esm.js +17 -17
- package/dist/ValProvider-46d4ba67.esm.js +0 -622
- package/dist/ValProvider-5026936f.worker.esm.js +0 -620
- package/dist/ValProvider-a6ce7155.browser.esm.js +0 -622
- package/dist/ValUI-9b5a2304.cjs.js +0 -7
- package/dist/typeof-16c77f45.cjs.prod.js +0 -13
- package/dist/typeof-1de657a3.cjs.dev.js +0 -13
- package/dist/typeof-52fabea9.browser.esm.js +0 -11
- package/dist/typeof-5c86a240.esm.js +0 -11
- package/dist/typeof-8854ace1.worker.esm.js +0 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var React = require('react');
|
4
|
-
var slicedToArray = require('./slicedToArray-
|
4
|
+
var slicedToArray = require('./slicedToArray-1fc98f25.cjs.prod.js');
|
5
5
|
var defineProperty = require('./defineProperty-36ed93cd.cjs.prod.js');
|
6
6
|
var fp = require('@valbuild/core/fp');
|
7
7
|
var core = require('@valbuild/core');
|
@@ -83,304 +83,304 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
83
83
|
|
84
84
|
function _regeneratorRuntime() {
|
85
85
|
_regeneratorRuntime = function () {
|
86
|
-
return
|
86
|
+
return e;
|
87
87
|
};
|
88
|
-
var
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
var t,
|
89
|
+
e = {},
|
90
|
+
r = Object.prototype,
|
91
|
+
n = r.hasOwnProperty,
|
92
|
+
o = Object.defineProperty || function (t, e, r) {
|
93
|
+
t[e] = r.value;
|
93
94
|
},
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
function define(
|
99
|
-
return Object.defineProperty(
|
100
|
-
value:
|
95
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
96
|
+
a = i.iterator || "@@iterator",
|
97
|
+
c = i.asyncIterator || "@@asyncIterator",
|
98
|
+
u = i.toStringTag || "@@toStringTag";
|
99
|
+
function define(t, e, r) {
|
100
|
+
return Object.defineProperty(t, e, {
|
101
|
+
value: r,
|
101
102
|
enumerable: !0,
|
102
103
|
configurable: !0,
|
103
104
|
writable: !0
|
104
|
-
}),
|
105
|
+
}), t[e];
|
105
106
|
}
|
106
107
|
try {
|
107
108
|
define({}, "");
|
108
|
-
} catch (
|
109
|
-
define = function (
|
110
|
-
return
|
109
|
+
} catch (t) {
|
110
|
+
define = function (t, e, r) {
|
111
|
+
return t[e] = r;
|
111
112
|
};
|
112
113
|
}
|
113
|
-
function wrap(
|
114
|
-
var
|
115
|
-
|
116
|
-
|
117
|
-
return
|
118
|
-
value: makeInvokeMethod(
|
119
|
-
}),
|
114
|
+
function wrap(t, e, r, n) {
|
115
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
116
|
+
a = Object.create(i.prototype),
|
117
|
+
c = new Context(n || []);
|
118
|
+
return o(a, "_invoke", {
|
119
|
+
value: makeInvokeMethod(t, r, c)
|
120
|
+
}), a;
|
120
121
|
}
|
121
|
-
function tryCatch(
|
122
|
+
function tryCatch(t, e, r) {
|
122
123
|
try {
|
123
124
|
return {
|
124
125
|
type: "normal",
|
125
|
-
arg:
|
126
|
+
arg: t.call(e, r)
|
126
127
|
};
|
127
|
-
} catch (
|
128
|
+
} catch (t) {
|
128
129
|
return {
|
129
130
|
type: "throw",
|
130
|
-
arg:
|
131
|
+
arg: t
|
131
132
|
};
|
132
133
|
}
|
133
134
|
}
|
134
|
-
|
135
|
-
var
|
135
|
+
e.wrap = wrap;
|
136
|
+
var h = "suspendedStart",
|
137
|
+
l = "suspendedYield",
|
138
|
+
f = "executing",
|
139
|
+
s = "completed",
|
140
|
+
y = {};
|
136
141
|
function Generator() {}
|
137
142
|
function GeneratorFunction() {}
|
138
143
|
function GeneratorFunctionPrototype() {}
|
139
|
-
var
|
140
|
-
define(
|
144
|
+
var p = {};
|
145
|
+
define(p, a, function () {
|
141
146
|
return this;
|
142
147
|
});
|
143
|
-
var
|
144
|
-
|
145
|
-
|
146
|
-
var
|
147
|
-
function defineIteratorMethods(
|
148
|
-
["next", "throw", "return"].forEach(function (
|
149
|
-
define(
|
150
|
-
return this._invoke(
|
148
|
+
var d = Object.getPrototypeOf,
|
149
|
+
v = d && d(d(values([])));
|
150
|
+
v && v !== r && n.call(v, a) && (p = v);
|
151
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
152
|
+
function defineIteratorMethods(t) {
|
153
|
+
["next", "throw", "return"].forEach(function (e) {
|
154
|
+
define(t, e, function (t) {
|
155
|
+
return this._invoke(e, t);
|
151
156
|
});
|
152
157
|
});
|
153
158
|
}
|
154
|
-
function AsyncIterator(
|
155
|
-
function invoke(
|
156
|
-
var
|
157
|
-
if ("throw" !==
|
158
|
-
var
|
159
|
-
|
160
|
-
return
|
161
|
-
invoke("next",
|
162
|
-
}, function (
|
163
|
-
invoke("throw",
|
164
|
-
}) :
|
165
|
-
|
166
|
-
}, function (
|
167
|
-
return invoke("throw",
|
159
|
+
function AsyncIterator(t, e) {
|
160
|
+
function invoke(r, o, i, a) {
|
161
|
+
var c = tryCatch(t[r], t, o);
|
162
|
+
if ("throw" !== c.type) {
|
163
|
+
var u = c.arg,
|
164
|
+
h = u.value;
|
165
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
166
|
+
invoke("next", t, i, a);
|
167
|
+
}, function (t) {
|
168
|
+
invoke("throw", t, i, a);
|
169
|
+
}) : e.resolve(h).then(function (t) {
|
170
|
+
u.value = t, i(u);
|
171
|
+
}, function (t) {
|
172
|
+
return invoke("throw", t, i, a);
|
168
173
|
});
|
169
174
|
}
|
170
|
-
|
175
|
+
a(c.arg);
|
171
176
|
}
|
172
|
-
var
|
173
|
-
|
174
|
-
value: function (
|
177
|
+
var r;
|
178
|
+
o(this, "_invoke", {
|
179
|
+
value: function (t, n) {
|
175
180
|
function callInvokeWithMethodAndArg() {
|
176
|
-
return new
|
177
|
-
invoke(
|
181
|
+
return new e(function (e, r) {
|
182
|
+
invoke(t, n, e, r);
|
178
183
|
});
|
179
184
|
}
|
180
|
-
return
|
185
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
181
186
|
}
|
182
187
|
});
|
183
188
|
}
|
184
|
-
function makeInvokeMethod(
|
185
|
-
var
|
186
|
-
return function (
|
187
|
-
if (
|
188
|
-
if (
|
189
|
-
if ("throw" ===
|
190
|
-
return
|
189
|
+
function makeInvokeMethod(e, r, n) {
|
190
|
+
var o = h;
|
191
|
+
return function (i, a) {
|
192
|
+
if (o === f) throw new Error("Generator is already running");
|
193
|
+
if (o === s) {
|
194
|
+
if ("throw" === i) throw a;
|
195
|
+
return {
|
196
|
+
value: t,
|
197
|
+
done: !0
|
198
|
+
};
|
191
199
|
}
|
192
|
-
for (
|
193
|
-
var
|
194
|
-
if (
|
195
|
-
var
|
196
|
-
if (
|
197
|
-
if (
|
198
|
-
return
|
200
|
+
for (n.method = i, n.arg = a;;) {
|
201
|
+
var c = n.delegate;
|
202
|
+
if (c) {
|
203
|
+
var u = maybeInvokeDelegate(c, n);
|
204
|
+
if (u) {
|
205
|
+
if (u === y) continue;
|
206
|
+
return u;
|
199
207
|
}
|
200
208
|
}
|
201
|
-
if ("next" ===
|
202
|
-
if (
|
203
|
-
|
204
|
-
} else "return" ===
|
205
|
-
|
206
|
-
var
|
207
|
-
if ("normal" ===
|
208
|
-
if (
|
209
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
210
|
+
if (o === h) throw o = s, n.arg;
|
211
|
+
n.dispatchException(n.arg);
|
212
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
213
|
+
o = f;
|
214
|
+
var p = tryCatch(e, r, n);
|
215
|
+
if ("normal" === p.type) {
|
216
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
209
217
|
return {
|
210
|
-
value:
|
211
|
-
done:
|
218
|
+
value: p.arg,
|
219
|
+
done: n.done
|
212
220
|
};
|
213
221
|
}
|
214
|
-
"throw" ===
|
222
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
215
223
|
}
|
216
224
|
};
|
217
225
|
}
|
218
|
-
function maybeInvokeDelegate(
|
219
|
-
var
|
220
|
-
|
221
|
-
if (
|
222
|
-
var
|
223
|
-
if ("throw" ===
|
224
|
-
var
|
225
|
-
return
|
226
|
+
function maybeInvokeDelegate(e, r) {
|
227
|
+
var n = r.method,
|
228
|
+
o = e.iterator[n];
|
229
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
230
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
231
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
232
|
+
var a = i.arg;
|
233
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
226
234
|
}
|
227
|
-
function pushTryEntry(
|
228
|
-
var
|
229
|
-
tryLoc:
|
235
|
+
function pushTryEntry(t) {
|
236
|
+
var e = {
|
237
|
+
tryLoc: t[0]
|
230
238
|
};
|
231
|
-
1 in
|
239
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
232
240
|
}
|
233
|
-
function resetTryEntry(
|
234
|
-
var
|
235
|
-
|
241
|
+
function resetTryEntry(t) {
|
242
|
+
var e = t.completion || {};
|
243
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
236
244
|
}
|
237
|
-
function Context(
|
245
|
+
function Context(t) {
|
238
246
|
this.tryEntries = [{
|
239
247
|
tryLoc: "root"
|
240
|
-
}],
|
248
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
241
249
|
}
|
242
|
-
function values(
|
243
|
-
if (
|
244
|
-
var
|
245
|
-
if (
|
246
|
-
if ("function" == typeof
|
247
|
-
if (!isNaN(
|
248
|
-
var
|
249
|
-
|
250
|
-
for (; ++
|
251
|
-
return next.value =
|
250
|
+
function values(e) {
|
251
|
+
if (e || "" === e) {
|
252
|
+
var r = e[a];
|
253
|
+
if (r) return r.call(e);
|
254
|
+
if ("function" == typeof e.next) return e;
|
255
|
+
if (!isNaN(e.length)) {
|
256
|
+
var o = -1,
|
257
|
+
i = function next() {
|
258
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
259
|
+
return next.value = t, next.done = !0, next;
|
252
260
|
};
|
253
|
-
return
|
261
|
+
return i.next = i;
|
254
262
|
}
|
255
263
|
}
|
256
|
-
|
257
|
-
next: doneResult
|
258
|
-
};
|
259
|
-
}
|
260
|
-
function doneResult() {
|
261
|
-
return {
|
262
|
-
value: undefined,
|
263
|
-
done: !0
|
264
|
-
};
|
264
|
+
throw new TypeError(typeof e + " is not iterable");
|
265
265
|
}
|
266
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
266
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
267
267
|
value: GeneratorFunctionPrototype,
|
268
268
|
configurable: !0
|
269
|
-
}),
|
269
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
270
270
|
value: GeneratorFunction,
|
271
271
|
configurable: !0
|
272
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
273
|
-
var
|
274
|
-
return !!
|
275
|
-
},
|
276
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
277
|
-
},
|
272
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
273
|
+
var e = "function" == typeof t && t.constructor;
|
274
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
275
|
+
}, e.mark = function (t) {
|
276
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
277
|
+
}, e.awrap = function (t) {
|
278
278
|
return {
|
279
|
-
__await:
|
279
|
+
__await: t
|
280
280
|
};
|
281
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
281
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
282
282
|
return this;
|
283
|
-
}),
|
284
|
-
void 0 ===
|
285
|
-
var
|
286
|
-
return
|
287
|
-
return
|
283
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
284
|
+
void 0 === i && (i = Promise);
|
285
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
286
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
287
|
+
return t.done ? t.value : a.next();
|
288
288
|
});
|
289
|
-
}, defineIteratorMethods(
|
289
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
290
290
|
return this;
|
291
|
-
}), define(
|
291
|
+
}), define(g, "toString", function () {
|
292
292
|
return "[object Generator]";
|
293
|
-
}),
|
294
|
-
var
|
295
|
-
|
296
|
-
for (var
|
297
|
-
return
|
298
|
-
for (;
|
299
|
-
var
|
300
|
-
if (
|
293
|
+
}), e.keys = function (t) {
|
294
|
+
var e = Object(t),
|
295
|
+
r = [];
|
296
|
+
for (var n in e) r.push(n);
|
297
|
+
return r.reverse(), function next() {
|
298
|
+
for (; r.length;) {
|
299
|
+
var t = r.pop();
|
300
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
301
301
|
}
|
302
302
|
return next.done = !0, next;
|
303
303
|
};
|
304
|
-
},
|
304
|
+
}, e.values = values, Context.prototype = {
|
305
305
|
constructor: Context,
|
306
|
-
reset: function (
|
307
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
306
|
+
reset: function (e) {
|
307
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
308
308
|
},
|
309
309
|
stop: function () {
|
310
310
|
this.done = !0;
|
311
|
-
var
|
312
|
-
if ("throw" ===
|
311
|
+
var t = this.tryEntries[0].completion;
|
312
|
+
if ("throw" === t.type) throw t.arg;
|
313
313
|
return this.rval;
|
314
314
|
},
|
315
|
-
dispatchException: function (
|
316
|
-
if (this.done) throw
|
317
|
-
var
|
318
|
-
function handle(
|
319
|
-
return
|
315
|
+
dispatchException: function (e) {
|
316
|
+
if (this.done) throw e;
|
317
|
+
var r = this;
|
318
|
+
function handle(n, o) {
|
319
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
320
320
|
}
|
321
|
-
for (var
|
322
|
-
var
|
323
|
-
|
324
|
-
if ("root" ===
|
325
|
-
if (
|
326
|
-
var
|
327
|
-
|
328
|
-
if (
|
329
|
-
if (this.prev <
|
330
|
-
if (this.prev <
|
331
|
-
} else if (
|
332
|
-
if (this.prev <
|
321
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
322
|
+
var i = this.tryEntries[o],
|
323
|
+
a = i.completion;
|
324
|
+
if ("root" === i.tryLoc) return handle("end");
|
325
|
+
if (i.tryLoc <= this.prev) {
|
326
|
+
var c = n.call(i, "catchLoc"),
|
327
|
+
u = n.call(i, "finallyLoc");
|
328
|
+
if (c && u) {
|
329
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
330
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
331
|
+
} else if (c) {
|
332
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
333
333
|
} else {
|
334
|
-
if (!
|
335
|
-
if (this.prev <
|
334
|
+
if (!u) throw new Error("try statement without catch or finally");
|
335
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
336
336
|
}
|
337
337
|
}
|
338
338
|
}
|
339
339
|
},
|
340
|
-
abrupt: function (
|
341
|
-
for (var
|
342
|
-
var
|
343
|
-
if (
|
344
|
-
var
|
340
|
+
abrupt: function (t, e) {
|
341
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
342
|
+
var o = this.tryEntries[r];
|
343
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
344
|
+
var i = o;
|
345
345
|
break;
|
346
346
|
}
|
347
347
|
}
|
348
|
-
|
349
|
-
var
|
350
|
-
return
|
348
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
349
|
+
var a = i ? i.completion : {};
|
350
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
351
351
|
},
|
352
|
-
complete: function (
|
353
|
-
if ("throw" ===
|
354
|
-
return "break" ===
|
352
|
+
complete: function (t, e) {
|
353
|
+
if ("throw" === t.type) throw t.arg;
|
354
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
355
355
|
},
|
356
|
-
finish: function (
|
357
|
-
for (var
|
358
|
-
var
|
359
|
-
if (
|
356
|
+
finish: function (t) {
|
357
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
358
|
+
var r = this.tryEntries[e];
|
359
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
360
360
|
}
|
361
361
|
},
|
362
|
-
catch: function (
|
363
|
-
for (var
|
364
|
-
var
|
365
|
-
if (
|
366
|
-
var
|
367
|
-
if ("throw" ===
|
368
|
-
var
|
369
|
-
resetTryEntry(
|
362
|
+
catch: function (t) {
|
363
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
364
|
+
var r = this.tryEntries[e];
|
365
|
+
if (r.tryLoc === t) {
|
366
|
+
var n = r.completion;
|
367
|
+
if ("throw" === n.type) {
|
368
|
+
var o = n.arg;
|
369
|
+
resetTryEntry(r);
|
370
370
|
}
|
371
|
-
return
|
371
|
+
return o;
|
372
372
|
}
|
373
373
|
}
|
374
374
|
throw new Error("illegal catch attempt");
|
375
375
|
},
|
376
|
-
delegateYield: function (
|
376
|
+
delegateYield: function (e, r, n) {
|
377
377
|
return this.delegate = {
|
378
|
-
iterator: values(
|
379
|
-
resultName:
|
380
|
-
nextLoc:
|
381
|
-
}, "next" === this.method && (this.arg =
|
378
|
+
iterator: values(e),
|
379
|
+
resultName: r,
|
380
|
+
nextLoc: n
|
381
|
+
}, "next" === this.method && (this.arg = t), y;
|
382
382
|
}
|
383
|
-
},
|
383
|
+
}, e;
|
384
384
|
}
|
385
385
|
|
386
386
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
@@ -459,13 +459,11 @@ var ValStore = /*#__PURE__*/function () {
|
|
459
459
|
});
|
460
460
|
defineProperty._defineProperty(this, "getSnapshot", function (moduleIds) {
|
461
461
|
return function () {
|
462
|
-
console.log("getSnapshot", moduleIds);
|
463
462
|
return _this.get(moduleIds);
|
464
463
|
};
|
465
464
|
});
|
466
465
|
defineProperty._defineProperty(this, "getServerSnapshot", function (moduleIds) {
|
467
466
|
return function () {
|
468
|
-
console.log("getServerSnapshot", moduleIds);
|
469
467
|
return _this.get(moduleIds);
|
470
468
|
};
|
471
469
|
});
|
@@ -585,7 +583,6 @@ var ValStore = /*#__PURE__*/function () {
|
|
585
583
|
}, {
|
586
584
|
key: "emitChange",
|
587
585
|
value: function emitChange(subscriberId) {
|
588
|
-
console.log("emitChange");
|
589
586
|
var _iterator = _createForOfIteratorHelper(this.listeners[subscriberId]),
|
590
587
|
_step;
|
591
588
|
try {
|
@@ -622,12 +619,11 @@ var ValContext = /*#__PURE__*/React__default["default"].createContext({
|
|
622
619
|
}
|
623
620
|
});
|
624
621
|
var ValUI = typeof window !== "undefined" ? /*#__PURE__*/React.lazy(function () {
|
625
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-
|
622
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('./ValUI-702583bb.cjs.prod.js')); });
|
626
623
|
}) : null;
|
627
624
|
function ValProvider(_ref) {
|
628
|
-
var
|
629
|
-
|
630
|
-
children = _ref.children;
|
625
|
+
var children = _ref.children;
|
626
|
+
var host = "/api/val";
|
631
627
|
var valApi = React.useMemo(function () {
|
632
628
|
return new core.ValApi(host);
|
633
629
|
}, [host]);
|