@docyrus/ui-pro-ai-assistant 0.4.8 → 0.5.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/hooks/use-resolved-record-fields.d.ts +4 -0
- package/dist/index.js +120 -30
- package/dist/index.js.map +1 -1
- package/dist/lib/assistant-config.d.ts +13 -0
- package/dist/styles.css +50 -45
- package/dist/views/projects-panel.d.ts +1 -0
- package/dist/views/sidebar-content.d.ts +1 -0
- package/package.json +3 -3
|
@@ -11,6 +11,14 @@ export interface EnumOption {
|
|
|
11
11
|
name: string;
|
|
12
12
|
color?: string;
|
|
13
13
|
icon?: string;
|
|
14
|
+
parent?: string;
|
|
15
|
+
slug?: string;
|
|
16
|
+
sort_order?: number;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
is_final_option?: boolean;
|
|
19
|
+
force_description?: boolean;
|
|
20
|
+
force_followup_date?: boolean;
|
|
21
|
+
description?: string;
|
|
14
22
|
}
|
|
15
23
|
export interface DataSourceField {
|
|
16
24
|
id: string;
|
|
@@ -20,6 +28,11 @@ export interface DataSourceField {
|
|
|
20
28
|
read_only?: boolean;
|
|
21
29
|
sort_order?: number;
|
|
22
30
|
enumOptions?: EnumOption[];
|
|
31
|
+
/** Inline enum data that may come directly from the field metadata */
|
|
32
|
+
data?: EnumOption[];
|
|
33
|
+
options?: Record<string, unknown>;
|
|
34
|
+
/** Related data source ID for relation fields */
|
|
35
|
+
relation_data_source_id?: string;
|
|
23
36
|
}
|
|
24
37
|
export interface DataSourceSchema {
|
|
25
38
|
id: string;
|
package/dist/styles.css
CHANGED
|
@@ -4656,11 +4656,6 @@
|
|
|
4656
4656
|
opacity: 100%;
|
|
4657
4657
|
}
|
|
4658
4658
|
}
|
|
4659
|
-
.group-data-horizontal\/tabs\:h-9 {
|
|
4660
|
-
&:is(:where(.group\/tabs)[data-horizontal] *) {
|
|
4661
|
-
height: calc(var(--spacing) * 9);
|
|
4662
|
-
}
|
|
4663
|
-
}
|
|
4664
4659
|
.group-data-open\/navigation-menu-trigger\:rotate-180 {
|
|
4665
4660
|
&:is(:where(.group\/navigation-menu-trigger)[data-open] *) {
|
|
4666
4661
|
rotate: 180deg;
|
|
@@ -4676,26 +4671,6 @@
|
|
|
4676
4671
|
color: var(--foreground);
|
|
4677
4672
|
}
|
|
4678
4673
|
}
|
|
4679
|
-
.group-data-vertical\/tabs\:h-fit {
|
|
4680
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
4681
|
-
height: fit-content;
|
|
4682
|
-
}
|
|
4683
|
-
}
|
|
4684
|
-
.group-data-vertical\/tabs\:w-full {
|
|
4685
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
4686
|
-
width: 100%;
|
|
4687
|
-
}
|
|
4688
|
-
}
|
|
4689
|
-
.group-data-vertical\/tabs\:flex-col {
|
|
4690
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
4691
|
-
flex-direction: column;
|
|
4692
|
-
}
|
|
4693
|
-
}
|
|
4694
|
-
.group-data-vertical\/tabs\:justify-start {
|
|
4695
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
4696
|
-
justify-content: flex-start;
|
|
4697
|
-
}
|
|
4698
|
-
}
|
|
4699
4674
|
.group-data-\[active-item\=\'true\'\]\/menu-item\:inline-block {
|
|
4700
4675
|
&:is(:where(.group\/menu-item)[data-active-item='true'] *) {
|
|
4701
4676
|
display: inline-block;
|
|
@@ -4812,6 +4787,31 @@
|
|
|
4812
4787
|
}
|
|
4813
4788
|
}
|
|
4814
4789
|
}
|
|
4790
|
+
.group-data-\[orientation\=horizontal\]\/tabs\:h-9 {
|
|
4791
|
+
&:is(:where(.group\/tabs)[data-orientation="horizontal"] *) {
|
|
4792
|
+
height: calc(var(--spacing) * 9);
|
|
4793
|
+
}
|
|
4794
|
+
}
|
|
4795
|
+
.group-data-\[orientation\=vertical\]\/tabs\:h-fit {
|
|
4796
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
4797
|
+
height: fit-content;
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
.group-data-\[orientation\=vertical\]\/tabs\:w-full {
|
|
4801
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
4802
|
+
width: 100%;
|
|
4803
|
+
}
|
|
4804
|
+
}
|
|
4805
|
+
.group-data-\[orientation\=vertical\]\/tabs\:flex-col {
|
|
4806
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
4807
|
+
flex-direction: column;
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
.group-data-\[orientation\=vertical\]\/tabs\:justify-start {
|
|
4811
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
4812
|
+
justify-content: flex-start;
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
4815
|
.group-data-\[pressed\=true\]\:bg-accent {
|
|
4816
4816
|
&:is(:where(.group)[data-pressed="true"] *) {
|
|
4817
4817
|
background-color: var(--accent);
|
|
@@ -5875,62 +5875,62 @@
|
|
|
5875
5875
|
}
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
.group-data
|
|
5879
|
-
&:is(:where(.group
|
|
5878
|
+
.group-data-\[collapsible\=offcanvas\]\:after\:inset-s-full {
|
|
5879
|
+
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
5880
|
+
&::after {
|
|
5881
|
+
content: var(--tw-content);
|
|
5882
|
+
inset-inline-start: 100%;
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5886
|
+
.group-data-\[orientation\=horizontal\]\/tabs\:after\:inset-x-0 {
|
|
5887
|
+
&:is(:where(.group\/tabs)[data-orientation="horizontal"] *) {
|
|
5880
5888
|
&::after {
|
|
5881
5889
|
content: var(--tw-content);
|
|
5882
5890
|
inset-inline: calc(var(--spacing) * 0);
|
|
5883
5891
|
}
|
|
5884
5892
|
}
|
|
5885
5893
|
}
|
|
5886
|
-
.group-data
|
|
5887
|
-
&:is(:where(.group\/tabs)[data-horizontal] *) {
|
|
5894
|
+
.group-data-\[orientation\=horizontal\]\/tabs\:after\:bottom-\[-5px\] {
|
|
5895
|
+
&:is(:where(.group\/tabs)[data-orientation="horizontal"] *) {
|
|
5888
5896
|
&::after {
|
|
5889
5897
|
content: var(--tw-content);
|
|
5890
5898
|
bottom: -5px;
|
|
5891
5899
|
}
|
|
5892
5900
|
}
|
|
5893
5901
|
}
|
|
5894
|
-
.group-data
|
|
5895
|
-
&:is(:where(.group\/tabs)[data-horizontal] *) {
|
|
5902
|
+
.group-data-\[orientation\=horizontal\]\/tabs\:after\:h-0\.5 {
|
|
5903
|
+
&:is(:where(.group\/tabs)[data-orientation="horizontal"] *) {
|
|
5896
5904
|
&::after {
|
|
5897
5905
|
content: var(--tw-content);
|
|
5898
5906
|
height: calc(var(--spacing) * 0.5);
|
|
5899
5907
|
}
|
|
5900
5908
|
}
|
|
5901
5909
|
}
|
|
5902
|
-
.group-data
|
|
5903
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
5910
|
+
.group-data-\[orientation\=vertical\]\/tabs\:after\:inset-y-0 {
|
|
5911
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
5904
5912
|
&::after {
|
|
5905
5913
|
content: var(--tw-content);
|
|
5906
5914
|
inset-block: calc(var(--spacing) * 0);
|
|
5907
5915
|
}
|
|
5908
5916
|
}
|
|
5909
5917
|
}
|
|
5910
|
-
.group-data
|
|
5911
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
5918
|
+
.group-data-\[orientation\=vertical\]\/tabs\:after\:-inset-e-1 {
|
|
5919
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
5912
5920
|
&::after {
|
|
5913
5921
|
content: var(--tw-content);
|
|
5914
5922
|
inset-inline-end: calc(var(--spacing) * -1);
|
|
5915
5923
|
}
|
|
5916
5924
|
}
|
|
5917
5925
|
}
|
|
5918
|
-
.group-data
|
|
5919
|
-
&:is(:where(.group\/tabs)[data-vertical] *) {
|
|
5926
|
+
.group-data-\[orientation\=vertical\]\/tabs\:after\:w-0\.5 {
|
|
5927
|
+
&:is(:where(.group\/tabs)[data-orientation="vertical"] *) {
|
|
5920
5928
|
&::after {
|
|
5921
5929
|
content: var(--tw-content);
|
|
5922
5930
|
width: calc(var(--spacing) * 0.5);
|
|
5923
5931
|
}
|
|
5924
5932
|
}
|
|
5925
5933
|
}
|
|
5926
|
-
.group-data-\[collapsible\=offcanvas\]\:after\:inset-s-full {
|
|
5927
|
-
&:is(:where(.group)[data-collapsible="offcanvas"] *) {
|
|
5928
|
-
&::after {
|
|
5929
|
-
content: var(--tw-content);
|
|
5930
|
-
inset-inline-start: 100%;
|
|
5931
|
-
}
|
|
5932
|
-
}
|
|
5933
|
-
}
|
|
5934
5934
|
.first\:rounded-s-md {
|
|
5935
5935
|
&:first-child {
|
|
5936
5936
|
border-start-start-radius: var(--radius-md);
|
|
@@ -8262,6 +8262,11 @@
|
|
|
8262
8262
|
width: calc(100% - (calc(var(--spacing) * 12)));
|
|
8263
8263
|
}
|
|
8264
8264
|
}
|
|
8265
|
+
.data-\[orientation\=horizontal\]\:flex-col {
|
|
8266
|
+
&[data-orientation="horizontal"] {
|
|
8267
|
+
flex-direction: column;
|
|
8268
|
+
}
|
|
8269
|
+
}
|
|
8265
8270
|
.data-\[position\=popper\]\:h-\(--radix-select-trigger-height\) {
|
|
8266
8271
|
&[data-position="popper"] {
|
|
8267
8272
|
height: var(--radix-select-trigger-height);
|
|
@@ -9,6 +9,7 @@ interface ProjectsPanelProps {
|
|
|
9
9
|
onEditProject: (project: Project) => void;
|
|
10
10
|
onDeleteProject: (project: Project) => void;
|
|
11
11
|
compact?: boolean;
|
|
12
|
+
sidebarOffset?: boolean;
|
|
12
13
|
t: (key: string, params?: Record<string, string>) => string;
|
|
13
14
|
}
|
|
14
15
|
export declare const AssistantProjectsPanel: FC<ProjectsPanelProps>;
|
|
@@ -16,6 +16,7 @@ interface SidebarContentProps {
|
|
|
16
16
|
onShowMoreProjects: () => void;
|
|
17
17
|
onNewProject?: () => void;
|
|
18
18
|
onToggleSidebar?: () => void;
|
|
19
|
+
supportWorkCanvas?: boolean;
|
|
19
20
|
t: (key: string) => string;
|
|
20
21
|
}
|
|
21
22
|
export declare const SidebarContent: FC<SidebarContentProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docyrus/ui-pro-ai-assistant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Docyrus AI Assistant component — full-featured chat UI with canvas, projects, and i18n support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -140,11 +140,11 @@
|
|
|
140
140
|
"tailwindcss": "4.2.1",
|
|
141
141
|
"tsup": "8.5.1",
|
|
142
142
|
"typescript": "5.9.3",
|
|
143
|
-
"@docyrus/ui-pro-shared": "0.0.
|
|
143
|
+
"@docyrus/ui-pro-shared": "0.0.5"
|
|
144
144
|
},
|
|
145
145
|
"peerDependencies": {
|
|
146
146
|
"@docyrus/api-client": ">=0.1.0",
|
|
147
|
-
"@docyrus/ui-pro-shared": ">=0.0.
|
|
147
|
+
"@docyrus/ui-pro-shared": ">=0.0.5",
|
|
148
148
|
"react": "19.2.4",
|
|
149
149
|
"react-dom": "19.2.4",
|
|
150
150
|
"vite": ">=5.0.0"
|