@ai-matrx/rich-content 0.2.123 → 0.2.125
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 +12 -0
- package/dist/host/app-bindings.d.ts +6 -0
- package/dist/host/app-bindings.js +4 -0
- package/dist/utils/table-source.js +1 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.125
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/rich-content/v0.2.124..npm/rich-content/v0.2.125 -- apps/shared/rich-content`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.2.124
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/rich-content/v0.2.123..npm/rich-content/v0.2.124 -- apps/shared/rich-content`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.2.123
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -47,6 +47,10 @@ export interface RichContentAppBindings {
|
|
|
47
47
|
recordKeyOf: HostFn;
|
|
48
48
|
useMermaidPreferences: HostFn;
|
|
49
49
|
useSetMermaidPreferences: HostFn;
|
|
50
|
+
/** `() => Record<textKey, fixIds> | null` — the person's dismissed prompt-fix suggestions. */
|
|
51
|
+
usePromptFixDismissals: HostFn;
|
|
52
|
+
/** `() => ((textKey, fixIds) => void) | null` — save them to the person's preferences. */
|
|
53
|
+
useSetPromptFixDismissals: HostFn;
|
|
50
54
|
useImageKnob: HostFn;
|
|
51
55
|
imageKnobPrincipals: HostFn;
|
|
52
56
|
setImageKnobMapEntry: HostFn;
|
|
@@ -131,6 +135,8 @@ export declare const useIsAdminDebugger: HostFn;
|
|
|
131
135
|
export declare const useIsAuthenticated: HostFn;
|
|
132
136
|
export declare const useMermaidPreferences: HostFn;
|
|
133
137
|
export declare const useSetMermaidPreferences: HostFn;
|
|
138
|
+
export declare const usePromptFixDismissals: HostFn;
|
|
139
|
+
export declare const useSetPromptFixDismissals: HostFn;
|
|
134
140
|
export declare const useImageKnob: HostFn;
|
|
135
141
|
export declare const imageKnobPrincipals: HostFn;
|
|
136
142
|
export declare const setImageKnobMapEntry: HostFn;
|
|
@@ -85,6 +85,8 @@ const useIsAdminDebugger = fn("useIsAdminDebugger", () => false, "admin diagnost
|
|
|
85
85
|
const useIsAuthenticated = fn("useIsAuthenticated", () => false, "the viewer is treated as signed out");
|
|
86
86
|
const useMermaidPreferences = fn("useMermaidPreferences", () => ({}), "mermaid uses default preferences");
|
|
87
87
|
const useSetMermaidPreferences = fn("useSetMermaidPreferences", () => noop, "mermaid preferences are not saved");
|
|
88
|
+
const usePromptFixDismissals = fn("usePromptFixDismissals", () => null, "dismissed fix suggestions stay in this browser");
|
|
89
|
+
const useSetPromptFixDismissals = fn("useSetPromptFixDismissals", () => null, "dismissed fix suggestions stay in this browser");
|
|
88
90
|
const useImageKnob = fn("useImageKnob", () => void 0, "remote images follow the default policy");
|
|
89
91
|
const imageKnobPrincipals = fn("imageKnobPrincipals", () => ({ organizationId: null, userId: null }), "no one can trust an image host");
|
|
90
92
|
const setImageKnobMapEntry = fn("setImageKnobMapEntry", async () => ({ ok: false, reason: "This app does not save image preferences." }), "image preferences are not saved");
|
|
@@ -251,8 +253,10 @@ export {
|
|
|
251
253
|
useOpenOverlay,
|
|
252
254
|
useOpenSmartCodeEditorWindow,
|
|
253
255
|
useOpenTableViewerWindow,
|
|
256
|
+
usePromptFixDismissals,
|
|
254
257
|
useRegistryMenuSource,
|
|
255
258
|
useSaveAndOpenInCodeEditor,
|
|
256
259
|
useSetMermaidPreferences,
|
|
260
|
+
useSetPromptFixDismissals,
|
|
257
261
|
useThemeMode
|
|
258
262
|
};
|
|
@@ -77,8 +77,7 @@ function rewriteSegment(seg, text) {
|
|
|
77
77
|
const core = seg.slice(lead.length).trimEnd();
|
|
78
78
|
const trail = seg.slice(lead.length + core.length);
|
|
79
79
|
const fresh = freshCell(text).trim();
|
|
80
|
-
|
|
81
|
-
return `${lead}${fresh}${" ".repeat(pad)}`;
|
|
80
|
+
return `${lead}${fresh}${trail === "" && endsInEscape(fresh) ? " " : trail}`;
|
|
82
81
|
}
|
|
83
82
|
function respliceRow(segs, stored, texts) {
|
|
84
83
|
if (!segs || !stored || stored.length !== texts.length || !segs.every((seg) => typeof seg === "string")) return null;
|
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.125",
|
|
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",
|
|
@@ -131,19 +131,19 @@
|
|
|
131
131
|
"unist-util-visit-parents": "^6.0.2",
|
|
132
132
|
"yaml": "^2.9.1",
|
|
133
133
|
"@ai-matrx/agents": "latest",
|
|
134
|
+
"@ai-matrx/canvas": "latest",
|
|
135
|
+
"@ai-matrx/content-ir": "latest",
|
|
136
|
+
"@ai-matrx/alchemy": "latest",
|
|
134
137
|
"@ai-matrx/content-ir-react": "latest",
|
|
135
138
|
"@ai-matrx/data": "latest",
|
|
136
|
-
"@ai-matrx/design-system": "latest",
|
|
137
|
-
"@ai-matrx/diff": "latest",
|
|
138
139
|
"@ai-matrx/icons": "latest",
|
|
140
|
+
"@ai-matrx/diff": "latest",
|
|
139
141
|
"@ai-matrx/kit": "latest",
|
|
140
|
-
"@ai-matrx/
|
|
141
|
-
"@ai-matrx/
|
|
142
|
+
"@ai-matrx/design-system": "latest",
|
|
143
|
+
"@ai-matrx/media": "latest",
|
|
142
144
|
"@ai-matrx/print": "latest",
|
|
143
|
-
"@ai-matrx/records
|
|
144
|
-
"@ai-matrx/
|
|
145
|
-
"@ai-matrx/content-ir": "latest",
|
|
146
|
-
"@ai-matrx/media": "latest"
|
|
145
|
+
"@ai-matrx/records": "latest",
|
|
146
|
+
"@ai-matrx/records-ui": "latest"
|
|
147
147
|
},
|
|
148
148
|
"peerDependencies": {
|
|
149
149
|
"react": ">=19.0.0",
|
|
@@ -204,5 +204,5 @@
|
|
|
204
204
|
"verify:modules-tarball": "node ./scripts/verify-modules-tarball.mjs",
|
|
205
205
|
"verify:tarball": "node ./scripts/verify-tarball.mjs"
|
|
206
206
|
},
|
|
207
|
-
"gitHead": "
|
|
207
|
+
"gitHead": "c5be2d24232d6b5b45a507ad5163865c0078cc85"
|
|
208
208
|
}
|