@univerjs-pro/shape-editor-ui 1.0.0-alpha.1 → 1.0.0-alpha.3
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.
- package/README.md +14 -2
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +159 -12
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/components/fill-style-tabs-editor/FillStyleTabsEditor.d.ts +2 -1
- package/lib/types/config/config.d.ts +5 -0
- package/lib/types/controllers/components.controller.d.ts +7 -0
- package/lib/types/index.d.ts +25 -20
- package/lib/types/locale/en-US.d.ts +2 -0
- package/lib/types/plugin.d.ts +13 -0
- package/lib/types/utils/activate-drawing-object.d.ts +23 -0
- package/lib/types/utils/shape-floating-toolbar-config.d.ts +5 -0
- package/lib/types/utils/shape-transformer-config.d.ts +31 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +131 -10
- package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +2 -5
- package/lib/types/views/shape-picker/ShapePickerGrid.d.ts +22 -0
- package/lib/types/views/shape-picker/index.d.ts +4 -0
- package/lib/types/views/shape-picker/shapes.d.ts +25 -0
- package/lib/types/views/shape-text-editor/ShapeTextEditor.d.ts +105 -9
- package/lib/types/views/shape-text-editor/ShapeTextEditorContainer.d.ts +2 -2
- package/lib/types/views/shape-text-editor/ShapeTextPositionWrapper.d.ts +29 -0
- package/lib/types/views/shape-text-editor/hooks/use-shape-position.d.ts +3 -1
- package/lib/types/views/shape-text-editor/shape-text-behavior.d.ts +15 -0
- package/lib/types/views/shape-text-editor/shape-text-document.d.ts +8 -3
- package/lib/types/views/shape-text-editor/shape-text-editor-commands.d.ts +4 -0
- package/lib/types/views/shape-text-editor/shape-text-layout.d.ts +24 -0
- package/lib/types/views/shape-text-editor/shape-text-no-wrap-layout.d.ts +24 -0
- package/lib/types/views/shape-text-editor/shape-text-placeholder.d.ts +8 -0
- package/lib/types/views/shape-text-editor/shape-text-resize-policy.d.ts +17 -0
- package/lib/types/views/shape-text-editor/types.d.ts +25 -6
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# @univerjs-pro/shape-editor-ui
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.com/package/@univerjs-pro/shape-editor-ui)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/shape-editor-ui)
|
|
4
5
|
[](https://npmjs.com/package/@univerjs-pro/shape-editor-ui)
|
|
5
6
|
|
|
6
|
-
`@univerjs-pro/shape-editor-ui`
|
|
7
|
+
`@univerjs-pro/shape-editor-ui` is part of Univer Pro. Reusable shape editor UI building blocks for Univer Pro.
|
|
7
8
|
|
|
8
9
|
## Package Overview
|
|
9
10
|
|
|
@@ -25,9 +26,20 @@ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
|
25
26
|
|
|
26
27
|
```ts
|
|
27
28
|
import '@univerjs-pro/shape-editor-ui/lib/index.css';
|
|
28
|
-
import
|
|
29
|
+
import EnUS from '@univerjs-pro/shape-editor-ui/locale/en-US';
|
|
30
|
+
import { UniverShapeEditorUIPlugin } from '@univerjs-pro/shape-editor-ui';
|
|
31
|
+
|
|
32
|
+
univer.registerPlugin(UniverShapeEditorUIPlugin);
|
|
33
|
+
|
|
34
|
+
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
29
35
|
```
|
|
30
36
|
|
|
37
|
+
## Integration Notes
|
|
38
|
+
|
|
39
|
+
- Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
|
|
40
|
+
- Import the package stylesheet once in the application entry before rendering Univer UI.
|
|
41
|
+
- Import locale files only for the languages your application enables.
|
|
42
|
+
|
|
31
43
|
## Resources
|
|
32
44
|
|
|
33
45
|
- [Documentation](https://docs.univer.ai/guides/pro)
|