@kungal/editor-nuxt 0.15.0 → 0.17.0
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 +22 -0
- package/package.json +3 -3
- package/runtime/KunEditorToolbar.vue +17 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @kungal/editor-nuxt
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [59abbc8]
|
|
8
|
+
- @kungal/editor-core@0.17.0
|
|
9
|
+
- @kungal/editor-vue@0.17.0
|
|
10
|
+
|
|
11
|
+
## 0.16.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 4e160ee: `<KunEditorToolbar>`: the emoji/sticker picker tabs are now a
|
|
16
|
+
`<KunTab variant="underlined" full-width>` instead of two `<KunButton>`s —
|
|
17
|
+
matching `<KunEditorViewSwitch>` and the forum's picker (keyboard nav, sliding
|
|
18
|
+
indicator, a11y). Only shown when a `stickerSource` adapter is present.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- @kungal/editor-core@0.16.0
|
|
23
|
+
- @kungal/editor-vue@0.16.0
|
|
24
|
+
|
|
3
25
|
## 0.15.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungal/editor-nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "KunEditor Nuxt Layer — wraps @kungal/editor-vue and auto-imports <KunEditor> so an existing Nuxt app keeps its exact DX (no import needed).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"nuxt.config.ts"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@kungal/editor-core": "0.
|
|
35
|
-
"@kungal/editor-vue": "0.
|
|
34
|
+
"@kungal/editor-core": "0.17.0",
|
|
35
|
+
"@kungal/editor-vue": "0.17.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@kungal/ui-vue": "^2.7.0",
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
// set). There is deliberately NO math button — an empty inline-math atom is a
|
|
17
17
|
// broken node; math is entered via the `$…$` / `$$` input rules.
|
|
18
18
|
//
|
|
19
|
-
//
|
|
19
|
+
// The emoji/sticker picker switches tabs with a <KunTab variant="underlined">
|
|
20
|
+
// (matching <KunEditorViewSwitch> and the forum's picker).
|
|
21
|
+
//
|
|
22
|
+
// KunButton/KunIcon/KunTooltip/KunPopover/KunTab are auto-imported by ui-nuxt in
|
|
20
23
|
// the consuming app; icons use the app's iconify set (e.g. lucide via @nuxt/icon).
|
|
21
24
|
// The container/menu utility classes are generated via @kungal/editor-nuxt's
|
|
22
25
|
// shipped tailwind.css (@source) — the consumer @imports it once.
|
|
@@ -126,7 +129,7 @@ const onFileChange = async (e: Event) => {
|
|
|
126
129
|
const showPicker = computed(() => props.features.sticker !== false)
|
|
127
130
|
const stickerSource = computed(() => props.adapters.stickerSource)
|
|
128
131
|
const hasSticker = computed(() => !!stickerSource.value)
|
|
129
|
-
const tab = ref
|
|
132
|
+
const tab = ref('emoji') // 'emoji' | 'sticker' — widened to string for KunTab v-model
|
|
130
133
|
const packs = ref<StickerPack[]>([])
|
|
131
134
|
const loaded = ref(false)
|
|
132
135
|
const loadFailed = ref(false)
|
|
@@ -217,20 +220,18 @@ const insertSticker = (src: string, name: string) =>
|
|
|
217
220
|
</KunButton>
|
|
218
221
|
</template>
|
|
219
222
|
|
|
220
|
-
<
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
>
|
|
233
|
-
</div>
|
|
223
|
+
<KunTab
|
|
224
|
+
v-if="hasSticker"
|
|
225
|
+
v-model="tab"
|
|
226
|
+
:items="[
|
|
227
|
+
{ value: 'emoji', textValue: t.emoji },
|
|
228
|
+
{ value: 'sticker', textValue: t.sticker }
|
|
229
|
+
]"
|
|
230
|
+
variant="underlined"
|
|
231
|
+
color="primary"
|
|
232
|
+
:full-width="true"
|
|
233
|
+
class="mb-2"
|
|
234
|
+
/>
|
|
234
235
|
|
|
235
236
|
<div
|
|
236
237
|
v-show="!hasSticker || tab === 'emoji'"
|