@agg-build/ui 4.7.4 → 4.9.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/{chunk-2347CDTT.mjs → chunk-GG57TRNE.mjs} +393 -155
- package/dist/{chunk-CB3DDQBP.mjs → chunk-GKYBQEBC.mjs} +462 -171
- package/dist/{chunk-3X5ICUUC.mjs → chunk-GVIS3YXU.mjs} +2 -2
- package/dist/{chunk-XR6C3MZX.mjs → chunk-H7L4HDXS.mjs} +266 -162
- package/dist/{chunk-UQ7XJIAZ.mjs → chunk-NYL6A6AD.mjs} +953 -785
- package/dist/{chunk-MAQ52KM5.mjs → chunk-TNNLRRHC.mjs} +1 -1
- package/dist/{chunk-VQTOMYOA.mjs → chunk-XQLLZTEW.mjs} +296 -166
- package/dist/events.js +1195 -1041
- package/dist/events.mjs +3 -3
- package/dist/index.js +4726 -3772
- package/dist/index.mjs +58 -19
- package/dist/modals.js +1886 -1181
- package/dist/modals.mjs +12 -4
- package/dist/pages.js +3551 -2872
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +953 -785
- package/dist/primitives.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +2255 -1710
- package/dist/trading.mjs +10 -6
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/kyc/index.d.mts +3 -0
- package/dist/types/kyc/index.d.ts +3 -0
- package/dist/types/kyc/shared-kyc-modal.d.mts +12 -0
- package/dist/types/kyc/shared-kyc-modal.d.ts +12 -0
- package/dist/types/kyc/shared-kyc.d.mts +31 -0
- package/dist/types/kyc/shared-kyc.d.ts +31 -0
- package/dist/types/kyc/use-shared-kyc-flow.d.mts +19 -0
- package/dist/types/kyc/use-shared-kyc-flow.d.ts +19 -0
- package/dist/types/modals/index.d.mts +2 -0
- package/dist/types/modals/index.d.ts +2 -0
- package/dist/types/pages/event-market/event-market.shared.d.mts +2 -1
- package/dist/types/pages/event-market/event-market.shared.d.ts +2 -1
- package/dist/types/pages/event-market/event-market.types.d.mts +2 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +2 -0
- package/dist/types/pages/event-market/sports-event-market-page.d.mts +1 -1
- package/dist/types/pages/event-market/sports-event-market-page.d.ts +1 -1
- package/dist/types/pages/user-profile/components/positions-value-card.d.mts +17 -1
- package/dist/types/pages/user-profile/components/positions-value-card.d.ts +17 -1
- package/dist/types/pages/user-profile/components/user-info-card.d.mts +11 -1
- package/dist/types/pages/user-profile/components/user-info-card.d.ts +11 -1
- package/dist/types/paper-trading/index.d.mts +6 -0
- package/dist/types/paper-trading/index.d.ts +6 -0
- package/dist/types/paper-trading/paper-onboarding-modal.d.mts +15 -0
- package/dist/types/paper-trading/paper-onboarding-modal.d.ts +15 -0
- package/dist/types/paper-trading/paper-onboarding-modal.types.d.mts +33 -0
- package/dist/types/paper-trading/paper-onboarding-modal.types.d.ts +33 -0
- package/dist/types/paper-trading/paper-trading-badge.d.mts +50 -0
- package/dist/types/paper-trading/paper-trading-badge.d.ts +50 -0
- package/dist/types/paper-trading/paper-trading-onboarding.d.mts +16 -0
- package/dist/types/paper-trading/paper-trading-onboarding.d.ts +16 -0
- package/dist/types/primitives/header/header.types.d.mts +16 -0
- package/dist/types/primitives/header/header.types.d.ts +16 -0
- package/dist/types/primitives/header/index.d.mts +1 -1
- package/dist/types/primitives/header/index.d.ts +1 -1
- package/dist/types/primitives/icon/registry.d.mts +20 -0
- package/dist/types/primitives/icon/registry.d.ts +20 -0
- package/dist/types/primitives/icon/svg/paper-buying-power.d.mts +11 -0
- package/dist/types/primitives/icon/svg/paper-buying-power.d.ts +11 -0
- package/dist/types/primitives/icon/svg/paper-earnings.d.mts +11 -0
- package/dist/types/primitives/icon/svg/paper-earnings.d.ts +11 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.mts +12 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.ts +12 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.mts +12 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.ts +12 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.mts +12 -0
- package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.ts +12 -0
- package/dist/types/primitives/modal/modal.types.d.mts +6 -0
- package/dist/types/primitives/modal/modal.types.d.ts +6 -0
- package/dist/types/trading/index.d.mts +1 -0
- package/dist/types/trading/index.d.ts +1 -0
- package/dist/types/trading/place-order/index.d.mts +1 -1
- package/dist/types/trading/place-order/index.d.ts +1 -1
- package/dist/types/trading/place-order/index.place-order.types.d.mts +8 -0
- package/dist/types/trading/place-order/index.place-order.types.d.ts +8 -0
- package/dist/types/trading/types.d.mts +2 -0
- package/dist/types/trading/types.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PaperOnboardingModalClassNames } from "./paper-onboarding-modal.types";
|
|
2
|
+
export type PaperTradingOnboardingProps = {
|
|
3
|
+
classNames?: PaperOnboardingModalClassNames;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Drop-in paper-trading intro. Renders nothing in a live app, and nothing for
|
|
7
|
+
* a user who has already seen it — mount it once, high in the tree, and forget
|
|
8
|
+
* about it.
|
|
9
|
+
*
|
|
10
|
+
* Pairs `usePaperOnboarding` (when to show) with `PaperOnboardingModal` (what
|
|
11
|
+
* to show). Use the modal directly if you need to drive visibility yourself.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PaperTradingOnboarding: {
|
|
14
|
+
({ classNames, }: PaperTradingOnboardingProps): JSX.Element | null;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
@@ -24,6 +24,22 @@ export type HeaderProps = {
|
|
|
24
24
|
logo?: ReactNode | HeaderLogoProps;
|
|
25
25
|
/** Link destination applied to the logo when rendered as a link. */
|
|
26
26
|
logoHref?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Content rendered immediately after the logo, inside the brand group.
|
|
29
|
+
* Intended for a small status marker that belongs to the app rather than to
|
|
30
|
+
* the user — e.g. the paper-trading pill, which sits beside the logo on
|
|
31
|
+
* mobile where there is no balance chip to host it.
|
|
32
|
+
*
|
|
33
|
+
* Supplying this also opts the header into the brand-group gap and the
|
|
34
|
+
* tighter 16px mobile inset the accessory layout is drawn against (Figma
|
|
35
|
+
* 4772:34179). A header without one keeps the 24px inset and no gap, so
|
|
36
|
+
* every existing integration is unaffected.
|
|
37
|
+
*
|
|
38
|
+
* Pass it conditionally, not unconditionally with a self-hiding child: the
|
|
39
|
+
* header reacts to the prop being present, and cannot see that the element
|
|
40
|
+
* you handed it chose to render `null`.
|
|
41
|
+
*/
|
|
42
|
+
brandAccessory?: ReactNode;
|
|
27
43
|
/** Click handler for the logo area when no link navigation is used. */
|
|
28
44
|
onLogoClick?: () => void;
|
|
29
45
|
/** Fully custom search element rendered in the center section. */
|
|
@@ -24,6 +24,22 @@ export type HeaderProps = {
|
|
|
24
24
|
logo?: ReactNode | HeaderLogoProps;
|
|
25
25
|
/** Link destination applied to the logo when rendered as a link. */
|
|
26
26
|
logoHref?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Content rendered immediately after the logo, inside the brand group.
|
|
29
|
+
* Intended for a small status marker that belongs to the app rather than to
|
|
30
|
+
* the user — e.g. the paper-trading pill, which sits beside the logo on
|
|
31
|
+
* mobile where there is no balance chip to host it.
|
|
32
|
+
*
|
|
33
|
+
* Supplying this also opts the header into the brand-group gap and the
|
|
34
|
+
* tighter 16px mobile inset the accessory layout is drawn against (Figma
|
|
35
|
+
* 4772:34179). A header without one keeps the 24px inset and no gap, so
|
|
36
|
+
* every existing integration is unaffected.
|
|
37
|
+
*
|
|
38
|
+
* Pass it conditionally, not unconditionally with a self-hiding child: the
|
|
39
|
+
* header reacts to the prop being present, and cannot see that the element
|
|
40
|
+
* you handed it chose to render `null`.
|
|
41
|
+
*/
|
|
42
|
+
brandAccessory?: ReactNode;
|
|
27
43
|
/** Click handler for the logo area when no link navigation is used. */
|
|
28
44
|
onLogoClick?: () => void;
|
|
29
45
|
/** Fully custom search element rendered in the center section. */
|
|
@@ -3,6 +3,6 @@ import type { HeaderProps } from "./header.types";
|
|
|
3
3
|
export type { HeaderClassNames, HeaderLogoProps, HeaderProps } from "./header.types";
|
|
4
4
|
/** Renders the top header with logo, search slot, and right-side action content. */
|
|
5
5
|
export declare const Header: {
|
|
6
|
-
({ logo, logoHref, onLogoClick, search, searchProps, actions, classNames, sticky, "aria-label": ariaLabel, }: HeaderProps): JSX.Element;
|
|
6
|
+
({ logo, logoHref, brandAccessory, onLogoClick, search, searchProps, actions, classNames, sticky, "aria-label": ariaLabel, }: HeaderProps): JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -3,6 +3,6 @@ import type { HeaderProps } from "./header.types";
|
|
|
3
3
|
export type { HeaderClassNames, HeaderLogoProps, HeaderProps } from "./header.types";
|
|
4
4
|
/** Renders the top header with logo, search slot, and right-side action content. */
|
|
5
5
|
export declare const Header: {
|
|
6
|
-
({ logo, logoHref, onLogoClick, search, searchProps, actions, classNames, sticky, "aria-label": ariaLabel, }: HeaderProps): JSX.Element;
|
|
6
|
+
({ logo, logoHref, brandAccessory, onLogoClick, search, searchProps, actions, classNames, sticky, "aria-label": ariaLabel, }: HeaderProps): JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -193,6 +193,26 @@ export declare const iconRegistry: {
|
|
|
193
193
|
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
194
194
|
displayName: string;
|
|
195
195
|
};
|
|
196
|
+
readonly "paper-buying-power": {
|
|
197
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
198
|
+
displayName: string;
|
|
199
|
+
};
|
|
200
|
+
readonly "paper-earnings": {
|
|
201
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
202
|
+
displayName: string;
|
|
203
|
+
};
|
|
204
|
+
readonly "paper-onboarding-markets": {
|
|
205
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
206
|
+
displayName: string;
|
|
207
|
+
};
|
|
208
|
+
readonly "paper-onboarding-funds": {
|
|
209
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
210
|
+
displayName: string;
|
|
211
|
+
};
|
|
212
|
+
readonly "paper-onboarding-performance": {
|
|
213
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
214
|
+
displayName: string;
|
|
215
|
+
};
|
|
196
216
|
readonly minus: ({ title, className, ...props }: import("./types").IconSvgProps) => JSX.Element;
|
|
197
217
|
readonly pencil: {
|
|
198
218
|
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
@@ -193,6 +193,26 @@ export declare const iconRegistry: {
|
|
|
193
193
|
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
194
194
|
displayName: string;
|
|
195
195
|
};
|
|
196
|
+
readonly "paper-buying-power": {
|
|
197
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
198
|
+
displayName: string;
|
|
199
|
+
};
|
|
200
|
+
readonly "paper-earnings": {
|
|
201
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
202
|
+
displayName: string;
|
|
203
|
+
};
|
|
204
|
+
readonly "paper-onboarding-markets": {
|
|
205
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
206
|
+
displayName: string;
|
|
207
|
+
};
|
|
208
|
+
readonly "paper-onboarding-funds": {
|
|
209
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
210
|
+
displayName: string;
|
|
211
|
+
};
|
|
212
|
+
readonly "paper-onboarding-performance": {
|
|
213
|
+
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
214
|
+
displayName: string;
|
|
215
|
+
};
|
|
196
216
|
readonly minus: ({ title, className, ...props }: import("./types").IconSvgProps) => JSX.Element;
|
|
197
217
|
readonly pencil: {
|
|
198
218
|
({ title, className, ...props }: import("./types").IconSvgProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Wallet glyph for the Paper Buying Power card.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (node 4772:31116) — path data verbatim; the hard-coded
|
|
6
|
+
* fill was swapped for `currentColor` so it inherits surrounding text colour.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PaperBuyingPowerIcon: {
|
|
9
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Wallet glyph for the Paper Buying Power card.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (node 4772:31116) — path data verbatim; the hard-coded
|
|
6
|
+
* fill was swapped for `currentColor` so it inherits surrounding text colour.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PaperBuyingPowerIcon: {
|
|
9
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Coins glyph for the Paper Earnings card.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (node 4772:31116) — path data verbatim; the hard-coded
|
|
6
|
+
* fill was swapped for `currentColor` so it inherits surrounding text colour.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PaperEarningsIcon: {
|
|
9
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Coins glyph for the Paper Earnings card.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (node 4772:31116) — path data verbatim; the hard-coded
|
|
6
|
+
* fill was swapped for `currentColor` so it inherits surrounding text colour.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PaperEarningsIcon: {
|
|
9
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 2 of the paper-trading intro: simulated funds, zero risk.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`money-wings 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingFundsIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 2 of the paper-trading intro: simulated funds, zero risk.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`money-wings 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingFundsIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 1 of the paper-trading intro: live markets and real prices.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`assessment 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingMarketsIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 1 of the paper-trading intro: live markets and real prices.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`assessment 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingMarketsIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 3 of the paper-trading intro: track your performance.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`chart-line-up 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingPerformanceIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconSvgProps } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Step 3 of the paper-trading intro: track your performance.
|
|
4
|
+
*
|
|
5
|
+
* Exported from Figma (`chart-line-up 1`, node 4772:31182) — path data is verbatim
|
|
6
|
+
* from the export; only the hard-coded fill was swapped for `currentColor` so
|
|
7
|
+
* the icon inherits the surrounding text colour like every other icon here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PaperOnboardingPerformanceIcon: {
|
|
10
|
+
({ title, className, ...props }: IconSvgProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
@@ -15,6 +15,12 @@ export interface ModalContainerClassNames {
|
|
|
15
15
|
container?: string;
|
|
16
16
|
overlay?: string;
|
|
17
17
|
content?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The flex wrapper that positions the surface. Modals default to a
|
|
20
|
+
* full-bleed bottom sheet below `md`; override this to opt out — e.g. a
|
|
21
|
+
* design that keeps a centred, inset card at every breakpoint.
|
|
22
|
+
*/
|
|
23
|
+
center?: string;
|
|
18
24
|
}
|
|
19
25
|
export interface ModalContainerProps {
|
|
20
26
|
/** Modal sections rendered inside the container shell. */
|
|
@@ -15,6 +15,12 @@ export interface ModalContainerClassNames {
|
|
|
15
15
|
container?: string;
|
|
16
16
|
overlay?: string;
|
|
17
17
|
content?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The flex wrapper that positions the surface. Modals default to a
|
|
20
|
+
* full-bleed bottom sheet below `md`; override this to opt out — e.g. a
|
|
21
|
+
* design that keeps a centred, inset card at every breakpoint.
|
|
22
|
+
*/
|
|
23
|
+
center?: string;
|
|
18
24
|
}
|
|
19
25
|
export interface ModalContainerProps {
|
|
20
26
|
/** Modal sections rendered inside the container shell. */
|
|
@@ -8,6 +8,6 @@ export type { PlaceOrderExecutionViewProps } from "./index.place-order.execution
|
|
|
8
8
|
export type { ExecutionOrderGroup, ExecutionStep, ExecutionStepKind, ExecutionStepStatus, } from "./index.place-order.execution-steps";
|
|
9
9
|
export type { PlaceOrderClassNames, PlaceOrderExecutionSummary, PlaceOrderResolvedClaimSummary, PlaceOrderTradingLabels, } from "./index.place-order.types";
|
|
10
10
|
export declare const PlaceOrder: {
|
|
11
|
-
({ className, classNames, eventTradingState, executionMode, isLoading, isPrimaryActionDisabled, isPrimaryActionLoading, isQuotePanelActive, chainBalancesOverride, onAmountChange, onClose, onConnectKalshi, onOutcomeChange, onPrimaryAction, onBeforePrimaryAction, onTabChange, onSuccess, onError, onExecutionStateChange, resolvedClaim, showResolvingState, midpointsResult, }: PlaceOrderProps): JSX.Element;
|
|
11
|
+
({ className, classNames, eventTradingState, executionMode, isLoading, isPrimaryActionDisabled, isPrimaryActionLoading, isQuotePanelActive, chainBalancesOverride, onAmountChange, onClose, onConnectKalshi, sharedKyc, onOutcomeChange, onPrimaryAction, onBeforePrimaryAction, onTabChange, onSuccess, onError, onExecutionStateChange, resolvedClaim, showResolvingState, midpointsResult, }: PlaceOrderProps): JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
@@ -8,6 +8,6 @@ export type { PlaceOrderExecutionViewProps } from "./index.place-order.execution
|
|
|
8
8
|
export type { ExecutionOrderGroup, ExecutionStep, ExecutionStepKind, ExecutionStepStatus, } from "./index.place-order.execution-steps";
|
|
9
9
|
export type { PlaceOrderClassNames, PlaceOrderExecutionSummary, PlaceOrderResolvedClaimSummary, PlaceOrderTradingLabels, } from "./index.place-order.types";
|
|
10
10
|
export declare const PlaceOrder: {
|
|
11
|
-
({ className, classNames, eventTradingState, executionMode, isLoading, isPrimaryActionDisabled, isPrimaryActionLoading, isQuotePanelActive, chainBalancesOverride, onAmountChange, onClose, onConnectKalshi, onOutcomeChange, onPrimaryAction, onBeforePrimaryAction, onTabChange, onSuccess, onError, onExecutionStateChange, resolvedClaim, showResolvingState, midpointsResult, }: PlaceOrderProps): JSX.Element;
|
|
11
|
+
({ className, classNames, eventTradingState, executionMode, isLoading, isPrimaryActionDisabled, isPrimaryActionLoading, isQuotePanelActive, chainBalancesOverride, onAmountChange, onClose, onConnectKalshi, sharedKyc, onOutcomeChange, onPrimaryAction, onBeforePrimaryAction, onTabChange, onSuccess, onError, onExecutionStateChange, resolvedClaim, showResolvingState, midpointsResult, }: PlaceOrderProps): JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AggUiLabels, DagStepProgress, EventTradingState, UseMidpointsResult, VenueMarket, VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
2
|
import type { ExecutionMode, PlaceLimitOrderParams, SmartRouteResponse } from "@agg-build/sdk";
|
|
3
3
|
import type { KalshiCredentials } from "../../onboarding/onboarding-modal.types";
|
|
4
|
+
import type { SharedKycIntegration } from "../../kyc/shared-kyc";
|
|
4
5
|
import type { PlaceOrderRoutingRow, PlaceOrderStatus, PlaceOrderTab, TradingVenue } from "../types";
|
|
5
6
|
import type { ExecutionOrderGroup } from "./index.place-order.execution-steps";
|
|
6
7
|
export type PlaceOrderProps = {
|
|
@@ -36,6 +37,11 @@ export type PlaceOrderProps = {
|
|
|
36
37
|
* When omitted, PlaceOrder stores credentials through AggClient.
|
|
37
38
|
*/
|
|
38
39
|
onConnectKalshi?: (credentials: KalshiCredentials) => Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Optional app-scoped shared KYC integration. Omit until backend-authoritative
|
|
42
|
+
* status and initiation are available; omission preserves existing execution.
|
|
43
|
+
*/
|
|
44
|
+
sharedKyc?: SharedKycIntegration;
|
|
39
45
|
/**
|
|
40
46
|
* Called when the primary action is triggered, in place of the internal
|
|
41
47
|
* quote execution. When provided, the component delegates the fill entirely
|
|
@@ -134,6 +140,8 @@ export type PlaceOrderRouteCard = {
|
|
|
134
140
|
rows?: PlaceOrderRoutingRow[];
|
|
135
141
|
value: string;
|
|
136
142
|
venue?: TradingVenue;
|
|
143
|
+
/** Whether any venue in this selectable route requires shared KYC. */
|
|
144
|
+
requiresSharedKyc?: boolean;
|
|
137
145
|
/** Whether the venue is unavailable in the user's region (geo-blocked). */
|
|
138
146
|
isUnavailable?: boolean;
|
|
139
147
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AggUiLabels, DagStepProgress, EventTradingState, UseMidpointsResult, VenueMarket, VenueMarketOutcome } from "@agg-build/hooks";
|
|
2
2
|
import type { ExecutionMode, PlaceLimitOrderParams, SmartRouteResponse } from "@agg-build/sdk";
|
|
3
3
|
import type { KalshiCredentials } from "../../onboarding/onboarding-modal.types";
|
|
4
|
+
import type { SharedKycIntegration } from "../../kyc/shared-kyc";
|
|
4
5
|
import type { PlaceOrderRoutingRow, PlaceOrderStatus, PlaceOrderTab, TradingVenue } from "../types";
|
|
5
6
|
import type { ExecutionOrderGroup } from "./index.place-order.execution-steps";
|
|
6
7
|
export type PlaceOrderProps = {
|
|
@@ -36,6 +37,11 @@ export type PlaceOrderProps = {
|
|
|
36
37
|
* When omitted, PlaceOrder stores credentials through AggClient.
|
|
37
38
|
*/
|
|
38
39
|
onConnectKalshi?: (credentials: KalshiCredentials) => Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Optional app-scoped shared KYC integration. Omit until backend-authoritative
|
|
42
|
+
* status and initiation are available; omission preserves existing execution.
|
|
43
|
+
*/
|
|
44
|
+
sharedKyc?: SharedKycIntegration;
|
|
39
45
|
/**
|
|
40
46
|
* Called when the primary action is triggered, in place of the internal
|
|
41
47
|
* quote execution. When provided, the component delegates the fill entirely
|
|
@@ -134,6 +140,8 @@ export type PlaceOrderRouteCard = {
|
|
|
134
140
|
rows?: PlaceOrderRoutingRow[];
|
|
135
141
|
value: string;
|
|
136
142
|
venue?: TradingVenue;
|
|
143
|
+
/** Whether any venue in this selectable route requires shared KYC. */
|
|
144
|
+
requiresSharedKyc?: boolean;
|
|
137
145
|
/** Whether the venue is unavailable in the user's region (geo-blocked). */
|
|
138
146
|
isUnavailable?: boolean;
|
|
139
147
|
};
|
|
@@ -41,6 +41,8 @@ export interface PlaceOrderRoutingRow {
|
|
|
41
41
|
label: string;
|
|
42
42
|
priceLabel: string;
|
|
43
43
|
resultLabel?: string;
|
|
44
|
+
/** Whether this venue requires the app-scoped shared identity verification. */
|
|
45
|
+
requiresSharedKyc?: boolean;
|
|
44
46
|
}
|
|
45
47
|
export interface PlaceOrderRouting {
|
|
46
48
|
tone: PlaceOrderRoutingTone;
|
|
@@ -41,6 +41,8 @@ export interface PlaceOrderRoutingRow {
|
|
|
41
41
|
label: string;
|
|
42
42
|
priceLabel: string;
|
|
43
43
|
resultLabel?: string;
|
|
44
|
+
/** Whether this venue requires the app-scoped shared identity verification. */
|
|
45
|
+
requiresSharedKyc?: boolean;
|
|
44
46
|
}
|
|
45
47
|
export interface PlaceOrderRouting {
|
|
46
48
|
tone: PlaceOrderRoutingTone;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
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",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"liveline": "^0.0.7",
|
|
101
101
|
"react": "^18.0.0 || ^19.0.0",
|
|
102
102
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
103
|
-
"@agg-build/hooks": "^4.
|
|
104
|
-
"@agg-build/sdk": "^4.
|
|
103
|
+
"@agg-build/hooks": "^4.9.0",
|
|
104
|
+
"@agg-build/sdk": "^4.9.0"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@number-flow/react": "^0.6.0",
|