@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.
Files changed (3) hide show
  1. package/index.d.cts +21 -10
  2. package/index.d.ts +21 -10
  3. 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 dynamic input control.
127
+ * Hints for generating a date input control.
126
128
  */
127
- type DynamicHint = {
128
- type: "text";
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 date input control.
139
+ * Hints for generating a code input control (e.g., for code snippets or scripts).
135
140
  */
136
- type DateHint = {
137
- type: "date" | "datetime" | "time";
141
+ type CodeHint = {
142
+ type: "code";
138
143
  label?: string;
144
+ language?: string;
139
145
  placeholder?: string;
140
- min?: string;
141
- max?: string;
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 | DynamicHint | DateHint;
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 DynamicHint, 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 };
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 dynamic input control.
127
+ * Hints for generating a date input control.
126
128
  */
127
- type DynamicHint = {
128
- type: "text";
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 date input control.
139
+ * Hints for generating a code input control (e.g., for code snippets or scripts).
135
140
  */
136
- type DateHint = {
137
- type: "date" | "datetime" | "time";
141
+ type CodeHint = {
142
+ type: "code";
138
143
  label?: string;
144
+ language?: string;
139
145
  placeholder?: string;
140
- min?: string;
141
- max?: string;
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 | DynamicHint | DateHint;
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 DynamicHint, 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 };
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asaidimu/anansi",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "A toolkit for advanced data modelling",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",