@sprucelabs/schema 28.0.3 → 28.0.4
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/build/esm/fields/AbstractField.d.ts +1 -1
- package/build/esm/fields/ImageField.types.d.ts +8 -4
- package/build/esm/fields/ImageField.types.js +8 -10
- package/build/fields/AbstractField.d.ts +1 -1
- package/build/fields/ImageField.types.d.ts +8 -4
- package/build/fields/ImageField.types.js +8 -10
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export default abstract class AbstractField<F extends FieldDefinitions> implemen
|
|
|
36
36
|
} | {
|
|
37
37
|
relativeTo?: string | undefined;
|
|
38
38
|
} | {
|
|
39
|
-
requiredSizes: ("s" | "*" | "
|
|
39
|
+
requiredSizes: ("s" | "*" | "m" | "l" | "xl")[];
|
|
40
40
|
} | undefined;
|
|
41
41
|
get isRequired(): boolean;
|
|
42
42
|
get isPrivate(): boolean;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { FieldDefinition } from './field.static.types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Min dimension for each size
|
|
4
|
+
xl: 1024
|
|
5
|
+
l: 500
|
|
6
|
+
m: 60
|
|
7
|
+
s: 30
|
|
8
|
+
*/
|
|
9
|
+
export declare const requiredImageSizes: readonly ["s", "m", "l", "xl", "*"];
|
|
3
10
|
export declare type RequiredImageSize = typeof requiredImageSizes[number];
|
|
4
11
|
export interface ImageFieldValue {
|
|
5
12
|
name: string;
|
|
6
13
|
base64?: string;
|
|
7
|
-
xxsUri?: string;
|
|
8
|
-
xsUri?: string;
|
|
9
14
|
sUri?: string;
|
|
10
15
|
mUri?: string;
|
|
11
16
|
lUri?: string;
|
|
12
17
|
xlUri?: string;
|
|
13
|
-
xxlUri?: string;
|
|
14
18
|
}
|
|
15
19
|
export declare type ImageFieldDefinition = FieldDefinition<ImageFieldValue> & {
|
|
16
20
|
/** * .image - a great way to deal with file management */
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'*',
|
|
10
|
-
];
|
|
1
|
+
/**
|
|
2
|
+
* Min dimension for each size
|
|
3
|
+
xl: 1024
|
|
4
|
+
l: 500
|
|
5
|
+
m: 60
|
|
6
|
+
s: 30
|
|
7
|
+
*/
|
|
8
|
+
export const requiredImageSizes = ['s', 'm', 'l', 'xl', '*'];
|
|
@@ -36,7 +36,7 @@ export default abstract class AbstractField<F extends FieldDefinitions> implemen
|
|
|
36
36
|
} | {
|
|
37
37
|
relativeTo?: string | undefined;
|
|
38
38
|
} | {
|
|
39
|
-
requiredSizes: ("s" | "*" | "
|
|
39
|
+
requiredSizes: ("s" | "*" | "m" | "l" | "xl")[];
|
|
40
40
|
} | undefined;
|
|
41
41
|
get isRequired(): boolean;
|
|
42
42
|
get isPrivate(): boolean;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { FieldDefinition } from './field.static.types';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Min dimension for each size
|
|
4
|
+
xl: 1024
|
|
5
|
+
l: 500
|
|
6
|
+
m: 60
|
|
7
|
+
s: 30
|
|
8
|
+
*/
|
|
9
|
+
export declare const requiredImageSizes: readonly ["s", "m", "l", "xl", "*"];
|
|
3
10
|
export declare type RequiredImageSize = typeof requiredImageSizes[number];
|
|
4
11
|
export interface ImageFieldValue {
|
|
5
12
|
name: string;
|
|
6
13
|
base64?: string;
|
|
7
|
-
xxsUri?: string;
|
|
8
|
-
xsUri?: string;
|
|
9
14
|
sUri?: string;
|
|
10
15
|
mUri?: string;
|
|
11
16
|
lUri?: string;
|
|
12
17
|
xlUri?: string;
|
|
13
|
-
xxlUri?: string;
|
|
14
18
|
}
|
|
15
19
|
export declare type ImageFieldDefinition = FieldDefinition<ImageFieldValue> & {
|
|
16
20
|
/** * .image - a great way to deal with file management */
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.requiredImageSizes = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'*',
|
|
13
|
-
];
|
|
4
|
+
/**
|
|
5
|
+
* Min dimension for each size
|
|
6
|
+
xl: 1024
|
|
7
|
+
l: 500
|
|
8
|
+
m: 60
|
|
9
|
+
s: 30
|
|
10
|
+
*/
|
|
11
|
+
exports.requiredImageSizes = ['s', 'm', 'l', 'xl', '*'];
|