@mdzip/editor-vue 2.5.0 → 2.6.0

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 CHANGED
@@ -1,226 +1,242 @@
1
- <a href="https://mdzip.org"><img src="https://mdzip.org/assets/images/mdzip-mark-square.svg" alt="MDZip logo" width="64" height="64"></a>
2
-
3
- # @mdzip/editor-vue
4
-
5
- [![npm](https://img.shields.io/npm/v/@mdzip/editor-vue?logo=npm)](https://www.npmjs.com/package/@mdzip/editor-vue)
6
- [![license](https://img.shields.io/npm/l/@mdzip/editor-vue)](https://github.com/mdzip-project/mdzip-editor/blob/main/LICENSE)
7
-
8
- Vue 3 component wrapper for the MDZip workspace editor.
9
-
10
- `@mdzip/editor-vue` provides a `MdzipWorkspace` component that embeds the full MDZip workspace UI — document preview, editor, package navigator, and asset manager — as a native Vue 3 component.
11
-
12
- ## Install
13
-
14
- ```sh
15
- npm install @mdzip/editor-vue
16
- ```
17
-
18
- Peer dependency: `vue` >=3.
19
-
20
- ## Basic Usage
21
-
22
- ```vue
23
- <script setup lang="ts">
24
- import { MdzipWorkspace } from '@mdzip/editor-vue';
25
-
26
- const props = defineProps<{ bytes: Uint8Array }>();
27
- </script>
28
-
29
- <template>
30
- <div style="height: 600px">
31
- <MdzipWorkspace
32
- :bytes="props.bytes"
33
- file-name="document.mdz"
34
- mode="read-only"
35
- controls="viewer"
36
- @failed="console.error"
37
- />
38
- </div>
39
- </template>
40
- ```
41
-
42
- The parent element must have an explicit height. The component expands to fill it.
43
-
44
- ## Archive Diff
45
-
46
- ```vue
47
- <script setup lang="ts">
48
- import { MdzipDiff } from '@mdzip/editor-vue/diff-view';
49
- </script>
50
-
51
- <template>
52
- <div style="height: 600px">
53
- <MdzipDiff
54
- :before="{ bytes: baseBytes, label: 'Git base' }"
55
- :after="{ bytes: workingBytes, label: 'Working tree' }"
56
- initial-path="index.md"
57
- :toolbar-actions="[{ id: 'refresh', label: 'Refresh', icon: 'refresh', run: refresh }]"
58
- />
59
- </div>
60
- </template>
61
- ```
62
-
63
- The component emits `selectionChanged` and `failed`. Its exposed handle
64
- provides `openPath`, `openPreviousChange`, `openNextChange`, `setShowUnchanged`,
65
- `setNavigationVisible`, and `setToolbarActions`. The built-in toolbar adds
66
- Previous/Next change buttons and a Show-unchanged toggle; pass a `controls`
67
- prop (`{ navigation?, changeTraversal?, showUnchanged? }`) to opt any out.
68
-
69
- ## Editor Mode
70
-
71
- ```vue
72
- <MdzipWorkspace
73
- :bytes="bytes"
74
- file-name="document.mdz"
75
- mode="editable"
76
- controls="standalone-editor"
77
- @saved="onSaved"
78
- @changed="onChanged"
79
- />
80
- ```
81
-
82
- ## Props
83
-
84
- | Prop | Type | Default | Description |
85
- |------|------|---------|-------------|
86
- | `bytes` | `Uint8Array \| null` | `null` | Raw archive bytes to open |
87
- | `workspace` | `MdzWorkspace \| null` | `null` | Pre-built workspace object |
88
- | `fileName` | `string` | `'document.mdz'` | Filename used for format detection and Save dialogs |
89
- | `mode` | `MdzipWorkspaceMode` | `'read-only'` | `'read-only'` or `'editable'` |
90
- | `sourceFormat` | `MdzipSourceFormat` | — | Override format detection: `'mdz'` or `'markdown'` |
91
- | `controls` | `MdzipControlPreset \| MdzipControlPolicy` | `'viewer'` | `'preview'`, `'viewer'`, `'standalone-editor'`, `'hosted-editor'`, or a policy object |
92
- | `toolbarDensity` | `'comfortable' \| 'compact' \| 'dense'` | `'comfortable'` | Semantic sizing preset for built-in toolbar controls |
93
- | `contentDensity` | `'comfortable' \| 'compact'` | `'comfortable'` | Semantic padding preset for editor and preview content |
94
- | `imageHydrationAnimation` | `'auto' \| 'initial' \| 'off'` | `'auto'` | Control preview image reveal animation: every render, first render per document path, or never |
95
- | `initialLayout` | `MdzipWorkspaceLayout` | — | Starting layout: `'preview'`, `'editor'`, `'split'` |
96
- | `initialColorScheme` | `MdzipColorSchemePreference` | `'system'` | `'light'`, `'dark'` or `'system'` (follows the OS setting live) |
97
- | `systemColorScheme` | `MdzipSystemColorScheme` | — | Makes the color scheme menu's System choice follow the host's theme instead of the OS setting, with its own `label` and `icon`, e.g. `{ colorScheme: 'dark', label: 'VS Code theme', icon: '<svg…>' }`; changes apply live |
98
- | `previewMaxWidth` | `MdzipPreviewMaxWidth` | `'default'` | Preview reading-column width: `'narrow'`, `'default'`, `'wide'`, `'full'` or a pixel number; the user can change it from the toolbar's page-width menu |
99
- | `navigationMode` | `MdzipNavigationMode` | `'editor'` | Package navigation mode |
100
- | `navigationButtonActive` | `boolean` | `true` | Whether the navigation button is shown |
101
- | `inlineSvgLinks` | `boolean` | `true` | Shows archive SVGs that contain links inline, so the links can be clicked (draw.io `.drawio.svg` diagrams, for example); other SVGs stay images. Read when the view is created |
102
- | `hostFileActions` | `readonly MdzipFileAction[]` | — | The host's own items in the file tree's right-click menu on files (`{ id, label, appliesTo?, run }`), e.g. "Open in Another Editor". Also shown as buttons on the card that stands in for a `.drawio` image. Read when the view is created |
103
- | `markdownRenderer` | `MdzipMarkdownRenderer \| null` | `null` | Custom markdown renderer (keep the reference stable) |
104
- | `markdownExtensions` | `readonly MdzipMarkdownRenderExtension[]` | `[]` | Markdown pipeline extensions, diffed by `name` — inline arrays are safe |
105
- | `entryRenderers` | `readonly MdzipEntryRenderer[]` | `[]` | Entry renderers claiming the content area for matching entries, diffed by `id` — inline arrays are safe |
106
- | `entrySlotPriority` | `number` | `0` | Matching priority of the `#entry` slot relative to `entryRenderers` |
107
- | `frontMatter` | `MdzipFrontMatterOptions` | `{}` | Front matter panel config (`enabled`, `display`, `collapsible`, `label`) — always registered, diffed by deep equality; inline objects are safe |
108
- | `externalLinks` | `MdzipExternalLinkPolicy` | — | External-link policy, e.g. `{ target: '_blank' }` (adds `rel="noopener noreferrer"`); optional `rel` and `predicate(href)`. Re-applies without a re-render only when `target`, `rel` or `predicate` change; inline objects are safe |
109
-
110
- `controls`, density, `imageHydrationAnimation`, and rendering prop changes apply in
111
- place — they never recreate the workspace view. Line-number visibility changes
112
- preserve the current CodeMirror document and selection. See the `@mdzip/editor`
113
- Rendering Extensibility docs for the contracts and lifecycle rules.
114
-
115
- ### Native entry rendering (`#entry` slot)
116
-
117
- ```vue
118
- <MdzipWorkspace :bytes="bytes">
119
- <template #entry="{ context }">
120
- <ManifestEditor
121
- v-if="context.path.toLowerCase() === 'manifest.json'"
122
- :manifest="context.manifest"
123
- :editable="context.mode === 'editable'"
124
- @manifest-change="context.updateManifest"
125
- />
126
- </template>
127
- </MdzipWorkspace>
128
- ```
129
-
130
- A slot render that produces no content (its `v-if` is false) delegates to
131
- `entryRenderers` and the built-in rendering. The slot mounts in a detached
132
- tree sharing the host app context (plugins, provide/inject); the context is
133
- reactive, and the tree unmounts on selection change.
134
-
135
- ## Events
136
-
137
- | Event | Payload | Description |
138
- |-------|---------|-------------|
139
- | `changed` | `MdzipWorkspaceChange` | Emitted when archive bytes change |
140
- | `saved` | `MdzipWorkspaceSave` | Emitted on Save |
141
- | `snapshotChanged` | `MdzipWorkspaceSnapshot` | Emitted on any state change |
142
- | `selectionChanged` | `MdzipWorkspaceSnapshot` | Emitted when the editor selection changes |
143
- | `dirtyChanged` | `MdzipWorkspaceSnapshot` | Emitted when the dirty flag changes |
144
- | `validationChanged` | `MdzipWorkspaceSnapshot` | Emitted when validation state changes |
145
- | `colorSchemeChanged` | `MdzipColorScheme` | Emitted when the color scheme changes |
146
- | `colorSchemePreferenceChanged` | `MdzipColorSchemePreference` | Emitted when the user picks Light, Dark or System in the toolbar menu |
147
- | `previewWidthChanged` | `MdzipPreviewWidthChoice` | Emitted when the user picks a width in the toolbar's page-width menu |
148
- | `previewRendered` | `MdzipWorkspaceSnapshot` | Emitted when the preview HTML is mounted |
149
- | `assetsHydrated` | `MdzipWorkspaceSnapshot` | Emitted once the mounted preview's images have loaded |
150
- | `linkActivated` | `MdzipLinkActivatedEvent` | Emitted for every preview link click before built-in handling; call `event.preventDefault()` to take over |
151
- | `failed` | `unknown` | Emitted on unrecoverable errors |
152
-
153
- ## Conversion hook
154
-
155
- `onConversionRequested` is a **function prop** (not an emit, because it must return a value):
156
- pass `(action: MdzipConversionAction) => boolean | Promise<boolean>`. It fires when the user
157
- triggers the markdown→MDZ conversion flow (nav button, Insert Image, or image paste on a
158
- plain `.md`). Return/resolve `true` to take over and suppress the built-in conversion dialog.
159
-
160
- `onPackRequested` is the same kind of function prop for the folder→.mdz packing
161
- decision surfaced by the exposed `packFilesAsWorkspace(files, options)` method — fires
162
- only when the file list contains more than one Markdown file, with the same
163
- return contract as `onConversionRequested`.
164
-
165
- ## Image insertion
166
-
167
- Pass `image-insert-mode="markdown"`, `"ask"`, or `"html"` for the built-in
168
- image markup flow. Pass `:image-insert-handler="handler"` for host-owned image
169
- UI; the handler can return Markdown or HTML sizing/alignment settings, return
170
- `null` to cancel, or return `undefined` to fall back to `imageInsertMode`.
171
-
172
- Pass `:image-edit-handler="handler"` to let users edit an *existing* image by
173
- clicking it. Fully opt-in — with no handler, clicking an image does nothing
174
- and no edit affordance appears; there is no built-in fallback dialog.
175
-
176
- ## File management (nav pane)
177
-
178
- With `controls="standalone-editor"` or `"hosted-editor"` (or `fileActions: true` in a custom
179
- policy), the navigation pane offers a right-click context menu: new `.md` file, new folder,
180
- rename/move, duplicate, replace, download, copy markdown link, set entry point, set cover
181
- image, and delete. Files can also be dragged between folders, and OS files can be dropped
182
- onto the pane. Copy and Download remain available in read-only mode. The same operations are
183
- exposed on the handle: `removeFile`, `renameFile`, `setEntryPoint`, and `setCoverImage`.
184
-
185
- ## Imperative API
186
-
187
- Use a template ref to access the exposed handle:
188
-
189
- ```vue
190
- <script setup lang="ts">
191
- import { ref } from 'vue';
192
- import { MdzipWorkspace, type MdzipWorkspaceExposed } from '@mdzip/editor-vue';
193
-
194
- const workspace = ref<MdzipWorkspaceExposed>();
195
-
196
- async function save() {
197
- const snapshot = await workspace.value?.flush();
198
- if (snapshot) {
199
- await persist(snapshot.bytes);
200
- workspace.value?.markPersisted();
201
- }
202
- }
203
- </script>
204
-
205
- <template>
206
- <MdzipWorkspace ref="workspace" ... />
207
- </template>
208
- ```
209
-
210
- The handle also exposes `whenRendered()`, which resolves once the current preview (including
211
- its images) is mounted — useful for revealing or animating read-only preview content.
212
-
213
- ## Links and anchors
214
-
215
- The `linkActivated` event fires for every preview link click, before the view's own handling, with the
216
- parsed link (`kind`: `'anchor' | 'document' | 'relative' | 'external'`, plus `path`,
217
- `anchor`, `targetPath`, `sourcePath`, modifier keys). Call `event.preventDefault()` in the
218
- handler to route the link yourself; unprevented clicks keep the built-in behavior.
219
- The handle also exposes `scrollToAnchor(anchor)` (waits for the preview to mount, resolves whether it
220
- scrolled; safe straight after load), `getAvailableAnchors()`, `openPath(path, { anchor })` (opens another
221
- file, optionally at an anchor) and `getCurrentPath()`. Changing only `fileName` (e.g. after Save As)
222
- renames in place without reopening; set `preserveSelectionOnReopen` to stay on the current file when
223
- the archive content changes. See the
224
- [`@mdzip/editor` README](https://www.npmjs.com/package/@mdzip/editor#links-and-anchors).
225
-
226
- See the [`@mdzip/editor`](https://www.npmjs.com/package/@mdzip/editor) package for the full API reference, theming guide, and framework-agnostic usage.
1
+ <a href="https://mdzip.org"><img src="https://mdzip.org/assets/images/mdzip-mark-square.svg" alt="MDZip logo" width="64" height="64"></a>
2
+
3
+ # @mdzip/editor-vue
4
+
5
+ [![npm](https://img.shields.io/npm/v/@mdzip/editor-vue?logo=npm)](https://www.npmjs.com/package/@mdzip/editor-vue)
6
+ [![license](https://img.shields.io/npm/l/@mdzip/editor-vue)](https://github.com/mdzip-project/mdzip-editor/blob/main/LICENSE)
7
+
8
+ Vue 3 component wrapper for the MDZip workspace editor.
9
+
10
+ `@mdzip/editor-vue` provides a `MdzipWorkspace` component that embeds the full MDZip workspace UI — document preview, editor, package navigator, and asset manager — as a native Vue 3 component.
11
+
12
+ ## Install
13
+
14
+ ```sh
15
+ npm install @mdzip/editor-vue
16
+ ```
17
+
18
+ Peer dependency: `vue` >=3.
19
+
20
+ ## Basic Usage
21
+
22
+ ```vue
23
+ <script setup lang="ts">
24
+ import { MdzipWorkspace } from '@mdzip/editor-vue';
25
+
26
+ const props = defineProps<{ bytes: Uint8Array }>();
27
+ </script>
28
+
29
+ <template>
30
+ <div style="height: 600px">
31
+ <MdzipWorkspace
32
+ :bytes="props.bytes"
33
+ file-name="document.mdz"
34
+ mode="read-only"
35
+ controls="viewer"
36
+ @failed="console.error"
37
+ />
38
+ </div>
39
+ </template>
40
+ ```
41
+
42
+ The parent element must have an explicit height. The component expands to fill it.
43
+
44
+ ## Archive Diff
45
+
46
+ ```vue
47
+ <script setup lang="ts">
48
+ import { MdzipDiff } from '@mdzip/editor-vue/diff-view';
49
+ </script>
50
+
51
+ <template>
52
+ <div style="height: 600px">
53
+ <MdzipDiff
54
+ :before="{ bytes: baseBytes, label: 'Git base' }"
55
+ :after="{ bytes: workingBytes, label: 'Working tree' }"
56
+ initial-path="index.md"
57
+ :toolbar-actions="[{ id: 'refresh', label: 'Refresh', icon: 'refresh', run: refresh }]"
58
+ />
59
+ </div>
60
+ </template>
61
+ ```
62
+
63
+ The component emits `selectionChanged` and `failed`. Its exposed handle
64
+ provides `openPath`, `openPreviousChange`, `openNextChange`, `setShowUnchanged`,
65
+ `setNavigationVisible`, and `setToolbarActions`. The built-in toolbar adds
66
+ Previous/Next change buttons and a Show-unchanged toggle; pass a `controls`
67
+ prop (`{ navigation?, changeTraversal?, showUnchanged? }`) to opt any out.
68
+
69
+ ## Editor Mode
70
+
71
+ ```vue
72
+ <MdzipWorkspace
73
+ :bytes="bytes"
74
+ file-name="document.mdz"
75
+ mode="editable"
76
+ controls="standalone-editor"
77
+ @saved="onSaved"
78
+ @changed="onChanged"
79
+ />
80
+ ```
81
+
82
+ ## Props
83
+
84
+ | Prop | Type | Default | Description |
85
+ |------|------|---------|-------------|
86
+ | `bytes` | `Uint8Array \| null` | `null` | Raw archive bytes to open |
87
+ | `workspace` | `MdzWorkspace \| null` | `null` | Pre-built workspace object |
88
+ | `fileName` | `string` | `'document.mdz'` | Filename used for format detection and Save dialogs |
89
+ | `mode` | `MdzipWorkspaceMode` | `'read-only'` | `'read-only'` or `'editable'` |
90
+ | `sourceFormat` | `MdzipSourceFormat` | — | Override format detection: `'mdz'` or `'markdown'` |
91
+ | `controls` | `MdzipControlPreset \| MdzipControlPolicy` | `'viewer'` | `'preview'`, `'viewer'`, `'standalone-editor'`, `'hosted-editor'`, or a policy object |
92
+ | `toolbarDensity` | `'comfortable' \| 'compact' \| 'dense'` | `'comfortable'` | Semantic sizing preset for built-in toolbar controls |
93
+ | `contentDensity` | `'comfortable' \| 'compact'` | `'comfortable'` | Semantic padding preset for editor and preview content |
94
+ | `imageHydrationAnimation` | `'auto' \| 'initial' \| 'off'` | `'auto'` | Control preview image reveal animation: every render, first render per document path, or never |
95
+ | `initialLayout` | `MdzipWorkspaceLayout` | — | Starting layout: `'preview'`, `'editor'`, `'split'` |
96
+ | `initialColorScheme` | `MdzipColorSchemePreference` | `'system'` | `'light'`, `'dark'` or `'system'` (follows the OS setting live) |
97
+ | `systemColorScheme` | `MdzipSystemColorScheme` | — | Makes the color scheme menu's System choice follow the host's theme instead of the OS setting, with its own `label` and `icon`, e.g. `{ colorScheme: 'dark', label: 'VS Code theme', icon: '<svg…>' }`; changes apply live |
98
+ | `previewMaxWidth` | `MdzipPreviewMaxWidth` | `'default'` | Preview reading-column width: `'narrow'`, `'default'`, `'wide'`, `'full'` or a pixel number; the user can change it from the toolbar's page-width menu |
99
+ | `navigationMode` | `MdzipNavigationMode` | `'editor'` | Package navigation mode |
100
+ | `navigationButtonActive` | `boolean` | `true` | Whether the navigation button is shown |
101
+ | `inlineSvgLinks` | `boolean` | `true` | Shows archive SVGs that contain links inline, so the links can be clicked (draw.io `.drawio.svg` diagrams, for example); other SVGs stay images. Read when the view is created |
102
+ | `eagerImages` | `boolean` | `false` | Loads every image as soon as the preview mounts, not only those near the visible part; for a preview nobody scrolls, such as an off-screen copy for printing (use with `progressiveTextRendering: false`). Read when the view is created |
103
+ | `hostFileActions` | `readonly MdzipFileAction[]` | — | The host's own items in the file tree's right-click menu on files (`{ id, label, appliesTo?, primary?, description?, run }`; `label` and `description` may be functions of the file), e.g. "Open in Another Editor". Also shown as buttons on the card that stands in for a `.drawio` image, and on the card for a file the preview can't show (a `primary` one first). Read when the view is created |
104
+ | `fileNote` | `(file) => string \| null` | — | A line on the card for a file the preview can't show, e.g. "Open in Word: changes come back each time you save there." `refreshFileActions()` asks for it and the labels again. Read when the view is created |
105
+ | `fileCardHelp` | `MdzipFileCardHelp` | — | A link at the bottom of that card (`{ label, run }`), to the host's help. Read when the view is created |
106
+ | `markdownRenderer` | `MdzipMarkdownRenderer \| null` | `null` | Custom markdown renderer (keep the reference stable) |
107
+ | `markdownExtensions` | `readonly MdzipMarkdownRenderExtension[]` | `[]` | Markdown pipeline extensions, diffed by `name` — inline arrays are safe |
108
+ | `entryRenderers` | `readonly MdzipEntryRenderer[]` | `[]` | Entry renderers claiming the content area for matching entries, diffed by `id` — inline arrays are safe |
109
+ | `entrySlotPriority` | `number` | `0` | Matching priority of the `#entry` slot relative to `entryRenderers` |
110
+ | `frontMatter` | `MdzipFrontMatterOptions` | `{}` | Front matter panel config (`enabled`, `display`, `collapsible`, `label`) — always registered, diffed by deep equality; inline objects are safe |
111
+ | `externalLinks` | `MdzipExternalLinkPolicy` | — | External-link policy, e.g. `{ target: '_blank' }` (adds `rel="noopener noreferrer"`); optional `rel` and `predicate(href)`. Re-applies without a re-render only when `target`, `rel` or `predicate` change; inline objects are safe |
112
+ | `onExtractFiles` | `(request: MdzipExtractRequest) => void \| Promise<void>` | — | A function prop, like `onConversionRequested`, because the view waits for it. Writes files taken out of the archive (the contents pane's Extract…) for hosts that can write to disk; the menu then says **Extract…** instead of offering browser downloads. The request has `files: [{ path, bytes }]` and `selection`. Read when the view is created |
113
+ | `outline` | `boolean \| MdzipOutlineViewOptions` | `false` | The outline panel: `true`, or `{ visible, position, width, levels, collapse, label }`. `visible` and `position` (prop changes) apply live; the rest are read when the view is created |
114
+ | `showWhitespace` | `boolean` | `false` | Shows spaces and tabs in the source editor. Applies live |
115
+ | `manifestView` | `'form' \| 'json'` | `'form'` | How `manifest.json` opens. Read when the view is created |
116
+ | `jsonStatus` | `boolean` | `true` | The status line under the editor for `.json` files. Read when the view is created |
117
+
118
+ `controls`, density, `imageHydrationAnimation`, and rendering prop changes apply in
119
+ place — they never recreate the workspace view. Line-number visibility changes
120
+ preserve the current CodeMirror document and selection. See the `@mdzip/editor`
121
+ Rendering Extensibility docs for the contracts and lifecycle rules.
122
+
123
+ ### Native entry rendering (`#entry` slot)
124
+
125
+ ```vue
126
+ <MdzipWorkspace :bytes="bytes">
127
+ <template #entry="{ context }">
128
+ <ManifestEditor
129
+ v-if="context.path.toLowerCase() === 'manifest.json'"
130
+ :manifest="context.manifest"
131
+ :editable="context.mode === 'editable'"
132
+ @manifest-change="context.updateManifest"
133
+ />
134
+ </template>
135
+ </MdzipWorkspace>
136
+ ```
137
+
138
+ A slot render that produces no content (its `v-if` is false) delegates to
139
+ `entryRenderers` and the built-in rendering. The slot mounts in a detached
140
+ tree sharing the host app context (plugins, provide/inject); the context is
141
+ reactive, and the tree unmounts on selection change.
142
+
143
+ ## Events
144
+
145
+ | Event | Payload | Description |
146
+ |-------|---------|-------------|
147
+ | `changed` | `MdzipWorkspaceChange` | Emitted when archive bytes change |
148
+ | `saved` | `MdzipWorkspaceSave` | Emitted on Save |
149
+ | `snapshotChanged` | `MdzipWorkspaceSnapshot` | Emitted on any state change |
150
+ | `selectionChanged` | `MdzipWorkspaceSnapshot` | Emitted when the editor selection changes |
151
+ | `dirtyChanged` | `MdzipWorkspaceSnapshot` | Emitted when the dirty flag changes |
152
+ | `validationChanged` | `MdzipWorkspaceSnapshot` | Emitted when validation state changes |
153
+ | `colorSchemeChanged` | `MdzipColorScheme` | Emitted when the color scheme changes |
154
+ | `colorSchemePreferenceChanged` | `MdzipColorSchemePreference` | Emitted when the user picks Light, Dark or System in the toolbar menu |
155
+ | `previewWidthChanged` | `MdzipPreviewWidthChoice` | Emitted when the user picks a width in the toolbar's page-width menu |
156
+ | `previewRendered` | `MdzipWorkspaceSnapshot` | Emitted when the preview HTML is mounted |
157
+ | `assetsHydrated` | `MdzipWorkspaceSnapshot` | Emitted once the mounted preview's images have loaded |
158
+ | `assetsProgress` | `MdzipAssetsProgress` | `{ loaded, total }` as those images load, for a progress bar (not emitted when there are none) |
159
+ | `linkActivated` | `MdzipLinkActivatedEvent` | Emitted for every preview link click before built-in handling; call `event.preventDefault()` to take over |
160
+ | `failed` | `unknown` | Emitted on unrecoverable errors |
161
+ | `outlineVisibilityChanged` | `boolean` | Emitted when the reader shows or hides the outline from the toolbar |
162
+ | `outlinePositionChanged` | `'left' \| 'right'` | Emitted when the reader moves the outline to the other side from the toolbar |
163
+ | `outlineWidthChanged` | `number` | Emitted with the outline panel's width (pixels) when the reader finishes dragging its edge |
164
+ | `whitespaceVisibilityChanged` | `boolean` | Emitted when the reader shows or hides whitespace from the toolbar |
165
+ | `jsonValidityChanged` | `{ validity, path }` | Emitted (debounced while typing) with the open `.json` file's validity; `null`s for other files |
166
+
167
+ ## Conversion hook
168
+
169
+ `onConversionRequested` is a **function prop** (not an emit, because it must return a value):
170
+ pass `(action: MdzipConversionAction) => boolean | Promise<boolean>`. It fires when the user
171
+ triggers the markdown→MDZ conversion flow (nav button, Insert Image, or image paste on a
172
+ plain `.md`). Return/resolve `true` to take over and suppress the built-in conversion dialog.
173
+
174
+ `onPackRequested` is the same kind of function prop for the folder→.mdz packing
175
+ decision surfaced by the exposed `packFilesAsWorkspace(files, options)` method — fires
176
+ only when the file list contains more than one Markdown file, with the same
177
+ return contract as `onConversionRequested`.
178
+
179
+ ## Image insertion
180
+
181
+ Pass `image-insert-mode="markdown"`, `"ask"`, or `"html"` for the built-in
182
+ image markup flow. Pass `:image-insert-handler="handler"` for host-owned image
183
+ UI; the handler can return Markdown or HTML sizing/alignment settings, return
184
+ `null` to cancel, or return `undefined` to fall back to `imageInsertMode`.
185
+
186
+ Pass `:image-edit-handler="handler"` to let users edit an *existing* image by
187
+ clicking it. Fully opt-in — with no handler, clicking an image does nothing
188
+ and no edit affordance appears; there is no built-in fallback dialog.
189
+
190
+ ## File management (nav pane)
191
+
192
+ With `controls="standalone-editor"` or `"hosted-editor"` (or `fileActions: true` in a custom
193
+ policy), the navigation pane offers a right-click context menu: new `.md` file, new folder,
194
+ rename/move, duplicate, replace, download, copy markdown link, set entry point, set cover
195
+ image, and delete. Files can also be dragged between folders, and OS files can be dropped
196
+ onto the pane. Copy and Download remain available in read-only mode. The same operations are
197
+ exposed on the handle: `removeFile`, `renameFile`, `setEntryPoint`, and `setCoverImage`.
198
+
199
+ ## Imperative API
200
+
201
+ Use a template ref to access the exposed handle:
202
+
203
+ ```vue
204
+ <script setup lang="ts">
205
+ import { ref } from 'vue';
206
+ import { MdzipWorkspace, type MdzipWorkspaceExposed } from '@mdzip/editor-vue';
207
+
208
+ const workspace = ref<MdzipWorkspaceExposed>();
209
+
210
+ async function save() {
211
+ const snapshot = await workspace.value?.flush();
212
+ if (snapshot) {
213
+ await persist(snapshot.bytes);
214
+ workspace.value?.markPersisted();
215
+ }
216
+ }
217
+ </script>
218
+
219
+ <template>
220
+ <MdzipWorkspace ref="workspace" ... />
221
+ </template>
222
+ ```
223
+
224
+ Also: `setOutlineVisible(visible)` and `setOutlinePosition('left' | 'right')` move the outline panel, `setLayout('source' | 'split' | 'preview')` switches the layout, and `extractFiles(paths, { includeFolders })` returns the archive's files as `{ path, bytes }`.
225
+
226
+ The handle also exposes `whenRendered()`, which resolves once the current preview (including
227
+ its images) is mounted — useful for revealing or animating read-only preview content.
228
+
229
+ ## Links and anchors
230
+
231
+ The `linkActivated` event fires for every preview link click, before the view's own handling, with the
232
+ parsed link (`kind`: `'anchor' | 'document' | 'relative' | 'external'`, plus `path`,
233
+ `anchor`, `targetPath`, `sourcePath`, modifier keys). Call `event.preventDefault()` in the
234
+ handler to route the link yourself; unprevented clicks keep the built-in behavior.
235
+ The handle also exposes `scrollToAnchor(anchor)` (waits for the preview to mount, resolves whether it
236
+ scrolled; safe straight after load), `getAvailableAnchors()`, `openPath(path, { anchor })` (opens another
237
+ file, optionally at an anchor) and `getCurrentPath()`. Changing only `fileName` (e.g. after Save As)
238
+ renames in place without reopening; set `preserveSelectionOnReopen` to stay on the current file when
239
+ the archive content changes. See the
240
+ [`@mdzip/editor` README](https://www.npmjs.com/package/@mdzip/editor#links-and-anchors).
241
+
242
+ See the [`@mdzip/editor`](https://www.npmjs.com/package/@mdzip/editor) package for the full API reference, theming guide, and framework-agnostic usage.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type PropType, type VNode } from 'vue';
2
- import type { MdzipControlPolicy, MdzipControlPreset, MdzipContentDensity, MdzipColorSchemePreference, MdzipPreviewMaxWidth, MdzipSystemColorScheme, MdzipConversionAction, MdzipConversionContext, MdzipEditorSnapshot, MdzipEditorCommand, MdzipOpenPathOptions, MdzipEntryRenderer, MdzipExternalLinkPolicy, MdzipFrontMatterOptions, MdzipMarkdownRenderExtension, MdzipMarkdownRenderer, MdzipImageEditHandler, MdzipImageHydrationAnimation, MdzipImageInsertHandler, MdzipImageInsertMode, MdzipPackFilesContext, MdzipPackFilesInput, MdzipPackFilesRequest, MdzipPackFilesResult, MdzipWorkspaceLayout, MdzipWorkspaceMode, MdzipNavigationMode, MdzipRemoveAssetOptions, MdzipSourceFormat, MdzipToolbarDensity, MdzWorkspace, MdzWorkspaceAsset, MdzipFileAction } from '@mdzip/editor';
2
+ import type { MdzipControlPolicy, MdzipControlPreset, MdzipContentDensity, MdzipColorSchemePreference, MdzipPreviewMaxWidth, MdzipSystemColorScheme, MdzipConversionAction, MdzipConversionContext, MdzipEditorSnapshot, MdzipEditorCommand, MdzipOpenPathOptions, MdzipEntryRenderer, MdzipExternalLinkPolicy, MdzipFrontMatterOptions, MdzipMarkdownRenderExtension, MdzipMarkdownRenderer, MdzipImageEditHandler, MdzipImageHydrationAnimation, MdzipImageInsertHandler, MdzipImageInsertMode, MdzipPackFilesContext, MdzipPackFilesInput, MdzipPackFilesRequest, MdzipPackFilesResult, MdzipWorkspaceLayout, MdzipWorkspaceMode, MdzipNavigationMode, MdzipRemoveAssetOptions, MdzipSourceFormat, MdzipToolbarDensity, MdzWorkspace, MdzWorkspaceAsset, MdzipFileAction, MdzipFileActionTarget, MdzipFileCardHelp, MdzipExtractedFile, MdzipExtractRequest, MdzipOutlinePosition, MdzipOutlineViewOptions } from '@mdzip/editor';
3
3
  export interface MdzipWorkspaceExposed {
4
4
  canExecuteCommand(command: MdzipEditorCommand): boolean;
5
5
  executeCommand(command: MdzipEditorCommand, file?: File): Promise<boolean>;
@@ -16,8 +16,20 @@ export interface MdzipWorkspaceExposed {
16
16
  /** The archive path of the file currently shown, or null before a workspace opens. */
17
17
  getCurrentPath(): string | null;
18
18
  markPersisted(): void;
19
+ /** Shows or hides the outline panel (without emitting `outlineVisibilityChanged`). */
20
+ setOutlineVisible(visible: boolean): void;
21
+ /** Puts the outline panel on the left or the right of the document. */
22
+ setOutlinePosition(position: MdzipOutlinePosition): void;
23
+ /** Switches to Edit (`'source'`), Split or View (`'preview'`), as the toolbar's buttons do. */
24
+ setLayout(layout: MdzipWorkspaceLayout): Promise<void>;
25
+ /** The archive's files as `{ path, bytes }`, by file or folder path (see the view's `extractFiles()`). */
26
+ extractFiles(paths: readonly string[], options?: {
27
+ includeFolders?: boolean;
28
+ }): Promise<MdzipExtractedFile[]>;
19
29
  addAsset(archivePath: string, fileBytes: Uint8Array): Promise<void>;
20
30
  replaceAsset(archivePath: string, fileBytes: Uint8Array): Promise<boolean>;
31
+ /** Asks the file actions' labels and `fileNote` again (see the view's `refreshFileActions()`). */
32
+ refreshFileActions(): void;
21
33
  removeAsset(archivePath: string, options?: MdzipRemoveAssetOptions): Promise<boolean>;
22
34
  removeFile(archivePath: string): Promise<boolean>;
23
35
  renameFile(oldPath: string, newPath: string): Promise<boolean>;
@@ -88,8 +100,18 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
88
100
  type: BooleanConstructor;
89
101
  default: boolean;
90
102
  };
103
+ /**
104
+ * Loads every image as soon as the preview mounts, for a preview nobody
105
+ * scrolls, such as an off-screen copy for printing (see the view option).
106
+ * Defaults to `false`. Constructor-only.
107
+ */
108
+ eagerImages: BooleanConstructor;
91
109
  /** Extra file tree menu items for files, run by the host (see the view option). Read when the view is created. */
92
110
  hostFileActions: PropType<readonly MdzipFileAction[]>;
111
+ /** A line for the card of a file the preview can't show (see the view option). Read when the view is created. */
112
+ fileNote: PropType<(file: MdzipFileActionTarget) => string | null>;
113
+ /** A help link at the bottom of that card (see the view option). Read when the view is created. */
114
+ fileCardHelp: PropType<MdzipFileCardHelp>;
93
115
  navigationMode: {
94
116
  type: PropType<MdzipNavigationMode>;
95
117
  default: string;
@@ -159,9 +181,44 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
159
181
  type: NumberConstructor;
160
182
  default: number;
161
183
  };
184
+ /**
185
+ * Writes files taken out of the archive (the contents pane's Extract…),
186
+ * for hosts that can write to disk themselves. With it, the menu says
187
+ * **Extract…** instead of offering browser downloads. A function prop,
188
+ * like `onConversionRequested`, because the view waits for it. Whether
189
+ * it's given is read when the view is created.
190
+ */
191
+ onExtractFiles: {
192
+ type: PropType<(request: MdzipExtractRequest) => void | Promise<void>>;
193
+ default: undefined;
194
+ };
195
+ /**
196
+ * The outline panel: `true` to open it, or options (`visible`,
197
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
198
+ * `position` apply live; the others are read when the view is created.
199
+ */
200
+ outline: {
201
+ type: PropType<boolean | MdzipOutlineViewOptions>;
202
+ default: undefined;
203
+ };
204
+ /** Shows spaces and tabs in the source editor. Applies live. */
205
+ showWhitespace: {
206
+ type: BooleanConstructor;
207
+ default: undefined;
208
+ };
209
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
210
+ manifestView: {
211
+ type: PropType<"form" | "json">;
212
+ default: undefined;
213
+ };
214
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
215
+ jsonStatus: {
216
+ type: BooleanConstructor;
217
+ default: undefined;
218
+ };
162
219
  }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
163
220
  [key: string]: any;
164
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "linkActivated")[], "selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "linkActivated", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
221
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "assetsProgress" | "linkActivated" | "outlineVisibilityChanged" | "outlinePositionChanged" | "outlineWidthChanged" | "whitespaceVisibilityChanged" | "jsonValidityChanged")[], "selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "assetsProgress" | "linkActivated" | "outlineVisibilityChanged" | "outlinePositionChanged" | "outlineWidthChanged" | "whitespaceVisibilityChanged" | "jsonValidityChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
165
222
  bytes: {
166
223
  type: PropType<Uint8Array | null>;
167
224
  default: null;
@@ -219,8 +276,18 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
219
276
  type: BooleanConstructor;
220
277
  default: boolean;
221
278
  };
279
+ /**
280
+ * Loads every image as soon as the preview mounts, for a preview nobody
281
+ * scrolls, such as an off-screen copy for printing (see the view option).
282
+ * Defaults to `false`. Constructor-only.
283
+ */
284
+ eagerImages: BooleanConstructor;
222
285
  /** Extra file tree menu items for files, run by the host (see the view option). Read when the view is created. */
223
286
  hostFileActions: PropType<readonly MdzipFileAction[]>;
287
+ /** A line for the card of a file the preview can't show (see the view option). Read when the view is created. */
288
+ fileNote: PropType<(file: MdzipFileActionTarget) => string | null>;
289
+ /** A help link at the bottom of that card (see the view option). Read when the view is created. */
290
+ fileCardHelp: PropType<MdzipFileCardHelp>;
224
291
  navigationMode: {
225
292
  type: PropType<MdzipNavigationMode>;
226
293
  default: string;
@@ -290,6 +357,41 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
290
357
  type: NumberConstructor;
291
358
  default: number;
292
359
  };
360
+ /**
361
+ * Writes files taken out of the archive (the contents pane's Extract…),
362
+ * for hosts that can write to disk themselves. With it, the menu says
363
+ * **Extract…** instead of offering browser downloads. A function prop,
364
+ * like `onConversionRequested`, because the view waits for it. Whether
365
+ * it's given is read when the view is created.
366
+ */
367
+ onExtractFiles: {
368
+ type: PropType<(request: MdzipExtractRequest) => void | Promise<void>>;
369
+ default: undefined;
370
+ };
371
+ /**
372
+ * The outline panel: `true` to open it, or options (`visible`,
373
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
374
+ * `position` apply live; the others are read when the view is created.
375
+ */
376
+ outline: {
377
+ type: PropType<boolean | MdzipOutlineViewOptions>;
378
+ default: undefined;
379
+ };
380
+ /** Shows spaces and tabs in the source editor. Applies live. */
381
+ showWhitespace: {
382
+ type: BooleanConstructor;
383
+ default: undefined;
384
+ };
385
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
386
+ manifestView: {
387
+ type: PropType<"form" | "json">;
388
+ default: undefined;
389
+ };
390
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
391
+ jsonStatus: {
392
+ type: BooleanConstructor;
393
+ default: undefined;
394
+ };
293
395
  }>> & Readonly<{
294
396
  onSelectionChanged?: ((...args: any[]) => any) | undefined;
295
397
  onFailed?: ((...args: any[]) => any) | undefined;
@@ -307,11 +409,18 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
307
409
  onPreviewWidthChanged?: ((...args: any[]) => any) | undefined;
308
410
  onPreviewRendered?: ((...args: any[]) => any) | undefined;
309
411
  onAssetsHydrated?: ((...args: any[]) => any) | undefined;
412
+ onAssetsProgress?: ((...args: any[]) => any) | undefined;
310
413
  onLinkActivated?: ((...args: any[]) => any) | undefined;
414
+ onOutlineVisibilityChanged?: ((...args: any[]) => any) | undefined;
415
+ onOutlinePositionChanged?: ((...args: any[]) => any) | undefined;
416
+ onOutlineWidthChanged?: ((...args: any[]) => any) | undefined;
417
+ onWhitespaceVisibilityChanged?: ((...args: any[]) => any) | undefined;
418
+ onJsonValidityChanged?: ((...args: any[]) => any) | undefined;
311
419
  }>, {
312
420
  controls: MdzipControlPreset | MdzipControlPolicy;
313
421
  mode: MdzipWorkspaceMode;
314
422
  progressiveTextRendering: boolean;
423
+ eagerImages: boolean;
315
424
  bytes: Uint8Array<ArrayBufferLike> | null;
316
425
  workspace: MdzWorkspace | null;
317
426
  fileName: string;
@@ -327,5 +436,10 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
327
436
  frontMatter: MdzipFrontMatterOptions;
328
437
  externalLinks: MdzipExternalLinkPolicy;
329
438
  entrySlotPriority: number;
439
+ onExtractFiles: (request: MdzipExtractRequest) => void | Promise<void>;
440
+ outline: boolean | MdzipOutlineViewOptions;
441
+ showWhitespace: boolean;
442
+ manifestView: "form" | "json";
443
+ jsonStatus: boolean;
330
444
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
331
445
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAaL,KAAK,QAAQ,EAEb,KAAK,KAAK,EAEX,MAAM,KAAK,CAAC;AAGb,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EAEnB,0BAA0B,EAC1B,oBAAoB,EAEpB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EAEpB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EAEvB,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EAEjB,eAAe,EAChB,MAAM,eAAe,CAAC;AA+CvB,MAAM,WAAW,qBAAqB;IACpC,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC;IACxD,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,KAAK,IAAI,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAC7C,SAAS,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAClC,kBAAkB,IAAI,OAAO,CAAC,mBAAmB,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qB,WACrB,qBAAqB,KAC3B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;;;;8BAoDM,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;;;;;4EAmWrF,CAAC"}
package/dist/index.js CHANGED
@@ -82,8 +82,18 @@ export const MdzipWorkspace = defineComponent({
82
82
  * clicked (see the view option). Defaults to `true`. Constructor-only.
83
83
  */
84
84
  inlineSvgLinks: { type: Boolean, default: true },
85
+ /**
86
+ * Loads every image as soon as the preview mounts, for a preview nobody
87
+ * scrolls, such as an off-screen copy for printing (see the view option).
88
+ * Defaults to `false`. Constructor-only.
89
+ */
90
+ eagerImages: Boolean,
85
91
  /** Extra file tree menu items for files, run by the host (see the view option). Read when the view is created. */
86
92
  hostFileActions: Array,
93
+ /** A line for the card of a file the preview can't show (see the view option). Read when the view is created. */
94
+ fileNote: Function,
95
+ /** A help link at the bottom of that card (see the view option). Read when the view is created. */
96
+ fileCardHelp: Object,
87
97
  navigationMode: {
88
98
  type: String,
89
99
  default: 'editor'
@@ -147,6 +157,32 @@ export const MdzipWorkspace = defineComponent({
147
157
  },
148
158
  /** Matching priority of the `#entry` slot relative to `entryRenderers`. */
149
159
  entrySlotPriority: { type: Number, default: 0 },
160
+ /**
161
+ * Writes files taken out of the archive (the contents pane's Extract…),
162
+ * for hosts that can write to disk themselves. With it, the menu says
163
+ * **Extract…** instead of offering browser downloads. A function prop,
164
+ * like `onConversionRequested`, because the view waits for it. Whether
165
+ * it's given is read when the view is created.
166
+ */
167
+ onExtractFiles: {
168
+ type: Function,
169
+ default: undefined
170
+ },
171
+ /**
172
+ * The outline panel: `true` to open it, or options (`visible`,
173
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
174
+ * `position` apply live; the others are read when the view is created.
175
+ */
176
+ outline: {
177
+ type: [Boolean, Object],
178
+ default: undefined
179
+ },
180
+ /** Shows spaces and tabs in the source editor. Applies live. */
181
+ showWhitespace: { type: Boolean, default: undefined },
182
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
183
+ manifestView: { type: String, default: undefined },
184
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
185
+ jsonStatus: { type: Boolean, default: undefined },
150
186
  },
151
187
  emits: [
152
188
  'changed',
@@ -164,12 +200,23 @@ export const MdzipWorkspace = defineComponent({
164
200
  'previewWidthChanged',
165
201
  'previewRendered',
166
202
  'assetsHydrated',
203
+ 'assetsProgress',
167
204
  /**
168
205
  * Every click on a preview link, before the view's own handling. Call
169
206
  * `event.preventDefault()` in the handler to take over navigation.
170
207
  */
171
208
  'linkActivated',
172
- 'failed'
209
+ 'failed',
210
+ /** The reader showed or hid the outline from the toolbar. */
211
+ 'outlineVisibilityChanged',
212
+ /** The reader moved the outline panel to the other side from the toolbar. */
213
+ 'outlinePositionChanged',
214
+ /** The reader finished dragging the outline panel to a new width (pixels). */
215
+ 'outlineWidthChanged',
216
+ /** The reader showed or hid whitespace from the toolbar. */
217
+ 'whitespaceVisibilityChanged',
218
+ /** The open `.json` file's validity (debounced while typing): `{ validity, path }`. */
219
+ 'jsonValidityChanged'
173
220
  ],
174
221
  setup(props, { emit, expose, slots }) {
175
222
  const hostRef = ref(null);
@@ -233,8 +280,13 @@ export const MdzipWorkspace = defineComponent({
233
280
  openPath: (path, options) => view?.openPath(path, options) ?? Promise.resolve(false),
234
281
  getCurrentPath: () => view?.getCurrentPath() ?? null,
235
282
  markPersisted: () => view?.markPersisted(),
283
+ setOutlineVisible: (visible) => view?.setOutlineVisible(visible),
284
+ setOutlinePosition: (position) => view?.setOutlinePosition(position),
285
+ setLayout: (layout) => view?.setLayout(layout) ?? Promise.resolve(),
286
+ extractFiles: (paths, options) => view?.extractFiles(paths, options) ?? Promise.resolve([]),
236
287
  addAsset: (archivePath, fileBytes) => view?.addAsset(archivePath, fileBytes) ?? Promise.resolve(),
237
288
  replaceAsset: (archivePath, fileBytes) => view?.replaceAsset(archivePath, fileBytes) ?? Promise.resolve(false),
289
+ refreshFileActions: () => view?.refreshFileActions(),
238
290
  removeAsset: (archivePath, options) => view?.removeAsset(archivePath, options) ?? Promise.resolve(false),
239
291
  removeFile: (archivePath) => view?.removeFile(archivePath) ?? Promise.resolve(false),
240
292
  renameFile: (oldPath, newPath) => view?.renameFile(oldPath, newPath) ?? Promise.resolve(false),
@@ -261,7 +313,10 @@ export const MdzipWorkspace = defineComponent({
261
313
  systemColorScheme: props.systemColorScheme,
262
314
  progressiveTextRendering: props.progressiveTextRendering,
263
315
  inlineSvgLinks: props.inlineSvgLinks,
316
+ eagerImages: props.eagerImages,
264
317
  hostFileActions: props.hostFileActions,
318
+ fileNote: props.fileNote ? (file) => props.fileNote?.(file) ?? null : undefined,
319
+ fileCardHelp: props.fileCardHelp,
265
320
  navigationMode: props.navigationMode,
266
321
  navigationButtonActive: props.navigationButtonActive,
267
322
  onChanged: (bytes, snapshot) => emit('changed', { bytes, snapshot }),
@@ -279,9 +334,22 @@ export const MdzipWorkspace = defineComponent({
279
334
  onPreviewWidthChanged: (width) => emit('previewWidthChanged', width),
280
335
  onPreviewRendered: (snapshot) => emit('previewRendered', snapshot),
281
336
  onAssetsHydrated: (snapshot) => emit('assetsHydrated', snapshot),
337
+ onAssetsProgress: (progress) => emit('assetsProgress', progress),
282
338
  onLinkActivated: (event) => emit('linkActivated', event),
283
339
  externalLinks: props.externalLinks,
284
340
  onFailed: (e) => emit('failed', e),
341
+ onExtractFiles: props.onExtractFiles
342
+ ? (request) => props.onExtractFiles?.(request)
343
+ : undefined,
344
+ outline: props.outline,
345
+ onOutlineVisibilityChanged: (visible) => emit('outlineVisibilityChanged', visible),
346
+ onOutlinePositionChanged: (position) => emit('outlinePositionChanged', position),
347
+ onOutlineWidthChanged: (width) => emit('outlineWidthChanged', width),
348
+ showWhitespace: props.showWhitespace,
349
+ onWhitespaceVisibilityChanged: (visible) => emit('whitespaceVisibilityChanged', visible),
350
+ manifestView: props.manifestView,
351
+ jsonStatus: props.jsonStatus,
352
+ onJsonValidityChanged: (validity, path) => emit('jsonValidityChanged', { validity, path }),
285
353
  onConversionRequested: props.onConversionRequested,
286
354
  onPackRequested: props.onPackRequested,
287
355
  imageInsertHandler: (request) => props.imageInsertHandler?.(request),
@@ -340,6 +408,7 @@ export const MdzipWorkspace = defineComponent({
340
408
  () => props.initialColorScheme,
341
409
  () => props.progressiveTextRendering,
342
410
  () => props.inlineSvgLinks,
411
+ () => props.eagerImages,
343
412
  () => props.navigationMode,
344
413
  () => props.navigationButtonActive
345
414
  ], () => {
@@ -348,6 +417,18 @@ export const MdzipWorkspace = defineComponent({
348
417
  watch(() => props.controls, (controls) => {
349
418
  view?.setControls(controls);
350
419
  });
420
+ // The outline's visibility and side apply live; inline objects are safe.
421
+ watch(() => (typeof props.outline === 'object' ? props.outline.visible ?? false : props.outline ?? false), (visible) => view?.setOutlineVisible(visible));
422
+ watch(() => (typeof props.outline === 'object' ? props.outline.position : undefined), (position) => {
423
+ if (position) {
424
+ view?.setOutlinePosition(position);
425
+ }
426
+ });
427
+ watch(() => props.showWhitespace, (visible) => {
428
+ if (visible !== undefined) {
429
+ view?.setWhitespaceVisible(visible);
430
+ }
431
+ });
351
432
  watch([() => props.toolbarDensity, () => props.contentDensity], ([toolbarDensity, contentDensity]) => {
352
433
  view?.setDensityOptions({ toolbarDensity, contentDensity });
353
434
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,kBAAkB,EAClB,CAAC,EACD,SAAS,EACT,WAAW,EACX,GAAG,EACH,MAAM,EACN,UAAU,EACV,KAAK,GAKN,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA0CjD,yEAAyE;AACzE,yEAAyE;AACz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,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAChF,CAAC;CACF,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const PACKAGE_INFO: {
2
2
  readonly name: "@mdzip/editor-vue";
3
- readonly version: "2.5.0";
3
+ readonly version: "2.6.0";
4
4
  readonly repositoryUrl: "https://github.com/mdzip-project/mdzip-editor/tree/main/packages/editor-vue";
5
5
  readonly description: "Vue wrapper for the MDZip workspace editor.";
6
6
  };
@@ -1,7 +1,7 @@
1
1
  // Generated from package.json. Do not edit by hand.
2
2
  export const PACKAGE_INFO = {
3
3
  "name": "@mdzip/editor-vue",
4
- "version": "2.5.0",
4
+ "version": "2.6.0",
5
5
  "repositoryUrl": "https://github.com/mdzip-project/mdzip-editor/tree/main/packages/editor-vue",
6
6
  "description": "Vue wrapper for the MDZip workspace editor."
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdzip/editor-vue",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Vue wrapper for the MDZip workspace editor.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "test": "vitest run"
36
36
  },
37
37
  "dependencies": {
38
- "@mdzip/editor": "^2.5.0"
38
+ "@mdzip/editor": "^2.6.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "vue": ">=3.0.0"