@baishuyun/chat-sdk 0.0.16 → 0.0.18
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/.turbo/turbo-build.log +178 -115
- package/CHANGELOG.md +16 -0
- package/dist/chat-sdk.js +37309 -44637
- package/dist/chat-sdk.js.map +1 -1
- package/dist/chat-sdk.umd.cjs +218 -295
- package/dist/chat-sdk.umd.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/package.json +4 -4
- package/src/chat.tsx +19 -2
- package/src/components/biz-comp/FieldChecker.tsx +49 -7
- package/src/components/biz-comp/FieldCheckerListMsg.tsx +101 -22
- package/src/components/biz-comp/chat-client.tsx +8 -3
- package/src/components/biz-comp/error-msg.tsx +10 -0
- package/src/components/biz-comp/messages.tsx +10 -0
- package/src/components/biz-comp/multi-modal-input/clear-btn.tsx +3 -1
- package/src/components/biz-comp/multi-modal-input/index.tsx +80 -43
- package/src/components/biz-comp/multi-modal-input/prompt-input.tsx +13 -10
- package/src/components/biz-comp/preview-message-wrapper.tsx +4 -4
- package/src/components/biz-comp/preview-message.tsx +26 -2
- package/src/components/biz-comp/suggestions.tsx +5 -1
- package/src/components/bs-ui/attachment-part-group.tsx +5 -2
- package/src/components/bs-ui/attachment-part.tsx +14 -9
- package/src/components/bs-ui/attachments-previewer.tsx +6 -3
- package/src/components/bs-ui/base-button.tsx +20 -5
- package/src/components/bs-ui/border-animation.tsx +107 -0
- package/src/components/bs-ui/bs-icons.tsx +35 -0
- package/src/components/bs-ui/card.tsx +4 -3
- package/src/components/bs-ui/chat-area-header.tsx +7 -3
- package/src/components/bs-ui/confirm-dialog.tsx +17 -11
- package/src/components/bs-ui/fields-design-info-table.tsx +160 -0
- package/src/components/bs-ui/fields-previewer.tsx +18 -8
- package/src/components/bs-ui/form-info-editor.tsx +2 -42
- package/src/components/bs-ui/generate-animation.tsx +7 -5
- package/src/components/bs-ui/img-part.tsx +4 -2
- package/src/components/bs-ui/line-checker.tsx +19 -5
- package/src/components/bs-ui/previewer-header.tsx +48 -4
- package/src/components/bs-ui/primary-entry-btn.tsx +2 -1
- package/src/components/bs-ui/square-checker.tsx +30 -5
- package/src/components/bs-ui/tooltip.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/const/ui.ts +42 -0
- package/src/hooks/use-frame-mode.ts +15 -0
- package/src/index.tsx +0 -1
- package/src/lib/parse-design-doc.ts +60 -0
- package/src/lib/utils.ts +79 -2
- package/src/plugins/form-builder-base-plugin/const.ts +3 -0
- package/src/plugins/form-builder-plugin/components/create-form-confirm.tsx +12 -1
- package/src/plugins/form-builder-plugin/components/design-doc-part.tsx +19 -0
- package/src/plugins/form-builder-plugin/components/design-info.tsx +47 -0
- package/src/plugins/form-builder-plugin/components/entry-btn.tsx +10 -2
- package/src/plugins/form-builder-plugin/components/fields-part.tsx +78 -0
- package/src/plugins/form-builder-plugin/components/follow-up.tsx +21 -6
- package/src/plugins/form-builder-plugin/components/msg-part.tsx +20 -145
- package/src/plugins/form-builder-plugin/components/opening-lines.tsx +11 -6
- package/src/plugins/form-builder-plugin/components/suggestion-part.tsx +62 -0
- package/src/plugins/form-builder-plugin/hooks/index.tsx +50 -0
- package/src/plugins/form-builder-plugin/index.ts +91 -14
- package/src/plugins/form-builder-plugin/types.ts +22 -2
- package/src/plugins/form-builder-plugin/utils/get-render-strategy.ts +27 -0
- package/src/plugins/form-builder-plugin/utils/index.ts +75 -41
- package/src/plugins/form-filling-plugin/components/FormFillingOpeningLines.tsx +4 -0
- package/src/plugins/form-filling-plugin/components/batch-fill-part.tsx +17 -0
- package/src/plugins/form-filling-plugin/components/batch-generator-action.tsx +50 -35
- package/src/plugins/form-filling-plugin/components/entry-btn.tsx +1 -1
- package/src/plugins/form-filling-plugin/components/first-batch-generating-animation.tsx +11 -0
- package/src/plugins/form-filling-plugin/components/generated-data-counter.tsx +17 -0
- package/src/plugins/form-filling-plugin/components/msg-part.tsx +39 -122
- package/src/plugins/form-filling-plugin/components/non-first-batch-generating-animation.tsx +18 -0
- package/src/plugins/form-filling-plugin/components/single-fill-part.tsx +42 -0
- package/src/plugins/form-filling-plugin/hooks/use-conversation-id-in-ctx.ts +13 -0
- package/src/plugins/form-filling-plugin/hooks/use-fields-data.ts +110 -0
- package/src/plugins/form-filling-plugin/index.ts +62 -42
- package/src/plugins/form-filling-plugin/types.ts +21 -1
- package/src/plugins/report-query-plugin/components/query-msg-part.tsx +25 -18
- package/src/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.tsx +36 -0
- package/src/plugins/report-query-plugin/components/result-cards/DataTableCard.tsx +15 -2
- package/src/plugins/report-query-plugin/const.ts +22 -0
- package/src/plugins/report-query-plugin/index.ts +41 -5
- package/src/plugins/report-query-plugin/types.ts +6 -0
- package/src/sdk.impl.tsx +4 -0
- package/src/store/index.ts +11 -1
- package/src/stories/BorderAnimation.stories.tsx +116 -0
- package/src/stories/FormInfoEditor.stories.tsx +19 -28
- package/src/stories/PreviewerHeader.stories.tsx +24 -0
- package/src/stories/fields-design-info-table.stories.tsx +203 -0
- package/src/style.css +25 -0
- package/src/plugins/form-builder-plugin/hooks/index.ts +0 -0
- package/src/plugins/general-model-form-builder-plugin/components/confirmer.tsx +0 -90
- package/src/plugins/general-model-form-builder-plugin/components/ghost-evt-dispatcher.tsx +0 -69
- package/src/plugins/general-model-form-builder-plugin/components/msg-part.tsx +0 -147
- package/src/plugins/general-model-form-builder-plugin/components/new-confirmer.tsx +0 -191
- package/src/plugins/general-model-form-builder-plugin/const.ts +0 -3
- package/src/plugins/general-model-form-builder-plugin/index.ts +0 -20
- package/src/plugins/general-model-form-builder-plugin/types.ts +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,115 +1,178 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[96msrc/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
[7m
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
[
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
[
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[96msrc/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[96msrc/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
[
|
|
112
|
-
|
|
113
|
-
[
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
|
|
2
|
+
> @baishuyun/chat-sdk@0.0.17 build /Users/bbbottle/Code/bs-chat-sdk/packages/chat-sdk
|
|
3
|
+
> vite build
|
|
4
|
+
|
|
5
|
+
vite v5.4.21 building for production...
|
|
6
|
+
transforming...
|
|
7
|
+
✓ 2257 modules transformed.
|
|
8
|
+
rendering chunks...
|
|
9
|
+
|
|
10
|
+
[vite:dts] Start generate declaration files...
|
|
11
|
+
[96m../agents/src/form-builder/index.ts[0m:[93m1[0m:[93m39[0m - [91merror[0m[90m TS6133: [0m'stepCountIs' is declared but its value is never read.
|
|
12
|
+
|
|
13
|
+
[7m1[0m import { Experimental_Agent as Agent, stepCountIs } from 'ai';
|
|
14
|
+
[7m [0m [91m ~~~~~~~~~~~[0m
|
|
15
|
+
[96m../agents/src/form-builder/index.ts[0m:[93m6[0m:[93m29[0m - [91merror[0m[90m TS6133: [0m'formBuilderPrompt' is declared but its value is never read.
|
|
16
|
+
|
|
17
|
+
[7m6[0m import { BuildIntentPrompt, formBuilderPrompt } from './prompts/index.js';
|
|
18
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
|
19
|
+
[96msrc/components/biz-comp/dock-btn.tsx[0m:[93m5[0m:[93m11[0m - [91merror[0m[90m TS6133: [0m'status' is declared but its value is never read.
|
|
20
|
+
|
|
21
|
+
[7m5[0m const { status, setStatus, isFloat } = useChatStatus();
|
|
22
|
+
[7m [0m [91m ~~~~~~[0m
|
|
23
|
+
[96msrc/components/biz-comp/preview-message-wrapper.tsx[0m:[93m4[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'useState' is declared but its value is never read.
|
|
24
|
+
|
|
25
|
+
[7m4[0m import { useState } from 'react';
|
|
26
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
27
|
+
[96msrc/components/bs-ui/confirm-dialog.tsx[0m:[93m44[0m:[93m3[0m - [91merror[0m[90m TS6133: [0m'onLinkClick' is declared but its value is never read.
|
|
28
|
+
|
|
29
|
+
[7m44[0m onLinkClick,
|
|
30
|
+
[7m [0m [91m ~~~~~~~~~~~[0m
|
|
31
|
+
[96msrc/plugins/form-builder-plugin/components/create-form-confirm.tsx[0m:[93m17[0m:[93m10[0m - [91merror[0m[90m TS6133: [0m'FormInfo' is declared but its value is never read.
|
|
32
|
+
|
|
33
|
+
[7m17[0m import { FormInfo, McpFormBuilderPluginCtx } from '../types';
|
|
34
|
+
[7m [0m [91m ~~~~~~~~[0m
|
|
35
|
+
[96msrc/plugins/form-builder-plugin/components/entry-btn.tsx[0m:[93m11[0m:[93m3[0m - [91merror[0m[90m TS6133: [0m'chatVisible' is declared but its value is never read.
|
|
36
|
+
|
|
37
|
+
[7m11[0m chatVisible,
|
|
38
|
+
[7m [0m [91m ~~~~~~~~~~~[0m
|
|
39
|
+
[96msrc/plugins/form-builder-plugin/components/opening-lines.tsx[0m:[93m9[0m:[93m56[0m - [91merror[0m[90m TS6133: [0m'setMessages' is declared but its value is never read.
|
|
40
|
+
|
|
41
|
+
[7m9[0m export const FormBuilderOpeningLines = ({ sendMessage, setMessages }: OpeningLinesProps) => {
|
|
42
|
+
[7m [0m [91m ~~~~~~~~~~~[0m
|
|
43
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m4[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'useChat' is declared but its value is never read.
|
|
44
|
+
|
|
45
|
+
[7m4[0m import { useChat } from '@ai-sdk/react';
|
|
46
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
47
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m5[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'DefaultChatTransport' is declared but its value is never read.
|
|
48
|
+
|
|
49
|
+
[7m5[0m import { DefaultChatTransport } from 'ai';
|
|
50
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
51
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m6[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'useEffect' is declared but its value is never read.
|
|
52
|
+
|
|
53
|
+
[7m6[0m import { useEffect } from 'react';
|
|
54
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
55
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m7[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'usePluginCtx' is declared but its value is never read.
|
|
56
|
+
|
|
57
|
+
[7m7[0m import { usePluginCtx } from '@/hooks/use-plugin-ctx';
|
|
58
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
59
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m8[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'IReportQueryContext' is declared but its value is never read.
|
|
60
|
+
|
|
61
|
+
[7m8[0m import { IReportQueryContext } from '../types';
|
|
62
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
63
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m9[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'ReportQueryPlugin' is declared but its value is never read.
|
|
64
|
+
|
|
65
|
+
[7m9[0m import { ReportQueryPlugin } from '@/index';
|
|
66
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
67
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m10[0m:[93m1[0m - [91merror[0m[90m TS6133: [0m'PLUGIN_NAME' is declared but its value is never read.
|
|
68
|
+
|
|
69
|
+
[7m10[0m import { PLUGIN_NAME } from '../const';
|
|
70
|
+
[7m [0m [91m~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
|
|
71
|
+
[96msrc/plugins/report-query-plugin/components/query-opening-lines.tsx[0m:[93m57[0m:[93m58[0m - [91merror[0m[90m TS6133: [0m'title' is declared but its value is never read.
|
|
72
|
+
|
|
73
|
+
[7m57[0m <Suggestions items={defaultSuggestions} onSelect={(title) => {}} iconColor="#4ACC8C" />
|
|
74
|
+
[7m [0m [91m ~~~~~[0m
|
|
75
|
+
[96msrc/plugins/report-query-plugin/components/result-cards/CreatedSourceMsg.tsx[0m:[93m9[0m:[93m49[0m - [91merror[0m[90m TS6133: [0m'done' is declared but its value is never read.
|
|
76
|
+
|
|
77
|
+
[7m9[0m export const CreatedSourceMsg = ({ type, title, done }: { type: QuerySourceType; title: string; done?: boolean }) => {
|
|
78
|
+
[7m [0m [91m ~~~~[0m
|
|
79
|
+
[96msrc/plugins/report-query-plugin/utils/get-field-group.ts[0m:[93m6[0m:[93m27[0m - [91merror[0m[90m TS6133: [0m'IQueryResultXField' is declared but its value is never read.
|
|
80
|
+
|
|
81
|
+
[7m6[0m import { IDashWidgetType, IQueryResultXField } from '@baishuyun/types';
|
|
82
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~[0m
|
|
83
|
+
[96msrc/plugins/report-query-plugin/utils/get-field-group.ts[0m:[93m605[0m:[93m7[0m - [91merror[0m[90m TS6133: [0m'exampleLimitFields' is declared but its value is never read.
|
|
84
|
+
|
|
85
|
+
[7m605[0m const exampleLimitFields: Partial<LimitFieldsConfig> = {
|
|
86
|
+
[7m [0m [91m ~~~~~~~~~~~~~~~~~~[0m
|
|
87
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m108[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
88
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
89
|
+
Types of property 'mediaType' are incompatible.
|
|
90
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
91
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
92
|
+
|
|
93
|
+
[7m108[0m parts: imageParts,
|
|
94
|
+
[7m [0m [91m ~~~~~[0m
|
|
95
|
+
|
|
96
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
97
|
+
[7m6[0m parts: FileUIPart[];
|
|
98
|
+
[7m [0m [96m ~~~~~[0m
|
|
99
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
100
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m114[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
101
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
102
|
+
Types of property 'mediaType' are incompatible.
|
|
103
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
104
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
105
|
+
|
|
106
|
+
[7m114[0m parts: mixedParts,
|
|
107
|
+
[7m [0m [91m ~~~~~[0m
|
|
108
|
+
|
|
109
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
110
|
+
[7m6[0m parts: FileUIPart[];
|
|
111
|
+
[7m [0m [96m ~~~~~[0m
|
|
112
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
113
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m120[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
114
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
115
|
+
Types of property 'mediaType' are incompatible.
|
|
116
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
117
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
118
|
+
|
|
119
|
+
[7m120[0m parts: fileParts,
|
|
120
|
+
[7m [0m [91m ~~~~~[0m
|
|
121
|
+
|
|
122
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
123
|
+
[7m6[0m parts: FileUIPart[];
|
|
124
|
+
[7m [0m [96m ~~~~~[0m
|
|
125
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
126
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m126[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
127
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
128
|
+
Types of property 'mediaType' are incompatible.
|
|
129
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
130
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
131
|
+
|
|
132
|
+
[7m126[0m parts: fileParts,
|
|
133
|
+
[7m [0m [91m ~~~~~[0m
|
|
134
|
+
|
|
135
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
136
|
+
[7m6[0m parts: FileUIPart[];
|
|
137
|
+
[7m [0m [96m ~~~~~[0m
|
|
138
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
139
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m133[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
140
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
141
|
+
Types of property 'mediaType' are incompatible.
|
|
142
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
143
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
144
|
+
|
|
145
|
+
[7m133[0m parts: mixedParts,
|
|
146
|
+
[7m [0m [91m ~~~~~[0m
|
|
147
|
+
|
|
148
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
149
|
+
[7m6[0m parts: FileUIPart[];
|
|
150
|
+
[7m [0m [96m ~~~~~[0m
|
|
151
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
152
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m140[0m:[93m5[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
153
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
154
|
+
Types of property 'mediaType' are incompatible.
|
|
155
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
156
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
157
|
+
|
|
158
|
+
[7m140[0m parts: mixedParts,
|
|
159
|
+
[7m [0m [91m ~~~~~[0m
|
|
160
|
+
|
|
161
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
162
|
+
[7m6[0m parts: FileUIPart[];
|
|
163
|
+
[7m [0m [96m ~~~~~[0m
|
|
164
|
+
The expected type comes from property 'parts' which is declared here on type 'Partial<{ parts: FileUIPart[]; className?: string | undefined; size?: number | undefined; gap?: number | undefined; iconOnly?: boolean | undefined; onPartClick?: ((part: FilePart) => void) | undefined; }> & { ...; }'
|
|
165
|
+
[96msrc/stories/AttachmentPartGroup.stories.tsx[0m:[93m148[0m:[93m28[0m - [91merror[0m[90m TS2322: [0mType 'FilePart[]' is not assignable to type 'FileUIPart[]'.
|
|
166
|
+
Type 'FilePart' is not assignable to type 'FileUIPart'.
|
|
167
|
+
Types of property 'mediaType' are incompatible.
|
|
168
|
+
Type 'string | undefined' is not assignable to type 'string'.
|
|
169
|
+
Type 'undefined' is not assignable to type 'string'.
|
|
170
|
+
|
|
171
|
+
[7m148[0m <AttachmentPartGroup parts={mixedParts} />
|
|
172
|
+
[7m [0m [91m ~~~~~[0m
|
|
173
|
+
|
|
174
|
+
[96msrc/components/bs-ui/attachment-part-group.tsx[0m:[93m6[0m:[93m3[0m
|
|
175
|
+
[7m6[0m parts: FileUIPart[];
|
|
176
|
+
[7m [0m [96m ~~~~~[0m
|
|
177
|
+
The expected type comes from property 'parts' which is declared here on type 'IntrinsicAttributes & AttachmentPartGroupProps'
|
|
178
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @baishuyun/chat-sdk
|
|
2
2
|
|
|
3
|
+
## 0.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update style and bug fix
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @baishuyun/agents@0.0.17
|
|
10
|
+
|
|
11
|
+
## 0.0.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- update sdk style
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @baishuyun/agents@0.0.16
|
|
18
|
+
|
|
3
19
|
## 0.0.16
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|