@morscherlab/mint-sdk 1.1.0-beta.8 → 1.1.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/dist/styles.css
CHANGED
|
@@ -124,9 +124,7 @@
|
|
|
124
124
|
.mint-button--sm {
|
|
125
125
|
padding: 0.375rem 0.75rem;
|
|
126
126
|
font-size: 0.875rem;
|
|
127
|
-
|
|
128
|
-
keeps the compact label from reading too heavy. Applies to all variants. */
|
|
129
|
-
font-weight: 400;
|
|
127
|
+
font-weight: 500;
|
|
130
128
|
min-height: var(--form-height-sm);
|
|
131
129
|
}
|
|
132
130
|
.mint-button--secondary.mint-button--sm {
|
|
@@ -21922,9 +21920,7 @@ code, pre {
|
|
|
21922
21920
|
.mint-button--sm {
|
|
21923
21921
|
padding: 0.375rem 0.75rem;
|
|
21924
21922
|
font-size: 0.875rem;
|
|
21925
|
-
|
|
21926
|
-
keeps the compact label from reading too heavy. Applies to all variants. */
|
|
21927
|
-
font-weight: 400;
|
|
21923
|
+
font-weight: 500;
|
|
21928
21924
|
min-height: var(--form-height-sm);
|
|
21929
21925
|
}
|
|
21930
21926
|
.mint-button--secondary.mint-button--sm {
|
|
@@ -9,8 +9,10 @@ export interface GeneratedJsonSchema {
|
|
|
9
9
|
enum?: unknown[];
|
|
10
10
|
minimum?: number;
|
|
11
11
|
maximum?: number;
|
|
12
|
+
exclusiveMinimum?: number;
|
|
12
13
|
minLength?: number;
|
|
13
14
|
maxLength?: number;
|
|
15
|
+
pattern?: string;
|
|
14
16
|
minItems?: number;
|
|
15
17
|
maxItems?: number;
|
|
16
18
|
writeOnly?: boolean;
|
|
@@ -19,7 +21,13 @@ export interface GeneratedJsonSchema {
|
|
|
19
21
|
required?: string[];
|
|
20
22
|
anyOf?: GeneratedJsonSchema[];
|
|
21
23
|
allOf?: GeneratedJsonSchema[];
|
|
24
|
+
oneOf?: GeneratedJsonSchema[];
|
|
25
|
+
prefixItems?: GeneratedJsonSchema[];
|
|
22
26
|
items?: GeneratedJsonSchema;
|
|
27
|
+
discriminator?: {
|
|
28
|
+
propertyName: string;
|
|
29
|
+
mapping?: Record<string, string>;
|
|
30
|
+
};
|
|
23
31
|
$ref?: string;
|
|
24
32
|
$defs?: Record<string, GeneratedJsonSchema>;
|
|
25
33
|
'x-mint-component'?: 'path';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morscherlab/mint-sdk",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MINT Platform SDK — Vue 3 components, composables, and types for plugin development. MINT = Mass-spec INtegrated Toolkit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,4 +20,43 @@ describe('GeneratedJsonSchema', () => {
|
|
|
20
20
|
|
|
21
21
|
expect(schema.writeOnly).toBe(true)
|
|
22
22
|
})
|
|
23
|
+
|
|
24
|
+
it('should accept tuple item schemas emitted by Pydantic', () => {
|
|
25
|
+
const schema: GeneratedJsonSchema = {
|
|
26
|
+
prefixItems: [{ type: 'string' }, { type: 'number' }],
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
expect(schema.prefixItems).toHaveLength(2)
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
it('should accept exclusive numeric bounds emitted by Pydantic', () => {
|
|
33
|
+
const schema: GeneratedJsonSchema = { exclusiveMinimum: 0 }
|
|
34
|
+
|
|
35
|
+
expect(schema.exclusiveMinimum).toBe(0)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
it('should accept string patterns emitted by Pydantic', () => {
|
|
39
|
+
const schema: GeneratedJsonSchema = { pattern: '^[0-9a-f]{64}$' }
|
|
40
|
+
|
|
41
|
+
expect(schema.pattern).toBe('^[0-9a-f]{64}$')
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
it('should accept discriminators emitted for Pydantic unions', () => {
|
|
45
|
+
const schema: GeneratedJsonSchema = {
|
|
46
|
+
discriminator: {
|
|
47
|
+
propertyName: 'kind',
|
|
48
|
+
mapping: { targeted: '#/$defs/TargetedResult' },
|
|
49
|
+
},
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
expect(schema.discriminator?.propertyName).toBe('kind')
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
it('should accept exclusive union branches emitted by Pydantic', () => {
|
|
56
|
+
const schema: GeneratedJsonSchema = {
|
|
57
|
+
oneOf: [{ $ref: '#/$defs/TargetedResult' }],
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
expect(schema.oneOf).toHaveLength(1)
|
|
61
|
+
})
|
|
23
62
|
})
|
|
@@ -139,9 +139,7 @@
|
|
|
139
139
|
.mint-button--sm {
|
|
140
140
|
padding: 0.375rem 0.75rem;
|
|
141
141
|
font-size: 0.875rem;
|
|
142
|
-
|
|
143
|
-
keeps the compact label from reading too heavy. Applies to all variants. */
|
|
144
|
-
font-weight: 400;
|
|
142
|
+
font-weight: 500;
|
|
145
143
|
min-height: var(--form-height-sm);
|
|
146
144
|
}
|
|
147
145
|
|
|
@@ -10,8 +10,10 @@ export interface GeneratedJsonSchema {
|
|
|
10
10
|
enum?: unknown[]
|
|
11
11
|
minimum?: number
|
|
12
12
|
maximum?: number
|
|
13
|
+
exclusiveMinimum?: number
|
|
13
14
|
minLength?: number
|
|
14
15
|
maxLength?: number
|
|
16
|
+
pattern?: string
|
|
15
17
|
minItems?: number
|
|
16
18
|
maxItems?: number
|
|
17
19
|
writeOnly?: boolean
|
|
@@ -20,7 +22,13 @@ export interface GeneratedJsonSchema {
|
|
|
20
22
|
required?: string[]
|
|
21
23
|
anyOf?: GeneratedJsonSchema[]
|
|
22
24
|
allOf?: GeneratedJsonSchema[]
|
|
25
|
+
oneOf?: GeneratedJsonSchema[]
|
|
26
|
+
prefixItems?: GeneratedJsonSchema[]
|
|
23
27
|
items?: GeneratedJsonSchema
|
|
28
|
+
discriminator?: {
|
|
29
|
+
propertyName: string
|
|
30
|
+
mapping?: Record<string, string>
|
|
31
|
+
}
|
|
24
32
|
$ref?: string
|
|
25
33
|
$defs?: Record<string, GeneratedJsonSchema>
|
|
26
34
|
'x-mint-component'?: 'path'
|