@player-ui/player 0.13.0-next.2 → 0.13.0-next.3
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.
- package/dist/Player.native.js +2 -1
- package/dist/Player.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +4 -3
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/player.ts +1 -0
package/dist/index.legacy-esm.js
CHANGED
|
@@ -4015,6 +4015,7 @@ var AssetTransformCorePlugin = class {
|
|
|
4015
4015
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/player.ts
|
|
4016
4016
|
import { setIn as setIn7 } from "timm";
|
|
4017
4017
|
import deferred from "p-defer";
|
|
4018
|
+
import queueMicrotask2 from "queue-microtask";
|
|
4018
4019
|
import { SyncHook as SyncHook10, SyncWaterfallHook as SyncWaterfallHook11 } from "tapable-ts";
|
|
4019
4020
|
|
|
4020
4021
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/controllers/flow/flow.ts
|
|
@@ -4912,7 +4913,7 @@ var ValidationController = class {
|
|
|
4912
4913
|
|
|
4913
4914
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/controllers/view/controller.ts
|
|
4914
4915
|
import { SyncHook as SyncHook8, SyncWaterfallHook as SyncWaterfallHook9 } from "tapable-ts";
|
|
4915
|
-
import
|
|
4916
|
+
import queueMicrotask from "queue-microtask";
|
|
4916
4917
|
import { Registry } from "@player-ui/partial-match-registry";
|
|
4917
4918
|
var ViewController = class {
|
|
4918
4919
|
constructor(initialViews, options) {
|
|
@@ -4982,7 +4983,7 @@ var ViewController = class {
|
|
|
4982
4983
|
}
|
|
4983
4984
|
if (!this.pendingUpdate.scheduled && !silent) {
|
|
4984
4985
|
this.pendingUpdate.scheduled = true;
|
|
4985
|
-
|
|
4986
|
+
queueMicrotask(() => {
|
|
4986
4987
|
const updates = this.pendingUpdate?.changedBindings;
|
|
4987
4988
|
this.pendingUpdate = void 0;
|
|
4988
4989
|
this.currentView?.update(updates);
|
|
@@ -5541,7 +5542,7 @@ var _Player = class _Player {
|
|
|
5541
5542
|
const result = expressionEvaluator.evaluateAsync(exp);
|
|
5542
5543
|
if (isPromiseLike(result)) {
|
|
5543
5544
|
if (value.await) {
|
|
5544
|
-
|
|
5545
|
+
queueMicrotask2(() => {
|
|
5545
5546
|
result.then((r) => flowController?.transition(String(r))).catch(flowResultDeferred.reject);
|
|
5546
5547
|
});
|
|
5547
5548
|
} else {
|
package/dist/index.mjs
CHANGED
|
@@ -4015,6 +4015,7 @@ var AssetTransformCorePlugin = class {
|
|
|
4015
4015
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/player.ts
|
|
4016
4016
|
import { setIn as setIn7 } from "timm";
|
|
4017
4017
|
import deferred from "p-defer";
|
|
4018
|
+
import queueMicrotask2 from "queue-microtask";
|
|
4018
4019
|
import { SyncHook as SyncHook10, SyncWaterfallHook as SyncWaterfallHook11 } from "tapable-ts";
|
|
4019
4020
|
|
|
4020
4021
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/controllers/flow/flow.ts
|
|
@@ -4912,7 +4913,7 @@ var ValidationController = class {
|
|
|
4912
4913
|
|
|
4913
4914
|
// ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/controllers/view/controller.ts
|
|
4914
4915
|
import { SyncHook as SyncHook8, SyncWaterfallHook as SyncWaterfallHook9 } from "tapable-ts";
|
|
4915
|
-
import
|
|
4916
|
+
import queueMicrotask from "queue-microtask";
|
|
4916
4917
|
import { Registry } from "@player-ui/partial-match-registry";
|
|
4917
4918
|
var ViewController = class {
|
|
4918
4919
|
constructor(initialViews, options) {
|
|
@@ -4982,7 +4983,7 @@ var ViewController = class {
|
|
|
4982
4983
|
}
|
|
4983
4984
|
if (!this.pendingUpdate.scheduled && !silent) {
|
|
4984
4985
|
this.pendingUpdate.scheduled = true;
|
|
4985
|
-
|
|
4986
|
+
queueMicrotask(() => {
|
|
4986
4987
|
const updates = this.pendingUpdate?.changedBindings;
|
|
4987
4988
|
this.pendingUpdate = void 0;
|
|
4988
4989
|
this.currentView?.update(updates);
|
|
@@ -5541,7 +5542,7 @@ var _Player = class _Player {
|
|
|
5541
5542
|
const result = expressionEvaluator.evaluateAsync(exp);
|
|
5542
5543
|
if (isPromiseLike(result)) {
|
|
5543
5544
|
if (value.await) {
|
|
5544
|
-
|
|
5545
|
+
queueMicrotask2(() => {
|
|
5545
5546
|
result.then((r) => flowController?.transition(String(r))).catch(flowResultDeferred.reject);
|
|
5546
5547
|
});
|
|
5547
5548
|
} else {
|