@pie-players/pie-section-player 0.3.22 → 0.3.24
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/README.md +4 -0
- package/dist/{dist-C2B1t0Ov.js → chunks/dist-24a90544.js} +1 -1
- package/dist/{dist-Bud4G4lv-DvJKILlA.js → chunks/dist-Bud4G4lv-b2620662.js} +1 -1
- package/dist/{dist-DwP27yIs-gkxodgFn.js → chunks/dist-DwP27yIs-cfd207a3.js} +1 -1
- package/dist/{dist-S3IAfazl.js → chunks/dist-c4148994.js} +1 -1
- package/dist/{player-preload-DHibXasK.js → chunks/player-preload-79b07366.js} +2683 -2120
- package/dist/{tool-annotation-toolbar-CltCGj49.js → chunks/tool-annotation-toolbar-db5bfbec.js} +4 -4
- package/dist/components/shared/player-preload.d.ts +53 -1
- package/dist/components/shared/player-preload.d.ts.map +1 -1
- package/dist/pie-section-player.js +3155 -3122
- package/dist/utils/player-preload.js +1 -1
- package/package.json +10 -10
- package/dist/components/shared/outer-scrollbars.d.ts +0 -6
- package/dist/components/shared/outer-scrollbars.d.ts.map +0 -1
- /package/dist/{defineProperty-CyepwRr5.js → chunks/defineProperty-318b8855.js} +0 -0
- /package/dist/{defineProperty-CyepwRr5-eHUSgEtz.js → chunks/defineProperty-CyepwRr5-3800a70a.js} +0 -0
- /package/dist/{module-COIydQYl-2o-TlgiW.js → chunks/module-c1d68911.js} +0 -0
package/dist/{tool-annotation-toolbar-CltCGj49.js → chunks/tool-annotation-toolbar-db5bfbec.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as b } from "./defineProperty-CyepwRr5-
|
|
1
|
+
import { t as b } from "./defineProperty-CyepwRr5-3800a70a.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
3
|
var bn, yn;
|
|
4
4
|
((bn = (yn = window).__svelte ?? (yn.__svelte = {})).v ?? (bn.v = /* @__PURE__ */ new Set())).add("5");
|
|
@@ -2532,7 +2532,7 @@ var nl = class {
|
|
|
2532
2532
|
backend: "desmos"
|
|
2533
2533
|
}), this.desmosProvider = new (await (async () => {
|
|
2534
2534
|
try {
|
|
2535
|
-
const o = await import("./dist-DwP27yIs-
|
|
2535
|
+
const o = await import("./dist-DwP27yIs-cfd207a3.js");
|
|
2536
2536
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
2537
2537
|
toolId: "calculator",
|
|
2538
2538
|
operation: "desmos-provider-module-import",
|
|
@@ -2813,7 +2813,7 @@ var nl = class {
|
|
|
2813
2813
|
backend: t.serverProvider || t.backend
|
|
2814
2814
|
}), this.ttsProvider = new (await (async () => {
|
|
2815
2815
|
try {
|
|
2816
|
-
const o = await import("./dist-Bud4G4lv-
|
|
2816
|
+
const o = await import("./dist-Bud4G4lv-b2620662.js");
|
|
2817
2817
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
2818
2818
|
toolId: "tts",
|
|
2819
2819
|
operation: "server-provider-module-import",
|
|
@@ -2999,7 +2999,7 @@ var nl = class {
|
|
|
2999
2999
|
...e,
|
|
3000
3000
|
...o
|
|
3001
3001
|
});
|
|
3002
|
-
}, Bo = (t) => t.backend || "browser", er = (t, e) =>
|
|
3002
|
+
}, Bo = (t) => t.backend || "browser", er = (t, e) => e === "polly" || e === "google" ? e : t.serverProvider || t.provider, or = (t, e) => t.transportMode || (e === "custom" ? "custom" : "pie"), gl = (t) => {
|
|
3003
3003
|
const e = Bo(t), o = er(t, e), n = or(t, o);
|
|
3004
3004
|
return {
|
|
3005
3005
|
voice: t.defaultVoice,
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import { BundleType, ItemEntity } from '@pie-players/pie-players-shared';
|
|
1
|
+
import { BundleType, ItemEntity, createPieLogger } from '@pie-players/pie-players-shared';
|
|
2
2
|
export declare const PRELOAD_TIMEOUT_MS = 15000;
|
|
3
|
+
export declare const PRELOAD_RETRY_COUNT = 1;
|
|
4
|
+
export declare const PRELOAD_RETRY_DELAY_MS = 300;
|
|
5
|
+
export type ElementPreloadRetryDetail = {
|
|
6
|
+
componentTag: string;
|
|
7
|
+
stage: string;
|
|
8
|
+
attempt: number;
|
|
9
|
+
maxRetries: number;
|
|
10
|
+
error: string;
|
|
11
|
+
strategy: string;
|
|
12
|
+
bundleType: string | null;
|
|
13
|
+
bundleHost: string;
|
|
14
|
+
renderablesCount: number;
|
|
15
|
+
};
|
|
16
|
+
export type ElementPreloadErrorDetail = {
|
|
17
|
+
componentTag: string;
|
|
18
|
+
stage: string;
|
|
19
|
+
error: string;
|
|
20
|
+
strategy: string;
|
|
21
|
+
bundleType: string | null;
|
|
22
|
+
bundleHost: string;
|
|
23
|
+
renderablesCount: number;
|
|
24
|
+
};
|
|
3
25
|
export declare function getRenderablesSignature(renderables: unknown[]): string;
|
|
4
26
|
export declare function getLoaderView(env: Record<string, unknown>): "author" | "delivery";
|
|
5
27
|
export declare function buildPreloadSignature(args: {
|
|
@@ -11,6 +33,7 @@ export declare function buildPreloadSignature(args: {
|
|
|
11
33
|
bundleHost: string;
|
|
12
34
|
renderablesSignature: string;
|
|
13
35
|
}): string;
|
|
36
|
+
export declare function formatElementLoadError(stage: string, error: unknown): string;
|
|
14
37
|
export declare function preloadPlayerElements(args: {
|
|
15
38
|
strategy: string;
|
|
16
39
|
renderables: ItemEntity[];
|
|
@@ -22,6 +45,33 @@ export declare function preloadPlayerElements(args: {
|
|
|
22
45
|
onTimeout: () => void;
|
|
23
46
|
timeoutMs?: number;
|
|
24
47
|
}): Promise<void>;
|
|
48
|
+
export declare function preloadPlayerElementsWithRetry(args: {
|
|
49
|
+
componentTag: string;
|
|
50
|
+
strategy: string;
|
|
51
|
+
renderables: ItemEntity[];
|
|
52
|
+
iifeBundleType: BundleType | null;
|
|
53
|
+
loaderView: "author" | "delivery";
|
|
54
|
+
esmCdnUrl: string;
|
|
55
|
+
moduleResolution: "url" | "import-map";
|
|
56
|
+
bundleHost: string;
|
|
57
|
+
timeoutMs?: number;
|
|
58
|
+
retryCount?: number;
|
|
59
|
+
retryDelayMs?: number;
|
|
60
|
+
logger: ReturnType<typeof createPieLogger>;
|
|
61
|
+
onRetry?: (detail: ElementPreloadRetryDetail) => void;
|
|
62
|
+
onFinalError?: (detail: ElementPreloadErrorDetail) => void;
|
|
63
|
+
loadOnce?: (args: {
|
|
64
|
+
strategy: string;
|
|
65
|
+
renderables: ItemEntity[];
|
|
66
|
+
iifeBundleType: BundleType | null;
|
|
67
|
+
loaderView: "author" | "delivery";
|
|
68
|
+
esmCdnUrl: string;
|
|
69
|
+
moduleResolution: "url" | "import-map";
|
|
70
|
+
bundleHost: string;
|
|
71
|
+
onTimeout: () => void;
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
}) => Promise<void>;
|
|
74
|
+
}): Promise<void>;
|
|
25
75
|
export type PlayerPreloadState = {
|
|
26
76
|
lastPreloadSignature: string;
|
|
27
77
|
preloadRunToken: number;
|
|
@@ -42,5 +92,7 @@ export declare function orchestratePlayerElementPreload(args: {
|
|
|
42
92
|
iifeBundleHost?: string | null;
|
|
43
93
|
getState: () => PlayerPreloadState;
|
|
44
94
|
setState: (next: Partial<PlayerPreloadState>) => void;
|
|
95
|
+
onPreloadRetry?: (detail: ElementPreloadRetryDetail) => void;
|
|
96
|
+
onPreloadError?: (detail: ElementPreloadErrorDetail) => void;
|
|
45
97
|
}): void;
|
|
46
98
|
//# sourceMappingURL=player-preload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player-preload.d.ts","sourceRoot":"","sources":["../../../src/components/shared/player-preload.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"player-preload.d.ts","sourceRoot":"","sources":["../../../src/components/shared/player-preload.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,UAAU,EAGV,KAAK,UAAU,EACf,eAAe,EAGf,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,mBAAmB,IAA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