@streamlayer/react 0.18.6 → 0.18.7
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.js +11 -11
- package/lib/es/index.js +2231 -2165
- package/lib/index.d.ts +34 -0
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -236,6 +236,27 @@ declare module "packages/sdk-web-notifications/src/queue/index" {
|
|
|
236
236
|
closeNotification: (notificationId: string) => void;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
+
declare module "packages/sdk-web-storage/src/index" {
|
|
240
|
+
export class Storage {
|
|
241
|
+
private delimiter;
|
|
242
|
+
private prefix;
|
|
243
|
+
constructor(prefix?: string);
|
|
244
|
+
clear: () => void;
|
|
245
|
+
protected generateKey: (keyParts: string[]) => string;
|
|
246
|
+
protected write: (keyParts_0: string, keyParts_1: string, ...keyParts_2: string[]) => void;
|
|
247
|
+
protected read: (...keyParts: string[]) => string | undefined;
|
|
248
|
+
protected remove: (...keyParts: string[]) => void;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
declare module "packages/sdk-web-notifications/src/storage" {
|
|
252
|
+
import { Storage } from "packages/sdk-web-storage/src/index";
|
|
253
|
+
export class NotificationStorage extends Storage {
|
|
254
|
+
constructor();
|
|
255
|
+
setOpened: (notificationId: string) => void;
|
|
256
|
+
isOpened: (notificationId: string) => string | undefined;
|
|
257
|
+
clearNotification: () => void;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
239
260
|
declare module "packages/sdk-web-notifications/src/notifications" {
|
|
240
261
|
import { QuestionImages, ImagePosition } from "packages/sdk-web-types/src/index";
|
|
241
262
|
import { NotificationsQueue, NotificationsQueueOptions } from "packages/sdk-web-notifications/src/queue/index";
|
|
@@ -272,6 +293,7 @@ declare module "packages/sdk-web-notifications/src/notifications" {
|
|
|
272
293
|
*/
|
|
273
294
|
export class Notifications {
|
|
274
295
|
queue: NotificationsQueue;
|
|
296
|
+
private storage;
|
|
275
297
|
constructor(options?: Partial<NotificationsQueueOptions>);
|
|
276
298
|
add: (notification: Notification) => void;
|
|
277
299
|
close: (notificationId: string) => void;
|
|
@@ -578,6 +600,18 @@ declare module "packages/sdk-web-api/src/index" {
|
|
|
578
600
|
host: string;
|
|
579
601
|
}, done: () => void) => void;
|
|
580
602
|
}
|
|
603
|
+
declare module "packages/sdk-web-core/src/storage" {
|
|
604
|
+
import { Storage } from "packages/sdk-web-storage/src/index";
|
|
605
|
+
export class UserStorage extends Storage {
|
|
606
|
+
constructor();
|
|
607
|
+
setSchema: (value: string) => void;
|
|
608
|
+
getSchema: () => string | undefined;
|
|
609
|
+
setToken: (value: string) => void;
|
|
610
|
+
getToken: () => string | undefined;
|
|
611
|
+
removeToken: () => void;
|
|
612
|
+
clearNotification: () => void;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
581
615
|
declare module "packages/sdk-web-core/src/store/store" {
|
|
582
616
|
import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from "packages/sdk-web-types/src/index";
|
|
583
617
|
import { AbstractStore, SingleStore, ApiStore } from "packages/sdk-web-interfaces/src/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "StreamLayer, Inc (https://streamlayer.io)",
|
|
6
6
|
"maintainers": [
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"size-limit": "*",
|
|
75
75
|
"url-loader": "^4.1.1",
|
|
76
76
|
"vite-plugin-dts": "^3.6.0",
|
|
77
|
-
"@streamlayer/react-ui": "^0.
|
|
78
|
-
"@streamlayer/sdk-web": "^0.
|
|
79
|
-
"@streamlayer/sdk-web
|
|
80
|
-
"@streamlayer/sdk-web-features": "^0.6.
|
|
77
|
+
"@streamlayer/react-ui": "^0.21.0",
|
|
78
|
+
"@streamlayer/sdk-web-core": "^0.8.0",
|
|
79
|
+
"@streamlayer/sdk-web": "^0.23.1",
|
|
80
|
+
"@streamlayer/sdk-web-features": "^0.6.1"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"size-limit": "size-limit"
|