@vitessce/schemas 3.2.0 → 3.2.2
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/dist/index.js
CHANGED
|
@@ -16486,7 +16486,10 @@ function buildConfigSchema(pluginFileTypes, pluginJointFileTypes, pluginCoordina
|
|
|
16486
16486
|
pluginCoordinationTypes.map((ct) => [
|
|
16487
16487
|
ct.name,
|
|
16488
16488
|
z.record(
|
|
16489
|
-
|
|
16489
|
+
// For now, assume the key type is string (though it would be
|
|
16490
|
+
// slightly nicer if we could use the coordinationScopeName schema here).
|
|
16491
|
+
// Once https://github.com/colinhacks/zod/issues/2746 gets resolved
|
|
16492
|
+
// then we can try that approach again, but it should not be a big deal.
|
|
16490
16493
|
ct.valueSchema.optional()
|
|
16491
16494
|
).optional()
|
|
16492
16495
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-builders.d.ts","sourceRoot":"","sources":["../src/schema-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema-builders.d.ts","sourceRoot":"","sources":["../src/schema-builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAsE3B;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,SAAS,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EACjD,EAAE,SAAS,mBAAmB,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5C,EAAE,SAAS,sBAAsB,CAAC,CAAC,CAAC,UAAU,CAAC,EAE/C,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,EAC1B,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,EAC/B,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,EAClC,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFvC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { fromEntries } from '@vitessce/utils';
|
|
3
|
-
import { requestInit,
|
|
3
|
+
import { requestInit, componentCoordinationScopes, componentCoordinationScopesBy, } from './shared.js';
|
|
4
4
|
import { latestConfigSchema } from './previous-config-meta.js';
|
|
5
5
|
import { configSchemaToVersion } from './view-config-versions.js';
|
|
6
6
|
/**
|
|
@@ -97,7 +97,12 @@ export function buildConfigSchema(pluginFileTypes, pluginJointFileTypes, pluginC
|
|
|
97
97
|
fromEntries(pluginCoordinationTypes
|
|
98
98
|
.map(ct => ([
|
|
99
99
|
ct.name,
|
|
100
|
-
z.record(
|
|
100
|
+
z.record(
|
|
101
|
+
// For now, assume the key type is string (though it would be
|
|
102
|
+
// slightly nicer if we could use the coordinationScopeName schema here).
|
|
103
|
+
// Once https://github.com/colinhacks/zod/issues/2746 gets resolved
|
|
104
|
+
// then we can try that approach again, but it should not be a big deal.
|
|
105
|
+
ct.valueSchema.optional()).optional(),
|
|
101
106
|
]))))
|
|
102
107
|
.strict()
|
|
103
108
|
.describe('The coordination space stores the values for each scope of each coordination object.')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"semver": "^7.3.8",
|
|
25
25
|
"uuid": "^9.0.0",
|
|
26
26
|
"zod": "^3.21.4",
|
|
27
|
-
"@vitessce/constants": "3.2.
|
|
28
|
-
"@vitessce/constants-internal": "3.2.
|
|
29
|
-
"@vitessce/plugins": "3.2.
|
|
30
|
-
"@vitessce/utils": "3.2.
|
|
27
|
+
"@vitessce/constants": "3.2.2",
|
|
28
|
+
"@vitessce/constants-internal": "3.2.2",
|
|
29
|
+
"@vitessce/plugins": "3.2.2",
|
|
30
|
+
"@vitessce/utils": "3.2.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/schema-builders.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from '@vitessce/plugins';
|
|
9
9
|
import {
|
|
10
10
|
requestInit,
|
|
11
|
-
coordinationScopeName,
|
|
12
11
|
componentCoordinationScopes,
|
|
13
12
|
componentCoordinationScopesBy,
|
|
14
13
|
} from './shared.js';
|
|
@@ -133,7 +132,10 @@ export function buildConfigSchema<
|
|
|
133
132
|
.map(ct => ([
|
|
134
133
|
ct.name,
|
|
135
134
|
z.record(
|
|
136
|
-
|
|
135
|
+
// For now, assume the key type is string (though it would be
|
|
136
|
+
// slightly nicer if we could use the coordinationScopeName schema here).
|
|
137
|
+
// Once https://github.com/colinhacks/zod/issues/2746 gets resolved
|
|
138
|
+
// then we can try that approach again, but it should not be a big deal.
|
|
137
139
|
ct.valueSchema.optional(),
|
|
138
140
|
).optional(),
|
|
139
141
|
])),
|