react-cheminfo 0.14.0 → 0.16.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.
- package/README.md +175 -21
- package/lib/about/core/about.d.ts +13 -7
- package/lib/about/core/about.d.ts.map +1 -1
- package/lib/about/core/about.js +4 -2
- package/lib/about/core/about.js.map +1 -1
- package/lib/about/ui/AboutBuild.d.ts +20 -0
- package/lib/about/ui/AboutBuild.d.ts.map +1 -0
- package/lib/about/ui/AboutBuild.js +38 -0
- package/lib/about/ui/AboutBuild.js.map +1 -0
- package/lib/about/ui/AboutPage.d.ts +7 -0
- package/lib/about/ui/AboutPage.d.ts.map +1 -1
- package/lib/about/ui/AboutPage.js +5 -2
- package/lib/about/ui/AboutPage.js.map +1 -1
- package/lib/about/ui/index.d.ts +2 -0
- package/lib/about/ui/index.d.ts.map +1 -1
- package/lib/about/ui/index.js +1 -0
- package/lib/about/ui/index.js.map +1 -1
- package/lib/build/core/buildInfo.d.ts +39 -0
- package/lib/build/core/buildInfo.d.ts.map +1 -0
- package/lib/build/core/buildInfo.js +20 -0
- package/lib/build/core/buildInfo.js.map +1 -0
- package/lib/build/core/current.d.ts +12 -0
- package/lib/build/core/current.d.ts.map +1 -0
- package/lib/build/core/current.js +11 -0
- package/lib/build/core/current.js.map +1 -0
- package/lib/build/core/index.d.ts +3 -0
- package/lib/build/core/index.d.ts.map +1 -0
- package/lib/build/core/index.js +2 -0
- package/lib/build/core/index.js.map +1 -0
- package/lib/build/vite/buildInfo.d.ts +57 -0
- package/lib/build/vite/buildInfo.d.ts.map +1 -0
- package/lib/build/vite/buildInfo.js +151 -0
- package/lib/build/vite/buildInfo.js.map +1 -0
- package/lib/build/vite/gitHead.d.ts +29 -0
- package/lib/build/vite/gitHead.d.ts.map +1 -0
- package/lib/build/vite/gitHead.js +102 -0
- package/lib/build/vite/gitHead.js.map +1 -0
- package/lib/build/vite/index.d.ts +4 -0
- package/lib/build/vite/index.d.ts.map +1 -0
- package/lib/build/vite/index.js +3 -0
- package/lib/build/vite/index.js.map +1 -0
- package/lib/build-info.d.ts +3 -0
- package/lib/build-info.d.ts.map +1 -0
- package/lib/build-info.js +2 -0
- package/lib/build-info.js.map +1 -0
- package/lib/core.d.ts +2 -0
- package/lib/core.d.ts.map +1 -1
- package/lib/core.js +2 -0
- package/lib/core.js.map +1 -1
- package/lib/credits/core/credits.d.ts +35 -0
- package/lib/credits/core/credits.d.ts.map +1 -1
- package/lib/credits/core/credits.js +41 -0
- package/lib/credits/core/credits.js.map +1 -1
- package/lib/ecosystem/core/sites.d.ts.map +1 -1
- package/lib/ecosystem/core/sites.js +40 -0
- package/lib/ecosystem/core/sites.js.map +1 -1
- package/lib/ecosystem/core/types.d.ts +1 -1
- package/lib/ecosystem/core/types.d.ts.map +1 -1
- package/lib/ecosystem/ui/Wordmark.d.ts +14 -3
- package/lib/ecosystem/ui/Wordmark.d.ts.map +1 -1
- package/lib/ecosystem/ui/Wordmark.js +8 -4
- package/lib/ecosystem/ui/Wordmark.js.map +1 -1
- package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
- package/lib/ecosystem/ui/glyphs.js +11 -0
- package/lib/ecosystem/ui/glyphs.js.map +1 -1
- package/lib/parallel/core/index.d.ts +27 -0
- package/lib/parallel/core/index.d.ts.map +1 -0
- package/lib/parallel/core/index.js +20 -0
- package/lib/parallel/core/index.js.map +1 -0
- package/lib/parallel/core/parallelAxes.d.ts +103 -0
- package/lib/parallel/core/parallelAxes.d.ts.map +1 -0
- package/lib/parallel/core/parallelAxes.js +146 -0
- package/lib/parallel/core/parallelAxes.js.map +1 -0
- package/lib/parallel/core/parallelBrush.d.ts +79 -0
- package/lib/parallel/core/parallelBrush.d.ts.map +1 -0
- package/lib/parallel/core/parallelBrush.js +99 -0
- package/lib/parallel/core/parallelBrush.js.map +1 -0
- package/lib/parallel/core/parallelExtent.d.ts +28 -0
- package/lib/parallel/core/parallelExtent.d.ts.map +1 -0
- package/lib/parallel/core/parallelExtent.js +47 -0
- package/lib/parallel/core/parallelExtent.js.map +1 -0
- package/lib/parallel/core/parallelFilter.d.ts +36 -0
- package/lib/parallel/core/parallelFilter.d.ts.map +1 -0
- package/lib/parallel/core/parallelFilter.js +74 -0
- package/lib/parallel/core/parallelFilter.js.map +1 -0
- package/lib/parallel/core/parallelHit.d.ts +47 -0
- package/lib/parallel/core/parallelHit.d.ts.map +1 -0
- package/lib/parallel/core/parallelHit.js +81 -0
- package/lib/parallel/core/parallelHit.js.map +1 -0
- package/lib/parallel/core/parallelPaint.d.ts +104 -0
- package/lib/parallel/core/parallelPaint.d.ts.map +1 -0
- package/lib/parallel/core/parallelPaint.js +160 -0
- package/lib/parallel/core/parallelPaint.js.map +1 -0
- package/lib/parallel/core/parallelPalette.d.ts +31 -0
- package/lib/parallel/core/parallelPalette.d.ts.map +1 -0
- package/lib/parallel/core/parallelPalette.js +68 -0
- package/lib/parallel/core/parallelPalette.js.map +1 -0
- package/lib/parallel/core/parallelTicks.d.ts +34 -0
- package/lib/parallel/core/parallelTicks.d.ts.map +1 -0
- package/lib/parallel/core/parallelTicks.js +116 -0
- package/lib/parallel/core/parallelTicks.js.map +1 -0
- package/lib/parallel/core/parallelTypes.d.ts +129 -0
- package/lib/parallel/core/parallelTypes.d.ts.map +1 -0
- package/lib/parallel/core/parallelTypes.js +29 -0
- package/lib/parallel/core/parallelTypes.js.map +1 -0
- package/lib/parallel/ui/ParallelAxesLayer.d.ts +28 -0
- package/lib/parallel/ui/ParallelAxesLayer.d.ts.map +1 -0
- package/lib/parallel/ui/ParallelAxesLayer.js +29 -0
- package/lib/parallel/ui/ParallelAxesLayer.js.map +1 -0
- package/lib/parallel/ui/ParallelCoordinates.d.ts +21 -0
- package/lib/parallel/ui/ParallelCoordinates.d.ts.map +1 -0
- package/lib/parallel/ui/ParallelCoordinates.js +109 -0
- package/lib/parallel/ui/ParallelCoordinates.js.map +1 -0
- package/lib/parallel/ui/ParallelLabels.d.ts +26 -0
- package/lib/parallel/ui/ParallelLabels.d.ts.map +1 -0
- package/lib/parallel/ui/ParallelLabels.js +25 -0
- package/lib/parallel/ui/ParallelLabels.js.map +1 -0
- package/lib/parallel/ui/ParallelTooltip.d.ts +26 -0
- package/lib/parallel/ui/ParallelTooltip.d.ts.map +1 -0
- package/lib/parallel/ui/ParallelTooltip.js +30 -0
- package/lib/parallel/ui/ParallelTooltip.js.map +1 -0
- package/lib/parallel/ui/index.d.ts +25 -0
- package/lib/parallel/ui/index.d.ts.map +1 -0
- package/lib/parallel/ui/index.js +18 -0
- package/lib/parallel/ui/index.js.map +1 -0
- package/lib/parallel/ui/parallelCoordinatesProps.d.ts +185 -0
- package/lib/parallel/ui/parallelCoordinatesProps.d.ts.map +1 -0
- package/lib/parallel/ui/parallelCoordinatesProps.js +11 -0
- package/lib/parallel/ui/parallelCoordinatesProps.js.map +1 -0
- package/lib/parallel/ui/parallelGestureModel.d.ts +52 -0
- package/lib/parallel/ui/parallelGestureModel.d.ts.map +1 -0
- package/lib/parallel/ui/parallelGestureModel.js +80 -0
- package/lib/parallel/ui/parallelGestureModel.js.map +1 -0
- package/lib/parallel/ui/parallelInk.d.ts +76 -0
- package/lib/parallel/ui/parallelInk.d.ts.map +1 -0
- package/lib/parallel/ui/parallelInk.js +113 -0
- package/lib/parallel/ui/parallelInk.js.map +1 -0
- package/lib/parallel/ui/parallelPlotModel.d.ts +55 -0
- package/lib/parallel/ui/parallelPlotModel.d.ts.map +1 -0
- package/lib/parallel/ui/parallelPlotModel.js +113 -0
- package/lib/parallel/ui/parallelPlotModel.js.map +1 -0
- package/lib/parallel/ui/parallelStyles.d.ts +83 -0
- package/lib/parallel/ui/parallelStyles.d.ts.map +1 -0
- package/lib/parallel/ui/parallelStyles.js +131 -0
- package/lib/parallel/ui/parallelStyles.js.map +1 -0
- package/lib/parallel/ui/useParallelCanvas.d.ts +49 -0
- package/lib/parallel/ui/useParallelCanvas.d.ts.map +1 -0
- package/lib/parallel/ui/useParallelCanvas.js +58 -0
- package/lib/parallel/ui/useParallelCanvas.js.map +1 -0
- package/lib/parallel/ui/useParallelGesture.d.ts +67 -0
- package/lib/parallel/ui/useParallelGesture.d.ts.map +1 -0
- package/lib/parallel/ui/useParallelGesture.js +139 -0
- package/lib/parallel/ui/useParallelGesture.js.map +1 -0
- package/lib/structure/ui/useToolbarFloor.d.ts.map +1 -1
- package/lib/structure/ui/useToolbarFloor.js +29 -22
- package/lib/structure/ui/useToolbarFloor.js.map +1 -1
- package/lib/ui.d.ts +1 -0
- package/lib/ui.d.ts.map +1 -1
- package/lib/ui.js +1 -0
- package/lib/ui.js.map +1 -1
- package/lib/vite.d.ts +1 -0
- package/lib/vite.d.ts.map +1 -1
- package/lib/vite.js +1 -0
- package/lib/vite.js.map +1 -1
- package/package.json +2 -1
- package/src/about/core/about.ts +18 -9
- package/src/about/ui/AboutBuild.tsx +83 -0
- package/src/about/ui/AboutPage.tsx +15 -7
- package/src/about/ui/index.ts +2 -0
- package/src/build/core/buildInfo.ts +48 -0
- package/src/build/core/current.ts +12 -0
- package/src/build/core/index.ts +2 -0
- package/src/build/vite/buildInfo.ts +178 -0
- package/src/build/vite/gitHead.ts +114 -0
- package/src/build/vite/index.ts +8 -0
- package/src/build-info.ts +2 -0
- package/src/core.ts +2 -0
- package/src/credits/core/credits.ts +42 -0
- package/src/ecosystem/core/sites.ts +40 -0
- package/src/ecosystem/core/types.ts +4 -1
- package/src/ecosystem/ui/Wordmark.tsx +22 -7
- package/src/ecosystem/ui/glyphs.tsx +46 -0
- package/src/parallel/core/index.ts +80 -0
- package/src/parallel/core/parallelAxes.ts +207 -0
- package/src/parallel/core/parallelBrush.ts +145 -0
- package/src/parallel/core/parallelExtent.ts +56 -0
- package/src/parallel/core/parallelFilter.ts +94 -0
- package/src/parallel/core/parallelHit.ts +106 -0
- package/src/parallel/core/parallelPaint.ts +231 -0
- package/src/parallel/core/parallelPalette.ts +80 -0
- package/src/parallel/core/parallelTicks.ts +164 -0
- package/src/parallel/core/parallelTypes.ts +147 -0
- package/src/parallel/ui/ParallelAxesLayer.tsx +123 -0
- package/src/parallel/ui/ParallelCoordinates.tsx +233 -0
- package/src/parallel/ui/ParallelLabels.tsx +56 -0
- package/src/parallel/ui/ParallelTooltip.tsx +55 -0
- package/src/parallel/ui/index.ts +50 -0
- package/src/parallel/ui/parallelCoordinatesProps.ts +199 -0
- package/src/parallel/ui/parallelGestureModel.ts +109 -0
- package/src/parallel/ui/parallelInk.ts +182 -0
- package/src/parallel/ui/parallelPlotModel.ts +130 -0
- package/src/parallel/ui/parallelStyles.ts +146 -0
- package/src/parallel/ui/useParallelCanvas.ts +104 -0
- package/src/parallel/ui/useParallelGesture.ts +227 -0
- package/src/structure/ui/useToolbarFloor.ts +27 -22
- package/src/ui.ts +1 -0
- package/src/vite.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build/core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/build/core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tell a site which build of itself it is running.
|
|
3
|
+
*
|
|
4
|
+
* Every site of the family carries an About page, and the one thing that page
|
|
5
|
+
* cannot state from a hand-written record is the release it is serving. So the
|
|
6
|
+
* build states it: the plugin resolves the version, the day and the commit
|
|
7
|
+
* once, hands them to the page through a virtual module, and writes the same
|
|
8
|
+
* record to `build-info.json` so the whole family can be asked what it is
|
|
9
|
+
* running with one request each.
|
|
10
|
+
*/
|
|
11
|
+
import type { Plugin } from 'vite';
|
|
12
|
+
import type { BuildInfo } from '../core/buildInfo.ts';
|
|
13
|
+
/** The module a site imports its build record from. */
|
|
14
|
+
export declare const BUILD_INFO_MODULE = "react-cheminfo/build-info";
|
|
15
|
+
/** What the build writes about itself. */
|
|
16
|
+
export interface BuildInfoOptions {
|
|
17
|
+
/**
|
|
18
|
+
* Where the record is written in the build, so a deployment can be asked
|
|
19
|
+
* what it is running. `false` writes none.
|
|
20
|
+
* @default 'build-info.json'
|
|
21
|
+
*/
|
|
22
|
+
fileName?: string | false;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Resolve the build's own version, instant and commit, and publish them.
|
|
26
|
+
*
|
|
27
|
+
* The site reads them from the module the plugin fills in:
|
|
28
|
+
*
|
|
29
|
+
* ```ts
|
|
30
|
+
* import { BUILD_INFO } from 'react-cheminfo/build-info';
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* That module exists on disk and exports `undefined`, so a Playwright spec or
|
|
34
|
+
* a unit test importing the same About record in plain Node still resolves it —
|
|
35
|
+
* a virtual specifier does not, and the whole suite dies on the import.
|
|
36
|
+
* @param options - See {@link BuildInfoOptions}.
|
|
37
|
+
* @returns The Vite plugin.
|
|
38
|
+
*/
|
|
39
|
+
export declare function cheminfoBuildInfo(options?: BuildInfoOptions): Plugin;
|
|
40
|
+
/**
|
|
41
|
+
* What the build knows about itself, read off the checkout it runs in.
|
|
42
|
+
* @param root - The project Vite is building, which may sit under the
|
|
43
|
+
* repository root as `frontend` does.
|
|
44
|
+
* @returns The record, with whatever it could not resolve left out.
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveBuildInfo(root: string): BuildInfo;
|
|
47
|
+
/**
|
|
48
|
+
* The topmost directory of the run of ancestors that all hold a `package.json`.
|
|
49
|
+
*
|
|
50
|
+
* It is the repository root, and it is where the released version lives:
|
|
51
|
+
* release-please bumps the root `package.json`, while the `frontend` workspace
|
|
52
|
+
* of a site that has one keeps the `0.0.0` it was scaffolded with.
|
|
53
|
+
* @param start - Where to start climbing.
|
|
54
|
+
* @returns The highest such directory, or `start` when it holds none itself.
|
|
55
|
+
*/
|
|
56
|
+
export declare function findRepositoryRoot(start: string): string;
|
|
57
|
+
//# sourceMappingURL=buildInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildInfo.d.ts","sourceRoot":"","sources":["../../../src/build/vite/buildInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAItD,uDAAuD;AACvD,eAAO,MAAM,iBAAiB,8BAA8B,CAAC;AAE7D,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAkCxE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CASxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAcxD"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tell a site which build of itself it is running.
|
|
3
|
+
*
|
|
4
|
+
* Every site of the family carries an About page, and the one thing that page
|
|
5
|
+
* cannot state from a hand-written record is the release it is serving. So the
|
|
6
|
+
* build states it: the plugin resolves the version, the day and the commit
|
|
7
|
+
* once, hands them to the page through a virtual module, and writes the same
|
|
8
|
+
* record to `build-info.json` so the whole family can be asked what it is
|
|
9
|
+
* running with one request each.
|
|
10
|
+
*/
|
|
11
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
|
+
import { dirname, join, resolve } from 'node:path';
|
|
13
|
+
import { commitFromEnvironment, readGitHead } from "./gitHead.js";
|
|
14
|
+
/** The module a site imports its build record from. */
|
|
15
|
+
export const BUILD_INFO_MODULE = 'react-cheminfo/build-info';
|
|
16
|
+
/**
|
|
17
|
+
* Resolve the build's own version, instant and commit, and publish them.
|
|
18
|
+
*
|
|
19
|
+
* The site reads them from the module the plugin fills in:
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { BUILD_INFO } from 'react-cheminfo/build-info';
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* That module exists on disk and exports `undefined`, so a Playwright spec or
|
|
26
|
+
* a unit test importing the same About record in plain Node still resolves it —
|
|
27
|
+
* a virtual specifier does not, and the whole suite dies on the import.
|
|
28
|
+
* @param options - See {@link BuildInfoOptions}.
|
|
29
|
+
* @returns The Vite plugin.
|
|
30
|
+
*/
|
|
31
|
+
export function cheminfoBuildInfo(options = {}) {
|
|
32
|
+
const { fileName = 'build-info.json' } = options;
|
|
33
|
+
let root = process.cwd();
|
|
34
|
+
let outDir = 'dist';
|
|
35
|
+
let info = resolveBuildInfo(root);
|
|
36
|
+
return {
|
|
37
|
+
name: 'cheminfo-build-info',
|
|
38
|
+
// Vite's own resolver runs first and would hand back the module on disk,
|
|
39
|
+
// which exports `undefined`; and the dependency optimizer pre-bundles a
|
|
40
|
+
// bare specifier without asking a plugin at all.
|
|
41
|
+
enforce: 'pre',
|
|
42
|
+
config() {
|
|
43
|
+
return { optimizeDeps: { exclude: [BUILD_INFO_MODULE] } };
|
|
44
|
+
},
|
|
45
|
+
configResolved(config) {
|
|
46
|
+
root = config.root;
|
|
47
|
+
outDir = config.build.outDir;
|
|
48
|
+
info = resolveBuildInfo(root);
|
|
49
|
+
},
|
|
50
|
+
resolveId(id) {
|
|
51
|
+
return id === BUILD_INFO_MODULE ? RESOLVED_MODULE : undefined;
|
|
52
|
+
},
|
|
53
|
+
load(id) {
|
|
54
|
+
if (id !== RESOLVED_MODULE)
|
|
55
|
+
return undefined;
|
|
56
|
+
return `export const BUILD_INFO = ${JSON.stringify(info)};\n`;
|
|
57
|
+
},
|
|
58
|
+
closeBundle() {
|
|
59
|
+
if (fileName === false)
|
|
60
|
+
return;
|
|
61
|
+
const target = resolve(root, outDir, fileName);
|
|
62
|
+
mkdirSync(dirname(target), { recursive: true });
|
|
63
|
+
writeFileSync(target, `${JSON.stringify(info, null, 2)}\n`);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* What the build knows about itself, read off the checkout it runs in.
|
|
69
|
+
* @param root - The project Vite is building, which may sit under the
|
|
70
|
+
* repository root as `frontend` does.
|
|
71
|
+
* @returns The record, with whatever it could not resolve left out.
|
|
72
|
+
*/
|
|
73
|
+
export function resolveBuildInfo(root) {
|
|
74
|
+
const repository = findRepositoryRoot(root);
|
|
75
|
+
return {
|
|
76
|
+
version: readVersion(repository) ?? readVersion(root) ?? UNRELEASED,
|
|
77
|
+
builtAt: buildInstant(),
|
|
78
|
+
commit: readGitHead(repository) ?? commitFromEnvironment(),
|
|
79
|
+
reactCheminfo: readOwnVersion(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The topmost directory of the run of ancestors that all hold a `package.json`.
|
|
84
|
+
*
|
|
85
|
+
* It is the repository root, and it is where the released version lives:
|
|
86
|
+
* release-please bumps the root `package.json`, while the `frontend` workspace
|
|
87
|
+
* of a site that has one keeps the `0.0.0` it was scaffolded with.
|
|
88
|
+
* @param start - Where to start climbing.
|
|
89
|
+
* @returns The highest such directory, or `start` when it holds none itself.
|
|
90
|
+
*/
|
|
91
|
+
export function findRepositoryRoot(start) {
|
|
92
|
+
let directory = resolve(start);
|
|
93
|
+
let highest = directory;
|
|
94
|
+
for (;;) {
|
|
95
|
+
if (readPackage(directory) !== undefined)
|
|
96
|
+
highest = directory;
|
|
97
|
+
const parent = dirname(directory);
|
|
98
|
+
// The run has ended: a directory with no package.json is above the project,
|
|
99
|
+
// and so is everything above it.
|
|
100
|
+
if (parent === directory || readPackage(parent) === undefined) {
|
|
101
|
+
return highest;
|
|
102
|
+
}
|
|
103
|
+
directory = parent;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function readVersion(directory) {
|
|
107
|
+
const version = readPackage(directory)?.version;
|
|
108
|
+
return typeof version === 'string' && version.length > 0
|
|
109
|
+
? version
|
|
110
|
+
: undefined;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The version of this package, so a site can be asked which chrome it runs.
|
|
114
|
+
* @returns The version, or `undefined` when the manifest is out of reach.
|
|
115
|
+
*/
|
|
116
|
+
function readOwnVersion() {
|
|
117
|
+
let directory = import.meta.dirname;
|
|
118
|
+
for (;;) {
|
|
119
|
+
const manifest = readPackage(directory);
|
|
120
|
+
if (manifest?.name === OWN_NAME && typeof manifest.version === 'string') {
|
|
121
|
+
return manifest.version;
|
|
122
|
+
}
|
|
123
|
+
const parent = dirname(directory);
|
|
124
|
+
if (parent === directory)
|
|
125
|
+
return undefined;
|
|
126
|
+
directory = parent;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function readPackage(directory) {
|
|
130
|
+
try {
|
|
131
|
+
return JSON.parse(readFileSync(join(directory, 'package.json'), 'utf8'));
|
|
132
|
+
}
|
|
133
|
+
catch {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* When the build ran, honouring `SOURCE_DATE_EPOCH` so a reproducible build
|
|
139
|
+
* stays reproducible.
|
|
140
|
+
* @returns The instant, to the second, as `2026-09-16T09:41:07Z`.
|
|
141
|
+
*/
|
|
142
|
+
function buildInstant() {
|
|
143
|
+
const epoch = Number(process.env.SOURCE_DATE_EPOCH);
|
|
144
|
+
const when = Number.isFinite(epoch) && epoch > 0 ? epoch * 1000 : Date.now();
|
|
145
|
+
return `${new Date(when).toISOString().slice(0, SECOND_LENGTH)}Z`;
|
|
146
|
+
}
|
|
147
|
+
const RESOLVED_MODULE = `\0${BUILD_INFO_MODULE}`;
|
|
148
|
+
const OWN_NAME = 'react-cheminfo';
|
|
149
|
+
const UNRELEASED = '0.0.0';
|
|
150
|
+
const SECOND_LENGTH = 19;
|
|
151
|
+
//# sourceMappingURL=buildInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildInfo.js","sourceRoot":"","sources":["../../../src/build/vite/buildInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMnD,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAElE,uDAAuD;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AAY7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAA4B,EAAE;IAC9D,MAAM,EAAE,QAAQ,GAAG,iBAAiB,EAAE,GAAG,OAAO,CAAC;IACjD,IAAI,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IACzB,IAAI,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,IAAI,GAAc,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO;QACL,IAAI,EAAE,qBAAqB;QAC3B,yEAAyE;QACzE,wEAAwE;QACxE,iDAAiD;QACjD,OAAO,EAAE,KAAK;QACd,MAAM;YACJ,OAAO,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC;QAC5D,CAAC;QACD,cAAc,CAAC,MAAM;YACnB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YACnB,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CA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AC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY;IACnB,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACpD,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7E,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC;AACpE,CAAC;AAED,MAAM,eAAe,GAAG,KAAK,iBAAiB,EAAE,CAAC;AACjD,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAClC,MAAM,UAAU,GAAG,OAAO,CAAC;AAC3B,MAAM,aAAa,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the commit a build is made from, without running git.
|
|
3
|
+
*
|
|
4
|
+
* The image build cannot run git: `.dockerignore` keeps `.git` out of the
|
|
5
|
+
* context and `node:alpine` ships no git binary, while the shared
|
|
6
|
+
* `docker-image` workflow passes no build argument a commit could arrive in.
|
|
7
|
+
* What a site does instead is let three paths back into the context —
|
|
8
|
+
* `.git/HEAD`, `.git/refs` and `.git/packed-refs`, a few kilobytes — and those
|
|
9
|
+
* three are enough to resolve the hash by reading files.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* The commit `HEAD` names, read from the repository above a directory.
|
|
13
|
+
* @param start - Where to start looking; every ancestor is tried in turn.
|
|
14
|
+
* @returns The full hash, or `undefined` when the repository is out of reach —
|
|
15
|
+
* which is what a build sees when the three paths were not let back in.
|
|
16
|
+
*/
|
|
17
|
+
export declare function readGitHead(start: string): string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The commit named by the environment, for a build that cannot see `.git`.
|
|
20
|
+
* @returns The hash, or `undefined` when no variable names one.
|
|
21
|
+
*/
|
|
22
|
+
export declare function commitFromEnvironment(): string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The `.git` directory governing a path.
|
|
25
|
+
* @param start - Where to start looking.
|
|
26
|
+
* @returns Its absolute path, or `undefined` when there is none above `start`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function findGitDir(start: string): string | undefined;
|
|
29
|
+
//# sourceMappingURL=gitHead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitHead.d.ts","sourceRoot":"","sources":["../../../src/build/vite/gitHead.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiB7D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAM1D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAkB5D"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the commit a build is made from, without running git.
|
|
3
|
+
*
|
|
4
|
+
* The image build cannot run git: `.dockerignore` keeps `.git` out of the
|
|
5
|
+
* context and `node:alpine` ships no git binary, while the shared
|
|
6
|
+
* `docker-image` workflow passes no build argument a commit could arrive in.
|
|
7
|
+
* What a site does instead is let three paths back into the context —
|
|
8
|
+
* `.git/HEAD`, `.git/refs` and `.git/packed-refs`, a few kilobytes — and those
|
|
9
|
+
* three are enough to resolve the hash by reading files.
|
|
10
|
+
*/
|
|
11
|
+
import { readFileSync } from 'node:fs';
|
|
12
|
+
import { dirname, isAbsolute, join, resolve } from 'node:path';
|
|
13
|
+
/**
|
|
14
|
+
* The commit `HEAD` names, read from the repository above a directory.
|
|
15
|
+
* @param start - Where to start looking; every ancestor is tried in turn.
|
|
16
|
+
* @returns The full hash, or `undefined` when the repository is out of reach —
|
|
17
|
+
* which is what a build sees when the three paths were not let back in.
|
|
18
|
+
*/
|
|
19
|
+
export function readGitHead(start) {
|
|
20
|
+
const gitDir = findGitDir(start);
|
|
21
|
+
if (gitDir === undefined)
|
|
22
|
+
return undefined;
|
|
23
|
+
const head = readText(join(gitDir, 'HEAD'));
|
|
24
|
+
if (head === undefined)
|
|
25
|
+
return undefined;
|
|
26
|
+
// A checkout made by `actions/checkout` is detached, so `HEAD` is the hash
|
|
27
|
+
// itself and neither `refs` nor `packed-refs` is read at all.
|
|
28
|
+
if (!head.startsWith('ref:'))
|
|
29
|
+
return asCommit(head);
|
|
30
|
+
const ref = head.slice('ref:'.length).trim();
|
|
31
|
+
const loose = readText(join(gitDir, ref));
|
|
32
|
+
return (asCommit(loose) ??
|
|
33
|
+
commitInPackedRefs(readText(join(gitDir, 'packed-refs')), ref));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The commit named by the environment, for a build that cannot see `.git`.
|
|
37
|
+
* @returns The hash, or `undefined` when no variable names one.
|
|
38
|
+
*/
|
|
39
|
+
export function commitFromEnvironment() {
|
|
40
|
+
return (asCommit(process.env.GITHUB_SHA) ??
|
|
41
|
+
asCommit(process.env.SOURCE_COMMIT) ??
|
|
42
|
+
asCommit(process.env.GIT_COMMIT));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The `.git` directory governing a path.
|
|
46
|
+
* @param start - Where to start looking.
|
|
47
|
+
* @returns Its absolute path, or `undefined` when there is none above `start`.
|
|
48
|
+
*/
|
|
49
|
+
export function findGitDir(start) {
|
|
50
|
+
let directory = resolve(start);
|
|
51
|
+
for (;;) {
|
|
52
|
+
const candidate = join(directory, '.git');
|
|
53
|
+
const text = readText(candidate);
|
|
54
|
+
// A worktree and a submodule write a file naming the real directory; a
|
|
55
|
+
// plain repository has the directory itself, which reads as `undefined`.
|
|
56
|
+
if (text?.startsWith('gitdir:')) {
|
|
57
|
+
const target = text.slice('gitdir:'.length).trim();
|
|
58
|
+
return isAbsolute(target) ? target : resolve(directory, target);
|
|
59
|
+
}
|
|
60
|
+
if (readText(join(candidate, 'HEAD')) !== undefined)
|
|
61
|
+
return candidate;
|
|
62
|
+
const parent = dirname(directory);
|
|
63
|
+
if (parent === directory)
|
|
64
|
+
return undefined;
|
|
65
|
+
directory = parent;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The hash a packed `refs` file gives a ref.
|
|
70
|
+
* @param packed - The contents of `packed-refs`, when there is one.
|
|
71
|
+
* @param ref - The ref to look up, e.g. `refs/heads/main`.
|
|
72
|
+
* @returns The hash, or `undefined` when the file does not carry the ref.
|
|
73
|
+
*/
|
|
74
|
+
function commitInPackedRefs(packed, ref) {
|
|
75
|
+
if (packed === undefined)
|
|
76
|
+
return undefined;
|
|
77
|
+
for (const line of packed.split('\n')) {
|
|
78
|
+
// `#` is the header and `^` the object a tag points at: neither is a ref.
|
|
79
|
+
if (line.startsWith('#') || line.startsWith('^'))
|
|
80
|
+
continue;
|
|
81
|
+
const space = line.indexOf(' ');
|
|
82
|
+
if (space === -1 || line.slice(space + 1).trim() !== ref)
|
|
83
|
+
continue;
|
|
84
|
+
return asCommit(line.slice(0, space));
|
|
85
|
+
}
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
function asCommit(value) {
|
|
89
|
+
const text = value?.trim();
|
|
90
|
+
return text !== undefined && COMMIT.test(text) ? text : undefined;
|
|
91
|
+
}
|
|
92
|
+
function readText(path) {
|
|
93
|
+
try {
|
|
94
|
+
return readFileSync(path, 'utf8').trim();
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// Forty hexadecimal characters, or sixty-four in a repository on sha256.
|
|
101
|
+
const COMMIT = /^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AAG,CAAC;YAAE,SAAS;QAC3D,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,KAAK,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG;YAAE,SAAS;QACnE,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,QAAQ,CAAC,KAAyB;IACzC,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI,EAAE,CAAC;IAC3B,OAAO,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,yEAAyE;AACzE,MAAM,MAAM,GAAG,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { BuildInfoOptions } from './buildInfo.ts';
|
|
2
|
+
export { BUILD_INFO_MODULE, cheminfoBuildInfo, findRepositoryRoot, resolveBuildInfo, } from './buildInfo.ts';
|
|
3
|
+
export { commitFromEnvironment, findGitDir, readGitHead } from './gitHead.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build/vite/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/build/vite/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-info.d.ts","sourceRoot":"","sources":["../src/build-info.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-info.js","sourceRoot":"","sources":["../src/build-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
|
package/lib/core.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './about/core/index.ts';
|
|
2
|
+
export * from './build/core/index.ts';
|
|
2
3
|
export * from './chart/core/index.ts';
|
|
3
4
|
export * from './citation/core/index.ts';
|
|
4
5
|
export * from './clipboard/core/index.ts';
|
|
@@ -11,6 +12,7 @@ export * from './error/core/index.ts';
|
|
|
11
12
|
export * from './format/core/index.ts';
|
|
12
13
|
export * from './orbital/core/index.ts';
|
|
13
14
|
export * from './overlay/core/index.ts';
|
|
15
|
+
export * from './parallel/core/index.ts';
|
|
14
16
|
export * from './pedagogy/core/index.ts';
|
|
15
17
|
export * from './periodic/core/index.ts';
|
|
16
18
|
export * from './projection/core/index.ts';
|
package/lib/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
package/lib/core.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./about/core/index.js";
|
|
2
|
+
export * from "./build/core/index.js";
|
|
2
3
|
export * from "./chart/core/index.js";
|
|
3
4
|
export * from "./citation/core/index.js";
|
|
4
5
|
export * from "./clipboard/core/index.js";
|
|
@@ -11,6 +12,7 @@ export * from "./error/core/index.js";
|
|
|
11
12
|
export * from "./format/core/index.js";
|
|
12
13
|
export * from "./orbital/core/index.js";
|
|
13
14
|
export * from "./overlay/core/index.js";
|
|
15
|
+
export * from "./parallel/core/index.js";
|
|
14
16
|
export * from "./pedagogy/core/index.js";
|
|
15
17
|
export * from "./periodic/core/index.js";
|
|
16
18
|
export * from "./projection/core/index.js";
|
package/lib/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,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AAC/E,2EAA2E;AAC3E,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,0EAA0E;AAC1E,8EAA8E;AAC9E,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -55,6 +55,11 @@ export declare const CREDITS: readonly [{
|
|
|
55
55
|
readonly href: "https://github.com/cheminfo/openchemlib-utils";
|
|
56
56
|
readonly description: "the structure helpers built on top of OpenChemLib.";
|
|
57
57
|
readonly license: "MIT";
|
|
58
|
+
}, {
|
|
59
|
+
readonly id: "osiris-property-explorer";
|
|
60
|
+
readonly name: "OSIRIS Property Explorer";
|
|
61
|
+
readonly href: "https://www.organic-chemistry.org/prog/peo/";
|
|
62
|
+
readonly description: "the original toxicity and property predictions, by Thomas Sander at Actelion, now Idorsia.";
|
|
58
63
|
}, {
|
|
59
64
|
readonly id: "react-ocl";
|
|
60
65
|
readonly name: "react-ocl";
|
|
@@ -85,6 +90,18 @@ export declare const CREDITS: readonly [{
|
|
|
85
90
|
readonly href: "https://github.com/mljs/matrix";
|
|
86
91
|
readonly description: "the linear algebra behind the numbers on the page.";
|
|
87
92
|
readonly license: "MIT";
|
|
93
|
+
}, {
|
|
94
|
+
readonly id: "ml-xsadd";
|
|
95
|
+
readonly name: "ml-xsadd";
|
|
96
|
+
readonly href: "https://github.com/mljs/xsadd";
|
|
97
|
+
readonly description: "the seeded generator a reproducible series is drawn from.";
|
|
98
|
+
readonly license: "MIT";
|
|
99
|
+
}, {
|
|
100
|
+
readonly id: "cif-to-json";
|
|
101
|
+
readonly name: "cif-to-json";
|
|
102
|
+
readonly href: "https://github.com/cheminfo/cif-to-json";
|
|
103
|
+
readonly description: "the reader that turns a crystallographic file into data.";
|
|
104
|
+
readonly license: "MIT";
|
|
88
105
|
}, {
|
|
89
106
|
readonly id: "ml-spectra-processing";
|
|
90
107
|
readonly name: "ml-spectra-processing";
|
|
@@ -151,6 +168,24 @@ export declare const CREDITS: readonly [{
|
|
|
151
168
|
readonly href: "https://dndkit.com/";
|
|
152
169
|
readonly description: "the dragging that arranges things into an order.";
|
|
153
170
|
readonly license: "MIT";
|
|
171
|
+
}, {
|
|
172
|
+
readonly id: "react-roi";
|
|
173
|
+
readonly name: "react-roi";
|
|
174
|
+
readonly href: "https://github.com/zakodium-oss/react-roi";
|
|
175
|
+
readonly description: "the box a region of an image is drawn with.";
|
|
176
|
+
readonly license: "MIT";
|
|
177
|
+
}, {
|
|
178
|
+
readonly id: "file-collection";
|
|
179
|
+
readonly name: "file-collection";
|
|
180
|
+
readonly href: "https://github.com/cheminfo/file-collection";
|
|
181
|
+
readonly description: "the reader that takes dropped files, folders and archives.";
|
|
182
|
+
readonly license: "MIT";
|
|
183
|
+
}, {
|
|
184
|
+
readonly id: "zip-js";
|
|
185
|
+
readonly name: "zip.js";
|
|
186
|
+
readonly href: "https://github.com/gildas-lormeau/zip.js";
|
|
187
|
+
readonly description: "the ZIP archives that are read and written in the browser.";
|
|
188
|
+
readonly license: "BSD-3-Clause";
|
|
154
189
|
}, {
|
|
155
190
|
readonly id: "preact-signals";
|
|
156
191
|
readonly name: "Preact Signals";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qCAAqC;AACrC,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,SAAS,QAAQ,EAAE,GAAG,WAAW,EAAE,CAU/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE5D;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qCAAqC;AACrC,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEtD;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,SAAS,QAAQ,EAAE,GAAG,WAAW,EAAE,CAU/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE5D;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8OuB,CAAC"}
|
|
@@ -53,6 +53,12 @@ export const CREDITS = [
|
|
|
53
53
|
description: 'the structure helpers built on top of OpenChemLib.',
|
|
54
54
|
license: 'MIT',
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
id: 'osiris-property-explorer',
|
|
58
|
+
name: 'OSIRIS Property Explorer',
|
|
59
|
+
href: 'https://www.organic-chemistry.org/prog/peo/',
|
|
60
|
+
description: 'the original toxicity and property predictions, by Thomas Sander at Actelion, now Idorsia.',
|
|
61
|
+
},
|
|
56
62
|
{
|
|
57
63
|
id: 'react-ocl',
|
|
58
64
|
name: 'react-ocl',
|
|
@@ -88,6 +94,20 @@ export const CREDITS = [
|
|
|
88
94
|
description: 'the linear algebra behind the numbers on the page.',
|
|
89
95
|
license: 'MIT',
|
|
90
96
|
},
|
|
97
|
+
{
|
|
98
|
+
id: 'ml-xsadd',
|
|
99
|
+
name: 'ml-xsadd',
|
|
100
|
+
href: 'https://github.com/mljs/xsadd',
|
|
101
|
+
description: 'the seeded generator a reproducible series is drawn from.',
|
|
102
|
+
license: 'MIT',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 'cif-to-json',
|
|
106
|
+
name: 'cif-to-json',
|
|
107
|
+
href: 'https://github.com/cheminfo/cif-to-json',
|
|
108
|
+
description: 'the reader that turns a crystallographic file into data.',
|
|
109
|
+
license: 'MIT',
|
|
110
|
+
},
|
|
91
111
|
{
|
|
92
112
|
id: 'ml-spectra-processing',
|
|
93
113
|
name: 'ml-spectra-processing',
|
|
@@ -165,6 +185,27 @@ export const CREDITS = [
|
|
|
165
185
|
description: 'the dragging that arranges things into an order.',
|
|
166
186
|
license: 'MIT',
|
|
167
187
|
},
|
|
188
|
+
{
|
|
189
|
+
id: 'react-roi',
|
|
190
|
+
name: 'react-roi',
|
|
191
|
+
href: 'https://github.com/zakodium-oss/react-roi',
|
|
192
|
+
description: 'the box a region of an image is drawn with.',
|
|
193
|
+
license: 'MIT',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: 'file-collection',
|
|
197
|
+
name: 'file-collection',
|
|
198
|
+
href: 'https://github.com/cheminfo/file-collection',
|
|
199
|
+
description: 'the reader that takes dropped files, folders and archives.',
|
|
200
|
+
license: 'MIT',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: 'zip-js',
|
|
204
|
+
name: 'zip.js',
|
|
205
|
+
href: 'https://github.com/gildas-lormeau/zip.js',
|
|
206
|
+
description: 'the ZIP archives that are read and written in the browser.',
|
|
207
|
+
license: 'BSD-3-Clause',
|
|
208
|
+
},
|
|
168
209
|
{
|
|
169
210
|
id: 'preact-signals',
|
|
170
211
|
name: 'Preact Signals',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,GAAwB;IAC9C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAC3C,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAU;IACjC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,6EAA6E;QAC/E,OAAO,EAAE,SAAS;KACnB;IACD;QACE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gB;QACtB,IAAI,EAAE,yCAAyC;QAC/C,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,eAAe;KACzB;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,eAAe;KACzB;IACD;QACE,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,YAAY;KACtB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,0DAA0D;KACxE;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,KAAK;KACf;CACwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/credits/core/credits.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,GAAwB;IAC9C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,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|
|
|
1
|
-
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../../src/ecosystem/core/sites.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EACV,aAAa,EACb,MAAM,EACN,cAAc,EACd,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,
|
|
1
|
+
{"version":3,"file":"sites.d.ts","sourceRoot":"","sources":["../../../src/ecosystem/core/sites.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EACV,aAAa,EACb,MAAM,EACN,cAAc,EACd,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAwQnD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAEnD"}
|