@alquimia-ai/ui 1.2.4 → 1.3.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/dist/components/atoms/index.d.mts +4 -1
- package/dist/components/atoms/index.d.ts +4 -1
- package/dist/components/atoms/index.js +39 -17
- package/dist/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs +35 -13
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +39 -17
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +35 -13
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.js +82 -52
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs +67 -37
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js +145 -124
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs +137 -116
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js +31 -10
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs +30 -9
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.d.mts +3 -1
- package/dist/components/organisms/index.d.ts +3 -1
- package/dist/components/organisms/index.js +187 -164
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +175 -152
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/cards/index.js +57 -36
- package/dist/components/templates/cards/index.js.map +1 -1
- package/dist/components/templates/cards/index.mjs +45 -24
- package/dist/components/templates/cards/index.mjs.map +1 -1
- package/dist/components/templates/index.js +57 -36
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs +45 -24
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +242 -218
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +220 -196
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -1
- package/dist/types/index.d.mts +12 -1
- package/dist/types/index.d.ts +12 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alquimia-ai/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "Alquimia AI",
|
|
5
5
|
"description": "UI components for Alquimia SDK",
|
|
6
6
|
"private": false,
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"@radix-ui/react-toggle": "^1.1.0",
|
|
119
119
|
"@radix-ui/react-tooltip": "^1.1.3",
|
|
120
120
|
"@tanstack/react-table": "^8.20.5",
|
|
121
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
121
122
|
"class-variance-authority": "^0.7.0",
|
|
122
123
|
"clsx": "^2.1.1",
|
|
123
124
|
"cmdk": "1.0.0",
|
package/dist/types/index.d.mts
CHANGED
|
@@ -64,5 +64,16 @@ interface TWYDServerActions {
|
|
|
64
64
|
sendRating?: (ratingData: RatingData) => Promise<any>;
|
|
65
65
|
logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;
|
|
66
66
|
}
|
|
67
|
+
interface ToolFactory {
|
|
68
|
+
createTool: (tool: string, payload: any) => React.ReactNode | null;
|
|
69
|
+
}
|
|
70
|
+
type Tooler = {
|
|
71
|
+
tool_summary?: ToolSummary;
|
|
72
|
+
tool_output?: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
type ToolSummary = {
|
|
75
|
+
name: string;
|
|
76
|
+
parameters: Record<string, any>;
|
|
77
|
+
};
|
|
67
78
|
|
|
68
|
-
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TWYDServerActions, type TopicRating };
|
|
79
|
+
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TWYDServerActions, type ToolFactory, type ToolSummary, type Tooler, type TopicRating };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -64,5 +64,16 @@ interface TWYDServerActions {
|
|
|
64
64
|
sendRating?: (ratingData: RatingData) => Promise<any>;
|
|
65
65
|
logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;
|
|
66
66
|
}
|
|
67
|
+
interface ToolFactory {
|
|
68
|
+
createTool: (tool: string, payload: any) => React.ReactNode | null;
|
|
69
|
+
}
|
|
70
|
+
type Tooler = {
|
|
71
|
+
tool_summary?: ToolSummary;
|
|
72
|
+
tool_output?: Record<string, any>;
|
|
73
|
+
};
|
|
74
|
+
type ToolSummary = {
|
|
75
|
+
name: string;
|
|
76
|
+
parameters: Record<string, any>;
|
|
77
|
+
};
|
|
67
78
|
|
|
68
|
-
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TWYDServerActions, type TopicRating };
|
|
79
|
+
export { type ActionError, type ActionResponse, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, EditingStatus, type ErrorDetails, type RatingData, type TWYDServerActions, type ToolFactory, type ToolSummary, type Tooler, type TopicRating };
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts","../../src/types/type.ts"],"sourcesContent":["export * from \"./type\";\n","export type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgCO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;","names":["EditingStatus"]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts","../../src/types/type.ts"],"sourcesContent":["export * from \"./type\";\n","export type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}\n\nexport interface ToolFactory {\n createTool: (tool: string, payload: any) => React.ReactNode | null;\n}\n\nexport type Tooler = {\n tool_summary?: ToolSummary;\n tool_output?: Record<string, any>;\n}\n\nexport type ToolSummary = {\n name: string;\n parameters: Record<string, any>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgCO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;","names":["EditingStatus"]}
|
package/dist/types/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/type.ts"],"sourcesContent":["export type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}"],"mappings":";AAgCO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;","names":["EditingStatus"]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/type.ts"],"sourcesContent":["export type AlquimiaDocument = {\n id: string;\n name: string;\n description?: string;\n isActive: boolean;\n contentType: string;\n url: string;\n updatedAt?: string;\n};\n\nexport type AlquimiaTopic = {\n id: string;\n externalCollectionId: string;\n isActive: boolean;\n name: string;\n description: string;\n createdAt?: string;\n updatedAt?: string;\n files: AlquimiaDocument[];\n ratings?: TopicRating[];\n};\n\nexport type TopicRating = {\n id: number;\n sessionId: string;\n}\n\nexport type AlquimiaFile = {\n id: string;\n file: Blob;\n}\n\nexport enum EditingStatus {\n EDITING = 'EDITING',\n FINISHED = 'FINISHED',\n}\n\nexport interface RatingData {\n assistantId: string;\n sessionId: string;\n topicId: number;\n score?: number;\n emoji?: string;\n description?: string;\n};\n\nexport interface ActionResponse<T = void> {\n success: boolean;\n data?: T;\n error?: ActionError;\n}\n\nexport type ActionError = {\n message: string;\n code?: string;\n details?: ErrorDetails;\n}\n\nexport type ErrorDetails = {\n status: string;\n statusText?: string;\n}\n\nexport type ApiError = Error & {\n message: string;\n name: string;\n cause: string;\n code?: string | number;\n status?: string | number;\n}\n\nexport interface TWYDServerActions {\n getDocument?: (id: string) => Promise<ActionResponse<Blob>>;\n sendRating?: (ratingData: RatingData) => Promise<any>;\n logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;\n}\n\nexport interface ToolFactory {\n createTool: (tool: string, payload: any) => React.ReactNode | null;\n}\n\nexport type Tooler = {\n tool_summary?: ToolSummary;\n tool_output?: Record<string, any>;\n}\n\nexport type ToolSummary = {\n name: string;\n parameters: Record<string, any>;\n}\n"],"mappings":";AAgCO,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,cAAW;AAFD,SAAAA;AAAA,GAAA;","names":["EditingStatus"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alquimia-ai/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "Alquimia AI",
|
|
5
5
|
"description": "UI components for Alquimia SDK",
|
|
6
6
|
"private": false,
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
"@radix-ui/react-toggle": "^1.1.0",
|
|
136
136
|
"@radix-ui/react-tooltip": "^1.1.3",
|
|
137
137
|
"@tanstack/react-table": "^8.20.5",
|
|
138
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
138
139
|
"class-variance-authority": "^0.7.0",
|
|
139
140
|
"clsx": "^2.1.1",
|
|
140
141
|
"cmdk": "1.0.0",
|