@sprucelabs/schema 28.0.5 → 28.0.6

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.
@@ -1,6 +1,6 @@
1
1
  import { FieldDefinition } from './field.static.types';
2
- declare const supportedTypes: readonly ["image/png", "image/jpeg", "application/pdf", "*"];
3
- export declare type SupportedFileType = typeof supportedTypes[number];
2
+ export declare const supportedFileTypes: readonly ["image/png", "image/jpeg", "application/pdf", "*"];
3
+ export declare type SupportedFileType = typeof supportedFileTypes[number];
4
4
  export interface FileFieldValue {
5
5
  name: string;
6
6
  type?: SupportedFileType;
@@ -14,4 +14,3 @@ export declare type FileFieldDefinition = FieldDefinition<FileFieldValue> & {
14
14
  acceptableTypes: SupportedFileType[];
15
15
  };
16
16
  };
17
- export {};
@@ -1,7 +1,6 @@
1
- const supportedTypes = [
1
+ export const supportedFileTypes = [
2
2
  'image/png',
3
3
  'image/jpeg',
4
4
  'application/pdf',
5
5
  '*',
6
6
  ];
7
- export {};
@@ -1,6 +1,6 @@
1
1
  import { FieldDefinition } from './field.static.types';
2
- declare const supportedTypes: readonly ["image/png", "image/jpeg", "application/pdf", "*"];
3
- export declare type SupportedFileType = typeof supportedTypes[number];
2
+ export declare const supportedFileTypes: readonly ["image/png", "image/jpeg", "application/pdf", "*"];
3
+ export declare type SupportedFileType = typeof supportedFileTypes[number];
4
4
  export interface FileFieldValue {
5
5
  name: string;
6
6
  type?: SupportedFileType;
@@ -14,4 +14,3 @@ export declare type FileFieldDefinition = FieldDefinition<FileFieldValue> & {
14
14
  acceptableTypes: SupportedFileType[];
15
15
  };
16
16
  };
17
- export {};
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const supportedTypes = [
3
+ exports.supportedFileTypes = void 0;
4
+ exports.supportedFileTypes = [
4
5
  'image/png',
5
6
  'image/jpeg',
6
7
  'application/pdf',
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!build/__tests__",
9
9
  "esm"
10
10
  ],
11
- "version": "28.0.5",
11
+ "version": "28.0.6",
12
12
  "main": "./build/index.js",
13
13
  "types": "./build/index.d.ts",
14
14
  "module": "./build/esm/index.js",