@tano.page/workbench 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/package.json +21 -8
  2. package/src/App.vue +76 -17
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/components/AssistantChangeList.vue +98 -21
  17. package/src/assistant/components/AssistantPanel.vue +424 -7
  18. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  19. package/src/assistant/engine.ts +56 -3
  20. package/src/assistant/files.ts +5 -13
  21. package/src/assistant/inbox.ts +1 -148
  22. package/src/assistant/locales/de-DE.json +4 -1
  23. package/src/assistant/locales/en-US.json +4 -1
  24. package/src/assistant/locales/es-ES.json +4 -1
  25. package/src/assistant/locales/ja-JP.json +4 -1
  26. package/src/assistant/locales/zh-CN.json +4 -1
  27. package/src/assistant/locales/zh-TW.json +4 -1
  28. package/src/assistant/mention-autocomplete.ts +69 -0
  29. package/src/assistant/prompts.ts +7 -0
  30. package/src/assistant/results.ts +20 -86
  31. package/src/assistant/store.ts +319 -12
  32. package/src/assistant/structures.ts +7 -5
  33. package/src/assistant/tasks.ts +3 -5
  34. package/src/assistant/workspace-bridge.ts +1 -1
  35. package/src/composables/use-document-actions.ts +38 -20
  36. package/src/composables/use-file-tree-controller.ts +7 -12
  37. package/src/composables/use-workbench-history.ts +2 -4
  38. package/src/composables/use-workbench-modals.ts +6 -1
  39. package/src/composables/use-workbench-outline.ts +0 -5
  40. package/src/composables/use-workbench-shortcuts.ts +26 -22
  41. package/src/data-tables/data-tables.ts +1 -2
  42. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  43. package/src/features.ts +1 -0
  44. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  45. package/src/fonts/Inter-Latin.woff2 +0 -0
  46. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  47. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  48. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  49. package/src/help/help-milestones.ts +3 -5
  50. package/src/i18n/locales/de-DE.json +349 -3
  51. package/src/i18n/locales/en-US.json +349 -2
  52. package/src/i18n/locales/es-ES.json +349 -3
  53. package/src/i18n/locales/ja-JP.json +348 -2
  54. package/src/i18n/locales/zh-TW.json +348 -2
  55. package/src/mail/components/MailAccountDialog.vue +449 -0
  56. package/src/mail/components/MailComposerDialog.vue +325 -0
  57. package/src/mail/components/MailProviderIcon.vue +30 -0
  58. package/src/mail/components/MailWorkspaceView.vue +820 -0
  59. package/src/mail/components/SidebarMail.vue +133 -0
  60. package/src/mail/mail-avatar.ts +17 -0
  61. package/src/mail/mail-bridge.ts +68 -0
  62. package/src/mail/mail-calendar.ts +208 -0
  63. package/src/mail/mail-markdown.ts +195 -0
  64. package/src/mail/types.ts +226 -0
  65. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  66. package/src/objects/workspace-objects.ts +1 -1
  67. package/src/plan-sync/types.ts +6 -3
  68. package/src/plans/calendar-interaction.ts +194 -0
  69. package/src/plans/calendar.ts +63 -7
  70. package/src/plans/components/CalendarDayPopover.vue +172 -39
  71. package/src/plans/components/CalendarView.vue +1736 -276
  72. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  73. package/src/plans/components/PlanDateField.vue +6 -4
  74. package/src/plans/components/PlanDetailPanel.vue +227 -32
  75. package/src/plans/components/PlanEventList.vue +16 -4
  76. package/src/plans/components/SidebarPlan.vue +22 -15
  77. package/src/plans/components/TaskRepeatControls.vue +169 -30
  78. package/src/plans/local-reminders.ts +149 -0
  79. package/src/plans/personal-plans.ts +10 -1
  80. package/src/plans/plan-date.ts +8 -1
  81. package/src/plans/plan-migration.ts +95 -0
  82. package/src/plans/recurrence.ts +95 -0
  83. package/src/plans/task-repeat.ts +8 -8
  84. package/src/plans/timeline-layout.ts +92 -0
  85. package/src/plugins/assistant-bridge.ts +520 -0
  86. package/src/plugins/attachment-reader.ts +3 -1
  87. package/src/plugins/cache-storage.ts +42 -2
  88. package/src/plugins/components/PluginAutomations.vue +3 -3
  89. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  90. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  91. package/src/plugins/components/PluginConnections.vue +1 -1
  92. package/src/plugins/components/PluginCustomView.vue +2 -2
  93. package/src/plugins/components/PluginDetailPage.vue +129 -54
  94. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  95. package/src/plugins/components/PluginExplorer.vue +15 -21
  96. package/src/plugins/components/PluginImportDialog.vue +410 -0
  97. package/src/plugins/components/PluginInstaller.vue +39 -145
  98. package/src/plugins/components/PluginListItem.vue +3 -0
  99. package/src/plugins/components/PluginMaintenance.vue +21 -6
  100. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  101. package/src/plugins/components/PluginSettingsForm.vue +111 -0
  102. package/src/plugins/components/PluginStatusBar.vue +161 -0
  103. package/src/plugins/components/PluginSurface.vue +18 -6
  104. package/src/plugins/components/PluginUiDialog.vue +452 -0
  105. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  106. package/src/plugins/excalidraw/manifest.json +12 -1
  107. package/src/plugins/host.ts +662 -43
  108. package/src/plugins/native.ts +2 -10
  109. package/src/plugins/overlay-mapping.ts +125 -0
  110. package/src/plugins/packages.ts +73 -1
  111. package/src/plugins/plugin-permissions.ts +57 -0
  112. package/src/plugins/plugin-sdk.ts +174 -8
  113. package/src/plugins/policy.ts +53 -3
  114. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  115. package/src/plugins/presentation-preview/manifest.json +2 -1
  116. package/src/plugins/queries.ts +3 -1
  117. package/src/plugins/sandbox.ts +15 -1
  118. package/src/plugins/use-plugin-actions.ts +67 -20
  119. package/src/plugins/user-plugins.ts +254 -0
  120. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  121. package/src/plugins/word-preview/manifest.json +13 -1
  122. package/src/plugins/workbench.ts +175 -2
  123. package/src/plugins/worker.js +105 -8
  124. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  125. package/src/plugins/workspace-plugins.ts +212 -21
  126. package/src/runtime.ts +101 -3
  127. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  128. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  129. package/src/settings/components/settings-search.ts +2 -3
  130. package/src/shell/components/SidebarNavigation.vue +22 -2
  131. package/src/shell/components/WorkbenchContextMenus.vue +21 -8
  132. package/src/shell/components/WorkbenchModals.vue +27 -46
  133. package/src/shell/components/WorkbenchPanes.vue +267 -84
  134. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  135. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  136. package/src/shell/use-workbench.ts +116 -145
  137. package/src/shell/workbench-async-components.ts +14 -5
  138. package/src/stores/mail.ts +414 -0
  139. package/src/stores/plan-sync.ts +2 -1
  140. package/src/stores/plans.ts +2 -9
  141. package/src/stores/workspace-knowledge.ts +1 -113
  142. package/src/stores/workspace-plugins-state.ts +537 -14
  143. package/src/stores/workspace-tabs-layout.ts +5 -43
  144. package/src/stores/workspace.ts +69 -66
  145. package/src/styles/agent-diff-modals.css +0 -7
  146. package/src/styles/dark-theme.css +3 -3
  147. package/src/styles/inspector.css +0 -59
  148. package/src/styles/layout-themes.css +346 -0
  149. package/src/styles/mail.css +1568 -0
  150. package/src/styles/mobile.css +2 -2
  151. package/src/styles/recent-and-media.css +0 -17
  152. package/src/styles/theme-contract.css +3 -3
  153. package/src/styles/workbench-shell.css +110 -17
  154. package/src/styles/workspace-states.css +9 -33
  155. package/src/styles.css +1 -1
  156. package/src/tabs/components/DesktopTabs.vue +0 -3
  157. package/src/tabs/components/NewTabPicker.vue +10 -4
  158. package/src/tabs/tab-label.ts +0 -1
  159. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  160. package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
  161. package/src/workspace/workspace-comments.ts +11 -151
  162. package/src/workspace/workspace-welcome.ts +1 -1
  163. package/src/documents/components/FormulaMenu.vue +0 -50
  164. package/src/files/components/FileDatabasePage.vue +0 -152
  165. package/src/files/components/FolderHomeIcon.vue +0 -12
  166. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  167. package/src/objects/components/ObjectPanel.vue +0 -554
  168. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  169. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  170. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  171. package/src/styles/object-panel.css +0 -163
  172. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  173. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  174. package/src/workspace/welcome-slogans.ts +0 -11
  175. package/src/workspace/workspace-git.ts +0 -35
  176. package/src/workspace/workspace-sync.ts +0 -46
  177. package/src/workspace/workspace-views.ts +0 -48
@@ -0,0 +1,452 @@
1
+ <script setup lang="ts">
2
+ import { computed, nextTick, ref, watch } from 'vue';
3
+ import { Puzzle, Search, X } from 'lucide-vue-next';
4
+ import { t } from '../../i18n/i18n';
5
+ import type { PluginUiDialogRequest, PluginUiToastItem } from '../../stores/workspace-plugins-state';
6
+
7
+ const props = defineProps<{
8
+ dialog: PluginUiDialogRequest | null;
9
+ toasts: readonly PluginUiToastItem[];
10
+ }>();
11
+ const emit = defineEmits<{
12
+ resolve: [id: string, value: string | boolean | null];
13
+ dismissToast: [id: string];
14
+ }>();
15
+
16
+ const query = ref('');
17
+ const selectedIndex = ref(0);
18
+ const promptValue = ref('');
19
+ const inputRef = ref<HTMLInputElement>();
20
+
21
+ const filteredItems = computed(() => {
22
+ if (props.dialog?.kind !== 'pick') return [];
23
+ const q = query.value.trim().toLowerCase();
24
+ if (!q) return props.dialog.options.items;
25
+ return props.dialog.options.items.filter(
26
+ (item) =>
27
+ item.label.toLowerCase().includes(q) ||
28
+ item.description?.toLowerCase().includes(q) ||
29
+ item.detail?.toLowerCase().includes(q),
30
+ );
31
+ });
32
+
33
+ watch(
34
+ () => props.dialog?.id,
35
+ async () => {
36
+ query.value = '';
37
+ selectedIndex.value = 0;
38
+ promptValue.value = props.dialog?.kind === 'prompt' ? (props.dialog.options.defaultValue ?? '') : '';
39
+ if (props.dialog) {
40
+ await nextTick();
41
+ inputRef.value?.focus();
42
+ }
43
+ },
44
+ { immediate: true },
45
+ );
46
+
47
+ watch(filteredItems, (items) => {
48
+ if (selectedIndex.value >= items.length) selectedIndex.value = 0;
49
+ });
50
+
51
+ function cancel() {
52
+ if (!props.dialog) return;
53
+ emit('resolve', props.dialog.id, props.dialog.kind === 'confirm' ? false : null);
54
+ }
55
+
56
+ function confirmPrompt() {
57
+ if (props.dialog?.kind !== 'prompt') return;
58
+ emit('resolve', props.dialog.id, promptValue.value);
59
+ }
60
+
61
+ function choosePick(id: string) {
62
+ if (props.dialog?.kind !== 'pick') return;
63
+ emit('resolve', props.dialog.id, id);
64
+ }
65
+
66
+ function handleKeydown(event: KeyboardEvent) {
67
+ if (!props.dialog) return;
68
+ if (event.key === 'Escape') {
69
+ event.preventDefault();
70
+ event.stopPropagation();
71
+ cancel();
72
+ return;
73
+ }
74
+ if (props.dialog.kind === 'pick') {
75
+ const items = filteredItems.value;
76
+ if (!items.length) return;
77
+ if (event.key === 'ArrowDown') {
78
+ event.preventDefault();
79
+ selectedIndex.value = (selectedIndex.value + 1) % items.length;
80
+ } else if (event.key === 'ArrowUp') {
81
+ event.preventDefault();
82
+ selectedIndex.value = (selectedIndex.value - 1 + items.length) % items.length;
83
+ } else if (event.key === 'Enter') {
84
+ event.preventDefault();
85
+ const target = items[selectedIndex.value];
86
+ if (target) choosePick(target.id);
87
+ }
88
+ }
89
+ }
90
+ </script>
91
+
92
+ <template>
93
+ <div
94
+ v-if="dialog"
95
+ class="plugin-ui-backdrop"
96
+ role="presentation"
97
+ @mousedown.self="cancel"
98
+ @keydown="handleKeydown"
99
+ >
100
+ <section
101
+ class="plugin-ui-dialog"
102
+ role="dialog"
103
+ aria-modal="true"
104
+ :aria-label="dialog.options.title"
105
+ >
106
+ <header class="plugin-ui-header">
107
+ <div class="plugin-ui-source">
108
+ <Puzzle :size="13" aria-hidden="true" />
109
+ <span>{{ t('插件:{0}', [dialog.pluginName]) }}</span>
110
+ </div>
111
+ <button type="button" class="plugin-ui-close" :aria-label="t('取消')" @click="cancel">
112
+ <X :size="15" />
113
+ </button>
114
+ </header>
115
+ <h3 class="plugin-ui-title">{{ dialog.options.title }}</h3>
116
+
117
+ <template v-if="dialog.kind === 'pick'">
118
+ <div class="plugin-ui-search">
119
+ <Search :size="14" aria-hidden="true" />
120
+ <input
121
+ ref="inputRef"
122
+ v-model="query"
123
+ type="text"
124
+ :placeholder="dialog.options.placeholder || t('输入关键词筛选…')"
125
+ :aria-label="dialog.options.placeholder || dialog.options.title"
126
+ autocomplete="off"
127
+ />
128
+ </div>
129
+ <ul v-if="filteredItems.length" class="plugin-ui-list" role="listbox">
130
+ <li
131
+ v-for="(item, index) in filteredItems"
132
+ :key="item.id"
133
+ role="option"
134
+ :aria-selected="index === selectedIndex"
135
+ >
136
+ <button
137
+ type="button"
138
+ class="plugin-ui-option"
139
+ :class="{ active: index === selectedIndex }"
140
+ @mouseenter="selectedIndex = index"
141
+ @click="choosePick(item.id)"
142
+ >
143
+ <div class="plugin-ui-option-head">
144
+ <strong>{{ item.label }}</strong>
145
+ <span v-if="item.description" class="plugin-ui-option-desc">{{ item.description }}</span>
146
+ </div>
147
+ <p v-if="item.detail" class="plugin-ui-option-detail">{{ item.detail }}</p>
148
+ </button>
149
+ </li>
150
+ </ul>
151
+ <p v-else class="plugin-ui-empty">{{ t('没有匹配的选项') }}</p>
152
+ </template>
153
+
154
+ <form v-else-if="dialog.kind === 'prompt'" class="plugin-ui-form" @submit.prevent="confirmPrompt">
155
+ <p v-if="dialog.options.message" class="plugin-ui-message">{{ dialog.options.message }}</p>
156
+ <input
157
+ ref="inputRef"
158
+ v-model="promptValue"
159
+ type="text"
160
+ class="plugin-ui-input"
161
+ :placeholder="dialog.options.placeholder"
162
+ :aria-label="dialog.options.title"
163
+ autocomplete="off"
164
+ />
165
+ <div class="plugin-ui-actions">
166
+ <button type="button" class="plugin-ui-btn" @click="cancel">{{ t('取消') }}</button>
167
+ <button type="submit" class="plugin-ui-btn primary">
168
+ {{ dialog.options.confirmLabel || t('确定') }}
169
+ </button>
170
+ </div>
171
+ </form>
172
+
173
+ <div v-else class="plugin-ui-form">
174
+ <p v-if="dialog.options.message" class="plugin-ui-message">{{ dialog.options.message }}</p>
175
+ <div class="plugin-ui-actions">
176
+ <button type="button" class="plugin-ui-btn" @click="cancel">
177
+ {{ dialog.options.cancelLabel || t('取消') }}
178
+ </button>
179
+ <button
180
+ type="button"
181
+ class="plugin-ui-btn"
182
+ :class="dialog.options.danger ? 'danger' : 'primary'"
183
+ @click="emit('resolve', dialog.id, true)"
184
+ >
185
+ {{ dialog.options.confirmLabel || t('确认') }}
186
+ </button>
187
+ </div>
188
+ </div>
189
+ </section>
190
+ </div>
191
+
192
+ <div v-if="toasts.length" class="plugin-toast-stack" role="status" aria-live="polite">
193
+ <div
194
+ v-for="toast in toasts"
195
+ :key="toast.id"
196
+ class="plugin-toast"
197
+ :class="`tone-${toast.tone}`"
198
+ >
199
+ <div class="plugin-toast-body">
200
+ <strong>{{ toast.pluginName }}</strong>
201
+ <span>{{ toast.message }}</span>
202
+ </div>
203
+ <button
204
+ type="button"
205
+ class="plugin-toast-close"
206
+ :aria-label="t('关闭提示')"
207
+ @click="emit('dismissToast', toast.id)"
208
+ >
209
+ <X :size="13" />
210
+ </button>
211
+ </div>
212
+ </div>
213
+ </template>
214
+
215
+ <style scoped>
216
+ .plugin-ui-backdrop {
217
+ position: fixed;
218
+ inset: 0;
219
+ z-index: 120;
220
+ display: flex;
221
+ align-items: flex-start;
222
+ justify-content: center;
223
+ padding: min(14vh, 108px) 16px 24px;
224
+ background: rgb(0 0 0 / 32%);
225
+ }
226
+ .plugin-ui-dialog {
227
+ width: min(480px, 100%);
228
+ max-height: 72vh;
229
+ display: flex;
230
+ flex-direction: column;
231
+ gap: 10px;
232
+ padding: 16px;
233
+ border: 1px solid var(--line);
234
+ border-radius: var(--radius-dialog, 12px);
235
+ background: var(--paper);
236
+ color: var(--text);
237
+ box-shadow: var(--dialog-shadow, 0 20px 56px rgb(0 0 0 / 26%));
238
+ }
239
+ .plugin-ui-header {
240
+ display: flex;
241
+ align-items: center;
242
+ justify-content: space-between;
243
+ gap: 8px;
244
+ }
245
+ .plugin-ui-source {
246
+ display: inline-flex;
247
+ align-items: center;
248
+ gap: 5px;
249
+ font-size: 11px;
250
+ color: var(--muted);
251
+ }
252
+ .plugin-ui-close {
253
+ display: inline-flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ width: 24px;
257
+ height: 24px;
258
+ border-radius: 6px;
259
+ color: var(--muted);
260
+ }
261
+ .plugin-ui-close:hover {
262
+ background: var(--hover);
263
+ color: var(--text);
264
+ }
265
+ .plugin-ui-title {
266
+ margin: 0;
267
+ font-size: 15px;
268
+ font-weight: 600;
269
+ line-height: 1.4;
270
+ }
271
+ .plugin-ui-message {
272
+ margin: 0;
273
+ font-size: 13px;
274
+ line-height: 1.6;
275
+ color: var(--muted);
276
+ white-space: pre-wrap;
277
+ overflow-wrap: anywhere;
278
+ }
279
+ .plugin-ui-search {
280
+ display: flex;
281
+ align-items: center;
282
+ gap: 8px;
283
+ padding: 0 10px;
284
+ height: 36px;
285
+ border: 1px solid var(--control-border, var(--line));
286
+ border-radius: var(--radius-control, 8px);
287
+ background: var(--surface, var(--paper));
288
+ color: var(--muted);
289
+ }
290
+ .plugin-ui-search input {
291
+ flex: 1;
292
+ min-width: 0;
293
+ border: 0;
294
+ background: transparent;
295
+ color: var(--text);
296
+ font-size: 13px;
297
+ outline: none;
298
+ }
299
+ .plugin-ui-list {
300
+ list-style: none;
301
+ margin: 0;
302
+ padding: 0;
303
+ overflow-y: auto;
304
+ max-height: 300px;
305
+ display: flex;
306
+ flex-direction: column;
307
+ gap: 2px;
308
+ }
309
+ .plugin-ui-option {
310
+ width: 100%;
311
+ text-align: left;
312
+ padding: 8px 10px;
313
+ border-radius: 7px;
314
+ display: flex;
315
+ flex-direction: column;
316
+ gap: 3px;
317
+ color: var(--text);
318
+ }
319
+ .plugin-ui-option:hover,
320
+ .plugin-ui-option.active {
321
+ background: var(--selected, var(--hover));
322
+ }
323
+ .plugin-ui-option-head {
324
+ display: flex;
325
+ align-items: baseline;
326
+ justify-content: space-between;
327
+ gap: 8px;
328
+ }
329
+ .plugin-ui-option-head strong {
330
+ font-size: 13px;
331
+ font-weight: 500;
332
+ }
333
+ .plugin-ui-option-desc,
334
+ .plugin-ui-option-detail {
335
+ margin: 0;
336
+ font-size: 12px;
337
+ color: var(--muted);
338
+ overflow-wrap: anywhere;
339
+ }
340
+ .plugin-ui-empty {
341
+ margin: 6px 0;
342
+ font-size: 12px;
343
+ color: var(--muted);
344
+ text-align: center;
345
+ }
346
+ .plugin-ui-form {
347
+ display: flex;
348
+ flex-direction: column;
349
+ gap: 12px;
350
+ }
351
+ .plugin-ui-input {
352
+ width: 100%;
353
+ box-sizing: border-box;
354
+ height: 36px;
355
+ padding: 0 10px;
356
+ border: 1px solid var(--control-border, var(--line));
357
+ border-radius: var(--radius-control, 8px);
358
+ background: var(--surface, var(--paper));
359
+ color: var(--text);
360
+ font-size: 13px;
361
+ }
362
+ .plugin-ui-input:focus {
363
+ outline: 2px solid var(--green);
364
+ outline-offset: -1px;
365
+ }
366
+ .plugin-ui-actions {
367
+ display: flex;
368
+ justify-content: flex-end;
369
+ gap: 8px;
370
+ }
371
+ .plugin-ui-btn {
372
+ height: 32px;
373
+ padding: 0 14px;
374
+ border: 1px solid var(--line);
375
+ border-radius: var(--radius-control, 7px);
376
+ background: var(--surface, var(--paper));
377
+ color: var(--text);
378
+ font-size: 13px;
379
+ }
380
+ .plugin-ui-btn:hover {
381
+ background: var(--hover);
382
+ }
383
+ .plugin-ui-btn.primary {
384
+ border-color: var(--green);
385
+ background: var(--green);
386
+ color: #fff;
387
+ }
388
+ .plugin-ui-btn.danger {
389
+ border-color: var(--danger, #c4483d);
390
+ background: var(--danger, #c4483d);
391
+ color: #fff;
392
+ }
393
+ .plugin-toast-stack {
394
+ position: fixed;
395
+ right: 18px;
396
+ bottom: 34px;
397
+ z-index: 115;
398
+ display: flex;
399
+ flex-direction: column;
400
+ gap: 8px;
401
+ max-width: min(360px, calc(100vw - 32px));
402
+ pointer-events: none;
403
+ }
404
+ .plugin-toast {
405
+ pointer-events: auto;
406
+ display: flex;
407
+ align-items: flex-start;
408
+ gap: 10px;
409
+ padding: 10px 12px;
410
+ border: 1px solid var(--line);
411
+ border-left: 3px solid var(--muted);
412
+ border-radius: 9px;
413
+ background: var(--paper);
414
+ color: var(--text);
415
+ box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
416
+ font-size: 12px;
417
+ }
418
+ .plugin-toast.tone-success {
419
+ border-left-color: var(--brand-green, var(--green));
420
+ }
421
+ .plugin-toast.tone-warning {
422
+ border-left-color: #d9822b;
423
+ }
424
+ .plugin-toast.tone-error {
425
+ border-left-color: var(--danger, #c4483d);
426
+ }
427
+ .plugin-toast-body {
428
+ flex: 1;
429
+ min-width: 0;
430
+ display: flex;
431
+ flex-direction: column;
432
+ gap: 2px;
433
+ }
434
+ .plugin-toast-body strong {
435
+ font-size: 11px;
436
+ color: var(--muted);
437
+ font-weight: 500;
438
+ }
439
+ .plugin-toast-body span {
440
+ line-height: 1.5;
441
+ overflow-wrap: anywhere;
442
+ }
443
+ .plugin-toast-close {
444
+ color: var(--muted);
445
+ padding: 2px;
446
+ border-radius: 4px;
447
+ }
448
+ .plugin-toast-close:hover {
449
+ background: var(--hover);
450
+ color: var(--text);
451
+ }
452
+ </style>