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