rimelight-components 2.0.41 → 2.0.43
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.d.vue.ts +2 -2
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue +26 -52
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
|
|
|
4
4
|
import { basename } from 'node:path';
|
|
5
5
|
|
|
6
6
|
const name = "rimelight-components";
|
|
7
|
-
const version = "2.0.
|
|
7
|
+
const version = "2.0.43";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
1
|
+
import type { SectionBlockProps } from "~~/src/runtime/types/blocks";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<SectionBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
3
|
declare const _default: typeof __VLS_export;
|
|
4
4
|
export default _default;
|
|
@@ -1,64 +1,38 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed
|
|
2
|
+
import { computed } from "vue";
|
|
3
3
|
import { slugify } from "../../../utils";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const { level, title, description, children } = defineProps({
|
|
5
|
+
level: { type: Number, required: true },
|
|
6
|
+
title: { type: String, required: true },
|
|
7
|
+
description: { type: String, required: false },
|
|
8
|
+
children: { type: Array, required: true }
|
|
8
9
|
});
|
|
9
|
-
const headingId = computed(() =>
|
|
10
|
-
const { removeBlock } = inject("blockEditorMutators", {
|
|
11
|
-
removeBlock: (id) => console.warn(`removeBlock not implemented for ${id}`)
|
|
12
|
-
});
|
|
13
|
-
const handleRemove = () => {
|
|
14
|
-
removeBlock(props.id);
|
|
15
|
-
};
|
|
16
|
-
const childrenBlocks = computed(() => props.props.children || []);
|
|
10
|
+
const headingId = computed(() => title ? slugify(title) : void 0);
|
|
17
11
|
</script>
|
|
18
12
|
|
|
19
13
|
<template>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class="absolute z-10 flex -translate-x-1/2 gap-2 opacity-0 transition-opacity group-hover:opacity-100"
|
|
25
|
-
>
|
|
26
|
-
<UButton
|
|
27
|
-
icon="lucide:trash-2"
|
|
28
|
-
variant="solid"
|
|
29
|
-
size="sm"
|
|
30
|
-
@click="handleRemove"
|
|
31
|
-
/>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<RCSection
|
|
35
|
-
:level="props.props.level"
|
|
36
|
-
:title="props.props.title"
|
|
37
|
-
:description="props.props.description"
|
|
14
|
+
<RCSection
|
|
15
|
+
:level="level"
|
|
16
|
+
:title="title"
|
|
17
|
+
:description="description"
|
|
38
18
|
:id="headingId"
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
:
|
|
44
|
-
:class="`text-${props.props.level === 1 ? '3xl' : 'xl'} pointer-events-auto w-full bg-transparent font-bold focus:outline-none`"
|
|
19
|
+
>
|
|
20
|
+
<template #title>
|
|
21
|
+
<input
|
|
22
|
+
:value="title"
|
|
23
|
+
:class="`text-${level === 1 ? '3xl' : 'xl'} pointer-events-auto w-full bg-transparent font-bold focus:outline-none`"
|
|
45
24
|
placeholder="Enter section title..."
|
|
46
|
-
|
|
47
|
-
|
|
25
|
+
/>
|
|
26
|
+
</template>
|
|
48
27
|
|
|
49
|
-
|
|
28
|
+
<template #description>
|
|
50
29
|
<textarea
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
rows="2"
|
|
30
|
+
:value="description"
|
|
31
|
+
class="text-md pointer-events-auto w-full resize-none bg-transparent text-muted focus:outline-none"
|
|
32
|
+
placeholder="Optional description..."
|
|
33
|
+
rows="2"
|
|
56
34
|
/>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<RCEditorBlockRenderer :blocks="childrenBlocks" />
|
|
61
|
-
</div>
|
|
62
|
-
</RCSection>
|
|
63
|
-
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<RCBlockEditor :blocks="children" />
|
|
37
|
+
</RCSection>
|
|
64
38
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
1
|
+
import type { SectionBlockProps } from "~~/src/runtime/types/blocks";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<SectionBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SectionBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
3
|
declare const _default: typeof __VLS_export;
|
|
4
4
|
export default _default;
|