@vizel/vue 0.0.1-alpha.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 +87 -0
- package/dist/index.d.ts +981 -0
- package/dist/index.js +63 -0
- package/dist/index10.js +135 -0
- package/dist/index11.js +30 -0
- package/dist/index12.js +14 -0
- package/dist/index13.js +91 -0
- package/dist/index14.js +134 -0
- package/dist/index15.js +37 -0
- package/dist/index16.js +21 -0
- package/dist/index17.js +79 -0
- package/dist/index18.js +120 -0
- package/dist/index19.js +21 -0
- package/dist/index2.js +88 -0
- package/dist/index20.js +52 -0
- package/dist/index21.js +43 -0
- package/dist/index22.js +12 -0
- package/dist/index23.js +16 -0
- package/dist/index24.js +37 -0
- package/dist/index25.js +48 -0
- package/dist/index26.js +24 -0
- package/dist/index27.js +10 -0
- package/dist/index28.js +46 -0
- package/dist/index29.js +23 -0
- package/dist/index3.js +61 -0
- package/dist/index30.js +15 -0
- package/dist/index31.js +4 -0
- package/dist/index32.js +4 -0
- package/dist/index33.js +4 -0
- package/dist/index34.js +4 -0
- package/dist/index35.js +4 -0
- package/dist/index36.js +4 -0
- package/dist/index37.js +4 -0
- package/dist/index38.js +4 -0
- package/dist/index39.js +4 -0
- package/dist/index4.js +34 -0
- package/dist/index40.js +4 -0
- package/dist/index41.js +4 -0
- package/dist/index42.js +4 -0
- package/dist/index43.js +4 -0
- package/dist/index44.js +4 -0
- package/dist/index45.js +4 -0
- package/dist/index46.js +4 -0
- package/dist/index47.js +4 -0
- package/dist/index48.js +4 -0
- package/dist/index49.js +4 -0
- package/dist/index5.js +76 -0
- package/dist/index50.js +4 -0
- package/dist/index51.js +4 -0
- package/dist/index6.js +108 -0
- package/dist/index7.js +15 -0
- package/dist/index8.js +191 -0
- package/dist/index9.js +35 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# @vizel/vue
|
|
2
|
+
|
|
3
|
+
Vue 3 components for Vizel block-based Markdown editor.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @vizel/vue @vizel/core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- Vue 3.4+
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Basic Setup
|
|
18
|
+
|
|
19
|
+
```vue
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { Vizel } from "@vizel/vue";
|
|
22
|
+
import "@vizel/core/styles.css";
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<Vizel />
|
|
27
|
+
</template>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### With Editor Control
|
|
31
|
+
|
|
32
|
+
```vue
|
|
33
|
+
<script setup lang="ts">
|
|
34
|
+
import { VizelEditor, VizelBubbleMenu, useVizelEditor } from "@vizel/vue";
|
|
35
|
+
import "@vizel/core/styles.css";
|
|
36
|
+
|
|
37
|
+
const editor = useVizelEditor();
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<VizelEditor :editor="editor" />
|
|
42
|
+
<VizelBubbleMenu :editor="editor" />
|
|
43
|
+
</template>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Markdown Import/Export
|
|
47
|
+
|
|
48
|
+
```vue
|
|
49
|
+
<script setup lang="ts">
|
|
50
|
+
import { useVizelEditor, useVizelMarkdown } from "@vizel/vue";
|
|
51
|
+
|
|
52
|
+
const editor = useVizelEditor();
|
|
53
|
+
const { getMarkdown, setMarkdown } = useVizelMarkdown(() => editor.value);
|
|
54
|
+
|
|
55
|
+
const handleExport = () => {
|
|
56
|
+
const markdown = getMarkdown();
|
|
57
|
+
console.log(markdown);
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Components
|
|
63
|
+
|
|
64
|
+
| Component | Description |
|
|
65
|
+
|-----------|-------------|
|
|
66
|
+
| `Vizel` | All-in-one editor with bubble menu |
|
|
67
|
+
| `VizelEditor` | Editor component |
|
|
68
|
+
| `VizelBubbleMenu` | Floating formatting toolbar |
|
|
69
|
+
| `VizelSlashMenu` | Slash command menu |
|
|
70
|
+
| `VizelIconProvider` | Custom icon provider |
|
|
71
|
+
|
|
72
|
+
## Composables
|
|
73
|
+
|
|
74
|
+
| Composable | Description |
|
|
75
|
+
|------------|-------------|
|
|
76
|
+
| `useVizelEditor` | Create and manage editor instance |
|
|
77
|
+
| `useVizelMarkdown` | Markdown import/export |
|
|
78
|
+
| `useVizelAutoSave` | Auto-save functionality |
|
|
79
|
+
| `useVizelState` | Editor state management |
|
|
80
|
+
|
|
81
|
+
## Documentation
|
|
82
|
+
|
|
83
|
+
See the [main repository](https://github.com/seijikohara/vizel) for full documentation.
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
MIT
|