buzzcasting-utils 1.10.2 → 1.11.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.
@@ -225,7 +225,7 @@ export declare function filterAttributes(attributes: NamedNodeMap): IFilteredAtt
225
225
 
226
226
  export declare const flatten: (obj: any, res?: {}, parentKey?: string) => {};
227
227
 
228
- export declare function formatContent(message: IMessage, titleCss?: string): string;
228
+ export declare function formatContent(message: IMessage, headingCss?: string): string;
229
229
 
230
230
  export declare interface GeoCountries {
231
231
  type: string;
@@ -508,6 +508,7 @@ export declare interface ICssCard {
508
508
  dynamics?: string;
509
509
  globe?: string;
510
510
  handle?: string;
511
+ heading?: string;
511
512
  host?: string;
512
513
  image?: string;
513
514
  kpi?: string;
@@ -134,7 +134,7 @@ function E(e) {
134
134
  }
135
135
  const fe = (e) => [...new Set(e)], ge = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
136
136
  function be(e, t = "font-bold") {
137
- return `${e?.title !== null ? `<div class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
137
+ return `${e?.title !== null ? `<div title="heading" class="${t}">${e.title}</div>` : ""}${e?.content ? e.content.replace(/\n\n/g, `
138
138
  `).replace(/\n/g, "<br/>") : ""}`;
139
139
  }
140
140
  const M = (e, t = {}, r = "") => {
@@ -218,10 +218,10 @@ const De = (e) => {
218
218
  const r = b("html,head,body,title"), n = { link: "head", base: "head" };
219
219
  t ? t = t.ownerDocument || t.getOwnerDocument && t.getOwnerDocument() || t : typeof t < "u" ? t = new Document() : typeof document < "u" && document.implementation && document.implementation.createDocument && (t = document.implementation.createDocument("", "", null));
220
220
  const o = [];
221
- if (!(t.documentElement || t.getDocumentElement && t.getDocumentElement()) && t.createElement && function() {
221
+ if (!(t.documentElement || t.getDocumentElement && t.getDocumentElement()) && t.createElement && (function() {
222
222
  const i = t.createElement("html"), u = t.createElement("head");
223
223
  u.appendChild(t.createElement("title")), i.appendChild(u), i.appendChild(t.createElement("body")), t.appendChild(i);
224
- }(), t.getElementsByTagName)
224
+ })(), t.getElementsByTagName)
225
225
  for (let i in r) r[i] = t.getElementsByTagName(i)[0];
226
226
  let l = r.body;
227
227
  return O(e, {
@@ -476,15 +476,10 @@ function $e(e) {
476
476
  return e[Math.floor(Math.random() * e.length)];
477
477
  }
478
478
  function Ce(e) {
479
- switch (e.language) {
480
- case "ar":
481
- return {
482
- direction: "rtl",
483
- textAlign: "right"
484
- };
485
- default:
486
- return {};
487
- }
479
+ return e.language === "ar" ? {
480
+ direction: "rtl",
481
+ textAlign: "right"
482
+ } : {};
488
483
  }
489
484
  function Ue(e) {
490
485
  const t = e.filter(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-utils",
3
3
  "type": "module",
4
- "version": "1.10.2",
4
+ "version": "1.11.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",
@@ -31,19 +31,19 @@
31
31
  },
32
32
  "dependencies": {},
33
33
  "devDependencies": {
34
- "@antfu/eslint-config": "^6.5.1",
35
- "@commitlint/cli": "^20.2.0",
36
- "@commitlint/config-conventional": "^20.2.0",
37
- "@types/node": "^24.10.2",
38
- "@typescript-eslint/eslint-plugin": "^8.49.0",
39
- "@typescript-eslint/parser": "^8.49.0",
34
+ "@antfu/eslint-config": "^6.7.3",
35
+ "@commitlint/cli": "^20.3.0",
36
+ "@commitlint/config-conventional": "^20.3.0",
37
+ "@types/node": "^24.10.4",
38
+ "@typescript-eslint/eslint-plugin": "^8.51.0",
39
+ "@typescript-eslint/parser": "^8.51.0",
40
40
  "@vitest/coverage-v8": "^4.0.1",
41
41
  "camelcase": "^9.0.0",
42
42
  "changelogen": "^0.6.2",
43
- "eslint": "^9.39.1",
43
+ "eslint": "^9.39.2",
44
44
  "lint-staged": "^16.2.7",
45
45
  "typescript": "^5.9.3",
46
- "vite": "^7.2.7",
46
+ "vite": "^7.3.0",
47
47
  "vite-plugin-dts": "^4.5.4",
48
48
  "vitest": "^4.0.1"
49
49
  },