buzzcasting-storage 2.10.10 → 2.10.12

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.
@@ -1,4 +1,4 @@
1
- declare enum API {
1
+ export declare enum API {
2
2
  MESSAGES = "messages",
3
3
  CLOUD = "cloud",
4
4
  SERIES = "series",
@@ -9,9 +9,9 @@ declare enum API {
9
9
 
10
10
  export declare type ApiData = ISeries & IMessages & ICloud;
11
11
 
12
- declare function attrs(attributes: NamedNodeMap): any;
12
+ export declare function attrs(attributes: NamedNodeMap): any;
13
13
 
14
- declare class BuzzcastingStorageManager {
14
+ export declare class BuzzcastingStorageManager {
15
15
  private sm;
16
16
  private api;
17
17
  private bc;
@@ -24,7 +24,7 @@ declare class BuzzcastingStorageManager {
24
24
  getSubscribers: () => Promise<IQuery[] | undefined>;
25
25
  }
26
26
 
27
- declare class BuzzcastingStorageReader {
27
+ export declare class BuzzcastingStorageReader {
28
28
  private sm;
29
29
  constructor(options: IStorageOptions);
30
30
  /**
@@ -52,14 +52,14 @@ declare class BuzzcastingStorageReader {
52
52
  * @param str
53
53
  * @returns string
54
54
  */
55
- declare function camelCase(str: string): string;
55
+ export declare function camelCase(str: string): string;
56
56
 
57
57
  /**
58
58
  * Convert string containing hyphens to camelCase
59
59
  * @param str
60
60
  * @returns camilized string
61
61
  */
62
- declare function camelize(str: string): string;
62
+ export declare function camelize(str: string): string;
63
63
 
64
64
  declare enum CSS_2 {
65
65
  API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;",
@@ -80,30 +80,15 @@ declare enum CSS_2 {
80
80
  WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;",
81
81
  WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;"
82
82
  }
83
+ export { CSS_2 as CSS }
83
84
 
84
- declare const _default: {
85
- BuzzcastingStorageManager: typeof BuzzcastingStorageManager;
86
- BuzzcastingStorageReader: typeof BuzzcastingStorageReader;
87
- Widget: typeof Widget;
88
- attrs: typeof attrs;
89
- filterAttributes: typeof filterAttributes;
90
- widgetParams: typeof widgetParams;
91
- camelCase: typeof camelCase;
92
- camelize: typeof camelize;
93
- API: typeof API;
94
- CSS: typeof CSS_2;
95
- EVENTS: typeof EVENTS;
96
- MODERATION: typeof MODERATION;
97
- STORAGE: typeof STORAGE;
98
- };
99
- export default _default;
100
-
101
- declare enum EVENTS {
85
+ export declare enum EVENTS {
102
86
  ADD_SLIDE = "addSlide",
103
87
  APP_READY = "appReady",
104
88
  API_UPDATE = "apiUpdate",
105
89
  APPROVE_MESSAGE = "approveMessage",
106
90
  CHANNEL = "channel",
91
+ CLOSE_MODAL = "closeModal",
107
92
  ERROR = "error",
108
93
  GOTO_SLIDE = "gotoSlide",
109
94
  HIDE_MESSAGE = "hideMessage",
@@ -121,12 +106,13 @@ declare enum EVENTS {
121
106
  START_TRANSITIONER = "startTransitioner",
122
107
  STORAGE_INIT = "stroageInit",
123
108
  SUBSCRIBE = "subscribe",
109
+ REMOVE_CLOUD = "removeCloud",
124
110
  UPDATE = "update",
125
111
  VERSION = "version",
126
112
  WIDGET_UPDATE = "widgetUpdate"
127
113
  }
128
114
 
129
- declare function filterAttributes(attributes: NamedNodeMap): IFilteredAttributes;
115
+ export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAttributes;
130
116
 
131
117
  export declare interface ICategory {
132
118
  type: string;
@@ -359,7 +345,7 @@ export declare interface ITopic {
359
345
  sentiment: number;
360
346
  }
361
347
 
362
- declare enum MODERATION {
348
+ export declare enum MODERATION {
363
349
  APPROVED = "approved",
364
350
  BEFORE = "before",
365
351
  DELAYED = "delayed",
@@ -367,7 +353,7 @@ declare enum MODERATION {
367
353
  REALTIME = "realtime"
368
354
  }
369
355
 
370
- declare enum STORAGE {
356
+ export declare enum STORAGE {
371
357
  KEYVAL = "keyval",
372
358
  LOCAL = "local",
373
359
  SESSION = "session",
@@ -378,7 +364,7 @@ declare enum STORAGE {
378
364
  /**
379
365
  * Main class for managing widgets and data updates
380
366
  */
381
- declare class Widget {
367
+ export declare class Widget {
382
368
  private storageReader;
383
369
  private broadcastChannel;
384
370
  private element;
@@ -436,6 +422,6 @@ declare class Widget {
436
422
  destroy(): void;
437
423
  }
438
424
 
439
- declare function widgetParams(query: IQuery): IQuery;
425
+ export declare function widgetParams(query: IQuery): IQuery;
440
426
 
441
427
  export { }