@streamlayer/sdk-web-core 1.6.6 → 1.7.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/lib/index.d.ts +7 -2
- package/lib/index.js +2 -0
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamLayerContext } from '@streamlayer/sdk-web-interfaces';
|
|
1
|
+
import { StreamLayerContext, createMapStore } from '@streamlayer/sdk-web-interfaces';
|
|
2
2
|
export { bypass, storage } from './auth';
|
|
3
3
|
export { store } from './store';
|
|
4
4
|
export { deepLink, type DeepLinkUrlParams, type DeepLinkCallback, type DeepLinkContext, DEEP_LINK_PREFIX, DEEP_LINK_USER_ID, DEEP_LINK_EVENT_ID, DEEP_LINK_EXTERNAL_EVENT_ID, } from './deepLink';
|
|
@@ -15,6 +15,9 @@ declare module '@streamlayer/sdk-web-interfaces' {
|
|
|
15
15
|
disableApp: () => void;
|
|
16
16
|
createEventSession: (providerStreamId: string) => void;
|
|
17
17
|
withAuth: boolean;
|
|
18
|
+
options: ReturnType<typeof createMapStore<{
|
|
19
|
+
friendsTab: 'enabled' | 'disabled' | 'activatedGame';
|
|
20
|
+
}>>;
|
|
18
21
|
}
|
|
19
22
|
interface StreamLayerContext {
|
|
20
23
|
ready: () => void;
|
|
@@ -30,4 +33,6 @@ declare module '@streamlayer/sdk-web-interfaces' {
|
|
|
30
33
|
* Error Handling: Manages errors and logs them.
|
|
31
34
|
* Security: Implements authentication and authorization.
|
|
32
35
|
*/
|
|
33
|
-
export declare const core: (instance: StreamLayerContext, opts:
|
|
36
|
+
export declare const core: (instance: StreamLayerContext, opts: {
|
|
37
|
+
friendsTab: "enabled" | "disabled" | "activatedGame";
|
|
38
|
+
}, done: () => void) => void;
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createMapStore } from '@streamlayer/sdk-web-interfaces';
|
|
1
2
|
import { CoreStatus } from './store/store';
|
|
2
3
|
export { bypass, storage } from './auth';
|
|
3
4
|
export { store } from './store';
|
|
@@ -21,6 +22,7 @@ export const core = (instance, opts, done) => {
|
|
|
21
22
|
const listeners = new Map();
|
|
22
23
|
const listenersCancels = new Map();
|
|
23
24
|
instance.sdk = Object.create(null);
|
|
25
|
+
instance.sdk.options = createMapStore(opts);
|
|
24
26
|
instance.sdk.withAuth = false;
|
|
25
27
|
instance.sdk.onMount = ({ name, clear }, cb) => {
|
|
26
28
|
if (listeners.has(name)) {
|
package/package.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"@nanostores/query": "^0.2.10",
|
|
8
8
|
"@streamlayer/sl-eslib": "^5.130.0",
|
|
9
9
|
"nanostores": "^0.10.3",
|
|
10
|
-
"@streamlayer/sdk-web-api": "^1.6.
|
|
11
|
-
"@streamlayer/sdk-web-
|
|
12
|
-
"@streamlayer/sdk-web-
|
|
13
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
14
|
-
"@streamlayer/sdk-web-types": "^1.8.
|
|
10
|
+
"@streamlayer/sdk-web-api": "^1.6.9",
|
|
11
|
+
"@streamlayer/sdk-web-logger": "^1.0.30",
|
|
12
|
+
"@streamlayer/sdk-web-interfaces": "^1.2.9",
|
|
13
|
+
"@streamlayer/sdk-web-storage": "^1.0.30",
|
|
14
|
+
"@streamlayer/sdk-web-types": "^1.8.3"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"default": "./lib/auth/index.js"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"version": "1.
|
|
43
|
+
"version": "1.7.1",
|
|
44
44
|
"type": "module",
|
|
45
45
|
"main": "./lib/index.js",
|
|
46
46
|
"module": "./lib/index.js",
|