@mohasinac/appkit 3.5.2 → 3.5.3
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/features/homepage/components/CustomCardsSection.js +1 -1
- package/dist/features/homepage/components/SectionCarousel.js +1 -1
- package/dist/seed/addresses-seed-data.js +8 -99
- package/dist/seed/categories-seed-data.js +103 -2082
- package/dist/seed/homepage-sections-seed-data.js +9 -9
- package/dist/seed/products-art-seed-data.d.ts +1 -10
- package/dist/seed/products-art-seed-data.js +13 -122
- package/dist/seed/products-auctions-seed-data.js +39 -747
- package/dist/seed/products-classifieds-seed-data.d.ts +1 -9
- package/dist/seed/products-classifieds-seed-data.js +13 -195
- package/dist/seed/products-digital-codes-seed-data.d.ts +1 -9
- package/dist/seed/products-digital-codes-seed-data.js +13 -202
- package/dist/seed/products-live-items-seed-data.d.ts +1 -12
- package/dist/seed/products-live-items-seed-data.js +13 -188
- package/dist/seed/products-preorders-seed-data.js +18 -149
- package/dist/seed/products-prize-draws-seed-data.d.ts +1 -16
- package/dist/seed/products-prize-draws-seed-data.js +13 -385
- package/dist/seed/products-standard-seed-data.js +152 -1331
- package/dist/seed/products-stickers-seed-data.d.ts +1 -10
- package/dist/seed/products-stickers-seed-data.js +13 -122
- package/dist/seed/site-settings-seed-data.js +106 -108
- package/dist/seed/store-addresses-seed-data.js +14 -46
- package/dist/seed/stores-seed-data.js +13 -205
- package/dist/styles.css +19 -18
- package/dist/tailwind-utilities.css +1 -1
- package/dist/ui/components/BulkActionBar.style.css +4 -4
- package/dist/ui/components/Button.style.css +14 -13
- package/dist/ui/components/HorizontalScroller.js +18 -10
- package/dist/ui/components/ListingToolbar.js +4 -4
- package/package.json +1 -1
|
@@ -64,7 +64,7 @@ export function CustomCardsSection(config) {
|
|
|
64
64
|
}
|
|
65
65
|
// Row layout: horizontal scroller
|
|
66
66
|
if (layout === "row") {
|
|
67
|
-
return (_jsx(Section, { padding: "y-3xl", surface: "muted", children: _jsxs(Div, { className: CLS_CONTAINER, children: [_jsx(SectionHeader, { title: title }), _jsx(HorizontalScroller, { gap: 16, showArrows: true, snapToItems: true, loop: true,
|
|
67
|
+
return (_jsx(Section, { padding: "y-3xl", surface: "muted", children: _jsxs(Div, { className: CLS_CONTAINER, children: [_jsx(SectionHeader, { title: title }), _jsx(HorizontalScroller, { gap: 16, showArrows: true, snapToItems: true, loop: true, items: cards, keyExtractor: (card) => card.id, renderItem: (card) => (_jsx(Div, { className: "w-72 flex-shrink-0", children: _jsx(CardItem, { card: card }) })) })] }) }));
|
|
68
68
|
}
|
|
69
69
|
// Masonry layout: CSS columns
|
|
70
70
|
if (layout === "masonry") {
|
|
@@ -41,5 +41,5 @@ export function SectionCarousel({ title, description, headingVariant = "editoria
|
|
|
41
41
|
headingClass,
|
|
42
42
|
]
|
|
43
43
|
.filter(Boolean)
|
|
44
|
-
.join(" "), children: title }), headingVariant === "editorial" && (_jsxs(Row, { align: "center", justify: "center", gap: "sm", textSize: "xs", color: "faint", className: "mt-1 select-none", "aria-hidden": "true", children: [_jsx(Span, { className: "h-px w-6 bg-current" }), _jsx(Span, { size: "xs", children: "\u2736" }), _jsx(Span, { className: "h-px w-6 bg-current" })] })), description && (_jsx(Text, { className: `${descVariant} mt-2`, size: "base", children: description }))] }), isLoading ? (_jsx(CarouselSkeleton, { count: skeletonCount })) : (_jsx(HorizontalScroller, { items: items, renderItem: renderItem, perView: perView, gap: gap, autoScroll: autoScroll, autoScrollInterval: autoScrollInterval, loop:
|
|
44
|
+
.join(" "), children: title }), headingVariant === "editorial" && (_jsxs(Row, { align: "center", justify: "center", gap: "sm", textSize: "xs", color: "faint", className: "mt-1 select-none", "aria-hidden": "true", children: [_jsx(Span, { className: "h-px w-6 bg-current" }), _jsx(Span, { size: "xs", children: "\u2736" }), _jsx(Span, { className: "h-px w-6 bg-current" })] })), description && (_jsx(Text, { className: `${descVariant} mt-2`, size: "base", children: description }))] }), isLoading ? (_jsx(CarouselSkeleton, { count: skeletonCount })) : (_jsx(HorizontalScroller, { items: items, renderItem: renderItem, perView: perView, gap: gap, autoScroll: autoScroll, autoScrollInterval: autoScrollInterval, loop: true, keyExtractor: keyExtractor, rows: rows, minItemWidth: minItemWidth, showArrows: true, snapToItems: true, showFadeEdges: true, showScrollbar: false, pauseOnHover: true })), viewMoreHref && !isLoading && (_jsx(Row, { className: "mt-6", justify: "start", children: _jsx(TextLink, { rounded: "lg", paddingX: "xl", paddingY: "sm", href: viewMoreHref, className: `inline-flex items-[center] gap-[0.375rem] border transition-colors ${useLightText ? "border-white/40 text-white hover:bg-[rgba(255,255,255,0.1)]" : "border-[var(--appkit-color-border)] text-[var(--appkit-color-text-muted)] hover:bg-[var(--appkit-color-surface-elevated)]"}`, size: "sm", weight: "medium", children: viewMoreLabel }) }))] })] }));
|
|
45
45
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* WHY: Seeds
|
|
3
|
-
*
|
|
2
|
+
* WHY: Seeds a minimal set of buyer delivery addresses for the demo catalog. Store pickup
|
|
3
|
+
* addresses live entirely in store-addresses-seed-data.ts (merged in at the API route
|
|
4
|
+
* level) — this file only carries ownerType:"user" entries now, to avoid seeding two
|
|
5
|
+
* overlapping sources of store address data.
|
|
6
|
+
* WHAT: Exports 3 user addresses. Top-level collection (SB-UNI-A) with ownerType discriminator.
|
|
7
|
+
* PII encrypted via HMAC blind indices (emailIndex, phoneIndex). Composite indexes
|
|
8
|
+
* (ownerType, ownerId, createdAt desc) + (ownerType, ownerId, isDefault).
|
|
4
9
|
*
|
|
5
10
|
* EXPORTS:
|
|
6
|
-
* addressesSeedData — Array of
|
|
11
|
+
* addressesSeedData — Array of 3 user address documents
|
|
7
12
|
*
|
|
8
13
|
* @tag domain:addresses,shipping
|
|
9
14
|
* @tag layer:seed
|
|
@@ -15,9 +20,6 @@
|
|
|
15
20
|
const NOW = new Date();
|
|
16
21
|
const daysAgo = (n) => new Date(NOW.getTime() - n * 86400000);
|
|
17
22
|
const _rawAddressesSeedData = [
|
|
18
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
19
|
-
// User Addresses — Buyer delivery addresses
|
|
20
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
21
23
|
// Yugi Muto — Home
|
|
22
24
|
{
|
|
23
25
|
id: "addr-yugi-home",
|
|
@@ -36,24 +38,6 @@ const _rawAddressesSeedData = [
|
|
|
36
38
|
createdAt: daysAgo(180),
|
|
37
39
|
updatedAt: daysAgo(1),
|
|
38
40
|
},
|
|
39
|
-
// Yugi Muto — Grandpa's Card Shop
|
|
40
|
-
{
|
|
41
|
-
id: "addr-yugi-shop",
|
|
42
|
-
ownerType: "user",
|
|
43
|
-
ownerId: "user-yugi-muto",
|
|
44
|
-
label: "Grandpa's Card Shop",
|
|
45
|
-
fullName: "Yugi Muto",
|
|
46
|
-
phone: "+91-99999-10002",
|
|
47
|
-
addressLine1: "45 Trading Card Plaza",
|
|
48
|
-
addressLine2: "Domino City Center",
|
|
49
|
-
city: "Domino City",
|
|
50
|
-
state: "Tokyo",
|
|
51
|
-
postalCode: "110-0002",
|
|
52
|
-
country: "Japan",
|
|
53
|
-
isDefault: false,
|
|
54
|
-
createdAt: daysAgo(150),
|
|
55
|
-
updatedAt: daysAgo(30),
|
|
56
|
-
},
|
|
57
41
|
// Seto Kaiba — Kaiba Mansion
|
|
58
42
|
{
|
|
59
43
|
id: "addr-kaiba-mansion",
|
|
@@ -72,24 +56,6 @@ const _rawAddressesSeedData = [
|
|
|
72
56
|
createdAt: daysAgo(200),
|
|
73
57
|
updatedAt: daysAgo(10),
|
|
74
58
|
},
|
|
75
|
-
// Seto Kaiba — Kaiba Land Office
|
|
76
|
-
{
|
|
77
|
-
id: "addr-kaiba-land",
|
|
78
|
-
ownerType: "user",
|
|
79
|
-
ownerId: "user-seto-kaiba",
|
|
80
|
-
label: "Kaiba Land",
|
|
81
|
-
fullName: "Seto Kaiba",
|
|
82
|
-
phone: "+91-99999-20002",
|
|
83
|
-
addressLine1: "500 Kaiba Land Boulevard",
|
|
84
|
-
addressLine2: "Tokyo Tower District",
|
|
85
|
-
city: "Tokyo",
|
|
86
|
-
state: "Tokyo",
|
|
87
|
-
postalCode: "105-0001",
|
|
88
|
-
country: "Japan",
|
|
89
|
-
isDefault: false,
|
|
90
|
-
createdAt: daysAgo(180),
|
|
91
|
-
updatedAt: daysAgo(20),
|
|
92
|
-
},
|
|
93
59
|
// Admin (LetItRip) — HQ
|
|
94
60
|
{
|
|
95
61
|
id: "addr-letitrip-hq",
|
|
@@ -108,62 +74,5 @@ const _rawAddressesSeedData = [
|
|
|
108
74
|
createdAt: daysAgo(365),
|
|
109
75
|
updatedAt: daysAgo(5),
|
|
110
76
|
},
|
|
111
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
112
|
-
// Store Addresses — Pickup / fulfillment locations
|
|
113
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
114
|
-
// Kaiba Corp Card Vault — HQ (fulfillment)
|
|
115
|
-
{
|
|
116
|
-
id: "addr-kaiba-corp-hq",
|
|
117
|
-
ownerType: "store",
|
|
118
|
-
ownerId: "store-kaiba-corp-cards",
|
|
119
|
-
label: "Kaiba Corp HQ",
|
|
120
|
-
fullName: "Kaiba Corp Card Vault",
|
|
121
|
-
phone: "+91-99999-40001",
|
|
122
|
-
addressLine1: "2000 Kaiba Corp Tower",
|
|
123
|
-
addressLine2: "Domino Business District",
|
|
124
|
-
city: "Domino City",
|
|
125
|
-
state: "Tokyo",
|
|
126
|
-
postalCode: "110-0030",
|
|
127
|
-
country: "Japan",
|
|
128
|
-
isDefault: true,
|
|
129
|
-
createdAt: daysAgo(360),
|
|
130
|
-
updatedAt: daysAgo(2),
|
|
131
|
-
},
|
|
132
|
-
// Kaiba Corp Card Vault — Warehouse (backup fulfillment)
|
|
133
|
-
{
|
|
134
|
-
id: "addr-kaiba-corp-warehouse",
|
|
135
|
-
ownerType: "store",
|
|
136
|
-
ownerId: "store-kaiba-corp-cards",
|
|
137
|
-
label: "Kaiba Land Warehouse",
|
|
138
|
-
fullName: "Kaiba Land Fulfillment Center",
|
|
139
|
-
phone: "+91-99999-40002",
|
|
140
|
-
addressLine1: "300 Kaiba Land Logistics",
|
|
141
|
-
addressLine2: "Tokyo Harbor Zone",
|
|
142
|
-
city: "Tokyo",
|
|
143
|
-
state: "Tokyo",
|
|
144
|
-
postalCode: "135-0064",
|
|
145
|
-
country: "Japan",
|
|
146
|
-
isDefault: false,
|
|
147
|
-
createdAt: daysAgo(300),
|
|
148
|
-
updatedAt: daysAgo(15),
|
|
149
|
-
},
|
|
150
|
-
// LetItRip Official — Fulfillment
|
|
151
|
-
{
|
|
152
|
-
id: "addr-letitrip-fulfillment",
|
|
153
|
-
ownerType: "store",
|
|
154
|
-
ownerId: "store-letitrip-official",
|
|
155
|
-
label: "LetItRip Fulfillment",
|
|
156
|
-
fullName: "LetItRip Fulfillment Center",
|
|
157
|
-
phone: "+91-99999-50001",
|
|
158
|
-
addressLine1: "200 Logistics Lane",
|
|
159
|
-
addressLine2: "Mumbai Warehouse District",
|
|
160
|
-
city: "Mumbai",
|
|
161
|
-
state: "Maharashtra",
|
|
162
|
-
postalCode: "400086",
|
|
163
|
-
country: "India",
|
|
164
|
-
isDefault: true,
|
|
165
|
-
createdAt: daysAgo(365),
|
|
166
|
-
updatedAt: daysAgo(1),
|
|
167
|
-
},
|
|
168
77
|
];
|
|
169
78
|
export const addressesSeedData = _rawAddressesSeedData;
|