@energy8platform/game-engine 0.21.0 → 0.23.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.
Files changed (65) hide show
  1. package/dist/host.d.ts +3 -5
  2. package/dist/index.cjs.js +0 -2532
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +3 -1020
  5. package/dist/index.esm.js +2 -2522
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/slot.cjs.js +0 -30
  8. package/dist/slot.cjs.js.map +1 -1
  9. package/dist/slot.d.ts +2 -25
  10. package/dist/slot.esm.js +1 -30
  11. package/dist/slot.esm.js.map +1 -1
  12. package/dist/vite.cjs.js +0 -5
  13. package/dist/vite.cjs.js.map +1 -1
  14. package/dist/vite.esm.js +0 -5
  15. package/dist/vite.esm.js.map +1 -1
  16. package/package.json +4 -37
  17. package/src/host/index.ts +0 -1
  18. package/src/host/types.ts +0 -3
  19. package/src/index.ts +0 -28
  20. package/src/slot/index.ts +0 -2
  21. package/src/vite/index.ts +0 -5
  22. package/dist/react-jsx.cjs.js +0 -3
  23. package/dist/react-jsx.cjs.js.map +0 -1
  24. package/dist/react-jsx.d.ts +0 -602
  25. package/dist/react-jsx.esm.js +0 -2
  26. package/dist/react-jsx.esm.js.map +0 -1
  27. package/dist/react.cjs.js +0 -3802
  28. package/dist/react.cjs.js.map +0 -1
  29. package/dist/react.d.ts +0 -1467
  30. package/dist/react.esm.js +0 -3786
  31. package/dist/react.esm.js.map +0 -1
  32. package/dist/ui.cjs.js +0 -3014
  33. package/dist/ui.cjs.js.map +0 -1
  34. package/dist/ui.d.ts +0 -1116
  35. package/dist/ui.esm.js +0 -2998
  36. package/dist/ui.esm.js.map +0 -1
  37. package/src/react/EngineContext.ts +0 -26
  38. package/src/react/ReactScene.ts +0 -88
  39. package/src/react/applyProps.ts +0 -271
  40. package/src/react/catalogue.ts +0 -17
  41. package/src/react/createPixiRoot.ts +0 -31
  42. package/src/react/extendAll.ts +0 -74
  43. package/src/react/hooks.ts +0 -46
  44. package/src/react/index.ts +0 -29
  45. package/src/react/jsx-runtime.ts +0 -346
  46. package/src/react/reconciler.ts +0 -338
  47. package/src/slot/freeSpins/FreeSpinsSession.ts +0 -40
  48. package/src/state/StateMachine.ts +0 -231
  49. package/src/state/index.ts +0 -1
  50. package/src/ui/BalanceDisplay.ts +0 -159
  51. package/src/ui/Button.ts +0 -304
  52. package/src/ui/FlexContainer.ts +0 -775
  53. package/src/ui/Label.ts +0 -124
  54. package/src/ui/LabelValue.ts +0 -122
  55. package/src/ui/Layout.ts +0 -291
  56. package/src/ui/Modal.ts +0 -170
  57. package/src/ui/Panel.ts +0 -204
  58. package/src/ui/ProgressBar.ts +0 -170
  59. package/src/ui/ScrollContainer.ts +0 -478
  60. package/src/ui/Slider.ts +0 -241
  61. package/src/ui/Toast.ts +0 -150
  62. package/src/ui/Toggle.ts +0 -201
  63. package/src/ui/WinDisplay.ts +0 -145
  64. package/src/ui/index.ts +0 -33
  65. package/src/ui/view.ts +0 -28
package/dist/vite.esm.js CHANGED
@@ -61,17 +61,12 @@ function defineGameConfig(config = {}) {
61
61
  resolve: {
62
62
  dedupe: [
63
63
  'pixi.js',
64
- 'react',
65
- 'react-dom',
66
- 'react-reconciler',
67
64
  ],
68
65
  ...userVite.resolve,
69
66
  },
70
67
  optimizeDeps: {
71
68
  include: [
72
69
  'pixi.js',
73
- 'react',
74
- 'react-dom',
75
70
  ],
76
71
  exclude: [
77
72
  'fengari',
@@ -1 +1 @@
1
- {"version":3,"file":"vite.esm.js","sources":["../src/vite/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAuBA;AAEA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;AACG,SAAU,gBAAgB,CAAC,MAAA,GAAqB,EAAE,EAAA;IACtD,MAAM,OAAO,GAAa,EAAE;AAE5B,IAAA,IAAI,MAAM,CAAC,SAAS,EAAE;AACpB,QAAA,MAAM,UAAU,GAAG,MAAM,CAAC,eA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AACZ,YAAA,OAAO,EAAE;gBACP,SAAS;AACV,aAAA;AACD,YAAA,OAAO,EAAE;gBACP,SAAS;AACV,aAAA;AACD,YAAA,cAAc,EAAE;AACd,gBAAA,MAAM,EAAE,QAAQ;AACjB,aAAA;YACD,GAAG,QAAQ,CAAC,YAAY;AACzB,SAAA;KACF;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energy8platform/game-engine",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Universal casino game engine built on PixiJS v8 and @energy8platform/game-sdk",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
@@ -27,11 +27,6 @@
27
27
  "require": "./dist/audio.cjs.js",
28
28
  "types": "./dist/audio.d.ts"
29
29
  },
30
- "./ui": {
31
- "import": "./dist/ui.esm.js",
32
- "require": "./dist/ui.cjs.js",
33
- "types": "./dist/ui.d.ts"
34
- },
35
30
  "./animation": {
36
31
  "import": "./dist/animation.esm.js",
37
32
  "require": "./dist/animation.cjs.js",
@@ -52,16 +47,6 @@
52
47
  "require": "./dist/vite.cjs.js",
53
48
  "types": "./dist/vite.d.ts"
54
49
  },
55
- "./react": {
56
- "import": "./dist/react.esm.js",
57
- "require": "./dist/react.cjs.js",
58
- "types": "./dist/react.d.ts"
59
- },
60
- "./react-jsx": {
61
- "import": "./dist/react-jsx.esm.js",
62
- "require": "./dist/react-jsx.cjs.js",
63
- "types": "./dist/react-jsx.d.ts"
64
- },
65
50
  "./lua": {
66
51
  "import": "./dist/lua.esm.js",
67
52
  "require": "./dist/lua.cjs.js",
@@ -102,12 +87,9 @@
102
87
  "@energy8platform/pixi-shell": "*"
103
88
  },
104
89
  "peerDependencies": {
105
- "@energy8platform/game-sdk": "^2.7.0",
90
+ "@energy8platform/game-sdk": "^2.8.0",
106
91
  "@energy8platform/stake-bridge": ">=0.2.1",
107
- "pixi.js": "^8.16.0",
108
- "react": ">=18.0.0",
109
- "react-dom": ">=18.0.0",
110
- "react-reconciler": ">=0.29.0"
92
+ "pixi.js": "^8.16.0"
111
93
  },
112
94
  "peerDependenciesMeta": {
113
95
  "@energy8platform/stake-bridge": {
@@ -118,35 +100,20 @@
118
100
  },
119
101
  "@pixi/sound": {
120
102
  "optional": true
121
- },
122
- "react": {
123
- "optional": true
124
- },
125
- "react-dom": {
126
- "optional": true
127
- },
128
- "react-reconciler": {
129
- "optional": true
130
103
  }
131
104
  },
132
105
  "devDependencies": {
133
- "@energy8platform/game-sdk": "^2.7.0",
106
+ "@energy8platform/game-sdk": "^2.8.0",
134
107
  "@energy8platform/stake-bridge": "*",
135
108
  "@esotericsoftware/spine-pixi-v8": "~4.2.0",
136
109
  "@pixi/sound": "^6.0.0",
137
110
  "@rollup/plugin-typescript": "^12.1.0",
138
111
  "@types/node": "^25.6.0",
139
- "@types/react": "^19.0.0",
140
- "@types/react-dom": "^19.0.0",
141
- "@types/react-reconciler": "^0.31.0",
142
112
  "@typescript-eslint/eslint-plugin": "^8.0.0",
143
113
  "@typescript-eslint/parser": "^8.0.0",
144
114
  "eslint": "^9.0.0",
145
115
  "pixi.js": "^8.16.0",
146
116
  "prettier": "^3.4.0",
147
- "react": "^19.0.0",
148
- "react-dom": "^19.0.0",
149
- "react-reconciler": "^0.31.0",
150
117
  "rollup": "^4.24.0",
151
118
  "rollup-plugin-dts": "^6.1.0",
152
119
  "tslib": "^2.8.0",
package/src/host/index.ts CHANGED
@@ -6,7 +6,6 @@ export type {
6
6
  StakeIntegration,
7
7
  SceneRegistration,
8
8
  SceneNavData,
9
- SceneEntry,
10
9
  } from './types';
11
10
  export { buildShellConfig, stakeForAction } from './shellConfig';
12
11
  export type { SlotShellOptions } from './shellConfig';
package/src/host/types.ts CHANGED
@@ -25,9 +25,6 @@ export interface SceneRegistration {
25
25
  skipOnReplay?: boolean;
26
26
  }
27
27
 
28
- /** @deprecated alias kept for one release — use {@link SceneRegistration}. */
29
- export type SceneEntry = SceneRegistration;
30
-
31
28
  /** Navigation injected into the start data of EVERY scene the host registers.
32
29
  * Any scene (intro, game, …) reads it from its `onEnter(data)` to navigate. */
33
30
  export interface SceneNavData {
package/src/index.ts CHANGED
@@ -53,9 +53,6 @@ export {
53
53
  // ─── Viewport ────────────────────────────────────────────
54
54
  export { ViewportManager } from './viewport/ViewportManager';
55
55
 
56
- // ─── State Machine ───────────────────────────────────────
57
- export { StateMachine } from './state/StateMachine';
58
-
59
56
  // ─── Animation ───────────────────────────────────────────
60
57
  export { Tween } from './animation/Tween';
61
58
  export { Timeline } from './animation/Timeline';
@@ -67,31 +64,6 @@ export type { SpriteAnimationConfig } from './animation/SpriteAnimation';
67
64
  // ─── Input ───────────────────────────────────────────────
68
65
  export { InputManager } from './input/InputManager';
69
66
 
70
- // ─── UI ──────────────────────────────────────────────────
71
- // UI components are available from '@energy8platform/game-engine/ui' sub-path.
72
- export { FlexContainer } from './ui/FlexContainer';
73
- export type { FlexContainerConfig, FlexDirection, JustifyContent, AlignItems, FlexItemConfig } from './ui/FlexContainer';
74
- export { Button } from './ui/Button';
75
- export type { ButtonConfig, ButtonState } from './ui/Button';
76
- export { ProgressBar } from './ui/ProgressBar';
77
- export type { ProgressBarConfig } from './ui/ProgressBar';
78
- export { Label } from './ui/Label';
79
- export type { LabelConfig } from './ui/Label';
80
- export { Panel } from './ui/Panel';
81
- export type { PanelConfig } from './ui/Panel';
82
- export { BalanceDisplay } from './ui/BalanceDisplay';
83
- export type { BalanceDisplayConfig } from './ui/BalanceDisplay';
84
- export { WinDisplay } from './ui/WinDisplay';
85
- export type { WinDisplayConfig } from './ui/WinDisplay';
86
- export { Modal } from './ui/Modal';
87
- export type { ModalConfig } from './ui/Modal';
88
- export { Toast } from './ui/Toast';
89
- export type { ToastConfig, ToastType } from './ui/Toast';
90
- export { Layout } from './ui/Layout';
91
- export type { LayoutConfig, LayoutDirection, LayoutAlignment, LayoutAnchor } from './ui/Layout';
92
- export { ScrollContainer } from './ui/ScrollContainer';
93
- export type { ScrollContainerConfig, ScrollDirection } from './ui/ScrollContainer';
94
-
95
67
  // ─── Loading ─────────────────────────────────────────────
96
68
  export { LoadingScene } from './loading/LoadingScene';
97
69
 
package/src/slot/index.ts CHANGED
@@ -76,7 +76,5 @@ export { valueAt, CountUpDisplay } from './overlay/CountUpDisplay';
76
76
  export type { CountUpConfig } from './overlay/CountUpDisplay';
77
77
  export { BigWinOverlay } from './overlay/BigWinOverlay';
78
78
  export type { BigWinOverlayConfig } from './overlay/BigWinOverlay';
79
- export { FreeSpinsSession } from './freeSpins/FreeSpinsSession';
80
- export type { FreeSpinsSessionConfig } from './freeSpins/FreeSpinsSession';
81
79
  export { MultiplierAccumulator } from './multiplier/MultiplierAccumulator';
82
80
  export type { CarryPolicy } from './multiplier/MultiplierAccumulator';
package/src/vite/index.ts CHANGED
@@ -89,9 +89,6 @@ export function defineGameConfig(config: GameConfig = {}): UserConfig {
89
89
  resolve: {
90
90
  dedupe: [
91
91
  'pixi.js',
92
- 'react',
93
- 'react-dom',
94
- 'react-reconciler',
95
92
  ],
96
93
  ...userVite.resolve,
97
94
  },
@@ -99,8 +96,6 @@ export function defineGameConfig(config: GameConfig = {}): UserConfig {
99
96
  optimizeDeps: {
100
97
  include: [
101
98
  'pixi.js',
102
- 'react',
103
- 'react-dom',
104
99
  ],
105
100
  exclude: [
106
101
  'fengari',
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=react-jsx.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-jsx.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}