@openviking/react 0.1.4 → 0.1.6
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/README.md +15 -11
- package/dist/28~0.js +15 -0
- package/dist/2~0.js +6 -3
- package/dist/37~0.js +27 -0
- package/dist/3c~0.js +17 -9
- package/dist/3~0.js +4 -2
- package/dist/ae~0.js +6 -2
- package/dist/a~0.js +79 -72
- package/dist/ck~0.js +4 -0
- package/dist/client/paths.d.ts +4 -0
- package/dist/client/provider.d.ts +10 -6
- package/dist/components/agent-connect/agent-connect-code-block.d.ts +14 -0
- package/dist/components/agent-connect/agent-connect-copy.d.ts +3 -0
- package/dist/components/agent-connect/agent-connect-design.d.ts +1 -1
- package/dist/components/agent-connect/agent-connect-installer.d.ts +1 -0
- package/dist/components/agent-connect/agent-connect-instructions-view.d.ts +4 -6
- package/dist/components/agent-connect/agent-connect-instructions.d.ts +13 -0
- package/dist/components/agent-connect/agent-connect-markdown.d.ts +8 -2
- package/dist/components/agent-connect/agent-connect-mask.d.ts +10 -0
- package/dist/components/agent-connect/agent-connect.d.ts +1 -1
- package/dist/components/agent-connect/locales/en-US.d.ts +3 -0
- package/dist/components/agent-connect/style.css +163 -5
- package/dist/components/agent-connect/types.d.ts +5 -3
- package/dist/components/agent-connect/use-agent-connect-copy.d.ts +6 -0
- package/dist/components/directory-tour/style.css +46 -2
- package/dist/components/directory-tour/types.d.ts +2 -1
- package/dist/components/experience-dashboard/dashboard-tabs.d.ts +11 -0
- package/dist/components/experience-dashboard/experience-dashboard.d.ts +2 -0
- package/dist/components/experience-dashboard/experience-impact.d.ts +11 -0
- package/dist/components/experience-dashboard/experience-list.d.ts +9 -0
- package/dist/components/experience-dashboard/experience-pagination.d.ts +8 -0
- package/dist/components/experience-dashboard/experience-tests.d.ts +6 -0
- package/dist/components/experience-dashboard/experience-trajectories.d.ts +6 -0
- package/dist/components/experience-dashboard/index.d.ts +2 -0
- package/dist/components/experience-dashboard/labels.d.ts +2 -0
- package/dist/components/experience-dashboard/style.css +699 -0
- package/dist/components/experience-dashboard/style.js +0 -0
- package/dist/components/experience-dashboard/types.d.ts +106 -0
- package/dist/components/experience-dashboard.js +1 -0
- package/dist/components/file-browser-entries/file-browser-entries.d.ts +1 -1
- package/dist/components/file-browser-entries/style.css +259 -13
- package/dist/components/file-browser-entries/types.d.ts +2 -2
- package/dist/components/file-preview/style.css +48 -4
- package/dist/components/file-preview/types.d.ts +2 -2
- package/dist/components/file-tree/style.css +63 -4
- package/dist/components/file-tree/types.d.ts +2 -2
- package/dist/components/scope-switcher/scope-switcher.d.ts +2 -2
- package/dist/components/scope-switcher/style.css +48 -4
- package/dist/components/scope-switcher/types.d.ts +5 -5
- package/dist/components/scope-switcher.js +1 -1
- package/dist/components/style.css +2451 -139
- package/dist/components/tui/style.css +122 -36
- package/dist/components/tui/tui.d.ts +1 -1
- package/dist/components/tui/types.d.ts +2 -2
- package/dist/components/viking-bot/ark-message-list-view.d.ts +4 -1
- package/dist/components/viking-bot/interaction/types.d.ts +2 -2
- package/dist/components/viking-bot/interaction/viking-bot-interaction.d.ts +1 -1
- package/dist/components/viking-bot/session-actions.d.ts +2 -2
- package/dist/components/viking-bot/style.css +159 -12
- package/dist/components/viking-bot/types.d.ts +7 -7
- package/dist/components/viking-bot/viking-bot.d.ts +1 -1
- package/dist/components/wiki-dashboard/index.d.ts +2 -0
- package/dist/components/wiki-dashboard/labels.d.ts +2 -0
- package/dist/components/wiki-dashboard/style.css +741 -0
- package/dist/components/wiki-dashboard/style.js +0 -0
- package/dist/components/wiki-dashboard/types.d.ts +92 -0
- package/dist/components/wiki-dashboard/wiki-action-button.d.ts +9 -0
- package/dist/components/wiki-dashboard/wiki-conflict-card.d.ts +15 -0
- package/dist/components/wiki-dashboard/wiki-dashboard.d.ts +2 -0
- package/dist/components/wiki-dashboard/wiki-file-icon.d.ts +3 -0
- package/dist/components/wiki-dashboard/wiki-severity-filter.d.ts +8 -0
- package/dist/components/wiki-dashboard.js +1 -0
- package/dist/c~0.js +169 -155
- package/dist/e~0.js +3 -1
- package/dist/fi~0.js +354 -0
- package/dist/fj~0.js +503 -0
- package/dist/f~0.js +661 -309
- package/dist/icons/index.d.ts +28 -0
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/k~0.js +277 -1
- package/dist/lk~0.js +55 -13
- package/dist/l~0.js +1096 -187
- package/dist/modules/console/console.d.ts +1 -1
- package/dist/modules/console/index.d.ts +1 -2
- package/dist/modules/console/style.css +377 -56
- package/dist/modules/console/types.d.ts +2 -2
- package/dist/modules/console/use-console.d.ts +1 -1
- package/dist/modules/console.js +1 -1
- package/dist/modules/file-browser/dashboard-data.d.ts +9 -0
- package/dist/modules/file-browser/dashboard-indicator.d.ts +8 -0
- package/dist/modules/file-browser/dashboard-labels.d.ts +9 -0
- package/dist/modules/file-browser/dashboard-model.d.ts +14 -0
- package/dist/modules/file-browser/dashboard-resource.d.ts +12 -0
- package/dist/modules/file-browser/experience-dashboard-pane.d.ts +8 -0
- package/dist/modules/file-browser/experience-data.d.ts +31 -0
- package/dist/modules/file-browser/file-browser-labels.d.ts +1 -1
- package/dist/modules/file-browser/file-browser-tree-pane.d.ts +3 -2
- package/dist/modules/file-browser/file-browser.d.ts +1 -1
- package/dist/modules/file-browser/fs-directories.d.ts +8 -0
- package/dist/modules/file-browser/fs-lines.d.ts +36 -0
- package/dist/modules/file-browser/fs-memory-fields.d.ts +65 -0
- package/dist/modules/file-browser/fs-model.d.ts +12 -2
- package/dist/modules/file-browser/fs-read-file.d.ts +14 -0
- package/dist/modules/file-browser/fs-selection.d.ts +4 -0
- package/dist/modules/file-browser/index.d.ts +2 -2
- package/dist/modules/file-browser/style.css +1883 -25
- package/dist/modules/file-browser/types.d.ts +64 -2
- package/dist/modules/file-browser/use-browser-dashboards.d.ts +31 -0
- package/dist/modules/file-browser/use-dashboard-query.d.ts +9 -0
- package/dist/modules/file-browser/use-experience-dashboard.d.ts +27 -0
- package/dist/modules/file-browser/use-file-browser.d.ts +2 -45
- package/dist/modules/file-browser/use-fs-tree.d.ts +2 -0
- package/dist/modules/file-browser/use-wiki-dashboard.d.ts +17 -0
- package/dist/modules/file-browser/wiki-conflicts.d.ts +12 -0
- package/dist/modules/file-browser/wiki-dashboard-pane.d.ts +14 -0
- package/dist/modules/file-browser.js +1 -1
- package/dist/modules/scope-cascade/controller.d.ts +2 -2
- package/dist/modules/scope-cascade/index.d.ts +1 -2
- package/dist/modules/scope-cascade/scope-cascade.d.ts +2 -2
- package/dist/modules/scope-cascade/style.css +48 -4
- package/dist/modules/scope-cascade/types.d.ts +9 -4
- package/dist/modules/scope-cascade/use-scope-cascade.d.ts +2 -2
- package/dist/modules/scope-cascade.js +1 -1
- package/dist/modules/style.css +2459 -192
- package/dist/n~0.js +16 -130
- package/dist/rt~0.js +152 -0
- package/dist/r~0.js +17 -38
- package/dist/shared/components/popover/popover.d.ts +1 -1
- package/dist/shared/components/popover/types.d.ts +7 -1
- package/dist/shared/dashboard/dashboard-state.d.ts +12 -0
- package/dist/shared/locale-context.d.ts +8 -0
- package/dist/static/image/dashboard-background.png +0 -0
- package/dist/style.css +9445 -4822
- package/dist/u~0.js +324 -96
- package/dist/viking-bot-composer~0.js +4 -2
- package/dist/viking-bot-interaction~0.js +3 -1
- package/package.json +14 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ov-directory-tour, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
1
|
+
.ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
2
2
|
--ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
|
|
3
3
|
--ov-ui-tour-highlight-default: #5252ff14;
|
|
4
4
|
--ov-ui-primary-default: #5252ff;
|
|
@@ -35,9 +35,29 @@
|
|
|
35
35
|
--ov-ui-overlay-default: #0006;
|
|
36
36
|
--ov-ui-tooltip-bg-default: #1f2329;
|
|
37
37
|
--ov-ui-tooltip-text-default: #fff;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
--ov-ui-library-swatch-1-default: linear-gradient(145deg,
|
|
39
|
+
#ffd8ec 8%,
|
|
40
|
+
#ffabc8 46%,
|
|
41
|
+
#d8cbff 100%);
|
|
42
|
+
--ov-ui-library-swatch-2-default: linear-gradient(145deg,
|
|
43
|
+
#d9e8ff 8%,
|
|
44
|
+
#b8a6ff 52%,
|
|
45
|
+
#f3d6ff 100%);
|
|
46
|
+
--ov-ui-library-swatch-3-default: linear-gradient(145deg,
|
|
47
|
+
#ffe6bc 8%,
|
|
48
|
+
#ffaf96 48%,
|
|
49
|
+
#ff8bc5 100%);
|
|
50
|
+
--ov-ui-library-swatch-4-default: linear-gradient(145deg,
|
|
51
|
+
#eaf7ba 8%,
|
|
52
|
+
#b5efb8 52%,
|
|
53
|
+
#73d9c6 100%);
|
|
54
|
+
--ov-ui-library-swatch-5-default: linear-gradient(145deg,
|
|
55
|
+
#fff1ba 8%,
|
|
56
|
+
#ffc776 52%,
|
|
57
|
+
#bd9cff 100%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
|
|
41
61
|
--ov-ui-primary-default: #5f5fff;
|
|
42
62
|
--ov-ui-primary-hover-default: #7075ff;
|
|
43
63
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -91,7 +111,31 @@
|
|
|
91
111
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
92
112
|
}
|
|
93
113
|
|
|
94
|
-
.ov-
|
|
114
|
+
.ov-wiki-dashboard, .ov-experience-dashboard, .ov-file-browser {
|
|
115
|
+
--ov-ui-dashboard-surface-default: #f8f8f8;
|
|
116
|
+
--ov-ui-dashboard-card-default: #fafafa;
|
|
117
|
+
--ov-ui-dashboard-muted-default: #787c91;
|
|
118
|
+
--ov-ui-dashboard-border-default: #edeef2;
|
|
119
|
+
--ov-ui-dashboard-warning-default: #eb7d00;
|
|
120
|
+
--ov-ui-dashboard-warning-light-default: #fff0e5;
|
|
121
|
+
--ov-ui-dashboard-danger-default: #d92d54;
|
|
122
|
+
--ov-ui-dashboard-danger-light-default: #ffecee;
|
|
123
|
+
--ov-ui-dashboard-success-default: #4f9c70;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-file-browser {
|
|
127
|
+
--ov-ui-dashboard-surface-default: var(--ov-ui-bg-3-default);
|
|
128
|
+
--ov-ui-dashboard-card-default: var(--ov-ui-bg-3-default);
|
|
129
|
+
--ov-ui-dashboard-muted-default: var(--ov-ui-text-3-default);
|
|
130
|
+
--ov-ui-dashboard-border-default: var(--ov-ui-border-1-default);
|
|
131
|
+
--ov-ui-dashboard-warning-default: var(--ov-ui-warning-default);
|
|
132
|
+
--ov-ui-dashboard-warning-light-default: var(--ov-ui-warning-light-default);
|
|
133
|
+
--ov-ui-dashboard-danger-default: var(--ov-ui-status-error-default);
|
|
134
|
+
--ov-ui-dashboard-danger-light-default: var(--ov-ui-bg-5-default);
|
|
135
|
+
--ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
95
139
|
--ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
|
|
96
140
|
--ov-ui-tour-highlight-default: #5252ff14;
|
|
97
141
|
--ov-ui-primary-default: #5252ff;
|
|
@@ -128,9 +172,29 @@
|
|
|
128
172
|
--ov-ui-overlay-default: #0006;
|
|
129
173
|
--ov-ui-tooltip-bg-default: #1f2329;
|
|
130
174
|
--ov-ui-tooltip-text-default: #fff;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
175
|
+
--ov-ui-library-swatch-1-default: linear-gradient(145deg,
|
|
176
|
+
#ffd8ec 8%,
|
|
177
|
+
#ffabc8 46%,
|
|
178
|
+
#d8cbff 100%);
|
|
179
|
+
--ov-ui-library-swatch-2-default: linear-gradient(145deg,
|
|
180
|
+
#d9e8ff 8%,
|
|
181
|
+
#b8a6ff 52%,
|
|
182
|
+
#f3d6ff 100%);
|
|
183
|
+
--ov-ui-library-swatch-3-default: linear-gradient(145deg,
|
|
184
|
+
#ffe6bc 8%,
|
|
185
|
+
#ffaf96 48%,
|
|
186
|
+
#ff8bc5 100%);
|
|
187
|
+
--ov-ui-library-swatch-4-default: linear-gradient(145deg,
|
|
188
|
+
#eaf7ba 8%,
|
|
189
|
+
#b5efb8 52%,
|
|
190
|
+
#73d9c6 100%);
|
|
191
|
+
--ov-ui-library-swatch-5-default: linear-gradient(145deg,
|
|
192
|
+
#fff1ba 8%,
|
|
193
|
+
#ffc776 52%,
|
|
194
|
+
#bd9cff 100%);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
|
|
134
198
|
--ov-ui-primary-default: #5f5fff;
|
|
135
199
|
--ov-ui-primary-hover-default: #7075ff;
|
|
136
200
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -184,6 +248,30 @@
|
|
|
184
248
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
185
249
|
}
|
|
186
250
|
|
|
251
|
+
.ov-wiki-dashboard, .ov-experience-dashboard, .ov-file-browser {
|
|
252
|
+
--ov-ui-dashboard-surface-default: #f8f8f8;
|
|
253
|
+
--ov-ui-dashboard-card-default: #fafafa;
|
|
254
|
+
--ov-ui-dashboard-muted-default: #787c91;
|
|
255
|
+
--ov-ui-dashboard-border-default: #edeef2;
|
|
256
|
+
--ov-ui-dashboard-warning-default: #eb7d00;
|
|
257
|
+
--ov-ui-dashboard-warning-light-default: #fff0e5;
|
|
258
|
+
--ov-ui-dashboard-danger-default: #d92d54;
|
|
259
|
+
--ov-ui-dashboard-danger-light-default: #ffecee;
|
|
260
|
+
--ov-ui-dashboard-success-default: #4f9c70;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-file-browser {
|
|
264
|
+
--ov-ui-dashboard-surface-default: var(--ov-ui-bg-3-default);
|
|
265
|
+
--ov-ui-dashboard-card-default: var(--ov-ui-bg-3-default);
|
|
266
|
+
--ov-ui-dashboard-muted-default: var(--ov-ui-text-3-default);
|
|
267
|
+
--ov-ui-dashboard-border-default: var(--ov-ui-border-1-default);
|
|
268
|
+
--ov-ui-dashboard-warning-default: var(--ov-ui-warning-default);
|
|
269
|
+
--ov-ui-dashboard-warning-light-default: var(--ov-ui-warning-light-default);
|
|
270
|
+
--ov-ui-dashboard-danger-default: var(--ov-ui-status-error-default);
|
|
271
|
+
--ov-ui-dashboard-danger-light-default: var(--ov-ui-bg-5-default);
|
|
272
|
+
--ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
|
|
273
|
+
}
|
|
274
|
+
|
|
187
275
|
.ov-tooltip {
|
|
188
276
|
--ov-ui-tooltip-bg: var(--ov-ui-color-tooltip-bg, var(--ov-ui-tooltip-bg-default, #1f2329));
|
|
189
277
|
--ov-ui-tooltip-text: var(--ov-ui-color-tooltip-text, var(--ov-ui-tooltip-text-default, #fff));
|
|
@@ -1688,23 +1776,6 @@
|
|
|
1688
1776
|
}
|
|
1689
1777
|
}
|
|
1690
1778
|
|
|
1691
|
-
@container (width <= 480px) {
|
|
1692
|
-
.ov-tui__search-item, .ov-tui__tree-item {
|
|
1693
|
-
flex-direction: column;
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
.ov-tui__search-metrics {
|
|
1697
|
-
flex-direction: row;
|
|
1698
|
-
align-items: center;
|
|
1699
|
-
width: auto;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
.ov-tui__help-item {
|
|
1703
|
-
grid-template-columns: minmax(0, 1fr);
|
|
1704
|
-
gap: 2px;
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
1779
|
.ov-tui__empty--hero {
|
|
1709
1780
|
inline-size: 100%;
|
|
1710
1781
|
min-inline-size: 0;
|
|
@@ -1762,7 +1833,7 @@
|
|
|
1762
1833
|
|
|
1763
1834
|
.ov-tui__empty-action {
|
|
1764
1835
|
background: var(--ov-ui-tui-card-bg);
|
|
1765
|
-
min-block-size:
|
|
1836
|
+
min-block-size: 43px;
|
|
1766
1837
|
inline-size: 100%;
|
|
1767
1838
|
color: inherit;
|
|
1768
1839
|
font: inherit;
|
|
@@ -1770,10 +1841,18 @@
|
|
|
1770
1841
|
cursor: pointer;
|
|
1771
1842
|
border: 0;
|
|
1772
1843
|
border-radius: 16px;
|
|
1773
|
-
grid-template-columns: 14px minmax(132px, .8fr) minmax(0, 1.2fr);
|
|
1774
1844
|
align-items: center;
|
|
1775
1845
|
gap: 12px;
|
|
1776
|
-
padding:
|
|
1846
|
+
padding: 0 16px;
|
|
1847
|
+
display: flex;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
.ov-tui__empty-content {
|
|
1851
|
+
flex: 1;
|
|
1852
|
+
grid-template-columns: 13ch minmax(0, 1fr);
|
|
1853
|
+
align-items: center;
|
|
1854
|
+
column-gap: 20px;
|
|
1855
|
+
min-inline-size: 0;
|
|
1777
1856
|
display: grid;
|
|
1778
1857
|
}
|
|
1779
1858
|
|
|
@@ -1815,30 +1894,37 @@
|
|
|
1815
1894
|
outline-offset: 3px;
|
|
1816
1895
|
}
|
|
1817
1896
|
|
|
1897
|
+
.ov-tui__empty-name, .ov-tui__empty-desc {
|
|
1898
|
+
text-overflow: ellipsis;
|
|
1899
|
+
white-space: nowrap;
|
|
1900
|
+
min-inline-size: 0;
|
|
1901
|
+
overflow: hidden;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1818
1904
|
.ov-tui__empty-name {
|
|
1819
1905
|
color: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default));
|
|
1820
1906
|
font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
|
|
1821
|
-
|
|
1822
|
-
font-size: 15px;
|
|
1907
|
+
font-size: 14px;
|
|
1823
1908
|
}
|
|
1824
1909
|
|
|
1825
1910
|
.ov-tui__empty-desc {
|
|
1826
1911
|
color: var(--ov-ui-color-text-description, var(--ov-ui-text-description-default));
|
|
1827
|
-
|
|
1912
|
+
font-size: 12px;
|
|
1828
1913
|
}
|
|
1829
1914
|
|
|
1830
1915
|
@container (width <= 420px) {
|
|
1831
1916
|
.ov-tui__empty--hero {
|
|
1832
1917
|
padding-block: 16px;
|
|
1833
1918
|
}
|
|
1919
|
+
}
|
|
1834
1920
|
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
gap:
|
|
1921
|
+
@container (width <= 360px) {
|
|
1922
|
+
.ov-tui__empty-content {
|
|
1923
|
+
column-gap: 12px;
|
|
1838
1924
|
}
|
|
1839
1925
|
|
|
1840
|
-
.ov-tui__empty-
|
|
1841
|
-
|
|
1926
|
+
.ov-tui__empty-action {
|
|
1927
|
+
padding-inline: 12px;
|
|
1842
1928
|
}
|
|
1843
1929
|
}
|
|
1844
1930
|
|
|
@@ -8,4 +8,4 @@ export type { TuiCommandHelpContent, TuiCommandHelpItem, TuiCommandHelpSection,
|
|
|
8
8
|
* Command records, results and input. The host owns execution and sessions; the
|
|
9
9
|
* component renders supplied records and reports submission intent and successful copies.
|
|
10
10
|
*/
|
|
11
|
-
export declare function Tui({ records, value, disabled, emptyState, quickCommands, locale, commands, commandGroups, onValueChange, onSubmit, onOpenUri, onCopy, labels, className, ...rest }: TuiProps): import("react").JSX.Element;
|
|
11
|
+
export declare function Tui({ records, value, disabled, emptyState, quickCommands, locale: localeProp, commands, commandGroups, onValueChange, onSubmit, onOpenUri, onCopy, labels, className, ...rest }: TuiProps): import("react").JSX.Element;
|
|
@@ -473,8 +473,6 @@ export interface TuiLabels {
|
|
|
473
473
|
* Provides command completion, parameter hints and help.
|
|
474
474
|
*/
|
|
475
475
|
export interface TuiProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSubmit'> {
|
|
476
|
-
/** 内置中英文文案的语言。Language of the built-in interface copy. */
|
|
477
|
-
locale: Locale;
|
|
478
476
|
/**
|
|
479
477
|
* 当前展示的执行记录,按提交顺序排列;会话与历史切换后由宿主更新。
|
|
480
478
|
* Currently displayed execution records in submission order, updated by the
|
|
@@ -486,6 +484,8 @@ export interface TuiProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCopy'
|
|
|
486
484
|
* Controlled input value.
|
|
487
485
|
*/
|
|
488
486
|
value: string;
|
|
487
|
+
/** 可选文案语言;继承上层,最终默认英文。Optional locale; inherits or defaults to en-US. */
|
|
488
|
+
locale?: Locale;
|
|
489
489
|
/**
|
|
490
490
|
* 是否禁用命令输入与提交,缺省为 `false`。
|
|
491
491
|
* 禁用时的提示文案由 `labels.unavailableMessage` 提供。
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
1
2
|
import type { VikingBotMessageListProps } from './types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Ark 渲染的消息列表。只在懒加载边界之后加载,因此可以静态引用 Ark。
|
|
4
5
|
* The Ark-rendered message list. Loaded behind the lazy boundary, so it may
|
|
5
6
|
* import Ark statically.
|
|
6
7
|
*/
|
|
7
|
-
export declare function VikingBotMessageListView({ messages, className, streaming, footer, listKey, onOpenUri, onCopy, onMessageAction, renderMessage, locale, labels: overrides, }: VikingBotMessageListProps
|
|
8
|
+
export declare function VikingBotMessageListView({ messages, className, streaming, footer, listKey, onOpenUri, onCopy, onMessageAction, renderMessage, locale, labels: overrides, }: VikingBotMessageListProps & {
|
|
9
|
+
locale: Locale;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -164,8 +164,8 @@ export interface VikingBotInteractionLabels {
|
|
|
164
164
|
export interface VikingBotInteractionProps {
|
|
165
165
|
/** 当前问题。The current question. */
|
|
166
166
|
request: VikingBotInteractionRequest;
|
|
167
|
-
/**
|
|
168
|
-
locale
|
|
167
|
+
/** 可选文案语言;继承上层,最终默认英文。Optional locale; inherits or defaults to en-US. */
|
|
168
|
+
locale?: Locale;
|
|
169
169
|
/**
|
|
170
170
|
* 问题的稳定身份;变化时重置表单状态。省略时按 `request.kind` 与序号判定。
|
|
171
171
|
* Stable identity of the question; changes reset the form state. Defaults to
|
|
@@ -6,4 +6,4 @@ import type { VikingBotInteractionProps } from './types.js';
|
|
|
6
6
|
* The pending-interaction area. Ark's AskHuman renders the form; when a question
|
|
7
7
|
* needs a tree picker or an uploader, `custom` hands rendering to the host.
|
|
8
8
|
*/
|
|
9
|
-
export declare function VikingBotInteractionView({ request, className, requestKey, index, total, disabled, submitting, error, onSubmit, onCancel, locale, labels: overrides, }: VikingBotInteractionProps): import("react").JSX.Element;
|
|
9
|
+
export declare function VikingBotInteractionView({ request, className, requestKey, index, total, disabled, submitting, error, onSubmit, onCancel, locale: localeProp, labels: overrides, }: VikingBotInteractionProps): import("react").JSX.Element;
|
|
@@ -3,9 +3,9 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
import type { VikingBotLabels } from './model.js';
|
|
4
4
|
import type { VikingBotSessions } from './capabilities.js';
|
|
5
5
|
/** Session controls can be used alone by a host's shared header. */
|
|
6
|
-
export declare function VikingBotSessionActions({ sessions, extra, labels: overrides, locale, }: {
|
|
6
|
+
export declare function VikingBotSessionActions({ sessions, extra, labels: overrides, locale: localeProp, }: {
|
|
7
7
|
sessions?: VikingBotSessions;
|
|
8
8
|
extra?: ReactNode;
|
|
9
9
|
labels?: VikingBotLabels;
|
|
10
|
-
locale
|
|
10
|
+
locale?: Locale;
|
|
11
11
|
}): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ov-directory-tour, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
1
|
+
.ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
2
2
|
--ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
|
|
3
3
|
--ov-ui-tour-highlight-default: #5252ff14;
|
|
4
4
|
--ov-ui-primary-default: #5252ff;
|
|
@@ -35,9 +35,29 @@
|
|
|
35
35
|
--ov-ui-overlay-default: #0006;
|
|
36
36
|
--ov-ui-tooltip-bg-default: #1f2329;
|
|
37
37
|
--ov-ui-tooltip-text-default: #fff;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
--ov-ui-library-swatch-1-default: linear-gradient(145deg,
|
|
39
|
+
#ffd8ec 8%,
|
|
40
|
+
#ffabc8 46%,
|
|
41
|
+
#d8cbff 100%);
|
|
42
|
+
--ov-ui-library-swatch-2-default: linear-gradient(145deg,
|
|
43
|
+
#d9e8ff 8%,
|
|
44
|
+
#b8a6ff 52%,
|
|
45
|
+
#f3d6ff 100%);
|
|
46
|
+
--ov-ui-library-swatch-3-default: linear-gradient(145deg,
|
|
47
|
+
#ffe6bc 8%,
|
|
48
|
+
#ffaf96 48%,
|
|
49
|
+
#ff8bc5 100%);
|
|
50
|
+
--ov-ui-library-swatch-4-default: linear-gradient(145deg,
|
|
51
|
+
#eaf7ba 8%,
|
|
52
|
+
#b5efb8 52%,
|
|
53
|
+
#73d9c6 100%);
|
|
54
|
+
--ov-ui-library-swatch-5-default: linear-gradient(145deg,
|
|
55
|
+
#fff1ba 8%,
|
|
56
|
+
#ffc776 52%,
|
|
57
|
+
#bd9cff 100%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
|
|
41
61
|
--ov-ui-primary-default: #5f5fff;
|
|
42
62
|
--ov-ui-primary-hover-default: #7075ff;
|
|
43
63
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -91,6 +111,30 @@
|
|
|
91
111
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
92
112
|
}
|
|
93
113
|
|
|
114
|
+
.ov-wiki-dashboard, .ov-experience-dashboard, .ov-file-browser {
|
|
115
|
+
--ov-ui-dashboard-surface-default: #f8f8f8;
|
|
116
|
+
--ov-ui-dashboard-card-default: #fafafa;
|
|
117
|
+
--ov-ui-dashboard-muted-default: #787c91;
|
|
118
|
+
--ov-ui-dashboard-border-default: #edeef2;
|
|
119
|
+
--ov-ui-dashboard-warning-default: #eb7d00;
|
|
120
|
+
--ov-ui-dashboard-warning-light-default: #fff0e5;
|
|
121
|
+
--ov-ui-dashboard-danger-default: #d92d54;
|
|
122
|
+
--ov-ui-dashboard-danger-light-default: #ffecee;
|
|
123
|
+
--ov-ui-dashboard-success-default: #4f9c70;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-file-browser {
|
|
127
|
+
--ov-ui-dashboard-surface-default: var(--ov-ui-bg-3-default);
|
|
128
|
+
--ov-ui-dashboard-card-default: var(--ov-ui-bg-3-default);
|
|
129
|
+
--ov-ui-dashboard-muted-default: var(--ov-ui-text-3-default);
|
|
130
|
+
--ov-ui-dashboard-border-default: var(--ov-ui-border-1-default);
|
|
131
|
+
--ov-ui-dashboard-warning-default: var(--ov-ui-warning-default);
|
|
132
|
+
--ov-ui-dashboard-warning-light-default: var(--ov-ui-warning-light-default);
|
|
133
|
+
--ov-ui-dashboard-danger-default: var(--ov-ui-status-error-default);
|
|
134
|
+
--ov-ui-dashboard-danger-light-default: var(--ov-ui-bg-5-default);
|
|
135
|
+
--ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
|
|
136
|
+
}
|
|
137
|
+
|
|
94
138
|
.ov-viking-bot {
|
|
95
139
|
--ov-viking-bot-radius: 6px;
|
|
96
140
|
--ov-viking-bot-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
|
|
@@ -7233,7 +7277,7 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7233
7277
|
line-height: 20px;
|
|
7234
7278
|
}
|
|
7235
7279
|
|
|
7236
|
-
.ov-directory-tour, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
7280
|
+
.ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
7237
7281
|
--ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
|
|
7238
7282
|
--ov-ui-tour-highlight-default: #5252ff14;
|
|
7239
7283
|
--ov-ui-primary-default: #5252ff;
|
|
@@ -7270,9 +7314,29 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7270
7314
|
--ov-ui-overlay-default: #0006;
|
|
7271
7315
|
--ov-ui-tooltip-bg-default: #1f2329;
|
|
7272
7316
|
--ov-ui-tooltip-text-default: #fff;
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7317
|
+
--ov-ui-library-swatch-1-default: linear-gradient(145deg,
|
|
7318
|
+
#ffd8ec 8%,
|
|
7319
|
+
#ffabc8 46%,
|
|
7320
|
+
#d8cbff 100%);
|
|
7321
|
+
--ov-ui-library-swatch-2-default: linear-gradient(145deg,
|
|
7322
|
+
#d9e8ff 8%,
|
|
7323
|
+
#b8a6ff 52%,
|
|
7324
|
+
#f3d6ff 100%);
|
|
7325
|
+
--ov-ui-library-swatch-3-default: linear-gradient(145deg,
|
|
7326
|
+
#ffe6bc 8%,
|
|
7327
|
+
#ffaf96 48%,
|
|
7328
|
+
#ff8bc5 100%);
|
|
7329
|
+
--ov-ui-library-swatch-4-default: linear-gradient(145deg,
|
|
7330
|
+
#eaf7ba 8%,
|
|
7331
|
+
#b5efb8 52%,
|
|
7332
|
+
#73d9c6 100%);
|
|
7333
|
+
--ov-ui-library-swatch-5-default: linear-gradient(145deg,
|
|
7334
|
+
#fff1ba 8%,
|
|
7335
|
+
#ffc776 52%,
|
|
7336
|
+
#bd9cff 100%);
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
.dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
|
|
7276
7340
|
--ov-ui-primary-default: #5f5fff;
|
|
7277
7341
|
--ov-ui-primary-hover-default: #7075ff;
|
|
7278
7342
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -7326,6 +7390,30 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7326
7390
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
7327
7391
|
}
|
|
7328
7392
|
|
|
7393
|
+
.ov-wiki-dashboard, .ov-experience-dashboard, .ov-file-browser {
|
|
7394
|
+
--ov-ui-dashboard-surface-default: #f8f8f8;
|
|
7395
|
+
--ov-ui-dashboard-card-default: #fafafa;
|
|
7396
|
+
--ov-ui-dashboard-muted-default: #787c91;
|
|
7397
|
+
--ov-ui-dashboard-border-default: #edeef2;
|
|
7398
|
+
--ov-ui-dashboard-warning-default: #eb7d00;
|
|
7399
|
+
--ov-ui-dashboard-warning-light-default: #fff0e5;
|
|
7400
|
+
--ov-ui-dashboard-danger-default: #d92d54;
|
|
7401
|
+
--ov-ui-dashboard-danger-light-default: #ffecee;
|
|
7402
|
+
--ov-ui-dashboard-success-default: #4f9c70;
|
|
7403
|
+
}
|
|
7404
|
+
|
|
7405
|
+
html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-file-browser {
|
|
7406
|
+
--ov-ui-dashboard-surface-default: var(--ov-ui-bg-3-default);
|
|
7407
|
+
--ov-ui-dashboard-card-default: var(--ov-ui-bg-3-default);
|
|
7408
|
+
--ov-ui-dashboard-muted-default: var(--ov-ui-text-3-default);
|
|
7409
|
+
--ov-ui-dashboard-border-default: var(--ov-ui-border-1-default);
|
|
7410
|
+
--ov-ui-dashboard-warning-default: var(--ov-ui-warning-default);
|
|
7411
|
+
--ov-ui-dashboard-warning-light-default: var(--ov-ui-warning-light-default);
|
|
7412
|
+
--ov-ui-dashboard-danger-default: var(--ov-ui-status-error-default);
|
|
7413
|
+
--ov-ui-dashboard-danger-light-default: var(--ov-ui-bg-5-default);
|
|
7414
|
+
--ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
|
|
7415
|
+
}
|
|
7416
|
+
|
|
7329
7417
|
.ov-popover {
|
|
7330
7418
|
--ov-ui-popover-bg: var(--ov-ui-color-bg-1, var(--ov-ui-bg-1-default, #fff));
|
|
7331
7419
|
--ov-ui-popover-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
|
|
@@ -7434,6 +7522,21 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7434
7522
|
transition: background-color .12s;
|
|
7435
7523
|
}
|
|
7436
7524
|
|
|
7525
|
+
.ov-file-tree__popover-anchor-container {
|
|
7526
|
+
pointer-events: none;
|
|
7527
|
+
justify-content: flex-end;
|
|
7528
|
+
display: flex;
|
|
7529
|
+
position: absolute;
|
|
7530
|
+
inset: 0;
|
|
7531
|
+
}
|
|
7532
|
+
|
|
7533
|
+
.ov-file-tree__popover-anchor {
|
|
7534
|
+
flex: none;
|
|
7535
|
+
width: 0;
|
|
7536
|
+
position: sticky;
|
|
7537
|
+
right: 0;
|
|
7538
|
+
}
|
|
7539
|
+
|
|
7437
7540
|
.ov-file-tree__row:hover {
|
|
7438
7541
|
background-color: var(--ov-ui-file-tree-row-hover);
|
|
7439
7542
|
}
|
|
@@ -7810,7 +7913,7 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7810
7913
|
|
|
7811
7914
|
|
|
7812
7915
|
|
|
7813
|
-
.ov-directory-tour, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
7916
|
+
.ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
|
|
7814
7917
|
--ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
|
|
7815
7918
|
--ov-ui-tour-highlight-default: #5252ff14;
|
|
7816
7919
|
--ov-ui-primary-default: #5252ff;
|
|
@@ -7847,9 +7950,29 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7847
7950
|
--ov-ui-overlay-default: #0006;
|
|
7848
7951
|
--ov-ui-tooltip-bg-default: #1f2329;
|
|
7849
7952
|
--ov-ui-tooltip-text-default: #fff;
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7953
|
+
--ov-ui-library-swatch-1-default: linear-gradient(145deg,
|
|
7954
|
+
#ffd8ec 8%,
|
|
7955
|
+
#ffabc8 46%,
|
|
7956
|
+
#d8cbff 100%);
|
|
7957
|
+
--ov-ui-library-swatch-2-default: linear-gradient(145deg,
|
|
7958
|
+
#d9e8ff 8%,
|
|
7959
|
+
#b8a6ff 52%,
|
|
7960
|
+
#f3d6ff 100%);
|
|
7961
|
+
--ov-ui-library-swatch-3-default: linear-gradient(145deg,
|
|
7962
|
+
#ffe6bc 8%,
|
|
7963
|
+
#ffaf96 48%,
|
|
7964
|
+
#ff8bc5 100%);
|
|
7965
|
+
--ov-ui-library-swatch-4-default: linear-gradient(145deg,
|
|
7966
|
+
#eaf7ba 8%,
|
|
7967
|
+
#b5efb8 52%,
|
|
7968
|
+
#73d9c6 100%);
|
|
7969
|
+
--ov-ui-library-swatch-5-default: linear-gradient(145deg,
|
|
7970
|
+
#fff1ba 8%,
|
|
7971
|
+
#ffc776 52%,
|
|
7972
|
+
#bd9cff 100%);
|
|
7973
|
+
}
|
|
7974
|
+
|
|
7975
|
+
.dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
|
|
7853
7976
|
--ov-ui-primary-default: #5f5fff;
|
|
7854
7977
|
--ov-ui-primary-hover-default: #7075ff;
|
|
7855
7978
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -7903,6 +8026,30 @@ textarea.ov-viking-bot__interaction-input {
|
|
|
7903
8026
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
7904
8027
|
}
|
|
7905
8028
|
|
|
8029
|
+
.ov-wiki-dashboard, .ov-experience-dashboard, .ov-file-browser {
|
|
8030
|
+
--ov-ui-dashboard-surface-default: #f8f8f8;
|
|
8031
|
+
--ov-ui-dashboard-card-default: #fafafa;
|
|
8032
|
+
--ov-ui-dashboard-muted-default: #787c91;
|
|
8033
|
+
--ov-ui-dashboard-border-default: #edeef2;
|
|
8034
|
+
--ov-ui-dashboard-warning-default: #eb7d00;
|
|
8035
|
+
--ov-ui-dashboard-warning-light-default: #fff0e5;
|
|
8036
|
+
--ov-ui-dashboard-danger-default: #d92d54;
|
|
8037
|
+
--ov-ui-dashboard-danger-light-default: #ffecee;
|
|
8038
|
+
--ov-ui-dashboard-success-default: #4f9c70;
|
|
8039
|
+
}
|
|
8040
|
+
|
|
8041
|
+
html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-file-browser {
|
|
8042
|
+
--ov-ui-dashboard-surface-default: var(--ov-ui-bg-3-default);
|
|
8043
|
+
--ov-ui-dashboard-card-default: var(--ov-ui-bg-3-default);
|
|
8044
|
+
--ov-ui-dashboard-muted-default: var(--ov-ui-text-3-default);
|
|
8045
|
+
--ov-ui-dashboard-border-default: var(--ov-ui-border-1-default);
|
|
8046
|
+
--ov-ui-dashboard-warning-default: var(--ov-ui-warning-default);
|
|
8047
|
+
--ov-ui-dashboard-warning-light-default: var(--ov-ui-warning-light-default);
|
|
8048
|
+
--ov-ui-dashboard-danger-default: var(--ov-ui-status-error-default);
|
|
8049
|
+
--ov-ui-dashboard-danger-light-default: var(--ov-ui-bg-5-default);
|
|
8050
|
+
--ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
|
|
8051
|
+
}
|
|
8052
|
+
|
|
7906
8053
|
.ov-tooltip {
|
|
7907
8054
|
--ov-ui-tooltip-bg: var(--ov-ui-color-tooltip-bg, var(--ov-ui-tooltip-bg-default, #1f2329));
|
|
7908
8055
|
--ov-ui-tooltip-text: var(--ov-ui-color-tooltip-text, var(--ov-ui-tooltip-text-default, #fff));
|
|
@@ -7,8 +7,8 @@ import type { VikingBotAttachment, VikingBotDraft, VikingBotLabels, VikingBotMes
|
|
|
7
7
|
export interface VikingBotMessageListProps {
|
|
8
8
|
/** 当前会话的消息。Messages in the current session. */
|
|
9
9
|
messages: readonly VikingBotMessage[];
|
|
10
|
-
/**
|
|
11
|
-
locale
|
|
10
|
+
/** 可选文案语言;继承上层,最终默认英文。Optional locale; inherits or defaults to en-US. */
|
|
11
|
+
locale?: Locale;
|
|
12
12
|
/** 附加到根元素的类名。Class name applied to the root element. */
|
|
13
13
|
className?: string;
|
|
14
14
|
/** 助手仍在生成时追加的片段。Parts appended while the assistant is still streaming. */
|
|
@@ -47,8 +47,8 @@ export interface VikingBotComposerRef {
|
|
|
47
47
|
export interface VikingBotComposerProps extends VikingBotInputFeatures {
|
|
48
48
|
/** 受控的草稿文本。Controlled draft text. */
|
|
49
49
|
value: string;
|
|
50
|
-
/**
|
|
51
|
-
locale
|
|
50
|
+
/** 可选文案语言;继承上层,最终默认英文。Optional locale; inherits or defaults to en-US. */
|
|
51
|
+
locale?: Locale;
|
|
52
52
|
/** 附加到根元素的类名。Class name applied to the root element. */
|
|
53
53
|
className?: string;
|
|
54
54
|
/** 宿主已选中的附件。Attachments already selected by the host. */
|
|
@@ -84,8 +84,8 @@ export interface VikingBotComposerProps extends VikingBotInputFeatures {
|
|
|
84
84
|
export interface VikingBotProps extends VikingBotInputFeatures, Omit<HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSubmit'> {
|
|
85
85
|
/** 当前会话的消息。Messages in the current session. */
|
|
86
86
|
messages: readonly VikingBotMessage[];
|
|
87
|
-
/**
|
|
88
|
-
locale
|
|
87
|
+
/** 可选文案语言;继承上层,最终默认英文。Optional locale; inherits or defaults to en-US. */
|
|
88
|
+
locale?: Locale;
|
|
89
89
|
/** Host-owned session history and actions. */
|
|
90
90
|
sessions?: VikingBotSessions;
|
|
91
91
|
/** Optional extension controls, such as a host-provided More menu. */
|
|
@@ -120,7 +120,7 @@ export interface VikingBotProps extends VikingBotInputFeatures, Omit<HTMLAttribu
|
|
|
120
120
|
* 待确认交互的配置;存在时替代输入区。
|
|
121
121
|
* Configuration of a pending interaction; replaces the composer.
|
|
122
122
|
*/
|
|
123
|
-
interaction?:
|
|
123
|
+
interaction?: VikingBotInteractionProps;
|
|
124
124
|
/**
|
|
125
125
|
* 整块替换交互区;传值时忽略 `interaction` 的内置渲染,宿主自行渲染。
|
|
126
126
|
* Replaces the whole interaction area; when set, the built-in rendering of
|
|
@@ -8,4 +8,4 @@ import type { VikingBotProps } from './types.js';
|
|
|
8
8
|
* interaction can each be replaced by the host; the built-in implementations
|
|
9
9
|
* are used when they are omitted.
|
|
10
10
|
*/
|
|
11
|
-
export declare function VikingBot({ messages, className, streaming, draft, attachments, isSending, isAvailable, unavailableMessage, emptyState, header, sessions, headerActions, locale, quickInputs, onQuickInputSelect, references, footer, children, messageList, composer, interaction, interactionSlot, listKey, composerRef, onDraftChange, onFilesAdded, onAttachmentRemove, onSend, onCancel, onOpenUri, onCopy, onMessageAction, labels: overrides, ...rest }: VikingBotProps): import("react").JSX.Element;
|
|
11
|
+
export declare function VikingBot({ messages, className, streaming, draft, attachments, isSending, isAvailable, unavailableMessage, emptyState, header, sessions, headerActions, locale: localeProp, quickInputs, onQuickInputSelect, references, footer, children, messageList, composer, interaction, interactionSlot, listKey, composerRef, onDraftChange, onFilesAdded, onAttachmentRemove, onSend, onCancel, onOpenUri, onCopy, onMessageAction, labels: overrides, ...rest }: VikingBotProps): import("react").JSX.Element;
|