@tuturuuu/ui 0.31.0 → 0.32.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.32.0](https://github.com/tutur3u/platform/compare/ui-v0.31.0...ui-v0.32.0) (2026-09-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **meet:** give Mira a distinct identity and refine call panels ([#5269](https://github.com/tutur3u/platform/issues/5269)) ([6ba3f1c](https://github.com/tutur3u/platform/commit/6ba3f1c5e2408ae0a564c97177282978f38b4ce8))
9
+ * **meet:** polish assistant identity and call panels ([2d2098b](https://github.com/tutur3u/platform/commit/2d2098b8923d58f6c094fe02cf1de142178b5433))
10
+
3
11
  ## [0.31.0](https://github.com/tutur3u/platform/compare/ui-v0.30.2...ui-v0.31.0) (2026-09-07)
4
12
 
5
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuturuuu/ui",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -87,11 +87,11 @@
87
87
  "@tiptap/pm": "3.31.2",
88
88
  "@tiptap/react": "3.31.2",
89
89
  "@tiptap/starter-kit": "3.31.2",
90
- "@tuturuuu/ai": "0.9.0",
90
+ "@tuturuuu/ai": "0.11.0",
91
91
  "@tuturuuu/apis": "0.11.3",
92
92
  "@tuturuuu/hooks": "0.1.1",
93
93
  "@tuturuuu/icons": "0.1.0",
94
- "@tuturuuu/internal-api": "0.34.0",
94
+ "@tuturuuu/internal-api": "0.37.0",
95
95
  "@tuturuuu/supabase": "0.5.1",
96
96
  "@tuturuuu/utils": "0.28.0",
97
97
  "@types/debug": "^4.1.13",
@@ -154,7 +154,7 @@
154
154
  "@tanstack/react-table": "^9.2.4",
155
155
  "@testing-library/jest-dom": "^7.0.1",
156
156
  "@testing-library/react": "^16.3.3",
157
- "@tuturuuu/types": "0.29.0",
157
+ "@tuturuuu/types": "0.29.1",
158
158
  "@tuturuuu/typescript-config": "0.1.2",
159
159
  "@types/html2canvas": "^1.0.0",
160
160
  "@types/lodash": "^4.17.25",
@@ -4,8 +4,13 @@ import { cjk } from '@streamdown/cjk';
4
4
  import { code } from '@streamdown/code';
5
5
  import { createMathPlugin } from '@streamdown/math';
6
6
  import { mermaid as mermaidPlugin } from '@streamdown/mermaid';
7
- import { Component, type ErrorInfo, type ReactNode } from 'react';
8
- import { Streamdown } from 'streamdown';
7
+ import {
8
+ Component,
9
+ type ComponentProps,
10
+ type ErrorInfo,
11
+ type ReactNode,
12
+ } from 'react';
13
+ import { defaultRemarkPlugins, Streamdown } from 'streamdown';
9
14
 
10
15
  const math = createMathPlugin({ singleDollarTextMath: true });
11
16
  const markdownPlugins = {
@@ -40,9 +45,13 @@ class AiMarkdownErrorBoundary extends Component<
40
45
  export function AssistantMarkdown({
41
46
  isAnimating,
42
47
  text,
48
+ components,
49
+ remarkPlugins,
43
50
  }: {
44
51
  isAnimating?: boolean;
45
52
  text: string;
53
+ components?: ComponentProps<typeof Streamdown>['components'];
54
+ remarkPlugins?: ComponentProps<typeof Streamdown>['remarkPlugins'];
46
55
  }) {
47
56
  return (
48
57
  <div className="wrap-break-word [&_pre]:overflow-x-hidden! [&_pre]:whitespace-pre-wrap! [&_pre_code]:whitespace-pre-wrap! min-w-0 max-w-full overflow-hidden [&_a]:break-all [&_pre]:max-w-full">
@@ -50,6 +59,12 @@ export function AssistantMarkdown({
50
59
  fallback={<p className="whitespace-pre-wrap">{text}</p>}
51
60
  >
52
61
  <Streamdown
62
+ components={components}
63
+ remarkPlugins={
64
+ remarkPlugins
65
+ ? [...Object.values(defaultRemarkPlugins), ...remarkPlugins]
66
+ : undefined
67
+ }
53
68
  caret="block"
54
69
  controls={{ code: !isAnimating, mermaid: !isAnimating }}
55
70
  isAnimating={isAnimating}