@player-ui/markdown-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.
|
@@ -12196,8 +12196,8 @@ var MarkdownPlugin = function() {
|
|
|
12196
12196
|
ref: Symbol("not-started"),
|
|
12197
12197
|
status: "not-started"
|
|
12198
12198
|
};
|
|
12199
|
-
var PLAYER_VERSION = true ? "1.1.0
|
|
12200
|
-
var COMMIT = true ? "
|
|
12199
|
+
var PLAYER_VERSION = true ? "1.1.0-next.0" : "unknown";
|
|
12200
|
+
var COMMIT = true ? "7844ec45a017e940133a8dd71273d21c4bc56393" : "unknown";
|
|
12201
12201
|
var _Player = /*#__PURE__*/ function() {
|
|
12202
12202
|
function _Player2(config) {
|
|
12203
12203
|
var _this = this;
|
|
@@ -12219,8 +12219,7 @@ var MarkdownPlugin = function() {
|
|
|
12219
12219
|
state: new SyncHook(),
|
|
12220
12220
|
onStart: new SyncHook(),
|
|
12221
12221
|
onEnd: new SyncHook(),
|
|
12222
|
-
resolveFlowContent: new SyncWaterfallHook()
|
|
12223
|
-
transformContent: new SyncWaterfallHook()
|
|
12222
|
+
resolveFlowContent: new SyncWaterfallHook()
|
|
12224
12223
|
};
|
|
12225
12224
|
if (config === null || config === void 0 ? void 0 : config.logger) {
|
|
12226
12225
|
this.logger.addHandler(config.logger);
|
|
@@ -12540,19 +12539,14 @@ var MarkdownPlugin = function() {
|
|
|
12540
12539
|
},
|
|
12541
12540
|
{
|
|
12542
12541
|
key: "start",
|
|
12543
|
-
value: function start(payload
|
|
12542
|
+
value: function start(payload) {
|
|
12544
12543
|
return _async_to_generator(function() {
|
|
12545
|
-
var _this,
|
|
12544
|
+
var _this, _payload_id, ref, maybeUpdateState, _this_setupFlow, state, start, endProps, _tmp, error, errorState;
|
|
12546
12545
|
return _ts_generator(this, function(_state) {
|
|
12547
12546
|
switch(_state.label){
|
|
12548
12547
|
case 0:
|
|
12549
12548
|
_this = this;
|
|
12550
|
-
|
|
12551
|
-
format: (_options_format = options === null || options === void 0 ? void 0 : options.format) !== null && _options_format !== void 0 ? _options_format : "player",
|
|
12552
|
-
version: options === null || options === void 0 ? void 0 : options.version
|
|
12553
|
-
};
|
|
12554
|
-
flow3 = this.hooks.transformContent.call(payload, meta);
|
|
12555
|
-
ref = Symbol((_flow3_id = flow3 === null || flow3 === void 0 ? void 0 : flow3.id) !== null && _flow3_id !== void 0 ? _flow3_id : "payload");
|
|
12549
|
+
ref = Symbol((_payload_id = payload === null || payload === void 0 ? void 0 : payload.id) !== null && _payload_id !== void 0 ? _payload_id : "payload");
|
|
12556
12550
|
maybeUpdateState = function(newState) {
|
|
12557
12551
|
if (_this.state.ref !== ref) {
|
|
12558
12552
|
_this.logger.warn("Received update for a flow that's not the current one");
|
|
@@ -12573,7 +12567,7 @@ var MarkdownPlugin = function() {
|
|
|
12573
12567
|
,
|
|
12574
12568
|
4
|
|
12575
12569
|
]);
|
|
12576
|
-
_this_setupFlow = this.setupFlow(
|
|
12570
|
+
_this_setupFlow = this.setupFlow(payload), state = _this_setupFlow.state, start = _this_setupFlow.start;
|
|
12577
12571
|
this.setState(_object_spread({
|
|
12578
12572
|
ref: ref
|
|
12579
12573
|
}, state));
|
|
@@ -12608,7 +12602,7 @@ var MarkdownPlugin = function() {
|
|
|
12608
12602
|
errorState = {
|
|
12609
12603
|
status: "error",
|
|
12610
12604
|
ref: ref,
|
|
12611
|
-
flow:
|
|
12605
|
+
flow: payload,
|
|
12612
12606
|
error: error
|
|
12613
12607
|
};
|
|
12614
12608
|
maybeUpdateState(errorState);
|