rimelight-components 2.1.22 → 2.1.24
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/app/Image.vue +0 -1
- package/dist/runtime/components/app/ScrollToTop.vue +3 -1
- package/dist/runtime/components/blocks/Block.vue +1 -1
- package/dist/runtime/components/blocks/BlockEditRenderer.vue +1 -1
- package/dist/runtime/components/blocks/BlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/BlockViewRenderer.vue +1 -1
- package/dist/runtime/components/blocks/TextRenderer.vue +1 -1
- package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/editor/CardBlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue +1 -1
- package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue +1 -1
- package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue +1 -1
- package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue +1 -1
- package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue +1 -1
- package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue +1 -1
- package/dist/runtime/composables/useBlockEditor.d.ts +556 -4640
- package/dist/runtime/types/blocks.d.ts +2 -9
- package/package.json +1 -1
- package/dist/runtime/components/content/Test.d.vue.ts +0 -21
- package/dist/runtime/components/content/Test.vue +0 -25
- package/dist/runtime/components/content/Test.vue.d.ts +0 -21
|
@@ -6,7 +6,7 @@ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
|
6
6
|
* All valid block types the application can render.
|
|
7
7
|
* This union type is the single source of truth for component names.
|
|
8
8
|
*/
|
|
9
|
-
export type BlockType = "
|
|
9
|
+
export type BlockType = "SectionBlock" | "ParagraphBlock" | "CalloutBlock" | "ImageBlock" | "QuoteBlock" | "UnorderedListBlock" | "CardBlock" | "CollapsibleCardBlock";
|
|
10
10
|
/**
|
|
11
11
|
* Defines the common structure for any content block object.
|
|
12
12
|
* The 'type' must be one of the registered BlockType values.
|
|
@@ -17,9 +17,6 @@ export interface BaseBlock {
|
|
|
17
17
|
isTemplated?: boolean;
|
|
18
18
|
props: Record<string, any>;
|
|
19
19
|
}
|
|
20
|
-
export interface TestBlockProps {
|
|
21
|
-
text: string;
|
|
22
|
-
}
|
|
23
20
|
export interface SectionBlockProps {
|
|
24
21
|
level: HeadingLevel;
|
|
25
22
|
title: string;
|
|
@@ -60,10 +57,6 @@ export interface CollapsibleCardBlockProps {
|
|
|
60
57
|
name?: string;
|
|
61
58
|
children: Block[];
|
|
62
59
|
}
|
|
63
|
-
export interface TestBlock extends BaseBlock {
|
|
64
|
-
type: "TestBlock";
|
|
65
|
-
props: TestBlockProps;
|
|
66
|
-
}
|
|
67
60
|
export interface SectionBlock extends BaseBlock {
|
|
68
61
|
type: "SectionBlock";
|
|
69
62
|
props: SectionBlockProps;
|
|
@@ -100,7 +93,7 @@ export interface QuoteContentBlock extends BaseBlock {
|
|
|
100
93
|
* The full union type for a single block. This allows for type-checking the
|
|
101
94
|
* payload based on the block 'type'.
|
|
102
95
|
*/
|
|
103
|
-
export type Block =
|
|
96
|
+
export type Block = SectionBlock | ParagraphContentBlock | CalloutContentBlock | ImageContentBlock | QuoteContentBlock | UnorderedListContentBlock | CardBlockContent | CollapsibleCardContentBlock;
|
|
104
97
|
/**
|
|
105
98
|
* Text Rendering Components
|
|
106
99
|
*/
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface TestProps {
|
|
2
|
-
text: string;
|
|
3
|
-
rc?: {
|
|
4
|
-
root?: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface TestEmits {
|
|
8
|
-
}
|
|
9
|
-
export interface TestSlots {
|
|
10
|
-
content: (props: {}) => any;
|
|
11
|
-
}
|
|
12
|
-
type __VLS_Slots = TestSlots;
|
|
13
|
-
declare const __VLS_base: import("vue").DefineComponent<TestProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
-
declare const _default: typeof __VLS_export;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { tv } from "../../internal/tv";
|
|
3
|
-
import { useRC } from "../../composables/useRC";
|
|
4
|
-
const { text, rc: rcProp } = defineProps({
|
|
5
|
-
text: { type: String, required: true },
|
|
6
|
-
rc: { type: Object, required: false }
|
|
7
|
-
});
|
|
8
|
-
const emit = defineEmits([]);
|
|
9
|
-
const slots = defineSlots();
|
|
10
|
-
const { rc } = useRC("Test", rcProp);
|
|
11
|
-
const testStyles = tv({
|
|
12
|
-
slots: {
|
|
13
|
-
root: ""
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
const { root } = testStyles();
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<div :class="root({ class: rc.root })" v-bind="$attrs">
|
|
21
|
-
<slot name="content">
|
|
22
|
-
<p>{{ text }}</p>
|
|
23
|
-
</slot>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface TestProps {
|
|
2
|
-
text: string;
|
|
3
|
-
rc?: {
|
|
4
|
-
root?: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface TestEmits {
|
|
8
|
-
}
|
|
9
|
-
export interface TestSlots {
|
|
10
|
-
content: (props: {}) => any;
|
|
11
|
-
}
|
|
12
|
-
type __VLS_Slots = TestSlots;
|
|
13
|
-
declare const __VLS_base: import("vue").DefineComponent<TestProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
-
declare const _default: typeof __VLS_export;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|