@mohasinac/appkit 2.7.36 → 2.7.38
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/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
- package/dist/_internal/client/features/seller/print-center/InventoryLabel.d.ts +12 -0
- package/dist/_internal/client/features/seller/print-center/InventoryLabel.js +49 -0
- package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.d.ts +7 -0
- package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.js +32 -0
- package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.d.ts +28 -0
- package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.js +33 -0
- package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.d.ts +12 -0
- package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.js +30 -0
- package/dist/_internal/client/features/seller/print-center/PrintCenterView.d.ts +12 -0
- package/dist/_internal/client/features/seller/print-center/PrintCenterView.js +102 -0
- package/dist/_internal/client/features/seller/print-center/PrintGrid.d.ts +12 -0
- package/dist/_internal/client/features/seller/print-center/PrintGrid.js +13 -0
- package/dist/_internal/client/features/seller/print-center/StoreCard.d.ts +19 -0
- package/dist/_internal/client/features/seller/print-center/StoreCard.js +30 -0
- package/dist/_internal/client/features/seller/print-center/WebsiteCard.d.ts +11 -0
- package/dist/_internal/client/features/seller/print-center/WebsiteCard.js +25 -0
- package/dist/_internal/client/features/seller/print-center/index.d.ts +11 -0
- package/dist/_internal/client/features/seller/print-center/index.js +10 -0
- package/dist/_internal/client/features/seller/print-center/types.d.ts +20 -0
- package/dist/_internal/client/features/seller/print-center/types.js +20 -0
- package/dist/_internal/client/features/seller/print-center/useInventoryPdf.d.ts +18 -0
- package/dist/_internal/client/features/seller/print-center/useInventoryPdf.js +76 -0
- package/dist/_internal/server/jobs/core/draftPrune.d.ts +2 -0
- package/dist/_internal/server/jobs/core/draftPrune.js +15 -0
- package/dist/_internal/server/jobs/core/onBidPlaced.js +1 -1
- package/dist/_internal/server/jobs/core/promotions.d.ts +1 -0
- package/dist/_internal/server/jobs/core/promotions.js +21 -6
- package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +18 -1
- package/dist/_internal/server/jobs/handlers/draftPrune.d.ts +2 -0
- package/dist/_internal/server/jobs/handlers/draftPrune.js +2 -0
- package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
- package/dist/_internal/server/jobs/handlers/index.js +2 -0
- package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +15 -1
- package/dist/_internal/shared/actions/action-registry.js +32 -0
- package/dist/_internal/shared/features/blog/schema.d.ts +8 -8
- package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +10 -10
- package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
- package/dist/_internal/shared/features/products/schema.d.ts +8 -8
- package/dist/_internal/shared/features/promotions/schema.d.ts +6 -6
- package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
- package/dist/client.d.ts +13 -1
- package/dist/client.js +7 -1
- package/dist/configs/next.js +1 -0
- package/dist/constants/api-endpoints.d.ts +6 -0
- package/dist/constants/api-endpoints.js +2 -0
- package/dist/core/server-action.d.ts +4 -0
- package/dist/errors/error-codes.d.ts +18 -0
- package/dist/errors/error-codes.js +18 -0
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/messages.d.ts +1 -0
- package/dist/errors/messages.js +1 -0
- package/dist/features/account/components/UserSidebar.js +1 -1
- package/dist/features/account/schemas/index.d.ts +12 -12
- package/dist/features/admin/components/AdminSidebar.js +1 -1
- package/dist/features/auctions/actions/bid-actions.js +27 -11
- package/dist/features/auctions/components/PlaceBidFormClient.js +10 -2
- package/dist/features/auctions/repository/bid.repository.d.ts +7 -0
- package/dist/features/auctions/repository/bid.repository.js +16 -0
- package/dist/features/auctions/schemas/index.d.ts +18 -18
- package/dist/features/auth/schemas/index.d.ts +2 -2
- package/dist/features/before-after/schemas/index.d.ts +2 -2
- package/dist/features/blog/actions/blog-actions.d.ts +32 -32
- package/dist/features/blog/components/BlogPostForm.js +1 -1
- package/dist/features/blog/schemas/index.d.ts +38 -38
- package/dist/features/categories/schemas/index.d.ts +10 -10
- package/dist/features/collections/schemas/index.d.ts +4 -4
- package/dist/features/consultation/schemas/index.d.ts +9 -9
- package/dist/features/corporate/schemas/index.d.ts +4 -4
- package/dist/features/events/schemas/index.d.ts +50 -50
- package/dist/features/faq/actions/faq-actions.d.ts +6 -6
- package/dist/features/faq/schemas/index.d.ts +8 -8
- package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
- package/dist/features/layout/AppLayoutShell.js +1 -1
- package/dist/features/layout/AutoBreadcrumbs.js +1 -1
- package/dist/features/media/AvatarUpload.js +1 -1
- package/dist/features/media/types/index.d.ts +4 -4
- package/dist/features/media/upload/ImageUpload.js +18 -9
- package/dist/features/media/upload/MediaUploadList.js +2 -2
- package/dist/features/orders/schemas/firestore.d.ts +6 -0
- package/dist/features/orders/schemas/index.d.ts +10 -10
- package/dist/features/orders/types/index.d.ts +5 -0
- package/dist/features/payments/schemas/index.d.ts +4 -4
- package/dist/features/pre-orders/schemas/index.d.ts +8 -8
- package/dist/features/products/components/PrizeDrawItemsEditor.js +1 -1
- package/dist/features/products/components/ProductDetailActions.d.ts +16 -0
- package/dist/features/products/components/ProductDetailActions.js +94 -0
- package/dist/features/products/components/ProductDetailPageView.d.ts +16 -1
- package/dist/features/products/components/ProductDetailPageView.js +22 -3
- package/dist/features/products/components/ProductForm.js +20 -2
- package/dist/features/products/repository/products.repository.d.ts +3 -1
- package/dist/features/products/repository/products.repository.js +12 -1
- package/dist/features/products/schemas/firestore.d.ts +7 -0
- package/dist/features/products/schemas/index.d.ts +34 -34
- package/dist/features/products/schemas/product-features.validators.d.ts +6 -6
- package/dist/features/products/types/index.d.ts +6 -0
- package/dist/features/promotions/schemas/index.d.ts +14 -14
- package/dist/features/reviews/schemas/index.d.ts +18 -18
- package/dist/features/seller/actions/offer-actions.js +10 -1
- package/dist/features/seller/components/PhysicalLocationModal.d.ts +12 -0
- package/dist/features/seller/components/PhysicalLocationModal.js +30 -0
- package/dist/features/seller/components/PrintCenterView.d.ts +40 -0
- package/dist/features/seller/components/PrintCenterView.js +6 -0
- package/dist/features/seller/components/SellerOrdersView.js +48 -3
- package/dist/features/seller/components/SellerProductShell.d.ts +1 -0
- package/dist/features/seller/components/SellerProductShell.js +26 -4
- package/dist/features/seller/components/SellerProductsView.js +54 -13
- package/dist/features/seller/components/SellerSidebar.js +1 -1
- package/dist/features/seller/components/index.d.ts +1 -0
- package/dist/features/seller/components/index.js +1 -0
- package/dist/features/seller/schemas/firestore.d.ts +2 -0
- package/dist/features/seller/schemas/firestore.js +1 -0
- package/dist/features/seller/schemas/index.d.ts +22 -22
- package/dist/features/shell/FormShell.js +1 -1
- package/dist/features/shell/StepForm.d.ts +3 -1
- package/dist/features/shell/StepForm.js +3 -3
- package/dist/features/stores/schemas/index.d.ts +4 -4
- package/dist/index.d.ts +9 -1
- package/dist/index.js +6 -1
- package/dist/next/routing/route-map.d.ts +8 -0
- package/dist/next/routing/route-map.js +3 -0
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/RowActionMenu.js +45 -10
- package/dist/ui/components/SideDrawer.style.css +2 -2
- package/dist/ui/forms/FieldCheckbox.d.ts +13 -0
- package/dist/ui/forms/FieldCheckbox.js +25 -0
- package/dist/ui/forms/FieldInput.d.ts +11 -0
- package/dist/ui/forms/FieldInput.js +25 -0
- package/dist/ui/forms/FieldSelect.d.ts +17 -0
- package/dist/ui/forms/FieldSelect.js +25 -0
- package/dist/ui/forms/FormShell.d.ts +48 -0
- package/dist/ui/forms/FormShell.js +176 -0
- package/dist/ui/forms/FormShell.style.css +287 -0
- package/dist/ui/forms/index.d.ts +8 -0
- package/dist/ui/forms/index.js +4 -0
- package/dist/ui/index.d.ts +9 -0
- package/dist/ui/index.js +5 -0
- package/dist/utils/action-response.d.ts +6 -0
- package/dist/utils/action-response.js +22 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/validation/schemas.d.ts +10 -10
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,13 @@ export { DropdownTrigger } from "./ui/index";
|
|
|
42
42
|
export { FormFieldSpan } from "./ui/index";
|
|
43
43
|
export { FormGrid } from "./ui/index";
|
|
44
44
|
export { FormGroup } from "./ui/index";
|
|
45
|
+
export type { FormShellStep, FormShellContextValue } from "./ui/index";
|
|
46
|
+
export type { FieldInputProps } from "./ui/index";
|
|
47
|
+
export { FieldInput } from "./ui/index";
|
|
48
|
+
export type { FieldSelectProps } from "./ui/index";
|
|
49
|
+
export { FieldSelect } from "./ui/index";
|
|
50
|
+
export type { FieldCheckboxProps } from "./ui/index";
|
|
51
|
+
export { FieldCheckbox } from "./ui/index";
|
|
45
52
|
export { GRID_MAP } from "./ui/index";
|
|
46
53
|
export { ImageGallery } from "./ui/index";
|
|
47
54
|
export { ImageLightbox } from "./ui/index";
|
|
@@ -286,7 +293,7 @@ export { AppError } from "./errors/index";
|
|
|
286
293
|
export { AuthenticationError } from "./errors/index";
|
|
287
294
|
export { AuthorizationError } from "./errors/index";
|
|
288
295
|
export { DatabaseError } from "./errors/index";
|
|
289
|
-
export { ERROR_CODES } from "./errors/index";
|
|
296
|
+
export { ERROR_CODES, BID_ERROR_CODES, OFFER_ERROR_CODES } from "./errors/index";
|
|
290
297
|
export { ERROR_MESSAGES } from "./errors/index";
|
|
291
298
|
export { NotFoundError } from "./errors/index";
|
|
292
299
|
export { ValidationError } from "./errors/index";
|
|
@@ -373,6 +380,7 @@ export { useSiteSettings } from "./core/index";
|
|
|
373
380
|
export type { ActionMiddleware } from "./core/index";
|
|
374
381
|
export type { ActionMiddlewareContext } from "./core/index";
|
|
375
382
|
export type { ActionResult } from "./core/index";
|
|
383
|
+
export { handleActionError } from "./utils/action-response";
|
|
376
384
|
export type { CacheEntry } from "./core/index";
|
|
377
385
|
export type { CacheOptions } from "./core/index";
|
|
378
386
|
export type { CopilotFeedback } from "./core/index";
|
package/dist/index.js
CHANGED
|
@@ -134,6 +134,9 @@ export { FormGrid } from "./ui/index";
|
|
|
134
134
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
135
135
|
// FormGroup - Shared export for form group.
|
|
136
136
|
export { FormGroup } from "./ui/index";
|
|
137
|
+
export { FieldInput } from "./ui/index";
|
|
138
|
+
export { FieldSelect } from "./ui/index";
|
|
139
|
+
export { FieldCheckbox } from "./ui/index";
|
|
137
140
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
138
141
|
// GRID_MAP - Constant used across modules.
|
|
139
142
|
export { GRID_MAP } from "./ui/index";
|
|
@@ -493,7 +496,7 @@ export { AuthorizationError } from "./errors/index";
|
|
|
493
496
|
export { DatabaseError } from "./errors/index";
|
|
494
497
|
// [UTIL]-Pure utility â€" no framework or runtime dependency; safe to import from any environment.
|
|
495
498
|
// ERROR_CODES - Constant used across modules.
|
|
496
|
-
export { ERROR_CODES } from "./errors/index";
|
|
499
|
+
export { ERROR_CODES, BID_ERROR_CODES, OFFER_ERROR_CODES } from "./errors/index";
|
|
497
500
|
// [UTIL]-Pure utility â€" no framework or runtime dependency; safe to import from any environment.
|
|
498
501
|
// ERROR_MESSAGES - Constant used across modules.
|
|
499
502
|
export { ERROR_MESSAGES } from "./errors/index";
|
|
@@ -706,6 +709,8 @@ export { unitOfWork } from "./core/index";
|
|
|
706
709
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
707
710
|
// useSiteSettings - React hook for use site settings.
|
|
708
711
|
export { useSiteSettings } from "./core/index";
|
|
712
|
+
// handleActionError - Maps domain errors to structured { ok: false, error, code } responses.
|
|
713
|
+
export { handleActionError } from "./utils/action-response";
|
|
709
714
|
// ./security/index
|
|
710
715
|
// [CLIENT-SSR]-Runs in both SSR and browser â€" React component or hook that does not depend on browser-only APIs.
|
|
711
716
|
// ADDRESS_PII_FIELDS - Constant used across modules.
|
|
@@ -183,6 +183,8 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
183
183
|
readonly LIVE_ITEMS: "/store/live";
|
|
184
184
|
readonly LIVE_ITEMS_NEW: "/store/live/new";
|
|
185
185
|
readonly LIVE_ITEMS_EDIT: (id: string) => string;
|
|
186
|
+
readonly PRINT_CENTER: "/store/print-center";
|
|
187
|
+
readonly INVENTORY_PRINT: "/store/inventory/print";
|
|
186
188
|
};
|
|
187
189
|
readonly ADMIN: {
|
|
188
190
|
readonly DASHBOARD: "/admin/dashboard";
|
|
@@ -263,6 +265,7 @@ export declare const DEFAULT_ROUTE_MAP: {
|
|
|
263
265
|
readonly SCAMMER_BY_ID: (id: string) => string;
|
|
264
266
|
readonly SETTINGS_ACTIONS: "/admin/settings/actions";
|
|
265
267
|
readonly SETTINGS_NAVIGATION: "/admin/settings/navigation";
|
|
268
|
+
readonly PRINT_CENTER: "/admin/print-center";
|
|
266
269
|
};
|
|
267
270
|
readonly DEMO: {
|
|
268
271
|
readonly SEED: "/demo/seed";
|
|
@@ -445,6 +448,8 @@ export declare const ROUTES: {
|
|
|
445
448
|
readonly LIVE_ITEMS: "/store/live";
|
|
446
449
|
readonly LIVE_ITEMS_NEW: "/store/live/new";
|
|
447
450
|
readonly LIVE_ITEMS_EDIT: (id: string) => string;
|
|
451
|
+
readonly PRINT_CENTER: "/store/print-center";
|
|
452
|
+
readonly INVENTORY_PRINT: "/store/inventory/print";
|
|
448
453
|
};
|
|
449
454
|
readonly ADMIN: {
|
|
450
455
|
readonly DASHBOARD: "/admin/dashboard";
|
|
@@ -525,6 +530,7 @@ export declare const ROUTES: {
|
|
|
525
530
|
readonly SCAMMER_BY_ID: (id: string) => string;
|
|
526
531
|
readonly SETTINGS_ACTIONS: "/admin/settings/actions";
|
|
527
532
|
readonly SETTINGS_NAVIGATION: "/admin/settings/navigation";
|
|
533
|
+
readonly PRINT_CENTER: "/admin/print-center";
|
|
528
534
|
};
|
|
529
535
|
readonly DEMO: {
|
|
530
536
|
readonly SEED: "/demo/seed";
|
|
@@ -587,6 +593,8 @@ export declare const SELLER_ROUTES: {
|
|
|
587
593
|
readonly LIVE_ITEMS: "/store/live";
|
|
588
594
|
readonly LIVE_ITEMS_NEW: "/store/live/new";
|
|
589
595
|
readonly LIVE_ITEMS_EDIT: (id: string) => string;
|
|
596
|
+
readonly PRINT_CENTER: "/store/print-center";
|
|
597
|
+
readonly INVENTORY_PRINT: "/store/inventory/print";
|
|
590
598
|
};
|
|
591
599
|
export declare const PUBLIC_ROUTES: readonly ["/", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, "/unauthorized", "/auth/login", "/auth/register", "/auth/forgot-password", "/auth/reset-password", "/auth/verify-email"];
|
|
592
600
|
export declare const PROTECTED_ROUTES: readonly [string, string, string, string, string, string, string];
|
|
@@ -173,6 +173,8 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
173
173
|
LIVE_ITEMS: "/store/live",
|
|
174
174
|
LIVE_ITEMS_NEW: "/store/live/new",
|
|
175
175
|
LIVE_ITEMS_EDIT: (id) => `/store/live/${id}/edit`,
|
|
176
|
+
PRINT_CENTER: "/store/print-center",
|
|
177
|
+
INVENTORY_PRINT: "/store/inventory/print",
|
|
176
178
|
},
|
|
177
179
|
ADMIN: {
|
|
178
180
|
DASHBOARD: "/admin/dashboard",
|
|
@@ -255,6 +257,7 @@ export const DEFAULT_ROUTE_MAP = {
|
|
|
255
257
|
SCAMMER_BY_ID: (id) => `/admin/scammers/${id}`,
|
|
256
258
|
SETTINGS_ACTIONS: "/admin/settings/actions",
|
|
257
259
|
SETTINGS_NAVIGATION: "/admin/settings/navigation",
|
|
260
|
+
PRINT_CENTER: "/admin/print-center",
|
|
258
261
|
},
|
|
259
262
|
DEMO: {
|
|
260
263
|
SEED: "/demo/seed",
|