@rsdoctor/components 0.3.10-beta.0 → 0.3.10
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.
|
@@ -53,7 +53,7 @@ const tagStyle = {
|
|
|
53
53
|
const ModuleCodeViewer = ({
|
|
54
54
|
data
|
|
55
55
|
}) => {
|
|
56
|
-
const [tab, setTab] = useState("
|
|
56
|
+
const [tab, setTab] = useState("");
|
|
57
57
|
const { t } = useI18n();
|
|
58
58
|
const TAB_LAB_MAP = {
|
|
59
59
|
source: "Source Code",
|
|
@@ -93,6 +93,7 @@ const ModuleCodeViewer = ({
|
|
|
93
93
|
tab: TAB_LAB_MAP[e.tab],
|
|
94
94
|
key: e.tab
|
|
95
95
|
})),
|
|
96
|
+
defaultActiveTabKey: source["parsedSource"] ? "parsedSource" : "source",
|
|
96
97
|
onTabChange: (v) => setTab(v),
|
|
97
98
|
tabBarExtraContent: /* @__PURE__ */ jsx(
|
|
98
99
|
Popover,
|
|
@@ -142,7 +143,7 @@ const ModuleCodeViewer = ({
|
|
|
142
143
|
theme: "vs-dark",
|
|
143
144
|
language: getOriginalLanguage(path),
|
|
144
145
|
height: window.innerHeight / 1.5,
|
|
145
|
-
value: source[tab],
|
|
146
|
+
value: tab ? source[tab] : source["parsedSource"] ? source["parsedSource"] : source["source"],
|
|
146
147
|
options: {
|
|
147
148
|
readOnly: true,
|
|
148
149
|
domReadOnly: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/components",
|
|
3
|
-
"version": "0.3.10
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"dist/"
|
|
45
45
|
],
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@ant-design/icons": "4.8.
|
|
47
|
+
"@ant-design/icons": "4.8.3",
|
|
48
48
|
"@monaco-editor/react": "4.6.0",
|
|
49
|
-
"@types/lodash-es": "4.17.
|
|
49
|
+
"@types/lodash-es": "4.17.12",
|
|
50
50
|
"@types/node": "^16",
|
|
51
|
-
"@types/path-browserify": "1.0.
|
|
51
|
+
"@types/path-browserify": "1.0.2",
|
|
52
52
|
"@types/react": "^18",
|
|
53
53
|
"@types/react-highlight-words": "^0.16.7",
|
|
54
|
-
"@types/url-parse": "1.4.
|
|
54
|
+
"@types/url-parse": "1.4.11",
|
|
55
55
|
"ansi-to-react": "6.1.6",
|
|
56
56
|
"antd": "5.15.3",
|
|
57
57
|
"axios": "^1.7.2",
|
|
58
|
-
"dayjs": "1.11.
|
|
59
|
-
"echarts": "^5.5.
|
|
58
|
+
"dayjs": "1.11.12",
|
|
59
|
+
"echarts": "^5.5.1",
|
|
60
60
|
"echarts-for-react": "^3.0.2",
|
|
61
61
|
"i18next": "22.0.4",
|
|
62
62
|
"lodash-es": "4.17.21",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"terser": "^5.26.0",
|
|
76
76
|
"typescript": "^5.2.2",
|
|
77
77
|
"url-parse": "1.5.10",
|
|
78
|
-
"@rsdoctor/graph": "0.3.10
|
|
79
|
-
"@rsdoctor/types": "0.3.10
|
|
80
|
-
"@rsdoctor/utils": "0.3.10
|
|
78
|
+
"@rsdoctor/graph": "0.3.10",
|
|
79
|
+
"@rsdoctor/types": "0.3.10",
|
|
80
|
+
"@rsdoctor/utils": "0.3.10"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public",
|