pactor-app 1.48.0 → 1.49.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.0",
3
+ "version": "1.49.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.0",
54
- "@pactor-app/chat": "1.48.0",
55
- "@pactor-app/chart": "1.48.0",
56
- "@pactor-app/blocks": "1.48.0",
57
- "@pactor-app/cli": "1.48.0",
58
- "@pactor-app/markdown": "1.48.0",
59
- "@pactor-app/core": "1.48.0",
60
- "@pactor-app/expression": "1.48.0",
61
- "@pactor-app/permission": "1.48.0",
62
- "@pactor-app/router": "1.48.0",
63
- "@pactor-app/resource": "1.48.0",
64
- "@pactor-app/schema": "1.48.0",
65
- "@pactor-app/ui": "1.48.0",
66
- "@pactor-app/vite-plugin": "1.48.0",
67
- "@pactor-app/runtime": "1.48.0"
53
+ "@pactor-app/blocks": "1.49.0",
54
+ "@pactor-app/app": "1.49.0",
55
+ "@pactor-app/chart": "1.49.0",
56
+ "@pactor-app/chat": "1.49.0",
57
+ "@pactor-app/core": "1.49.0",
58
+ "@pactor-app/markdown": "1.49.0",
59
+ "@pactor-app/resource": "1.49.0",
60
+ "@pactor-app/expression": "1.49.0",
61
+ "@pactor-app/router": "1.49.0",
62
+ "@pactor-app/permission": "1.49.0",
63
+ "@pactor-app/runtime": "1.49.0",
64
+ "@pactor-app/schema": "1.49.0",
65
+ "@pactor-app/ui": "1.49.0",
66
+ "@pactor-app/cli": "1.49.0",
67
+ "@pactor-app/vite-plugin": "1.49.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": ">=18",
package/styles.css CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  /* ============================================================
8
- * @pactor-app/ui@1.48.0(构建产物内联,源顺序:ui → blocks → chart → chat)
8
+ * @pactor-app/ui@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
9
9
  * ============================================================ */
10
10
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
11
11
  @layer properties;
@@ -1453,6 +1453,9 @@
1453
1453
  .border-l-warning {
1454
1454
  border-left-color: var(--warning);
1455
1455
  }
1456
+ .bg-\(--input-background\) {
1457
+ background-color: var(--input-background);
1458
+ }
1456
1459
  .bg-\(--menu-active-background\) {
1457
1460
  background-color: var(--menu-active-background);
1458
1461
  }
@@ -1885,6 +1888,9 @@
1885
1888
  .whitespace-pre-wrap {
1886
1889
  white-space: pre-wrap;
1887
1890
  }
1891
+ .text-\(--input-foreground\) {
1892
+ color: var(--input-foreground);
1893
+ }
1888
1894
  .text-\(--menu-active-foreground\) {
1889
1895
  color: var(--menu-active-foreground);
1890
1896
  }
@@ -3614,13 +3620,21 @@
3614
3620
  border-top-right-radius: calc(var(--radius) * 0.8);
3615
3621
  border-bottom-right-radius: calc(var(--radius) * 0.8);
3616
3622
  }
3623
+ .\[\&\>\[data-slot\=button\]\]\:first-of-type\:rounded-l-md > [data-slot=button]:first-of-type {
3624
+ border-top-left-radius: calc(var(--radius) * 0.8);
3625
+ border-bottom-left-radius: calc(var(--radius) * 0.8);
3626
+ }
3627
+ .\[\&\>\[data-slot\=button\]\]\:last-of-type\:rounded-r-md > [data-slot=button]:last-of-type {
3628
+ border-top-right-radius: calc(var(--radius) * 0.8);
3629
+ border-bottom-right-radius: calc(var(--radius) * 0.8);
3630
+ }
3617
3631
  .\[\&\>\[data-slot\=button\]\:not\(\:first-child\)\]\:-ml-px > [data-slot=button]:not(:first-child) {
3618
3632
  margin-left: -1px;
3619
3633
  }
3620
3634
  .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:rounded-none > [data-slot=dropdown-menu-trigger] {
3621
3635
  border-radius: 0;
3622
3636
  }
3623
- .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:last\:rounded-r-md > [data-slot=dropdown-menu-trigger]:last-child {
3637
+ .\[\&\>\[data-slot\=dropdown-menu-trigger\]\]\:last-of-type\:rounded-r-md > [data-slot=dropdown-menu-trigger]:last-of-type {
3624
3638
  border-top-right-radius: calc(var(--radius) * 0.8);
3625
3639
  border-bottom-right-radius: calc(var(--radius) * 0.8);
3626
3640
  }
@@ -4054,6 +4068,8 @@
4054
4068
  --card-shadow: none;
4055
4069
  --shadow-color: oklch(0 0 0 / 10%);
4056
4070
  --overlay-background: oklch(0 0 0 / 50%);
4071
+ --input-background: var(--card);
4072
+ --input-foreground: var(--card-foreground);
4057
4073
  --switch-track: var(--input);
4058
4074
  --switch-track-checked: var(--primary);
4059
4075
  --switch-thumb: var(--card);
@@ -4121,6 +4137,8 @@
4121
4137
  --chart-5: oklch(0.645 0.246 16.439);
4122
4138
  --sidebar-primary: oklch(0.488 0.243 264.376);
4123
4139
  --sidebar-primary-foreground: oklch(0.985 0 0);
4140
+ --input-background: var(--card);
4141
+ --input-foreground: var(--card-foreground);
4124
4142
  --bubble-background: oklch(from var(--primary) 0.3 calc(c * 0.4) h);
4125
4143
  --bubble-hover-background: oklch(
4126
4144
  from var(--primary) 0.35 calc(c * 0.5) h
@@ -4158,6 +4176,8 @@
4158
4176
  --chart-5: oklch(0.645 0.246 16.439);
4159
4177
  --sidebar-primary: oklch(0.488 0.243 264.376);
4160
4178
  --sidebar-primary-foreground: oklch(0.985 0 0);
4179
+ --input-background: var(--card);
4180
+ --input-foreground: var(--card-foreground);
4161
4181
  --bubble-background: oklch(from var(--primary) 0.3 calc(c * 0.4) h);
4162
4182
  --bubble-hover-background: oklch(
4163
4183
  from var(--primary) 0.35 calc(c * 0.5) h
@@ -4175,6 +4195,9 @@
4175
4195
  .pactor-clearable {
4176
4196
  display: none;
4177
4197
  }
4198
+ .pactor-tabs-pill {
4199
+ cursor: pointer;
4200
+ }
4178
4201
  @media (hover: hover) {
4179
4202
  .group:hover .pactor-clearable {
4180
4203
  display: inline-flex;
@@ -4605,7 +4628,7 @@
4605
4628
  }
4606
4629
 
4607
4630
  /* ============================================================
4608
- * @pactor-app/blocks@1.48.0(构建产物内联,源顺序:ui → blocks → chart → chat)
4631
+ * @pactor-app/blocks@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
4609
4632
  * ============================================================ */
4610
4633
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
4611
4634
  @layer properties;
@@ -4658,9 +4681,6 @@
4658
4681
  .-top-24 {
4659
4682
  top: calc(var(--spacing) * -24);
4660
4683
  }
4661
- .top-0 {
4662
- top: 0px;
4663
- }
4664
4684
  .top-1\/3 {
4665
4685
  top: calc(1 / 3 * 100%);
4666
4686
  }
@@ -5700,6 +5720,10 @@
5700
5720
  border-color: var(--destructive);
5701
5721
  }
5702
5722
  }
5723
+ .ace_editor .ace_placeholder {
5724
+ font-size: 14px;
5725
+ transform: none;
5726
+ }
5703
5727
  @property --tw-space-y-reverse {
5704
5728
  syntax: "*";
5705
5729
  inherits: false;
@@ -5949,7 +5973,7 @@
5949
5973
  }
5950
5974
 
5951
5975
  /* ============================================================
5952
- * @pactor-app/chart@1.48.0(构建产物内联,源顺序:ui → blocks → chart → chat)
5976
+ * @pactor-app/chart@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
5953
5977
  * ============================================================ */
5954
5978
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
5955
5979
  @layer properties;
@@ -6208,7 +6232,7 @@
6208
6232
  }
6209
6233
 
6210
6234
  /* ============================================================
6211
- * @pactor-app/chat@1.48.0(构建产物内联,源顺序:ui → blocks → chart → chat)
6235
+ * @pactor-app/chat@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
6212
6236
  * ============================================================ */
6213
6237
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
6214
6238
  @layer properties;
@@ -6419,8 +6443,8 @@
6419
6443
  .h-8 {
6420
6444
  height: calc(var(--spacing) * 8);
6421
6445
  }
6422
- .h-10 {
6423
- height: calc(var(--spacing) * 10);
6446
+ .h-14 {
6447
+ height: calc(var(--spacing) * 14);
6424
6448
  }
6425
6449
  .h-full {
6426
6450
  height: 100%;