@ai-matrx/rich-content 0.2.24 → 0.2.25
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.25
|
|
4
|
+
|
|
5
|
+
- The server level no longer calls a client reference: `RichContentServer`, the inline/prose element maps and `DetailsElements` import `cn` from `@ai-matrx/design-system/cn` (server-safe) instead of the design-system root, whose `"use client"` stamp made `cn()` throw "Attempted to call cn() from the server" in every Server Component render (it failed matrx-frontend's production build at "Collecting page data").
|
|
6
|
+
- Guard: `pnpm check:server-boundary` (in `check:package`, with `--self-test`) walks everything the server roots reach without crossing a `"use client"` file and fails on any value imported from a client entry.
|
|
7
|
+
|
|
8
|
+
**Consumer action:** none — update to latest; server pages using `RichContentServer` render again.
|
|
9
|
+
|
|
3
10
|
## 0.2.24
|
|
4
11
|
|
|
5
12
|
- Publishes the lazy-host loader (0.2.21 failed its packed-consumer check on a doc-comment `import()` in `host/registry.d.ts`; 0.2.22 and 0.2.23 carry the same). No API change.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@ai-matrx/design-system";
|
|
2
|
+
import { cn } from "@ai-matrx/design-system/cn";
|
|
3
3
|
import { isHeadingAnchorProps } from "../../markdown-core/heading-anchors-props.js";
|
|
4
4
|
import { THICK_HR_SENTINEL } from "./prose-prepare.js";
|
|
5
5
|
import { PROSE_INLINE_ELEMENTS } from "./prose-inline-elements.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@ai-matrx/design-system";
|
|
2
|
+
import { cn } from "@ai-matrx/design-system/cn";
|
|
3
3
|
import { LinkComponent } from "../../display/blocks/links/LinkComponent.js";
|
|
4
4
|
import { useHeadingAnchors } from "../../markdown-core/heading-anchors-context.js";
|
|
5
5
|
import { isHeadingAnchorProps } from "../../markdown-core/heading-anchors-props.js";
|
|
@@ -2,7 +2,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import "server-only";
|
|
3
3
|
import { guardMarkdownDelimiters } from "@ai-matrx/kit/delimiter-guard";
|
|
4
4
|
import MarkdownCoreServer from "../../markdown-core/MarkdownCoreServer.js";
|
|
5
|
-
import { cn } from "@ai-matrx/design-system";
|
|
5
|
+
import { cn } from "@ai-matrx/design-system/cn";
|
|
6
6
|
import { StaticStandard } from "../standard/static-standard.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_RICH_CONTENT_DEPTH_CAP
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@ai-matrx/design-system";
|
|
2
|
+
import { cn } from "@ai-matrx/design-system/cn";
|
|
3
3
|
function DetailsElement({ children, className, open, id, node: _node, ...rest }) {
|
|
4
4
|
if (className?.includes("matrx-callout")) {
|
|
5
5
|
return /* @__PURE__ */ jsx("details", { ...rest, className, open, id, children });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/rich-content",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "The AI Matrx formatted-text engine: the one markdown renderer, streaming markdown, the block splitter and renderer, the generic blocks, <RichContent> levels, the rich-document action registry and menus, copy, and the selection toolbar — as portable React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -136,15 +136,15 @@
|
|
|
136
136
|
"@ai-matrx/content-ir": "latest",
|
|
137
137
|
"@ai-matrx/content-ir-react": "latest",
|
|
138
138
|
"@ai-matrx/data": "latest",
|
|
139
|
+
"@ai-matrx/design-system": "latest",
|
|
139
140
|
"@ai-matrx/diff": "latest",
|
|
140
141
|
"@ai-matrx/icons": "latest",
|
|
141
|
-
"@ai-matrx/
|
|
142
|
+
"@ai-matrx/kit": "latest",
|
|
142
143
|
"@ai-matrx/print": "latest",
|
|
144
|
+
"@ai-matrx/media": "latest",
|
|
143
145
|
"@ai-matrx/records": "latest",
|
|
144
146
|
"@ai-matrx/records-ui": "latest",
|
|
145
|
-
"@ai-matrx/tap-target": "latest"
|
|
146
|
-
"@ai-matrx/kit": "latest",
|
|
147
|
-
"@ai-matrx/design-system": "latest"
|
|
147
|
+
"@ai-matrx/tap-target": "latest"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"react": ">=19.0.0",
|
|
@@ -178,8 +178,9 @@
|
|
|
178
178
|
},
|
|
179
179
|
"scripts": {
|
|
180
180
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup && node ./scripts/copy-css.mjs && node ./scripts/tsc-own.mjs -p tsconfig.build.json && node ./scripts/finish-build.mjs",
|
|
181
|
-
"check:package": "pnpm build && publint && pnpm verify:modules-tarball && pnpm verify:tarball && pnpm check:host-boundary",
|
|
181
|
+
"check:package": "pnpm build && publint && pnpm verify:modules-tarball && pnpm verify:tarball && pnpm check:host-boundary && pnpm check:server-boundary",
|
|
182
182
|
"check:host-boundary": "node ./scripts/check-host-boundary.mjs && node ./scripts/check-host-boundary.mjs --self-test",
|
|
183
|
+
"check:server-boundary": "node ./scripts/check-server-boundary.mjs && node ./scripts/check-server-boundary.mjs --self-test",
|
|
183
184
|
"deps:write": "node ./scripts/finish-build.mjs --write-deps",
|
|
184
185
|
"typecheck": "node ./scripts/tsc-own.mjs -p tsconfig.json",
|
|
185
186
|
"test": "pnpm test:linear-time && jest -c jest.config.mjs --testPathPatterns='^(?!.*regex-linear-time\\.guard\\.test\\.ts$).*'",
|