@univerjs/ui 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/cjs/index.js +10227 -8985
  2. package/lib/cjs/locale/ar-SA.js +51 -80
  3. package/lib/cjs/locale/ca-ES.js +51 -80
  4. package/lib/cjs/locale/de-DE.js +51 -80
  5. package/lib/cjs/locale/en-US.js +51 -80
  6. package/lib/cjs/locale/es-ES.js +51 -80
  7. package/lib/cjs/locale/fa-IR.js +51 -80
  8. package/lib/cjs/locale/fr-FR.js +51 -80
  9. package/lib/cjs/locale/id-ID.js +51 -80
  10. package/lib/cjs/locale/it-IT.js +51 -80
  11. package/lib/cjs/locale/ja-JP.js +51 -80
  12. package/lib/cjs/locale/ko-KR.js +51 -80
  13. package/lib/cjs/locale/pl-PL.js +51 -80
  14. package/lib/cjs/locale/pt-BR.js +51 -80
  15. package/lib/cjs/locale/ru-RU.js +51 -80
  16. package/lib/cjs/locale/sk-SK.js +51 -80
  17. package/lib/cjs/locale/vi-VN.js +51 -80
  18. package/lib/cjs/locale/zh-CN.js +51 -80
  19. package/lib/cjs/locale/zh-HK.js +51 -80
  20. package/lib/cjs/locale/zh-TW.js +51 -80
  21. package/lib/es/index.js +10212 -8986
  22. package/lib/es/locale/ar-SA.js +51 -80
  23. package/lib/es/locale/ca-ES.js +51 -80
  24. package/lib/es/locale/de-DE.js +51 -80
  25. package/lib/es/locale/en-US.js +51 -80
  26. package/lib/es/locale/es-ES.js +51 -80
  27. package/lib/es/locale/fa-IR.js +51 -80
  28. package/lib/es/locale/fr-FR.js +51 -80
  29. package/lib/es/locale/id-ID.js +51 -80
  30. package/lib/es/locale/it-IT.js +51 -80
  31. package/lib/es/locale/ja-JP.js +51 -80
  32. package/lib/es/locale/ko-KR.js +51 -80
  33. package/lib/es/locale/pl-PL.js +51 -80
  34. package/lib/es/locale/pt-BR.js +51 -80
  35. package/lib/es/locale/ru-RU.js +51 -80
  36. package/lib/es/locale/sk-SK.js +51 -80
  37. package/lib/es/locale/vi-VN.js +51 -80
  38. package/lib/es/locale/zh-CN.js +51 -80
  39. package/lib/es/locale/zh-HK.js +51 -80
  40. package/lib/es/locale/zh-TW.js +51 -80
  41. package/lib/index.css +128 -28
  42. package/lib/index.js +10212 -8986
  43. package/lib/locale/ar-SA.js +51 -80
  44. package/lib/locale/ca-ES.js +51 -80
  45. package/lib/locale/de-DE.js +51 -80
  46. package/lib/locale/en-US.js +51 -80
  47. package/lib/locale/es-ES.js +51 -80
  48. package/lib/locale/fa-IR.js +51 -80
  49. package/lib/locale/fr-FR.js +51 -80
  50. package/lib/locale/id-ID.js +51 -80
  51. package/lib/locale/it-IT.js +51 -80
  52. package/lib/locale/ja-JP.js +51 -80
  53. package/lib/locale/ko-KR.js +51 -80
  54. package/lib/locale/pl-PL.js +51 -80
  55. package/lib/locale/pt-BR.js +51 -80
  56. package/lib/locale/ru-RU.js +51 -80
  57. package/lib/locale/sk-SK.js +51 -80
  58. package/lib/locale/vi-VN.js +51 -80
  59. package/lib/locale/zh-CN.js +51 -80
  60. package/lib/locale/zh-HK.js +51 -80
  61. package/lib/locale/zh-TW.js +51 -80
  62. package/lib/types/common/icon-manager.d.ts +1 -0
  63. package/lib/types/index.d.ts +5 -0
  64. package/lib/types/locale/en-US.d.ts +0 -27
  65. package/lib/types/services/popup/canvas-popup.service.d.ts +2 -0
  66. package/lib/types/services/presence/unit-presence-ui-adapter.service.d.ts +66 -0
  67. package/lib/types/services/undo-redo/undo-redo-group.service.d.ts +25 -0
  68. package/lib/types/services/workbench/workbench.service.d.ts +9 -2
  69. package/lib/types/views/components/hover-track/HoverTrack.d.ts +19 -0
  70. package/lib/types/views/components/popup/RectPopup.d.ts +14 -7
  71. package/lib/types/views/components/ribbon/ToolbarButton.d.ts +1 -1
  72. package/lib/types/views/components/ribbon/ToolbarItem.d.ts +1 -0
  73. package/lib/types/views/components/ribbon/TooltipButtonWrapper.d.ts +12 -2
  74. package/lib/types/views/custom-label/CustomLabel.d.ts +1 -0
  75. package/lib/types/views/emoji-picker/emoji-picker-utils.d.ts +16 -3
  76. package/lib/types/views/emoji-picker/emojis.generated.d.ts +10 -2
  77. package/lib/types/views/hooks/prevent-browser-zoom.d.ts +16 -0
  78. package/lib/types/views/hooks/virtual-list.d.ts +2 -1
  79. package/lib/umd/index.js +15 -15
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +7 -7
@@ -1796,18 +1796,6 @@ const emojiLocale = {
1796
1796
  "👯🏽": "兔女郎:淺褐皮膚 兔女郎 兔耳 死黨 淺褐皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩",
1797
1797
  "👯🏾": "兔女郎:褐皮膚 兔女郎 兔耳 死黨 褐皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩",
1798
1798
  "👯🏿": "兔女郎:黑皮膚 兔女郎 兔耳 死黨 走趴 跳舞 閨蜜 雙胞胎 高衩 黑皮膚",
1799
- "👯‍♂️": "雙人兔男郎 兔耳 戴兔耳朵 跳舞",
1800
- "👯🏻‍♂️": "雙人兔男郎:白皮膚 兔耳 戴兔耳朵 白皮膚 跳舞 雙人兔男郎",
1801
- "👯🏼‍♂️": "雙人兔男郎:黃皮膚 兔耳 戴兔耳朵 跳舞 雙人兔男郎 黃皮膚",
1802
- "👯🏽‍♂️": "雙人兔男郎:淺褐皮膚 兔耳 戴兔耳朵 淺褐皮膚 跳舞 雙人兔男郎",
1803
- "👯🏾‍♂️": "雙人兔男郎:褐皮膚 兔耳 戴兔耳朵 褐皮膚 跳舞 雙人兔男郎",
1804
- "👯🏿‍♂️": "雙人兔男郎:黑皮膚 兔耳 戴兔耳朵 跳舞 雙人兔男郎 黑皮膚",
1805
- "👯‍♀️": "雙人兔女郎 兔耳 跳舞",
1806
- "👯🏻‍♀️": "雙人兔女郎:白皮膚 兔耳 白皮膚 跳舞 雙人兔女郎",
1807
- "👯🏼‍♀️": "雙人兔女郎:黃皮膚 兔耳 跳舞 雙人兔女郎 黃皮膚",
1808
- "👯🏽‍♀️": "雙人兔女郎:淺褐皮膚 兔耳 淺褐皮膚 跳舞 雙人兔女郎",
1809
- "👯🏾‍♀️": "雙人兔女郎:褐皮膚 兔耳 褐皮膚 跳舞 雙人兔女郎",
1810
- "👯🏿‍♀️": "雙人兔女郎:黑皮膚 兔耳 跳舞 雙人兔女郎 黑皮膚",
1811
1799
  "🧑🏻‍🐰‍🧑🏼": "兔女郎:白皮膚 黃皮膚 兔女郎 兔耳 死黨 白皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩 黃皮膚",
1812
1800
  "🧑🏻‍🐰‍🧑🏽": "兔女郎:白皮膚 淺褐皮膚 兔女郎 兔耳 死黨 淺褐皮膚 白皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩",
1813
1801
  "🧑🏻‍🐰‍🧑🏾": "兔女郎:白皮膚 褐皮膚 兔女郎 兔耳 死黨 白皮膚 褐皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩",
@@ -1828,6 +1816,12 @@ const emojiLocale = {
1828
1816
  "🧑🏿‍🐰‍🧑🏼": "兔女郎:黑皮膚 黃皮膚 兔女郎 兔耳 死黨 走趴 跳舞 閨蜜 雙胞胎 高衩 黃皮膚 黑皮膚",
1829
1817
  "🧑🏿‍🐰‍🧑🏽": "兔女郎:黑皮膚 淺褐皮膚 兔女郎 兔耳 死黨 淺褐皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩 黑皮膚",
1830
1818
  "🧑🏿‍🐰‍🧑🏾": "兔女郎:黑皮膚 褐皮膚 兔女郎 兔耳 死黨 褐皮膚 走趴 跳舞 閨蜜 雙胞胎 高衩 黑皮膚",
1819
+ "👯‍♂️": "雙人兔男郎 兔耳 戴兔耳朵 跳舞",
1820
+ "👯🏻‍♂️": "雙人兔男郎:白皮膚 兔耳 戴兔耳朵 白皮膚 跳舞 雙人兔男郎",
1821
+ "👯🏼‍♂️": "雙人兔男郎:黃皮膚 兔耳 戴兔耳朵 跳舞 雙人兔男郎 黃皮膚",
1822
+ "👯🏽‍♂️": "雙人兔男郎:淺褐皮膚 兔耳 戴兔耳朵 淺褐皮膚 跳舞 雙人兔男郎",
1823
+ "👯🏾‍♂️": "雙人兔男郎:褐皮膚 兔耳 戴兔耳朵 褐皮膚 跳舞 雙人兔男郎",
1824
+ "👯🏿‍♂️": "雙人兔男郎:黑皮膚 兔耳 戴兔耳朵 跳舞 雙人兔男郎 黑皮膚",
1831
1825
  "👨🏻‍🐰‍👨🏼": "雙人兔男郎:白皮膚 黃皮膚 兔耳 戴兔耳朵 白皮膚 跳舞 雙人兔男郎 黃皮膚",
1832
1826
  "👨🏻‍🐰‍👨🏽": "雙人兔男郎:白皮膚 淺褐皮膚 兔耳 戴兔耳朵 淺褐皮膚 白皮膚 跳舞 雙人兔男郎",
1833
1827
  "👨🏻‍🐰‍👨🏾": "雙人兔男郎:白皮膚 褐皮膚 兔耳 戴兔耳朵 白皮膚 褐皮膚 跳舞 雙人兔男郎",
@@ -1848,6 +1842,12 @@ const emojiLocale = {
1848
1842
  "👨🏿‍🐰‍👨🏼": "雙人兔男郎:黑皮膚 黃皮膚 兔耳 戴兔耳朵 跳舞 雙人兔男郎 黃皮膚 黑皮膚",
1849
1843
  "👨🏿‍🐰‍👨🏽": "雙人兔男郎:黑皮膚 淺褐皮膚 兔耳 戴兔耳朵 淺褐皮膚 跳舞 雙人兔男郎 黑皮膚",
1850
1844
  "👨🏿‍🐰‍👨🏾": "雙人兔男郎:黑皮膚 褐皮膚 兔耳 戴兔耳朵 褐皮膚 跳舞 雙人兔男郎 黑皮膚",
1845
+ "👯‍♀️": "雙人兔女郎 兔耳 跳舞",
1846
+ "👯🏻‍♀️": "雙人兔女郎:白皮膚 兔耳 白皮膚 跳舞 雙人兔女郎",
1847
+ "👯🏼‍♀️": "雙人兔女郎:黃皮膚 兔耳 跳舞 雙人兔女郎 黃皮膚",
1848
+ "👯🏽‍♀️": "雙人兔女郎:淺褐皮膚 兔耳 淺褐皮膚 跳舞 雙人兔女郎",
1849
+ "👯🏾‍♀️": "雙人兔女郎:褐皮膚 兔耳 褐皮膚 跳舞 雙人兔女郎",
1850
+ "👯🏿‍♀️": "雙人兔女郎:黑皮膚 兔耳 跳舞 雙人兔女郎 黑皮膚",
1851
1851
  "👩🏻‍🐰‍👩🏼": "雙人兔女郎:白皮膚 黃皮膚 兔耳 白皮膚 跳舞 雙人兔女郎 黃皮膚",
1852
1852
  "👩🏻‍🐰‍👩🏽": "雙人兔女郎:白皮膚 淺褐皮膚 兔耳 淺褐皮膚 白皮膚 跳舞 雙人兔女郎",
1853
1853
  "👩🏻‍🐰‍👩🏾": "雙人兔女郎:白皮膚 褐皮膚 兔耳 白皮膚 褐皮膚 跳舞 雙人兔女郎",
@@ -2086,18 +2086,6 @@ const emojiLocale = {
2086
2086
  "🤼🏽": "摔角手:淺褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 淺褐皮膚 競賽 角力 運動員 釘孤枝",
2087
2087
  "🤼🏾": "摔角手:褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 競賽 褐皮膚 角力 運動員 釘孤枝",
2088
2088
  "🤼🏿": "摔角手:黑皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 競賽 角力 運動員 釘孤枝 黑皮膚",
2089
- "🤼‍♂️": "男子摔角 單挑 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝",
2090
- "🤼🏻‍♂️": "男子摔角:白皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 白皮膚 競賽 角力 運動員 釘孤枝",
2091
- "🤼🏼‍♂️": "男子摔角:黃皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 角力 運動員 釘孤枝 黃皮膚",
2092
- "🤼🏽‍♂️": "男子摔角:淺褐皮膚 單挑 拼了 搏鬥 摔角 比賽 淺褐皮膚 男子摔角 競賽 角力 運動員 釘孤枝",
2093
- "🤼🏾‍♂️": "男子摔角:褐皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 褐皮膚 角力 運動員 釘孤枝",
2094
- "🤼🏿‍♂️": "男子摔角:黑皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 角力 運動員 釘孤枝 黑皮膚",
2095
- "🤼‍♀️": "女子摔角 單挑 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝",
2096
- "🤼🏻‍♀️": "女子摔角:白皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 白皮膚 競賽 角力 運動員 釘孤枝",
2097
- "🤼🏼‍♀️": "女子摔角:黃皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝 黃皮膚",
2098
- "🤼🏽‍♀️": "女子摔角:淺褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 淺褐皮膚 競賽 角力 運動員 釘孤枝",
2099
- "🤼🏾‍♀️": "女子摔角:褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 褐皮膚 角力 運動員 釘孤枝",
2100
- "🤼🏿‍♀️": "女子摔角:黑皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝 黑皮膚",
2101
2089
  "🧑🏻‍🫯‍🧑🏼": "摔角手:白皮膚 黃皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 白皮膚 競賽 角力 運動員 釘孤枝 黃皮膚",
2102
2090
  "🧑🏻‍🫯‍🧑🏽": "摔角手:白皮膚 淺褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 淺褐皮膚 白皮膚 競賽 角力 運動員 釘孤枝",
2103
2091
  "🧑🏻‍🫯‍🧑🏾": "摔角手:白皮膚 褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 白皮膚 競賽 褐皮膚 角力 運動員 釘孤枝",
@@ -2118,6 +2106,12 @@ const emojiLocale = {
2118
2106
  "🧑🏿‍🫯‍🧑🏼": "摔角手:黑皮膚 黃皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 競賽 角力 運動員 釘孤枝 黃皮膚 黑皮膚",
2119
2107
  "🧑🏿‍🫯‍🧑🏽": "摔角手:黑皮膚 淺褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 淺褐皮膚 競賽 角力 運動員 釘孤枝 黑皮膚",
2120
2108
  "🧑🏿‍🫯‍🧑🏾": "摔角手:黑皮膚 褐皮膚 單挑 拼了 搏鬥 摔角 摔角手 比賽 競賽 褐皮膚 角力 運動員 釘孤枝 黑皮膚",
2109
+ "🤼‍♂️": "男子摔角 單挑 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝",
2110
+ "🤼🏻‍♂️": "男子摔角:白皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 白皮膚 競賽 角力 運動員 釘孤枝",
2111
+ "🤼🏼‍♂️": "男子摔角:黃皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 角力 運動員 釘孤枝 黃皮膚",
2112
+ "🤼🏽‍♂️": "男子摔角:淺褐皮膚 單挑 拼了 搏鬥 摔角 比賽 淺褐皮膚 男子摔角 競賽 角力 運動員 釘孤枝",
2113
+ "🤼🏾‍♂️": "男子摔角:褐皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 褐皮膚 角力 運動員 釘孤枝",
2114
+ "🤼🏿‍♂️": "男子摔角:黑皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 角力 運動員 釘孤枝 黑皮膚",
2121
2115
  "👨🏻‍🫯‍👨🏼": "男子摔角:白皮膚 黃皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 白皮膚 競賽 角力 運動員 釘孤枝 黃皮膚",
2122
2116
  "👨🏻‍🫯‍👨🏽": "男子摔角:白皮膚 淺褐皮膚 單挑 拼了 搏鬥 摔角 比賽 淺褐皮膚 男子摔角 白皮膚 競賽 角力 運動員 釘孤枝",
2123
2117
  "👨🏻‍🫯‍👨🏾": "男子摔角:白皮膚 褐皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 白皮膚 競賽 褐皮膚 角力 運動員 釘孤枝",
@@ -2138,6 +2132,12 @@ const emojiLocale = {
2138
2132
  "👨🏿‍🫯‍👨🏼": "男子摔角:黑皮膚 黃皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 角力 運動員 釘孤枝 黃皮膚 黑皮膚",
2139
2133
  "👨🏿‍🫯‍👨🏽": "男子摔角:黑皮膚 淺褐皮膚 單挑 拼了 搏鬥 摔角 比賽 淺褐皮膚 男子摔角 競賽 角力 運動員 釘孤枝 黑皮膚",
2140
2134
  "👨🏿‍🫯‍👨🏾": "男子摔角:黑皮膚 褐皮膚 單挑 拼了 搏鬥 摔角 比賽 男子摔角 競賽 褐皮膚 角力 運動員 釘孤枝 黑皮膚",
2135
+ "🤼‍♀️": "女子摔角 單挑 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝",
2136
+ "🤼🏻‍♀️": "女子摔角:白皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 白皮膚 競賽 角力 運動員 釘孤枝",
2137
+ "🤼🏼‍♀️": "女子摔角:黃皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝 黃皮膚",
2138
+ "🤼🏽‍♀️": "女子摔角:淺褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 淺褐皮膚 競賽 角力 運動員 釘孤枝",
2139
+ "🤼🏾‍♀️": "女子摔角:褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 褐皮膚 角力 運動員 釘孤枝",
2140
+ "🤼🏿‍♀️": "女子摔角:黑皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 競賽 角力 運動員 釘孤枝 黑皮膚",
2141
2141
  "👩🏻‍🫯‍👩🏼": "女子摔角:白皮膚 黃皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 白皮膚 競賽 角力 運動員 釘孤枝 黃皮膚",
2142
2142
  "👩🏻‍🫯‍👩🏽": "女子摔角:白皮膚 淺褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 淺褐皮膚 白皮膚 競賽 角力 運動員 釘孤枝",
2143
2143
  "👩🏻‍🫯‍👩🏾": "女子摔角:白皮膚 褐皮膚 單挑 女子摔角 拼了 搏鬥 摔角 比賽 白皮膚 競賽 褐皮膚 角力 運動員 釘孤枝",
@@ -5472,18 +5472,6 @@ const emojiLocale = {
5472
5472
  "👯🏽": "兔女郎:淺褐皮膚",
5473
5473
  "👯🏾": "兔女郎:褐皮膚",
5474
5474
  "👯🏿": "兔女郎:黑皮膚",
5475
- "👯‍♂️": "雙人兔男郎",
5476
- "👯🏻‍♂️": "雙人兔男郎:白皮膚",
5477
- "👯🏼‍♂️": "雙人兔男郎:黃皮膚",
5478
- "👯🏽‍♂️": "雙人兔男郎:淺褐皮膚",
5479
- "👯🏾‍♂️": "雙人兔男郎:褐皮膚",
5480
- "👯🏿‍♂️": "雙人兔男郎:黑皮膚",
5481
- "👯‍♀️": "雙人兔女郎",
5482
- "👯🏻‍♀️": "雙人兔女郎:白皮膚",
5483
- "👯🏼‍♀️": "雙人兔女郎:黃皮膚",
5484
- "👯🏽‍♀️": "雙人兔女郎:淺褐皮膚",
5485
- "👯🏾‍♀️": "雙人兔女郎:褐皮膚",
5486
- "👯🏿‍♀️": "雙人兔女郎:黑皮膚",
5487
5475
  "🧑🏻‍🐰‍🧑🏼": "兔女郎:白皮膚 黃皮膚",
5488
5476
  "🧑🏻‍🐰‍🧑🏽": "兔女郎:白皮膚 淺褐皮膚",
5489
5477
  "🧑🏻‍🐰‍🧑🏾": "兔女郎:白皮膚 褐皮膚",
@@ -5504,6 +5492,12 @@ const emojiLocale = {
5504
5492
  "🧑🏿‍🐰‍🧑🏼": "兔女郎:黑皮膚 黃皮膚",
5505
5493
  "🧑🏿‍🐰‍🧑🏽": "兔女郎:黑皮膚 淺褐皮膚",
5506
5494
  "🧑🏿‍🐰‍🧑🏾": "兔女郎:黑皮膚 褐皮膚",
5495
+ "👯‍♂️": "雙人兔男郎",
5496
+ "👯🏻‍♂️": "雙人兔男郎:白皮膚",
5497
+ "👯🏼‍♂️": "雙人兔男郎:黃皮膚",
5498
+ "👯🏽‍♂️": "雙人兔男郎:淺褐皮膚",
5499
+ "👯🏾‍♂️": "雙人兔男郎:褐皮膚",
5500
+ "👯🏿‍♂️": "雙人兔男郎:黑皮膚",
5507
5501
  "👨🏻‍🐰‍👨🏼": "雙人兔男郎:白皮膚 黃皮膚",
5508
5502
  "👨🏻‍🐰‍👨🏽": "雙人兔男郎:白皮膚 淺褐皮膚",
5509
5503
  "👨🏻‍🐰‍👨🏾": "雙人兔男郎:白皮膚 褐皮膚",
@@ -5524,6 +5518,12 @@ const emojiLocale = {
5524
5518
  "👨🏿‍🐰‍👨🏼": "雙人兔男郎:黑皮膚 黃皮膚",
5525
5519
  "👨🏿‍🐰‍👨🏽": "雙人兔男郎:黑皮膚 淺褐皮膚",
5526
5520
  "👨🏿‍🐰‍👨🏾": "雙人兔男郎:黑皮膚 褐皮膚",
5521
+ "👯‍♀️": "雙人兔女郎",
5522
+ "👯🏻‍♀️": "雙人兔女郎:白皮膚",
5523
+ "👯🏼‍♀️": "雙人兔女郎:黃皮膚",
5524
+ "👯🏽‍♀️": "雙人兔女郎:淺褐皮膚",
5525
+ "👯🏾‍♀️": "雙人兔女郎:褐皮膚",
5526
+ "👯🏿‍♀️": "雙人兔女郎:黑皮膚",
5527
5527
  "👩🏻‍🐰‍👩🏼": "雙人兔女郎:白皮膚 黃皮膚",
5528
5528
  "👩🏻‍🐰‍👩🏽": "雙人兔女郎:白皮膚 淺褐皮膚",
5529
5529
  "👩🏻‍🐰‍👩🏾": "雙人兔女郎:白皮膚 褐皮膚",
@@ -5762,18 +5762,6 @@ const emojiLocale = {
5762
5762
  "🤼🏽": "摔角手:淺褐皮膚",
5763
5763
  "🤼🏾": "摔角手:褐皮膚",
5764
5764
  "🤼🏿": "摔角手:黑皮膚",
5765
- "🤼‍♂️": "男子摔角",
5766
- "🤼🏻‍♂️": "男子摔角:白皮膚",
5767
- "🤼🏼‍♂️": "男子摔角:黃皮膚",
5768
- "🤼🏽‍♂️": "男子摔角:淺褐皮膚",
5769
- "🤼🏾‍♂️": "男子摔角:褐皮膚",
5770
- "🤼🏿‍♂️": "男子摔角:黑皮膚",
5771
- "🤼‍♀️": "女子摔角",
5772
- "🤼🏻‍♀️": "女子摔角:白皮膚",
5773
- "🤼🏼‍♀️": "女子摔角:黃皮膚",
5774
- "🤼🏽‍♀️": "女子摔角:淺褐皮膚",
5775
- "🤼🏾‍♀️": "女子摔角:褐皮膚",
5776
- "🤼🏿‍♀️": "女子摔角:黑皮膚",
5777
5765
  "🧑🏻‍🫯‍🧑🏼": "摔角手:白皮膚 黃皮膚",
5778
5766
  "🧑🏻‍🫯‍🧑🏽": "摔角手:白皮膚 淺褐皮膚",
5779
5767
  "🧑🏻‍🫯‍🧑🏾": "摔角手:白皮膚 褐皮膚",
@@ -5794,6 +5782,12 @@ const emojiLocale = {
5794
5782
  "🧑🏿‍🫯‍🧑🏼": "摔角手:黑皮膚 黃皮膚",
5795
5783
  "🧑🏿‍🫯‍🧑🏽": "摔角手:黑皮膚 淺褐皮膚",
5796
5784
  "🧑🏿‍🫯‍🧑🏾": "摔角手:黑皮膚 褐皮膚",
5785
+ "🤼‍♂️": "男子摔角",
5786
+ "🤼🏻‍♂️": "男子摔角:白皮膚",
5787
+ "🤼🏼‍♂️": "男子摔角:黃皮膚",
5788
+ "🤼🏽‍♂️": "男子摔角:淺褐皮膚",
5789
+ "🤼🏾‍♂️": "男子摔角:褐皮膚",
5790
+ "🤼🏿‍♂️": "男子摔角:黑皮膚",
5797
5791
  "👨🏻‍🫯‍👨🏼": "男子摔角:白皮膚 黃皮膚",
5798
5792
  "👨🏻‍🫯‍👨🏽": "男子摔角:白皮膚 淺褐皮膚",
5799
5793
  "👨🏻‍🫯‍👨🏾": "男子摔角:白皮膚 褐皮膚",
@@ -5814,6 +5808,12 @@ const emojiLocale = {
5814
5808
  "👨🏿‍🫯‍👨🏼": "男子摔角:黑皮膚 黃皮膚",
5815
5809
  "👨🏿‍🫯‍👨🏽": "男子摔角:黑皮膚 淺褐皮膚",
5816
5810
  "👨🏿‍🫯‍👨🏾": "男子摔角:黑皮膚 褐皮膚",
5811
+ "🤼‍♀️": "女子摔角",
5812
+ "🤼🏻‍♀️": "女子摔角:白皮膚",
5813
+ "🤼🏼‍♀️": "女子摔角:黃皮膚",
5814
+ "🤼🏽‍♀️": "女子摔角:淺褐皮膚",
5815
+ "🤼🏾‍♀️": "女子摔角:褐皮膚",
5816
+ "🤼🏿‍♀️": "女子摔角:黑皮膚",
5817
5817
  "👩🏻‍🫯‍👩🏼": "女子摔角:白皮膚 黃皮膚",
5818
5818
  "👩🏻‍🫯‍👩🏽": "女子摔角:白皮膚 淺褐皮膚",
5819
5819
  "👩🏻‍🫯‍👩🏾": "女子摔角:白皮膚 褐皮膚",
@@ -7392,9 +7392,7 @@ const locale = { ui: {
7392
7392
  2: "標題 2",
7393
7393
  3: "標題 3",
7394
7394
  4: "標題 4",
7395
- 5: "標題 5",
7396
- 6: "標題 6",
7397
- tooltip: "設定標題"
7395
+ 5: "標題 5"
7398
7396
  } },
7399
7397
  ribbon: {
7400
7398
  start: "開始",
@@ -7411,22 +7409,7 @@ const locale = { ui: {
7411
7409
  othersDesc: "其他功能和設定。",
7412
7410
  more: "更多"
7413
7411
  },
7414
- fontFamily: {
7415
- "not-supported": "系統中未找到該字體,使用預設字體。",
7416
- arial: "Arial",
7417
- "times-new-roman": "Times New Roman",
7418
- tahoma: "Tahoma",
7419
- verdana: "Verdana",
7420
- "microsoft-yahei": "微軟雅黑",
7421
- simsun: "宋體",
7422
- simhei: "黑體",
7423
- kaiti: "楷體",
7424
- fangsong: "仿宋",
7425
- nsimsun: "新宋體",
7426
- stxinwei: "華文新魏",
7427
- stxingkai: "華文行楷",
7428
- stliti: "華文隸書"
7429
- },
7412
+ fontFamily: { "not-supported": "系統中未找到該字體,使用預設字體。" },
7430
7413
  "shortcut-panel": { title: "快捷鍵面板" },
7431
7414
  shortcut: {
7432
7415
  undo: "撤銷",
@@ -7453,20 +7436,8 @@ const locale = { ui: {
7453
7436
  title: "無法存取剪貼簿",
7454
7437
  content: "請允許 Univer 存取您的剪貼簿。 "
7455
7438
  } },
7456
- textEditor: {
7457
- formulaError: "請輸入合法的公式,例如=SUM(A1)",
7458
- rangeError: "請輸入合法的範圍,例如 A1:B10"
7459
- },
7460
- rangeSelector: {
7461
- title: "選擇一個資料範圍",
7462
- addAnotherRange: "新增範圍",
7463
- buttonTooltip: "選擇資料範圍",
7464
- placeHolder: "框選範圍或輸入",
7465
- confirm: "確認",
7466
- cancel: "取消"
7467
- },
7439
+ rangeSelector: { cancel: "取消" },
7468
7440
  "global-shortcut": "全域快捷鍵",
7469
- "zoom-slider": { resetTo: "恢復至" },
7470
7441
  row: "列",
7471
7442
  column: "欄"
7472
7443
  } };
@@ -29,6 +29,7 @@ export interface IIconProps {
29
29
  className?: string;
30
30
  style?: CSSProperties;
31
31
  extend?: IIconExtendProps;
32
+ preserveStrokeWidth?: boolean;
32
33
  onClick?: MouseEventHandler<SVGSVGElement>;
33
34
  }
34
35
  /**
@@ -67,6 +67,8 @@ export { BuiltInUIPart, IUIPartsService, UIPartsService } from './services/parts
67
67
  export { IPlatformService, PlatformService } from './services/platform/platform.service';
68
68
  export { CanvasPopupService, ICanvasPopupService } from './services/popup/canvas-popup.service';
69
69
  export type { IPopup, IPopupWithExtraProps } from './services/popup/canvas-popup.service';
70
+ export type { ILocalUnitPresenceState, IRemoteUnitPresenceState, IUnitPresencePoint, IUnitPresenceUIAdapter, } from './services/presence/unit-presence-ui-adapter.service';
71
+ export { IUnitPresenceUIAdapterRegistry, UnitPresenceUIAdapterRegistry, } from './services/presence/unit-presence-ui-adapter.service';
70
72
  export { IRibbonOverrideService, RibbonOverrideService } from './services/ribbon/ribbon-override.service';
71
73
  export type { IRibbonOverride } from './services/ribbon/ribbon-override.service';
72
74
  export { DesktopRibbonService, IRibbonService } from './services/ribbon/ribbon.service';
@@ -80,6 +82,7 @@ export { DesktopSidebarService } from './services/sidebar/desktop-sidebar.servic
80
82
  export { useSidebarClick } from './services/sidebar/hooks/use-sidebar-click';
81
83
  export { ILeftSidebarService, ISidebarService } from './services/sidebar/sidebar.service';
82
84
  export { ThemeSwitcherService } from './services/theme-switcher/theme-switcher.service';
85
+ export { UndoRedoGroupService } from './services/undo-redo/undo-redo-group.service';
83
86
  export { IWorkbenchService, WorkbenchService } from './services/workbench/workbench.service';
84
87
  export * from './utils';
85
88
  export { COLOR_PICKER_COMPONENT } from './views/color-picker/interface';
@@ -96,6 +99,7 @@ export { type IDialogPartMethodOptions } from './views/components/dialog-part/in
96
99
  export { FloatDomSingle } from './views/components/dom/FloatDom';
97
100
  export { FloatDom } from './views/components/dom/FloatDom';
98
101
  export { PrintFloatDomSingle } from './views/components/dom/Print';
102
+ export { HOVER_TRACK_HOST_CLASS_NAME, HoverTrack } from './views/components/hover-track/HoverTrack';
99
103
  export { CanvasPopup, SingleCanvasPopup } from './views/components/popup/CanvasPopup';
100
104
  export { RectPopup } from './views/components/popup/RectPopup';
101
105
  export type { RectPopupDirection } from './views/components/popup/RectPopup';
@@ -114,6 +118,7 @@ export type { IFontFamilyItemProps } from './views/font-family/FontFamilyItem';
114
118
  export { FontSize } from './views/font-size/FontSize';
115
119
  export { FONT_SIZE_COMPONENT, FONT_SIZE_LIST, HEADING_LIST } from './views/font-size/interface';
116
120
  export * from './views/hooks/index';
121
+ export { preventBrowserZoomInContainers } from './views/hooks/prevent-browser-zoom';
117
122
  export * from './views/index';
118
123
  export { type INotificationOptions } from './views/notification/Notification';
119
124
  export { ProgressBar } from './views/progress-bar/ProgressBar';
@@ -53,8 +53,6 @@ declare const locale: {
53
53
  3: string;
54
54
  4: string;
55
55
  5: string;
56
- 6: string;
57
- tooltip: string;
58
56
  };
59
57
  };
60
58
  ribbon: {
@@ -74,19 +72,6 @@ declare const locale: {
74
72
  };
75
73
  fontFamily: {
76
74
  'not-supported': string;
77
- arial: string;
78
- 'times-new-roman': string;
79
- tahoma: string;
80
- verdana: string;
81
- 'microsoft-yahei': string;
82
- simsun: string;
83
- simhei: string;
84
- kaiti: string;
85
- fangsong: string;
86
- nsimsun: string;
87
- stxinwei: string;
88
- stxingkai: string;
89
- stliti: string;
90
75
  };
91
76
  'shortcut-panel': {
92
77
  title: string;
@@ -120,22 +105,10 @@ declare const locale: {
120
105
  content: string;
121
106
  };
122
107
  };
123
- textEditor: {
124
- formulaError: string;
125
- rangeError: string;
126
- };
127
108
  rangeSelector: {
128
- title: string;
129
- addAnotherRange: string;
130
- buttonTooltip: string;
131
- placeHolder: string;
132
- confirm: string;
133
109
  cancel: string;
134
110
  };
135
111
  'global-shortcut': string;
136
- 'zoom-slider': {
137
- resetTo: string;
138
- };
139
112
  row: string;
140
113
  column: string;
141
114
  };
@@ -29,6 +29,8 @@ export interface IPopup<T = Record<string, unknown>> extends Omit<IRectPopupProp
29
29
  subUnitId: string;
30
30
  offset?: [number, number];
31
31
  canvasElement: HTMLCanvasElement;
32
+ /** Clamp popup placement to the visible canvas boundary instead of the viewport. */
33
+ constrainToCanvas?: boolean;
32
34
  hideOnInvisible?: boolean;
33
35
  hiddenType?: 'hide' | 'destroy';
34
36
  hiddenRects$?: Observable<IBoundRectNoAngle[]>;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { IDisposable, UniverInstanceType } from '@univerjs/core';
17
+ import type { Observable } from 'rxjs';
18
+ import { Disposable } from '@univerjs/core';
19
+ export interface IUnitPresencePoint {
20
+ x: number;
21
+ y: number;
22
+ }
23
+ export interface ILocalUnitPresenceState {
24
+ unitId: string;
25
+ subUnitId: string;
26
+ selectedIds: readonly string[];
27
+ focusedId: string | null;
28
+ pointer: IUnitPresencePoint | null;
29
+ shareInterval: number;
30
+ }
31
+ export interface IRemoteUnitPresenceState extends Omit<ILocalUnitPresenceState, 'shareInterval'> {
32
+ memberId: string;
33
+ color: string;
34
+ name: string;
35
+ }
36
+ export interface IUnitPresenceUIAdapter {
37
+ readonly unitType: UniverInstanceType;
38
+ readonly presenceKind: string;
39
+ readonly active$: Observable<boolean>;
40
+ readonly localPresence$: Observable<ILocalUnitPresenceState>;
41
+ activate(): IDisposable;
42
+ isActive(): boolean;
43
+ getLocalPresence(unitId: string): ILocalUnitPresenceState | null;
44
+ getRemotePresences$(unitId: string): Observable<ReadonlyMap<string, IRemoteUnitPresenceState>>;
45
+ setRemotePresence(state: IRemoteUnitPresenceState): void;
46
+ removeRemotePresence(unitId: string, memberId: string): void;
47
+ clearRemotePresences(unitId: string): void;
48
+ readonly statusUIPart?: string;
49
+ }
50
+ export interface IUnitPresenceUIAdapterRegistry {
51
+ readonly adapters$: Observable<readonly IUnitPresenceUIAdapter[]>;
52
+ register(adapter: IUnitPresenceUIAdapter): IDisposable;
53
+ get(unitType: UniverInstanceType): IUnitPresenceUIAdapter | null;
54
+ getAll(): readonly IUnitPresenceUIAdapter[];
55
+ }
56
+ export declare const IUnitPresenceUIAdapterRegistry: import("@wendellhu/redi").IdentifierDecorator<IUnitPresenceUIAdapterRegistry>;
57
+ export declare class UnitPresenceUIAdapterRegistry extends Disposable implements IUnitPresenceUIAdapterRegistry {
58
+ private readonly _adapters;
59
+ private readonly _adapters$;
60
+ readonly adapters$: Observable<readonly IUnitPresenceUIAdapter[]>;
61
+ dispose(): void;
62
+ register(adapter: IUnitPresenceUIAdapter): IDisposable;
63
+ get(unitType: UniverInstanceType): IUnitPresenceUIAdapter | null;
64
+ getAll(): readonly IUnitPresenceUIAdapter[];
65
+ private _emitAdapters;
66
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { IUndoRedoService } from '@univerjs/core';
17
+ export declare class UndoRedoGroupService {
18
+ private readonly _undoRedoService;
19
+ private readonly _sessions;
20
+ constructor(_undoRedoService: Pick<IUndoRedoService, 'beginUndoRedoGroup'>);
21
+ run<T>(unitId: string, action: () => T, mode?: 'replace' | 'append'): T;
22
+ createRunner(unitId: string, mode?: 'replace' | 'append'): <T>(action: () => T) => T;
23
+ runTimed<T>(unitId: string, scope: string, action: () => T, mode?: 'replace' | 'append'): T;
24
+ private _run;
25
+ }
@@ -13,18 +13,25 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IDisposable } from '@univerjs/core';
16
+ import type { IDisposable, UniverInstanceType } from '@univerjs/core';
17
17
  import type { Observable } from 'rxjs';
18
- import { Disposable } from '@univerjs/core';
18
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
19
19
  export interface IWorkbenchService {
20
+ readonly rootUnitType$: Observable<UniverInstanceType | null>;
20
21
  readonly skeletonVisible$: Observable<boolean>;
21
22
  acquireSkeleton(): IDisposable;
22
23
  }
23
24
  export declare const IWorkbenchService: import("@wendellhu/redi").IdentifierDecorator<IWorkbenchService>;
24
25
  export declare class WorkbenchService extends Disposable implements IWorkbenchService {
25
26
  private readonly _tokens;
27
+ private readonly _subscriptions;
28
+ private _rootUnitId;
29
+ private readonly _rootUnitType$;
26
30
  private readonly _skeletonVisible$;
31
+ readonly rootUnitType$: Observable<UniverInstanceType | null>;
27
32
  readonly skeletonVisible$: Observable<boolean>;
33
+ constructor(univerInstanceService: IUniverInstanceService);
34
+ private _setRootUnit;
28
35
  acquireSkeleton(): IDisposable;
29
36
  dispose(): void;
30
37
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const HOVER_TRACK_HOST_CLASS_NAME = "univer-group/hover-track";
17
+ export declare function HoverTrack(props: {
18
+ className?: string;
19
+ }): import("react").JSX.Element;
@@ -13,8 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { Nullable } from '@univerjs/core';
17
- import type { ReactNode, RefObject } from 'react';
16
+ import type { MouseEventHandler, ReactNode, RefObject } from 'react';
18
17
  import type { Observable } from 'rxjs';
19
18
  interface IAbsolutePosition {
20
19
  left: number;
@@ -29,15 +28,15 @@ export interface IRectPopupProps {
29
28
  * the anchor element bounding rect
30
29
  */
31
30
  anchorRect$: Observable<IAbsolutePosition>;
32
- excludeRects?: RefObject<Nullable<IAbsolutePosition[]>>;
31
+ excludeRects?: RefObject<IAbsolutePosition[] | null | undefined | void>;
33
32
  direction?: RectPopupDirection;
34
33
  hidden?: boolean;
35
34
  onClickOutside?: (e: MouseEvent) => void;
36
35
  excludeOutside?: HTMLElement[];
37
36
  onContextMenu?: () => void;
38
- onPointerEnter?: (e: React.MouseEvent<HTMLElement>) => void;
39
- onPointerLeave?: (e: React.MouseEvent<HTMLElement>) => void;
40
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
37
+ onPointerEnter?: MouseEventHandler<HTMLElement>;
38
+ onPointerLeave?: MouseEventHandler<HTMLElement>;
39
+ onClick?: MouseEventHandler<HTMLElement>;
41
40
  portal?: boolean;
42
41
  mask?: boolean;
43
42
  zIndex?: number;
@@ -45,11 +44,18 @@ export interface IRectPopupProps {
45
44
  onMaskClick?: () => void;
46
45
  noPushMinimumGap?: boolean;
47
46
  autoRelayout?: boolean;
47
+ boundaryElement?: Element;
48
+ boundaryInsets?: {
49
+ left?: number;
50
+ top?: number;
51
+ };
48
52
  }
49
- export interface IPopupLayoutInfo extends Pick<IRectPopupProps, 'direction'> {
53
+ export interface IPopupLayoutInfo extends Pick<IRectPopupProps, 'boundaryInsets' | 'direction'> {
50
54
  position: IAbsolutePosition;
51
55
  width: number;
52
56
  height: number;
57
+ containerLeft?: number;
58
+ containerTop?: number;
53
59
  containerWidth: number;
54
60
  containerHeight: number;
55
61
  noPushMinimumGap?: boolean;
@@ -61,5 +67,6 @@ declare namespace RectPopup {
61
67
  left: number;
62
68
  };
63
69
  var useContext: () => RefObject<IAbsolutePosition | undefined>;
70
+ var useDirection: () => RectPopupDirection;
64
71
  }
65
72
  export { RectPopup };
@@ -39,7 +39,7 @@ export interface IBaseToolbarButtonProps {
39
39
  onMouseEnter?: React.MouseEventHandler;
40
40
  onMouseLeave?: React.MouseEventHandler;
41
41
  }
42
- export declare const toolbarButtonClassName = "\nuniver-box-border univer-flex univer-h-6 univer-min-w-6 univer-cursor-pointer univer-items-center\nuniver-justify-center univer-rounded univer-border-none univer-bg-transparent univer-p-0\nuniver-text-gray-900 univer-outline-none univer-transition-colors univer-animate-in univer-fade-in\ndark:!univer-text-white dark:hover:!univer-bg-gray-700 dark:disabled:!univer-text-gray-600\ndisabled:univer-cursor-not-allowed disabled:univer-text-gray-300 disabled:hover:univer-bg-transparent\nhover:univer-bg-gray-100 whitespace-nowrap univer-w-max\n";
42
+ export declare const toolbarButtonClassName = "\nuniver-box-border univer-flex univer-h-6 univer-min-w-6 univer-cursor-pointer univer-items-center\nuniver-justify-center univer-rounded univer-border-none univer-bg-transparent univer-p-0\nuniver-text-gray-900 univer-outline-none univer-transition-colors univer-animate-in univer-fade-in\ndark:!univer-text-gray-0 dark:hover:!univer-bg-gray-700 dark:disabled:!univer-text-gray-600\ndisabled:univer-cursor-not-allowed disabled:univer-text-gray-300 disabled:hover:univer-bg-transparent\nhover:univer-bg-gray-100 whitespace-nowrap univer-w-max\n";
43
43
  export declare const toolbarButtonVariants: (props?: ({
44
44
  noIcon?: boolean | null | undefined;
45
45
  active?: boolean | null | undefined;
@@ -22,6 +22,7 @@ type IToolbarItemProps = IDisplayMenuItem<IMenuItem> & {
22
22
  iconSize?: number;
23
23
  iconColor?: string;
24
24
  fullWidth?: boolean;
25
+ preserveStrokeWidth?: boolean;
25
26
  };
26
27
  export declare const ToolbarItem: import("react").ForwardRefExoticComponent<IToolbarItemProps & import("react").RefAttributes<ITooltipWrapperRef>>;
27
28
  export {};
@@ -19,6 +19,14 @@ import type { IMenuItem, IValueOption } from '../../../services/menu/menu';
19
19
  export interface ITooltipWrapperRef {
20
20
  el: HTMLSpanElement | null;
21
21
  }
22
+ export interface IToolbarTooltipProps extends Omit<ITooltipProps, 'visible' | 'onVisibleChange'> {
23
+ popupOpen: boolean;
24
+ }
25
+ /**
26
+ * Keeps toolbar tooltips controlled while a related popup opens and closes.
27
+ * The tooltip stays hidden after the popup closes until a new hover or focus interaction occurs.
28
+ */
29
+ export declare function ToolbarTooltip(props: IToolbarTooltipProps): import("react").JSX.Element;
22
30
  export declare function ToolbarDropdownProvider(props: {
23
31
  children: ReactNode;
24
32
  }): import("react").JSX.Element;
@@ -29,18 +37,20 @@ export declare function DropdownWrapper(props: Omit<Partial<IDropdownProps>, 'ov
29
37
  overlay: ReactNode;
30
38
  align?: 'start' | 'end' | 'center';
31
39
  }): import("react").JSX.Element;
32
- export declare function DropdownMenuLabel({ icon, value, option, onOptionSelect }: {
40
+ export declare function DropdownMenuLabel({ icon, value, option, preserveStrokeWidth, onOptionSelect }: {
33
41
  icon?: IMenuItem['icon'];
34
42
  value?: string | number;
35
43
  option: IValueOption;
44
+ preserveStrokeWidth?: boolean;
36
45
  onOptionSelect?: (option: IValueOption) => void;
37
46
  }): import("react").JSX.Element;
38
- export declare function DropdownMenuWrapper({ menuId, slot, value, options, children, disabled, onOptionSelect, }: {
47
+ export declare function DropdownMenuWrapper({ menuId, slot, value, options, children, disabled, preserveStrokeWidth, onOptionSelect, }: {
39
48
  menuId: string;
40
49
  slot?: boolean;
41
50
  value?: string | number;
42
51
  options: IValueOption[];
43
52
  children: ReactNode;
44
53
  disabled?: boolean;
54
+ preserveStrokeWidth?: boolean;
45
55
  onOptionSelect: (option: IValueOption) => void;
46
56
  }): import("react").JSX.Element;
@@ -19,6 +19,7 @@ import type { IMenuSelectorItem } from '../../services/menu/menu';
19
19
  export type ICustomLabelProps<T = undefined> = {
20
20
  className?: string;
21
21
  iconSize?: number;
22
+ preserveStrokeWidth?: boolean;
22
23
  value?: string | number | undefined;
23
24
  value$?: Observable<T>;
24
25
  onChange?(v: string | number): void;