@streamlayer/sdk-web-interfaces 1.4.11 → 1.4.13

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.
@@ -6,6 +6,10 @@ declare const EventBusActions: {
6
6
  rendered: string;
7
7
  closed: string;
8
8
  };
9
+ app: {
10
+ close: string;
11
+ open: string;
12
+ };
9
13
  invitation: {
10
14
  accepted: string;
11
15
  sent: string;
@@ -40,6 +44,7 @@ export type EventBusActionPayload = {
40
44
  questionId?: string;
41
45
  questionType?: QuestionType;
42
46
  };
47
+ app: unknown;
43
48
  invitation: {
44
49
  from?: InvitationFrom;
45
50
  };
@@ -74,7 +79,7 @@ export declare class EventBus {
74
79
  private name;
75
80
  private listeners;
76
81
  constructor(name?: string);
77
- emit: <K extends EventBusActionsKeys = "notification" | "invitation" | "interactions" | "advertisement" | "poll">(type: K, payload: Omit<EventBusData<K>, "type">) => void;
82
+ emit: <K extends EventBusActionsKeys = "notification" | "app" | "invitation" | "interactions" | "advertisement" | "poll">(type: K, payload: Omit<EventBusData<K>, "type">) => void;
78
83
  listen<T extends EventBusActionsKeys>(listener: (event: EventBusEvent<T>) => void): () => void;
79
84
  off<T extends EventBusActionsKeys>(listener: (event: EventBusEvent<T>) => void): void;
80
85
  destroy: () => void;
@@ -6,6 +6,10 @@ const EventBusActions = {
6
6
  rendered: 'rendered',
7
7
  closed: 'closed',
8
8
  },
9
+ app: {
10
+ close: 'close',
11
+ open: 'open',
12
+ },
9
13
  invitation: {
10
14
  accepted: 'accepted',
11
15
  sent: 'sent',
@@ -13,7 +13,7 @@ export declare class MapStore<StoreInterface extends object, StoreInstance exten
13
13
  /**
14
14
  * create map store from nanostores
15
15
  */
16
- export declare const createMapStore: <Data extends object>(initialData: Data) => NMapStore<Data>;
16
+ export declare const createMapStore: <Data extends object>(initialData: Data) => import("nanostores").PreinitializedMapStore<Data> & object;
17
17
  export type MapStoreListeners<StoreInstance extends NMapStore<StoreInterface>, StoreInterface extends object> = {
18
18
  [T in MapStoreKeys<StoreInstance>]: (value: StoreInterface[T]) => void;
19
19
  };
@@ -15,5 +15,5 @@ export declare class SingleStore<StoreValue, StoreInstance extends WritableAtom<
15
15
  /**
16
16
  * create atom store from nanostores
17
17
  */
18
- export declare const createSingleStore: <T>(initialData: T) => WritableAtom<T>;
18
+ export declare const createSingleStore: <T>(initialData: T) => import("nanostores").PreinitializedWritableAtom<T> & object;
19
19
  export declare const createComputedStore: <Value, T extends WritableAtom = WritableAtom<any>>(store: T, mutator: (value: StoreValue<T>) => Value) => import("nanostores").ReadableAtom<Value>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sdk-web-interfaces",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "peerDependencies": {
19
19
  "@bufbuild/protobuf": "^1.10.0",
20
20
  "@nanostores/query": "^0.2.10",
21
- "nanostores": "^0.10.3",
22
- "@streamlayer/sdk-web-logger": "^1.0.45",
23
- "@streamlayer/sdk-web-types": "^1.10.2"
21
+ "nanostores": "^0.11.4",
22
+ "@streamlayer/sdk-web-logger": "^1.0.47",
23
+ "@streamlayer/sdk-web-types": "^1.10.4"
24
24
  },
25
25
  "devDependencies": {
26
26
  "tslib": "^2.7.0"