@quirekit/ui 0.0.3 → 0.2.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 (123) hide show
  1. package/LICENSE.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/{catalog-AqWLE58Z.mjs → catalog-Dn7izrV5.mjs} +859 -290
  4. package/dist/catalog-Dn7izrV5.mjs.map +1 -0
  5. package/dist/{chat-BSVF78Hu.mjs → chat-1THPEdHw.mjs} +224 -143
  6. package/dist/chat-1THPEdHw.mjs.map +1 -0
  7. package/dist/chat.d.mts +2 -2
  8. package/dist/chat.mjs +1 -1
  9. package/dist/{code-block-pXaSN9eY.mjs → code-block-BLzjRjTb.mjs} +2 -2
  10. package/dist/{code-block-pXaSN9eY.mjs.map → code-block-BLzjRjTb.mjs.map} +1 -1
  11. package/dist/{html-sandbox-CMsenGYi.mjs → html-sandbox-D9a7iXbU.mjs} +2 -2
  12. package/dist/{html-sandbox-CMsenGYi.mjs.map → html-sandbox-D9a7iXbU.mjs.map} +1 -1
  13. package/dist/html-sandbox.mjs +1 -1
  14. package/dist/{index-Bf9CudSF.d.mts → index-BkzB7Lb6.d.mts} +487 -144
  15. package/dist/index-BkzB7Lb6.d.mts.map +1 -0
  16. package/dist/{index-DZc5z5s2.d.mts → index-DVBEYJNY.d.mts} +3 -2
  17. package/dist/index-DVBEYJNY.d.mts.map +1 -0
  18. package/dist/index.d.mts +2 -2
  19. package/dist/index.mjs +21 -4
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/{model-D4-FbKXY.mjs → model-BjGYjpa9.mjs} +3 -3
  22. package/dist/{model-D4-FbKXY.mjs.map → model-BjGYjpa9.mjs.map} +1 -1
  23. package/dist/{resolve-BwTfY4PS.mjs → resolve-nFmJOtS9.mjs} +2 -2
  24. package/dist/{resolve-BwTfY4PS.mjs.map → resolve-nFmJOtS9.mjs.map} +1 -1
  25. package/dist/vue.d.mts +546 -487
  26. package/dist/vue.d.mts.map +1 -1
  27. package/dist/vue.mjs +3379 -2828
  28. package/dist/vue.mjs.map +1 -1
  29. package/package.json +11 -4
  30. package/src/components/chat/composer/types.ts +2 -0
  31. package/src/components/chat/message-part/types.ts +3 -1
  32. package/src/components/chat/reasoning/types.ts +1 -1
  33. package/src/components/chat/tool/types.ts +1 -1
  34. package/src/components/dialog/index.ts +1 -1
  35. package/src/components/dialog/types.ts +5 -2
  36. package/src/components/edit-bar/index.ts +1 -0
  37. package/src/components/edit-bar/types.ts +24 -0
  38. package/src/components/icon/custom/formatting.ts +3 -0
  39. package/src/components/icon/custom/indicators.ts +1 -0
  40. package/src/components/icon/custom/insert.ts +33 -1
  41. package/src/components/icon/custom/mind-map.ts +28 -0
  42. package/src/components/icon/custom.ts +3 -1
  43. package/src/components/icon/lucide.ts +21 -1
  44. package/src/components/icon/metadata.ts +289 -0
  45. package/src/components/index.ts +1 -0
  46. package/src/components/kbd/index.ts +1 -0
  47. package/src/components/kbd/platform.test.ts +16 -0
  48. package/src/components/kbd/platform.ts +16 -0
  49. package/src/components/toolbar/index.ts +1 -0
  50. package/src/components/toolbar/types.ts +8 -0
  51. package/src/locale/components/chat.ts +9 -7
  52. package/src/locale/components/edit-bar.ts +15 -0
  53. package/src/locale/components/icon-catalog/en.ts +89 -2
  54. package/src/locale/components/icon-catalog/zh-hans.ts +89 -2
  55. package/src/locale/packs/en.ts +2 -0
  56. package/src/locale/packs/zh-cn.ts +2 -0
  57. package/src/locale/types.ts +3 -0
  58. package/src/vue/action-menu/directory.vue +0 -7
  59. package/src/vue/block-handle/block-handle.test.ts +5 -0
  60. package/src/vue/block-handle/block-handle.vue +4 -11
  61. package/src/vue/block-handle/index.ts +1 -1
  62. package/src/vue/block-handle/presentation.ts +4 -0
  63. package/src/vue/chat/composer/composer.test.ts +11 -2
  64. package/src/vue/chat/composer/composer.vue +15 -3
  65. package/src/vue/chat/composer-submit/composer-submit.test.ts +5 -1
  66. package/src/vue/chat/composer-submit/composer-submit.vue +1 -1
  67. package/src/vue/chat/confirmation/confirmation.vue +3 -2
  68. package/src/vue/chat/locale.test.ts +2 -2
  69. package/src/vue/chat/message/message.test.ts +1 -1
  70. package/src/vue/chat/message/message.vue +8 -3
  71. package/src/vue/chat/message-actions/message-actions.vue +1 -1
  72. package/src/vue/chat/message-list/message-list.test.ts +2 -2
  73. package/src/vue/chat/message-list/message-list.vue +2 -2
  74. package/src/vue/chat/message-list/types.ts +2 -0
  75. package/src/vue/chat/message-list/use-scroll.test.ts +7 -1
  76. package/src/vue/chat/message-list/use-scroll.ts +12 -9
  77. package/src/vue/chat/message-part/message-part.test.ts +1 -1
  78. package/src/vue/chat/message-part/message-part.vue +2 -3
  79. package/src/vue/chat/shared/disclosure.vue +1 -1
  80. package/src/vue/chat/shared/part-actions.ts +1 -1
  81. package/src/vue/chat/shared/state-icon.ts +2 -1
  82. package/src/vue/combobox/async-value.test.ts +49 -0
  83. package/src/vue/combobox/use-combobox-model.ts +3 -1
  84. package/src/vue/component-styles.test.ts +17 -0
  85. package/src/vue/dialog/content.vue +29 -5
  86. package/src/vue/dialog/size.test.ts +61 -0
  87. package/src/vue/edit-bar/edit-bar.test.ts +125 -0
  88. package/src/vue/edit-bar/edit-bar.vue +108 -0
  89. package/src/vue/edit-bar/index.ts +2 -0
  90. package/src/vue/edit-bar/types.ts +21 -0
  91. package/src/vue/index.ts +1 -0
  92. package/src/vue/menu/items/disabled-submenu.test.ts +24 -0
  93. package/src/vue/menu/items/items.test.ts +29 -0
  94. package/src/vue/menu/items/items.vue +6 -0
  95. package/src/vue/menu/menu-group.vue +11 -2
  96. package/src/vue/scroll-area/scroll-area.test.ts +10 -0
  97. package/src/vue/scroll-area/scroll-area.vue +1 -1
  98. package/src/vue/select/select.test.ts +18 -0
  99. package/src/vue/select/select.vue +3 -0
  100. package/src/vue/slider/slider.test.ts +13 -0
  101. package/src/vue/slider/slider.vue +4 -2
  102. package/src/vue/splitter/splitter.test.ts +18 -0
  103. package/src/vue/splitter/splitter.vue +5 -2
  104. package/src/vue/task-panel/root.vue +0 -8
  105. package/src/vue/toolbar/context.ts +5 -2
  106. package/src/vue/toolbar/items/body.vue +5 -3
  107. package/src/vue/toolbar/items/control.vue +9 -1
  108. package/src/vue/toolbar/items/memo.test.ts +49 -0
  109. package/src/vue/toolbar/items/memo.ts +24 -0
  110. package/src/vue/toolbar/items/sheet-entries.ts +52 -0
  111. package/src/vue/toolbar/items/sheet.test.ts +61 -0
  112. package/src/vue/toolbar/items/sheet.vue +78 -0
  113. package/src/vue/toolbar/presentation/mobile.test.ts +14 -0
  114. package/src/vue/toolbar/presentation/visibility.ts +38 -0
  115. package/src/vue/toolbar/toolbar-split-button.test.ts +2 -0
  116. package/src/vue/toolbar/toolbar-split-button.vue +1 -0
  117. package/src/vue/toolbar/toolbar.vue +8 -3
  118. package/src/vue/toolbar/types.ts +3 -1
  119. package/dist/catalog-AqWLE58Z.mjs.map +0 -1
  120. package/dist/chat-BSVF78Hu.mjs.map +0 -1
  121. package/dist/index-Bf9CudSF.d.mts.map +0 -1
  122. package/dist/index-DZc5z5s2.d.mts.map +0 -1
  123. package/dist/style.css +0 -37
@@ -279,6 +279,10 @@ export const quireKitEditorIconGroups = [
279
279
  "name": "fileText",
280
280
  "upstream": "file-text"
281
281
  },
282
+ {
283
+ "name": "markdown",
284
+ "upstream": "custom"
285
+ },
282
286
  {
283
287
  "name": "files",
284
288
  "upstream": "files"
@@ -1040,6 +1044,18 @@ export const quireKitEditorIconGroups = [
1040
1044
  "name": "chartBar",
1041
1045
  "upstream": "chart-bar"
1042
1046
  },
1047
+ {
1048
+ "name": "chartScatter",
1049
+ "upstream": "chart-scatter"
1050
+ },
1051
+ {
1052
+ "name": "chartRadar",
1053
+ "upstream": "custom"
1054
+ },
1055
+ {
1056
+ "name": "qrCode",
1057
+ "upstream": "qr-code"
1058
+ },
1043
1059
  {
1044
1060
  "name": "chartArea",
1045
1061
  "upstream": "chart-area"
@@ -1134,6 +1150,10 @@ export const quireKitEditorIconGroups = [
1134
1150
  "category": "navigation",
1135
1151
  "scope": "general",
1136
1152
  "icons": [
1153
+ {
1154
+ "name": "stop",
1155
+ "upstream": "custom"
1156
+ },
1137
1157
  {
1138
1158
  "name": "triangleUp",
1139
1159
  "upstream": "custom"
@@ -1268,6 +1288,10 @@ export const quireKitEditorIconGroups = [
1268
1288
  "name": "heading6",
1269
1289
  "upstream": "heading-6"
1270
1290
  },
1291
+ {
1292
+ "name": "documentOutline",
1293
+ "upstream": "custom"
1294
+ },
1271
1295
  {
1272
1296
  "name": "textQuote",
1273
1297
  "upstream": "text-quote"
@@ -1343,6 +1367,10 @@ export const quireKitEditorIconGroups = [
1343
1367
  "name": "lineSpacing",
1344
1368
  "upstream": "custom"
1345
1369
  },
1370
+ {
1371
+ "name": "lineNumbers",
1372
+ "upstream": "custom"
1373
+ },
1346
1374
  {
1347
1375
  "name": "paragraph",
1348
1376
  "upstream": "pilcrow"
@@ -1359,6 +1387,10 @@ export const quireKitEditorIconGroups = [
1359
1387
  "name": "textDirectionRtl",
1360
1388
  "upstream": "custom"
1361
1389
  },
1390
+ {
1391
+ "name": "textDirectionVertical",
1392
+ "upstream": "custom"
1393
+ },
1362
1394
  {
1363
1395
  "name": "textWrap",
1364
1396
  "upstream": "text-wrap"
@@ -1382,6 +1414,10 @@ export const quireKitEditorIconGroups = [
1382
1414
  "name": "textBox",
1383
1415
  "upstream": "text-select"
1384
1416
  },
1417
+ {
1418
+ "name": "textBoxVertical",
1419
+ "upstream": "custom"
1420
+ },
1385
1421
  {
1386
1422
  "name": "textCursor",
1387
1423
  "upstream": "text-cursor"
@@ -1446,6 +1482,34 @@ export const quireKitEditorIconGroups = [
1446
1482
  "name": "mindMap",
1447
1483
  "upstream": "custom"
1448
1484
  },
1485
+ {
1486
+ "name": "animation",
1487
+ "upstream": "custom"
1488
+ },
1489
+ {
1490
+ "name": "animationEntrance",
1491
+ "upstream": "custom"
1492
+ },
1493
+ {
1494
+ "name": "animationEmphasis",
1495
+ "upstream": "custom"
1496
+ },
1497
+ {
1498
+ "name": "animationExit",
1499
+ "upstream": "custom"
1500
+ },
1501
+ {
1502
+ "name": "slideTransition",
1503
+ "upstream": "custom"
1504
+ },
1505
+ {
1506
+ "name": "freehand",
1507
+ "upstream": "custom"
1508
+ },
1509
+ {
1510
+ "name": "editPoints",
1511
+ "upstream": "custom"
1512
+ },
1449
1513
  {
1450
1514
  "name": "signature",
1451
1515
  "upstream": "signature"
@@ -1767,6 +1831,231 @@ export const quireKitEditorIconGroups = [
1767
1831
  "upstream": "align-end-horizontal"
1768
1832
  }
1769
1833
  ]
1834
+ },
1835
+ {
1836
+ "id": "presentation",
1837
+ "category": "view",
1838
+ "scope": "editor",
1839
+ "icons": [
1840
+ {
1841
+ "name": "designTheme",
1842
+ "upstream": "custom"
1843
+ },
1844
+ {
1845
+ "name": "colorScheme",
1846
+ "upstream": "palette"
1847
+ },
1848
+ {
1849
+ "name": "backgroundStyle",
1850
+ "upstream": "wallpaper"
1851
+ },
1852
+ {
1853
+ "name": "slideSize",
1854
+ "upstream": "proportions"
1855
+ },
1856
+ {
1857
+ "name": "slideSorter",
1858
+ "upstream": "gallery-thumbnails"
1859
+ },
1860
+ {
1861
+ "name": "notesPage",
1862
+ "upstream": "notebook-text"
1863
+ },
1864
+ {
1865
+ "name": "gridlines",
1866
+ "upstream": "grid-3x3"
1867
+ },
1868
+ {
1869
+ "name": "guides",
1870
+ "upstream": "custom"
1871
+ },
1872
+ {
1873
+ "name": "presenterView",
1874
+ "upstream": "presentation"
1875
+ },
1876
+ {
1877
+ "name": "laserPointer",
1878
+ "upstream": "custom"
1879
+ },
1880
+ {
1881
+ "name": "inkPen",
1882
+ "upstream": "pen-line"
1883
+ },
1884
+ {
1885
+ "name": "inkHighlighter",
1886
+ "upstream": "highlighter"
1887
+ },
1888
+ {
1889
+ "name": "eraser",
1890
+ "upstream": "eraser"
1891
+ },
1892
+ {
1893
+ "name": "exportFile",
1894
+ "upstream": "file-output"
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "id": "object-tools",
1900
+ "category": "insert",
1901
+ "scope": "editor",
1902
+ "icons": [
1903
+ {
1904
+ "name": "shapeStyles",
1905
+ "upstream": "swatch-book"
1906
+ },
1907
+ {
1908
+ "name": "shapeEffects",
1909
+ "upstream": "custom"
1910
+ },
1911
+ {
1912
+ "name": "changeShape",
1913
+ "upstream": "replace"
1914
+ },
1915
+ {
1916
+ "name": "gradientFill",
1917
+ "upstream": "custom"
1918
+ },
1919
+ {
1920
+ "name": "lineDash",
1921
+ "upstream": "custom"
1922
+ },
1923
+ {
1924
+ "name": "lineWeight",
1925
+ "upstream": "custom"
1926
+ },
1927
+ {
1928
+ "name": "replaceImage",
1929
+ "upstream": "custom"
1930
+ },
1931
+ {
1932
+ "name": "resetImage",
1933
+ "upstream": "custom"
1934
+ },
1935
+ {
1936
+ "name": "cropToShape",
1937
+ "upstream": "custom"
1938
+ },
1939
+ {
1940
+ "name": "pictureStyles",
1941
+ "upstream": "custom"
1942
+ },
1943
+ {
1944
+ "name": "pictureEffects",
1945
+ "upstream": "custom"
1946
+ },
1947
+ {
1948
+ "name": "brightness",
1949
+ "upstream": "sun-medium"
1950
+ },
1951
+ {
1952
+ "name": "contrast",
1953
+ "upstream": "contrast"
1954
+ },
1955
+ {
1956
+ "name": "recolor",
1957
+ "upstream": "droplets"
1958
+ },
1959
+ {
1960
+ "name": "transparency",
1961
+ "upstream": "custom"
1962
+ },
1963
+ {
1964
+ "name": "compressImage",
1965
+ "upstream": "custom"
1966
+ },
1967
+ {
1968
+ "name": "wordArtStyles",
1969
+ "upstream": "type-outline"
1970
+ },
1971
+ {
1972
+ "name": "textEffects",
1973
+ "upstream": "custom"
1974
+ },
1975
+ {
1976
+ "name": "characterSpacing",
1977
+ "upstream": "custom"
1978
+ },
1979
+ {
1980
+ "name": "textAutoFit",
1981
+ "upstream": "custom"
1982
+ },
1983
+ {
1984
+ "name": "tableCellMargins",
1985
+ "upstream": "custom"
1986
+ },
1987
+ {
1988
+ "name": "chartElements",
1989
+ "upstream": "custom"
1990
+ },
1991
+ {
1992
+ "name": "chartQuickLayout",
1993
+ "upstream": "layout-template"
1994
+ },
1995
+ {
1996
+ "name": "chartColors",
1997
+ "upstream": "custom"
1998
+ },
1999
+ {
2000
+ "name": "chartSwitchRowColumn",
2001
+ "upstream": "custom"
2002
+ }
2003
+ ]
2004
+ },
2005
+ {
2006
+ "id": "mind-map",
2007
+ "category": "insert",
2008
+ "scope": "editor",
2009
+ "icons": [
2010
+ {
2011
+ "name": "mindTopic",
2012
+ "upstream": "custom"
2013
+ },
2014
+ {
2015
+ "name": "mindSubtopic",
2016
+ "upstream": "custom"
2017
+ },
2018
+ {
2019
+ "name": "mindParentTopic",
2020
+ "upstream": "custom"
2021
+ },
2022
+ {
2023
+ "name": "mindFloatingTopic",
2024
+ "upstream": "custom"
2025
+ },
2026
+ {
2027
+ "name": "mindRelation",
2028
+ "upstream": "custom"
2029
+ },
2030
+ {
2031
+ "name": "mindSummary",
2032
+ "upstream": "custom"
2033
+ },
2034
+ {
2035
+ "name": "mindBoundary",
2036
+ "upstream": "custom"
2037
+ },
2038
+ {
2039
+ "name": "mindLayout",
2040
+ "upstream": "custom"
2041
+ },
2042
+ {
2043
+ "name": "mindStyle",
2044
+ "upstream": "custom"
2045
+ },
2046
+ {
2047
+ "name": "marqueeSelect",
2048
+ "upstream": "custom"
2049
+ },
2050
+ {
2051
+ "name": "mindExpandBranch",
2052
+ "upstream": "custom"
2053
+ },
2054
+ {
2055
+ "name": "mindCollapseBranch",
2056
+ "upstream": "custom"
2057
+ }
2058
+ ]
1770
2059
  }
1771
2060
  ] as const;
1772
2061
 
@@ -38,6 +38,7 @@ export * from "./toolbar";
38
38
  export * from "./tree-view";
39
39
  export * from "./toast";
40
40
  export * from "./editable";
41
+ export * from "./edit-bar";
41
42
  export * from "./clipboard";
42
43
  export * from "./empty-state";
43
44
  export * from "./listbox";
@@ -1,3 +1,4 @@
1
1
  export type * from "./types";
2
2
  export { createKbdTokens } from "./create";
3
3
  export { createKbdCssVariables } from "./variables/declarations";
4
+ export { formatQuireKitShortcut } from "./platform";
@@ -0,0 +1,16 @@
1
+ import { afterEach, describe, expect, it, vi } from "vitest";
2
+ import { formatQuireKitShortcut } from "./platform";
3
+
4
+ afterEach(() => { vi.unstubAllGlobals(); });
5
+
6
+ describe("platform shortcut text", () => {
7
+ it("shows the command key on Apple platforms", () => {
8
+ vi.stubGlobal("navigator", { platform: "MacIntel" });
9
+ expect(formatQuireKitShortcut("撤销 · Ctrl/⌘ Z")).toBe("撤销 · ⌘ Z");
10
+ });
11
+ it("shows Ctrl elsewhere and leaves other text untouched", () => {
12
+ vi.stubGlobal("navigator", { platform: "Win32" });
13
+ expect(formatQuireKitShortcut("Ctrl/⌘ Shift G")).toBe("Ctrl Shift G");
14
+ expect(formatQuireKitShortcut("Delete")).toBe("Delete");
15
+ });
16
+ });
@@ -0,0 +1,16 @@
1
+ /** @returns Whether the viewer is on Apple hardware, where the command key replaces Ctrl. */
2
+ function isApple(): boolean {
3
+ if (typeof navigator === "undefined") return false;
4
+ const platform = (navigator as Navigator & { userAgentData?: { platform?: string } }).userAgentData?.platform ?? navigator.platform ?? "";
5
+ return /mac|iphone|ipad|ipod/iu.test(platform);
6
+ }
7
+
8
+ /**
9
+ * Shows the shortcut modifier for the viewer's platform instead of a combined "Ctrl/⌘" catalog notation.
10
+ *
11
+ * @param text - Label, tooltip or key text that may contain the combined notation.
12
+ * @returns Text with ⌘ on Apple platforms and Ctrl elsewhere; text without the notation is returned unchanged.
13
+ */
14
+ export function formatQuireKitShortcut(text: string): string {
15
+ return text.includes("Ctrl/⌘") ? text.replaceAll("Ctrl/⌘", isApple() ? "⌘" : "Ctrl") : text;
16
+ }
@@ -9,6 +9,7 @@ export type {
9
9
  QuireKitToolbarCollapseUnit,
10
10
  QuireKitToolbarEntry,
11
11
  QuireKitToolbarSizing,
12
+ QuireKitToolbarPopupPresentation,
12
13
  QuireKitToolbarRow,
13
14
  QuireKitToolbarExecuteEvent,
14
15
  QuireKitToolbarOpenChangeEvent,
@@ -167,6 +167,9 @@ export interface QuireKitToolbarTokens {
167
167
  readonly feedbackEasing: string;
168
168
  }
169
169
 
170
+ /** Second-level surfaces anchored to their control, or bottom sheets for a touch command bar. */
171
+ export type QuireKitToolbarPopupPresentation = "anchored" | "bottom";
172
+
170
173
  /** Natural control widths, or widths measured in toolbar units. */
171
174
  export type QuireKitToolbarSizing = "natural" | "units";
172
175
 
@@ -231,6 +234,11 @@ export interface QuireKitToolbarEntry {
231
234
  readonly disabled?: boolean;
232
235
  /** Hidden entries are unmounted and excluded from keyboard navigation. */
233
236
  readonly hidden?: boolean;
237
+ /**
238
+ * Whether the entry is shown in mobile mode. Defaults to true; false keeps
239
+ * desktop-only controls, such as launchers of desktop side panels, off touch toolbars.
240
+ */
241
+ readonly mobile?: boolean;
234
242
  /** Host-defined metadata, such as a command id; never interpreted by Toolbar. */
235
243
  readonly meta?: unknown;
236
244
  /** Default command parameters; custom renderers may supply a different payload. */
@@ -22,6 +22,8 @@ export interface StatusMessages {
22
22
  readonly failed: string;
23
23
  /** Tool cancelled. */
24
24
  readonly cancelled: string;
25
+ /** The turn ended before a terminal tool result was observed. */
26
+ readonly interrupted: string;
25
27
  }
26
28
 
27
29
  /** Composer, ComposerInput, ComposerSubmit and RichInput text. */
@@ -60,7 +62,7 @@ export interface MessageMessages {
60
62
 
61
63
  /** MessagePart fallbacks. */
62
64
  export interface PartMessages {
63
- /** Markdown shown as source because no renderer is configured. */
65
+ /** Optional renderer diagnostics for custom consumer presentations. */
64
66
  readonly markdownFallback: string;
65
67
  /** Part kind that has no presentation. */
66
68
  readonly unsupported: string;
@@ -175,11 +177,11 @@ export interface Messages {
175
177
  export const zhCN: Messages = {
176
178
  status: {
177
179
  pending: "正在等待回复", streaming: "正在生成", complete: "已完成", stopped: "已停止生成", error: "生成失败",
178
- queued: "等待执行", running: "执行中", waiting: "等待确认", succeeded: "已完成", failed: "执行失败", cancelled: "已取消"
180
+ queued: "等待执行", running: "执行中", waiting: "等待确认", succeeded: "已完成", failed: "执行失败", cancelled: "已取消", interrupted: "结果未确认"
179
181
  },
180
- composer: { label: "消息", placeholder: "输入消息…", submit: "发送", stop: "停止", candidates: "输入候选" },
182
+ composer: { label: "消息", placeholder: "输入消息…", submit: "发送", stop: "停止", candidates: "引用与指令候选" },
181
183
  message: {
182
- copy: "复制回复", copied: "已复制", copyError: "复制失败,请重试或手动复制", more: "更多操作",
184
+ copy: "复制消息", copied: "已复制", copyError: "复制失败,请重试或手动复制", more: "更多操作",
183
185
  previousBranch: "上一个版本", nextBranch: "下一个版本", branchUnavailable: "分支不可用",
184
186
  branchPosition: (current, total) => `${current} / ${total}`
185
187
  },
@@ -209,11 +211,11 @@ export const zhCN: Messages = {
209
211
  export const en: Messages = {
210
212
  status: {
211
213
  pending: "Waiting for a reply", streaming: "Generating", complete: "Done", stopped: "Generation stopped", error: "Generation failed",
212
- queued: "Queued", running: "Running", waiting: "Awaiting confirmation", succeeded: "Done", failed: "Failed", cancelled: "Cancelled"
214
+ queued: "Queued", running: "Running", waiting: "Awaiting confirmation", succeeded: "Done", failed: "Failed", cancelled: "Cancelled", interrupted: "Outcome unconfirmed"
213
215
  },
214
- composer: { label: "Message", placeholder: "Type a message…", submit: "Send", stop: "Stop", candidates: "Suggestions" },
216
+ composer: { label: "Message", placeholder: "Type a message…", submit: "Send", stop: "Stop", candidates: "Mention and command suggestions" },
215
217
  message: {
216
- copy: "Copy reply", copied: "Copied", copyError: "Copy failed. Try again or copy manually.", more: "More actions",
218
+ copy: "Copy message", copied: "Copied", copyError: "Copy failed. Try again or copy manually.", more: "More actions",
217
219
  previousBranch: "Previous version", nextBranch: "Next version", branchUnavailable: "Version unavailable",
218
220
  branchPosition: (current, total) => `${current} / ${total}`
219
221
  },
@@ -0,0 +1,15 @@
1
+ /** EditBar interface text. */
2
+ export interface Messages {
3
+ /** Keyboard toggle while the keyboard is hidden or a panel replaces it. */
4
+ readonly keyboard: string;
5
+ /** Keyboard toggle while the keyboard is showing. */
6
+ readonly hideKeyboard: string;
7
+ /** Trailing menu of low-frequency tasks. */
8
+ readonly more: string;
9
+ }
10
+
11
+ /** Simplified Chinese. */
12
+ export const zhCN: Messages = { keyboard: "键盘", hideKeyboard: "收起键盘", more: "更多" };
13
+
14
+ /** English. */
15
+ export const en: Messages = { keyboard: "Keyboard", hideKeyboard: "Hide keyboard", more: "More" };
@@ -23,9 +23,24 @@ export const en: Messages = {
23
23
  "table-structure": "Table · Structure",
24
24
  "table-style": "Table · Borders and layout",
25
25
  review: "Review and comments",
26
- page: "Page and objects"
26
+ page: "Page and objects",
27
+ "object-tools": "Object tools",
28
+ presentation: "Presentation",
29
+ "mind-map": "Mind map"
27
30
  },
28
31
  icons: {
32
+ marqueeSelect: "Marquee select",
33
+ mindTopic: "Sibling topic",
34
+ mindSubtopic: "Subtopic",
35
+ mindParentTopic: "Parent topic",
36
+ mindFloatingTopic: "Floating topic",
37
+ mindRelation: "Relationship",
38
+ mindSummary: "Summary",
39
+ mindBoundary: "Boundary",
40
+ mindLayout: "Map structure",
41
+ mindStyle: "Topic style",
42
+ mindExpandBranch: "Expand branch",
43
+ mindCollapseBranch: "Collapse branch",
29
44
  gitBranch: "Branch connection",
30
45
  outlineColor: "Outline color",
31
46
  tableOfContents: "Table of contents",
@@ -34,7 +49,15 @@ export const en: Messages = {
34
49
  shapes: "Shapes",
35
50
  pencilRuler: "Drawing tools",
36
51
  whiteboard: "Whiteboard",
52
+ animation: "Animation",
53
+ animationEntrance: "Entrance animation",
54
+ animationEmphasis: "Emphasis animation",
55
+ animationExit: "Exit animation",
56
+ slideTransition: "Slide transition",
57
+ freehand: "Freehand",
58
+ editPoints: "Edit points",
37
59
  textDiagram: "Text diagram",
60
+ documentOutline: "Document outline",
38
61
  mindMap: "Mind map",
39
62
  sectionBreak: "Section break",
40
63
  footnote: "Footnote",
@@ -105,6 +128,7 @@ export const en: Messages = {
105
128
  menu: "Menu",
106
129
  file: "File",
107
130
  fileText: "Text document",
131
+ markdown: "Markdown document",
108
132
  files: "Files",
109
133
  filePlus: "New file",
110
134
  fileMinus: "Remove file",
@@ -281,6 +305,9 @@ export const en: Messages = {
281
305
  chartColumn: "Column chart",
282
306
  chartLine: "Line chart",
283
307
  chartPie: "Pie chart",
308
+ chartScatter: "Scatter chart",
309
+ chartRadar: "Radar chart",
310
+ qrCode: "QR code",
284
311
  chartBar: "Bar chart",
285
312
  keyboard: "Keyboard",
286
313
  command: "Command",
@@ -300,6 +327,7 @@ export const en: Messages = {
300
327
  sendToBack: "Send to back",
301
328
  group: "Group",
302
329
  ungroup: "Ungroup",
330
+ stop: "Stop",
303
331
  triangleUp: "Step up",
304
332
  triangleDown: "Step down",
305
333
  bold: "Bold",
@@ -346,14 +374,56 @@ export const en: Messages = {
346
374
  listTodo: "To-do list",
347
375
  listTree: "Multilevel list",
348
376
  lineSpacing: "Line spacing",
377
+ lineNumbers: "Line numbers",
349
378
  paragraph: "Paragraph mark",
350
379
  paragraphSettings: "Paragraph settings",
351
380
  textDirectionLtr: "Left to right",
352
381
  textDirectionRtl: "Right to left",
382
+ textDirectionVertical: "Vertical text",
353
383
  textWrap: "Word wrap",
354
384
  wrapText: "Wrap text",
355
385
  insert: "Insert content",
356
386
  textBox: "Text box",
387
+ textBoxVertical: "Vertical text box",
388
+ designTheme: "Design theme",
389
+ shapeStyles: "Shape styles",
390
+ shapeEffects: "Shape effects",
391
+ changeShape: "Change shape",
392
+ gradientFill: "Gradient fill",
393
+ lineDash: "Line style",
394
+ lineWeight: "Line weight",
395
+ replaceImage: "Replace picture",
396
+ resetImage: "Reset picture",
397
+ cropToShape: "Crop to shape",
398
+ pictureStyles: "Picture styles",
399
+ pictureEffects: "Picture effects",
400
+ brightness: "Brightness",
401
+ contrast: "Contrast",
402
+ recolor: "Recolor",
403
+ transparency: "Transparency",
404
+ compressImage: "Compress pictures",
405
+ wordArtStyles: "WordArt styles",
406
+ textEffects: "Text effects",
407
+ characterSpacing: "Character spacing",
408
+ textAutoFit: "Autofit",
409
+ tableCellMargins: "Cell margins",
410
+ chartElements: "Chart elements",
411
+ chartQuickLayout: "Quick layout",
412
+ chartColors: "Change colors",
413
+ chartSwitchRowColumn: "Switch row/column",
414
+ colorScheme: "Color scheme",
415
+ backgroundStyle: "Background style",
416
+ slideSize: "Slide size",
417
+ slideSorter: "Slide sorter",
418
+ notesPage: "Notes page",
419
+ gridlines: "Gridlines",
420
+ guides: "Guides",
421
+ presenterView: "Presenter view",
422
+ laserPointer: "Laser pointer",
423
+ inkPen: "Pen",
424
+ inkHighlighter: "Highlighter",
425
+ eraser: "Eraser",
426
+ exportFile: "Export",
357
427
  textCursor: "Text cursor",
358
428
  textCursorInput: "Text input",
359
429
  blockContentControl: "Block content control",
@@ -452,6 +522,23 @@ export const en: Messages = {
452
522
  pipette: ["eyedropper"],
453
523
  fontScript: ["East Asian and Latin"],
454
524
  textDirectionLtr: ["text direction"],
455
- textDirectionRtl: ["text direction"]
525
+ textDirectionRtl: ["text direction"],
526
+ textDirectionVertical: ["text direction", "vertical"],
527
+ textBoxVertical: ["vertical text box"],
528
+ textAutoFit: ["resize shape to fit text", "shrink text"],
529
+ designTheme: ["theme", "template"],
530
+ colorScheme: ["theme colors"],
531
+ backgroundStyle: ["background"],
532
+ slideSize: ["aspect ratio"],
533
+ slideSorter: ["thumbnails view"],
534
+ notesPage: ["speaker notes"],
535
+ gridlines: ["grid"],
536
+ guides: ["guide lines"],
537
+ presenterView: ["slide show"],
538
+ laserPointer: ["pointer"],
539
+ inkPen: ["ink"],
540
+ inkHighlighter: ["ink"],
541
+ eraser: ["erase"],
542
+ exportFile: ["export as PDF"]
456
543
  }
457
544
  };