buzzcasting-storage 2.7.1 → 2.8.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/dist/buzzcasting-storage.d.ts +21 -3
- package/dist/buzzcasting-storage.esm.js +957 -932
- package/package.json +1 -1
|
@@ -49,6 +49,7 @@ declare enum CSS_2 {
|
|
|
49
49
|
API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;",
|
|
50
50
|
APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;",
|
|
51
51
|
BROADCAST = "color:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;",
|
|
52
|
+
DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;",
|
|
52
53
|
CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;",
|
|
53
54
|
GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;",
|
|
54
55
|
HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;",
|
|
@@ -66,7 +67,9 @@ declare enum CSS_2 {
|
|
|
66
67
|
export { CSS_2 as CSS }
|
|
67
68
|
|
|
68
69
|
export declare enum EVENTS {
|
|
70
|
+
ADD_SLIDE = "addSlide",
|
|
69
71
|
APP_READY = "appReady",
|
|
72
|
+
API_UPDATE = "apiUpdate",
|
|
70
73
|
CHANNEL = "channel",
|
|
71
74
|
ERROR = "error",
|
|
72
75
|
GOTO_SLIDE = "gotoSlide",
|
|
@@ -78,8 +81,10 @@ export declare enum EVENTS {
|
|
|
78
81
|
RELOAD_PRESENTATION = "reloadPresentation",
|
|
79
82
|
SHOW_MODAL = "showModal",
|
|
80
83
|
SLIDE_DID_LOAD = "slideDidLoad",
|
|
84
|
+
SLIDE_GOTO = "slideGoto",
|
|
81
85
|
SLIDE_READY = "slideReady",
|
|
82
86
|
SLIDE_TRANSITIONER = "slideTransitioner",
|
|
87
|
+
START_TRANSITIONER = "startTransitioner",
|
|
83
88
|
STORAGE_INIT = "stroageInit",
|
|
84
89
|
SUBSCRIBE = "subscribe",
|
|
85
90
|
UPDATE = "update",
|
|
@@ -87,6 +92,8 @@ export declare enum EVENTS {
|
|
|
87
92
|
WIDGET_UPDATE = "widgetUpdate"
|
|
88
93
|
}
|
|
89
94
|
|
|
95
|
+
export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAttributes;
|
|
96
|
+
|
|
90
97
|
export declare interface ICategory {
|
|
91
98
|
type: string;
|
|
92
99
|
data: string[];
|
|
@@ -129,6 +136,10 @@ export declare interface IDynamics {
|
|
|
129
136
|
trending_score?: number;
|
|
130
137
|
}
|
|
131
138
|
|
|
139
|
+
declare interface IFilteredAttributes {
|
|
140
|
+
[x: string]: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
132
143
|
export declare interface IGeo {
|
|
133
144
|
latitude?: number;
|
|
134
145
|
longitude?: number;
|
|
@@ -306,6 +317,8 @@ export declare interface ITopic {
|
|
|
306
317
|
sentiment: number;
|
|
307
318
|
}
|
|
308
319
|
|
|
320
|
+
export declare function messageId(e: MouseEvent, selector?: string): string | undefined;
|
|
321
|
+
|
|
309
322
|
export declare enum MODERATION {
|
|
310
323
|
APPROVED = "approved",
|
|
311
324
|
BEFORE = "before",
|
|
@@ -326,13 +339,14 @@ export declare class Widget {
|
|
|
326
339
|
private storageReader;
|
|
327
340
|
private broadcastChannel;
|
|
328
341
|
private query;
|
|
329
|
-
private
|
|
342
|
+
private attributes;
|
|
343
|
+
private listeners;
|
|
330
344
|
/**
|
|
331
345
|
*
|
|
332
346
|
* @param callbacks functions in the widget that will receive the update
|
|
333
347
|
* @param query
|
|
334
348
|
*/
|
|
335
|
-
constructor(callbacks: Array<(arg: IResponse) => void>,
|
|
349
|
+
constructor(element: HTMLElement, callbacks: Array<(arg: IResponse) => void>, selector?: string);
|
|
336
350
|
addListener(cb: (arg: IResponse) => void): void;
|
|
337
351
|
/**
|
|
338
352
|
* Data received from BroadcastChannel
|
|
@@ -342,7 +356,11 @@ export declare class Widget {
|
|
|
342
356
|
getCloud: () => Promise<IResponse>;
|
|
343
357
|
getMessages: () => Promise<IResponse>;
|
|
344
358
|
getSeries: () => Promise<IResponse>;
|
|
345
|
-
showModal: (
|
|
359
|
+
showModal: (modal: {
|
|
360
|
+
showComponent: string;
|
|
361
|
+
dataset?: any;
|
|
362
|
+
attributes?: any;
|
|
363
|
+
}) => void;
|
|
346
364
|
destroy(): void;
|
|
347
365
|
}
|
|
348
366
|
|