@blocklet/pages-kit-block-studio 0.6.75 → 0.6.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/lib/cjs/components/create-resource.js +5 -2
- package/lib/cjs/plugins/_theme.js +2 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/components/create-resource.js +1 -1
- package/lib/esm/plugins/_theme.js +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.CreateResource = CreateResource;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const BlockletStudio_1 = __importDefault(require("@blocklet/ui-react/lib/BlockletStudio"));
|
|
6
9
|
const material_1 = require("@mui/material");
|
|
7
10
|
const react_1 = require("react");
|
|
8
11
|
function CreateResource({ open, onClose, blockletDid, mode, }) {
|
|
@@ -22,7 +25,7 @@ function CreateResource({ open, onClose, blockletDid, mode, }) {
|
|
|
22
25
|
},
|
|
23
26
|
}
|
|
24
27
|
: {};
|
|
25
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { ...boxProps, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: (0, jsx_runtime_1.jsx)(
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { ...boxProps, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { children: (0, jsx_runtime_1.jsx)(BlockletStudio_1.default, { mode: mode, tenantScope: tenantScope, title: "Pages Kit Blocks", description: "", note: "", introduction: "", logo: "", componentDid: blockletDid,
|
|
26
29
|
// 透传到 get blocklet resource 的参数
|
|
27
30
|
resourcesParams: {}, dependentComponentsMode: "readonly", open: true, setOpen: () => onClose(), onConnected: () => { }, onUploaded: () => { }, onReleased: () => { },
|
|
28
31
|
// onOpened={() => onOpened?.()}
|
|
@@ -57,7 +57,7 @@ const components_2 = require("@blocklet/pages-kit/components");
|
|
|
57
57
|
const property_1 = require("@blocklet/pages-kit/utils/property");
|
|
58
58
|
// @ts-ignore
|
|
59
59
|
const studio_ui_1 = require("@blocklet/studio-ui");
|
|
60
|
-
const
|
|
60
|
+
const BlockletStudio_1 = __importDefault(require("@blocklet/ui-react/lib/BlockletStudio"));
|
|
61
61
|
const core_1 = require("@dnd-kit/core");
|
|
62
62
|
const sortable_1 = require("@dnd-kit/sortable");
|
|
63
63
|
const utilities_1 = require("@dnd-kit/utilities");
|
|
@@ -1193,7 +1193,7 @@ function CreateResource({ open, onClose }) {
|
|
|
1193
1193
|
return null;
|
|
1194
1194
|
}
|
|
1195
1195
|
const tenantScope = 'pages-kit-block-studio';
|
|
1196
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
1196
|
+
return ((0, jsx_runtime_1.jsx)(BlockletStudio_1.default, { mode: "dialog", tenantScope: tenantScope, title: "Pages Kit Blocks", description: "", note: "", introduction: "", logo: "", componentDid: PAGES_KIT_BLOCK_STUDIO_BLOCKLET_DID,
|
|
1197
1197
|
// 透传到 get blocklet resource 的参数
|
|
1198
1198
|
resourcesParams: {}, dependentComponentsMode: "readonly", open: true, setOpen: () => onClose(), onConnected: () => { }, onUploaded: () => { }, onReleased: () => { },
|
|
1199
1199
|
// onOpened={() => onOpened?.()}
|