@dicebear/core 5.0.0-alpha.33 → 5.0.0-alpha.35

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/lib/schema.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { JSONSchema7 } from 'json-schema';
2
- export declare const schema: JSONSchema7;
1
+ import { StyleSchema } from './types';
2
+ export declare const schema: StyleSchema;
package/lib/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { JSONSchema7 } from 'json-schema';
2
1
  import type { Result as ConverterResult } from '@dicebear/converter';
3
2
  export interface ResultConvertOptions {
4
3
  includeExif?: boolean;
@@ -31,7 +30,21 @@ export interface Prng {
31
30
  pick<T>(arr: T[]): T | undefined;
32
31
  string(length: number, characters?: string): string;
33
32
  }
34
- export declare type StyleSchema = JSONSchema7;
33
+ export declare type StyleSchema = {
34
+ $schema?: string;
35
+ title?: string;
36
+ description?: string;
37
+ type?: 'array' | 'string' | 'object' | 'boolean' | 'integer' | 'number';
38
+ items?: StyleSchema;
39
+ enum?: (string | number | boolean)[];
40
+ maximum?: number;
41
+ minimum?: number;
42
+ pattern?: string;
43
+ minItems?: number;
44
+ maxItems?: number;
45
+ default?: unknown;
46
+ properties?: Record<string, StyleSchema>;
47
+ };
35
48
  export declare type StyleOptions<O extends {}> = Partial<O & Options>;
36
49
  export interface StyleCreateProps<O> {
37
50
  prng: Prng;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/core",
3
- "version": "5.0.0-alpha.33",
3
+ "version": "5.0.0-alpha.35",
4
4
  "description": "An avatar library for designers and developers.",
5
5
  "keywords": [
6
6
  "avatar",
@@ -31,8 +31,7 @@
31
31
  "test": "uvu tests"
32
32
  },
33
33
  "dependencies": {
34
- "@dicebear/converter": "^5.0.0-alpha.33",
35
- "@types/json-schema": "^7.0.7"
34
+ "@dicebear/converter": "^5.0.0-alpha.35"
36
35
  },
37
36
  "devDependencies": {
38
37
  "@tsconfig/recommended": "^1.0.1",
@@ -46,5 +45,5 @@
46
45
  "publishConfig": {
47
46
  "access": "public"
48
47
  },
49
- "gitHead": "88548ee882858c8871c477d83c3ed0bd227c64b0"
48
+ "gitHead": "e6f55ebe3a5b8a60394744d95533528bb8b119ef"
50
49
  }