@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energy8platform/shell",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Energy8 branded game shell — one logic core, pluggable html/pixi renderers behind a stable contract.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
package/src/core/index.ts CHANGED
@@ -35,5 +35,6 @@ export type { PopoverPlacement, Rect as PopoverRect } from './popover';
35
35
  export { resolveTheme, SCHEMES, DEFAULT_ACCENT } from './theme';
36
36
  export type { ShellTokens } from './theme';
37
37
  export { createI18n, socialize, normalizeLang } from './i18n';
38
+ export { DISCLAIMER_LINES } from './locales';
38
39
  export type { Lang, I18n, I18nOptions } from './i18n';
39
40
  export { PACKAGE_VERSION } from './version';
@@ -876,6 +876,20 @@ const D = {
876
876
  L5: 'Winnings are settled according to the amount received from the Remote Game Server and not from events within the web browser.',
877
877
  } as const;
878
878
 
879
+ /**
880
+ * The disclaimer body every launch shows, in source English — and the SAME strings that key the
881
+ * translations below. One constant for both on purpose: a host that kept its own copy would drift
882
+ * from these keys by one character and the lookup would miss in silence, leaving a player on any
883
+ * language with English legal text. Certification asks for the opposite ("if multiple languages are
884
+ * supported, the disclaimer is translated and displayed in each language").
885
+ *
886
+ * Brand-free by construction. Stake's own template ends with a seventh line — "TM and © {year}
887
+ * Stake Engine." — and that one belongs to a Stake launch alone: it arrives with the Stake bridge's
888
+ * `INIT.config.disclaimerLines`, which outrank this default, and renders verbatim (see the host's
889
+ * `isBrandLine`). Every other platform gets the same mandated wording without someone else's mark.
890
+ */
891
+ export const DISCLAIMER_LINES: readonly string[] = [D.L1, D.L2, D.L3, D.L4, D.L5];
892
+
879
893
  const DISCLAIMER_LOCALES: Partial<Record<Lang, Record<string, string>>> = {
880
894
  da: {
881
895
  [D.L1]: 'Fejlfunktion annullerer alle gevinster og spil.',
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
2
2
  /** The @energy8platform/shell package version, stamped into the game-info footer. */
3
- export const PACKAGE_VERSION = '0.9.0';
3
+ export const PACKAGE_VERSION = '0.10.0';