@agg-market/ui 6.0.0 → 8.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/README.md +17 -2
- package/dist/{chunk-G6YKGVQR.mjs → chunk-JE4MV5RL.mjs} +18 -60
- package/dist/{chunk-2ICOSP7N.mjs → chunk-KRCRD4AJ.mjs} +11 -14
- package/dist/{chunk-5ZKPBMRK.mjs → chunk-SBLIHCN2.mjs} +21 -24
- package/dist/{chunk-LMOJKJOY.mjs → chunk-TLFRGJ5B.mjs} +334 -217
- package/dist/chunk-WKY3IN52.mjs +4907 -0
- package/dist/events.js +3364 -2660
- package/dist/events.mjs +2 -5
- package/dist/index.js +2693 -1764
- package/dist/index.mjs +610 -38
- package/dist/modals.js +1356 -815
- package/dist/modals.mjs +2 -4
- package/dist/pages.js +3023 -2248
- package/dist/pages.mjs +4 -7
- package/dist/primitives.js +1072 -355
- package/dist/primitives.mjs +38 -30
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +1153 -558
- package/dist/trading.mjs +2 -4
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.mts +31 -0
- package/dist/types/auth/connect-button-view/connect-button-view.constants.d.ts +31 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.mts +83 -0
- package/dist/types/auth/connect-button-view/connect-button-view.types.d.ts +83 -0
- package/dist/types/auth/connect-button-view/index.d.mts +7 -0
- package/dist/types/auth/connect-button-view/index.d.ts +7 -0
- package/dist/types/auth/index.d.mts +1 -1
- package/dist/types/auth/index.d.ts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/primitives/chart/chart-type-switch.d.mts +10 -0
- package/dist/types/primitives/chart/chart-type-switch.d.ts +10 -0
- package/dist/types/primitives/chart/index.d.mts +7 -1
- package/dist/types/primitives/chart/index.d.ts +7 -1
- package/dist/types/primitives/icon/index.d.mts +9 -1
- package/dist/types/primitives/icon/index.d.ts +9 -1
- package/dist/types/primitives/icon/registry.d.mts +32 -0
- package/dist/types/primitives/icon/registry.d.ts +32 -0
- package/dist/types/primitives/icon/svg/apple.d.mts +5 -0
- package/dist/types/primitives/icon/svg/apple.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-candlestick.d.ts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.mts +5 -0
- package/dist/types/primitives/icon/svg/chart-line.d.ts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.mts +5 -0
- package/dist/types/primitives/icon/svg/error-filled.d.ts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.mts +5 -0
- package/dist/types/primitives/icon/svg/ethereum.d.ts +5 -0
- package/dist/types/primitives/icon/svg/google.d.mts +5 -0
- package/dist/types/primitives/icon/svg/google.d.ts +5 -0
- package/dist/types/primitives/icon/svg/image.d.mts +5 -0
- package/dist/types/primitives/icon/svg/image.d.ts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.mts +5 -0
- package/dist/types/primitives/icon/svg/solana.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +2 -0
- package/dist/types/primitives/index.d.ts +2 -0
- package/dist/types/primitives/inline-alert/index.d.mts +16 -0
- package/dist/types/primitives/inline-alert/index.d.ts +16 -0
- package/dist/types/primitives/remote-image/index.d.mts +6 -0
- package/dist/types/primitives/remote-image/index.d.ts +6 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.mts +16 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.ts +16 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.mts +5 -0
- package/dist/types/primitives/venue-logo/svg/logo-limitless.d.ts +5 -0
- package/dist/types/primitives/venue-logo/venue-logo.types.d.mts +1 -1
- package/dist/types/primitives/venue-logo/venue-logo.types.d.ts +1 -1
- package/dist/types/trading/types.d.mts +26 -26
- package/dist/types/trading/types.d.ts +26 -26
- package/package.json +3 -15
- package/dist/auth.d.mts +0 -1
- package/dist/auth.d.ts +0 -1
- package/dist/auth.js +0 -2290
- package/dist/auth.mjs +0 -8
- package/dist/chunk-ADGL6RFX.mjs +0 -214
- package/dist/chunk-CN7GI2RJ.mjs +0 -585
- package/dist/chunk-HI4EEDN5.mjs +0 -1880
- package/dist/chunk-INRG3D4M.mjs +0 -450
- package/dist/chunk-JE3Z52FD.mjs +0 -345
- package/dist/chunk-MHCHR65A.mjs +0 -165
- package/dist/chunk-PASXFYKQ.mjs +0 -81
- package/dist/chunk-UBBOLLOS.mjs +0 -999
- package/dist/types/auth/connect-button/connect-button.constants.d.mts +0 -10
- package/dist/types/auth/connect-button/connect-button.constants.d.ts +0 -10
- package/dist/types/auth/connect-button/connect-button.types.d.mts +0 -33
- package/dist/types/auth/connect-button/connect-button.types.d.ts +0 -33
- package/dist/types/auth/connect-button/index.d.mts +0 -7
- package/dist/types/auth/connect-button/index.d.ts +0 -7
|
@@ -5,6 +5,7 @@ export * from "./hello-world";
|
|
|
5
5
|
export * from "./card";
|
|
6
6
|
export * from "./chart";
|
|
7
7
|
export * from "./loading-icon";
|
|
8
|
+
export * from "./inline-alert";
|
|
8
9
|
export * from "./typography";
|
|
9
10
|
export * from "./icon";
|
|
10
11
|
export * from "./number-value";
|
|
@@ -15,3 +16,4 @@ export * from "./search";
|
|
|
15
16
|
export * from "./state-message";
|
|
16
17
|
export * from "./tabs";
|
|
17
18
|
export * from "./modal";
|
|
19
|
+
export * from "./remote-image";
|
|
@@ -5,6 +5,7 @@ export * from "./hello-world";
|
|
|
5
5
|
export * from "./card";
|
|
6
6
|
export * from "./chart";
|
|
7
7
|
export * from "./loading-icon";
|
|
8
|
+
export * from "./inline-alert";
|
|
8
9
|
export * from "./typography";
|
|
9
10
|
export * from "./icon";
|
|
10
11
|
export * from "./number-value";
|
|
@@ -15,3 +16,4 @@ export * from "./search";
|
|
|
15
16
|
export * from "./state-message";
|
|
16
17
|
export * from "./tabs";
|
|
17
18
|
export * from "./modal";
|
|
19
|
+
export * from "./remote-image";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type InlineAlertTone = "warning" | "error";
|
|
2
|
+
export type InlineAlertVariant = "plain" | "surface";
|
|
3
|
+
export type InlineAlertProps = {
|
|
4
|
+
tone?: InlineAlertTone;
|
|
5
|
+
variant?: InlineAlertVariant;
|
|
6
|
+
title?: string;
|
|
7
|
+
message: string;
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
onAction?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const InlineAlert: {
|
|
14
|
+
({ tone, variant, title, message, actionLabel, onAction, className, "aria-label": ariaLabel, }: InlineAlertProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type InlineAlertTone = "warning" | "error";
|
|
2
|
+
export type InlineAlertVariant = "plain" | "surface";
|
|
3
|
+
export type InlineAlertProps = {
|
|
4
|
+
tone?: InlineAlertTone;
|
|
5
|
+
variant?: InlineAlertVariant;
|
|
6
|
+
title?: string;
|
|
7
|
+
message: string;
|
|
8
|
+
actionLabel?: string;
|
|
9
|
+
onAction?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const InlineAlert: {
|
|
14
|
+
({ tone, variant, title, message, actionLabel, onAction, className, "aria-label": ariaLabel, }: InlineAlertProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RemoteImageProps, RemoteImageStatus } from "./remote-image.types";
|
|
2
|
+
export type { RemoteImageProps, RemoteImageStatus };
|
|
3
|
+
export declare const RemoteImage: {
|
|
4
|
+
({ src, alt, title, className, classNames, width, height, onClick, ariaLabel, }: RemoteImageProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RemoteImageProps, RemoteImageStatus } from "./remote-image.types";
|
|
2
|
+
export type { RemoteImageProps, RemoteImageStatus };
|
|
3
|
+
export declare const RemoteImage: {
|
|
4
|
+
({ src, alt, title, className, classNames, width, height, onClick, ariaLabel, }: RemoteImageProps): JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const containerClasses = "relative inline-flex shrink-0 overflow-hidden";
|
|
2
|
+
export declare const imageClasses = "h-full w-full object-cover";
|
|
3
|
+
export declare const skeletonClasses = "h-full w-full rounded-agg-lg";
|
|
4
|
+
export declare const placeholderClasses = "flex h-full w-full items-center justify-center bg-agg-secondary-hover rounded-agg-lg";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const containerClasses = "relative inline-flex shrink-0 overflow-hidden";
|
|
2
|
+
export declare const imageClasses = "h-full w-full object-cover";
|
|
3
|
+
export declare const skeletonClasses = "h-full w-full rounded-agg-lg";
|
|
4
|
+
export declare const placeholderClasses = "flex h-full w-full items-center justify-center bg-agg-secondary-hover rounded-agg-lg";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type RemoteImageStatus = "loading" | "loaded" | "error";
|
|
2
|
+
export type RemoteImageProps = {
|
|
3
|
+
src: string | undefined | null;
|
|
4
|
+
alt: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
classNames?: {
|
|
8
|
+
root?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
};
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type RemoteImageStatus = "loading" | "loaded" | "error";
|
|
2
|
+
export type RemoteImageProps = {
|
|
3
|
+
src: string | undefined | null;
|
|
4
|
+
alt: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
classNames?: {
|
|
8
|
+
root?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
};
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VenueMarket } from "@agg-market/hooks";
|
|
2
2
|
import type { AvailableSizes } from "../../shared/types";
|
|
3
|
-
type AdditionalVenue = "
|
|
3
|
+
type AdditionalVenue = "probable";
|
|
4
4
|
export type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
5
5
|
export type VenueLogoVariant = "icon" | "logo";
|
|
6
6
|
export type VenueLogoProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VenueMarket } from "@agg-market/hooks";
|
|
2
2
|
import type { AvailableSizes } from "../../shared/types";
|
|
3
|
-
type AdditionalVenue = "
|
|
3
|
+
type AdditionalVenue = "probable";
|
|
4
4
|
export type VenueLogoName = VenueMarket["venue"] | AdditionalVenue;
|
|
5
5
|
export type VenueLogoVariant = "icon" | "logo";
|
|
6
6
|
export type VenueLogoProps = {
|
|
@@ -7,12 +7,12 @@ export declare const settlementVenueSchema: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodString;
|
|
8
8
|
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
venue: "
|
|
10
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
11
11
|
description: string;
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
showMoreLabel?: string | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
venue: "
|
|
15
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
16
16
|
description: string;
|
|
17
17
|
label?: string | undefined;
|
|
18
18
|
showMoreLabel?: string | undefined;
|
|
@@ -28,12 +28,12 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
28
28
|
description: z.ZodString;
|
|
29
29
|
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
venue: "
|
|
31
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
32
32
|
description: string;
|
|
33
33
|
label?: string | undefined;
|
|
34
34
|
showMoreLabel?: string | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
venue: "
|
|
36
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
37
37
|
description: string;
|
|
38
38
|
label?: string | undefined;
|
|
39
39
|
showMoreLabel?: string | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
41
41
|
defaultExpandedVenue: z.ZodOptional<z.ZodNullable<z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
venues: {
|
|
44
|
-
venue: "
|
|
44
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
45
45
|
description: string;
|
|
46
46
|
label?: string | undefined;
|
|
47
47
|
showMoreLabel?: string | undefined;
|
|
@@ -50,10 +50,10 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
50
50
|
question: string;
|
|
51
51
|
differencesTitle: string;
|
|
52
52
|
differences: string[];
|
|
53
|
-
defaultExpandedVenue?: "
|
|
53
|
+
defaultExpandedVenue?: "probable" | "kalshi" | "polymarket" | "opinion" | null | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
venues: {
|
|
56
|
-
venue: "
|
|
56
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
57
57
|
description: string;
|
|
58
58
|
label?: string | undefined;
|
|
59
59
|
showMoreLabel?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
62
62
|
question: string;
|
|
63
63
|
differencesTitle: string;
|
|
64
64
|
differences: string[];
|
|
65
|
-
defaultExpandedVenue?: "
|
|
65
|
+
defaultExpandedVenue?: "probable" | "kalshi" | "polymarket" | "opinion" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export type SettlementViewModel = z.infer<typeof settlementViewModelSchema>;
|
|
68
68
|
export type SettlementVenueItem = z.infer<typeof settlementVenueSchema>;
|
|
@@ -102,11 +102,11 @@ export declare const placeOrderRoutingRowSchema: z.ZodObject<{
|
|
|
102
102
|
label: z.ZodString;
|
|
103
103
|
priceLabel: z.ZodString;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
venue: "
|
|
105
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
106
106
|
label: string;
|
|
107
107
|
priceLabel: string;
|
|
108
108
|
}, {
|
|
109
|
-
venue: "
|
|
109
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
110
110
|
label: string;
|
|
111
111
|
priceLabel: string;
|
|
112
112
|
}>;
|
|
@@ -117,11 +117,11 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
117
117
|
label: z.ZodString;
|
|
118
118
|
priceLabel: z.ZodString;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
venue: "
|
|
120
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
121
121
|
label: string;
|
|
122
122
|
priceLabel: string;
|
|
123
123
|
}, {
|
|
124
|
-
venue: "
|
|
124
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
125
125
|
label: string;
|
|
126
126
|
priceLabel: string;
|
|
127
127
|
}>, "many">;
|
|
@@ -130,7 +130,7 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
tone: "default" | "highlighted";
|
|
132
132
|
rows: {
|
|
133
|
-
venue: "
|
|
133
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
134
134
|
label: string;
|
|
135
135
|
priceLabel: string;
|
|
136
136
|
}[];
|
|
@@ -139,7 +139,7 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
139
139
|
}, {
|
|
140
140
|
tone: "default" | "highlighted";
|
|
141
141
|
rows: {
|
|
142
|
-
venue: "
|
|
142
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
143
143
|
label: string;
|
|
144
144
|
priceLabel: string;
|
|
145
145
|
}[];
|
|
@@ -168,13 +168,13 @@ export declare const placeOrderStatusSchema: z.ZodObject<{
|
|
|
168
168
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
169
169
|
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
message: string;
|
|
172
171
|
tone: "warning" | "error";
|
|
172
|
+
message: string;
|
|
173
173
|
placement: "above-action" | "below-action";
|
|
174
174
|
actionLabel?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
-
message: string;
|
|
177
176
|
tone: "warning" | "error";
|
|
177
|
+
message: string;
|
|
178
178
|
placement: "above-action" | "below-action";
|
|
179
179
|
actionLabel?: string | undefined;
|
|
180
180
|
}>;
|
|
@@ -219,11 +219,11 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
219
219
|
label: z.ZodString;
|
|
220
220
|
priceLabel: z.ZodString;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
venue: "
|
|
222
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
223
223
|
label: string;
|
|
224
224
|
priceLabel: string;
|
|
225
225
|
}, {
|
|
226
|
-
venue: "
|
|
226
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
227
227
|
label: string;
|
|
228
228
|
priceLabel: string;
|
|
229
229
|
}>, "many">;
|
|
@@ -232,7 +232,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
tone: "default" | "highlighted";
|
|
234
234
|
rows: {
|
|
235
|
-
venue: "
|
|
235
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
236
236
|
label: string;
|
|
237
237
|
priceLabel: string;
|
|
238
238
|
}[];
|
|
@@ -241,7 +241,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
241
241
|
}, {
|
|
242
242
|
tone: "default" | "highlighted";
|
|
243
243
|
rows: {
|
|
244
|
-
venue: "
|
|
244
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
245
245
|
label: string;
|
|
246
246
|
priceLabel: string;
|
|
247
247
|
}[];
|
|
@@ -273,13 +273,13 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
273
273
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
274
274
|
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
message: string;
|
|
277
276
|
tone: "warning" | "error";
|
|
277
|
+
message: string;
|
|
278
278
|
placement: "above-action" | "below-action";
|
|
279
279
|
actionLabel?: string | undefined;
|
|
280
280
|
}, {
|
|
281
|
-
message: string;
|
|
282
281
|
tone: "warning" | "error";
|
|
282
|
+
message: string;
|
|
283
283
|
placement: "above-action" | "below-action";
|
|
284
284
|
actionLabel?: string | undefined;
|
|
285
285
|
}>>;
|
|
@@ -310,7 +310,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
310
310
|
routing: {
|
|
311
311
|
tone: "default" | "highlighted";
|
|
312
312
|
rows: {
|
|
313
|
-
venue: "
|
|
313
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
314
314
|
label: string;
|
|
315
315
|
priceLabel: string;
|
|
316
316
|
}[];
|
|
@@ -319,8 +319,8 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
319
319
|
};
|
|
320
320
|
disclaimer: string;
|
|
321
321
|
status?: {
|
|
322
|
-
message: string;
|
|
323
322
|
tone: "warning" | "error";
|
|
323
|
+
message: string;
|
|
324
324
|
placement: "above-action" | "below-action";
|
|
325
325
|
actionLabel?: string | undefined;
|
|
326
326
|
} | undefined;
|
|
@@ -353,7 +353,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
353
353
|
routing: {
|
|
354
354
|
tone: "default" | "highlighted";
|
|
355
355
|
rows: {
|
|
356
|
-
venue: "
|
|
356
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
357
357
|
label: string;
|
|
358
358
|
priceLabel: string;
|
|
359
359
|
}[];
|
|
@@ -362,8 +362,8 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
362
362
|
};
|
|
363
363
|
disclaimer: string;
|
|
364
364
|
status?: {
|
|
365
|
-
message: string;
|
|
366
365
|
tone: "warning" | "error";
|
|
366
|
+
message: string;
|
|
367
367
|
placement: "above-action" | "below-action";
|
|
368
368
|
actionLabel?: string | undefined;
|
|
369
369
|
} | undefined;
|
|
@@ -7,12 +7,12 @@ export declare const settlementVenueSchema: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodString;
|
|
8
8
|
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
venue: "
|
|
10
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
11
11
|
description: string;
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
showMoreLabel?: string | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
venue: "
|
|
15
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
16
16
|
description: string;
|
|
17
17
|
label?: string | undefined;
|
|
18
18
|
showMoreLabel?: string | undefined;
|
|
@@ -28,12 +28,12 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
28
28
|
description: z.ZodString;
|
|
29
29
|
showMoreLabel: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
venue: "
|
|
31
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
32
32
|
description: string;
|
|
33
33
|
label?: string | undefined;
|
|
34
34
|
showMoreLabel?: string | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
venue: "
|
|
36
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
37
37
|
description: string;
|
|
38
38
|
label?: string | undefined;
|
|
39
39
|
showMoreLabel?: string | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
41
41
|
defaultExpandedVenue: z.ZodOptional<z.ZodNullable<z.ZodEnum<["polymarket", "kalshi", "opinion", "probable"]>>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
venues: {
|
|
44
|
-
venue: "
|
|
44
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
45
45
|
description: string;
|
|
46
46
|
label?: string | undefined;
|
|
47
47
|
showMoreLabel?: string | undefined;
|
|
@@ -50,10 +50,10 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
50
50
|
question: string;
|
|
51
51
|
differencesTitle: string;
|
|
52
52
|
differences: string[];
|
|
53
|
-
defaultExpandedVenue?: "
|
|
53
|
+
defaultExpandedVenue?: "probable" | "kalshi" | "polymarket" | "opinion" | null | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
venues: {
|
|
56
|
-
venue: "
|
|
56
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
57
57
|
description: string;
|
|
58
58
|
label?: string | undefined;
|
|
59
59
|
showMoreLabel?: string | undefined;
|
|
@@ -62,7 +62,7 @@ export declare const settlementViewModelSchema: z.ZodObject<{
|
|
|
62
62
|
question: string;
|
|
63
63
|
differencesTitle: string;
|
|
64
64
|
differences: string[];
|
|
65
|
-
defaultExpandedVenue?: "
|
|
65
|
+
defaultExpandedVenue?: "probable" | "kalshi" | "polymarket" | "opinion" | null | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export type SettlementViewModel = z.infer<typeof settlementViewModelSchema>;
|
|
68
68
|
export type SettlementVenueItem = z.infer<typeof settlementVenueSchema>;
|
|
@@ -102,11 +102,11 @@ export declare const placeOrderRoutingRowSchema: z.ZodObject<{
|
|
|
102
102
|
label: z.ZodString;
|
|
103
103
|
priceLabel: z.ZodString;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
venue: "
|
|
105
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
106
106
|
label: string;
|
|
107
107
|
priceLabel: string;
|
|
108
108
|
}, {
|
|
109
|
-
venue: "
|
|
109
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
110
110
|
label: string;
|
|
111
111
|
priceLabel: string;
|
|
112
112
|
}>;
|
|
@@ -117,11 +117,11 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
117
117
|
label: z.ZodString;
|
|
118
118
|
priceLabel: z.ZodString;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
venue: "
|
|
120
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
121
121
|
label: string;
|
|
122
122
|
priceLabel: string;
|
|
123
123
|
}, {
|
|
124
|
-
venue: "
|
|
124
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
125
125
|
label: string;
|
|
126
126
|
priceLabel: string;
|
|
127
127
|
}>, "many">;
|
|
@@ -130,7 +130,7 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
tone: "default" | "highlighted";
|
|
132
132
|
rows: {
|
|
133
|
-
venue: "
|
|
133
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
134
134
|
label: string;
|
|
135
135
|
priceLabel: string;
|
|
136
136
|
}[];
|
|
@@ -139,7 +139,7 @@ export declare const placeOrderRoutingSchema: z.ZodObject<{
|
|
|
139
139
|
}, {
|
|
140
140
|
tone: "default" | "highlighted";
|
|
141
141
|
rows: {
|
|
142
|
-
venue: "
|
|
142
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
143
143
|
label: string;
|
|
144
144
|
priceLabel: string;
|
|
145
145
|
}[];
|
|
@@ -168,13 +168,13 @@ export declare const placeOrderStatusSchema: z.ZodObject<{
|
|
|
168
168
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
169
169
|
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
message: string;
|
|
172
171
|
tone: "warning" | "error";
|
|
172
|
+
message: string;
|
|
173
173
|
placement: "above-action" | "below-action";
|
|
174
174
|
actionLabel?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
-
message: string;
|
|
177
176
|
tone: "warning" | "error";
|
|
177
|
+
message: string;
|
|
178
178
|
placement: "above-action" | "below-action";
|
|
179
179
|
actionLabel?: string | undefined;
|
|
180
180
|
}>;
|
|
@@ -219,11 +219,11 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
219
219
|
label: z.ZodString;
|
|
220
220
|
priceLabel: z.ZodString;
|
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
venue: "
|
|
222
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
223
223
|
label: string;
|
|
224
224
|
priceLabel: string;
|
|
225
225
|
}, {
|
|
226
|
-
venue: "
|
|
226
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
227
227
|
label: string;
|
|
228
228
|
priceLabel: string;
|
|
229
229
|
}>, "many">;
|
|
@@ -232,7 +232,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
233
|
tone: "default" | "highlighted";
|
|
234
234
|
rows: {
|
|
235
|
-
venue: "
|
|
235
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
236
236
|
label: string;
|
|
237
237
|
priceLabel: string;
|
|
238
238
|
}[];
|
|
@@ -241,7 +241,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
241
241
|
}, {
|
|
242
242
|
tone: "default" | "highlighted";
|
|
243
243
|
rows: {
|
|
244
|
-
venue: "
|
|
244
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
245
245
|
label: string;
|
|
246
246
|
priceLabel: string;
|
|
247
247
|
}[];
|
|
@@ -273,13 +273,13 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
273
273
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
274
274
|
placement: z.ZodEnum<["above-action", "below-action"]>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
message: string;
|
|
277
276
|
tone: "warning" | "error";
|
|
277
|
+
message: string;
|
|
278
278
|
placement: "above-action" | "below-action";
|
|
279
279
|
actionLabel?: string | undefined;
|
|
280
280
|
}, {
|
|
281
|
-
message: string;
|
|
282
281
|
tone: "warning" | "error";
|
|
282
|
+
message: string;
|
|
283
283
|
placement: "above-action" | "below-action";
|
|
284
284
|
actionLabel?: string | undefined;
|
|
285
285
|
}>>;
|
|
@@ -310,7 +310,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
310
310
|
routing: {
|
|
311
311
|
tone: "default" | "highlighted";
|
|
312
312
|
rows: {
|
|
313
|
-
venue: "
|
|
313
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
314
314
|
label: string;
|
|
315
315
|
priceLabel: string;
|
|
316
316
|
}[];
|
|
@@ -319,8 +319,8 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
319
319
|
};
|
|
320
320
|
disclaimer: string;
|
|
321
321
|
status?: {
|
|
322
|
-
message: string;
|
|
323
322
|
tone: "warning" | "error";
|
|
323
|
+
message: string;
|
|
324
324
|
placement: "above-action" | "below-action";
|
|
325
325
|
actionLabel?: string | undefined;
|
|
326
326
|
} | undefined;
|
|
@@ -353,7 +353,7 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
353
353
|
routing: {
|
|
354
354
|
tone: "default" | "highlighted";
|
|
355
355
|
rows: {
|
|
356
|
-
venue: "
|
|
356
|
+
venue: "probable" | "kalshi" | "polymarket" | "opinion";
|
|
357
357
|
label: string;
|
|
358
358
|
priceLabel: string;
|
|
359
359
|
}[];
|
|
@@ -362,8 +362,8 @@ export declare const placeOrderViewModelSchema: z.ZodObject<{
|
|
|
362
362
|
};
|
|
363
363
|
disclaimer: string;
|
|
364
364
|
status?: {
|
|
365
|
-
message: string;
|
|
366
365
|
tone: "warning" | "error";
|
|
366
|
+
message: string;
|
|
367
367
|
placement: "above-action" | "below-action";
|
|
368
368
|
actionLabel?: string | undefined;
|
|
369
369
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-market/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,16 +32,6 @@
|
|
|
32
32
|
"default": "./dist/primitives.js"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"./auth": {
|
|
36
|
-
"import": {
|
|
37
|
-
"types": "./dist/auth.d.mts",
|
|
38
|
-
"default": "./dist/auth.mjs"
|
|
39
|
-
},
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./dist/auth.d.ts",
|
|
42
|
-
"default": "./dist/auth.js"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
35
|
"./events": {
|
|
46
36
|
"import": {
|
|
47
37
|
"types": "./dist/events.d.mts",
|
|
@@ -91,15 +81,13 @@
|
|
|
91
81
|
"peerDependencies": {
|
|
92
82
|
"react": "^18.0.0 || ^19.0.0",
|
|
93
83
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
94
|
-
"@agg-market/hooks": "
|
|
84
|
+
"@agg-market/hooks": "7.0.0"
|
|
95
85
|
},
|
|
96
86
|
"dependencies": {
|
|
97
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
98
87
|
"@radix-ui/react-dropdown-menu": "^2.1.4",
|
|
88
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
99
89
|
"dayjs": "^1.11.19",
|
|
100
90
|
"liveline": "^0.0.6",
|
|
101
|
-
"viem": "^2.46.2",
|
|
102
|
-
"wagmi": "^3.5.0",
|
|
103
91
|
"zod": "^3.24.1"
|
|
104
92
|
},
|
|
105
93
|
"publishConfig": {
|
package/dist/auth.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types/auth/index";
|
package/dist/auth.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./types/auth/index";
|