@opencode-ai/ui 0.0.0-dev-17503 → 0.0.0-dev-202608162159

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 (110) hide show
  1. package/dist/components/icon.d.ts +0 -6
  2. package/dist/components/scroll-view.d.ts +3 -3
  3. package/dist/context/i18n.d.ts +7 -10
  4. package/dist/i18n/ar.d.ts +2 -0
  5. package/dist/i18n/bg.d.ts +2 -0
  6. package/dist/i18n/br.d.ts +2 -0
  7. package/dist/i18n/bs.d.ts +2 -0
  8. package/dist/i18n/da.d.ts +2 -0
  9. package/dist/i18n/de.d.ts +2 -0
  10. package/dist/i18n/en.d.ts +1 -202
  11. package/dist/i18n/es.d.ts +2 -0
  12. package/dist/i18n/fr.d.ts +2 -0
  13. package/dist/i18n/ja.d.ts +2 -0
  14. package/dist/i18n/km.d.ts +2 -0
  15. package/dist/i18n/ko.d.ts +2 -0
  16. package/dist/i18n/lo.d.ts +2 -0
  17. package/dist/i18n/mk.d.ts +2 -0
  18. package/dist/i18n/mn.d.ts +2 -0
  19. package/dist/i18n/my.d.ts +2 -0
  20. package/dist/i18n/pl.d.ts +2 -0
  21. package/dist/i18n/ru.d.ts +2 -0
  22. package/dist/i18n/sr.d.ts +2 -0
  23. package/dist/i18n/tg.d.ts +2 -0
  24. package/dist/i18n/th.d.ts +2 -0
  25. package/dist/i18n/tr.d.ts +2 -0
  26. package/dist/i18n/zh.d.ts +2 -0
  27. package/dist/i18n/zht.d.ts +2 -0
  28. package/dist/v2/components/icon.d.ts +0 -12
  29. package/package.json +5 -1
  30. package/src/components/card.tsx +3 -3
  31. package/src/components/icon.tsx +0 -6
  32. package/src/components/list.tsx +2 -4
  33. package/src/components/provider-icon.tsx +1 -1
  34. package/src/components/scroll-view.tsx +20 -5
  35. package/src/components/toast.tsx +14 -16
  36. package/src/context/i18n.tsx +14 -17
  37. package/src/hooks/create-auto-scroll.tsx +0 -20
  38. package/src/i18n/am.ts +2 -0
  39. package/src/i18n/ar.ts +2 -0
  40. package/src/i18n/az.ts +2 -0
  41. package/src/i18n/bg.ts +2 -0
  42. package/src/i18n/bn.ts +2 -0
  43. package/src/i18n/br.ts +2 -0
  44. package/src/i18n/bs.ts +2 -0
  45. package/src/i18n/ca.ts +2 -0
  46. package/src/i18n/cs.ts +2 -0
  47. package/src/i18n/da.ts +2 -0
  48. package/src/i18n/de.ts +2 -0
  49. package/src/i18n/dv.ts +2 -0
  50. package/src/i18n/dz.ts +2 -0
  51. package/src/i18n/el.ts +2 -0
  52. package/src/i18n/en.ts +4 -11
  53. package/src/i18n/es.ts +2 -0
  54. package/src/i18n/et.ts +2 -0
  55. package/src/i18n/fa.ts +2 -0
  56. package/src/i18n/fi.ts +2 -0
  57. package/src/i18n/fo.ts +2 -0
  58. package/src/i18n/fr.ts +2 -0
  59. package/src/i18n/hi.ts +2 -0
  60. package/src/i18n/hr.ts +2 -0
  61. package/src/i18n/hu.ts +2 -0
  62. package/src/i18n/hy.ts +2 -0
  63. package/src/i18n/id.ts +2 -0
  64. package/src/i18n/is.ts +2 -0
  65. package/src/i18n/it.ts +2 -0
  66. package/src/i18n/ja.ts +2 -0
  67. package/src/i18n/ka.ts +2 -0
  68. package/src/i18n/km.ts +2 -0
  69. package/src/i18n/ko.ts +2 -0
  70. package/src/i18n/lo.ts +2 -0
  71. package/src/i18n/lt.ts +2 -0
  72. package/src/i18n/lv.ts +2 -0
  73. package/src/i18n/mk.ts +2 -0
  74. package/src/i18n/mn.ts +2 -0
  75. package/src/i18n/ms.ts +2 -0
  76. package/src/i18n/my.ts +2 -0
  77. package/src/i18n/ne.ts +2 -0
  78. package/src/i18n/nl.ts +2 -0
  79. package/src/i18n/no.ts +2 -0
  80. package/src/i18n/pa.ts +2 -0
  81. package/src/i18n/pl.ts +2 -0
  82. package/src/i18n/ro.ts +2 -0
  83. package/src/i18n/ru.ts +2 -0
  84. package/src/i18n/si.ts +2 -0
  85. package/src/i18n/sk.ts +2 -0
  86. package/src/i18n/sl.ts +2 -0
  87. package/src/i18n/sq.ts +2 -0
  88. package/src/i18n/sr.ts +2 -0
  89. package/src/i18n/sv.ts +2 -0
  90. package/src/i18n/tg.ts +2 -0
  91. package/src/i18n/th.ts +2 -0
  92. package/src/i18n/tk.ts +2 -0
  93. package/src/i18n/tr.ts +2 -0
  94. package/src/i18n/uk.ts +2 -0
  95. package/src/i18n/ur.ts +2 -0
  96. package/src/i18n/uz.ts +2 -0
  97. package/src/i18n/vi.ts +2 -0
  98. package/src/i18n/zh.ts +2 -0
  99. package/src/i18n/zht.ts +2 -0
  100. package/src/theme/themes/oc-2.json +1 -1
  101. package/src/v2/components/dialog-v2.css +0 -3
  102. package/src/v2/components/dialog-v2.tsx +2 -2
  103. package/src/v2/components/icon.tsx +0 -13
  104. package/src/v2/components/keybind-v2.css +1 -1
  105. package/src/v2/components/line-comment-v2.tsx +0 -2
  106. package/src/v2/components/tabs-v2.css +4 -12
  107. package/src/v2/components/toast-v2.tsx +0 -2
  108. package/src/v2/components/tooltip-v2.tsx +2 -3
  109. package/dist/i18n/he.d.ts +0 -197
  110. package/src/i18n/he.ts +0 -199
@@ -9,7 +9,6 @@ declare const icons: {
9
9
  prompt: string;
10
10
  brain: string;
11
11
  fork: string;
12
- "workspace-isolated": string;
13
12
  "bullet-list": string;
14
13
  "check-small": string;
15
14
  "chevron-down": string;
@@ -96,11 +95,6 @@ declare const icons: {
96
95
  link: string;
97
96
  providers: string;
98
97
  models: string;
99
- appearance: string;
100
- notifications: string;
101
- extensions: string;
102
- cube: string;
103
- "post-skill": string;
104
98
  "arrow-undo-down": string;
105
99
  };
106
100
  export interface IconProps extends ComponentProps<"svg"> {
@@ -1,4 +1,4 @@
1
- import { type ComponentProps } from "solid-js";
1
+ import { type Accessor, type ComponentProps } from "solid-js";
2
2
  export type ScrollViewThumbVisibility = "hover" | "scroll";
3
3
  export interface ScrollViewProps extends ComponentProps<"div"> {
4
4
  viewportRef?: (el: HTMLDivElement) => void;
@@ -11,9 +11,9 @@ export interface ScrollViewProps extends ComponentProps<"div"> {
11
11
  * */
12
12
  thumbVisibility?: ScrollViewThumbVisibility;
13
13
  /** Mount the thumb into an external track. Scroll metrics still come from this ScrollView. */
14
- thumbContainer?: HTMLElement;
14
+ thumbContainer?: HTMLElement | Accessor<HTMLElement | undefined>;
15
15
  /** Element whose hover reveals the thumb. Defaults to the ScrollView root when unset. */
16
- thumbHoverTarget?: HTMLElement;
16
+ thumbHoverTarget?: HTMLElement | Accessor<HTMLElement | undefined>;
17
17
  }
18
18
  export declare const scrollKey: (event: Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey">) => "end" | "home" | "page-down" | "page-up" | "up" | "down" | undefined;
19
19
  export declare function canScrollKey(element: HTMLElement, key: NonNullable<ReturnType<typeof scrollKey>>): boolean;
@@ -1,19 +1,16 @@
1
1
  import { type Accessor, type ParentProps } from "solid-js";
2
- import type { Key, LocaleKey, PluralCategory, PluralKey, PluralLookupKey } from "../i18n/en";
3
- export type UiI18nKey = Key;
4
- export type UiI18nPluralKey = PluralKey;
5
- export type UiPluralCategory = PluralCategory;
6
- export type UiI18nPluralLookupKey = PluralLookupKey;
7
- export type UiI18nLocaleKey = LocaleKey;
8
- type UiTranslationKey<Value extends string> = Value extends UiI18nPluralLookupKey ? never : Value;
2
+ import { dict as en } from "../i18n/en";
3
+ export type UiI18nKey = keyof typeof en;
4
+ export declare const UI_PLURAL_KEYS: readonly ["ui.sessionTurn.diffs.changed", "ui.messagePart.context.read", "ui.messagePart.context.search", "ui.messagePart.context.list"];
5
+ export type UiI18nPluralKey = (typeof UI_PLURAL_KEYS)[number];
6
+ export type UiPluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
7
+ export type UiI18nPluralLookupKey = `${UiI18nPluralKey}.${UiPluralCategory}`;
9
8
  export type UiI18nParams = Record<string, string | number | boolean>;
10
- export type UiTranslate = <Value extends string>(key: UiTranslationKey<Value>, params?: UiI18nParams) => string;
11
9
  export type UiI18n = {
12
10
  locale: Accessor<string>;
13
11
  layoutLocale?: Accessor<string>;
14
- t: UiTranslate;
12
+ t: (key: UiI18nKey, params?: UiI18nParams) => string;
15
13
  plural: (key: UiI18nPluralKey, count: number, params?: UiI18nParams) => string;
16
- pluralForm?: (key: UiI18nPluralKey, category: UiPluralCategory, params?: UiI18nParams) => string;
17
14
  };
18
15
  export declare function pluralCategory(locale: string, count: number): UiPluralCategory;
19
16
  export declare function pluralKey(key: UiI18nPluralKey, category: UiPluralCategory): UiI18nPluralLookupKey;
package/dist/i18n/ar.d.ts CHANGED
@@ -152,6 +152,8 @@ export declare const dict: {
152
152
  "ui.tool.websearch.provider": string;
153
153
  "ui.tool.shell": string;
154
154
  "ui.tool.patch": string;
155
+ "ui.tool.todos": string;
156
+ "ui.tool.todos.read": string;
155
157
  "ui.tool.questions": string;
156
158
  "ui.tool.questions.numbered": string;
157
159
  "ui.tool.agent": string;
package/dist/i18n/bg.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/br.d.ts CHANGED
@@ -140,6 +140,8 @@ export declare const dict: {
140
140
  "ui.tool.websearch.provider": string;
141
141
  "ui.tool.shell": string;
142
142
  "ui.tool.patch": string;
143
+ "ui.tool.todos": string;
144
+ "ui.tool.todos.read": string;
143
145
  "ui.tool.questions": string;
144
146
  "ui.tool.questions.numbered": string;
145
147
  "ui.tool.agent": string;
package/dist/i18n/bs.d.ts CHANGED
@@ -140,6 +140,8 @@ export declare const dict: {
140
140
  "ui.tool.websearch.provider": string;
141
141
  "ui.tool.shell": string;
142
142
  "ui.tool.patch": string;
143
+ "ui.tool.todos": string;
144
+ "ui.tool.todos.read": string;
143
145
  "ui.tool.questions": string;
144
146
  "ui.tool.questions.numbered": string;
145
147
  "ui.tool.agent": string;
package/dist/i18n/da.d.ts CHANGED
@@ -118,6 +118,8 @@ export declare const dict: {
118
118
  "ui.tool.websearch.provider": string;
119
119
  "ui.tool.shell": string;
120
120
  "ui.tool.patch": string;
121
+ "ui.tool.todos": string;
122
+ "ui.tool.todos.read": string;
121
123
  "ui.tool.questions": string;
122
124
  "ui.tool.questions.numbered": string;
123
125
  "ui.tool.agent": string;
package/dist/i18n/de.d.ts CHANGED
@@ -118,6 +118,8 @@ export declare const dict: {
118
118
  "ui.tool.websearch.provider": string;
119
119
  "ui.tool.shell": string;
120
120
  "ui.tool.patch": string;
121
+ "ui.tool.todos": string;
122
+ "ui.tool.todos.read": string;
121
123
  "ui.tool.questions": string;
122
124
  "ui.tool.questions.numbered": string;
123
125
  "ui.tool.agent": string;
package/dist/i18n/en.d.ts CHANGED
@@ -1,202 +1 @@
1
- declare const source: {
2
- "ui.sessionReview.title": string;
3
- "ui.sessionReview.title.git": string;
4
- "ui.sessionReview.title.branch": string;
5
- "ui.sessionReview.title.lastTurn": string;
6
- "ui.sessionReview.diffStyle.unified": string;
7
- "ui.sessionReview.diffStyle.split": string;
8
- "ui.sessionReview.expandAll": string;
9
- "ui.sessionReview.collapseAll": string;
10
- "ui.sessionReview.change.added": string;
11
- "ui.sessionReview.change.removed": string;
12
- "ui.sessionReview.change.modified": string;
13
- "ui.sessionReview.image.loading": string;
14
- "ui.sessionReview.image.placeholder": string;
15
- "ui.sessionReview.largeDiff.title": string;
16
- "ui.sessionReview.largeDiff.meta": string;
17
- "ui.sessionReview.largeDiff.renderAnyway": string;
18
- "ui.sessionReviewV2.expandMode": string;
19
- "ui.sessionReviewV2.filterFiles": string;
20
- "ui.sessionReviewV2.toggleSidebar": string;
21
- "ui.sessionReviewV2.showAllLines": string;
22
- "ui.sessionReviewV2.hideNonDiffLines": string;
23
- "ui.sessionReviewV2.unifiedDiff": string;
24
- "ui.sessionReviewV2.splitDiff": string;
25
- "ui.sessionReviewV2.previousFile": string;
26
- "ui.sessionReviewV2.nextFile": string;
27
- "ui.sessionReviewV2.diffView": string;
28
- "ui.sessionReviewV2.empty.noGit.title": string;
29
- "ui.sessionReviewV2.empty.noGit.description": string;
30
- "ui.sessionReviewV2.empty.noGit.action": string;
31
- "ui.sessionReviewV2.empty.noGit.actionLoading": string;
32
- "ui.sessionReviewV2.empty.changes.title": string;
33
- "ui.sessionReviewV2.empty.changes.description": string;
34
- "ui.sessionReview.openFile": string;
35
- "ui.sessionReview.selection.line": string;
36
- "ui.sessionReview.selection.lines": string;
37
- "ui.fileMedia.kind.image": string;
38
- "ui.fileMedia.kind.audio": string;
39
- "ui.fileMedia.state.removed": string;
40
- "ui.fileMedia.state.loading": string;
41
- "ui.fileMedia.state.error": string;
42
- "ui.fileMedia.state.unavailable": string;
43
- "ui.fileMedia.binary.title": string;
44
- "ui.fileMedia.binary.description.path": string;
45
- "ui.fileMedia.binary.description.default": string;
46
- "ui.lineComment.label.prefix": string;
47
- "ui.lineComment.label.suffix": string;
48
- "ui.lineComment.editorLabel.prefix": string;
49
- "ui.lineComment.editorLabel.suffix": string;
50
- "ui.lineComment.placeholder": string;
51
- "ui.lineComment.contextPlaceholder": string;
52
- "ui.lineComment.submit": string;
53
- "ui.lineComment.cancel": string;
54
- "ui.sessionTurn.steps.show": string;
55
- "ui.sessionTurn.steps.hide": string;
56
- "ui.sessionTurn.summary.response": string;
57
- "ui.sessionTurn.diff.showMore": string;
58
- "ui.sessionTurn.diffs.changed.one": string;
59
- "ui.sessionTurn.diffs.changed.other": string;
60
- "ui.sessionTurn.diffs.showAll": string;
61
- "ui.sessionTurn.diffs.showLess": string;
62
- "ui.sessionTurn.diffs.more": string;
63
- "ui.sessionTurn.retry.retrying": string;
64
- "ui.sessionTurn.retry.inSeconds": string;
65
- "ui.sessionTurn.retry.attempt": string;
66
- "ui.sessionTurn.retry.attemptLine": string;
67
- "ui.sessionTurn.retry.geminiHot": string;
68
- "ui.sessionTurn.error.freeUsageExceeded": string;
69
- "ui.sessionTurn.error.addCredits": string;
70
- "dialog.usageExceeded.freeTier.title": string;
71
- "dialog.usageExceeded.freeTier.description": string;
72
- "dialog.usageExceeded.freeTier.actionLabel": string;
73
- "dialog.usageExceeded.accountRateLimit.title": string;
74
- "dialog.usageExceeded.accountRateLimit.description": string;
75
- "dialog.usageExceeded.accountRateLimit.actionLabel": string;
76
- "ui.sessionTurn.status.delegating": string;
77
- "ui.sessionTurn.status.planning": string;
78
- "ui.sessionTurn.status.gatheringContext": string;
79
- "ui.sessionTurn.status.gatheredContext": string;
80
- "ui.sessionTurn.status.searchingCodebase": string;
81
- "ui.sessionTurn.status.searchingWeb": string;
82
- "ui.sessionTurn.status.makingEdits": string;
83
- "ui.sessionTurn.status.runningCommands": string;
84
- "ui.sessionTurn.status.thinking": string;
85
- "ui.sessionTurn.status.thinkingWithTopic": string;
86
- "ui.sessionTurn.status.gatheringThoughts": string;
87
- "ui.sessionTurn.status.consideringNextSteps": string;
88
- "ui.messagePart.diagnostic.error": string;
89
- "ui.messagePart.title.edit": string;
90
- "ui.messagePart.title.write": string;
91
- "ui.messagePart.option.typeOwnAnswer": string;
92
- "ui.messagePart.review.title": string;
93
- "ui.messagePart.questions.dismissed": string;
94
- "ui.messagePart.compaction": string;
95
- "ui.messagePart.context.read.one": string;
96
- "ui.messagePart.context.read.other": string;
97
- "ui.messagePart.context.search.one": string;
98
- "ui.messagePart.context.search.other": string;
99
- "ui.messagePart.context.list.one": string;
100
- "ui.messagePart.context.list.other": string;
101
- "ui.list.loading": string;
102
- "ui.list.empty": string;
103
- "ui.list.clearFilter": string;
104
- "ui.list.emptyWithFilter.prefix": string;
105
- "ui.list.emptyWithFilter.suffix": string;
106
- "ui.fileSearch.placeholder": string;
107
- "ui.fileSearch.previousMatch": string;
108
- "ui.fileSearch.nextMatch": string;
109
- "ui.fileSearch.close": string;
110
- "ui.messageNav.newMessage": string;
111
- "ui.promptInput.noMatchingItems": string;
112
- "ui.promptInput.commands": string;
113
- "ui.promptInput.dropFiles": string;
114
- "ui.promptInput.removeAttachment": string;
115
- "ui.promptInput.label": string;
116
- "ui.promptInput.placeholder.shell": string;
117
- "ui.promptInput.placeholder.normal": string;
118
- "ui.promptInput.add": string;
119
- "ui.promptInput.attachments": string;
120
- "ui.promptInput.context": string;
121
- "ui.promptInput.shell": string;
122
- "ui.promptInput.chooseAgent": string;
123
- "ui.promptInput.chooseModel": string;
124
- "ui.promptInput.chooseVariant": string;
125
- "ui.promptInput.send": string;
126
- "ui.promptInput.stop": string;
127
- "ui.tabs.close": string;
128
- "ui.textField.copyToClipboard": string;
129
- "ui.textField.copyLink": string;
130
- "ui.textField.copied": string;
131
- "ui.imagePreview.alt": string;
132
- "ui.scrollView.ariaLabel": string;
133
- "ui.tool.read": string;
134
- "ui.tool.loaded": string;
135
- "ui.tool.list": string;
136
- "ui.tool.glob": string;
137
- "ui.tool.grep": string;
138
- "ui.tool.task": string;
139
- "ui.tool.webfetch": string;
140
- "ui.tool.websearch": string;
141
- "ui.tool.websearch.provider": string;
142
- "ui.tool.shell": string;
143
- "ui.tool.patch": string;
144
- "ui.tool.questions": string;
145
- "ui.tool.questions.numbered": string;
146
- "ui.tool.agent": string;
147
- "ui.tool.agent.default": string;
148
- "ui.tool.skill": string;
149
- "ui.basicTool.called": string;
150
- "ui.toolErrorCard.failed": string;
151
- "ui.toolErrorCard.copyError": string;
152
- "ui.common.file.one": string;
153
- "ui.common.file.other": string;
154
- "ui.common.question.one": string;
155
- "ui.common.question.other": string;
156
- "ui.common.add": string;
157
- "ui.common.clear": string;
158
- "ui.common.file": string;
159
- "ui.common.back": string;
160
- "ui.common.cancel": string;
161
- "ui.common.confirm": string;
162
- "ui.common.dismiss": string;
163
- "ui.common.close": string;
164
- "ui.common.next": string;
165
- "ui.common.submit": string;
166
- "ui.common.showMore": string;
167
- "ui.permission.deny": string;
168
- "ui.permission.allowAlways": string;
169
- "ui.permission.allowOnce": string;
170
- "ui.message.expand": string;
171
- "ui.message.collapse": string;
172
- "ui.message.copy": string;
173
- "ui.message.copyMessage": string;
174
- "ui.message.forkMessage": string;
175
- "ui.message.revertMessage": string;
176
- "ui.message.copyResponse": string;
177
- "ui.message.copied": string;
178
- "ui.message.duration.seconds": string;
179
- "ui.message.duration.minutesSeconds": string;
180
- "ui.message.interrupted": string;
181
- "ui.message.queued": string;
182
- "ui.message.attachment.alt": string;
183
- "ui.patch.action.deleted": string;
184
- "ui.patch.action.created": string;
185
- "ui.patch.action.moved": string;
186
- "ui.patch.action.patched": string;
187
- "ui.question.subtitle.answered": string;
188
- "ui.question.answer.none": string;
189
- "ui.question.review.notAnswered": string;
190
- "ui.question.multiHint": string;
191
- "ui.question.singleHint": string;
192
- "ui.question.custom.placeholder": string;
193
- };
194
- export type Key = keyof typeof source;
195
- export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
196
- export type PluralKey = {
197
- [Entry in Key]: Entry extends `${infer Base}.other` ? (`${Base}.one` extends Key ? Base : never) : never;
198
- }[Key];
199
- export type PluralLookupKey = `${PluralKey}.${PluralCategory}`;
200
- export type LocaleKey = Key | PluralLookupKey;
201
- export declare const dict: typeof source & Record<string, string>;
202
- export {};
1
+ export declare const dict: Record<string, string>;
package/dist/i18n/es.d.ts CHANGED
@@ -140,6 +140,8 @@ export declare const dict: {
140
140
  "ui.tool.websearch.provider": string;
141
141
  "ui.tool.shell": string;
142
142
  "ui.tool.patch": string;
143
+ "ui.tool.todos": string;
144
+ "ui.tool.todos.read": string;
143
145
  "ui.tool.questions": string;
144
146
  "ui.tool.questions.numbered": string;
145
147
  "ui.tool.agent": string;
package/dist/i18n/fr.d.ts CHANGED
@@ -140,6 +140,8 @@ export declare const dict: {
140
140
  "ui.tool.websearch.provider": string;
141
141
  "ui.tool.shell": string;
142
142
  "ui.tool.patch": string;
143
+ "ui.tool.todos": string;
144
+ "ui.tool.todos.read": string;
143
145
  "ui.tool.questions": string;
144
146
  "ui.tool.questions.numbered": string;
145
147
  "ui.tool.agent": string;
package/dist/i18n/ja.d.ts CHANGED
@@ -136,6 +136,8 @@ export declare const dict: {
136
136
  "ui.tool.websearch.provider": string;
137
137
  "ui.tool.shell": string;
138
138
  "ui.tool.patch": string;
139
+ "ui.tool.todos": string;
140
+ "ui.tool.todos.read": string;
139
141
  "ui.tool.questions": string;
140
142
  "ui.tool.questions.numbered": string;
141
143
  "ui.tool.agent": string;
package/dist/i18n/km.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/ko.d.ts CHANGED
@@ -112,6 +112,8 @@ export declare const dict: {
112
112
  "ui.tool.websearch.provider": string;
113
113
  "ui.tool.shell": string;
114
114
  "ui.tool.patch": string;
115
+ "ui.tool.todos": string;
116
+ "ui.tool.todos.read": string;
115
117
  "ui.tool.questions": string;
116
118
  "ui.tool.questions.numbered": string;
117
119
  "ui.tool.agent": string;
package/dist/i18n/lo.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/mk.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/mn.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/my.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/pl.d.ts CHANGED
@@ -144,6 +144,8 @@ export declare const dict: {
144
144
  "ui.tool.websearch.provider": string;
145
145
  "ui.tool.shell": string;
146
146
  "ui.tool.patch": string;
147
+ "ui.tool.todos": string;
148
+ "ui.tool.todos.read": string;
147
149
  "ui.tool.questions": string;
148
150
  "ui.tool.questions.numbered": string;
149
151
  "ui.tool.agent": string;
package/dist/i18n/ru.d.ts CHANGED
@@ -144,6 +144,8 @@ export declare const dict: {
144
144
  "ui.tool.websearch.provider": string;
145
145
  "ui.tool.shell": string;
146
146
  "ui.tool.patch": string;
147
+ "ui.tool.todos": string;
148
+ "ui.tool.todos.read": string;
147
149
  "ui.tool.questions": string;
148
150
  "ui.tool.questions.numbered": string;
149
151
  "ui.tool.agent": string;
package/dist/i18n/sr.d.ts CHANGED
@@ -145,6 +145,8 @@ export declare const dict: {
145
145
  "ui.tool.websearch.provider": string;
146
146
  "ui.tool.shell": string;
147
147
  "ui.tool.patch": string;
148
+ "ui.tool.todos": string;
149
+ "ui.tool.todos.read": string;
148
150
  "ui.tool.questions": string;
149
151
  "ui.tool.questions.numbered": string;
150
152
  "ui.tool.agent": string;
package/dist/i18n/tg.d.ts CHANGED
@@ -141,6 +141,8 @@ export declare const dict: {
141
141
  "ui.tool.websearch.provider": string;
142
142
  "ui.tool.shell": string;
143
143
  "ui.tool.patch": string;
144
+ "ui.tool.todos": string;
145
+ "ui.tool.todos.read": string;
144
146
  "ui.tool.questions": string;
145
147
  "ui.tool.questions.numbered": string;
146
148
  "ui.tool.agent": string;
package/dist/i18n/th.d.ts CHANGED
@@ -136,6 +136,8 @@ export declare const dict: {
136
136
  "ui.tool.websearch.provider": string;
137
137
  "ui.tool.shell": string;
138
138
  "ui.tool.patch": string;
139
+ "ui.tool.todos": string;
140
+ "ui.tool.todos.read": string;
139
141
  "ui.tool.questions": string;
140
142
  "ui.tool.questions.numbered": string;
141
143
  "ui.tool.agent": string;
package/dist/i18n/tr.d.ts CHANGED
@@ -136,6 +136,8 @@ export declare const dict: {
136
136
  "ui.tool.websearch.provider": string;
137
137
  "ui.tool.shell": string;
138
138
  "ui.tool.patch": string;
139
+ "ui.tool.todos": string;
140
+ "ui.tool.todos.read": string;
139
141
  "ui.tool.questions": string;
140
142
  "ui.tool.questions.numbered": string;
141
143
  "ui.tool.agent": string;
package/dist/i18n/zh.d.ts CHANGED
@@ -136,6 +136,8 @@ export declare const dict: {
136
136
  "ui.tool.websearch.provider": string;
137
137
  "ui.tool.shell": string;
138
138
  "ui.tool.patch": string;
139
+ "ui.tool.todos": string;
140
+ "ui.tool.todos.read": string;
139
141
  "ui.tool.questions": string;
140
142
  "ui.tool.questions.numbered": string;
141
143
  "ui.tool.agent": string;
@@ -136,6 +136,8 @@ export declare const dict: {
136
136
  "ui.tool.websearch.provider": string;
137
137
  "ui.tool.shell": string;
138
138
  "ui.tool.patch": string;
139
+ "ui.tool.todos": string;
140
+ "ui.tool.todos.read": string;
139
141
  "ui.tool.questions": string;
140
142
  "ui.tool.questions.numbered": string;
141
143
  "ui.tool.agent": string;
@@ -16,10 +16,6 @@ declare const icons: {
16
16
  viewBox: string;
17
17
  body: string;
18
18
  };
19
- "branch-out": {
20
- viewBox: string;
21
- body: string;
22
- };
23
19
  "grid-plus": {
24
20
  viewBox: string;
25
21
  body: string;
@@ -124,14 +120,6 @@ declare const icons: {
124
120
  viewBox: string;
125
121
  body: string;
126
122
  };
127
- "window-analytics": {
128
- viewBox: string;
129
- body: string;
130
- };
131
- trash: {
132
- viewBox: string;
133
- body: string;
134
- };
135
123
  "outline-sliders": {
136
124
  viewBox: string;
137
125
  body: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-ai/ui",
3
- "version": "0.0.0-dev-17503",
3
+ "version": "0.0.0-dev-202608162159",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -124,6 +124,8 @@
124
124
  "dependencies": {
125
125
  "@kobalte/core": "0.13.11",
126
126
  "@pierre/diffs": "1.2.10",
127
+ "@shikijs/transformers": "3.9.2",
128
+ "@solid-primitives/bounds": "0.1.3",
127
129
  "@solid-primitives/event-listener": "2.4.5",
128
130
  "@solid-primitives/media": "2.3.3",
129
131
  "@solid-primitives/resize-observer": "2.1.3",
@@ -137,6 +139,8 @@
137
139
  "marked-shiki": "1.2.1",
138
140
  "morphdom": "2.7.8",
139
141
  "motion": "12.34.5",
142
+ "motion-dom": "12.34.3",
143
+ "motion-utils": "12.29.2",
140
144
  "remeda": "2.26.0",
141
145
  "remend": "1.3.0",
142
146
  "shiki": "4.2.0",
@@ -1,4 +1,4 @@
1
- import { type ComponentProps, Show, splitProps } from "solid-js"
1
+ import { type ComponentProps, splitProps } from "solid-js"
2
2
  import { Icon, type IconProps } from "./icon"
3
3
 
4
4
  type Variant = "normal" | "error" | "warning" | "success" | "info"
@@ -80,11 +80,11 @@ export function CardTitle(props: CardTitleProps) {
80
80
  [split.class ?? ""]: !!split.class,
81
81
  }}
82
82
  >
83
- <Show when={show()}>
83
+ {show() ? (
84
84
  <span data-slot="card-title-icon" data-placeholder={placeholder() || undefined}>
85
85
  <Icon name={name() ?? "dash"} size="small" />
86
86
  </span>
87
- </Show>
87
+ ) : null}
88
88
  {split.children}
89
89
  </div>
90
90
  )
@@ -10,7 +10,6 @@ const icons = {
10
10
  prompt: `<path d="M14.5841 12.0807H17.9193V2.91406H5.6276V6.2474M14.5859 6.2474H2.08594V15.4141H5.0026V17.4974L8.7526 15.4141H14.5859V6.2474Z" stroke="currentColor" stroke-linecap="square"/>`,
11
11
  brain: `<path d="M13.332 8.7487C11.4911 8.7487 9.9987 7.25631 9.9987 5.41536M6.66536 11.2487C8.50631 11.2487 9.9987 12.7411 9.9987 14.582M9.9987 2.78209L9.9987 17.0658M16.004 15.0475C17.1255 14.5876 17.9154 13.4849 17.9154 12.1978C17.9154 11.3363 17.5615 10.5575 16.9913 9.9987C17.5615 9.43991 17.9154 8.66108 17.9154 7.79962C17.9154 6.21199 16.7136 4.90504 15.1702 4.73878C14.7858 3.21216 13.4039 2.08203 11.758 2.08203C11.1171 2.08203 10.5162 2.25337 9.9987 2.55275C9.48117 2.25337 8.88032 2.08203 8.23944 2.08203C6.59353 2.08203 5.21157 3.21216 4.82722 4.73878C3.28377 4.90504 2.08203 6.21199 2.08203 7.79962C2.08203 8.66108 2.43585 9.43991 3.00609 9.9987C2.43585 10.5575 2.08203 11.3363 2.08203 12.1978C2.08203 13.4849 2.87191 14.5876 3.99339 15.0475C4.46688 16.7033 5.9917 17.9154 7.79962 17.9154C8.61335 17.9154 9.36972 17.6698 9.9987 17.2488C10.6277 17.6698 11.384 17.9154 12.1978 17.9154C14.0057 17.9154 15.5305 16.7033 16.004 15.0475Z" stroke="currentColor"/>`,
12
12
  fork: `<path d="M2.91602 7.91406L2.91602 2.91406H7.91602M12.0827 2.91406H17.0827L17.0827 7.91406M9.99935 9.9974L9.99935 17.0807M9.99935 9.9974L3.33268 3.33073M9.99935 9.9974L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>`,
13
- "workspace-isolated": `<g transform="translate(2 2)"><path d="M10.5 10.5V5.5H5.5V10.5H10.5Z" fill="currentColor"/><rect x="2.5" y="2.5" width="11" height="11" stroke="currentColor"/></g>`,
14
13
  "bullet-list": `<path d="M9.58329 13.7497H17.0833M9.58329 6.24967H17.0833M6.24996 6.24967C6.24996 7.17015 5.50377 7.91634 4.58329 7.91634C3.66282 7.91634 2.91663 7.17015 2.91663 6.24967C2.91663 5.3292 3.66282 4.58301 4.58329 4.58301C5.50377 4.58301 6.24996 5.3292 6.24996 6.24967ZM6.24996 13.7497C6.24996 14.6701 5.50377 15.4163 4.58329 15.4163C3.66282 15.4163 2.91663 14.6701 2.91663 13.7497C2.91663 12.8292 3.66282 12.083 4.58329 12.083C5.50377 12.083 6.24996 12.8292 6.24996 13.7497Z" stroke="currentColor" stroke-linecap="square"/>`,
15
14
  "check-small": `<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>`,
16
15
  "chevron-down": `<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>`,
@@ -104,11 +103,6 @@ const icons = {
104
103
  link: `<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>`,
105
104
  providers: `<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>`,
106
105
  models: `<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>`,
107
- appearance: `<path d="M2.707 14.707L14.707 2.707M2.707 9.06L9.06 2.707M2.707 3.413L3.413 2.707M8.354 14.707L14.707 8.354M14.000 14.706L14.706 14.000" stroke="currentColor" stroke-linecap="square"/>`,
108
- notifications: `<path d="M15.389 7.278V9.611C15.389 10.593 15.389 11.389 15.389 11.389H11.833M6.056 11.389H2.5C2.5 11.389 2.5 10.593 2.5 9.611V4.278C2.5 3.296 2.5 2.5 2.5 2.5H9.945M6.056 11.389V13.611H8.944H11.833V11.389M6.056 11.389H11.833" stroke="currentColor"/><circle cx="14.5" cy="4.5" r="2" stroke="currentColor" fill="currentColor"/>`,
109
- extensions: `<path d="M9.166 6.805V9.305M11.834 6.805V9.305M6.5 6.805V9.305M2.5 2.5V13.61H15.833V2.5H2.5Z" stroke="currentColor" stroke-linecap="square"/>`,
110
- cube: `<path d="M10 2.5L16.5 6.25V13.75L10 17.5L3.5 13.75V6.25L10 2.5Z" stroke="currentColor"/><path d="M10 10L16.5 6.25M10 10V17.5M10 10L3.5 6.25" stroke="currentColor"/>`,
111
- "post-skill": `<rect x="2.5" y="3.5" width="15" height="13" rx="1.5" stroke="currentColor"/><path d="M5.5 7.5H10.5M5.5 10.5H14.5" stroke="currentColor"/>`,
112
106
  "arrow-undo-down": `<path d="M4.08333 11.0859L1.75 8.7526L4.08333 6.41927M2.33333 8.7526L12.5417 8.7526L12.5417 3.21094L7 3.21094" stroke="currentColor" stroke-width="1" stroke-linecap="square"/>`,
113
107
  }
114
108
 
@@ -367,11 +367,9 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
367
367
  </span>
368
368
  )}
369
369
  </Show>
370
- <Show
371
- when={props.divider && (i() !== group.items.length - 1 || (showAdd() && isLastGroup()))}
372
- >
370
+ {props.divider && (i() !== group.items.length - 1 || (showAdd() && isLastGroup())) && (
373
371
  <span data-slot="list-item-divider" />
374
- </Show>
372
+ )}
375
373
  </button>
376
374
  )
377
375
  if (props.itemWrapper) return props.itemWrapper(item, node)
@@ -9,7 +9,7 @@ export type ProviderIconProps = JSX.SVGElementTags["svg"] & {
9
9
 
10
10
  export const ProviderIcon: Component<ProviderIconProps> = (props) => {
11
11
  const [local, rest] = splitProps(props, ["id", "class", "classList"])
12
- const resolved = createMemo(() => (iconNames.includes(local.id as IconName) ? local.id : "session.synthetic"))
12
+ const resolved = createMemo(() => (iconNames.includes(local.id as IconName) ? local.id : "synthetic"))
13
13
  return (
14
14
  <svg
15
15
  data-component="provider-icon"