pactor-app 1.48.1 → 1.50.0

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/dist/index.cjs CHANGED
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -16,9 +20,48 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
20
 
17
21
  // src/index.ts
18
22
  var index_exports = {};
23
+ __export(index_exports, {
24
+ SitemapApp: () => SitemapApp,
25
+ createChatComponentRegistry: () => import_chat2.createChatComponentRegistry,
26
+ createPactorComponentRegistry: () => createPactorComponentRegistry,
27
+ registerBlockComponents: () => import_blocks2.registerBlockComponents,
28
+ registerChartComponents: () => import_chart2.registerChartComponents
29
+ });
19
30
  module.exports = __toCommonJS(index_exports);
20
31
  __reExport(index_exports, require("@pactor-app/app"), module.exports);
32
+
33
+ // src/sitemap-app.tsx
34
+ var import_app = require("@pactor-app/app");
35
+ var import_chat = require("@pactor-app/chat");
36
+ var import_blocks = require("@pactor-app/blocks");
37
+ var import_chart = require("@pactor-app/chart");
38
+ var import_jsx_runtime = require("react/jsx-runtime");
39
+ function createPactorComponentRegistry() {
40
+ const registry = (0, import_chat.createChatComponentRegistry)();
41
+ (0, import_blocks.registerBlockComponents)(registry);
42
+ (0, import_chart.registerChartComponents)(registry);
43
+ return registry;
44
+ }
45
+ function SitemapApp(props) {
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
+ import_app.SitemapApp,
48
+ {
49
+ componentRegistry: createPactorComponentRegistry,
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+
55
+ // src/index.ts
56
+ var import_chat2 = require("@pactor-app/chat");
57
+ var import_blocks2 = require("@pactor-app/blocks");
58
+ var import_chart2 = require("@pactor-app/chart");
21
59
  // Annotate the CommonJS export names for ESM import in node:
22
60
  0 && (module.exports = {
61
+ SitemapApp,
62
+ createChatComponentRegistry,
63
+ createPactorComponentRegistry,
64
+ registerBlockComponents,
65
+ registerChartComponents,
23
66
  ...require("@pactor-app/app")
24
67
  });
package/dist/index.d.cts CHANGED
@@ -1 +1,22 @@
1
+ import { SitemapAppProps } from '@pactor-app/app';
1
2
  export * from '@pactor-app/app';
3
+ import * as react from 'react';
4
+ import * as _pactor_app_core from '@pactor-app/core';
5
+ export { createChatComponentRegistry } from '@pactor-app/chat';
6
+ export { registerBlockComponents } from '@pactor-app/blocks';
7
+ export { registerChartComponents } from '@pactor-app/chart';
8
+
9
+ /**
10
+ * pactor-app 元包全量组件注册表:ui 内置组件 + chat 展示组件族
11
+ *(ChatPage / ConversationList / Composer 等)+ Chat / ChatShell
12
+ * + blocks 复合区块 + chart 图表组件。
13
+ */
14
+ declare function createPactorComponentRegistry(): _pactor_app_core.Registry<unknown>;
15
+ /**
16
+ * pactor-app 元包版 SitemapApp:组件注册表缺省为
17
+ * createPactorComponentRegistry,业务侧无需再按名注册
18
+ * chat / blocks / chart 组件;显式传 componentRegistry 可覆盖。
19
+ */
20
+ declare function SitemapApp(props: SitemapAppProps): react.JSX.Element;
21
+
22
+ export { SitemapApp, createPactorComponentRegistry };
package/dist/index.d.ts CHANGED
@@ -1 +1,22 @@
1
+ import { SitemapAppProps } from '@pactor-app/app';
1
2
  export * from '@pactor-app/app';
3
+ import * as react from 'react';
4
+ import * as _pactor_app_core from '@pactor-app/core';
5
+ export { createChatComponentRegistry } from '@pactor-app/chat';
6
+ export { registerBlockComponents } from '@pactor-app/blocks';
7
+ export { registerChartComponents } from '@pactor-app/chart';
8
+
9
+ /**
10
+ * pactor-app 元包全量组件注册表:ui 内置组件 + chat 展示组件族
11
+ *(ChatPage / ConversationList / Composer 等)+ Chat / ChatShell
12
+ * + blocks 复合区块 + chart 图表组件。
13
+ */
14
+ declare function createPactorComponentRegistry(): _pactor_app_core.Registry<unknown>;
15
+ /**
16
+ * pactor-app 元包版 SitemapApp:组件注册表缺省为
17
+ * createPactorComponentRegistry,业务侧无需再按名注册
18
+ * chat / blocks / chart 组件;显式传 componentRegistry 可覆盖。
19
+ */
20
+ declare function SitemapApp(props: SitemapAppProps): react.JSX.Element;
21
+
22
+ export { SitemapApp, createPactorComponentRegistry };
package/dist/index.js CHANGED
@@ -1,2 +1,38 @@
1
1
  // src/index.ts
2
2
  export * from "@pactor-app/app";
3
+
4
+ // src/sitemap-app.tsx
5
+ import {
6
+ SitemapApp as BaseSitemapApp
7
+ } from "@pactor-app/app";
8
+ import { createChatComponentRegistry } from "@pactor-app/chat";
9
+ import { registerBlockComponents } from "@pactor-app/blocks";
10
+ import { registerChartComponents } from "@pactor-app/chart";
11
+ import { jsx } from "react/jsx-runtime";
12
+ function createPactorComponentRegistry() {
13
+ const registry = createChatComponentRegistry();
14
+ registerBlockComponents(registry);
15
+ registerChartComponents(registry);
16
+ return registry;
17
+ }
18
+ function SitemapApp(props) {
19
+ return /* @__PURE__ */ jsx(
20
+ BaseSitemapApp,
21
+ {
22
+ componentRegistry: createPactorComponentRegistry,
23
+ ...props
24
+ }
25
+ );
26
+ }
27
+
28
+ // src/index.ts
29
+ import { createChatComponentRegistry as createChatComponentRegistry2 } from "@pactor-app/chat";
30
+ import { registerBlockComponents as registerBlockComponents2 } from "@pactor-app/blocks";
31
+ import { registerChartComponents as registerChartComponents2 } from "@pactor-app/chart";
32
+ export {
33
+ SitemapApp,
34
+ createChatComponentRegistry2 as createChatComponentRegistry,
35
+ createPactorComponentRegistry,
36
+ registerBlockComponents2 as registerBlockComponents,
37
+ registerChartComponents2 as registerChartComponents
38
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pactor-app",
3
- "version": "1.48.1",
3
+ "version": "1.50.0",
4
4
  "description": "Pactor meta package: installs the full Server-Driven UI + AI-Native runtime stack (@pactor-app/*) and re-exports the one-stop application API (createPactorApplication)",
5
5
  "keywords": [
6
6
  "pactor",
@@ -50,21 +50,21 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@pactor-app/app": "1.48.1",
54
- "@pactor-app/chat": "1.48.1",
55
- "@pactor-app/blocks": "1.48.1",
56
- "@pactor-app/chart": "1.48.1",
57
- "@pactor-app/expression": "1.48.1",
58
- "@pactor-app/markdown": "1.48.1",
59
- "@pactor-app/cli": "1.48.1",
60
- "@pactor-app/core": "1.48.1",
61
- "@pactor-app/resource": "1.48.1",
62
- "@pactor-app/permission": "1.48.1",
63
- "@pactor-app/router": "1.48.1",
64
- "@pactor-app/schema": "1.48.1",
65
- "@pactor-app/ui": "1.48.1",
66
- "@pactor-app/vite-plugin": "1.48.1",
67
- "@pactor-app/runtime": "1.48.1"
53
+ "@pactor-app/app": "1.50.0",
54
+ "@pactor-app/chart": "1.50.0",
55
+ "@pactor-app/chat": "1.50.0",
56
+ "@pactor-app/blocks": "1.50.0",
57
+ "@pactor-app/expression": "1.50.0",
58
+ "@pactor-app/cli": "1.50.0",
59
+ "@pactor-app/permission": "1.50.0",
60
+ "@pactor-app/markdown": "1.50.0",
61
+ "@pactor-app/resource": "1.50.0",
62
+ "@pactor-app/runtime": "1.50.0",
63
+ "@pactor-app/schema": "1.50.0",
64
+ "@pactor-app/ui": "1.50.0",
65
+ "@pactor-app/router": "1.50.0",
66
+ "@pactor-app/vite-plugin": "1.50.0",
67
+ "@pactor-app/core": "1.50.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": ">=18",