@agg-market/ui 10.0.0 → 11.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/dist/{chunk-GYOCLZGH.mjs → chunk-2KGE5AJQ.mjs} +167 -276
- package/dist/{chunk-55YYUTBK.mjs → chunk-5FSWOXEG.mjs} +1 -1
- package/dist/{chunk-RYQSVETG.mjs → chunk-HMUMJUIL.mjs} +429 -331
- package/dist/{chunk-XP7DREIX.mjs → chunk-IUJXJEDQ.mjs} +1300 -656
- package/dist/{chunk-5G4T5R2H.mjs → chunk-UONHGMFI.mjs} +7 -3
- package/dist/events.js +756 -670
- package/dist/events.mjs +2 -2
- package/dist/index.js +2976 -2367
- package/dist/index.mjs +13 -6
- package/dist/modals.js +26 -9
- package/dist/modals.mjs +2 -2
- package/dist/pages.js +2653 -1790
- package/dist/pages.mjs +4 -4
- package/dist/primitives.js +1277 -649
- package/dist/primitives.mjs +5 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +257 -189
- package/dist/trading.mjs +2 -2
- package/dist/types/events/list/event-list.types.d.mts +1 -1
- package/dist/types/events/list/event-list.types.d.ts +1 -1
- package/dist/types/events/market-details/index.d.mts +2 -2
- package/dist/types/events/market-details/index.d.ts +2 -2
- package/dist/types/events/market-details/market-details.types.d.mts +1 -5
- package/dist/types/events/market-details/market-details.types.d.ts +1 -5
- package/dist/types/primitives/agg-logo/index.d.mts +6 -0
- package/dist/types/primitives/agg-logo/index.d.ts +6 -0
- package/dist/types/primitives/header/agg-logo.d.mts +2 -0
- package/dist/types/primitives/header/agg-logo.d.ts +2 -0
- package/dist/types/primitives/header/header.constants.d.mts +3 -0
- package/dist/types/primitives/header/header.constants.d.ts +3 -0
- package/dist/types/primitives/header/header.types.d.mts +28 -0
- package/dist/types/primitives/header/header.types.d.ts +28 -0
- package/dist/types/primitives/header/index.d.mts +7 -0
- package/dist/types/primitives/header/index.d.ts +7 -0
- package/dist/types/primitives/index.d.mts +2 -0
- package/dist/types/primitives/index.d.ts +2 -0
- package/dist/types/primitives/search/index.d.mts +1 -1
- package/dist/types/primitives/search/index.d.ts +1 -1
- package/dist/types/primitives/search/search.types.d.mts +9 -59
- package/dist/types/primitives/search/search.types.d.ts +9 -59
- package/dist/types/primitives/search/search.utils.d.mts +4 -0
- package/dist/types/primitives/search/search.utils.d.ts +4 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.mts +1 -0
- package/dist/types/primitives/skeleton/skeleton.types.d.ts +1 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.mts +5 -0
- package/dist/types/primitives/skeleton/views/search-skeleton-view.d.ts +5 -0
- package/dist/types/trading/types.d.mts +2 -2
- package/dist/types/trading/types.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
EventMarketPage,
|
|
4
4
|
HomePage,
|
|
5
5
|
UserProfilePage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HMUMJUIL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
EventList,
|
|
9
9
|
EventListItem,
|
|
10
10
|
EventListItemDetails,
|
|
11
11
|
MarketDetails,
|
|
12
12
|
MarketDetailsList
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2KGE5AJQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
ConnectAccountsStep,
|
|
16
16
|
ConnectKalshiModal,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ProfileModal,
|
|
23
23
|
ProfileSetupStep,
|
|
24
24
|
WithdrawModal
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5FSWOXEG.mjs";
|
|
26
26
|
import {
|
|
27
27
|
placeOrderMetricSchema,
|
|
28
28
|
placeOrderOutcomeSchema,
|
|
@@ -54,9 +54,10 @@ import {
|
|
|
54
54
|
getTradingSlippageLabel,
|
|
55
55
|
getTradingValueLabel,
|
|
56
56
|
getTradingVenueLabel
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UONHGMFI.mjs";
|
|
58
58
|
import {
|
|
59
59
|
AGG_ROOT_CLASS_NAME,
|
|
60
|
+
AggLogo,
|
|
60
61
|
AppleIcon,
|
|
61
62
|
ArrowTrendUpIcon,
|
|
62
63
|
ArrowsToDotIcon,
|
|
@@ -85,6 +86,7 @@ import {
|
|
|
85
86
|
EthereumIcon,
|
|
86
87
|
ExternalLinkIcon,
|
|
87
88
|
GoogleIcon,
|
|
89
|
+
Header,
|
|
88
90
|
HelloWorld,
|
|
89
91
|
Icon,
|
|
90
92
|
ImageIcon,
|
|
@@ -137,7 +139,7 @@ import {
|
|
|
137
139
|
toDate,
|
|
138
140
|
typographyVariants,
|
|
139
141
|
venueLogoNames
|
|
140
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-IUJXJEDQ.mjs";
|
|
141
143
|
|
|
142
144
|
// src/auth/connect-button-view/index.tsx
|
|
143
145
|
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
@@ -484,7 +486,10 @@ var AuthConnectButtonView = ({
|
|
|
484
486
|
walletMethods
|
|
485
487
|
}) => {
|
|
486
488
|
const labels = useLabels();
|
|
487
|
-
const {
|
|
489
|
+
const {
|
|
490
|
+
general: { rootClassName },
|
|
491
|
+
features: { enableAnimations }
|
|
492
|
+
} = useSdkUiConfig();
|
|
488
493
|
const resolvedProfileLabel = profileLabel || labels.auth.myProfile;
|
|
489
494
|
const dropdownMenuItemClassName = cn(
|
|
490
495
|
"cursor-pointer",
|
|
@@ -705,6 +710,7 @@ var AuthConnectButtonView = ({
|
|
|
705
710
|
AuthConnectButtonView.displayName = "AuthConnectButtonView";
|
|
706
711
|
export {
|
|
707
712
|
AGG_ROOT_CLASS_NAME,
|
|
713
|
+
AggLogo,
|
|
708
714
|
AppleIcon,
|
|
709
715
|
ArrowTrendUpIcon,
|
|
710
716
|
ArrowsToDotIcon,
|
|
@@ -742,6 +748,7 @@ export {
|
|
|
742
748
|
EventMarketPage,
|
|
743
749
|
ExternalLinkIcon,
|
|
744
750
|
GoogleIcon,
|
|
751
|
+
Header,
|
|
745
752
|
HelloWorld,
|
|
746
753
|
HomePage,
|
|
747
754
|
HowItWorksStep,
|
package/dist/modals.js
CHANGED
|
@@ -186,7 +186,10 @@ var ModalContainer = ({
|
|
|
186
186
|
"aria-label": ariaLabel,
|
|
187
187
|
"aria-labelledby": ariaLabelledBy
|
|
188
188
|
}) => {
|
|
189
|
-
const {
|
|
189
|
+
const {
|
|
190
|
+
general: { rootClassName },
|
|
191
|
+
features: { enableAnimations }
|
|
192
|
+
} = (0, import_hooks.useSdkUiConfig)();
|
|
190
193
|
const overlayAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-overlay-in motion-safe:data-[state=closed]:animate-agg-modal-overlay-out motion-reduce:animate-none" : void 0;
|
|
191
194
|
const panelAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-panel-in motion-safe:data-[state=closed]:animate-agg-modal-panel-out motion-reduce:animate-none" : void 0;
|
|
192
195
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Dialog.Portal, { children: [
|
|
@@ -249,7 +252,9 @@ var ModalHeader = ({
|
|
|
249
252
|
children,
|
|
250
253
|
hideBorder = false
|
|
251
254
|
}) => {
|
|
252
|
-
const {
|
|
255
|
+
const {
|
|
256
|
+
features: { enableAnimations }
|
|
257
|
+
} = (0, import_hooks.useSdkUiConfig)();
|
|
253
258
|
const labels = (0, import_hooks.useLabels)();
|
|
254
259
|
const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CloseIcon, { className: "h-6 w-6" });
|
|
255
260
|
const resolvedCloseIcon = closeIcon != null ? closeIcon : defaultCloseIcon;
|
|
@@ -754,7 +759,9 @@ var Button = (_a) => {
|
|
|
754
759
|
"className",
|
|
755
760
|
"aria-label"
|
|
756
761
|
]);
|
|
757
|
-
const {
|
|
762
|
+
const {
|
|
763
|
+
features: { enableAnimations }
|
|
764
|
+
} = (0, import_hooks2.useSdkUiConfig)();
|
|
758
765
|
const isDisabled = disabled || isLoading;
|
|
759
766
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
760
767
|
"button",
|
|
@@ -803,7 +810,9 @@ var import_react = require("react");
|
|
|
803
810
|
var import_hooks3 = require("@agg-market/hooks");
|
|
804
811
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
805
812
|
var SkeletonBlock = ({ className }) => {
|
|
806
|
-
const {
|
|
813
|
+
const {
|
|
814
|
+
features: { enableAnimations }
|
|
815
|
+
} = (0, import_hooks3.useSdkUiConfig)();
|
|
807
816
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
808
817
|
"div",
|
|
809
818
|
{
|
|
@@ -2550,7 +2559,9 @@ var VenueLogo = ({
|
|
|
2550
2559
|
title
|
|
2551
2560
|
}) => {
|
|
2552
2561
|
var _a;
|
|
2553
|
-
const {
|
|
2562
|
+
const {
|
|
2563
|
+
features: { showVenueLogo }
|
|
2564
|
+
} = (0, import_hooks4.useAggUiConfig)();
|
|
2554
2565
|
const labels = (0, import_hooks4.useLabels)();
|
|
2555
2566
|
const sizeClass = sizeClasses[size];
|
|
2556
2567
|
const resolvedLabel = (_a = ariaLabel != null ? ariaLabel : labels.venues[venue]) != null ? _a : venueLogoLabels[venue];
|
|
@@ -2773,7 +2784,9 @@ var Select = ({
|
|
|
2773
2784
|
}) => {
|
|
2774
2785
|
var _a;
|
|
2775
2786
|
const labels = (0, import_hooks5.useLabels)();
|
|
2776
|
-
const {
|
|
2787
|
+
const {
|
|
2788
|
+
features: { enableAnimations }
|
|
2789
|
+
} = (0, import_hooks5.useSdkUiConfig)();
|
|
2777
2790
|
const hasEnabledItems = items.some((item) => !item.disabled);
|
|
2778
2791
|
const hasAnyIcon = items.some((item) => item.iconUrl);
|
|
2779
2792
|
const [isOpen, setIsOpen] = (0, import_react2.useState)(false);
|
|
@@ -3512,7 +3525,9 @@ var LoadingIcon = ({
|
|
|
3512
3525
|
ariaLabel
|
|
3513
3526
|
}) => {
|
|
3514
3527
|
const labels = (0, import_hooks6.useLabels)();
|
|
3515
|
-
const {
|
|
3528
|
+
const {
|
|
3529
|
+
features: { enableAnimations }
|
|
3530
|
+
} = (0, import_hooks6.useSdkUiConfig)();
|
|
3516
3531
|
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3517
3532
|
"span",
|
|
3518
3533
|
{
|
|
@@ -3785,7 +3800,7 @@ var StateMessage = ({
|
|
|
3785
3800
|
role: "status",
|
|
3786
3801
|
"aria-live": "polite",
|
|
3787
3802
|
"aria-label": ariaLabel,
|
|
3788
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex
|
|
3803
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col items-center gap-6", children: [
|
|
3789
3804
|
icon,
|
|
3790
3805
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
|
|
3791
3806
|
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "body-large-strong", children: title }),
|
|
@@ -3837,7 +3852,9 @@ function Badge({
|
|
|
3837
3852
|
onClick,
|
|
3838
3853
|
isActive = false
|
|
3839
3854
|
}) {
|
|
3840
|
-
const {
|
|
3855
|
+
const {
|
|
3856
|
+
features: { enableAnimations }
|
|
3857
|
+
} = (0, import_hooks7.useSdkUiConfig)();
|
|
3841
3858
|
const resolvedText = `${text}`;
|
|
3842
3859
|
const resolvedAriaLabel = resolvedText.length > 0 ? resolvedText : void 0;
|
|
3843
3860
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
package/dist/modals.mjs
CHANGED