@lexion-rte/nuxt 0.1.1 → 0.1.2

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @lexion-rte/nuxt
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Refresh package metadata links and expand package-level README documentation.
8
+ - Updated dependencies
9
+ - @lexion-rte/core@0.1.2
10
+ - @lexion-rte/vue@0.1.2
11
+
3
12
  ## 0.1.1
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -2,9 +2,11 @@
2
2
 
3
3
  Nuxt adapter for Lexion.
4
4
 
5
- ## What It Is
5
+ ## Overview
6
6
 
7
- `@lexion-rte/nuxt` exports `LexionNuxtEditorView` for client-side Nuxt usage with `v-model`.
7
+ `@lexion-rte/nuxt` exports `LexionNuxtEditorView`, a Nuxt-friendly wrapper around the Vue adapter.
8
+
9
+ It is intended for client-side rendering in Nuxt.
8
10
 
9
11
  ## Install
10
12
 
@@ -12,7 +14,7 @@ Nuxt adapter for Lexion.
12
14
  pnpm add @lexion-rte/nuxt nuxt vue
13
15
  ```
14
16
 
15
- ## Usage
17
+ ## Usage with `ClientOnly`
16
18
 
17
19
  ```vue
18
20
  <template>
@@ -30,3 +32,22 @@ const value = ref<JSONDocument | undefined>(undefined);
30
32
  </script>
31
33
  ```
32
34
 
35
+ ## Props
36
+
37
+ - `editor?: LexionEditor`
38
+ - `modelValue?: JSONDocument`
39
+ - `defaultValue?: JSONDocument`
40
+ - `readOnly?: boolean`
41
+ - `className?: string`
42
+ - `style?: StyleValue`
43
+
44
+ ## Emits
45
+
46
+ - `update:modelValue`
47
+ - `change`
48
+ - `ready`
49
+
50
+ ## Notes
51
+
52
+ - Wrap with `<ClientOnly>` to avoid SSR DOM constraints.
53
+ - Prop and event behavior mirrors `@lexion-rte/vue`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexion-rte/nuxt",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Nuxt adapter for the Lexion editor.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -38,8 +38,8 @@
38
38
  "vue": "^3.4.0"
39
39
  },
40
40
  "dependencies": {
41
- "@lexion-rte/core": "0.1.1",
42
- "@lexion-rte/vue": "0.1.1"
41
+ "@lexion-rte/core": "0.1.2",
42
+ "@lexion-rte/vue": "0.1.2"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsc -p tsconfig.json",