@streamlayer/react 0.8.4 → 0.9.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.
- package/lib/cjs/index.css +1 -98
- package/lib/cjs/index.js +534 -28340
- package/lib/esm/index.css +1 -98
- package/lib/esm/index.js +534 -28337
- package/lib/index.d.ts +2 -2
- package/package.json +15 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ interface StreamLayerSDK {
|
|
|
8
8
|
type StreamLayerPlugin = (instance: StreamLayerContext, opts: unknown, done: Function) => void
|
|
9
9
|
type StreamLayerProps = { sdkKey: string; plugins?: Set<StreamLayerPlugin>; production?: boolean }
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export declare const StreamLayerProvider: (props: StreamLayerProps & { children: React.ReactNode }) => JSX.Element
|
|
12
|
+
export declare const StreamLayerSDKReact: () => JSX.Element
|
|
13
13
|
export declare function useStreamLayerApp(
|
|
14
14
|
sdkKey: string,
|
|
15
15
|
plugins?: Set<StreamLayerPlugin>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Renat Berezovsky (gh:BrRenat)",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
"lib/",
|
|
17
17
|
"package.json"
|
|
18
18
|
],
|
|
19
|
+
"size-limit": [
|
|
20
|
+
{
|
|
21
|
+
"path": "lib/esm/index.js",
|
|
22
|
+
"import": "*",
|
|
23
|
+
"limit": "1000 kB"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
19
26
|
"peerDependencies": {
|
|
20
27
|
"@emotion/react": "11.11.1",
|
|
21
28
|
"@emotion/styled": "11.11.0",
|
|
@@ -32,6 +39,9 @@
|
|
|
32
39
|
"@nanostores/react": "^0.7.1",
|
|
33
40
|
"@nrwl/esbuild": "^16.10.0",
|
|
34
41
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
42
|
+
"@size-limit/esbuild": "^9.0.0",
|
|
43
|
+
"@size-limit/esbuild-why": "^9.0.0",
|
|
44
|
+
"@size-limit/file": "^9.0.0",
|
|
35
45
|
"@streamlayer/react-ui": "*",
|
|
36
46
|
"@streamlayer/sdk-web": "*",
|
|
37
47
|
"@streamlayer/sdk-web-core": "*",
|
|
@@ -50,6 +60,10 @@
|
|
|
50
60
|
"react-dom": "18.2.0",
|
|
51
61
|
"react-refresh": "^0.14.0",
|
|
52
62
|
"react-router-dom": "6.16.0",
|
|
63
|
+
"size-limit": "^9.0.0",
|
|
53
64
|
"url-loader": "^4.1.1"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"why": "size-limit --why"
|
|
54
68
|
}
|
|
55
69
|
}
|