@platforma-open/milaboratories.vj-usage.model 2.1.4 → 2.1.5
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/.turbo/turbo-build.log +13 -28
- package/.turbo/turbo-lint.log +5 -0
- package/.turbo/turbo-type-check.log +6 -0
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +7816 -6945
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +75 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -19
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +75 -73
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +24 -27
- package/src/index.ts +1 -1
- package/tsconfig.json +2 -14
- package/vitest.config.mts +8 -0
- package/dist/index.d.cts +0 -55
- package/vite.config.mts +0 -20
package/package.json
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-open/milaboratories.vj-usage.model",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "Block model",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js",
|
|
13
|
+
"sources": "./src/index.ts"
|
|
14
|
+
},
|
|
15
|
+
"./dist/model.json": "./dist/model.json"
|
|
16
|
+
},
|
|
9
17
|
"dependencies": {
|
|
10
|
-
"@platforma-sdk/model": "
|
|
11
|
-
"@milaboratories/graph-maker": "
|
|
18
|
+
"@platforma-sdk/model": "1.51.2",
|
|
19
|
+
"@milaboratories/graph-maker": "1.1.202"
|
|
12
20
|
},
|
|
13
21
|
"devDependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"entry": [
|
|
22
|
-
"src/index.ts"
|
|
23
|
-
],
|
|
24
|
-
"splitting": false,
|
|
25
|
-
"treeshake": true,
|
|
26
|
-
"clean": true,
|
|
27
|
-
"format": [
|
|
28
|
-
"cjs",
|
|
29
|
-
"esm"
|
|
30
|
-
],
|
|
31
|
-
"dts": true,
|
|
32
|
-
"minify": false,
|
|
33
|
-
"sourcemap": true
|
|
22
|
+
"@milaboratories/ts-builder": "1.2.1",
|
|
23
|
+
"@milaboratories/ts-configs": "1.2.0",
|
|
24
|
+
"@platforma-sdk/block-tools": "2.6.29",
|
|
25
|
+
"@platforma-sdk/eslint-config": "1.2.0",
|
|
26
|
+
"eslint": "^9.25.1",
|
|
27
|
+
"typescript": "~5.6.3",
|
|
28
|
+
"vitest": "^4.0.7"
|
|
34
29
|
},
|
|
35
30
|
"scripts": {
|
|
36
|
-
"build": "
|
|
31
|
+
"build": "ts-builder build --target block-model && block-tools build-model",
|
|
32
|
+
"watch": "ts-builder build --target block-model --watch",
|
|
33
|
+
"type-check": "ts-builder types --target block-model",
|
|
37
34
|
"lint": "eslint ."
|
|
38
35
|
}
|
|
39
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -88,7 +88,7 @@ export const model = BlockModel.create()
|
|
|
88
88
|
return ctx.resultPool.getPColumnSpecByRef(ctx.args.datasetRef);
|
|
89
89
|
})
|
|
90
90
|
|
|
91
|
-
.
|
|
91
|
+
.outputWithStatus('pf', (ctx) => {
|
|
92
92
|
const pCols = ctx.outputs?.resolve('pf')?.getPColumns();
|
|
93
93
|
if (pCols === undefined) {
|
|
94
94
|
return undefined;
|
package/tsconfig.json
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"outDir": "./dist",
|
|
9
|
-
"rootDir": "./src",
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"declaration": true
|
|
12
|
-
},
|
|
13
|
-
"types": [],
|
|
14
|
-
"include": ["src/**/*"],
|
|
15
|
-
"exclude": ["node_modules", "dist"]
|
|
2
|
+
"extends": "@milaboratories/ts-configs/block/model",
|
|
3
|
+
"include": ["src/**/*"]
|
|
16
4
|
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as _platforma_sdk_model from '@platforma-sdk/model';
|
|
2
|
-
import { PlRef, InferOutputsType } from '@platforma-sdk/model';
|
|
3
|
-
import { GraphMakerState } from '@milaboratories/graph-maker';
|
|
4
|
-
|
|
5
|
-
type BlockArgs = {
|
|
6
|
-
datasetRef?: PlRef;
|
|
7
|
-
scChain?: string;
|
|
8
|
-
allele?: boolean;
|
|
9
|
-
};
|
|
10
|
-
type UiState = {
|
|
11
|
-
blockTitle: string;
|
|
12
|
-
weightedFlag: boolean;
|
|
13
|
-
vUsagePlotState: GraphMakerState;
|
|
14
|
-
jUsagePlotState: GraphMakerState;
|
|
15
|
-
vjUsagePlotState: GraphMakerState;
|
|
16
|
-
};
|
|
17
|
-
declare const model: _platforma_sdk_model.PlatformaV2<BlockArgs, {
|
|
18
|
-
datasetOptions: _platforma_sdk_model.ValueOrErrors<{
|
|
19
|
-
readonly ref: {
|
|
20
|
-
readonly __isRef: true;
|
|
21
|
-
readonly blockId: string;
|
|
22
|
-
readonly name: string;
|
|
23
|
-
readonly requireEnrichments?: true | undefined;
|
|
24
|
-
};
|
|
25
|
-
readonly label: string;
|
|
26
|
-
}[]>;
|
|
27
|
-
datasetSpec: _platforma_sdk_model.ValueOrErrors<{
|
|
28
|
-
readonly valueType: _platforma_sdk_model.ValueType;
|
|
29
|
-
readonly kind: "PColumn";
|
|
30
|
-
readonly name: string;
|
|
31
|
-
readonly domain?: {
|
|
32
|
-
[x: string]: string;
|
|
33
|
-
} | undefined;
|
|
34
|
-
readonly annotations?: {
|
|
35
|
-
[x: string]: string;
|
|
36
|
-
} | undefined;
|
|
37
|
-
readonly parentAxes?: number[] | undefined;
|
|
38
|
-
readonly axesSpec: {
|
|
39
|
-
readonly type: _platforma_sdk_model.ValueType;
|
|
40
|
-
readonly name: string;
|
|
41
|
-
readonly domain?: {
|
|
42
|
-
[x: string]: string;
|
|
43
|
-
} | undefined;
|
|
44
|
-
readonly annotations?: {
|
|
45
|
-
[x: string]: string;
|
|
46
|
-
} | undefined;
|
|
47
|
-
readonly parentAxes?: number[] | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
} | undefined>;
|
|
50
|
-
pf: _platforma_sdk_model.ValueOrErrors<_platforma_sdk_model.PFrameHandle | undefined>;
|
|
51
|
-
isRunning: _platforma_sdk_model.ValueOrErrors<boolean>;
|
|
52
|
-
}, UiState, "/" | "/jUsage" | "/vjUsage">;
|
|
53
|
-
type BlockOutputs = InferOutputsType<typeof model>;
|
|
54
|
-
|
|
55
|
-
export { type BlockArgs, type BlockOutputs, type UiState, model };
|
package/vite.config.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
build: {
|
|
5
|
-
emptyOutDir: false,
|
|
6
|
-
lib: {
|
|
7
|
-
entry: 'src/index.ts',
|
|
8
|
-
name: 'model',
|
|
9
|
-
fileName: (format) => `my-lib.${format}.js`
|
|
10
|
-
},
|
|
11
|
-
minify: false,
|
|
12
|
-
sourcemap: true,
|
|
13
|
-
rollupOptions: {
|
|
14
|
-
output: {
|
|
15
|
-
format: 'iife',
|
|
16
|
-
entryFileNames: 'bundle.js'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|