rimelight-components 2.1.20 → 2.1.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.20",
3
+ "version": "2.1.22",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
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.1.20";
7
+ const version = "2.1.22";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.20",
3
+ "version": "2.1.22",
4
4
  "description": "A component library by Rimelight Entertainment.",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -1,21 +0,0 @@
1
- import type { TestBlockProps } from "../../../types/index.js";
2
- export interface TestBlockEditorProps extends TestBlockProps {
3
- id: string;
4
- rc?: {
5
- input?: string;
6
- };
7
- }
8
- export interface TestBlockEditorEmits {
9
- }
10
- export interface TestBlockEditorSlots {
11
- }
12
- type __VLS_Slots = TestBlockEditorSlots;
13
- declare const __VLS_base: import("vue").DefineComponent<TestBlockEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockEditorProps> & 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,55 +0,0 @@
1
- <script setup>
2
- import { inject, ref, watch } from "vue";
3
- import { tv } from "../../../internal/tv";
4
- import { useRC } from "~/src/runtime/composables";
5
- const { text, id, rc: rcProp } = defineProps({
6
- id: { type: String, required: true },
7
- rc: { type: Object, required: false },
8
- text: { type: String, required: true }
9
- });
10
- const emit = defineEmits([]);
11
- const slots = defineSlots();
12
- const { rc } = useRC("TestBlockEditor", rcProp);
13
- const testBlockEditorStyles = tv({
14
- slots: {
15
- input: "w-full"
16
- }
17
- });
18
- const { input } = testBlockEditorStyles();
19
- const editorApi = inject("block-editor-api");
20
- const localText = ref(text);
21
- const updateLocalText = (e) => {
22
- localText.value = e.target.value;
23
- };
24
- const commitOnBlur = () => {
25
- if (editorApi && id) {
26
- if (localText.value !== text) {
27
- editorApi.updateBlockProps(id, { text: localText.value });
28
- }
29
- }
30
- };
31
- watch(
32
- () => text,
33
- (newVal) => {
34
- if (newVal !== localText.value) {
35
- localText.value = newVal;
36
- }
37
- },
38
- // Ensure the initial state is set correctly
39
- { immediate: true }
40
- );
41
- </script>
42
-
43
- <template>
44
- <RCTest :text="localText">
45
- <template #content>
46
- <UInput
47
- :model-value="localText"
48
- placeholder="Type here..."
49
- @input="updateLocalText"
50
- @blur="commitOnBlur"
51
- :class="input({ class: rc.input })"
52
- />
53
- </template>
54
- </RCTest>
55
- </template>
@@ -1,21 +0,0 @@
1
- import type { TestBlockProps } from "../../../types/index.js";
2
- export interface TestBlockEditorProps extends TestBlockProps {
3
- id: string;
4
- rc?: {
5
- input?: string;
6
- };
7
- }
8
- export interface TestBlockEditorEmits {
9
- }
10
- export interface TestBlockEditorSlots {
11
- }
12
- type __VLS_Slots = TestBlockEditorSlots;
13
- declare const __VLS_base: import("vue").DefineComponent<TestBlockEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockEditorProps> & 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,20 +0,0 @@
1
- import type { TestBlockProps } from "../../../types/index.js";
2
- export interface TestBlockRendererProps extends TestBlockProps {
3
- rc?: {
4
- root?: string;
5
- };
6
- }
7
- export interface TestBlockRendererEmits {
8
- }
9
- export interface TestBlockRendererSlots {
10
- }
11
- type __VLS_Slots = TestBlockRendererSlots;
12
- declare const __VLS_base: import("vue").DefineComponent<TestBlockRendererProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
16
- type __VLS_WithSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -1,23 +0,0 @@
1
- <script setup>
2
- import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
4
- const { text, rc: rcProp } = defineProps({
5
- rc: { type: Object, required: false },
6
- text: { type: String, required: true }
7
- });
8
- const emit = defineEmits([]);
9
- const slots = defineSlots();
10
- const { rc } = useRC("TestBlockRenderer", rcProp);
11
- const testBlockRendererStyles = tv({
12
- slots: {
13
- root: ""
14
- }
15
- });
16
- const { root } = testBlockRendererStyles();
17
- </script>
18
-
19
- <template>
20
- <div :class="root({ class: rc.root })">
21
- <RCTest :text="text" />
22
- </div>
23
- </template>
@@ -1,20 +0,0 @@
1
- import type { TestBlockProps } from "../../../types/index.js";
2
- export interface TestBlockRendererProps extends TestBlockProps {
3
- rc?: {
4
- root?: string;
5
- };
6
- }
7
- export interface TestBlockRendererEmits {
8
- }
9
- export interface TestBlockRendererSlots {
10
- }
11
- type __VLS_Slots = TestBlockRendererSlots;
12
- declare const __VLS_base: import("vue").DefineComponent<TestBlockRendererProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TestBlockRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
16
- type __VLS_WithSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };