@burdenoff/microfe-coolandlovely 2026.1107.2 → 2026.1108.1
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/coolandlovely/CoolAndLovelyRoot.d.ts +0 -1
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +0 -1
- package/dist/coolandlovely/components/ActivityTrail.d.ts +0 -1
- package/dist/coolandlovely/components/ActorName.d.ts +0 -1
- package/dist/coolandlovely/components/AddToCartPanel.d.ts +0 -1
- package/dist/coolandlovely/components/AddToLookbookButton.d.ts +0 -1
- package/dist/coolandlovely/components/BrandCard.d.ts +0 -1
- package/dist/coolandlovely/components/BrandCover.d.ts +0 -1
- package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts +0 -1
- package/dist/coolandlovely/components/CollaborationFeeCard.d.ts +0 -1
- package/dist/coolandlovely/components/CollectionCard.d.ts +0 -1
- package/dist/coolandlovely/components/ColourSwatchRow.d.ts +0 -1
- package/dist/coolandlovely/components/Comments.d.ts +0 -1
- package/dist/coolandlovely/components/EmptyState.d.ts +0 -1
- package/dist/coolandlovely/components/FeedbackWidget.d.ts +0 -1
- package/dist/coolandlovely/components/Field.d.ts +0 -1
- package/dist/coolandlovely/components/FileImage.d.ts +0 -1
- package/dist/coolandlovely/components/FollowButton.d.ts +0 -1
- package/dist/coolandlovely/components/FulfilmentTimeline.d.ts +1 -2
- package/dist/coolandlovely/components/ImageUploadField.d.ts +0 -1
- package/dist/coolandlovely/components/LookCard.d.ts +0 -1
- package/dist/coolandlovely/components/LookbookCard.d.ts +0 -1
- package/dist/coolandlovely/components/MetricsCard.d.ts +0 -1
- package/dist/coolandlovely/components/PageLayout.d.ts +0 -1
- package/dist/coolandlovely/components/PayForOrder.d.ts +0 -1
- package/dist/coolandlovely/components/RefundPanel.d.ts +1 -2
- package/dist/coolandlovely/components/ReturnRequests.d.ts +2 -3
- package/dist/coolandlovely/components/ShopItemCard.d.ts +0 -1
- package/dist/coolandlovely/components/StateViews.d.ts +0 -1
- package/dist/coolandlovely/components/StatusBadge.d.ts +0 -1
- package/dist/coolandlovely/components/StepTracker.d.ts +0 -1
- package/dist/coolandlovely/components/StockEditor.d.ts +0 -1
- package/dist/coolandlovely/components/StoreListingCard.d.ts +0 -1
- package/dist/coolandlovely/components/TagList.d.ts +0 -1
- package/dist/coolandlovely/components/Thumbnail.d.ts +0 -1
- package/dist/coolandlovely/components/VisibilityChip.d.ts +0 -1
- package/dist/coolandlovely/components/WardrobeItemCard.d.ts +0 -1
- package/dist/coolandlovely/components/prices/BestPriceBadge.d.ts +1 -2
- package/dist/coolandlovely/components/prices/LookbookPriceBoard.d.ts +1 -2
- package/dist/coolandlovely/components/prices/LookbookPriceBoard.js +14 -15
- package/dist/coolandlovely/components/prices/LookbookPriceBoard.js.map +1 -1
- package/dist/coolandlovely/components/prices/PriceComparison.d.ts +1 -1
- package/dist/coolandlovely/components/prices/PriceCurrencySelect.d.ts +1 -1
- package/dist/coolandlovely/components/prices/PricePanel.d.ts +1 -1
- package/dist/coolandlovely/components/prices/PriceWatchDisclosure.d.ts +1 -1
- package/dist/coolandlovely/components/prices/PriceWatchForm.d.ts +1 -1
- package/dist/coolandlovely/components/prices/PriceWatches.d.ts +1 -1
- package/dist/coolandlovely/components/prices/RetailerOfferLink.d.ts +1 -1
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +0 -1
- package/dist/coolandlovely/context/QueryScope.d.ts +0 -1
- package/dist/coolandlovely/context/queryScopeKey.d.ts +0 -1
- package/dist/coolandlovely/hooks/useBrandOrdersApi.d.ts +0 -1
- package/dist/coolandlovely/hooks/useCatalogImport.d.ts +0 -1
- package/dist/coolandlovely/hooks/useCommerceApi.d.ts +0 -1
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +0 -1
- package/dist/coolandlovely/hooks/useCreatorMarketplace.d.ts +0 -1
- package/dist/coolandlovely/hooks/useInventoryApi.d.ts +0 -1
- package/dist/coolandlovely/hooks/usePriceApi.d.ts +0 -1
- package/dist/coolandlovely/pages/HomePage.d.ts +1 -1
- package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts +1 -1
- package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts +1 -1
- package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts +1 -1
- package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/brands/ImportCatalogPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/commerce/BrandOrdersPage.d.ts +2 -2
- package/dist/coolandlovely/pages/commerce/CartPage.d.ts +1 -1
- package/dist/coolandlovely/pages/commerce/CreatorAnalyticsSection.d.ts +1 -1
- package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.d.ts +1 -1
- package/dist/coolandlovely/pages/commerce/OrdersPage.d.ts +2 -2
- package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts +1 -1
- package/dist/coolandlovely/pages/editorial/EditorialPage.d.ts +1 -1
- package/dist/coolandlovely/pages/items/StoreListedPieceView.d.ts +0 -1
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts +1 -1
- package/dist/coolandlovely/pages/looks/LookFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/looks/LooksListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/marketplace/CreatorMarketplacePage.d.ts +1 -1
- package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts +1 -1
- package/dist/coolandlovely/pages/trends/TrendsPage.d.ts +1 -1
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts +1 -1
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts +1 -1
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +28 -28
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -1
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts +0 -1
- package/dist/coolandlovely/types/commerce.d.ts +0 -1
- package/dist/coolandlovely/types/index.d.ts +0 -1
- package/dist/coolandlovely/utils/cn.d.ts +0 -1
- package/dist/coolandlovely/utils/icons.d.ts +0 -1
- package/dist/stories/BrandCard.stories.d.ts +1 -2
- package/dist/stories/BrandCard.stories.d.ts.map +1 -1
- package/dist/stories/CollectionCard.stories.d.ts +1 -2
- package/dist/stories/CollectionCard.stories.d.ts.map +1 -1
- package/dist/stories/DiscoverPage.stories.d.ts +1 -2
- package/dist/stories/DiscoverPage.stories.d.ts.map +1 -1
- package/dist/stories/FeedbackWidget.stories.d.ts +1 -2
- package/dist/stories/FeedbackWidget.stories.d.ts.map +1 -1
- package/dist/stories/LookCard.stories.d.ts +1 -2
- package/dist/stories/LookCard.stories.d.ts.map +1 -1
- package/dist/stories/LookbookCard.stories.d.ts +1 -2
- package/dist/stories/LookbookCard.stories.d.ts.map +1 -1
- package/dist/stories/MetricsCard.stories.d.ts +1 -2
- package/dist/stories/MetricsCard.stories.d.ts.map +1 -1
- package/dist/stories/ShopItemCard.stories.d.ts +1 -2
- package/dist/stories/ShopItemCard.stories.d.ts.map +1 -1
- package/dist/stories/StatusBadge.stories.d.ts +1 -2
- package/dist/stories/StatusBadge.stories.d.ts.map +1 -1
- package/dist/stories/VisibilityChip.stories.d.ts +1 -2
- package/dist/stories/VisibilityChip.stories.d.ts.map +1 -1
- package/dist/stories/WardrobeItemCard.stories.d.ts +1 -2
- package/dist/stories/WardrobeItemCard.stories.d.ts.map +1 -1
- package/dist/stories/__fixtures__/coolandlovely.d.ts +0 -1
- package/package.json +12 -11
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CooOrderFulfilment } from '../types';
|
|
2
|
-
|
|
3
2
|
/** Timeline of one brand's fulfilment, shared with the shopper's order detail. */
|
|
4
3
|
export declare function FulfilmentTimeline({ fulfilment }: {
|
|
5
4
|
fulfilment: CooOrderFulfilment;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
7
6
|
//# sourceMappingURL=FulfilmentTimeline.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooBrandOrder } from '../types';
|
|
2
|
-
|
|
3
2
|
/** Whether the brand can (still) start or retry a refund of this order. */
|
|
4
3
|
export declare function canRefund(order: CooBrandOrder): boolean;
|
|
5
4
|
/** Units of the brand's pieces in this order that took stock at checkout and can be restocked. */
|
|
@@ -8,5 +7,5 @@ export declare function restockableUnits(order: CooBrandOrder): number;
|
|
|
8
7
|
export declare function canRestockLater(order: CooBrandOrder): boolean;
|
|
9
8
|
export declare function RefundPanel({ order }: {
|
|
10
9
|
order: CooBrandOrder;
|
|
11
|
-
}): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
12
11
|
//# sourceMappingURL=RefundPanel.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooBrandOrder, CooOrder } from '../types';
|
|
2
|
-
|
|
3
2
|
/** Whether the return window of a paid order is still open. */
|
|
4
3
|
export declare function isReturnWindowOpen(order: Pick<CooOrder, 'returnWindowEndsAt'>, now?: number): boolean;
|
|
5
4
|
/** Whether the shopper can still ask the brand to take back its pieces of this order. */
|
|
@@ -7,9 +6,9 @@ export declare function canRequestReturn(order: CooOrder, brandId: string, now?:
|
|
|
7
6
|
/** The shopper's returns card on a paid order: one row per brand in the order. */
|
|
8
7
|
export declare function OrderReturns({ order }: {
|
|
9
8
|
order: CooOrder;
|
|
10
|
-
}): import(
|
|
9
|
+
}): import('react').JSX.Element | null;
|
|
11
10
|
/** The brand's view of the shopper's return request, with approve and decline. */
|
|
12
11
|
export declare function ReturnRequestPanel({ order }: {
|
|
13
12
|
order: CooBrandOrder;
|
|
14
|
-
}): import(
|
|
13
|
+
}): import('react').JSX.Element | null;
|
|
15
14
|
//# sourceMappingURL=ReturnRequests.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CooBestPricesQuery } from '../../../generated/wspace-operations';
|
|
2
|
-
|
|
3
2
|
export declare function BestPriceBadge({ summary, onOpen, }: {
|
|
4
3
|
summary: CooBestPricesQuery['cooBestPrices'][number] | undefined;
|
|
5
4
|
onOpen: () => void;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element | null;
|
|
7
6
|
//# sourceMappingURL=BestPriceBadge.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CooLook, CooLookbookEntry, CooStyleItem } from '../../types';
|
|
2
|
-
|
|
3
2
|
export declare function LookbookPriceBoard({ entries, looks, items, removingEntryId, onRemove, }: {
|
|
4
3
|
entries: CooLookbookEntry[];
|
|
5
4
|
looks: CooLook[];
|
|
6
5
|
items: CooStyleItem[];
|
|
7
6
|
removingEntryId?: string;
|
|
8
7
|
onRemove: (id: string) => void;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
10
9
|
//# sourceMappingURL=LookbookPriceBoard.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../
|
|
3
|
-
import { Thumbnail as t } from "../Thumbnail.js";
|
|
1
|
+
import { Thumbnail as e } from "../Thumbnail.js";
|
|
2
|
+
import { useContextNavigation as t } from "../../hooks/useContextNavigation.js";
|
|
4
3
|
import { useBestPrices as n } from "../../hooks/usePriceApi.js";
|
|
5
4
|
import { BestPriceBadge as r } from "./BestPriceBadge.js";
|
|
6
5
|
import { PriceCurrencySelect as i } from "./PriceCurrencySelect.js";
|
|
@@ -14,7 +13,7 @@ var p = [
|
|
|
14
13
|
"aspect-[4/5]"
|
|
15
14
|
];
|
|
16
15
|
function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v }) {
|
|
17
|
-
let
|
|
16
|
+
let y = t(), [b, x] = o("USD"), S = a(() => new Map(h.map((e) => [e.id, e])), [h]), C = a(() => new Map(g.map((e) => [e.id, e])), [g]), w = a(() => [...new Set(m.map((e) => e.styleItemId).filter((e) => !!e))], [m]), T = n(w.slice(0, 100), b), E = a(() => new Map(T.data?.map((e) => [e.styleItemId, e])), [T.data]);
|
|
18
17
|
return /* @__PURE__ */ f("section", {
|
|
19
18
|
className: "mt-6",
|
|
20
19
|
children: [
|
|
@@ -59,9 +58,9 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
|
|
|
59
58
|
children: "This lookbook has no entries yet. Clip a catalogue piece or save a look to add one."
|
|
60
59
|
}) : /* @__PURE__ */ d("div", {
|
|
61
60
|
className: "columns-2 gap-4 md:columns-3",
|
|
62
|
-
children: m.map((
|
|
63
|
-
let i = !!
|
|
64
|
-
i &&
|
|
61
|
+
children: m.map((t, n) => {
|
|
62
|
+
let i = !!t.lookId, a = t.lookId ? S.get(t.lookId) : void 0, o = t.styleItemId ? C.get(t.styleItemId) : void 0, m = i ? a?.title ?? "Saved look" : o?.name ?? "Clipped piece", h = i ? a?.image?.id : o?.image?.id, g = _ === t.id, b = () => {
|
|
63
|
+
i && t.lookId ? y(`/looks/${t.lookId}`) : t.styleItemId && y(`/items/${t.styleItemId}`);
|
|
65
64
|
};
|
|
66
65
|
return /* @__PURE__ */ f("div", {
|
|
67
66
|
className: "group relative mb-4 break-inside-avoid overflow-hidden rounded-xl border border-border-seam bg-bg-surface shadow-sm transition-shadow hover:shadow-lg",
|
|
@@ -71,19 +70,19 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
|
|
|
71
70
|
onClick: b,
|
|
72
71
|
"aria-label": `Open ${m}`,
|
|
73
72
|
className: "block w-full text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]",
|
|
74
|
-
children: /* @__PURE__ */ d(
|
|
73
|
+
children: /* @__PURE__ */ d(e, {
|
|
75
74
|
icon: d(i ? c : l, { className: "h-8 w-8" }),
|
|
76
|
-
seed:
|
|
75
|
+
seed: t.id,
|
|
77
76
|
fileId: h,
|
|
78
77
|
alt: m,
|
|
79
78
|
className: `w-full rounded-none ${p[n % p.length]}`,
|
|
80
79
|
overlay: /* @__PURE__ */ f("div", {
|
|
81
80
|
className: "pointer-events-none absolute inset-x-0 bottom-0 flex flex-col gap-1.5 bg-gradient-to-t from-bg-canvas/90 via-bg-canvas/40 to-transparent p-3 pt-10",
|
|
82
|
-
children: [
|
|
81
|
+
children: [t.note && /* @__PURE__ */ d("span", {
|
|
83
82
|
className: "inline-flex w-fit max-w-full items-center rounded-md bg-bg-canvas/80 px-2 py-0.5 text-[11px] font-medium text-text-primary backdrop-blur",
|
|
84
83
|
children: /* @__PURE__ */ d("span", {
|
|
85
84
|
className: "truncate",
|
|
86
|
-
children:
|
|
85
|
+
children: t.note
|
|
87
86
|
})
|
|
88
87
|
}), /* @__PURE__ */ d("p", {
|
|
89
88
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
@@ -92,23 +91,23 @@ function m({ entries: m, looks: h, items: g, removingEntryId: _, onRemove: v })
|
|
|
92
91
|
})
|
|
93
92
|
})
|
|
94
93
|
}),
|
|
95
|
-
|
|
94
|
+
t.styleItemId && /* @__PURE__ */ d("div", {
|
|
96
95
|
className: "px-3 pb-3",
|
|
97
96
|
children: /* @__PURE__ */ d(r, {
|
|
98
|
-
summary: E.get(
|
|
97
|
+
summary: E.get(t.styleItemId),
|
|
99
98
|
onOpen: b
|
|
100
99
|
})
|
|
101
100
|
}),
|
|
102
101
|
/* @__PURE__ */ d("button", {
|
|
103
102
|
type: "button",
|
|
104
103
|
disabled: !!_,
|
|
105
|
-
onClick: () => v(
|
|
104
|
+
onClick: () => v(t.id),
|
|
106
105
|
"aria-label": `Remove ${m}`,
|
|
107
106
|
className: "absolute right-2 top-2 z-10 inline-flex h-7 w-7 items-center justify-center rounded-full bg-bg-surface/90 text-text-secondary opacity-100 shadow-sm backdrop-blur transition-opacity hover:text-status-error-text sm:opacity-0 sm:focus-visible:opacity-100 sm:group-hover:opacity-100 disabled:opacity-60",
|
|
108
107
|
children: g ? /* @__PURE__ */ d(s, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ d(u, { className: "h-3.5 w-3.5" })
|
|
109
108
|
})
|
|
110
109
|
]
|
|
111
|
-
},
|
|
110
|
+
}, t.id);
|
|
112
111
|
})
|
|
113
112
|
})
|
|
114
113
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LookbookPriceBoard.js","names":[],"sources":["../../../../src/coolandlovely/components/prices/LookbookPriceBoard.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { Loader2, Sparkles, Tag, X } from 'lucide-react';\nimport {
|
|
1
|
+
{"version":3,"file":"LookbookPriceBoard.js","names":[],"sources":["../../../../src/coolandlovely/components/prices/LookbookPriceBoard.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { Loader2, Sparkles, Tag, X } from 'lucide-react';\nimport { useContextNavigation } from '../../hooks/useContextNavigation';\nimport { useBestPrices } from '../../hooks/usePriceApi';\nimport type { CooLook, CooLookbookEntry, CooStyleItem } from '../../types';\nimport { Thumbnail } from '../Thumbnail';\nimport { BestPriceBadge } from './BestPriceBadge';\nimport { PriceCurrencySelect } from './PriceCurrencySelect';\n\n/** Alternating aspect ratios preserve the existing board rhythm. */\nconst TILE_ASPECTS = ['aspect-[3/4]', 'aspect-square', 'aspect-[4/5]'];\n\nexport function LookbookPriceBoard({\n entries,\n looks,\n items,\n removingEntryId,\n onRemove,\n}: {\n entries: CooLookbookEntry[];\n looks: CooLook[];\n items: CooStyleItem[];\n removingEntryId?: string;\n onRemove: (id: string) => void;\n}) {\n const navigateTo = useContextNavigation();\n const [priceCurrency, setPriceCurrency] = useState('USD');\n const lookById = useMemo(() => new Map(looks.map((look) => [look.id, look])), [looks]);\n const itemById = useMemo(() => new Map(items.map((item) => [item.id, item])), [items]);\n const priceIds = useMemo(\n () => [\n ...new Set(\n entries.map((entry) => entry.styleItemId).filter((id): id is string => Boolean(id))\n ),\n ],\n [entries]\n );\n const bestPrices = useBestPrices(priceIds.slice(0, 100), priceCurrency);\n const priceByItem = useMemo(\n () => new Map(bestPrices.data?.map((entry) => [entry.styleItemId, entry])),\n [bestPrices.data]\n );\n return (\n <section className=\"mt-6\">\n <PriceCurrencySelect\n value={priceCurrency}\n onChange={setPriceCurrency}\n currencies={items.map((item) => item.currency)}\n />\n <p className=\"mb-3 text-xs text-text-secondary\">\n Retailer quotes for clipped catalog pieces use {priceCurrency} without currency conversion.\n {priceIds.length > 100 ? ' Pricing covers the first 100 linked pieces.' : ''}\n </p>\n {bestPrices.isError && (\n <p role=\"alert\" className=\"mb-3 text-sm text-status-error-text\">\n Retailer prices could not be loaded.{' '}\n <button type=\"button\" className=\"underline\" onClick={() => void bestPrices.refetch()}>\n Retry prices\n </button>\n </p>\n )}\n <h3 className=\"mb-3 text-lg font-semibold text-text-primary\">Board ({entries.length})</h3>\n {entries.length === 0 ? (\n <p className=\"rounded-lg border border-border-seam bg-bg-surface p-4 text-sm text-text-secondary\">\n This lookbook has no entries yet. Clip a catalogue piece or save a look to add one.\n </p>\n ) : (\n <div className=\"columns-2 gap-4 md:columns-3\">\n {entries.map((entry, idx) => {\n const isLook = Boolean(entry.lookId);\n const look = entry.lookId ? lookById.get(entry.lookId) : undefined;\n const item = entry.styleItemId ? itemById.get(entry.styleItemId) : undefined;\n const title = isLook ? (look?.title ?? 'Saved look') : (item?.name ?? 'Clipped piece');\n const imageFileId = isLook ? look?.image?.id : item?.image?.id;\n const removing = removingEntryId === entry.id;\n const onOpen = () => {\n if (isLook && entry.lookId) navigateTo(`/looks/${entry.lookId}`);\n else if (entry.styleItemId) navigateTo(`/items/${entry.styleItemId}`);\n };\n return (\n <div\n key={entry.id}\n className=\"group relative mb-4 break-inside-avoid overflow-hidden rounded-xl border border-border-seam bg-bg-surface shadow-sm transition-shadow hover:shadow-lg\"\n >\n <button\n type=\"button\"\n onClick={onOpen}\n aria-label={`Open ${title}`}\n className=\"block w-full text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]\"\n >\n <Thumbnail\n icon={isLook ? <Sparkles className=\"h-8 w-8\" /> : <Tag className=\"h-8 w-8\" />}\n seed={entry.id}\n fileId={imageFileId}\n alt={title}\n className={`w-full rounded-none ${TILE_ASPECTS[idx % TILE_ASPECTS.length]}`}\n overlay={\n <div className=\"pointer-events-none absolute inset-x-0 bottom-0 flex flex-col gap-1.5 bg-gradient-to-t from-bg-canvas/90 via-bg-canvas/40 to-transparent p-3 pt-10\">\n {entry.note && (\n <span className=\"inline-flex w-fit max-w-full items-center rounded-md bg-bg-canvas/80 px-2 py-0.5 text-[11px] font-medium text-text-primary backdrop-blur\">\n <span className=\"truncate\">{entry.note}</span>\n </span>\n )}\n <p className=\"truncate text-sm font-semibold text-text-primary\">{title}</p>\n </div>\n }\n />\n </button>\n {entry.styleItemId && (\n <div className=\"px-3 pb-3\">\n <BestPriceBadge summary={priceByItem.get(entry.styleItemId)} onOpen={onOpen} />\n </div>\n )}\n <button\n type=\"button\"\n disabled={Boolean(removingEntryId)}\n onClick={() => onRemove(entry.id)}\n aria-label={`Remove ${title}`}\n className=\"absolute right-2 top-2 z-10 inline-flex h-7 w-7 items-center justify-center rounded-full bg-bg-surface/90 text-text-secondary opacity-100 shadow-sm backdrop-blur transition-opacity hover:text-status-error-text sm:opacity-0 sm:focus-visible:opacity-100 sm:group-hover:opacity-100 disabled:opacity-60\"\n >\n {removing ? (\n <Loader2 className=\"h-3.5 w-3.5 animate-spin\" />\n ) : (\n <X className=\"h-3.5 w-3.5\" />\n )}\n </button>\n </div>\n );\n })}\n </div>\n )}\n </section>\n );\n}\n"],"mappings":"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"}
|
|
@@ -2,5 +2,5 @@ export declare function PriceCurrencySelect({ value, onChange, currencies, }: {
|
|
|
2
2
|
value: string;
|
|
3
3
|
onChange: (currency: string) => void;
|
|
4
4
|
currencies?: string[];
|
|
5
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
6
6
|
//# sourceMappingURL=PriceCurrencySelect.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function PriceWatchDisclosure(): import(
|
|
1
|
+
export declare function PriceWatchDisclosure(): import('react').JSX.Element;
|
|
2
2
|
//# sourceMappingURL=PriceWatchDisclosure.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Mounted lazily from Style Profile; actor/context changes remount through the scoped Root. */
|
|
2
|
-
export declare function PriceWatches(): import(
|
|
2
|
+
export declare function PriceWatches(): import('react').JSX.Element;
|
|
3
3
|
//# sourceMappingURL=PriceWatches.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { CoolAndLovelyRootProps } from '../types';
|
|
3
|
-
|
|
4
3
|
interface CoolAndLovelyContextValue extends Omit<CoolAndLovelyRootProps, 'registerNavItems' | 'registerFooterItems' | 'navigate'> {
|
|
5
4
|
isStandalone: boolean;
|
|
6
5
|
/** Shell's navigate function (only available in integrated mode) */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
|
|
3
2
|
/** Each mounted security scope owns its cache, including legacy unscoped query keys. */
|
|
4
3
|
export declare function CoolAndLovelyQueryScope({ children }: PropsWithChildren): ReactElement;
|
|
5
4
|
//# sourceMappingURL=QueryScope.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooApproveReturnRequestInput, CooBrandOrder, CooBrandOrderConnection, CooBrandOrderSummary, CooDeclineReturnRequestInput, CooFulfilmentStatus, CooRefundBrandOrderInput, CooReturnRequestConnection, CooReturnRequestStatus, CooUpdateOrderFulfilmentInput } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare const useBrandOrders: (brandId: string | undefined, fulfilmentStatus?: CooFulfilmentStatus) => import('@tanstack/react-query').UseQueryResult<CooBrandOrderConnection, Error>;
|
|
4
3
|
export declare const useBrandOrderSummary: (brandId: string | undefined) => import('@tanstack/react-query').UseQueryResult<CooBrandOrderSummary, Error>;
|
|
5
4
|
export declare const useBrandOrder: (brandId: string | undefined, id: string | undefined) => import('@tanstack/react-query').UseQueryResult<CooBrandOrder | null, Error>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooBulkCatalogImportResult, CooExternalCatalogPreview, CooExternalCatalogSourceInput } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare const usePreviewExternalCatalog: () => import('@tanstack/react-query').UseMutationResult<CooExternalCatalogPreview, Error, CooExternalCatalogSourceInput, unknown>;
|
|
4
3
|
/** Progress of an import run, for the progress bar. */
|
|
5
4
|
export interface CatalogImportProgress {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooAddToCartInput, CooBuyStoreListedPieceInput, CooCart, CooCheckoutInput, CooCollaborationPaymentCheckout, CooCollaborationPayout, CooCollaborationPayoutConnection, CooCreatorEarningConnection, CooCreatorEarningsSummary, CooCreatorPayout, CooOrder, CooOrderCheckout, CooOrderConnection, CooOrderStatus, CooRequestReturnInput, CooReturnRequest, CooStoreListedPiece } from '../types';
|
|
2
|
-
|
|
3
2
|
/** Per-brand fulfilment (BOFF-9636): shared by the shopper's order detail and the brand view. */
|
|
4
3
|
export declare const FULFILMENT_FIELDS = "\n id orderId brandId brandName status refunded carrier trackingNumber trackingUrl note\n confirmedAt shippedAt deliveredAt updatedAt\n";
|
|
5
4
|
/** A brand's refund of its pieces (BOFF-9702): the shopper's order detail and the brand view. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooAddLookbookEntryInput, CooBrand, CooBrandConnection, CooBrandStatus, CooCollaboration, CooCollaborationStatus, CooCollection, CooCollectionStatus, CooCreateBrandInput, CooCreateCollaborationInput, CooCreateCollectionInput, CooCreateLookInput, CooCreateLookbookInput, CooCreateStyleItemInput, CooCreateWardrobeItemInput, CooLook, CooLookConnection, CooLookOccasion, CooLookbook, CooStyleCategory, CooStyleItem, CooStyleItemConnection, CooStyleItemStatus, CooStyleProfile, CooUpdateBrandInput, CooUpdateCollaborationInput, CooUpdateCollectionInput, CooUpdateLookInput, CooUpdateStyleItemInput, CooUpdateWardrobeItemInput, CooUpsertStyleProfileInput, CooWardrobeItem, CooWardrobeSource, PaginationInput, CooSearchStyleItemsInput, CooSearchLooksInput, CooReviewCollaborationInput } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare const coolQuery: <TData>(query: string, variables: Record<string, unknown>, baseUrl?: string, signal?: AbortSignal) => Promise<TData>;
|
|
4
3
|
/** Fields of a collaboration fee (BOFF-9637), shared with the commerce hooks. */
|
|
5
4
|
export declare const COLLABORATION_PAYOUT_FIELDS = "\n id collaborationId collaborationTitle brandId creatorId amount currency status paymentProvider\n paidAt earningAvailableAt earningSyncStatus createdAt updatedAt\n";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CooMarketplaceCreateOfferMutation, CooMarketplaceUpdateOfferMutation, CooMarketplacePublishOfferMutation, CooMarketplaceArchiveOfferMutation, CooMarketplaceProposeOfferMutation, CooMarketplaceRespondMutation } from '../../generated/wspace-operations';
|
|
2
2
|
import { CooProposalDirection } from '../../generated/wspace-types';
|
|
3
|
-
|
|
4
3
|
export type { CooMarketplaceRateCardFragment as CreatorOffer, CooMarketplaceProposalFragment as CreatorProposal, } from '../../generated/wspace-operations';
|
|
5
4
|
export declare const MARKETPLACE_PAGE_SIZE = 20;
|
|
6
5
|
export declare function useCreatorOffers(mode: 'mine' | 'published', page: number, enabled?: boolean): import('@tanstack/react-query').UseQueryResult<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CooSetStyleItemInventoryInput, CooStyleItemInventory, CooStyleItemStatus } from '../types';
|
|
2
|
-
|
|
3
2
|
/** The stock picture of one style item. */
|
|
4
3
|
export declare const useStyleItemInventory: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<CooStyleItemInventory | null, Error>;
|
|
5
4
|
/** Turn stock tracking on or off and set the stock of a style item's variants. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CooPriceDetailQuery } from '../../generated/wspace-operations';
|
|
2
2
|
import { CooPriceAlertInput } from '../../generated/wspace-types';
|
|
3
|
-
|
|
4
3
|
/** One request for the current card page; linked IDs only, never a per-card request burst. */
|
|
5
4
|
export declare function useBestPrices(styleItemIds: string[], currency: string): import('@tanstack/react-query').UseQueryResult<{
|
|
6
5
|
__typename?: "CooBestPriceSummary";
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* dashboard rolling up live catalog (brands, items), social (looks,
|
|
7
7
|
* collaborations) and the shopper's own wardrobe — all from real `coo*` ops.
|
|
8
8
|
*/
|
|
9
|
-
export declare function HomePage(): import(
|
|
9
|
+
export declare function HomePage(): import('react').JSX.Element;
|
|
10
10
|
//# sourceMappingURL=HomePage.d.ts.map
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Curation surface for brand storefront approvals. Lists brands pending review
|
|
6
6
|
* and lets admins approve (PUBLISHED) or reject (DRAFT) them.
|
|
7
7
|
*/
|
|
8
|
-
export declare function AdminBrandsPage(): import(
|
|
8
|
+
export declare function AdminBrandsPage(): import('react').JSX.Element;
|
|
9
9
|
//# sourceMappingURL=AdminBrandsPage.d.ts.map
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Curation surface for brand × creator collaborations. Lists collaborations that
|
|
6
6
|
* can be advanced through their lifecycle via APPROVE/REJECT admin decisions.
|
|
7
7
|
*/
|
|
8
|
-
export declare function AdminCollaborationsPage(): import(
|
|
8
|
+
export declare function AdminCollaborationsPage(): import('react').JSX.Element;
|
|
9
9
|
//# sourceMappingURL=AdminCollaborationsPage.d.ts.map
|