formica-ui-lib 1.0.287 → 1.0.289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/componentProps/organisms/status/AdminBackgroundJobTrayProps.d.ts +16 -0
- package/dist/componentProps/templates/admin/marketreadiness/MarketReadinessTemplateProps.d.ts +6 -0
- package/dist/componentProps/templates/admin/shared/AdminPageTemplateShellProps.d.ts +2 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4494 -4390
- package/dist/stories/organisms/status/AdminBackgroundJobTray/AdminBackgroundJobTray.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +8 -8
|
@@ -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
|
+
}
|
package/dist/componentProps/templates/admin/marketreadiness/MarketReadinessTemplateProps.d.ts
CHANGED
|
@@ -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";
|
|
@@ -76,10 +77,12 @@ export interface MarketReadinessSkuListItem {
|
|
|
76
77
|
}
|
|
77
78
|
export interface MarketReadinessSkuIntegration {
|
|
78
79
|
lxId?: string;
|
|
80
|
+
lxSyncLoading?: boolean;
|
|
79
81
|
bigCommerceId?: string;
|
|
80
82
|
bigCommerceStatusLabel?: string;
|
|
81
83
|
bigCommerceSyncLabel?: string;
|
|
82
84
|
bigCommerceSyncDisabled?: boolean;
|
|
85
|
+
bigCommerceSyncLoading?: boolean;
|
|
83
86
|
availableForOnlineCheckout?: boolean;
|
|
84
87
|
availabilityLabel?: string;
|
|
85
88
|
priceLabel?: string;
|
|
@@ -311,6 +314,7 @@ export interface MarketReadinessSampleCreatePayload {
|
|
|
311
314
|
}
|
|
312
315
|
interface MarketReadinessTemplateCallbacks {
|
|
313
316
|
sideNavProps?: AdminSideNavProps;
|
|
317
|
+
backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
|
|
314
318
|
data: MarketReadinessTemplateData;
|
|
315
319
|
onTabSelect?: (payload: MarketReadinessTabSelectPayload) => void;
|
|
316
320
|
onLocalizationSelect?: (payload: LocalizationStatusCardClickPayload) => void;
|
|
@@ -353,11 +357,13 @@ export type MarketReadinessTemplateProps = (MarketReadinessTemplateCallbacks & {
|
|
|
353
357
|
}) | {
|
|
354
358
|
state: "loading";
|
|
355
359
|
sideNavProps: AdminSideNavProps;
|
|
360
|
+
backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
|
|
356
361
|
pageTitle: string;
|
|
357
362
|
message?: string;
|
|
358
363
|
} | {
|
|
359
364
|
state: "error" | "notFound" | "empty";
|
|
360
365
|
sideNavProps: AdminSideNavProps;
|
|
366
|
+
backgroundJobTrayProps?: AdminBackgroundJobTrayProps;
|
|
361
367
|
pageTitle: string;
|
|
362
368
|
message: string;
|
|
363
369
|
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
|
}
|