buzzcasting-storage 3.5.2 → 3.5.4
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.
|
@@ -166,7 +166,7 @@ export declare enum EVENTS {
|
|
|
166
166
|
STORAGE_INIT = "storageInit",
|
|
167
167
|
SUBSCRIBE = "subscribe",
|
|
168
168
|
SUSPEND_ACCOUNT = "suspendAccount",
|
|
169
|
-
SWITCH_PRESENTATION = "
|
|
169
|
+
SWITCH_PRESENTATION = "switchPresentation",
|
|
170
170
|
REMOVE_CLOUD = "removeCloud",
|
|
171
171
|
UPDATE = "update",
|
|
172
172
|
VERSION = "version",
|
|
@@ -421,6 +421,7 @@ export declare interface ISeriesData {
|
|
|
421
421
|
*/
|
|
422
422
|
export declare interface IStorageOptions {
|
|
423
423
|
app: string;
|
|
424
|
+
builder?: boolean;
|
|
424
425
|
domain?: string;
|
|
425
426
|
cdn?: string;
|
|
426
427
|
channel?: string;
|
|
@@ -565,10 +566,3 @@ export declare class Widget {
|
|
|
565
566
|
export declare function widgetParams(query: IQuery): IQuery;
|
|
566
567
|
|
|
567
568
|
export { }
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
declare global {
|
|
571
|
-
interface Window {
|
|
572
|
-
BuzzCasting: any;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Aa = Object.defineProperty;
|
|
2
2
|
var Pa = (l, n, s) => n in l ? Aa(l, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[n] = s;
|
|
3
3
|
var _ = (l, n, s) => Pa(l, typeof n != "symbol" ? n + "" : n, s);
|
|
4
|
-
var D = /* @__PURE__ */ ((l) => (l.MESSAGES = "messages", l.CLOUD = "cloud", l.SERIES = "series", l.TOPICS = "topics", l.WIDGET = "widget", l.WIDGETS = "widgets", l.DASHBOARD = "dashboard", l.DASHBOARDS = "dashboards", l.SLIDE = "slide", l.SLIDES = "slides", l.PRESENTATION = "presentation", l.PRESENTATIONS = "presentations", l.PREFERENCE = "preference", l.PREFERENCES = "preferences", l))(D || {}), f = /* @__PURE__ */ ((l) => (l.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", l.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", l.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", l.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", l.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", l.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", l.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", l.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", l.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", l.NONE = "color:transparent;background-color:transparent;", l.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", l.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", l.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", l.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", l.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", l.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", l.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", l))(f || {}), q = /* @__PURE__ */ ((l) => (l.ADD_SLIDE = "addSlide", l.APP_READY = "appReady", l.API_UPDATE = "apiUpdate", l.WS_API_REQUEST = "wsApiRequest", l.WS_API_RESPONSE = "wsApiResponse", l.WS_API_UPDATE = "wsApiRUpdate", l.APPROVE_MESSAGE = "approveMessage", l.CHANNEL = "channel", l.CLEAN_MESSAGES = "cleanMessages", l.CLOSE_MODAL = "closeModal", l.CLOSE_BUILDER_MODAL = "closeBuilderModal", l.DASHBOARD_LOAD = "loadDashboard", l.DASHBOARD_STORE = "storeDashboard", l.ERROR = "error", l.HIDE_MESSAGE = "hideMessage", l.HIDE_LABELS = "hideLabels", l.MAUPPUT_UPDATE = "layoutUpdate", l.PAUSE_PRESENTATION = "pausePresentation", l.PRESENTATION_READY = "presentationReady", l.PREV_SLIDE = "prevSlide", l.RELOAD_PRESENTATION = "reloadPresentation", l.SHOW_MODAL = "showModal", l.STAR_MESSAGE = "starMessage", l.GOTO_SLIDE = "gotoSlide", l.NEXT_SLIDE = "nextSlide", l.PREFERENCE_LOAD = "loadPreference", l.PREFERENCE_STORE = "storePreference", l.PRESENTATION_LOAD = "loadPresentation", l.PRESENTATION_STORE = "storePresentation", l.SHOW_BUILDER_MODAL = "showBuilderModal", l.SLIDE_DID_LOAD = "slideDidLoad", l.SLIDE_GOTO = "slideGoto", l.SLIDE_READY = "slideReady", l.SLIDE_LOAD = "loadSlide", l.SLIDE_STORE = "storeSlide", l.SLIDE_TRANSITIONER = "slideTransitioner", l.START_TRANSITIONER = "startTransitioner", l.STORAGE_INIT = "storageInit", l.SUBSCRIBE = "subscribe", l.SUSPEND_ACCOUNT = "suspendAccount", l.SWITCH_PRESENTATION = "
|
|
5
|
-
const Da = "3.5.
|
|
4
|
+
var D = /* @__PURE__ */ ((l) => (l.MESSAGES = "messages", l.CLOUD = "cloud", l.SERIES = "series", l.TOPICS = "topics", l.WIDGET = "widget", l.WIDGETS = "widgets", l.DASHBOARD = "dashboard", l.DASHBOARDS = "dashboards", l.SLIDE = "slide", l.SLIDES = "slides", l.PRESENTATION = "presentation", l.PRESENTATIONS = "presentations", l.PREFERENCE = "preference", l.PREFERENCES = "preferences", l))(D || {}), f = /* @__PURE__ */ ((l) => (l.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", l.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", l.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", l.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", l.CLOUD = "color:grey;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", l.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", l.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", l.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", l.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", l.NONE = "color:transparent;background-color:transparent;", l.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", l.SERIES = "color:grey;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", l.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", l.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", l.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", l.WIDGET = "color:gret;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", l.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", l))(f || {}), q = /* @__PURE__ */ ((l) => (l.ADD_SLIDE = "addSlide", l.APP_READY = "appReady", l.API_UPDATE = "apiUpdate", l.WS_API_REQUEST = "wsApiRequest", l.WS_API_RESPONSE = "wsApiResponse", l.WS_API_UPDATE = "wsApiRUpdate", l.APPROVE_MESSAGE = "approveMessage", l.CHANNEL = "channel", l.CLEAN_MESSAGES = "cleanMessages", l.CLOSE_MODAL = "closeModal", l.CLOSE_BUILDER_MODAL = "closeBuilderModal", l.DASHBOARD_LOAD = "loadDashboard", l.DASHBOARD_STORE = "storeDashboard", l.ERROR = "error", l.HIDE_MESSAGE = "hideMessage", l.HIDE_LABELS = "hideLabels", l.MAUPPUT_UPDATE = "layoutUpdate", l.PAUSE_PRESENTATION = "pausePresentation", l.PRESENTATION_READY = "presentationReady", l.PREV_SLIDE = "prevSlide", l.RELOAD_PRESENTATION = "reloadPresentation", l.SHOW_MODAL = "showModal", l.STAR_MESSAGE = "starMessage", l.GOTO_SLIDE = "gotoSlide", l.NEXT_SLIDE = "nextSlide", l.PREFERENCE_LOAD = "loadPreference", l.PREFERENCE_STORE = "storePreference", l.PRESENTATION_LOAD = "loadPresentation", l.PRESENTATION_STORE = "storePresentation", l.SHOW_BUILDER_MODAL = "showBuilderModal", l.SLIDE_DID_LOAD = "slideDidLoad", l.SLIDE_GOTO = "slideGoto", l.SLIDE_READY = "slideReady", l.SLIDE_LOAD = "loadSlide", l.SLIDE_STORE = "storeSlide", l.SLIDE_TRANSITIONER = "slideTransitioner", l.START_TRANSITIONER = "startTransitioner", l.STORAGE_INIT = "storageInit", l.SUBSCRIBE = "subscribe", l.SUSPEND_ACCOUNT = "suspendAccount", l.SWITCH_PRESENTATION = "switchPresentation", l.REMOVE_CLOUD = "removeCloud", l.UPDATE = "update", l.VERSION = "version", l.WIDGET_LOAD = "widgetLoad", l.WIDGET_STORE = "widgetStore", l.WIDGET_UPDATE = "widgetUpdate", l))(q || {}), Vt = /* @__PURE__ */ ((l) => (l.APPROVED = "approved", l.BEFORE = "before", l.DELAYED = "delayed", l.NONE = "none", l.REALTIME = "realtime", l))(Vt || {}), me = /* @__PURE__ */ ((l) => (l.KEYVAL = "keyval", l.LOCAL = "local", l.SESSION = "session", l.DEXIE = "dexie", l.WINDOW = "window", l))(me || {});
|
|
5
|
+
const Da = "3.5.3";
|
|
6
6
|
class xa {
|
|
7
7
|
constructor(n) {
|
|
8
8
|
_(this, "options");
|
|
@@ -48,7 +48,7 @@ class xa {
|
|
|
48
48
|
if (!M.ok)
|
|
49
49
|
throw new Error(`${M.status}`);
|
|
50
50
|
return M;
|
|
51
|
-
}).then((M) => M.json()).then((M) => (M.query = n, M.query = n, M.data && (M.data.query = n), M)).catch((M) => ({ success: !1, message: `${M}`, data: null }));
|
|
51
|
+
}).then((M) => M.json()).then((M) => (M.query = n, M.query = n, M.data && (M.data.query = n), M)).catch((M) => ({ success: !1, message: `${M}`, data: null, query: n }));
|
|
52
52
|
}
|
|
53
53
|
async hideMessage(n) {
|
|
54
54
|
const { version: s } = this.options, u = this.headers(), S = "?action=visible";
|
|
@@ -222,7 +222,7 @@ class xa {
|
|
|
222
222
|
if (!S.ok)
|
|
223
223
|
throw new Error(`${S.status}`);
|
|
224
224
|
return S;
|
|
225
|
-
}).then((S) => S.json()).then((S) => (S.query = n, S)).catch((S) => ({ success: !1, message: `${S}`, data: null }));
|
|
225
|
+
}).then((S) => S.json()).then((S) => (S.query = n, S)).catch((S) => ({ success: !1, message: `${S}`, data: null, query: n }));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
var ka = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -3720,7 +3720,7 @@ class Nr {
|
|
|
3720
3720
|
message: `Preference ${n.id} save error: ${s.message}`,
|
|
3721
3721
|
success: !1
|
|
3722
3722
|
})));
|
|
3723
|
-
this.options = n, this.db = new en(n.app), this.db.version(
|
|
3723
|
+
this.options = n, this.db = new en(n.app), this.db.version(9).stores({
|
|
3724
3724
|
channel: "id,slide_index",
|
|
3725
3725
|
cloud: "id,dashboard_id,data",
|
|
3726
3726
|
dashboard: "id,name,data,update",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.5.
|
|
4
|
+
"version": "3.5.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -32,19 +32,21 @@
|
|
|
32
32
|
"idb-keyval": "^6.2.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@antfu/eslint-config": "^
|
|
35
|
+
"@antfu/eslint-config": "^4.6.0",
|
|
36
36
|
"@commitlint/cli": "^19.7.1",
|
|
37
37
|
"@commitlint/config-conventional": "^19.7.1",
|
|
38
|
-
"@types/node": "^22.13.
|
|
39
|
-
"@
|
|
38
|
+
"@types/node": "^22.13.9",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
40
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
41
|
+
"@vitest/coverage-v8": "^3.0.7",
|
|
40
42
|
"camelcase": "^8.0.0",
|
|
41
|
-
"changelogen": "^0.
|
|
42
|
-
"eslint": "^9.
|
|
43
|
+
"changelogen": "^0.6.1",
|
|
44
|
+
"eslint": "^9.21.0",
|
|
43
45
|
"lint-staged": "^15.4.3",
|
|
44
|
-
"typescript": "^5.
|
|
45
|
-
"vite": "^6.0
|
|
46
|
-
"vite-plugin-dts": "^4.5.
|
|
47
|
-
"vitest": "^3.0.
|
|
46
|
+
"typescript": "^5.8.2",
|
|
47
|
+
"vite": "^6.2.0",
|
|
48
|
+
"vite-plugin-dts": "^4.5.3",
|
|
49
|
+
"vitest": "^3.0.7"
|
|
48
50
|
},
|
|
49
51
|
"lint-staged": {
|
|
50
52
|
"*.ts": "npm run lint"
|