@playcademy/sdk 0.1.16 → 0.1.18
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/README.md +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +0 -3
- package/dist/types.d.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ The SDK automatically monitors network connectivity and provides hooks for games
|
|
|
40
40
|
- **Platform Integration**: Built-in helpers for displaying connection alerts
|
|
41
41
|
- **Zero Config**: Works out of the box, customizable when needed
|
|
42
42
|
|
|
43
|
-
See
|
|
43
|
+
See the SDK Browser documentation for detailed connection monitoring documentation and examples.
|
|
44
44
|
|
|
45
45
|
## Installation
|
|
46
46
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3933,7 +3933,7 @@ declare class PlaycademyClient {
|
|
|
3933
3933
|
* // Later: cleanup() to unregister
|
|
3934
3934
|
* ```
|
|
3935
3935
|
*
|
|
3936
|
-
* @see
|
|
3936
|
+
* @see Connection monitoring documentation in SDK Browser docs for detailed usage examples
|
|
3937
3937
|
* @see {@link ConnectionManager.onDisconnect} for the underlying implementation
|
|
3938
3938
|
*/
|
|
3939
3939
|
onDisconnect(callback: (context: DisconnectContext) => void | Promise<void>): () => void;
|
|
@@ -5095,7 +5095,7 @@ declare enum MessageEvents {
|
|
|
5095
5095
|
* Sent when connection issues are detected or other important events occur.
|
|
5096
5096
|
* Payload:
|
|
5097
5097
|
* - `message`: string
|
|
5098
|
-
* - `options`: { type?: 'info' | 'warning' | 'error', duration?: number }
|
|
5098
|
+
* - `options`: `{ type?: 'info' | 'warning' | 'error', duration?: number }`
|
|
5099
5099
|
*/
|
|
5100
5100
|
DISPLAY_ALERT = "PLAYCADEMY_DISPLAY_ALERT",
|
|
5101
5101
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2858,9 +2858,6 @@ async function init(options) {
|
|
|
2858
2858
|
client["initPayload"] = config;
|
|
2859
2859
|
messaging.listen("PLAYCADEMY_TOKEN_REFRESH" /* TOKEN_REFRESH */, ({ token }) => client.setToken(token));
|
|
2860
2860
|
messaging.send("PLAYCADEMY_READY" /* READY */, undefined);
|
|
2861
|
-
if (import.meta.env?.MODE === "development") {
|
|
2862
|
-
window.PLAYCADEMY_CLIENT = client;
|
|
2863
|
-
}
|
|
2864
2861
|
return client;
|
|
2865
2862
|
}
|
|
2866
2863
|
var init_init = __esm(() => {
|
package/dist/types.d.ts
CHANGED
|
@@ -4381,7 +4381,7 @@ declare enum MessageEvents {
|
|
|
4381
4381
|
* Sent when connection issues are detected or other important events occur.
|
|
4382
4382
|
* Payload:
|
|
4383
4383
|
* - `message`: string
|
|
4384
|
-
* - `options`: { type?: 'info' | 'warning' | 'error', duration?: number }
|
|
4384
|
+
* - `options`: `{ type?: 'info' | 'warning' | 'error', duration?: number }`
|
|
4385
4385
|
*/
|
|
4386
4386
|
DISPLAY_ALERT = "PLAYCADEMY_DISPLAY_ALERT",
|
|
4387
4387
|
/**
|
|
@@ -4608,7 +4608,7 @@ declare class PlaycademyClient {
|
|
|
4608
4608
|
* // Later: cleanup() to unregister
|
|
4609
4609
|
* ```
|
|
4610
4610
|
*
|
|
4611
|
-
* @see
|
|
4611
|
+
* @see Connection monitoring documentation in SDK Browser docs for detailed usage examples
|
|
4612
4612
|
* @see {@link ConnectionManager.onDisconnect} for the underlying implementation
|
|
4613
4613
|
*/
|
|
4614
4614
|
onDisconnect(callback: (context: DisconnectContext) => void | Promise<void>): () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@playcademy/constants": "0.0.1",
|
|
38
38
|
"@playcademy/data": "0.0.1",
|
|
39
39
|
"@playcademy/logger": "0.0.1",
|
|
40
|
-
"@playcademy/sandbox": "0.1.
|
|
40
|
+
"@playcademy/sandbox": "0.1.11",
|
|
41
41
|
"@playcademy/test": "0.0.1",
|
|
42
42
|
"@playcademy/timeback": "0.0.1",
|
|
43
43
|
"@playcademy/utils": "0.0.1",
|
|
44
44
|
"@types/bun": "latest",
|
|
45
|
-
"playcademy": "0.14.
|
|
45
|
+
"playcademy": "0.14.17",
|
|
46
46
|
"rollup": "^4.50.2",
|
|
47
47
|
"rollup-plugin-dts": "^6.2.3",
|
|
48
48
|
"typescript": "^5.7.2"
|