@crossworks/content-core 0.232.114 → 0.232.123

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.232.114",
3
+ "version": "0.232.123",
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
  "exports": {
6
6
  "./markdown": "./src/markdown-to-doc.ts",
package/src/block-ids.ts CHANGED
@@ -25,7 +25,7 @@
25
25
  * persist them on the next user action)
26
26
  * - `saveDraft` / `commitPage` — guarantees the stored doc carries ids
27
27
  *
28
- * The TipTap editor side is in `apps/web/components/page-editor/block-id.ts`
28
+ * The TipTap editor side is in `server/web/components/page-editor/block-id.ts`
29
29
  * — a global attribute extension that PRESERVES the `id` on parse/serialize
30
30
  * so user edits don't strip ids the agent placed.
31
31
  *
@@ -3,7 +3,7 @@
3
3
  * rich-markdown dialect into a ProseMirror / TipTap JSON document so an agent
4
4
  * can CREATE and UPDATE pages (which store `pages.doc` as ProseMirror JSON, not
5
5
  * markdown). The node names/attrs here MUST match the Pages editor schema
6
- * (`apps/web/components/page-editor/extensions.ts`): paragraph, heading,
6
+ * (`server/web/components/page-editor/extensions.ts`): paragraph, heading,
7
7
  * bulletList/orderedList/listItem, taskList/taskItem, codeBlock, blockquote,
8
8
  * horizontalRule, table/tableRow/tableHeader/tableCell, callout, columnList/
9
9
  * column, plus the bold/italic/strike/code/link/highlight/textColor marks.
@@ -77,7 +77,7 @@ const highlightExtension: TokenizerAndRendererExtension = {
77
77
 
78
78
  // `[text]{color=chart-2}` / `[text]{highlight=chart-3}` → themed text-colour and
79
79
  // highlight marks (tokens chart-1..5; both keys may appear in one span). Kept in
80
- // lockstep with apps/web/lib/rich-markdown.ts + the rich_writing skill.
80
+ // lockstep with server/web/lib/rich-markdown.ts + the rich_writing skill.
81
81
  const COLOR_TOKEN_RE = /^chart-[1-5]$/;
82
82
  function parseColorAttrs(attrStr: string): { color?: string; highlight?: string } {
83
83
  const res: { color?: string; highlight?: string } = {};