@opencxh/ui-kit 3.128.0 → 3.132.0

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.
@@ -0,0 +1,14 @@
1
+ export interface RichTextProps {
2
+ /** Markdown of HTML; welke van de twee wordt gedetecteerd. */
3
+ text: string | null | undefined;
4
+ /** Extra classes op de wrapper (bv. `text-sm` of een line-clamp). */
5
+ className?: string;
6
+ /**
7
+ * Forceer een tak in plaats van te detecteren. Alleen nodig als je zeker
8
+ * weet wat je hebt en de heuristiek in de weg zit (bv. platte tekst die
9
+ * toevallig op een tag lijkt).
10
+ */
11
+ as?: "markdown" | "html";
12
+ }
13
+ /** Veilig gerenderde markdown-of-HTML tekst. */
14
+ export declare function RichText({ text, className, as }: RichTextProps): import("react").JSX.Element;
@@ -41,6 +41,7 @@ export { MessageBubble, type MessageBubbleProps } from './content/MessageBubble'
41
41
  export { KpiCard, type KpiCardProps } from './content/KpiCard';
42
42
  export { PageHeader, type PageHeaderAction, type PageHeaderProps } from './content/PageHeader';
43
43
  export { PageToolbar, type PageToolbarProps } from './content/PageToolbar';
44
+ export { RichText, type RichTextProps } from './content/RichText';
44
45
  export { SectionDivider, type SectionDividerProps } from './content/SectionDivider';
45
46
  export { SettingsRow, SettingsSection, type SettingsRowProps, type SettingsSectionProps } from './content/SettingsRow';
46
47
  export { SourceChip, type SourceChipProps } from './content/SourceChip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/ui-kit",
3
- "version": "3.128.0",
3
+ "version": "3.132.0",
4
4
  "description": "Theme-aware UI component library for OpenCXH platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,7 +30,10 @@
30
30
  "lucide-react": "^0.460.0",
31
31
  "react": "^19.2.4",
32
32
  "react-dom": "^19.2.4",
33
- "@opencxh/domain": "workspace:*"
33
+ "@opencxh/domain": "workspace:*",
34
+ "dompurify": "^3.2.6",
35
+ "react-markdown": "^10.1.0",
36
+ "remark-gfm": "^4.0.1"
34
37
  },
35
38
  "devDependencies": {
36
39
  "@types/react": "^19.1.8",