@agg-build/ui 1.2.0 → 1.2.2
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-CDQZJPHQ.mjs → chunk-6IBEGR7C.mjs} +3 -1
- package/dist/{chunk-EGCVA2AQ.mjs → chunk-E45WOOMN.mjs} +1 -0
- package/dist/events.js +1 -0
- package/dist/events.mjs +1 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +2 -2
- package/dist/pages.js +3 -0
- package/dist/pages.mjs +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isErrorWithStatus,
|
|
10
10
|
useEventListTabs,
|
|
11
11
|
useEventListTabsHeaderOverflow
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E45WOOMN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
15
15
|
PlaceOrder,
|
|
@@ -3496,6 +3496,7 @@ var UserProfilePage = ({
|
|
|
3496
3496
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
3497
3497
|
};
|
|
3498
3498
|
const classifyPosition = (position) => {
|
|
3499
|
+
if (position.marketStatus === "open") return "active";
|
|
3499
3500
|
if (position.winner === true) {
|
|
3500
3501
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
3501
3502
|
}
|
|
@@ -3530,6 +3531,7 @@ var UserProfilePage = ({
|
|
|
3530
3531
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
3531
3532
|
};
|
|
3532
3533
|
const classifyPosition = (position) => {
|
|
3534
|
+
if (position.marketStatus === "open") return "active";
|
|
3533
3535
|
if (position.winner === true) {
|
|
3534
3536
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
3535
3537
|
}
|
package/dist/events.js
CHANGED
|
@@ -11021,6 +11021,7 @@ var MarketDetailsContent = ({
|
|
|
11021
11021
|
{
|
|
11022
11022
|
id: detailsContentId,
|
|
11023
11023
|
className: cn(
|
|
11024
|
+
"agg-market-details",
|
|
11024
11025
|
"grid overflow-hidden",
|
|
11025
11026
|
getMotionClassName(
|
|
11026
11027
|
config.features.enableAnimations,
|
package/dist/events.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -14576,6 +14576,7 @@ var MarketDetailsContent = ({
|
|
|
14576
14576
|
{
|
|
14577
14577
|
id: detailsContentId,
|
|
14578
14578
|
className: cn(
|
|
14579
|
+
"agg-market-details",
|
|
14579
14580
|
"grid overflow-hidden",
|
|
14580
14581
|
getMotionClassName(
|
|
14581
14582
|
config.features.enableAnimations,
|
|
@@ -22289,6 +22290,7 @@ var UserProfilePage = ({
|
|
|
22289
22290
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
22290
22291
|
};
|
|
22291
22292
|
const classifyPosition = (position) => {
|
|
22293
|
+
if (position.marketStatus === "open") return "active";
|
|
22292
22294
|
if (position.winner === true) {
|
|
22293
22295
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
22294
22296
|
}
|
|
@@ -22323,6 +22325,7 @@ var UserProfilePage = ({
|
|
|
22323
22325
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
22324
22326
|
};
|
|
22325
22327
|
const classifyPosition = (position) => {
|
|
22328
|
+
if (position.marketStatus === "open") return "active";
|
|
22326
22329
|
if (position.winner === true) {
|
|
22327
22330
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
22328
22331
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
USER_PROFILE_TAB_POSITIONS,
|
|
11
11
|
UserProfilePage,
|
|
12
12
|
useHomePageModals
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6IBEGR7C.mjs";
|
|
14
14
|
import {
|
|
15
15
|
EventList,
|
|
16
16
|
EventListItem,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
mergeVenueOutcomeOrderbooks,
|
|
26
26
|
orderbookRowLimitDefault,
|
|
27
27
|
useCenterOrderbookSpread
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E45WOOMN.mjs";
|
|
29
29
|
import {
|
|
30
30
|
CARD_NETWORK_OPTIONS,
|
|
31
31
|
ConnectAccountsStep,
|
package/dist/pages.js
CHANGED
|
@@ -13157,6 +13157,7 @@ var MarketDetailsContent = ({
|
|
|
13157
13157
|
{
|
|
13158
13158
|
id: detailsContentId,
|
|
13159
13159
|
className: cn(
|
|
13160
|
+
"agg-market-details",
|
|
13160
13161
|
"grid overflow-hidden",
|
|
13161
13162
|
getMotionClassName(
|
|
13162
13163
|
config.features.enableAnimations,
|
|
@@ -20578,6 +20579,7 @@ var UserProfilePage = ({
|
|
|
20578
20579
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
20579
20580
|
};
|
|
20580
20581
|
const classifyPosition = (position) => {
|
|
20582
|
+
if (position.marketStatus === "open") return "active";
|
|
20581
20583
|
if (position.winner === true) {
|
|
20582
20584
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
20583
20585
|
}
|
|
@@ -20612,6 +20614,7 @@ var UserProfilePage = ({
|
|
|
20612
20614
|
return position.totalShares >= SOLD_POSITION_SHARES_THRESHOLD;
|
|
20613
20615
|
};
|
|
20614
20616
|
const classifyPosition = (position) => {
|
|
20617
|
+
if (position.marketStatus === "open") return "active";
|
|
20615
20618
|
if (position.winner === true) {
|
|
20616
20619
|
return position.closedClaimStatus === "redeemed" ? "closed" : "active";
|
|
20617
20620
|
}
|
package/dist/pages.mjs
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
USER_PROFILE_TAB_POSITIONS,
|
|
8
8
|
UserProfilePage,
|
|
9
9
|
useHomePageModals
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-6IBEGR7C.mjs";
|
|
11
|
+
import "./chunk-E45WOOMN.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEPOSIT_MODAL_OPEN_EVENT,
|
|
14
14
|
WITHDRAW_MODAL_OPEN_EVENT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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",
|