@crossworks/content-core 0.712.15 → 0.712.21
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossworks/content-core",
|
|
3
|
-
"version": "0.712.
|
|
3
|
+
"version": "0.712.21",
|
|
4
4
|
"description": "Browser-safe content logic — markdown, blocks, pages, tables, formulas — shared by the server and any client. Zero server deps by design: nothing here may reach @mantle/db, node-only APIs, or the network (the jackdaw-repo-split P0 boundary).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./tree": "./src/tree.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@mantle/client-types": "npm:@crossworks/client-types@0.712.
|
|
41
|
+
"@mantle/client-types": "npm:@crossworks/client-types@0.712.21",
|
|
42
42
|
"marked": "^18.1.2",
|
|
43
43
|
"mathjs": "15.2.0"
|
|
44
44
|
},
|
|
@@ -656,6 +656,14 @@ export function projectGrantedGroups(raw: unknown): Record<string, string[]> | u
|
|
|
656
656
|
return rows.length ? Object.fromEntries(rows) : undefined;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
+
/** The keys of the seeded Recall maps (recallMapsSeeded): non-empty
|
|
660
|
+
* strings, each once; anything else is dropped. */
|
|
661
|
+
export function projectSeededKeys(raw: unknown): string[] | undefined {
|
|
662
|
+
if (!Array.isArray(raw)) return undefined;
|
|
663
|
+
const keys = [...new Set(raw.filter((s): s is string => typeof s === 'string' && s !== ''))];
|
|
664
|
+
return keys.length ? keys : undefined;
|
|
665
|
+
}
|
|
666
|
+
|
|
659
667
|
/** The house style a NEW brain starts with (Settings, Profile). Seeded only when
|
|
660
668
|
* a profile row is first created, so an owner who edits or clears it keeps
|
|
661
669
|
* their choice. The dash characters are escapes so the source holds none. */
|