@player-ui/player 0.15.3-next.1 → 0.15.3-next.2
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/Player.native.js +275 -258
- package/dist/Player.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/controllers/data/utils.ts +1 -3
- package/src/expressions/types.ts +4 -8
- package/src/validator/types.ts +1 -2
- package/src/view/parser/types.ts +3 -6
package/dist/Player.native.js
CHANGED
|
@@ -118,6 +118,7 @@ function _inherits(subClass, superClass) {
|
|
|
118
118
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
119
119
|
}
|
|
120
120
|
function _instanceof(left, right) {
|
|
121
|
+
"@swc/helpers - instanceof";
|
|
121
122
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
122
123
|
return !!right[Symbol.hasInstance](left);
|
|
123
124
|
} else {
|
|
@@ -201,12 +202,22 @@ function _object_spread_props(target, source) {
|
|
|
201
202
|
}
|
|
202
203
|
function _object_without_properties(source, excluded) {
|
|
203
204
|
if (source == null) return {};
|
|
204
|
-
var target =
|
|
205
|
-
|
|
205
|
+
var target = {}, sourceKeys, key, i;
|
|
206
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
207
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
208
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
209
|
+
key = sourceKeys[i];
|
|
210
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
211
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
212
|
+
target[key] = source[key];
|
|
213
|
+
}
|
|
214
|
+
return target;
|
|
215
|
+
}
|
|
216
|
+
target = _object_without_properties_loose(source, excluded);
|
|
206
217
|
if (Object.getOwnPropertySymbols) {
|
|
207
|
-
|
|
208
|
-
for(i = 0; i <
|
|
209
|
-
key =
|
|
218
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
219
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
220
|
+
key = sourceKeys[i];
|
|
210
221
|
if (excluded.indexOf(key) >= 0) continue;
|
|
211
222
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
212
223
|
target[key] = source[key];
|
|
@@ -216,12 +227,11 @@ function _object_without_properties(source, excluded) {
|
|
|
216
227
|
}
|
|
217
228
|
function _object_without_properties_loose(source, excluded) {
|
|
218
229
|
if (source == null) return {};
|
|
219
|
-
var target = {};
|
|
220
|
-
var sourceKeys = Object.keys(source);
|
|
221
|
-
var key, i;
|
|
230
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
222
231
|
for(i = 0; i < sourceKeys.length; i++){
|
|
223
232
|
key = sourceKeys[i];
|
|
224
233
|
if (excluded.indexOf(key) >= 0) continue;
|
|
234
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
225
235
|
target[key] = source[key];
|
|
226
236
|
}
|
|
227
237
|
return target;
|
|
@@ -303,9 +313,17 @@ function _ts_generator(thisArg, body) {
|
|
|
303
313
|
},
|
|
304
314
|
trys: [],
|
|
305
315
|
ops: []
|
|
306
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
307
|
-
return
|
|
308
|
-
|
|
316
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
317
|
+
return d(g, "next", {
|
|
318
|
+
value: verb(0)
|
|
319
|
+
}), d(g, "throw", {
|
|
320
|
+
value: verb(1)
|
|
321
|
+
}), d(g, "return", {
|
|
322
|
+
value: verb(2)
|
|
323
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
324
|
+
value: function() {
|
|
325
|
+
return this;
|
|
326
|
+
}
|
|
309
327
|
}), g;
|
|
310
328
|
function verb(n) {
|
|
311
329
|
return function(v) {
|
|
@@ -466,21 +484,21 @@ var Player = function() {
|
|
|
466
484
|
return middleware;
|
|
467
485
|
}
|
|
468
486
|
return {
|
|
469
|
-
get: function(binding, options) {
|
|
487
|
+
get: function get(binding, options) {
|
|
470
488
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
471
489
|
if (middleware.get) {
|
|
472
490
|
return middleware.get(binding, resolvedOptions, next);
|
|
473
491
|
}
|
|
474
492
|
return next === null || next === void 0 ? void 0 : next.get(binding, resolvedOptions);
|
|
475
493
|
},
|
|
476
|
-
set: function(transaction, options) {
|
|
494
|
+
set: function set(transaction, options) {
|
|
477
495
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
478
496
|
if (middleware.set) {
|
|
479
497
|
return middleware.set(transaction, resolvedOptions, next);
|
|
480
498
|
}
|
|
481
499
|
return next === null || next === void 0 ? void 0 : next.set(transaction, resolvedOptions);
|
|
482
500
|
},
|
|
483
|
-
delete: function(binding, options) {
|
|
501
|
+
delete: function _delete(binding, options) {
|
|
484
502
|
var resolvedOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
485
503
|
if (middleware.delete) {
|
|
486
504
|
return middleware.delete(binding, resolvedOptions, next);
|
|
@@ -504,15 +522,15 @@ var Player = function() {
|
|
|
504
522
|
return model;
|
|
505
523
|
}
|
|
506
524
|
return {
|
|
507
|
-
get: function(binding, options) {
|
|
525
|
+
get: function get(binding, options) {
|
|
508
526
|
var _createModelWithOptions;
|
|
509
527
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.get(binding, options);
|
|
510
528
|
},
|
|
511
|
-
set: function(transaction, options) {
|
|
529
|
+
set: function set(transaction, options) {
|
|
512
530
|
var _createModelWithOptions;
|
|
513
531
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.set(transaction, options);
|
|
514
532
|
},
|
|
515
|
-
delete: function(binding, options) {
|
|
533
|
+
delete: function _delete(binding, options) {
|
|
516
534
|
var _createModelWithOptions;
|
|
517
535
|
return (_createModelWithOptions = createModelWithOptions(options)) === null || _createModelWithOptions === void 0 ? void 0 : _createModelWithOptions.delete(binding, options);
|
|
518
536
|
}
|
|
@@ -591,13 +609,13 @@ var Player = function() {
|
|
|
591
609
|
return ch0 === OCURL_CODE && ch1 === OCURL_CODE;
|
|
592
610
|
};
|
|
593
611
|
var parseExpression = function parseExpression(expr, options) {
|
|
594
|
-
var
|
|
595
|
-
var strictMode = (
|
|
612
|
+
var _ref;
|
|
613
|
+
var strictMode = (_ref = options === null || options === void 0 ? void 0 : options.strict) !== null && _ref !== void 0 ? _ref : true;
|
|
596
614
|
var charAtFunc = expr.charAt;
|
|
597
615
|
var charCodeAtFunc = expr.charCodeAt;
|
|
598
616
|
var length = expr.length;
|
|
599
617
|
var index = 0;
|
|
600
|
-
var getLocation = function(startChar) {
|
|
618
|
+
var getLocation = function getLocation(startChar) {
|
|
601
619
|
return {
|
|
602
620
|
start: {
|
|
603
621
|
character: startChar
|
|
@@ -1405,17 +1423,17 @@ var Player = function() {
|
|
|
1405
1423
|
return _object_spread_props(_object_spread({}, resolverOptions), {
|
|
1406
1424
|
data: {
|
|
1407
1425
|
model: resolverOptions.model,
|
|
1408
|
-
formatValue: function(ref, value) {
|
|
1426
|
+
formatValue: function formatValue(ref, value) {
|
|
1409
1427
|
if (resolverOptions.formatValue) {
|
|
1410
1428
|
return resolverOptions.formatValue(ref, value);
|
|
1411
1429
|
}
|
|
1412
1430
|
return value;
|
|
1413
1431
|
},
|
|
1414
|
-
format: function(bindingLike, value) {
|
|
1432
|
+
format: function format(bindingLike, value) {
|
|
1415
1433
|
return resolverOptions.format ? resolverOptions.format(isBinding(bindingLike) ? bindingLike : resolverOptions.parseBinding(bindingLike), value) : value;
|
|
1416
1434
|
}
|
|
1417
1435
|
},
|
|
1418
|
-
evaluate: function(exp) {
|
|
1436
|
+
evaluate: function evaluate(exp) {
|
|
1419
1437
|
return resolverOptions.evaluator.evaluate(exp, resolverOptions);
|
|
1420
1438
|
}
|
|
1421
1439
|
});
|
|
@@ -1468,7 +1486,7 @@ var Player = function() {
|
|
|
1468
1486
|
};
|
|
1469
1487
|
var createObjectMatcher = function createObjectMatcher(partialObj) {
|
|
1470
1488
|
var pairs = traverseObj(partialObj);
|
|
1471
|
-
var matchFunction = function(searchObj) {
|
|
1489
|
+
var matchFunction = function matchFunction(searchObj) {
|
|
1472
1490
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1473
1491
|
try {
|
|
1474
1492
|
for(var _iterator = Array.from(pairs)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -1498,7 +1516,7 @@ var Player = function() {
|
|
|
1498
1516
|
return matchFunction;
|
|
1499
1517
|
};
|
|
1500
1518
|
var createBasicMatcher = function createBasicMatcher(seed) {
|
|
1501
|
-
var matcher = function(match) {
|
|
1519
|
+
var matcher = function matcher(match) {
|
|
1502
1520
|
return seed === match;
|
|
1503
1521
|
};
|
|
1504
1522
|
matcher.count = 1;
|
|
@@ -1521,27 +1539,27 @@ var Player = function() {
|
|
|
1521
1539
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1522
1540
|
var __getProtoOf = Object.getPrototypeOf;
|
|
1523
1541
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1524
|
-
var __commonJS = function(cb, mod) {
|
|
1542
|
+
var __commonJS = function __commonJS(cb, mod) {
|
|
1525
1543
|
return function __require() {
|
|
1526
1544
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
|
|
1527
1545
|
exports: {}
|
|
1528
1546
|
}).exports, mod), mod.exports;
|
|
1529
1547
|
};
|
|
1530
1548
|
};
|
|
1531
|
-
var __export = function(target, all) {
|
|
1549
|
+
var __export = function __export(target, all) {
|
|
1532
1550
|
for(var name in all)__defProp(target, name, {
|
|
1533
1551
|
get: all[name],
|
|
1534
1552
|
enumerable: true
|
|
1535
1553
|
});
|
|
1536
1554
|
};
|
|
1537
|
-
var __copyProps = function(to, from, except, desc) {
|
|
1555
|
+
var __copyProps = function __copyProps(to, from, except, desc) {
|
|
1538
1556
|
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
1539
1557
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1540
1558
|
try {
|
|
1541
1559
|
var _loop = function() {
|
|
1542
1560
|
var key = _step.value;
|
|
1543
1561
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1544
|
-
get: function() {
|
|
1562
|
+
get: function get() {
|
|
1545
1563
|
return from[key];
|
|
1546
1564
|
},
|
|
1547
1565
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -1565,7 +1583,7 @@ var Player = function() {
|
|
|
1565
1583
|
}
|
|
1566
1584
|
return to;
|
|
1567
1585
|
};
|
|
1568
|
-
var __toESM = function(mod, isNodeMode, target) {
|
|
1586
|
+
var __toESM = function __toESM(mod, isNodeMode, target) {
|
|
1569
1587
|
return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
|
|
1570
1588
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1571
1589
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -1575,7 +1593,7 @@ var Player = function() {
|
|
|
1575
1593
|
enumerable: true
|
|
1576
1594
|
}) : target, mod);
|
|
1577
1595
|
};
|
|
1578
|
-
var __toCommonJS = function(mod) {
|
|
1596
|
+
var __toCommonJS = function __toCommonJS(mod) {
|
|
1579
1597
|
return __copyProps(__defProp({}, "__esModule", {
|
|
1580
1598
|
value: true
|
|
1581
1599
|
}), mod);
|
|
@@ -1677,7 +1695,7 @@ var Player = function() {
|
|
|
1677
1695
|
function toError(err) {
|
|
1678
1696
|
try {
|
|
1679
1697
|
return _instanceof(err, Error) ? err : new Error("Value that is not an instance of Error was thrown: ".concat(err));
|
|
1680
|
-
} catch (
|
|
1698
|
+
} catch (unused) {
|
|
1681
1699
|
return new Error("Failed to stringify non-instance of Error that was thrown.This is possibly due to the fact that toString() method of the valuedoesn't return a primitive value.");
|
|
1682
1700
|
}
|
|
1683
1701
|
}
|
|
@@ -1978,7 +1996,7 @@ var Player = function() {
|
|
|
1978
1996
|
var require_p_defer = __commonJS({
|
|
1979
1997
|
"../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/p-defer@3.0.0/node_modules/p-defer/index.js": function(exports, module) {
|
|
1980
1998
|
"use strict";
|
|
1981
|
-
var pDefer = function() {
|
|
1999
|
+
var pDefer = function pDefer() {
|
|
1982
2000
|
var deferred2 = {};
|
|
1983
2001
|
deferred2.promise = new Promise(function(resolve, reject) {
|
|
1984
2002
|
deferred2.resolve = resolve;
|
|
@@ -2087,232 +2105,232 @@ var Player = function() {
|
|
|
2087
2105
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/index.ts
|
|
2088
2106
|
var src_exports = {};
|
|
2089
2107
|
__export(src_exports, {
|
|
2090
|
-
ApplicabilityPlugin: function() {
|
|
2108
|
+
ApplicabilityPlugin: function ApplicabilityPlugin1() {
|
|
2091
2109
|
return ApplicabilityPlugin;
|
|
2092
2110
|
},
|
|
2093
|
-
AssetPlugin: function() {
|
|
2111
|
+
AssetPlugin: function AssetPlugin1() {
|
|
2094
2112
|
return AssetPlugin;
|
|
2095
2113
|
},
|
|
2096
|
-
AssetTransformCorePlugin: function() {
|
|
2114
|
+
AssetTransformCorePlugin: function AssetTransformCorePlugin1() {
|
|
2097
2115
|
return AssetTransformCorePlugin;
|
|
2098
2116
|
},
|
|
2099
|
-
BINDING_BRACKETS_REGEX: function() {
|
|
2117
|
+
BINDING_BRACKETS_REGEX: function BINDING_BRACKETS_REGEX1() {
|
|
2100
2118
|
return BINDING_BRACKETS_REGEX;
|
|
2101
2119
|
},
|
|
2102
|
-
BindingInstance: function() {
|
|
2120
|
+
BindingInstance: function BindingInstance1() {
|
|
2103
2121
|
return BindingInstance;
|
|
2104
2122
|
},
|
|
2105
|
-
BindingParser: function() {
|
|
2123
|
+
BindingParser: function BindingParser1() {
|
|
2106
2124
|
return BindingParser;
|
|
2107
2125
|
},
|
|
2108
|
-
Builder: function() {
|
|
2126
|
+
Builder: function Builder1() {
|
|
2109
2127
|
return Builder;
|
|
2110
2128
|
},
|
|
2111
|
-
ConsoleLogger: function() {
|
|
2129
|
+
ConsoleLogger: function ConsoleLogger1() {
|
|
2112
2130
|
return ConsoleLogger;
|
|
2113
2131
|
},
|
|
2114
|
-
ConstantsController: function() {
|
|
2132
|
+
ConstantsController: function ConstantsController1() {
|
|
2115
2133
|
return ConstantsController;
|
|
2116
2134
|
},
|
|
2117
|
-
DataController: function() {
|
|
2135
|
+
DataController: function DataController1() {
|
|
2118
2136
|
return DataController;
|
|
2119
2137
|
},
|
|
2120
|
-
DependencyMiddleware: function() {
|
|
2138
|
+
DependencyMiddleware: function DependencyMiddleware1() {
|
|
2121
2139
|
return DependencyMiddleware;
|
|
2122
2140
|
},
|
|
2123
|
-
DependencyModel: function() {
|
|
2141
|
+
DependencyModel: function DependencyModel1() {
|
|
2124
2142
|
return DependencyModel;
|
|
2125
2143
|
},
|
|
2126
|
-
DependencyTracker: function() {
|
|
2144
|
+
DependencyTracker: function DependencyTracker1() {
|
|
2127
2145
|
return DependencyTracker;
|
|
2128
2146
|
},
|
|
2129
|
-
EMPTY_NODE: function() {
|
|
2147
|
+
EMPTY_NODE: function EMPTY_NODE1() {
|
|
2130
2148
|
return EMPTY_NODE;
|
|
2131
2149
|
},
|
|
2132
|
-
ExpNodeOpaqueIdentifier: function() {
|
|
2150
|
+
ExpNodeOpaqueIdentifier: function ExpNodeOpaqueIdentifier1() {
|
|
2133
2151
|
return ExpNodeOpaqueIdentifier;
|
|
2134
2152
|
},
|
|
2135
|
-
ExpressionEvaluator: function() {
|
|
2153
|
+
ExpressionEvaluator: function ExpressionEvaluator1() {
|
|
2136
2154
|
return ExpressionEvaluator;
|
|
2137
2155
|
},
|
|
2138
|
-
FlowController: function() {
|
|
2156
|
+
FlowController: function FlowController1() {
|
|
2139
2157
|
return FlowController;
|
|
2140
2158
|
},
|
|
2141
|
-
FlowExpPlugin: function() {
|
|
2159
|
+
FlowExpPlugin: function FlowExpPlugin1() {
|
|
2142
2160
|
return FlowExpPlugin;
|
|
2143
2161
|
},
|
|
2144
|
-
FlowInstance: function() {
|
|
2162
|
+
FlowInstance: function FlowInstance1() {
|
|
2145
2163
|
return FlowInstance;
|
|
2146
2164
|
},
|
|
2147
|
-
LocalModel: function() {
|
|
2165
|
+
LocalModel: function LocalModel1() {
|
|
2148
2166
|
return LocalModel;
|
|
2149
2167
|
},
|
|
2150
|
-
LocalStateStore: function() {
|
|
2168
|
+
LocalStateStore: function LocalStateStore1() {
|
|
2151
2169
|
return LocalStateStore;
|
|
2152
2170
|
},
|
|
2153
|
-
MultiNodePlugin: function() {
|
|
2171
|
+
MultiNodePlugin: function MultiNodePlugin1() {
|
|
2154
2172
|
return MultiNodePlugin;
|
|
2155
2173
|
},
|
|
2156
|
-
NOOPDataModel: function() {
|
|
2174
|
+
NOOPDataModel: function NOOPDataModel1() {
|
|
2157
2175
|
return NOOPDataModel;
|
|
2158
2176
|
},
|
|
2159
|
-
NOOP_MODEL: function() {
|
|
2177
|
+
NOOP_MODEL: function NOOP_MODEL1() {
|
|
2160
2178
|
return NOOP_MODEL;
|
|
2161
2179
|
},
|
|
2162
|
-
NOT_STARTED_STATE: function() {
|
|
2180
|
+
NOT_STARTED_STATE: function NOT_STARTED_STATE1() {
|
|
2163
2181
|
return NOT_STARTED_STATE;
|
|
2164
2182
|
},
|
|
2165
|
-
NodeType: function() {
|
|
2183
|
+
NodeType: function NodeType1() {
|
|
2166
2184
|
return NodeType;
|
|
2167
2185
|
},
|
|
2168
|
-
NoopLogger: function() {
|
|
2186
|
+
NoopLogger: function NoopLogger1() {
|
|
2169
2187
|
return NoopLogger;
|
|
2170
2188
|
},
|
|
2171
|
-
Parser: function() {
|
|
2189
|
+
Parser: function Parser1() {
|
|
2172
2190
|
return Parser;
|
|
2173
2191
|
},
|
|
2174
|
-
PipelinedDataModel: function() {
|
|
2192
|
+
PipelinedDataModel: function PipelinedDataModel1() {
|
|
2175
2193
|
return PipelinedDataModel;
|
|
2176
2194
|
},
|
|
2177
|
-
Player: function() {
|
|
2195
|
+
Player: function Player1() {
|
|
2178
2196
|
return Player;
|
|
2179
2197
|
},
|
|
2180
|
-
ProxyLogger: function() {
|
|
2198
|
+
ProxyLogger: function ProxyLogger1() {
|
|
2181
2199
|
return ProxyLogger;
|
|
2182
2200
|
},
|
|
2183
|
-
ROOT_BINDING: function() {
|
|
2201
|
+
ROOT_BINDING: function ROOT_BINDING1() {
|
|
2184
2202
|
return ROOT_BINDING;
|
|
2185
2203
|
},
|
|
2186
|
-
Resolver: function() {
|
|
2204
|
+
Resolver: function Resolver1() {
|
|
2187
2205
|
return Resolver;
|
|
2188
2206
|
},
|
|
2189
|
-
SCHEMA_VALIDATION_PROVIDER_NAME: function() {
|
|
2207
|
+
SCHEMA_VALIDATION_PROVIDER_NAME: function SCHEMA_VALIDATION_PROVIDER_NAME1() {
|
|
2190
2208
|
return SCHEMA_VALIDATION_PROVIDER_NAME;
|
|
2191
2209
|
},
|
|
2192
|
-
SIMPLE_BINDING_REGEX: function() {
|
|
2210
|
+
SIMPLE_BINDING_REGEX: function SIMPLE_BINDING_REGEX1() {
|
|
2193
2211
|
return SIMPLE_BINDING_REGEX;
|
|
2194
2212
|
},
|
|
2195
|
-
SchemaController: function() {
|
|
2213
|
+
SchemaController: function SchemaController1() {
|
|
2196
2214
|
return SchemaController;
|
|
2197
2215
|
},
|
|
2198
|
-
StringResolverPlugin: function() {
|
|
2216
|
+
StringResolverPlugin: function StringResolverPlugin1() {
|
|
2199
2217
|
return StringResolverPlugin;
|
|
2200
2218
|
},
|
|
2201
|
-
SwitchPlugin: function() {
|
|
2219
|
+
SwitchPlugin: function SwitchPlugin1() {
|
|
2202
2220
|
return SwitchPlugin;
|
|
2203
2221
|
},
|
|
2204
|
-
TapableLogger: function() {
|
|
2222
|
+
TapableLogger: function TapableLogger1() {
|
|
2205
2223
|
return TapableLogger;
|
|
2206
2224
|
},
|
|
2207
|
-
TemplatePlugin: function() {
|
|
2225
|
+
TemplatePlugin: function TemplatePlugin1() {
|
|
2208
2226
|
return TemplatePlugin;
|
|
2209
2227
|
},
|
|
2210
|
-
VALIDATION_PROVIDER_NAME_SYMBOL: function() {
|
|
2228
|
+
VALIDATION_PROVIDER_NAME_SYMBOL: function VALIDATION_PROVIDER_NAME_SYMBOL1() {
|
|
2211
2229
|
return VALIDATION_PROVIDER_NAME_SYMBOL;
|
|
2212
2230
|
},
|
|
2213
|
-
VIEW_VALIDATION_PROVIDER_NAME: function() {
|
|
2231
|
+
VIEW_VALIDATION_PROVIDER_NAME: function VIEW_VALIDATION_PROVIDER_NAME1() {
|
|
2214
2232
|
return VIEW_VALIDATION_PROVIDER_NAME;
|
|
2215
2233
|
},
|
|
2216
|
-
ValidationBindingTrackerViewPlugin: function() {
|
|
2234
|
+
ValidationBindingTrackerViewPlugin: function ValidationBindingTrackerViewPlugin1() {
|
|
2217
2235
|
return ValidationBindingTrackerViewPlugin;
|
|
2218
2236
|
},
|
|
2219
|
-
ValidationController: function() {
|
|
2237
|
+
ValidationController: function ValidationController1() {
|
|
2220
2238
|
return ValidationController;
|
|
2221
2239
|
},
|
|
2222
|
-
ValidationMiddleware: function() {
|
|
2240
|
+
ValidationMiddleware: function ValidationMiddleware1() {
|
|
2223
2241
|
return ValidationMiddleware;
|
|
2224
2242
|
},
|
|
2225
|
-
ValidatorRegistry: function() {
|
|
2243
|
+
ValidatorRegistry: function ValidatorRegistry1() {
|
|
2226
2244
|
return ValidatorRegistry;
|
|
2227
2245
|
},
|
|
2228
|
-
ViewController: function() {
|
|
2246
|
+
ViewController: function ViewController1() {
|
|
2229
2247
|
return ViewController;
|
|
2230
2248
|
},
|
|
2231
|
-
ViewInstance: function() {
|
|
2249
|
+
ViewInstance: function ViewInstance1() {
|
|
2232
2250
|
return ViewInstance;
|
|
2233
2251
|
},
|
|
2234
|
-
caresAboutDataChanges: function() {
|
|
2252
|
+
caresAboutDataChanges: function caresAboutDataChanges1() {
|
|
2235
2253
|
return caresAboutDataChanges;
|
|
2236
2254
|
},
|
|
2237
|
-
constructModelForPipeline: function() {
|
|
2255
|
+
constructModelForPipeline: function constructModelForPipeline1() {
|
|
2238
2256
|
return constructModelForPipeline;
|
|
2239
2257
|
},
|
|
2240
|
-
findClosestNodeAtPosition: function() {
|
|
2258
|
+
findClosestNodeAtPosition: function findClosestNodeAtPosition1() {
|
|
2241
2259
|
return findClosestNodeAtPosition;
|
|
2242
2260
|
},
|
|
2243
|
-
findInArray: function() {
|
|
2261
|
+
findInArray: function findInArray1() {
|
|
2244
2262
|
return findInArray;
|
|
2245
2263
|
},
|
|
2246
|
-
findNextExp: function() {
|
|
2264
|
+
findNextExp: function findNextExp1() {
|
|
2247
2265
|
return findNextExp;
|
|
2248
2266
|
},
|
|
2249
|
-
getBindingSegments: function() {
|
|
2267
|
+
getBindingSegments: function getBindingSegments1() {
|
|
2250
2268
|
return getBindingSegments;
|
|
2251
2269
|
},
|
|
2252
|
-
getNodeID: function() {
|
|
2270
|
+
getNodeID: function getNodeID1() {
|
|
2253
2271
|
return getNodeID;
|
|
2254
2272
|
},
|
|
2255
|
-
hasSwitchKey: function() {
|
|
2273
|
+
hasSwitchKey: function hasSwitchKey1() {
|
|
2256
2274
|
return hasSwitchKey;
|
|
2257
2275
|
},
|
|
2258
|
-
hasTemplateKey: function() {
|
|
2276
|
+
hasTemplateKey: function hasTemplateKey1() {
|
|
2259
2277
|
return hasTemplateKey;
|
|
2260
2278
|
},
|
|
2261
|
-
hasTemplateValues: function() {
|
|
2279
|
+
hasTemplateValues: function hasTemplateValues1() {
|
|
2262
2280
|
return hasTemplateValues;
|
|
2263
2281
|
},
|
|
2264
|
-
isAwaitable: function() {
|
|
2282
|
+
isAwaitable: function isAwaitable1() {
|
|
2265
2283
|
return isAwaitable;
|
|
2266
2284
|
},
|
|
2267
|
-
isBinding: function() {
|
|
2285
|
+
isBinding: function isBinding1() {
|
|
2268
2286
|
return isBinding;
|
|
2269
2287
|
},
|
|
2270
|
-
isErrorWithLocation: function() {
|
|
2288
|
+
isErrorWithLocation: function isErrorWithLocation1() {
|
|
2271
2289
|
return isErrorWithLocation;
|
|
2272
2290
|
},
|
|
2273
|
-
isExpressionNode: function() {
|
|
2291
|
+
isExpressionNode: function isExpressionNode1() {
|
|
2274
2292
|
return isExpressionNode;
|
|
2275
2293
|
},
|
|
2276
|
-
isObjectExpression: function() {
|
|
2294
|
+
isObjectExpression: function isObjectExpression1() {
|
|
2277
2295
|
return isObjectExpression;
|
|
2278
2296
|
},
|
|
2279
|
-
isPromiseLike: function() {
|
|
2297
|
+
isPromiseLike: function isPromiseLike1() {
|
|
2280
2298
|
return isPromiseLike;
|
|
2281
2299
|
},
|
|
2282
|
-
maybeConvertToNum: function() {
|
|
2300
|
+
maybeConvertToNum: function maybeConvertToNum1() {
|
|
2283
2301
|
return maybeConvertToNum;
|
|
2284
2302
|
},
|
|
2285
|
-
parse: function() {
|
|
2303
|
+
parse: function parse() {
|
|
2286
2304
|
return parse2;
|
|
2287
2305
|
},
|
|
2288
|
-
parseExpression: function() {
|
|
2306
|
+
parseExpression: function parseExpression1() {
|
|
2289
2307
|
return parseExpression;
|
|
2290
2308
|
},
|
|
2291
|
-
removeBindingAndChildrenFromMap: function() {
|
|
2309
|
+
removeBindingAndChildrenFromMap: function removeBindingAndChildrenFromMap1() {
|
|
2292
2310
|
return removeBindingAndChildrenFromMap;
|
|
2293
2311
|
},
|
|
2294
|
-
resolveDataRefs: function() {
|
|
2312
|
+
resolveDataRefs: function resolveDataRefs1() {
|
|
2295
2313
|
return resolveDataRefs;
|
|
2296
2314
|
},
|
|
2297
|
-
resolveDataRefsInString: function() {
|
|
2315
|
+
resolveDataRefsInString: function resolveDataRefsInString1() {
|
|
2298
2316
|
return resolveDataRefsInString;
|
|
2299
2317
|
},
|
|
2300
|
-
resolveExpressionsInString: function() {
|
|
2318
|
+
resolveExpressionsInString: function resolveExpressionsInString1() {
|
|
2301
2319
|
return resolveExpressionsInString;
|
|
2302
2320
|
},
|
|
2303
|
-
severities: function() {
|
|
2321
|
+
severities: function severities1() {
|
|
2304
2322
|
return severities;
|
|
2305
2323
|
},
|
|
2306
|
-
toModel: function() {
|
|
2324
|
+
toModel: function toModel1() {
|
|
2307
2325
|
return toModel;
|
|
2308
2326
|
},
|
|
2309
|
-
toNodeResolveOptions: function() {
|
|
2327
|
+
toNodeResolveOptions: function toNodeResolveOptions1() {
|
|
2310
2328
|
return toNodeResolveOptions;
|
|
2311
2329
|
},
|
|
2312
|
-
withParser: function() {
|
|
2330
|
+
withParser: function withParser1() {
|
|
2313
2331
|
return withParser;
|
|
2314
2332
|
},
|
|
2315
|
-
withoutContext: function() {
|
|
2333
|
+
withoutContext: function withoutContext1() {
|
|
2316
2334
|
return withoutContext;
|
|
2317
2335
|
}
|
|
2318
2336
|
});
|
|
@@ -2604,32 +2622,32 @@ var Player = function() {
|
|
|
2604
2622
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/binding/index.ts
|
|
2605
2623
|
var import_ts_nested_error2 = __toESM(require_nested_error());
|
|
2606
2624
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/binding-grammar/ast.ts
|
|
2607
|
-
var toValue = function(value) {
|
|
2625
|
+
var toValue = function toValue(value) {
|
|
2608
2626
|
return {
|
|
2609
2627
|
name: "Value",
|
|
2610
2628
|
value: value
|
|
2611
2629
|
};
|
|
2612
2630
|
};
|
|
2613
|
-
var toExpression = function(value) {
|
|
2631
|
+
var toExpression = function toExpression(value) {
|
|
2614
2632
|
return {
|
|
2615
2633
|
name: "Expression",
|
|
2616
2634
|
value: value
|
|
2617
2635
|
};
|
|
2618
2636
|
};
|
|
2619
|
-
var toPath = function(path) {
|
|
2637
|
+
var toPath = function toPath(path) {
|
|
2620
2638
|
return {
|
|
2621
2639
|
name: "PathNode",
|
|
2622
2640
|
path: path
|
|
2623
2641
|
};
|
|
2624
2642
|
};
|
|
2625
|
-
var toQuery = function(key, value) {
|
|
2643
|
+
var toQuery = function toQuery(key, value) {
|
|
2626
2644
|
return {
|
|
2627
2645
|
name: "Query",
|
|
2628
2646
|
key: key,
|
|
2629
2647
|
value: value
|
|
2630
2648
|
};
|
|
2631
2649
|
};
|
|
2632
|
-
var toConcatenatedNode = function(values) {
|
|
2650
|
+
var toConcatenatedNode = function toConcatenatedNode(values) {
|
|
2633
2651
|
if (values.length === 1) {
|
|
2634
2652
|
return values[0];
|
|
2635
2653
|
}
|
|
@@ -2648,7 +2666,7 @@ var Player = function() {
|
|
|
2648
2666
|
var SINGLE_QUOTE = "'";
|
|
2649
2667
|
var DOUBLE_QUOTE = '"';
|
|
2650
2668
|
var BACK_TICK = "`";
|
|
2651
|
-
var isIdentifierChar = function(char) {
|
|
2669
|
+
var isIdentifierChar = function isIdentifierChar(char) {
|
|
2652
2670
|
if (!char) {
|
|
2653
2671
|
return false;
|
|
2654
2672
|
}
|
|
@@ -2668,10 +2686,10 @@ var Player = function() {
|
|
|
2668
2686
|
charCode === 125;
|
|
2669
2687
|
return !matches;
|
|
2670
2688
|
};
|
|
2671
|
-
var parse = function(path) {
|
|
2689
|
+
var parse = function parse(path) {
|
|
2672
2690
|
var index = 1;
|
|
2673
2691
|
var ch = path.charAt(0);
|
|
2674
|
-
var next = function(expected) {
|
|
2692
|
+
var next = function next(expected) {
|
|
2675
2693
|
if (expected && ch !== expected) {
|
|
2676
2694
|
throw new Error("Expected char: ".concat(expected, " but got: ").concat(ch));
|
|
2677
2695
|
}
|
|
@@ -2679,12 +2697,12 @@ var Player = function() {
|
|
|
2679
2697
|
index += 1;
|
|
2680
2698
|
return ch;
|
|
2681
2699
|
};
|
|
2682
|
-
var whitespace = function() {
|
|
2700
|
+
var whitespace = function whitespace() {
|
|
2683
2701
|
while(ch === " "){
|
|
2684
2702
|
next();
|
|
2685
2703
|
}
|
|
2686
2704
|
};
|
|
2687
|
-
var identifier = function() {
|
|
2705
|
+
var identifier = function identifier() {
|
|
2688
2706
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2689
2707
|
if (!isIdentifierChar(ch)) {
|
|
2690
2708
|
return;
|
|
@@ -2710,7 +2728,7 @@ var Player = function() {
|
|
|
2710
2728
|
return toValue(value);
|
|
2711
2729
|
}
|
|
2712
2730
|
};
|
|
2713
|
-
var expression = function() {
|
|
2731
|
+
var expression = function expression() {
|
|
2714
2732
|
if (ch === BACK_TICK) {
|
|
2715
2733
|
next(BACK_TICK);
|
|
2716
2734
|
var exp = ch;
|
|
@@ -2726,7 +2744,7 @@ var Player = function() {
|
|
|
2726
2744
|
}
|
|
2727
2745
|
}
|
|
2728
2746
|
};
|
|
2729
|
-
var regex = function(match) {
|
|
2747
|
+
var regex = function regex(match) {
|
|
2730
2748
|
if (!(ch === null || ch === void 0 ? void 0 : ch.match(match))) {
|
|
2731
2749
|
return;
|
|
2732
2750
|
}
|
|
@@ -2741,7 +2759,7 @@ var Player = function() {
|
|
|
2741
2759
|
return toValue(value);
|
|
2742
2760
|
}
|
|
2743
2761
|
};
|
|
2744
|
-
var nestedPath = function() {
|
|
2762
|
+
var nestedPath = function nestedPath() {
|
|
2745
2763
|
if (ch === OPEN_CURL) {
|
|
2746
2764
|
next(OPEN_CURL);
|
|
2747
2765
|
next(OPEN_CURL);
|
|
@@ -2751,12 +2769,12 @@ var Player = function() {
|
|
|
2751
2769
|
return modelRef;
|
|
2752
2770
|
}
|
|
2753
2771
|
};
|
|
2754
|
-
var simpleSegment = function() {
|
|
2772
|
+
var simpleSegment = function simpleSegment() {
|
|
2755
2773
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2756
|
-
var
|
|
2774
|
+
var _ref, _nestedPath;
|
|
2757
2775
|
return (_ref = (_nestedPath = nestedPath()) !== null && _nestedPath !== void 0 ? _nestedPath : expression()) !== null && _ref !== void 0 ? _ref : identifier(allowBoolValue);
|
|
2758
2776
|
};
|
|
2759
|
-
var segment = function() {
|
|
2777
|
+
var segment = function segment() {
|
|
2760
2778
|
var segments = [];
|
|
2761
2779
|
var nextSegment = simpleSegment();
|
|
2762
2780
|
while(nextSegment !== void 0){
|
|
@@ -2768,7 +2786,7 @@ var Player = function() {
|
|
|
2768
2786
|
}
|
|
2769
2787
|
return toConcatenatedNode(segments);
|
|
2770
2788
|
};
|
|
2771
|
-
var optionallyQuotedSegment = function() {
|
|
2789
|
+
var optionallyQuotedSegment = function optionallyQuotedSegment() {
|
|
2772
2790
|
var allowBoolValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
2773
2791
|
whitespace();
|
|
2774
2792
|
if (ch === SINGLE_QUOTE || ch === DOUBLE_QUOTE) {
|
|
@@ -2780,7 +2798,7 @@ var Player = function() {
|
|
|
2780
2798
|
}
|
|
2781
2799
|
return simpleSegment(allowBoolValue);
|
|
2782
2800
|
};
|
|
2783
|
-
var equals = function() {
|
|
2801
|
+
var equals = function equals() {
|
|
2784
2802
|
if (ch !== EQUALS) {
|
|
2785
2803
|
return false;
|
|
2786
2804
|
}
|
|
@@ -2789,7 +2807,7 @@ var Player = function() {
|
|
|
2789
2807
|
}
|
|
2790
2808
|
return true;
|
|
2791
2809
|
};
|
|
2792
|
-
var parseBracket = function() {
|
|
2810
|
+
var parseBracket = function parseBracket() {
|
|
2793
2811
|
if (ch === OPEN_BRACKET) {
|
|
2794
2812
|
next(OPEN_BRACKET);
|
|
2795
2813
|
whitespace();
|
|
@@ -2811,7 +2829,7 @@ var Player = function() {
|
|
|
2811
2829
|
return value;
|
|
2812
2830
|
}
|
|
2813
2831
|
};
|
|
2814
|
-
var parseSegmentAndBrackets = function() {
|
|
2832
|
+
var parseSegmentAndBrackets = function parseSegmentAndBrackets() {
|
|
2815
2833
|
var parsed = [];
|
|
2816
2834
|
var firstSegment = segment();
|
|
2817
2835
|
if (firstSegment) {
|
|
@@ -2828,7 +2846,7 @@ var Player = function() {
|
|
|
2828
2846
|
}
|
|
2829
2847
|
return parsed;
|
|
2830
2848
|
};
|
|
2831
|
-
var parsePath = function() {
|
|
2849
|
+
var parsePath = function parsePath() {
|
|
2832
2850
|
var parts = [];
|
|
2833
2851
|
var nextSegment = parseSegmentAndBrackets();
|
|
2834
2852
|
while(nextSegment !== void 0){
|
|
@@ -2942,6 +2960,7 @@ var Player = function() {
|
|
|
2942
2960
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/binding/resolver.ts
|
|
2943
2961
|
var import_ts_nested_error = __toESM(require_nested_error());
|
|
2944
2962
|
function resolveBindingAST(bindingPathNode, options, hooks) {
|
|
2963
|
+
var _context_updates;
|
|
2945
2964
|
var context = {
|
|
2946
2965
|
updates: {},
|
|
2947
2966
|
path: []
|
|
@@ -2981,8 +3000,8 @@ var Player = function() {
|
|
|
2981
3000
|
}
|
|
2982
3001
|
}
|
|
2983
3002
|
function resolveNode(_node) {
|
|
2984
|
-
var
|
|
2985
|
-
var resolvedNode = (
|
|
3003
|
+
var _ref;
|
|
3004
|
+
var resolvedNode = (_ref = hooks === null || hooks === void 0 ? void 0 : hooks.beforeResolveNode.call(_node, _object_spread({}, context, options))) !== null && _ref !== void 0 ? _ref : _node;
|
|
2986
3005
|
switch(resolvedNode.name){
|
|
2987
3006
|
case "Expression":
|
|
2988
3007
|
case "PathNode":
|
|
@@ -3018,7 +3037,6 @@ var Player = function() {
|
|
|
3018
3037
|
}
|
|
3019
3038
|
}
|
|
3020
3039
|
bindingPathNode.path.forEach(resolveNode);
|
|
3021
|
-
var _context_updates;
|
|
3022
3040
|
return {
|
|
3023
3041
|
path: context.path,
|
|
3024
3042
|
updates: Object.keys((_context_updates = context.updates) !== null && _context_updates !== void 0 ? _context_updates : {}).length > 0 ? context.updates : void 0
|
|
@@ -3029,13 +3047,13 @@ var Player = function() {
|
|
|
3029
3047
|
var BINDING_BRACKETS_REGEX = /[\s()*=`{}'"[\]]/;
|
|
3030
3048
|
var LAZY_BINDING_REGEX = /^[^.]+(\..+)*$/;
|
|
3031
3049
|
var DEFAULT_OPTIONS = {
|
|
3032
|
-
get: function() {
|
|
3050
|
+
get: function get() {
|
|
3033
3051
|
throw new Error("Not Implemented");
|
|
3034
3052
|
},
|
|
3035
|
-
set: function() {
|
|
3053
|
+
set: function set() {
|
|
3036
3054
|
throw new Error("Not Implemented");
|
|
3037
3055
|
},
|
|
3038
|
-
evaluate: function() {
|
|
3056
|
+
evaluate: function evaluate() {
|
|
3039
3057
|
throw new Error("Not Implemented");
|
|
3040
3058
|
}
|
|
3041
3059
|
};
|
|
@@ -3058,18 +3076,18 @@ var Player = function() {
|
|
|
3058
3076
|
* representation of that path.
|
|
3059
3077
|
*/ key: "normalizePath",
|
|
3060
3078
|
value: function normalizePath(path, resolveOptions) {
|
|
3079
|
+
var _this_parseCache_path;
|
|
3061
3080
|
if (!BINDING_BRACKETS_REGEX.test(path) && LAZY_BINDING_REGEX.test(path) && this.hooks.skipOptimization.call(path) !== true) {
|
|
3062
3081
|
return {
|
|
3063
3082
|
path: path.split("."),
|
|
3064
3083
|
updates: void 0
|
|
3065
3084
|
};
|
|
3066
3085
|
}
|
|
3067
|
-
var _this_parseCache_path;
|
|
3068
3086
|
var ast = (_this_parseCache_path = this.parseCache[path]) !== null && _this_parseCache_path !== void 0 ? _this_parseCache_path : parse(path);
|
|
3069
3087
|
this.parseCache[path] = ast;
|
|
3070
3088
|
if ((typeof ast === "undefined" ? "undefined" : _type_of(ast)) !== "object" || !(ast === null || ast === void 0 ? void 0 : ast.status)) {
|
|
3071
|
-
var
|
|
3072
|
-
throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((
|
|
3089
|
+
var _ref;
|
|
3090
|
+
throw new TypeError('Cannot normalize path "'.concat(path, '": ').concat((_ref = ast === null || ast === void 0 ? void 0 : ast.error) !== null && _ref !== void 0 ? _ref : "Unknown Error."));
|
|
3073
3091
|
}
|
|
3074
3092
|
try {
|
|
3075
3093
|
return resolveBindingAST(ast.path, resolveOptions, this.hooks);
|
|
@@ -3102,14 +3120,14 @@ var Player = function() {
|
|
|
3102
3120
|
var updates = {};
|
|
3103
3121
|
var joined = Array.isArray(rawBinding) ? rawBinding.join(".") : String(rawBinding);
|
|
3104
3122
|
var normalizeConfig = {
|
|
3105
|
-
getValue: function(path) {
|
|
3123
|
+
getValue: function getValue(path) {
|
|
3106
3124
|
var normalized2 = _this.normalizePath(path.join("."), normalizeConfig);
|
|
3107
3125
|
return options.get(_this.getBindingForNormalizedResult(normalized2));
|
|
3108
3126
|
},
|
|
3109
|
-
evaluate: function(exp) {
|
|
3127
|
+
evaluate: function evaluate(exp) {
|
|
3110
3128
|
return options.evaluate(exp);
|
|
3111
3129
|
},
|
|
3112
|
-
convertToPath: function(path) {
|
|
3130
|
+
convertToPath: function convertToPath(path) {
|
|
3113
3131
|
if (path === void 0) {
|
|
3114
3132
|
throw new Error("Attempted to convert undefined value to binding path");
|
|
3115
3133
|
}
|
|
@@ -3175,9 +3193,9 @@ var Player = function() {
|
|
|
3175
3193
|
/** Grab all of the bindings that this depended on */ key: "getDependencies",
|
|
3176
3194
|
value: function getDependencies(name) {
|
|
3177
3195
|
if (name !== void 0) {
|
|
3196
|
+
var _ref;
|
|
3178
3197
|
var _this_namedDependencySets_name, _this_namedDependencySets;
|
|
3179
|
-
|
|
3180
|
-
return (_this_namedDependencySets_name_readDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _this_namedDependencySets_name_readDeps !== void 0 ? _this_namedDependencySets_name_readDeps : /* @__PURE__ */ new Set();
|
|
3198
|
+
return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.readDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
3181
3199
|
}
|
|
3182
3200
|
return this.readDeps;
|
|
3183
3201
|
}
|
|
@@ -3199,9 +3217,9 @@ var Player = function() {
|
|
|
3199
3217
|
/** Grab all of the bindings this wrote to */ key: "getModified",
|
|
3200
3218
|
value: function getModified(name) {
|
|
3201
3219
|
if (name !== void 0) {
|
|
3220
|
+
var _ref;
|
|
3202
3221
|
var _this_namedDependencySets_name, _this_namedDependencySets;
|
|
3203
|
-
|
|
3204
|
-
return (_this_namedDependencySets_name_writeDeps = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _this_namedDependencySets_name_writeDeps !== void 0 ? _this_namedDependencySets_name_writeDeps : /* @__PURE__ */ new Set();
|
|
3222
|
+
return (_ref = (_this_namedDependencySets = this.namedDependencySets) === null || _this_namedDependencySets === void 0 ? void 0 : (_this_namedDependencySets_name = _this_namedDependencySets[name]) === null || _this_namedDependencySets_name === void 0 ? void 0 : _this_namedDependencySets_name.writeDeps) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
3205
3223
|
}
|
|
3206
3224
|
return this.writeDeps;
|
|
3207
3225
|
}
|
|
@@ -3281,12 +3299,12 @@ var Player = function() {
|
|
|
3281
3299
|
key: "set",
|
|
3282
3300
|
value: function set(transaction, options, next) {
|
|
3283
3301
|
var _this = this;
|
|
3302
|
+
var _ref;
|
|
3284
3303
|
transaction.forEach(function(param) {
|
|
3285
3304
|
var _param = _sliced_to_array(param, 1), binding = _param[0];
|
|
3286
3305
|
return _this.addWriteDep(binding);
|
|
3287
3306
|
});
|
|
3288
|
-
|
|
3289
|
-
return (_next_set = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _next_set !== void 0 ? _next_set : [];
|
|
3307
|
+
return (_ref = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _ref !== void 0 ? _ref : [];
|
|
3290
3308
|
}
|
|
3291
3309
|
},
|
|
3292
3310
|
{
|
|
@@ -3572,19 +3590,19 @@ var Player = function() {
|
|
|
3572
3590
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/expressions/evaluator-functions.ts
|
|
3573
3591
|
var evaluator_functions_exports = {};
|
|
3574
3592
|
__export(evaluator_functions_exports, {
|
|
3575
|
-
conditional: function() {
|
|
3593
|
+
conditional: function conditional1() {
|
|
3576
3594
|
return conditional;
|
|
3577
3595
|
},
|
|
3578
|
-
deleteDataVal: function() {
|
|
3596
|
+
deleteDataVal: function deleteDataVal1() {
|
|
3579
3597
|
return deleteDataVal;
|
|
3580
3598
|
},
|
|
3581
|
-
getDataVal: function() {
|
|
3599
|
+
getDataVal: function getDataVal1() {
|
|
3582
3600
|
return getDataVal;
|
|
3583
3601
|
},
|
|
3584
|
-
setDataVal: function() {
|
|
3602
|
+
setDataVal: function setDataVal1() {
|
|
3585
3603
|
return setDataVal;
|
|
3586
3604
|
},
|
|
3587
|
-
waitFor: function() {
|
|
3605
|
+
waitFor: function waitFor1() {
|
|
3588
3606
|
return waitFor;
|
|
3589
3607
|
}
|
|
3590
3608
|
});
|
|
@@ -3597,7 +3615,7 @@ var Player = function() {
|
|
|
3597
3615
|
return promise;
|
|
3598
3616
|
}
|
|
3599
3617
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/expressions/evaluator-functions.ts
|
|
3600
|
-
var setDataVal = function(_context, binding, value) {
|
|
3618
|
+
var setDataVal = function setDataVal(_context, binding, value) {
|
|
3601
3619
|
_context.model.set([
|
|
3602
3620
|
[
|
|
3603
3621
|
binding,
|
|
@@ -3605,13 +3623,13 @@ var Player = function() {
|
|
|
3605
3623
|
]
|
|
3606
3624
|
]);
|
|
3607
3625
|
};
|
|
3608
|
-
var getDataVal = function(_context, binding) {
|
|
3626
|
+
var getDataVal = function getDataVal(_context, binding) {
|
|
3609
3627
|
return _context.model.get(binding);
|
|
3610
3628
|
};
|
|
3611
|
-
var deleteDataVal = function(_context, binding) {
|
|
3629
|
+
var deleteDataVal = function deleteDataVal(_context, binding) {
|
|
3612
3630
|
return _context.model.delete(binding);
|
|
3613
3631
|
};
|
|
3614
|
-
var conditional = function(ctx, condition, ifTrue, ifFalse) {
|
|
3632
|
+
var conditional = function conditional(ctx, condition, ifTrue, ifFalse) {
|
|
3615
3633
|
var testResult = ctx.evaluate(condition);
|
|
3616
3634
|
if (isAwaitable(testResult)) {
|
|
3617
3635
|
return testResult.awaitableThen(function(resolvedTest) {
|
|
@@ -3633,7 +3651,7 @@ var Player = function() {
|
|
|
3633
3651
|
return null;
|
|
3634
3652
|
};
|
|
3635
3653
|
conditional.resolveParams = false;
|
|
3636
|
-
var waitFor = function(ctx, promise) {
|
|
3654
|
+
var waitFor = function waitFor(ctx, promise) {
|
|
3637
3655
|
return makeAwaitable(promise);
|
|
3638
3656
|
};
|
|
3639
3657
|
function findClosestNodeAtPosition(node, position) {
|
|
@@ -3669,7 +3687,7 @@ var Player = function() {
|
|
|
3669
3687
|
}
|
|
3670
3688
|
case "ConditionalExpression":
|
|
3671
3689
|
{
|
|
3672
|
-
var
|
|
3690
|
+
var _ref, _findClosestNodeAtPosition2;
|
|
3673
3691
|
var checkObject1 = (_ref = (_findClosestNodeAtPosition2 = findClosestNodeAtPosition(node.test, position)) !== null && _findClosestNodeAtPosition2 !== void 0 ? _findClosestNodeAtPosition2 : findClosestNodeAtPosition(node.consequent, position)) !== null && _ref !== void 0 ? _ref : findClosestNodeAtPosition(node.alternate, position);
|
|
3674
3692
|
if (checkObject1) {
|
|
3675
3693
|
return checkObject1;
|
|
@@ -3716,11 +3734,11 @@ var Player = function() {
|
|
|
3716
3734
|
}
|
|
3717
3735
|
}
|
|
3718
3736
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/expressions/evaluator.ts
|
|
3719
|
-
var andandOperator = function(ctx, a, b, async) {
|
|
3737
|
+
var andandOperator = function andandOperator(ctx, a, b, async) {
|
|
3720
3738
|
return LogicalOperators.and(ctx, a, b, async);
|
|
3721
3739
|
};
|
|
3722
3740
|
andandOperator.resolveParams = false;
|
|
3723
|
-
var ororOperator = function(ctx, a, b, async) {
|
|
3741
|
+
var ororOperator = function ororOperator(ctx, a, b, async) {
|
|
3724
3742
|
return LogicalOperators.or(ctx, a, b, async);
|
|
3725
3743
|
};
|
|
3726
3744
|
ororOperator.resolveParams = false;
|
|
@@ -3846,7 +3864,7 @@ var Player = function() {
|
|
|
3846
3864
|
}
|
|
3847
3865
|
};
|
|
3848
3866
|
var LogicalOperators = {
|
|
3849
|
-
and: function(ctx, leftNode, rightNode, async) {
|
|
3867
|
+
and: function and(ctx, leftNode, rightNode, async) {
|
|
3850
3868
|
var leftResult = ctx.evaluate(leftNode);
|
|
3851
3869
|
if (async && isAwaitable(leftResult)) {
|
|
3852
3870
|
return leftResult.awaitableThen(function(awaitedLeft) {
|
|
@@ -3857,7 +3875,7 @@ var Player = function() {
|
|
|
3857
3875
|
}
|
|
3858
3876
|
return leftResult && ctx.evaluate(rightNode);
|
|
3859
3877
|
},
|
|
3860
|
-
or: function(ctx, leftNode, rightNode, async) {
|
|
3878
|
+
or: function or(ctx, leftNode, rightNode, async) {
|
|
3861
3879
|
var leftResult = ctx.evaluate(leftNode);
|
|
3862
3880
|
if (async && isAwaitable(leftResult)) {
|
|
3863
3881
|
return leftResult.awaitableThen(function(awaitedLeft) {
|
|
@@ -3895,10 +3913,10 @@ var Player = function() {
|
|
|
3895
3913
|
]))
|
|
3896
3914
|
};
|
|
3897
3915
|
this.defaultHookOptions = _object_spread_props(_object_spread({}, defaultOptions), {
|
|
3898
|
-
evaluate: function(expr) {
|
|
3916
|
+
evaluate: function evaluate(expr) {
|
|
3899
3917
|
return _this.evaluate(expr, _this.defaultHookOptions);
|
|
3900
3918
|
},
|
|
3901
|
-
resolveNode: function(node) {
|
|
3919
|
+
resolveNode: function resolveNode(node) {
|
|
3902
3920
|
return _this._execAST(node, _this.defaultHookOptions);
|
|
3903
3921
|
}
|
|
3904
3922
|
});
|
|
@@ -3918,12 +3936,12 @@ var Player = function() {
|
|
|
3918
3936
|
key: "evaluate",
|
|
3919
3937
|
value: function evaluate(expr, options) {
|
|
3920
3938
|
var _this = this;
|
|
3939
|
+
var _this_hooks_beforeEvaluate_call;
|
|
3921
3940
|
var resolvedOpts = this.hooks.resolveOptions.call(_object_spread_props(_object_spread({}, this.defaultHookOptions, options), {
|
|
3922
|
-
resolveNode: function(node) {
|
|
3941
|
+
resolveNode: function resolveNode(node) {
|
|
3923
3942
|
return _this._execAST(node, resolvedOpts);
|
|
3924
3943
|
}
|
|
3925
3944
|
}));
|
|
3926
|
-
var _this_hooks_beforeEvaluate_call;
|
|
3927
3945
|
var expression = (_this_hooks_beforeEvaluate_call = this.hooks.beforeEvaluate.call(expr, resolvedOpts)) !== null && _this_hooks_beforeEvaluate_call !== void 0 ? _this_hooks_beforeEvaluate_call : expr;
|
|
3928
3946
|
while(isObjectExpression(expression)){
|
|
3929
3947
|
expression = expression.value;
|
|
@@ -4047,11 +4065,11 @@ var Player = function() {
|
|
|
4047
4065
|
key: "_resolveNode",
|
|
4048
4066
|
value: function _resolveNode(_currentValue, node, options) {
|
|
4049
4067
|
var _this = this;
|
|
4050
|
-
var resolveNode = options.resolveNode, model = options.model;
|
|
4051
4068
|
var _options_async;
|
|
4069
|
+
var resolveNode = options.resolveNode, model = options.model;
|
|
4052
4070
|
var isAsync = (_options_async = options.async) !== null && _options_async !== void 0 ? _options_async : false;
|
|
4053
4071
|
var expressionContext = _object_spread_props(_object_spread({}, options), {
|
|
4054
|
-
evaluate: function(expr) {
|
|
4072
|
+
evaluate: function evaluate(expr) {
|
|
4055
4073
|
return _this.evaluate(expr, options);
|
|
4056
4074
|
}
|
|
4057
4075
|
});
|
|
@@ -4371,7 +4389,7 @@ var Player = function() {
|
|
|
4371
4389
|
return ConsoleLogger;
|
|
4372
4390
|
}();
|
|
4373
4391
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/logger/noopLogger.ts
|
|
4374
|
-
var noop = function() {};
|
|
4392
|
+
var noop = function noop() {};
|
|
4375
4393
|
var NoopLogger = function NoopLogger() {
|
|
4376
4394
|
_class_call_check(this, NoopLogger);
|
|
4377
4395
|
this.trace = noop;
|
|
@@ -4462,7 +4480,7 @@ var Player = function() {
|
|
|
4462
4480
|
return ProxyLogger;
|
|
4463
4481
|
}();
|
|
4464
4482
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/schema/schema.ts
|
|
4465
|
-
var identify = function(val) {
|
|
4483
|
+
var identify = function identify(val) {
|
|
4466
4484
|
return val;
|
|
4467
4485
|
};
|
|
4468
4486
|
var SchemaController = /*#__PURE__*/ function() {
|
|
@@ -4550,6 +4568,7 @@ var Player = function() {
|
|
|
4550
4568
|
{
|
|
4551
4569
|
key: "getApparentType",
|
|
4552
4570
|
value: function getApparentType(binding) {
|
|
4571
|
+
var _schemaType_validation, _baseType_validation;
|
|
4553
4572
|
var schemaType = this.getType(binding);
|
|
4554
4573
|
if (schemaType === void 0) {
|
|
4555
4574
|
return void 0;
|
|
@@ -4558,7 +4577,6 @@ var Player = function() {
|
|
|
4558
4577
|
if (baseType === void 0) {
|
|
4559
4578
|
return schemaType;
|
|
4560
4579
|
}
|
|
4561
|
-
var _schemaType_validation, _baseType_validation;
|
|
4562
4580
|
return _object_spread_props(_object_spread({}, baseType, schemaType), {
|
|
4563
4581
|
validation: _to_consumable_array((_schemaType_validation = schemaType.validation) !== null && _schemaType_validation !== void 0 ? _schemaType_validation : []).concat(_to_consumable_array((_baseType_validation = baseType.validation) !== null && _baseType_validation !== void 0 ? _baseType_validation : []))
|
|
4564
4582
|
});
|
|
@@ -4712,10 +4730,10 @@ var Player = function() {
|
|
|
4712
4730
|
{
|
|
4713
4731
|
key: "get",
|
|
4714
4732
|
value: function get(binding, options, next) {
|
|
4733
|
+
var _ref;
|
|
4715
4734
|
var _this_shouldIncludeInvalid, _this;
|
|
4716
4735
|
var val = next === null || next === void 0 ? void 0 : next.get(binding, options);
|
|
4717
|
-
|
|
4718
|
-
if ((_this_shouldIncludeInvalid1 = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _this_shouldIncludeInvalid1 !== void 0 ? _this_shouldIncludeInvalid1 : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
|
|
4736
|
+
if ((_ref = (_this_shouldIncludeInvalid = (_this = this).shouldIncludeInvalid) === null || _this_shouldIncludeInvalid === void 0 ? void 0 : _this_shouldIncludeInvalid.call(_this, options)) !== null && _ref !== void 0 ? _ref : (options === null || options === void 0 ? void 0 : options.includeInvalid) === true) {
|
|
4719
4737
|
this.shadowModelPaths.forEach(function(shadowValue, shadowBinding) {
|
|
4720
4738
|
if (shadowBinding === binding) {
|
|
4721
4739
|
val = shadowValue;
|
|
@@ -4924,11 +4942,12 @@ var Player = function() {
|
|
|
4924
4942
|
templateDepth: 0
|
|
4925
4943
|
};
|
|
4926
4944
|
var _this = this;
|
|
4945
|
+
var _this_hooks_onCreateASTNode_call;
|
|
4927
4946
|
var parsedNode = this.hooks.parseNode.call(obj, type, options);
|
|
4928
4947
|
if (parsedNode || parsedNode === null) {
|
|
4929
4948
|
return parsedNode;
|
|
4930
4949
|
}
|
|
4931
|
-
var parseLocalObject = function(currentValue, objToParse) {
|
|
4950
|
+
var parseLocalObject = function parseLocalObject1(currentValue, objToParse) {
|
|
4932
4951
|
var path = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
4933
4952
|
if ((typeof objToParse === "undefined" ? "undefined" : _type_of(objToParse)) !== "object" || objToParse === null) {
|
|
4934
4953
|
return {
|
|
@@ -4998,7 +5017,6 @@ var Player = function() {
|
|
|
4998
5017
|
child.value.parent = parent;
|
|
4999
5018
|
});
|
|
5000
5019
|
}
|
|
5001
|
-
var _this_hooks_onCreateASTNode_call;
|
|
5002
5020
|
return (_this_hooks_onCreateASTNode_call = this.hooks.onCreateASTNode.call(baseAst, obj)) !== null && _this_hooks_onCreateASTNode_call !== void 0 ? _this_hooks_onCreateASTNode_call : null;
|
|
5003
5021
|
}
|
|
5004
5022
|
}
|
|
@@ -5006,23 +5024,23 @@ var Player = function() {
|
|
|
5006
5024
|
return Parser;
|
|
5007
5025
|
}();
|
|
5008
5026
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/view/resolver/index.ts
|
|
5009
|
-
var withContext = function(model) {
|
|
5027
|
+
var withContext = function withContext(model) {
|
|
5010
5028
|
return {
|
|
5011
|
-
get: function(binding, options) {
|
|
5029
|
+
get: function get(binding, options) {
|
|
5012
5030
|
return model.get(binding, _object_spread({
|
|
5013
5031
|
context: {
|
|
5014
5032
|
model: model
|
|
5015
5033
|
}
|
|
5016
5034
|
}, options));
|
|
5017
5035
|
},
|
|
5018
|
-
set: function(transaction, options) {
|
|
5036
|
+
set: function set(transaction, options) {
|
|
5019
5037
|
return model.set(transaction, _object_spread({
|
|
5020
5038
|
context: {
|
|
5021
5039
|
model: model
|
|
5022
5040
|
}
|
|
5023
5041
|
}, options));
|
|
5024
5042
|
},
|
|
5025
|
-
delete: function(binding, options) {
|
|
5043
|
+
delete: function _delete(binding, options) {
|
|
5026
5044
|
return model.delete(binding, _object_spread({
|
|
5027
5045
|
context: {
|
|
5028
5046
|
model: model
|
|
@@ -5061,16 +5079,16 @@ var Player = function() {
|
|
|
5061
5079
|
{
|
|
5062
5080
|
key: "update",
|
|
5063
5081
|
value: function update(dataChanges, nodeChanges) {
|
|
5082
|
+
var _ref;
|
|
5064
5083
|
this.hooks.beforeUpdate.call(dataChanges);
|
|
5065
5084
|
var resolveCache = /* @__PURE__ */ new Map();
|
|
5066
5085
|
this.idCache.clear();
|
|
5067
5086
|
var prevASTMap = new Map(this.ASTMap);
|
|
5068
5087
|
this.ASTMap.clear();
|
|
5069
5088
|
var realNodeChanges = /* @__PURE__ */ new Set();
|
|
5070
|
-
var _nodeChanges_values;
|
|
5071
5089
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
5072
5090
|
try {
|
|
5073
|
-
for(var _iterator = ((
|
|
5091
|
+
for(var _iterator = ((_ref = nodeChanges === null || nodeChanges === void 0 ? void 0 : nodeChanges.values()) !== null && _ref !== void 0 ? _ref : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
5074
5092
|
var node = _step.value;
|
|
5075
5093
|
var current = node;
|
|
5076
5094
|
while(current){
|
|
@@ -5153,6 +5171,7 @@ var Player = function() {
|
|
|
5153
5171
|
key: "computeTree",
|
|
5154
5172
|
value: function computeTree(node, rawParent, dataChanges, cacheUpdate, options, partiallyResolvedParent, prevASTMap, nodeChanges) {
|
|
5155
5173
|
var _this = this;
|
|
5174
|
+
var _this_hooks_beforeResolve_call;
|
|
5156
5175
|
var dependencyModel = new DependencyModel(options.data.model);
|
|
5157
5176
|
dependencyModel.trackSubset("core");
|
|
5158
5177
|
var depModelWithParser = withContext(withParser(dependencyModel, this.options.parseBinding));
|
|
@@ -5160,7 +5179,7 @@ var Player = function() {
|
|
|
5160
5179
|
data: _object_spread_props(_object_spread({}, options.data), {
|
|
5161
5180
|
model: depModelWithParser
|
|
5162
5181
|
}),
|
|
5163
|
-
evaluate: function(exp) {
|
|
5182
|
+
evaluate: function evaluate(exp) {
|
|
5164
5183
|
return _this.options.evaluator.evaluate(exp, {
|
|
5165
5184
|
model: depModelWithParser
|
|
5166
5185
|
});
|
|
@@ -5176,14 +5195,14 @@ var Player = function() {
|
|
|
5176
5195
|
var update2 = _object_spread_props(_object_spread({}, previousResult), {
|
|
5177
5196
|
updated: false
|
|
5178
5197
|
});
|
|
5179
|
-
var repopulateASTMapFromCache = function(resolvedNode, AST, ASTParent) {
|
|
5198
|
+
var repopulateASTMapFromCache = function repopulateASTMapFromCache1(resolvedNode, AST, ASTParent) {
|
|
5180
5199
|
var resolvedASTLocal = resolvedNode.node;
|
|
5181
5200
|
_this.ASTMap.set(resolvedASTLocal, AST);
|
|
5182
5201
|
var resolvedUpdate = _object_spread_props(_object_spread({}, resolvedNode), {
|
|
5183
5202
|
updated: false
|
|
5184
5203
|
});
|
|
5185
5204
|
cacheUpdate.set(AST, resolvedUpdate);
|
|
5186
|
-
var handleChildNode = function(childNode) {
|
|
5205
|
+
var handleChildNode = function handleChildNode(childNode) {
|
|
5187
5206
|
var _prevASTMap_get;
|
|
5188
5207
|
var originalChildNode = (_prevASTMap_get = prevASTMap.get(childNode)) !== null && _prevASTMap_get !== void 0 ? _prevASTMap_get : childNode;
|
|
5189
5208
|
var previousChildResult = _this.getPreviousResult(originalChildNode);
|
|
@@ -5208,7 +5227,6 @@ var Player = function() {
|
|
|
5208
5227
|
var clonedNode = _object_spread_props(_object_spread({}, this.cloneNode(node)), {
|
|
5209
5228
|
parent: partiallyResolvedParent
|
|
5210
5229
|
});
|
|
5211
|
-
var _this_hooks_beforeResolve_call;
|
|
5212
5230
|
var resolvedAST = (_this_hooks_beforeResolve_call = this.hooks.beforeResolve.call(clonedNode, resolveOptions)) !== null && _this_hooks_beforeResolve_call !== void 0 ? _this_hooks_beforeResolve_call : {
|
|
5213
5231
|
type: "empty" /* Empty */
|
|
5214
5232
|
};
|
|
@@ -5268,7 +5286,7 @@ var Player = function() {
|
|
|
5268
5286
|
resolved = previousResult === null || previousResult === void 0 ? void 0 : previousResult.value;
|
|
5269
5287
|
}
|
|
5270
5288
|
resolved = this.hooks.afterResolve.call(resolved, resolvedAST, _object_spread_props(_object_spread({}, resolveOptions), {
|
|
5271
|
-
getDependencies: function(scope) {
|
|
5289
|
+
getDependencies: function getDependencies(scope) {
|
|
5272
5290
|
return dependencyModel.getDependencies(scope);
|
|
5273
5291
|
}
|
|
5274
5292
|
}));
|
|
@@ -5711,7 +5729,7 @@ var Player = function() {
|
|
|
5711
5729
|
}();
|
|
5712
5730
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/view/plugins/string-resolver.ts
|
|
5713
5731
|
var import_timm6 = __toESM(require_timm());
|
|
5714
|
-
var createPatternMatcher = function(start, end) {
|
|
5732
|
+
var createPatternMatcher = function createPatternMatcher(start, end) {
|
|
5715
5733
|
return function(testStr) {
|
|
5716
5734
|
var startLocation = testStr.indexOf(start);
|
|
5717
5735
|
if (startLocation === -1) {
|
|
@@ -5751,18 +5769,18 @@ var Player = function() {
|
|
|
5751
5769
|
});
|
|
5752
5770
|
return newNode;
|
|
5753
5771
|
}
|
|
5754
|
-
var findBasePath = function(node, resolver) {
|
|
5772
|
+
var findBasePath = function findBasePath1(node, resolver) {
|
|
5755
5773
|
var parentNode = node.parent;
|
|
5756
5774
|
if (!parentNode) {
|
|
5757
5775
|
return [];
|
|
5758
5776
|
}
|
|
5759
5777
|
if ("children" in parentNode) {
|
|
5778
|
+
var _ref;
|
|
5760
5779
|
var _parentNode_children_find, _parentNode_children;
|
|
5761
5780
|
var original = resolver.getSourceNode(node);
|
|
5762
|
-
|
|
5763
|
-
return (_parentNode_children_find_path = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
|
|
5781
|
+
return (_ref = (_parentNode_children = parentNode.children) === null || _parentNode_children === void 0 ? void 0 : (_parentNode_children_find = _parentNode_children.find(function(child) {
|
|
5764
5782
|
return child.value === original;
|
|
5765
|
-
})) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null &&
|
|
5783
|
+
})) === null || _parentNode_children_find === void 0 ? void 0 : _parentNode_children_find.path) !== null && _ref !== void 0 ? _ref : [];
|
|
5766
5784
|
}
|
|
5767
5785
|
if (parentNode.type !== "multi-node" /* MultiNode */ ) {
|
|
5768
5786
|
return [];
|
|
@@ -5787,9 +5805,9 @@ var Player = function() {
|
|
|
5787
5805
|
var _node_parent, _node_parent_parent, _node_parent1, _node_parent_parent1, _node_parent2, _node_parent_parent_value;
|
|
5788
5806
|
var propsToSkip;
|
|
5789
5807
|
if (node.type === "asset" /* Asset */ || node.type === "view" /* View */ ) {
|
|
5808
|
+
var _ref;
|
|
5790
5809
|
var _node_plugins_stringResolver, _node_plugins, _node_value;
|
|
5791
|
-
|
|
5792
|
-
propsToSkip = new Set((_node_plugins_stringResolver_propertiesToSkip = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _node_plugins_stringResolver_propertiesToSkip !== void 0 ? _node_plugins_stringResolver_propertiesToSkip : [
|
|
5810
|
+
propsToSkip = new Set((_ref = (_node_plugins = node.plugins) === null || _node_plugins === void 0 ? void 0 : (_node_plugins_stringResolver = _node_plugins.stringResolver) === null || _node_plugins_stringResolver === void 0 ? void 0 : _node_plugins_stringResolver.propertiesToSkip) !== null && _ref !== void 0 ? _ref : [
|
|
5793
5811
|
"exp"
|
|
5794
5812
|
]);
|
|
5795
5813
|
if ((_node_value = node.value) === null || _node_value === void 0 ? void 0 : _node_value.id) {
|
|
@@ -6217,11 +6235,11 @@ var Player = function() {
|
|
|
6217
6235
|
this.stateStore.clear();
|
|
6218
6236
|
view.hooks.resolver.tap("asset-transform", function(resolver) {
|
|
6219
6237
|
var lastUpdatedNode;
|
|
6220
|
-
var updateState = function(node) {
|
|
6238
|
+
var updateState = function updateState(node) {
|
|
6221
6239
|
lastUpdatedNode = node;
|
|
6222
6240
|
view.update(/* @__PURE__ */ new Set());
|
|
6223
6241
|
};
|
|
6224
|
-
var getStore = function(node, stepKey) {
|
|
6242
|
+
var getStore = function getStore(node, stepKey) {
|
|
6225
6243
|
var store;
|
|
6226
6244
|
var countKey = stepKey === _this.resolveSymbol ? _this.resolveCountSymbol : _this.beforeResolveCountSymbol;
|
|
6227
6245
|
var storedState = _this.stateStore.get(node);
|
|
@@ -6235,10 +6253,10 @@ var Player = function() {
|
|
|
6235
6253
|
_this.stateStore.set(node, store);
|
|
6236
6254
|
}
|
|
6237
6255
|
return {
|
|
6238
|
-
useSharedState: function(key) {
|
|
6256
|
+
useSharedState: function useSharedState(key) {
|
|
6239
6257
|
return store.useSharedState(key);
|
|
6240
6258
|
},
|
|
6241
|
-
useLocalState: function(initialState) {
|
|
6259
|
+
useLocalState: function useLocalState(initialState) {
|
|
6242
6260
|
return store.getLocalStateFunction(stepKey, countKey)(initialState);
|
|
6243
6261
|
}
|
|
6244
6262
|
};
|
|
@@ -6611,7 +6629,7 @@ var Player = function() {
|
|
|
6611
6629
|
return options;
|
|
6612
6630
|
}
|
|
6613
6631
|
tracked.delete(node);
|
|
6614
|
-
var track = function(binding) {
|
|
6632
|
+
var track = function track(binding) {
|
|
6615
6633
|
var _this_options_callbacks_onAdd, _this_options_callbacks;
|
|
6616
6634
|
var parsed = isBinding(binding) ? binding : _this.options.parseBinding(binding);
|
|
6617
6635
|
if (tracked.has(node)) {
|
|
@@ -6637,7 +6655,7 @@ var Player = function() {
|
|
|
6637
6655
|
};
|
|
6638
6656
|
return _object_spread_props(_object_spread({}, options), {
|
|
6639
6657
|
validation: _object_spread_props(_object_spread({}, options.validation), {
|
|
6640
|
-
get: function(binding, getOptions) {
|
|
6658
|
+
get: function get(binding, getOptions) {
|
|
6641
6659
|
var _options_validation__getValidationForBinding, _options_validation;
|
|
6642
6660
|
if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
|
|
6643
6661
|
track(binding);
|
|
@@ -6649,14 +6667,14 @@ var Player = function() {
|
|
|
6649
6667
|
return firstFieldEOW;
|
|
6650
6668
|
},
|
|
6651
6669
|
getValidationsForBinding: function getValidationsForBinding(binding, getOptions) {
|
|
6670
|
+
var _ref;
|
|
6652
6671
|
var _options_validation__getValidationForBinding, _options_validation;
|
|
6653
6672
|
if (getOptions === null || getOptions === void 0 ? void 0 : getOptions.track) {
|
|
6654
6673
|
track(binding);
|
|
6655
6674
|
}
|
|
6656
|
-
|
|
6657
|
-
return (_options_validation__getValidationForBinding_getAll = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _options_validation__getValidationForBinding_getAll !== void 0 ? _options_validation__getValidationForBinding_getAll : [];
|
|
6675
|
+
return (_ref = (_options_validation = options.validation) === null || _options_validation === void 0 ? void 0 : (_options_validation__getValidationForBinding = _options_validation._getValidationForBinding(binding)) === null || _options_validation__getValidationForBinding === void 0 ? void 0 : _options_validation__getValidationForBinding.getAll(getOptions)) !== null && _ref !== void 0 ? _ref : [];
|
|
6658
6676
|
},
|
|
6659
|
-
getChildren: function(type) {
|
|
6677
|
+
getChildren: function getChildren(type) {
|
|
6660
6678
|
var _lastComputedBindingTree_get;
|
|
6661
6679
|
var validations = new Array();
|
|
6662
6680
|
(_lastComputedBindingTree_get = lastComputedBindingTree.get(node)) === null || _lastComputedBindingTree_get === void 0 ? void 0 : _lastComputedBindingTree_get.forEach(function(binding) {
|
|
@@ -6668,7 +6686,7 @@ var Player = function() {
|
|
|
6668
6686
|
});
|
|
6669
6687
|
return validations;
|
|
6670
6688
|
},
|
|
6671
|
-
getValidationsForSection: function() {
|
|
6689
|
+
getValidationsForSection: function getValidationsForSection() {
|
|
6672
6690
|
var _lastSectionBindingTree_get;
|
|
6673
6691
|
var validations = new Array();
|
|
6674
6692
|
(_lastSectionBindingTree_get = lastSectionBindingTree.get(node)) === null || _lastSectionBindingTree_get === void 0 ? void 0 : _lastSectionBindingTree_get.forEach(function(binding) {
|
|
@@ -6680,7 +6698,7 @@ var Player = function() {
|
|
|
6680
6698
|
});
|
|
6681
6699
|
return validations;
|
|
6682
6700
|
},
|
|
6683
|
-
register: function(registerOptions) {
|
|
6701
|
+
register: function register(registerOptions) {
|
|
6684
6702
|
if ((registerOptions === null || registerOptions === void 0 ? void 0 : registerOptions.type) === "section") {
|
|
6685
6703
|
if (!sections.has(node)) {
|
|
6686
6704
|
sections.set(node, /* @__PURE__ */ new Set());
|
|
@@ -6826,10 +6844,10 @@ var Player = function() {
|
|
|
6826
6844
|
value: function runApplicableValidations(runner, canDismiss, phase) {
|
|
6827
6845
|
var _this = this;
|
|
6828
6846
|
this.applicableValidations = this.applicableValidations.map(function(originalValue) {
|
|
6847
|
+
var _originalValue_value_blocking, _response_message, _obj_value_displayTarget;
|
|
6829
6848
|
if (originalValue.state === "dismissed") {
|
|
6830
6849
|
return originalValue;
|
|
6831
6850
|
}
|
|
6832
|
-
var _originalValue_value_blocking;
|
|
6833
6851
|
var blocking = (_originalValue_value_blocking = originalValue.value.blocking) !== null && _originalValue_value_blocking !== void 0 ? _originalValue_value_blocking : originalValue.value.severity === "warning" && "once" || true;
|
|
6834
6852
|
var obj = (0, import_timm8.setIn)(originalValue, [
|
|
6835
6853
|
"value",
|
|
@@ -6851,7 +6869,6 @@ var Player = function() {
|
|
|
6851
6869
|
}
|
|
6852
6870
|
}
|
|
6853
6871
|
var response = runner(obj.value);
|
|
6854
|
-
var _response_message, _obj_value_displayTarget;
|
|
6855
6872
|
var newState = {
|
|
6856
6873
|
type: obj.type,
|
|
6857
6874
|
value: obj.value,
|
|
@@ -6936,14 +6953,14 @@ var Player = function() {
|
|
|
6936
6953
|
var _this = this;
|
|
6937
6954
|
return [
|
|
6938
6955
|
{
|
|
6939
|
-
set: function(transaction, options, next) {
|
|
6940
|
-
var
|
|
6941
|
-
return (
|
|
6956
|
+
set: function set(transaction, options, next) {
|
|
6957
|
+
var _ref;
|
|
6958
|
+
return (_ref = next === null || next === void 0 ? void 0 : next.set(transaction, options)) !== null && _ref !== void 0 ? _ref : [];
|
|
6942
6959
|
},
|
|
6943
|
-
get: function(binding, options, next) {
|
|
6960
|
+
get: function get(binding, options, next) {
|
|
6944
6961
|
return next === null || next === void 0 ? void 0 : next.get(binding, options);
|
|
6945
6962
|
},
|
|
6946
|
-
delete: function(binding, options, next) {
|
|
6963
|
+
delete: function _delete(binding, options, next) {
|
|
6947
6964
|
_this.validations = removeBindingAndChildrenFromMap(_this.validations, binding);
|
|
6948
6965
|
return next === null || next === void 0 ? void 0 : next.delete(binding, options);
|
|
6949
6966
|
}
|
|
@@ -7006,11 +7023,11 @@ var Player = function() {
|
|
|
7006
7023
|
{
|
|
7007
7024
|
source: VIEW_VALIDATION_PROVIDER_NAME,
|
|
7008
7025
|
provider: {
|
|
7009
|
-
getValidationsForBinding: function(binding) {
|
|
7026
|
+
getValidationsForBinding: function getValidationsForBinding(binding) {
|
|
7010
7027
|
var _this_viewValidationProvider_getValidationsForBinding, _this_viewValidationProvider;
|
|
7011
7028
|
return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForBinding = _this_viewValidationProvider.getValidationsForBinding) === null || _this_viewValidationProvider_getValidationsForBinding === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForBinding.call(_this_viewValidationProvider, binding);
|
|
7012
7029
|
},
|
|
7013
|
-
getValidationsForView: function() {
|
|
7030
|
+
getValidationsForView: function getValidationsForView() {
|
|
7014
7031
|
var _this_viewValidationProvider_getValidationsForView, _this_viewValidationProvider;
|
|
7015
7032
|
return (_this_viewValidationProvider = _this.viewValidationProvider) === null || _this_viewValidationProvider === void 0 ? void 0 : (_this_viewValidationProvider_getValidationsForView = _this_viewValidationProvider.getValidationsForView) === null || _this_viewValidationProvider_getValidationsForView === void 0 ? void 0 : _this_viewValidationProvider_getValidationsForView.call(_this_viewValidationProvider);
|
|
7016
7033
|
}
|
|
@@ -7037,7 +7054,7 @@ var Player = function() {
|
|
|
7037
7054
|
}
|
|
7038
7055
|
var bindingTrackerPlugin = new ValidationBindingTrackerViewPlugin(_object_spread_props(_object_spread({}, this.options), {
|
|
7039
7056
|
callbacks: {
|
|
7040
|
-
onAdd: function(binding) {
|
|
7057
|
+
onAdd: function onAdd(binding) {
|
|
7041
7058
|
if (!_this.options || _this.getValidationForBinding(binding) !== void 0) {
|
|
7042
7059
|
return;
|
|
7043
7060
|
}
|
|
@@ -7081,11 +7098,11 @@ var Player = function() {
|
|
|
7081
7098
|
var _this_options;
|
|
7082
7099
|
var possibleValidations = this.getValidationProviders().reduce(function(vals, provider) {
|
|
7083
7100
|
var _vals;
|
|
7101
|
+
var _ref;
|
|
7084
7102
|
var _provider_provider_getValidationsForBinding, _provider_provider_getValidationsForBinding1, _provider_provider;
|
|
7085
|
-
|
|
7086
|
-
(_vals = vals).push.apply(_vals, _to_consumable_array((_provider_provider_getValidationsForBinding_map = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
|
|
7103
|
+
(_vals = vals).push.apply(_vals, _to_consumable_array((_ref = (_provider_provider_getValidationsForBinding1 = (_provider_provider = provider.provider).getValidationsForBinding) === null || _provider_provider_getValidationsForBinding1 === void 0 ? void 0 : (_provider_provider_getValidationsForBinding = _provider_provider_getValidationsForBinding1.call(_provider_provider, binding)) === null || _provider_provider_getValidationsForBinding === void 0 ? void 0 : _provider_provider_getValidationsForBinding.map(function(valObj) {
|
|
7087
7104
|
return _object_spread_props(_object_spread({}, valObj), _define_property({}, VALIDATION_PROVIDER_NAME_SYMBOL, provider.source));
|
|
7088
|
-
})) !== null &&
|
|
7105
|
+
})) !== null && _ref !== void 0 ? _ref : []));
|
|
7089
7106
|
return vals;
|
|
7090
7107
|
}, []);
|
|
7091
7108
|
if (possibleValidations.length === 0) {
|
|
@@ -7126,10 +7143,10 @@ var Player = function() {
|
|
|
7126
7143
|
key: "validationRunner",
|
|
7127
7144
|
value: function validationRunner(validationObj, binding) {
|
|
7128
7145
|
var context = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.options;
|
|
7146
|
+
var _validationObj_handler;
|
|
7129
7147
|
if (!context) {
|
|
7130
7148
|
throw new Error("No context provided to validation runner");
|
|
7131
7149
|
}
|
|
7132
|
-
var _validationObj_handler;
|
|
7133
7150
|
var handler = (_validationObj_handler = validationObj.handler) !== null && _validationObj_handler !== void 0 ? _validationObj_handler : this.getValidator(validationObj.type);
|
|
7134
7151
|
var weakBindings = /* @__PURE__ */ new Set();
|
|
7135
7152
|
var model = {
|
|
@@ -7143,7 +7160,7 @@ var Player = function() {
|
|
|
7143
7160
|
delete: context.model.delete
|
|
7144
7161
|
};
|
|
7145
7162
|
var result = handler === null || handler === void 0 ? void 0 : handler(_object_spread_props(_object_spread({}, context), {
|
|
7146
|
-
evaluate: function(exp) {
|
|
7163
|
+
evaluate: function evaluate(exp) {
|
|
7147
7164
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7148
7165
|
model: model
|
|
7149
7166
|
};
|
|
@@ -7181,7 +7198,7 @@ var Player = function() {
|
|
|
7181
7198
|
var _this = this;
|
|
7182
7199
|
var isNavigationTrigger = trigger === "navigation";
|
|
7183
7200
|
var lastActiveBindings = this.activeBindings;
|
|
7184
|
-
var updateValidations = function(dismissValidations) {
|
|
7201
|
+
var updateValidations = function updateValidations(dismissValidations) {
|
|
7185
7202
|
_this.getBindings().forEach(function(binding) {
|
|
7186
7203
|
var _this_validations_get;
|
|
7187
7204
|
(_this_validations_get = _this.validations.get(binding)) === null || _this_validations_get === void 0 ? void 0 : _this_validations_get.update(trigger, dismissValidations, function(obj) {
|
|
@@ -7226,9 +7243,9 @@ var Player = function() {
|
|
|
7226
7243
|
{
|
|
7227
7244
|
key: "getBindings",
|
|
7228
7245
|
value: function getBindings() {
|
|
7246
|
+
var _ref;
|
|
7229
7247
|
var _this_tracker;
|
|
7230
|
-
|
|
7231
|
-
return (_this_tracker_getBindings = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _this_tracker_getBindings !== void 0 ? _this_tracker_getBindings : /* @__PURE__ */ new Set();
|
|
7248
|
+
return (_ref = (_this_tracker = this.tracker) === null || _this_tracker === void 0 ? void 0 : _this_tracker.getBindings()) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ new Set();
|
|
7232
7249
|
}
|
|
7233
7250
|
},
|
|
7234
7251
|
{
|
|
@@ -7277,10 +7294,10 @@ var Player = function() {
|
|
|
7277
7294
|
value: function forView(parser) {
|
|
7278
7295
|
var _this = this;
|
|
7279
7296
|
return {
|
|
7280
|
-
_getValidationForBinding: function(binding) {
|
|
7297
|
+
_getValidationForBinding: function _getValidationForBinding(binding) {
|
|
7281
7298
|
return _this.getValidationForBinding(isBinding(binding) ? binding : parser(binding));
|
|
7282
7299
|
},
|
|
7283
|
-
getAll: function() {
|
|
7300
|
+
getAll: function getAll() {
|
|
7284
7301
|
var bindings = _this.getBindings();
|
|
7285
7302
|
if (bindings.size === 0) {
|
|
7286
7303
|
return void 0;
|
|
@@ -7307,13 +7324,13 @@ var Player = function() {
|
|
|
7307
7324
|
getValidationsForSection: function getValidationsForSection() {
|
|
7308
7325
|
throw new Error("Error rollup should be provided by the view plugin");
|
|
7309
7326
|
},
|
|
7310
|
-
track: function() {
|
|
7327
|
+
track: function track() {
|
|
7311
7328
|
throw new Error("Tracking should be provided by the view plugin");
|
|
7312
7329
|
},
|
|
7313
|
-
register: function() {
|
|
7330
|
+
register: function register() {
|
|
7314
7331
|
throw new Error("Section functionality should be provided by the view plugin");
|
|
7315
7332
|
},
|
|
7316
|
-
type: function(binding) {
|
|
7333
|
+
type: function type(binding) {
|
|
7317
7334
|
return _this.schema.getType(isBinding(binding) ? binding : parser(binding));
|
|
7318
7335
|
}
|
|
7319
7336
|
};
|
|
@@ -7358,7 +7375,7 @@ var Player = function() {
|
|
|
7358
7375
|
}
|
|
7359
7376
|
return pairs;
|
|
7360
7377
|
}
|
|
7361
|
-
var createSortedArray = function() {
|
|
7378
|
+
var createSortedArray = function createSortedArray() {
|
|
7362
7379
|
return new import_sorted_array.default([], function(c) {
|
|
7363
7380
|
return c.matcher.count;
|
|
7364
7381
|
});
|
|
@@ -7453,9 +7470,9 @@ var Player = function() {
|
|
|
7453
7470
|
return Registry;
|
|
7454
7471
|
}();
|
|
7455
7472
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/controllers/view/controller.ts
|
|
7456
|
-
var mergeSets = function(setA, setB) {
|
|
7457
|
-
var
|
|
7458
|
-
return /* @__PURE__ */ new Set(_to_consumable_array((
|
|
7473
|
+
var mergeSets = function mergeSets(setA, setB) {
|
|
7474
|
+
var _ref, _ref1;
|
|
7475
|
+
return /* @__PURE__ */ new Set(_to_consumable_array((_ref = setA === null || setA === void 0 ? void 0 : setA.values()) !== null && _ref !== void 0 ? _ref : []).concat(_to_consumable_array((_ref1 = setB === null || setB === void 0 ? void 0 : setB.values()) !== null && _ref1 !== void 0 ? _ref1 : [])));
|
|
7459
7476
|
};
|
|
7460
7477
|
var ViewController = /*#__PURE__*/ function() {
|
|
7461
7478
|
function ViewController(initialViews, options) {
|
|
@@ -7482,7 +7499,7 @@ var Player = function() {
|
|
|
7482
7499
|
}
|
|
7483
7500
|
});
|
|
7484
7501
|
});
|
|
7485
|
-
var update = function(updates) {
|
|
7502
|
+
var update = function update(updates) {
|
|
7486
7503
|
var silent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
7487
7504
|
if (_this1.currentView) {
|
|
7488
7505
|
if (_this1.optimizeUpdates) {
|
|
@@ -7493,10 +7510,10 @@ var Player = function() {
|
|
|
7493
7510
|
}
|
|
7494
7511
|
};
|
|
7495
7512
|
options.model.hooks.onUpdate.tap("viewController", function(updates, updateOptions) {
|
|
7496
|
-
var
|
|
7513
|
+
var _ref;
|
|
7497
7514
|
update(new Set(updates.map(function(t2) {
|
|
7498
7515
|
return t2.binding;
|
|
7499
|
-
})), (
|
|
7516
|
+
})), (_ref = updateOptions === null || updateOptions === void 0 ? void 0 : updateOptions.silent) !== null && _ref !== void 0 ? _ref : false);
|
|
7500
7517
|
});
|
|
7501
7518
|
options.model.hooks.onDelete.tap("viewController", function(binding) {
|
|
7502
7519
|
var parentBinding = binding.parent();
|
|
@@ -7531,8 +7548,8 @@ var Player = function() {
|
|
|
7531
7548
|
if (!this.pendingUpdate.scheduled && !silent) {
|
|
7532
7549
|
this.pendingUpdate.scheduled = true;
|
|
7533
7550
|
(0, import_queue_microtask.default)(function() {
|
|
7534
|
-
var _this_currentView;
|
|
7535
7551
|
var _this_pendingUpdate;
|
|
7552
|
+
var _this_currentView;
|
|
7536
7553
|
var _ref = (_this_pendingUpdate = _this.pendingUpdate) !== null && _this_pendingUpdate !== void 0 ? _this_pendingUpdate : {}, changedBindings = _ref.changedBindings, changedNodes = _ref.changedNodes;
|
|
7537
7554
|
_this.pendingUpdate = void 0;
|
|
7538
7555
|
(_this_currentView = _this.currentView) === null || _this_currentView === void 0 ? void 0 : _this_currentView.update(changedBindings, changedNodes);
|
|
@@ -7861,10 +7878,10 @@ var Player = function() {
|
|
|
7861
7878
|
{
|
|
7862
7879
|
key: "getConstants",
|
|
7863
7880
|
value: function getConstants(key, namespace, fallback) {
|
|
7881
|
+
var _ref, _ref1;
|
|
7864
7882
|
var _this_tempStore_get, _this_store_get;
|
|
7865
7883
|
var path = new BindingInstance(key);
|
|
7866
|
-
|
|
7867
|
-
return (_ref = (_this_tempStore_get_get = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _this_tempStore_get_get !== void 0 ? _this_tempStore_get_get : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
|
|
7884
|
+
return (_ref = (_ref1 = (_this_tempStore_get = this.tempStore.get(namespace)) === null || _this_tempStore_get === void 0 ? void 0 : _this_tempStore_get.get(path)) !== null && _ref1 !== void 0 ? _ref1 : (_this_store_get = this.store.get(namespace)) === null || _this_store_get === void 0 ? void 0 : _this_store_get.get(path)) !== null && _ref !== void 0 ? _ref : fallback;
|
|
7868
7885
|
}
|
|
7869
7886
|
},
|
|
7870
7887
|
{
|
|
@@ -7906,7 +7923,7 @@ var Player = function() {
|
|
|
7906
7923
|
value: function apply(player) {
|
|
7907
7924
|
var _this = this;
|
|
7908
7925
|
var expressionEvaluator;
|
|
7909
|
-
var handleEval = function(exp) {
|
|
7926
|
+
var handleEval = function handleEval(exp) {
|
|
7910
7927
|
if (exp) {
|
|
7911
7928
|
if ((typeof exp === "undefined" ? "undefined" : _type_of(exp)) === "object" && "exp" in exp) {
|
|
7912
7929
|
expressionEvaluator === null || expressionEvaluator === void 0 ? void 0 : expressionEvaluator.evaluate(exp.exp);
|
|
@@ -7927,7 +7944,7 @@ var Player = function() {
|
|
|
7927
7944
|
return handleEval(exp);
|
|
7928
7945
|
});
|
|
7929
7946
|
flow.hooks.resolveTransitionNode.intercept({
|
|
7930
|
-
call: function(nextState) {
|
|
7947
|
+
call: function call(nextState) {
|
|
7931
7948
|
if (nextState === null || nextState === void 0 ? void 0 : nextState.onStart) {
|
|
7932
7949
|
handleEval(nextState.onStart);
|
|
7933
7950
|
}
|
|
@@ -7941,13 +7958,13 @@ var Player = function() {
|
|
|
7941
7958
|
return FlowExpPlugin;
|
|
7942
7959
|
}();
|
|
7943
7960
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/plugins/default-exp-plugin.ts
|
|
7944
|
-
var createFormatFunction = function(schema) {
|
|
7945
|
-
var handler = function(ctx, value, formatName) {
|
|
7961
|
+
var createFormatFunction = function createFormatFunction(schema) {
|
|
7962
|
+
var handler = function handler(ctx, value, formatName) {
|
|
7963
|
+
var _ref;
|
|
7946
7964
|
var _schema_getFormatterForType;
|
|
7947
|
-
|
|
7948
|
-
return (_schema_getFormatterForType_format = (_schema_getFormatterForType = schema.getFormatterForType({
|
|
7965
|
+
return (_ref = (_schema_getFormatterForType = schema.getFormatterForType({
|
|
7949
7966
|
type: formatName
|
|
7950
|
-
})) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null &&
|
|
7967
|
+
})) === null || _schema_getFormatterForType === void 0 ? void 0 : _schema_getFormatterForType.format(value)) !== null && _ref !== void 0 ? _ref : value;
|
|
7951
7968
|
};
|
|
7952
7969
|
return handler;
|
|
7953
7970
|
};
|
|
@@ -8001,8 +8018,8 @@ var Player = function() {
|
|
|
8001
8018
|
status: "not-started"
|
|
8002
8019
|
};
|
|
8003
8020
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/player.ts
|
|
8004
|
-
var PLAYER_VERSION = true ? "0.15.3-next.
|
|
8005
|
-
var COMMIT = true ? "
|
|
8021
|
+
var PLAYER_VERSION = true ? "0.15.3-next.2" : "unknown";
|
|
8022
|
+
var COMMIT = true ? "21f4b09d55c325c5fe951d2fd08caaebb81db483" : "unknown";
|
|
8006
8023
|
var _Player = /*#__PURE__*/ function() {
|
|
8007
8024
|
function _Player(config) {
|
|
8008
8025
|
var _this = this;
|
|
@@ -8117,13 +8134,13 @@ var Player = function() {
|
|
|
8117
8134
|
var expressionEvaluator;
|
|
8118
8135
|
var dataController;
|
|
8119
8136
|
var pathResolver = new BindingParser({
|
|
8120
|
-
get: function(binding) {
|
|
8137
|
+
get: function get(binding) {
|
|
8121
8138
|
return dataController.get(binding);
|
|
8122
8139
|
},
|
|
8123
|
-
set: function(transaction) {
|
|
8140
|
+
set: function set(transaction) {
|
|
8124
8141
|
return dataController.set(transaction);
|
|
8125
8142
|
},
|
|
8126
|
-
evaluate: function(expression) {
|
|
8143
|
+
evaluate: function evaluate(expression) {
|
|
8127
8144
|
return expressionEvaluator.evaluate(expression);
|
|
8128
8145
|
}
|
|
8129
8146
|
});
|
|
@@ -8267,23 +8284,23 @@ var Player = function() {
|
|
|
8267
8284
|
transition: flowController.transition,
|
|
8268
8285
|
model: dataController,
|
|
8269
8286
|
utils: {
|
|
8270
|
-
findPlugin: function(pluginSymbol) {
|
|
8287
|
+
findPlugin: function findPlugin(pluginSymbol) {
|
|
8271
8288
|
return _this.findPlugin(pluginSymbol);
|
|
8272
8289
|
}
|
|
8273
8290
|
},
|
|
8274
8291
|
logger: this.logger,
|
|
8275
8292
|
flowController: flowController,
|
|
8276
8293
|
schema: schema,
|
|
8277
|
-
format: function(binding, value) {
|
|
8294
|
+
format: function format(binding, value) {
|
|
8278
8295
|
var formatter = schema.getFormatter(binding);
|
|
8279
8296
|
return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
|
|
8280
8297
|
},
|
|
8281
|
-
formatValue: function(ref, value) {
|
|
8298
|
+
formatValue: function formatValue(ref, value) {
|
|
8282
8299
|
var formatter = schema.getFormatterForType(ref);
|
|
8283
8300
|
return (formatter === null || formatter === void 0 ? void 0 : formatter.format) ? formatter.format(value) : value;
|
|
8284
8301
|
},
|
|
8285
8302
|
validation: _object_spread_props(_object_spread({}, validationController.forView(parseBinding)), {
|
|
8286
|
-
type: function(b) {
|
|
8303
|
+
type: function type(b) {
|
|
8287
8304
|
return schema.getType(parseBinding(b));
|
|
8288
8305
|
}
|
|
8289
8306
|
}),
|
|
@@ -8295,7 +8312,7 @@ var Player = function() {
|
|
|
8295
8312
|
});
|
|
8296
8313
|
this.hooks.viewController.call(viewController);
|
|
8297
8314
|
return {
|
|
8298
|
-
start: function() {
|
|
8315
|
+
start: function start() {
|
|
8299
8316
|
flowController.start().then(function(endState) {
|
|
8300
8317
|
var flowResult = {
|
|
8301
8318
|
endState: resolveStrings(endState, false),
|
|
@@ -8332,13 +8349,13 @@ var Player = function() {
|
|
|
8332
8349
|
key: "start",
|
|
8333
8350
|
value: function start(payload) {
|
|
8334
8351
|
return _async_to_generator(function() {
|
|
8335
|
-
var _this,
|
|
8352
|
+
var _this, _ref, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
|
|
8336
8353
|
return _ts_generator(this, function(_state) {
|
|
8337
8354
|
switch(_state.label){
|
|
8338
8355
|
case 0:
|
|
8339
8356
|
_this = this;
|
|
8340
|
-
ref = Symbol((
|
|
8341
|
-
maybeUpdateState = function(newState) {
|
|
8357
|
+
ref = Symbol((_ref = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _ref !== void 0 ? _ref : "payload");
|
|
8358
|
+
maybeUpdateState = function maybeUpdateState(newState) {
|
|
8342
8359
|
if (_this.state.ref !== ref) {
|
|
8343
8360
|
_this.logger.warn("Received update for a flow that's not the current one");
|
|
8344
8361
|
return newState;
|