pactor-app 1.48.1 → 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 +43 -0
- package/dist/index.d.cts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +36 -0
- package/package.json +16 -16
- package/styles.css +23 -7
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.
|
|
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/
|
|
54
|
-
"@pactor-app/
|
|
55
|
-
"@pactor-app/
|
|
56
|
-
"@pactor-app/
|
|
57
|
-
"@pactor-app/
|
|
58
|
-
"@pactor-app/markdown": "1.
|
|
59
|
-
"@pactor-app/
|
|
60
|
-
"@pactor-app/
|
|
61
|
-
"@pactor-app/
|
|
62
|
-
"@pactor-app/permission": "1.
|
|
63
|
-
"@pactor-app/
|
|
64
|
-
"@pactor-app/schema": "1.
|
|
65
|
-
"@pactor-app/ui": "1.
|
|
66
|
-
"@pactor-app/
|
|
67
|
-
"@pactor-app/
|
|
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.
|
|
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
|
}
|
|
@@ -4062,6 +4068,8 @@
|
|
|
4062
4068
|
--card-shadow: none;
|
|
4063
4069
|
--shadow-color: oklch(0 0 0 / 10%);
|
|
4064
4070
|
--overlay-background: oklch(0 0 0 / 50%);
|
|
4071
|
+
--input-background: var(--card);
|
|
4072
|
+
--input-foreground: var(--card-foreground);
|
|
4065
4073
|
--switch-track: var(--input);
|
|
4066
4074
|
--switch-track-checked: var(--primary);
|
|
4067
4075
|
--switch-thumb: var(--card);
|
|
@@ -4129,6 +4137,8 @@
|
|
|
4129
4137
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
4130
4138
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
4131
4139
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
4140
|
+
--input-background: var(--card);
|
|
4141
|
+
--input-foreground: var(--card-foreground);
|
|
4132
4142
|
--bubble-background: oklch(from var(--primary) 0.3 calc(c * 0.4) h);
|
|
4133
4143
|
--bubble-hover-background: oklch(
|
|
4134
4144
|
from var(--primary) 0.35 calc(c * 0.5) h
|
|
@@ -4166,6 +4176,8 @@
|
|
|
4166
4176
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
4167
4177
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
4168
4178
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
4179
|
+
--input-background: var(--card);
|
|
4180
|
+
--input-foreground: var(--card-foreground);
|
|
4169
4181
|
--bubble-background: oklch(from var(--primary) 0.3 calc(c * 0.4) h);
|
|
4170
4182
|
--bubble-hover-background: oklch(
|
|
4171
4183
|
from var(--primary) 0.35 calc(c * 0.5) h
|
|
@@ -4183,6 +4195,9 @@
|
|
|
4183
4195
|
.pactor-clearable {
|
|
4184
4196
|
display: none;
|
|
4185
4197
|
}
|
|
4198
|
+
.pactor-tabs-pill {
|
|
4199
|
+
cursor: pointer;
|
|
4200
|
+
}
|
|
4186
4201
|
@media (hover: hover) {
|
|
4187
4202
|
.group:hover .pactor-clearable {
|
|
4188
4203
|
display: inline-flex;
|
|
@@ -4613,7 +4628,7 @@
|
|
|
4613
4628
|
}
|
|
4614
4629
|
|
|
4615
4630
|
/* ============================================================
|
|
4616
|
-
* @pactor-app/blocks@1.
|
|
4631
|
+
* @pactor-app/blocks@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
|
|
4617
4632
|
* ============================================================ */
|
|
4618
4633
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
4619
4634
|
@layer properties;
|
|
@@ -4666,9 +4681,6 @@
|
|
|
4666
4681
|
.-top-24 {
|
|
4667
4682
|
top: calc(var(--spacing) * -24);
|
|
4668
4683
|
}
|
|
4669
|
-
.top-0 {
|
|
4670
|
-
top: 0px;
|
|
4671
|
-
}
|
|
4672
4684
|
.top-1\/3 {
|
|
4673
4685
|
top: calc(1 / 3 * 100%);
|
|
4674
4686
|
}
|
|
@@ -5708,6 +5720,10 @@
|
|
|
5708
5720
|
border-color: var(--destructive);
|
|
5709
5721
|
}
|
|
5710
5722
|
}
|
|
5723
|
+
.ace_editor .ace_placeholder {
|
|
5724
|
+
font-size: 14px;
|
|
5725
|
+
transform: none;
|
|
5726
|
+
}
|
|
5711
5727
|
@property --tw-space-y-reverse {
|
|
5712
5728
|
syntax: "*";
|
|
5713
5729
|
inherits: false;
|
|
@@ -5957,7 +5973,7 @@
|
|
|
5957
5973
|
}
|
|
5958
5974
|
|
|
5959
5975
|
/* ============================================================
|
|
5960
|
-
* @pactor-app/chart@1.
|
|
5976
|
+
* @pactor-app/chart@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
|
|
5961
5977
|
* ============================================================ */
|
|
5962
5978
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
5963
5979
|
@layer properties;
|
|
@@ -6216,7 +6232,7 @@
|
|
|
6216
6232
|
}
|
|
6217
6233
|
|
|
6218
6234
|
/* ============================================================
|
|
6219
|
-
* @pactor-app/chat@1.
|
|
6235
|
+
* @pactor-app/chat@1.49.0(构建产物内联,源顺序:ui → blocks → chart → chat)
|
|
6220
6236
|
* ============================================================ */
|
|
6221
6237
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
6222
6238
|
@layer properties;
|