@player-ui/external-state-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.
@@ -7840,8 +7840,8 @@ var ExternalStatePlugin = function() {
7840
7840
  ref: Symbol("not-started"),
7841
7841
  status: "not-started"
7842
7842
  };
7843
- var PLAYER_VERSION = true ? "1.1.0--canary.866.38513" : "unknown";
7844
- var COMMIT = true ? "4ebf47a2b8843a4c1f8979f42e0053f2a45e1a9d" : "unknown";
7843
+ var PLAYER_VERSION = true ? "1.1.0--canary.866.38904" : "unknown";
7844
+ var COMMIT = true ? "4bb0e145f34d37972e689d8f184c53e1692d0cc5" : "unknown";
7845
7845
  var _Player = /*#__PURE__*/ function() {
7846
7846
  function _Player2(config) {
7847
7847
  var _this = this;
@@ -7864,7 +7864,7 @@ var ExternalStatePlugin = function() {
7864
7864
  onStart: new SyncHook(),
7865
7865
  onEnd: new SyncHook(),
7866
7866
  resolveFlowContent: new SyncWaterfallHook(),
7867
- transformContent: new SyncWaterfallHook()
7867
+ transformContent: new SyncBailHook()
7868
7868
  };
7869
7869
  if (config === null || config === void 0 ? void 0 : config.logger) {
7870
7870
  this.logger.addHandler(config.logger);
@@ -7878,6 +7878,9 @@ var ExternalStatePlugin = function() {
7878
7878
  (_this_config_plugins = this.config.plugins) === null || _this_config_plugins === void 0 ? void 0 : _this_config_plugins.forEach(function(plugin) {
7879
7879
  plugin.apply(_this);
7880
7880
  });
7881
+ this.hooks.transformContent.tap("player", function(payload, meta) {
7882
+ return meta.format === "player" ? payload : void 0;
7883
+ });
7881
7884
  }
7882
7885
  _create_class(_Player2, [
7883
7886
  {
@@ -8196,7 +8199,10 @@ var ExternalStatePlugin = function() {
8196
8199
  version: options === null || options === void 0 ? void 0 : options.version
8197
8200
  };
8198
8201
  flow = this.hooks.transformContent.call(payload, meta);
8199
- ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8202
+ if (!flow) {
8203
+ throw new Error('Player.start received content with format "'.concat(meta.format, '" that no plugin transformed into a Flow.'));
8204
+ }
8205
+ ref = Symbol((_flow_id = flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8200
8206
  maybeUpdateState = function(newState) {
8201
8207
  if (_this.state.ref !== ref) {
8202
8208
  _this.logger.warn("Received update for a flow that's not the current one");