@talismn/orb 0.4.2 → 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/LICENSE +21 -676
- package/dist/index.d.mts +35 -30
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +35 -30
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +350 -222
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +324 -184
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,45 +1,50 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccountPlatform } from "@talismn/crypto";
|
|
3
|
+
//#region src/components/types.d.ts
|
|
5
4
|
type TalismanOrbProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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,
|
|
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
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AccountPlatform } from "@talismn/crypto";
|
|
3
|
+
//#region src/components/types.d.ts
|
|
5
4
|
type TalismanOrbProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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,
|
|
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"}
|