@player-ui/check-path-plugin 1.1.0--canary.866.38513 → 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.
@@ -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.38513" : "unknown";
7869
- var COMMIT = true ? "4ebf47a2b8843a4c1f8979f42e0053f2a45e1a9d" : "unknown";
7868
+ var PLAYER_VERSION = true ? "1.1.0-next.0" : "unknown";
7869
+ var COMMIT = true ? "7844ec45a017e940133a8dd71273d21c4bc56393" : "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 SyncWaterfallHook()
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);
@@ -8209,19 +8208,14 @@ var CheckPathPlugin = function() {
8209
8208
  },
8210
8209
  {
8211
8210
  key: "start",
8212
- value: function start(payload, options) {
8211
+ value: function start(payload) {
8213
8212
  return _async_to_generator(function() {
8214
- 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;
8215
8214
  return _ts_generator(this, function(_state) {
8216
8215
  switch(_state.label){
8217
8216
  case 0:
8218
8217
  _this = this;
8219
- meta = {
8220
- format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
8221
- version: options === null || options === void 0 ? void 0 : options.version
8222
- };
8223
- flow = this.hooks.transformContent.call(payload, meta);
8224
- ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : 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");
8225
8219
  maybeUpdateState = function(newState) {
8226
8220
  if (_this.state.ref !== ref) {
8227
8221
  _this.logger.warn("Received update for a flow that's not the current one");
@@ -8242,7 +8236,7 @@ var CheckPathPlugin = function() {
8242
8236
  ,
8243
8237
  4
8244
8238
  ]);
8245
- _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;
8246
8240
  this.setState(_object_spread({
8247
8241
  ref: ref
8248
8242
  }, state));
@@ -8277,7 +8271,7 @@ var CheckPathPlugin = function() {
8277
8271
  errorState = {
8278
8272
  status: "error",
8279
8273
  ref: ref,
8280
- flow: flow,
8274
+ flow: payload,
8281
8275
  error: error
8282
8276
  };
8283
8277
  maybeUpdateState(errorState);