markdown-wysiwyg-editor 0.1.8 → 0.2.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +99 -96
  3. package/dist/components/LinkContextMenu.d.ts.map +1 -1
  4. package/dist/components/MarkdownEditor.d.ts.map +1 -1
  5. package/dist/components/MarkdownSyntaxStatus.d.ts.map +1 -1
  6. package/dist/components/MarkdownToolbar.d.ts +0 -3
  7. package/dist/components/MarkdownToolbar.d.ts.map +1 -1
  8. package/dist/components/TableContextMenu.d.ts +0 -2
  9. package/dist/components/TableContextMenu.d.ts.map +1 -1
  10. package/dist/components/TableEdgeControls.d.ts.map +1 -1
  11. package/dist/components/TableToolbar.d.ts.map +1 -1
  12. package/dist/converters/JsonToMarkdownConverter.d.ts +3 -0
  13. package/dist/converters/JsonToMarkdownConverter.d.ts.map +1 -1
  14. package/dist/converters/MarkdownTipTapConverter.d.ts +8 -2
  15. package/dist/converters/MarkdownTipTapConverter.d.ts.map +1 -1
  16. package/dist/extensions/CodeBlockNodeView.d.ts +1 -1
  17. package/dist/extensions/CodeBlockNodeView.d.ts.map +1 -1
  18. package/dist/extensions/LinkClickExtension.d.ts.map +1 -1
  19. package/dist/extensions/MarkdownPasteExtension.d.ts +3 -1
  20. package/dist/extensions/MarkdownPasteExtension.d.ts.map +1 -1
  21. package/dist/extensions/MarkdownShortcutsExtension.d.ts.map +1 -1
  22. package/dist/extensions/TableForceExtension.d.ts.map +1 -1
  23. package/dist/extensions/TableHoverExtension.d.ts.map +1 -1
  24. package/dist/extensions/TableRightClickExtension.d.ts.map +1 -1
  25. package/dist/extensions/mermaidRegistry.d.ts +5 -0
  26. package/dist/extensions/mermaidRegistry.d.ts.map +1 -0
  27. package/dist/hooks/useMarkdownEditor.d.ts +2 -1
  28. package/dist/hooks/useMarkdownEditor.d.ts.map +1 -1
  29. package/dist/hooks/useTableToolbar.d.ts.map +1 -1
  30. package/dist/i18n/I18nContext.d.ts +13 -0
  31. package/dist/i18n/I18nContext.d.ts.map +1 -0
  32. package/dist/index.css +1 -1
  33. package/dist/index.d.ts +4 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +12606 -12090
  36. package/dist/index.js.map +1 -1
  37. package/dist/types/index.d.ts +64 -51
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/utils/pasteHandler.d.ts +4 -1
  40. package/dist/utils/pasteHandler.d.ts.map +1 -1
  41. package/dist/utils/security.d.ts +5 -0
  42. package/dist/utils/security.d.ts.map +1 -1
  43. package/dist/utils/selectionUtils.d.ts +2 -0
  44. package/dist/utils/selectionUtils.d.ts.map +1 -1
  45. package/package.json +20 -34
  46. package/dist/components/MarkdownEditor.test.d.ts +0 -2
  47. package/dist/components/MarkdownEditor.test.d.ts.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.2.1] - 2025-12-15
11
+
12
+ ### Added
13
+
14
+ - Exported `I18nKey` type for typed translation keys.
15
+
16
+ ### Changed
17
+
18
+ - Memoized `I18nProvider` context value to reduce unnecessary rerenders.
19
+ - Updated documentation to match host-driven i18n (`I18nProvider` + `t(key)`) and removed obsolete `texts`/`placeholder` references.
20
+ - Made `prepublishOnly` use `npm run` to improve compatibility when publishing.
21
+
22
+ ## [0.2.0] - 2025-12-15
23
+
24
+ ### Added
25
+
26
+ - Host-driven i18n via `I18nProvider` and injected `t(key)`.
27
+ - `I18N_KEYS` exported for defining all UI labels by translation keys.
28
+
29
+ ### Changed
30
+
31
+ - All UI labels now resolve through `t(I18N_KEYS.*)`.
32
+
33
+ ### Removed
34
+
35
+ - Removed `texts` prop, `DEFAULT_TEXTS`, and related types from the public API.
36
+ - Removed `placeholder` prop (placeholder is derived from `t(I18N_KEYS.placeholder)`).
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # @markdown-wysiwyg/editor
1
+ # markdown-wysiwyg-editor
2
2
 
3
3
  Lightweight Markdown WYSIWYG editor for React, powered by TipTap.
4
4
 
5
- ---
5
+ ![Screenshot](https://raw.githubusercontent.com/ugnoguchigxp/markdownWysiwyg/main/assets/example.png)
6
6
 
7
- ## English
7
+ ---
8
8
 
9
- ### Features
9
+ ## Features
10
10
 
11
11
  - Rich text editing with Markdown syntax
12
12
  - Code blocks with syntax highlighting (19 languages)
@@ -17,7 +17,7 @@ Lightweight Markdown WYSIWYG editor for React, powered by TipTap.
17
17
  - Link context menu
18
18
  - TypeScript support
19
19
 
20
- ### Installation
20
+ ## Installation
21
21
 
22
22
  This editor is a React component targeting **React 18+ / ReactDOM 18+**.
23
23
 
@@ -29,7 +29,7 @@ npm install markdown-wysiwyg-editor
29
29
  yarn add markdown-wysiwyg-editor
30
30
  ```
31
31
 
32
- ### Quick Start
32
+ ## Quick Start
33
33
 
34
34
  **⚠️ IMPORTANT**: You **MUST** import the CSS file for the editor to work properly.
35
35
 
@@ -45,9 +45,9 @@ function App() {
45
45
  }
46
46
  ```
47
47
 
48
- ### Essential Setup Steps
48
+ ## Essential Setup Steps
49
49
 
50
- #### 1. CSS Import (Required)
50
+ ### 1. CSS Import (Required)
51
51
 
52
52
  **Without the CSS import, the editor will not display properly**. Make sure to import the stylesheet:
53
53
 
@@ -57,22 +57,22 @@ import 'markdown-wysiwyg-editor/style.css';
57
57
 
58
58
  You can import this in your main app file (e.g., `App.tsx` or `index.tsx`) to make it available globally.
59
59
 
60
- #### 2. Height and Scroll Configuration
60
+ ### 2. Height and Scroll Configuration
61
61
 
62
62
  The editor needs proper height configuration to enable scrolling. Choose one approach:
63
63
 
64
- **Option A: Fixed Height (Recommended)**
64
+ #### Option A: Fixed Height (Recommended)
65
65
 
66
66
  ```tsx
67
67
  <MarkdownEditor
68
68
  value={content}
69
69
  onChange={setContent}
70
- className="h-96" // Fixed height (384px)
71
- enableVerticalScroll={true} // Enable internal scrolling
70
+ className="h-96" // Fixed height (384px)
71
+ enableVerticalScroll={true} // Enable internal scrolling
72
72
  />
73
73
  ```
74
74
 
75
- **Option B: Flex Layout (For Full-Height Containers)**
75
+ #### Option B: Flex Layout (For Full-Height Containers)
76
76
 
77
77
  ```tsx
78
78
  // Parent container must have defined height
@@ -80,39 +80,42 @@ The editor needs proper height configuration to enable scrolling. Choose one app
80
80
  <MarkdownEditor
81
81
  value={content}
82
82
  onChange={setContent}
83
- className="flex-1" // Fill remaining space
84
- enableVerticalScroll={true} // Enable internal scrolling
83
+ className="flex-1" // Fill remaining space
84
+ enableVerticalScroll={true} // Enable internal scrolling
85
85
  />
86
86
  </div>
87
87
  ```
88
88
 
89
- **Option C: Auto-Height (No Scroll)**
89
+ #### Option C: Auto-Height (No Scroll)
90
90
 
91
91
  ```tsx
92
92
  <MarkdownEditor
93
93
  value={content}
94
94
  onChange={setContent}
95
- autoHeight={true} // Grow with content
96
- enableVerticalScroll={false} // No internal scrolling
95
+ autoHeight={true} // Grow with content
96
+ enableVerticalScroll={false} // No internal scrolling
97
97
  />
98
98
  ```
99
99
 
100
- #### 3. Common Issues and Solutions
100
+ ### 3. Common Issues and Solutions
101
+
102
+ #### Issue: Lists not displaying correctly
101
103
 
102
- **Issue: Lists not displaying correctly**
103
104
  - Make sure the CSS is imported properly
104
105
  - The CSS file contains all necessary styles for headings, lists, tables, etc.
105
106
 
106
- **Issue: No scrollbar appears**
107
+ #### Issue: No scrollbar appears
108
+
107
109
  - Set a fixed height using `className="h-96"` or similar
108
110
  - Enable scroll with `enableVerticalScroll={true}`
109
111
 
110
- **Issue: Styles not applying**
112
+ #### Issue: Styles not applying
113
+
111
114
  - Verify the CSS import path: `'markdown-wysiwyg-editor/style.css'`
112
115
  - Check browser console for CSS loading errors
113
116
  - Make sure you're not using CSS modules that might interfere with global styles
114
117
 
115
- #### With Mermaid
118
+ ### With Mermaid
116
119
 
117
120
  ```tsx
118
121
  import { useState } from 'react';
@@ -126,50 +129,57 @@ function App() {
126
129
  const [content, setContent] = useState('');
127
130
 
128
131
  return (
129
- <MarkdownEditor
130
- value={content}
131
- onChange={setContent}
132
- enableMermaid
133
- mermaidLib={mermaid}
134
- />
132
+ <MarkdownEditor value={content} onChange={setContent} enableMermaid mermaidLib={mermaid} />
135
133
  );
136
134
  }
137
135
  ```
138
136
 
139
- #### Disable Features
137
+ ### Disable Features
138
+
139
+ ```tsx
140
+ <MarkdownEditor value={content} onChange={setContent} enableImage={false} enableTable={false} />
141
+ ```
142
+
143
+ ### Image whitelist (local images)
144
+
145
+ For security reasons, **local image paths are not rendered by default**.
146
+
147
+ - Remote images are allowed only with `http` / `https`.
148
+ - For local paths (e.g. `/images/foo.png`), set `publicImagePathPrefix` and the `src` must start with that prefix.
149
+ - The following are rejected: `javascript:` / `data:` / `file:` / protocol-relative (`//...`) / path traversal (`../`).
150
+
151
+ Example:
140
152
 
141
153
  ```tsx
142
154
  <MarkdownEditor
143
155
  value={content}
144
156
  onChange={setContent}
145
- enableImage={false}
146
- enableTable={false}
157
+ publicImagePathPrefix="/images"
147
158
  />
148
159
  ```
149
160
 
150
- ### API (Props)
151
-
152
- | Prop | Type | Default | Description |
153
- | -------------- | -------------------------- | ------------------- | ----------------------------------------------------- |
154
- | `value` | `string` | - | Markdown content (required) |
155
- | `onChange` | `(value: string) => void` | - | Change handler (required) |
156
- | `editable` | `boolean` | `true` | Enable editing |
157
- | `placeholder` | `string` | `'Start typing...'` | Placeholder text |
158
- | `enableMermaid`| `boolean` | `false` | Enable Mermaid diagrams |
159
- | `enableImage` | `boolean` | `true` | Enable image insertion |
160
- | `enableTable` | `boolean` | `true` | Enable table editing |
161
- | `enableCodeBlock` | `boolean` | `true` | Enable code blocks |
162
- | `enableLink` | `boolean` | `true` | Enable links |
163
- | `mermaidLib` | `typeof mermaid` | - | Mermaid instance (required if `enableMermaid=true`) |
164
- | `texts` | `Partial<ITexts>` | `DEFAULT_TEXTS` | i18n text labels (see i18n section) |
165
- | `debug` | `boolean` | `false` | Show debug info (syntax status, paste debug) |
166
- | `className` | `string` | - | Additional CSS class |
167
- | `style` | `React.CSSProperties` | - | Inline styles |
168
- | `onBlur` | `() => void` | - | Blur event handler |
169
- | `onFocus` | `() => void` | - | Focus event handler |
170
- | `extensions` | `Extension[]` | - | Custom TipTap extensions |
171
-
172
- ### Supported Languages (Code Blocks)
161
+ ## API (Props)
162
+
163
+ | Prop | Type | Default | Description |
164
+ | ----------------- | ------------------------- | ------------------- | --------------------------------------------------- |
165
+ | `value` | `string` | - | Markdown content (required) |
166
+ | `onChange` | `(value: string) => void` | - | Change handler (required) |
167
+ | `editable` | `boolean` | `true` | Enable editing |
168
+ | `enableMermaid` | `boolean` | `false` | Enable Mermaid diagrams |
169
+ | `enableImage` | `boolean` | `true` | Enable image insertion |
170
+ | `enableTable` | `boolean` | `true` | Enable table editing |
171
+ | `enableCodeBlock` | `boolean` | `true` | Enable code blocks |
172
+ | `enableLink` | `boolean` | `true` | Enable links |
173
+ | `publicImagePathPrefix` | `string` | - | Allow local image `src` only when it starts with this prefix (e.g. `/images`) |
174
+ | `mermaidLib` | `typeof mermaid` | - | Mermaid instance (required if `enableMermaid=true`) |
175
+ | `debug` | `boolean` | `false` | Show debug info (syntax status, paste debug) |
176
+ | `className` | `string` | - | Additional CSS class |
177
+ | `style` | `React.CSSProperties` | - | Inline styles |
178
+ | `onBlur` | `() => void` | - | Blur event handler |
179
+ | `onFocus` | `() => void` | - | Focus event handler |
180
+ | `extensions` | `Extension[]` | - | Custom TipTap extensions |
181
+
182
+ ## Supported Languages (Code Blocks)
173
183
 
174
184
  - JavaScript / TypeScript
175
185
  - Python
@@ -183,64 +193,60 @@ function App() {
183
193
  - JSON / YAML / XML
184
194
  - Mermaid (if enabled)
185
195
 
186
- ### Bundle Size (rough guideline)
196
+ ## Bundle Size (rough guideline)
187
197
 
188
198
  - Without Mermaid: ~150KB (gzipped)
189
199
  - With Mermaid: +2.5MB
190
200
 
191
201
  Consider your app's performance and whether you really need Mermaid.
192
202
 
193
- ### Limitations / Notes
203
+ ## Limitations / Notes
194
204
 
195
205
  - Focused on **Markdown-based WYSIWYG**. It is not a full block editor like Notion.
196
206
  - Styling assumes a relatively neutral, Tailwind-friendly base; you are expected to adapt it to your design system.
197
207
  - TipTap / Mermaid and other internals may receive major updates; this library will follow with its own major bumps.
198
208
 
199
- ### Browser Support
209
+ ## Browser Support
200
210
 
201
211
  - Chrome / Edge: latest 2 versions
202
212
  - Firefox: latest 2 versions
203
213
  - Safari: latest 2 versions
204
214
  - Mobile: iOS Safari 15+, Chrome Android
205
215
 
206
- ### Advanced Usage
216
+ ## Advanced Usage
207
217
 
208
- #### Internationalization (i18n)
218
+ ### Internationalization (i18n)
209
219
 
210
- This editor supports integration with external i18n systems like **react-i18next** or **next-intl**.
220
+ This editor uses a host-driven i18n strategy.
211
221
 
212
- ##### Using Translation Keys with react-i18next
222
+ - Your app provides a translator function `t(key)` via `I18nProvider`.
223
+ - All UI labels are defined by `I18N_KEYS` (translation keys).
224
+ - If you don't provide a translator, the default behavior is to render the key itself.
225
+
226
+ #### With react-i18next
213
227
 
214
228
  ```tsx
215
- import { MarkdownEditor, I18N_KEYS } from '@markdown-wysiwyg/editor';
229
+ import { I18nProvider, MarkdownEditor, type Translator } from 'markdown-wysiwyg-editor';
216
230
  import { useTranslation } from 'react-i18next';
217
231
 
218
232
  function App() {
219
- const { t } = useTranslation();
233
+ const { t: t18n } = useTranslation();
220
234
  const [content, setContent] = useState('');
221
235
 
222
- const texts = {
223
- table: {
224
- rowOperations: t(I18N_KEYS.table.rowOperations),
225
- addRowAbove: t(I18N_KEYS.table.addRowAbove),
226
- addRowBelow: t(I18N_KEYS.table.addRowBelow),
227
- deleteRow: t(I18N_KEYS.table.deleteRow),
228
- columnOperations: t(I18N_KEYS.table.columnOperations),
229
- addColumnLeft: t(I18N_KEYS.table.addColumnLeft),
230
- addColumnRight: t(I18N_KEYS.table.addColumnRight),
231
- deleteColumn: t(I18N_KEYS.table.deleteColumn),
232
- deleteTable: t(I18N_KEYS.table.deleteTable),
233
- cancel: t(I18N_KEYS.table.cancel),
234
- },
235
- };
236
-
237
- return <MarkdownEditor value={content} onChange={setContent} texts={texts} />;
236
+ const t: Translator = (key, fallback) => t18n(key, { defaultValue: fallback ?? key });
237
+
238
+ return (
239
+ <I18nProvider t={t}>
240
+ <MarkdownEditor value={content} onChange={setContent} />
241
+ </I18nProvider>
242
+ );
238
243
  }
239
244
  ```
240
245
 
241
- ##### Add to your i18n JSON files
246
+ #### Add to your i18n JSON files
242
247
 
243
248
  **en.json:**
249
+
244
250
  ```json
245
251
  {
246
252
  "markdown_editor": {
@@ -261,6 +267,7 @@ function App() {
261
267
  ```
262
268
 
263
269
  **ja.json:**
270
+
264
271
  ```json
265
272
  {
266
273
  "markdown_editor": {
@@ -282,19 +289,15 @@ function App() {
282
289
 
283
290
  See [docs/i18n.md](./docs/i18n.md) for more details.
284
291
 
285
- #### Custom Toolbar
292
+ ### Custom Toolbar
286
293
 
287
294
  You can hide the built-in toolbar and provide your own UI:
288
295
 
289
296
  ```tsx
290
- <MarkdownEditor
291
- value={content}
292
- onChange={setContent}
293
- showToolbar={false}
294
- />
297
+ <MarkdownEditor value={content} onChange={setContent} showToolbar={false} />
295
298
  ```
296
299
 
297
- #### Custom Extensions
300
+ ### Custom Extensions
298
301
 
299
302
  You can inject TipTap extensions directly:
300
303
 
@@ -309,20 +312,20 @@ import TextAlign from '@tiptap/extension-text-align';
309
312
  types: ['heading', 'paragraph'],
310
313
  }),
311
314
  ]}
312
- />
315
+ />;
313
316
  ```
314
317
 
315
- ### Troubleshooting
318
+ ## Troubleshooting
316
319
 
317
- #### Styles not loading
320
+ ### Styles not loading
318
321
 
319
322
  ```tsx
320
- import '@markdown-wysiwyg/editor/style.css';
323
+ import 'markdown-wysiwyg-editor/style.css';
321
324
  ```
322
325
 
323
326
  Ensure the CSS is imported in your app entry.
324
327
 
325
- #### "ReferenceError: global is not defined"
328
+ ### "ReferenceError: global is not defined"
326
329
 
327
330
  With some Vite setups you may need:
328
331
 
@@ -332,7 +335,7 @@ define: {
332
335
  },
333
336
  ```
334
337
 
335
- ### Development
338
+ ## Development
336
339
 
337
340
  ```bash
338
341
  pnpm install
@@ -342,11 +345,11 @@ pnpm test
342
345
  pnpm lint
343
346
  ```
344
347
 
345
- ### License
348
+ ## License
346
349
 
347
350
  MIT
348
351
 
349
- ### Credits
352
+ ## Credits
350
353
 
351
354
  Built with:
352
355
 
@@ -1 +1 @@
1
- {"version":3,"file":"LinkContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/LinkContextMenu.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI,CAAC;IACT,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwM1D,CAAC"}
1
+ {"version":3,"file":"LinkContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/LinkContextMenu.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI,CAAC;IACT,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChE;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkN1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAgChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAatD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+vBzD,CAAC"}
1
+ {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAyBhE,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAgBtE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAs2BzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownSyntaxStatus.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownSyntaxStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,UAAU,0BAA0B;IAClC,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAsDrE,CAAC"}
1
+ {"version":3,"file":"MarkdownSyntaxStatus.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownSyntaxStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D,UAAU,0BAA0B;IAClC,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAwDrE,CAAC"}
@@ -1,16 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  import { Editor } from '@tiptap/react';
3
- import { ITexts } from '../types/index';
4
3
  interface MarkdownToolbarProps {
5
4
  onInsertMarkdown: (markdown: string, cursorOffset?: number) => void;
6
- onShowHelp: () => void;
7
5
  onImageUploadComplete?: (markdownImageUrl: string) => void;
8
6
  disabled?: boolean;
9
7
  selectedText?: string;
10
8
  editor?: Editor | null;
11
9
  showDownloadButton?: boolean;
12
10
  onDownloadAsMarkdown?: () => void;
13
- texts?: Partial<ITexts>;
14
11
  }
15
12
  export declare const MarkdownToolbar: React.FC<MarkdownToolbarProps>;
16
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownToolbar.d.ts","sourceRoot":"","sources":["../../src/components/MarkdownToolbar.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,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,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA0rB1D,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { ITexts } from '../types/index';
3
2
  export interface ITableContextMenuProps {
4
3
  isVisible: boolean;
5
4
  position: {
@@ -14,7 +13,6 @@ export interface ITableContextMenuProps {
14
13
  onDeleteRow: () => void;
15
14
  onDeleteColumn: () => void;
16
15
  onDeleteTable: () => void;
17
- texts?: Partial<ITexts>;
18
16
  }
19
17
  export declare const TableContextMenu: React.FC<ITableContextMenuProps>;
20
18
  //# sourceMappingURL=TableContextMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/TableContextMenu.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6H7D,CAAC"}
1
+ {"version":3,"file":"TableContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/TableContextMenu.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoI7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableEdgeControls.d.ts","sourceRoot":"","sources":["../../src/components/TableEdgeControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,yBAAyB,CAAC;AAGjC,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2G/D,CAAC"}
1
+ {"version":3,"file":"TableEdgeControls.d.ts","sourceRoot":"","sources":["../../src/components/TableEdgeControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,yBAAyB,CAAC;AAMjC,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmH/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../src/components/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,yBAAyB,CAAC;AAOjC,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiMrD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../src/components/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,yBAAyB,CAAC;AASjC,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8MrD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { JSONContent } from '@tiptap/react';
2
2
  export declare class JsonToMarkdownConverter {
3
+ private readonly _instanceMarker;
4
+ private constructor();
3
5
  /**
4
6
  * TipTap JSON構造をMarkdownテキストに変換
5
7
  */
@@ -32,6 +34,7 @@ export declare class JsonToMarkdownConverter {
32
34
  * リストアイテムの処理
33
35
  */
34
36
  private static processListItem;
37
+ private static processListItemWithMarker;
35
38
  /**
36
39
  * 引用の処理
37
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"JsonToMarkdownConverter.d.ts","sourceRoot":"","sources":["../../src/converters/JsonToMarkdownConverter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,qBAAa,uBAAuB;IAClC;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM;IAQnD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAI3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAuD1B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAK/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAO7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAKhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAKjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAShC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAM3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAsB3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAa9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IA+B1B;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAA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AAQ,SAAgB,GAAG,IAAI;CA4B7E;AAED,eAAe,uBAAuB,CAAC"}
@@ -1,9 +1,14 @@
1
1
  import { JSONContent } from '@tiptap/core';
2
2
  import { Editor } from '@tiptap/react';
3
+ interface MarkdownToTipTapOptions {
4
+ publicImagePathPrefix?: string;
5
+ }
3
6
  /**
4
7
  * メイン変換クラス
5
8
  */
6
9
  export declare class MarkdownTipTapConverter {
10
+ private readonly _instanceMarker;
11
+ private constructor();
7
12
  /**
8
13
  * MarkdownがMarkdown構文を含むかチェック
9
14
  */
@@ -11,7 +16,7 @@ export declare class MarkdownTipTapConverter {
11
16
  /**
12
17
  * MarkdownをTipTap JSON形式に変換
13
18
  */
14
- static markdownToTipTapJson(markdown: string): Promise<JSONContent>;
19
+ static markdownToTipTapJson(markdown: string, options?: MarkdownToTipTapOptions): Promise<JSONContent>;
15
20
  private static buildTableNode;
16
21
  /**
17
22
  * TipTap JSONをMarkdownに変換(逆変換)
@@ -23,6 +28,7 @@ export declare class MarkdownTipTapConverter {
23
28
  /**
24
29
  * チャンク処理(エディター用)
25
30
  */
26
- static processMarkdownInSmallChunksWithRender(markdown: string, editor: Editor, onChunkProcessed?: (processed: number, total: number) => void): Promise<void>;
31
+ static processMarkdownInSmallChunksWithRender(markdown: string, editor: Editor, onChunkProcessed?: (processed: number, total: number) => void, options?: MarkdownToTipTapOptions): Promise<void>;
27
32
  }
33
+ export {};
28
34
  //# sourceMappingURL=MarkdownTipTapConverter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownTipTapConverter.d.ts","sourceRoot":"","sources":["../../src/converters/MarkdownTipTapConverter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAue5C;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IA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;IAMtD,OAAO,CAAC,MAAM,CAAC,cAAc;IAkD7B,OAAO,CAAC,MAAM,CAAC,aAAa;IA8C5B,OAAO,CAAC,MAAM,CAAC,eAAe;IA0B9B;;OAEG;WACU,sCAAsC,CACjD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EAC7D,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,IAAI,CAAC;CAWjB"}
@@ -1,3 +1,3 @@
1
1
  import { NodeViewProps } from '@tiptap/core';
2
- export declare const CodeBlockNodeView: ({ node, selected, editor, updateAttributes, deleteNode }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const CodeBlockNodeView: ({ node, selected, editor, updateAttributes, deleteNode, }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=CodeBlockNodeView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlockNodeView.d.ts","sourceRoot":"","sources":["../../src/extensions/CodeBlockNodeView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAuE7C,eAAO,MAAM,iBAAiB,GAAI,0DAA0D,aAAa,4CAaxG,CAAC"}
1
+ {"version":3,"file":"CodeBlockNodeView.d.ts","sourceRoot":"","sources":["../../src/extensions/CodeBlockNodeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAuElD,eAAO,MAAM,iBAAiB,GAAI,2DAM/B,aAAa,4CAuCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LinkClickExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/LinkClickExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,wBAAwB,GACnC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,wBA0D9F,CAAC"}
1
+ {"version":3,"file":"LinkClickExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/LinkClickExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,wBAAwB,GACnC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,wBA2D5F,CAAC"}
@@ -2,5 +2,7 @@ import { Extension } from '@tiptap/core';
2
2
  export declare const createMarkdownPasteExtension: (setIsProcessing: (processing: boolean) => void, setProcessingProgress: (progress: {
3
3
  processed: number;
4
4
  total: number;
5
- }) => void, onPasteComplete?: () => void) => Extension<any, any>;
5
+ }) => void, onPasteComplete?: () => void, markdownToTipTapOptions?: {
6
+ publicImagePathPrefix?: string;
7
+ }) => Extension<any, any>;
6
8
  //# sourceMappingURL=MarkdownPasteExtension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownPasteExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/MarkdownPasteExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,eAAO,MAAM,4BAA4B,GACvC,iBAAiB,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,EAC9C,uBAAuB,CAAC,QAAQ,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAC/E,kBAAkB,MAAM,IAAI,wBAyF7B,CAAC"}
1
+ {"version":3,"file":"MarkdownPasteExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/MarkdownPasteExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzC,eAAO,MAAM,4BAA4B,GACvC,iBAAiB,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,EAC9C,uBAAuB,CAAC,QAAQ,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAC/E,kBAAkB,MAAM,IAAI,EAC5B,0BAA0B;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,wBA0FF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownShortcutsExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/MarkdownShortcutsExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AAGjE,eAAO,MAAM,gCAAgC,2BAuD3C,CAAC"}
1
+ {"version":3,"file":"MarkdownShortcutsExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/MarkdownShortcutsExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AAGjE,eAAO,MAAM,gCAAgC,2BAwDzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableForceExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableForceExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAiH9B,CAAC"}
1
+ {"version":3,"file":"TableForceExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableForceExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAuH9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableHoverExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableHoverExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBA8C9B,CAAC"}
1
+ {"version":3,"file":"TableHoverExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableHoverExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qBAgD9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableRightClickExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableRightClickExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,8BAA8B,GACzC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,wBA2BpD,CAAC"}
1
+ {"version":3,"file":"TableRightClickExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/TableRightClickExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,8BAA8B,GACzC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,wBA4BlD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const setMermaidLib: (lib: typeof import('mermaid').default | null) => void;
2
+ export declare const getMermaidLib: () => import('mermaid').Mermaid | null;
3
+ export declare const getMermaidLibVersion: () => number;
4
+ export declare const subscribeMermaidLib: (listener: () => void) => () => void;
5
+ //# sourceMappingURL=mermaidRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mermaidRegistry.d.ts","sourceRoot":"","sources":["../../src/extensions/mermaidRegistry.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,GAAI,KAAK,cAAc,SAAS,EAAE,OAAO,GAAG,IAAI,SAoBzE,CAAC;AAEF,eAAO,MAAM,aAAa,wCAAmB,CAAC;AAE9C,eAAO,MAAM,oBAAoB,cAAgB,CAAC;AAElD,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,IAAI,eAKvD,CAAC"}