@opencode/ui 2.2.0 → 2.2.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.
- package/dist/components/document-surface.d.ts +3 -0
- package/dist/components/preview-controls.d.ts +9 -0
- 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/forms/typeahead/typeahead.d.ts +5 -0
- 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 +11 -4
- 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/icons/catalog.d.ts +16 -0
- package/dist/theme/context.d.ts +16 -0
- package/package.json +7 -5
- package/src/components/document-surface.css +37 -0
- package/src/components/document-surface.tsx +6 -0
- package/src/components/popover.css +0 -32
- package/src/components/preview-controls.css +28 -0
- package/src/components/preview-controls.tsx +53 -0
- package/src/components/text-field.tsx +1 -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/forms/typeahead/typeahead.tsx +41 -27
- 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 +11 -5
- 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/catalog.ts +16 -0
- package/src/navigation/menu/menu.css +0 -30
- package/src/navigation/tabs/tabs.css +19 -0
- package/src/overlays/tooltip/tooltip.tsx +6 -2
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/icons/catalog.d.ts
CHANGED
|
@@ -68,6 +68,14 @@ declare const icons: {
|
|
|
68
68
|
viewBox: string;
|
|
69
69
|
body: string;
|
|
70
70
|
};
|
|
71
|
+
"outline-magnifier-minus": {
|
|
72
|
+
viewBox: string;
|
|
73
|
+
body: string;
|
|
74
|
+
};
|
|
75
|
+
"outline-magnifier-plus": {
|
|
76
|
+
viewBox: string;
|
|
77
|
+
body: string;
|
|
78
|
+
};
|
|
71
79
|
menu: {
|
|
72
80
|
viewBox: string;
|
|
73
81
|
body: string;
|
|
@@ -148,6 +156,10 @@ declare const icons: {
|
|
|
148
156
|
viewBox: string;
|
|
149
157
|
body: string;
|
|
150
158
|
};
|
|
159
|
+
"outline-expand": {
|
|
160
|
+
viewBox: string;
|
|
161
|
+
body: string;
|
|
162
|
+
};
|
|
151
163
|
filetree: {
|
|
152
164
|
viewBox: string;
|
|
153
165
|
body: string;
|
|
@@ -176,6 +188,10 @@ declare const icons: {
|
|
|
176
188
|
viewBox: string;
|
|
177
189
|
body: string;
|
|
178
190
|
};
|
|
191
|
+
"outline-code-brackets": {
|
|
192
|
+
viewBox: string;
|
|
193
|
+
body: string;
|
|
194
|
+
};
|
|
179
195
|
trash: {
|
|
180
196
|
viewBox: string;
|
|
181
197
|
body: 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.2",
|
|
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",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"import": "./src/layout/divider/divider.tsx",
|
|
72
73
|
"types": "./dist/layout/divider/divider.d.ts"
|
|
73
74
|
},
|
|
75
|
+
"./document-surface.css": "./src/components/document-surface.css",
|
|
74
76
|
"./field": {
|
|
75
77
|
"import": "./src/forms/field/field.tsx",
|
|
76
78
|
"types": "./dist/forms/field/field.d.ts"
|
|
@@ -276,23 +278,23 @@
|
|
|
276
278
|
"@tsconfig/node22": "22.0.2",
|
|
277
279
|
"@types/bun": "1.4.3",
|
|
278
280
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
279
|
-
"solid-js": "1.9.
|
|
281
|
+
"solid-js": "1.9.17",
|
|
280
282
|
"tailwindcss": "4.1.11",
|
|
281
283
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
282
|
-
"vite": "7.3.
|
|
284
|
+
"vite": "7.3.7",
|
|
283
285
|
"vite-plugin-icons-spritesheet": "3.0.1",
|
|
284
286
|
"vite-plugin-solid": "2.11.10"
|
|
285
287
|
},
|
|
286
288
|
"dependencies": {
|
|
287
289
|
"@kitlangton/solid-motion": "0.2.2",
|
|
288
290
|
"@kobalte/core": "0.13.13",
|
|
289
|
-
"@opencode/util": "2.2.
|
|
291
|
+
"@opencode/util": "2.2.2",
|
|
290
292
|
"@pierre/diffs": "1.6.1",
|
|
291
293
|
"@pierre/highlights": "0.2.0",
|
|
292
294
|
"@solid-primitives/event-listener": "2.4.6",
|
|
293
295
|
"@solid-primitives/resize-observer": "2.2.0",
|
|
294
296
|
"fuzzysort": "3.1.0",
|
|
295
|
-
"katex": "0.
|
|
297
|
+
"katex": "0.18.11",
|
|
296
298
|
"knobs": "npm:@kitlangton/knobs@0.4.0-next.22",
|
|
297
299
|
"marked": "18.0.11",
|
|
298
300
|
"solid-list": "0.3.0",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[data-component="document-surface"] {
|
|
2
|
+
position: relative;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
background: var(--v2-background-bg-base);
|
|
5
|
+
box-shadow: var(--v2-elevation-raised);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Paint the border above page bitmaps without changing their dimensions or text coordinates. */
|
|
9
|
+
[data-component="document-surface"]::after {
|
|
10
|
+
content: "";
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
15
|
+
border-radius: inherit;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* The raised token paints outside the sheet; retain its top edge in flush scrollports. */
|
|
20
|
+
[data-document-surface-inset] {
|
|
21
|
+
padding-block-start: 1px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-document-surface-scrollport] {
|
|
25
|
+
--document-surface-gutter: 20px;
|
|
26
|
+
scrollbar-gutter: stable;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-document-surface-column] {
|
|
30
|
+
padding-inline: var(--document-surface-gutter, 20px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@container (max-width: 600px) {
|
|
34
|
+
[data-document-surface-scrollport] {
|
|
35
|
+
--document-surface-gutter: 12px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -13,20 +13,10 @@
|
|
|
13
13
|
background-clip: padding-box;
|
|
14
14
|
box-shadow: var(--shadow-md);
|
|
15
15
|
|
|
16
|
-
transform-origin: var(--kb-popover-content-transform-origin);
|
|
17
|
-
|
|
18
16
|
&:focus-within {
|
|
19
17
|
outline: none;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
&[data-closed] {
|
|
23
|
-
animation: popover-close 0.15s ease-out;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&[data-expanded] {
|
|
27
|
-
animation: popover-open 0.15s ease-out;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
20
|
[data-slot="popover-header"] {
|
|
31
21
|
display: flex;
|
|
32
22
|
padding: 12px;
|
|
@@ -74,25 +64,3 @@
|
|
|
74
64
|
fill: var(--surface-raised-stronger-non-alpha);
|
|
75
65
|
}
|
|
76
66
|
}
|
|
77
|
-
|
|
78
|
-
@keyframes popover-open {
|
|
79
|
-
from {
|
|
80
|
-
opacity: 0;
|
|
81
|
-
transform: scale(0.96);
|
|
82
|
-
}
|
|
83
|
-
to {
|
|
84
|
-
opacity: 1;
|
|
85
|
-
transform: scale(1);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@keyframes popover-close {
|
|
90
|
-
from {
|
|
91
|
-
opacity: 1;
|
|
92
|
-
transform: scale(1);
|
|
93
|
-
}
|
|
94
|
-
to {
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transform: scale(0.96);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[data-component="preview-controls"] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
inset-inline-end: 12px;
|
|
4
|
+
bottom: 12px;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding: 4px;
|
|
10
|
+
border: 0.5px solid var(--v2-border-border-base);
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
background: var(--v2-background-bg-base);
|
|
13
|
+
box-shadow: var(--v2-elevation-raised);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-slot="preview-controls-divider"] {
|
|
17
|
+
width: 0.5px;
|
|
18
|
+
height: 20px;
|
|
19
|
+
margin-inline: 4px;
|
|
20
|
+
background: var(--v2-border-border-base);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (pointer: coarse) {
|
|
24
|
+
[data-component="preview-controls"] [data-component="icon-button-v2"] {
|
|
25
|
+
width: 44px;
|
|
26
|
+
height: 44px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Icon } from "@opencode/ui/icon"
|
|
2
|
+
import { IconButton } from "@opencode/ui/icon-button"
|
|
3
|
+
import { Tooltip } from "@opencode/ui/tooltip"
|
|
4
|
+
import { useI18n } from "../context/i18n"
|
|
5
|
+
import "./preview-controls.css"
|
|
6
|
+
|
|
7
|
+
export function PreviewControls(props: {
|
|
8
|
+
onZoomIn: () => void
|
|
9
|
+
onZoomOut: () => void
|
|
10
|
+
onFit: () => void
|
|
11
|
+
disabled?: boolean
|
|
12
|
+
zoomInDisabled?: boolean
|
|
13
|
+
zoomOutDisabled?: boolean
|
|
14
|
+
}) {
|
|
15
|
+
const i18n = useI18n()
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div data-component="preview-controls" role="group" aria-label={i18n.t("ui.preview.controls")}>
|
|
19
|
+
<Tooltip value={i18n.t("ui.preview.zoomIn")} placement="top">
|
|
20
|
+
<IconButton
|
|
21
|
+
variant="ghost-muted"
|
|
22
|
+
size="large"
|
|
23
|
+
aria-label={i18n.t("ui.preview.zoomIn")}
|
|
24
|
+
disabled={props.disabled || props.zoomInDisabled}
|
|
25
|
+
onClick={props.onZoomIn}
|
|
26
|
+
icon={<Icon name="outline-magnifier-plus" size="normal" />}
|
|
27
|
+
/>
|
|
28
|
+
</Tooltip>
|
|
29
|
+
<span data-slot="preview-controls-divider" aria-hidden />
|
|
30
|
+
<Tooltip value={i18n.t("ui.preview.zoomOut")} placement="top">
|
|
31
|
+
<IconButton
|
|
32
|
+
variant="ghost-muted"
|
|
33
|
+
size="large"
|
|
34
|
+
aria-label={i18n.t("ui.preview.zoomOut")}
|
|
35
|
+
disabled={props.disabled || props.zoomOutDisabled}
|
|
36
|
+
onClick={props.onZoomOut}
|
|
37
|
+
icon={<Icon name="outline-magnifier-minus" size="normal" />}
|
|
38
|
+
/>
|
|
39
|
+
</Tooltip>
|
|
40
|
+
<span data-slot="preview-controls-divider" aria-hidden />
|
|
41
|
+
<Tooltip value={i18n.t("ui.preview.fit")} placement="top">
|
|
42
|
+
<IconButton
|
|
43
|
+
variant="ghost-muted"
|
|
44
|
+
size="large"
|
|
45
|
+
aria-label={i18n.t("ui.preview.fit")}
|
|
46
|
+
disabled={props.disabled}
|
|
47
|
+
onClick={props.onFit}
|
|
48
|
+
icon={<Icon name="outline-expand" size="normal" />}
|
|
49
|
+
/>
|
|
50
|
+
</Tooltip>
|
|
51
|
+
</div>
|
|
52
|
+
)
|
|
53
|
+
}
|
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
|
|