buzzcasting-utils 1.6.9 → 1.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.
@@ -25,12 +25,6 @@ export declare interface AreaStyle {
25
25
 
26
26
  export declare function attachedMedia(message: IMessage): IAttachedMedia_2;
27
27
 
28
- declare interface Attr_2 {
29
- ["x:string"]: string | string[];
30
- class: string | string[];
31
- }
32
- export { Attr_2 as Attr }
33
-
34
28
  export declare function attrs(attributes: NamedNodeMap): any;
35
29
 
36
30
  export declare const awaitElement: (selector: string) => Promise<unknown>;
@@ -248,7 +242,7 @@ export declare interface IAnimation {
248
242
  }
249
243
 
250
244
  export declare interface IApiResponse {
251
- data: IDashboard[] | IImage[] | IMessage[] | ISeries | ICloud | ISlide[] | IPresentation[] | IPreference[] | IWidget[] | null;
245
+ data: IDashboard[] | IImage[] | IMessage[] | ISeries | ICloud | ILayoutSlide[] | IPresentation[] | IPreference[] | IWidget[] | null;
252
246
  message: string;
253
247
  success: boolean;
254
248
  query?: IQuery;
@@ -315,6 +309,7 @@ export declare interface ICardOptions {
315
309
  d3?: ID3;
316
310
  dateformat?: IDateFormat;
317
311
  show?: IShow;
312
+ debug?: boolean;
318
313
  }
319
314
 
320
315
  export declare interface ICategory {
@@ -726,10 +721,136 @@ export declare interface ILand {
726
721
  }
727
722
 
728
723
  export declare interface ILayout {
729
- sections: Object | ISlideSections;
730
- slide: ISlide;
731
- widgets: Object | ISlideWidgets;
732
- zones: Object | ISlideZones;
724
+ sections: Object | ILayoutSections;
725
+ slide: ILayoutSlide;
726
+ widgets: Object | ILayoutWidgets;
727
+ zones: Object | ILayoutZones;
728
+ }
729
+
730
+ export declare interface ILayoutCloud {
731
+ "data-type"?: string;
732
+ component?: string;
733
+ "data-dashboard"?: string;
734
+ "data-widget": string;
735
+ "css-count"?: string[];
736
+ "css-host"?: string;
737
+ "kpi-name"?: string;
738
+ "config-abbreviate"?: string;
739
+ class?: string | string[];
740
+ }
741
+
742
+ export declare interface ILayoutComponent {
743
+ path: string;
744
+ query: string;
745
+ node: string;
746
+ tag: string;
747
+ attr: ILayoutMessages | ILayoutSeries | ILayoutCloud;
748
+ }
749
+
750
+ export declare interface ILayoutContent {
751
+ editable: boolean;
752
+ path: string;
753
+ query: string;
754
+ node: string;
755
+ tag: string;
756
+ attr: Attr;
757
+ }
758
+
759
+ export declare interface ILayoutMessages {
760
+ layout?: string;
761
+ component?: string;
762
+ "data-type"?: string;
763
+ "data-dashboard"?: string;
764
+ "data-widget"?: string;
765
+ "show-kpi"?: string;
766
+ "show-sender"?: string;
767
+ "css-date"?: string[];
768
+ "css-card"?: string[];
769
+ "css-body"?: string[];
770
+ "css-brand"?: string[];
771
+ "css-handle"?: string[];
772
+ "css-name"?: string[];
773
+ "date-format"?: string;
774
+ animation?: string;
775
+ interval?: string;
776
+ "show-brand"?: string;
777
+ "data-order"?: string;
778
+ index?: string;
779
+ class?: string | string[];
780
+ edit?: string;
781
+ }
782
+
783
+ export declare interface ILayoutSection {
784
+ area: string;
785
+ "grid-area": string;
786
+ widgets: string[];
787
+ }
788
+
789
+ export declare interface ILayoutSections {
790
+ ["x:string"]: ILayoutSection;
791
+ }
792
+
793
+ export declare interface ILayoutSeries {
794
+ "data-type"?: string;
795
+ "data-widget": string;
796
+ component?: string;
797
+ "data-dashboard"?: string;
798
+ "css-arrow-down"?: string | string[];
799
+ "css-body"?: string | string[];
800
+ "css-brand"?: string | string[];
801
+ "css-change"?: string | string[];
802
+ "css-count"?: string | string[];
803
+ "css-down"?: string | string[];
804
+ "css-up"?: string | string[];
805
+ class?: string | string[];
806
+ }
807
+
808
+ export declare interface ILayoutSettings {
809
+ contents: ILayoutContent[];
810
+ component: ILayoutComponent;
811
+ }
812
+
813
+ export declare interface ILayoutSlide {
814
+ id: string;
815
+ label: string;
816
+ cols: number;
817
+ rows: number;
818
+ width: string;
819
+ height: string;
820
+ backgrounds: string[];
821
+ zones: string[];
822
+ interval: string;
823
+ animation: string;
824
+ "animation-speed": string;
825
+ }
826
+
827
+ export declare interface ILayoutWidget {
828
+ node: string;
829
+ child: IWidgetChild[];
830
+ settings: ILayoutSettings;
831
+ template: string;
832
+ label: string;
833
+ tag: string;
834
+ }
835
+
836
+ export declare interface ILayoutWidgets {
837
+ ["x:string"]: string;
838
+ }
839
+
840
+ export declare interface ILayoutZone {
841
+ label: string;
842
+ area: string;
843
+ "grid-area": string;
844
+ "grid-rows": string;
845
+ "grid-cols": string;
846
+ "gap-x": string;
847
+ "gap-y": string;
848
+ padding: string;
849
+ sections: string[];
850
+ }
851
+
852
+ export declare interface ILayoutZones {
853
+ ["x:string"]: ILayoutZone[];
733
854
  }
734
855
 
735
856
  export declare interface IMedium {
@@ -799,6 +920,7 @@ export declare interface IPreference {
799
920
  id: string;
800
921
  value?: string;
801
922
  update?: number;
923
+ type?: string;
802
924
  }
803
925
 
804
926
  export declare interface IPreferences {
@@ -833,7 +955,7 @@ export declare interface IQuery {
833
955
  labels?: string[];
834
956
  compare?: string;
835
957
  period?: number;
836
- type?: "cloud" | "messages" | "series" | "preference" | "proxy" | "slide" | "dashboard" | "widget";
958
+ type?: "cloud" | "messages" | "series" | "preference" | "proxy" | "slide" | "dashboard" | "widget" | "presentations";
837
959
  order?: "utc" | "reach" | "engagement" | "impressions";
838
960
  media?: number;
839
961
  dynamics?: number;
@@ -983,73 +1105,7 @@ export declare interface IShow {
983
1105
  sender?: boolean;
984
1106
  star?: boolean;
985
1107
  visible?: boolean;
986
- }
987
-
988
- export declare interface ISlide {
989
- id: string;
990
- label: string;
991
- cols: number;
992
- rows: number;
993
- width: string;
994
- height: string;
995
- backgrounds: string[];
996
- zones: string[];
997
- interval: string;
998
- animation: string;
999
- "animation-speed": string;
1000
- }
1001
-
1002
- export declare interface ISlideCloud {
1003
- "data-type"?: string;
1004
- component?: string;
1005
- "data-dashboard"?: string;
1006
- "data-widget": string;
1007
- "css-count"?: string[];
1008
- "css-host"?: string;
1009
- "kpi-name"?: string;
1010
- "config-abbreviate"?: string;
1011
- class?: string | string[];
1012
- }
1013
-
1014
- export declare interface ISlideComponent {
1015
- path: string;
1016
- query: string;
1017
- node: string;
1018
- tag: string;
1019
- attr: ISlideMessages | ISlideSeries | ISlideCloud;
1020
- }
1021
-
1022
- export declare interface ISlideContent {
1023
- editable: boolean;
1024
- path: string;
1025
- query: string;
1026
- node: string;
1027
- tag: string;
1028
- attr: Attr_2;
1029
- }
1030
-
1031
- export declare interface ISlideMessages {
1032
- layout?: string;
1033
- component?: string;
1034
- "data-type"?: string;
1035
- "data-dashboard"?: string;
1036
- "data-widget"?: string;
1037
- "show-kpi"?: string;
1038
- "show-sender"?: string;
1039
- "css-date"?: string[];
1040
- "css-card"?: string[];
1041
- "css-body"?: string[];
1042
- "css-brand"?: string[];
1043
- "css-handle"?: string[];
1044
- "css-name"?: string[];
1045
- "date-format"?: string;
1046
- animation?: string;
1047
- interval?: string;
1048
- "show-brand"?: string;
1049
- "data-order"?: string;
1050
- index?: string;
1051
- class?: string | string[];
1052
- edit?: string;
1108
+ debug?: boolean;
1053
1109
  }
1054
1110
 
1055
1111
  export declare interface ISlides {
@@ -1057,65 +1113,6 @@ export declare interface ISlides {
1057
1113
  slides: any;
1058
1114
  }
1059
1115
 
1060
- export declare interface ISlideSection {
1061
- area: string;
1062
- "grid-area": string;
1063
- widgets: string[];
1064
- }
1065
-
1066
- export declare interface ISlideSections {
1067
- ["x:string"]: ISlideSection;
1068
- }
1069
-
1070
- export declare interface ISlideSeries {
1071
- "data-type"?: string;
1072
- "data-widget": string;
1073
- component?: string;
1074
- "data-dashboard"?: string;
1075
- "css-arrow-down"?: string | string[];
1076
- "css-body"?: string | string[];
1077
- "css-brand"?: string | string[];
1078
- "css-change"?: string | string[];
1079
- "css-count"?: string | string[];
1080
- "css-down"?: string | string[];
1081
- "css-up"?: string | string[];
1082
- class?: string | string[];
1083
- }
1084
-
1085
- export declare interface ISlideSettings {
1086
- contents: ISlideContent[];
1087
- component: ISlideComponent;
1088
- }
1089
-
1090
- export declare interface ISlideWidget {
1091
- node: string;
1092
- child: SlideChild[];
1093
- settings: ISlideSettings;
1094
- template: string;
1095
- label: string;
1096
- tag: string;
1097
- }
1098
-
1099
- export declare interface ISlideWidgets {
1100
- ["x:string"]: string;
1101
- }
1102
-
1103
- export declare interface ISlideZone {
1104
- label: string;
1105
- area: string;
1106
- "grid-area": string;
1107
- "grid-rows": string;
1108
- "grid-cols": string;
1109
- "gap-x": string;
1110
- "gap-y": string;
1111
- padding: string;
1112
- sections: string[];
1113
- }
1114
-
1115
- export declare interface ISlideZones {
1116
- ["x:string"]: ISlideZone[];
1117
- }
1118
-
1119
1116
  export declare interface ISphere {
1120
1117
  strokeStyle: string;
1121
1118
  lineWidth: number;
@@ -1127,29 +1124,30 @@ export declare interface ISphere {
1127
1124
  */
1128
1125
  export declare interface IStorageOptions {
1129
1126
  app: string;
1127
+ bearer?: string;
1128
+ beforeTime?: string;
1130
1129
  builder?: boolean;
1131
- domain?: string;
1132
1130
  cdn?: string;
1133
1131
  channel?: string;
1134
- presentation: string;
1135
- slide?: string;
1136
- slides?: string[];
1137
- display?: string;
1138
- monitor?: string;
1139
- version: string;
1140
- storage: string;
1141
- token?: string;
1142
- bearer?: string;
1143
1132
  csrf?: string;
1133
+ delay?: number;
1134
+ display?: string;
1135
+ domain?: string;
1136
+ html?: string;
1137
+ locale: string;
1138
+ loglevel?: number;
1144
1139
  moderation?: string;
1140
+ monitor?: string;
1145
1141
  nonce?: string;
1146
- beforeTime?: string;
1147
- delay?: number;
1148
1142
  period?: number;
1143
+ presentation: string;
1149
1144
  retention?: number;
1145
+ slide?: string;
1146
+ slides?: string[];
1147
+ storage: string;
1150
1148
  suspended?: boolean;
1151
- loglevel?: number;
1152
- locale: string;
1149
+ token?: string;
1150
+ version: string;
1153
1151
  }
1154
1152
 
1155
1153
  export declare interface ITopic {
@@ -1165,6 +1163,7 @@ export declare interface ITopic {
1165
1163
  utc?: number;
1166
1164
  expires?: number;
1167
1165
  visible?: number;
1166
+ approved?: number;
1168
1167
  }
1169
1168
 
1170
1169
  export declare interface IWidget {
@@ -1177,6 +1176,17 @@ export declare interface IWidget {
1177
1176
  period?: string;
1178
1177
  }
1179
1178
 
1179
+ export declare interface IWidgetChild {
1180
+ node: string;
1181
+ tag: string;
1182
+ attr: IWidgetChildAttr;
1183
+ }
1184
+
1185
+ export declare interface IWidgetChildAttr {
1186
+ ["x:string"]: string | string[];
1187
+ class: string | string[];
1188
+ }
1189
+
1180
1190
  export declare interface IWidgetComponent {
1181
1191
  path: string;
1182
1192
  query: string;
@@ -1333,12 +1343,6 @@ export declare function showModal(e: MouseEvent, widget: any, message: IMessage,
1333
1343
 
1334
1344
  export declare function shuffleMessages(messages: IMessage[]): IMessage[];
1335
1345
 
1336
- export declare interface SlideChild {
1337
- node: string;
1338
- tag: string;
1339
- attr: Attr_2;
1340
- }
1341
-
1342
1346
  export declare enum STORAGE {
1343
1347
  KEYVAL = "keyval",
1344
1348
  LOCAL = "local",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-utils",
3
3
  "type": "module",
4
- "version": "1.6.9",
4
+ "version": "1.8.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",