@mohasinac/appkit 4.56.0 → 4.58.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/.build-stamp.json +4 -4
- package/dist/_internal/server/features/beys/data.d.ts +44 -0
- package/dist/_internal/server/features/beys/data.js +107 -0
- package/dist/_internal/server/features/beys/og.d.ts +42 -0
- package/dist/_internal/server/features/beys/og.js +89 -0
- package/dist/_internal/server/features/checkout/actions.d.ts +31 -0
- package/dist/_internal/server/features/checkout/actions.js +117 -5
- package/dist/_internal/server/features/orders/actions.d.ts +30 -0
- package/dist/_internal/server/features/orders/actions.js +103 -0
- package/dist/_internal/server/features/orders/adapters.js +7 -0
- package/dist/_internal/server/features/parts/data.js +3 -2
- package/dist/_internal/shared/actions/action-registry.d.ts +1 -1
- package/dist/_internal/shared/actions/action-registry.js +139 -0
- package/dist/_internal/shared/shipping/quote.js +5 -6
- package/dist/client.d.ts +23 -0
- package/dist/client.js +3 -0
- package/dist/constants/api-endpoints.d.ts +12 -0
- package/dist/constants/api-endpoints.js +10 -0
- package/dist/constants/field-names.d.ts +46 -0
- package/dist/constants/field-names.js +46 -0
- package/dist/features/about/components/PublicProfileView.js +2 -1
- package/dist/features/account/components/UserOrdersView.js +25 -3
- package/dist/features/admin/components/AdminBeysView.d.ts +27 -0
- package/dist/features/admin/components/AdminBeysView.js +178 -0
- package/dist/features/admin/components/AdminPartsView.d.ts +27 -0
- package/dist/features/admin/components/AdminPartsView.js +160 -0
- package/dist/features/admin/components/OwnerQuickActions.d.ts +19 -2
- package/dist/features/admin/components/OwnerQuickActions.js +83 -8
- package/dist/features/admin/components/RecordOwnerQuickActions.d.ts +31 -0
- package/dist/features/admin/components/RecordOwnerQuickActions.js +128 -0
- package/dist/features/admin/components/ReferenceRecordEditor.d.ts +45 -0
- package/dist/features/admin/components/ReferenceRecordEditor.js +153 -0
- package/dist/features/admin/schemas/firestore.d.ts +1 -1
- package/dist/features/auctions/components/MarketplaceAuctionCard.js +15 -2
- package/dist/features/auth/permissions/constants.d.ts +1 -1
- package/dist/features/auth/permissions/constants.js +12 -1
- package/dist/features/beys/components/BeyDetailPageView.d.ts +50 -0
- package/dist/features/beys/components/BeyDetailPageView.js +98 -0
- package/dist/features/beys/schemas/firestore.d.ts +417 -0
- package/dist/features/beys/schemas/firestore.js +65 -0
- package/dist/features/blog/components/BlogFeaturedCard.js +15 -2
- package/dist/features/blog/components/BlogPostView.js +2 -1
- package/dist/features/cart/components/CartPriceBreakdown.d.ts +2 -0
- package/dist/features/cart/components/CartPriceBreakdown.js +1 -1
- package/dist/features/categories/components/BrandDetailPageView.js +4 -2
- package/dist/features/categories/components/BundleDetailView.js +2 -2
- package/dist/features/categories/components/CategoryDetailPageView.js +36 -3
- package/dist/features/categories/components/CategoryGrid.js +24 -2
- package/dist/features/categories/components/FranchiseDetailPageView.js +2 -1
- package/dist/features/events/components/EventCard.js +15 -2
- package/dist/features/faq/components/FAQPageContent.js +17 -4
- package/dist/features/faq/constants/help-guides.d.ts +36 -0
- package/dist/features/faq/constants/help-guides.js +64 -0
- package/dist/features/grouped/components/GroupedListingDetailView.js +2 -3
- package/dist/features/homepage/components/CustomCardsSection.js +67 -50
- package/dist/features/homepage/components/HeroCarousel.js +3 -1
- package/dist/features/homepage/components/ShopByCategorySection.js +23 -10
- package/dist/features/homepage/lib/section-renderer.js +2 -1
- package/dist/features/homepage/schemas/index.d.ts +10 -10
- package/dist/features/orders/components/EmiInstallmentsPanel.d.ts +19 -0
- package/dist/features/orders/components/EmiInstallmentsPanel.js +57 -0
- package/dist/features/orders/components/index.d.ts +1 -0
- package/dist/features/orders/components/index.js +1 -0
- package/dist/features/orders/schemas/index.d.ts +2 -2
- package/dist/features/orders/types/index.d.ts +15 -0
- package/dist/features/parts/components/PartDetailPageView.js +5 -3
- package/dist/features/parts/components/PartsSearchBox.js +79 -4
- package/dist/features/parts/schemas/admin-edit.d.ts +81 -0
- package/dist/features/parts/schemas/admin-edit.js +89 -0
- package/dist/features/parts/schemas/firestore.d.ts +2 -1
- package/dist/features/points/repository/points.repository.js +5 -5
- package/dist/features/points/schemas/firestore.d.ts +16 -0
- package/dist/features/points/schemas/firestore.js +17 -0
- package/dist/features/pre-orders/components/MarketplacePreorderCard.js +15 -2
- package/dist/features/products/components/MarketplaceBundleCard.js +15 -2
- package/dist/features/products/components/MarketplacePrizeDrawCard.js +15 -2
- package/dist/features/products/components/ProductGrid.js +18 -2
- package/dist/features/products/schemas/firestore.d.ts +18 -0
- package/dist/features/reviews/components/ReviewDetailPageView.js +3 -2
- package/dist/features/seller/components/CategoryInlineSelect.d.ts +10 -1
- package/dist/features/seller/components/CategoryInlineSelect.js +53 -5
- package/dist/features/seller/components/SellerProductShell.d.ts +39 -0
- package/dist/features/seller/components/SellerProductShell.js +31 -3
- package/dist/features/stores/components/StoreHeader.js +3 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +13 -0
- package/dist/next/routing/route-map.d.ts +17 -1
- package/dist/next/routing/route-map.js +39 -0
- package/dist/schemas/registry.d.ts +8 -8
- package/dist/seed/_helpers/category-models/chunk0.d.ts +2 -0
- package/dist/seed/_helpers/category-models/chunk0.js +2648 -0
- package/dist/seed/_helpers/category-models/chunk1.d.ts +2 -0
- package/dist/seed/_helpers/category-models/chunk1.js +2318 -0
- package/dist/seed/_helpers/category-models/chunk2.d.ts +2 -0
- package/dist/seed/_helpers/category-models/chunk2.js +2560 -0
- package/dist/seed/_helpers/category-models/chunk3.d.ts +2 -0
- package/dist/seed/_helpers/category-models/chunk3.js +2196 -0
- package/dist/seed/_helpers/category-models/chunk4.d.ts +2 -0
- package/dist/seed/_helpers/category-models/chunk4.js +1732 -0
- package/dist/seed/_helpers/category-models.d.ts +9 -2
- package/dist/seed/_helpers/category-models.js +19 -1368
- package/dist/seed/_helpers/category-parts-glossary-map.js +38 -38
- package/dist/seed/_helpers/category-parts.js +39 -39
- package/dist/seed/bey-products-seed-data.d.ts +18 -0
- package/dist/seed/bey-products-seed-data.js +18011 -0
- package/dist/seed/beys/chunk0.d.ts +17 -0
- package/dist/seed/beys/chunk0.js +36733 -0
- package/dist/seed/beys/chunk1.d.ts +17 -0
- package/dist/seed/beys/chunk1.js +35728 -0
- package/dist/seed/beys/chunk2.d.ts +17 -0
- package/dist/seed/beys/chunk2.js +35857 -0
- package/dist/seed/beys/chunk3.d.ts +17 -0
- package/dist/seed/beys/chunk3.js +34476 -0
- package/dist/seed/beys-seed-data.d.ts +18 -0
- package/dist/seed/beys-seed-data.js +11 -0
- package/dist/seed/homepage-sections-seed-data.js +16 -0
- package/dist/seed/index.d.ts +2 -0
- package/dist/seed/index.js +3 -0
- package/dist/seed/media-assets-seed-data.js +4 -4
- package/dist/seed/products-catalogue/chunk0.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk0.js +7262 -0
- package/dist/seed/products-catalogue/chunk1.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk1.js +7290 -0
- package/dist/seed/products-catalogue/chunk10.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk10.js +7290 -0
- package/dist/seed/products-catalogue/chunk11.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk11.js +7005 -0
- package/dist/seed/products-catalogue/chunk12.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk12.js +7002 -0
- package/dist/seed/products-catalogue/chunk13.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk13.js +7002 -0
- package/dist/seed/products-catalogue/chunk14.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk14.js +7002 -0
- package/dist/seed/products-catalogue/chunk15.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk15.js +7002 -0
- package/dist/seed/products-catalogue/chunk16.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk16.js +7002 -0
- package/dist/seed/products-catalogue/chunk17.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk17.js +7002 -0
- package/dist/seed/products-catalogue/chunk18.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk18.js +4398 -0
- package/dist/seed/products-catalogue/chunk2.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk2.js +7268 -0
- package/dist/seed/products-catalogue/chunk3.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk3.js +7264 -0
- package/dist/seed/products-catalogue/chunk4.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk4.js +7268 -0
- package/dist/seed/products-catalogue/chunk5.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk5.js +7258 -0
- package/dist/seed/products-catalogue/chunk6.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk6.js +7268 -0
- package/dist/seed/products-catalogue/chunk7.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk7.js +7311 -0
- package/dist/seed/products-catalogue/chunk8.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk8.js +7304 -0
- package/dist/seed/products-catalogue/chunk9.d.ts +12 -0
- package/dist/seed/products-catalogue/chunk9.js +7309 -0
- package/dist/seed/products-catalogue-seed-data.d.ts +2 -22
- package/dist/seed/products-catalogue-seed-data.js +58 -86382
- package/dist/seed/seed-purpose.js +9 -0
- package/dist/server.d.ts +5 -1
- package/dist/server.js +19 -0
- package/dist/styles.css +468 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/PosterCard.d.ts +99 -0
- package/dist/ui/components/PosterCard.js +109 -0
- package/dist/ui/components/PosterCard.style.css +466 -0
- package/dist/ui/components/index.style.css +1 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +2 -0
- package/package.json +1 -1
- package/scripts/seed-cli.mjs +108 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED by scripts/generate-beys-seed.mjs — do not edit by hand.
|
|
3
|
+
*
|
|
4
|
+
* The bey database, keyed by slug — 1988 rows.
|
|
5
|
+
*
|
|
6
|
+
* 🛑 The FACTS are extracted from a CC-BY-SA corpus and every row carries its
|
|
7
|
+
* own `sourceUrl` for attribution. The prose in `seoDescription` is ours,
|
|
8
|
+
* composed from those facts; no source sentence is reproduced.
|
|
9
|
+
*
|
|
10
|
+
* @tag domain:beys
|
|
11
|
+
* @tag layer:seed
|
|
12
|
+
* @tag pattern:generated
|
|
13
|
+
* @tag access:server-only
|
|
14
|
+
* @tag sideEffects:none
|
|
15
|
+
*/
|
|
16
|
+
import type { BeyDocument } from "../features/beys/schemas/firestore";
|
|
17
|
+
export declare const beysSeedData: Partial<BeyDocument>[];
|
|
18
|
+
export declare const BEY_SEED_COUNT = 1988;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { beyChunk0 } from "./beys/chunk0.js";
|
|
2
|
+
import { beyChunk1 } from "./beys/chunk1.js";
|
|
3
|
+
import { beyChunk2 } from "./beys/chunk2.js";
|
|
4
|
+
import { beyChunk3 } from "./beys/chunk3.js";
|
|
5
|
+
export const beysSeedData = [
|
|
6
|
+
...beyChunk0,
|
|
7
|
+
...beyChunk1,
|
|
8
|
+
...beyChunk2,
|
|
9
|
+
...beyChunk3,
|
|
10
|
+
];
|
|
11
|
+
export const BEY_SEED_COUNT = 1988;
|
|
@@ -744,6 +744,14 @@ export const homepageSectionsSeedData = [
|
|
|
744
744
|
*
|
|
745
745
|
* No prices anywhere, which is what makes this safe where a price-band tile
|
|
746
746
|
* is not — see the note below the array.
|
|
747
|
+
*
|
|
748
|
+
* 🛑 Each card's `image` is the SAME `/media/<shortId>` the generation
|
|
749
|
+
* CATEGORY carries, not a second asset. `CustomCardsSection` renders a card
|
|
750
|
+
* with artwork as a poster — the image fills it and a scrim carries the type
|
|
751
|
+
* — so the four cards here and the four `promo-grid` banners below and the
|
|
752
|
+
* four category tiles are one set of four objects, uploaded once. Minting a
|
|
753
|
+
* parallel `matrix-*` shortId would be a mirror that drifts the first time
|
|
754
|
+
* one of them is re-fetched (Root Cause #42).
|
|
747
755
|
*/
|
|
748
756
|
{
|
|
749
757
|
id: "section-systems-matrix",
|
|
@@ -759,6 +767,8 @@ export const homepageSectionsSeedData = [
|
|
|
759
767
|
cards: [
|
|
760
768
|
{
|
|
761
769
|
id: "matrix-original",
|
|
770
|
+
image: "/media/category-beyblade-original-image",
|
|
771
|
+
imageAlt: "",
|
|
762
772
|
eyebrow: "1999–2003",
|
|
763
773
|
title: "Beyblade Original",
|
|
764
774
|
body: "Four part systems in four years, and they do not interchange. Plastic Generation through Heavy Metal System.",
|
|
@@ -774,6 +784,8 @@ export const homepageSectionsSeedData = [
|
|
|
774
784
|
},
|
|
775
785
|
{
|
|
776
786
|
id: "matrix-metal",
|
|
787
|
+
image: "/media/category-beyblade-metal-image",
|
|
788
|
+
imageAlt: "",
|
|
777
789
|
eyebrow: "2008–2013",
|
|
778
790
|
title: "Metal Fight",
|
|
779
791
|
body: "The tuning era, and the only generation where loose parts outnumber complete tops.",
|
|
@@ -789,6 +801,8 @@ export const homepageSectionsSeedData = [
|
|
|
789
801
|
},
|
|
790
802
|
{
|
|
791
803
|
id: "matrix-burst",
|
|
804
|
+
image: "/media/category-beyblade-burst-image",
|
|
805
|
+
imageAlt: "",
|
|
792
806
|
eyebrow: "2015–2023",
|
|
793
807
|
title: "Beyblade Burst",
|
|
794
808
|
body: "Seven waves of the bursting mechanic, from single-layer Classic to Burst Ultimate.",
|
|
@@ -805,6 +819,8 @@ export const homepageSectionsSeedData = [
|
|
|
805
819
|
},
|
|
806
820
|
{
|
|
807
821
|
id: "matrix-x",
|
|
822
|
+
image: "/media/category-beyblade-x-image",
|
|
823
|
+
imageAlt: "",
|
|
808
824
|
eyebrow: "2023–",
|
|
809
825
|
title: "Beyblade X",
|
|
810
826
|
body: "The Xtreme Line rail is the centre of the design — blades, ratchets and bits, and a stadium that is part of the game.",
|
package/dist/seed/index.d.ts
CHANGED
|
@@ -95,4 +95,6 @@ export { assertPiiRoundTrip, seedForTest } from "./test-utils";
|
|
|
95
95
|
export type { TestSeedHandles } from "./test-utils";
|
|
96
96
|
export { type SeedPurpose, type SeedPurposeFields, type WithSeedPurpose, SEED_PURPOSE_VALUES, ALL_SEED_PURPOSES, SEED_COLLECTION_PURPOSE, SEED_TEST_TTL_DAYS, isSeedPurpose, resolveSeedPurpose, seedPurposeFields, stampSeedPurpose, asSeedPurpose, } from "./seed-purpose";
|
|
97
97
|
export { partGlossarySeedData } from "./part-glossary-seed-data";
|
|
98
|
+
export { beysSeedData, BEY_SEED_COUNT } from "./beys-seed-data";
|
|
99
|
+
export { beyProductsSeedData, BEY_PRODUCT_SEED_COUNT } from "./bey-products-seed-data";
|
|
98
100
|
export { modelCompositionSeedData } from "./model-composition-seed-data";
|
package/dist/seed/index.js
CHANGED
|
@@ -109,4 +109,7 @@ export { assertPiiRoundTrip, seedForTest } from "./test-utils.js";
|
|
|
109
109
|
export { SEED_PURPOSE_VALUES, ALL_SEED_PURPOSES, SEED_COLLECTION_PURPOSE, SEED_TEST_TTL_DAYS, isSeedPurpose, resolveSeedPurpose, seedPurposeFields, stampSeedPurpose, asSeedPurpose, } from "./seed-purpose.js";
|
|
110
110
|
// E4/D12 — generated from `docs/research/part-composition-2026-10/`.
|
|
111
111
|
export { partGlossarySeedData } from "./part-glossary-seed-data.js";
|
|
112
|
+
// The BEY database and its products — generated by scripts/generate-beys-seed.mjs.
|
|
113
|
+
export { beysSeedData, BEY_SEED_COUNT } from "./beys-seed-data.js";
|
|
114
|
+
export { beyProductsSeedData, BEY_PRODUCT_SEED_COUNT } from "./bey-products-seed-data.js";
|
|
112
115
|
export { modelCompositionSeedData } from "./model-composition-seed-data.js";
|
|
@@ -5274,7 +5274,7 @@ export const mediaAssetsSeedData = [
|
|
|
5274
5274
|
storagePath: "media/categories/category-beyblade-burst-image.webp",
|
|
5275
5275
|
uploadedBy: "user-admin-letitrip",
|
|
5276
5276
|
contentType: "image/webp",
|
|
5277
|
-
size:
|
|
5277
|
+
size: 58388,
|
|
5278
5278
|
isPublic: true,
|
|
5279
5279
|
status: "finalized",
|
|
5280
5280
|
contextType: "category-image",
|
|
@@ -5284,7 +5284,7 @@ export const mediaAssetsSeedData = [
|
|
|
5284
5284
|
storagePath: "media/categories/category-beyblade-metal-image.webp",
|
|
5285
5285
|
uploadedBy: "user-admin-letitrip",
|
|
5286
5286
|
contentType: "image/webp",
|
|
5287
|
-
size:
|
|
5287
|
+
size: 47242,
|
|
5288
5288
|
isPublic: true,
|
|
5289
5289
|
status: "finalized",
|
|
5290
5290
|
contextType: "category-image",
|
|
@@ -5294,7 +5294,7 @@ export const mediaAssetsSeedData = [
|
|
|
5294
5294
|
storagePath: "media/categories/category-beyblade-original-image.webp",
|
|
5295
5295
|
uploadedBy: "user-admin-letitrip",
|
|
5296
5296
|
contentType: "image/webp",
|
|
5297
|
-
size:
|
|
5297
|
+
size: 52176,
|
|
5298
5298
|
isPublic: true,
|
|
5299
5299
|
status: "finalized",
|
|
5300
5300
|
contextType: "category-image",
|
|
@@ -5304,7 +5304,7 @@ export const mediaAssetsSeedData = [
|
|
|
5304
5304
|
storagePath: "media/categories/category-beyblade-x-image.webp",
|
|
5305
5305
|
uploadedBy: "user-admin-letitrip",
|
|
5306
5306
|
contentType: "image/webp",
|
|
5307
|
-
size:
|
|
5307
|
+
size: 53356,
|
|
5308
5308
|
isPublic: true,
|
|
5309
5309
|
status: "finalized",
|
|
5310
5310
|
contextType: "category-image",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED by scripts/gen-catalogue-listings.mjs — do not edit by hand.
|
|
3
|
+
*
|
|
4
|
+
* Catalogue listings 1–250 of 4657.
|
|
5
|
+
*
|
|
6
|
+
* 🛑 A SEPARATE FILE, not one of several consts in a shared module: TS2590's
|
|
7
|
+
* union budget is per FILE (CLAUDE.md trap #1), so splitting consts inside one
|
|
8
|
+
* module passes a warm `tsc` and still fails a cold one. See the generator's
|
|
9
|
+
* emit section for the full reasoning.
|
|
10
|
+
*/
|
|
11
|
+
import type { ProductDocument } from "../../features/products/schemas/firestore";
|
|
12
|
+
export declare const catalogueChunk0: Partial<ProductDocument>[];
|