@player-ui/check-path-plugin 1.1.0--canary.866.38513 → 1.1.0--canary.866.38904
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.
|
@@ -7865,8 +7865,8 @@ var CheckPathPlugin = function() {
|
|
|
7865
7865
|
ref: Symbol("not-started"),
|
|
7866
7866
|
status: "not-started"
|
|
7867
7867
|
};
|
|
7868
|
-
var PLAYER_VERSION = true ? "1.1.0--canary.866.
|
|
7869
|
-
var COMMIT = true ? "
|
|
7868
|
+
var PLAYER_VERSION = true ? "1.1.0--canary.866.38904" : "unknown";
|
|
7869
|
+
var COMMIT = true ? "4bb0e145f34d37972e689d8f184c53e1692d0cc5" : "unknown";
|
|
7870
7870
|
var _Player = /*#__PURE__*/ function() {
|
|
7871
7871
|
function _Player2(config) {
|
|
7872
7872
|
var _this = this;
|
|
@@ -7889,7 +7889,7 @@ var CheckPathPlugin = function() {
|
|
|
7889
7889
|
onStart: new SyncHook(),
|
|
7890
7890
|
onEnd: new SyncHook(),
|
|
7891
7891
|
resolveFlowContent: new SyncWaterfallHook(),
|
|
7892
|
-
transformContent: new
|
|
7892
|
+
transformContent: new SyncBailHook()
|
|
7893
7893
|
};
|
|
7894
7894
|
if (config === null || config === void 0 ? void 0 : config.logger) {
|
|
7895
7895
|
this.logger.addHandler(config.logger);
|
|
@@ -7903,6 +7903,9 @@ var CheckPathPlugin = function() {
|
|
|
7903
7903
|
(_this_config_plugins = this.config.plugins) === null || _this_config_plugins === void 0 ? void 0 : _this_config_plugins.forEach(function(plugin) {
|
|
7904
7904
|
plugin.apply(_this);
|
|
7905
7905
|
});
|
|
7906
|
+
this.hooks.transformContent.tap("player", function(payload, meta) {
|
|
7907
|
+
return meta.format === "player" ? payload : void 0;
|
|
7908
|
+
});
|
|
7906
7909
|
}
|
|
7907
7910
|
_create_class(_Player2, [
|
|
7908
7911
|
{
|
|
@@ -8221,7 +8224,10 @@ var CheckPathPlugin = function() {
|
|
|
8221
8224
|
version: options === null || options === void 0 ? void 0 : options.version
|
|
8222
8225
|
};
|
|
8223
8226
|
flow = this.hooks.transformContent.call(payload, meta);
|
|
8224
|
-
|
|
8227
|
+
if (!flow) {
|
|
8228
|
+
throw new Error('Player.start received content with format "'.concat(meta.format, '" that no plugin transformed into a Flow.'));
|
|
8229
|
+
}
|
|
8230
|
+
ref = Symbol((_flow_id = flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
|
|
8225
8231
|
maybeUpdateState = function(newState) {
|
|
8226
8232
|
if (_this.state.ref !== ref) {
|
|
8227
8233
|
_this.logger.warn("Received update for a flow that's not the current one");
|