Skip to content

Commit 886fabe

Browse files
authored
Merge pull request #437 from easyops-cn/renovate/next-core-packages
chore(deps): Update next-core packages
2 parents 29bf931 + 32822ee commit 886fabe

File tree

30 files changed

+465
-152
lines changed

30 files changed

+465
-152
lines changed

bricks/advanced/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"dist-types",
1616
"docs"
1717
],
18+
"types": "dist-types/jsx.d.ts",
1819
"exports": {
1920
"./package.json": "./package.json",
2021
"./dist/bricks.json": "./dist/bricks.json",
2122
"./dist/manifest.json": "./dist/manifest.json",
23+
".": "./dist-types/jsx.d.ts",
2224
"./*": {
2325
"types": "./dist-types/*/index.d.ts"
2426
}
@@ -45,10 +47,10 @@
4547
"@next-core/element": "^1.2.19",
4648
"@next-core/http": "^1.2.14",
4749
"@next-core/react-element": "^1.0.38",
48-
"@next-core/react-runtime": "^1.7.39",
49-
"@next-core/runtime": "^1.71.0",
50+
"@next-core/react-runtime": "^1.7.43",
51+
"@next-core/runtime": "^1.71.4",
5052
"@next-core/theme": "^1.6.1",
51-
"@next-core/types": "^1.18.0",
53+
"@next-core/types": "^1.18.1",
5254
"@react-pdf-viewer/core": "^3.12.0",
5355
"@react-pdf-viewer/default-layout": "^3.12.0",
5456
"@react-pdf-viewer/page-navigation": "^3.12.0",
@@ -68,7 +70,7 @@
6870
"react-sizeme": "^3.0.2"
6971
},
7072
"devDependencies": {
71-
"@next-core/build-next-bricks": "^1.24.0",
73+
"@next-core/build-next-bricks": "^1.25.1",
7274
"@next-core/test-next": "^2.0.1",
7375
"copy-webpack-plugin": "^12.0.2"
7476
},

bricks/ai-portal/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"dist-types",
1616
"docs"
1717
],
18+
"types": "dist-types/jsx.d.ts",
1819
"exports": {
1920
"./package.json": "./package.json",
2021
"./dist/bricks.json": "./dist/bricks.json",
2122
"./dist/manifest.json": "./dist/manifest.json",
23+
".": "./dist-types/jsx.d.ts",
2224
"./*": {
2325
"types": "./dist-types/*/index.d.ts"
2426
}
@@ -39,16 +41,16 @@
3941
"@easyops-cn/brick-next-pipes": "^0.7.3",
4042
"@next-api-sdk/cmdb-sdk": "^1.1.1",
4143
"@next-api-sdk/llm-sdk": "^1.6.0",
42-
"@next-core/easyops-runtime": "^0.15.19",
44+
"@next-core/easyops-runtime": "^0.15.23",
4345
"@next-core/element": "^1.2.19",
4446
"@next-core/http": "^1.2.14",
45-
"@next-core/i18n": "^1.0.86",
47+
"@next-core/i18n": "^1.0.87",
4648
"@next-core/react-element": "^1.0.38",
47-
"@next-core/react-runtime": "^1.7.39",
48-
"@next-core/runtime": "^1.71.0",
49+
"@next-core/react-runtime": "^1.7.43",
50+
"@next-core/runtime": "^1.71.4",
4951
"@next-core/theme": "^1.6.1",
50-
"@next-core/types": "^1.18.0",
51-
"@next-core/utils": "^1.8.7",
52+
"@next-core/types": "^1.18.1",
53+
"@next-core/utils": "^1.8.8",
5254
"@next-shared/datetime": "^0.4.3",
5355
"@next-shared/diagram": "^0.1.1",
5456
"@next-shared/form": "^0.10.0",
@@ -69,7 +71,7 @@
6971
"resize-observer-polyfill": "^1.5.1"
7072
},
7173
"devDependencies": {
72-
"@next-core/build-next-bricks": "^1.24.0",
74+
"@next-core/build-next-bricks": "^1.25.1",
7375
"@next-core/test-next": "^2.0.1"
7476
},
7577
"peerDependencies": {

bricks/ai-portal/src/elevo-sidebar/ChatHistory.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export interface GroupedHistory {
5252
}
5353

5454
export interface ActionClickDetail {
55-
action: SimpleActionType;
55+
action: SimpleActionType & {
56+
project?: Project;
57+
};
5658
item: HistoryItem;
5759
project?: Project;
5860
}
@@ -467,7 +469,12 @@ export function LowLevelChatHistory(
467469
className="actions"
468470
actions={mergedHistoryActions}
469471
onActionClick={(e) => {
470-
onActionClick({ action: e.detail, item });
472+
onActionClick({
473+
action: e.detail,
474+
item,
475+
project: (e.detail as { project?: Project })
476+
.project,
477+
});
471478
}}
472479
onVisibleChange={(e) => {
473480
setActionsVisible(

bricks/ai-portal/src/elevo-sidebar/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export interface SidebarLink {
7070
activeIncludes?: string[];
7171
}
7272

73+
export type { ActionClickDetail, Project, ProjectActionClickDetail };
74+
7375
const ElevoSidebarComponent = forwardRef(LegacyElevoSidebarComponent);
7476

7577
interface ElevoSidebarRef extends ChatHistoryRef {

bricks/ai-portal/src/jsx.ts

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
import type { DetailedHTMLProps, HTMLAttributes } from "react";
2+
import type { ActionButtons, ActionButtonsProps } from "./action-buttons";
3+
import type {
4+
ActivityTimeline,
5+
ActivityTimelineProps,
6+
} from "./activity-timeline";
7+
import type { AIAgents, AIAgentsProps } from "./ai-agents";
8+
import type { AIEmployees, AIEmployeesProps } from "./ai-employees";
9+
import type { BlankState, BlankStateProps } from "./blank-state";
10+
import type { ChatBox, ChatBoxProps } from "./chat-box";
11+
import type { ChatInput, ChatInputProps } from "./chat-input";
12+
import type { ChatStream, ChatStreamProps } from "./chat-stream";
13+
import type { CruiseCanvas, CruiseCanvasProps } from "./cruise-canvas";
14+
import type { DropdownSelect, DropdownSelectProps } from "./dropdown-select";
15+
import type { ElevoCard, ElevoCardProps } from "./elevo-card";
16+
import type { ElevoLogo } from "./elevo-logo";
17+
import type {
18+
ActionClickDetail,
19+
ElevoSidebar,
20+
ElevoSidebarProps,
21+
ProjectActionClickDetail,
22+
} from "./elevo-sidebar";
23+
import type { FlowTabs, FlowTabsProps } from "./flow-tabs";
24+
import type { GanttChart, GanttChartProps } from "./gantt-chart";
25+
import type { GoalCardList, GoalCardListProps } from "./goal-card-list";
26+
import type { HomeContainer } from "./home-container";
27+
import type { IconButton, IconButtonProps } from "./icon-button";
28+
import type { McpTools, McpToolsProps } from "./mcp-tools";
29+
import type {
30+
NoticeDropdown,
31+
NoticeDropdownProps,
32+
NoticeItem,
33+
} from "./notice-dropdown";
34+
import type { NoticeList, NoticeListProps } from "./notice-list";
35+
import type { PageContainer, PageContainerProps } from "./page-container";
36+
import type {
37+
PreviewContainer,
38+
PreviewContainerProps,
39+
} from "./preview-container";
40+
import type {
41+
ProjectConversations,
42+
ProjectConversationsProps,
43+
} from "./project-conversations";
44+
import type {
45+
ProjectKnowledges,
46+
ProjectKnowledgesProps,
47+
} from "./project-knowledges";
48+
import type { RunningFlow, RunningFlowProps } from "./running-flow";
49+
import type { ShowCase, ShowCaseProps } from "./show-case";
50+
import type { ShowCases, ShowCasesProps } from "./show-cases";
51+
import type { StageFlow, StageFlowProps } from "./stage-flow";
52+
import type {
53+
StatWithMiniChart,
54+
StatWithMiniChartProps,
55+
} from "./stat-with-mini-chart";
56+
import type { StickyContainer, StickyContainerProps } from "./sticky-container";
57+
import type { TabList, TabListProps } from "./tab-list";
58+
59+
declare global {
60+
// eslint-disable-next-line @typescript-eslint/no-namespace
61+
namespace JSX {
62+
interface IntrinsicElements {
63+
"ai-portal--action-buttons": DetailedHTMLProps<
64+
HTMLAttributes<ActionButtons>,
65+
ActionButtons
66+
> &
67+
ActionButtonsProps;
68+
69+
"ai-portal--activity-timeline": DetailedHTMLProps<
70+
HTMLAttributes<ActivityTimeline>,
71+
ActivityTimeline
72+
> &
73+
ActivityTimelineProps;
74+
75+
"ai-portal--ai-agents": DetailedHTMLProps<
76+
HTMLAttributes<AIAgents>,
77+
AIAgents
78+
> &
79+
AIAgentsProps;
80+
81+
"ai-portal--ai-employees": DetailedHTMLProps<
82+
HTMLAttributes<AIEmployees>,
83+
AIEmployees
84+
> &
85+
AIEmployeesProps;
86+
87+
"ai-portal--blank-state": DetailedHTMLProps<
88+
HTMLAttributes<BlankState>,
89+
BlankState
90+
> &
91+
BlankStateProps;
92+
93+
"ai-portal--chat-box": DetailedHTMLProps<
94+
HTMLAttributes<ChatBox>,
95+
ChatBox
96+
> &
97+
ChatBoxProps;
98+
99+
"ai-portal--chat-input": DetailedHTMLProps<
100+
HTMLAttributes<ChatInput>,
101+
ChatInput
102+
> &
103+
ChatInputProps;
104+
105+
"ai-portal--chat-stream": DetailedHTMLProps<
106+
HTMLAttributes<ChatStream>,
107+
ChatStream
108+
> &
109+
ChatStreamProps;
110+
111+
"ai-portal--cruise-canvas": DetailedHTMLProps<
112+
HTMLAttributes<CruiseCanvas>,
113+
CruiseCanvas
114+
> &
115+
CruiseCanvasProps;
116+
117+
"ai-portal--dropdown-select": DetailedHTMLProps<
118+
HTMLAttributes<DropdownSelect>,
119+
DropdownSelect
120+
> &
121+
DropdownSelectProps;
122+
123+
"ai-portal--elevo-card": DetailedHTMLProps<
124+
HTMLAttributes<ElevoCard>,
125+
ElevoCard
126+
> &
127+
ElevoCardProps;
128+
129+
"ai-portal--elevo-logo": DetailedHTMLProps<
130+
HTMLAttributes<ElevoLogo>,
131+
ElevoLogo
132+
>;
133+
134+
"ai-portal--elevo-sidebar": DetailedHTMLProps<
135+
HTMLAttributes<ElevoSidebar>,
136+
ElevoSidebar
137+
> &
138+
ElevoSidebarProps & {
139+
onActionClick?: (event: CustomEvent<ActionClickDetail>) => void;
140+
onProjectActionClick?: (
141+
event: CustomEvent<ProjectActionClickDetail>
142+
) => void;
143+
};
144+
145+
"ai-portal--flow-tabs": DetailedHTMLProps<
146+
HTMLAttributes<FlowTabs>,
147+
FlowTabs
148+
> &
149+
FlowTabsProps;
150+
151+
"ai-portal--gantt-chart": DetailedHTMLProps<
152+
HTMLAttributes<GanttChart>,
153+
GanttChart
154+
> &
155+
GanttChartProps;
156+
157+
"ai-portal--goal-card-list": DetailedHTMLProps<
158+
HTMLAttributes<GoalCardList>,
159+
GoalCardList
160+
> &
161+
GoalCardListProps;
162+
163+
"ai-portal--home-container": DetailedHTMLProps<
164+
HTMLAttributes<HomeContainer>,
165+
HomeContainer
166+
>;
167+
168+
"ai-portal--icon-button": DetailedHTMLProps<
169+
HTMLAttributes<IconButton>,
170+
IconButton
171+
> &
172+
IconButtonProps;
173+
174+
"ai-portal--mcp-tools": DetailedHTMLProps<
175+
HTMLAttributes<McpTools>,
176+
McpTools
177+
> &
178+
McpToolsProps;
179+
180+
"ai-portal--notice-dropdown": DetailedHTMLProps<
181+
HTMLAttributes<NoticeDropdown>,
182+
NoticeDropdown
183+
> &
184+
NoticeDropdownProps & {
185+
onMarkAllRead?: (event: CustomEvent<void>) => void;
186+
onNoticeClick?: (event: CustomEvent<NoticeItem>) => void;
187+
};
188+
189+
"ai-portal--notice-list": DetailedHTMLProps<
190+
HTMLAttributes<NoticeList>,
191+
NoticeList
192+
> &
193+
NoticeListProps;
194+
195+
"ai-portal--page-container": DetailedHTMLProps<
196+
HTMLAttributes<PageContainer>,
197+
PageContainer
198+
> &
199+
PageContainerProps;
200+
201+
"ai-portal--preview-container": DetailedHTMLProps<
202+
HTMLAttributes<PreviewContainer>,
203+
PreviewContainer
204+
> &
205+
PreviewContainerProps;
206+
207+
"ai-portal--project-conversations": DetailedHTMLProps<
208+
HTMLAttributes<ProjectConversations>,
209+
ProjectConversations
210+
> &
211+
ProjectConversationsProps;
212+
213+
"ai-portal--project-knowledges": DetailedHTMLProps<
214+
HTMLAttributes<ProjectKnowledges>,
215+
ProjectKnowledges
216+
> &
217+
ProjectKnowledgesProps;
218+
219+
"ai-portal--running-flow": DetailedHTMLProps<
220+
HTMLAttributes<RunningFlow>,
221+
RunningFlow
222+
> &
223+
RunningFlowProps;
224+
225+
"ai-portal--show-case": DetailedHTMLProps<
226+
HTMLAttributes<ShowCase>,
227+
ShowCase
228+
> &
229+
ShowCaseProps;
230+
231+
"ai-portal--show-cases": DetailedHTMLProps<
232+
HTMLAttributes<ShowCases>,
233+
ShowCases
234+
> &
235+
ShowCasesProps;
236+
237+
"ai-portal--stage-flow": DetailedHTMLProps<
238+
HTMLAttributes<StageFlow>,
239+
StageFlow
240+
> &
241+
StageFlowProps;
242+
243+
"ai-portal--stat-with-mini-chart": DetailedHTMLProps<
244+
HTMLAttributes<StatWithMiniChart>,
245+
StatWithMiniChart
246+
> &
247+
StatWithMiniChartProps;
248+
249+
"ai-portal--sticky-container": DetailedHTMLProps<
250+
HTMLAttributes<StickyContainer>,
251+
StickyContainer
252+
> &
253+
StickyContainerProps;
254+
255+
"ai-portal--tab-list": DetailedHTMLProps<
256+
HTMLAttributes<TabList>,
257+
TabList
258+
> &
259+
TabListProps;
260+
}
261+
}
262+
}

bricks/ai-portal/src/shared/CreatedView/CreatedView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function traverseBricks(
144144
break;
145145
}
146146
if (Array.isArray(brick.children)) {
147-
traverseBricks(brick.children, callback);
147+
traverseBricks(brick.children as BrickConf[], callback);
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)