@blocklet/pages-kit-block-studio 0.4.71 → 0.4.72
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/constants/index.js +1 -1
- package/lib/cjs/constants/new-block-template/@metadata.json +2 -2
- package/lib/cjs/constants/new-block-template/index.js +2 -2
- package/lib/cjs/constants/new-block-template/index.tsx +1 -1
- package/lib/cjs/middlewares/init-resource-router.js +1 -1
- package/lib/cjs/plugins/_theme.js +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/constants/index.js +1 -1
- package/lib/esm/constants/new-block-template/@metadata.json +2 -2
- package/lib/esm/constants/new-block-template/index.js +1 -1
- package/lib/esm/constants/new-block-template/index.tsx +1 -1
- package/lib/esm/middlewares/init-resource-router.js +1 -1
- package/lib/esm/plugins/_theme.js +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/constants/index.d.ts +1 -1
- package/lib/types/constants/new-block-template/index.d.ts +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@ exports.DEFAULT_BLOCK_ENTRY_FILES_PATTERN = exports.NANOID_LENGTH = exports.PREV
|
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
exports.PAGES_KIT_DID = 'z8iZiDFg3vkkrPwsiba1TLXy3H9XHzFERsP8o';
|
|
9
9
|
exports.PAGES_KIT_RESOURCE_TYPE = 'page';
|
|
10
|
-
exports.PAGES_KIT_BLOCK_STUDIO_DID = '
|
|
10
|
+
exports.PAGES_KIT_BLOCK_STUDIO_DID = 'z2qa7BQdkEb3TwYyEYC1psK6uvmGnHSUHt5RM';
|
|
11
11
|
exports.PAGES_KIT_BLOCK_STUDIO_RESOURCE_TYPE = 'page';
|
|
12
12
|
exports.MEDIA_KIT_DID = 'z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9';
|
|
13
13
|
exports.MEDIA_KIT_RESOURCE_TYPE = 'imgpack';
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"locales": {
|
|
24
24
|
"zh": {
|
|
25
25
|
"name": "描述",
|
|
26
|
-
"defaultValue": "
|
|
26
|
+
"defaultValue": "欢迎使用 Component Studio"
|
|
27
27
|
},
|
|
28
28
|
"en": {
|
|
29
29
|
"name": "Description",
|
|
30
|
-
"defaultValue": "Welcome to
|
|
30
|
+
"defaultValue": "Welcome to Component Studio"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EditComponent = void 0;
|
|
4
|
-
exports.default =
|
|
4
|
+
exports.default = BlockComponent;
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
// default export
|
|
7
|
-
function
|
|
7
|
+
function BlockComponent({ title = 'Hello World', logo, description, copyright }) {
|
|
8
8
|
return ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
9
9
|
display: 'flex',
|
|
10
10
|
flexDirection: 'column',
|
|
@@ -17,7 +17,7 @@ export interface BlockProps {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// default export
|
|
20
|
-
export default function
|
|
20
|
+
export default function BlockComponent({ title = 'Hello World', logo, description, copyright }: BlockProps) {
|
|
21
21
|
return (
|
|
22
22
|
<div
|
|
23
23
|
style={{
|
|
@@ -47,7 +47,7 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
47
47
|
const set_1 = __importDefault(require("lodash/set"));
|
|
48
48
|
const path_1 = __importStar(require("path"));
|
|
49
49
|
const helper_1 = require("../utils/helper");
|
|
50
|
-
const DID = '
|
|
50
|
+
const DID = 'z2qa7BQdkEb3TwYyEYC1psK6uvmGnHSUHt5RM';
|
|
51
51
|
const RESOURCE_TYPE = 'page';
|
|
52
52
|
const allTag = '@ALL_COMPONENTS';
|
|
53
53
|
// use for tracking build process
|
|
@@ -70,7 +70,7 @@ const ufo_1 = require("ufo");
|
|
|
70
70
|
const client_1 = require("vite-plugin-react-pages/client");
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
const basename = window.blocklet?.prefix || '/';
|
|
73
|
-
const PAGES_KIT_BLOCK_STUDIO_BLOCKLET_DID = '
|
|
73
|
+
const PAGES_KIT_BLOCK_STUDIO_BLOCKLET_DID = 'z2qa7BQdkEb3TwYyEYC1psK6uvmGnHSUHt5RM';
|
|
74
74
|
const api = (0, js_sdk_1.createAxios)({
|
|
75
75
|
timeout: 200000,
|
|
76
76
|
}, {
|