@player-ui/beacon-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.
@@ -7912,8 +7912,8 @@ var BeaconPlugin = function() {
7912
7912
  ref: Symbol("not-started"),
7913
7913
  status: "not-started"
7914
7914
  };
7915
- var PLAYER_VERSION = true ? "1.1.0--canary.866.38513" : "unknown";
7916
- var COMMIT = true ? "4ebf47a2b8843a4c1f8979f42e0053f2a45e1a9d" : "unknown";
7915
+ var PLAYER_VERSION = true ? "1.1.0-next.0" : "unknown";
7916
+ var COMMIT = true ? "7844ec45a017e940133a8dd71273d21c4bc56393" : "unknown";
7917
7917
  var _Player = /*#__PURE__*/ function() {
7918
7918
  function _Player2(config) {
7919
7919
  var _this = this;
@@ -7935,8 +7935,7 @@ var BeaconPlugin = function() {
7935
7935
  state: new SyncHook(),
7936
7936
  onStart: new SyncHook(),
7937
7937
  onEnd: new SyncHook(),
7938
- resolveFlowContent: new SyncWaterfallHook(),
7939
- transformContent: new SyncWaterfallHook()
7938
+ resolveFlowContent: new SyncWaterfallHook()
7940
7939
  };
7941
7940
  if (config === null || config === void 0 ? void 0 : config.logger) {
7942
7941
  this.logger.addHandler(config.logger);
@@ -8256,19 +8255,14 @@ var BeaconPlugin = function() {
8256
8255
  },
8257
8256
  {
8258
8257
  key: "start",
8259
- value: function start(payload, options) {
8258
+ value: function start(payload) {
8260
8259
  return _async_to_generator(function() {
8261
- var _this, _options_format, meta, flow, _flow_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8260
+ var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8262
8261
  return _ts_generator(this, function(_state) {
8263
8262
  switch(_state.label){
8264
8263
  case 0:
8265
8264
  _this = this;
8266
- meta = {
8267
- format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
8268
- version: options === null || options === void 0 ? void 0 : options.version
8269
- };
8270
- flow = this.hooks.transformContent.call(payload, meta);
8271
- ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8265
+ ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
8272
8266
  maybeUpdateState = function(newState) {
8273
8267
  if (_this.state.ref !== ref) {
8274
8268
  _this.logger.warn("Received update for a flow that's not the current one");
@@ -8289,7 +8283,7 @@ var BeaconPlugin = function() {
8289
8283
  ,
8290
8284
  4
8291
8285
  ]);
8292
- _this_setupFlow = this.setupFlow(flow), state = _this_setupFlow.state, start = _this_setupFlow.start;
8286
+ _this_setupFlow = this.setupFlow(payload), state = _this_setupFlow.state, start = _this_setupFlow.start;
8293
8287
  this.setState(_object_spread({
8294
8288
  ref: ref
8295
8289
  }, state));
@@ -8324,7 +8318,7 @@ var BeaconPlugin = function() {
8324
8318
  errorState = {
8325
8319
  status: "error",
8326
8320
  ref: ref,
8327
- flow: flow,
8321
+ flow: payload,
8328
8322
  error: error
8329
8323
  };
8330
8324
  maybeUpdateState(errorState);