@player-ui/async-node-plugin 1.1.0--canary.866.38489 → 1.1.0-next.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.
|
@@ -8062,8 +8062,8 @@ var AsyncNodePlugin = function() {
|
|
|
8062
8062
|
ref: Symbol("not-started"),
|
|
8063
8063
|
status: "not-started"
|
|
8064
8064
|
};
|
|
8065
|
-
var PLAYER_VERSION = true ? "1.1.0
|
|
8066
|
-
var COMMIT = true ? "
|
|
8065
|
+
var PLAYER_VERSION = true ? "1.1.0-next.0" : "unknown";
|
|
8066
|
+
var COMMIT = true ? "7844ec45a017e940133a8dd71273d21c4bc56393" : "unknown";
|
|
8067
8067
|
var _Player = /*#__PURE__*/ function() {
|
|
8068
8068
|
function _Player2(config) {
|
|
8069
8069
|
var _this = this;
|
|
@@ -8085,8 +8085,7 @@ var AsyncNodePlugin = function() {
|
|
|
8085
8085
|
state: new SyncHook(),
|
|
8086
8086
|
onStart: new SyncHook(),
|
|
8087
8087
|
onEnd: new SyncHook(),
|
|
8088
|
-
resolveFlowContent: new SyncWaterfallHook()
|
|
8089
|
-
transformContent: new SyncWaterfallHook()
|
|
8088
|
+
resolveFlowContent: new SyncWaterfallHook()
|
|
8090
8089
|
};
|
|
8091
8090
|
if (config === null || config === void 0 ? void 0 : config.logger) {
|
|
8092
8091
|
this.logger.addHandler(config.logger);
|
|
@@ -8406,19 +8405,14 @@ var AsyncNodePlugin = function() {
|
|
|
8406
8405
|
},
|
|
8407
8406
|
{
|
|
8408
8407
|
key: "start",
|
|
8409
|
-
value: function start(payload
|
|
8408
|
+
value: function start(payload) {
|
|
8410
8409
|
return _async_to_generator(function() {
|
|
8411
|
-
var _this,
|
|
8410
|
+
var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
|
|
8412
8411
|
return _ts_generator(this, function(_state) {
|
|
8413
8412
|
switch(_state.label){
|
|
8414
8413
|
case 0:
|
|
8415
8414
|
_this = this;
|
|
8416
|
-
|
|
8417
|
-
format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
|
|
8418
|
-
version: options === null || options === void 0 ? void 0 : options.version
|
|
8419
|
-
};
|
|
8420
|
-
flow = this.hooks.transformContent.call(payload, meta);
|
|
8421
|
-
ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
|
|
8415
|
+
ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
|
|
8422
8416
|
maybeUpdateState = function(newState) {
|
|
8423
8417
|
if (_this.state.ref !== ref) {
|
|
8424
8418
|
_this.logger.warn("Received update for a flow that's not the current one");
|
|
@@ -8439,7 +8433,7 @@ var AsyncNodePlugin = function() {
|
|
|
8439
8433
|
,
|
|
8440
8434
|
4
|
|
8441
8435
|
]);
|
|
8442
|
-
_this_setupFlow = this.setupFlow(
|
|
8436
|
+
_this_setupFlow = this.setupFlow(payload), state = _this_setupFlow.state, start = _this_setupFlow.start;
|
|
8443
8437
|
this.setState(_object_spread({
|
|
8444
8438
|
ref: ref
|
|
8445
8439
|
}, state));
|
|
@@ -8474,7 +8468,7 @@ var AsyncNodePlugin = function() {
|
|
|
8474
8468
|
errorState = {
|
|
8475
8469
|
status: "error",
|
|
8476
8470
|
ref: ref,
|
|
8477
|
-
flow:
|
|
8471
|
+
flow: payload,
|
|
8478
8472
|
error: error
|
|
8479
8473
|
};
|
|
8480
8474
|
maybeUpdateState(errorState);
|