@opencode-ai/ui 1.18.11 → 1.18.13
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/i18n.d.ts +10 -1
- package/dist/context/marked-parser.d.ts +2 -0
- package/dist/context/marked-theme-register.d.ts +1 -0
- package/dist/context/marked-theme.d.ts +2 -0
- package/dist/context/marked.d.ts +2 -9
- package/dist/i18n/ar.d.ts +38 -0
- package/dist/i18n/az.d.ts +1 -0
- package/dist/i18n/br.d.ts +26 -0
- package/dist/i18n/bs.d.ts +26 -0
- package/dist/i18n/da.d.ts +22 -0
- package/dist/i18n/de.d.ts +22 -0
- package/dist/i18n/es.d.ts +26 -0
- package/dist/i18n/fi.d.ts +1 -0
- package/dist/i18n/fr.d.ts +26 -0
- package/dist/i18n/hi.d.ts +1 -0
- package/dist/i18n/id.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/ja.d.ts +22 -0
- package/dist/i18n/ko.d.ts +22 -0
- package/dist/i18n/nl.d.ts +1 -0
- package/dist/i18n/pa.d.ts +1 -0
- package/dist/i18n/pl.d.ts +30 -0
- package/dist/i18n/ru.d.ts +30 -0
- package/dist/i18n/sv.d.ts +1 -0
- package/dist/i18n/th.d.ts +22 -0
- package/dist/i18n/tr.d.ts +22 -0
- package/dist/i18n/ur.d.ts +1 -0
- package/dist/i18n/vi.d.ts +1 -0
- package/dist/i18n/zh.d.ts +22 -0
- package/dist/i18n/zht.d.ts +22 -0
- package/package.json +2 -3
- package/src/components/diff-changes.css +2 -0
- package/src/components/dropdown-menu.css +2 -2
- package/src/components/icon.css +5 -0
- package/src/components/icon.tsx +12 -1
- package/src/components/provider-icons/sprite.svg +2 -27
- package/src/components/resize-handle.css +14 -2
- package/src/components/resize-handle.tsx +5 -1
- package/src/components/scroll-view.css +1 -1
- package/src/components/select.css +5 -3
- package/src/components/switch.css +4 -0
- package/src/components/tabs.css +54 -26
- package/src/components/tabs.tsx +1 -0
- package/src/components/text-field.css +2 -2
- package/src/components/toast.css +1 -1
- package/src/context/i18n.tsx +38 -2
- package/src/context/marked-parser.tsx +68 -0
- package/src/context/marked-theme-register.tsx +10 -0
- package/src/context/marked-theme.tsx +372 -0
- package/src/context/marked.tsx +20 -562
- package/src/i18n/ar.ts +62 -22
- package/src/i18n/az.ts +197 -0
- package/src/i18n/br.ts +34 -6
- package/src/i18n/bs.ts +51 -23
- package/src/i18n/da.ts +36 -12
- package/src/i18n/de.ts +58 -36
- package/src/i18n/en.ts +24 -0
- package/src/i18n/es.ts +45 -17
- package/src/i18n/fi.ts +197 -0
- package/src/i18n/fr.ts +51 -21
- package/src/i18n/hi.ts +199 -0
- package/src/i18n/id.ts +219 -0
- package/src/i18n/it.ts +202 -0
- package/src/i18n/ja.ts +29 -5
- package/src/i18n/ko.ts +36 -12
- package/src/i18n/nl.ts +197 -0
- package/src/i18n/no.ts +47 -23
- package/src/i18n/pa.ts +198 -0
- package/src/i18n/pl.ts +57 -24
- package/src/i18n/ru.ts +55 -23
- package/src/i18n/sv.ts +197 -0
- package/src/i18n/th.ts +44 -21
- package/src/i18n/tr.ts +49 -25
- package/src/i18n/uk.ts +47 -15
- package/src/i18n/ur.ts +198 -0
- package/src/i18n/vi.ts +197 -0
- package/src/i18n/zh.ts +52 -29
- package/src/i18n/zht.ts +45 -22
- package/src/theme/themes/oc-2.json +4 -2
- package/src/v2/components/dialog-v2.css +2 -2
- package/src/v2/components/dialog-v2.tsx +3 -1
- package/src/v2/components/diff-changes-v2.css +2 -0
- package/src/v2/components/file-tree-v2.css +6 -2
- package/src/v2/components/inline-input-v2.tsx +3 -1
- package/src/v2/components/line-comment-v2.css +1 -1
- package/src/v2/components/line-comment-v2.tsx +6 -4
- package/src/v2/components/select-v2.css +16 -5
- package/src/v2/components/switch-v2.css +8 -0
- package/src/v2/components/tabs-v2.css +4 -4
- package/src/v2/components/tabs-v2.tsx +4 -2
- package/src/v2/components/text-input-v2.css +7 -5
- package/src/v2/components/text-input-v2.tsx +7 -1
- package/src/v2/components/toast-v2.tsx +8 -4
- package/dist/context/marked-code-span.d.ts +0 -10
- package/src/context/marked-code-span.ts +0 -17
package/dist/i18n/pl.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -55,6 +56,8 @@ export declare const dict: {
|
|
|
55
56
|
"ui.sessionTurn.summary.response": string;
|
|
56
57
|
"ui.sessionTurn.diff.showMore": string;
|
|
57
58
|
"ui.sessionTurn.diffs.changed.one": string;
|
|
59
|
+
"ui.sessionTurn.diffs.changed.few": string;
|
|
60
|
+
"ui.sessionTurn.diffs.changed.many": string;
|
|
58
61
|
"ui.sessionTurn.diffs.changed.other": string;
|
|
59
62
|
"ui.sessionTurn.diffs.showAll": string;
|
|
60
63
|
"ui.sessionTurn.diffs.showLess": string;
|
|
@@ -87,10 +90,16 @@ export declare const dict: {
|
|
|
87
90
|
"ui.messagePart.questions.dismissed": string;
|
|
88
91
|
"ui.messagePart.compaction": string;
|
|
89
92
|
"ui.messagePart.context.read.one": string;
|
|
93
|
+
"ui.messagePart.context.read.few": string;
|
|
94
|
+
"ui.messagePart.context.read.many": string;
|
|
90
95
|
"ui.messagePart.context.read.other": string;
|
|
91
96
|
"ui.messagePart.context.search.one": string;
|
|
97
|
+
"ui.messagePart.context.search.few": string;
|
|
98
|
+
"ui.messagePart.context.search.many": string;
|
|
92
99
|
"ui.messagePart.context.search.other": string;
|
|
93
100
|
"ui.messagePart.context.list.one": string;
|
|
101
|
+
"ui.messagePart.context.list.few": string;
|
|
102
|
+
"ui.messagePart.context.list.many": string;
|
|
94
103
|
"ui.messagePart.context.list.other": string;
|
|
95
104
|
"ui.messagePart.diagnostic.error": string;
|
|
96
105
|
"ui.messagePart.title.edit": string;
|
|
@@ -103,6 +112,23 @@ export declare const dict: {
|
|
|
103
112
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
113
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
114
|
"ui.messageNav.newMessage": string;
|
|
115
|
+
"ui.promptInput.noMatchingItems": string;
|
|
116
|
+
"ui.promptInput.commands": string;
|
|
117
|
+
"ui.promptInput.dropFiles": string;
|
|
118
|
+
"ui.promptInput.removeAttachment": string;
|
|
119
|
+
"ui.promptInput.label": string;
|
|
120
|
+
"ui.promptInput.placeholder.shell": string;
|
|
121
|
+
"ui.promptInput.placeholder.normal": string;
|
|
122
|
+
"ui.promptInput.add": string;
|
|
123
|
+
"ui.promptInput.attachments": string;
|
|
124
|
+
"ui.promptInput.context": string;
|
|
125
|
+
"ui.promptInput.shell": string;
|
|
126
|
+
"ui.promptInput.chooseAgent": string;
|
|
127
|
+
"ui.promptInput.chooseModel": string;
|
|
128
|
+
"ui.promptInput.chooseVariant": string;
|
|
129
|
+
"ui.promptInput.send": string;
|
|
130
|
+
"ui.promptInput.stop": string;
|
|
131
|
+
"ui.tabs.close": string;
|
|
106
132
|
"ui.textField.copyToClipboard": string;
|
|
107
133
|
"ui.textField.copyLink": string;
|
|
108
134
|
"ui.textField.copied": string;
|
|
@@ -115,11 +141,13 @@ export declare const dict: {
|
|
|
115
141
|
"ui.tool.grep": string;
|
|
116
142
|
"ui.tool.webfetch": string;
|
|
117
143
|
"ui.tool.websearch": string;
|
|
144
|
+
"ui.tool.websearch.provider": string;
|
|
118
145
|
"ui.tool.shell": string;
|
|
119
146
|
"ui.tool.patch": string;
|
|
120
147
|
"ui.tool.todos": string;
|
|
121
148
|
"ui.tool.todos.read": string;
|
|
122
149
|
"ui.tool.questions": string;
|
|
150
|
+
"ui.tool.questions.numbered": string;
|
|
123
151
|
"ui.tool.agent": string;
|
|
124
152
|
"ui.tool.agent.default": string;
|
|
125
153
|
"ui.common.file.one": string;
|
|
@@ -135,6 +163,8 @@ export declare const dict: {
|
|
|
135
163
|
"ui.common.next": string;
|
|
136
164
|
"ui.common.submit": string;
|
|
137
165
|
"ui.common.showMore": string;
|
|
166
|
+
"ui.common.clear": string;
|
|
167
|
+
"ui.common.file": string;
|
|
138
168
|
"ui.permission.deny": string;
|
|
139
169
|
"ui.permission.allowAlways": string;
|
|
140
170
|
"ui.permission.allowOnce": string;
|
package/dist/i18n/ru.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -55,6 +56,8 @@ export declare const dict: {
|
|
|
55
56
|
"ui.sessionTurn.summary.response": string;
|
|
56
57
|
"ui.sessionTurn.diff.showMore": string;
|
|
57
58
|
"ui.sessionTurn.diffs.changed.one": string;
|
|
59
|
+
"ui.sessionTurn.diffs.changed.few": string;
|
|
60
|
+
"ui.sessionTurn.diffs.changed.many": string;
|
|
58
61
|
"ui.sessionTurn.diffs.changed.other": string;
|
|
59
62
|
"ui.sessionTurn.diffs.showAll": string;
|
|
60
63
|
"ui.sessionTurn.diffs.showLess": string;
|
|
@@ -87,10 +90,16 @@ export declare const dict: {
|
|
|
87
90
|
"ui.messagePart.questions.dismissed": string;
|
|
88
91
|
"ui.messagePart.compaction": string;
|
|
89
92
|
"ui.messagePart.context.read.one": string;
|
|
93
|
+
"ui.messagePart.context.read.few": string;
|
|
94
|
+
"ui.messagePart.context.read.many": string;
|
|
90
95
|
"ui.messagePart.context.read.other": string;
|
|
91
96
|
"ui.messagePart.context.search.one": string;
|
|
97
|
+
"ui.messagePart.context.search.few": string;
|
|
98
|
+
"ui.messagePart.context.search.many": string;
|
|
92
99
|
"ui.messagePart.context.search.other": string;
|
|
93
100
|
"ui.messagePart.context.list.one": string;
|
|
101
|
+
"ui.messagePart.context.list.few": string;
|
|
102
|
+
"ui.messagePart.context.list.many": string;
|
|
94
103
|
"ui.messagePart.context.list.other": string;
|
|
95
104
|
"ui.messagePart.diagnostic.error": string;
|
|
96
105
|
"ui.messagePart.title.edit": string;
|
|
@@ -103,6 +112,23 @@ export declare const dict: {
|
|
|
103
112
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
113
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
114
|
"ui.messageNav.newMessage": string;
|
|
115
|
+
"ui.promptInput.noMatchingItems": string;
|
|
116
|
+
"ui.promptInput.commands": string;
|
|
117
|
+
"ui.promptInput.dropFiles": string;
|
|
118
|
+
"ui.promptInput.removeAttachment": string;
|
|
119
|
+
"ui.promptInput.label": string;
|
|
120
|
+
"ui.promptInput.placeholder.shell": string;
|
|
121
|
+
"ui.promptInput.placeholder.normal": string;
|
|
122
|
+
"ui.promptInput.add": string;
|
|
123
|
+
"ui.promptInput.attachments": string;
|
|
124
|
+
"ui.promptInput.context": string;
|
|
125
|
+
"ui.promptInput.shell": string;
|
|
126
|
+
"ui.promptInput.chooseAgent": string;
|
|
127
|
+
"ui.promptInput.chooseModel": string;
|
|
128
|
+
"ui.promptInput.chooseVariant": string;
|
|
129
|
+
"ui.promptInput.send": string;
|
|
130
|
+
"ui.promptInput.stop": string;
|
|
131
|
+
"ui.tabs.close": string;
|
|
106
132
|
"ui.textField.copyToClipboard": string;
|
|
107
133
|
"ui.textField.copyLink": string;
|
|
108
134
|
"ui.textField.copied": string;
|
|
@@ -115,11 +141,13 @@ export declare const dict: {
|
|
|
115
141
|
"ui.tool.grep": string;
|
|
116
142
|
"ui.tool.webfetch": string;
|
|
117
143
|
"ui.tool.websearch": string;
|
|
144
|
+
"ui.tool.websearch.provider": string;
|
|
118
145
|
"ui.tool.shell": string;
|
|
119
146
|
"ui.tool.patch": string;
|
|
120
147
|
"ui.tool.todos": string;
|
|
121
148
|
"ui.tool.todos.read": string;
|
|
122
149
|
"ui.tool.questions": string;
|
|
150
|
+
"ui.tool.questions.numbered": string;
|
|
123
151
|
"ui.tool.agent": string;
|
|
124
152
|
"ui.tool.agent.default": string;
|
|
125
153
|
"ui.common.file.one": string;
|
|
@@ -135,6 +163,8 @@ export declare const dict: {
|
|
|
135
163
|
"ui.common.next": string;
|
|
136
164
|
"ui.common.submit": string;
|
|
137
165
|
"ui.common.showMore": string;
|
|
166
|
+
"ui.common.clear": string;
|
|
167
|
+
"ui.common.file": string;
|
|
138
168
|
"ui.permission.deny": string;
|
|
139
169
|
"ui.permission.allowAlways": string;
|
|
140
170
|
"ui.permission.allowOnce": string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dict: Record<string, string>;
|
package/dist/i18n/th.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -103,6 +104,23 @@ export declare const dict: {
|
|
|
103
104
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
105
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
106
|
"ui.messageNav.newMessage": string;
|
|
107
|
+
"ui.promptInput.noMatchingItems": string;
|
|
108
|
+
"ui.promptInput.commands": string;
|
|
109
|
+
"ui.promptInput.dropFiles": string;
|
|
110
|
+
"ui.promptInput.removeAttachment": string;
|
|
111
|
+
"ui.promptInput.label": string;
|
|
112
|
+
"ui.promptInput.placeholder.shell": string;
|
|
113
|
+
"ui.promptInput.placeholder.normal": string;
|
|
114
|
+
"ui.promptInput.add": string;
|
|
115
|
+
"ui.promptInput.attachments": string;
|
|
116
|
+
"ui.promptInput.context": string;
|
|
117
|
+
"ui.promptInput.shell": string;
|
|
118
|
+
"ui.promptInput.chooseAgent": string;
|
|
119
|
+
"ui.promptInput.chooseModel": string;
|
|
120
|
+
"ui.promptInput.chooseVariant": string;
|
|
121
|
+
"ui.promptInput.send": string;
|
|
122
|
+
"ui.promptInput.stop": string;
|
|
123
|
+
"ui.tabs.close": string;
|
|
106
124
|
"ui.textField.copyToClipboard": string;
|
|
107
125
|
"ui.textField.copyLink": string;
|
|
108
126
|
"ui.textField.copied": string;
|
|
@@ -115,11 +133,13 @@ export declare const dict: {
|
|
|
115
133
|
"ui.tool.grep": string;
|
|
116
134
|
"ui.tool.webfetch": string;
|
|
117
135
|
"ui.tool.websearch": string;
|
|
136
|
+
"ui.tool.websearch.provider": string;
|
|
118
137
|
"ui.tool.shell": string;
|
|
119
138
|
"ui.tool.patch": string;
|
|
120
139
|
"ui.tool.todos": string;
|
|
121
140
|
"ui.tool.todos.read": string;
|
|
122
141
|
"ui.tool.questions": string;
|
|
142
|
+
"ui.tool.questions.numbered": string;
|
|
123
143
|
"ui.tool.agent": string;
|
|
124
144
|
"ui.tool.agent.default": string;
|
|
125
145
|
"ui.common.file.one": string;
|
|
@@ -127,6 +147,8 @@ export declare const dict: {
|
|
|
127
147
|
"ui.common.question.one": string;
|
|
128
148
|
"ui.common.question.other": string;
|
|
129
149
|
"ui.common.add": string;
|
|
150
|
+
"ui.common.clear": string;
|
|
151
|
+
"ui.common.file": string;
|
|
130
152
|
"ui.common.back": string;
|
|
131
153
|
"ui.common.cancel": string;
|
|
132
154
|
"ui.common.confirm": string;
|
package/dist/i18n/tr.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -103,6 +104,23 @@ export declare const dict: {
|
|
|
103
104
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
105
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
106
|
"ui.messageNav.newMessage": string;
|
|
107
|
+
"ui.promptInput.noMatchingItems": string;
|
|
108
|
+
"ui.promptInput.commands": string;
|
|
109
|
+
"ui.promptInput.dropFiles": string;
|
|
110
|
+
"ui.promptInput.removeAttachment": string;
|
|
111
|
+
"ui.promptInput.label": string;
|
|
112
|
+
"ui.promptInput.placeholder.shell": string;
|
|
113
|
+
"ui.promptInput.placeholder.normal": string;
|
|
114
|
+
"ui.promptInput.add": string;
|
|
115
|
+
"ui.promptInput.attachments": string;
|
|
116
|
+
"ui.promptInput.context": string;
|
|
117
|
+
"ui.promptInput.shell": string;
|
|
118
|
+
"ui.promptInput.chooseAgent": string;
|
|
119
|
+
"ui.promptInput.chooseModel": string;
|
|
120
|
+
"ui.promptInput.chooseVariant": string;
|
|
121
|
+
"ui.promptInput.send": string;
|
|
122
|
+
"ui.promptInput.stop": string;
|
|
123
|
+
"ui.tabs.close": string;
|
|
106
124
|
"ui.textField.copyToClipboard": string;
|
|
107
125
|
"ui.textField.copyLink": string;
|
|
108
126
|
"ui.textField.copied": string;
|
|
@@ -115,11 +133,13 @@ export declare const dict: {
|
|
|
115
133
|
"ui.tool.grep": string;
|
|
116
134
|
"ui.tool.webfetch": string;
|
|
117
135
|
"ui.tool.websearch": string;
|
|
136
|
+
"ui.tool.websearch.provider": string;
|
|
118
137
|
"ui.tool.shell": string;
|
|
119
138
|
"ui.tool.patch": string;
|
|
120
139
|
"ui.tool.todos": string;
|
|
121
140
|
"ui.tool.todos.read": string;
|
|
122
141
|
"ui.tool.questions": string;
|
|
142
|
+
"ui.tool.questions.numbered": string;
|
|
123
143
|
"ui.tool.agent": string;
|
|
124
144
|
"ui.tool.agent.default": string;
|
|
125
145
|
"ui.common.file.one": string;
|
|
@@ -127,6 +147,8 @@ export declare const dict: {
|
|
|
127
147
|
"ui.common.question.one": string;
|
|
128
148
|
"ui.common.question.other": string;
|
|
129
149
|
"ui.common.add": string;
|
|
150
|
+
"ui.common.clear": string;
|
|
151
|
+
"ui.common.file": string;
|
|
130
152
|
"ui.common.back": string;
|
|
131
153
|
"ui.common.cancel": string;
|
|
132
154
|
"ui.common.confirm": string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dict: Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dict: Record<string, string>;
|
package/dist/i18n/zh.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -103,6 +104,23 @@ export declare const dict: {
|
|
|
103
104
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
105
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
106
|
"ui.messageNav.newMessage": string;
|
|
107
|
+
"ui.promptInput.noMatchingItems": string;
|
|
108
|
+
"ui.promptInput.commands": string;
|
|
109
|
+
"ui.promptInput.dropFiles": string;
|
|
110
|
+
"ui.promptInput.removeAttachment": string;
|
|
111
|
+
"ui.promptInput.label": string;
|
|
112
|
+
"ui.promptInput.placeholder.shell": string;
|
|
113
|
+
"ui.promptInput.placeholder.normal": string;
|
|
114
|
+
"ui.promptInput.add": string;
|
|
115
|
+
"ui.promptInput.attachments": string;
|
|
116
|
+
"ui.promptInput.context": string;
|
|
117
|
+
"ui.promptInput.shell": string;
|
|
118
|
+
"ui.promptInput.chooseAgent": string;
|
|
119
|
+
"ui.promptInput.chooseModel": string;
|
|
120
|
+
"ui.promptInput.chooseVariant": string;
|
|
121
|
+
"ui.promptInput.send": string;
|
|
122
|
+
"ui.promptInput.stop": string;
|
|
123
|
+
"ui.tabs.close": string;
|
|
106
124
|
"ui.textField.copyToClipboard": string;
|
|
107
125
|
"ui.textField.copyLink": string;
|
|
108
126
|
"ui.textField.copied": string;
|
|
@@ -115,11 +133,13 @@ export declare const dict: {
|
|
|
115
133
|
"ui.tool.grep": string;
|
|
116
134
|
"ui.tool.webfetch": string;
|
|
117
135
|
"ui.tool.websearch": string;
|
|
136
|
+
"ui.tool.websearch.provider": string;
|
|
118
137
|
"ui.tool.shell": string;
|
|
119
138
|
"ui.tool.patch": string;
|
|
120
139
|
"ui.tool.todos": string;
|
|
121
140
|
"ui.tool.todos.read": string;
|
|
122
141
|
"ui.tool.questions": string;
|
|
142
|
+
"ui.tool.questions.numbered": string;
|
|
123
143
|
"ui.tool.agent": string;
|
|
124
144
|
"ui.tool.agent.default": string;
|
|
125
145
|
"ui.common.file.one": string;
|
|
@@ -127,6 +147,8 @@ export declare const dict: {
|
|
|
127
147
|
"ui.common.question.one": string;
|
|
128
148
|
"ui.common.question.other": string;
|
|
129
149
|
"ui.common.add": string;
|
|
150
|
+
"ui.common.clear": string;
|
|
151
|
+
"ui.common.file": string;
|
|
130
152
|
"ui.common.back": string;
|
|
131
153
|
"ui.common.cancel": string;
|
|
132
154
|
"ui.common.confirm": string;
|
package/dist/i18n/zht.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const dict: {
|
|
|
48
48
|
"ui.lineComment.editorLabel.prefix": string;
|
|
49
49
|
"ui.lineComment.editorLabel.suffix": string;
|
|
50
50
|
"ui.lineComment.placeholder": string;
|
|
51
|
+
"ui.lineComment.contextPlaceholder": string;
|
|
51
52
|
"ui.lineComment.submit": string;
|
|
52
53
|
"ui.lineComment.cancel": string;
|
|
53
54
|
"ui.sessionTurn.steps.show": string;
|
|
@@ -103,6 +104,23 @@ export declare const dict: {
|
|
|
103
104
|
"ui.list.emptyWithFilter.prefix": string;
|
|
104
105
|
"ui.list.emptyWithFilter.suffix": string;
|
|
105
106
|
"ui.messageNav.newMessage": string;
|
|
107
|
+
"ui.promptInput.noMatchingItems": string;
|
|
108
|
+
"ui.promptInput.commands": string;
|
|
109
|
+
"ui.promptInput.dropFiles": string;
|
|
110
|
+
"ui.promptInput.removeAttachment": string;
|
|
111
|
+
"ui.promptInput.label": string;
|
|
112
|
+
"ui.promptInput.placeholder.shell": string;
|
|
113
|
+
"ui.promptInput.placeholder.normal": string;
|
|
114
|
+
"ui.promptInput.add": string;
|
|
115
|
+
"ui.promptInput.attachments": string;
|
|
116
|
+
"ui.promptInput.context": string;
|
|
117
|
+
"ui.promptInput.shell": string;
|
|
118
|
+
"ui.promptInput.chooseAgent": string;
|
|
119
|
+
"ui.promptInput.chooseModel": string;
|
|
120
|
+
"ui.promptInput.chooseVariant": string;
|
|
121
|
+
"ui.promptInput.send": string;
|
|
122
|
+
"ui.promptInput.stop": string;
|
|
123
|
+
"ui.tabs.close": string;
|
|
106
124
|
"ui.textField.copyToClipboard": string;
|
|
107
125
|
"ui.textField.copyLink": string;
|
|
108
126
|
"ui.textField.copied": string;
|
|
@@ -115,11 +133,13 @@ export declare const dict: {
|
|
|
115
133
|
"ui.tool.grep": string;
|
|
116
134
|
"ui.tool.webfetch": string;
|
|
117
135
|
"ui.tool.websearch": string;
|
|
136
|
+
"ui.tool.websearch.provider": string;
|
|
118
137
|
"ui.tool.shell": string;
|
|
119
138
|
"ui.tool.patch": string;
|
|
120
139
|
"ui.tool.todos": string;
|
|
121
140
|
"ui.tool.todos.read": string;
|
|
122
141
|
"ui.tool.questions": string;
|
|
142
|
+
"ui.tool.questions.numbered": string;
|
|
123
143
|
"ui.tool.agent": string;
|
|
124
144
|
"ui.tool.agent.default": string;
|
|
125
145
|
"ui.common.file.one": string;
|
|
@@ -127,6 +147,8 @@ export declare const dict: {
|
|
|
127
147
|
"ui.common.question.one": string;
|
|
128
148
|
"ui.common.question.other": string;
|
|
129
149
|
"ui.common.add": string;
|
|
150
|
+
"ui.common.clear": string;
|
|
151
|
+
"ui.common.file": string;
|
|
130
152
|
"ui.common.back": string;
|
|
131
153
|
"ui.common.cancel": string;
|
|
132
154
|
"ui.common.confirm": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencode-ai/ui",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -135,8 +135,7 @@
|
|
|
135
135
|
"fuzzysort": "3.1.0",
|
|
136
136
|
"katex": "0.16.27",
|
|
137
137
|
"luxon": "3.6.1",
|
|
138
|
-
"marked": "
|
|
139
|
-
"marked-katex-extension": "5.1.6",
|
|
138
|
+
"marked": "18.0.7",
|
|
140
139
|
"marked-shiki": "1.2.1",
|
|
141
140
|
"morphdom": "2.7.8",
|
|
142
141
|
"motion": "12.34.5",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
[data-slot="dropdown-menu-checkbox-item"],
|
|
62
62
|
[data-slot="dropdown-menu-radio-item"] {
|
|
63
|
-
padding-
|
|
63
|
+
padding-inline-end: 28px;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
[data-slot="dropdown-menu-sub-trigger"] {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
width: 16px;
|
|
77
77
|
height: 16px;
|
|
78
78
|
position: absolute;
|
|
79
|
-
|
|
79
|
+
inset-inline-end: 8px;
|
|
80
80
|
top: 50%;
|
|
81
81
|
transform: translateY(-50%);
|
|
82
82
|
}
|
package/src/components/icon.css
CHANGED
package/src/components/icon.tsx
CHANGED
|
@@ -151,7 +151,18 @@ export function Icon(props: IconProps) {
|
|
|
151
151
|
onMount(ensureSprite)
|
|
152
152
|
|
|
153
153
|
return (
|
|
154
|
-
<div
|
|
154
|
+
<div
|
|
155
|
+
data-component="icon"
|
|
156
|
+
data-size={local.size || "normal"}
|
|
157
|
+
data-directional={
|
|
158
|
+
local.name === "arrow-left" ||
|
|
159
|
+
local.name === "arrow-right" ||
|
|
160
|
+
local.name === "chevron-left" ||
|
|
161
|
+
local.name === "chevron-right"
|
|
162
|
+
? true
|
|
163
|
+
: undefined
|
|
164
|
+
}
|
|
165
|
+
>
|
|
155
166
|
<svg
|
|
156
167
|
data-slot="icon-svg"
|
|
157
168
|
classList={{
|
|
@@ -366,34 +366,9 @@
|
|
|
366
366
|
</symbol>
|
|
367
367
|
<symbol viewBox="0 0 24 24" fill="none" id="openrouter">
|
|
368
368
|
<path
|
|
369
|
-
d="
|
|
369
|
+
d="M728.039 234C819.325 234 893.323 308.62 893.323 400.668C893.323 492.716 819.325 567.336 728.039 567.336L891.984 732.656C912.81 753.655 898.061 789.56 868.613 789.56H397.472C245.333 789.56 122 665.193 122 511.78C122 358.367 245.333 234 397.472 234H728.039ZM397.472 345.112C306.189 345.112 232.189 419.732 232.189 511.78C232.189 603.828 306.189 678.448 397.472 678.448C488.756 678.448 562.756 603.828 562.756 511.78C562.756 419.732 488.756 345.112 397.472 345.112Z"
|
|
370
370
|
fill="currentColor"
|
|
371
|
-
|
|
372
|
-
<path
|
|
373
|
-
d="M3.10913 12.07C3.65512 12.07 5.76627 11.5988 6.85825 10.98C7.95023 10.3612 7.95023 10.3612 10.207 8.75965C13.0642 6.73196 15.0845 7.41088 18.3968 7.41088"
|
|
374
|
-
stroke="currentColor"
|
|
375
|
-
stroke-width="3.27593"
|
|
376
|
-
></path>
|
|
377
|
-
<path
|
|
378
|
-
d="M21.6 7.43108L16.0037 10.6622V4.20001L21.6 7.43108Z"
|
|
379
|
-
fill="currentColor"
|
|
380
|
-
stroke="currentColor"
|
|
381
|
-
stroke-width="0.0363992"
|
|
382
|
-
></path>
|
|
383
|
-
<path
|
|
384
|
-
d="M3 12.072C3.54599 12.072 5.65714 12.5432 6.74912 13.162C7.8411 13.7808 7.8411 13.7808 10.0978 15.3823C12.9551 17.41 14.9753 16.7311 18.2877 16.7311"
|
|
385
|
-
fill="currentColor"
|
|
386
|
-
></path>
|
|
387
|
-
<path
|
|
388
|
-
d="M3 12.072C3.54599 12.072 5.65714 12.5432 6.74912 13.162C7.8411 13.7808 7.8411 13.7808 10.0978 15.3823C12.9551 17.41 14.9753 16.7311 18.2877 16.7311"
|
|
389
|
-
stroke="currentColor"
|
|
390
|
-
stroke-width="3.27593"
|
|
391
|
-
></path>
|
|
392
|
-
<path
|
|
393
|
-
d="M21.4909 16.7109L15.8945 13.4798V19.942L21.4909 16.7109Z"
|
|
394
|
-
fill="currentColor"
|
|
395
|
-
stroke="currentColor"
|
|
396
|
-
stroke-width="0.0363992"
|
|
371
|
+
transform="scale(0.0234375)"
|
|
397
372
|
></path>
|
|
398
373
|
</symbol>
|
|
399
374
|
<symbol viewBox="0 0 24 24" fill="none" id="opencode">
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
opacity: 1;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
&:where([data-direction="horizontal"]) {
|
|
18
18
|
inset-block: 0;
|
|
19
19
|
inset-inline-end: 0;
|
|
20
20
|
width: 8px;
|
|
@@ -33,9 +33,21 @@
|
|
|
33
33
|
inset-inline-start: 50%;
|
|
34
34
|
transform: translateX(-50%);
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
&:dir(rtl) {
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
|
|
40
|
+
&[data-edge="start"] {
|
|
41
|
+
transform: translateX(50%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::after {
|
|
45
|
+
transform: translateX(50%);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
36
48
|
}
|
|
37
49
|
|
|
38
|
-
|
|
50
|
+
&:where([data-direction="vertical"]) {
|
|
39
51
|
inset-inline: 0;
|
|
40
52
|
inset-block-start: 0;
|
|
41
53
|
height: 8px;
|
|
@@ -33,6 +33,10 @@ export function ResizeHandle(props: ResizeHandleProps) {
|
|
|
33
33
|
e.preventDefault()
|
|
34
34
|
const edge = local.edge ?? (local.direction === "vertical" ? "start" : "end")
|
|
35
35
|
const start = local.direction === "horizontal" ? e.clientX : e.clientY
|
|
36
|
+
const rtl =
|
|
37
|
+
local.direction === "horizontal" &&
|
|
38
|
+
e.currentTarget instanceof Element &&
|
|
39
|
+
getComputedStyle(e.currentTarget).direction === "rtl"
|
|
36
40
|
const startSize = local.size
|
|
37
41
|
const min = local.min
|
|
38
42
|
const max = local.max
|
|
@@ -53,7 +57,7 @@ export function ResizeHandle(props: ResizeHandleProps) {
|
|
|
53
57
|
? edge === "end"
|
|
54
58
|
? pos - start
|
|
55
59
|
: start - pos
|
|
56
|
-
: edge === "start"
|
|
60
|
+
: (edge === "start") !== rtl
|
|
57
61
|
? start - pos
|
|
58
62
|
: pos - start
|
|
59
63
|
current = startSize + delta
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
[data-component="select"] {
|
|
2
2
|
[data-slot="select-select-trigger"] {
|
|
3
|
-
padding: 0
|
|
3
|
+
padding-block: 0;
|
|
4
|
+
padding-inline: 8px 4px;
|
|
4
5
|
box-shadow: none;
|
|
5
6
|
|
|
6
7
|
[data-slot="select-select-trigger-value"] {
|
|
@@ -46,7 +47,8 @@
|
|
|
46
47
|
|
|
47
48
|
&[data-trigger-style="settings"] {
|
|
48
49
|
[data-slot="select-select-trigger"] {
|
|
49
|
-
padding: 6px
|
|
50
|
+
padding-block: 6px;
|
|
51
|
+
padding-inline: 12px 6px;
|
|
50
52
|
box-shadow: none;
|
|
51
53
|
border-radius: 6px;
|
|
52
54
|
min-width: 160px;
|
|
@@ -154,7 +156,7 @@
|
|
|
154
156
|
display: flex;
|
|
155
157
|
align-items: center;
|
|
156
158
|
justify-content: center;
|
|
157
|
-
margin-
|
|
159
|
+
margin-inline-start: auto;
|
|
158
160
|
width: 16px;
|
|
159
161
|
height: 16px;
|
|
160
162
|
}
|
|
@@ -103,6 +103,10 @@
|
|
|
103
103
|
background-color: var(--icon-invert-base);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
&:dir(rtl)[data-checked] [data-slot="switch-thumb"] {
|
|
107
|
+
transform: translateX(-12px);
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
&[data-checked]:hover:not([data-disabled], [data-readonly]) [data-slot="switch-control"] {
|
|
107
111
|
border-color: var(--border-hover);
|
|
108
112
|
background-color: var(--surface-hover);
|