@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.
Files changed (124) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.d.ts +0 -1
  2. package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +0 -1
  3. package/dist/coolandlovely/components/ActivityTrail.d.ts +0 -1
  4. package/dist/coolandlovely/components/ActorName.d.ts +0 -1
  5. package/dist/coolandlovely/components/AddToCartPanel.d.ts +0 -1
  6. package/dist/coolandlovely/components/AddToLookbookButton.d.ts +0 -1
  7. package/dist/coolandlovely/components/BrandCard.d.ts +0 -1
  8. package/dist/coolandlovely/components/BrandCover.d.ts +0 -1
  9. package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts +0 -1
  10. package/dist/coolandlovely/components/CollaborationFeeCard.d.ts +0 -1
  11. package/dist/coolandlovely/components/CollectionCard.d.ts +0 -1
  12. package/dist/coolandlovely/components/ColourSwatchRow.d.ts +0 -1
  13. package/dist/coolandlovely/components/Comments.d.ts +0 -1
  14. package/dist/coolandlovely/components/EmptyState.d.ts +0 -1
  15. package/dist/coolandlovely/components/FeedbackWidget.d.ts +0 -1
  16. package/dist/coolandlovely/components/Field.d.ts +0 -1
  17. package/dist/coolandlovely/components/FileImage.d.ts +0 -1
  18. package/dist/coolandlovely/components/FollowButton.d.ts +0 -1
  19. package/dist/coolandlovely/components/FulfilmentTimeline.d.ts +1 -2
  20. package/dist/coolandlovely/components/ImageUploadField.d.ts +0 -1
  21. package/dist/coolandlovely/components/LookCard.d.ts +0 -1
  22. package/dist/coolandlovely/components/LookbookCard.d.ts +0 -1
  23. package/dist/coolandlovely/components/MetricsCard.d.ts +0 -1
  24. package/dist/coolandlovely/components/PageLayout.d.ts +0 -1
  25. package/dist/coolandlovely/components/PayForOrder.d.ts +0 -1
  26. package/dist/coolandlovely/components/RefundPanel.d.ts +1 -2
  27. package/dist/coolandlovely/components/ReturnRequests.d.ts +2 -3
  28. package/dist/coolandlovely/components/ShopItemCard.d.ts +0 -1
  29. package/dist/coolandlovely/components/StateViews.d.ts +0 -1
  30. package/dist/coolandlovely/components/StatusBadge.d.ts +0 -1
  31. package/dist/coolandlovely/components/StepTracker.d.ts +0 -1
  32. package/dist/coolandlovely/components/StockEditor.d.ts +0 -1
  33. package/dist/coolandlovely/components/StoreListingCard.d.ts +0 -1
  34. package/dist/coolandlovely/components/TagList.d.ts +0 -1
  35. package/dist/coolandlovely/components/Thumbnail.d.ts +0 -1
  36. package/dist/coolandlovely/components/VisibilityChip.d.ts +0 -1
  37. package/dist/coolandlovely/components/WardrobeItemCard.d.ts +0 -1
  38. package/dist/coolandlovely/components/prices/BestPriceBadge.d.ts +1 -2
  39. package/dist/coolandlovely/components/prices/LookbookPriceBoard.d.ts +1 -2
  40. package/dist/coolandlovely/components/prices/LookbookPriceBoard.js +14 -15
  41. package/dist/coolandlovely/components/prices/LookbookPriceBoard.js.map +1 -1
  42. package/dist/coolandlovely/components/prices/PriceComparison.d.ts +1 -1
  43. package/dist/coolandlovely/components/prices/PriceCurrencySelect.d.ts +1 -1
  44. package/dist/coolandlovely/components/prices/PricePanel.d.ts +1 -1
  45. package/dist/coolandlovely/components/prices/PriceWatchDisclosure.d.ts +1 -1
  46. package/dist/coolandlovely/components/prices/PriceWatchForm.d.ts +1 -1
  47. package/dist/coolandlovely/components/prices/PriceWatches.d.ts +1 -1
  48. package/dist/coolandlovely/components/prices/RetailerOfferLink.d.ts +1 -1
  49. package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +0 -1
  50. package/dist/coolandlovely/context/QueryScope.d.ts +0 -1
  51. package/dist/coolandlovely/context/queryScopeKey.d.ts +0 -1
  52. package/dist/coolandlovely/hooks/useBrandOrdersApi.d.ts +0 -1
  53. package/dist/coolandlovely/hooks/useCatalogImport.d.ts +0 -1
  54. package/dist/coolandlovely/hooks/useCommerceApi.d.ts +0 -1
  55. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +0 -1
  56. package/dist/coolandlovely/hooks/useCreatorMarketplace.d.ts +0 -1
  57. package/dist/coolandlovely/hooks/useInventoryApi.d.ts +0 -1
  58. package/dist/coolandlovely/hooks/usePriceApi.d.ts +0 -1
  59. package/dist/coolandlovely/pages/HomePage.d.ts +1 -1
  60. package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts +1 -1
  61. package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts +1 -1
  62. package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts +1 -1
  63. package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts +1 -1
  64. package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts +1 -1
  65. package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts +1 -1
  66. package/dist/coolandlovely/pages/brands/ImportCatalogPage.d.ts +1 -1
  67. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts +1 -1
  68. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts +1 -1
  69. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts +1 -1
  70. package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts +1 -1
  71. package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts +1 -1
  72. package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts +1 -1
  73. package/dist/coolandlovely/pages/commerce/BrandOrdersPage.d.ts +2 -2
  74. package/dist/coolandlovely/pages/commerce/CartPage.d.ts +1 -1
  75. package/dist/coolandlovely/pages/commerce/CreatorAnalyticsSection.d.ts +1 -1
  76. package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.d.ts +1 -1
  77. package/dist/coolandlovely/pages/commerce/OrdersPage.d.ts +2 -2
  78. package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts +1 -1
  79. package/dist/coolandlovely/pages/editorial/EditorialPage.d.ts +1 -1
  80. package/dist/coolandlovely/pages/items/StoreListedPieceView.d.ts +0 -1
  81. package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts +1 -1
  82. package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts +1 -1
  83. package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts +1 -1
  84. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts +1 -1
  85. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts +1 -1
  86. package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts +1 -1
  87. package/dist/coolandlovely/pages/looks/LookFormPage.d.ts +1 -1
  88. package/dist/coolandlovely/pages/looks/LooksListPage.d.ts +1 -1
  89. package/dist/coolandlovely/pages/marketplace/CreatorMarketplacePage.d.ts +1 -1
  90. package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts +1 -1
  91. package/dist/coolandlovely/pages/trends/TrendsPage.d.ts +1 -1
  92. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts +1 -1
  93. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts +1 -1
  94. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +28 -28
  95. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js.map +1 -1
  96. package/dist/coolandlovely/store/coolandlovelyStore.d.ts +0 -1
  97. package/dist/coolandlovely/types/commerce.d.ts +0 -1
  98. package/dist/coolandlovely/types/index.d.ts +0 -1
  99. package/dist/coolandlovely/utils/cn.d.ts +0 -1
  100. package/dist/coolandlovely/utils/icons.d.ts +0 -1
  101. package/dist/stories/BrandCard.stories.d.ts +1 -2
  102. package/dist/stories/BrandCard.stories.d.ts.map +1 -1
  103. package/dist/stories/CollectionCard.stories.d.ts +1 -2
  104. package/dist/stories/CollectionCard.stories.d.ts.map +1 -1
  105. package/dist/stories/DiscoverPage.stories.d.ts +1 -2
  106. package/dist/stories/DiscoverPage.stories.d.ts.map +1 -1
  107. package/dist/stories/FeedbackWidget.stories.d.ts +1 -2
  108. package/dist/stories/FeedbackWidget.stories.d.ts.map +1 -1
  109. package/dist/stories/LookCard.stories.d.ts +1 -2
  110. package/dist/stories/LookCard.stories.d.ts.map +1 -1
  111. package/dist/stories/LookbookCard.stories.d.ts +1 -2
  112. package/dist/stories/LookbookCard.stories.d.ts.map +1 -1
  113. package/dist/stories/MetricsCard.stories.d.ts +1 -2
  114. package/dist/stories/MetricsCard.stories.d.ts.map +1 -1
  115. package/dist/stories/ShopItemCard.stories.d.ts +1 -2
  116. package/dist/stories/ShopItemCard.stories.d.ts.map +1 -1
  117. package/dist/stories/StatusBadge.stories.d.ts +1 -2
  118. package/dist/stories/StatusBadge.stories.d.ts.map +1 -1
  119. package/dist/stories/VisibilityChip.stories.d.ts +1 -2
  120. package/dist/stories/VisibilityChip.stories.d.ts.map +1 -1
  121. package/dist/stories/WardrobeItemCard.stories.d.ts +1 -2
  122. package/dist/stories/WardrobeItemCard.stories.d.ts.map +1 -1
  123. package/dist/stories/__fixtures__/coolandlovely.d.ts +0 -1
  124. package/package.json +12 -11
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { CoolAndLovelyRootProps } from './types';
3
-
4
3
  export declare const CoolAndLovelyRoot: FC<CoolAndLovelyRootProps>;
5
4
  //# sourceMappingURL=CoolAndLovelyRoot.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export declare const CoolAndLovelyRoutes: FC;
4
3
  //# sourceMappingURL=CoolAndLovelyRoutes.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface ActivityTrailProps {
4
3
  /** ActivityLog.resourceType written by the svc, e.g. "coolandlovely-brand". */
5
4
  resourceType: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface ActorNameProps {
4
3
  /** Actor id (usually a user UUID). */
5
4
  id?: string | null;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooStyleItem } from '../types';
3
-
4
3
  interface AddToCartPanelProps {
5
4
  item: Pick<CooStyleItem, 'id' | 'status' | 'price' | 'sizes' | 'colours'>;
6
5
  lookId?: string | null;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface AddToLookbookButtonProps {
4
3
  lookId?: string;
5
4
  styleItemId?: string;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooBrand } from '../types';
3
-
4
3
  interface BrandCardProps {
5
4
  brand: CooBrand;
6
5
  onClick?: () => void;
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface BrandCoverProps {
4
3
  coverFileId?: string | null;
5
4
  logoFileId?: string | null;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface BrandCreatorAvatarsProps {
4
3
  brandLogoFileId?: string | null;
5
4
  /** Stable seed for the brand logo tint (usually the brand id). */
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooCollaboration } from '../types';
3
-
4
3
  interface CollaborationFeeCardProps {
5
4
  collaboration: Pick<CooCollaboration, 'id' | 'title' | 'status' | 'creatorId' | 'compensation' | 'currency' | 'payout'>;
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooCollection } from '../types';
3
-
4
3
  interface CollectionCardProps {
5
4
  collection: CooCollection;
6
5
  onClick?: () => void;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface ColourSwatchRowProps {
4
3
  colours: string[];
5
4
  /** Max swatches to show before collapsing into a "+N" chip. */
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface CommentsProps {
4
3
  /** Conversations entity type, e.g. "CooLook" / "CooBrand". */
5
4
  entityType: string;
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface EmptyStateProps {
4
3
  icon?: ReactNode;
5
4
  title: string;
@@ -1,4 +1,3 @@
1
1
  import { FC } from 'react';
2
-
3
2
  export declare const FeedbackWidget: FC;
4
3
  //# sourceMappingURL=FeedbackWidget.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface FieldShellProps {
4
3
  label: string;
5
4
  htmlFor?: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface FileImageProps {
4
3
  fileId?: string | null;
5
4
  alt?: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface FollowButtonProps {
4
3
  /** Actor id to follow/unfollow. */
5
4
  followeeId?: string | null;
@@ -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("react").JSX.Element;
5
+ }): import('react').JSX.Element;
7
6
  //# sourceMappingURL=FulfilmentTimeline.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface ImageUploadFieldProps {
4
3
  label: string;
5
4
  /** Current wspace-files File id, or '' / undefined when none. */
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface LookCardProps {
4
3
  id: string;
5
4
  title: string;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooLookbook } from '../types';
3
-
4
3
  interface LookbookCardProps {
5
4
  lookbook: CooLookbook;
6
5
  onClick?: () => void;
@@ -1,6 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { TrendDirection } from '../types';
3
-
4
3
  interface MetricsCardProps {
5
4
  icon: ReactNode;
6
5
  value: string | number;
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface PageLayoutProps {
4
3
  title: ReactNode;
5
4
  description?: string;
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooPaymentHandles } from '../types';
3
-
4
3
  interface PayForOrderProps {
5
4
  checkout: CooPaymentHandles & {
6
5
  order?: {
@@ -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("react").JSX.Element;
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("react").JSX.Element | null;
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("react").JSX.Element | null;
13
+ }): import('react').JSX.Element | null;
15
14
  //# sourceMappingURL=ReturnRequests.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface ShopItemCardProps {
4
3
  id: string;
5
4
  name: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface LoadingViewProps {
4
3
  label?: string;
5
4
  className?: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface StatusBadgeProps {
4
3
  status: string;
5
4
  className?: string;
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface StepTrackerProps {
4
3
  /** Ordered step values (e.g. ['PROPOSED','ACCEPTED','IN_PROGRESS','PUBLISHED']). */
5
4
  steps: string[];
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface StockEditorProps {
4
3
  styleItemId: string;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { CooStyleItem } from '../types';
3
-
4
3
  interface StoreListingCardProps {
5
4
  item: Pick<CooStyleItem, 'id' | 'storeProductId' | 'storeListingStatus' | 'storeSyncStatus' | 'storeSyncedAt'>;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface TagListProps {
4
3
  tags: string[];
5
4
  /** Maximum chips to show before collapsing into a "+N" chip. */
@@ -1,5 +1,4 @@
1
1
  import { FC, ReactNode } from 'react';
2
-
3
2
  interface ThumbnailProps {
4
3
  icon: ReactNode;
5
4
  /** Stable seed (e.g. entity id) used to pick a deterministic accent tint. */
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
-
3
2
  interface VisibilityChipProps {
4
3
  /** A `CooVisibility` value (PUBLIC / FOLLOWERS / PRIVATE) — case-insensitive. */
5
4
  visibility: string;
@@ -1,6 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { CooWardrobeItem } from '../types';
3
-
4
3
  interface WardrobeItemCardProps {
5
4
  item: CooWardrobeItem;
6
5
  onLogWear?: () => void;
@@ -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("react").JSX.Element | null;
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("react").JSX.Element;
8
+ }): import('react').JSX.Element;
10
9
  //# sourceMappingURL=LookbookPriceBoard.d.ts.map
@@ -1,6 +1,5 @@
1
- import { useCoolAndLovely as e } from "../../context/CoolAndLovelyContext.js";
2
- import "../../context/index.js";
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 { navigateTo: y } = e(), [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]);
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((e, n) => {
63
- let i = !!e.lookId, a = e.lookId ? S.get(e.lookId) : void 0, o = e.styleItemId ? C.get(e.styleItemId) : void 0, m = i ? a?.title ?? "Saved look" : o?.name ?? "Clipped piece", h = i ? a?.image?.id : o?.image?.id, g = _ === e.id, b = () => {
64
- i && e.lookId ? y(`/looks/${e.lookId}`) : e.styleItemId && y(`/items/${e.styleItemId}`);
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(t, {
73
+ children: /* @__PURE__ */ d(e, {
75
74
  icon: d(i ? c : l, { className: "h-8 w-8" }),
76
- seed: e.id,
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: [e.note && /* @__PURE__ */ d("span", {
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: e.note
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
- e.styleItemId && /* @__PURE__ */ d("div", {
94
+ t.styleItemId && /* @__PURE__ */ d("div", {
96
95
  className: "px-3 pb-3",
97
96
  children: /* @__PURE__ */ d(r, {
98
- summary: E.get(e.styleItemId),
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(e.id),
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
- }, e.id);
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 { useCoolAndLovely } from '../../context';\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 } = useCoolAndLovely();\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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"}
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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"}
@@ -1,5 +1,5 @@
1
1
  export declare function PriceComparison({ styleItemId, currency, }: {
2
2
  styleItemId: string;
3
3
  currency: string;
4
- }): import("react").JSX.Element;
4
+ }): import('react').JSX.Element;
5
5
  //# sourceMappingURL=PriceComparison.d.ts.map
@@ -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("react").JSX.Element;
5
+ }): import('react').JSX.Element;
6
6
  //# sourceMappingURL=PriceCurrencySelect.d.ts.map
@@ -2,5 +2,5 @@
2
2
  export declare function PricePanel({ styleItemId, currency: initialCurrency, }: {
3
3
  styleItemId: string;
4
4
  currency: string;
5
- }): import("react").JSX.Element;
5
+ }): import('react').JSX.Element;
6
6
  //# sourceMappingURL=PricePanel.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare function PriceWatchDisclosure(): import("react").JSX.Element;
1
+ export declare function PriceWatchDisclosure(): import('react').JSX.Element;
2
2
  //# sourceMappingURL=PriceWatchDisclosure.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare function PriceWatchForm({ styleItemId, currency, }: {
2
2
  styleItemId: string;
3
3
  currency: string;
4
- }): import("react").JSX.Element;
4
+ }): import('react').JSX.Element;
5
5
  //# sourceMappingURL=PriceWatchForm.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("react").JSX.Element;
2
+ export declare function PriceWatches(): import('react').JSX.Element;
3
3
  //# sourceMappingURL=PriceWatches.d.ts.map
@@ -2,5 +2,5 @@ export declare function RetailerOfferLink({ url, priceMinor, currency, }: {
2
2
  url: string;
3
3
  priceMinor: number;
4
4
  currency: string;
5
- }): import("react").JSX.Element;
5
+ }): import('react').JSX.Element;
6
6
  //# sourceMappingURL=RetailerOfferLink.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 { CoolAndLovelyRootProps } from '../types';
2
-
3
2
  /** Only non-secret identities belong in the React remount key. */
4
3
  export declare function coolAndLovelyScopeKey(props: CoolAndLovelyRootProps): string;
5
4
  //# sourceMappingURL=queryScopeKey.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("react").JSX.Element;
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("react").JSX.Element;
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("react").JSX.Element;
8
+ export declare function AdminCollaborationsPage(): import('react').JSX.Element;
9
9
  //# sourceMappingURL=AdminCollaborationsPage.d.ts.map