@vitessce/schemas 3.4.5 → 3.4.7
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
|
@@ -423,7 +423,7 @@ class ParseStatus {
|
|
|
423
423
|
status.dirty();
|
|
424
424
|
if (value.status === "dirty")
|
|
425
425
|
status.dirty();
|
|
426
|
-
if (typeof value.value !== "undefined" || pair.alwaysSet) {
|
|
426
|
+
if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
427
427
|
finalObject[key.value] = value.value;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
@@ -526,6 +526,7 @@ class ZodType {
|
|
|
526
526
|
this.catch = this.catch.bind(this);
|
|
527
527
|
this.describe = this.describe.bind(this);
|
|
528
528
|
this.pipe = this.pipe.bind(this);
|
|
529
|
+
this.readonly = this.readonly.bind(this);
|
|
529
530
|
this.isNullable = this.isNullable.bind(this);
|
|
530
531
|
this.isOptional = this.isOptional.bind(this);
|
|
531
532
|
}
|
|
@@ -733,6 +734,9 @@ class ZodType {
|
|
|
733
734
|
pipe(target) {
|
|
734
735
|
return ZodPipeline.create(this, target);
|
|
735
736
|
}
|
|
737
|
+
readonly() {
|
|
738
|
+
return ZodReadonly.create(this);
|
|
739
|
+
}
|
|
736
740
|
isOptional() {
|
|
737
741
|
return this.safeParse(void 0).success;
|
|
738
742
|
}
|
|
@@ -742,10 +746,11 @@ class ZodType {
|
|
|
742
746
|
}
|
|
743
747
|
const cuidRegex = /^c[^\s-]{8,}$/i;
|
|
744
748
|
const cuid2Regex = /^[a-z][a-z0-9]*$/;
|
|
745
|
-
const ulidRegex =
|
|
746
|
-
const uuidRegex = /^
|
|
747
|
-
const emailRegex = /^(
|
|
748
|
-
const
|
|
749
|
+
const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
|
|
750
|
+
const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
751
|
+
const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
752
|
+
const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
753
|
+
let emojiRegex;
|
|
749
754
|
const ipv4Regex = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;
|
|
750
755
|
const ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
|
|
751
756
|
const datetimeRegex = (args) => {
|
|
@@ -779,27 +784,6 @@ function isValidIP(ip, version) {
|
|
|
779
784
|
return false;
|
|
780
785
|
}
|
|
781
786
|
class ZodString extends ZodType {
|
|
782
|
-
constructor() {
|
|
783
|
-
super(...arguments);
|
|
784
|
-
this._regex = (regex, validation, message) => this.refinement((data) => regex.test(data), {
|
|
785
|
-
validation,
|
|
786
|
-
code: ZodIssueCode.invalid_string,
|
|
787
|
-
...errorUtil.errToObj(message)
|
|
788
|
-
});
|
|
789
|
-
this.nonempty = (message) => this.min(1, errorUtil.errToObj(message));
|
|
790
|
-
this.trim = () => new ZodString({
|
|
791
|
-
...this._def,
|
|
792
|
-
checks: [...this._def.checks, { kind: "trim" }]
|
|
793
|
-
});
|
|
794
|
-
this.toLowerCase = () => new ZodString({
|
|
795
|
-
...this._def,
|
|
796
|
-
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
797
|
-
});
|
|
798
|
-
this.toUpperCase = () => new ZodString({
|
|
799
|
-
...this._def,
|
|
800
|
-
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
787
|
_parse(input) {
|
|
804
788
|
if (this._def.coerce) {
|
|
805
789
|
input.data = String(input.data);
|
|
@@ -884,6 +868,9 @@ class ZodString extends ZodType {
|
|
|
884
868
|
status.dirty();
|
|
885
869
|
}
|
|
886
870
|
} else if (check.kind === "emoji") {
|
|
871
|
+
if (!emojiRegex) {
|
|
872
|
+
emojiRegex = new RegExp(_emojiRegex, "u");
|
|
873
|
+
}
|
|
887
874
|
if (!emojiRegex.test(input.data)) {
|
|
888
875
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
889
876
|
addIssueToContext(ctx, {
|
|
@@ -1020,6 +1007,13 @@ class ZodString extends ZodType {
|
|
|
1020
1007
|
}
|
|
1021
1008
|
return { status: status.value, value: input.data };
|
|
1022
1009
|
}
|
|
1010
|
+
_regex(regex, validation, message) {
|
|
1011
|
+
return this.refinement((data) => regex.test(data), {
|
|
1012
|
+
validation,
|
|
1013
|
+
code: ZodIssueCode.invalid_string,
|
|
1014
|
+
...errorUtil.errToObj(message)
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1023
1017
|
_addCheck(check) {
|
|
1024
1018
|
return new ZodString({
|
|
1025
1019
|
...this._def,
|
|
@@ -1117,6 +1111,31 @@ class ZodString extends ZodType {
|
|
|
1117
1111
|
...errorUtil.errToObj(message)
|
|
1118
1112
|
});
|
|
1119
1113
|
}
|
|
1114
|
+
/**
|
|
1115
|
+
* @deprecated Use z.string().min(1) instead.
|
|
1116
|
+
* @see {@link ZodString.min}
|
|
1117
|
+
*/
|
|
1118
|
+
nonempty(message) {
|
|
1119
|
+
return this.min(1, errorUtil.errToObj(message));
|
|
1120
|
+
}
|
|
1121
|
+
trim() {
|
|
1122
|
+
return new ZodString({
|
|
1123
|
+
...this._def,
|
|
1124
|
+
checks: [...this._def.checks, { kind: "trim" }]
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
toLowerCase() {
|
|
1128
|
+
return new ZodString({
|
|
1129
|
+
...this._def,
|
|
1130
|
+
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
toUpperCase() {
|
|
1134
|
+
return new ZodString({
|
|
1135
|
+
...this._def,
|
|
1136
|
+
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1120
1139
|
get isDatetime() {
|
|
1121
1140
|
return !!this._def.checks.find((ch) => ch.kind === "datetime");
|
|
1122
1141
|
}
|
|
@@ -2708,6 +2727,12 @@ class ZodRecord extends ZodType {
|
|
|
2708
2727
|
}
|
|
2709
2728
|
}
|
|
2710
2729
|
class ZodMap extends ZodType {
|
|
2730
|
+
get keySchema() {
|
|
2731
|
+
return this._def.keyType;
|
|
2732
|
+
}
|
|
2733
|
+
get valueSchema() {
|
|
2734
|
+
return this._def.valueType;
|
|
2735
|
+
}
|
|
2711
2736
|
_parse(input) {
|
|
2712
2737
|
const { status, ctx } = this._processInputParams(input);
|
|
2713
2738
|
if (ctx.parsedType !== ZodParsedType.map) {
|
|
@@ -2902,27 +2927,29 @@ class ZodFunction extends ZodType {
|
|
|
2902
2927
|
const params = { errorMap: ctx.common.contextualErrorMap };
|
|
2903
2928
|
const fn = ctx.data;
|
|
2904
2929
|
if (this._def.returns instanceof ZodPromise) {
|
|
2905
|
-
|
|
2930
|
+
const me = this;
|
|
2931
|
+
return OK(async function(...args) {
|
|
2906
2932
|
const error = new ZodError([]);
|
|
2907
|
-
const parsedArgs = await
|
|
2933
|
+
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
2908
2934
|
error.addIssue(makeArgsIssue(args, e));
|
|
2909
2935
|
throw error;
|
|
2910
2936
|
});
|
|
2911
|
-
const result = await fn
|
|
2912
|
-
const parsedReturns = await
|
|
2937
|
+
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
2938
|
+
const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
2913
2939
|
error.addIssue(makeReturnsIssue(result, e));
|
|
2914
2940
|
throw error;
|
|
2915
2941
|
});
|
|
2916
2942
|
return parsedReturns;
|
|
2917
2943
|
});
|
|
2918
2944
|
} else {
|
|
2919
|
-
|
|
2920
|
-
|
|
2945
|
+
const me = this;
|
|
2946
|
+
return OK(function(...args) {
|
|
2947
|
+
const parsedArgs = me._def.args.safeParse(args, params);
|
|
2921
2948
|
if (!parsedArgs.success) {
|
|
2922
2949
|
throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
|
|
2923
2950
|
}
|
|
2924
|
-
const result = fn
|
|
2925
|
-
const parsedReturns =
|
|
2951
|
+
const result = Reflect.apply(fn, this, parsedArgs.data);
|
|
2952
|
+
const parsedReturns = me._def.returns.safeParse(result, params);
|
|
2926
2953
|
if (!parsedReturns.success) {
|
|
2927
2954
|
throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
|
|
2928
2955
|
}
|
|
@@ -3144,8 +3171,28 @@ class ZodEffects extends ZodType {
|
|
|
3144
3171
|
_parse(input) {
|
|
3145
3172
|
const { status, ctx } = this._processInputParams(input);
|
|
3146
3173
|
const effect = this._def.effect || null;
|
|
3174
|
+
const checkCtx = {
|
|
3175
|
+
addIssue: (arg) => {
|
|
3176
|
+
addIssueToContext(ctx, arg);
|
|
3177
|
+
if (arg.fatal) {
|
|
3178
|
+
status.abort();
|
|
3179
|
+
} else {
|
|
3180
|
+
status.dirty();
|
|
3181
|
+
}
|
|
3182
|
+
},
|
|
3183
|
+
get path() {
|
|
3184
|
+
return ctx.path;
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
|
3147
3188
|
if (effect.type === "preprocess") {
|
|
3148
|
-
const processed = effect.transform(ctx.data);
|
|
3189
|
+
const processed = effect.transform(ctx.data, checkCtx);
|
|
3190
|
+
if (ctx.common.issues.length) {
|
|
3191
|
+
return {
|
|
3192
|
+
status: "dirty",
|
|
3193
|
+
value: ctx.data
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3149
3196
|
if (ctx.common.async) {
|
|
3150
3197
|
return Promise.resolve(processed).then((processed2) => {
|
|
3151
3198
|
return this._def.schema._parseAsync({
|
|
@@ -3162,20 +3209,6 @@ class ZodEffects extends ZodType {
|
|
|
3162
3209
|
});
|
|
3163
3210
|
}
|
|
3164
3211
|
}
|
|
3165
|
-
const checkCtx = {
|
|
3166
|
-
addIssue: (arg) => {
|
|
3167
|
-
addIssueToContext(ctx, arg);
|
|
3168
|
-
if (arg.fatal) {
|
|
3169
|
-
status.abort();
|
|
3170
|
-
} else {
|
|
3171
|
-
status.dirty();
|
|
3172
|
-
}
|
|
3173
|
-
},
|
|
3174
|
-
get path() {
|
|
3175
|
-
return ctx.path;
|
|
3176
|
-
}
|
|
3177
|
-
};
|
|
3178
|
-
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
|
3179
3212
|
if (effect.type === "refinement") {
|
|
3180
3213
|
const executeRefinement = (acc) => {
|
|
3181
3214
|
const result = effect.refinement(acc, checkCtx);
|
|
@@ -3459,6 +3492,22 @@ class ZodPipeline extends ZodType {
|
|
|
3459
3492
|
});
|
|
3460
3493
|
}
|
|
3461
3494
|
}
|
|
3495
|
+
class ZodReadonly extends ZodType {
|
|
3496
|
+
_parse(input) {
|
|
3497
|
+
const result = this._def.innerType._parse(input);
|
|
3498
|
+
if (isValid(result)) {
|
|
3499
|
+
result.value = Object.freeze(result.value);
|
|
3500
|
+
}
|
|
3501
|
+
return result;
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
ZodReadonly.create = (type, params) => {
|
|
3505
|
+
return new ZodReadonly({
|
|
3506
|
+
innerType: type,
|
|
3507
|
+
typeName: ZodFirstPartyTypeKind.ZodReadonly,
|
|
3508
|
+
...processCreateParams(params)
|
|
3509
|
+
});
|
|
3510
|
+
};
|
|
3462
3511
|
const custom = (check, params = {}, fatal) => {
|
|
3463
3512
|
if (check)
|
|
3464
3513
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
@@ -3512,6 +3561,7 @@ var ZodFirstPartyTypeKind;
|
|
|
3512
3561
|
ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";
|
|
3513
3562
|
ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";
|
|
3514
3563
|
ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";
|
|
3564
|
+
ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";
|
|
3515
3565
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
3516
3566
|
const instanceOfType = (cls, params = {
|
|
3517
3567
|
message: `Input not instance of ${cls.name}`
|
|
@@ -3626,6 +3676,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3626
3676
|
BRAND,
|
|
3627
3677
|
ZodBranded,
|
|
3628
3678
|
ZodPipeline,
|
|
3679
|
+
ZodReadonly,
|
|
3629
3680
|
custom,
|
|
3630
3681
|
Schema: ZodType,
|
|
3631
3682
|
ZodSchema: ZodType,
|
|
@@ -3982,7 +4033,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
3982
4033
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
3983
4034
|
}
|
|
3984
4035
|
function unsafeStringify(arr, offset = 0) {
|
|
3985
|
-
return
|
|
4036
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
3986
4037
|
}
|
|
3987
4038
|
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
3988
4039
|
const native = {
|
|
@@ -7819,6 +7870,7 @@ const ViewType$1 = {
|
|
|
7819
7870
|
OBS_SET_SIZES: "obsSetSizes",
|
|
7820
7871
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
|
|
7821
7872
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
7873
|
+
DOT_PLOT: "dotPlot",
|
|
7822
7874
|
FEATURE_BAR_PLOT: "featureBarPlot"
|
|
7823
7875
|
};
|
|
7824
7876
|
const DataType$1 = {
|
|
@@ -8008,6 +8060,7 @@ const CoordinationType$1 = {
|
|
|
8008
8060
|
GATING_FEATURE_SELECTION_X: "gatingFeatureSelectionX",
|
|
8009
8061
|
GATING_FEATURE_SELECTION_Y: "gatingFeatureSelectionY",
|
|
8010
8062
|
FEATURE_VALUE_TRANSFORM_COEFFICIENT: "featureValueTransformCoefficient",
|
|
8063
|
+
FEATURE_VALUE_POSITIVITY_THRESHOLD: "featureValuePositivityThreshold",
|
|
8011
8064
|
TOOLTIPS_VISIBLE: "tooltipsVisible",
|
|
8012
8065
|
FILE_UID: "fileUid",
|
|
8013
8066
|
IMAGE_LAYER: "imageLayer",
|
|
@@ -8055,7 +8108,14 @@ const CoordinationType$1 = {
|
|
|
8055
8108
|
SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize",
|
|
8056
8109
|
// Multi-sample / comparative
|
|
8057
8110
|
SAMPLE_TYPE: "sampleType",
|
|
8058
|
-
SAMPLE_SET_SELECTION: "sampleSetSelection"
|
|
8111
|
+
SAMPLE_SET_SELECTION: "sampleSetSelection",
|
|
8112
|
+
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
8113
|
+
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
8114
|
+
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
8115
|
+
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
8116
|
+
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
8117
|
+
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
8118
|
+
CONTOUR_COLOR: "contourColor"
|
|
8059
8119
|
};
|
|
8060
8120
|
const ViewType = {
|
|
8061
8121
|
GENES: [
|
|
@@ -8616,7 +8676,8 @@ const anndataZarrSchema = z.object({
|
|
|
8616
8676
|
obsEmbedding: z.union([
|
|
8617
8677
|
annDataObsEmbedding,
|
|
8618
8678
|
z.array(annDataConvenienceObsEmbeddingItem)
|
|
8619
|
-
])
|
|
8679
|
+
]),
|
|
8680
|
+
sampleEdges: annDataSampleEdges
|
|
8620
8681
|
}).partial();
|
|
8621
8682
|
const spatialdataZarrSchema = z.object({
|
|
8622
8683
|
// TODO: should `image` be a special schema
|
|
@@ -719,6 +719,13 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
719
719
|
embeddingType: string;
|
|
720
720
|
dims?: number[] | undefined;
|
|
721
721
|
}>, "many">]>>;
|
|
722
|
+
sampleEdges: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
path: z.ZodString;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
|
+
path: string;
|
|
726
|
+
}, {
|
|
727
|
+
path: string;
|
|
728
|
+
}>>;
|
|
722
729
|
}, "strip", z.ZodTypeAny, {
|
|
723
730
|
obsLabels?: {
|
|
724
731
|
path: string;
|
|
@@ -765,6 +772,9 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
765
772
|
embeddingType: string;
|
|
766
773
|
dims?: number[] | undefined;
|
|
767
774
|
}[] | undefined;
|
|
775
|
+
sampleEdges?: {
|
|
776
|
+
path: string;
|
|
777
|
+
} | undefined;
|
|
768
778
|
}, {
|
|
769
779
|
obsLabels?: {
|
|
770
780
|
path: string;
|
|
@@ -811,6 +821,9 @@ export declare const anndataZarrSchema: z.ZodObject<{
|
|
|
811
821
|
embeddingType: string;
|
|
812
822
|
dims?: number[] | undefined;
|
|
813
823
|
}[] | undefined;
|
|
824
|
+
sampleEdges?: {
|
|
825
|
+
path: string;
|
|
826
|
+
} | undefined;
|
|
814
827
|
}>;
|
|
815
828
|
export declare const spatialdataZarrSchema: z.ZodObject<{
|
|
816
829
|
image: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyFxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AACH,eAAO,MAAM,iCAAiC;;;;;;EAK5C,CAAC;AACH,eAAO,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtB,CAAC"}
|
|
@@ -228,6 +228,7 @@ export const anndataZarrSchema = z.object({
|
|
|
228
228
|
annDataObsEmbedding,
|
|
229
229
|
z.array(annDataConvenienceObsEmbeddingItem),
|
|
230
230
|
]),
|
|
231
|
+
sampleEdges: annDataSampleEdges,
|
|
231
232
|
}).partial();
|
|
232
233
|
export const spatialdataZarrSchema = z.object({
|
|
233
234
|
// TODO: should `image` be a special schema
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.7",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"dist-tsc"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@types/lodash": "^4.14.191",
|
|
20
19
|
"@types/lodash-es": "^4.17.7",
|
|
21
20
|
"@types/semver": "^7.3.13",
|
|
22
21
|
"@types/uuid": "^9.0.1",
|
|
@@ -24,10 +23,10 @@
|
|
|
24
23
|
"semver": "^7.3.8",
|
|
25
24
|
"uuid": "^9.0.0",
|
|
26
25
|
"zod": "^3.21.4",
|
|
27
|
-
"@vitessce/constants": "3.4.
|
|
28
|
-
"@vitessce/constants-internal": "3.4.
|
|
29
|
-
"@vitessce/plugins": "3.4.
|
|
30
|
-
"@vitessce/utils": "3.4.
|
|
26
|
+
"@vitessce/constants": "3.4.7",
|
|
27
|
+
"@vitessce/constants-internal": "3.4.7",
|
|
28
|
+
"@vitessce/plugins": "3.4.7",
|
|
29
|
+
"@vitessce/utils": "3.4.7"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED