@mohasinac/appkit 4.16.1 → 4.18.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/dist/client.d.ts +7 -0
- package/dist/client.js +7 -0
- package/dist/features/admin/components/AdminAdEditorView.js +4 -2
- package/dist/features/admin/components/AdminAddressEditorView.js +4 -2
- package/dist/features/admin/components/AdminEmployeeEditorView.js +3 -1
- package/dist/features/admin/components/AdminFeatureFlagsView.js +4 -2
- package/dist/features/admin/components/AdminOrderEditorView.js +4 -2
- package/dist/features/admin/components/AdminPayoutMarkPaidModal.js +18 -6
- package/dist/features/admin/components/AdminSiteView.js +4 -2
- package/dist/features/admin/components/AdminStoreEditorView.js +11 -9
- package/dist/features/admin/components/AdminUsersView.js +4 -2
- package/dist/features/admin/components/BrandQuickCreateForm.js +13 -5
- package/dist/features/admin/components/CategoryQuickCreateForm.js +13 -5
- package/dist/features/admin/schemas/admin-editor-forms.d.ts +119 -0
- package/dist/features/admin/schemas/admin-editor-forms.js +141 -0
- package/dist/features/admin/schemas/admin-ops-forms.d.ts +123 -0
- package/dist/features/admin/schemas/admin-ops-forms.js +147 -0
- package/dist/features/admin/schemas/small-forms.d.ts +54 -0
- package/dist/features/admin/schemas/small-forms.js +85 -0
- package/dist/features/auth/components/ForgotPasswordView.js +2 -1
- package/dist/features/auth/components/LoginForm.js +2 -1
- package/dist/features/auth/components/RegisterForm.js +2 -1
- package/dist/features/auth/components/ResetPasswordView.js +2 -1
- package/dist/features/consultation/components/ConsultationForm.js +3 -1
- package/dist/features/consultation/schemas/index.d.ts +4 -4
- package/dist/features/consultation/schemas/index.js +22 -5
- package/dist/features/contact/schemas/inquiry-forms.d.ts +13 -0
- package/dist/features/contact/schemas/inquiry-forms.js +34 -0
- package/dist/features/corporate/components/CorporateInquiryForm.js +3 -1
- package/dist/features/corporate/schemas/index.d.ts +4 -1
- package/dist/features/corporate/schemas/index.js +38 -8
- package/dist/features/events/components/EventRaffleEntryForm.js +3 -1
- package/dist/features/homepage/components/NewsletterBanner.js +3 -1
- package/dist/features/orders/schemas/buyer-forms.d.ts +46 -0
- package/dist/features/orders/schemas/buyer-forms.js +81 -0
- package/dist/features/products/components/MakeOfferButton.js +1 -1
- package/dist/features/scams/schemas/report-form.d.ts +63 -0
- package/dist/features/scams/schemas/report-form.js +88 -0
- package/dist/features/store-extensions/schemas/sublisting-category-form.d.ts +15 -0
- package/dist/features/store-extensions/schemas/sublisting-category-form.js +41 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* WHY: Both sub-listing-category pages (`new` and `[id]/edit`) rendered
|
|
3
|
+
* `<Form>` with no schema and guarded only on `!name.trim()`. A
|
|
4
|
+
* sub-listing category groups the same real-world collectible across
|
|
5
|
+
* grades and conditions, so its `itemCode` is the identifier buyers match
|
|
6
|
+
* against — and it was unbounded free text.
|
|
7
|
+
*
|
|
8
|
+
* WHAT: One schema for both pages.
|
|
9
|
+
*
|
|
10
|
+
* `slug`/`seo` are absent: the route derives them, and the sibling route
|
|
11
|
+
* already recomputes `seo.title`/`seo.description` on rename (verified, not
|
|
12
|
+
* assumed — it is one of the RC #39 instances that turned out already fixed).
|
|
13
|
+
*
|
|
14
|
+
* EXPORTS: sublistingCategoryFormSchema, type SublistingCategoryFormValues
|
|
15
|
+
*
|
|
16
|
+
* @tag domain:store-extensions
|
|
17
|
+
* @tag layer:schema
|
|
18
|
+
* @tag pattern:none
|
|
19
|
+
* @tag access:isomorphic
|
|
20
|
+
* @tag consumers:store/sublisting-categories pages
|
|
21
|
+
* @tag sideEffects:none
|
|
22
|
+
*/
|
|
23
|
+
import { z } from "zod";
|
|
24
|
+
import { annotate } from "../../shell/field-ui-meta";
|
|
25
|
+
export const sublistingCategoryFormSchema = z.object({
|
|
26
|
+
name: annotate(z.string().trim().min(2, "A name is required.").max(160), {
|
|
27
|
+
section: "basics", sectionLabel: "Sub-listing", sectionRequired: true,
|
|
28
|
+
quick: true, order: 1, row: "full",
|
|
29
|
+
}),
|
|
30
|
+
/*
|
|
31
|
+
* The catalogue identifier buyers match on — e.g. "108/120". Bounded and
|
|
32
|
+
* trimmed so it stays comparable; a stray space made two otherwise identical
|
|
33
|
+
* codes distinct.
|
|
34
|
+
*/
|
|
35
|
+
itemCode: annotate(z.string().trim().max(80, "Keep the item code under 80 characters.").optional(), {
|
|
36
|
+
section: "basics", quick: true, order: 2, row: "pair",
|
|
37
|
+
}),
|
|
38
|
+
description: annotate(z.string().trim().max(1000, "Keep the description under 1000 characters.").optional(), {
|
|
39
|
+
section: "basics", order: 3, row: "full", kind: "textarea",
|
|
40
|
+
}),
|
|
41
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -3284,3 +3284,10 @@ export { withRetry } from "./http/retry";
|
|
|
3284
3284
|
export { normalizeError, getErrorMessage, isApiNormalized, isAppNormalized, isFirebaseAuthNormalized, isFirebaseFirestoreNormalized, isFirebaseStorageNormalized, isNativeNormalized, isNetworkNormalized, isUnknownNormalized, isZodNormalized, } from "./errors/normalize";
|
|
3285
3285
|
export type { NormalizedError, NormalizedApiError, NormalizedAppError, NormalizedFirebaseAuthError, NormalizedFirebaseFirestoreError, NormalizedFirebaseStorageError, NormalizedNativeError, NormalizedNetworkError, NormalizedUnknownThrownValue, NormalizedZodError, } from "./errors/normalize";
|
|
3286
3286
|
export { CART_LANE, CART_LANE_PRIORITY, CART_LANE_LABELS, laneOf, activeLane, laneItems, laneCounts, isLaneCheckoutable, laneBlockReason, isLockedLane, canAddNewItems, type CartLane, type LaneAssignable, } from "./_internal/shared/checkout/lanes";
|
|
3287
|
+
export { newsletterSubscribeSchema, quickCreateTaxonomySchema, payoutMarkPaidSchema, } from "./features/admin/schemas/small-forms";
|
|
3288
|
+
export { raffleEntrySchema } from "./features/contact/schemas/inquiry-forms";
|
|
3289
|
+
export { orderCancelSchema, paymentProofSchema, } from "./features/orders/schemas/buyer-forms";
|
|
3290
|
+
export { scamReportFormSchema } from "./features/scams/schemas/report-form";
|
|
3291
|
+
export { sublistingCategoryFormSchema } from "./features/store-extensions/schemas/sublisting-category-form";
|
|
3292
|
+
export { adminAddressFormSchema, adminStoreUpdateSchema, announcementBarSchema, } from "./features/admin/schemas/admin-editor-forms";
|
|
3293
|
+
export { adminOrderUpdateSchema, employeeInviteSchema, hardBanReasonSchema, featureFlagsUpdateSchema, adminAdFormSchema, } from "./features/admin/schemas/admin-ops-forms";
|
package/dist/index.js
CHANGED
|
@@ -5693,3 +5693,10 @@ export { normalizeError, getErrorMessage, isApiNormalized, isAppNormalized, isFi
|
|
|
5693
5693
|
// Checkout lanes — the derived auction > offer > standard partition of the
|
|
5694
5694
|
// cart, and the priority rule that decides which one may be checked out.
|
|
5695
5695
|
export { CART_LANE, CART_LANE_PRIORITY, CART_LANE_LABELS, laneOf, activeLane, laneItems, laneCounts, isLaneCheckoutable, laneBlockReason, isLockedLane, canAddNewItems, } from "./_internal/shared/checkout/lanes";
|
|
5696
|
+
export { newsletterSubscribeSchema, quickCreateTaxonomySchema, payoutMarkPaidSchema, } from "./features/admin/schemas/small-forms";
|
|
5697
|
+
export { raffleEntrySchema } from "./features/contact/schemas/inquiry-forms";
|
|
5698
|
+
export { orderCancelSchema, paymentProofSchema, } from "./features/orders/schemas/buyer-forms";
|
|
5699
|
+
export { scamReportFormSchema } from "./features/scams/schemas/report-form";
|
|
5700
|
+
export { sublistingCategoryFormSchema } from "./features/store-extensions/schemas/sublisting-category-form";
|
|
5701
|
+
export { adminAddressFormSchema, adminStoreUpdateSchema, announcementBarSchema, } from "./features/admin/schemas/admin-editor-forms";
|
|
5702
|
+
export { adminOrderUpdateSchema, employeeInviteSchema, hardBanReasonSchema, featureFlagsUpdateSchema, adminAdFormSchema, } from "./features/admin/schemas/admin-ops-forms";
|