@ai-matrx/rich-content 0.2.122 → 0.2.124

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.124
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/rich-content/v0.2.123..npm/rich-content/v0.2.124 -- apps/shared/rich-content`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.2.123
10
+
11
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
12
+ `git diff npm/rich-content/v0.2.122..npm/rich-content/v0.2.123 -- apps/shared/rich-content`).
13
+ No source changes intended and no consumer action required.
14
+
3
15
  ## 0.2.122
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
- const pad = Math.max(trail.length > 0 || endsInEscape(fresh) ? 1 : 0, core.length + trail.length - fresh.length);
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.122",
3
+ "version": "0.2.124",
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",
@@ -134,8 +134,8 @@
134
134
  "@ai-matrx/alchemy": "latest",
135
135
  "@ai-matrx/canvas": "latest",
136
136
  "@ai-matrx/content-ir": "latest",
137
- "@ai-matrx/content-ir-react": "latest",
138
137
  "@ai-matrx/data": "latest",
138
+ "@ai-matrx/content-ir-react": "latest",
139
139
  "@ai-matrx/design-system": "latest",
140
140
  "@ai-matrx/diff": "latest",
141
141
  "@ai-matrx/icons": "latest",
@@ -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": "305ab3059f362f878433fa07ad9e7f77c5a33366"
207
+ "gitHead": "5453c73e1b49e4dc9c7e269423a1b58e06667d34"
208
208
  }