@blocklet/pages-kit 0.2.324 → 0.2.326
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/components/{MarkdownRenderer.js → MarkdownRenderer/index.js} +6 -12
- package/lib/cjs/builtin/async/ai-runtime/components/ShareActions/index.js +1 -1
- package/lib/cjs/builtin/async/ai-runtime/components/SocialShare.js +5 -2
- package/lib/cjs/builtin/async/ai-runtime/constants.js +5 -1
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +24 -9
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +1 -2
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +20 -7
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/V0/Output.js +4 -1
- package/lib/cjs/builtin/async/ai-runtime/state/runtime.js +8 -6
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime/components/{MarkdownRenderer.js → MarkdownRenderer/index.js} +6 -12
- package/lib/esm/builtin/async/ai-runtime/components/ShareActions/index.js +1 -1
- package/lib/esm/builtin/async/ai-runtime/components/SocialShare.js +5 -2
- package/lib/esm/builtin/async/ai-runtime/constants.js +4 -0
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.js +22 -9
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/MessagesView.js +1 -2
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.js +22 -9
- package/lib/esm/builtin/async/ai-runtime/runtime-components/V0/Output.js +4 -1
- package/lib/esm/builtin/async/ai-runtime/state/runtime.js +8 -6
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/builtin/async/ai-runtime/constants.d.ts +1 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/MessageView.d.ts +4 -0
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningMessageView.d.ts +3 -1
- package/lib/types/builtin/session.d.ts +1 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js +0 -20
- package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js +0 -14
- package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.d.ts +0 -1
- /package/lib/types/builtin/async/ai-runtime/components/{MarkdownRenderer.d.ts → MarkdownRenderer/index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/pages-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.326",
|
|
4
4
|
"description": "Pages Kit components and utils",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@arcblock/did-connect": "^2.9.86",
|
|
89
|
-
"@blocklet/ai-kit": "^0.1.
|
|
90
|
-
"@blocklet/ai-runtime": "^0.2.
|
|
89
|
+
"@blocklet/ai-kit": "^0.1.36",
|
|
90
|
+
"@blocklet/ai-runtime": "^0.2.16",
|
|
91
91
|
"@blocklet/js-sdk": "1.16.26",
|
|
92
92
|
"@blocklet/sdk": "^1.16.26",
|
|
93
93
|
"@iconify/react": "^4.1.1",
|
package/lib/cjs/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const types_1 = require("@blocklet/ai-runtime/types");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const CustomComponentRenderer_1 = __importDefault(require("../../../../../components/CustomComponentRenderer"));
|
|
10
|
-
const CurrentAgent_1 = require("../../contexts/CurrentAgent");
|
|
11
|
-
function OpeningQuestionsView() {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
const { agent } = (0, CurrentAgent_1.useCurrentAgent)();
|
|
14
|
-
const output = (0, react_1.useMemo)(() => { var _a; return (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === types_1.RuntimeOutputVariable.openingQuestions); }, [agent.outputVariables]);
|
|
15
|
-
const componentId = (_a = output === null || output === void 0 ? void 0 : output.appearance) === null || _a === void 0 ? void 0 : _a.componentId;
|
|
16
|
-
if (!componentId)
|
|
17
|
-
return null;
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(CustomComponentRenderer_1.default, { instanceId: output.id, componentId: componentId, properties: (_b = output.appearance) === null || _b === void 0 ? void 0 : _b.componentProperties, props: { output } }));
|
|
19
|
-
}
|
|
20
|
-
exports.default = OpeningQuestionsView;
|
package/lib/esm/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { RuntimeOutputVariable } from '@blocklet/ai-runtime/types';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
import CustomComponentRenderer from '../../../../../components/CustomComponentRenderer';
|
|
5
|
-
import { useCurrentAgent } from '../../contexts/CurrentAgent';
|
|
6
|
-
export default function OpeningQuestionsView() {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
const { agent } = useCurrentAgent();
|
|
9
|
-
const output = useMemo(() => { var _a; return (_a = agent.outputVariables) === null || _a === void 0 ? void 0 : _a.find((i) => i.name === RuntimeOutputVariable.openingQuestions); }, [agent.outputVariables]);
|
|
10
|
-
const componentId = (_a = output === null || output === void 0 ? void 0 : output.appearance) === null || _a === void 0 ? void 0 : _a.componentId;
|
|
11
|
-
if (!componentId)
|
|
12
|
-
return null;
|
|
13
|
-
return (_jsx(CustomComponentRenderer, { instanceId: output.id, componentId: componentId, properties: (_b = output.appearance) === null || _b === void 0 ? void 0 : _b.componentProperties, props: { output } }));
|
|
14
|
-
}
|
package/lib/types/builtin/async/ai-runtime/runtime-components/SimpleChat/OpeningQuestionsView.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function OpeningQuestionsView(): import("react/jsx-runtime").JSX.Element | null;
|
|
File without changes
|