@talismn/orb 0.4.3 → 1.0.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/dist/index.d.mts CHANGED
@@ -1,45 +1,50 @@
1
- import { FC } from 'react';
2
- import * as _talismn_crypto from '@talismn/crypto';
3
- import { AccountPlatform } from '@talismn/crypto';
4
-
1
+ import { FC } from "react";
2
+ import { AccountPlatform } from "@talismn/crypto";
3
+ //#region src/components/types.d.ts
5
4
  type TalismanOrbProps = {
6
- seed: string;
7
- width?: number;
8
- height?: number;
9
- className?: string;
5
+ seed: string;
6
+ width?: number;
7
+ height?: number;
8
+ className?: string;
10
9
  };
11
-
10
+ //#endregion
11
+ //#region src/components/TalismanOrb.d.ts
12
12
  declare const TalismanOrb: FC<TalismanOrbProps>;
13
-
13
+ //#endregion
14
+ //#region src/components/TalismanOrbRectangle.d.ts
14
15
  declare const TalismanOrbRectangle: FC<TalismanOrbProps>;
15
-
16
+ //#endregion
17
+ //#region src/components/useTalismanOrb.d.ts
16
18
  declare const useTalismanOrb: (seed: string) => {
17
- bgColor1: string;
18
- bgColor2: string;
19
- glowColor: string;
20
- transform: string;
21
- cx: number;
22
- cy: number;
23
- platform: _talismn_crypto.AccountPlatform;
24
- id: string;
19
+ bgColor1: string;
20
+ bgColor2: string;
21
+ glowColor: string;
22
+ transform: string;
23
+ cx: number;
24
+ cy: number;
25
+ platform: import("@talismn/crypto").AccountPlatform;
26
+ id: string;
25
27
  };
26
-
28
+ //#endregion
29
+ //#region src/computeTalismanOrb.d.ts
27
30
  type TalismanOrbData = {
28
- bgColor1: string;
29
- bgColor2: string;
30
- glowColor: string;
31
- transform: string;
32
- cx: number;
33
- cy: number;
34
- platform: AccountPlatform;
31
+ bgColor1: string;
32
+ bgColor2: string;
33
+ glowColor: string;
34
+ transform: string;
35
+ cx: number;
36
+ cy: number;
37
+ platform: AccountPlatform;
35
38
  };
36
39
  /** Pure computation of orb visual data from a seed (address). No React dependency. */
37
40
  declare const computeTalismanOrb: (seed: string) => TalismanOrbData;
38
-
41
+ //#endregion
42
+ //#region src/util/getTalismanOrbDataUrl.d.ts
39
43
  /**
40
44
  * Returns a base64 encoded data url for the Talisman Orb svg.
41
45
  * Pure implementation — no React or react-dom dependency.
42
46
  */
43
47
  declare const getTalismanOrbDataUrl: (address: string) => `data:image/svg+xml;base64,${string}`;
44
-
45
- export { TalismanOrb, type TalismanOrbData, type TalismanOrbProps, TalismanOrbRectangle, computeTalismanOrb, getTalismanOrbDataUrl, useTalismanOrb };
48
+ //#endregion
49
+ export { TalismanOrb, TalismanOrbData, TalismanOrbProps, TalismanOrbRectangle, computeTalismanOrb, getTalismanOrbDataUrl, useTalismanOrb };
50
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/components/types.ts","../src/components/TalismanOrb.tsx","../src/components/TalismanOrbRectangle.tsx","../src/components/useTalismanOrb.ts","../src/computeTalismanOrb.ts","../src/util/getTalismanOrbDataUrl.ts"],"mappings":";;;KAAY;EAAqB;EAAc;EAAgB;EAAiB;;;;cCMnE,aAAa,GAAG;;;cCDhB,sBAAsB,GAAG;;;cCDzB,iBAAc;;;;;;;;;;;;KCkBf;EACV;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;;cAIC,qBAAkB,iBAAmB;;;;;;;cCZrC,wBAAqB"}
package/dist/index.d.ts CHANGED
@@ -1,45 +1,50 @@
1
- import { FC } from 'react';
2
- import * as _talismn_crypto from '@talismn/crypto';
3
- import { AccountPlatform } from '@talismn/crypto';
4
-
1
+ import { FC } from "react";
2
+ import { AccountPlatform } from "@talismn/crypto";
3
+ //#region src/components/types.d.ts
5
4
  type TalismanOrbProps = {
6
- seed: string;
7
- width?: number;
8
- height?: number;
9
- className?: string;
5
+ seed: string;
6
+ width?: number;
7
+ height?: number;
8
+ className?: string;
10
9
  };
11
-
10
+ //#endregion
11
+ //#region src/components/TalismanOrb.d.ts
12
12
  declare const TalismanOrb: FC<TalismanOrbProps>;
13
-
13
+ //#endregion
14
+ //#region src/components/TalismanOrbRectangle.d.ts
14
15
  declare const TalismanOrbRectangle: FC<TalismanOrbProps>;
15
-
16
+ //#endregion
17
+ //#region src/components/useTalismanOrb.d.ts
16
18
  declare const useTalismanOrb: (seed: string) => {
17
- bgColor1: string;
18
- bgColor2: string;
19
- glowColor: string;
20
- transform: string;
21
- cx: number;
22
- cy: number;
23
- platform: _talismn_crypto.AccountPlatform;
24
- id: string;
19
+ bgColor1: string;
20
+ bgColor2: string;
21
+ glowColor: string;
22
+ transform: string;
23
+ cx: number;
24
+ cy: number;
25
+ platform: import("@talismn/crypto").AccountPlatform;
26
+ id: string;
25
27
  };
26
-
28
+ //#endregion
29
+ //#region src/computeTalismanOrb.d.ts
27
30
  type TalismanOrbData = {
28
- bgColor1: string;
29
- bgColor2: string;
30
- glowColor: string;
31
- transform: string;
32
- cx: number;
33
- cy: number;
34
- platform: AccountPlatform;
31
+ bgColor1: string;
32
+ bgColor2: string;
33
+ glowColor: string;
34
+ transform: string;
35
+ cx: number;
36
+ cy: number;
37
+ platform: AccountPlatform;
35
38
  };
36
39
  /** Pure computation of orb visual data from a seed (address). No React dependency. */
37
40
  declare const computeTalismanOrb: (seed: string) => TalismanOrbData;
38
-
41
+ //#endregion
42
+ //#region src/util/getTalismanOrbDataUrl.d.ts
39
43
  /**
40
44
  * Returns a base64 encoded data url for the Talisman Orb svg.
41
45
  * Pure implementation — no React or react-dom dependency.
42
46
  */
43
47
  declare const getTalismanOrbDataUrl: (address: string) => `data:image/svg+xml;base64,${string}`;
44
-
45
- export { TalismanOrb, type TalismanOrbData, type TalismanOrbProps, TalismanOrbRectangle, computeTalismanOrb, getTalismanOrbDataUrl, useTalismanOrb };
48
+ //#endregion
49
+ export { TalismanOrb, TalismanOrbData, TalismanOrbProps, TalismanOrbRectangle, computeTalismanOrb, getTalismanOrbDataUrl, useTalismanOrb };
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/types.ts","../src/components/TalismanOrb.tsx","../src/components/TalismanOrbRectangle.tsx","../src/components/useTalismanOrb.ts","../src/computeTalismanOrb.ts","../src/util/getTalismanOrbDataUrl.ts"],"mappings":";;;KAAY;EAAqB;EAAc;EAAgB;EAAiB;;;;cCMnE,aAAa,GAAG;;;cCDhB,sBAAsB,GAAG;;;cCDzB,iBAAc;;;;;;;;;;;;KCkBf;EACV;EACA;EACA;EACA;EACA;EACA;EACA,UAAU;;;cAIC,qBAAkB,iBAAmB;;;;;;;cCZrC,wBAAqB"}