@openviking/react 0.1.5 → 0.1.7
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/2~0.js +6 -5
- package/dist/37~0.js +27 -0
- package/dist/3c~0.js +24 -12
- package/dist/3~0.js +19 -9
- package/dist/ae~0.js +8 -1
- package/dist/ark-message-list-view~0.js +9 -4
- package/dist/a~0.js +13 -7
- package/dist/c7r~0.js +50 -0
- package/dist/ck~0.js +7 -0
- package/dist/client/paths.d.ts +10 -0
- package/dist/client/provider.d.ts +6 -1
- package/dist/components/agent-connect/style.css +268 -37
- package/dist/components/directory-tour/style.css +265 -21
- package/dist/components/directory-tour.js +1 -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 +914 -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/style.css +463 -86
- package/dist/components/file-preview/style.css +267 -78
- package/dist/components/file-tree/file-tree-toolbar.d.ts +3 -3
- package/dist/components/file-tree/locales/en-US.d.ts +3 -0
- package/dist/components/file-tree/locales/zh-CN.d.ts +3 -0
- package/dist/components/file-tree/style.css +372 -88
- package/dist/components/file-tree/types.d.ts +13 -4
- package/dist/components/scope-switcher/style.css +412 -39
- package/dist/components/style.css +9326 -4553
- package/dist/components/tui/style.css +385 -67
- package/dist/components/viking-bot/interaction/style.css +143 -22
- package/dist/components/viking-bot/style.css +1075 -278
- 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 +956 -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 +16 -8
- package/dist/ep~0.js +345 -0
- package/dist/e~0.js +33 -328
- package/dist/fj~0.js +507 -0
- package/dist/fl~0.js +709 -0
- package/dist/f~0.js +12 -27
- 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 +56 -14
- package/dist/l~0.js +2786 -446
- package/dist/modules/console/index.d.ts +1 -2
- package/dist/modules/console/style.css +1787 -346
- package/dist/modules/console.js +1 -1
- package/dist/modules/file-browser/acl/acl-add-principal.d.ts +12 -0
- package/dist/modules/file-browser/acl/acl-candidate.d.ts +8 -0
- package/dist/modules/file-browser/acl/acl-client.d.ts +13 -0
- package/dist/modules/file-browser/acl/acl-confirmation.d.ts +6 -0
- package/dist/modules/file-browser/acl/acl-entry.d.ts +13 -0
- package/dist/modules/file-browser/acl/acl-labels.d.ts +47 -0
- package/dist/modules/file-browser/acl/acl-menu.d.ts +10 -0
- package/dist/modules/file-browser/acl/acl-modal.d.ts +17 -0
- package/dist/modules/file-browser/acl/acl-model.d.ts +17 -0
- package/dist/modules/file-browser/acl/acl-principal-tabs.d.ts +6 -0
- package/dist/modules/file-browser/acl/acl-tag.d.ts +7 -0
- package/dist/modules/file-browser/acl/locales/en-US.d.ts +44 -0
- package/dist/modules/file-browser/acl/locales/zh-CN.d.ts +44 -0
- package/dist/modules/file-browser/acl/use-acl-principals.d.ts +17 -0
- package/dist/modules/file-browser/acl/use-acl-report.d.ts +27 -0
- package/dist/modules/file-browser/acl-types.d.ts +86 -0
- 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 +17 -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-detail.d.ts +4 -1
- package/dist/modules/file-browser/file-browser-labels.d.ts +1 -1
- package/dist/modules/file-browser/file-browser-search.d.ts +20 -0
- package/dist/modules/file-browser/file-browser-toolbar.d.ts +3 -10
- package/dist/modules/file-browser/file-browser-tree-pane.d.ts +4 -7
- package/dist/modules/file-browser/file-browser.d.ts +1 -1
- package/dist/modules/file-browser/fs-directories.d.ts +9 -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 +15 -3
- package/dist/modules/file-browser/fs-read-file.d.ts +14 -0
- package/dist/modules/file-browser/index.d.ts +3 -2
- package/dist/modules/file-browser/locales/en-US.d.ts +5 -0
- package/dist/modules/file-browser/locales/zh-CN.d.ts +5 -0
- package/dist/modules/file-browser/style.css +4033 -483
- package/dist/modules/file-browser/types.d.ts +82 -20
- 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-acl.d.ts +15 -0
- package/dist/modules/file-browser/use-file-browser.d.ts +6 -51
- package/dist/modules/file-browser/use-fs-tree.d.ts +3 -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 +1 -1
- package/dist/modules/scope-cascade/style.css +581 -39
- package/dist/modules/scope-cascade/types.d.ts +8 -3
- 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 +13589 -7966
- package/dist/n~0.js +73 -165
- package/dist/rt~0.js +255 -0
- package/dist/r~0.js +18 -39
- package/dist/shared/components/button/button.d.ts +20 -0
- package/dist/shared/components/input/input.d.ts +17 -0
- package/dist/shared/components/modal/locales/en-US.d.ts +4 -0
- package/dist/shared/components/modal/locales/zh-CN.d.ts +4 -0
- package/dist/shared/components/modal/modal.d.ts +2 -0
- package/dist/shared/components/modal/types.d.ts +18 -0
- package/dist/shared/components/overlay/lock-body-scroll.d.ts +1 -0
- 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/static/image/dashboard-background.png +0 -0
- package/dist/style.css +16088 -5602
- package/dist/s~0.js +16 -0
- package/dist/u~0.js +15 -6
- package/dist/viking-bot-composer~0.js +30 -12
- package/dist/viking-bot-interaction~0.js +2 -1
- package/package.json +14 -3
- package/dist/o~0.js +0 -106
|
File without changes
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { DashboardStatus } from '../../shared/dashboard/dashboard-state.js';
|
|
3
|
+
export interface ExperienceItem {
|
|
4
|
+
uri: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
modTime?: string;
|
|
8
|
+
injectionCount?: number;
|
|
9
|
+
recallCount?: number;
|
|
10
|
+
trajectoryCount?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ExperienceTrajectory {
|
|
13
|
+
uri: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
created_at?: string;
|
|
17
|
+
updated_at?: string;
|
|
18
|
+
}
|
|
19
|
+
export type ExperienceOutcome = 'success' | 'partial' | 'unfinished' | 'failure' | 'unknown';
|
|
20
|
+
export interface ExperienceDashboardData {
|
|
21
|
+
experiences?: readonly ExperienceItem[];
|
|
22
|
+
total?: number;
|
|
23
|
+
effect?: {
|
|
24
|
+
injectionCount: number;
|
|
25
|
+
recallCount: number;
|
|
26
|
+
injectionRate: number;
|
|
27
|
+
};
|
|
28
|
+
outcomes?: readonly {
|
|
29
|
+
outcome: ExperienceOutcome;
|
|
30
|
+
count: number;
|
|
31
|
+
}[];
|
|
32
|
+
trajectories?: readonly ExperienceTrajectory[];
|
|
33
|
+
trajectoryTotal?: number;
|
|
34
|
+
sources?: readonly ExperienceTrajectory[];
|
|
35
|
+
testMaterials?: readonly {
|
|
36
|
+
id: string;
|
|
37
|
+
title: string;
|
|
38
|
+
content: string;
|
|
39
|
+
taskQuery?: string;
|
|
40
|
+
uri?: string;
|
|
41
|
+
}[];
|
|
42
|
+
}
|
|
43
|
+
export interface ExperienceDashboardLabels {
|
|
44
|
+
latest: string;
|
|
45
|
+
sourceCount: string;
|
|
46
|
+
sourceUri: string;
|
|
47
|
+
task: string;
|
|
48
|
+
copy: string;
|
|
49
|
+
copied: string;
|
|
50
|
+
copyFailed: string;
|
|
51
|
+
title: string;
|
|
52
|
+
allExperiences: string;
|
|
53
|
+
index: string;
|
|
54
|
+
impact: string;
|
|
55
|
+
source: string;
|
|
56
|
+
test: string;
|
|
57
|
+
application: string;
|
|
58
|
+
notice: string;
|
|
59
|
+
injection: string;
|
|
60
|
+
recall: string;
|
|
61
|
+
listRecall: string;
|
|
62
|
+
rate: string;
|
|
63
|
+
outcomes: string;
|
|
64
|
+
trajectories: string;
|
|
65
|
+
empty: string;
|
|
66
|
+
emptySource: string;
|
|
67
|
+
emptyTests: string;
|
|
68
|
+
emptyOutcomes: string;
|
|
69
|
+
loading: string;
|
|
70
|
+
failed: string;
|
|
71
|
+
retry: string;
|
|
72
|
+
previous: string;
|
|
73
|
+
next: string;
|
|
74
|
+
all: string;
|
|
75
|
+
week: string;
|
|
76
|
+
month: string;
|
|
77
|
+
range: string;
|
|
78
|
+
updated: string;
|
|
79
|
+
name: string;
|
|
80
|
+
success: string;
|
|
81
|
+
partial: string;
|
|
82
|
+
unfinished: string;
|
|
83
|
+
failure: string;
|
|
84
|
+
unknown: string;
|
|
85
|
+
unsupportedMetric: string;
|
|
86
|
+
open: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ExperienceDashboardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
89
|
+
uri: string;
|
|
90
|
+
kind: 'directory' | 'file';
|
|
91
|
+
data?: ExperienceDashboardData;
|
|
92
|
+
tab?: ExperienceDashboardTab;
|
|
93
|
+
days?: number;
|
|
94
|
+
page?: number;
|
|
95
|
+
hasMore?: boolean;
|
|
96
|
+
startIndex?: number;
|
|
97
|
+
states?: Partial<Record<'list' | 'outcomes' | 'trajectories' | 'sources' | 'tests', ExperienceDashboardState>>;
|
|
98
|
+
locale?: 'en-US' | 'zh-CN';
|
|
99
|
+
onTabChange?: (tab: ExperienceDashboardTab) => void;
|
|
100
|
+
onDaysChange?: (days: number) => void;
|
|
101
|
+
onPageChange?: (page: number) => void;
|
|
102
|
+
onOpenUri?: (uri: string) => void;
|
|
103
|
+
labels?: Partial<ExperienceDashboardLabels>;
|
|
104
|
+
}
|
|
105
|
+
export type ExperienceDashboardTab = 'impact' | 'source' | 'test';
|
|
106
|
+
export type ExperienceDashboardState = DashboardStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ExperienceDashboard } from "../fl~0.js";
|