buzzcasting-storage 2.12.9 → 2.14.2
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/LICENSE +0 -0
- package/README.md +2 -2
- package/dist/buzzcasting-storage.d.ts +11 -6
- package/dist/buzzcasting-storage.esm.js +2890 -2888
- package/package.json +15 -17
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Currently supported are: Local Storage, Session Storage, IDB Keyval, Dexie, Wind
|
|
|
20
20
|
|
|
21
21
|
Example call:
|
|
22
22
|
|
|
23
|
-
```
|
|
23
|
+
```ts
|
|
24
24
|
import BuzzcastingStorageManager, {
|
|
25
25
|
IMessages,
|
|
26
26
|
IQuery,
|
|
@@ -54,7 +54,7 @@ This will initiate a call to the buzzcasting backoffice to retrieve results
|
|
|
54
54
|
|
|
55
55
|
The Storage Manager will carry out the API call for the subscriber, and send out a BroadcastChannel on `app` to inform the subcriber that it can retrieve new data. The broadcast channel facilitates its incorporation in for example a Web Worker.
|
|
56
56
|
|
|
57
|
-
```
|
|
57
|
+
```ts
|
|
58
58
|
const broadcastChannel = new BroadcastChannel('my-subdomain')
|
|
59
59
|
|
|
60
60
|
broadcastChannel.onmessage = (messageEvent: MessageEvent) => {
|
|
@@ -6,7 +6,8 @@ export declare enum API {
|
|
|
6
6
|
SERIES = "series",
|
|
7
7
|
TOPICS = "topics",
|
|
8
8
|
WIDGET = "widget",
|
|
9
|
-
WIDGETS = "widgets"
|
|
9
|
+
WIDGETS = "widgets",
|
|
10
|
+
SLIDE = "slide"
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export declare type ApiData = ISeries & IMessages & ICloud;
|
|
@@ -30,6 +31,8 @@ export declare class BuzzcastingStorageManager {
|
|
|
30
31
|
hideMessage: (query: IQuery) => Promise<IResponse>;
|
|
31
32
|
hideLabels: (query: IQuery) => Promise<IResponse>;
|
|
32
33
|
getSubscribers: () => Promise<IQuery[] | undefined>;
|
|
34
|
+
loadSlide: (query: IQuery) => Promise<IResponse>;
|
|
35
|
+
storeSlide: (query: IQuery) => Promise<IResponse | number>;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
export declare class BuzzcastingStorageReader {
|
|
@@ -105,22 +108,24 @@ export declare enum EVENTS {
|
|
|
105
108
|
CLEAN_MESSAGES = "cleanMessages",
|
|
106
109
|
CLOSE_MODAL = "closeModal",
|
|
107
110
|
ERROR = "error",
|
|
108
|
-
GOTO_SLIDE = "gotoSlide",
|
|
109
111
|
HIDE_MESSAGE = "hideMessage",
|
|
110
112
|
HIDE_LABELS = "hideLabels",
|
|
111
|
-
NEXT_SLIDE = "nextSlide",
|
|
112
113
|
PAUSE_PRESENTATION = "pausePresentation",
|
|
113
114
|
PRESENTATION_READY = "presentationReady",
|
|
114
115
|
PREV_SLIDE = "prevSlide",
|
|
115
116
|
RELOAD_PRESENTATION = "reloadPresentation",
|
|
116
117
|
SHOW_MODAL = "showModal",
|
|
117
118
|
STAR_MESSAGE = "starMessage",
|
|
119
|
+
GOTO_SLIDE = "gotoSlide",
|
|
120
|
+
NEXT_SLIDE = "nextSlide",
|
|
118
121
|
SLIDE_DID_LOAD = "slideDidLoad",
|
|
119
122
|
SLIDE_GOTO = "slideGoto",
|
|
120
123
|
SLIDE_READY = "slideReady",
|
|
124
|
+
SLIDE_LOAD = "loadSlide",
|
|
125
|
+
SLIDE_STORE = "storeSlide",
|
|
121
126
|
SLIDE_TRANSITIONER = "slideTransitioner",
|
|
122
127
|
START_TRANSITIONER = "startTransitioner",
|
|
123
|
-
STORAGE_INIT = "
|
|
128
|
+
STORAGE_INIT = "storageInit",
|
|
124
129
|
SUBSCRIBE = "subscribe",
|
|
125
130
|
REMOVE_CLOUD = "removeCloud",
|
|
126
131
|
UPDATE = "update",
|
|
@@ -276,7 +281,7 @@ export declare interface IQuery {
|
|
|
276
281
|
labels?: string[];
|
|
277
282
|
compare?: string;
|
|
278
283
|
period?: number;
|
|
279
|
-
type?: 'cloud' | 'messages' | 'series' | 'proxy';
|
|
284
|
+
type?: 'cloud' | 'messages' | 'series' | 'proxy' | 'slide';
|
|
280
285
|
order?: string;
|
|
281
286
|
media?: number;
|
|
282
287
|
dynamics?: number;
|
|
@@ -288,6 +293,7 @@ export declare interface IQuery {
|
|
|
288
293
|
before?: number;
|
|
289
294
|
since?: number;
|
|
290
295
|
hash?: string;
|
|
296
|
+
data?: any;
|
|
291
297
|
}
|
|
292
298
|
|
|
293
299
|
/**
|
|
@@ -473,4 +479,3 @@ declare global {
|
|
|
473
479
|
BuzzCasting: any;
|
|
474
480
|
}
|
|
475
481
|
}
|
|
476
|
-
|