Skip to content

Commit 103f508

Browse files
authored
Merge pull request #461 from easyops-cn/steve/move-tsx
Steve/move-tsx
2 parents d052a18 + c8b03e5 commit 103f508

File tree

122 files changed

+79
-10404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+79
-10404
lines changed

bricks/ai-portal/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
"@next-shared/hooks": "^0.1.0",
5656
"@next-shared/markdown": "^0.7.3",
5757
"@next-shared/shiki": "^0.1.0",
58-
"@next-shared/tsx-converter": "^0.5.2",
59-
"@next-shared/tsx-parser": "^0.6.2",
58+
"@next-tsx/converter": "^0.0.4",
59+
"@next-tsx/core": "^0.0.5",
60+
"@next-tsx/parser": "^0.0.4",
6061
"classnames": "^2.3.2",
6162
"comlink": "^4.4.2",
6263
"d3-selection": "^3.0.0",

bricks/ai-portal/src/data-providers/call-tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { http } from "@next-core/http";
22
import { createProviderClass } from "@next-core/utils/general";
3-
import type { ToolInfo } from "@next-shared/tsx-parser";
3+
import type { ToolInfo } from "@next-tsx/parser";
44

55
export async function callTool(
66
tool: ToolInfo,

bricks/ai-portal/src/gantt-chart/styles.shadow.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ul {
156156
}
157157

158158
&.failed {
159-
--gantt-chart-bar-bg: rgba(240, 76, 37, 0.5);
159+
--gantt-chart-bar-bg: #ff754f;
160160
}
161161
}
162162

bricks/ai-portal/src/preview-container/index.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, test, expect, jest } from "@jest/globals";
22
import { act } from "react-dom/test-utils";
33
import type { EoPageTitle } from "@next-bricks/basic/page-title";
4-
import type { ModulePartOfComponent, ParsedApp } from "@next-shared/tsx-parser";
4+
import type { ModulePartOfComponent, ParsedApp } from "@next-tsx/parser";
55
import "./";
66
import type { PreviewContainer } from "./index.js";
77

@@ -24,7 +24,7 @@ jest.mock("../shared/workers/tsxParser.js", () => ({
2424
})
2525
),
2626
}));
27-
jest.mock("@next-shared/tsx-converter", () => ({
27+
jest.mock("@next-tsx/converter", () => ({
2828
convertView: jest.fn((parsedResult: ParsedApp) =>
2929
(
3030
(parsedResult.entry?.defaultExport as ModulePartOfComponent)

bricks/ai-portal/src/preview-container/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { ReactNextElement, wrapBrick } from "@next-core/react-element";
44
import "@next-core/theme";
55
import { initializeI18n } from "@next-core/i18n";
66
import { unstable_createRoot } from "@next-core/runtime";
7-
import type { ModulePartOfComponent, ParsedApp } from "@next-shared/tsx-parser";
8-
import { convertView, type ConvertResult } from "@next-shared/tsx-converter";
7+
import type { ModulePartOfComponent, ParsedApp } from "@next-tsx/parser";
8+
import { convertView, type ConvertResult } from "@next-tsx/converter";
99
import type {
1010
GeneralIcon,
1111
GeneralIconProps,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import React, { useContext, useEffect, useMemo, useRef, useState } from "react";
33
import { unstable_createRoot } from "@next-core/runtime";
44
import classNames from "classnames";
55
import { uniqueId } from "lodash";
6-
import { convertView } from "@next-shared/tsx-converter";
7-
import type { ModulePartOfComponent } from "@next-shared/tsx-parser";
6+
import { convertView } from "@next-tsx/converter";
7+
import type { ModulePartOfComponent } from "@next-tsx/parser";
88
import styles from "./CreatedView.module.css";
99
import sharedStyles from "../../cruise-canvas/shared.module.css";
1010
import type { Job, ParsedView } from "../../shared/interfaces";

bricks/ai-portal/src/shared/ExpandedView/ExpandedView.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.expanded-view {
22
position: fixed;
33
inset: 0;
4-
z-index: 2;
4+
z-index: 3;
55
background: rgba(247, 248, 250, 0.5);
66
backdrop-filter: blur(74px);
77
padding: 106px var(--page-padding-right) 40px var(--page-padding-left);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import React, {
99
import classNames from "classnames";
1010
import { getBasePath, unstable_createRoot } from "@next-core/runtime";
1111
import { uniqueId } from "lodash";
12-
import { convertView } from "@next-shared/tsx-converter";
12+
import { convertView } from "@next-tsx/converter";
1313
import type { GraphGeneratedView } from "../../cruise-canvas/interfaces";
1414
import styles from "./ExpandedView.module.css";
1515
import { WrappedIcon, WrappedIconButton } from "../../shared/bricks";
@@ -19,7 +19,7 @@ import { TaskContext } from "../TaskContext";
1919
import { useViewFeedbackDone } from "../useViewFeedbackDone";
2020
import { parseTemplate } from "../parseTemplate";
2121
import type { ParsedView } from "../interfaces";
22-
import type { ModulePartOfComponent } from "@next-shared/tsx-parser";
22+
import type { ModulePartOfComponent } from "@next-tsx/parser";
2323

2424
export interface ExpandedViewProps {
2525
views: GraphGeneratedView[];

bricks/ai-portal/src/shared/FilePreview/FilePreview.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.preview {
22
position: fixed;
33
inset: 0;
4-
z-index: 2;
4+
z-index: 3;
55
background: #fff;
66
display: flex;
77
flex-direction: column;

bricks/ai-portal/src/shared/FilePreview/ImagesPreview.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.preview {
22
position: fixed;
33
inset: 0;
4-
z-index: 2;
4+
z-index: 3;
55
background: #f9fafb;
66
display: flex;
77
flex-direction: column;

0 commit comments

Comments
 (0)