@blocklet/pages-kit 0.2.331 → 0.2.332
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/builtin/async/ai-runtime/locales/index.js +1 -1
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +1 -1
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +1 -2
- package/lib/cjs/components/CustomComponentRenderer/index.js +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime/locales/index.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/CodePreview.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/components/UserQuestion.js +1 -2
- package/lib/esm/components/CustomComponentRenderer/index.js +1 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ function RetryComponent({ message, tip }) {
|
|
|
59
59
|
} }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "h6", sx: {
|
|
60
60
|
display: 'flex',
|
|
61
61
|
alignItems: 'center',
|
|
62
|
-
}, children: [tip || t('v0.retryTip'), (0, jsx_runtime_1.jsx)(TransparentTooltip_1.default, { arrow: true, placement: "top", title: (0, jsx_runtime_1.jsx)(MessageErrorView_1.default, { error: (message === null || message === void 0 ? void 0 : message.error) || new Error('
|
|
62
|
+
}, children: [tip || t('v0.retryTip'), (0, jsx_runtime_1.jsx)(TransparentTooltip_1.default, { arrow: true, placement: "top", title: (0, jsx_runtime_1.jsx)(MessageErrorView_1.default, { error: (message === null || message === void 0 ? void 0 : message.error) || new Error('Code syntax errors'), sx: {
|
|
63
63
|
mr: 0,
|
|
64
64
|
} }), children: (0, jsx_runtime_1.jsx)(material_1.Box, { component: react_1.Icon, icon: "akar-icons:info", sx: {
|
|
65
65
|
ml: 1,
|
|
@@ -33,7 +33,6 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const BASE_QUESTION_SX = {
|
|
34
34
|
fontWeight: 500,
|
|
35
35
|
fontSize: 13,
|
|
36
|
-
lineHeight: 1.6,
|
|
37
36
|
};
|
|
38
37
|
function UserQuestion({ question }) {
|
|
39
38
|
var _a;
|
|
@@ -57,7 +56,7 @@ function UserQuestion({ question }) {
|
|
|
57
56
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, { ref: containerRef, display: "flex", alignItems: "center", sx: Object.assign(Object.assign({}, BASE_QUESTION_SX), { color: 'textColor' }), children: (0, jsx_runtime_1.jsx)(ClickToCopy_1.default, { locale: locale, unstyled: true, disableHoverListener: true, disableFocusListener: true, disableTouchListener: true, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { placement: "bottom", arrow: true, title: (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
58
57
|
display: 'flex',
|
|
59
58
|
alignItems: 'center',
|
|
60
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { sx: Object.assign(Object.assign({}, BASE_QUESTION_SX), {
|
|
59
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { sx: Object.assign(Object.assign({}, BASE_QUESTION_SX), { color: 'white' }), children: question }), (0, jsx_runtime_1.jsx)(material_1.Box, { id: "copy-button-wrapper", component: "span", sx: {
|
|
61
60
|
ml: 0.5,
|
|
62
61
|
mt: 0.25,
|
|
63
62
|
fontSize: 14,
|
|
@@ -42,7 +42,7 @@ function CustomComponentRenderer(_a) {
|
|
|
42
42
|
var { dev } = _a, props = __rest(_a, ["dev"]);
|
|
43
43
|
const inheritedDev = (0, DevProvider_1.useDev)();
|
|
44
44
|
const BuiltinComponent = BuiltinComponents[props.componentId];
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { fallbackRender: (props === null || props === void 0 ? void 0 : props.fallbackRender) || ErrorView,
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { fallbackRender: (props === null || props === void 0 ? void 0 : props.fallbackRender) || ErrorView, children: (0, jsx_runtime_1.jsx)(DevProvider_1.DevProvider, { dev: dev !== null && dev !== void 0 ? dev : inheritedDev, children: BuiltinComponent ? ((0, jsx_runtime_1.jsx)(BuiltinComponent, Object.assign({}, props))) : ((0, jsx_runtime_1.jsx)(ComponentRenderer, Object.assign({}, props, { instanceId: (_b = props.instanceId) !== null && _b !== void 0 ? _b : props.componentId }))) }) }));
|
|
46
46
|
}
|
|
47
47
|
exports.default = CustomComponentRenderer;
|
|
48
48
|
const BuiltinComponents = {
|