rimelight-components 2.0.33 → 2.0.35
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
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.35";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
@@ -209,13 +209,19 @@ const module$1 = defineNuxtModule().with({
|
|
|
209
209
|
const blockRendererFiles = readdirSync(
|
|
210
210
|
resolve("./runtime/components/blocks/renderer")
|
|
211
211
|
).filter((name2) => name2.endsWith(".vue"));
|
|
212
|
-
const blockRendererNames = blockRendererFiles.map((file) =>
|
|
212
|
+
const blockRendererNames = blockRendererFiles.map((file) => {
|
|
213
|
+
const baseName = basename(file, ".vue");
|
|
214
|
+
return baseName.replace(/Renderer$/, "");
|
|
215
|
+
});
|
|
213
216
|
const blockRendererTemplate = addBlockMapTemplates(blockRendererNames);
|
|
214
217
|
nuxt.options.alias["#build/rimelight-blocks-renderer-map"] = blockRendererTemplate.dst;
|
|
215
218
|
const blockEditorFiles = readdirSync(
|
|
216
219
|
resolve("./runtime/components/blocks/editor")
|
|
217
220
|
).filter((name2) => name2.endsWith(".vue"));
|
|
218
|
-
const blockEditorNames = blockEditorFiles.map((file) =>
|
|
221
|
+
const blockEditorNames = blockEditorFiles.map((file) => {
|
|
222
|
+
const baseName = basename(file, ".vue");
|
|
223
|
+
return baseName.replace(/Editor$/, "");
|
|
224
|
+
});
|
|
219
225
|
const blockEditorTemplate = addEditorBlockMapTemplates(blockEditorNames);
|
|
220
226
|
nuxt.options.alias["#build/rimelight-blocks-editor-map"] = blockEditorTemplate.dst;
|
|
221
227
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, inject } from "vue";
|
|
3
|
-
import { slugify } from "
|
|
3
|
+
import { slugify } from "~~/src/runtime/utils";
|
|
4
4
|
const props = defineProps({
|
|
5
5
|
blockProps: { type: Object, required: true },
|
|
6
6
|
blockId: { type: String, required: true }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { slugify } from "
|
|
3
|
+
import { slugify } from "~~/src/runtime/utils";
|
|
4
4
|
const { level, title, description, children } = defineProps({
|
|
5
5
|
level: { type: Number, required: true },
|
|
6
6
|
title: { type: String, required: true },
|