@agg-build/ui 1.2.2 → 1.2.4
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/{chunk-FDTLV74F.mjs → chunk-6FVYER7E.mjs} +63 -66
- package/dist/{chunk-TBKDLNOE.mjs → chunk-ISAU6HX5.mjs} +1 -1
- package/dist/{chunk-5FXMHTVR.mjs → chunk-OFFJNHAG.mjs} +1 -1
- package/dist/{chunk-E45WOOMN.mjs → chunk-P2OOA3U3.mjs} +2 -2
- package/dist/{chunk-34L7ZKJW.mjs → chunk-PALIVBG3.mjs} +1 -2
- package/dist/{chunk-Q2BRDVBU.mjs → chunk-UCH7MMRN.mjs} +50 -41
- package/dist/{chunk-6IBEGR7C.mjs → chunk-VH3DMH77.mjs} +46 -34
- package/dist/events.js +1 -2
- package/dist/events.mjs +3 -3
- package/dist/index.js +271 -248
- package/dist/index.mjs +7 -7
- package/dist/modals.js +751 -740
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +104 -96
- package/dist/pages.mjs +6 -6
- package/dist/primitives.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +60 -63
- package/dist/trading.mjs +4 -4
- package/dist/types/shared/constants.d.mts +3 -2
- package/dist/types/shared/constants.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Static config for a token supported on a particular network. */
|
|
1
2
|
import type { SelectItem } from "../primitives/select";
|
|
2
3
|
export interface TokenConfig {
|
|
3
4
|
/** Unique identifier used as the select value (e.g. "USDC"). */
|
|
@@ -21,13 +22,13 @@ export interface NetworkConfig {
|
|
|
21
22
|
export declare const SUPPORTED_NETWORKS: NetworkConfig[];
|
|
22
23
|
/** Return the supported tokens for a given network value. */
|
|
23
24
|
export declare const getTokensForNetwork: (networkValue: string) => TokenConfig[];
|
|
24
|
-
/** Map local SUPPORTED_NETWORKS to Select items with iconUrl
|
|
25
|
+
/** Map local SUPPORTED_NETWORKS to Select items with iconUrl. */
|
|
25
26
|
export declare const mapNetworksToOptions: () => SelectItem[];
|
|
26
27
|
/** Default currency options shown when the caller does not provide any. */
|
|
27
28
|
export declare const DEFAULT_CURRENCY_OPTIONS: SelectItem[];
|
|
28
29
|
/** Add iconUrl to token options when missing, based on DEFAULT_CURRENCY_OPTIONS. */
|
|
29
30
|
export declare const withTokenIcons: (options: SelectItem[]) => SelectItem[];
|
|
30
|
-
/** Add iconUrl
|
|
31
|
+
/** Add iconUrl to network options when missing, resolved via chain ID or slug. */
|
|
31
32
|
export declare const withNetworkIcons: (options: SelectItem[]) => SelectItem[];
|
|
32
33
|
/** Merge two option arrays by value (preserving caller order, then filling from defaults). */
|
|
33
34
|
export declare const mergeSelectOptionsUnique: (base: SelectItem[] | undefined, fill: SelectItem[]) => SelectItem[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Static config for a token supported on a particular network. */
|
|
1
2
|
import type { SelectItem } from "../primitives/select";
|
|
2
3
|
export interface TokenConfig {
|
|
3
4
|
/** Unique identifier used as the select value (e.g. "USDC"). */
|
|
@@ -21,13 +22,13 @@ export interface NetworkConfig {
|
|
|
21
22
|
export declare const SUPPORTED_NETWORKS: NetworkConfig[];
|
|
22
23
|
/** Return the supported tokens for a given network value. */
|
|
23
24
|
export declare const getTokensForNetwork: (networkValue: string) => TokenConfig[];
|
|
24
|
-
/** Map local SUPPORTED_NETWORKS to Select items with iconUrl
|
|
25
|
+
/** Map local SUPPORTED_NETWORKS to Select items with iconUrl. */
|
|
25
26
|
export declare const mapNetworksToOptions: () => SelectItem[];
|
|
26
27
|
/** Default currency options shown when the caller does not provide any. */
|
|
27
28
|
export declare const DEFAULT_CURRENCY_OPTIONS: SelectItem[];
|
|
28
29
|
/** Add iconUrl to token options when missing, based on DEFAULT_CURRENCY_OPTIONS. */
|
|
29
30
|
export declare const withTokenIcons: (options: SelectItem[]) => SelectItem[];
|
|
30
|
-
/** Add iconUrl
|
|
31
|
+
/** Add iconUrl to network options when missing, resolved via chain ID or slug. */
|
|
31
32
|
export declare const withNetworkIcons: (options: SelectItem[]) => SelectItem[];
|
|
32
33
|
/** Merge two option arrays by value (preserving caller order, then filling from defaults). */
|
|
33
34
|
export declare const mergeSelectOptionsUnique: (base: SelectItem[] | undefined, fill: SelectItem[]) => SelectItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|