@univerjs/docs-ui 1.0.0-rc.0 → 1.0.1
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 +27 -0
- package/lib/cjs/index.js +27388 -23213
- package/lib/cjs/locale/ar-SA.js +28 -1
- package/lib/cjs/locale/ca-ES.js +28 -1
- package/lib/cjs/locale/de-DE.js +28 -1
- package/lib/cjs/locale/en-US.js +28 -1
- package/lib/cjs/locale/es-ES.js +28 -1
- package/lib/cjs/locale/fa-IR.js +28 -1
- package/lib/cjs/locale/fr-FR.js +28 -1
- package/lib/cjs/locale/id-ID.js +28 -1
- package/lib/cjs/locale/it-IT.js +28 -1
- package/lib/cjs/locale/ja-JP.js +28 -1
- package/lib/cjs/locale/ko-KR.js +28 -1
- package/lib/cjs/locale/pl-PL.js +28 -1
- package/lib/cjs/locale/pt-BR.js +28 -1
- package/lib/cjs/locale/ru-RU.js +28 -1
- package/lib/cjs/locale/sk-SK.js +28 -1
- package/lib/cjs/locale/vi-VN.js +28 -1
- package/lib/cjs/locale/zh-CN.js +28 -1
- package/lib/cjs/locale/zh-HK.js +28 -1
- package/lib/cjs/locale/zh-TW.js +28 -1
- package/lib/es/index.js +26448 -22297
- package/lib/es/locale/ar-SA.js +28 -0
- package/lib/es/locale/ca-ES.js +28 -0
- package/lib/es/locale/de-DE.js +28 -0
- package/lib/es/locale/en-US.js +28 -0
- package/lib/es/locale/es-ES.js +28 -0
- package/lib/es/locale/fa-IR.js +28 -0
- package/lib/es/locale/fr-FR.js +28 -0
- package/lib/es/locale/id-ID.js +28 -0
- package/lib/es/locale/it-IT.js +28 -0
- package/lib/es/locale/ja-JP.js +28 -0
- package/lib/es/locale/ko-KR.js +28 -0
- package/lib/es/locale/pl-PL.js +28 -0
- package/lib/es/locale/pt-BR.js +28 -0
- package/lib/es/locale/ru-RU.js +28 -0
- package/lib/es/locale/sk-SK.js +28 -0
- package/lib/es/locale/vi-VN.js +28 -0
- package/lib/es/locale/zh-CN.js +28 -0
- package/lib/es/locale/zh-HK.js +28 -0
- package/lib/es/locale/zh-TW.js +28 -0
- package/lib/index.css +322 -84
- package/lib/index.js +26448 -22297
- package/lib/locale/ar-SA.js +28 -0
- package/lib/locale/ca-ES.js +28 -0
- package/lib/locale/de-DE.js +28 -0
- package/lib/locale/en-US.js +28 -0
- package/lib/locale/es-ES.js +28 -0
- package/lib/locale/fa-IR.js +28 -0
- package/lib/locale/fr-FR.js +28 -0
- package/lib/locale/id-ID.js +28 -0
- package/lib/locale/it-IT.js +28 -0
- package/lib/locale/ja-JP.js +28 -0
- package/lib/locale/ko-KR.js +28 -0
- package/lib/locale/pl-PL.js +28 -0
- package/lib/locale/pt-BR.js +28 -0
- package/lib/locale/ru-RU.js +28 -0
- package/lib/locale/sk-SK.js +28 -0
- package/lib/locale/vi-VN.js +28 -0
- package/lib/locale/zh-CN.js +28 -0
- package/lib/locale/zh-HK.js +28 -0
- package/lib/locale/zh-TW.js +28 -0
- package/lib/types/basics/paragraph.d.ts +4 -1
- package/lib/types/commands/commands/clipboard.command.d.ts +9 -2
- package/lib/types/commands/commands/clipboard.inner.command.d.ts +1 -1
- package/lib/types/commands/commands/doc-select-all.command.d.ts +1 -0
- package/lib/types/commands/commands/format-painter.command.d.ts +33 -0
- package/lib/types/commands/commands/table/doc-table-delete.command.d.ts +1 -0
- package/lib/types/components/doc-page-render-component.d.ts +21 -0
- package/lib/types/config/config.d.ts +2 -0
- package/lib/types/consts/mobile-context.d.ts +17 -0
- package/lib/types/controllers/doc-header-footer.controller.d.ts +3 -6
- package/lib/types/controllers/doc-move-cursor.controller.d.ts +1 -0
- package/lib/types/controllers/format-painter.controller.d.ts +23 -0
- package/lib/types/controllers/mobile/components.controller.d.ts +25 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +29 -0
- package/lib/types/controllers/render-controllers/back-scroll.render-controller.d.ts +4 -3
- package/lib/types/controllers/render-controllers/doc-paragraph-placeholder.render-controller.d.ts +4 -3
- package/lib/types/controllers/render-controllers/doc-paste-options.render-controller.d.ts +27 -0
- package/lib/types/controllers/render-controllers/doc-selection-render.controller.d.ts +2 -0
- package/lib/types/controllers/render-controllers/doc-selection-render.util.d.ts +21 -0
- package/lib/types/controllers/render-controllers/doc.render-controller.d.ts +19 -5
- package/lib/types/controllers/render-controllers/format-painter.render-controller.d.ts +23 -0
- package/lib/types/controllers/render-controllers/mobile/back-scroll.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/mobile/doc-pinch-zoom.d.ts +51 -0
- package/lib/types/controllers/render-controllers/mobile/doc-selection-render.controller.d.ts +73 -0
- package/lib/types/controllers/render-controllers/mobile/doc.render-controller.d.ts +36 -0
- package/lib/types/controllers/render-controllers/mobile/zoom.render-controller.d.ts +30 -0
- package/lib/types/controllers/render-controllers/zoom.render-controller.d.ts +8 -6
- package/lib/types/index.d.ts +10 -1
- package/lib/types/locale/en-US.d.ts +30 -0
- package/lib/types/menu/context-menu.d.ts +3 -0
- package/lib/types/menu/mobile-schema.d.ts +17 -0
- package/lib/types/mobile-plugin.d.ts +36 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +53 -20
- package/lib/types/services/clipboard/paste-options.d.ts +33 -0
- package/lib/types/services/doc-contextual-ribbon.service.d.ts +29 -0
- package/lib/types/services/doc-event-manager.service.d.ts +3 -0
- package/lib/types/services/doc-mobile-element-menu.service.d.ts +44 -0
- package/lib/types/services/doc-page-layout.service.d.ts +3 -0
- package/lib/types/services/doc-paragraph-menu.service.d.ts +3 -2
- package/lib/types/services/doc-popup-manager.service.d.ts +1 -0
- package/lib/types/services/doc-view-scale.d.ts +1 -1
- package/lib/types/services/editor/editor-manager.service.d.ts +2 -0
- package/lib/types/services/editor/editor-runtime-config.d.ts +24 -0
- package/lib/types/services/editor/editor.d.ts +9 -0
- package/lib/types/services/float-menu.service.d.ts +12 -4
- package/lib/types/services/mobile/doc-selection-render.service.d.ts +60 -0
- package/lib/types/services/mobile/doc-view-scale.d.ts +19 -0
- package/lib/types/services/mobile/float-menu.service.d.ts +20 -0
- package/lib/types/services/mobile/mobile-text-selection-visuals.d.ts +32 -0
- package/lib/types/services/selection/convert-text-range.d.ts +7 -0
- package/lib/types/services/selection/doc-selection-render.service.d.ts +38 -21
- package/lib/types/views/DocPasteOptions.d.ts +17 -0
- package/lib/types/views/Icon.d.ts +0 -3
- package/lib/types/views/PageSettings.d.ts +5 -1
- package/lib/types/views/ParagraphMenu.d.ts +1 -2
- package/lib/types/views/RichTextEditor.d.ts +20 -1
- package/lib/types/views/SideMenu.d.ts +1 -0
- package/lib/types/views/doc-statistics/DocPageStatus.d.ts +30 -0
- package/lib/types/views/float-toolbar/FloatToolbar.d.ts +1 -0
- package/lib/types/views/header-footer/content-cover.d.ts +30 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterOptions.d.ts +4 -0
- package/lib/types/views/header-footer/panel/DocHeaderFooterPanel.d.ts +2 -1
- package/lib/types/views/header-footer/panel/use-header-footer-options.d.ts +25 -0
- package/lib/types/views/mobile/MobileDocCanvasViewport.d.ts +20 -0
- package/lib/types/views/mobile/MobileDocPasteOptions.d.ts +21 -0
- package/lib/types/views/mobile/MobileDocSettings.d.ts +20 -0
- package/lib/types/views/mobile-doc-toolbar/MobileDocToolbar.d.ts +30 -0
- package/lib/types/views/mobile-element-menu/MobileDocElementMenu.d.ts +25 -0
- package/lib/types/views/mobile-rich-text-editor/MobileRichTextEditor.d.ts +33 -0
- package/lib/types/views/paragraph-setting/Setting.d.ts +30 -1
- package/lib/types/views/paragraph-setting/hook/utils.d.ts +4 -0
- package/lib/types/views/paragraph-setting/index.d.ts +2 -1
- package/lib/types/views/rich-text-editor/hooks/use-editor.d.ts +8 -0
- package/lib/types/views/rich-text-editor/hooks/use-resize.d.ts +2 -1
- package/lib/types/views/section-setting/Setting.d.ts +12 -1
- package/lib/types/views/section-setting/index.d.ts +2 -1
- package/lib/umd/index.js +19 -18
- 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 -12
package/README.md
CHANGED
|
@@ -34,6 +34,33 @@ univer.registerPlugin(UniverDocsUIPlugin);
|
|
|
34
34
|
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
## Format painter
|
|
38
|
+
|
|
39
|
+
Use the shared Start ribbon format painter to copy character formatting. Include a paragraph
|
|
40
|
+
mark in the source selection to also copy paragraph formatting and list formatting. Drag over
|
|
41
|
+
a target selection or click a word to apply. Text, paragraph identities, and embedded entities
|
|
42
|
+
are retained, and each application is undoable. The same text command serves embedded Shape
|
|
43
|
+
text editors. The source format is captured when the brush is activated.
|
|
44
|
+
The clear-formatting icon resets the selected text and paragraphs to default formatting,
|
|
45
|
+
retains their content and identities, and supports undo.
|
|
46
|
+
|
|
47
|
+
## Typing format at text boundaries
|
|
48
|
+
|
|
49
|
+
Backspace in ordinary document text retains the removed character's formatting for immediate
|
|
50
|
+
input. Forward Delete and Cut resolve formatting at the surviving caret. Replacing a text
|
|
51
|
+
selection uses its first character's format, regardless of selection direction. In table cells,
|
|
52
|
+
character-by-character Backspace resolves the surviving caret format; selection Backspace retains
|
|
53
|
+
the first selected character's format.
|
|
54
|
+
|
|
55
|
+
Retained typing format is transient and clears on explicit selection changes or document switches.
|
|
56
|
+
Formatting commands such as Bold update this input format without clearing it.
|
|
57
|
+
It is not serialized as an empty text run. Explicit `paragraphMarkTextStyle` remains authoritative
|
|
58
|
+
after repositioning or reopening; deletion does not overwrite this explicit paragraph style.
|
|
59
|
+
Modern paragraphs, including list items, retain their first character's formatting on the existing
|
|
60
|
+
paragraph-ending character when all text is deleted. This keeps empty-paragraph input and list
|
|
61
|
+
markers stable after editing elsewhere, undo/redo and reopening. Explicit list-marker and
|
|
62
|
+
paragraph-mark style overrides retain their precedence.
|
|
63
|
+
|
|
37
64
|
## Resources
|
|
38
65
|
|
|
39
66
|
- [Documentation](https://docs.univer.ai)
|