formica-ui-lib 1.0.285 → 1.0.288

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.
@@ -13,7 +13,9 @@ export interface DecorSummaryCardProps {
13
13
  name: string;
14
14
  imageUrl?: string;
15
15
  imageAlt?: string;
16
+ availableSheetCount: number;
16
17
  sheetCount: number;
18
+ availableSampleCount: number;
17
19
  sampleCount: number;
18
20
  sheetLabel?: string;
19
21
  sampleLabel?: string;
@@ -0,0 +1,16 @@
1
+ export interface AdminBackgroundJob {
2
+ id: string;
3
+ name: string;
4
+ status: string;
5
+ percentDone: number;
6
+ }
7
+ export interface AdminBackgroundJobClickPayload {
8
+ job: AdminBackgroundJob;
9
+ }
10
+ export interface AdminBackgroundJobTrayProps {
11
+ jobs: AdminBackgroundJob[];
12
+ ariaLabel?: string;
13
+ completionDisplayDuration?: number;
14
+ onJobClick?: (payload: AdminBackgroundJobClickPayload) => void;
15
+ onJobDismiss?: (job: AdminBackgroundJob) => void;
16
+ }
@@ -2,6 +2,7 @@ import type { DynamicFormFieldConfig, DynamicFormFieldValue } from "../../../org
2
2
  import type { LocalizationMarketItem } from "../../../organisms/collections/localizationmarketcollection/LocalizationMarketCollectionProps";
3
3
  import type { LocalizationStatusCardClickPayload } from "../../../molecules/cards/localizationstatuscard/LocalizationStatusCardProps";
4
4
  import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
5
+ import type { AdminBackgroundJobTrayProps } from "../../../organisms/status/AdminBackgroundJobTrayProps";
5
6
  export type MarketReadinessTabId = "decor" | "sheets" | "samples";
6
7
  export type MarketReadinessSaveStatus = "saved" | "unsaved" | "saving" | "error";
7
8
  export type MarketReadinessSkuMode = "edit" | "create";
@@ -311,6 +312,7 @@ export interface MarketReadinessSampleCreatePayload {
311
312
  }
312
313
  interface MarketReadinessTemplateCallbacks {
313
314
  sideNavProps?: AdminSideNavProps;
315
+ backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
314
316
  data: MarketReadinessTemplateData;
315
317
  onTabSelect?: (payload: MarketReadinessTabSelectPayload) => void;
316
318
  onLocalizationSelect?: (payload: LocalizationStatusCardClickPayload) => void;
@@ -353,11 +355,13 @@ export type MarketReadinessTemplateProps = (MarketReadinessTemplateCallbacks & {
353
355
  }) | {
354
356
  state: "loading";
355
357
  sideNavProps: AdminSideNavProps;
358
+ backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
356
359
  pageTitle: string;
357
360
  message?: string;
358
361
  } | {
359
362
  state: "error" | "notFound" | "empty";
360
363
  sideNavProps: AdminSideNavProps;
364
+ backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
361
365
  pageTitle: string;
362
366
  message: string;
363
367
  actionLabel?: string;
@@ -1,10 +1,12 @@
1
1
  import type { ReactNode } from "react";
2
2
  import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
3
+ import type { AdminBackgroundJobTrayProps } from "../../../organisms/status/AdminBackgroundJobTrayProps";
3
4
  export interface AdminPageTemplateShellProps {
4
5
  pageTitle: string;
5
6
  pageDescription?: string;
6
7
  sideNavProps: AdminSideNavProps;
7
8
  headerLeading?: ReactNode;
8
9
  headerActions?: ReactNode;
10
+ backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
9
11
  children: ReactNode;
10
12
  }