@univerjs/ui 0.1.9 → 0.1.11

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 (60) hide show
  1. package/lib/cjs/index.js +14 -14
  2. package/lib/es/index.js +3632 -3532
  3. package/lib/types/common/component-manager.d.ts +2 -2
  4. package/lib/types/common/menu-hidden-observable.d.ts +2 -2
  5. package/lib/types/components/custom-label/CustomLabel.d.ts +2 -2
  6. package/lib/types/components/editor/TextEditor.d.ts +2 -2
  7. package/lib/types/components/font-family/FontFamily.d.ts +1 -1
  8. package/lib/types/components/font-family/FontFamilyItem.d.ts +1 -1
  9. package/lib/types/components/font-size/FontSize.d.ts +1 -1
  10. package/lib/types/components/font-size/interface.d.ts +1 -1
  11. package/lib/types/components/hooks/layout.d.ts +14 -0
  12. package/lib/types/components/hooks/observable.d.ts +2 -2
  13. package/lib/types/components/menu/Menu.d.ts +6 -1
  14. package/lib/types/components/notification/Notification.d.ts +2 -2
  15. package/lib/types/components/notification/Notification.stories.d.ts +2 -2
  16. package/lib/types/components/range-selector/RangeSelector.d.ts +1 -1
  17. package/lib/types/controllers/error/error.controller.d.ts +1 -1
  18. package/lib/types/controllers/menus/menus.d.ts +1 -1
  19. package/lib/types/controllers/shared-shortcut.controller.d.ts +3 -3
  20. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -1
  21. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +4 -4
  22. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +6 -6
  23. package/lib/types/index.d.ts +2 -2
  24. package/lib/types/locale/index.d.ts +1 -0
  25. package/lib/types/locale/ru-RU.d.ts +4 -0
  26. package/lib/types/services/before-close/before-close.service.d.ts +1 -1
  27. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
  28. package/lib/types/services/confirm/confirm.service.d.ts +2 -2
  29. package/lib/types/services/confirm/desktop-confirm.service.d.ts +3 -3
  30. package/lib/types/services/contextmenu/contextmenu.service.d.ts +2 -2
  31. package/lib/types/services/dialog/desktop-dialog.service.d.ts +7 -7
  32. package/lib/types/services/dialog/dialog.service.d.ts +3 -3
  33. package/lib/types/services/editor/editor.service.d.ts +4 -4
  34. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +4 -4
  35. package/lib/types/services/global-zone/global-zone.service.d.ts +1 -1
  36. package/lib/types/services/layout/layout.service.d.ts +4 -2
  37. package/lib/types/services/menu/menu.d.ts +1 -1
  38. package/lib/types/services/menu/menu.service.d.ts +4 -4
  39. package/lib/types/services/message/__testing__/mock-message.service.d.ts +2 -2
  40. package/lib/types/services/message/desktop-message.service.d.ts +2 -2
  41. package/lib/types/services/message/message.service.d.ts +1 -1
  42. package/lib/types/services/notification/desktop-notification.service.d.ts +2 -2
  43. package/lib/types/services/notification/notification.service.d.ts +1 -1
  44. package/lib/types/services/popup/canvas-popup.service.d.ts +1 -1
  45. package/lib/types/services/progress/progress.service.d.ts +2 -2
  46. package/lib/types/services/range-selector/range-selector.service.d.ts +2 -2
  47. package/lib/types/services/shortcut/shortcut.service.d.ts +4 -4
  48. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +3 -4
  49. package/lib/types/services/sidebar/sidebar.service.d.ts +2 -3
  50. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +4 -4
  51. package/lib/types/services/zen-zone/zen-zone.service.d.ts +1 -1
  52. package/lib/types/ui-plugin.d.ts +3 -2
  53. package/lib/types/views/App.d.ts +1 -1
  54. package/lib/types/views/components/confirm-part/interface.d.ts +1 -1
  55. package/lib/types/views/components/dialog-part/interface.d.ts +1 -1
  56. package/lib/types/views/components/doc-bars/Toolbar.d.ts +1 -1
  57. package/lib/types/views/components/doc-bars/ToolbarItem.d.ts +1 -1
  58. package/lib/umd/index.js +14 -14
  59. package/package.json +18 -18
  60. package/lib/types/views/hooks/active.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal plugin UI manager",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -53,21 +53,21 @@
53
53
  "npm": ">=8.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@wendellhu/redi": "^0.13.3",
56
+ "@wendellhu/redi": "^0.15.1",
57
57
  "clsx": ">=2.0.0",
58
58
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
59
59
  "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
60
60
  "rxjs": ">=7.0.0",
61
- "@univerjs/core": "0.1.9",
62
- "@univerjs/design": "0.1.9",
63
- "@univerjs/engine-formula": "0.1.9",
64
- "@univerjs/engine-render": "0.1.9"
61
+ "@univerjs/core": "0.1.11",
62
+ "@univerjs/design": "0.1.11",
63
+ "@univerjs/engine-formula": "0.1.11",
64
+ "@univerjs/engine-render": "0.1.11"
65
65
  },
66
66
  "dependencies": {
67
- "@univerjs/icons": "^0.1.44",
67
+ "@univerjs/icons": "^0.1.45",
68
68
  "localforage": "^1.10.0",
69
- "rc-notification": "^5.4.0",
70
- "rc-util": "^5.39.1"
69
+ "rc-notification": "^5.5.0",
70
+ "rc-util": "^5.39.3"
71
71
  },
72
72
  "optionalDependencies": {
73
73
  "vue": ">=3.0.0"
@@ -78,21 +78,21 @@
78
78
  "@types/react": "^18.2.79",
79
79
  "@types/react-dom": "^18.2.25",
80
80
  "@types/react-transition-group": "^4.4.10",
81
- "@wendellhu/redi": "^0.13.3",
81
+ "@wendellhu/redi": "^0.15.1",
82
82
  "clsx": "^2.1.1",
83
83
  "less": "^4.2.0",
84
84
  "react": "18.2.0",
85
85
  "react-dom": "18.2.0",
86
86
  "rxjs": "^7.8.1",
87
87
  "typescript": "^5.4.5",
88
- "vite": "^5.2.10",
89
- "vitest": "^1.5.0",
90
- "vue": "^3.4.24",
91
- "@univerjs/core": "0.1.9",
92
- "@univerjs/engine-formula": "0.1.9",
93
- "@univerjs/engine-render": "0.1.9",
94
- "@univerjs/design": "0.1.9",
95
- "@univerjs/shared": "0.1.9"
88
+ "vite": "^5.2.11",
89
+ "vitest": "^1.6.0",
90
+ "vue": "^3.4.27",
91
+ "@univerjs/core": "0.1.11",
92
+ "@univerjs/design": "0.1.11",
93
+ "@univerjs/engine-formula": "0.1.11",
94
+ "@univerjs/engine-render": "0.1.11",
95
+ "@univerjs/shared": "0.1.11"
96
96
  },
97
97
  "scripts": {
98
98
  "test": "vitest run",
@@ -1,10 +0,0 @@
1
- import { Nullable, Workbook, Worksheet } from '@univerjs/core';
2
-
3
- /**
4
- * A react hooks to get the active workbook.
5
- */
6
- export declare function useActiveWorkbook(): Nullable<Workbook>;
7
- /**
8
- * A react hooks to get the active worksheet.
9
- */
10
- export declare function useActiveWorksheet(): Nullable<Worksheet>;