@dicebear/open-peeps 4.10.2 → 5.0.0-alpha.11

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 (64) hide show
  1. package/README.md +6 -5
  2. package/lib/colors/clothing.d.ts +2 -0
  3. package/lib/colors/clothing.js +9 -0
  4. package/lib/colors/hair.d.ts +2 -0
  5. package/lib/colors/hair.js +12 -0
  6. package/lib/colors/index.d.ts +3 -0
  7. package/lib/colors/index.js +3 -0
  8. package/lib/colors/skin.d.ts +2 -0
  9. package/lib/colors/skin.js +7 -0
  10. package/lib/components/accessories.d.ts +2 -0
  11. package/lib/components/accessories.js +10 -0
  12. package/lib/components/face.d.ts +2 -0
  13. package/lib/components/face.js +32 -0
  14. package/lib/components/facialHair.d.ts +2 -0
  15. package/lib/components/facialHair.js +18 -0
  16. package/lib/components/head.d.ts +2 -0
  17. package/lib/components/head.js +50 -0
  18. package/lib/components/index.d.ts +5 -0
  19. package/lib/components/index.js +5 -0
  20. package/lib/components/mask.d.ts +2 -0
  21. package/lib/components/mask.js +4 -0
  22. package/lib/core.d.ts +3 -0
  23. package/lib/core.js +64 -0
  24. package/lib/hooks/onPostCreate.d.ts +11 -0
  25. package/lib/hooks/onPostCreate.js +3 -0
  26. package/lib/hooks/onPreCreate.d.ts +9 -0
  27. package/lib/hooks/onPreCreate.js +3 -0
  28. package/lib/index.d.ts +13 -0
  29. package/lib/index.js +13 -0
  30. package/lib/meta/components.d.ts +4 -0
  31. package/lib/meta/components.js +22 -0
  32. package/lib/schema.d.ts +2 -0
  33. package/lib/schema.js +457 -0
  34. package/lib/types.d.ts +29 -0
  35. package/lib/types.js +1 -0
  36. package/lib/utils/getColors.d.ts +8 -0
  37. package/lib/utils/getColors.js +20 -0
  38. package/lib/utils/getComponents.d.ts +8 -0
  39. package/lib/utils/getComponents.js +39 -0
  40. package/lib/utils/pickColor.d.ts +9 -0
  41. package/lib/utils/pickColor.js +13 -0
  42. package/lib/utils/pickComponent.d.ts +9 -0
  43. package/lib/utils/pickComponent.js +14 -0
  44. package/package.json +21 -19
  45. package/dist/colors/clothing.d.ts +0 -2
  46. package/dist/colors/hair.d.ts +0 -2
  47. package/dist/colors/index.d.ts +0 -3
  48. package/dist/colors/skin.d.ts +0 -2
  49. package/dist/components/accessories.d.ts +0 -2
  50. package/dist/components/face.d.ts +0 -2
  51. package/dist/components/facialHair.d.ts +0 -2
  52. package/dist/components/head.d.ts +0 -2
  53. package/dist/components/index.d.ts +0 -5
  54. package/dist/components/mask.d.ts +0 -2
  55. package/dist/core.d.ts +0 -3
  56. package/dist/index.d.ts +0 -16
  57. package/dist/index.es.js +0 -380
  58. package/dist/index.js +0 -387
  59. package/dist/index.umd.js +0 -11
  60. package/dist/options.d.ts +0 -29
  61. package/dist/schema.d.ts +0 -2
  62. package/dist/static-types.d.ts +0 -16
  63. package/dist/utils/pickColor.d.ts +0 -3
  64. package/dist/utils/pickComponent.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/open-peeps",
3
- "version": "4.10.2",
3
+ "version": "5.0.0-alpha.11",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -13,34 +13,36 @@
13
13
  "url": "git+https://github.com/dicebear/dicebear.git"
14
14
  },
15
15
  "license": "MIT",
16
- "source": "src/index.ts",
17
- "main": "dist/index.js",
18
- "module": "dist/index.es.js",
19
- "browser": "dist/index.umd.js",
20
- "types": "dist/index.d.ts",
16
+ "type": "module",
17
+ "exports": "./lib/index.js",
18
+ "types": "./lib/index.d.ts",
21
19
  "files": [
22
20
  "LICENSE",
23
- "README.md",
24
- "dist"
21
+ "lib",
22
+ "README.md"
25
23
  ],
26
24
  "scripts": {
27
- "test": "jest",
25
+ "prebuild": "del-cli lib",
26
+ "build": "tsc",
28
27
  "prepublishOnly": "npm run build",
29
- "build": "dicebear-project build DiceBear.OpenPeeps"
28
+ "test": "uvu tests"
30
29
  },
31
30
  "devDependencies": {
32
- "@dicebear/avatars": "^4.10.2",
31
+ "@dicebear/core": "^5.0.0-alpha.11",
33
32
  "@tsconfig/recommended": "^1.0.0",
34
33
  "@types/jest": "^26.0.22",
35
- "@types/node": "^10.11.6",
36
- "dicebear-project": "^4.10.2",
37
- "jest": "^26.6.3",
38
- "ts-jest": "^26.5.4",
39
- "typescript": "^4.2.3",
40
- "utility-types": "^3.10.0"
34
+ "del-cli": "^4.0.1",
35
+ "typescript": "^4.5.2",
36
+ "uvu": "^0.5.2"
41
37
  },
42
38
  "peerDependencies": {
43
- "@dicebear/avatars": "^4.6.0"
39
+ "@dicebear/core": "^5.0.0-alpha.10"
44
40
  },
45
- "gitHead": "28ffc2046de961f814b3c5804c562dd318821a7b"
41
+ "engines": {
42
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "gitHead": "93e6f1be9fff392ded1f18c8320b6a0ca8e695c1"
46
48
  }
@@ -1,2 +0,0 @@
1
- import type { ColorGroup } from "../static-types";
2
- export declare const clothing: ColorGroup;
@@ -1,2 +0,0 @@
1
- import type { ColorGroup } from "../static-types";
2
- export declare const hair: ColorGroup;
@@ -1,3 +0,0 @@
1
- export { skin } from './skin';
2
- export { clothing } from './clothing';
3
- export { hair } from './hair';
@@ -1,2 +0,0 @@
1
- import type { ColorGroup } from "../static-types";
2
- export declare const skin: ColorGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const accessories: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const face: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const facialHair: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const head: ComponentGroup;
@@ -1,5 +0,0 @@
1
- export { head } from './head';
2
- export { face } from './face';
3
- export { facialHair } from './facialHair';
4
- export { mask } from './mask';
5
- export { accessories } from './accessories';
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const mask: ComponentGroup;
package/dist/core.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { Style } from '@dicebear/avatars';
2
- import type { Options } from './options';
3
- export declare const style: Style<Options>;
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- /*!
2
- * Open Peeps (@dicebear/open-peeps)
3
- *
4
- * Code licensed under MIT License.
5
- * Copyright (c) 2021 Florian Körner
6
- *
7
- * Design "Open Peeps" by Pablo Stanley licensed under CC0 1.0.
8
- * Source: https://www.openpeeps.com/
9
- * License: https://creativecommons.org/publicdomain/zero/1.0/
10
- */
11
- declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
12
- export { create, meta, schema };
13
- export { Options } from './options';
14
- declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
15
- /** @deprecated will be removed in Version 5.0 */
16
- export default _default;