@univerjs-pro/embed-ui 1.0.0-insiders.20260709-5fcadb2

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 (201) hide show
  1. package/README.md +45 -0
  2. package/lib/cjs/index.js +1 -0
  3. package/lib/cjs/locale/ar-SA.js +1 -0
  4. package/lib/cjs/locale/ca-ES.js +1 -0
  5. package/lib/cjs/locale/de-DE.js +1 -0
  6. package/lib/cjs/locale/en-US.js +1 -0
  7. package/lib/cjs/locale/es-ES.js +1 -0
  8. package/lib/cjs/locale/fa-IR.js +1 -0
  9. package/lib/cjs/locale/fr-FR.js +1 -0
  10. package/lib/cjs/locale/id-ID.js +1 -0
  11. package/lib/cjs/locale/it-IT.js +1 -0
  12. package/lib/cjs/locale/ja-JP.js +1 -0
  13. package/lib/cjs/locale/ko-KR.js +1 -0
  14. package/lib/cjs/locale/pl-PL.js +1 -0
  15. package/lib/cjs/locale/pt-BR.js +1 -0
  16. package/lib/cjs/locale/ru-RU.js +1 -0
  17. package/lib/cjs/locale/sheets-floating.js +1 -0
  18. package/lib/cjs/locale/sk-SK.js +1 -0
  19. package/lib/cjs/locale/vi-VN.js +1 -0
  20. package/lib/cjs/locale/zh-CN.js +1 -0
  21. package/lib/cjs/locale/zh-HK.js +1 -0
  22. package/lib/cjs/locale/zh-TW.js +1 -0
  23. package/lib/es/index.js +1 -0
  24. package/lib/es/locale/ar-SA.js +1 -0
  25. package/lib/es/locale/ca-ES.js +1 -0
  26. package/lib/es/locale/de-DE.js +1 -0
  27. package/lib/es/locale/en-US.js +1 -0
  28. package/lib/es/locale/es-ES.js +1 -0
  29. package/lib/es/locale/fa-IR.js +1 -0
  30. package/lib/es/locale/fr-FR.js +1 -0
  31. package/lib/es/locale/id-ID.js +1 -0
  32. package/lib/es/locale/it-IT.js +1 -0
  33. package/lib/es/locale/ja-JP.js +1 -0
  34. package/lib/es/locale/ko-KR.js +1 -0
  35. package/lib/es/locale/pl-PL.js +1 -0
  36. package/lib/es/locale/pt-BR.js +1 -0
  37. package/lib/es/locale/ru-RU.js +1 -0
  38. package/lib/es/locale/sheets-floating.js +1 -0
  39. package/lib/es/locale/sk-SK.js +1 -0
  40. package/lib/es/locale/vi-VN.js +1 -0
  41. package/lib/es/locale/zh-CN.js +1 -0
  42. package/lib/es/locale/zh-HK.js +1 -0
  43. package/lib/es/locale/zh-TW.js +1 -0
  44. package/lib/index.css +1135 -0
  45. package/lib/index.js +1 -0
  46. package/lib/locale/ar-SA.js +1 -0
  47. package/lib/locale/ca-ES.js +1 -0
  48. package/lib/locale/de-DE.js +1 -0
  49. package/lib/locale/en-US.js +1 -0
  50. package/lib/locale/es-ES.js +1 -0
  51. package/lib/locale/fa-IR.js +1 -0
  52. package/lib/locale/fr-FR.js +1 -0
  53. package/lib/locale/id-ID.js +1 -0
  54. package/lib/locale/it-IT.js +1 -0
  55. package/lib/locale/ja-JP.js +1 -0
  56. package/lib/locale/ko-KR.js +1 -0
  57. package/lib/locale/pl-PL.js +1 -0
  58. package/lib/locale/pt-BR.js +1 -0
  59. package/lib/locale/ru-RU.js +1 -0
  60. package/lib/locale/sheets-floating.js +1 -0
  61. package/lib/locale/sk-SK.js +1 -0
  62. package/lib/locale/vi-VN.js +1 -0
  63. package/lib/locale/zh-CN.js +1 -0
  64. package/lib/locale/zh-HK.js +1 -0
  65. package/lib/locale/zh-TW.js +1 -0
  66. package/lib/types/common/const.d.ts +17 -0
  67. package/lib/types/common/embed-float-interaction-policy.d.ts +28 -0
  68. package/lib/types/common/embed-host-chrome-policy.d.ts +34 -0
  69. package/lib/types/common/embed-runtime-policy.d.ts +28 -0
  70. package/lib/types/common/embed-runtime-slots.d.ts +24 -0
  71. package/lib/types/common/tab-peer-workbench.d.ts +21 -0
  72. package/lib/types/components/EmbedFloatDomRenderer.d.ts +56 -0
  73. package/lib/types/components/EmbedFloatFullscreenButton.d.ts +31 -0
  74. package/lib/types/components/EmbedHostToolbarMenu.d.ts +52 -0
  75. package/lib/types/components/EmbedRuntimeProviders.d.ts +24 -0
  76. package/lib/types/config/config.d.ts +25 -0
  77. package/lib/types/controllers/docs-table-passive-wheel-bridge.controller.d.ts +7 -0
  78. package/lib/types/controllers/embed-host-anchor-cleanup.controller.d.ts +22 -0
  79. package/lib/types/controllers/embed-host-ribbon-override.controller.d.ts +29 -0
  80. package/lib/types/index.d.ts +71 -0
  81. package/lib/types/locale/ar-SA.d.ts +18 -0
  82. package/lib/types/locale/ca-ES.d.ts +18 -0
  83. package/lib/types/locale/de-DE.d.ts +18 -0
  84. package/lib/types/locale/en-US.d.ts +70 -0
  85. package/lib/types/locale/es-ES.d.ts +18 -0
  86. package/lib/types/locale/fa-IR.d.ts +18 -0
  87. package/lib/types/locale/fr-FR.d.ts +18 -0
  88. package/lib/types/locale/id-ID.d.ts +18 -0
  89. package/lib/types/locale/it-IT.d.ts +18 -0
  90. package/lib/types/locale/ja-JP.d.ts +18 -0
  91. package/lib/types/locale/ko-KR.d.ts +18 -0
  92. package/lib/types/locale/pl-PL.d.ts +18 -0
  93. package/lib/types/locale/pt-BR.d.ts +18 -0
  94. package/lib/types/locale/ru-RU.d.ts +18 -0
  95. package/lib/types/locale/sheets-floating.d.ts +62 -0
  96. package/lib/types/locale/sk-SK.d.ts +18 -0
  97. package/lib/types/locale/types.d.ts +18 -0
  98. package/lib/types/locale/vi-VN.d.ts +18 -0
  99. package/lib/types/locale/zh-CN.d.ts +18 -0
  100. package/lib/types/locale/zh-HK.d.ts +18 -0
  101. package/lib/types/locale/zh-TW.d.ts +18 -0
  102. package/lib/types/plugin.d.ts +38 -0
  103. package/lib/types/product-menus/docs-product-menus.d.ts +17 -0
  104. package/lib/types/products/bases/EmbedChildView.d.ts +13 -0
  105. package/lib/types/products/bases/EmbedChildView.spec.d.ts +1 -0
  106. package/lib/types/products/bases/EmbedFloatingMenu.d.ts +37 -0
  107. package/lib/types/products/bases/embed-block.d.ts +2 -0
  108. package/lib/types/products/bases/embed-content-size.d.ts +9 -0
  109. package/lib/types/products/bases/embed-host-adapter.d.ts +6 -0
  110. package/lib/types/products/bases/embed-passive-viewport.d.ts +3 -0
  111. package/lib/types/products/bases/register.d.ts +13 -0
  112. package/lib/types/products/docs/EmbedDocsCustomBlockRenderer.d.ts +54 -0
  113. package/lib/types/products/docs/EmbedFloatingMenu.d.ts +29 -0
  114. package/lib/types/products/docs/embed-block.d.ts +18 -0
  115. package/lib/types/products/docs/embed-docs-custom-block-bleed.render-controller.d.ts +40 -0
  116. package/lib/types/products/docs/embed-host-adapter.d.ts +21 -0
  117. package/lib/types/products/docs/embed-passive-viewport.d.ts +18 -0
  118. package/lib/types/products/docs/register.d.ts +17 -0
  119. package/lib/types/products/product-ui-contributions.d.ts +2 -0
  120. package/lib/types/products/sheets/EmbedBlock.d.ts +23 -0
  121. package/lib/types/products/sheets/EmbedFloatingMenu.d.ts +79 -0
  122. package/lib/types/products/sheets/embed-content-size.d.ts +17 -0
  123. package/lib/types/products/sheets/embed-host-adapter.d.ts +20 -0
  124. package/lib/types/products/sheets/embed-passive-viewport.d.ts +18 -0
  125. package/lib/types/products/sheets/embed-product-menu.d.ts +36 -0
  126. package/lib/types/products/sheets/register.d.ts +43 -0
  127. package/lib/types/products/slides/EmbedChildView.d.ts +3 -0
  128. package/lib/types/products/slides/components/embed-floating-menu/SlideEmbedFloatingMenu.d.ts +28 -0
  129. package/lib/types/products/slides/components/embed-floating-preview/SlideEmbedFloatingPreview.d.ts +24 -0
  130. package/lib/types/products/slides/embed-block.d.ts +2 -0
  131. package/lib/types/products/slides/embed-floating-menu-stage.d.ts +8 -0
  132. package/lib/types/products/slides/embed-floating-menu.d.ts +5 -0
  133. package/lib/types/products/slides/embed-host-adapter.d.ts +7 -0
  134. package/lib/types/products/slides/embed-passive-viewport.d.ts +2 -0
  135. package/lib/types/products/slides/register.d.ts +13 -0
  136. package/lib/types/products/slides/services/EmbedSlideReadonlyPreviewProvider.d.ts +15 -0
  137. package/lib/types/products/slides/services/embed-slide-float-preview.provider.d.ts +34 -0
  138. package/lib/types/services/embed-activation.service.d.ts +59 -0
  139. package/lib/types/services/embed-block-contribution-factory.d.ts +32 -0
  140. package/lib/types/services/embed-block-registry.service.d.ts +23 -0
  141. package/lib/types/services/embed-child-product-plugin-lease.d.ts +30 -0
  142. package/lib/types/services/embed-child-product-plugin-registry.service.d.ts +55 -0
  143. package/lib/types/services/embed-child-runtime-scope.d.ts +22 -0
  144. package/lib/types/services/embed-child-unit-scoped-injector.d.ts +21 -0
  145. package/lib/types/services/embed-child-view-registry.service.d.ts +23 -0
  146. package/lib/types/services/embed-content-size-registry.service.d.ts +24 -0
  147. package/lib/types/services/embed-default-floating-menu.d.ts +19 -0
  148. package/lib/types/services/embed-docs-sticky-wheel.d.ts +17 -0
  149. package/lib/types/services/embed-dom-passive-viewport-provider.d.ts +23 -0
  150. package/lib/types/services/embed-float-preview.service.d.ts +44 -0
  151. package/lib/types/services/embed-floating-active.service.d.ts +26 -0
  152. package/lib/types/services/embed-floating-geometry.service.d.ts +37 -0
  153. package/lib/types/services/embed-floating-menu-registry.service.d.ts +26 -0
  154. package/lib/types/services/embed-floating-menu-root.d.ts +17 -0
  155. package/lib/types/services/embed-fullscreen.service.d.ts +27 -0
  156. package/lib/types/services/embed-host-container-registry.service.d.ts +26 -0
  157. package/lib/types/services/embed-host-menu-override.service.d.ts +29 -0
  158. package/lib/types/services/embed-host-restore.service.d.ts +34 -0
  159. package/lib/types/services/embed-interaction-boundary.service.d.ts +57 -0
  160. package/lib/types/services/embed-mount.service.d.ts +68 -0
  161. package/lib/types/services/embed-overlay-root.service.d.ts +37 -0
  162. package/lib/types/services/embed-passive-viewport-registry.service.d.ts +24 -0
  163. package/lib/types/services/embed-passive-wheel-handler-registry.service.d.ts +24 -0
  164. package/lib/types/services/embed-product-floating-menu-contributions.d.ts +17 -0
  165. package/lib/types/services/embed-product-menu-mounting.d.ts +33 -0
  166. package/lib/types/services/embed-product-menu-registry.service.d.ts +29 -0
  167. package/lib/types/services/embed-readonly-preview-registry.service.d.ts +23 -0
  168. package/lib/types/services/embed-render-canvas-preview-provider.d.ts +23 -0
  169. package/lib/types/services/embed-render-child-view-contribution.d.ts +76 -0
  170. package/lib/types/services/embed-runtime-focus-coordinator.service.d.ts +91 -0
  171. package/lib/types/services/embed-runtime-policy.service.d.ts +43 -0
  172. package/lib/types/services/embed-runtime-scope-dom.d.ts +30 -0
  173. package/lib/types/services/embed-scene-canvas-capture.service.d.ts +39 -0
  174. package/lib/types/services/embed-scene-passive-wheel.d.ts +36 -0
  175. package/lib/types/services/embed-screenshot.service.d.ts +16 -0
  176. package/lib/types/services/embed-ui-contribution-register.d.ts +20 -0
  177. package/lib/types/services/embed-undo-bridge.service.d.ts +29 -0
  178. package/lib/types/services/react-root-disposal.d.ts +21 -0
  179. package/lib/types/types/embed-ui.d.ts +307 -0
  180. package/lib/umd/index.js +1 -0
  181. package/lib/umd/locale/ar-SA.js +1 -0
  182. package/lib/umd/locale/ca-ES.js +1 -0
  183. package/lib/umd/locale/de-DE.js +1 -0
  184. package/lib/umd/locale/en-US.js +1 -0
  185. package/lib/umd/locale/es-ES.js +1 -0
  186. package/lib/umd/locale/fa-IR.js +1 -0
  187. package/lib/umd/locale/fr-FR.js +1 -0
  188. package/lib/umd/locale/id-ID.js +1 -0
  189. package/lib/umd/locale/it-IT.js +1 -0
  190. package/lib/umd/locale/ja-JP.js +1 -0
  191. package/lib/umd/locale/ko-KR.js +1 -0
  192. package/lib/umd/locale/pl-PL.js +1 -0
  193. package/lib/umd/locale/pt-BR.js +1 -0
  194. package/lib/umd/locale/ru-RU.js +1 -0
  195. package/lib/umd/locale/sheets-floating.js +1 -0
  196. package/lib/umd/locale/sk-SK.js +1 -0
  197. package/lib/umd/locale/vi-VN.js +1 -0
  198. package/lib/umd/locale/zh-CN.js +1 -0
  199. package/lib/umd/locale/zh-HK.js +1 -0
  200. package/lib/umd/locale/zh-TW.js +1 -0
  201. package/package.json +110 -0
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,70 @@
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
+ declare const locale: {
17
+ 'embed-ui': {
18
+ fullscreen: {
19
+ exit: string;
20
+ };
21
+ sheetsFloating: {
22
+ toolbar: {
23
+ formatPainter: string;
24
+ font: string;
25
+ fontSize: string;
26
+ bold: string;
27
+ resetColor: string;
28
+ textColor: {
29
+ main: string;
30
+ };
31
+ fillColor: {
32
+ main: string;
33
+ };
34
+ border: {
35
+ main: string;
36
+ };
37
+ mergeCell: {
38
+ main: string;
39
+ };
40
+ horizontalAlignMode: {
41
+ main: string;
42
+ };
43
+ verticalAlignMode: {
44
+ main: string;
45
+ };
46
+ textWrapMode: {
47
+ main: string;
48
+ };
49
+ };
50
+ align: {
51
+ left: string;
52
+ center: string;
53
+ right: string;
54
+ top: string;
55
+ middle: string;
56
+ bottom: string;
57
+ };
58
+ borderLine: {
59
+ borderColor: string;
60
+ borderSize: string;
61
+ };
62
+ textWrap: {
63
+ overflow: string;
64
+ wrap: string;
65
+ clip: string;
66
+ };
67
+ };
68
+ };
69
+ };
70
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,62 @@
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 enUSSheetsFloatingLocale: {
17
+ toolbar: {
18
+ formatPainter: string;
19
+ font: string;
20
+ fontSize: string;
21
+ bold: string;
22
+ resetColor: string;
23
+ textColor: {
24
+ main: string;
25
+ };
26
+ fillColor: {
27
+ main: string;
28
+ };
29
+ border: {
30
+ main: string;
31
+ };
32
+ mergeCell: {
33
+ main: string;
34
+ };
35
+ horizontalAlignMode: {
36
+ main: string;
37
+ };
38
+ verticalAlignMode: {
39
+ main: string;
40
+ };
41
+ textWrapMode: {
42
+ main: string;
43
+ };
44
+ };
45
+ align: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ top: string;
50
+ middle: string;
51
+ bottom: string;
52
+ };
53
+ borderLine: {
54
+ borderColor: string;
55
+ borderSize: string;
56
+ };
57
+ textWrap: {
58
+ overflow: string;
59
+ wrap: string;
60
+ clip: string;
61
+ };
62
+ };
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 { LocaleLeafKeys } from '@univerjs/core';
17
+ import type enUS from './en-US';
18
+ export type LocaleKey = LocaleLeafKeys<typeof enUS>;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,18 @@
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 enUS from './en-US';
17
+ declare const locale: typeof enUS;
18
+ export default locale;
@@ -0,0 +1,38 @@
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 { IUniverEmbedUIPluginConfig } from './config/config';
17
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
18
+ export declare class UniverEmbedUIPlugin extends Plugin {
19
+ private readonly _config;
20
+ protected readonly _injector: Injector;
21
+ private readonly _configService;
22
+ static pluginName: string;
23
+ static packageName: string;
24
+ static version: string;
25
+ static type: UniverInstanceType;
26
+ constructor(_config: Partial<IUniverEmbedUIPluginConfig> | undefined, _injector: Injector, _configService: IConfigService);
27
+ onStarting(): void;
28
+ onReady(): void;
29
+ private _registerServices;
30
+ private _registerProductMenus;
31
+ private _registerDefaultProductUIPlugins;
32
+ private _registerProductUIContributions;
33
+ private _flushPendingContributions;
34
+ private _registerFloatingMenus;
35
+ private _touchServices;
36
+ private _registerDefaultHostToolbar;
37
+ private _enableEmbedUnitLeasePolicy;
38
+ }
@@ -0,0 +1,17 @@
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, Injector } from '@univerjs/core';
17
+ export declare function registerDefaultEmbedProductMenus(injector: Injector): IDisposable[];
@@ -0,0 +1,13 @@
1
+ import type { IUniverBaseUIConfig } from '@univerjs-pro/bases-ui';
2
+ import type { BaseDataModel, Injector } from '@univerjs/core';
3
+ import type { IEmbedChildContainerContext, IEmbedChildViewContribution } from '../../types/embed-ui';
4
+ import { BaseEditorService, BaseUIPopupService, BaseUIStateService, IBaseUIPopupService, IBaseViewWheelScrollService } from '@univerjs-pro/bases-ui';
5
+ export type BaseEmbedChromeMode = 'workbench' | 'content-only' | 'fullscreen';
6
+ export declare function createBasesEmbedChildViewContribution(): IEmbedChildViewContribution;
7
+ export declare function isBaseCanvasRootReady(canvasRoot: HTMLElement | null): canvasRoot is HTMLElement;
8
+ export declare function shouldActivateBasesEmbedRender(_context: Pick<IEmbedChildContainerContext, 'renderScope'>): boolean;
9
+ export declare function createBasesEmbedChildUnitScopedInjector(context: IEmbedChildContainerContext, baseStateService: BaseUIStateService, basePopupService: IBaseUIPopupService, baseEditorService: BaseEditorService): Injector | undefined;
10
+ export declare function initializeBasesEmbedState(stateService: BaseUIStateService, childUnit: BaseDataModel, chromeMode?: BaseEmbedChromeMode): void;
11
+ export declare function resolveBasesEmbedChromeMode(context: Pick<IEmbedChildContainerContext, 'renderScope'>): BaseEmbedChromeMode;
12
+ export declare function createBasesEmbedScopedInjector(rootInjector: Injector, childScopedInjector: Injector, baseStateService: BaseUIStateService, basePopupService?: BaseUIPopupService, baseEditorService?: BaseEditorService, chromeMode?: BaseEmbedChromeMode, baseWheelScrollService?: IBaseViewWheelScrollService, readOnly?: boolean, globalPortalContainer?: HTMLElement | null): Injector;
13
+ export declare function resolveEmbeddedBaseUIConfig(baseConfig: IUniverBaseUIConfig, chromeMode?: BaseEmbedChromeMode): IUniverBaseUIConfig;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { IBaseToolbarState } from '@univerjs-pro/bases-ui';
2
+ import type { BaseDataModel, IViewSnapshot } from '@univerjs/core';
3
+ import type { IEmbedFloatingMenuContribution, IEmbedFloatingMenuMountContext } from '../../types/embed-ui';
4
+ export declare const BASE_EMBED_VIEW_PANEL_WIDTH = 208;
5
+ export declare function createBasesFloatingMenuContributions(): IEmbedFloatingMenuContribution[];
6
+ export declare function resolveBasesFloatingMenuRoot(context: Pick<IEmbedFloatingMenuMountContext, 'renderScope' | 'runtimeScope'>): HTMLElement;
7
+ export declare function resolveBasesFloatingMenuStage(params: {
8
+ embedId: string;
9
+ activeEmbedId: string | null | undefined;
10
+ stage: string | null | undefined;
11
+ fullscreen?: boolean;
12
+ usesDomFloatingStage: boolean;
13
+ renderScopeActive: boolean;
14
+ }): 'inactive' | 'stage2';
15
+ export declare function resolveBasesFloatingMenuClassName(params: {
16
+ entry: string;
17
+ fullscreen: boolean;
18
+ stage: 'inactive' | 'stage2';
19
+ }): string;
20
+ export declare function shouldUseBaseFullscreenToolbar(fullscreen: boolean): boolean;
21
+ export declare function shouldUseBaseFullscreenViewTabs(fullscreen: boolean): boolean;
22
+ export declare function shouldShowBaseEmbedRemoveButton(fullscreen: boolean): boolean;
23
+ export declare function createBaseEmbedFloatingMenuBoundaryAttributes(embedId: string): Record<string, string>;
24
+ export declare function createBaseFloatingToolbarState(view: IViewSnapshot, undoRedoStatus?: {
25
+ undos?: number;
26
+ redos?: number;
27
+ }): IBaseToolbarState;
28
+ export declare function createBaseFullscreenTableSidebarItems(snapshot: ReturnType<BaseDataModel['getSnapshot']> | undefined, activeTableId: string | null | undefined): {
29
+ id: string;
30
+ name: string;
31
+ active: boolean;
32
+ }[];
33
+ export declare function viewPanelStyle(anchor: DOMRect): {
34
+ top: number;
35
+ left: number;
36
+ maxHeight: number;
37
+ };
@@ -0,0 +1,2 @@
1
+ import type { IEmbedBlockContribution } from '../../types/embed-ui';
2
+ export declare function createBasesEmbedBlockContribution(): IEmbedBlockContribution;
@@ -0,0 +1,9 @@
1
+ import type { IEmbedContentSizeProvider } from '../../types/embed-ui';
2
+ interface BaseContentSizeActiveState {
3
+ activeTableId?: string;
4
+ activeViewId?: string;
5
+ }
6
+ export declare function createBasesContentSizeProvider(baseUIStateService?: {
7
+ getState?: () => BaseContentSizeActiveState | undefined;
8
+ }): IEmbedContentSizeProvider;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { IUniverInstanceService } from '@univerjs/core';
2
+ import type { EmbedHostAnchorModelService, IEmbedHostAdapterContribution } from '@univerjs-pro/embed';
3
+ import type { IEmbedHostContainerContribution } from '../../types/embed-ui';
4
+ import type { IBaseUIStateService } from '@univerjs-pro/bases-ui';
5
+ export declare function createBasesTableListBlockUIHostAdapterContribution(anchorModelService?: EmbedHostAnchorModelService, univerInstanceService?: IUniverInstanceService, baseUIStateService?: IBaseUIStateService | (() => IBaseUIStateService | undefined)): IEmbedHostAdapterContribution;
6
+ export declare function createBasesTableListBlockHostContainerContribution(): IEmbedHostContainerContribution;
@@ -0,0 +1,3 @@
1
+ import type { Injector } from '@univerjs/core';
2
+ import type { IEmbedPassiveViewportProvider } from '../../types/embed-ui';
3
+ export declare function createBasesPassiveViewportProvider(rootInjector: Injector): IEmbedPassiveViewportProvider;