@player-ui/async-node-plugin 0.8.1--canary.471.16571 → 0.8.1--canary.471.16682
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.
|
@@ -4803,7 +4803,6 @@ var AsyncNodePlugin = function() {
|
|
|
4803
4803
|
onTemplatePluginCreated: new SyncHook(),
|
|
4804
4804
|
templatePlugin: new SyncHook()
|
|
4805
4805
|
};
|
|
4806
|
-
this.transitioning = true;
|
|
4807
4806
|
this.initialView = initialView;
|
|
4808
4807
|
this.resolverOptions = resolverOptions;
|
|
4809
4808
|
this.hooks.onTemplatePluginCreated.tap("view", function(templatePlugin) {
|
|
@@ -4811,28 +4810,18 @@ var AsyncNodePlugin = function() {
|
|
|
4811
4810
|
});
|
|
4812
4811
|
}
|
|
4813
4812
|
_create_class(ViewInstance, [
|
|
4814
|
-
{
|
|
4815
|
-
key: "setTransition",
|
|
4816
|
-
value: function setTransition(isTransitioning) {
|
|
4817
|
-
this.transitioning = isTransitioning;
|
|
4818
|
-
}
|
|
4819
|
-
},
|
|
4820
4813
|
{
|
|
4821
4814
|
key: "updateAsync",
|
|
4822
4815
|
value: function updateAsync() {
|
|
4823
|
-
var fromTransitioning = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
4824
4816
|
var _this_resolver;
|
|
4825
4817
|
var update = (_this_resolver = this.resolver) === null || _this_resolver === void 0 ? void 0 : _this_resolver.update();
|
|
4826
4818
|
this.lastUpdate = update;
|
|
4827
|
-
|
|
4828
|
-
this.hooks.onUpdate.call(update);
|
|
4829
|
-
}
|
|
4819
|
+
this.hooks.onUpdate.call(update);
|
|
4830
4820
|
}
|
|
4831
4821
|
},
|
|
4832
4822
|
{
|
|
4833
4823
|
key: "update",
|
|
4834
4824
|
value: function update(changes) {
|
|
4835
|
-
var fromTransitioning = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
4836
4825
|
var _this_resolver;
|
|
4837
4826
|
if (this.rootNode === void 0) {
|
|
4838
4827
|
this.validationProvider = new CrossfieldProvider(this.initialView, this.resolverOptions.parseBinding, this.resolverOptions.logger);
|
|
@@ -4855,10 +4844,7 @@ var AsyncNodePlugin = function() {
|
|
|
4855
4844
|
return this.lastUpdate;
|
|
4856
4845
|
}
|
|
4857
4846
|
this.lastUpdate = update;
|
|
4858
|
-
|
|
4859
|
-
this.hooks.onUpdate.call(update);
|
|
4860
|
-
}
|
|
4861
|
-
this.transitioning = false;
|
|
4847
|
+
this.hooks.onUpdate.call(update);
|
|
4862
4848
|
return update;
|
|
4863
4849
|
}
|
|
4864
4850
|
},
|
|
@@ -6625,15 +6611,11 @@ var AsyncNodePlugin = function() {
|
|
|
6625
6611
|
options.flowController.hooks.flow.tap("viewController", function(flow) {
|
|
6626
6612
|
flow.hooks.transition.tap("viewController", function(_oldState, newState) {
|
|
6627
6613
|
if (newState.value.state_type === "VIEW") {
|
|
6628
|
-
_this.setViewsTransition(true);
|
|
6629
6614
|
_this.onView(newState.value);
|
|
6630
6615
|
} else {
|
|
6631
6616
|
_this.currentView = void 0;
|
|
6632
6617
|
}
|
|
6633
6618
|
});
|
|
6634
|
-
flow.hooks.afterTransition.tap("view", function(flowInstance) {
|
|
6635
|
-
_this.setViewsTransition(false);
|
|
6636
|
-
});
|
|
6637
6619
|
});
|
|
6638
6620
|
var update = function(updates) {
|
|
6639
6621
|
var silent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -6666,14 +6648,6 @@ var AsyncNodePlugin = function() {
|
|
|
6666
6648
|
});
|
|
6667
6649
|
}
|
|
6668
6650
|
_create_class(ViewController, [
|
|
6669
|
-
{
|
|
6670
|
-
key: "setViewsTransition",
|
|
6671
|
-
value: function setViewsTransition(transition) {
|
|
6672
|
-
var _this_previousView, _this_currentView;
|
|
6673
|
-
(_this_previousView = this.previousView) === null || _this_previousView === void 0 ? void 0 : _this_previousView.setTransition(transition);
|
|
6674
|
-
(_this_currentView = this.currentView) === null || _this_currentView === void 0 ? void 0 : _this_currentView.setTransition(transition);
|
|
6675
|
-
}
|
|
6676
|
-
},
|
|
6677
6651
|
{
|
|
6678
6652
|
key: "queueUpdate",
|
|
6679
6653
|
value: function queueUpdate(bindings) {
|
|
@@ -6725,11 +6699,10 @@ var AsyncNodePlugin = function() {
|
|
|
6725
6699
|
if (!source) {
|
|
6726
6700
|
throw new Error("No view with id ".concat(viewId));
|
|
6727
6701
|
}
|
|
6728
|
-
this.previousView = this.currentView;
|
|
6729
6702
|
var view = new ViewInstance(source, this.viewOptions);
|
|
6730
6703
|
this.currentView = view;
|
|
6731
6704
|
this.hooks.view.call(view);
|
|
6732
|
-
view.update(
|
|
6705
|
+
view.update();
|
|
6733
6706
|
}
|
|
6734
6707
|
}
|
|
6735
6708
|
]);
|