buzzcasting-storage 2.7.2 → 2.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.
@@ -67,6 +67,7 @@ declare enum CSS_2 {
67
67
  export { CSS_2 as CSS }
68
68
 
69
69
  export declare enum EVENTS {
70
+ ADD_SLIDE = "addSlide",
70
71
  APP_READY = "appReady",
71
72
  API_UPDATE = "apiUpdate",
72
73
  CHANNEL = "channel",
@@ -91,6 +92,8 @@ export declare enum EVENTS {
91
92
  WIDGET_UPDATE = "widgetUpdate"
92
93
  }
93
94
 
95
+ export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAttributes;
96
+
94
97
  export declare interface ICategory {
95
98
  type: string;
96
99
  data: string[];
@@ -133,6 +136,10 @@ export declare interface IDynamics {
133
136
  trending_score?: number;
134
137
  }
135
138
 
139
+ declare interface IFilteredAttributes {
140
+ [x: string]: string;
141
+ }
142
+
136
143
  export declare interface IGeo {
137
144
  latitude?: number;
138
145
  longitude?: number;
@@ -310,6 +317,8 @@ export declare interface ITopic {
310
317
  sentiment: number;
311
318
  }
312
319
 
320
+ export declare function messageId(e: MouseEvent, selector?: string): string | undefined;
321
+
313
322
  export declare enum MODERATION {
314
323
  APPROVED = "approved",
315
324
  BEFORE = "before",
@@ -330,13 +339,14 @@ export declare class Widget {
330
339
  private storageReader;
331
340
  private broadcastChannel;
332
341
  private query;
333
- private readonly listeners;
342
+ private attributes;
343
+ private listeners;
334
344
  /**
335
345
  *
336
346
  * @param callbacks functions in the widget that will receive the update
337
347
  * @param query
338
348
  */
339
- constructor(callbacks: Array<(arg: IResponse) => void>, query: IQuery);
349
+ constructor(element: HTMLElement, callbacks: Array<(arg: IResponse) => void>, selector?: string);
340
350
  addListener(cb: (arg: IResponse) => void): void;
341
351
  /**
342
352
  * Data received from BroadcastChannel
@@ -346,7 +356,11 @@ export declare class Widget {
346
356
  getCloud: () => Promise<IResponse>;
347
357
  getMessages: () => Promise<IResponse>;
348
358
  getSeries: () => Promise<IResponse>;
349
- showModal: (componentName: any) => void;
359
+ showModal: (modal: {
360
+ showComponent: string;
361
+ dataset?: any;
362
+ attributes?: any;
363
+ }) => void;
350
364
  destroy(): void;
351
365
  }
352
366