buzzcasting-storage 2.16.6 → 2.16.7

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.
@@ -135,7 +135,7 @@ export declare enum EVENTS {
135
135
 
136
136
  export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAttributes;
137
137
 
138
- export declare function formatContent(message: IMessage): string;
138
+ export declare function formatContent(message: IMessage, titleCss?: string): string;
139
139
 
140
140
  declare interface IAttachedMedia {
141
141
  image?: string;
@@ -2,7 +2,7 @@ var xi = Object.defineProperty;
2
2
  var ki = (f, r, c) => r in f ? xi(f, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : f[r] = c;
3
3
  var A = (f, r, c) => ki(f, typeof r != "symbol" ? r + "" : r, c);
4
4
  var K = /* @__PURE__ */ ((f) => (f.MESSAGES = "messages", f.CLOUD = "cloud", f.SERIES = "series", f.TOPICS = "topics", f.WIDGET = "widget", f.WIDGETS = "widgets", f.SLIDE = "slide", f))(K || {}), _ = /* @__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:white;background-color:orange;padding:0 4px 0 4px;border-radius:5px;", f.DATA = "color:grey;background-color:lightskyblue;padding:0 4px 0 4px;border-radius:5px;", f.CLOUD = "color:grey;background-color:mistyrose;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.MESSAGES = "color:grey;background-color:tan;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.PRESENTATION = "color:white;background-color:darkred;padding:0 4px 0 4px;border-radius:5px;", f.SERIES = "color:grey;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:gret;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))(_ || {}), re = /* @__PURE__ */ ((f) => (f.ADD_SLIDE = "addSlide", f.APP_READY = "appReady", f.API_UPDATE = "apiUpdate", f.APPROVE_MESSAGE = "approveMessage", f.CHANNEL = "channel", f.CLEAN_MESSAGES = "cleanMessages", f.CLOSE_MODAL = "closeModal", f.ERROR = "error", f.HIDE_MESSAGE = "hideMessage", f.HIDE_LABELS = "hideLabels", f.PAUSE_PRESENTATION = "pausePresentation", f.PRESENTATION_READY = "presentationReady", f.PREV_SLIDE = "prevSlide", f.RELOAD_PRESENTATION = "reloadPresentation", f.SHOW_MODAL = "showModal", f.STAR_MESSAGE = "starMessage", f.GOTO_SLIDE = "gotoSlide", f.NEXT_SLIDE = "nextSlide", f.SLIDE_DID_LOAD = "slideDidLoad", f.SLIDE_GOTO = "slideGoto", f.SLIDE_READY = "slideReady", f.SLIDE_LOAD = "loadSlide", f.SLIDE_STORE = "storeSlide", f.SLIDE_TRANSITIONER = "slideTransitioner", f.START_TRANSITIONER = "startTransitioner", f.STORAGE_INIT = "storageInit", f.SUBSCRIBE = "subscribe", f.REMOVE_CLOUD = "removeCloud", f.UPDATE = "update", f.VERSION = "version", f.WIDGET_UPDATE = "widgetUpdate", f))(re || {}), Zt = /* @__PURE__ */ ((f) => (f.APPROVED = "approved", f.BEFORE = "before", f.DELAYED = "delayed", f.NONE = "none", f.REALTIME = "realtime", f))(Zt || {}), ge = /* @__PURE__ */ ((f) => (f.KEYVAL = "keyval", f.LOCAL = "local", f.SESSION = "session", f.DEXIE = "dexie", f.WINDOW = "window", f))(ge || {});
5
- const Ai = "2.16.5";
5
+ const Ai = "2.16.6";
6
6
  class Di {
7
7
  constructor(r) {
8
8
  A(this, "options");
@@ -13,6 +13,7 @@ class Di {
13
13
  headers: new Headers({
14
14
  Authorization: r,
15
15
  Accept: "application/json"
16
+ // 'Cache-Control': 'no-cache',
16
17
  // 'X-Session-Key': localStorage.getItem('guid') || 'invalid',
17
18
  })
18
19
  };
@@ -4064,8 +4065,8 @@ function Ti(f) {
4064
4065
  const r = document.createRange();
4065
4066
  r.selectNodeContents(f), r.deleteContents();
4066
4067
  }
4067
- function zi(f) {
4068
- return `${(f == null ? void 0 : f.title.length) > 0 ? `<p><strong>${f.title}</strong></p>` : ""}${f != null && f.content ? f.content.replace(/\n\n/g, `
4068
+ function zi(f, r = "font-bold") {
4069
+ return `${(f == null ? void 0 : f.title.length) > 0 ? `<div class="${r}">${f.title}</div><br/>` : ""}${f != null && f.content ? f.content.replace(/\n\n/g, `
4069
4070
  `).replace(/\n/g, "<br/>") : ""}`;
4070
4071
  }
4071
4072
  function ji(f, r) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "2.16.6",
4
+ "version": "2.16.7",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",
@@ -32,21 +32,21 @@
32
32
  "idb-keyval": "^6.2.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@antfu/eslint-config": "^3.6.2",
35
+ "@antfu/eslint-config": "^3.7.1",
36
36
  "@commitlint/cli": "^19.5.0",
37
37
  "@commitlint/config-conventional": "^19.5.0",
38
- "@types/node": "^22.5.5",
38
+ "@types/node": "^22.6.1",
39
39
  "@vitest/coverage-v8": "^2.1.1",
40
40
  "camelcase": "^8.0.0",
41
- "changelogen": "^0.5.5",
42
- "eslint": "^9.10.0",
41
+ "changelogen": "^0.5.7",
42
+ "eslint": "^9.11.1",
43
43
  "lint-staged": "^15.2.10",
44
44
  "typescript": "^5.6.2",
45
- "vite": "^5.4.6",
46
- "vite-plugin-dts": "^4.2.1",
45
+ "vite": "^5.4.7",
46
+ "vite-plugin-dts": "^4.2.2",
47
47
  "vitest": "^2.1.1"
48
48
  },
49
49
  "lint-staged": {
50
50
  "*.ts": "pnpm run lint"
51
51
  }
52
- }
52
+ }