@indiegems/gem-web-sdk 7.7.0 → 7.8.1
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/CHANGELOG.md +1 -1
- package/dist/game.d.ts +2 -0
- package/dist/gem-web-sdk.esm.js +2 -2
- package/dist/gem-web-sdk.function.js +1 -1
- package/dist/gem-web-sdk.game.js +2 -2
- package/dist/gem-web-sdk.min.js +2 -2
- package/dist/gem-web-sdk.sdk.js +2 -2
- package/dist/gem-web-sdk.server.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/sdk.d.ts +2 -0
- package/docs/api/api-reference-game.md +38 -1
- package/docs/api/api-reference-server.md +1 -1
- package/docs/api/reference.json +35 -1
- package/docs/changelog.md +1 -1
- package/docs/dedicated-server-flow.md +23 -14
- package/docs/getting-started.md +1 -1
- package/docs/manifest.json +10 -10
- package/docs/server-bundles.md +2 -2
- package/docs/what-a-game-must-do.md +45 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -47,7 +47,7 @@ Upgrading from 7.3.1. Impact: required.
|
|
|
47
47
|
### Must change
|
|
48
48
|
|
|
49
49
|
- The Arcade shows its wallets, Gems, Tickets and the Achievement Score, over your game by default. Call gem.setWalletVisible(false) when gameplay starts and gem.setWalletVisible(true) on your menus. On a screen that sells in one currency, show just that wallet by passing its slug in the only option.
|
|
50
|
-
- On phones the Arcade's Back tab and wallets sit in the frame's top-left corner, and gem.viewport now reports that corner in reserved instead of folding it into the top inset. Keep the corner clear by reading gem.viewport.reserved or the --gem-reserved-tl-width and --gem-reserved-tl-height CSS variables. Put your settings top-right
|
|
50
|
+
- On phones the Arcade's Back tab and wallets sit in the frame's top-left corner, and gem.viewport now reports that corner in reserved instead of folding it into the top inset. Keep the corner clear by reading gem.viewport.reserved or the --gem-reserved-tl-width and --gem-reserved-tl-height CSS variables. Put your settings top-right.
|
|
51
51
|
- GemFunctionError's retryAfterSeconds is now read-only. Code that assigns to it no longer compiles.
|
|
52
52
|
|
|
53
53
|
### Rebuild
|
package/dist/game.d.ts
CHANGED
|
@@ -1674,6 +1674,7 @@ interface Room {
|
|
|
1674
1674
|
readonly gameChannel: string;
|
|
1675
1675
|
readonly region?: string;
|
|
1676
1676
|
readonly clusterTargetId?: string;
|
|
1677
|
+
readonly selfHosted: boolean;
|
|
1677
1678
|
readonly matchId?: string;
|
|
1678
1679
|
readonly version: number;
|
|
1679
1680
|
readonly templateId?: string;
|
|
@@ -2772,6 +2773,7 @@ interface GemOptions {
|
|
|
2772
2773
|
readonly onDeviceSettings?: (settings: DeviceSettings | null) => void;
|
|
2773
2774
|
readonly onViewport?: (viewport: GemViewport) => void;
|
|
2774
2775
|
readonly manageAudio?: boolean;
|
|
2776
|
+
readonly selectableText?: boolean;
|
|
2775
2777
|
readonly onPause?: (paused: boolean) => void;
|
|
2776
2778
|
readonly onWillTerminate?: (notice: GemTerminationNotice) => void;
|
|
2777
2779
|
readonly analytics?: AnalyticsOptions;
|