@mdzip/editor-vue 2.5.0 → 2.5.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 CHANGED
@@ -1,226 +1,237 @@
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
+ | `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
+ | `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 |
110
+ | `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 |
111
+ | `showWhitespace` | `boolean` | `false` | Shows spaces and tabs in the source editor. Applies live |
112
+ | `manifestView` | `'form' \| 'json'` | `'form'` | How `manifest.json` opens. Read when the view is created |
113
+ | `jsonStatus` | `boolean` | `true` | The status line under the editor for `.json` files. Read when the view is created |
114
+
115
+ `controls`, density, `imageHydrationAnimation`, and rendering prop changes apply in
116
+ place — they never recreate the workspace view. Line-number visibility changes
117
+ preserve the current CodeMirror document and selection. See the `@mdzip/editor`
118
+ Rendering Extensibility docs for the contracts and lifecycle rules.
119
+
120
+ ### Native entry rendering (`#entry` slot)
121
+
122
+ ```vue
123
+ <MdzipWorkspace :bytes="bytes">
124
+ <template #entry="{ context }">
125
+ <ManifestEditor
126
+ v-if="context.path.toLowerCase() === 'manifest.json'"
127
+ :manifest="context.manifest"
128
+ :editable="context.mode === 'editable'"
129
+ @manifest-change="context.updateManifest"
130
+ />
131
+ </template>
132
+ </MdzipWorkspace>
133
+ ```
134
+
135
+ A slot render that produces no content (its `v-if` is false) delegates to
136
+ `entryRenderers` and the built-in rendering. The slot mounts in a detached
137
+ tree sharing the host app context (plugins, provide/inject); the context is
138
+ reactive, and the tree unmounts on selection change.
139
+
140
+ ## Events
141
+
142
+ | Event | Payload | Description |
143
+ |-------|---------|-------------|
144
+ | `changed` | `MdzipWorkspaceChange` | Emitted when archive bytes change |
145
+ | `saved` | `MdzipWorkspaceSave` | Emitted on Save |
146
+ | `snapshotChanged` | `MdzipWorkspaceSnapshot` | Emitted on any state change |
147
+ | `selectionChanged` | `MdzipWorkspaceSnapshot` | Emitted when the editor selection changes |
148
+ | `dirtyChanged` | `MdzipWorkspaceSnapshot` | Emitted when the dirty flag changes |
149
+ | `validationChanged` | `MdzipWorkspaceSnapshot` | Emitted when validation state changes |
150
+ | `colorSchemeChanged` | `MdzipColorScheme` | Emitted when the color scheme changes |
151
+ | `colorSchemePreferenceChanged` | `MdzipColorSchemePreference` | Emitted when the user picks Light, Dark or System in the toolbar menu |
152
+ | `previewWidthChanged` | `MdzipPreviewWidthChoice` | Emitted when the user picks a width in the toolbar's page-width menu |
153
+ | `previewRendered` | `MdzipWorkspaceSnapshot` | Emitted when the preview HTML is mounted |
154
+ | `assetsHydrated` | `MdzipWorkspaceSnapshot` | Emitted once the mounted preview's images have loaded |
155
+ | `linkActivated` | `MdzipLinkActivatedEvent` | Emitted for every preview link click before built-in handling; call `event.preventDefault()` to take over |
156
+ | `failed` | `unknown` | Emitted on unrecoverable errors |
157
+ | `outlineVisibilityChanged` | `boolean` | Emitted when the reader shows or hides the outline from the toolbar |
158
+ | `outlineWidthChanged` | `number` | Emitted with the outline panel's width (pixels) when the reader finishes dragging its edge |
159
+ | `whitespaceVisibilityChanged` | `boolean` | Emitted when the reader shows or hides whitespace from the toolbar |
160
+ | `jsonValidityChanged` | `{ validity, path }` | Emitted (debounced while typing) with the open `.json` file's validity; `null`s for other files |
161
+
162
+ ## Conversion hook
163
+
164
+ `onConversionRequested` is a **function prop** (not an emit, because it must return a value):
165
+ pass `(action: MdzipConversionAction) => boolean | Promise<boolean>`. It fires when the user
166
+ triggers the markdown→MDZ conversion flow (nav button, Insert Image, or image paste on a
167
+ plain `.md`). Return/resolve `true` to take over and suppress the built-in conversion dialog.
168
+
169
+ `onPackRequested` is the same kind of function prop for the folder→.mdz packing
170
+ decision surfaced by the exposed `packFilesAsWorkspace(files, options)` method — fires
171
+ only when the file list contains more than one Markdown file, with the same
172
+ return contract as `onConversionRequested`.
173
+
174
+ ## Image insertion
175
+
176
+ Pass `image-insert-mode="markdown"`, `"ask"`, or `"html"` for the built-in
177
+ image markup flow. Pass `:image-insert-handler="handler"` for host-owned image
178
+ UI; the handler can return Markdown or HTML sizing/alignment settings, return
179
+ `null` to cancel, or return `undefined` to fall back to `imageInsertMode`.
180
+
181
+ Pass `:image-edit-handler="handler"` to let users edit an *existing* image by
182
+ clicking it. Fully opt-in — with no handler, clicking an image does nothing
183
+ and no edit affordance appears; there is no built-in fallback dialog.
184
+
185
+ ## File management (nav pane)
186
+
187
+ With `controls="standalone-editor"` or `"hosted-editor"` (or `fileActions: true` in a custom
188
+ policy), the navigation pane offers a right-click context menu: new `.md` file, new folder,
189
+ rename/move, duplicate, replace, download, copy markdown link, set entry point, set cover
190
+ image, and delete. Files can also be dragged between folders, and OS files can be dropped
191
+ onto the pane. Copy and Download remain available in read-only mode. The same operations are
192
+ exposed on the handle: `removeFile`, `renameFile`, `setEntryPoint`, and `setCoverImage`.
193
+
194
+ ## Imperative API
195
+
196
+ Use a template ref to access the exposed handle:
197
+
198
+ ```vue
199
+ <script setup lang="ts">
200
+ import { ref } from 'vue';
201
+ import { MdzipWorkspace, type MdzipWorkspaceExposed } from '@mdzip/editor-vue';
202
+
203
+ const workspace = ref<MdzipWorkspaceExposed>();
204
+
205
+ async function save() {
206
+ const snapshot = await workspace.value?.flush();
207
+ if (snapshot) {
208
+ await persist(snapshot.bytes);
209
+ workspace.value?.markPersisted();
210
+ }
211
+ }
212
+ </script>
213
+
214
+ <template>
215
+ <MdzipWorkspace ref="workspace" ... />
216
+ </template>
217
+ ```
218
+
219
+ Also: `setOutlineVisible(visible)` and `setOutlinePosition('left' | 'right')` move the outline panel, and `extractFiles(paths, { includeFolders })` returns the archive's files as `{ path, bytes }`.
220
+
221
+ The handle also exposes `whenRendered()`, which resolves once the current preview (including
222
+ its images) is mounted — useful for revealing or animating read-only preview content.
223
+
224
+ ## Links and anchors
225
+
226
+ The `linkActivated` event fires for every preview link click, before the view's own handling, with the
227
+ parsed link (`kind`: `'anchor' | 'document' | 'relative' | 'external'`, plus `path`,
228
+ `anchor`, `targetPath`, `sourcePath`, modifier keys). Call `event.preventDefault()` in the
229
+ handler to route the link yourself; unprevented clicks keep the built-in behavior.
230
+ The handle also exposes `scrollToAnchor(anchor)` (waits for the preview to mount, resolves whether it
231
+ scrolled; safe straight after load), `getAvailableAnchors()`, `openPath(path, { anchor })` (opens another
232
+ file, optionally at an anchor) and `getCurrentPath()`. Changing only `fileName` (e.g. after Save As)
233
+ renames in place without reopening; set `preserveSelectionOnReopen` to stay on the current file when
234
+ the archive content changes. See the
235
+ [`@mdzip/editor` README](https://www.npmjs.com/package/@mdzip/editor#links-and-anchors).
236
+
237
+ 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, 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,6 +16,14 @@ 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
+ /** The archive's files as `{ path, bytes }`, by file or folder path (see the view's `extractFiles()`). */
24
+ extractFiles(paths: readonly string[], options?: {
25
+ includeFolders?: boolean;
26
+ }): Promise<MdzipExtractedFile[]>;
19
27
  addAsset(archivePath: string, fileBytes: Uint8Array): Promise<void>;
20
28
  replaceAsset(archivePath: string, fileBytes: Uint8Array): Promise<boolean>;
21
29
  removeAsset(archivePath: string, options?: MdzipRemoveAssetOptions): Promise<boolean>;
@@ -159,9 +167,44 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
159
167
  type: NumberConstructor;
160
168
  default: number;
161
169
  };
170
+ /**
171
+ * Writes files taken out of the archive (the contents pane's Extract…),
172
+ * for hosts that can write to disk themselves. With it, the menu says
173
+ * **Extract…** instead of offering browser downloads. A function prop,
174
+ * like `onConversionRequested`, because the view waits for it. Whether
175
+ * it's given is read when the view is created.
176
+ */
177
+ onExtractFiles: {
178
+ type: PropType<(request: MdzipExtractRequest) => void | Promise<void>>;
179
+ default: undefined;
180
+ };
181
+ /**
182
+ * The outline panel: `true` to open it, or options (`visible`,
183
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
184
+ * `position` apply live; the others are read when the view is created.
185
+ */
186
+ outline: {
187
+ type: PropType<boolean | MdzipOutlineViewOptions>;
188
+ default: undefined;
189
+ };
190
+ /** Shows spaces and tabs in the source editor. Applies live. */
191
+ showWhitespace: {
192
+ type: BooleanConstructor;
193
+ default: undefined;
194
+ };
195
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
196
+ manifestView: {
197
+ type: PropType<"form" | "json">;
198
+ default: undefined;
199
+ };
200
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
201
+ jsonStatus: {
202
+ type: BooleanConstructor;
203
+ default: undefined;
204
+ };
162
205
  }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
163
206
  [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<{
207
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "linkActivated" | "outlineVisibilityChanged" | "outlineWidthChanged" | "whitespaceVisibilityChanged" | "jsonValidityChanged")[], "selectionChanged" | "failed" | "changed" | "saved" | "workspaceChanged" | "documentChanged" | "assetChanged" | "manifestChanged" | "snapshotChanged" | "dirtyChanged" | "validationChanged" | "colorSchemeChanged" | "colorSchemePreferenceChanged" | "previewWidthChanged" | "previewRendered" | "assetsHydrated" | "linkActivated" | "outlineVisibilityChanged" | "outlineWidthChanged" | "whitespaceVisibilityChanged" | "jsonValidityChanged", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
165
208
  bytes: {
166
209
  type: PropType<Uint8Array | null>;
167
210
  default: null;
@@ -290,6 +333,41 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
290
333
  type: NumberConstructor;
291
334
  default: number;
292
335
  };
336
+ /**
337
+ * Writes files taken out of the archive (the contents pane's Extract…),
338
+ * for hosts that can write to disk themselves. With it, the menu says
339
+ * **Extract…** instead of offering browser downloads. A function prop,
340
+ * like `onConversionRequested`, because the view waits for it. Whether
341
+ * it's given is read when the view is created.
342
+ */
343
+ onExtractFiles: {
344
+ type: PropType<(request: MdzipExtractRequest) => void | Promise<void>>;
345
+ default: undefined;
346
+ };
347
+ /**
348
+ * The outline panel: `true` to open it, or options (`visible`,
349
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
350
+ * `position` apply live; the others are read when the view is created.
351
+ */
352
+ outline: {
353
+ type: PropType<boolean | MdzipOutlineViewOptions>;
354
+ default: undefined;
355
+ };
356
+ /** Shows spaces and tabs in the source editor. Applies live. */
357
+ showWhitespace: {
358
+ type: BooleanConstructor;
359
+ default: undefined;
360
+ };
361
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
362
+ manifestView: {
363
+ type: PropType<"form" | "json">;
364
+ default: undefined;
365
+ };
366
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
367
+ jsonStatus: {
368
+ type: BooleanConstructor;
369
+ default: undefined;
370
+ };
293
371
  }>> & Readonly<{
294
372
  onSelectionChanged?: ((...args: any[]) => any) | undefined;
295
373
  onFailed?: ((...args: any[]) => any) | undefined;
@@ -308,6 +386,10 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
308
386
  onPreviewRendered?: ((...args: any[]) => any) | undefined;
309
387
  onAssetsHydrated?: ((...args: any[]) => any) | undefined;
310
388
  onLinkActivated?: ((...args: any[]) => any) | undefined;
389
+ onOutlineVisibilityChanged?: ((...args: any[]) => any) | undefined;
390
+ onOutlineWidthChanged?: ((...args: any[]) => any) | undefined;
391
+ onWhitespaceVisibilityChanged?: ((...args: any[]) => any) | undefined;
392
+ onJsonValidityChanged?: ((...args: any[]) => any) | undefined;
311
393
  }>, {
312
394
  controls: MdzipControlPreset | MdzipControlPolicy;
313
395
  mode: MdzipWorkspaceMode;
@@ -327,5 +409,10 @@ export declare const MdzipWorkspace: import("vue").DefineComponent<import("vue")
327
409
  frontMatter: MdzipFrontMatterOptions;
328
410
  externalLinks: MdzipExternalLinkPolicy;
329
411
  entrySlotPriority: number;
412
+ onExtractFiles: (request: MdzipExtractRequest) => void | Promise<void>;
413
+ outline: boolean | MdzipOutlineViewOptions;
414
+ showWhitespace: boolean;
415
+ manifestView: "form" | "json";
416
+ jsonStatus: boolean;
330
417
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
331
418
  //# 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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space = defineComponent({
147
147
  },
148
148
  /** Matching priority of the `#entry` slot relative to `entryRenderers`. */
149
149
  entrySlotPriority: { type: Number, default: 0 },
150
+ /**
151
+ * Writes files taken out of the archive (the contents pane's Extract…),
152
+ * for hosts that can write to disk themselves. With it, the menu says
153
+ * **Extract…** instead of offering browser downloads. A function prop,
154
+ * like `onConversionRequested`, because the view waits for it. Whether
155
+ * it's given is read when the view is created.
156
+ */
157
+ onExtractFiles: {
158
+ type: Function,
159
+ default: undefined
160
+ },
161
+ /**
162
+ * The outline panel: `true` to open it, or options (`visible`,
163
+ * `position`, `width`, `levels`, `collapse`, `label`). `visible` and
164
+ * `position` apply live; the others are read when the view is created.
165
+ */
166
+ outline: {
167
+ type: [Boolean, Object],
168
+ default: undefined
169
+ },
170
+ /** Shows spaces and tabs in the source editor. Applies live. */
171
+ showWhitespace: { type: Boolean, default: undefined },
172
+ /** How `manifest.json` opens: `'form'` (the default) or `'json'`. Read when the view is created. */
173
+ manifestView: { type: String, default: undefined },
174
+ /** The status line under the editor for `.json` files. Defaults to `true`. Read when the view is created. */
175
+ jsonStatus: { type: Boolean, default: undefined },
150
176
  },
151
177
  emits: [
152
178
  'changed',
@@ -169,7 +195,15 @@ export const MdzipWorkspace = defineComponent({
169
195
  * `event.preventDefault()` in the handler to take over navigation.
170
196
  */
171
197
  'linkActivated',
172
- 'failed'
198
+ 'failed',
199
+ /** The reader showed or hid the outline from the toolbar. */
200
+ 'outlineVisibilityChanged',
201
+ /** The reader finished dragging the outline panel to a new width (pixels). */
202
+ 'outlineWidthChanged',
203
+ /** The reader showed or hid whitespace from the toolbar. */
204
+ 'whitespaceVisibilityChanged',
205
+ /** The open `.json` file's validity (debounced while typing): `{ validity, path }`. */
206
+ 'jsonValidityChanged'
173
207
  ],
174
208
  setup(props, { emit, expose, slots }) {
175
209
  const hostRef = ref(null);
@@ -233,6 +267,9 @@ export const MdzipWorkspace = defineComponent({
233
267
  openPath: (path, options) => view?.openPath(path, options) ?? Promise.resolve(false),
234
268
  getCurrentPath: () => view?.getCurrentPath() ?? null,
235
269
  markPersisted: () => view?.markPersisted(),
270
+ setOutlineVisible: (visible) => view?.setOutlineVisible(visible),
271
+ setOutlinePosition: (position) => view?.setOutlinePosition(position),
272
+ extractFiles: (paths, options) => view?.extractFiles(paths, options) ?? Promise.resolve([]),
236
273
  addAsset: (archivePath, fileBytes) => view?.addAsset(archivePath, fileBytes) ?? Promise.resolve(),
237
274
  replaceAsset: (archivePath, fileBytes) => view?.replaceAsset(archivePath, fileBytes) ?? Promise.resolve(false),
238
275
  removeAsset: (archivePath, options) => view?.removeAsset(archivePath, options) ?? Promise.resolve(false),
@@ -282,6 +319,17 @@ export const MdzipWorkspace = defineComponent({
282
319
  onLinkActivated: (event) => emit('linkActivated', event),
283
320
  externalLinks: props.externalLinks,
284
321
  onFailed: (e) => emit('failed', e),
322
+ onExtractFiles: props.onExtractFiles
323
+ ? (request) => props.onExtractFiles?.(request)
324
+ : undefined,
325
+ outline: props.outline,
326
+ onOutlineVisibilityChanged: (visible) => emit('outlineVisibilityChanged', visible),
327
+ onOutlineWidthChanged: (width) => emit('outlineWidthChanged', width),
328
+ showWhitespace: props.showWhitespace,
329
+ onWhitespaceVisibilityChanged: (visible) => emit('whitespaceVisibilityChanged', visible),
330
+ manifestView: props.manifestView,
331
+ jsonStatus: props.jsonStatus,
332
+ onJsonValidityChanged: (validity, path) => emit('jsonValidityChanged', { validity, path }),
285
333
  onConversionRequested: props.onConversionRequested,
286
334
  onPackRequested: props.onPackRequested,
287
335
  imageInsertHandler: (request) => props.imageInsertHandler?.(request),
@@ -348,6 +396,18 @@ export const MdzipWorkspace = defineComponent({
348
396
  watch(() => props.controls, (controls) => {
349
397
  view?.setControls(controls);
350
398
  });
399
+ // The outline's visibility and side apply live; inline objects are safe.
400
+ watch(() => (typeof props.outline === 'object' ? props.outline.visible ?? false : props.outline ?? false), (visible) => view?.setOutlineVisible(visible));
401
+ watch(() => (typeof props.outline === 'object' ? props.outline.position : undefined), (position) => {
402
+ if (position) {
403
+ view?.setOutlinePosition(position);
404
+ }
405
+ });
406
+ watch(() => props.showWhitespace, (visible) => {
407
+ if (visible !== undefined) {
408
+ view?.setWhitespaceVisible(visible);
409
+ }
410
+ });
351
411
  watch([() => props.toolbarDensity, () => props.contentDensity], ([toolbarDensity, contentDensity]) => {
352
412
  view?.setDensityOptions({ toolbarDensity, contentDensity });
353
413
  });
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;AACzE,mEAAmE;AACnE,SAAS,kBAAkB,CACzB,UAAmD,EACnD,cAA6C,EAC7C,WAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;QAC7C,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;QACvE,+DAA+D;QAC/D,sEAAsE;QACtE,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAED,6EAA6E;AAC7E,6EAA6E;AAC7E,SAAS,oBAAoB,CAAC,KAAc;IAC1C,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE,CAAC;QACxE,OAAO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3
+ readonly version: "2.5.1";
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.5.1",
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.5.1",
4
4
  "description": "Vue wrapper for the MDZip workspace editor.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {