@asaidimu/anansi 1.6.5 → 1.6.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.
- package/index.d.cts +21 -10
- package/index.d.ts +21 -10
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -16,9 +16,11 @@ import { FieldValues, ResolverOptions, ResolverResult } from 'react-hook-form';
|
|
|
16
16
|
*/
|
|
17
17
|
type FileHint = {
|
|
18
18
|
type: "file";
|
|
19
|
+
subtype: "video" | "audio" | "image" | "pdf" | "doc" | "txt";
|
|
19
20
|
label?: string;
|
|
20
21
|
embed?: boolean;
|
|
21
22
|
mimes?: string | string[];
|
|
23
|
+
preview?: boolean;
|
|
22
24
|
size?: {
|
|
23
25
|
max?: number;
|
|
24
26
|
min?: number;
|
|
@@ -122,30 +124,39 @@ type ObjectHint = {
|
|
|
122
124
|
ignore?: boolean;
|
|
123
125
|
};
|
|
124
126
|
/**
|
|
125
|
-
* Hints for generating a
|
|
127
|
+
* Hints for generating a date input control.
|
|
126
128
|
*/
|
|
127
|
-
type
|
|
128
|
-
type: "
|
|
129
|
+
type DateHint = {
|
|
130
|
+
type: "date" | "datetime" | "time";
|
|
129
131
|
label?: string;
|
|
132
|
+
placeholder?: string;
|
|
133
|
+
min?: string;
|
|
134
|
+
max?: string;
|
|
130
135
|
group?: string;
|
|
131
136
|
ignore?: boolean;
|
|
132
137
|
};
|
|
133
138
|
/**
|
|
134
|
-
* Hints for generating a
|
|
139
|
+
* Hints for generating a code input control (e.g., for code snippets or scripts).
|
|
135
140
|
*/
|
|
136
|
-
type
|
|
137
|
-
type: "
|
|
141
|
+
type CodeHint = {
|
|
142
|
+
type: "code";
|
|
138
143
|
label?: string;
|
|
144
|
+
language?: string;
|
|
139
145
|
placeholder?: string;
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
readonly?: boolean;
|
|
147
|
+
editorOptions?: {
|
|
148
|
+
lineNumbers?: boolean;
|
|
149
|
+
wordWrap?: boolean;
|
|
150
|
+
minimap?: boolean;
|
|
151
|
+
};
|
|
142
152
|
group?: string;
|
|
143
153
|
ignore?: boolean;
|
|
144
154
|
};
|
|
145
155
|
/**
|
|
146
156
|
* Union type for all possible input hints.
|
|
157
|
+
* Note: DynamicHint removed to avoid overlap with TextHint; use TextHint for generic text needs.
|
|
147
158
|
*/
|
|
148
|
-
type InputHint = FileHint | TextHint | SecretHint | NumberHint | BooleanHint | EnumHint | ArrayHint | SetHint | ObjectHint |
|
|
159
|
+
type InputHint = FileHint | TextHint | SecretHint | NumberHint | BooleanHint | EnumHint | ArrayHint | SetHint | ObjectHint | DateHint | CodeHint;
|
|
149
160
|
/**
|
|
150
161
|
* Defines metadata for a group of inputs at the schema level.
|
|
151
162
|
*/
|
|
@@ -1869,4 +1880,4 @@ declare function docgen(schema: SchemaDefinition, options?: {
|
|
|
1869
1880
|
faker?: Faker;
|
|
1870
1881
|
}): string;
|
|
1871
1882
|
|
|
1872
|
-
export { type ArrayHint, type BooleanHint, type Constraint, type ConstraintGroup, type ConstraintParameters, type ConstraintsMap, type DataTransform, type DateHint, type
|
|
1883
|
+
export { type ArrayHint, type BooleanHint, type CodeHint, type Constraint, type ConstraintGroup, type ConstraintParameters, type ConstraintsMap, type DataTransform, type DateHint, type EnumHint, type FieldDefinition, type FieldGroup, type FieldSchema, type FieldType, type FileHint, type FunctionMap, type GroupDefinition, type IndexDefinition, type IndexType, type InputHint, JsonPatchError, type LogicalOperator, type Migration, MigrationEngine, type MigrationEngineInterface, MigrationError, MigrationErrorCode, type MigrationMetadata, type NestedSchemaDefinition, type NumberHint, type ObjectHint, type PartialIndexCondition, type PatchOperation, type Persistence, type PersistenceCollection, type PersistenceEvent, type PersistenceEventType, type PersistenceTransaction, type Predicate, type PredicateMap, type PredicateName, type PredicateParameters, type RegistryLock, type RegistryMetadata, type RemoteRepository, type Schema, type SchemaChange, type SchemaConstraint, type SchemaDefinition, type SchemaEvent, type SchemaEventType, type SchemaHint, type SchemaIndex, type SchemaMetadata, type SchemaMigrationHelper, SchemaRegistry, type SchemaRegistryInterface, type SchemaVersion, type SecretHint, type SetHint, type TextHint, type TransformFunction, applyPatch, calculateNextVersion, compareSemanticVersions, createGitSchemaRegistry, createPatch, createSchemaMigrationHelper, createStandardSchemaValidator, deepMerge, docgen, extractInputFieldGroups, formResolver, generateSHA256Hash, normalizePath, schemaChangeToPatch, schemaDefaults, schemaToTypes, serializeParams, sortSemanticVars, validate, validateMigration, validateSchemaChange, validateSchemaDefinition };
|
package/index.d.ts
CHANGED
|
@@ -16,9 +16,11 @@ import { FieldValues, ResolverOptions, ResolverResult } from 'react-hook-form';
|
|
|
16
16
|
*/
|
|
17
17
|
type FileHint = {
|
|
18
18
|
type: "file";
|
|
19
|
+
subtype: "video" | "audio" | "image" | "pdf" | "doc" | "txt";
|
|
19
20
|
label?: string;
|
|
20
21
|
embed?: boolean;
|
|
21
22
|
mimes?: string | string[];
|
|
23
|
+
preview?: boolean;
|
|
22
24
|
size?: {
|
|
23
25
|
max?: number;
|
|
24
26
|
min?: number;
|
|
@@ -122,30 +124,39 @@ type ObjectHint = {
|
|
|
122
124
|
ignore?: boolean;
|
|
123
125
|
};
|
|
124
126
|
/**
|
|
125
|
-
* Hints for generating a
|
|
127
|
+
* Hints for generating a date input control.
|
|
126
128
|
*/
|
|
127
|
-
type
|
|
128
|
-
type: "
|
|
129
|
+
type DateHint = {
|
|
130
|
+
type: "date" | "datetime" | "time";
|
|
129
131
|
label?: string;
|
|
132
|
+
placeholder?: string;
|
|
133
|
+
min?: string;
|
|
134
|
+
max?: string;
|
|
130
135
|
group?: string;
|
|
131
136
|
ignore?: boolean;
|
|
132
137
|
};
|
|
133
138
|
/**
|
|
134
|
-
* Hints for generating a
|
|
139
|
+
* Hints for generating a code input control (e.g., for code snippets or scripts).
|
|
135
140
|
*/
|
|
136
|
-
type
|
|
137
|
-
type: "
|
|
141
|
+
type CodeHint = {
|
|
142
|
+
type: "code";
|
|
138
143
|
label?: string;
|
|
144
|
+
language?: string;
|
|
139
145
|
placeholder?: string;
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
readonly?: boolean;
|
|
147
|
+
editorOptions?: {
|
|
148
|
+
lineNumbers?: boolean;
|
|
149
|
+
wordWrap?: boolean;
|
|
150
|
+
minimap?: boolean;
|
|
151
|
+
};
|
|
142
152
|
group?: string;
|
|
143
153
|
ignore?: boolean;
|
|
144
154
|
};
|
|
145
155
|
/**
|
|
146
156
|
* Union type for all possible input hints.
|
|
157
|
+
* Note: DynamicHint removed to avoid overlap with TextHint; use TextHint for generic text needs.
|
|
147
158
|
*/
|
|
148
|
-
type InputHint = FileHint | TextHint | SecretHint | NumberHint | BooleanHint | EnumHint | ArrayHint | SetHint | ObjectHint |
|
|
159
|
+
type InputHint = FileHint | TextHint | SecretHint | NumberHint | BooleanHint | EnumHint | ArrayHint | SetHint | ObjectHint | DateHint | CodeHint;
|
|
149
160
|
/**
|
|
150
161
|
* Defines metadata for a group of inputs at the schema level.
|
|
151
162
|
*/
|
|
@@ -1869,4 +1880,4 @@ declare function docgen(schema: SchemaDefinition, options?: {
|
|
|
1869
1880
|
faker?: Faker;
|
|
1870
1881
|
}): string;
|
|
1871
1882
|
|
|
1872
|
-
export { type ArrayHint, type BooleanHint, type Constraint, type ConstraintGroup, type ConstraintParameters, type ConstraintsMap, type DataTransform, type DateHint, type
|
|
1883
|
+
export { type ArrayHint, type BooleanHint, type CodeHint, type Constraint, type ConstraintGroup, type ConstraintParameters, type ConstraintsMap, type DataTransform, type DateHint, type EnumHint, type FieldDefinition, type FieldGroup, type FieldSchema, type FieldType, type FileHint, type FunctionMap, type GroupDefinition, type IndexDefinition, type IndexType, type InputHint, JsonPatchError, type LogicalOperator, type Migration, MigrationEngine, type MigrationEngineInterface, MigrationError, MigrationErrorCode, type MigrationMetadata, type NestedSchemaDefinition, type NumberHint, type ObjectHint, type PartialIndexCondition, type PatchOperation, type Persistence, type PersistenceCollection, type PersistenceEvent, type PersistenceEventType, type PersistenceTransaction, type Predicate, type PredicateMap, type PredicateName, type PredicateParameters, type RegistryLock, type RegistryMetadata, type RemoteRepository, type Schema, type SchemaChange, type SchemaConstraint, type SchemaDefinition, type SchemaEvent, type SchemaEventType, type SchemaHint, type SchemaIndex, type SchemaMetadata, type SchemaMigrationHelper, SchemaRegistry, type SchemaRegistryInterface, type SchemaVersion, type SecretHint, type SetHint, type TextHint, type TransformFunction, applyPatch, calculateNextVersion, compareSemanticVersions, createGitSchemaRegistry, createPatch, createSchemaMigrationHelper, createStandardSchemaValidator, deepMerge, docgen, extractInputFieldGroups, formResolver, generateSHA256Hash, normalizePath, schemaChangeToPatch, schemaDefaults, schemaToTypes, serializeParams, sortSemanticVars, validate, validateMigration, validateSchemaChange, validateSchemaDefinition };
|