@agg-build/ui 4.10.0 → 4.11.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/pages.mjs CHANGED
@@ -11,14 +11,14 @@ import {
11
11
  formatRecurringCountdown,
12
12
  formatShareAmount,
13
13
  useHomePageModals
14
- } from "./chunk-SMQRUNMZ.mjs";
15
- import "./chunk-H5LCCV2J.mjs";
14
+ } from "./chunk-CHM6SCOY.mjs";
15
+ import "./chunk-EYJS45RP.mjs";
16
16
  import {
17
17
  DEPOSIT_MODAL_OPEN_EVENT,
18
18
  WITHDRAW_MODAL_OPEN_EVENT,
19
19
  requestAggDepositModalOpen,
20
20
  requestAggWithdrawModalOpen
21
- } from "./chunk-4HTE5IEZ.mjs";
21
+ } from "./chunk-NCWBKC5C.mjs";
22
22
  import "./chunk-6EHT5OFU.mjs";
23
23
  import "./chunk-TXQJUVRW.mjs";
24
24
  import "./chunk-W7HQVQ22.mjs";
package/dist/trading.js CHANGED
@@ -9214,8 +9214,14 @@ var extractGeoBlockedVenues = (warnings) => {
9214
9214
  );
9215
9215
  };
9216
9216
  var getSmartRouteTotalFees = (feeBreakdown) => {
9217
+ var _a;
9217
9218
  if (!feeBreakdown) return null;
9218
- const feeParts = [feeBreakdown.venueFees, feeBreakdown.bridgeFees, feeBreakdown.executionGas];
9219
+ const feeParts = [
9220
+ feeBreakdown.venueFees,
9221
+ (_a = feeBreakdown.builderFee) != null ? _a : 0,
9222
+ feeBreakdown.bridgeFees,
9223
+ feeBreakdown.executionGas
9224
+ ];
9219
9225
  if (!feeParts.every(Number.isFinite)) return null;
9220
9226
  return feeParts.reduce((total, fee) => total + Math.round(fee * 100) / 100, 0);
9221
9227
  };
@@ -13610,6 +13616,7 @@ var PlaceOrder = ({
13610
13616
  return formatUsd(totalFees, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
13611
13617
  }, [activeFeeBreakdown]);
13612
13618
  const feeBreakdownRows = (0, import_react17.useMemo)(() => {
13619
+ var _a2, _b2;
13613
13620
  if (!activeFeeBreakdown) return [];
13614
13621
  return [
13615
13622
  {
@@ -13620,6 +13627,18 @@ var PlaceOrder = ({
13620
13627
  maximumFractionDigits: 2
13621
13628
  })
13622
13629
  },
13630
+ // Only Hyperliquid charges a builder slice today; every other route
13631
+ // would show a bare "$0.00" line.
13632
+ ...((_a2 = activeFeeBreakdown.builderFee) != null ? _a2 : 0) > 0 ? [
13633
+ {
13634
+ kind: "amount",
13635
+ label: tradingLabels.feeBreakdownBuilderFee,
13636
+ value: formatUsd((_b2 = activeFeeBreakdown.builderFee) != null ? _b2 : 0, {
13637
+ minimumFractionDigits: 2,
13638
+ maximumFractionDigits: 2
13639
+ })
13640
+ }
13641
+ ] : [],
13623
13642
  {
13624
13643
  kind: "amount",
13625
13644
  label: tradingLabels.feeBreakdownExecutionGas,
package/dist/trading.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  useClaimWinnings,
15
15
  useResolvedMarketClaim,
16
16
  venueRequiresSharedKyc
17
- } from "./chunk-4HTE5IEZ.mjs";
17
+ } from "./chunk-NCWBKC5C.mjs";
18
18
  import {
19
19
  SETTLEMENT_SECTION_ID,
20
20
  Settlement,
@@ -1,4 +1,4 @@
1
- import type { AggUiLabels } from "@agg-build/hooks";
1
+ import { type AggUiLabels } from "@agg-build/hooks";
2
2
  import type { EventListSortValue, EventListTab } from "./event-list.types";
3
3
  export declare const DEFAULT_EVENTS_LIMIT = 50;
4
4
  export declare const DEFAULT_EVENT_LIST_SORT: EventListSortValue;
@@ -1,4 +1,4 @@
1
- import type { AggUiLabels } from "@agg-build/hooks";
1
+ import { type AggUiLabels } from "@agg-build/hooks";
2
2
  import type { EventListSortValue, EventListTab } from "./event-list.types";
3
3
  export declare const DEFAULT_EVENTS_LIMIT = 50;
4
4
  export declare const DEFAULT_EVENT_LIST_SORT: EventListSortValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "4.10.0",
3
+ "version": "4.11.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.10.0",
104
- "@agg-build/sdk": "^4.10.0"
103
+ "@agg-build/hooks": "^4.11.0",
104
+ "@agg-build/sdk": "^4.11.0"
105
105
  },
106
106
  "dependencies": {
107
107
  "@number-flow/react": "^0.6.0",