@blocklet/pages-kit-block-studio 0.6.45 → 0.6.47
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/lib/cjs/plugins/vite-plugin-block-studio.js +9 -8
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/build-lib.js +2 -2
- package/lib/esm/plugins/vite-plugin-block-studio.js +9 -8
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/build-lib.js +2 -2
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -175,8 +175,8 @@ async function performPackaging({ exportDir, componentIds, workingDir }) {
|
|
|
175
175
|
Object.keys(metadata.properties).forEach((key) => {
|
|
176
176
|
const property = metadata.properties[key].data;
|
|
177
177
|
if (property.type === 'url') {
|
|
178
|
-
Object.keys(property
|
|
179
|
-
if (property.locales[locale]
|
|
178
|
+
Object.keys(property?.locales || {}).forEach((locale) => {
|
|
179
|
+
if (property.locales[locale]?.defaultValue?.mediaKitUrl?.startsWith('mediakit://')) {
|
|
180
180
|
const downloadPromise = (async () => {
|
|
181
181
|
try {
|
|
182
182
|
const fileName = basename(property.locales[locale].defaultValue.mediaKitUrl);
|