@openviking/react 0.1.0 → 0.1.2

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.
Files changed (193) hide show
  1. package/README.md +57 -34
  2. package/dist/3~0.js +2117 -0
  3. package/dist/ark-message-list-view~0.js +310 -0
  4. package/dist/a~0.js +21 -0
  5. package/dist/c7~0.js +24 -0
  6. package/dist/client/client.d.ts +12 -0
  7. package/dist/client/errors.d.ts +30 -0
  8. package/dist/client/index.d.ts +4 -0
  9. package/dist/client/options.d.ts +101 -0
  10. package/dist/client/provider.d.ts +52 -0
  11. package/dist/client/types.d.ts +160 -0
  12. package/dist/client.js +239 -0
  13. package/dist/components/agent-connect/agent-connect-copy.d.ts +34 -0
  14. package/dist/components/agent-connect/agent-connect-design.d.ts +1781 -0
  15. package/dist/components/agent-connect/agent-connect-detail.d.ts +13 -0
  16. package/dist/components/agent-connect/agent-connect-installer.d.ts +3 -0
  17. package/dist/components/agent-connect/agent-connect-instructions-view.d.ts +14 -0
  18. package/dist/components/agent-connect/agent-connect-instructions.d.ts +145 -0
  19. package/dist/components/agent-connect/agent-connect-markdown.d.ts +3 -0
  20. package/dist/components/agent-connect/agent-connect.d.ts +4 -1
  21. package/dist/components/agent-connect/content-en.d.ts +137 -0
  22. package/dist/components/agent-connect/content-zh.d.ts +137 -0
  23. package/dist/components/agent-connect/index.d.ts +1 -0
  24. package/dist/components/agent-connect/style.css +503 -0
  25. package/dist/components/agent-connect/types.d.ts +29 -0
  26. package/dist/components/agent-connect.js +1 -0
  27. package/dist/components/file-preview/file-preview-adapters.d.ts +33 -0
  28. package/dist/components/file-preview/file-preview-body.d.ts +27 -0
  29. package/dist/components/file-preview/file-preview-breadcrumb-menu.d.ts +16 -0
  30. package/dist/components/file-preview/file-preview-breadcrumb.d.ts +21 -0
  31. package/dist/components/file-preview/file-preview-copy-path.d.ts +12 -0
  32. package/dist/components/file-preview/file-preview-editor.d.ts +22 -0
  33. package/dist/components/file-preview/file-preview-handle-adapters.d.ts +26 -0
  34. package/dist/components/file-preview/file-preview-header.d.ts +25 -0
  35. package/dist/components/file-preview/file-preview-labels.d.ts +16 -0
  36. package/dist/components/file-preview/file-preview-lazy-viewer.d.ts +3 -0
  37. package/dist/components/file-preview/file-preview-path.d.ts +30 -0
  38. package/dist/components/file-preview/file-preview-source.d.ts +24 -0
  39. package/dist/components/file-preview/file-preview-state.d.ts +28 -0
  40. package/dist/components/file-preview/file-preview-tab-row.d.ts +16 -0
  41. package/dist/components/file-preview/file-preview-viewer.d.ts +31 -0
  42. package/dist/components/file-preview/file-preview.d.ts +14 -1
  43. package/dist/components/file-preview/index.d.ts +1 -0
  44. package/dist/components/file-preview/style.css +4139 -0
  45. package/dist/components/file-preview/types.d.ts +516 -0
  46. package/dist/components/file-preview/use-file-preview-actions-context.d.ts +23 -0
  47. package/dist/components/file-preview/use-file-preview-actions.d.ts +19 -0
  48. package/dist/components/file-preview/use-file-preview-editing.d.ts +32 -0
  49. package/dist/components/file-preview/use-file-preview-ids.d.ts +24 -0
  50. package/dist/components/file-preview.js +1 -0
  51. package/dist/components/file-tree/file-tree-body.d.ts +18 -0
  52. package/dist/components/file-tree/file-tree-entry-row.d.ts +12 -0
  53. package/dist/components/file-tree/file-tree-icons.d.ts +15 -0
  54. package/dist/components/file-tree/file-tree-info-labels.d.ts +21 -0
  55. package/dist/components/file-tree/file-tree-info-tooltip.d.ts +43 -0
  56. package/dist/components/file-tree/file-tree-info.d.ts +29 -0
  57. package/dist/components/file-tree/file-tree-keyboard.d.ts +14 -0
  58. package/dist/components/file-tree/file-tree-row-context.d.ts +46 -0
  59. package/dist/components/file-tree/file-tree-row-shared.d.ts +11 -0
  60. package/dist/components/file-tree/file-tree-spinner.d.ts +10 -0
  61. package/dist/components/file-tree/file-tree-state-row.d.ts +7 -0
  62. package/dist/components/file-tree/file-tree-tooltip-surface.d.ts +22 -0
  63. package/dist/components/file-tree/file-tree-tooltip.d.ts +17 -0
  64. package/dist/components/file-tree/file-tree.d.ts +15 -1
  65. package/dist/components/file-tree/index.d.ts +1 -0
  66. package/dist/components/file-tree/style.css +410 -0
  67. package/dist/components/file-tree/types.d.ts +589 -0
  68. package/dist/components/file-tree/use-file-tree-actions.d.ts +17 -0
  69. package/dist/components/file-tree.js +1 -0
  70. package/dist/components/scope-switcher/index.d.ts +1 -0
  71. package/dist/components/scope-switcher/scope-keyboard.d.ts +2 -0
  72. package/dist/components/scope-switcher/scope-panel.d.ts +11 -0
  73. package/dist/components/scope-switcher/scope-selector.d.ts +2 -0
  74. package/dist/components/scope-switcher/scope-switcher.d.ts +6 -1
  75. package/dist/components/scope-switcher/style.css +452 -0
  76. package/dist/components/scope-switcher/types.d.ts +489 -0
  77. package/dist/components/scope-switcher.js +3 -0
  78. package/dist/components/style.css +14249 -18
  79. package/dist/components/tui/command-catalog.d.ts +58 -0
  80. package/dist/components/tui/command-completion.d.ts +19 -0
  81. package/dist/components/tui/command-definitions.d.ts +10 -0
  82. package/dist/components/tui/command-input.d.ts +16 -0
  83. package/dist/components/tui/index.d.ts +1 -0
  84. package/dist/components/tui/style.css +1552 -0
  85. package/dist/components/tui/tui-assist.d.ts +15 -0
  86. package/dist/components/tui/tui-code-block.d.ts +8 -0
  87. package/dist/components/tui/tui-command-help.d.ts +9 -0
  88. package/dist/components/tui/tui-command-text.d.ts +6 -0
  89. package/dist/components/tui/tui-composer.d.ts +24 -0
  90. package/dist/components/tui/tui-copy-button.d.ts +9 -0
  91. package/dist/components/tui/tui-input-mirror.d.ts +14 -0
  92. package/dist/components/tui/tui-labels-zh.d.ts +2 -0
  93. package/dist/components/tui/tui-labels.d.ts +5 -0
  94. package/dist/components/tui/tui-markdown-renderers.d.ts +10 -0
  95. package/dist/components/tui/tui-markdown.d.ts +6 -0
  96. package/dist/components/tui/tui-param-hint.d.ts +7 -0
  97. package/dist/components/tui/tui-record-time.d.ts +11 -0
  98. package/dist/components/tui/tui-record.d.ts +13 -0
  99. package/dist/components/tui/tui-resource-preview.d.ts +10 -0
  100. package/dist/components/tui/tui-resource-tree.d.ts +10 -0
  101. package/dist/components/tui/tui-result-header.d.ts +7 -0
  102. package/dist/components/tui/tui-result-text.d.ts +5 -0
  103. package/dist/components/tui/tui-search-list.d.ts +8 -0
  104. package/dist/components/tui/tui-skeleton.d.ts +6 -0
  105. package/dist/components/tui/tui-status-card.d.ts +7 -0
  106. package/dist/components/tui/tui-text.d.ts +10 -0
  107. package/dist/components/tui/tui-uri-text.d.ts +19 -0
  108. package/dist/components/tui/tui-write-result.d.ts +7 -0
  109. package/dist/components/tui/tui.d.ts +11 -1
  110. package/dist/components/tui/types.d.ts +527 -0
  111. package/dist/components/tui/use-tui-assist-position.d.ts +3 -0
  112. package/dist/components/tui/use-tui-completion.d.ts +14 -0
  113. package/dist/components/tui/use-tui-composer-keyboard.d.ts +25 -0
  114. package/dist/components/tui.js +1 -0
  115. package/dist/components/viking-bot/ark-adapter.d.ts +45 -0
  116. package/dist/components/viking-bot/ark-message-body.d.ts +16 -0
  117. package/dist/components/viking-bot/ark-message-list-view.d.ts +7 -0
  118. package/dist/components/viking-bot/ark-message-row.d.ts +19 -0
  119. package/dist/components/viking-bot/index.d.ts +10 -0
  120. package/dist/components/viking-bot/interaction/ask-human-fields.d.ts +10 -0
  121. package/dist/components/viking-bot/interaction/index.d.ts +4 -0
  122. package/dist/components/viking-bot/interaction/labels.d.ts +7 -0
  123. package/dist/components/viking-bot/interaction/lazy-interaction.d.ts +3 -0
  124. package/dist/components/viking-bot/interaction/schedule-input.d.ts +13 -0
  125. package/dist/components/viking-bot/interaction/style.css +189 -0
  126. package/dist/components/viking-bot/interaction/types.d.ts +188 -0
  127. package/dist/components/viking-bot/interaction/viking-bot-interaction.d.ts +9 -0
  128. package/dist/components/viking-bot/interaction.js +2 -0
  129. package/dist/components/viking-bot/labels.d.ts +2 -0
  130. package/dist/components/viking-bot/lazy-composer.d.ts +3 -0
  131. package/dist/components/viking-bot/message-groups.d.ts +12 -0
  132. package/dist/components/viking-bot/model.d.ts +252 -0
  133. package/dist/components/viking-bot/render-part.d.ts +12 -0
  134. package/dist/components/viking-bot/style.css +7133 -0
  135. package/dist/components/viking-bot/types.d.ts +140 -0
  136. package/dist/components/viking-bot/viking-bot-composer.d.ts +6 -0
  137. package/dist/components/viking-bot/viking-bot-message-list.d.ts +3 -0
  138. package/dist/components/viking-bot/viking-bot.d.ts +16 -1
  139. package/dist/components/viking-bot.js +4 -0
  140. package/dist/c~0.js +201 -0
  141. package/dist/file-preview-viewer~0.js +191 -0
  142. package/dist/f~0.js +356 -0
  143. package/dist/g~0.js +1207 -0
  144. package/dist/h~0.js +58 -0
  145. package/dist/icons/file-type-icon.d.ts +31 -0
  146. package/dist/icons/index.d.ts +33 -23
  147. package/dist/icons/nextjs-icon.d.ts +19 -0
  148. package/dist/icons.js +1 -25
  149. package/dist/index.d.ts +16 -2
  150. package/dist/index.js +8 -1
  151. package/dist/k~0.js +1440 -0
  152. package/dist/lk~0.js +233 -0
  153. package/dist/l~0.js +44 -0
  154. package/dist/modules/console/console.d.ts +4 -0
  155. package/dist/modules/console/index.d.ts +1 -0
  156. package/dist/modules/console/style.css +111 -0
  157. package/dist/modules/console/types.d.ts +101 -0
  158. package/dist/modules/console.js +1 -0
  159. package/dist/modules/file-browser/file-browser-toolbar-button.d.ts +10 -0
  160. package/dist/modules/file-browser/file-browser.d.ts +6 -0
  161. package/dist/modules/file-browser/index.d.ts +1 -0
  162. package/dist/modules/file-browser/style.css +158 -0
  163. package/dist/modules/file-browser/types.d.ts +101 -0
  164. package/dist/modules/file-browser.js +1 -0
  165. package/dist/modules/scope-cascade/controller.d.ts +6 -0
  166. package/dist/modules/scope-cascade/index.d.ts +3 -0
  167. package/dist/modules/scope-cascade/scope-cascade.d.ts +3 -0
  168. package/dist/modules/scope-cascade/style.css +456 -0
  169. package/dist/modules/scope-cascade/style.js +0 -0
  170. package/dist/modules/scope-cascade/types.d.ts +39 -0
  171. package/dist/modules/scope-cascade/use-scope-cascade.d.ts +5 -0
  172. package/dist/modules/scope-cascade.js +1 -0
  173. package/dist/modules/style.css +808 -0
  174. package/dist/modules/style.js +0 -0
  175. package/dist/n~0.js +727 -0
  176. package/dist/shared/components/tooltip/index.d.ts +1 -0
  177. package/dist/shared/components/tooltip/tooltip.d.ts +25 -0
  178. package/dist/shared/components/tooltip/types.d.ts +42 -0
  179. package/dist/shared/components/tooltip/use-tooltip-position.d.ts +38 -0
  180. package/dist/style.css +15138 -18
  181. package/dist/u~0.js +1601 -0
  182. package/dist/viking-bot-composer~0.js +164 -0
  183. package/dist/viking-bot-interaction~0.js +284 -0
  184. package/dist/w~0.js +19 -0
  185. package/package.json +46 -22
  186. package/dist/components/resource-import/resource-import.d.ts +0 -1
  187. package/dist/components/resource-import/style.css +0 -2
  188. package/dist/components/status-badge/status-badge.d.ts +0 -8
  189. package/dist/components/status-badge/style.css +0 -37
  190. package/dist/components/status-badge.js +0 -30
  191. /package/dist/components/{resource-import → viking-bot/interaction}/style.js +0 -0
  192. /package/dist/{components/status-badge → modules/console}/style.js +0 -0
  193. /package/dist/{components/resource-import.js → modules/file-browser/style.js} +0 -0
package/dist/h~0.js ADDED
@@ -0,0 +1,58 @@
1
+ function groupMessages(messages) {
2
+ const groups = [];
3
+ for (const message of messages){
4
+ const previous = groups.at(-1);
5
+ const sameTurn = void 0 !== previous && 'assistant' === message.role && 'assistant' === previous.role && (!previous.turnId || !message.turnId || previous.turnId === message.turnId);
6
+ if (sameTurn && previous) {
7
+ previous.parts = [
8
+ ...previous.parts,
9
+ ...message.parts
10
+ ];
11
+ previous.turnId ??= message.turnId;
12
+ previous.streaming = previous.streaming || message.streaming;
13
+ if (message.action) previous.actions = [
14
+ ...previous.actions ?? [],
15
+ {
16
+ messageId: message.id,
17
+ action: message.action
18
+ }
19
+ ];
20
+ continue;
21
+ }
22
+ groups.push({
23
+ ...message,
24
+ parts: [
25
+ ...message.parts
26
+ ],
27
+ actions: message.action ? [
28
+ {
29
+ messageId: message.id,
30
+ action: message.action
31
+ }
32
+ ] : void 0
33
+ });
34
+ }
35
+ return groups;
36
+ }
37
+ function messageText(message) {
38
+ return message.parts.filter((part)=>'text' === part.type).map((part)=>part.text).join('\n').trim();
39
+ }
40
+ function groupByActivity(parts) {
41
+ const blocks = [];
42
+ for (const part of parts){
43
+ const groupId = 'groupId' in part ? part.groupId : void 0;
44
+ const previous = blocks.at(-1);
45
+ if (previous && groupId && previous.groupId === groupId) {
46
+ previous.parts.push(part);
47
+ continue;
48
+ }
49
+ blocks.push({
50
+ groupId,
51
+ parts: [
52
+ part
53
+ ]
54
+ });
55
+ }
56
+ return blocks;
57
+ }
58
+ export { groupByActivity, groupMessages, messageText };
@@ -0,0 +1,31 @@
1
+ import type { ComponentType, SVGProps } from 'react';
2
+ /** 一个文件类型图标的形状,以组件形式渲染。A file-type icon shape, rendered as a component. */
3
+ export type FileTypeIconComponent = ComponentType<SVGProps<SVGSVGElement>>;
4
+ /**
5
+ * 文件名与扩展名规则。扩展名到图标键的映射是数据,无法用文件名表达,因此单独保存。
6
+ *
7
+ * Name and extension rules. The extension-to-key mapping is data rather than
8
+ * artwork, so it is kept on its own.
9
+ */
10
+ export declare const FILE_TYPE_RULES: {
11
+ readonly names: Record<string, string>;
12
+ readonly extensions: Record<string, string>;
13
+ };
14
+ /** 图标键的品牌色。未登记的键回退到正文色。Brand colour per icon key. */
15
+ export declare function getFileTypeColor(key: string, scheme?: 'light' | 'dark'): string;
16
+ /**
17
+ * 按文件名判定图标键:先查完整文件名,再从长到短拼接扩展名匹配,未命中回退
18
+ * `default`。多段扩展名(例如 `tar.gz`)会被优先匹配。
19
+ *
20
+ * Resolves the icon key for a file name: an exact name match first, then compound
21
+ * extensions from longest to shortest, falling back to `default`. Multi-part
22
+ * extensions such as `tar.gz` therefore win over the shorter `gz`.
23
+ */
24
+ export declare function resolveFileTypeIconKey(name: string): string;
25
+ /**
26
+ * 取得文件名对应的图标组件。未命中规则时回退到通用文件图标。
27
+ *
28
+ * Returns the icon component for a file name, falling back to the generic file
29
+ * icon when nothing matches.
30
+ */
31
+ export declare function getFileTypeIcon(name: string): FileTypeIconComponent;
@@ -1,23 +1,33 @@
1
- import type { ComponentPropsWithoutRef } from 'react';
2
- type IconProps = Omit<ComponentPropsWithoutRef<'img'>, 'src' | 'srcSet'>;
3
- export declare const AudioIcon: {
4
- (props: IconProps): import("react").JSX.Element;
5
- displayName: string;
6
- };
7
- export declare const PdfIcon: {
8
- (props: IconProps): import("react").JSX.Element;
9
- displayName: string;
10
- };
11
- export declare const PptIcon: {
12
- (props: IconProps): import("react").JSX.Element;
13
- displayName: string;
14
- };
15
- export declare const VideoIcon: {
16
- (props: IconProps): import("react").JSX.Element;
17
- displayName: string;
18
- };
19
- export declare const WordIcon: {
20
- (props: IconProps): import("react").JSX.Element;
21
- displayName: string;
22
- };
23
- export {};
1
+ import type { ComponentPropsWithoutRef, ComponentType } from 'react';
2
+ /**
3
+ * 图标的属性。渲染为内联 SVG,接收标准 SVG 属性;`width` 与 `height` 默认 16
4
+ *(ArrowRightIcon 为 14),
5
+ * 无障碍描述用 `aria-label`(装饰性图标省略,SVG 本身带 `aria-hidden`)。
6
+ *
7
+ * Props of an icon. Icons render as inline SVG and accept standard SVG props;
8
+ * `width` and `height` default to 16 (14 for ArrowRightIcon). Describe one with
9
+ * `aria-label`; decorative icons omit it and the SVG stays `aria-hidden`.
10
+ */
11
+ export type IconProps = Omit<ComponentPropsWithoutRef<'svg'>, 'children'>;
12
+ /**
13
+ * 图标组件的公开类型。声明里只出现这个类型,不出现 `*.svg?react` 模块引用——
14
+ * 发布包不含 SVG 源文件,声明若引用它们,独立消费者会报 TS2307。
15
+ *
16
+ * The public type of an icon component. Declarations mention only this type,
17
+ * never a `*.svg?react` module: the published package ships no SVG sources, so a
18
+ * declaration that referenced them would fail with TS2307 for a standalone
19
+ * consumer.
20
+ */
21
+ export type IconComponent = ComponentType<IconProps>;
22
+ export declare const ArrowRightIcon: IconComponent;
23
+ export declare const AudioIcon: IconComponent;
24
+ export declare const ChevronRightIcon: IconComponent;
25
+ export declare const DocumentIcon: IconComponent;
26
+ export declare const FolderIcon: IconComponent;
27
+ export declare const FolderOpenIcon: IconComponent;
28
+ export declare const PdfIcon: IconComponent;
29
+ export declare const PptIcon: IconComponent;
30
+ export declare const VideoIcon: IconComponent;
31
+ export declare const WordIcon: IconComponent;
32
+ export { getFileTypeColor, getFileTypeIcon, resolveFileTypeIconKey, } from './file-type-icon.js';
33
+ export type { FileTypeIconComponent } from './file-type-icon.js';
@@ -0,0 +1,19 @@
1
+ import type { SVGProps } from 'react';
2
+ /**
3
+ * `nextjs` 的斜笔画靠渐变淡出,而渐变要用片段 ID 引用。SVGR 会把 `id` 原样
4
+ * 编译进组件,同页多个实例共用同一个 ID,后面的实例会解析到先出现实例的渐变,
5
+ * 取到别人的 `currentColor`。这里手写这个图标,用 `useId` 生成实例级唯一 ID。
6
+ *
7
+ * 图形数据与 `packages/icons/svg/file-type/nextjs.svg` 保持一致,那份源文件仍是
8
+ * 该图标的 canonical 来源;差别只有 ID 由 `useId` 生成,以及属性写成 JSX。
9
+ *
10
+ * The `nextjs` slash fades out through a gradient referenced by a fragment ID.
11
+ * SVGR compiles that `id` verbatim, so instances on one page share it and a later
12
+ * instance resolves to an earlier one's gradient, picking up its `currentColor`.
13
+ * This icon is written by hand so `useId` can give each instance its own ID.
14
+ *
15
+ * The artwork matches `packages/icons/svg/file-type/nextjs.svg`, which stays the
16
+ * canonical source for this icon; the only differences are the ID coming from
17
+ * `useId` and the attributes being written as JSX.
18
+ */
19
+ export declare function NextjsIcon({ 'aria-label': ariaLabel, ...props }: SVGProps<SVGSVGElement>): import("react").JSX.Element;
package/dist/icons.js CHANGED
@@ -1,25 +1 @@
1
- import { jsx } from "react/jsx-runtime";
2
- const audioinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjN2MzYWVkIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik03IDExVjdsNC0xdjRNNyAxMUg2bTUtMWgtMSIvPgogIDwvZz4KPC9zdmc+Cg==";
3
- const pdfinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjYjkxYzFjIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik02IDExVjZoM3YzSDZtNCAyaDEiLz4KICA8L2c+Cjwvc3ZnPgo=";
4
- const pptinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjYzI0MTBjIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Ik02IDdoNXY0SDZ6bTIuNSA0djEiLz4KICA8L2c+Cjwvc3ZnPgo=";
5
- const videoinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDM2OWExIi8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Im03IDYgNCAyLjVMNyAxMXoiLz4KICA8L2c+Cjwvc3ZnPgo=";
6
- const wordinline_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj4KICA8cmVjdCB4PSIzIiB5PSIyIiB3aWR0aD0iMTEiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMWQ0ZWQ4Ii8+CiAgPGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgIDxwYXRoIGQ9Im01LjUgNyAxIDQgMi0zIDIgMyAxLTQiLz4KICA8L2c+Cjwvc3ZnPgo=";
7
- function createIcon(src, name) {
8
- function Icon(props) {
9
- return /*#__PURE__*/ jsx("img", {
10
- alt: "",
11
- width: 16,
12
- height: 16,
13
- ...props,
14
- src: src
15
- });
16
- }
17
- Icon.displayName = name;
18
- return Icon;
19
- }
20
- const AudioIcon = createIcon(audioinline_namespaceObject, 'AudioIcon');
21
- const PdfIcon = createIcon(pdfinline_namespaceObject, 'PdfIcon');
22
- const PptIcon = createIcon(pptinline_namespaceObject, 'PptIcon');
23
- const VideoIcon = createIcon(videoinline_namespaceObject, 'VideoIcon');
24
- const WordIcon = createIcon(wordinline_namespaceObject, 'WordIcon');
25
- export { AudioIcon, PdfIcon, PptIcon, VideoIcon, WordIcon };
1
+ export { ArrowRightIcon, AudioIcon, ChevronRightIcon, DocumentIcon, FolderIcon, FolderOpenIcon, PdfIcon, PptIcon, VideoIcon, WordIcon, getFileTypeColor, getFileTypeIcon, resolveFileTypeIconKey } from "./k~0.js";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,16 @@
1
- export { StatusBadge } from './components/status-badge/status-badge.js';
2
- export type { StatusBadgeProps, StatusBadgeStatus, } from './components/status-badge/status-badge.js';
1
+ export { FileTree } from './components/file-tree/index.js';
2
+ export type { FileTreeProps } from './components/file-tree/index.js';
3
+ export { Tui } from './components/tui/index.js';
4
+ export type { TuiProps } from './components/tui/index.js';
5
+ export { ScopeSwitcher, ScopeSelector, } from './components/scope-switcher/index.js';
6
+ export type { ScopeSwitcherProps, ScopeSelectorProps, } from './components/scope-switcher/index.js';
7
+ export { AgentConnect } from './components/agent-connect/index.js';
8
+ export type { AgentConnectProps } from './components/agent-connect/index.js';
9
+ export { VikingBot } from './components/viking-bot/index.js';
10
+ export type { VikingBotProps } from './components/viking-bot/index.js';
11
+ export { FileBrowser } from './modules/file-browser/index.js';
12
+ export type { FileBrowserProps } from './modules/file-browser/index.js';
13
+ export { Console } from './modules/console/index.js';
14
+ export type { ConsoleProps } from './modules/console/index.js';
15
+ export { ScopeCascade } from './modules/scope-cascade/index.js';
16
+ export type { ScopeCascadeProps } from './modules/scope-cascade/index.js';
package/dist/index.js CHANGED
@@ -1 +1,8 @@
1
- export { StatusBadge } from "./components/status-badge.js";
1
+ export { AgentConnect } from "./u~0.js";
2
+ export { Console } from "./a~0.js";
3
+ export { FileBrowser } from "./l~0.js";
4
+ export { FileTree } from "./n~0.js";
5
+ export { ScopeCascade } from "./lk~0.js";
6
+ export { ScopeSelector, ScopeSwitcher } from "./f~0.js";
7
+ export { Tui } from "./3~0.js";
8
+ export { VikingBot } from "./c~0.js";