@opencode/ui 2.2.1 → 2.2.3
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/dist/context/helper.d.ts +1 -0
- package/dist/data-display/keybind/keybind.d.ts +1 -1
- package/dist/data-display/line-comment/line-comment.d.ts +4 -2
- package/dist/i18n/am.d.ts +246 -1
- package/dist/i18n/ar.d.ts +0 -3
- package/dist/i18n/az.d.ts +246 -1
- package/dist/i18n/bg.d.ts +0 -3
- package/dist/i18n/bn.d.ts +246 -1
- package/dist/i18n/br.d.ts +0 -3
- package/dist/i18n/bs.d.ts +0 -3
- package/dist/i18n/ca.d.ts +260 -1
- package/dist/i18n/cs.d.ts +274 -1
- package/dist/i18n/da.d.ts +0 -3
- package/dist/i18n/de.d.ts +0 -3
- package/dist/i18n/dv.d.ts +246 -1
- package/dist/i18n/dz.d.ts +246 -1
- package/dist/i18n/el.d.ts +246 -1
- package/dist/i18n/en.d.ts +5 -3
- package/dist/i18n/es.d.ts +0 -3
- package/dist/i18n/et.d.ts +246 -1
- package/dist/i18n/fa.d.ts +246 -1
- package/dist/i18n/fi.d.ts +246 -1
- package/dist/i18n/fo.d.ts +246 -1
- package/dist/i18n/fr.d.ts +0 -3
- package/dist/i18n/he.d.ts +0 -3
- package/dist/i18n/hi.d.ts +246 -1
- package/dist/i18n/hr.d.ts +260 -1
- package/dist/i18n/hu.d.ts +246 -1
- package/dist/i18n/hy.d.ts +246 -1
- package/dist/i18n/id.d.ts +246 -1
- package/dist/i18n/is.d.ts +246 -1
- package/dist/i18n/it.d.ts +260 -1
- package/dist/i18n/ja.d.ts +0 -3
- package/dist/i18n/ka.d.ts +246 -1
- package/dist/i18n/km.d.ts +0 -3
- package/dist/i18n/ko.d.ts +0 -3
- package/dist/i18n/lo.d.ts +0 -3
- package/dist/i18n/lt.d.ts +274 -1
- package/dist/i18n/lv.d.ts +260 -1
- package/dist/i18n/mk.d.ts +0 -3
- package/dist/i18n/mn.d.ts +0 -3
- package/dist/i18n/ms.d.ts +246 -1
- package/dist/i18n/my.d.ts +0 -3
- package/dist/i18n/ne.d.ts +246 -1
- package/dist/i18n/nl.d.ts +246 -1
- package/dist/i18n/pa.d.ts +246 -1
- package/dist/i18n/pl.d.ts +0 -3
- package/dist/i18n/ro.d.ts +260 -1
- package/dist/i18n/ru.d.ts +0 -3
- package/dist/i18n/si.d.ts +246 -1
- package/dist/i18n/sk.d.ts +274 -1
- package/dist/i18n/sl.d.ts +274 -1
- package/dist/i18n/sq.d.ts +246 -1
- package/dist/i18n/sr.d.ts +0 -3
- package/dist/i18n/sv.d.ts +246 -1
- package/dist/i18n/tg.d.ts +0 -3
- package/dist/i18n/th.d.ts +0 -3
- package/dist/i18n/tk.d.ts +246 -1
- package/dist/i18n/tr.d.ts +0 -3
- package/dist/i18n/uk.d.ts +274 -1
- package/dist/i18n/ur.d.ts +246 -1
- package/dist/i18n/uz.d.ts +246 -1
- package/dist/i18n/vi.d.ts +246 -1
- package/dist/i18n/zh.d.ts +0 -3
- package/dist/i18n/zht.d.ts +0 -3
- package/dist/theme/context.d.ts +16 -0
- package/package.json +3 -2
- package/src/components/image-preview.css +3 -2
- package/src/components/image-preview.tsx +4 -0
- package/src/components/truncated-text.tsx +2 -1
- package/src/context/helper.tsx +4 -3
- package/src/context/marked-base.tsx +5 -1
- package/src/data-display/keybind/keybind.css +11 -3
- package/src/data-display/keybind/keybind.tsx +1 -1
- package/src/data-display/line-comment/line-comment.css +91 -0
- package/src/data-display/line-comment/line-comment.tsx +199 -95
- package/src/data-display/line-comment/quote-check.svg +3 -0
- package/src/feedback/toast/toast.tsx +11 -31
- package/src/forms/select/select.css +0 -28
- package/src/forms/typeahead/typeahead.tsx +9 -2
- package/src/i18n/am.ts +1 -5
- package/src/i18n/ar.ts +0 -4
- package/src/i18n/az.ts +1 -5
- package/src/i18n/bg.ts +0 -4
- package/src/i18n/bn.ts +1 -5
- package/src/i18n/br.ts +0 -4
- package/src/i18n/bs.ts +0 -4
- package/src/i18n/ca.ts +1 -5
- package/src/i18n/cs.ts +1 -5
- package/src/i18n/da.ts +0 -4
- package/src/i18n/de.ts +0 -4
- package/src/i18n/dv.ts +1 -5
- package/src/i18n/dz.ts +1 -5
- package/src/i18n/el.ts +1 -5
- package/src/i18n/en.ts +5 -4
- package/src/i18n/es.ts +0 -4
- package/src/i18n/et.ts +1 -5
- package/src/i18n/fa.ts +1 -5
- package/src/i18n/fi.ts +1 -5
- package/src/i18n/fo.ts +1 -5
- package/src/i18n/fr.ts +0 -4
- package/src/i18n/he.ts +0 -4
- package/src/i18n/hi.ts +1 -5
- package/src/i18n/hr.ts +1 -5
- package/src/i18n/hu.ts +1 -5
- package/src/i18n/hy.ts +1 -5
- package/src/i18n/id.ts +1 -5
- package/src/i18n/is.ts +1 -5
- package/src/i18n/it.ts +1 -5
- package/src/i18n/ja.ts +0 -4
- package/src/i18n/ka.ts +1 -5
- package/src/i18n/km.ts +0 -4
- package/src/i18n/ko.ts +0 -4
- package/src/i18n/lo.ts +0 -4
- package/src/i18n/lt.ts +1 -5
- package/src/i18n/lv.ts +1 -5
- package/src/i18n/mk.ts +0 -4
- package/src/i18n/mn.ts +0 -4
- package/src/i18n/ms.ts +1 -5
- package/src/i18n/my.ts +0 -4
- package/src/i18n/ne.ts +1 -5
- package/src/i18n/nl.ts +1 -5
- package/src/i18n/no.ts +0 -4
- package/src/i18n/pa.ts +1 -5
- package/src/i18n/pl.ts +0 -4
- package/src/i18n/ro.ts +1 -5
- package/src/i18n/ru.ts +0 -4
- package/src/i18n/si.ts +1 -5
- package/src/i18n/sk.ts +1 -5
- package/src/i18n/sl.ts +1 -5
- package/src/i18n/sq.ts +1 -5
- package/src/i18n/sr.ts +0 -4
- package/src/i18n/sv.ts +1 -5
- package/src/i18n/tg.ts +0 -4
- package/src/i18n/th.ts +0 -4
- package/src/i18n/tk.ts +1 -5
- package/src/i18n/tr.ts +0 -4
- package/src/i18n/uk.ts +1 -5
- package/src/i18n/ur.ts +1 -5
- package/src/i18n/uz.ts +1 -5
- package/src/i18n/vi.ts +1 -5
- package/src/i18n/zh.ts +0 -3
- package/src/i18n/zht.ts +0 -3
- package/src/icons/new-icons.ts +2 -1
- package/src/navigation/menu/menu.css +0 -11
- package/src/navigation/tabs/tabs.css +19 -0
package/dist/i18n/vi.d.ts
CHANGED
|
@@ -1 +1,246 @@
|
|
|
1
|
-
export declare const dict:
|
|
1
|
+
export declare const dict: {
|
|
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
|
+
"ui.sessionTurn.status.delegating": string;
|
|
74
|
+
"ui.sessionTurn.status.planning": string;
|
|
75
|
+
"ui.sessionTurn.status.gatheringContext": string;
|
|
76
|
+
"ui.sessionTurn.status.gatheredContext": string;
|
|
77
|
+
"ui.sessionTurn.status.searchingCodebase": string;
|
|
78
|
+
"ui.sessionTurn.status.searchingWeb": string;
|
|
79
|
+
"ui.sessionTurn.status.makingEdits": string;
|
|
80
|
+
"ui.sessionTurn.status.runningCommands": string;
|
|
81
|
+
"ui.sessionTurn.status.thinking": string;
|
|
82
|
+
"ui.sessionTurn.status.thinkingWithTopic": string;
|
|
83
|
+
"ui.sessionTurn.status.gatheringThoughts": string;
|
|
84
|
+
"ui.sessionTurn.status.consideringNextSteps": string;
|
|
85
|
+
"ui.messagePart.diagnostic.error": string;
|
|
86
|
+
"ui.messagePart.title.edit": string;
|
|
87
|
+
"ui.messagePart.title.write": string;
|
|
88
|
+
"ui.messagePart.option.typeOwnAnswer": string;
|
|
89
|
+
"ui.messagePart.review.title": string;
|
|
90
|
+
"ui.messagePart.questions.dismissed": string;
|
|
91
|
+
"ui.messagePart.compaction": string;
|
|
92
|
+
"ui.messagePart.context.read.one": string;
|
|
93
|
+
"ui.messagePart.context.read.other": string;
|
|
94
|
+
"ui.messagePart.context.search.one": string;
|
|
95
|
+
"ui.messagePart.context.search.other": string;
|
|
96
|
+
"ui.messagePart.context.list.one": string;
|
|
97
|
+
"ui.messagePart.context.list.other": string;
|
|
98
|
+
"ui.messagePart.context.match.one": string;
|
|
99
|
+
"ui.messagePart.context.match.other": string;
|
|
100
|
+
"ui.list.loading": string;
|
|
101
|
+
"ui.list.empty": string;
|
|
102
|
+
"ui.list.clearFilter": string;
|
|
103
|
+
"ui.list.emptyWithFilter.prefix": string;
|
|
104
|
+
"ui.list.emptyWithFilter.suffix": string;
|
|
105
|
+
"ui.fileSearch.placeholder": string;
|
|
106
|
+
"ui.fileSearch.previousMatch": string;
|
|
107
|
+
"ui.fileSearch.nextMatch": string;
|
|
108
|
+
"ui.fileSearch.close": string;
|
|
109
|
+
"ui.messageNav.newMessage": string;
|
|
110
|
+
"ui.promptInput.noMatchingItems": string;
|
|
111
|
+
"ui.promptInput.commands": string;
|
|
112
|
+
"ui.promptInput.dropFiles": string;
|
|
113
|
+
"ui.promptInput.removeAttachment": string;
|
|
114
|
+
"ui.promptInput.cancelUpload": string;
|
|
115
|
+
"ui.promptInput.uploading": string;
|
|
116
|
+
"ui.promptInput.label": string;
|
|
117
|
+
"ui.promptInput.placeholder.shell": string;
|
|
118
|
+
"ui.promptInput.placeholder.normal": string;
|
|
119
|
+
"ui.promptInput.add": string;
|
|
120
|
+
"ui.promptInput.attachments": string;
|
|
121
|
+
"ui.promptInput.context": string;
|
|
122
|
+
"ui.promptInput.shell": string;
|
|
123
|
+
"ui.promptInput.chooseAgent": string;
|
|
124
|
+
"ui.promptInput.chooseModel": string;
|
|
125
|
+
"ui.promptInput.chooseVariant": string;
|
|
126
|
+
"ui.promptInput.send": string;
|
|
127
|
+
"ui.promptInput.stop": string;
|
|
128
|
+
"ui.tabs.close": string;
|
|
129
|
+
"ui.textField.copyToClipboard": string;
|
|
130
|
+
"ui.textField.copyLink": string;
|
|
131
|
+
"ui.textField.copied": string;
|
|
132
|
+
"ui.imagePreview.alt": string;
|
|
133
|
+
"ui.scrollView.ariaLabel": string;
|
|
134
|
+
"ui.tool.read": string;
|
|
135
|
+
"ui.tool.loaded": string;
|
|
136
|
+
"ui.tool.list": string;
|
|
137
|
+
"ui.tool.glob": string;
|
|
138
|
+
"ui.tool.grep": string;
|
|
139
|
+
"ui.tool.task": string;
|
|
140
|
+
"ui.tool.webfetch": string;
|
|
141
|
+
"ui.tool.websearch": string;
|
|
142
|
+
"ui.tool.websearch.provider": string;
|
|
143
|
+
"ui.tool.shell": string;
|
|
144
|
+
"ui.tool.execute": string;
|
|
145
|
+
"ui.tool.patch": string;
|
|
146
|
+
"ui.tool.questions": string;
|
|
147
|
+
"ui.tool.questions.numbered": string;
|
|
148
|
+
"ui.tool.agent": string;
|
|
149
|
+
"ui.tool.agent.default": string;
|
|
150
|
+
"ui.tool.skill": string;
|
|
151
|
+
"ui.basicTool.called": string;
|
|
152
|
+
"ui.toolErrorCard.failed": string;
|
|
153
|
+
"ui.toolErrorCard.copyError": string;
|
|
154
|
+
"ui.common.file.one": string;
|
|
155
|
+
"ui.common.file.other": string;
|
|
156
|
+
"ui.common.question.one": string;
|
|
157
|
+
"ui.common.question.other": string;
|
|
158
|
+
"ui.common.add": string;
|
|
159
|
+
"ui.common.clear": string;
|
|
160
|
+
"ui.common.file": string;
|
|
161
|
+
"ui.common.back": string;
|
|
162
|
+
"ui.common.cancel": string;
|
|
163
|
+
"ui.common.confirm": string;
|
|
164
|
+
"ui.common.dismiss": string;
|
|
165
|
+
"ui.common.close": string;
|
|
166
|
+
"ui.common.next": string;
|
|
167
|
+
"ui.common.submit": string;
|
|
168
|
+
"ui.common.showMore": string;
|
|
169
|
+
"ui.permission.deny": string;
|
|
170
|
+
"ui.permission.allowAlways": string;
|
|
171
|
+
"ui.permission.allowOnce": string;
|
|
172
|
+
"ui.message.expand": string;
|
|
173
|
+
"ui.message.collapse": string;
|
|
174
|
+
"ui.message.copy": string;
|
|
175
|
+
"ui.message.copyMessage": string;
|
|
176
|
+
"ui.message.forkMessage": string;
|
|
177
|
+
"ui.message.revertMessage": string;
|
|
178
|
+
"ui.message.copyResponse": string;
|
|
179
|
+
"ui.message.copied": string;
|
|
180
|
+
"ui.message.duration.seconds": string;
|
|
181
|
+
"ui.message.duration.minutesSeconds": string;
|
|
182
|
+
"ui.message.interrupted": string;
|
|
183
|
+
"ui.message.queued": string;
|
|
184
|
+
"ui.message.attachment.alt": string;
|
|
185
|
+
"ui.patch.action.deleted": string;
|
|
186
|
+
"ui.patch.action.created": string;
|
|
187
|
+
"ui.patch.action.moved": string;
|
|
188
|
+
"ui.patch.action.patched": string;
|
|
189
|
+
"ui.question.subtitle.answered": string;
|
|
190
|
+
"ui.question.answer.none": string;
|
|
191
|
+
"ui.question.review.notAnswered": string;
|
|
192
|
+
"ui.question.multiHint": string;
|
|
193
|
+
"ui.question.custom.placeholder": string;
|
|
194
|
+
"ui.tool.loadedFile": string;
|
|
195
|
+
"ui.tool.loadedSkill": string;
|
|
196
|
+
"ui.tool.shell.writingCommand": string;
|
|
197
|
+
"ui.tool.agent.delegating": string;
|
|
198
|
+
"ui.common.moreCount.one": string;
|
|
199
|
+
"ui.common.moreCount.other": string;
|
|
200
|
+
"ui.sessionTimeline.notice.model": string;
|
|
201
|
+
"ui.sessionTimeline.notice.movedTo": string;
|
|
202
|
+
"ui.sessionTimeline.notice.movedTooltip": string;
|
|
203
|
+
"ui.sessionTimeline.notice.failed": string;
|
|
204
|
+
"ui.sessionTimeline.notice.cancelled": string;
|
|
205
|
+
"ui.sessionTimeline.notice.finished": string;
|
|
206
|
+
"ui.sessionTimeline.notice.instructionsUpdated": string;
|
|
207
|
+
"ui.sessionTimeline.notice.restart": string;
|
|
208
|
+
"ui.promptInput.placeholder.followUp": string;
|
|
209
|
+
"ui.promptInput.steer": string;
|
|
210
|
+
"ui.promptInput.queue": string;
|
|
211
|
+
"ui.promptInput.steerHint": string;
|
|
212
|
+
"ui.tool.loadedSkills.one": string;
|
|
213
|
+
"ui.tool.loadedSkills.other": string;
|
|
214
|
+
"ui.tool.shell.exit": string;
|
|
215
|
+
"ui.tool.shell.timeout": string;
|
|
216
|
+
"ui.tool.shell.cancelled": string;
|
|
217
|
+
"ui.message.thought": string;
|
|
218
|
+
"ui.sessionTimeline.notice.modelSwitched": string;
|
|
219
|
+
"ui.sessionTurn.retry.attemptLabel": string;
|
|
220
|
+
"ui.sessionTurn.retry.attemptRetrying": string;
|
|
221
|
+
"ui.messagePart.context.notice.one": string;
|
|
222
|
+
"ui.messagePart.context.notice.other": string;
|
|
223
|
+
"ui.messagePart.context.thought.one": string;
|
|
224
|
+
"ui.messagePart.context.thought.other": string;
|
|
225
|
+
"ui.promptInput.dropFiles.image": string;
|
|
226
|
+
"ui.promptInput.dropFiles.pdf": string;
|
|
227
|
+
"ui.promptInput.dropFiles.imagePdf": string;
|
|
228
|
+
"ui.promptInput.exitShell": string;
|
|
229
|
+
"ui.sessionTimeline.notice.agentChanged": string;
|
|
230
|
+
"ui.sessionTurn.retry.attemptWaiting.one": string;
|
|
231
|
+
"ui.sessionTurn.retry.attemptWaiting.other": string;
|
|
232
|
+
"ui.sessionTurn.retry.attemptRetryingNow": string;
|
|
233
|
+
"ui.messagePart.compaction.started": string;
|
|
234
|
+
"ui.messagePart.compaction.running": string;
|
|
235
|
+
"ui.messagePart.compaction.failed": string;
|
|
236
|
+
"ui.messagePart.compaction.cancelled": string;
|
|
237
|
+
"ui.messagePart.compaction.interrupted": string;
|
|
238
|
+
"ui.messagePart.providerCompaction": string;
|
|
239
|
+
"ui.messagePart.compaction.usage": string;
|
|
240
|
+
"ui.messagePart.context.updates": string;
|
|
241
|
+
"ui.messagePart.tools.used.one": string;
|
|
242
|
+
"ui.messagePart.tools.used.other": string;
|
|
243
|
+
"ui.tool.browser": string;
|
|
244
|
+
"ui.common.fileCount.one": string;
|
|
245
|
+
"ui.common.fileCount.other": string;
|
|
246
|
+
};
|
package/dist/i18n/zh.d.ts
CHANGED
|
@@ -70,9 +70,6 @@ export declare const dict: {
|
|
|
70
70
|
"dialog.usageExceeded.freeTier.title": string;
|
|
71
71
|
"dialog.usageExceeded.freeTier.description": string;
|
|
72
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
73
|
"ui.sessionTurn.status.delegating": string;
|
|
77
74
|
"ui.sessionTurn.status.planning": string;
|
|
78
75
|
"ui.sessionTurn.status.gatheringContext": string;
|
package/dist/i18n/zht.d.ts
CHANGED
|
@@ -70,9 +70,6 @@ export declare const dict: {
|
|
|
70
70
|
"dialog.usageExceeded.freeTier.title": string;
|
|
71
71
|
"dialog.usageExceeded.freeTier.description": string;
|
|
72
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
73
|
"ui.sessionTurn.status.delegating": string;
|
|
77
74
|
"ui.sessionTurn.status.planning": string;
|
|
78
75
|
"ui.sessionTurn.status.gatheringContext": string;
|
package/dist/theme/context.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { DesktopTheme } from "./types";
|
|
2
2
|
export type ColorScheme = "light" | "dark" | "system";
|
|
3
3
|
export declare const { use: useTheme, provider: ThemeProvider }: {
|
|
4
|
+
context: import("solid-js").Context<{
|
|
5
|
+
themeId: () => string;
|
|
6
|
+
colorScheme: () => ColorScheme;
|
|
7
|
+
mode: () => "dark" | "light";
|
|
8
|
+
ids: () => string[];
|
|
9
|
+
name: (id: string) => string;
|
|
10
|
+
loadThemes: () => Promise<Record<string, DesktopTheme>>;
|
|
11
|
+
themes: () => Record<string, DesktopTheme>;
|
|
12
|
+
setTheme: (id: string) => void;
|
|
13
|
+
setColorScheme: (scheme: ColorScheme) => void;
|
|
14
|
+
registerTheme: (theme: DesktopTheme) => void;
|
|
15
|
+
previewTheme: (id: string) => void;
|
|
16
|
+
previewColorScheme: (scheme: ColorScheme) => void;
|
|
17
|
+
commitPreview: () => void;
|
|
18
|
+
cancelPreview: () => void;
|
|
19
|
+
} | undefined>;
|
|
4
20
|
provider: (props: import("solid-js").ParentProps<{
|
|
5
21
|
defaultTheme?: string;
|
|
6
22
|
onThemeApplied?: (theme: DesktopTheme, mode: "light" | "dark", scheme: ColorScheme) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"!src/**/*.stories.ts",
|
|
24
24
|
"!src/**/*.stories.tsx",
|
|
25
25
|
"src/**/*.css",
|
|
26
|
+
"src/data-display/line-comment/*.svg",
|
|
26
27
|
"src/theme/themes/*.json",
|
|
27
28
|
"src/components/app-icons/sprite.svg",
|
|
28
29
|
"src/components/provider-icons/sprite.svg",
|
|
@@ -287,7 +288,7 @@
|
|
|
287
288
|
"dependencies": {
|
|
288
289
|
"@kitlangton/solid-motion": "0.2.2",
|
|
289
290
|
"@kobalte/core": "0.13.13",
|
|
290
|
-
"@opencode/util": "2.2.
|
|
291
|
+
"@opencode/util": "2.2.3",
|
|
291
292
|
"@pierre/diffs": "1.6.1",
|
|
292
293
|
"@pierre/highlights": "0.2.0",
|
|
293
294
|
"@solid-primitives/event-listener": "2.4.6",
|
|
@@ -182,8 +182,9 @@
|
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/* A modal Kobalte dialog turns the body's pointer events off and only restores them when its content unmounts, which
|
|
185
|
-
the closing flight above holds back; the page takes clicks again as soon as the close starts.
|
|
186
|
-
body:has(
|
|
185
|
+
the closing flight above holds back; the page takes clicks again as soon as the close starts. The preview marks the
|
|
186
|
+
body itself: a body:has() rule made Chromium restyle the body on every DOM insertion anywhere in the page. */
|
|
187
|
+
body[data-image-preview-closing] {
|
|
187
188
|
pointer-events: auto !important;
|
|
188
189
|
}
|
|
189
190
|
|
|
@@ -405,12 +405,16 @@ export function ImagePreview(props: ImagePreviewProps) {
|
|
|
405
405
|
settle()
|
|
406
406
|
showOrigin()
|
|
407
407
|
giveBack()
|
|
408
|
+
document.body.removeAttribute("data-image-preview-closing")
|
|
408
409
|
})
|
|
409
410
|
|
|
410
411
|
createEffect(
|
|
411
412
|
on(
|
|
412
413
|
() => dialog.isOpen(),
|
|
413
414
|
(open) => {
|
|
415
|
+
// See image-preview.css: the body takes clicks again while the closing flight holds the dialog mounted.
|
|
416
|
+
document.body.toggleAttribute("data-image-preview-closing", !open)
|
|
417
|
+
|
|
414
418
|
if (!open) dismiss()
|
|
415
419
|
},
|
|
416
420
|
{ defer: true },
|
|
@@ -17,7 +17,8 @@ export function TruncatedText(props: { text: string; class?: string }) {
|
|
|
17
17
|
<Tooltip
|
|
18
18
|
value={<span dir="auto">{props.text}</span>}
|
|
19
19
|
disabled={!store.truncated}
|
|
20
|
-
|
|
20
|
+
// Focusable only while there is more to reveal; a -1 would still let a click focus the name.
|
|
21
|
+
triggerTabIndex={store.truncated ? 0 : undefined}
|
|
21
22
|
class={`truncated-text ${props.class ?? ""}`}
|
|
22
23
|
contentClass="truncated-text-tooltip"
|
|
23
24
|
>
|
package/src/context/helper.tsx
CHANGED
|
@@ -9,6 +9,7 @@ export function createSimpleContext<T, Props extends Record<string, any>>(
|
|
|
9
9
|
const ctx = createContext<T>()
|
|
10
10
|
|
|
11
11
|
return {
|
|
12
|
+
context: ctx,
|
|
12
13
|
provider: (props: ParentProps<Props>) => {
|
|
13
14
|
const init = input.init(props)
|
|
14
15
|
const gate = input.gate ?? true
|
|
@@ -19,10 +20,10 @@ export function createSimpleContext<T, Props extends Record<string, any>>(
|
|
|
19
20
|
|
|
20
21
|
// Access init.ready inside the memo to make it reactive for getter properties
|
|
21
22
|
const isReady = createMemo(() => {
|
|
22
|
-
//
|
|
23
|
-
const ready = init
|
|
23
|
+
// SAFETY: contexts whose value has `ready` must pass `gate`, and their `ready` is a boolean or its accessor.
|
|
24
|
+
const ready = (init as { ready?: Accessor<boolean> | boolean }).ready
|
|
24
25
|
|
|
25
|
-
return ready === undefined || (
|
|
26
|
+
return ready === undefined || (ready instanceof Function ? ready() : ready)
|
|
26
27
|
})
|
|
27
28
|
|
|
28
29
|
return (
|
|
@@ -5,8 +5,12 @@ export function createMarkdownBase() {
|
|
|
5
5
|
renderer: {
|
|
6
6
|
link({ href, title, tokens }) {
|
|
7
7
|
const titleAttr = title ? ` title="${title}"` : ""
|
|
8
|
+
const text = this.parser.parseInline(tokens)
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
// A fragment link points within the document, so it stays in the page.
|
|
11
|
+
if (href.startsWith("#")) return `<a href="${href}"${titleAttr}>${text}</a>`
|
|
12
|
+
|
|
13
|
+
return `<a href="${href}"${titleAttr} class="external-link" target="_blank" rel="noopener noreferrer">${text}</a>`
|
|
10
14
|
},
|
|
11
15
|
},
|
|
12
16
|
})
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
border-radius: 2px;
|
|
35
35
|
flex: none;
|
|
36
36
|
flex-grow: 0;
|
|
37
|
+
transition:
|
|
38
|
+
background-color var(--keybind-transition-duration, 0s) ease,
|
|
39
|
+
box-shadow var(--keybind-transition-duration, 0s) ease;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-key"] {
|
|
@@ -44,6 +47,11 @@
|
|
|
44
47
|
background: transparent;
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
[data-component="keybind-v2"][data-variant="outline"] [data-slot="keybind-v2-key"] {
|
|
51
|
+
background: transparent;
|
|
52
|
+
box-shadow: inset 0 0 0 1px var(--v2-border-border-strong);
|
|
53
|
+
}
|
|
54
|
+
|
|
47
55
|
[data-component="keybind-v2"] [data-slot="keybind-v2-label"] {
|
|
48
56
|
display: flex;
|
|
49
57
|
flex-direction: row;
|
|
@@ -53,8 +61,8 @@
|
|
|
53
61
|
padding: 0;
|
|
54
62
|
flex: none;
|
|
55
63
|
font-style: normal;
|
|
56
|
-
font-weight: 530;
|
|
57
|
-
font-size: 11px;
|
|
64
|
+
font-weight: var(--keybind-font-weight, 530);
|
|
65
|
+
font-size: var(--keybind-font-size, 11px);
|
|
58
66
|
line-height: 1;
|
|
59
67
|
text-align: center;
|
|
60
68
|
letter-spacing: 0.05px;
|
|
@@ -67,7 +75,7 @@
|
|
|
67
75
|
user-select: none;
|
|
68
76
|
}
|
|
69
77
|
|
|
70
|
-
[data-component="keybind-v2"][data-variant="neutral"] [data-slot="keybind-v2-label"] {
|
|
78
|
+
[data-component="keybind-v2"]:is([data-variant="neutral"], [data-variant="outline"]) [data-slot="keybind-v2-label"] {
|
|
71
79
|
color: var(--v2-text-text-muted);
|
|
72
80
|
}
|
|
73
81
|
|
|
@@ -125,6 +125,10 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/* --- Editor --- */
|
|
128
|
+
[data-component="line-comment-v2"] [data-slot="line-comment-v2-input"] {
|
|
129
|
+
display: contents;
|
|
130
|
+
}
|
|
131
|
+
|
|
128
132
|
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-shell"] {
|
|
129
133
|
display: flex;
|
|
130
134
|
flex-direction: column;
|
|
@@ -196,6 +200,93 @@
|
|
|
196
200
|
margin-inline-start: auto;
|
|
197
201
|
}
|
|
198
202
|
|
|
203
|
+
[data-component="line-comment-v2"][data-layout="compact"] {
|
|
204
|
+
display: flex;
|
|
205
|
+
max-height: var(--line-comment-max-height, none);
|
|
206
|
+
|
|
207
|
+
[data-slot="line-comment-v2-shell"] {
|
|
208
|
+
flex: 1 1 auto;
|
|
209
|
+
min-width: 0;
|
|
210
|
+
max-height: inherit;
|
|
211
|
+
padding: 12px;
|
|
212
|
+
gap: 10px;
|
|
213
|
+
border-radius: 8px;
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-slot="line-comment-v2-preview"] {
|
|
218
|
+
width: 100%;
|
|
219
|
+
min-width: 0;
|
|
220
|
+
flex-shrink: 0;
|
|
221
|
+
border-inline-start: 2px solid var(--v2-background-bg-layer-03);
|
|
222
|
+
padding-inline-start: 12px;
|
|
223
|
+
color: var(--v2-text-text-muted);
|
|
224
|
+
font-size: 13px;
|
|
225
|
+
font-weight: 440;
|
|
226
|
+
line-height: var(--line-height-base);
|
|
227
|
+
letter-spacing: -0.04px;
|
|
228
|
+
|
|
229
|
+
> span {
|
|
230
|
+
display: -webkit-box;
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
-webkit-box-orient: vertical;
|
|
233
|
+
-webkit-line-clamp: var(--line-comment-preview-lines, 2);
|
|
234
|
+
overflow-wrap: anywhere;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[data-slot="line-comment-v2-input"] {
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: flex-end;
|
|
241
|
+
gap: 12px;
|
|
242
|
+
width: 100%;
|
|
243
|
+
min-width: 0;
|
|
244
|
+
min-height: var(--line-height-base);
|
|
245
|
+
flex: 1 1 auto;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[data-slot="line-comment-v2-field"] {
|
|
249
|
+
flex: 1 1 auto;
|
|
250
|
+
width: auto;
|
|
251
|
+
min-height: 0;
|
|
252
|
+
align-self: stretch;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
[data-slot="line-comment-v2-textarea"] {
|
|
256
|
+
field-sizing: content;
|
|
257
|
+
height: auto;
|
|
258
|
+
flex: 1 1 auto;
|
|
259
|
+
min-height: var(--line-height-base);
|
|
260
|
+
max-height: 160px;
|
|
261
|
+
overflow-y: auto;
|
|
262
|
+
scrollbar-gutter: stable;
|
|
263
|
+
line-height: var(--line-height-base);
|
|
264
|
+
|
|
265
|
+
&::placeholder {
|
|
266
|
+
color: var(--v2-text-text-faint);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[data-slot="line-comment-v2-submit"] {
|
|
271
|
+
position: relative;
|
|
272
|
+
flex-shrink: 0;
|
|
273
|
+
|
|
274
|
+
@media (hover: none) {
|
|
275
|
+
&::after {
|
|
276
|
+
content: "";
|
|
277
|
+
position: absolute;
|
|
278
|
+
inset: -12px;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
[data-slot="line-comment-v2-submit-icon"] {
|
|
284
|
+
width: 16px;
|
|
285
|
+
height: 16px;
|
|
286
|
+
background: currentColor;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
199
290
|
[data-component="line-comment-v2"][data-variant="editor"] [data-slot="line-comment-v2-mention-list"] {
|
|
200
291
|
display: flex;
|
|
201
292
|
flex-direction: column;
|