rimelight-components 2.0.75 → 2.0.77
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 +8 -3
- package/dist/runtime/utils/blockMapper.js +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.77";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
@@ -215,7 +215,7 @@ const module$1 = defineNuxtModule().with({
|
|
|
215
215
|
return baseName.replace(/Renderer$/, "");
|
|
216
216
|
});
|
|
217
217
|
const blockRendererTemplate = addBlockMapTemplates(blockRendererNames);
|
|
218
|
-
nuxt.options.alias["#
|
|
218
|
+
nuxt.options.alias["#rimelight-components/rimelight-block-renderer-map"] = blockRendererTemplate.dst;
|
|
219
219
|
const blockEditorFiles = readdirSync(
|
|
220
220
|
resolve("./runtime/components/blocks/editor")
|
|
221
221
|
).filter((name2) => name2.endsWith(".vue"));
|
|
@@ -224,7 +224,12 @@ const module$1 = defineNuxtModule().with({
|
|
|
224
224
|
return baseName.replace(/Editor$/, "");
|
|
225
225
|
});
|
|
226
226
|
const blockEditorTemplate = addEditorBlockMapTemplates(blockEditorNames);
|
|
227
|
-
nuxt.options.alias["#
|
|
227
|
+
nuxt.options.alias["#rimelight-components/rimelight-block-editor-map"] = blockEditorTemplate.dst;
|
|
228
|
+
nuxt.hook("nitro:config", (nitroConfig) => {
|
|
229
|
+
nitroConfig.alias = nitroConfig.alias || {};
|
|
230
|
+
nitroConfig.alias["#rimelight-components/rimelight-block-renderer-map"] = blockRendererTemplate.dst;
|
|
231
|
+
nitroConfig.alias["#rimelight-components/rimelight-block-editor-map"] = blockEditorTemplate.dst;
|
|
232
|
+
});
|
|
228
233
|
}
|
|
229
234
|
});
|
|
230
235
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent } from "vue";
|
|
2
|
-
import { BLOCK_RENDERER_COMPONENT_MAP } from "#
|
|
3
|
-
import { BLOCK_EDITOR_COMPONENT_MAP } from "#
|
|
2
|
+
import { BLOCK_RENDERER_COMPONENT_MAP } from "#rimelight-components/rimelight-block-renderer-map";
|
|
3
|
+
import { BLOCK_EDITOR_COMPONENT_MAP } from "#rimelight-components/rimelight-block-editor-map";
|
|
4
4
|
export const getBlockRendererComponent = (type) => {
|
|
5
5
|
const componentImporter = BLOCK_RENDERER_COMPONENT_MAP[type];
|
|
6
6
|
if (!componentImporter) {
|