@xyo-network/react-storybook 2.28.10 → 2.29.0-rc.3

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.
@@ -0,0 +1,3 @@
1
+ import { DecoratorFn } from '@storybook/react';
2
+ export declare const WithMapboxSetup: DecoratorFn;
3
+ //# sourceMappingURL=WithMapboxSetup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithMapboxSetup.d.ts","sourceRoot":"","sources":["../../src/WithMapboxSetup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,eAAO,MAAM,eAAe,EAAE,WAM7B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { MapboxAccessTokenProvider } from '@xyo-network/react-map';
3
+ export const WithMapboxSetup = (Story, context) => {
4
+ return (_jsx(MapboxAccessTokenProvider, { defaultAccessToken: process.env.STORYBOOK_MAPBOX_TOKEN, children: _jsx(Story, { ...context }) }));
5
+ };
6
+ //# sourceMappingURL=WithMapboxSetup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithMapboxSetup.js","sourceRoot":"","sources":["../../src/WithMapboxSetup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAElE,MAAM,CAAC,MAAM,eAAe,GAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAC7D,OAAO,CACL,KAAC,yBAAyB,IAAC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,YAC/E,KAAC,KAAK,OAAK,OAAO,GAAI,GACI,CAC7B,CAAA;AACH,CAAC,CAAA"}
@@ -2,9 +2,11 @@ export * from './archivistApiDecorator';
2
2
  export * from './authDecorator';
3
3
  export * from './DeprecateStory';
4
4
  export * from './sampleBlock';
5
+ export * from './sampleCoinGeckoPayload';
5
6
  export * from './samplePayload';
6
7
  export * from './sampleUniswapPayload';
7
8
  export * from './useAppThemeDecorator';
9
+ export * from './WithMapboxSetup';
8
10
  export * from './WrappedArgs';
9
11
  export * from './WrappedAuthComponent';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
package/dist/esm/index.js CHANGED
@@ -2,9 +2,11 @@ export * from './archivistApiDecorator';
2
2
  export * from './authDecorator';
3
3
  export * from './DeprecateStory';
4
4
  export * from './sampleBlock';
5
+ export * from './sampleCoinGeckoPayload';
5
6
  export * from './samplePayload';
6
7
  export * from './sampleUniswapPayload';
7
8
  export * from './useAppThemeDecorator';
9
+ export * from './WithMapboxSetup';
8
10
  export * from './WrappedArgs';
9
11
  export * from './WrappedAuthComponent';
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,73 @@
1
+ export declare const sampleCoinGeckoPayload: {
2
+ assets: {
3
+ ada: {
4
+ btc: number;
5
+ eth: number;
6
+ eur: number;
7
+ usd: number;
8
+ };
9
+ btc: {
10
+ btc: number;
11
+ eth: number;
12
+ eur: number;
13
+ usd: number;
14
+ };
15
+ busd: {
16
+ btc: number;
17
+ eth: number;
18
+ eur: number;
19
+ usd: number;
20
+ };
21
+ doge: {
22
+ btc: number;
23
+ eth: number;
24
+ eur: number;
25
+ usd: number;
26
+ };
27
+ dot: {
28
+ btc: number;
29
+ eth: number;
30
+ eur: number;
31
+ usd: number;
32
+ };
33
+ eth: {
34
+ btc: number;
35
+ eth: number;
36
+ eur: number;
37
+ usd: number;
38
+ };
39
+ sol: {
40
+ btc: number;
41
+ eth: number;
42
+ eur: number;
43
+ usd: number;
44
+ };
45
+ usdc: {
46
+ btc: number;
47
+ eth: number;
48
+ eur: number;
49
+ usd: number;
50
+ };
51
+ usdt: {
52
+ btc: number;
53
+ eth: number;
54
+ eur: number;
55
+ usd: number;
56
+ };
57
+ wbtc: {
58
+ btc: number;
59
+ eth: number;
60
+ eur: number;
61
+ usd: number;
62
+ };
63
+ xyo: {
64
+ btc: number;
65
+ eth: number;
66
+ eur: number;
67
+ usd: number;
68
+ };
69
+ };
70
+ schema: string;
71
+ timestamp: number;
72
+ };
73
+ //# sourceMappingURL=sampleCoinGeckoPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleCoinGeckoPayload.d.ts","sourceRoot":"","sources":["../../src/sampleCoinGeckoPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuElC,CAAA"}
@@ -0,0 +1,73 @@
1
+ export const sampleCoinGeckoPayload = {
2
+ assets: {
3
+ ada: {
4
+ btc: 0.00002121,
5
+ eth: 0.00028602,
6
+ eur: 0.455045,
7
+ usd: 0.451912,
8
+ },
9
+ btc: {
10
+ btc: 1,
11
+ eth: 13.480925,
12
+ eur: 21444,
13
+ usd: 21297,
14
+ },
15
+ busd: {
16
+ btc: 0.00004691,
17
+ eth: 0.00063254,
18
+ eur: 1.006,
19
+ usd: 0.999271,
20
+ },
21
+ doge: {
22
+ btc: 0.00000315,
23
+ eth: 0.00004251,
24
+ eur: 0.067639,
25
+ usd: 0.067173,
26
+ },
27
+ dot: {
28
+ btc: 0.00033957,
29
+ eth: 0.00457909,
30
+ eur: 7.28,
31
+ usd: 7.23,
32
+ },
33
+ eth: {
34
+ btc: 0.07416836,
35
+ eth: 1,
36
+ eur: 1590.95,
37
+ usd: 1580,
38
+ },
39
+ sol: {
40
+ btc: 0.00162396,
41
+ eth: 0.02189873,
42
+ eur: 34.83,
43
+ usd: 34.59,
44
+ },
45
+ usdc: {
46
+ btc: 0.00004691,
47
+ eth: 0.00063259,
48
+ eur: 1.006,
49
+ usd: 0.999341,
50
+ },
51
+ usdt: {
52
+ btc: 0.00004697,
53
+ eth: 0.00063328,
54
+ eur: 1.008,
55
+ usd: 1.001,
56
+ },
57
+ wbtc: {
58
+ btc: 0.99985708,
59
+ eth: 13.482839,
60
+ eur: 21447,
61
+ usd: 21300,
62
+ },
63
+ xyo: {
64
+ btc: 4.06347e-7,
65
+ eth: 0.00000548,
66
+ eur: 0.00871642,
67
+ usd: 0.0086564,
68
+ },
69
+ },
70
+ schema: 'network.xyo.crypto.market.coingecko',
71
+ timestamp: 1661188759757,
72
+ };
73
+ //# sourceMappingURL=sampleCoinGeckoPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleCoinGeckoPayload.js","sourceRoot":"","sources":["../../src/sampleCoinGeckoPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE;QACN,GAAG,EAAE;YACH,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,QAAQ;SACd;QACD,GAAG,EAAE;YACH,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,KAAK;SACX;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,QAAQ;SACd;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,QAAQ;SACd;QACD,GAAG,EAAE;YACH,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;SACV;QACD,GAAG,EAAE;YACH,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,OAAO;YACZ,GAAG,EAAE,IAAI;SACV;QACD,GAAG,EAAE;YACH,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,KAAK;SACX;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,QAAQ;SACd;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,KAAK;SACX;QACD,IAAI,EAAE;YACJ,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,KAAK;YACV,GAAG,EAAE,KAAK;SACX;QACD,GAAG,EAAE;YACH,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,UAAU;YACf,GAAG,EAAE,SAAS;SACf;KACF;IACD,MAAM,EAAE,qCAAqC;IAC7C,SAAS,EAAE,aAAa;CACzB,CAAA"}
package/package.json CHANGED
@@ -12,18 +12,19 @@
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.0",
14
14
  "@emotion/styled": "^11.10.0",
15
- "@mui/material": "^5.10.1",
15
+ "@mui/material": "^5.10.2",
16
16
  "@storybook/react": "^6.5.10",
17
17
  "@xylabs/react-flexbox": "^2.14.13",
18
18
  "@xylabs/react-invertable-theme": "^2.14.13",
19
19
  "@xylabs/react-shared": "^2.14.13",
20
- "@xyo-network/boundwitness": "^2.26.19",
21
- "@xyo-network/core": "^2.26.19",
22
- "@xyo-network/payload": "^2.26.19",
23
- "@xyo-network/react-archivist-api": "^2.28.10",
24
- "@xyo-network/react-auth": "^2.28.10",
25
- "@xyo-network/react-theme": "^2.28.10",
26
- "@xyo-network/react-wallet-service": "^2.28.10",
20
+ "@xyo-network/boundwitness": "^2.27.0-rc.10",
21
+ "@xyo-network/core": "^2.27.0-rc.10",
22
+ "@xyo-network/payload": "^2.27.0-rc.10",
23
+ "@xyo-network/react-archivist-api": "^2.29.0-rc.3",
24
+ "@xyo-network/react-auth": "^2.29.0-rc.3",
25
+ "@xyo-network/react-map": "^2.29.0-rc.2",
26
+ "@xyo-network/react-theme": "^2.29.0-rc.3",
27
+ "@xyo-network/react-wallet-service": "^2.29.0-rc.3",
27
28
  "lodash": "^4.17.21",
28
29
  "react": "^18.2.0",
29
30
  "react-dom": "^18.2.0",
@@ -34,7 +35,7 @@
34
35
  "description": "Common React library for all XYO projects that use React",
35
36
  "devDependencies": {
36
37
  "@types/lodash": "^4.14.184",
37
- "@xylabs/tsconfig-dom": "^2.5.122"
38
+ "@xylabs/tsconfig-dom": "^2.5.123"
38
39
  },
39
40
  "browser": "dist/esm/index.js",
40
41
  "docs": "dist/docs.json",
@@ -78,5 +79,6 @@
78
79
  },
79
80
  "sideEffects": false,
80
81
  "types": "dist/esm/index.d.ts",
81
- "version": "2.28.10"
82
+ "version": "2.29.0-rc.3",
83
+ "stableVersion": "2.28.10"
82
84
  }
@@ -0,0 +1,10 @@
1
+ import { DecoratorFn } from '@storybook/react'
2
+ import { MapboxAccessTokenProvider } from '@xyo-network/react-map'
3
+
4
+ export const WithMapboxSetup: DecoratorFn = (Story, context) => {
5
+ return (
6
+ <MapboxAccessTokenProvider defaultAccessToken={process.env.STORYBOOK_MAPBOX_TOKEN}>
7
+ <Story {...context} />
8
+ </MapboxAccessTokenProvider>
9
+ )
10
+ }
package/src/index.ts CHANGED
@@ -2,8 +2,10 @@ export * from './archivistApiDecorator'
2
2
  export * from './authDecorator'
3
3
  export * from './DeprecateStory'
4
4
  export * from './sampleBlock'
5
+ export * from './sampleCoinGeckoPayload'
5
6
  export * from './samplePayload'
6
7
  export * from './sampleUniswapPayload'
7
8
  export * from './useAppThemeDecorator'
9
+ export * from './WithMapboxSetup'
8
10
  export * from './WrappedArgs'
9
11
  export * from './WrappedAuthComponent'
@@ -0,0 +1,72 @@
1
+ export const sampleCoinGeckoPayload = {
2
+ assets: {
3
+ ada: {
4
+ btc: 0.00002121,
5
+ eth: 0.00028602,
6
+ eur: 0.455045,
7
+ usd: 0.451912,
8
+ },
9
+ btc: {
10
+ btc: 1,
11
+ eth: 13.480925,
12
+ eur: 21444,
13
+ usd: 21297,
14
+ },
15
+ busd: {
16
+ btc: 0.00004691,
17
+ eth: 0.00063254,
18
+ eur: 1.006,
19
+ usd: 0.999271,
20
+ },
21
+ doge: {
22
+ btc: 0.00000315,
23
+ eth: 0.00004251,
24
+ eur: 0.067639,
25
+ usd: 0.067173,
26
+ },
27
+ dot: {
28
+ btc: 0.00033957,
29
+ eth: 0.00457909,
30
+ eur: 7.28,
31
+ usd: 7.23,
32
+ },
33
+ eth: {
34
+ btc: 0.07416836,
35
+ eth: 1,
36
+ eur: 1590.95,
37
+ usd: 1580,
38
+ },
39
+ sol: {
40
+ btc: 0.00162396,
41
+ eth: 0.02189873,
42
+ eur: 34.83,
43
+ usd: 34.59,
44
+ },
45
+ usdc: {
46
+ btc: 0.00004691,
47
+ eth: 0.00063259,
48
+ eur: 1.006,
49
+ usd: 0.999341,
50
+ },
51
+ usdt: {
52
+ btc: 0.00004697,
53
+ eth: 0.00063328,
54
+ eur: 1.008,
55
+ usd: 1.001,
56
+ },
57
+ wbtc: {
58
+ btc: 0.99985708,
59
+ eth: 13.482839,
60
+ eur: 21447,
61
+ usd: 21300,
62
+ },
63
+ xyo: {
64
+ btc: 4.06347e-7,
65
+ eth: 0.00000548,
66
+ eur: 0.00871642,
67
+ usd: 0.0086564,
68
+ },
69
+ },
70
+ schema: 'network.xyo.crypto.market.coingecko',
71
+ timestamp: 1661188759757,
72
+ }