@player-ui/reference-assets-plugin 1.1.0--canary.866.38489 → 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.
@@ -8381,8 +8381,8 @@ var ReferenceAssetsPlugin = function() {
8381
8381
  ref: Symbol("not-started"),
8382
8382
  status: "not-started"
8383
8383
  };
8384
- var PLAYER_VERSION = true ? "1.1.0--canary.866.38489" : "unknown";
8385
- var COMMIT = true ? "3da792fb855f66e3747d2b873d0292ae811523a1" : "unknown";
8384
+ var PLAYER_VERSION = true ? "1.1.0--canary.866.38904" : "unknown";
8385
+ var COMMIT = true ? "4bb0e145f34d37972e689d8f184c53e1692d0cc5" : "unknown";
8386
8386
  var _Player = /*#__PURE__*/ function() {
8387
8387
  function _Player2(config) {
8388
8388
  var _this = this;
@@ -8405,7 +8405,7 @@ var ReferenceAssetsPlugin = function() {
8405
8405
  onStart: new SyncHook(),
8406
8406
  onEnd: new SyncHook(),
8407
8407
  resolveFlowContent: new SyncWaterfallHook(),
8408
- transformContent: new SyncWaterfallHook()
8408
+ transformContent: new SyncBailHook()
8409
8409
  };
8410
8410
  if (config === null || config === void 0 ? void 0 : config.logger) {
8411
8411
  this.logger.addHandler(config.logger);
@@ -8419,6 +8419,9 @@ var ReferenceAssetsPlugin = function() {
8419
8419
  (_this_config_plugins = this.config.plugins) === null || _this_config_plugins === void 0 ? void 0 : _this_config_plugins.forEach(function(plugin) {
8420
8420
  plugin.apply(_this);
8421
8421
  });
8422
+ this.hooks.transformContent.tap("player", function(payload, meta) {
8423
+ return meta.format === "player" ? payload : void 0;
8424
+ });
8422
8425
  }
8423
8426
  _create_class(_Player2, [
8424
8427
  {
@@ -8737,7 +8740,10 @@ var ReferenceAssetsPlugin = function() {
8737
8740
  version: options === null || options === void 0 ? void 0 : options.version
8738
8741
  };
8739
8742
  flow = this.hooks.transformContent.call(payload, meta);
8740
- ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8743
+ if (!flow) {
8744
+ throw new Error('Player.start received content with format "'.concat(meta.format, '" that no plugin transformed into a Flow.'));
8745
+ }
8746
+ ref = Symbol((_flow_id = flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8741
8747
  maybeUpdateState = function(newState) {
8742
8748
  if (_this.state.ref !== ref) {
8743
8749
  _this.logger.warn("Received update for a flow that's not the current one");