@indiegems/gem-web-sdk 14.0.1 → 14.0.3
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 +12 -0
- package/README.md +2 -2
- package/brand/ticket-hero-128.png +0 -0
- package/brand/ticket-hero-256.png +0 -0
- package/brand/ticket-hero-384.png +0 -0
- package/brand/ticket-hero-512.png +0 -0
- package/brand/ticket-hero-768.png +0 -0
- package/brand/ticket-icon-20-1.5x.png +0 -0
- package/brand/ticket-icon-20-1x.png +0 -0
- package/brand/ticket-icon-20-2x.png +0 -0
- package/brand/ticket-icon-20-3x.png +0 -0
- package/brand/ticket-icon-32-1.5x.png +0 -0
- package/brand/ticket-icon-32-1x.png +0 -0
- package/brand/ticket-icon-32-2x.png +0 -0
- package/brand/ticket-icon-32-3x.png +0 -0
- package/dist/game.d.ts +8 -1
- package/dist/gem-web-sdk.esm.js +1 -1
- package/dist/gem-web-sdk.function.js +3 -3
- package/dist/gem-web-sdk.game.js +3 -3
- 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/sdk.d.ts +8 -1
- package/docs/achievements.md +2 -2
- package/docs/api/api-reference-function.md +3 -3
- package/docs/api/api-reference-game.md +30 -22
- package/docs/api/api-reference-server.md +1 -1
- package/docs/api/reference.json +15 -15
- package/docs/arcade-avatars.md +3 -3
- package/docs/arcade-economy.md +37 -36
- package/docs/brand-art.md +31 -30
- package/docs/changelog.md +12 -0
- package/docs/daily-challenges.md +1 -1
- package/docs/game-economy-tutorial.md +14 -14
- package/docs/getting-started.md +1 -1
- package/docs/inventory-and-catalogs.md +29 -29
- package/docs/manifest.json +34 -34
- package/docs/platform-rules.md +2 -2
- package/docs/rewarded-ads.md +1 -1
- package/docs/rooms-and-matches.md +18 -0
- package/docs/saving-player-progress.md +1 -1
- package/docs/server-bundles.md +2 -2
- package/docs/serverless-functions.md +2 -2
- package/docs/trading-and-gifting.md +1 -1
- package/docs/what-a-game-must-do.md +10 -10
- package/package.json +1 -1
- package/schema/bridge.v1.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,18 @@ Its entries are grouped under up to five headings:
|
|
|
16
16
|
- **Rebuild**: a type changed. Recompile against the new version; code that compiles today keeps compiling unless the entry says otherwise.
|
|
17
17
|
- **New capability**: something a game can now do. Nothing changes unless you use it.
|
|
18
18
|
|
|
19
|
+
## 14.0.3
|
|
20
|
+
|
|
21
|
+
Upgrading from 14.0.2. Impact: none.
|
|
22
|
+
|
|
23
|
+
Nothing in this release asks anything of a game.
|
|
24
|
+
|
|
25
|
+
## 14.0.2
|
|
26
|
+
|
|
27
|
+
Upgrading from 14.0.1. Impact: none.
|
|
28
|
+
|
|
29
|
+
Nothing in this release asks anything of a game.
|
|
30
|
+
|
|
19
31
|
## 14.0.1
|
|
20
32
|
|
|
21
33
|
Upgrading from 14.0.0. Impact: none.
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Read them here rather than guessing from the type declarations, which carry sign
|
|
|
30
30
|
| vibrating the player's device, the iPhone included | [`docs/vibration.md`](docs/vibration.md) |
|
|
31
31
|
| leaderboards | [`docs/leaderboards.md`](docs/leaderboards.md) |
|
|
32
32
|
| currencies, items, shops and loot | [`docs/inventory-and-catalogs.md`](docs/inventory-and-catalogs.md), [`docs/game-economy-tutorial.md`](docs/game-economy-tutorial.md), [`docs/trading-and-gifting.md`](docs/trading-and-gifting.md) |
|
|
33
|
-
| Gems,
|
|
33
|
+
| Gems, Coins and achievements | [`docs/arcade-economy.md`](docs/arcade-economy.md), [`docs/achievements.md`](docs/achievements.md), [`docs/brand-art.md`](docs/brand-art.md) |
|
|
34
34
|
| what to signal at every break in play — level complete, game over, back to menu | [`docs/platform-moments.md`](docs/platform-moments.md) |
|
|
35
35
|
| daily challenges, async opponents, friends | [`docs/daily-challenges.md`](docs/daily-challenges.md), [`docs/async-opponents.md`](docs/async-opponents.md), [`docs/friends.md`](docs/friends.md) |
|
|
36
36
|
| a button the player presses for a revive or an extra try — rewarded ads | [`docs/rewarded-ads.md`](docs/rewarded-ads.md) |
|
|
@@ -52,7 +52,7 @@ Every guide is one Markdown file, so a search over `docs/` finds the page that c
|
|
|
52
52
|
| `@indiegems/gem-web-sdk/game`, `@indiegems/gem-web-sdk/server` | The browser half and the server half on their own, for a build that wants only one. |
|
|
53
53
|
| `@indiegems/gem-web-sdk/function` | What a serverless function written in JavaScript imports. JavaScript functions are disabled for now, due to performance issues: a new one cannot be uploaded, and one already published keeps running. A function's build bundles it, and the starter's build resolves `/sdk` and `/game` to it as well. |
|
|
54
54
|
| `@indiegems/gem-web-sdk/schema` | The wire schema between a game and the Arcade page that hosts it. |
|
|
55
|
-
| `@indiegems/gem-web-sdk/brand/*` | The platform's Gems,
|
|
55
|
+
| `@indiegems/gem-web-sdk/brand/*` | The platform's Gems, Coins and trophy art — see [`docs/brand-art.md`](docs/brand-art.md). |
|
|
56
56
|
| `gem-sdk-stamp <build-directory>` | Run after your bundler: records which SDK version a build carries, which a published web build has to say. |
|
|
57
57
|
| `docs/` | The guides and the API reference. Not imported by anything, so none of it reaches a player's download. |
|
|
58
58
|
| `docs/api/reference.json` | The API reference as data: every exported symbol, its signature and its documentation. |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/game.d.ts
CHANGED
|
@@ -148,6 +148,12 @@ type AffixSelection = {
|
|
|
148
148
|
"pool": AffixPoolRef;
|
|
149
149
|
"respect_groups"?: boolean;
|
|
150
150
|
};
|
|
151
|
+
type AnalyticsFunnelFilteredStep = {
|
|
152
|
+
"event": string;
|
|
153
|
+
"where": Record<string, unknown>;
|
|
154
|
+
};
|
|
155
|
+
type AnalyticsFunnelKind = "funnel" | "ladder";
|
|
156
|
+
type AnalyticsFunnelStepSpec = string | AnalyticsFunnelFilteredStep;
|
|
151
157
|
type BackfillPolicy = "fill_existing_first" | "prefer_new_match";
|
|
152
158
|
type BackfillSettings = {
|
|
153
159
|
"enabled": boolean;
|
|
@@ -401,7 +407,8 @@ type SnapshotAnalyticsEvent = {
|
|
|
401
407
|
};
|
|
402
408
|
type SnapshotAnalyticsFunnel = {
|
|
403
409
|
"id": string;
|
|
404
|
-
"
|
|
410
|
+
"kind"?: AnalyticsFunnelKind;
|
|
411
|
+
"steps": AnalyticsFunnelStepSpec[];
|
|
405
412
|
};
|
|
406
413
|
type SnapshotAsyncOpponentType = {
|
|
407
414
|
"display_name"?: string | null;
|