@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.
Files changed (54) hide show
  1. package/README.md +87 -0
  2. package/dist/index.d.ts +981 -0
  3. package/dist/index.js +63 -0
  4. package/dist/index10.js +135 -0
  5. package/dist/index11.js +30 -0
  6. package/dist/index12.js +14 -0
  7. package/dist/index13.js +91 -0
  8. package/dist/index14.js +134 -0
  9. package/dist/index15.js +37 -0
  10. package/dist/index16.js +21 -0
  11. package/dist/index17.js +79 -0
  12. package/dist/index18.js +120 -0
  13. package/dist/index19.js +21 -0
  14. package/dist/index2.js +88 -0
  15. package/dist/index20.js +52 -0
  16. package/dist/index21.js +43 -0
  17. package/dist/index22.js +12 -0
  18. package/dist/index23.js +16 -0
  19. package/dist/index24.js +37 -0
  20. package/dist/index25.js +48 -0
  21. package/dist/index26.js +24 -0
  22. package/dist/index27.js +10 -0
  23. package/dist/index28.js +46 -0
  24. package/dist/index29.js +23 -0
  25. package/dist/index3.js +61 -0
  26. package/dist/index30.js +15 -0
  27. package/dist/index31.js +4 -0
  28. package/dist/index32.js +4 -0
  29. package/dist/index33.js +4 -0
  30. package/dist/index34.js +4 -0
  31. package/dist/index35.js +4 -0
  32. package/dist/index36.js +4 -0
  33. package/dist/index37.js +4 -0
  34. package/dist/index38.js +4 -0
  35. package/dist/index39.js +4 -0
  36. package/dist/index4.js +34 -0
  37. package/dist/index40.js +4 -0
  38. package/dist/index41.js +4 -0
  39. package/dist/index42.js +4 -0
  40. package/dist/index43.js +4 -0
  41. package/dist/index44.js +4 -0
  42. package/dist/index45.js +4 -0
  43. package/dist/index46.js +4 -0
  44. package/dist/index47.js +4 -0
  45. package/dist/index48.js +4 -0
  46. package/dist/index49.js +4 -0
  47. package/dist/index5.js +76 -0
  48. package/dist/index50.js +4 -0
  49. package/dist/index51.js +4 -0
  50. package/dist/index6.js +108 -0
  51. package/dist/index7.js +15 -0
  52. package/dist/index8.js +191 -0
  53. package/dist/index9.js +35 -0
  54. 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