@energy8platform/shell 0.9.0 → 0.10.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.
- package/dist/html.cjs.js +15 -1
- package/dist/html.cjs.js.map +1 -1
- package/dist/html.d.ts +17 -3
- package/dist/html.esm.js +15 -2
- package/dist/html.esm.js.map +1 -1
- package/dist/index.cjs.js +15 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.esm.js +15 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/pixi.cjs.js +15 -1
- package/dist/pixi.cjs.js.map +1 -1
- package/dist/pixi.d.ts +17 -3
- package/dist/pixi.esm.js +15 -2
- package/dist/pixi.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/core/index.ts +1 -0
- package/src/core/locales.ts +14 -0
- package/src/core/version.ts +1 -1
package/dist/pixi.d.ts
CHANGED
|
@@ -643,7 +643,7 @@ declare class ShellController extends EventEmitter<ShellEvents> implements Shell
|
|
|
643
643
|
tokens: ShellTokens;
|
|
644
644
|
layout: ShellLayoutMode;
|
|
645
645
|
soundOn: boolean;
|
|
646
|
-
readonly engineVersion = "0.
|
|
646
|
+
readonly engineVersion = "0.10.0";
|
|
647
647
|
readonly actions: ShellActions;
|
|
648
648
|
private renderer;
|
|
649
649
|
private i18n;
|
|
@@ -787,8 +787,22 @@ interface I18n {
|
|
|
787
787
|
}
|
|
788
788
|
declare function createI18n(opts: I18nOptions): I18n;
|
|
789
789
|
|
|
790
|
+
/**
|
|
791
|
+
* The disclaimer body every launch shows, in source English — and the SAME strings that key the
|
|
792
|
+
* translations below. One constant for both on purpose: a host that kept its own copy would drift
|
|
793
|
+
* from these keys by one character and the lookup would miss in silence, leaving a player on any
|
|
794
|
+
* language with English legal text. Certification asks for the opposite ("if multiple languages are
|
|
795
|
+
* supported, the disclaimer is translated and displayed in each language").
|
|
796
|
+
*
|
|
797
|
+
* Brand-free by construction. Stake's own template ends with a seventh line — "TM and © {year}
|
|
798
|
+
* Stake Engine." — and that one belongs to a Stake launch alone: it arrives with the Stake bridge's
|
|
799
|
+
* `INIT.config.disclaimerLines`, which outrank this default, and renders verbatim (see the host's
|
|
800
|
+
* `isBrandLine`). Every other platform gets the same mandated wording without someone else's mark.
|
|
801
|
+
*/
|
|
802
|
+
declare const DISCLAIMER_LINES: readonly string[];
|
|
803
|
+
|
|
790
804
|
/** The @energy8platform/shell package version, stamped into the game-info footer. */
|
|
791
|
-
declare const PACKAGE_VERSION = "0.
|
|
805
|
+
declare const PACKAGE_VERSION = "0.10.0";
|
|
792
806
|
|
|
793
807
|
/** A shell: the renderer-agnostic controller plus the surface facade (safeArea/barHeight/setVisible)
|
|
794
808
|
* an embedding host reads. `createShell`, `createGameShell` and `createPixiShell` all return this. */
|
|
@@ -924,5 +938,5 @@ declare function createPixiShell(config: PixiShellConfig): PixiGameShell;
|
|
|
924
938
|
* Resolves when removed — mirrors `removePixiShell` in the legacy package. */
|
|
925
939
|
declare function removePixiShell(): Promise<void>;
|
|
926
940
|
|
|
927
|
-
export { DEFAULT_ACCENT, DEFAULT_MENU, PACKAGE_VERSION, POPOVER, PixiRenderer, SCHEMES, ShellController, createI18n, createPixiShell, createShell, isPresetId, normalizeLang, placePopover, popoverWidth, rangeBounds, removePixiShell, resolveConfig, resolveMenu, resolveTheme, seedMenuValues, socialize };
|
|
941
|
+
export { DEFAULT_ACCENT, DEFAULT_MENU, DISCLAIMER_LINES, PACKAGE_VERSION, POPOVER, PixiRenderer, SCHEMES, ShellController, createI18n, createPixiShell, createShell, isPresetId, normalizeLang, placePopover, popoverWidth, rangeBounds, removePixiShell, resolveConfig, resolveMenu, resolveTheme, seedMenuValues, socialize };
|
|
928
942
|
export type { AutoplayConfig, AutoplayOptions, BonusCardContext, BonusOption, BonusReadout, CellRef, CreateShellOptions, CurrencyConfig, FreeSpinsState, GameInfoContent, GameInfoSection, GameMode, I18n, I18nOptions, Lang, MenuHost, MenuItem, MenuPresetId, MenuRow, ModalAction, ModalOptions, OverlayHandle, OverlayRequest, PaylineDef, PaytableRow, PixiGameShell, PixiShellConfig, PixiShellSurface, PopoverPlacement, Rect as PopoverRect, ReplayModalOptions, ResolvedShellConfig, SafeArea, ShapeDef, Shell, ShellActions, ShellConfig, ShellEvents, ShellFeatures, ShellHost, ShellLayoutMode, ShellMode, ShellRenderer, ShellState, ShellSurface, ShellTokens, ThemeConfig, VolumeKey, VolumeLevels, WinSection };
|
package/dist/pixi.esm.js
CHANGED
|
@@ -1307,6 +1307,19 @@ const D = {
|
|
|
1307
1307
|
L4: 'The game display is not representative of any physical device and is for illustrative purposes only.',
|
|
1308
1308
|
L5: 'Winnings are settled according to the amount received from the Remote Game Server and not from events within the web browser.',
|
|
1309
1309
|
};
|
|
1310
|
+
/**
|
|
1311
|
+
* The disclaimer body every launch shows, in source English — and the SAME strings that key the
|
|
1312
|
+
* translations below. One constant for both on purpose: a host that kept its own copy would drift
|
|
1313
|
+
* from these keys by one character and the lookup would miss in silence, leaving a player on any
|
|
1314
|
+
* language with English legal text. Certification asks for the opposite ("if multiple languages are
|
|
1315
|
+
* supported, the disclaimer is translated and displayed in each language").
|
|
1316
|
+
*
|
|
1317
|
+
* Brand-free by construction. Stake's own template ends with a seventh line — "TM and © {year}
|
|
1318
|
+
* Stake Engine." — and that one belongs to a Stake launch alone: it arrives with the Stake bridge's
|
|
1319
|
+
* `INIT.config.disclaimerLines`, which outrank this default, and renders verbatim (see the host's
|
|
1320
|
+
* `isBrandLine`). Every other platform gets the same mandated wording without someone else's mark.
|
|
1321
|
+
*/
|
|
1322
|
+
const DISCLAIMER_LINES = [D.L1, D.L2, D.L3, D.L4, D.L5];
|
|
1310
1323
|
const DISCLAIMER_LOCALES = {
|
|
1311
1324
|
da: {
|
|
1312
1325
|
[D.L1]: 'Fejlfunktion annullerer alle gevinster og spil.',
|
|
@@ -1724,7 +1737,7 @@ function keyboardCapable(win = typeof window === 'undefined' ? undefined : windo
|
|
|
1724
1737
|
|
|
1725
1738
|
// AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
|
|
1726
1739
|
/** The @energy8platform/shell package version, stamped into the game-info footer. */
|
|
1727
|
-
const PACKAGE_VERSION = '0.
|
|
1740
|
+
const PACKAGE_VERSION = '0.10.0';
|
|
1728
1741
|
|
|
1729
1742
|
/** Apply defaults to the raw config (the mount target lives on the renderer, not here). */
|
|
1730
1743
|
function resolveConfig(config) {
|
|
@@ -7183,5 +7196,5 @@ function removePixiShell() {
|
|
|
7183
7196
|
return shell.destroy();
|
|
7184
7197
|
}
|
|
7185
7198
|
|
|
7186
|
-
export { DEFAULT_ACCENT, DEFAULT_MENU, PACKAGE_VERSION, POPOVER, PixiRenderer, SCHEMES, ShellController, createI18n, createPixiShell, createShell, isPresetId, normalizeLang, placePopover, popoverWidth, rangeBounds, removePixiShell, resolveConfig, resolveMenu, resolveTheme, seedMenuValues, socialize };
|
|
7199
|
+
export { DEFAULT_ACCENT, DEFAULT_MENU, DISCLAIMER_LINES, PACKAGE_VERSION, POPOVER, PixiRenderer, SCHEMES, ShellController, createI18n, createPixiShell, createShell, isPresetId, normalizeLang, placePopover, popoverWidth, rangeBounds, removePixiShell, resolveConfig, resolveMenu, resolveTheme, seedMenuValues, socialize };
|
|
7187
7200
|
//# sourceMappingURL=pixi.esm.js.map
|