@pairdraw/vue 0.19.2 → 0.20.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 (302) hide show
  1. package/dist/canvas/CanvasRoot.vue.js +2 -0
  2. package/dist/canvas/CanvasRoot.vue.js.map +1 -1
  3. package/dist/canvas/auto-layout/value-edit.js +1 -1
  4. package/dist/canvas/auto-layout/value-edit.js.map +1 -1
  5. package/dist/canvas/eyedropper/index.d.ts +26 -0
  6. package/dist/canvas/eyedropper/index.d.ts.map +1 -0
  7. package/dist/canvas/eyedropper/index.js +62 -0
  8. package/dist/canvas/eyedropper/index.js.map +1 -0
  9. package/dist/canvas/eyedropper/sample.js +13 -0
  10. package/dist/canvas/eyedropper/sample.js.map +1 -0
  11. package/dist/canvas/eyedropper/use.d.ts +33 -0
  12. package/dist/canvas/eyedropper/use.d.ts.map +1 -0
  13. package/dist/canvas/eyedropper/use.js +52 -0
  14. package/dist/canvas/eyedropper/use.js.map +1 -0
  15. package/dist/canvas/pointer/drag-move.js +4 -0
  16. package/dist/canvas/pointer/drag-move.js.map +1 -1
  17. package/dist/canvas/surface/kit-loader.js +2 -3
  18. package/dist/canvas/surface/kit-loader.js.map +1 -1
  19. package/dist/canvas/surface/lifecycle.js +30 -1
  20. package/dist/canvas/surface/lifecycle.js.map +1 -1
  21. package/dist/canvas/surface/types.d.ts +9 -0
  22. package/dist/canvas/surface/types.d.ts.map +1 -1
  23. package/dist/canvas/text-edit/textarea.d.ts +1 -0
  24. package/dist/canvas/text-edit/textarea.d.ts.map +1 -1
  25. package/dist/canvas/tools/registry.js +5 -1
  26. package/dist/canvas/tools/registry.js.map +1 -1
  27. package/dist/canvas/useCanvasInput.d.ts +152 -10
  28. package/dist/canvas/useCanvasInput.d.ts.map +1 -1
  29. package/dist/canvas/useCanvasInput.js +3 -2
  30. package/dist/canvas/useCanvasInput.js.map +1 -1
  31. package/dist/controls/document-colors/index.d.ts +2 -0
  32. package/dist/controls/document-colors/index.js +2 -0
  33. package/dist/controls/document-colors/use.d.ts +14 -0
  34. package/dist/controls/document-colors/use.d.ts.map +1 -0
  35. package/dist/controls/document-colors/use.js +27 -0
  36. package/dist/controls/document-colors/use.js.map +1 -0
  37. package/dist/controls/effects/helpers.d.ts +13 -2
  38. package/dist/controls/effects/helpers.d.ts.map +1 -1
  39. package/dist/controls/effects/helpers.js +89 -34
  40. package/dist/controls/effects/helpers.js.map +1 -1
  41. package/dist/controls/effects/index.d.ts +2 -1
  42. package/dist/controls/effects/index.js +2 -1
  43. package/dist/controls/effects/use.d.ts +9 -7
  44. package/dist/controls/effects/use.d.ts.map +1 -1
  45. package/dist/controls/effects/use.js +6 -3
  46. package/dist/controls/effects/use.js.map +1 -1
  47. package/dist/controls/node-props/use.d.ts +3 -3
  48. package/dist/controls/position/use.d.ts +1 -1
  49. package/dist/controls/typography/features.d.ts +24 -0
  50. package/dist/controls/typography/features.d.ts.map +1 -0
  51. package/dist/controls/typography/features.js +130 -0
  52. package/dist/controls/typography/features.js.map +1 -0
  53. package/dist/controls/typography/index.d.ts +2 -1
  54. package/dist/controls/typography/index.js +2 -1
  55. package/dist/controls/typography/use.d.ts +6 -0
  56. package/dist/controls/typography/use.d.ts.map +1 -1
  57. package/dist/controls/typography/use.js +4 -1
  58. package/dist/controls/typography/use.js.map +1 -1
  59. package/dist/editor/commands/registry.d.ts +4 -0
  60. package/dist/editor/commands/registry.d.ts.map +1 -1
  61. package/dist/editor/commands/registry.js +2 -0
  62. package/dist/editor/commands/registry.js.map +1 -1
  63. package/dist/editor/commands/selection.js +22 -0
  64. package/dist/editor/commands/selection.js.map +1 -1
  65. package/dist/editor/commands/types.d.ts +1 -1
  66. package/dist/editor/commands/types.d.ts.map +1 -1
  67. package/dist/editor/menu-model/canvas.d.ts.map +1 -1
  68. package/dist/editor/menu-model/canvas.js +7 -1
  69. package/dist/editor/menu-model/canvas.js.map +1 -1
  70. package/dist/editor/selection-capabilities/use.d.ts +2 -0
  71. package/dist/editor/selection-capabilities/use.js +5 -0
  72. package/dist/editor/selection-capabilities/use.js.map +1 -1
  73. package/dist/editor/selection-state/use.d.ts +1 -0
  74. package/dist/editor/selection-state/use.js +5 -0
  75. package/dist/editor/selection-state/use.js.map +1 -1
  76. package/dist/editor/tool-cursor/index.d.ts.map +1 -1
  77. package/dist/editor/tool-cursor/index.js +5 -1
  78. package/dist/editor/tool-cursor/index.js.map +1 -1
  79. package/dist/i18n/index.d.ts +5 -2
  80. package/dist/i18n/index.js +5 -2
  81. package/dist/i18n/locales/de/ai.json.js +53 -2
  82. package/dist/i18n/locales/de/commands.json.js +2 -0
  83. package/dist/i18n/locales/de/design-check.json.js +13 -1
  84. package/dist/i18n/locales/de/design-memory.json.js +82 -0
  85. package/dist/i18n/locales/de/design-memory.json.js.map +1 -0
  86. package/dist/i18n/locales/de/fonts.json.js +10 -0
  87. package/dist/i18n/locales/de/index.js +5 -1
  88. package/dist/i18n/locales/de/index.js.map +1 -1
  89. package/dist/i18n/locales/de/menu.json.js +2 -0
  90. package/dist/i18n/locales/de/panels.json.js +94 -1
  91. package/dist/i18n/locales/de/settings.json.js +1 -0
  92. package/dist/i18n/locales/de/tools.json.js +3 -1
  93. package/dist/i18n/locales/de/variables/panel.json.js +20 -0
  94. package/dist/i18n/locales/de/variations.json.js +23 -0
  95. package/dist/i18n/locales/de/variations.json.js.map +1 -0
  96. package/dist/i18n/locales/es/ai.json.js +52 -1
  97. package/dist/i18n/locales/es/commands.json.js +2 -0
  98. package/dist/i18n/locales/es/design-check.json.js +13 -1
  99. package/dist/i18n/locales/es/design-memory.json.js +82 -0
  100. package/dist/i18n/locales/es/design-memory.json.js.map +1 -0
  101. package/dist/i18n/locales/es/fonts.json.js +10 -0
  102. package/dist/i18n/locales/es/index.js +5 -1
  103. package/dist/i18n/locales/es/index.js.map +1 -1
  104. package/dist/i18n/locales/es/menu.json.js +2 -0
  105. package/dist/i18n/locales/es/panels.json.js +94 -1
  106. package/dist/i18n/locales/es/settings.json.js +1 -0
  107. package/dist/i18n/locales/es/tools.json.js +3 -1
  108. package/dist/i18n/locales/es/variables/panel.json.js +20 -0
  109. package/dist/i18n/locales/es/variations.json.js +23 -0
  110. package/dist/i18n/locales/es/variations.json.js.map +1 -0
  111. package/dist/i18n/locales/fr/ai.json.js +53 -2
  112. package/dist/i18n/locales/fr/commands.json.js +2 -0
  113. package/dist/i18n/locales/fr/design-check.json.js +13 -1
  114. package/dist/i18n/locales/fr/design-memory.json.js +82 -0
  115. package/dist/i18n/locales/fr/design-memory.json.js.map +1 -0
  116. package/dist/i18n/locales/fr/fonts.json.js +10 -0
  117. package/dist/i18n/locales/fr/index.js +5 -1
  118. package/dist/i18n/locales/fr/index.js.map +1 -1
  119. package/dist/i18n/locales/fr/menu.json.js +2 -0
  120. package/dist/i18n/locales/fr/panels.json.js +94 -1
  121. package/dist/i18n/locales/fr/settings.json.js +1 -0
  122. package/dist/i18n/locales/fr/tools.json.js +3 -1
  123. package/dist/i18n/locales/fr/variables/panel.json.js +20 -0
  124. package/dist/i18n/locales/fr/variations.json.js +23 -0
  125. package/dist/i18n/locales/fr/variations.json.js.map +1 -0
  126. package/dist/i18n/locales/it/ai.json.js +53 -2
  127. package/dist/i18n/locales/it/commands.json.js +2 -0
  128. package/dist/i18n/locales/it/design-check.json.js +13 -1
  129. package/dist/i18n/locales/it/design-memory.json.js +82 -0
  130. package/dist/i18n/locales/it/design-memory.json.js.map +1 -0
  131. package/dist/i18n/locales/it/fonts.json.js +10 -0
  132. package/dist/i18n/locales/it/index.js +5 -1
  133. package/dist/i18n/locales/it/index.js.map +1 -1
  134. package/dist/i18n/locales/it/menu.json.js +2 -0
  135. package/dist/i18n/locales/it/panels.json.js +94 -1
  136. package/dist/i18n/locales/it/settings.json.js +1 -0
  137. package/dist/i18n/locales/it/tools.json.js +3 -1
  138. package/dist/i18n/locales/it/variables/panel.json.js +20 -0
  139. package/dist/i18n/locales/it/variations.json.js +23 -0
  140. package/dist/i18n/locales/it/variations.json.js.map +1 -0
  141. package/dist/i18n/locales/ja/ai.json.js +53 -2
  142. package/dist/i18n/locales/ja/commands.json.js +2 -0
  143. package/dist/i18n/locales/ja/design-check.json.js +13 -1
  144. package/dist/i18n/locales/ja/design-memory.json.js +61 -0
  145. package/dist/i18n/locales/ja/design-memory.json.js.map +1 -0
  146. package/dist/i18n/locales/ja/fonts.json.js +10 -0
  147. package/dist/i18n/locales/ja/index.js +5 -1
  148. package/dist/i18n/locales/ja/index.js.map +1 -1
  149. package/dist/i18n/locales/ja/menu.json.js +2 -0
  150. package/dist/i18n/locales/ja/panels.json.js +91 -1
  151. package/dist/i18n/locales/ja/settings.json.js +1 -0
  152. package/dist/i18n/locales/ja/tools.json.js +3 -1
  153. package/dist/i18n/locales/ja/variables/panel.json.js +20 -0
  154. package/dist/i18n/locales/ja/variations.json.js +23 -0
  155. package/dist/i18n/locales/ja/variations.json.js.map +1 -0
  156. package/dist/i18n/locales/pl/ai.json.js +53 -2
  157. package/dist/i18n/locales/pl/commands.json.js +2 -0
  158. package/dist/i18n/locales/pl/design-check.json.js +13 -1
  159. package/dist/i18n/locales/pl/design-memory.json.js +89 -0
  160. package/dist/i18n/locales/pl/design-memory.json.js.map +1 -0
  161. package/dist/i18n/locales/pl/fonts.json.js +10 -0
  162. package/dist/i18n/locales/pl/index.js +5 -1
  163. package/dist/i18n/locales/pl/index.js.map +1 -1
  164. package/dist/i18n/locales/pl/menu.json.js +2 -0
  165. package/dist/i18n/locales/pl/panels.json.js +95 -1
  166. package/dist/i18n/locales/pl/settings.json.js +1 -0
  167. package/dist/i18n/locales/pl/tools.json.js +3 -1
  168. package/dist/i18n/locales/pl/variables/panel.json.js +20 -0
  169. package/dist/i18n/locales/pl/variations.json.js +23 -0
  170. package/dist/i18n/locales/pl/variations.json.js.map +1 -0
  171. package/dist/i18n/locales/ru/ai.json.js +53 -2
  172. package/dist/i18n/locales/ru/commands.json.js +3 -1
  173. package/dist/i18n/locales/ru/design-check.json.js +13 -1
  174. package/dist/i18n/locales/ru/design-memory.json.js +89 -0
  175. package/dist/i18n/locales/ru/design-memory.json.js.map +1 -0
  176. package/dist/i18n/locales/ru/fonts.json.js +10 -0
  177. package/dist/i18n/locales/ru/index.js +5 -1
  178. package/dist/i18n/locales/ru/index.js.map +1 -1
  179. package/dist/i18n/locales/ru/menu.json.js +2 -0
  180. package/dist/i18n/locales/ru/panels.json.js +95 -1
  181. package/dist/i18n/locales/ru/settings.json.js +1 -0
  182. package/dist/i18n/locales/ru/tools.json.js +3 -1
  183. package/dist/i18n/locales/ru/variables/panel.json.js +20 -0
  184. package/dist/i18n/locales/ru/variations.json.js +23 -0
  185. package/dist/i18n/locales/ru/variations.json.js.map +1 -0
  186. package/dist/i18n/locales/zh-cn/ai.json.js +53 -2
  187. package/dist/i18n/locales/zh-cn/commands.json.js +2 -0
  188. package/dist/i18n/locales/zh-cn/design-check.json.js +13 -1
  189. package/dist/i18n/locales/zh-cn/design-memory.json.js +61 -0
  190. package/dist/i18n/locales/zh-cn/design-memory.json.js.map +1 -0
  191. package/dist/i18n/locales/zh-cn/fonts.json.js +10 -0
  192. package/dist/i18n/locales/zh-cn/index.js +5 -1
  193. package/dist/i18n/locales/zh-cn/index.js.map +1 -1
  194. package/dist/i18n/locales/zh-cn/menu.json.js +2 -0
  195. package/dist/i18n/locales/zh-cn/panels.json.js +91 -1
  196. package/dist/i18n/locales/zh-cn/settings.json.js +1 -0
  197. package/dist/i18n/locales/zh-cn/tools.json.js +3 -1
  198. package/dist/i18n/locales/zh-cn/variables/panel.json.js +20 -0
  199. package/dist/i18n/locales/zh-cn/variations.json.js +23 -0
  200. package/dist/i18n/locales/zh-cn/variations.json.js.map +1 -0
  201. package/dist/i18n/messages/ai.d.ts +65 -2
  202. package/dist/i18n/messages/ai.d.ts.map +1 -1
  203. package/dist/i18n/messages/ai.js +53 -2
  204. package/dist/i18n/messages/ai.js.map +1 -1
  205. package/dist/i18n/messages/chat-usage.d.ts +34 -0
  206. package/dist/i18n/messages/chat-usage.d.ts.map +1 -0
  207. package/dist/i18n/messages/chat-usage.js +25 -0
  208. package/dist/i18n/messages/chat-usage.js.map +1 -0
  209. package/dist/i18n/messages/commands.d.ts +2 -0
  210. package/dist/i18n/messages/commands.d.ts.map +1 -1
  211. package/dist/i18n/messages/commands.js +2 -0
  212. package/dist/i18n/messages/commands.js.map +1 -1
  213. package/dist/i18n/messages/design-check.d.ts +12 -0
  214. package/dist/i18n/messages/design-check.d.ts.map +1 -1
  215. package/dist/i18n/messages/design-check.js +13 -1
  216. package/dist/i18n/messages/design-check.js.map +1 -1
  217. package/dist/i18n/messages/design-memory.d.ts +68 -0
  218. package/dist/i18n/messages/design-memory.d.ts.map +1 -0
  219. package/dist/i18n/messages/design-memory.js +85 -0
  220. package/dist/i18n/messages/design-memory.js.map +1 -0
  221. package/dist/i18n/messages/fonts.d.ts +12 -0
  222. package/dist/i18n/messages/fonts.d.ts.map +1 -1
  223. package/dist/i18n/messages/fonts.js +10 -0
  224. package/dist/i18n/messages/fonts.js.map +1 -1
  225. package/dist/i18n/messages/menu.d.ts +2 -0
  226. package/dist/i18n/messages/menu.d.ts.map +1 -1
  227. package/dist/i18n/messages/menu.js +2 -0
  228. package/dist/i18n/messages/menu.js.map +1 -1
  229. package/dist/i18n/messages/panels.d.ts +114 -0
  230. package/dist/i18n/messages/panels.d.ts.map +1 -1
  231. package/dist/i18n/messages/panels.js +94 -1
  232. package/dist/i18n/messages/panels.js.map +1 -1
  233. package/dist/i18n/messages/settings.d.ts +1 -0
  234. package/dist/i18n/messages/settings.d.ts.map +1 -1
  235. package/dist/i18n/messages/settings.js +1 -0
  236. package/dist/i18n/messages/settings.js.map +1 -1
  237. package/dist/i18n/messages/tools.d.ts +2 -0
  238. package/dist/i18n/messages/tools.d.ts.map +1 -1
  239. package/dist/i18n/messages/tools.js +3 -1
  240. package/dist/i18n/messages/tools.js.map +1 -1
  241. package/dist/i18n/messages/variables/panel.d.ts +24 -0
  242. package/dist/i18n/messages/variables/panel.d.ts.map +1 -1
  243. package/dist/i18n/messages/variables/panel.js +20 -0
  244. package/dist/i18n/messages/variables/panel.js.map +1 -1
  245. package/dist/i18n/messages/variations.d.ts +28 -0
  246. package/dist/i18n/messages/variations.d.ts.map +1 -0
  247. package/dist/i18n/messages/variations.js +26 -0
  248. package/dist/i18n/messages/variations.js.map +1 -0
  249. package/dist/i18n/messages.d.ts +356 -3
  250. package/dist/i18n/messages.d.ts.map +1 -1
  251. package/dist/i18n/messages.js +8 -2
  252. package/dist/i18n/messages.js.map +1 -1
  253. package/dist/i18n/useI18n.d.ts +1193 -9
  254. package/dist/i18n/useI18n.d.ts.map +1 -1
  255. package/dist/i18n/useI18n.js +8 -1
  256. package/dist/i18n/useI18n.js.map +1 -1
  257. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.d.ts +5 -2
  258. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.d.ts.map +1 -1
  259. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.js +12 -3
  260. package/dist/primitives/ColorPicker/ColorPickerRoot.vue.js.map +1 -1
  261. package/dist/primitives/ColorPicker/index.d.ts +2 -1
  262. package/dist/primitives/ColorPicker/index.js +2 -1
  263. package/dist/primitives/ColorPicker/outside.d.ts +16 -0
  264. package/dist/primitives/ColorPicker/outside.d.ts.map +1 -0
  265. package/dist/primitives/ColorPicker/outside.js +20 -0
  266. package/dist/primitives/ColorPicker/outside.js.map +1 -0
  267. package/dist/primitives/FontPicker/FontPickerRoot.vue.d.ts +5 -0
  268. package/dist/primitives/FontPicker/FontPickerRoot.vue.d.ts.map +1 -1
  269. package/dist/primitives/FontPicker/FontPickerRoot.vue.js +63 -56
  270. package/dist/primitives/FontPicker/FontPickerRoot.vue.js.map +1 -1
  271. package/dist/primitives/LayerTree/LayerTreeRoot.vue.d.ts +1 -1
  272. package/dist/primitives/TypographyControls/TypographyControlsRoot.vue.d.ts +3 -0
  273. package/dist/primitives/TypographyControls/TypographyControlsRoot.vue.d.ts.map +1 -1
  274. package/dist/primitives/TypographyControls/TypographyControlsRoot.vue.js +3 -1
  275. package/dist/primitives/TypographyControls/TypographyControlsRoot.vue.js.map +1 -1
  276. package/dist/shared/assets/cursors/eyedropper.svg.js +6 -0
  277. package/dist/shared/assets/cursors/eyedropper.svg.js.map +1 -0
  278. package/dist/shared/frame.d.ts +28 -0
  279. package/dist/shared/frame.d.ts.map +1 -0
  280. package/dist/shared/frame.js +92 -0
  281. package/dist/shared/frame.js.map +1 -0
  282. package/dist/shared/input/auto-layout/drag.js +71 -0
  283. package/dist/shared/input/auto-layout/drag.js.map +1 -0
  284. package/dist/shared/input/{auto-layout-hover.d.ts → auto-layout/hover.d.ts} +3 -3
  285. package/dist/shared/input/auto-layout/hover.d.ts.map +1 -0
  286. package/dist/shared/input/{auto-layout-hover.js → auto-layout/hover.js} +42 -86
  287. package/dist/shared/input/auto-layout/hover.js.map +1 -0
  288. package/dist/shared/input/{auto-layout.js → auto-layout/index.js} +2 -2
  289. package/dist/shared/input/auto-layout/index.js.map +1 -0
  290. package/dist/shared/input/index.d.ts +1 -1
  291. package/dist/shared/input/index.js +1 -1
  292. package/dist/shared/input/move/drag.js +1 -1
  293. package/dist/shared/input/resize.js +1 -1
  294. package/dist/shared/input/select.js +5 -3
  295. package/dist/shared/input/select.js.map +1 -1
  296. package/dist/shared/input/types.d.ts +10 -2
  297. package/dist/shared/input/types.d.ts.map +1 -1
  298. package/dist/shared/input/types.js.map +1 -1
  299. package/package.json +19 -4
  300. package/dist/shared/input/auto-layout-hover.d.ts.map +0 -1
  301. package/dist/shared/input/auto-layout-hover.js.map +0 -1
  302. package/dist/shared/input/auto-layout.js.map +0 -1
@@ -49,6 +49,8 @@ var design_check_default = {
49
49
  ruleConsistentRadiusHelp: "圆角半径应取自圆角规范或变量。",
50
50
  ruleNoHardcodedColors: "未绑定变量的颜色",
51
51
  ruleNoHardcodedColorsHelp: "此颜色与某个颜色变量一致。绑定后,主题和色板的更改会同步到此图层。",
52
+ ruleNoUnboundTokenValues: "未绑定变量的令牌值",
53
+ ruleNoUnboundTokenValuesHelp: "这个圆角、间距或字号与某个令牌相同。绑定后,令牌的更改会同步到这个图层。",
52
54
  detailStrokeColor: "描边:{variable}",
53
55
  bindVariable: "绑定到 {variable}",
54
56
  bindAll: "全部绑定({count})",
@@ -81,7 +83,17 @@ var design_check_default = {
81
83
  ruleNoMixedStyles: "混合文字样式",
82
84
  ruleNoMixedStylesHelp: "一个文字图层中的多种样式在编辑时容易被破坏。",
83
85
  ruleNoDetachedInstances: "看起来像组件",
84
- ruleNoDetachedInstancesHelp: "这个画框看起来像可复用元素。请使用组件实例。"
86
+ ruleNoDetachedInstancesHelp: "这个画框看起来像可复用元素。请使用组件实例。",
87
+ ruleDesignMemoryColors: "颜色不在设计记忆中",
88
+ ruleDesignMemoryColorsHelp: "请使用设计记忆允许的颜色,或允许此颜色。",
89
+ ruleDesignMemoryFonts: "字体不在设计记忆中",
90
+ ruleDesignMemoryFontsHelp: "请使用设计记忆允许的字体,或允许此字体。",
91
+ ruleDesignMemoryFontSizes: "字号不在设计记忆中",
92
+ ruleDesignMemoryFontSizesHelp: "请使用设计记忆中的字号,或允许此字号。",
93
+ ruleDesignMemorySpacing: "间距不在设计记忆中",
94
+ ruleDesignMemorySpacingHelp: "请使用设计记忆中的间距,或允许此值。",
95
+ ruleDesignMemoryRadius: "圆角不在设计记忆中",
96
+ ruleDesignMemoryRadiusHelp: "请使用设计记忆中的圆角半径,或允许此值。"
85
97
  };
86
98
  //#endregion
87
99
  export { design_check_default as default };
@@ -0,0 +1,61 @@
1
+ //#region src/i18n/locales/zh-cn/design-memory.json
2
+ var design_memory_default = {
3
+ designMemory: "设计记忆",
4
+ editDesignMemory: "编辑设计记忆…",
5
+ createFromDocument: "从此文档创建",
6
+ emptyHint: "智能体在此文档中必须遵循的颜色、字体和间距。",
7
+ colorCount: { "many": "{count} 种颜色" },
8
+ fontCount: { "many": "{count} 种字体" },
9
+ sizeCount: { "many": "{count} 种字号" },
10
+ decisionCount: { "many": "{count} 条决定" },
11
+ exampleCount: { "many": "{count} 个示例" },
12
+ rules: "规则",
13
+ decisions: "决定",
14
+ examples: "示例",
15
+ colors: "颜色",
16
+ fonts: "字体",
17
+ fontSizes: "字号",
18
+ spacing: "间距",
19
+ radius: "圆角半径",
20
+ fromSystem: "包含变量和样式",
21
+ fromSystemCount: { "many": "来自变量和样式的 {count} 个值" },
22
+ enforcement: "当智能体使用其他值时",
23
+ refuse: "撤销该编辑",
24
+ warn: "警告",
25
+ off: "关闭",
26
+ notChecked: "尚未允许任何值,因此不检查",
27
+ addValue: "添加值",
28
+ pickColor: "选择颜色",
29
+ moreValues: "另外 {count} 个",
30
+ removeValue: "移除 {value}",
31
+ newDecision: "写下智能体应遵循的决定",
32
+ addDecision: "添加决定",
33
+ removeDecision: "移除决定",
34
+ byAgent: "智能体",
35
+ noDecisionsYet: "还没有决定",
36
+ noDecisions: "写下智能体应遵循的选择,例如哪种颜色用于主要操作。",
37
+ editDecision: "编辑决定",
38
+ moveUp: "上移",
39
+ moveDown: "下移",
40
+ noExamplesYet: "还没有示例",
41
+ noExamples: "选择一个展示正确设计的画框,并将其固定为示例。",
42
+ pinExample: "固定为示例",
43
+ unpinExample: "取消固定示例",
44
+ showExample: "显示",
45
+ removeExample: "移除示例",
46
+ missingExample: "已不在文档中",
47
+ learn: "从所选内容学习",
48
+ learnHeading: "所选内容使用的值",
49
+ learnHint: "只使用过一次的值默认不勾选。",
50
+ uses: { "many": "使用 {count} 次" },
51
+ addChecked: "添加已勾选的值",
52
+ nothingToLearn: "所选内容没有使用记忆尚未允许的值。",
53
+ deleteMemory: "删除设计记忆",
54
+ allow: "允许 {value}",
55
+ allowed: "已允许 {value}",
56
+ refused: "已被设计记忆撤销"
57
+ };
58
+ //#endregion
59
+ export { design_memory_default as default };
60
+
61
+ //# sourceMappingURL=design-memory.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-memory.json.js","names":[],"sources":["../../../../src/i18n/locales/zh-cn/design-memory.json"],"sourcesContent":[""],"mappings":""}
@@ -28,6 +28,16 @@ var fonts_default = {
28
28
  expandIssues: "显示字体问题",
29
29
  collapseIssues: "隐藏字体问题",
30
30
  noSubstitute: "没有可用的替代字体",
31
+ replaceFonts: "替换字体",
32
+ replaceFontsDescription: "替换此文档中的字体。缺失的字体已选中;所有文本图层、字符范围和文本样式都会随之改变。",
33
+ missingFont: "缺失",
34
+ usedByOneLayer: "1 个图层",
35
+ usedByLayers: "{count} 个图层",
36
+ replaceWith: "替换为",
37
+ fontStyle: "字体样式",
38
+ replaceSelected: "替换所选字体",
39
+ nothingToReplace: "此文档尚未使用字体。",
40
+ chooseReplacement: "请为至少一行选择另一种字体。",
31
41
  unsupportedFormatShort: "不支持的格式",
32
42
  unsupportedFormat: "已安装,但 Pairdraw 暂时无法绘制这种字体格式",
33
43
  settingsDesktopDescription: "访问系统字体、在线提供商、后备字体包和缓存下载。",
@@ -12,6 +12,7 @@ import comments_default from "./comments.json.js";
12
12
  import common_default from "./common.json.js";
13
13
  import credentials_default from "./credentials.json.js";
14
14
  import design_check_default from "./design-check.json.js";
15
+ import design_memory_default from "./design-memory.json.js";
15
16
  import diagnostics_default from "./diagnostics.json.js";
16
17
  import editor_default$1 from "./editor.json.js";
17
18
  import explore_default from "./explore.json.js";
@@ -35,6 +36,7 @@ import tools_default from "./tools.json.js";
35
36
  import updates_default from "./updates.json.js";
36
37
  import panel_default from "./variables/panel.json.js";
37
38
  import types_default from "./variables/types.json.js";
39
+ import variations_default from "./variations.json.js";
38
40
  //#region src/i18n/locales/zh-cn/index.ts
39
41
  var zh_cn_default = {
40
42
  agents: agents_default,
@@ -51,6 +53,7 @@ var zh_cn_default = {
51
53
  common: common_default,
52
54
  credentials: credentials_default,
53
55
  designCheck: design_check_default,
56
+ designMemory: design_memory_default,
54
57
  diagnostics: diagnostics_default,
55
58
  editor: editor_default$1,
56
59
  explore: explore_default,
@@ -73,7 +76,8 @@ var zh_cn_default = {
73
76
  tools: tools_default,
74
77
  updates: updates_default,
75
78
  variables: panel_default,
76
- variableTypes: types_default
79
+ variableTypes: types_default,
80
+ variations: variations_default
77
81
  };
78
82
  //#endregion
79
83
  export { zh_cn_default as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/i18n/locales/zh-cn/index.ts"],"sourcesContent":["import type { ComponentsJSON } from '@nanostores/i18n'\n\nimport agents from './agents.json'\nimport ai from './ai.json'\nimport automation from './automation.json'\nimport browser from './browser.json'\nimport chatContext from './chat-context.json'\nimport cloud from './cloud/editor.json'\nimport cloudPortal from './cloud/portal.json'\nimport code from './code.json'\nimport collaboration from './collaboration.json'\nimport commands from './commands.json'\nimport comments from './comments.json'\nimport common from './common.json'\nimport credentials from './credentials.json'\nimport designCheck from './design-check.json'\nimport diagnostics from './diagnostics.json'\nimport editor from './editor.json'\nimport explore from './explore.json'\nimport figjam from './figjam.json'\nimport files from './files.json'\nimport fonts from './fonts.json'\nimport media from './media.json'\nimport menu from './menu.json'\nimport pages from './pages.json'\nimport panels from './panels.json'\nimport recovery from './recovery.json'\nimport rename from './rename.json'\nimport rendering from './rendering.json'\nimport settings from './settings.json'\nimport shaders from './shaders.json'\nimport shapes from './shapes.json'\nimport slides from './slides.json'\nimport statuses from './statuses.json'\nimport storage from './storage.json'\nimport tools from './tools.json'\nimport updates from './updates.json'\nimport variables from './variables/panel.json'\nimport variableTypes from './variables/types.json'\n\nexport default {\n agents,\n ai,\n automation,\n browser,\n chatContext,\n cloud,\n cloudPortal,\n code,\n collaboration,\n commands,\n comments,\n common,\n credentials,\n designCheck,\n diagnostics,\n editor,\n explore,\n figjam,\n files,\n fonts,\n media,\n menu,\n pages,\n panels,\n recovery,\n rendering,\n rename,\n settings,\n shaders,\n shapes,\n slides,\n statuses,\n storage,\n tools,\n updates,\n variables,\n variableTypes\n} satisfies ComponentsJSON\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,IAAA,gBAAe;CACb,QAAA;CACA,IAAA;CACA,YAAA;CACA,SAAA;CACA,aAAA;CACA,OAAA;CACA,aAAA;CACA,MAAA;CACA,eAAA;CACA,UAAA;CACA,UAAA;CACA,QAAA;CACA,aAAA;CACA,aAAA;CACA,aAAA;CACA,QAAA;CACA,SAAA;CACA,QAAA;CACA,OAAA;CACA,OAAA;CACA,OAAA;CACA,MAAA;CACA,OAAA;CACA,QAAA;CACA,UAAA;CACA,WAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;CACA,QAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;CACA,OAAA;CACA,SAAA;CACA,WAAA;CACA,eAAA;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/i18n/locales/zh-cn/index.ts"],"sourcesContent":["import type { ComponentsJSON } from '@nanostores/i18n'\n\nimport agents from './agents.json'\nimport ai from './ai.json'\nimport automation from './automation.json'\nimport browser from './browser.json'\nimport chatContext from './chat-context.json'\nimport cloud from './cloud/editor.json'\nimport cloudPortal from './cloud/portal.json'\nimport code from './code.json'\nimport collaboration from './collaboration.json'\nimport commands from './commands.json'\nimport comments from './comments.json'\nimport common from './common.json'\nimport credentials from './credentials.json'\nimport designCheck from './design-check.json'\nimport designMemory from './design-memory.json'\nimport diagnostics from './diagnostics.json'\nimport editor from './editor.json'\nimport explore from './explore.json'\nimport figjam from './figjam.json'\nimport files from './files.json'\nimport fonts from './fonts.json'\nimport media from './media.json'\nimport menu from './menu.json'\nimport pages from './pages.json'\nimport panels from './panels.json'\nimport recovery from './recovery.json'\nimport rename from './rename.json'\nimport rendering from './rendering.json'\nimport settings from './settings.json'\nimport shaders from './shaders.json'\nimport shapes from './shapes.json'\nimport slides from './slides.json'\nimport statuses from './statuses.json'\nimport storage from './storage.json'\nimport tools from './tools.json'\nimport updates from './updates.json'\nimport variables from './variables/panel.json'\nimport variableTypes from './variables/types.json'\nimport variations from './variations.json'\n\nexport default {\n agents,\n ai,\n automation,\n browser,\n chatContext,\n cloud,\n cloudPortal,\n code,\n collaboration,\n commands,\n comments,\n common,\n credentials,\n designCheck,\n designMemory,\n diagnostics,\n editor,\n explore,\n figjam,\n files,\n fonts,\n media,\n menu,\n pages,\n panels,\n recovery,\n rendering,\n rename,\n settings,\n shaders,\n shapes,\n slides,\n statuses,\n storage,\n tools,\n updates,\n variables,\n variableTypes,\n variations\n} satisfies ComponentsJSON\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAA,gBAAe;CACb,QAAA;CACA,IAAA;CACA,YAAA;CACA,SAAA;CACA,aAAA;CACA,OAAA;CACA,aAAA;CACA,MAAA;CACA,eAAA;CACA,UAAA;CACA,UAAA;CACA,QAAA;CACA,aAAA;CACA,aAAA;CACA,cAAA;CACA,aAAA;CACA,QAAA;CACA,SAAA;CACA,QAAA;CACA,OAAA;CACA,OAAA;CACA,OAAA;CACA,MAAA;CACA,OAAA;CACA,QAAA;CACA,UAAA;CACA,WAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;CACA,QAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;CACA,OAAA;CACA,SAAA;CACA,WAAA;CACA,eAAA;CACA,YAAA;AACF"}
@@ -51,6 +51,7 @@ var menu_default = {
51
51
  copyAsJSX: "复制为 JSX",
52
52
  copyAsHTML: "复制为 HTML",
53
53
  runStickyAsPrompt: "将便利贴作为提示运行",
54
+ exploreVariations: "方案…",
54
55
  copyNodeId: "复制节点 ID",
55
56
  copyXPath: "复制 XPath",
56
57
  convertToVector: "转换为矢量",
@@ -82,6 +83,7 @@ var menu_default = {
82
83
  insertScript: "插入脚本…",
83
84
  placeImage: "置入图片…",
84
85
  exportFramesToPDF: "将画框导出为 PDF…",
86
+ exportPrototypeVideo: "将原型导出为视频…",
85
87
  imageFiles: "图片",
86
88
  splitRight: "向右拆分",
87
89
  splitDown: "向下拆分",
@@ -8,6 +8,7 @@ var panels_default = {
8
8
  assets: "资源",
9
9
  page: "页面",
10
10
  selectionColors: "所选颜色",
11
+ documentColors: "文档颜色",
11
12
  frame: "画框",
12
13
  group: "编组",
13
14
  layerType: "图层类型",
@@ -58,10 +59,34 @@ var panels_default = {
58
59
  paragraphIndent: "段落缩进",
59
60
  hangingLists: "悬挂列表",
60
61
  openTypeFeatures: "字体功能",
62
+ moreFontFeatures: "更多字体功能",
61
63
  standardLigatures: "标准连字",
62
64
  contextualAlternates: "上下文替代字形",
63
65
  opticalSizeMode: "光学尺寸模式",
64
66
  kerning: "字距调整",
67
+ discretionaryLigatures: "自由连字",
68
+ historicalLigatures: "历史连字",
69
+ ordinals: "序数词",
70
+ slashedZero: "带斜线零",
71
+ liningFigures: "齐线数字",
72
+ oldstyleFigures: "旧式数字",
73
+ proportionalFigures: "比例数字",
74
+ tabularFigures: "等宽数字",
75
+ fractions: "分数",
76
+ stackedFractions: "堆叠分数",
77
+ smallCaps: "小型大写字母",
78
+ petiteCaps: "微型大写字母",
79
+ allSmallCaps: "全部小型大写字母",
80
+ allPetiteCaps: "全部微型大写字母",
81
+ unicase: "单案例",
82
+ titling: "标题字形",
83
+ caseSensitiveForms: "大小写敏感字形",
84
+ scientificInferiors: "科学下标",
85
+ subscript: "下标",
86
+ superscript: "上标",
87
+ stylisticSet: "风格集 {number}",
88
+ characterVariant: "字符变体 {number}",
89
+ fontFeatureTag: "功能 {tag}",
65
90
  textFormatting: "文本格式",
66
91
  pageBackground: "页面背景",
67
92
  variables: "变量",
@@ -440,6 +465,18 @@ var panels_default = {
440
465
  starRatio: "比例",
441
466
  spread: "扩展",
442
467
  foregroundBlur: "前景模糊",
468
+ noise: "噪点",
469
+ texture: "纹理",
470
+ noiseType: "噪点类型",
471
+ noiseMono: "单色",
472
+ noiseDuo: "双色",
473
+ noiseMulti: "多色",
474
+ noiseSize: "噪点大小",
475
+ grainSize: "大小",
476
+ density: "密度",
477
+ noiseColors: "颜色",
478
+ noiseSecondColor: "第二种颜色",
479
+ clipToShape: "裁剪到形状",
443
480
  strokeType: "描边类型",
444
481
  strokeWeight: "描边粗细",
445
482
  exportScale: "导出缩放",
@@ -712,20 +749,73 @@ var panels_default = {
712
749
  prototypeRemoveInteraction: "移除交互",
713
750
  prototypeTrigger: "触发",
714
751
  prototypeTriggerOnClick: "点击时",
752
+ prototypeTriggerWhileHovering: "悬停时",
753
+ prototypeTriggerWhilePressing: "按住时",
754
+ prototypeTriggerMouseEnter: "鼠标移入",
755
+ prototypeTriggerMouseLeave: "鼠标移出",
715
756
  prototypeTriggerAfterDelay: "延迟后",
716
757
  prototypeDelay: "延迟",
717
758
  prototypeAction: "动作",
718
759
  prototypeActionNavigate: "跳转到",
719
760
  prototypeActionOverlay: "打开叠加层",
761
+ prototypeActionChangeTo: "更改为",
762
+ prototypeActionScrollTo: "滚动到",
720
763
  prototypeActionBack: "返回",
721
764
  prototypeActionClose: "关闭叠加层",
722
765
  prototypeDestination: "目标",
723
766
  prototypeDestinationPlaceholder: "选择画框",
767
+ prototypeVariantPlaceholder: "选择变体",
768
+ prototypeLayerPlaceholder: "选择图层",
769
+ prototypeInheritedInteractions: { "many": "来自主组件的 {count} 个交互" },
724
770
  prototypeAnimation: "动画",
725
771
  prototypeAnimationInstant: "即时",
726
772
  prototypeAnimationDissolve: "溶解",
773
+ prototypeAnimationSmartAnimate: "智能动画",
774
+ prototypeEasing: "缓动",
775
+ prototypeEasingEaseOut: "缓出",
776
+ prototypeEasingEaseIn: "缓入",
777
+ prototypeEasingEaseInAndOut: "缓入缓出",
778
+ prototypeEasingLinear: "线性",
727
779
  prototypeDuration: "时长",
728
- prototypeNoFrames: "在此页面添加画框即可链接。"
780
+ prototypeNoFrames: "在此页面添加画框即可链接。",
781
+ prototypeExportVideo: "导出为视频",
782
+ prototypeVideoHeading: "将原型导出为视频",
783
+ prototypeVideoDescription: "从一个画框开始播放原型,按每个“延迟后”及其过渡录制播放画面。",
784
+ prototypeVideoStart: "起始画框",
785
+ prototypeVideoFormat: "格式",
786
+ prototypeVideoSize: "尺寸",
787
+ prototypeVideoSizeOriginal: "原始尺寸",
788
+ prototypeVideoSizeDouble: "两倍尺寸",
789
+ prototypeVideoSizeLongEdge: "长边 {pixels} px",
790
+ prototypeVideoFrameRate: "帧率",
791
+ prototypeVideoFps: "{fps} fps",
792
+ prototypeVideoMaxLength: "最长时长",
793
+ prototypeVideoSummary: "时长 {seconds} 秒,尺寸 {width}×{height}。",
794
+ prototypeVideoLoops: "播放会回到起始画框,因此视频会循环。",
795
+ prototypeVideoTruncated: "流程还会继续,因此视频在最长时长处结束。",
796
+ prototypeVideoNothingToRecord: "没有可录制的内容",
797
+ prototypeVideoFailed: "无法导出视频",
798
+ prototypeVideoNothingToFollow: "“{frame}”没有可跟随的“延迟后”交互。请在原型面板中添加,或从其他画框开始。",
799
+ prototypeVideoFormatsHere: "此浏览器可以录制 {formats}。",
800
+ prototypeVideoExport: "导出",
801
+ prototypeVideoRecording: "正在录制第 {done} 帧,共 {total} 帧",
802
+ imageExposure: "曝光",
803
+ imageContrast: "对比度",
804
+ imageSaturation: "饱和度",
805
+ imageTemperature: "色温",
806
+ imageTint: "色调",
807
+ imageHighlights: "高光",
808
+ imageShadows: "阴影",
809
+ prototypeOverflow: "溢出滚动",
810
+ prototypeOverflowNone: "不滚动",
811
+ prototypeOverflowVertical: "垂直",
812
+ prototypeOverflowHorizontal: "水平",
813
+ prototypeOverflowBoth: "双向",
814
+ prototypeOverflowNeedsClip: "开启“裁剪内容”后,此画框才能在播放时滚动。",
815
+ prototypeScrollBehavior: "滚动时位置",
816
+ prototypeScrollBehaviorScrolls: "随父级滚动",
817
+ prototypeScrollBehaviorFixed: "固定",
818
+ prototypeScrollBehaviorSticky: "粘性"
729
819
  };
730
820
  //#endregion
731
821
  export { panels_default as default };
@@ -40,6 +40,7 @@ var settings_default = {
40
40
  capabilityShow: "显示",
41
41
  capabilityShowAll: "全部",
42
42
  skills: "技能",
43
+ prompts: "提示词",
43
44
  storage: "存储",
44
45
  cloud: "云",
45
46
  animations: "动画",
@@ -17,7 +17,9 @@ var tools_default = {
17
17
  hand: "抓手",
18
18
  comment: "评论",
19
19
  zoom: "缩放",
20
- scale: "等比缩放"
20
+ scale: "等比缩放",
21
+ eyedropper: "吸管",
22
+ eyedropperSample: "从画布拾取颜色"
21
23
  };
22
24
  //#endregion
23
25
  export { tools_default as default };
@@ -140,6 +140,26 @@ var panel_default = {
140
140
  cssPushed: "已将变量写入 {file}:更改 {updated} 个,新增 {added} 个。",
141
141
  cssPushedCopy: "已将变量保存到 {file} 的副本:更改 {updated} 个,新增 {added} 个。",
142
142
  cssPushNothing: "{file} 已与变量一致。",
143
+ syncInSync: "已同步",
144
+ syncToReview: "待查看: {count}",
145
+ syncReview: "查看更改",
146
+ syncReviewTitle: "查看来自 {file} 的更改",
147
+ syncReviewDescription: "只在文件中更改的值会在应用时同步。其余的请选择保留哪个值。",
148
+ syncChangedInCode: "在代码中更改",
149
+ syncChangedOnCanvas: "在画布上更改",
150
+ syncChangedInBoth: "两处都已更改",
151
+ syncNewInCode: "代码中新增",
152
+ syncNoLongerInCode: "已不在代码中",
153
+ syncDeletedOnCanvas: "已在画布上删除",
154
+ syncNoLongerInCodeHint: "这些变量会保留。如果不再需要,可以删除它们。",
155
+ syncCodeValue: "代码中",
156
+ syncCanvasValue: "画布上",
157
+ syncKeepCode: "代码",
158
+ syncKeepCanvas: "画布",
159
+ syncSkip: "跳过",
160
+ syncAllCode: "全部使用代码",
161
+ syncAllCanvas: "全部保留画布",
162
+ syncApply: "应用",
143
163
  formula: "公式",
144
164
  useFormula: "使用公式",
145
165
  formulaPlaceholder: "值或公式",
@@ -0,0 +1,23 @@
1
+ //#region src/i18n/locales/zh-cn/variations.json
2
+ var variations_default = {
3
+ variations: "方案",
4
+ variationsCount: "方案 · {count}",
5
+ variationsOf: "{name} 的方案",
6
+ previousVersion: "上一个版本",
7
+ nextVersion: "下一个版本",
8
+ useThis: "使用此版本",
9
+ useThisHint: "用此版本替换 {name}",
10
+ selectVersion: "选择一个版本以使用它",
11
+ goToOriginal: "转到原图层",
12
+ discardAll: "全部舍弃",
13
+ originalChanged: "创建这些方案后,原图层已更改。",
14
+ originalMissing: "原图层已不存在,因此没有版本可以替换它。",
15
+ originalInInstance: "原图层位于实例中,因此没有版本可以替换它。",
16
+ originalLocked: "原图层已锁定。请解锁后再使用版本。",
17
+ originalNotEditable: "原图层属于某个库,因此无法在此处用任何版本替换它。",
18
+ versionTypeDiffers: "此版本与原图层的图层类型不同,因此无法替换它。"
19
+ };
20
+ //#endregion
21
+ export { variations_default as default };
22
+
23
+ //# sourceMappingURL=variations.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variations.json.js","names":[],"sources":["../../../../src/i18n/locales/zh-cn/variations.json"],"sourcesContent":[""],"mappings":""}
@@ -316,6 +316,8 @@ declare const aiMessages: import("@nanostores/i18n").Messages<{
316
316
  readonly canvasPromptHint: "Show a prompt at the bottom of the canvas while the chat is closed. What you write there goes to the chat.";
317
317
  readonly animateEdits: "Animate AI edits";
318
318
  readonly animateEditsHint: "Layers the AI adds trace in one after another, and the frames it works in shimmer until it finishes. Follows the Animations setting.";
319
+ readonly showTokenUsage: "Show token usage and cost";
320
+ readonly showTokenUsageHint: "Show the tokens each reply spent and the conversation’s running total, with an estimated cost when the model’s price is known.";
319
321
  /** The notice once an agent's run of edits ends; its action shows the layers it touched. */
320
322
  readonly editSummary: import("@nanostores/i18n").TranslationFunction<[{
321
323
  added: string | number;
@@ -392,8 +394,8 @@ declare const aiMessages: import("@nanostores/i18n").Messages<{
392
394
  readonly modelRoleFast: "Fast tasks";
393
395
  readonly modelRoleVision: "Vision";
394
396
  readonly modelRoleDesignDescription: "AI chat and canvas edits";
395
- readonly modelRoleReviewDescription: "Explicit plan and design reviews";
396
- readonly modelRoleFastDescription: "Low-cost background work";
397
+ readonly modelRoleReviewDescription: "Design reviews you ask for";
398
+ readonly modelRoleFastDescription: "Chat titles and compaction summaries";
397
399
  readonly modelRoleVisionDescription: "Screenshots and image references";
398
400
  readonly modelRoleUseDesign: "Same as Design";
399
401
  readonly noModel: "None";
@@ -425,6 +427,67 @@ declare const aiMessages: import("@nanostores/i18n").Messages<{
425
427
  readonly chatRequestFailed: "The model request failed. Check the provider settings and try again.";
426
428
  readonly chatProviderStalled: "The provider stopped responding. Check your connection and try again.";
427
429
  readonly chatEmptyReply: "The model returned no reply. Try again.";
430
+ readonly chatContextLimit: "The conversation is longer than the model can read.";
431
+ readonly compactCommand: "Summarize the conversation so far; text after it says what to keep";
432
+ readonly compactAutomatically: "Compact automatically";
433
+ readonly compactAutomaticallyHint: "Summarizes older messages when the context window fills up.";
434
+ readonly compacting: "Compacting the conversation…";
435
+ readonly compactionFailed: "The conversation could not be compacted. Nothing was changed.";
436
+ readonly compactAndRetry: "Compact and retry";
437
+ readonly conversationCompacted: "Conversation compacted";
438
+ readonly compactionKeepsMessages: "The model now gets this summary instead of the messages above; you still see them.";
439
+ readonly agentCompactionKeepsMessages: "The agent now works from its own summary of the messages above; you still see them.";
440
+ readonly compactionTokens: import("@nanostores/i18n").TranslationFunction<[{
441
+ before: string | number;
442
+ } & {
443
+ after: string | number;
444
+ } & object], string>;
445
+ readonly reviewCommand: "Review the selection or page with the Review model; text after it says what to focus on";
446
+ readonly reviewing: "Reviewing the design…";
447
+ readonly designReview: "Design review";
448
+ readonly changeReview: "Change review";
449
+ readonly reviewChange: "Review this change";
450
+ readonly reviewFix: "Fix these";
451
+ readonly reviewFixRequest: import("@nanostores/i18n").TranslationFunction<[{
452
+ findings: string | number;
453
+ } & object], string>;
454
+ readonly reviewFailed: "The design could not be reviewed.";
455
+ readonly reviewNoModel: "Assign a model to Review or Design in Settings to review designs.";
456
+ readonly reviewImagesUnreadable: "The Review model cannot read images, so it cannot compare the design with an attached image.";
457
+ readonly reviewEmpty: "There is nothing on this page to review.";
458
+ readonly reviewUnsupported: "This model cannot review designs. Assign an API model to Review in Settings.";
459
+ readonly promptDesignDescription: "Your own instructions for the chat, after Pairdraw’s or in their place. The design JSX reference always follows.";
460
+ readonly promptDesignMode: "Your instructions";
461
+ readonly promptDesignPlaceholder: "For example: Use our 8px spacing scale and the brand colors from the Tokens page.";
462
+ readonly promptDesignAdd: "Add to Pairdraw’s";
463
+ readonly promptDesignReplace: "Replace Pairdraw’s";
464
+ readonly promptDesignStart: "Start from Pairdraw’s";
465
+ readonly promptDesignReplaced: "Pairdraw’s instructions are off";
466
+ readonly promptDesignReplaceWarning: "Without them the model may use its tools poorly. Reset brings them back.";
467
+ readonly promptReviewDescription: "What the Review model is told for /review and Review this change.";
468
+ readonly promptTitle: "Chat titles";
469
+ readonly promptTitleDescription: "What the Fast tasks model is asked to name a conversation.";
470
+ readonly promptSummary: "Compaction summaries";
471
+ readonly promptSummaryDescription: "What the model is told when it summarizes a conversation to compact it.";
472
+ readonly promptVariablesAndPreview: "Variables and preview";
473
+ readonly promptVariableLanguage: "The language to write in when the request names none";
474
+ readonly promptVariableFocus: "What the person asked the review to look at, or empty";
475
+ readonly promptVariableSeesImages: "Whether the model is shown images of the design";
476
+ readonly promptVariableReferences: "How many reference images follow the design";
477
+ readonly promptVariableEdit: "Whether this reviews the agent’s own last change, not a whole design";
478
+ readonly promptVariableRequest: "The conversation’s first request";
479
+ readonly promptVariableReply: "The beginning of the first reply";
480
+ readonly promptPreview: "Preview with sample values";
481
+ readonly promptUnknownVariable: import("@nanostores/i18n").TranslationFunction<[{
482
+ name: string | number;
483
+ } & object], string>;
484
+ readonly promptErrors: "This prompt has errors";
485
+ readonly promptErrorsHint: "Pairdraw’s is used until they are fixed.";
486
+ readonly promptErrorAt: import("@nanostores/i18n").TranslationFunction<[{
487
+ line: string | number;
488
+ } & {
489
+ message: string | number;
490
+ } & object], string>;
428
491
  readonly chatAgentStartTimeout: "The coding agent did not start in time. Check that it runs on this computer and try again.";
429
492
  readonly openProviderSettingsAction: "Open settings";
430
493
  readonly cloudWorkspace: "Workspace";
@@ -1 +1 @@
1
- {"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/i18n/messages/ai.ts"],"mappings":";cAmoBa,uCAAU"}
1
+ {"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/i18n/messages/ai.ts"],"mappings":";cA+rBa,uCAAU"}
@@ -208,6 +208,8 @@ const aiMessageDefaults = {
208
208
  canvasPromptHint: "Show a prompt at the bottom of the canvas while the chat is closed. What you write there goes to the chat.",
209
209
  animateEdits: "Animate AI edits",
210
210
  animateEditsHint: "Layers the AI adds trace in one after another, and the frames it works in shimmer until it finishes. Follows the Animations setting.",
211
+ showTokenUsage: "Show token usage and cost",
212
+ showTokenUsageHint: "Show the tokens each reply spent and the conversation’s running total, with an estimated cost when the model’s price is known.",
211
213
  /** The notice once an agent's run of edits ends; its action shows the layers it touched. */
212
214
  editSummary: params("AI edits done · new layers: {added} · changed: {changed}"),
213
215
  editSummaryAdded: params("AI edits done · new layers: {added}"),
@@ -272,8 +274,8 @@ const aiMessageDefaults = {
272
274
  modelRoleFast: "Fast tasks",
273
275
  modelRoleVision: "Vision",
274
276
  modelRoleDesignDescription: "AI chat and canvas edits",
275
- modelRoleReviewDescription: "Explicit plan and design reviews",
276
- modelRoleFastDescription: "Low-cost background work",
277
+ modelRoleReviewDescription: "Design reviews you ask for",
278
+ modelRoleFastDescription: "Chat titles and compaction summaries",
277
279
  modelRoleVisionDescription: "Screenshots and image references",
278
280
  modelRoleUseDesign: "Same as Design",
279
281
  noModel: "None",
@@ -305,6 +307,55 @@ const aiMessageDefaults = {
305
307
  chatRequestFailed: "The model request failed. Check the provider settings and try again.",
306
308
  chatProviderStalled: "The provider stopped responding. Check your connection and try again.",
307
309
  chatEmptyReply: "The model returned no reply. Try again.",
310
+ chatContextLimit: "The conversation is longer than the model can read.",
311
+ compactCommand: "Summarize the conversation so far; text after it says what to keep",
312
+ compactAutomatically: "Compact automatically",
313
+ compactAutomaticallyHint: "Summarizes older messages when the context window fills up.",
314
+ compacting: "Compacting the conversation…",
315
+ compactionFailed: "The conversation could not be compacted. Nothing was changed.",
316
+ compactAndRetry: "Compact and retry",
317
+ conversationCompacted: "Conversation compacted",
318
+ compactionKeepsMessages: "The model now gets this summary instead of the messages above; you still see them.",
319
+ agentCompactionKeepsMessages: "The agent now works from its own summary of the messages above; you still see them.",
320
+ compactionTokens: params("{before} → {after} tokens"),
321
+ reviewCommand: "Review the selection or page with the Review model; text after it says what to focus on",
322
+ reviewing: "Reviewing the design…",
323
+ designReview: "Design review",
324
+ changeReview: "Change review",
325
+ reviewChange: "Review this change",
326
+ reviewFix: "Fix these",
327
+ reviewFixRequest: params("Fix the issues this design review found:\n\n{findings}"),
328
+ reviewFailed: "The design could not be reviewed.",
329
+ reviewNoModel: "Assign a model to Review or Design in Settings to review designs.",
330
+ reviewImagesUnreadable: "The Review model cannot read images, so it cannot compare the design with an attached image.",
331
+ reviewEmpty: "There is nothing on this page to review.",
332
+ reviewUnsupported: "This model cannot review designs. Assign an API model to Review in Settings.",
333
+ promptDesignDescription: "Your own instructions for the chat, after Pairdraw’s or in their place. The design JSX reference always follows.",
334
+ promptDesignMode: "Your instructions",
335
+ promptDesignPlaceholder: "For example: Use our 8px spacing scale and the brand colors from the Tokens page.",
336
+ promptDesignAdd: "Add to Pairdraw’s",
337
+ promptDesignReplace: "Replace Pairdraw’s",
338
+ promptDesignStart: "Start from Pairdraw’s",
339
+ promptDesignReplaced: "Pairdraw’s instructions are off",
340
+ promptDesignReplaceWarning: "Without them the model may use its tools poorly. Reset brings them back.",
341
+ promptReviewDescription: "What the Review model is told for /review and Review this change.",
342
+ promptTitle: "Chat titles",
343
+ promptTitleDescription: "What the Fast tasks model is asked to name a conversation.",
344
+ promptSummary: "Compaction summaries",
345
+ promptSummaryDescription: "What the model is told when it summarizes a conversation to compact it.",
346
+ promptVariablesAndPreview: "Variables and preview",
347
+ promptVariableLanguage: "The language to write in when the request names none",
348
+ promptVariableFocus: "What the person asked the review to look at, or empty",
349
+ promptVariableSeesImages: "Whether the model is shown images of the design",
350
+ promptVariableReferences: "How many reference images follow the design",
351
+ promptVariableEdit: "Whether this reviews the agent’s own last change, not a whole design",
352
+ promptVariableRequest: "The conversation’s first request",
353
+ promptVariableReply: "The beginning of the first reply",
354
+ promptPreview: "Preview with sample values",
355
+ promptUnknownVariable: params("{name} is not a variable of this prompt, so it stays empty."),
356
+ promptErrors: "This prompt has errors",
357
+ promptErrorsHint: "Pairdraw’s is used until they are fixed.",
358
+ promptErrorAt: params("Line {line}: {message}."),
308
359
  chatAgentStartTimeout: "The coding agent did not start in time. Check that it runs on this computer and try again.",
309
360
  openProviderSettingsAction: "Open settings",
310
361
  cloudWorkspace: "Workspace",