cozy-search 0.15.0 → 0.16.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/assets/anthropic.svg +7 -0
- package/dist/assets/gemini.svg +109 -0
- package/dist/assets/meta.svg +22 -0
- package/dist/assets/mistral.svg +19 -0
- package/dist/assets/open_ai.svg +10 -0
- package/dist/assets/openrag.png +0 -0
- package/dist/components/AssistantProvider.js +39 -2
- package/dist/components/Conversations/AssistantAvatar.d.ts +4 -0
- package/dist/components/Conversations/AssistantAvatar.js +67 -0
- package/dist/components/Conversations/AssistantSelection.d.ts +4 -0
- package/dist/components/Conversations/AssistantSelection.js +164 -0
- package/dist/components/Conversations/AssistantSelectionItem.d.ts +11 -0
- package/dist/components/Conversations/AssistantSelectionItem.js +119 -0
- package/dist/components/Conversations/ConversationBar.js +21 -1
- package/dist/components/Conversations/styles.styl +88 -0
- package/dist/components/CreateAssistantSteps/ApiKeyStep.d.ts +7 -0
- package/dist/components/CreateAssistantSteps/ApiKeyStep.js +151 -0
- package/dist/components/CreateAssistantSteps/AssistantDialogContent.d.ts +10 -0
- package/dist/components/CreateAssistantSteps/AssistantDialogContent.js +59 -0
- package/dist/components/CreateAssistantSteps/BasicInfoStep.d.ts +8 -0
- package/dist/components/CreateAssistantSteps/BasicInfoStep.js +136 -0
- package/dist/components/CreateAssistantSteps/Provider.d.ts +6 -0
- package/dist/components/CreateAssistantSteps/Provider.js +517 -0
- package/dist/components/CreateAssistantSteps/ProviderSelectionStep.d.ts +5 -0
- package/dist/components/CreateAssistantSteps/ProviderSelectionStep.js +122 -0
- package/dist/components/CreateAssistantSteps/helpers.d.ts +1 -0
- package/dist/components/CreateAssistantSteps/helpers.js +90 -0
- package/dist/components/CreateAssistantSteps/providers.json +63 -0
- package/dist/components/CreateAssistantSteps/styles.styl +62 -0
- package/dist/components/CreateAssistantSteps/useAssistantDialog.d.ts +53 -0
- package/dist/components/CreateAssistantSteps/useAssistantDialog.js +224 -0
- package/dist/components/Search/SearchBarMobile.js +21 -1
- package/dist/components/Views/AssistantDialog.js +38 -3
- package/dist/components/Views/CreateAssistantDialog.d.ts +5 -0
- package/dist/components/Views/CreateAssistantDialog.js +170 -0
- package/dist/components/Views/DeleteAssistantDialog.d.ts +5 -0
- package/dist/components/Views/DeleteAssistantDialog.js +176 -0
- package/dist/components/Views/EditAssistantDialog.d.ts +5 -0
- package/dist/components/Views/EditAssistantDialog.js +235 -0
- package/dist/components/constants.d.ts +4 -0
- package/dist/components/constants.js +11 -0
- package/dist/components/queries.d.ts +16 -0
- package/dist/components/queries.js +34 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/locales/en.json +103 -0
- package/dist/locales/fr.json +103 -0
- package/dist/locales/index.js +412 -0
- package/dist/locales/ru.json +104 -1
- package/dist/locales/vi.json +104 -1
- package/dist/stylesheet.css +147 -0
- package/package.json +13 -13
package/dist/stylesheet.css
CHANGED
|
@@ -31,6 +31,93 @@
|
|
|
31
31
|
max-height: 155px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
.styles__chatConversation___2EmkA {
|
|
35
|
+
overflow-y: scroll;
|
|
36
|
+
}
|
|
37
|
+
.styles__chatConversation___2EmkA::-webkit-scrollbar {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
.styles__conversationHeaderBar___C8tlD {
|
|
41
|
+
box-shadow: inset 0 -1px 0 0 var(--dividerColor);
|
|
42
|
+
background-color: var(--paperBackgroundColor);
|
|
43
|
+
}
|
|
44
|
+
.styles__conversationList___2GCzV {
|
|
45
|
+
box-shadow: inset -1px 0 0 0 var(--dividerColor);
|
|
46
|
+
}
|
|
47
|
+
.styles__conversationList--container___2xRAG {
|
|
48
|
+
overflow-y: scroll;
|
|
49
|
+
}
|
|
50
|
+
.styles__conversationList--container___2xRAG::-webkit-scrollbar {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
.styles__conversationList--hidden___20BsT {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
.styles__conversationListItem--selected___2jCyB {
|
|
57
|
+
background-color: var(--defaultBackgroundColor) !important;
|
|
58
|
+
}
|
|
59
|
+
.styles__menuToggler___39GfB {
|
|
60
|
+
position: absolute;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
}
|
|
63
|
+
.styles__menuToggler--disabled___15vd4 {
|
|
64
|
+
border-bottom: 1px solid var(--dividerColor);
|
|
65
|
+
border-right: 1px solid var(--dividerColor);
|
|
66
|
+
border-bottom-right-radius: 1rem;
|
|
67
|
+
background: var(--paperBackgroundColor);
|
|
68
|
+
}
|
|
69
|
+
.styles__conversationChips-container___327dE {
|
|
70
|
+
gap: 0px;
|
|
71
|
+
}
|
|
72
|
+
.styles__conversationChips-startIcon___1yOVn {
|
|
73
|
+
opacity: 0.6;
|
|
74
|
+
}
|
|
75
|
+
.styles__conversationChips-chipIcon___1wmF- {
|
|
76
|
+
margin-left: 12px !important;
|
|
77
|
+
}
|
|
78
|
+
.styles__conversationChips-deleteIcon___s9C40 {
|
|
79
|
+
height: 1rem !important;
|
|
80
|
+
}
|
|
81
|
+
.styles__conversationChips-deleteIcon___s9C40.styles__is-warning___3sa0v {
|
|
82
|
+
fill: var(--warningColor);
|
|
83
|
+
color: var(--warningColor);
|
|
84
|
+
}
|
|
85
|
+
.styles__conversationChips-chip___2PqQv {
|
|
86
|
+
border-style: solid;
|
|
87
|
+
margin-right: 0 !important;
|
|
88
|
+
}
|
|
89
|
+
.styles__trigger-button___EA3_H {
|
|
90
|
+
border-radius: 20px;
|
|
91
|
+
padding: 4px 12px;
|
|
92
|
+
border: 1px solid var(--borderMainColor);
|
|
93
|
+
background-color: var(--paperBackgroundColor);
|
|
94
|
+
text-transform: none;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
}
|
|
97
|
+
.styles__assistant-icon___3A2Fr {
|
|
98
|
+
width: 24px;
|
|
99
|
+
height: 24px;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
margin-right: 8px;
|
|
102
|
+
object-fit: cover;
|
|
103
|
+
}
|
|
104
|
+
.styles__menu-item___CjGL5 {
|
|
105
|
+
display: flex !important;
|
|
106
|
+
align-items: center !important;
|
|
107
|
+
justify-content: space-between !important;
|
|
108
|
+
}
|
|
109
|
+
.styles__menu-item___CjGL5.styles__create-item___1l-0E {
|
|
110
|
+
border-top: 1px solid var(--dividerColor);
|
|
111
|
+
}
|
|
112
|
+
.styles__menu-item___CjGL5:hover .styles__menu-item-icon-button___3jTu9 {
|
|
113
|
+
display: block !important;
|
|
114
|
+
}
|
|
115
|
+
.styles__menu-item-icon-button___3jTu9 {
|
|
116
|
+
display: none !important;
|
|
117
|
+
}
|
|
118
|
+
.styles__create-icon___2LIb2 {
|
|
119
|
+
margin-right: 8px;
|
|
120
|
+
}
|
|
34
121
|
/* imported from styles.styl */
|
|
35
122
|
|
|
36
123
|
.styles__sourcesItem___204Zw {
|
|
@@ -40,6 +127,66 @@
|
|
|
40
127
|
}
|
|
41
128
|
/* imported from styles.styl */
|
|
42
129
|
|
|
130
|
+
.styles__BasicInfoStep___2r0eM .styles__avatar-container___kJ_64 {
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
border: 1px solid #e5e5e5;
|
|
133
|
+
}
|
|
134
|
+
.styles__BasicInfoStep___2r0eM .styles__avatar-image___2Mkxj {
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
}
|
|
137
|
+
.styles__BasicInfoStep___2r0eM .styles__file-input___2fB5n {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
.styles__ModelSelectionStep___1auXB .styles__grid-container___3wOus {
|
|
141
|
+
display: grid;
|
|
142
|
+
grid-template-columns: 1fr 1fr;
|
|
143
|
+
gap: 16px;
|
|
144
|
+
}
|
|
145
|
+
.styles__ModelSelectionStep___1auXB .styles__model-card___fbAqF {
|
|
146
|
+
border-radius: 16px;
|
|
147
|
+
border: 1px solid #e5e5e5;
|
|
148
|
+
position: relative;
|
|
149
|
+
transition: border-color 0.2s ease;
|
|
150
|
+
text-align: left;
|
|
151
|
+
background: inherit;
|
|
152
|
+
}
|
|
153
|
+
.styles__ModelSelectionStep___1auXB .styles__model-card___fbAqF.styles__selected___2KyhU {
|
|
154
|
+
border: 1px solid var(--primaryColor);
|
|
155
|
+
}
|
|
156
|
+
.styles__ModelSelectionStep___1auXB .styles__model-card___fbAqF.styles__openrag___3wGb4 {
|
|
157
|
+
background: linear-gradient(90deg, #eff6ff 0%, #faf5ff 100%);
|
|
158
|
+
}
|
|
159
|
+
.styles__ModelSelectionStep___1auXB .styles__icon-container___1vaTp {
|
|
160
|
+
width: 53px;
|
|
161
|
+
height: 53px;
|
|
162
|
+
border-radius: 16px;
|
|
163
|
+
background-size: cover;
|
|
164
|
+
background-position: center;
|
|
165
|
+
}
|
|
166
|
+
.styles__ModelSelectionStep___1auXB .styles__icon-container--google___3gtC7 {
|
|
167
|
+
background-color: #f0f4fa;
|
|
168
|
+
}
|
|
169
|
+
.styles__ModelSelectionStep___1auXB .styles__icon-container--custom___1_EFK {
|
|
170
|
+
background-color: #f5f5f5;
|
|
171
|
+
}
|
|
172
|
+
.styles__ModelSelectionStep___1auXB .styles__icon-container--openai___3DsoO {
|
|
173
|
+
background-color: #fff;
|
|
174
|
+
}
|
|
175
|
+
.styles__ModelSelectionStep___1auXB .styles__check-icon___3uPUk {
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 16px;
|
|
178
|
+
right: 16px;
|
|
179
|
+
border-radius: 100%;
|
|
180
|
+
background-color: var(--successColor);
|
|
181
|
+
color: var(--white);
|
|
182
|
+
}
|
|
183
|
+
.styles__CreateAssistantDialog___1dSe_ .styles__close-button___3jc_w {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 10px;
|
|
186
|
+
right: 10px;
|
|
187
|
+
}
|
|
188
|
+
/* imported from styles.styl */
|
|
189
|
+
|
|
43
190
|
.styles__resultMenu___o76q- {
|
|
44
191
|
overflow: hidden;
|
|
45
192
|
max-height: 16.5rem;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-search",
|
|
3
3
|
"description": "UI components about search bar and IA assistant",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cozy Cloud",
|
|
7
7
|
"url": "https://github.com/cozy"
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"babel-plugin-inline-react-svg": "1.1.2",
|
|
25
25
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
26
26
|
"babel-plugin-tsconfig-paths": "^1.0.3",
|
|
27
|
-
"babel-preset-cozy-app": "^2.8.
|
|
28
|
-
"cozy-client": "^
|
|
29
|
-
"cozy-device-helper": "^4.0.
|
|
30
|
-
"cozy-flags": "^4.8.
|
|
31
|
-
"cozy-intent": "^2.30.
|
|
27
|
+
"babel-preset-cozy-app": "^2.8.3",
|
|
28
|
+
"cozy-client": "^60.21.0",
|
|
29
|
+
"cozy-device-helper": "^4.0.2",
|
|
30
|
+
"cozy-flags": "^4.8.2",
|
|
31
|
+
"cozy-intent": "^2.30.2",
|
|
32
32
|
"cozy-logger": "^1.17.0",
|
|
33
33
|
"cozy-minilog": "^3.10.0",
|
|
34
34
|
"cozy-pouch-link": "^54.0.0",
|
|
35
|
-
"cozy-realtime": "^5.8.
|
|
36
|
-
"cozy-ui": "^135.
|
|
37
|
-
"cozy-ui-plus": "^4.4.
|
|
35
|
+
"cozy-realtime": "^5.8.2",
|
|
36
|
+
"cozy-ui": "^135.6.0",
|
|
37
|
+
"cozy-ui-plus": "^4.4.1",
|
|
38
38
|
"cross-fetch": "^4.0.0",
|
|
39
39
|
"jest": "26.6.3",
|
|
40
40
|
"react": "16.12.0",
|
|
41
41
|
"react-dom": "16.13.0",
|
|
42
42
|
"react-router-dom": "6.14.2",
|
|
43
43
|
"stylus": "^0.64.0",
|
|
44
|
-
"twake-i18n": "^0.3.
|
|
44
|
+
"twake-i18n": "^0.3.1",
|
|
45
45
|
"typescript": "5.5.2"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"./dist/stylesheet.css": "./dist/stylesheet.css"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"cozy-client": ">=
|
|
62
|
+
"cozy-client": ">=60.21.0",
|
|
63
63
|
"cozy-device-helper": ">=3.7.1",
|
|
64
64
|
"cozy-flags": ">=4.6.1",
|
|
65
65
|
"cozy-intent": ">=2.26.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"cozy-minilog": ">=3.3.1",
|
|
68
68
|
"cozy-pouch-link": "54.0.0",
|
|
69
69
|
"cozy-realtime": ">=5.6.4",
|
|
70
|
-
"cozy-ui": ">=135.
|
|
70
|
+
"cozy-ui": ">=135.6.0",
|
|
71
71
|
"cozy-ui-plus": ">=1.2.0",
|
|
72
72
|
"react": ">=16.12.0",
|
|
73
73
|
"react-dom": ">=16.12.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"lint": "cd .. && yarn eslint --ext js,jsx,ts packages/cozy-search"
|
|
92
92
|
},
|
|
93
93
|
"types": "dist/index.d.ts",
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "2711a53bae29e971c1d3748920efa33a58af2141"
|
|
95
95
|
}
|