@dicebear/personas 4.10.0 → 5.0.0-alpha.0

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/README.md CHANGED
@@ -1,10 +1,8 @@
1
- <h1 align="center"><img src="https://dicebear.com/api/personas/0.svg" width="124" /> <br />Personas by Draftbit</h1>
1
+ <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Personas</h1>
2
2
  <p align="center">
3
- <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear Avatars</a>.</strong><br />
3
+ <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
4
4
  <a href="https://personas.draftbit.com/">Personas by Draftbit</a>
5
5
  by Draftbit - draftbit.com
6
- licensed under
7
- <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
8
6
  </p>
9
7
 
10
8
  <p align="center">
@@ -1,2 +1,2 @@
1
- import type { ColorGroup } from "../static-types";
1
+ import type { ColorGroup } from '../static-types';
2
2
  export declare const clothing: ColorGroup;
@@ -1,2 +1,2 @@
1
- import type { ColorGroup } from "../static-types";
1
+ import type { ColorGroup } from '../static-types';
2
2
  export declare const hair: ColorGroup;
@@ -1,2 +1,2 @@
1
- import type { ColorGroup } from "../static-types";
1
+ import type { ColorGroup } from '../static-types';
2
2
  export declare const skin: ColorGroup;
package/dist/core.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Style } from '@dicebear/avatars';
1
+ import type { Style } from '@dicebear/core';
2
2
  import type { Options } from './options';
3
3
  export declare const style: Style<Options>;
@@ -1,11 +1,12 @@
1
- import { Prng, StyleOptions } from "@dicebear/avatars";
2
- import { Options } from "../options";
3
- import { ColorPickCollection, ComponentPickCollection } from "../static-types";
1
+ import { Prng, StyleOptions } from '@dicebear/core';
2
+ import { Options } from '../options';
3
+ import { ColorPickCollection, ComponentPickCollection } from '../static-types';
4
4
  declare type Props = {
5
5
  prng: Prng;
6
6
  options: StyleOptions<Options>;
7
7
  components: ComponentPickCollection;
8
8
  colors: ColorPickCollection;
9
+ preview: boolean;
9
10
  };
10
- export declare function onPostCreate({ prng, options, components, colors }: Props): void;
11
+ export declare function onPostCreate({ prng, options, components, colors, preview, }: Props): void;
11
12
  export {};
@@ -1,8 +1,9 @@
1
- import { Prng, StyleOptions } from "@dicebear/avatars";
2
- import { Options } from "../options";
1
+ import { Prng, StyleOptions } from '@dicebear/core';
2
+ import { Options } from '../options';
3
3
  declare type Props = {
4
4
  prng: Prng;
5
5
  options: StyleOptions<Options>;
6
+ preview: boolean;
6
7
  };
7
- export declare function onPreCreate({ prng, options }: Props): void;
8
+ export declare function onPreCreate({ prng, options, preview }: Props): void;
8
9
  export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Personas by Draftbit (@dicebear/personas)
2
+ * Personas (@dicebear/personas)
3
3
  *
4
4
  * Code licensed under MIT License.
5
5
  * Copyright (c) 2021 Florian Körner
@@ -8,9 +8,6 @@
8
8
  * Source: https://personas.draftbit.com/
9
9
  * License: https://creativecommons.org/licenses/by/4.0/
10
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 };
11
+ declare let create: import("@dicebear/core").StyleCreate<import("./options").Options>, preview: import("@dicebear/core").StylePreview<import("./options").Options> | undefined, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
12
+ export { create, preview, meta, schema };
13
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;