@weng-lab/genomebrowser-ui 0.1.1

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.
Files changed (37) hide show
  1. package/dist/TrackSelect/Data/modifiedHumanTracks.json.d.ts +37222 -0
  2. package/dist/TrackSelect/DataGrid/CustomToolbar.d.ts +12 -0
  3. package/dist/TrackSelect/DataGrid/DataGridWrapper.d.ts +2 -0
  4. package/dist/TrackSelect/DataGrid/columns.d.ts +4 -0
  5. package/dist/TrackSelect/DataGrid/dataGridHelpers.d.ts +30 -0
  6. package/dist/TrackSelect/TrackSelect.d.ts +5 -0
  7. package/dist/TrackSelect/TreeView/TreeViewWrapper.d.ts +2 -0
  8. package/dist/TrackSelect/TreeView/treeViewHelpers.d.ts +49 -0
  9. package/dist/TrackSelect/consts.d.ts +21 -0
  10. package/dist/TrackSelect/store.d.ts +4 -0
  11. package/dist/TrackSelect/types.d.ts +123 -0
  12. package/dist/genomebrowser-ui.es.js +2299 -0
  13. package/dist/genomebrowser-ui.es.js.map +1 -0
  14. package/dist/lib.d.ts +4 -0
  15. package/eslint.config.js +30 -0
  16. package/index.html +14 -0
  17. package/package.json +47 -0
  18. package/src/TrackSelect/Data/humanTracks.json +35711 -0
  19. package/src/TrackSelect/Data/human_chromhmm_biosamples_with_all_urls.json +35716 -0
  20. package/src/TrackSelect/Data/modifiedHumanTracks.json +37220 -0
  21. package/src/TrackSelect/DataGrid/CustomToolbar.tsx +160 -0
  22. package/src/TrackSelect/DataGrid/DataGridWrapper.tsx +119 -0
  23. package/src/TrackSelect/DataGrid/columns.tsx +134 -0
  24. package/src/TrackSelect/DataGrid/dataGridHelpers.tsx +114 -0
  25. package/src/TrackSelect/TrackSelect.tsx +258 -0
  26. package/src/TrackSelect/TreeView/TreeViewWrapper.tsx +115 -0
  27. package/src/TrackSelect/TreeView/treeViewHelpers.tsx +428 -0
  28. package/src/TrackSelect/bug.md +4 -0
  29. package/src/TrackSelect/consts.ts +92 -0
  30. package/src/TrackSelect/store.ts +26 -0
  31. package/src/TrackSelect/types.ts +139 -0
  32. package/src/lib.ts +8 -0
  33. package/test/main.tsx +13 -0
  34. package/tsconfig.app.json +25 -0
  35. package/tsconfig.json +4 -0
  36. package/tsconfig.node.json +25 -0
  37. package/vite.config.ts +66 -0
package/test/main.tsx ADDED
@@ -0,0 +1,13 @@
1
+ import TrackSelect from "../src/TrackSelect/TrackSelect"
2
+ import { createRoot } from "react-dom/client";
3
+
4
+ function Main() {
5
+ return (
6
+ <TrackSelect>
7
+ </TrackSelect>
8
+ )
9
+ }
10
+
11
+ createRoot(document.getElementById("root")!).render(
12
+ <Main/>
13
+ );
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.cache/genomebrowser/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2020",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
11
+ "moduleResolution": "bundler",
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+ "noEmit": true,
16
+ "jsx": "react-jsx",
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true
23
+ },
24
+ "include": ["src"]
25
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "files": [],
3
+ "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
4
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "lib": ["ES2023"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "isolatedModules": true,
13
+ "moduleDetection": "force",
14
+ "allowSyntheticDefaultImports": true,
15
+ "noEmit": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
23
+ },
24
+ "include": ["vite.config.ts"]
25
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,66 @@
1
+ import react from "@vitejs/plugin-react";
2
+ import path, { dirname } from "path";
3
+ import { fileURLToPath } from "url";
4
+ import { defineConfig } from "vite";
5
+ import dts from "vite-plugin-dts";
6
+
7
+ const __dirname = dirname(fileURLToPath(import.meta.url));
8
+
9
+ // https://vite.dev/config/
10
+ export default defineConfig({
11
+ plugins: [
12
+ react(),
13
+ dts({
14
+ exclude: ["**/*.stories.tsx", "./test"],
15
+ tsconfigPath: "./tsconfig.app.json",
16
+ }),
17
+ ],
18
+ define: {
19
+ global: "globalThis",
20
+ },
21
+ resolve: {
22
+ alias: {
23
+ buffer: "buffer",
24
+ },
25
+ },
26
+ optimizeDeps: {
27
+ esbuildOptions: {
28
+ define: {
29
+ global: "globalThis",
30
+ },
31
+ },
32
+ },
33
+ build: {
34
+ lib: {
35
+ entry: path.resolve(__dirname, "src/lib.ts"),
36
+ name: "genomebrowser-ui",
37
+ fileName: (format) => `genomebrowser-ui.${format}.js`,
38
+ formats: ["es"],
39
+ },
40
+ rollupOptions: {
41
+ external: [
42
+ "react",
43
+ "react-dom",
44
+ "@weng-lab/genomebrowser",
45
+ "@mui/material",
46
+ "@emotion/react",
47
+ "@emotion/styled",
48
+ /^@mui\/.*/,
49
+ /^@emotion\/.*/,
50
+ ],
51
+ output: {
52
+ globals: {
53
+ react: "React",
54
+ "react-dom": "ReactDOM",
55
+ "@weng-lab/genomebrowser": "GenomeBrowser",
56
+ "@mui/material": "MaterialUI",
57
+ "@emotion/react": "EmotionReact",
58
+ "@emotion/styled": "EmotionStyled",
59
+ },
60
+ },
61
+ },
62
+ sourcemap: true,
63
+ cssCodeSplit: true,
64
+ cssMinify: true,
65
+ },
66
+ });