@blocklet/pages-kit-block-studio 0.6.7 → 0.6.9
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/middlewares/init-resource-router.js +19 -1
- package/lib/cjs/plugins/vite-plugin-code-splitter.js +2 -10
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/helper.js +5 -1
- package/lib/esm/middlewares/init-resource-router.js +20 -2
- package/lib/esm/plugins/vite-plugin-code-splitter.js +3 -11
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/helper.js +3 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/helper.d.ts +2 -0
- package/package.json +3 -3
package/lib/esm/utils/helper.js
CHANGED
|
@@ -183,6 +183,9 @@ export const safeParse = (text) => {
|
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
+
export const getComponentScriptName = (blockName, format) => {
|
|
187
|
+
return `${blockName}(${format})`;
|
|
188
|
+
};
|
|
186
189
|
export const EDIT_COMPONENT_NAME = 'EditComponent';
|
|
187
190
|
export const getEditComponentBlockName = (blockName) => {
|
|
188
191
|
return `${blockName}(${EDIT_COMPONENT_NAME})`;
|