@opensumi/ide-testing 2.26.8 → 2.26.9-next-1695201123.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.
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const TestingView: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const TestingView: () => React.JSX.Element;
3
3
  //# sourceMappingURL=testing.view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.view.d.ts","sourceRoot":"","sources":["../../../src/browser/components/testing.view.tsx"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW,mBAsBvB,CAAC"}
1
+ {"version":3,"file":"testing.view.d.ts","sourceRoot":"","sources":["../../../src/browser/components/testing.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,yBA2BvB,CAAC"}
@@ -9,9 +9,11 @@ const next_1 = require("@opensumi/ide-core-browser/lib/menu/next");
9
9
  const titlebar_view_1 = require("@opensumi/ide-main-layout/lib/browser/accordion/titlebar.view");
10
10
  const testing_explorer_tree_1 = require("./testing.explorer.tree");
11
11
  const testing_module_less_1 = tslib_1.__importDefault(require("./testing.module.less"));
12
+ const constants_1 = require("@opensumi/ide-core-browser/lib/layout/constants");
12
13
  const TestingView = () => {
13
14
  const menuService = (0, ide_core_browser_1.useInjectable)(next_1.AbstractContextMenuService);
14
15
  const viewContextKeyRegistry = (0, ide_core_browser_1.useInjectable)(ide_core_browser_1.ViewContextKeyRegistry);
16
+ const appConfig = (0, ide_core_browser_1.useInjectable)(ide_core_browser_1.AppConfig);
15
17
  const [menus, setMenus] = (0, react_1.useState)();
16
18
  (0, react_1.useEffect)(() => {
17
19
  const menu = menuService.createMenu({
@@ -20,8 +22,12 @@ const TestingView = () => {
20
22
  });
21
23
  setMenus(menu);
22
24
  }, []);
25
+ const PANEL_TITLEBAR_HEIGHT = react_1.default.useMemo(() => {
26
+ var _a;
27
+ return ((_a = appConfig.layoutViewSize) === null || _a === void 0 ? void 0 : _a.PANEL_TITLEBAR_HEIGHT) || constants_1.LAYOUT_VIEW_SIZE.PANEL_TITLEBAR_HEIGHT;
28
+ }, [appConfig]);
23
29
  return (react_1.default.createElement("div", { className: testing_module_less_1.default.testing_container },
24
- react_1.default.createElement(titlebar_view_1.TitleBar, { title: (0, ide_core_browser_1.localize)('test.title'), menubar: menus ? react_1.default.createElement(actions_1.InlineMenuBar, { menus: menus }) : null }),
30
+ react_1.default.createElement(titlebar_view_1.TitleBar, { title: (0, ide_core_browser_1.localize)('test.title'), height: PANEL_TITLEBAR_HEIGHT, menubar: menus ? react_1.default.createElement(actions_1.InlineMenuBar, { menus: menus }) : null }),
25
31
  react_1.default.createElement(testing_explorer_tree_1.TestingExplorerTree, null)));
26
32
  };
27
33
  exports.TestingView = TestingView;
@@ -1 +1 @@
1
- {"version":3,"file":"testing.view.js","sourceRoot":"","sources":["../../../src/browser/components/testing.view.tsx"],"names":[],"mappings":";;;;AAAA,uDAAmD;AAEnD,iEAA6F;AAC7F,+EAAkF;AAClF,mEAA4G;AAC5G,iGAAyF;AAIzF,mEAA8D;AAC9D,wFAA2C;AAEpC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,WAAW,GAAG,IAAA,gCAAa,EAA6B,iCAA0B,CAAC,CAAC;IAC1F,MAAM,sBAAsB,GAAG,IAAA,gCAAa,EAAyB,yCAAsB,CAAC,CAAC;IAE7F,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAgB,CAAC;IAEnD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC;YAClC,EAAE,EAAE,aAAM,CAAC,SAAS;YACpB,iBAAiB,EAAE,sBAAsB,CAAC,oBAAoB,uDAAwB;SACvF,CAAC,CAAC;QACH,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC,EAAE,E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S,CAAC,cAAc,0CAAE,qBAAqB,KAAI,4BAAgB,CAAC,qBAAqB,CAAC;IACnG,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAEf,OAAO,CACL,uCAAK,SAAS,EAAE,6BAAM,CAAC,iBAAiB;QACtC,8BAAC,wBAAQ,IAAC,KAAK,EAAE,IAAA,2BAAQ,EAAC,YAAY,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,8BAAC,uBAAa,IAAC,KAAK,EAAE,KAAK,GAAkB,CAAC,CAAC,CAAC,IAAI,GAAI;QAGjJ,8BAAC,2CAAmB,OAAG,CACnB,CACP,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,WAAW,eA2BtB"}
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const TestMessageContainer: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const TestMessageContainer: () => React.JSX.Element;
3
3
  //# sourceMappingURL=test-message-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-message-container.d.ts","sourceRoot":"","sources":["../../../src/browser/outputPeek/test-message-container.tsx"],"names":[],"mappings":";AA+IA,eAAO,MAAM,oBAAoB,mBAuChC,CAAC"}
1
+ {"version":3,"file":"test-message-container.d.ts","sourceRoot":"","sources":["../../../src/browser/outputPeek/test-message-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA+I3D,eAAO,MAAM,oBAAoB,yBAuChC,CAAC"}
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const TestTreeContainer: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const TestTreeContainer: () => React.JSX.Element;
3
3
  //# sourceMappingURL=test-tree-container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-tree-container.d.ts","sourceRoot":"","sources":["../../../src/browser/outputPeek/test-tree-container.tsx"],"names":[],"mappings":";AAoCA,eAAO,MAAM,iBAAiB,mBAsI7B,CAAC"}
1
+ {"version":3,"file":"test-tree-container.d.ts","sourceRoot":"","sources":["../../../src/browser/outputPeek/test-tree-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoCnD,eAAO,MAAM,iBAAiB,yBAsI7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/ide-testing",
3
- "version": "2.26.8",
3
+ "version": "2.26.9-next-1695201123.0",
4
4
  "files": [
5
5
  "lib",
6
6
  "src"
@@ -15,18 +15,18 @@
15
15
  "url": "git@github.com:opensumi/core.git"
16
16
  },
17
17
  "dependencies": {
18
- "@opensumi/ide-core-common": "2.26.8"
18
+ "@opensumi/ide-core-common": "2.26.9-next-1695201123.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@opensumi/ide-components": "2.26.8",
22
- "@opensumi/ide-core-browser": "2.26.8",
21
+ "@opensumi/ide-components": "2.26.9-next-1695201123.0",
22
+ "@opensumi/ide-core-browser": "2.26.9-next-1695201123.0",
23
23
  "@opensumi/ide-dev-tool": "1.3.1",
24
- "@opensumi/ide-editor": "2.26.8",
25
- "@opensumi/ide-file-service": "2.26.8",
26
- "@opensumi/ide-main-layout": "2.26.8",
27
- "@opensumi/ide-markdown": "2.26.8",
28
- "@opensumi/ide-monaco": "2.26.8",
29
- "@opensumi/ide-monaco-enhance": "2.26.8"
24
+ "@opensumi/ide-editor": "2.26.9-next-1695201123.0",
25
+ "@opensumi/ide-file-service": "2.26.9-next-1695201123.0",
26
+ "@opensumi/ide-main-layout": "2.26.9-next-1695201123.0",
27
+ "@opensumi/ide-markdown": "2.26.9-next-1695201123.0",
28
+ "@opensumi/ide-monaco": "2.26.9-next-1695201123.0",
29
+ "@opensumi/ide-monaco-enhance": "2.26.9-next-1695201123.0"
30
30
  },
31
- "gitHead": "7e0f1216001ad6672d702ed0cf99949f4c9aa581"
31
+ "gitHead": "c86a97bbe9d95982165f3d31f43d20a5e65eaa97"
32
32
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
 
3
- import { localize, useInjectable, ViewContextKeyRegistry } from '@opensumi/ide-core-browser';
3
+ import { AppConfig, localize, useInjectable, ViewContextKeyRegistry } from '@opensumi/ide-core-browser';
4
4
  import { InlineMenuBar } from '@opensumi/ide-core-browser/lib/components/actions';
5
5
  import { AbstractContextMenuService, IContextMenu, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
6
6
  import { TitleBar } from '@opensumi/ide-main-layout/lib/browser/accordion/titlebar.view';
@@ -9,10 +9,12 @@ import { Testing } from '../../common/constants';
9
9
 
10
10
  import { TestingExplorerTree } from './testing.explorer.tree';
11
11
  import styles from './testing.module.less';
12
+ import { LAYOUT_VIEW_SIZE } from '@opensumi/ide-core-browser/lib/layout/constants';
12
13
 
13
14
  export const TestingView = () => {
14
15
  const menuService = useInjectable<AbstractContextMenuService>(AbstractContextMenuService);
15
16
  const viewContextKeyRegistry = useInjectable<ViewContextKeyRegistry>(ViewContextKeyRegistry);
17
+ const appConfig = useInjectable<AppConfig>(AppConfig);
16
18
 
17
19
  const [menus, setMenus] = useState<IContextMenu>();
18
20
 
@@ -24,9 +26,13 @@ export const TestingView = () => {
24
26
  setMenus(menu);
25
27
  }, []);
26
28
 
29
+ const PANEL_TITLEBAR_HEIGHT = React.useMemo(() => {
30
+ return appConfig.layoutViewSize?.PANEL_TITLEBAR_HEIGHT || LAYOUT_VIEW_SIZE.PANEL_TITLEBAR_HEIGHT;
31
+ }, [appConfig])
32
+
27
33
  return (
28
34
  <div className={styles.testing_container}>
29
- <TitleBar title={localize('test.title')} menubar={menus ? <InlineMenuBar menus={menus}></InlineMenuBar> : null} />
35
+ <TitleBar title={localize('test.title')} height={PANEL_TITLEBAR_HEIGHT} menubar={menus ? <InlineMenuBar menus={menus}></InlineMenuBar> : null} />
30
36
  {/* 筛选器暂时先不搞 */}
31
37
  {/* <Input placeholder={'Filter (e.g. text, !exclude, @tag)'} addonAfter={<Icon icon='filter' />} /> */}
32
38
  <TestingExplorerTree />