@burdenoff/microfe-coolandlovely 2026.1024.1 → 2026.1024.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/package.json +1 -1
- package/dist/coolandlovely/CoolAndLovelyRoot.d.ts +0 -5
- package/dist/coolandlovely/CoolAndLovelyRoot.d.ts.map +0 -1
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts +0 -4
- package/dist/coolandlovely/CoolAndLovelyRoutes.d.ts.map +0 -1
- package/dist/coolandlovely/components/ActivityTrail.d.ts +0 -24
- package/dist/coolandlovely/components/ActivityTrail.d.ts.map +0 -1
- package/dist/coolandlovely/components/ActorName.d.ts +0 -14
- package/dist/coolandlovely/components/ActorName.d.ts.map +0 -1
- package/dist/coolandlovely/components/AddToLookbookButton.d.ts +0 -10
- package/dist/coolandlovely/components/AddToLookbookButton.d.ts.map +0 -1
- package/dist/coolandlovely/components/BrandCard.d.ts +0 -11
- package/dist/coolandlovely/components/BrandCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/BrandCover.d.ts +0 -17
- package/dist/coolandlovely/components/BrandCover.d.ts.map +0 -1
- package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts +0 -14
- package/dist/coolandlovely/components/BrandCreatorAvatars.d.ts.map +0 -1
- package/dist/coolandlovely/components/CollectionCard.d.ts +0 -11
- package/dist/coolandlovely/components/CollectionCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/ColourSwatchRow.d.ts +0 -11
- package/dist/coolandlovely/components/ColourSwatchRow.d.ts.map +0 -1
- package/dist/coolandlovely/components/Comments.d.ts +0 -14
- package/dist/coolandlovely/components/Comments.d.ts.map +0 -1
- package/dist/coolandlovely/components/EmptyState.d.ts +0 -14
- package/dist/coolandlovely/components/EmptyState.d.ts.map +0 -1
- package/dist/coolandlovely/components/FeedbackWidget.d.ts +0 -4
- package/dist/coolandlovely/components/FeedbackWidget.d.ts.map +0 -1
- package/dist/coolandlovely/components/Field.d.ts +0 -71
- package/dist/coolandlovely/components/Field.d.ts.map +0 -1
- package/dist/coolandlovely/components/FileImage.d.ts +0 -10
- package/dist/coolandlovely/components/FileImage.d.ts.map +0 -1
- package/dist/coolandlovely/components/FollowButton.d.ts +0 -11
- package/dist/coolandlovely/components/FollowButton.d.ts.map +0 -1
- package/dist/coolandlovely/components/ImageUploadField.d.ts +0 -21
- package/dist/coolandlovely/components/ImageUploadField.d.ts.map +0 -1
- package/dist/coolandlovely/components/LookCard.d.ts +0 -19
- package/dist/coolandlovely/components/LookCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/LookbookCard.d.ts +0 -11
- package/dist/coolandlovely/components/LookbookCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/MetricsCard.d.ts +0 -23
- package/dist/coolandlovely/components/MetricsCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/PageLayout.d.ts +0 -17
- package/dist/coolandlovely/components/PageLayout.d.ts.map +0 -1
- package/dist/coolandlovely/components/ShopItemCard.d.ts +0 -15
- package/dist/coolandlovely/components/ShopItemCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/StateViews.d.ts +0 -16
- package/dist/coolandlovely/components/StateViews.d.ts.map +0 -1
- package/dist/coolandlovely/components/StatusBadge.d.ts +0 -9
- package/dist/coolandlovely/components/StatusBadge.d.ts.map +0 -1
- package/dist/coolandlovely/components/StepTracker.d.ts +0 -12
- package/dist/coolandlovely/components/StepTracker.d.ts.map +0 -1
- package/dist/coolandlovely/components/TagList.d.ts +0 -12
- package/dist/coolandlovely/components/TagList.d.ts.map +0 -1
- package/dist/coolandlovely/components/Thumbnail.d.ts +0 -23
- package/dist/coolandlovely/components/Thumbnail.d.ts.map +0 -1
- package/dist/coolandlovely/components/VisibilityChip.d.ts +0 -10
- package/dist/coolandlovely/components/VisibilityChip.d.ts.map +0 -1
- package/dist/coolandlovely/components/WardrobeItemCard.d.ts +0 -14
- package/dist/coolandlovely/components/WardrobeItemCard.d.ts.map +0 -1
- package/dist/coolandlovely/components/index.d.ts +0 -32
- package/dist/coolandlovely/components/index.d.ts.map +0 -1
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts +0 -16
- package/dist/coolandlovely/context/CoolAndLovelyContext.d.ts.map +0 -1
- package/dist/coolandlovely/context/index.d.ts +0 -6
- package/dist/coolandlovely/context/index.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/index.d.ts +0 -15
- package/dist/coolandlovely/hooks/index.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useActivity.d.ts +0 -39
- package/dist/coolandlovely/hooks/useActivity.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useAssistantEntity.d.ts +0 -24
- package/dist/coolandlovely/hooks/useAssistantEntity.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useComments.d.ts +0 -37
- package/dist/coolandlovely/hooks/useComments.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts +0 -177
- package/dist/coolandlovely/hooks/useCoolAndLovelyApi.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useFiles.d.ts +0 -62
- package/dist/coolandlovely/hooks/useFiles.d.ts.map +0 -1
- package/dist/coolandlovely/hooks/useTr.d.ts +0 -2
- package/dist/coolandlovely/hooks/useTr.d.ts.map +0 -1
- package/dist/coolandlovely/index.d.ts +0 -11
- package/dist/coolandlovely/index.d.ts.map +0 -1
- package/dist/coolandlovely/pages/HomePage.d.ts +0 -10
- package/dist/coolandlovely/pages/HomePage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts +0 -9
- package/dist/coolandlovely/pages/admin/AdminBrandsPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts +0 -9
- package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts +0 -9
- package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/admin/index.d.ts +0 -8
- package/dist/coolandlovely/pages/admin/index.d.ts.map +0 -1
- package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts +0 -9
- package/dist/coolandlovely/pages/brands/BrandDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts +0 -9
- package/dist/coolandlovely/pages/brands/BrandFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts +0 -9
- package/dist/coolandlovely/pages/brands/BrandsListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts +0 -9
- package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts +0 -11
- package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts +0 -9
- package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts +0 -9
- package/dist/coolandlovely/pages/collections/CollectionDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts +0 -9
- package/dist/coolandlovely/pages/collections/CollectionFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts +0 -8
- package/dist/coolandlovely/pages/collections/CollectionsListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts +0 -14
- package/dist/coolandlovely/pages/discover/DiscoverPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts +0 -9
- package/dist/coolandlovely/pages/items/StyleItemDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts +0 -10
- package/dist/coolandlovely/pages/items/StyleItemFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts +0 -9
- package/dist/coolandlovely/pages/items/StyleItemsListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts +0 -12
- package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts +0 -10
- package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts +0 -11
- package/dist/coolandlovely/pages/looks/LookDetailPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/looks/LookFormPage.d.ts +0 -10
- package/dist/coolandlovely/pages/looks/LookFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/looks/LooksListPage.d.ts +0 -9
- package/dist/coolandlovely/pages/looks/LooksListPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts +0 -17
- package/dist/coolandlovely/pages/profile/StyleProfilePage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/trends/TrendsPage.d.ts +0 -11
- package/dist/coolandlovely/pages/trends/TrendsPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts +0 -10
- package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.d.ts.map +0 -1
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts +0 -12
- package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.d.ts.map +0 -1
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts +0 -56
- package/dist/coolandlovely/store/coolandlovelyStore.d.ts.map +0 -1
- package/dist/coolandlovely/store/index.d.ts +0 -6
- package/dist/coolandlovely/store/index.d.ts.map +0 -1
- package/dist/coolandlovely/types/index.d.ts +0 -526
- package/dist/coolandlovely/types/index.d.ts.map +0 -1
- package/dist/coolandlovely/utils/cn.d.ts +0 -4
- package/dist/coolandlovely/utils/cn.d.ts.map +0 -1
- package/dist/coolandlovely/utils/formatters.d.ts +0 -101
- package/dist/coolandlovely/utils/formatters.d.ts.map +0 -1
- package/dist/coolandlovely/utils/icons.d.ts +0 -6
- package/dist/coolandlovely/utils/icons.d.ts.map +0 -1
- package/dist/coolandlovely/utils/index.d.ts +0 -10
- package/dist/coolandlovely/utils/index.d.ts.map +0 -1
- package/dist/coolandlovely/utils/navigation.d.ts +0 -20
- package/dist/coolandlovely/utils/navigation.d.ts.map +0 -1
- package/dist/coolandlovely/utils/sparkline.d.ts +0 -31
- package/dist/coolandlovely/utils/sparkline.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -2
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/services/createSandboxAssistantTransport.d.ts +0 -24
- package/dist/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/stories/BrandCard.stories.d.ts +0 -10
- package/dist/stories/BrandCard.stories.d.ts.map +0 -1
- package/dist/stories/CollectionCard.stories.d.ts +0 -10
- package/dist/stories/CollectionCard.stories.d.ts.map +0 -1
- package/dist/stories/DiscoverPage.stories.d.ts +0 -11
- package/dist/stories/DiscoverPage.stories.d.ts.map +0 -1
- package/dist/stories/FeedbackWidget.stories.d.ts +0 -9
- package/dist/stories/FeedbackWidget.stories.d.ts.map +0 -1
- package/dist/stories/LookCard.stories.d.ts +0 -10
- package/dist/stories/LookCard.stories.d.ts.map +0 -1
- package/dist/stories/LookbookCard.stories.d.ts +0 -10
- package/dist/stories/LookbookCard.stories.d.ts.map +0 -1
- package/dist/stories/MetricsCard.stories.d.ts +0 -10
- package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
- package/dist/stories/ShopItemCard.stories.d.ts +0 -9
- package/dist/stories/ShopItemCard.stories.d.ts.map +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -11
- package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
- package/dist/stories/VisibilityChip.stories.d.ts +0 -10
- package/dist/stories/VisibilityChip.stories.d.ts.map +0 -1
- package/dist/stories/WardrobeItemCard.stories.d.ts +0 -11
- package/dist/stories/WardrobeItemCard.stories.d.ts.map +0 -1
- package/dist/stories/__fixtures__/coolandlovely.d.ts +0 -15
- package/dist/stories/__fixtures__/coolandlovely.d.ts.map +0 -1
- package/dist/utils/pageContext.d.ts +0 -58
- package/dist/utils/pageContext.d.ts.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Components Index
|
|
3
|
-
* @module coolandlovely/components
|
|
4
|
-
*/
|
|
5
|
-
export { PageLayout } from './PageLayout';
|
|
6
|
-
export { MetricsCard } from './MetricsCard';
|
|
7
|
-
export { StatusBadge } from './StatusBadge';
|
|
8
|
-
export { EmptyState } from './EmptyState';
|
|
9
|
-
export { Thumbnail } from './Thumbnail';
|
|
10
|
-
export { FileImage } from './FileImage';
|
|
11
|
-
export { ImageUploadField } from './ImageUploadField';
|
|
12
|
-
export { TagList } from './TagList';
|
|
13
|
-
export { LoadingView, ErrorView } from './StateViews';
|
|
14
|
-
export { FieldShell, TextField, TextAreaField, SelectField, ToggleField } from './Field';
|
|
15
|
-
export { ActorName } from './ActorName';
|
|
16
|
-
export { Comments } from './Comments';
|
|
17
|
-
export { ActivityTrail } from './ActivityTrail';
|
|
18
|
-
export { FollowButton } from './FollowButton';
|
|
19
|
-
export { AddToLookbookButton } from './AddToLookbookButton';
|
|
20
|
-
export { LookCard } from './LookCard';
|
|
21
|
-
export { BrandCard } from './BrandCard';
|
|
22
|
-
export { BrandCover } from './BrandCover';
|
|
23
|
-
export { CollectionCard } from './CollectionCard';
|
|
24
|
-
export { LookbookCard } from './LookbookCard';
|
|
25
|
-
export { WardrobeItemCard } from './WardrobeItemCard';
|
|
26
|
-
export { StepTracker } from './StepTracker';
|
|
27
|
-
export { BrandCreatorAvatars } from './BrandCreatorAvatars';
|
|
28
|
-
export { ShopItemCard } from './ShopItemCard';
|
|
29
|
-
export { ColourSwatchRow } from './ColourSwatchRow';
|
|
30
|
-
export { VisibilityChip } from './VisibilityChip';
|
|
31
|
-
export { FeedbackWidget } from './FeedbackWidget';
|
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { CoolAndLovelyRootProps } from '../types';
|
|
3
|
-
|
|
4
|
-
interface CoolAndLovelyContextValue extends Omit<CoolAndLovelyRootProps, 'registerNavItems' | 'registerFooterItems' | 'navigate'> {
|
|
5
|
-
isStandalone: boolean;
|
|
6
|
-
/** Shell's navigate function (only available in integrated mode) */
|
|
7
|
-
navigate?: (path: string) => void;
|
|
8
|
-
/** Navigate to a path relative to basePath */
|
|
9
|
-
navigateTo: (relativePath: string) => void;
|
|
10
|
-
/** Get the full path for a relative path */
|
|
11
|
-
getPath: (relativePath: string) => string;
|
|
12
|
-
}
|
|
13
|
-
export declare function useCoolAndLovely(): CoolAndLovelyContextValue;
|
|
14
|
-
export declare const CoolAndLovelyProvider: FC<PropsWithChildren<CoolAndLovelyRootProps>>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=CoolAndLovelyContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CoolAndLovelyContext.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/context/CoolAndLovelyContext.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAOvD,UAAU,yBAA0B,SAAQ,IAAI,CAC9C,sBAAsB,EACtB,kBAAkB,GAAG,qBAAqB,GAAG,UAAU,CACxD;IACC,YAAY,EAAE,OAAO,CAAC;IACtB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,8CAA8C;IAC9C,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,4CAA4C;IAC5C,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAQD,wBAAgB,gBAAgB,IAAI,yBAAyB,CAM5D;AAyID,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAqB/E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/context/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hooks Index
|
|
3
|
-
* @module coolandlovely/hooks
|
|
4
|
-
*/
|
|
5
|
-
export { useBrands, useBrand, useCreateBrand, useUpdateBrand, useTransitionBrand, useArchiveBrand, useCollections, useCollection, useCreateCollection, useUpdateCollection, usePublishCollection, useArchiveCollection, useStyleItems, useStyleItem, useCreateStyleItem, useUpdateStyleItem, useArchiveStyleItem, useLooks, useLooksWithItems, useLook, useCreateLook, useUpdateLook, usePublishLook, useLikeLook, useUnlikeLook, useSaveLook, useUnsaveLook, useDeleteLook, useCollaborations, useCollaboration, useCreateCollaboration, useUpdateCollaboration, useTransitionCollaboration, useDeleteCollaboration, useWardrobeItems, useCreateWardrobeItem, useUpdateWardrobeItem, useLogWardrobeWear, useRemoveWardrobeItem, useMyStyleProfile, useStyleProfile, useStyleProfileByOwner, useUpsertStyleProfile, useLookbooks, useLookbook, useCreateLookbook, useAddLookbookEntry, useRemoveLookbookEntry, useDeleteLookbook, useIsFollowing, useFollow, useUnfollow, useMyFollowing, useMyFollowers, useSearchStyleItems, useSearchLooks, useApproveBrand, useRejectBrand, useReviewCollaboration, useFeatureStyleItem, useUnfeatureStyleItem, } from './useCoolAndLovelyApi';
|
|
6
|
-
export type { ListBrandsArgs, ListCollectionsArgs, ListStyleItemsArgs, ListLooksArgs, ListCollaborationsArgs, ListWardrobeArgs, SearchStyleItemsArgs, SearchLooksArgs, } from './useCoolAndLovelyApi';
|
|
7
|
-
export { uploadImageToFiles, useFileUrl, COO_FILE_FOLDERS } from './useFiles';
|
|
8
|
-
export type { UploadedImage, CooFileFolder } from './useFiles';
|
|
9
|
-
export { useEntityComments, useAddComment } from './useComments';
|
|
10
|
-
export type { EntityCommentView, EntityCommentsResult } from './useComments';
|
|
11
|
-
export { useEntityActivity } from './useActivity';
|
|
12
|
-
export type { CooActivityEntry } from './useActivity';
|
|
13
|
-
export { useAssistantEntityName } from './useAssistantEntity';
|
|
14
|
-
export { useTr } from './useTr';
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,c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AAM,eAAe,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Audit-trail hooks — activity via wspace-activity-svc (NO new table).
|
|
3
|
-
* @module coolandlovely/hooks
|
|
4
|
-
*
|
|
5
|
-
* CoolAndLovely does NOT own an audit table. Every `coo*` mutation is already
|
|
6
|
-
* recorded by the svc's mutation-audit plugin
|
|
7
|
-
* (`wspace-coolandlovely-svc/src/plugins/mutation-audit-plugin.ts`) through
|
|
8
|
-
* be-sdk `trackOperation`, which writes an `ActivityLog` row on
|
|
9
|
-
* wspace-activity-svc carrying:
|
|
10
|
-
*
|
|
11
|
-
* action — the plugin's `eventName`, e.g. `coolandlovely.brand_transitioned`
|
|
12
|
-
* description — `"<action> <resourceType>: <fieldName>"`
|
|
13
|
-
* resourceType — e.g. `coolandlovely-brand`
|
|
14
|
-
* resourceId — the affected record's id
|
|
15
|
-
* userId — the acting actor
|
|
16
|
-
*
|
|
17
|
-
* This hook is purely the read surface over those rows (`getActivities`,
|
|
18
|
-
* federated on the workspace supergraph). Nothing is synthesised: when the
|
|
19
|
-
* service has no rows for a record, callers render an empty state.
|
|
20
|
-
*/
|
|
21
|
-
/** A single audit entry as surfaced in the MFE (scalar-only projection). */
|
|
22
|
-
export interface CooActivityEntry {
|
|
23
|
-
id: string;
|
|
24
|
-
action: string;
|
|
25
|
-
description: string | null;
|
|
26
|
-
resourceType: string | null;
|
|
27
|
-
resourceId: string | null;
|
|
28
|
-
userId: string;
|
|
29
|
-
timestamp: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Audit entries for one record, newest first.
|
|
33
|
-
*
|
|
34
|
-
* `getActivities` is `@rbac(action: "read", resource: "activity-log",
|
|
35
|
-
* scopeType: "wspace")` — a member without that permission gets an error from
|
|
36
|
-
* the gateway, which callers surface honestly rather than hiding.
|
|
37
|
-
*/
|
|
38
|
-
export declare const useEntityActivity: (resourceType: string, resourceId: string | undefined, limit?: number) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooActivityEntry[]>, Error>;
|
|
39
|
-
//# sourceMappingURL=useActivity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useActivity.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useActivity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AASH,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAqCD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,MAAM,EACpB,YAAY,MAAM,GAAG,SAAS,EAC9B,cAAU,uFAiBX,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Assistant screen-context hook.
|
|
3
|
-
* @module coolandlovely/hooks
|
|
4
|
-
*
|
|
5
|
-
* The floating assistant already receives `entityType` / `entityId`, both
|
|
6
|
-
* resolved from the URL. Neither tells the model WHAT the shopper is looking
|
|
7
|
-
* at, so "publish this storefront" or "what collections is this in" forces the
|
|
8
|
-
* assistant to echo a UUID back at a human.
|
|
9
|
-
*
|
|
10
|
-
* `entityName` is one of the agent's allowed context keys
|
|
11
|
-
* (`~/products/wspace/sandbox/ai-assistant/src/context-loader.ts`), but nothing
|
|
12
|
-
* in this product ever sent it. Detail pages call this hook with the name from
|
|
13
|
-
* their own loaded record — no extra request, no invented label — and it is
|
|
14
|
-
* withdrawn again on unmount.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Publish the current entity's display name to the assistant page context.
|
|
18
|
-
*
|
|
19
|
-
* Safe to call before the record has loaded: a missing id or name simply
|
|
20
|
-
* publishes nothing, so the assistant falls back to the id-only context it
|
|
21
|
-
* gets today rather than receiving a placeholder.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useAssistantEntityName(entityId: string | undefined, entityName: string | null | undefined): void;
|
|
24
|
-
//# sourceMappingURL=useAssistantEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAssistantEntity.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useAssistantEntity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACpC,IAAI,CAMN"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comments hooks — reviews / feedback via wspace-conversations-svc (NO new table).
|
|
3
|
-
* @module coolandlovely/hooks
|
|
4
|
-
*
|
|
5
|
-
* CoolAndLovely does NOT own a comment/review table. Reviews & feedback on a
|
|
6
|
-
* look or brand are polymorphic `EntityComment` records owned by
|
|
7
|
-
* wspace-conversations-svc, keyed by (entityType, entityId). Same graphqlFetch
|
|
8
|
-
* transport (workspace gateway + workspace token) as every other coo* call.
|
|
9
|
-
*
|
|
10
|
-
* Commenter display names must be resolved via fe-libs useActorProfiles
|
|
11
|
-
* (GLOBAL gateway) — the federated wspace `User` here exposes only ids, so
|
|
12
|
-
* NEVER select firstName/name on the comment author.
|
|
13
|
-
*/
|
|
14
|
-
/** A single review/comment as surfaced in the MFE (scalar-only projection). */
|
|
15
|
-
export interface EntityCommentView {
|
|
16
|
-
id: string;
|
|
17
|
-
authorId: string;
|
|
18
|
-
authorType: string;
|
|
19
|
-
text: string;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
edited: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface EntityCommentsResult {
|
|
24
|
-
total: number;
|
|
25
|
-
comments: EntityCommentView[];
|
|
26
|
-
}
|
|
27
|
-
/** List reviews/comments for a (entityType, entityId), newest first. */
|
|
28
|
-
export declare const useEntityComments: (entityType: string, entityId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<EntityCommentsResult>, Error>;
|
|
29
|
-
/** Post a review/comment on a (entityType, entityId). */
|
|
30
|
-
export declare const useAddComment: () => import('@tanstack/react-query').UseMutationResult<{
|
|
31
|
-
id: string;
|
|
32
|
-
}, Error, {
|
|
33
|
-
entityType: string;
|
|
34
|
-
entityId: string;
|
|
35
|
-
text: string;
|
|
36
|
-
}, unknown>;
|
|
37
|
-
//# sourceMappingURL=useComments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComments.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useComments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAUH,+EAA+E;AAC/E,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AA2DD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,yFAmCjF,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,aAAa;QAayC,MAAM;;gBAJvD,MAAM;cACR,MAAM;UACV,MAAM;WAqBjB,CAAC"}
|
|
@@ -1,177 +0,0 @@
|
|
|
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
|
-
export interface ListBrandsArgs {
|
|
4
|
-
status?: CooBrandStatus;
|
|
5
|
-
featured?: boolean;
|
|
6
|
-
pagination?: PaginationInput;
|
|
7
|
-
}
|
|
8
|
-
export declare const useBrands: (args?: ListBrandsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooBrandConnection>, Error>;
|
|
9
|
-
export declare const useBrand: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooBrand | null>, Error>;
|
|
10
|
-
export declare const useCreateBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, CooCreateBrandInput, unknown>;
|
|
11
|
-
export declare const useUpdateBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, {
|
|
12
|
-
id: string;
|
|
13
|
-
input: CooUpdateBrandInput;
|
|
14
|
-
}, unknown>;
|
|
15
|
-
export declare const useTransitionBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, {
|
|
16
|
-
id: string;
|
|
17
|
-
status: CooBrandStatus;
|
|
18
|
-
}, unknown>;
|
|
19
|
-
export declare const useArchiveBrand: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
20
|
-
export interface ListCollectionsArgs {
|
|
21
|
-
brandId?: string;
|
|
22
|
-
status?: CooCollectionStatus;
|
|
23
|
-
}
|
|
24
|
-
export declare const useCollections: (args?: ListCollectionsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollection[]>, Error>;
|
|
25
|
-
export declare const useCollection: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollection | null>, Error>;
|
|
26
|
-
export declare const useCreateCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, CooCreateCollectionInput, unknown>;
|
|
27
|
-
export declare const useUpdateCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, {
|
|
28
|
-
id: string;
|
|
29
|
-
input: CooUpdateCollectionInput;
|
|
30
|
-
}, unknown>;
|
|
31
|
-
export declare const usePublishCollection: () => import('@tanstack/react-query').UseMutationResult<CooCollection, Error, string, unknown>;
|
|
32
|
-
export declare const useArchiveCollection: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
33
|
-
export interface ListStyleItemsArgs {
|
|
34
|
-
brandId?: string;
|
|
35
|
-
collectionId?: string;
|
|
36
|
-
category?: CooStyleCategory;
|
|
37
|
-
status?: CooStyleItemStatus;
|
|
38
|
-
pagination?: PaginationInput;
|
|
39
|
-
}
|
|
40
|
-
export declare const useStyleItems: (args?: ListStyleItemsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItemConnection>, Error>;
|
|
41
|
-
export declare const useStyleItem: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItem | null>, Error>;
|
|
42
|
-
export declare const useCreateStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, CooCreateStyleItemInput, unknown>;
|
|
43
|
-
export declare const useUpdateStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, {
|
|
44
|
-
id: string;
|
|
45
|
-
input: CooUpdateStyleItemInput;
|
|
46
|
-
}, unknown>;
|
|
47
|
-
export declare const useArchiveStyleItem: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
48
|
-
export interface ListLooksArgs {
|
|
49
|
-
authorId?: string;
|
|
50
|
-
occasion?: CooLookOccasion;
|
|
51
|
-
featured?: boolean;
|
|
52
|
-
pagination?: PaginationInput;
|
|
53
|
-
}
|
|
54
|
-
export declare const useLooks: (args?: ListLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLookConnection>, Error>;
|
|
55
|
-
export declare const useLook: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLook | null>, Error>;
|
|
56
|
-
export declare const useLooksWithItems: (args?: ListLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
57
|
-
items: CooLook[];
|
|
58
|
-
pageInfo: import('../types').CooPageInfo;
|
|
59
|
-
}>, Error>;
|
|
60
|
-
export declare const useCreateLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, CooCreateLookInput, unknown>;
|
|
61
|
-
export declare const useUpdateLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, {
|
|
62
|
-
id: string;
|
|
63
|
-
input: CooUpdateLookInput;
|
|
64
|
-
}, unknown>;
|
|
65
|
-
export declare const usePublishLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
66
|
-
export declare const useLikeLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
67
|
-
export declare const useUnlikeLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
68
|
-
export declare const useSaveLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
69
|
-
export declare const useUnsaveLook: () => import('@tanstack/react-query').UseMutationResult<CooLook, Error, string, unknown>;
|
|
70
|
-
export declare const useDeleteLook: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
71
|
-
export interface ListCollaborationsArgs {
|
|
72
|
-
brandId?: string;
|
|
73
|
-
creatorId?: string;
|
|
74
|
-
status?: CooCollaborationStatus;
|
|
75
|
-
}
|
|
76
|
-
export declare const useCollaborations: (args?: ListCollaborationsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollaboration[]>, Error>;
|
|
77
|
-
export declare const useCollaboration: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooCollaboration | null>, Error>;
|
|
78
|
-
export declare const useCreateCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, CooCreateCollaborationInput, unknown>;
|
|
79
|
-
export declare const useUpdateCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
80
|
-
id: string;
|
|
81
|
-
input: CooUpdateCollaborationInput;
|
|
82
|
-
}, unknown>;
|
|
83
|
-
export declare const useTransitionCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
84
|
-
id: string;
|
|
85
|
-
status: CooCollaborationStatus;
|
|
86
|
-
}, unknown>;
|
|
87
|
-
/** Delete a still-PROPOSED collaboration (the svc rejects this once it has moved past PROPOSED). */
|
|
88
|
-
export declare const useDeleteCollaboration: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
89
|
-
export interface ListWardrobeArgs {
|
|
90
|
-
category?: CooStyleCategory;
|
|
91
|
-
source?: CooWardrobeSource;
|
|
92
|
-
}
|
|
93
|
-
export declare const useWardrobeItems: (args?: ListWardrobeArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooWardrobeItem[]>, Error>;
|
|
94
|
-
export declare const useCreateWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, CooCreateWardrobeItemInput, unknown>;
|
|
95
|
-
export declare const useUpdateWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, {
|
|
96
|
-
id: string;
|
|
97
|
-
input: CooUpdateWardrobeItemInput;
|
|
98
|
-
}, unknown>;
|
|
99
|
-
export declare const useLogWardrobeWear: () => import('@tanstack/react-query').UseMutationResult<CooWardrobeItem, Error, string, unknown>;
|
|
100
|
-
export declare const useRemoveWardrobeItem: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
101
|
-
export declare const useMyStyleProfile: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
102
|
-
/**
|
|
103
|
-
* A style profile by its own id, honoring CooVisibility (PRIVATE/FOLLOWERS
|
|
104
|
-
* gated server-side). Returns null when not found or not visible to the
|
|
105
|
-
* caller. Disabled until `id` is provided.
|
|
106
|
-
*/
|
|
107
|
-
export declare const useStyleProfile: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
108
|
-
/**
|
|
109
|
-
* Same visibility gate as `useStyleProfile`, looked up by the profile
|
|
110
|
-
* owner's actor id — powers `/profile/:userId` (the public profile route
|
|
111
|
-
* reached from an author's name/avatar on a Look/Discover/Collaboration
|
|
112
|
-
* card). Disabled until `ownerId` is provided.
|
|
113
|
-
*/
|
|
114
|
-
export declare const useStyleProfileByOwner: (ownerId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile | null>, Error>;
|
|
115
|
-
export declare const useUpsertStyleProfile: () => import('@tanstack/react-query').UseMutationResult<CooStyleProfile, Error, CooUpsertStyleProfileInput, unknown>;
|
|
116
|
-
export declare const useLookbooks: (ownerId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
117
|
-
entries: import('../types').CooLookbookEntry[];
|
|
118
|
-
id: string;
|
|
119
|
-
workspaceId: string;
|
|
120
|
-
ownerId: string;
|
|
121
|
-
profileId: string;
|
|
122
|
-
name: string;
|
|
123
|
-
description: string | null;
|
|
124
|
-
visibility: import('..').CooVisibility;
|
|
125
|
-
tags: string[];
|
|
126
|
-
cover: import('../types').CooFileRef | null;
|
|
127
|
-
createdAt: string;
|
|
128
|
-
updatedAt: string;
|
|
129
|
-
}[]>, Error>;
|
|
130
|
-
export declare const useCreateLookbook: () => import('@tanstack/react-query').UseMutationResult<CooLookbook, Error, CooCreateLookbookInput, unknown>;
|
|
131
|
-
export declare const useAddLookbookEntry: () => import('@tanstack/react-query').UseMutationResult<{
|
|
132
|
-
id: string;
|
|
133
|
-
lookbookId: string;
|
|
134
|
-
}, Error, CooAddLookbookEntryInput, unknown>;
|
|
135
|
-
export declare const useRemoveLookbookEntry: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
136
|
-
/** Whether the caller currently follows `followeeId`. */
|
|
137
|
-
export declare const useIsFollowing: (followeeId: string | undefined) => import('@tanstack/react-query').UseQueryResult<boolean, Error>;
|
|
138
|
-
export declare const useFollow: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
139
|
-
export declare const useUnfollow: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
140
|
-
/** Style profiles of people the caller follows. */
|
|
141
|
-
export declare const useMyFollowing: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile[]>, Error>;
|
|
142
|
-
/** Style profiles of people following the caller. */
|
|
143
|
-
export declare const useMyFollowers: () => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleProfile[]>, Error>;
|
|
144
|
-
export declare const useLookbook: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
145
|
-
entries: import('../types').CooLookbookEntry[];
|
|
146
|
-
id: string;
|
|
147
|
-
workspaceId: string;
|
|
148
|
-
ownerId: string;
|
|
149
|
-
profileId: string;
|
|
150
|
-
name: string;
|
|
151
|
-
description: string | null;
|
|
152
|
-
visibility: import('..').CooVisibility;
|
|
153
|
-
tags: string[];
|
|
154
|
-
cover: import('../types').CooFileRef | null;
|
|
155
|
-
createdAt: string;
|
|
156
|
-
updatedAt: string;
|
|
157
|
-
} | null>, Error>;
|
|
158
|
-
export declare const useDeleteLookbook: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
159
|
-
export interface SearchStyleItemsArgs {
|
|
160
|
-
input: CooSearchStyleItemsInput;
|
|
161
|
-
pagination?: PaginationInput;
|
|
162
|
-
}
|
|
163
|
-
export declare const useSearchStyleItems: (args: SearchStyleItemsArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooStyleItemConnection>, Error>;
|
|
164
|
-
export interface SearchLooksArgs {
|
|
165
|
-
input: CooSearchLooksInput;
|
|
166
|
-
pagination?: PaginationInput;
|
|
167
|
-
}
|
|
168
|
-
export declare const useSearchLooks: (args: SearchLooksArgs) => import('@tanstack/react-query').UseQueryResult<NoInfer<CooLookConnection>, Error>;
|
|
169
|
-
export declare const useApproveBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, string, unknown>;
|
|
170
|
-
export declare const useRejectBrand: () => import('@tanstack/react-query').UseMutationResult<CooBrand, Error, string, unknown>;
|
|
171
|
-
export declare const useReviewCollaboration: () => import('@tanstack/react-query').UseMutationResult<CooCollaboration, Error, {
|
|
172
|
-
id: string;
|
|
173
|
-
input: CooReviewCollaborationInput;
|
|
174
|
-
}, unknown>;
|
|
175
|
-
export declare const useFeatureStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, string, unknown>;
|
|
176
|
-
export declare const useUnfeatureStyleItem: () => import('@tanstack/react-query').UseMutationResult<CooStyleItem, Error, string, unknown>;
|
|
177
|
-
//# sourceMappingURL=useCoolAndLovelyApi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCoolAndLovelyApi.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useCoolAndLovelyApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,OAAO,KAAK,EACV,wBAAwB,EACxB,QAAQ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BjC,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File hooks — image upload + display via wspace-files-svc (NO duplication).
|
|
3
|
-
* @module coolandlovely/hooks
|
|
4
|
-
*
|
|
5
|
-
* CoolAndLovely never stores blobs. Brand logos/covers, collection covers,
|
|
6
|
-
* style-item photos, look photos, wardrobe photos and lookbook covers are
|
|
7
|
-
* wspace-files `File` records referenced by id (the coo* inputs take *FileId;
|
|
8
|
-
* the coo* types expose logo/cover/image: File resolved via federation).
|
|
9
|
-
*
|
|
10
|
-
* Upload uses the SAME graphqlFetch transport as every other coo* call — NOT
|
|
11
|
-
* Apollo — driving the wspace-files 3-step presigned flow directly:
|
|
12
|
-
* ensureFolderByPath -> initiateUpload -> HTTP PUT -> completeUpload
|
|
13
|
-
* Display resolves a File id to a short-lived presigned URL via
|
|
14
|
-
* getFileDownloadUrl.
|
|
15
|
-
*
|
|
16
|
-
* Two fleet gotchas are handled here:
|
|
17
|
-
* (a) `fileSize` is REQUIRED on completeUpload even though this MFE's generated
|
|
18
|
-
* `CompleteUploadInput` is stale and omits it. Because we send a hand-written
|
|
19
|
-
* query with `Record<string, unknown>` variables (not typed against the
|
|
20
|
-
* generated input) we simply include it and it works at runtime.
|
|
21
|
-
* (b) `getFileDownloadUrl(expiresIn)` must be <= 604800 (S3 7-day cap → 500).
|
|
22
|
-
* We use 21600 (6h); do NOT raise it.
|
|
23
|
-
*/
|
|
24
|
-
/** Per-entity folders in wspace-files. */
|
|
25
|
-
export declare const COO_FILE_FOLDERS: {
|
|
26
|
-
readonly brands: "/CoolAndLovely/Brands";
|
|
27
|
-
readonly collections: "/CoolAndLovely/Collections";
|
|
28
|
-
readonly items: "/CoolAndLovely/Items";
|
|
29
|
-
readonly looks: "/CoolAndLovely/Looks";
|
|
30
|
-
readonly wardrobe: "/CoolAndLovely/Wardrobe";
|
|
31
|
-
readonly lookbooks: "/CoolAndLovely/Lookbooks";
|
|
32
|
-
};
|
|
33
|
-
export type CooFileFolder = (typeof COO_FILE_FOLDERS)[keyof typeof COO_FILE_FOLDERS];
|
|
34
|
-
export interface UploadedImage {
|
|
35
|
-
id: string;
|
|
36
|
-
url: string;
|
|
37
|
-
name: string;
|
|
38
|
-
}
|
|
39
|
-
/** Upload progress emitted by {@link uploadImageToFilesWithProgress}. */
|
|
40
|
-
export interface UploadProgress {
|
|
41
|
-
/** Bytes transferred so far. */
|
|
42
|
-
loaded: number;
|
|
43
|
-
/** Total bytes to transfer. */
|
|
44
|
-
total: number;
|
|
45
|
-
/** Rounded percentage complete, 0–100. */
|
|
46
|
-
pct: number;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Upload an image to wspace-files-svc and return its id + a presigned URL. The
|
|
50
|
-
* caller persists `id` (e.g. cooUpdateBrand({ logoFileId })); `url` is for an
|
|
51
|
-
* immediate preview. `baseUrl` is the shell's apiGatewayUrl.
|
|
52
|
-
*/
|
|
53
|
-
export declare function uploadImageToFiles(file: File, baseUrl?: string, folderPath?: string): Promise<UploadedImage>;
|
|
54
|
-
/**
|
|
55
|
-
* Same as {@link uploadImageToFiles} but reports transfer progress via
|
|
56
|
-
* `onProgress` (XHR `upload.onprogress`) so callers can render a live progress
|
|
57
|
-
* bar. `baseUrl` is the shell's apiGatewayUrl.
|
|
58
|
-
*/
|
|
59
|
-
export declare function uploadImageToFilesWithProgress(file: File, baseUrl?: string, folderPath?: string, onProgress?: (progress: UploadProgress) => void): Promise<UploadedImage>;
|
|
60
|
-
/** Resolve a wspace-files File id to a presigned URL for display. */
|
|
61
|
-
export declare function useFileUrl(fileId?: string | null): import('@tanstack/react-query').UseQueryResult<string | null, Error>;
|
|
62
|
-
//# sourceMappingURL=useFiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFiles.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/hooks/useFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;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
/**
|
|
2
|
-
* CoolAndLovely Module Exports
|
|
3
|
-
* @module coolandlovely
|
|
4
|
-
*/
|
|
5
|
-
export { CoolAndLovelyRoot } from './CoolAndLovelyRoot';
|
|
6
|
-
export type { CoolAndLovelyRootProps, CoolAndLovelyUser, NavItem, FooterItem, ViewMode, DashboardStats, CooBrand, CooCollection, CooStyleItem, CooLook, CooCollaboration, CooWardrobeItem, CooStyleProfile, CooLookbook, CooBrandStatus, CooCollectionStatus, CooStyleItemStatus, CooCollaborationStatus, CooLookOccasion, CooSeason, CooStyleCategory, CooVisibility, CooWardrobeSource, CooAdminDecision, } from './types';
|
|
7
|
-
export { CoolAndLovelyProvider, useCoolAndLovely } from './context';
|
|
8
|
-
export { useCoolAndLovelyStore } from './store';
|
|
9
|
-
export { cn } from './utils/cn';
|
|
10
|
-
export { formatPrice, formatDate, formatRelativeTime, formatNumber, titleCase, } from './utils/formatters';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/coolandlovely/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,YAAY,EACV,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,cAAc,EAEd,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,WAAW,EAEX,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGhD,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,OAAO,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,SAAS,GACV,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Overview / Home Page
|
|
3
|
-
* @module coolandlovely/pages
|
|
4
|
-
*
|
|
5
|
-
* The CoolAndLovely command center landing page: a style-operating-system
|
|
6
|
-
* dashboard rolling up live catalog (brands, items), social (looks,
|
|
7
|
-
* collaborations) and the shopper's own wardrobe — all from real `coo*` ops.
|
|
8
|
-
*/
|
|
9
|
-
export declare function HomePage(): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=HomePage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.d.ts","sourceRoot":"","sources":["../../../src/coolandlovely/pages/HomePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAoMH,wBAAgB,QAAQ,gCA8VvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin Brands Page
|
|
3
|
-
* @module coolandlovely/pages/admin
|
|
4
|
-
*
|
|
5
|
-
* Curation surface for brand storefront approvals. Lists brands pending review
|
|
6
|
-
* and lets admins approve (PUBLISHED) or reject (DRAFT) them.
|
|
7
|
-
*/
|
|
8
|
-
export declare function AdminBrandsPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=AdminBrandsPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminBrandsPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/admin/AdminBrandsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkEH,wBAAgB,eAAe,gCA0B9B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin Collaborations Page
|
|
3
|
-
* @module coolandlovely/pages/admin
|
|
4
|
-
*
|
|
5
|
-
* Curation surface for brand × creator collaborations. Lists collaborations that
|
|
6
|
-
* can be advanced through their lifecycle via APPROVE/REJECT admin decisions.
|
|
7
|
-
*/
|
|
8
|
-
export declare function AdminCollaborationsPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=AdminCollaborationsPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminCollaborationsPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/admin/AdminCollaborationsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwGH,wBAAgB,uBAAuB,gCAgDtC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin Featured Items Page
|
|
3
|
-
* @module coolandlovely/pages/admin
|
|
4
|
-
*
|
|
5
|
-
* Curation surface for featured style items. Lists the catalogue and lets admins
|
|
6
|
-
* feature or unfeature individual items for curated discovery surfaces.
|
|
7
|
-
*/
|
|
8
|
-
export declare function AdminFeaturedItemsPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=AdminFeaturedItemsPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminFeaturedItemsPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/admin/AdminFeaturedItemsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+EH,wBAAgB,sBAAsB,gCAgGrC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin pages index
|
|
3
|
-
* @module coolandlovely/pages/admin
|
|
4
|
-
*/
|
|
5
|
-
export { AdminBrandsPage } from './AdminBrandsPage';
|
|
6
|
-
export { AdminCollaborationsPage } from './AdminCollaborationsPage';
|
|
7
|
-
export { AdminFeaturedItemsPage } from './AdminFeaturedItemsPage';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/admin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Brand Detail Page
|
|
3
|
-
* @module coolandlovely/pages/brands
|
|
4
|
-
*
|
|
5
|
-
* Renders a single brand storefront (`cooBrand`) with its publish-lifecycle
|
|
6
|
-
* transitions (`cooTransitionBrand`), collections and style items.
|
|
7
|
-
*/
|
|
8
|
-
export declare function BrandDetailPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=BrandDetailPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/brands/BrandDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+CH,wBAAgB,eAAe,gCAkT9B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Brand Create / Edit Page
|
|
3
|
-
* @module coolandlovely/pages/brands
|
|
4
|
-
*
|
|
5
|
-
* Drives `cooCreateBrand` (new) and `cooUpdateBrand` (edit). The route param
|
|
6
|
-
* `brandId` distinguishes the two modes.
|
|
7
|
-
*/
|
|
8
|
-
export declare function BrandFormPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=BrandFormPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandFormPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/brands/BrandFormPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyCH,wBAAgB,aAAa,gCAmQ5B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Brands List Page
|
|
3
|
-
* @module coolandlovely/pages/brands
|
|
4
|
-
*
|
|
5
|
-
* Lists brand storefronts (cursor-paginated `cooListBrands`) with status &
|
|
6
|
-
* featured filters. Each card links to the brand detail page.
|
|
7
|
-
*/
|
|
8
|
-
export declare function BrandsListPage(): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=BrandsListPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrandsListPage.d.ts","sourceRoot":"","sources":["../../../../src/coolandlovely/pages/brands/BrandsListPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuBH,wBAAgB,cAAc,gCAuJ7B"}
|