@spash/frontlib 0.0.21-beta.2 → 0.0.21-beta.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/main.d.ts +3 -1
- package/dist/main.js +29 -6
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export declare interface DoohContent {
|
|
|
117
117
|
multiplexEvents: SessionEvent[];
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads' | 'bookings';
|
|
120
|
+
declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads' | 'bookings' | 'error';
|
|
121
121
|
|
|
122
122
|
export declare interface Field {
|
|
123
123
|
id: number;
|
|
@@ -639,4 +639,6 @@ export declare const useTheme: () => {
|
|
|
639
639
|
setTheme: (newTheme: string) => void;
|
|
640
640
|
};
|
|
641
641
|
|
|
642
|
+
export declare const useTimeout: () => void;
|
|
643
|
+
|
|
642
644
|
export { }
|
package/dist/main.js
CHANGED
|
@@ -37296,7 +37296,29 @@ const OL = () => {
|
|
|
37296
37296
|
"consolation_final"
|
|
37297
37297
|
].map((i) => ({ id: i, name: n(`commons.groups.${i}`) }));
|
|
37298
37298
|
return [...r, ...s];
|
|
37299
|
-
} })
|
|
37299
|
+
} }), FL = () => {
|
|
37300
|
+
const n = window.setTimeout, e = window.clearTimeout, t = window.setInterval, r = window.clearInterval, s = [], i = [];
|
|
37301
|
+
window.setTimeout = (o, a, l, ...c) => {
|
|
37302
|
+
const u = n(
|
|
37303
|
+
() => {
|
|
37304
|
+
const d = s.findIndex((h) => h.id === u);
|
|
37305
|
+
d !== -1 && s.splice(d, 1), o();
|
|
37306
|
+
},
|
|
37307
|
+
a,
|
|
37308
|
+
...c
|
|
37309
|
+
);
|
|
37310
|
+
return s.push({ id: u, callback: o, delay: a, args: c, data: l }), u;
|
|
37311
|
+
}, window.clearTimeout = (o) => {
|
|
37312
|
+
const a = s.findIndex((l) => l.id === o);
|
|
37313
|
+
return a !== -1 && s.splice(a, 1), e(o);
|
|
37314
|
+
}, window.setInterval = (o, a, l, ...c) => {
|
|
37315
|
+
const u = t(o, a, ...c);
|
|
37316
|
+
return i.push({ id: u, callback: o, delay: a, args: c, data: l }), u;
|
|
37317
|
+
}, window.clearInterval = (o) => {
|
|
37318
|
+
const a = i.findIndex((l) => l.id === o);
|
|
37319
|
+
return a !== -1 && i.splice(a, 1), r(o);
|
|
37320
|
+
}, window.listTimeouts = () => (console.log("Timeouts actifs :"), console.table(s), console.log("Intervals actifs :"), console.table(i), { timeouts: s, intervals: i });
|
|
37321
|
+
};
|
|
37300
37322
|
var pL = /* @__PURE__ */ ((n) => (n.NOT_PLAYED = "not_played", n.PLAYING = "playing", n.PLAYED = "played", n.DELETED = "deleted", n.PROCESSING = "processing", n.PROCESSING_ERROR = "processing_error", n.PROCESSED = "processed", n.EXPORTING = "exporting", n.EXPORTING_ERROR = "exporting_error", n.EXPORTED = "exported", n.EXPORTED_DELETED = "exported_deleted", n.ERROR = "error", n.FAKE = "fake", n.FAKE_DELETED = "fake_deleted", n))(pL || {}), u0 = {}, d0 = {};
|
|
37301
37323
|
(function(n) {
|
|
37302
37324
|
Object.defineProperty(n, "__esModule", {
|
|
@@ -37344,7 +37366,7 @@ var pL = /* @__PURE__ */ ((n) => (n.NOT_PLAYED = "not_played", n.PLAYING = "play
|
|
|
37344
37366
|
})(u0);
|
|
37345
37367
|
let pl = u0;
|
|
37346
37368
|
var vL = (pl.__esModule ? pl : { default: pl }).default;
|
|
37347
|
-
const yL = /* @__PURE__ */ Mg(vL),
|
|
37369
|
+
const yL = /* @__PURE__ */ Mg(vL), ML = yL(function() {
|
|
37348
37370
|
}, {
|
|
37349
37371
|
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
|
|
37350
37372
|
theme: {
|
|
@@ -37475,18 +37497,18 @@ const yL = /* @__PURE__ */ Mg(vL), FL = yL(function() {
|
|
|
37475
37497
|
SpashQrCode: y5,
|
|
37476
37498
|
SpashDisplayCurrentTime: sb,
|
|
37477
37499
|
SpashPoweredBy: S5
|
|
37478
|
-
},
|
|
37500
|
+
}, DL = (n, e) => {
|
|
37479
37501
|
var r;
|
|
37480
37502
|
(r = { ...AL, ...e }.autoImport) != null && r.components && Object.entries({ ...EL }).forEach(([s, i]) => {
|
|
37481
37503
|
n.component(s, i);
|
|
37482
37504
|
}), n.use(Nv), e != null && e.i18n && n.use(mO(e == null ? void 0 : e.i18n));
|
|
37483
37505
|
};
|
|
37484
37506
|
export {
|
|
37485
|
-
|
|
37507
|
+
ML as Plugin,
|
|
37486
37508
|
pL as SessionStatus,
|
|
37487
37509
|
Is as SpashVideoControls,
|
|
37488
37510
|
nt as SpashVideoOptions,
|
|
37489
|
-
|
|
37511
|
+
DL as default,
|
|
37490
37512
|
CL as useAdServer,
|
|
37491
37513
|
TL as useAxios,
|
|
37492
37514
|
kL as useCompetition,
|
|
@@ -37498,5 +37520,6 @@ export {
|
|
|
37498
37520
|
PL as useIdle,
|
|
37499
37521
|
OL as useLuxon,
|
|
37500
37522
|
LL as useSse,
|
|
37501
|
-
lO as useTheme
|
|
37523
|
+
lO as useTheme,
|
|
37524
|
+
FL as useTimeout
|
|
37502
37525
|
};
|