myrole-docx-editor 0.1.3 → 0.1.4
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 +7 -0
- package/dist/chunks/{sdk-BKmEus_j.js → sdk-DZeo_8qT.js} +4443 -4431
- package/dist/chunks/{sdk-BKmEus_j.js.map → sdk-DZeo_8qT.js.map} +1 -1
- package/dist/chunks/{vars-blockly-DMblR7c7.js → vars-blockly-EQQZFx30.js} +2 -2
- package/dist/chunks/{vars-blockly-DMblR7c7.js.map → vars-blockly-EQQZFx30.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/react.js +1 -1
- package/dist/types/packages/docx-editor/src/index.d.ts +1 -1
- package/dist/types/packages/docx-editor/src/sdk.d.ts +3 -1
- package/dist/types/packages/docx-editor/src/ui/context-menu.d.ts +1 -1
- package/dist/types/packages/docx-editor/src/ui/shell.d.ts +7 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ badge display also respond to prop changes. `ref.current` is the same handle
|
|
|
65
65
|
| `zoom` | `1` | |
|
|
66
66
|
| `rulers`, `statusBar` | `true` | |
|
|
67
67
|
| `panel` | `null` | `'navigation'`, `'properties'`, `'variables'` or `'inspector'` |
|
|
68
|
+
| `ui` | all enabled | `{ open: false, export: false, sidePanel: false }` disables file opening, UI exports and right-side panels; configured at mount |
|
|
68
69
|
| `values` | sample set | values for the generated-document preview |
|
|
69
70
|
| `library` | – | `{ fields: [{ path, label?, desc? }], snippets: [{ id, title, code, category?, desc? }], builtinSnippets? }` — offered in the Bibliothèque panel, the ribbon's Variable button and the autocompletion, before what the document already uses |
|
|
70
71
|
| `comments` | `true` | Word's comments as marks on the text; click one for its balloon; « Commentaires » on the Affichage tab toggles them |
|
|
@@ -72,6 +73,12 @@ badge display also respond to prop changes. `ref.current` is the same handle
|
|
|
72
73
|
|
|
73
74
|
## Handle
|
|
74
75
|
|
|
76
|
+
`ui.sidePanel: false` keeps left-side navigation/search available and disables
|
|
77
|
+
right-panel entry points in the toolbar, ribbon, context menu and badges.
|
|
78
|
+
`ui.export: false` requires `onSave` or `draftKey` for Ctrl/⌘S; the host's
|
|
79
|
+
`load`, `save` and `download` APIs remain available. These options configure
|
|
80
|
+
the interface and do not replace server-side permissions.
|
|
81
|
+
|
|
75
82
|
```ts
|
|
76
83
|
editor.load(src) editor.save(): Uint8Array editor.download('contrat.docx')
|
|
77
84
|
editor.editor // the low-level editor: commands, selection, format, undo…
|