@develemit/commerce-admin 0.4.0 → 0.7.0
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/CHANGELOG.md +87 -0
- package/README.md +85 -9
- package/dist/client/admin-client.d.ts +3 -2
- package/dist/client/errors.d.ts +8 -0
- package/dist/client/index.js +1 -1
- package/dist/client/transport.d.ts +3 -1
- package/dist/client-DCL5DSHP.js +184 -0
- package/dist/client-DCL5DSHP.js.map +1 -0
- package/dist/components/admin-layout/admin-layout.d.ts +5 -6
- package/dist/components/admin-layout/nav-icons.d.ts +9 -0
- package/dist/components/admin-layout/nav-items.d.ts +36 -0
- package/dist/components/admin-layout/use-more-sheet.d.ts +5 -0
- package/dist/components/empty-state/empty-state.d.ts +10 -0
- package/dist/components/notice/notice.d.ts +5 -1
- package/dist/components/page-header/admin-page-header.d.ts +8 -0
- package/dist/components/setup-checklist/setup-checklist.d.ts +15 -0
- package/dist/components/switch/switch.d.ts +7 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3325 -1211
- package/dist/index.js.map +1 -1
- package/dist/lib/admin-labels.d.ts +2 -0
- package/dist/lib/discount-labels.d.ts +1 -0
- package/dist/lib/fill-alts.d.ts +3 -0
- package/dist/lib/order-labels.d.ts +1 -0
- package/dist/lib/product-draft.d.ts +11 -0
- package/dist/lib/product-flow-labels.d.ts +54 -0
- package/dist/lib/product-labels.d.ts +53 -0
- package/dist/lib/product-missing.d.ts +4 -0
- package/dist/lib/product-sheet-actions.d.ts +13 -0
- package/dist/lib/shipping-labels.d.ts +2 -0
- package/dist/lib/stock-labels.d.ts +41 -0
- package/dist/lib/use-batch-upload.d.ts +38 -0
- package/dist/lib/use-focus-trap.d.ts +2 -0
- package/dist/lib/use-image-upload.d.ts +3 -2
- package/dist/lib/use-order-pages.d.ts +2 -0
- package/dist/lib/use-paged-list.d.ts +15 -0
- package/dist/lib/use-product-autosave.d.ts +95 -0
- package/dist/lib/use-product-pages.d.ts +2 -2
- package/dist/styles.css +1300 -55
- package/dist/views/products/add-several/admin-add-several.d.ts +5 -0
- package/dist/views/products/add-several/photo-picker.d.ts +7 -0
- package/dist/views/products/admin-product-editor.d.ts +3 -1
- package/dist/views/products/admin-product-list.d.ts +13 -1
- package/dist/views/products/finish-drafts/admin-finish-drafts.d.ts +7 -0
- package/dist/views/products/finish-drafts/piece-card.d.ts +10 -0
- package/dist/views/products/finish-drafts/piece-fields.d.ts +7 -0
- package/dist/views/products/finish-drafts/piece-summary.d.ts +10 -0
- package/dist/views/products/finish-drafts/use-publish-pieces.d.ts +52 -0
- package/dist/views/products/product-card.d.ts +6 -0
- package/dist/views/products/product-flow/admin-product-flow.d.ts +15 -0
- package/dist/views/products/product-flow/basics-section.d.ts +6 -0
- package/dist/views/products/product-flow/flow-actions.d.ts +10 -0
- package/dist/views/products/product-flow/flow-frame.d.ts +28 -0
- package/dist/views/products/product-flow/flow-images.d.ts +7 -0
- package/dist/views/products/product-flow/flow-section-props.d.ts +5 -0
- package/dist/views/products/product-flow/flow-success.d.ts +8 -0
- package/dist/views/products/product-flow/flow-test-helpers.d.ts +12 -0
- package/dist/views/products/product-flow/photos-section.d.ts +9 -0
- package/dist/views/products/product-flow/preview-section.d.ts +10 -0
- package/dist/views/products/product-flow/story-section.d.ts +8 -0
- package/dist/views/products/product-flow/use-product-flow.d.ts +138 -0
- package/dist/views/products/product-sheet/admin-product-sheet.d.ts +8 -0
- package/dist/views/products/product-sheet/sheet-carousel.d.ts +4 -0
- package/dist/views/products/product-sheet/sheet-edit-link.d.ts +14 -0
- package/dist/views/products/product-sheet/use-product-change.d.ts +16 -0
- package/dist/views/products/product-toolbar.d.ts +10 -0
- package/dist/views/products/product-welcome.d.ts +8 -0
- package/dist/views/shipping/admin-shipping-rates.d.ts +6 -1
- package/package.json +11 -3
- package/dist/client--_j5r8ag.js +0 -168
- package/dist/client--_j5r8ag.js.map +0 -1
|
@@ -5,5 +5,9 @@ export interface NoticeProps {
|
|
|
5
5
|
toast?: boolean;
|
|
6
6
|
duration?: number;
|
|
7
7
|
onDismiss?: () => void;
|
|
8
|
+
action?: {
|
|
9
|
+
label: string;
|
|
10
|
+
onAction: () => void;
|
|
11
|
+
};
|
|
8
12
|
}
|
|
9
|
-
export declare function Notice({ variant, children, toast, duration, onDismiss, }: NoticeProps): import('react').JSX.Element;
|
|
13
|
+
export declare function Notice({ variant, children, toast, duration, onDismiss, action, }: NoticeProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface AdminPageHeaderProps {
|
|
3
|
+
title: ReactNode;
|
|
4
|
+
actions?: ReactNode;
|
|
5
|
+
floatingAction?: ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function AdminPageHeader({ title, actions, floatingAction, children, }: AdminPageHeaderProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SetupStep {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
detail?: string;
|
|
5
|
+
done: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
onSelect?: () => void;
|
|
8
|
+
locked?: boolean;
|
|
9
|
+
lockedDetail?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AdminSetupChecklistProps {
|
|
12
|
+
steps: SetupStep[];
|
|
13
|
+
compact?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function AdminSetupChecklist({ steps, compact, }: AdminSetupChecklistProps): import('react').JSX.Element | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/provider';
|
|
|
2
2
|
export * from './lib/use-admin-query';
|
|
3
3
|
export * from './lib/use-admin-mutation';
|
|
4
4
|
export * from './components/admin-layout/admin-layout';
|
|
5
|
+
export * from './components/page-header/admin-page-header';
|
|
5
6
|
export * from './components/admin-table/admin-table';
|
|
6
7
|
export * from './components/status-badge/status-badge';
|
|
7
8
|
export * from './components/money/money';
|
|
@@ -10,7 +11,13 @@ export * from './components/notice/notice';
|
|
|
10
11
|
export * from './components/error-message/error-message';
|
|
11
12
|
export type { AdminClient } from './client';
|
|
12
13
|
export * from './views/products/admin-product-list';
|
|
14
|
+
export * from './views/products/product-sheet/admin-product-sheet';
|
|
15
|
+
export * from './components/setup-checklist/setup-checklist';
|
|
13
16
|
export * from './views/products/admin-product-editor';
|
|
17
|
+
export * from './views/products/product-flow/admin-product-flow';
|
|
18
|
+
export type { ProductFlowLabels } from './lib/product-flow-labels';
|
|
19
|
+
export type { EditProduct } from './views/products/product-sheet/sheet-edit-link';
|
|
20
|
+
export * from './components/switch/switch';
|
|
14
21
|
export * from './views/products/admin-product-images';
|
|
15
22
|
export type { ImageLabels } from './lib/image-labels';
|
|
16
23
|
export type { ProductLabels, ProductFilter } from './lib/product-labels';
|
|
@@ -21,7 +28,12 @@ export type { OrderLabels, OrderTab } from './lib/order-labels';
|
|
|
21
28
|
export * from './views/orders/order-actions';
|
|
22
29
|
export type { OrderActionLabels } from './lib/order-action-labels';
|
|
23
30
|
export * from './views/shipping/admin-shipping-rates';
|
|
31
|
+
export * from './components/empty-state/empty-state';
|
|
24
32
|
export type { ShippingLabels } from './lib/shipping-labels';
|
|
25
33
|
export * from './views/discounts/admin-discount-list';
|
|
26
34
|
export * from './views/discounts/admin-discount-editor';
|
|
27
35
|
export type { DiscountLabels, DiscountTab } from './lib/discount-labels';
|
|
36
|
+
export * from './views/products/add-several/admin-add-several';
|
|
37
|
+
export * from './views/products/finish-drafts/admin-finish-drafts';
|
|
38
|
+
export type { PublishOutcome } from './views/products/finish-drafts/use-publish-pieces';
|
|
39
|
+
export type { StockLabels } from './lib/stock-labels';
|