@player-ui/check-path-plugin 1.1.0--canary.866.38904 → 1.1.0-next.1

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.38904" : "unknown";
7869
- var COMMIT = true ? "4bb0e145f34d37972e689d8f184c53e1692d0cc5" : "unknown";
7868
+ var PLAYER_VERSION = true ? "1.1.0-next.1" : "unknown";
7869
+ var COMMIT = true ? "8d1e44b77769e923785e6218de2d9f99342b9b1a" : "unknown";
7870
7870
  var _Player = /*#__PURE__*/ function() {
7871
7871
  function _Player2(config) {
7872
7872
  var _this = this;
@@ -7888,8 +7888,7 @@ var CheckPathPlugin = function() {
7888
7888
  state: new SyncHook(),
7889
7889
  onStart: new SyncHook(),
7890
7890
  onEnd: new SyncHook(),
7891
- resolveFlowContent: new SyncWaterfallHook(),
7892
- transformContent: new SyncBailHook()
7891
+ resolveFlowContent: new SyncWaterfallHook()
7893
7892
  };
7894
7893
  if (config === null || config === void 0 ? void 0 : config.logger) {
7895
7894
  this.logger.addHandler(config.logger);
@@ -7903,9 +7902,6 @@ var CheckPathPlugin = function() {
7903
7902
  (_this_config_plugins = this.config.plugins) === null || _this_config_plugins === void 0 ? void 0 : _this_config_plugins.forEach(function(plugin) {
7904
7903
  plugin.apply(_this);
7905
7904
  });
7906
- this.hooks.transformContent.tap("player", function(payload, meta) {
7907
- return meta.format === "player" ? payload : void 0;
7908
- });
7909
7905
  }
7910
7906
  _create_class(_Player2, [
7911
7907
  {
@@ -8212,22 +8208,14 @@ var CheckPathPlugin = function() {
8212
8208
  },
8213
8209
  {
8214
8210
  key: "start",
8215
- value: function start(payload, options) {
8211
+ value: function start(payload) {
8216
8212
  return _async_to_generator(function() {
8217
- var _this, _options_format, meta, flow, _flow_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8213
+ var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8218
8214
  return _ts_generator(this, function(_state) {
8219
8215
  switch(_state.label){
8220
8216
  case 0:
8221
8217
  _this = this;
8222
- meta = {
8223
- format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
8224
- version: options === null || options === void 0 ? void 0 : options.version
8225
- };
8226
- flow = this.hooks.transformContent.call(payload, meta);
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");
8218
+ ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
8231
8219
  maybeUpdateState = function(newState) {
8232
8220
  if (_this.state.ref !== ref) {
8233
8221
  _this.logger.warn("Received update for a flow that's not the current one");
@@ -8248,7 +8236,7 @@ var CheckPathPlugin = function() {
8248
8236
  ,
8249
8237
  4
8250
8238
  ]);
8251
- _this_setupFlow = this.setupFlow(flow), state = _this_setupFlow.state, start = _this_setupFlow.start;
8239
+ _this_setupFlow = this.setupFlow(payload), state = _this_setupFlow.state, start = _this_setupFlow.start;
8252
8240
  this.setState(_object_spread({
8253
8241
  ref: ref
8254
8242
  }, state));
@@ -8283,7 +8271,7 @@ var CheckPathPlugin = function() {
8283
8271
  errorState = {
8284
8272
  status: "error",
8285
8273
  ref: ref,
8286
- flow: flow,
8274
+ flow: payload,
8287
8275
  error: error
8288
8276
  };
8289
8277
  maybeUpdateState(errorState);