buzzcasting-storage 3.17.0 → 3.17.1
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.esm.js +23 -8
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _ = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(_ || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), tr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(tr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
|
|
1
|
+
var _ = /* @__PURE__ */ ((f) => (f.CARDS = "cards", f.CLOUD = "cloud", f.DASHBOARD = "dashboard", f.DASHBOARDS = "dashboards", f.IMAGES = "images", f.MESSAGES = "messages", f.PREFERENCE = "preference", f.PREFERENCES = "preferences", f.PRESENTATION = "presentation", f.PRESENTATIONS = "presentations", f.SERIES = "series", f.SLIDE = "slide", f.SLIDES = "slides", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f))(_ || {}), o = /* @__PURE__ */ ((f) => (f.API = "color:white;background-color:grey;padding:0 4px 0 4px;border-radius:5px;", f.APP = "color:white;background-color:navy;padding:0 4px 0 4px;border-radius:5px;", f.BROADCAST = "color:navy;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:purple;background-color:mistyrose;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.ERROR = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.GET_DATA = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.HIDE = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.KO = "color:white;background-color:red;padding:0 4px 0 4px;border-radius:5px;", f.MESSAGES = "color:white;background-color:darkslateblue;padding:0 4px 0 4px;border-radius:5px;", f.NO_UPDATES = "color:grey;border:1px solid grey;padding:0 4px 0 4px;border-radius:5px;", f.NONE = "color:transparent;background-color:transparent;", f.OK = "color:black;background-color:lime;padding:0 4px 0 4px;border-radius:5px;", f.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:purple;background-color:thistle;padding:0 4px 0 4px;border-radius:5px;", f.SLIDE = "color:black;background-color:yellow;padding:0 4px 0 4px;border-radius:5px;", f.STORAGE = "color:black;background-color:cyan;padding:0 4px 0 4px;border-radius:5px;", f.SUBSCRIBE = "color:white;background-color:dodgerblue;padding:0 4px 0 4px;border-radius:5px;", f.WIDGET = "color:black;background-color:lemonchiffon;padding:0 4px 0 4px;border-radius:5px;", f.WS = "color:white;background-color:green;padding:0 4px 0 4px;border-radius:5px;", f))(o || {}), J = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.BACKGROUND_UPDATE = "backgroundUpdate", f.BUILDER_PREVIEW = "builderPreview", f.COMPONENT_UPDATE = "componentUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_BUILDER_DIALOG = "closeBuilderDialog", f.CLOSE_BUILDER_MODAL = "closeBuilderModal", f.CLOSE_MODAL = "closeModal", f.COLOR_UPDATE = "colorUpdate", f.COMPONENT_INDEX = "componentIndex", f.CSS_SET = "setCss", f.CSS_STORE = "storeCss", f.DASHBOARD_LOAD = "loadDashboard", f.DASHBOARD_STORE = "storeDashboard", f.DASHBOARD_UPDATED = "dashboardUpdated", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.IMAGE_GET = "getImage", f.IMAGE_SET = "setImage", f.IMAGE_STORED = "imageStored", f.LAUPPUT_UPDATE = "layoutUpdate", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.PREFERENCE_LOAD = "loadPreference", f.PREFERENCE_STORE = "storePreference", f.PREFERENCE_UPDATED = "preferenceUpdated", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PRESENTATION_LOAD = "loadPresentation", f.PRESENTATION_STORE = "storePresentation", f.PRESENTATION_UPDATED = "presentationUpdated", f.ROW_COL_UPDATE = "rowcolupdate", f.SCREENSHOT_TAKE = "takeScreenshot", f.SCREENSHOT_STORE = "storeScreenshot", f.SECTION_UPDATE = "sectionUpdate", f.SHOW_BUILDER_DIALOG = "showBuilderDialog", f.SHOW_BUILDER_MODAL = "showBuilderModal", f.SHOW_MODAL = "showModal", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GET = "getSlide", f.SLIDE_GOTO = "slideGoto", f.SLIDE_LOAD = "loadSlide", f.SLIDE_READY = "slideReady", f.SLIDE_SAVED = "slideSaved", f.SLIDE_SET = "setSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_STORED = "slideStored", f.SLIDE_TRANSITIONER = "slideTransitioner", f.SLIDE_UPDATED = "slideUpdated", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.STREAM = "stream", f.SUBSCRIBE = "subscribe", f.SUSPEND_ACCOUNT = "suspendAccount", f.SWITCH_PRESENTATION = "switchPresentation", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.UPLOAD_COMPLETED = "uploadCompleted", f.VERSION = "version", f.WIDGETS_CLEAR = "widgetsClear", f.WIDGET_DID_LOAD = "widgetDidLoad", f.WIDGET_DID_UPDATE = "widgetDidUpdate", f.WIDGET_LOAD = "widgetLoad", f.WIDGET_STORE = "widgetStore", f.WIDGET_UPDATE = "widgetUpdate", f.WS_API_REQUEST = "wsApiRequest", f.WS_API_RESPONSE = "wsApiResponse", f.WS_API_UPDATE = "wsApiRUpdate", f))(J || {}), tr = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(tr || {}), pe = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(pe || {});
|
|
2
2
|
function Da(f) {
|
|
3
3
|
const t = {};
|
|
4
4
|
for (let i = 0; i < f.length; i++) {
|
|
@@ -118,7 +118,7 @@ function _t(f, t) {
|
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
120
|
}
|
|
121
|
-
const $a = "3.
|
|
121
|
+
const $a = "3.17.0";
|
|
122
122
|
async function* ja(f) {
|
|
123
123
|
const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
|
|
124
124
|
let i = "";
|
|
@@ -3558,24 +3558,24 @@ class Kn {
|
|
|
3558
3558
|
constructor(t) {
|
|
3559
3559
|
this.options = t, this.db = new Ot(t.app), this.db.version(15).stores({
|
|
3560
3560
|
channel: "id,slide_index",
|
|
3561
|
-
cloud: "id,dashboard_id
|
|
3561
|
+
cloud: "id,dashboard_id",
|
|
3562
3562
|
dashboard: "id,name,update",
|
|
3563
3563
|
display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
|
|
3564
|
-
hash: "id,dashboard_id,hash",
|
|
3564
|
+
hash: "[presentation_id+id],dashboard_id, hash",
|
|
3565
3565
|
images: "id,basename,extension,size,type,url",
|
|
3566
3566
|
messages: "id,utc,expires",
|
|
3567
3567
|
monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
|
|
3568
3568
|
player: "id,title,name,location",
|
|
3569
3569
|
preference: "id,value,update",
|
|
3570
3570
|
presentation: "id,name,update",
|
|
3571
|
-
series: "id,dashboard_id
|
|
3571
|
+
series: "id,dashboard_id",
|
|
3572
3572
|
slide: "id,name,presentation_id,order_index,json,html,update",
|
|
3573
3573
|
topics: "[widget_id+message_id],message_id,widget_id,dashboard_id,title,engagement,impressions,reach,sentiment,visible,approved,utc,expires",
|
|
3574
3574
|
widget: "id,name,dashboard_id,type,update"
|
|
3575
3575
|
}), this.db.open();
|
|
3576
3576
|
}
|
|
3577
3577
|
getHash = async (t) => {
|
|
3578
|
-
const i = await this.db.table("hash").where({ id: t.widget }).last().catch(() => {
|
|
3578
|
+
const i = await this.db.table("hash").where({ id: t.widget, presentation_id: t.presentation }).last().catch(() => {
|
|
3579
3579
|
G(2, ["%chash%c %capi%C %chash", o.API, o.NONE, o.APP]);
|
|
3580
3580
|
});
|
|
3581
3581
|
return G(3, [
|
|
@@ -3589,7 +3589,8 @@ class Kn {
|
|
|
3589
3589
|
]), i?.hash ?? "none";
|
|
3590
3590
|
};
|
|
3591
3591
|
setHash = async (t) => await this.db.table("hash").where({
|
|
3592
|
-
id: t.widget
|
|
3592
|
+
id: t.widget,
|
|
3593
|
+
presentation_id: t.presentation
|
|
3593
3594
|
}).modify({ hash: t.hash }).then(() => (G(3, [
|
|
3594
3595
|
"%cset%c %chash%c %chash}",
|
|
3595
3596
|
o.OK,
|
|
@@ -3615,7 +3616,17 @@ class Kn {
|
|
|
3615
3616
|
o.STORAGE,
|
|
3616
3617
|
o.NONE,
|
|
3617
3618
|
o.WIDGET,
|
|
3618
|
-
"clear
|
|
3619
|
+
"clear hashes"
|
|
3620
|
+
]), 400));
|
|
3621
|
+
deleteHash = async (t) => await this.db.table("hash").where({ presentation_id: t.presentation }).delete().then(() => 201).catch((i) => (G(2, [
|
|
3622
|
+
"%cdelete%c %cstorage%c %chash",
|
|
3623
|
+
o.KO,
|
|
3624
|
+
o.NONE,
|
|
3625
|
+
o.STORAGE,
|
|
3626
|
+
o.NONE,
|
|
3627
|
+
o.WIDGET,
|
|
3628
|
+
"clear presentation hashes",
|
|
3629
|
+
t.presentation
|
|
3619
3630
|
]), 400));
|
|
3620
3631
|
createHash = async (t) => await this.db.table("hash").put({
|
|
3621
3632
|
id: t.widget,
|
|
@@ -4404,6 +4415,7 @@ class Bn {
|
|
|
4404
4415
|
setHash = async (t) => 404;
|
|
4405
4416
|
createHash = async (t) => 404;
|
|
4406
4417
|
clearHash = async () => 404;
|
|
4418
|
+
deleteHash = async (t) => 404;
|
|
4407
4419
|
getCloud = async (t) => {
|
|
4408
4420
|
const i = Y(t);
|
|
4409
4421
|
return await _e(i).then((l) => l).catch(() => (console.warn("%capi", o.API, _.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
|
|
@@ -4709,6 +4721,7 @@ class Un {
|
|
|
4709
4721
|
setHash = async (t) => 404;
|
|
4710
4722
|
createHash = async (t) => 404;
|
|
4711
4723
|
clearHash = async () => 404;
|
|
4724
|
+
deleteHash = async (t) => 404;
|
|
4712
4725
|
getCloud = async (t) => {
|
|
4713
4726
|
const i = Y(t);
|
|
4714
4727
|
try {
|
|
@@ -5048,6 +5061,7 @@ class Wn {
|
|
|
5048
5061
|
setHash = async (t) => 404;
|
|
5049
5062
|
createHash = async (t) => 404;
|
|
5050
5063
|
clearHash = async () => 404;
|
|
5064
|
+
deleteHash = async (t) => 404;
|
|
5051
5065
|
getCloud = async (t) => {
|
|
5052
5066
|
const i = Y(t);
|
|
5053
5067
|
try {
|
|
@@ -5387,6 +5401,7 @@ class Fn {
|
|
|
5387
5401
|
setHash = async (t) => 404;
|
|
5388
5402
|
createHash = async (t) => 404;
|
|
5389
5403
|
clearHash = async () => 404;
|
|
5404
|
+
deleteHash = async (t) => 404;
|
|
5390
5405
|
getCloud = async (t) => {
|
|
5391
5406
|
const i = Y(t);
|
|
5392
5407
|
try {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.17.
|
|
4
|
+
"version": "3.17.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"ndjson-readablestream": "^1.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@antfu/eslint-config": "^6.
|
|
40
|
-
"@commitlint/cli": "^20.
|
|
41
|
-
"@commitlint/config-conventional": "^20.
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"@vitest/coverage-v8": "^4.0.
|
|
46
|
-
"buzzcasting-utils": "^1.10.
|
|
47
|
-
"camelcase": "^
|
|
39
|
+
"@antfu/eslint-config": "^6.5.1",
|
|
40
|
+
"@commitlint/cli": "^20.2.0",
|
|
41
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
42
|
+
"@types/node": "^24.10.2",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
45
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
46
|
+
"buzzcasting-utils": "^1.10.2",
|
|
47
|
+
"camelcase": "^9.0.0",
|
|
48
48
|
"changelogen": "^0.6.2",
|
|
49
|
-
"eslint": "^9.
|
|
50
|
-
"lint-staged": "^16.2.
|
|
49
|
+
"eslint": "^9.39.1",
|
|
50
|
+
"lint-staged": "^16.2.7",
|
|
51
51
|
"typescript": "^5.9.3",
|
|
52
|
-
"vite": "^7.
|
|
52
|
+
"vite": "^7.2.7",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
|
-
"vitest": "^4.0.
|
|
54
|
+
"vitest": "^4.0.15"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.ts": "npm run lint"
|