@openviking/react 0.0.0-stage → 0.1.1
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 +82 -2
- package/dist/3~0.js +8 -0
- package/dist/a~0.js +21 -0
- package/dist/client/client.d.ts +12 -0
- package/dist/client/errors.d.ts +30 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/options.d.ts +101 -0
- package/dist/client/provider.d.ts +52 -0
- package/dist/client/types.d.ts +160 -0
- package/dist/client.js +239 -0
- package/dist/components/agent-connect/agent-connect.d.ts +4 -0
- package/dist/components/agent-connect/index.d.ts +1 -0
- package/dist/components/agent-connect/style.css +16 -0
- package/dist/components/agent-connect/style.js +0 -0
- package/dist/components/agent-connect/types.d.ts +175 -0
- package/dist/components/agent-connect.js +1 -0
- package/dist/components/file-preview/file-preview-body.d.ts +15 -0
- package/dist/components/file-preview/file-preview-header.d.ts +16 -0
- package/dist/components/file-preview/file-preview-icons.d.ts +2 -0
- package/dist/components/file-preview/file-preview-labels.d.ts +5 -0
- package/dist/components/file-preview/file-preview-operations.d.ts +1 -0
- package/dist/components/file-preview/file-preview.d.ts +17 -0
- package/dist/components/file-preview/index.d.ts +1 -0
- package/dist/components/file-preview/style.css +285 -0
- package/dist/components/file-preview/style.js +0 -0
- package/dist/components/file-preview/types.d.ts +435 -0
- package/dist/components/file-preview/use-file-preview-editing.d.ts +13 -0
- package/dist/components/file-preview.js +442 -0
- package/dist/components/file-tree/file-tree-body.d.ts +14 -0
- package/dist/components/file-tree/file-tree-dom.d.ts +4 -0
- package/dist/components/file-tree/file-tree-entry-row.d.ts +6 -0
- package/dist/components/file-tree/file-tree-icons.d.ts +8 -0
- package/dist/components/file-tree/file-tree-keyboard.d.ts +10 -0
- package/dist/components/file-tree/file-tree-labels.d.ts +5 -0
- package/dist/components/file-tree/file-tree-row-context.d.ts +24 -0
- package/dist/components/file-tree/file-tree-rows.d.ts +12 -0
- package/dist/components/file-tree/file-tree-tooltip.d.ts +11 -0
- package/dist/components/file-tree/file-tree.d.ts +4 -0
- package/dist/components/file-tree/index.d.ts +1 -0
- package/dist/components/file-tree/style.css +244 -0
- package/dist/components/file-tree/style.js +0 -0
- package/dist/components/file-tree/types.d.ts +406 -0
- package/dist/components/file-tree/use-file-tree-actions.d.ts +10 -0
- package/dist/components/file-tree.js +1 -0
- package/dist/components/scope-switcher/index.d.ts +1 -0
- package/dist/components/scope-switcher/scope-keyboard.d.ts +2 -0
- package/dist/components/scope-switcher/scope-panel.d.ts +5 -0
- package/dist/components/scope-switcher/scope-selector.d.ts +2 -0
- package/dist/components/scope-switcher/scope-switcher.d.ts +6 -0
- package/dist/components/scope-switcher/style.css +248 -0
- package/dist/components/scope-switcher/style.js +0 -0
- package/dist/components/scope-switcher/types.d.ts +367 -0
- package/dist/components/scope-switcher.js +3 -0
- package/dist/components/style.css +811 -0
- package/dist/components/style.js +0 -0
- package/dist/components/tui/index.d.ts +1 -0
- package/dist/components/tui/style.css +16 -0
- package/dist/components/tui/style.js +0 -0
- package/dist/components/tui/tui.d.ts +3 -0
- package/dist/components/tui/types.d.ts +485 -0
- package/dist/components/tui.js +1 -0
- package/dist/f~0.js +284 -0
- package/dist/icons/index.d.ts +23 -0
- package/dist/icons.js +25 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +8 -0
- package/dist/i~0.js +21 -0
- package/dist/lk~0.js +220 -0
- package/dist/l~0.js +44 -0
- package/dist/modules/console/console.d.ts +4 -0
- package/dist/modules/console/index.d.ts +1 -0
- package/dist/modules/console/style.css +29 -0
- package/dist/modules/console/style.js +0 -0
- package/dist/modules/console/types.d.ts +101 -0
- package/dist/modules/console.js +1 -0
- package/dist/modules/file-browser/file-browser-toolbar-button.d.ts +10 -0
- package/dist/modules/file-browser/file-browser.d.ts +6 -0
- package/dist/modules/file-browser/index.d.ts +1 -0
- package/dist/modules/file-browser/style.css +75 -0
- package/dist/modules/file-browser/style.js +0 -0
- package/dist/modules/file-browser/types.d.ts +101 -0
- package/dist/modules/file-browser.js +1 -0
- package/dist/modules/scope-cascade/controller.d.ts +6 -0
- package/dist/modules/scope-cascade/index.d.ts +3 -0
- package/dist/modules/scope-cascade/scope-cascade.d.ts +3 -0
- package/dist/modules/scope-cascade/style.css +250 -0
- package/dist/modules/scope-cascade/style.js +0 -0
- package/dist/modules/scope-cascade/types.d.ts +39 -0
- package/dist/modules/scope-cascade/use-scope-cascade.d.ts +5 -0
- package/dist/modules/scope-cascade.js +1 -0
- package/dist/modules/style.css +385 -0
- package/dist/modules/style.js +0 -0
- package/dist/modules/task-center/columns.d.ts +129 -0
- package/dist/modules/task-center/index.d.ts +1 -0
- package/dist/modules/task-center/style.css +29 -0
- package/dist/modules/task-center/style.js +0 -0
- package/dist/modules/task-center/task-center.d.ts +4 -0
- package/dist/modules/task-center/types.d.ts +168 -0
- package/dist/modules/task-center.js +1 -0
- package/dist/n~0.js +499 -0
- package/dist/style.css +1198 -0
- package/dist/style.js +0 -0
- package/dist/u~0.js +8 -0
- package/package.json +103 -4
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
.ov-file-preview {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
min-height: 0;
|
|
5
|
+
color: inherit;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
font-family: inherit;
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
line-height: 20px;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ov-file-preview__tab-row {
|
|
14
|
+
border-bottom: 1px solid var(--ov-ui-border, #00000014);
|
|
15
|
+
flex: none;
|
|
16
|
+
align-items: flex-end;
|
|
17
|
+
gap: 2px;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
padding: 4px 8px 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
overflow-x: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ov-file-preview__tab {
|
|
25
|
+
border-radius: var(--ov-ui-radius, 6px) var(--ov-ui-radius, 6px) 0 0;
|
|
26
|
+
max-width: 220px;
|
|
27
|
+
color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
|
|
28
|
+
font: inherit;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background: none;
|
|
31
|
+
border: 1px solid #0000;
|
|
32
|
+
border-bottom: none;
|
|
33
|
+
flex: none;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 6px;
|
|
36
|
+
padding: 5px 10px;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ov-file-preview__tab:hover:not(:disabled) {
|
|
41
|
+
color: inherit;
|
|
42
|
+
background: var(--ov-ui-row-hover, #0000000a);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ov-file-preview__tab[aria-selected="true"] {
|
|
46
|
+
border-color: var(--ov-ui-border, #00000014);
|
|
47
|
+
background: var(--ov-ui-surface, canvas);
|
|
48
|
+
color: inherit;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ov-file-preview__tab:focus-visible {
|
|
52
|
+
outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
|
|
53
|
+
outline-offset: -2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ov-file-preview__tab:disabled {
|
|
57
|
+
opacity: .5;
|
|
58
|
+
cursor: not-allowed;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ov-file-preview__tab-title {
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ov-file-preview__icon-slot {
|
|
69
|
+
color: var(--ov-ui-icon, color-mix(in srgb, currentColor 62%, transparent));
|
|
70
|
+
flex: none;
|
|
71
|
+
align-items: center;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ov-file-preview__icon {
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ov-file-preview__header {
|
|
80
|
+
border-bottom: 1px solid var(--ov-ui-border, #00000014);
|
|
81
|
+
flex-wrap: wrap;
|
|
82
|
+
flex: none;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 12px;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
padding: 8px 12px;
|
|
88
|
+
display: flex;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ov-file-preview__path-row {
|
|
92
|
+
flex: auto;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: 6px;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
display: flex;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ov-file-preview__breadcrumb {
|
|
100
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
101
|
+
min-width: 0;
|
|
102
|
+
color: var(--ov-ui-accent, #2563c5);
|
|
103
|
+
font: inherit;
|
|
104
|
+
text-align: left;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
background: none;
|
|
109
|
+
border: none;
|
|
110
|
+
padding: 2px 4px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ov-file-preview__breadcrumb:disabled {
|
|
115
|
+
color: inherit;
|
|
116
|
+
cursor: default;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ov-file-preview__breadcrumb:not(:disabled):hover {
|
|
120
|
+
background: var(--ov-ui-row-hover, #0000000a);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ov-file-preview__title-extra {
|
|
124
|
+
flex: none;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 6px;
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ov-file-preview__header-actions {
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
flex: 0 auto;
|
|
133
|
+
align-items: center;
|
|
134
|
+
gap: 6px;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
display: flex;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ov-file-preview__action {
|
|
140
|
+
border: 1px solid var(--ov-ui-border, #00000014);
|
|
141
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
142
|
+
width: 26px;
|
|
143
|
+
height: 26px;
|
|
144
|
+
color: inherit;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
background: none;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
align-items: center;
|
|
149
|
+
padding: 0;
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ov-file-preview__action:hover:not(:disabled) {
|
|
154
|
+
background: var(--ov-ui-row-hover, #0000000a);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ov-file-preview__action:disabled {
|
|
158
|
+
opacity: .4;
|
|
159
|
+
cursor: not-allowed;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ov-file-preview__action-icon {
|
|
163
|
+
display: block;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ov-file-preview__button, .ov-file-preview__button--primary {
|
|
167
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
168
|
+
font: inherit;
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
padding: 3px 10px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ov-file-preview__button {
|
|
174
|
+
border: 1px solid var(--ov-ui-border, #00000014);
|
|
175
|
+
color: inherit;
|
|
176
|
+
background: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ov-file-preview__button:hover {
|
|
180
|
+
background: var(--ov-ui-row-hover, #0000000a);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ov-file-preview__button--primary {
|
|
184
|
+
background: var(--ov-ui-accent, #2563c5);
|
|
185
|
+
color: #fff;
|
|
186
|
+
border: 1px solid #0000;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ov-file-preview__switch {
|
|
190
|
+
border-radius: var(--ov-ui-radius, 6px);
|
|
191
|
+
background: var(--ov-ui-row-hover, #0000000a);
|
|
192
|
+
padding: 2px;
|
|
193
|
+
display: inline-flex;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ov-file-preview__switch-item {
|
|
197
|
+
border-radius: calc(var(--ov-ui-radius, 6px) - 2px);
|
|
198
|
+
color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
|
|
199
|
+
font: inherit;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
background: none;
|
|
202
|
+
border: none;
|
|
203
|
+
padding: 2px 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ov-file-preview__switch-item[data-active] {
|
|
207
|
+
background: var(--ov-ui-surface, canvas);
|
|
208
|
+
color: inherit;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ov-file-preview__switch-item:focus-visible {
|
|
212
|
+
outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
|
|
213
|
+
outline-offset: -2px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ov-file-preview__extra-actions {
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 6px;
|
|
219
|
+
display: inline-flex;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.ov-file-preview__body {
|
|
223
|
+
flex: auto;
|
|
224
|
+
min-height: 0;
|
|
225
|
+
overflow: auto;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.ov-file-preview__text-body {
|
|
229
|
+
padding: 12px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.ov-file-preview__pre {
|
|
233
|
+
font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
|
|
234
|
+
white-space: pre-wrap;
|
|
235
|
+
word-break: break-word;
|
|
236
|
+
margin: 0;
|
|
237
|
+
font-size: 12px;
|
|
238
|
+
line-height: 1.6;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ov-file-preview__editor {
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
height: 100%;
|
|
244
|
+
min-height: 240px;
|
|
245
|
+
display: flex;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.ov-file-preview__save-error {
|
|
249
|
+
padding: 8px 12px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.ov-file-preview__textarea {
|
|
253
|
+
box-sizing: border-box;
|
|
254
|
+
width: 100%;
|
|
255
|
+
min-height: 0;
|
|
256
|
+
color: inherit;
|
|
257
|
+
font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
|
|
258
|
+
resize: none;
|
|
259
|
+
background: none;
|
|
260
|
+
border: none;
|
|
261
|
+
flex: auto;
|
|
262
|
+
padding: 12px;
|
|
263
|
+
font-size: 12px;
|
|
264
|
+
line-height: 1.6;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ov-file-preview__textarea:focus-visible {
|
|
268
|
+
outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
|
|
269
|
+
outline-offset: -2px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.ov-file-preview__state {
|
|
273
|
+
justify-content: center;
|
|
274
|
+
align-items: center;
|
|
275
|
+
min-height: 120px;
|
|
276
|
+
padding: 24px;
|
|
277
|
+
display: flex;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.ov-file-preview__muted {
|
|
281
|
+
color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
File without changes
|