@bettercms-ai/kit 3.1.10 → 3.1.12
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/controls/rich-text/editor.js +1 -2
- package/dist/controls/rich-text/editor.js.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/library/entries/advanced.entries.js +1 -1
- package/dist/library/entries/advanced.entries.js.map +1 -1
- package/dist/library/entries/media.entries.js +1 -1
- package/dist/library/entries/media.entries.js.map +1 -1
- package/dist/library/kit-catalog.json +2 -2
- package/package.json +1 -1
package/dist/lib/utils.js
CHANGED
|
@@ -20,7 +20,7 @@ function relTime(at, now = Date.now()) {
|
|
|
20
20
|
year: "numeric"
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
var slugify = (s) => s.toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
23
|
+
var slugify = (s) => s.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").replace(/ß/g, "ss").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
24
24
|
//#endregion
|
|
25
25
|
export { initials, relTime, slugify, uid };
|
|
26
26
|
|
package/dist/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../../src/lib/utils.ts"],"sourcesContent":["export const uid = (p = \"id\") => `${p}_${Math.random().toString(36).slice(2, 9)}`;\nexport function initials(name: string) {\n return name.split(/\\s+/).map((p) => p[0]).slice(0, 2).join(\"\").toUpperCase();\n}\nexport function relTime(at: string | number | Date, now = Date.now()) {\n const s = Math.round((now - new Date(at).getTime()) / 1000);\n if (s < 45) return \"just now\";\n const m = Math.round(s / 60); if (m < 60) return `${m}m ago`;\n const h = Math.round(m / 60); if (h < 24) return `${h}h ago`;\n const days = Math.round(h / 24); if (days < 7) return `${days}d ago`;\n const w = Math.round(days / 7); if (w < 5) return `${w}w ago`;\n return new Date(at).toLocaleDateString(\"en-US\", { month: \"short\", day: \"numeric\", year: \"numeric\" });\n}\nexport const slugify = (s: string)
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../src/lib/utils.ts"],"sourcesContent":["export const uid = (p = \"id\") => `${p}_${Math.random().toString(36).slice(2, 9)}`;\nexport function initials(name: string) {\n return name.split(/\\s+/).map((p) => p[0]).slice(0, 2).join(\"\").toUpperCase();\n}\nexport function relTime(at: string | number | Date, now = Date.now()) {\n const s = Math.round((now - new Date(at).getTime()) / 1000);\n if (s < 45) return \"just now\";\n const m = Math.round(s / 60); if (m < 60) return `${m}m ago`;\n const h = Math.round(m / 60); if (h < 24) return `${h}h ago`;\n const days = Math.round(h / 24); if (days < 7) return `${days}d ago`;\n const w = Math.round(days / 7); if (w < 5) return `${w}w ago`;\n return new Date(at).toLocaleDateString(\"en-US\", { month: \"short\", day: \"numeric\", year: \"numeric\" });\n}\n// GAP-068: fold accents (\"Über\" → \"uber\") before stripping, so a letter is never dropped; ß has no decomposition.\nexport const slugify = (s: string) =>\n s.normalize(\"NFKD\").replace(/[\\u0300-\\u036f]/g, \"\").replace(/ß/g, \"ss\").toLowerCase().trim().replace(/[^a-z0-9]+/g, \"-\").replace(/^-|-$/g, \"\");\n"],"mappings":";AAAA,IAAa,OAAO,IAAI,SAAS,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC;AAC9E,SAAgB,SAAS,MAAc;CACrC,OAAO,KAAK,MAAM,KAAK,CAAC,CAAC,KAAK,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY;AAC7E;AACA,SAAgB,QAAQ,IAA4B,MAAM,KAAK,IAAI,GAAG;CACpE,MAAM,IAAI,KAAK,OAAO,MAAM,IAAI,KAAK,EAAE,CAAC,CAAC,QAAQ,KAAK,GAAI;CAC1D,IAAI,IAAI,IAAI,OAAO;CACnB,MAAM,IAAI,KAAK,MAAM,IAAI,EAAE;CAAG,IAAI,IAAI,IAAI,OAAO,GAAG,EAAE;CACtD,MAAM,IAAI,KAAK,MAAM,IAAI,EAAE;CAAG,IAAI,IAAI,IAAI,OAAO,GAAG,EAAE;CACtD,MAAM,OAAO,KAAK,MAAM,IAAI,EAAE;CAAG,IAAI,OAAO,GAAG,OAAO,GAAG,KAAK;CAC9D,MAAM,IAAI,KAAK,MAAM,OAAO,CAAC;CAAG,IAAI,IAAI,GAAG,OAAO,GAAG,EAAE;CACvD,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC,mBAAmB,SAAS;EAAE,OAAO;EAAS,KAAK;EAAW,MAAM;CAAU,CAAC;AACrG;AAEA,IAAa,WAAW,MACtB,EAAE,UAAU,MAAM,CAAC,CAAC,QAAQ,oBAAoB,EAAE,CAAC,CAAC,QAAQ,MAAM,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,eAAe,GAAG,CAAC,CAAC,QAAQ,UAAU,EAAE"}
|
|
@@ -1653,7 +1653,7 @@ var ENTRIES = [
|
|
|
1653
1653
|
kind: "global",
|
|
1654
1654
|
icon: "speakerphone",
|
|
1655
1655
|
category: "Navigation & chrome",
|
|
1656
|
-
description: "One message across the site. Pages may
|
|
1656
|
+
description: "One message across the site. Pages may reword it, never the legal line or schedule",
|
|
1657
1657
|
variants: [{
|
|
1658
1658
|
id: "solid",
|
|
1659
1659
|
name: "Solid"
|