@player-ui/metrics-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.
@@ -7924,8 +7924,8 @@ var MetricsPlugin = function() {
7924
7924
  ref: Symbol("not-started"),
7925
7925
  status: "not-started"
7926
7926
  };
7927
- var PLAYER_VERSION = true ? "1.1.0--canary.866.38513" : "unknown";
7928
- var COMMIT = true ? "4ebf47a2b8843a4c1f8979f42e0053f2a45e1a9d" : "unknown";
7927
+ var PLAYER_VERSION = true ? "1.1.0-next.0" : "unknown";
7928
+ var COMMIT = true ? "7844ec45a017e940133a8dd71273d21c4bc56393" : "unknown";
7929
7929
  var _Player = /*#__PURE__*/ function() {
7930
7930
  function _Player2(config) {
7931
7931
  var _this = this;
@@ -7947,8 +7947,7 @@ var MetricsPlugin = function() {
7947
7947
  state: new SyncHook(),
7948
7948
  onStart: new SyncHook(),
7949
7949
  onEnd: new SyncHook(),
7950
- resolveFlowContent: new SyncWaterfallHook(),
7951
- transformContent: new SyncWaterfallHook()
7950
+ resolveFlowContent: new SyncWaterfallHook()
7952
7951
  };
7953
7952
  if (config === null || config === void 0 ? void 0 : config.logger) {
7954
7953
  this.logger.addHandler(config.logger);
@@ -8268,19 +8267,14 @@ var MetricsPlugin = function() {
8268
8267
  },
8269
8268
  {
8270
8269
  key: "start",
8271
- value: function start(payload, options) {
8270
+ value: function start(payload) {
8272
8271
  return _async_to_generator(function() {
8273
- var _this, _options_format, meta, flow, _flow_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8272
+ var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
8274
8273
  return _ts_generator(this, function(_state) {
8275
8274
  switch(_state.label){
8276
8275
  case 0:
8277
8276
  _this = this;
8278
- meta = {
8279
- format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
8280
- version: options === null || options === void 0 ? void 0 : options.version
8281
- };
8282
- flow = this.hooks.transformContent.call(payload, meta);
8283
- ref = Symbol((_flow_id = flow === null || flow === void 0 ? void 0 : flow.id) !== null && _flow_id !== void 0 ? _flow_id : "payload");
8277
+ ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
8284
8278
  maybeUpdateState = function(newState) {
8285
8279
  if (_this.state.ref !== ref) {
8286
8280
  _this.logger.warn("Received update for a flow that's not the current one");
@@ -8301,7 +8295,7 @@ var MetricsPlugin = function() {
8301
8295
  ,
8302
8296
  4
8303
8297
  ]);
8304
- _this_setupFlow = this.setupFlow(flow), state = _this_setupFlow.state, start = _this_setupFlow.start;
8298
+ _this_setupFlow = this.setupFlow(payload), state = _this_setupFlow.state, start = _this_setupFlow.start;
8305
8299
  this.setState(_object_spread({
8306
8300
  ref: ref
8307
8301
  }, state));
@@ -8336,7 +8330,7 @@ var MetricsPlugin = function() {
8336
8330
  errorState = {
8337
8331
  status: "error",
8338
8332
  ref: ref,
8339
- flow: flow,
8333
+ flow: payload,
8340
8334
  error: error
8341
8335
  };
8342
8336
  maybeUpdateState(errorState);