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.
- package/CHANGELOG.md +36 -0
- package/README.md +99 -96
- package/dist/components/LinkContextMenu.d.ts.map +1 -1
- package/dist/components/MarkdownEditor.d.ts.map +1 -1
- package/dist/components/MarkdownSyntaxStatus.d.ts.map +1 -1
- package/dist/components/MarkdownToolbar.d.ts +0 -3
- package/dist/components/MarkdownToolbar.d.ts.map +1 -1
- package/dist/components/TableContextMenu.d.ts +0 -2
- package/dist/components/TableContextMenu.d.ts.map +1 -1
- package/dist/components/TableEdgeControls.d.ts.map +1 -1
- package/dist/components/TableToolbar.d.ts.map +1 -1
- package/dist/converters/JsonToMarkdownConverter.d.ts +3 -0
- package/dist/converters/JsonToMarkdownConverter.d.ts.map +1 -1
- package/dist/converters/MarkdownTipTapConverter.d.ts +8 -2
- package/dist/converters/MarkdownTipTapConverter.d.ts.map +1 -1
- package/dist/extensions/CodeBlockNodeView.d.ts +1 -1
- package/dist/extensions/CodeBlockNodeView.d.ts.map +1 -1
- package/dist/extensions/LinkClickExtension.d.ts.map +1 -1
- package/dist/extensions/MarkdownPasteExtension.d.ts +3 -1
- package/dist/extensions/MarkdownPasteExtension.d.ts.map +1 -1
- package/dist/extensions/MarkdownShortcutsExtension.d.ts.map +1 -1
- package/dist/extensions/TableForceExtension.d.ts.map +1 -1
- package/dist/extensions/TableHoverExtension.d.ts.map +1 -1
- package/dist/extensions/TableRightClickExtension.d.ts.map +1 -1
- package/dist/extensions/mermaidRegistry.d.ts +5 -0
- package/dist/extensions/mermaidRegistry.d.ts.map +1 -0
- package/dist/hooks/useMarkdownEditor.d.ts +2 -1
- package/dist/hooks/useMarkdownEditor.d.ts.map +1 -1
- package/dist/hooks/useTableToolbar.d.ts.map +1 -1
- package/dist/i18n/I18nContext.d.ts +13 -0
- package/dist/i18n/I18nContext.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12606 -12090
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +64 -51
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/pasteHandler.d.ts +4 -1
- package/dist/utils/pasteHandler.d.ts.map +1 -1
- package/dist/utils/security.d.ts +5 -0
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/selectionUtils.d.ts +2 -0
- package/dist/utils/selectionUtils.d.ts.map +1 -1
- package/package.json +20 -34
- package/dist/components/MarkdownEditor.test.d.ts +0 -2
- 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
|
-
#
|
|
1
|
+
# markdown-wysiwyg-editor
|
|
2
2
|
|
|
3
3
|
Lightweight Markdown WYSIWYG editor for React, powered by TipTap.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+

|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
---
|
|
8
8
|
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
48
|
+
## Essential Setup Steps
|
|
49
49
|
|
|
50
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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"
|
|
71
|
-
enableVerticalScroll={true}
|
|
70
|
+
className="h-96" // Fixed height (384px)
|
|
71
|
+
enableVerticalScroll={true} // Enable internal scrolling
|
|
72
72
|
/>
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
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"
|
|
84
|
-
enableVerticalScroll={true}
|
|
83
|
+
className="flex-1" // Fill remaining space
|
|
84
|
+
enableVerticalScroll={true} // Enable internal scrolling
|
|
85
85
|
/>
|
|
86
86
|
</div>
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
|
|
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}
|
|
96
|
-
enableVerticalScroll={false}
|
|
95
|
+
autoHeight={true} // Grow with content
|
|
96
|
+
enableVerticalScroll={false} // No internal scrolling
|
|
97
97
|
/>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
146
|
-
enableTable={false}
|
|
157
|
+
publicImagePathPrefix="/images"
|
|
147
158
|
/>
|
|
148
159
|
```
|
|
149
160
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
| Prop
|
|
153
|
-
|
|
|
154
|
-
| `value`
|
|
155
|
-
| `onChange`
|
|
156
|
-
| `editable`
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `mermaidLib`
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
216
|
+
## Advanced Usage
|
|
207
217
|
|
|
208
|
-
|
|
218
|
+
### Internationalization (i18n)
|
|
209
219
|
|
|
210
|
-
This editor
|
|
220
|
+
This editor uses a host-driven i18n strategy.
|
|
211
221
|
|
|
212
|
-
|
|
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,
|
|
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
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
318
|
+
## Troubleshooting
|
|
316
319
|
|
|
317
|
-
|
|
320
|
+
### Styles not loading
|
|
318
321
|
|
|
319
322
|
```tsx
|
|
320
|
-
import '
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
348
|
+
## License
|
|
346
349
|
|
|
347
350
|
MIT
|
|
348
351
|
|
|
349
|
-
|
|
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,
|
|
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;
|
|
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;
|
|
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,CAAC;
|
|
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,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAsB5C,UAAU,oBAAoB;IAC5B,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,qBAAqB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC;AAED,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;
|
|
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,
|
|
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;
|
|
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;
|
|
1
|
+
{"version":3,"file":"JsonToMarkdownConverter.d.ts","sourceRoot":"","sources":["../../src/converters/JsonToMarkdownConverter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKjD,qBAAa,uBAAuB;IAElC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAK;IAErC,OAAO;IAIP;;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;IAQhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAUjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAK9B,OAAO,CAAC,MAAM,CAAC,yBAAyB;IA+CxC;;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;IA0B3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAe9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IA+B1B;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,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;
|
|
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;AAY5C,UAAU,uBAAuB;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAwmBD;;GAEG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAK;IAErC,OAAO;IAGP;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAM5C;;OAEG;WACU,oBAAoB,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,WAAW,CAAC;IAoDvB,OAAO,CAAC,MAAM,CAAC,cAAc;IAmC7B;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM;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":"
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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"}
|