@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.
Files changed (144) hide show
  1. package/dist/_internal/client/features/layout/DashboardLayoutClient.js +1 -1
  2. package/dist/_internal/client/features/seller/print-center/InventoryLabel.d.ts +12 -0
  3. package/dist/_internal/client/features/seller/print-center/InventoryLabel.js +49 -0
  4. package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.d.ts +7 -0
  5. package/dist/_internal/client/features/seller/print-center/LabelDesignPicker.js +32 -0
  6. package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.d.ts +28 -0
  7. package/dist/_internal/client/features/seller/print-center/OrderPackingLabel.js +33 -0
  8. package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.d.ts +12 -0
  9. package/dist/_internal/client/features/seller/print-center/PhysicalLocationModal.js +30 -0
  10. package/dist/_internal/client/features/seller/print-center/PrintCenterView.d.ts +12 -0
  11. package/dist/_internal/client/features/seller/print-center/PrintCenterView.js +102 -0
  12. package/dist/_internal/client/features/seller/print-center/PrintGrid.d.ts +12 -0
  13. package/dist/_internal/client/features/seller/print-center/PrintGrid.js +13 -0
  14. package/dist/_internal/client/features/seller/print-center/StoreCard.d.ts +19 -0
  15. package/dist/_internal/client/features/seller/print-center/StoreCard.js +30 -0
  16. package/dist/_internal/client/features/seller/print-center/WebsiteCard.d.ts +11 -0
  17. package/dist/_internal/client/features/seller/print-center/WebsiteCard.js +25 -0
  18. package/dist/_internal/client/features/seller/print-center/index.d.ts +11 -0
  19. package/dist/_internal/client/features/seller/print-center/index.js +10 -0
  20. package/dist/_internal/client/features/seller/print-center/types.d.ts +20 -0
  21. package/dist/_internal/client/features/seller/print-center/types.js +20 -0
  22. package/dist/_internal/client/features/seller/print-center/useInventoryPdf.d.ts +18 -0
  23. package/dist/_internal/client/features/seller/print-center/useInventoryPdf.js +76 -0
  24. package/dist/_internal/server/jobs/core/draftPrune.d.ts +2 -0
  25. package/dist/_internal/server/jobs/core/draftPrune.js +15 -0
  26. package/dist/_internal/server/jobs/core/onBidPlaced.js +1 -1
  27. package/dist/_internal/server/jobs/core/promotions.d.ts +1 -0
  28. package/dist/_internal/server/jobs/core/promotions.js +21 -6
  29. package/dist/_internal/server/jobs/handlers/assignSpinPrize.js +18 -1
  30. package/dist/_internal/server/jobs/handlers/draftPrune.d.ts +2 -0
  31. package/dist/_internal/server/jobs/handlers/draftPrune.js +2 -0
  32. package/dist/_internal/server/jobs/handlers/index.d.ts +1 -0
  33. package/dist/_internal/server/jobs/handlers/index.js +2 -0
  34. package/dist/_internal/server/jobs/handlers/triggerEventRaffle.js +15 -1
  35. package/dist/_internal/shared/actions/action-registry.js +32 -0
  36. package/dist/_internal/shared/features/blog/schema.d.ts +8 -8
  37. package/dist/_internal/shared/features/categories/bundle-schemas.d.ts +10 -10
  38. package/dist/_internal/shared/features/orders/schema.d.ts +8 -8
  39. package/dist/_internal/shared/features/products/schema.d.ts +8 -8
  40. package/dist/_internal/shared/features/promotions/schema.d.ts +6 -6
  41. package/dist/_internal/shared/features/reviews/schema.d.ts +2 -2
  42. package/dist/client.d.ts +13 -1
  43. package/dist/client.js +7 -1
  44. package/dist/configs/next.js +1 -0
  45. package/dist/constants/api-endpoints.d.ts +6 -0
  46. package/dist/constants/api-endpoints.js +2 -0
  47. package/dist/core/server-action.d.ts +4 -0
  48. package/dist/errors/error-codes.d.ts +18 -0
  49. package/dist/errors/error-codes.js +18 -0
  50. package/dist/errors/index.d.ts +1 -1
  51. package/dist/errors/index.js +1 -1
  52. package/dist/errors/messages.d.ts +1 -0
  53. package/dist/errors/messages.js +1 -0
  54. package/dist/features/account/components/UserSidebar.js +1 -1
  55. package/dist/features/account/schemas/index.d.ts +12 -12
  56. package/dist/features/admin/components/AdminSidebar.js +1 -1
  57. package/dist/features/auctions/actions/bid-actions.js +27 -11
  58. package/dist/features/auctions/components/PlaceBidFormClient.js +10 -2
  59. package/dist/features/auctions/repository/bid.repository.d.ts +7 -0
  60. package/dist/features/auctions/repository/bid.repository.js +16 -0
  61. package/dist/features/auctions/schemas/index.d.ts +18 -18
  62. package/dist/features/auth/schemas/index.d.ts +2 -2
  63. package/dist/features/before-after/schemas/index.d.ts +2 -2
  64. package/dist/features/blog/actions/blog-actions.d.ts +32 -32
  65. package/dist/features/blog/components/BlogPostForm.js +1 -1
  66. package/dist/features/blog/schemas/index.d.ts +38 -38
  67. package/dist/features/categories/schemas/index.d.ts +10 -10
  68. package/dist/features/collections/schemas/index.d.ts +4 -4
  69. package/dist/features/consultation/schemas/index.d.ts +9 -9
  70. package/dist/features/corporate/schemas/index.d.ts +4 -4
  71. package/dist/features/events/schemas/index.d.ts +50 -50
  72. package/dist/features/faq/actions/faq-actions.d.ts +6 -6
  73. package/dist/features/faq/schemas/index.d.ts +8 -8
  74. package/dist/features/homepage/actions/homepage-section-actions.d.ts +4 -4
  75. package/dist/features/layout/AppLayoutShell.js +1 -1
  76. package/dist/features/layout/AutoBreadcrumbs.js +1 -1
  77. package/dist/features/media/AvatarUpload.js +1 -1
  78. package/dist/features/media/types/index.d.ts +4 -4
  79. package/dist/features/media/upload/ImageUpload.js +18 -9
  80. package/dist/features/media/upload/MediaUploadList.js +2 -2
  81. package/dist/features/orders/schemas/firestore.d.ts +6 -0
  82. package/dist/features/orders/schemas/index.d.ts +10 -10
  83. package/dist/features/orders/types/index.d.ts +5 -0
  84. package/dist/features/payments/schemas/index.d.ts +4 -4
  85. package/dist/features/pre-orders/schemas/index.d.ts +8 -8
  86. package/dist/features/products/components/PrizeDrawItemsEditor.js +1 -1
  87. package/dist/features/products/components/ProductDetailActions.d.ts +16 -0
  88. package/dist/features/products/components/ProductDetailActions.js +94 -0
  89. package/dist/features/products/components/ProductDetailPageView.d.ts +16 -1
  90. package/dist/features/products/components/ProductDetailPageView.js +22 -3
  91. package/dist/features/products/components/ProductForm.js +20 -2
  92. package/dist/features/products/repository/products.repository.d.ts +3 -1
  93. package/dist/features/products/repository/products.repository.js +12 -1
  94. package/dist/features/products/schemas/firestore.d.ts +7 -0
  95. package/dist/features/products/schemas/index.d.ts +34 -34
  96. package/dist/features/products/schemas/product-features.validators.d.ts +6 -6
  97. package/dist/features/products/types/index.d.ts +6 -0
  98. package/dist/features/promotions/schemas/index.d.ts +14 -14
  99. package/dist/features/reviews/schemas/index.d.ts +18 -18
  100. package/dist/features/seller/actions/offer-actions.js +10 -1
  101. package/dist/features/seller/components/PhysicalLocationModal.d.ts +12 -0
  102. package/dist/features/seller/components/PhysicalLocationModal.js +30 -0
  103. package/dist/features/seller/components/PrintCenterView.d.ts +40 -0
  104. package/dist/features/seller/components/PrintCenterView.js +6 -0
  105. package/dist/features/seller/components/SellerOrdersView.js +48 -3
  106. package/dist/features/seller/components/SellerProductShell.d.ts +1 -0
  107. package/dist/features/seller/components/SellerProductShell.js +26 -4
  108. package/dist/features/seller/components/SellerProductsView.js +54 -13
  109. package/dist/features/seller/components/SellerSidebar.js +1 -1
  110. package/dist/features/seller/components/index.d.ts +1 -0
  111. package/dist/features/seller/components/index.js +1 -0
  112. package/dist/features/seller/schemas/firestore.d.ts +2 -0
  113. package/dist/features/seller/schemas/firestore.js +1 -0
  114. package/dist/features/seller/schemas/index.d.ts +22 -22
  115. package/dist/features/shell/FormShell.js +1 -1
  116. package/dist/features/shell/StepForm.d.ts +3 -1
  117. package/dist/features/shell/StepForm.js +3 -3
  118. package/dist/features/stores/schemas/index.d.ts +4 -4
  119. package/dist/index.d.ts +9 -1
  120. package/dist/index.js +6 -1
  121. package/dist/next/routing/route-map.d.ts +8 -0
  122. package/dist/next/routing/route-map.js +3 -0
  123. package/dist/tailwind-utilities.css +1 -1
  124. package/dist/ui/components/RowActionMenu.js +45 -10
  125. package/dist/ui/components/SideDrawer.style.css +2 -2
  126. package/dist/ui/forms/FieldCheckbox.d.ts +13 -0
  127. package/dist/ui/forms/FieldCheckbox.js +25 -0
  128. package/dist/ui/forms/FieldInput.d.ts +11 -0
  129. package/dist/ui/forms/FieldInput.js +25 -0
  130. package/dist/ui/forms/FieldSelect.d.ts +17 -0
  131. package/dist/ui/forms/FieldSelect.js +25 -0
  132. package/dist/ui/forms/FormShell.d.ts +48 -0
  133. package/dist/ui/forms/FormShell.js +176 -0
  134. package/dist/ui/forms/FormShell.style.css +287 -0
  135. package/dist/ui/forms/index.d.ts +8 -0
  136. package/dist/ui/forms/index.js +4 -0
  137. package/dist/ui/index.d.ts +9 -0
  138. package/dist/ui/index.js +5 -0
  139. package/dist/utils/action-response.d.ts +6 -0
  140. package/dist/utils/action-response.js +22 -0
  141. package/dist/utils/index.d.ts +1 -0
  142. package/dist/utils/index.js +1 -0
  143. package/dist/validation/schemas.d.ts +10 -10
  144. package/package.json +2 -2
@@ -23,8 +23,8 @@ export declare const beforeAfterItemSchema: z.ZodObject<{
23
23
  createdAt: z.ZodOptional<z.ZodString>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  id: string;
26
- sortOrder: number;
27
26
  title: string;
27
+ sortOrder: number;
28
28
  isActive: boolean;
29
29
  createdAt?: string | undefined;
30
30
  description?: string | undefined;
@@ -37,8 +37,8 @@ export declare const beforeAfterItemSchema: z.ZodObject<{
37
37
  id: string;
38
38
  title: string;
39
39
  createdAt?: string | undefined;
40
- sortOrder?: number | undefined;
41
40
  description?: string | undefined;
41
+ sortOrder?: number | undefined;
42
42
  isActive?: boolean | undefined;
43
43
  productId?: string | undefined;
44
44
  concern?: string | undefined;
@@ -16,13 +16,13 @@ export declare const createBlogPostSchema: z.ZodObject<{
16
16
  alt: z.ZodOptional<z.ZodString>;
17
17
  thumbnailUrl: z.ZodOptional<z.ZodString>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- type: "video" | "image" | "file";
20
19
  url: string;
20
+ type: "image" | "video" | "file";
21
21
  alt?: string | undefined;
22
22
  thumbnailUrl?: string | undefined;
23
23
  }, {
24
- type: "video" | "image" | "file";
25
24
  url: string;
25
+ type: "image" | "video" | "file";
26
26
  alt?: string | undefined;
27
27
  thumbnailUrl?: string | undefined;
28
28
  }>, z.ZodEffects<z.ZodString, {
@@ -35,13 +35,13 @@ export declare const createBlogPostSchema: z.ZodObject<{
35
35
  alt: z.ZodOptional<z.ZodString>;
36
36
  thumbnailUrl: z.ZodOptional<z.ZodString>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- type: "video" | "image" | "file";
39
38
  url: string;
39
+ type: "image" | "video" | "file";
40
40
  alt?: string | undefined;
41
41
  thumbnailUrl?: string | undefined;
42
42
  }, {
43
- type: "video" | "image" | "file";
44
43
  url: string;
44
+ type: "image" | "video" | "file";
45
45
  alt?: string | undefined;
46
46
  thumbnailUrl?: string | undefined;
47
47
  }>, "many">>>;
@@ -51,13 +51,13 @@ export declare const createBlogPostSchema: z.ZodObject<{
51
51
  alt: z.ZodOptional<z.ZodString>;
52
52
  thumbnailUrl: z.ZodOptional<z.ZodString>;
53
53
  }, "strip", z.ZodTypeAny, {
54
- type: "video" | "image" | "file";
55
54
  url: string;
55
+ type: "image" | "video" | "file";
56
56
  alt?: string | undefined;
57
57
  thumbnailUrl?: string | undefined;
58
58
  }, {
59
- type: "video" | "image" | "file";
60
59
  url: string;
60
+ type: "image" | "video" | "file";
61
61
  alt?: string | undefined;
62
62
  thumbnailUrl?: string | undefined;
63
63
  }>, "many">>>;
@@ -70,30 +70,30 @@ export declare const createBlogPostSchema: z.ZodObject<{
70
70
  metaDescription: z.ZodOptional<z.ZodString>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  status: "draft" | "published" | "archived";
73
- title: string;
74
- content: string;
75
73
  category: "news" | "tips" | "guides" | "updates" | "community";
74
+ title: string;
76
75
  slug: string;
77
76
  tags: string[];
77
+ content: string;
78
78
  isFeatured: boolean;
79
79
  excerpt: string;
80
80
  readTimeMinutes: number;
81
81
  contentImages: {
82
- type: "video" | "image" | "file";
83
82
  url: string;
83
+ type: "image" | "video" | "file";
84
84
  alt?: string | undefined;
85
85
  thumbnailUrl?: string | undefined;
86
86
  }[];
87
87
  additionalImages: {
88
- type: "video" | "image" | "file";
89
88
  url: string;
89
+ type: "image" | "video" | "file";
90
90
  alt?: string | undefined;
91
91
  thumbnailUrl?: string | undefined;
92
92
  }[];
93
93
  publishedAt?: string | undefined;
94
94
  coverImage?: {
95
- type: "video" | "image" | "file";
96
95
  url: string;
96
+ type: "image" | "video" | "file";
97
97
  alt?: string | undefined;
98
98
  thumbnailUrl?: string | undefined;
99
99
  } | {
@@ -106,18 +106,18 @@ export declare const createBlogPostSchema: z.ZodObject<{
106
106
  metaTitle?: string | undefined;
107
107
  metaDescription?: string | undefined;
108
108
  }, {
109
- title: string;
110
- content: string;
111
109
  category: "news" | "tips" | "guides" | "updates" | "community";
110
+ title: string;
112
111
  slug: string;
112
+ content: string;
113
113
  excerpt: string;
114
114
  status?: "draft" | "published" | "archived" | undefined;
115
115
  tags?: string[] | undefined;
116
116
  isFeatured?: boolean | undefined;
117
117
  publishedAt?: string | undefined;
118
118
  coverImage?: string | {
119
- type: "video" | "image" | "file";
120
119
  url: string;
120
+ type: "image" | "video" | "file";
121
121
  alt?: string | undefined;
122
122
  thumbnailUrl?: string | undefined;
123
123
  } | null | undefined;
@@ -125,14 +125,14 @@ export declare const createBlogPostSchema: z.ZodObject<{
125
125
  authorName?: string | undefined;
126
126
  readTimeMinutes?: number | undefined;
127
127
  contentImages?: {
128
- type: "video" | "image" | "file";
129
128
  url: string;
129
+ type: "image" | "video" | "file";
130
130
  alt?: string | undefined;
131
131
  thumbnailUrl?: string | undefined;
132
132
  }[] | undefined;
133
133
  additionalImages?: {
134
- type: "video" | "image" | "file";
135
134
  url: string;
135
+ type: "image" | "video" | "file";
136
136
  alt?: string | undefined;
137
137
  thumbnailUrl?: string | undefined;
138
138
  }[] | undefined;
@@ -155,13 +155,13 @@ export declare const updateBlogPostSchema: z.ZodObject<{
155
155
  alt: z.ZodOptional<z.ZodString>;
156
156
  thumbnailUrl: z.ZodOptional<z.ZodString>;
157
157
  }, "strip", z.ZodTypeAny, {
158
- type: "video" | "image" | "file";
159
158
  url: string;
159
+ type: "image" | "video" | "file";
160
160
  alt?: string | undefined;
161
161
  thumbnailUrl?: string | undefined;
162
162
  }, {
163
- type: "video" | "image" | "file";
164
163
  url: string;
164
+ type: "image" | "video" | "file";
165
165
  alt?: string | undefined;
166
166
  thumbnailUrl?: string | undefined;
167
167
  }>, z.ZodEffects<z.ZodString, {
@@ -174,13 +174,13 @@ export declare const updateBlogPostSchema: z.ZodObject<{
174
174
  alt: z.ZodOptional<z.ZodString>;
175
175
  thumbnailUrl: z.ZodOptional<z.ZodString>;
176
176
  }, "strip", z.ZodTypeAny, {
177
- type: "video" | "image" | "file";
178
177
  url: string;
178
+ type: "image" | "video" | "file";
179
179
  alt?: string | undefined;
180
180
  thumbnailUrl?: string | undefined;
181
181
  }, {
182
- type: "video" | "image" | "file";
183
182
  url: string;
183
+ type: "image" | "video" | "file";
184
184
  alt?: string | undefined;
185
185
  thumbnailUrl?: string | undefined;
186
186
  }>, "many">>>>;
@@ -190,13 +190,13 @@ export declare const updateBlogPostSchema: z.ZodObject<{
190
190
  alt: z.ZodOptional<z.ZodString>;
191
191
  thumbnailUrl: z.ZodOptional<z.ZodString>;
192
192
  }, "strip", z.ZodTypeAny, {
193
- type: "video" | "image" | "file";
194
193
  url: string;
194
+ type: "image" | "video" | "file";
195
195
  alt?: string | undefined;
196
196
  thumbnailUrl?: string | undefined;
197
197
  }, {
198
- type: "video" | "image" | "file";
199
198
  url: string;
199
+ type: "image" | "video" | "file";
200
200
  alt?: string | undefined;
201
201
  thumbnailUrl?: string | undefined;
202
202
  }>, "many">>>>;
@@ -209,16 +209,16 @@ export declare const updateBlogPostSchema: z.ZodObject<{
209
209
  metaDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
210
210
  }, "strip", z.ZodTypeAny, {
211
211
  status?: "draft" | "published" | "archived" | undefined;
212
- title?: string | undefined;
213
- content?: string | undefined;
214
212
  category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
213
+ title?: string | undefined;
215
214
  slug?: string | undefined;
216
215
  tags?: string[] | undefined;
216
+ content?: string | undefined;
217
217
  isFeatured?: boolean | undefined;
218
218
  publishedAt?: string | undefined;
219
219
  coverImage?: {
220
- type: "video" | "image" | "file";
221
220
  url: string;
221
+ type: "image" | "video" | "file";
222
222
  alt?: string | undefined;
223
223
  thumbnailUrl?: string | undefined;
224
224
  } | {
@@ -230,14 +230,14 @@ export declare const updateBlogPostSchema: z.ZodObject<{
230
230
  authorName?: string | undefined;
231
231
  readTimeMinutes?: number | undefined;
232
232
  contentImages?: {
233
- type: "video" | "image" | "file";
234
233
  url: string;
234
+ type: "image" | "video" | "file";
235
235
  alt?: string | undefined;
236
236
  thumbnailUrl?: string | undefined;
237
237
  }[] | undefined;
238
238
  additionalImages?: {
239
- type: "video" | "image" | "file";
240
239
  url: string;
240
+ type: "image" | "video" | "file";
241
241
  alt?: string | undefined;
242
242
  thumbnailUrl?: string | undefined;
243
243
  }[] | undefined;
@@ -246,16 +246,16 @@ export declare const updateBlogPostSchema: z.ZodObject<{
246
246
  metaDescription?: string | undefined;
247
247
  }, {
248
248
  status?: "draft" | "published" | "archived" | undefined;
249
- title?: string | undefined;
250
- content?: string | undefined;
251
249
  category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
250
+ title?: string | undefined;
252
251
  slug?: string | undefined;
253
252
  tags?: string[] | undefined;
253
+ content?: string | undefined;
254
254
  isFeatured?: boolean | undefined;
255
255
  publishedAt?: string | undefined;
256
256
  coverImage?: string | {
257
- type: "video" | "image" | "file";
258
257
  url: string;
258
+ type: "image" | "video" | "file";
259
259
  alt?: string | undefined;
260
260
  thumbnailUrl?: string | undefined;
261
261
  } | null | undefined;
@@ -264,14 +264,14 @@ export declare const updateBlogPostSchema: z.ZodObject<{
264
264
  authorName?: string | undefined;
265
265
  readTimeMinutes?: number | undefined;
266
266
  contentImages?: {
267
- type: "video" | "image" | "file";
268
267
  url: string;
268
+ type: "image" | "video" | "file";
269
269
  alt?: string | undefined;
270
270
  thumbnailUrl?: string | undefined;
271
271
  }[] | undefined;
272
272
  additionalImages?: {
273
- type: "video" | "image" | "file";
274
273
  url: string;
274
+ type: "image" | "video" | "file";
275
275
  alt?: string | undefined;
276
276
  thumbnailUrl?: string | undefined;
277
277
  }[] | undefined;
@@ -11,7 +11,7 @@ function renderBlogPostMetaFields(props) {
11
11
  }
12
12
  function renderBlogPostMediaFields(props) {
13
13
  const { value, update, isReadonly, labels, onUploadCover, onUploadContentImage, onUploadAdditionalImage, onAbort, coverImageUrl, contentImages, additionalImages } = props;
14
- return (_jsxs(_Fragment, { children: [_jsx(MediaUploadField, { label: labels.coverImage, value: coverImageUrl || "", onChange: (url) => update({ coverImage: url ? { url, type: "image" } : null }), onChangeField: (media) => update({ coverImage: media }), onUpload: onUploadCover, onAbort: onAbort, accept: "image/*", maxSizeMB: 10, disabled: isReadonly, helperText: labels.coverImageHelper }), _jsx(MediaUploadList, { label: labels.contentImages, value: contentImages, onChange: (media) => update({ contentImages: media }), onUpload: onUploadContentImage, onAbort: onAbort, accept: "image/*", maxItems: 10, maxSizeMB: 10, disabled: isReadonly, helperText: labels.contentImagesHelper }), _jsx(MediaUploadList, { label: labels.additionalImages, value: additionalImages, onChange: (media) => update({ additionalImages: media }), onUpload: onUploadAdditionalImage, onAbort: onAbort, accept: "image/*", maxItems: 5, maxSizeMB: 10, disabled: isReadonly, helperText: labels.additionalImagesHelper }), isReadonly && coverImageUrl && _jsx(Text, { size: "xs", variant: "secondary", children: coverImageUrl })] }));
14
+ return (_jsxs(_Fragment, { children: [_jsx(MediaUploadField, { label: labels.coverImage, value: coverImageUrl || "", onChange: (url) => update({ coverImage: url ? { url, type: "image" } : null }), onChangeField: (media) => update({ coverImage: media }), onUpload: onUploadCover, onAbort: onAbort, accept: "image/*", maxSizeMB: 10, disabled: isReadonly, helperText: labels.coverImageHelper }), _jsx(MediaUploadList, { label: labels.contentImages, value: contentImages, onChange: (media) => update({ contentImages: media }), onUpload: onUploadContentImage, onAbort: onAbort, accept: "image/*,video/*", maxItems: 10, maxSizeMB: 10, disabled: isReadonly, helperText: labels.contentImagesHelper }), _jsx(MediaUploadList, { label: labels.additionalImages, value: additionalImages, onChange: (media) => update({ additionalImages: media }), onUpload: onUploadAdditionalImage, onAbort: onAbort, accept: "image/*,video/*", maxItems: 5, maxSizeMB: 10, disabled: isReadonly, helperText: labels.additionalImagesHelper }), isReadonly && coverImageUrl && _jsx(Text, { size: "xs", variant: "secondary", children: coverImageUrl })] }));
15
15
  }
16
16
  export function BlogPostForm({ value, onChange, categoryOptions, statusOptions, labels, onUploadCover, onUploadContentImage, onUploadAdditionalImage, onAbort, isReadonly = false, renderContentField, renderContentReadonly, }) {
17
17
  const coverImageUrl = getMediaUrl(value.coverImage) ?? null;
@@ -29,38 +29,38 @@ export declare const blogPostSchema: z.ZodObject<{
29
29
  source: z.ZodOptional<z.ZodEnum<["upload", "youtube", "external"]>>;
30
30
  youtubeId: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- type: "video" | "image" | "file";
33
32
  url: string;
34
- source?: "upload" | "youtube" | "external" | undefined;
33
+ type: "image" | "video" | "file";
35
34
  alt?: string | undefined;
36
35
  thumbnailUrl?: string | undefined;
36
+ source?: "upload" | "youtube" | "external" | undefined;
37
37
  youtubeId?: string | undefined;
38
38
  }, {
39
- type: "video" | "image" | "file";
40
39
  url: string;
41
- source?: "upload" | "youtube" | "external" | undefined;
40
+ type: "image" | "video" | "file";
42
41
  alt?: string | undefined;
43
42
  thumbnailUrl?: string | undefined;
43
+ source?: "upload" | "youtube" | "external" | undefined;
44
44
  youtubeId?: string | undefined;
45
45
  }>, z.ZodEffects<z.ZodString, {
46
46
  url: string;
47
47
  type: "image";
48
48
  }, string>]>>>, {
49
- type: "video" | "image" | "file";
50
49
  url: string;
51
- source?: "upload" | "youtube" | "external" | undefined;
50
+ type: "image" | "video" | "file";
52
51
  alt?: string | undefined;
53
52
  thumbnailUrl?: string | undefined;
53
+ source?: "upload" | "youtube" | "external" | undefined;
54
54
  youtubeId?: string | undefined;
55
55
  } | {
56
56
  url: string;
57
57
  type: "image";
58
58
  } | null, string | {
59
- type: "video" | "image" | "file";
60
59
  url: string;
61
- source?: "upload" | "youtube" | "external" | undefined;
60
+ type: "image" | "video" | "file";
62
61
  alt?: string | undefined;
63
62
  thumbnailUrl?: string | undefined;
63
+ source?: "upload" | "youtube" | "external" | undefined;
64
64
  youtubeId?: string | undefined;
65
65
  } | null | undefined>;
66
66
  contentImages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -71,18 +71,18 @@ export declare const blogPostSchema: z.ZodObject<{
71
71
  source: z.ZodOptional<z.ZodEnum<["upload", "youtube", "external"]>>;
72
72
  youtubeId: z.ZodOptional<z.ZodString>;
73
73
  }, "strip", z.ZodTypeAny, {
74
- type: "video" | "image" | "file";
75
74
  url: string;
76
- source?: "upload" | "youtube" | "external" | undefined;
75
+ type: "image" | "video" | "file";
77
76
  alt?: string | undefined;
78
77
  thumbnailUrl?: string | undefined;
78
+ source?: "upload" | "youtube" | "external" | undefined;
79
79
  youtubeId?: string | undefined;
80
80
  }, {
81
- type: "video" | "image" | "file";
82
81
  url: string;
83
- source?: "upload" | "youtube" | "external" | undefined;
82
+ type: "image" | "video" | "file";
84
83
  alt?: string | undefined;
85
84
  thumbnailUrl?: string | undefined;
85
+ source?: "upload" | "youtube" | "external" | undefined;
86
86
  youtubeId?: string | undefined;
87
87
  }>, "many">>>;
88
88
  additionalImages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -93,18 +93,18 @@ export declare const blogPostSchema: z.ZodObject<{
93
93
  source: z.ZodOptional<z.ZodEnum<["upload", "youtube", "external"]>>;
94
94
  youtubeId: z.ZodOptional<z.ZodString>;
95
95
  }, "strip", z.ZodTypeAny, {
96
- type: "video" | "image" | "file";
97
96
  url: string;
98
- source?: "upload" | "youtube" | "external" | undefined;
97
+ type: "image" | "video" | "file";
99
98
  alt?: string | undefined;
100
99
  thumbnailUrl?: string | undefined;
100
+ source?: "upload" | "youtube" | "external" | undefined;
101
101
  youtubeId?: string | undefined;
102
102
  }, {
103
- type: "video" | "image" | "file";
104
103
  url: string;
105
- source?: "upload" | "youtube" | "external" | undefined;
104
+ type: "image" | "video" | "file";
106
105
  alt?: string | undefined;
107
106
  thumbnailUrl?: string | undefined;
107
+ source?: "upload" | "youtube" | "external" | undefined;
108
108
  youtubeId?: string | undefined;
109
109
  }>, "many">>>;
110
110
  category: z.ZodEnum<["news", "tips", "guides", "updates", "community"]>;
@@ -122,42 +122,42 @@ export declare const blogPostSchema: z.ZodObject<{
122
122
  createdAt: z.ZodOptional<z.ZodString>;
123
123
  updatedAt: z.ZodOptional<z.ZodString>;
124
124
  }, "strip", z.ZodTypeAny, {
125
- id: string;
126
125
  status: "draft" | "published" | "archived";
127
- title: string;
128
126
  category: "news" | "tips" | "guides" | "updates" | "community";
127
+ id: string;
128
+ title: string;
129
129
  slug: string;
130
130
  coverImage: {
131
- type: "video" | "image" | "file";
132
131
  url: string;
133
- source?: "upload" | "youtube" | "external" | undefined;
132
+ type: "image" | "video" | "file";
134
133
  alt?: string | undefined;
135
134
  thumbnailUrl?: string | undefined;
135
+ source?: "upload" | "youtube" | "external" | undefined;
136
136
  youtubeId?: string | undefined;
137
137
  } | {
138
138
  url: string;
139
139
  type: "image";
140
140
  } | null;
141
141
  contentImages: {
142
- type: "video" | "image" | "file";
143
142
  url: string;
144
- source?: "upload" | "youtube" | "external" | undefined;
143
+ type: "image" | "video" | "file";
145
144
  alt?: string | undefined;
146
145
  thumbnailUrl?: string | undefined;
146
+ source?: "upload" | "youtube" | "external" | undefined;
147
147
  youtubeId?: string | undefined;
148
148
  }[];
149
149
  additionalImages: {
150
- type: "video" | "image" | "file";
151
150
  url: string;
152
- source?: "upload" | "youtube" | "external" | undefined;
151
+ type: "image" | "video" | "file";
153
152
  alt?: string | undefined;
154
153
  thumbnailUrl?: string | undefined;
154
+ source?: "upload" | "youtube" | "external" | undefined;
155
155
  youtubeId?: string | undefined;
156
156
  }[];
157
157
  createdAt?: string | undefined;
158
+ tags?: string[] | undefined;
158
159
  updatedAt?: string | undefined;
159
160
  content?: string | undefined;
160
- tags?: string[] | undefined;
161
161
  isFeatured?: boolean | undefined;
162
162
  publishedAt?: string | undefined;
163
163
  excerpt?: string | undefined;
@@ -169,23 +169,23 @@ export declare const blogPostSchema: z.ZodObject<{
169
169
  metaTitle?: string | undefined;
170
170
  metaDescription?: string | undefined;
171
171
  }, {
172
- id: string;
173
172
  status: "draft" | "published" | "archived";
174
- title: string;
175
173
  category: "news" | "tips" | "guides" | "updates" | "community";
174
+ id: string;
175
+ title: string;
176
176
  slug: string;
177
177
  createdAt?: string | undefined;
178
+ tags?: string[] | undefined;
178
179
  updatedAt?: string | undefined;
179
180
  content?: string | undefined;
180
- tags?: string[] | undefined;
181
181
  isFeatured?: boolean | undefined;
182
182
  publishedAt?: string | undefined;
183
183
  coverImage?: string | {
184
- type: "video" | "image" | "file";
185
184
  url: string;
186
- source?: "upload" | "youtube" | "external" | undefined;
185
+ type: "image" | "video" | "file";
187
186
  alt?: string | undefined;
188
187
  thumbnailUrl?: string | undefined;
188
+ source?: "upload" | "youtube" | "external" | undefined;
189
189
  youtubeId?: string | undefined;
190
190
  } | null | undefined;
191
191
  excerpt?: string | undefined;
@@ -194,19 +194,19 @@ export declare const blogPostSchema: z.ZodObject<{
194
194
  readTimeMinutes?: number | undefined;
195
195
  views?: number | undefined;
196
196
  contentImages?: {
197
- type: "video" | "image" | "file";
198
197
  url: string;
199
- source?: "upload" | "youtube" | "external" | undefined;
198
+ type: "image" | "video" | "file";
200
199
  alt?: string | undefined;
201
200
  thumbnailUrl?: string | undefined;
201
+ source?: "upload" | "youtube" | "external" | undefined;
202
202
  youtubeId?: string | undefined;
203
203
  }[] | undefined;
204
204
  additionalImages?: {
205
- type: "video" | "image" | "file";
206
205
  url: string;
207
- source?: "upload" | "youtube" | "external" | undefined;
206
+ type: "image" | "video" | "file";
208
207
  alt?: string | undefined;
209
208
  thumbnailUrl?: string | undefined;
209
+ source?: "upload" | "youtube" | "external" | undefined;
210
210
  youtubeId?: string | undefined;
211
211
  }[] | undefined;
212
212
  authorAvatar?: string | undefined;
@@ -224,18 +224,18 @@ export declare const blogListParamsSchema: z.ZodObject<{
224
224
  featured: z.ZodOptional<z.ZodBoolean>;
225
225
  }, "strip", z.ZodTypeAny, {
226
226
  sort?: string | undefined;
227
- perPage?: number | undefined;
228
- q?: string | undefined;
229
227
  category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
230
228
  featured?: boolean | undefined;
231
229
  tags?: string | undefined;
230
+ q?: string | undefined;
232
231
  page?: number | undefined;
232
+ perPage?: number | undefined;
233
233
  }, {
234
234
  sort?: string | undefined;
235
- perPage?: number | undefined;
236
- q?: string | undefined;
237
235
  category?: "news" | "tips" | "guides" | "updates" | "community" | undefined;
238
236
  featured?: boolean | undefined;
239
237
  tags?: string | undefined;
238
+ q?: string | undefined;
240
239
  page?: number | undefined;
240
+ perPage?: number | undefined;
241
241
  }>;
@@ -118,11 +118,11 @@ export declare const categoryItemSchema: z.ZodObject<{
118
118
  slug: string;
119
119
  name: string;
120
120
  tier: number;
121
- createdAt?: string | undefined;
122
- updatedAt?: string | undefined;
123
- path?: string | undefined;
124
121
  type?: "category" | "brand" | "collection" | "concern" | undefined;
122
+ path?: string | undefined;
123
+ createdAt?: string | undefined;
125
124
  description?: string | undefined;
125
+ updatedAt?: string | undefined;
126
126
  display?: {
127
127
  icon?: string | undefined;
128
128
  showInMenu?: boolean | undefined;
@@ -151,11 +151,11 @@ export declare const categoryItemSchema: z.ZodObject<{
151
151
  slug: string;
152
152
  name: string;
153
153
  tier: number;
154
- createdAt?: string | undefined;
155
- updatedAt?: string | undefined;
156
- path?: string | undefined;
157
154
  type?: "category" | "brand" | "collection" | "concern" | undefined;
155
+ path?: string | undefined;
156
+ createdAt?: string | undefined;
158
157
  description?: string | undefined;
158
+ updatedAt?: string | undefined;
159
159
  display?: {
160
160
  icon?: string | undefined;
161
161
  showInMenu?: boolean | undefined;
@@ -189,19 +189,19 @@ export declare const categoryListParamsSchema: z.ZodObject<{
189
189
  page: z.ZodOptional<z.ZodNumber>;
190
190
  perPage: z.ZodOptional<z.ZodNumber>;
191
191
  }, "strip", z.ZodTypeAny, {
192
- perPage?: number | undefined;
193
192
  type?: "category" | "brand" | "collection" | "concern" | undefined;
194
- q?: string | undefined;
195
193
  featured?: boolean | undefined;
194
+ q?: string | undefined;
196
195
  page?: number | undefined;
196
+ perPage?: number | undefined;
197
197
  tier?: number | undefined;
198
198
  parentId?: string | undefined;
199
199
  }, {
200
- perPage?: number | undefined;
201
200
  type?: "category" | "brand" | "collection" | "concern" | undefined;
202
- q?: string | undefined;
203
201
  featured?: boolean | undefined;
202
+ q?: string | undefined;
204
203
  page?: number | undefined;
204
+ perPage?: number | undefined;
205
205
  tier?: number | undefined;
206
206
  parentId?: string | undefined;
207
207
  }>;
@@ -24,12 +24,12 @@ export declare const collectionItemSchema: z.ZodObject<{
24
24
  active: z.ZodDefault<z.ZodBoolean>;
25
25
  createdAt: z.ZodOptional<z.ZodString>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- sortOrder: number;
28
27
  title: string;
29
28
  slug: string;
29
+ sortOrder: number;
30
30
  active: boolean;
31
- createdAt?: string | undefined;
32
31
  image?: string | undefined;
32
+ createdAt?: string | undefined;
33
33
  description?: string | undefined;
34
34
  brandSlug?: string | undefined;
35
35
  subtitle?: string | undefined;
@@ -40,11 +40,11 @@ export declare const collectionItemSchema: z.ZodObject<{
40
40
  }, {
41
41
  title: string;
42
42
  slug: string;
43
- createdAt?: string | undefined;
44
- sortOrder?: number | undefined;
45
43
  image?: string | undefined;
44
+ createdAt?: string | undefined;
46
45
  description?: string | undefined;
47
46
  brandSlug?: string | undefined;
47
+ sortOrder?: number | undefined;
48
48
  active?: boolean | undefined;
49
49
  subtitle?: string | undefined;
50
50
  productCount?: number | undefined;
@@ -26,29 +26,29 @@ export declare const consultationBookingSchema: z.ZodObject<{
26
26
  adminNote: z.ZodOptional<z.ZodString>;
27
27
  createdAt: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- id: string;
30
29
  status: "pending" | "completed" | "confirmed" | "cancelled" | "no_show";
31
- email: string;
30
+ id: string;
32
31
  name: string;
33
- createdAt?: string | undefined;
34
- adminNote?: string | undefined;
32
+ email: string;
35
33
  message?: string | undefined;
36
34
  phone?: string | undefined;
35
+ createdAt?: string | undefined;
37
36
  mode?: "phone" | "online" | "in_person" | undefined;
37
+ adminNote?: string | undefined;
38
38
  userId?: string | undefined;
39
39
  concern?: string[] | undefined;
40
40
  preferredDate?: string | undefined;
41
41
  preferredTime?: string | undefined;
42
42
  }, {
43
43
  id: string;
44
- email: string;
45
44
  name: string;
46
- createdAt?: string | undefined;
45
+ email: string;
47
46
  status?: "pending" | "completed" | "confirmed" | "cancelled" | "no_show" | undefined;
48
- adminNote?: string | undefined;
49
47
  message?: string | undefined;
50
48
  phone?: string | undefined;
49
+ createdAt?: string | undefined;
51
50
  mode?: "phone" | "online" | "in_person" | undefined;
51
+ adminNote?: string | undefined;
52
52
  userId?: string | undefined;
53
53
  concern?: string[] | undefined;
54
54
  preferredDate?: string | undefined;
@@ -67,8 +67,8 @@ export declare const bookConsultationSchema: z.ZodObject<{
67
67
  mode: z.ZodOptional<z.ZodEnum<["online", "in_person", "phone"]>>;
68
68
  message: z.ZodOptional<z.ZodString>;
69
69
  }, "strip", z.ZodTypeAny, {
70
- email: string;
71
70
  name: string;
71
+ email: string;
72
72
  concern: string[];
73
73
  message?: string | undefined;
74
74
  phone?: string | undefined;
@@ -76,8 +76,8 @@ export declare const bookConsultationSchema: z.ZodObject<{
76
76
  preferredDate?: string | undefined;
77
77
  preferredTime?: string | undefined;
78
78
  }, {
79
- email: string;
80
79
  name: string;
80
+ email: string;
81
81
  concern: string[];
82
82
  message?: string | undefined;
83
83
  phone?: string | undefined;
@@ -26,15 +26,15 @@ export declare const corporateInquirySchema: z.ZodObject<{
26
26
  adminNote: z.ZodOptional<z.ZodString>;
27
27
  createdAt: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- id: string;
30
29
  status: "pending" | "contacted" | "proposal_sent" | "negotiating" | "closed_won" | "closed_lost";
30
+ id: string;
31
31
  email: string;
32
32
  companyName: string;
33
33
  contactPerson: string;
34
34
  customBranding: boolean;
35
+ phone?: string | undefined;
35
36
  createdAt?: string | undefined;
36
37
  adminNote?: string | undefined;
37
- phone?: string | undefined;
38
38
  designation?: string | undefined;
39
39
  units?: number | undefined;
40
40
  budgetPerUnit?: number | undefined;
@@ -45,10 +45,10 @@ export declare const corporateInquirySchema: z.ZodObject<{
45
45
  email: string;
46
46
  companyName: string;
47
47
  contactPerson: string;
48
- createdAt?: string | undefined;
49
48
  status?: "pending" | "contacted" | "proposal_sent" | "negotiating" | "closed_won" | "closed_lost" | undefined;
50
- adminNote?: string | undefined;
51
49
  phone?: string | undefined;
50
+ createdAt?: string | undefined;
51
+ adminNote?: string | undefined;
52
52
  designation?: string | undefined;
53
53
  units?: number | undefined;
54
54
  budgetPerUnit?: number | undefined;