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.
Files changed (25) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/app/Image.vue +0 -1
  4. package/dist/runtime/components/app/ScrollToTop.vue +3 -1
  5. package/dist/runtime/components/blocks/Block.vue +1 -1
  6. package/dist/runtime/components/blocks/BlockEditRenderer.vue +1 -1
  7. package/dist/runtime/components/blocks/BlockEditor.vue +1 -1
  8. package/dist/runtime/components/blocks/BlockViewRenderer.vue +1 -1
  9. package/dist/runtime/components/blocks/TextRenderer.vue +1 -1
  10. package/dist/runtime/components/blocks/editor/CalloutBlockEditor.vue +1 -1
  11. package/dist/runtime/components/blocks/editor/CardBlockEditor.vue +1 -1
  12. package/dist/runtime/components/blocks/editor/ImageBlockEditor.vue +1 -1
  13. package/dist/runtime/components/blocks/editor/ParagraphBlockEditor.vue +1 -1
  14. package/dist/runtime/components/blocks/editor/SectionBlockEditor.vue +1 -1
  15. package/dist/runtime/components/blocks/renderer/CalloutBlockRenderer.vue +1 -1
  16. package/dist/runtime/components/blocks/renderer/CardBlockRenderer.vue +1 -1
  17. package/dist/runtime/components/blocks/renderer/ImageBlockRenderer.vue +1 -1
  18. package/dist/runtime/components/blocks/renderer/ParagraphBlockRenderer.vue +1 -1
  19. package/dist/runtime/components/blocks/renderer/SectionBlockRenderer.vue +1 -1
  20. package/dist/runtime/composables/useBlockEditor.d.ts +556 -4640
  21. package/dist/runtime/types/blocks.d.ts +2 -9
  22. package/package.json +1 -1
  23. package/dist/runtime/components/content/Test.d.vue.ts +0 -21
  24. package/dist/runtime/components/content/Test.vue +0 -25
  25. package/dist/runtime/components/content/Test.vue.d.ts +0 -21
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.22",
3
+ "version": "2.1.24",
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.22";
7
+ const version = "2.1.24";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -38,7 +38,6 @@ const imageStyles = tv({
38
38
  }
39
39
  });
40
40
  const { base } = imageStyles();
41
- const img = useImage();
42
41
  const isOpen = ref(false);
43
42
  const imgElement = useTemplateRef("imgRef");
44
43
  const metadata = reactive({
@@ -65,7 +65,8 @@ const durationInSeconds = computed(() => `${duration}s`);
65
65
  </script>
66
66
 
67
67
  <template>
68
- <Transition
68
+ <ClientOnly>
69
+ <Transition
69
70
  name="fade"
70
71
  enter-active-class="transition-opacity duration-500 ease-in"
71
72
  leave-active-class="transition-opacity duration-500 ease-out"
@@ -104,6 +105,7 @@ const durationInSeconds = computed(() => `${duration}s`);
104
105
  </UButton>
105
106
  </div>
106
107
  </Transition>
108
+ </ClientOnly>
107
109
  </template>
108
110
 
109
111
  <style scoped>
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { inject, ref } from "vue";
3
3
  import { tv } from "../../internal/tv";
4
- import { useRC } from "../../composables/useRC";
4
+ import { useRC } from "../../composables";
5
5
  const { id, type, rc: rcProp } = defineProps({
6
6
  id: { type: String, required: true },
7
7
  type: { type: String, required: true },
@@ -2,7 +2,7 @@
2
2
  import {} from "vue";
3
3
  import { getBlockEditorComponent } from "../../internal/blockMapper";
4
4
  import { tv } from "../../internal/tv";
5
- import { useRC } from "../../composables/useRC";
5
+ import { useRC } from "../../composables";
6
6
  const { blocks, rc: rcProp } = defineProps({
7
7
  blocks: { type: Array, required: true },
8
8
  rc: { type: Object, required: false }
@@ -2,7 +2,7 @@
2
2
  import { provide } from "vue";
3
3
  import { useBlockEditor } from "../../composables";
4
4
  import { tv } from "../../internal/tv";
5
- import { useRC } from "../../composables/useRC";
5
+ import { useRC } from "../../composables";
6
6
  const { historyLimit, rc: rcProp } = defineProps({
7
7
  historyLimit: { type: Number, required: false },
8
8
  rc: { type: Object, required: false }
@@ -2,7 +2,7 @@
2
2
  import {} from "vue";
3
3
  import { getBlockRendererComponent } from "../../internal/blockMapper";
4
4
  import { tv } from "../../internal/tv";
5
- import { useRC } from "../../composables/useRC";
5
+ import { useRC } from "../../composables";
6
6
  const { blocks, rc: rcProp } = defineProps({
7
7
  blocks: { type: Array, required: true },
8
8
  rc: { type: Object, required: false }
@@ -5,7 +5,7 @@ import TextNode from "../nodes/TextNode.vue";
5
5
  import LinkNode from "../nodes/LinkNode.vue";
6
6
  import PageMention from "../page/PageMention.vue";
7
7
  import { tv } from "../../internal/tv";
8
- import { useRC } from "../../composables/useRC";
8
+ import { useRC } from "../../composables";
9
9
  defineOptions({
10
10
  name: "TextRenderer"
11
11
  });
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { variant, children, to, target, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  variant: { type: String, required: true },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { title, to, target, children, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  title: { type: String, required: true },
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { ref, watch, computed } from "vue";
3
3
  import { tv } from "../../../internal/tv";
4
- import { useRC } from "~/src/runtime/composables";
4
+ import { useRC } from "../../../composables";
5
5
  import {} from "../../../types";
6
6
  import { useObjectUrl } from "@vueuse/core";
7
7
  const { src, alt, caption, rc: rcProp } = defineProps({
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { inject, ref, watch, onMounted, nextTick } from "vue";
3
3
  import { tv } from "../../../internal/tv";
4
- import { useRC } from "~/src/runtime/composables";
4
+ import { useRC } from "../../../composables";
5
5
  import { richTextToHtml, parseHtmlToRichText } from "../../../utils";
6
6
  const { id, text, rc: rcProp } = defineProps({
7
7
  id: { type: String, required: true },
@@ -3,7 +3,7 @@ import { inject, ref, computed, watch } from "vue";
3
3
  import {} from "../../../types";
4
4
  import {} from "@nuxt/ui/components/Select.vue";
5
5
  import { tv } from "../../../internal/tv";
6
- import { useRC } from "~/src/runtime/composables";
6
+ import { useRC } from "../../../composables";
7
7
  const { level, title, description, children, id, rc: rcProp } = defineProps({
8
8
  id: { type: String, required: true },
9
9
  rc: { type: Object, required: false },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { variant, children, to, target, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  variant: { type: String, required: true },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { title, to, target, children, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  title: { type: String, required: true },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { src, alt, caption, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  src: { type: String, required: true },
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { tv } from "../../../internal/tv";
3
- import { useRC } from "~/src/runtime/composables";
3
+ import { useRC } from "../../../composables";
4
4
  const { text, rc: rcProp } = defineProps({
5
5
  rc: { type: Object, required: false },
6
6
  text: { type: Array, required: true }
@@ -2,7 +2,7 @@
2
2
  import { computed } from "vue";
3
3
  import { slugify } from "../../../utils";
4
4
  import { tv } from "../../../internal/tv";
5
- import { useRC } from "~/src/runtime/composables";
5
+ import { useRC } from "../../../composables";
6
6
  const { level, title, description, children, rc: rcProp } = defineProps({
7
7
  rc: { type: Object, required: false },
8
8
  level: { type: Number, required: true },