payaza-storefront-layouts 1.0.1 → 1.0.5

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 (32) hide show
  1. package/README.md +21 -32
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +8 -0
  5. package/dist/json/booking-agenda.json +150 -2
  6. package/dist/json/booking.json +163 -10
  7. package/dist/json/clothing-minimal.json +181 -4
  8. package/dist/json/clothing.json +235 -23
  9. package/dist/json/electronics-grid.json +230 -2
  10. package/dist/json/electronics.json +261 -8
  11. package/dist/json/food-modern.json +159 -6
  12. package/dist/json/food.json +213 -15
  13. package/dist/json/motivational-speaker.json +270 -5
  14. package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -1
  15. package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -1
  16. package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -1
  17. package/dist/layouts/electronics/pages/CategoriesPage.js +1 -1
  18. package/dist/layouts/electronics-grid/pages/CategoriesPage.js +1 -1
  19. package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -1
  20. package/dist/layouts/food-modern/components/FoodHomePageModern.d.ts.map +1 -1
  21. package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -1
  22. package/dist/layouts/shared/components/GenericPageWrapper.js +2 -2
  23. package/dist/lib/preview-data.d.ts +52 -0
  24. package/dist/lib/preview-data.d.ts.map +1 -0
  25. package/dist/lib/preview-data.js +1927 -0
  26. package/dist/preview/LayoutPreview.d.ts +15 -0
  27. package/dist/preview/LayoutPreview.d.ts.map +1 -0
  28. package/dist/preview/LayoutPreview.js +50 -0
  29. package/dist/preview/index.d.ts +10 -0
  30. package/dist/preview/index.d.ts.map +1 -0
  31. package/dist/preview/index.js +9 -0
  32. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @payaza/storefront-layouts
1
+ # payaza-storefront-layouts
2
2
 
3
3
  A comprehensive package of shared layout components, utilities, and services for StoreFront applications. This package contains all layout components, UI components, hooks, contexts, and utility functions used across Payaza StoreFront applications.
4
4
 
@@ -17,7 +17,7 @@ This package provides a complete set of reusable layout components that are data
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
- npm install @payaza/storefront-layouts
20
+ npm install payaza-storefront-layouts
21
21
  ```
22
22
 
23
23
  Or using npm workspaces:
@@ -25,7 +25,7 @@ Or using npm workspaces:
25
25
  ```json
26
26
  {
27
27
  "dependencies": {
28
- "@payaza/storefront-layouts": "workspace:*"
28
+ "payaza-storefront-layouts": "workspace:*"
29
29
  }
30
30
  }
31
31
  ```
@@ -48,7 +48,7 @@ This package requires the following peer dependencies (must be installed in your
48
48
  ### Basic Layout Usage
49
49
 
50
50
  ```typescript
51
- import { FoodHomePage, FoodProductsPage, FoodProductDetailPage } from '@payaza/storefront-layouts';
51
+ import { FoodHomePage, FoodProductsPage, FoodProductDetailPage } from 'payaza-storefront-layouts';
52
52
 
53
53
  export default function StorePage({ storeConfig }) {
54
54
  return <FoodHomePage storeConfig={storeConfig} />;
@@ -66,7 +66,7 @@ import {
66
66
  FoodMenuPage,
67
67
  FoodAboutPage,
68
68
  FoodContactPage
69
- } from '@payaza/storefront-layouts';
69
+ } from 'payaza-storefront-layouts';
70
70
 
71
71
  // Use layout-specific pages
72
72
  <FoodProductsPage storeConfig={storeConfig} />
@@ -84,7 +84,7 @@ import {
84
84
  AccountPage,
85
85
  CartPage,
86
86
  CheckoutPage
87
- } from '@payaza/storefront-layouts';
87
+ } from 'payaza-storefront-layouts';
88
88
 
89
89
  <BaseStoreLayout storeConfig={storeConfig}>
90
90
  {/* Your content */}
@@ -98,7 +98,7 @@ import {
98
98
  CertificateCard,
99
99
  CertificateViewer,
100
100
  MentorshipProgress
101
- } from '@payaza/storefront-layouts';
101
+ } from 'payaza-storefront-layouts';
102
102
 
103
103
  <CertificateCard
104
104
  certificate={certificateData}
@@ -117,7 +117,7 @@ import {
117
117
  getThemeColor,
118
118
  isDemoStore,
119
119
  shouldUseAPI
120
- } from '@payaza/storefront-layouts';
120
+ } from 'payaza-storefront-layouts';
121
121
 
122
122
  const price = formatCurrency(1000, 'NGN'); // "₦1,000.00"
123
123
  const activeServices = filterActiveServices(services);
@@ -127,7 +127,7 @@ const bannerUrl = getBannerImage(storeConfig);
127
127
  ### Using JSON Layout Data
128
128
 
129
129
  ```typescript
130
- import { getLayoutJSON, layoutJSONMap } from '@payaza/storefront-layouts/json';
130
+ import { getLayoutJSON, layoutJSONMap } from 'payaza-storefront-layouts/json';
131
131
 
132
132
  const layoutData = getLayoutJSON('food');
133
133
  // or
@@ -279,7 +279,7 @@ import {
279
279
  getLayoutText,
280
280
  getThemeColor,
281
281
  getLogoUrl
282
- } from '@payaza/storefront-layouts';
282
+ } from 'payaza-storefront-layouts';
283
283
  ```
284
284
 
285
285
  ### Currency & Formatting
@@ -289,7 +289,7 @@ import {
289
289
  normalizePrice,
290
290
  getCurrencySymbol,
291
291
  getCurrencySymbolInfo
292
- } from '@payaza/storefront-layouts';
292
+ } from 'payaza-storefront-layouts';
293
293
  ```
294
294
 
295
295
  ### Demo Detection
@@ -298,7 +298,7 @@ import {
298
298
  isDemoStore,
299
299
  shouldUseAPI,
300
300
  getBaseStoreSlug
301
- } from '@payaza/storefront-layouts';
301
+ } from 'payaza-storefront-layouts';
302
302
  ```
303
303
 
304
304
  ### Filtering
@@ -306,7 +306,7 @@ import {
306
306
  import {
307
307
  filterActiveProducts,
308
308
  filterActiveServices
309
- } from '@payaza/storefront-layouts';
309
+ } from 'payaza-storefront-layouts';
310
310
  ```
311
311
 
312
312
  ### Store Configuration
@@ -315,7 +315,7 @@ import {
315
315
  getStoreConfigAsync,
316
316
  transformProductToStoreProduct,
317
317
  extractImageUrls
318
- } from '@payaza/storefront-layouts';
318
+ } from 'payaza-storefront-layouts';
319
319
  ```
320
320
 
321
321
  ## Services
@@ -338,7 +338,7 @@ The package includes service stubs for:
338
338
 
339
339
  ### Auth Context
340
340
  ```typescript
341
- import { AuthProvider, useAuth } from '@payaza/storefront-layouts';
341
+ import { AuthProvider, useAuth } from 'payaza-storefront-layouts';
342
342
 
343
343
  <AuthProvider>
344
344
  <YourApp />
@@ -350,34 +350,23 @@ const { user, isAuthenticated, login, logout } = useAuth();
350
350
 
351
351
  ### Store Context
352
352
  ```typescript
353
- import { StoreProvider, useStore } from '@payaza/storefront-layouts';
353
+ import { StoreProvider, useStore } from 'payaza-storefront-layouts';
354
354
 
355
355
  const { storeConfig, updateStoreConfig } = useStore();
356
356
  ```
357
357
 
358
358
  ### Loading Context
359
359
  ```typescript
360
- import { LoadingProvider, useLoading } from '@payaza/storefront-layouts';
360
+ import { LoadingProvider, useLoading } from 'payaza-storefront-layouts';
361
361
 
362
362
  const { startBackendLoading, stopBackendLoading } = useLoading();
363
363
  ```
364
364
 
365
365
  ## Hooks
366
366
 
367
- ### Payaza Checkout Hook
368
- ```typescript
369
- import { usePayazaCheckout } from '@payaza/storefront-layouts';
370
-
371
- const { checkout, isLoading } = usePayazaCheckout({
372
- publicKey: 'your-public-key',
373
- onSuccess: () => console.log('Success'),
374
- onError: (error) => console.error(error)
375
- });
376
- ```
377
-
378
367
  ### Analytics Hook
379
368
  ```typescript
380
- import { useAnalytics } from '@payaza/storefront-layouts';
369
+ import { useAnalytics } from 'payaza-storefront-layouts';
381
370
 
382
371
  const { trackEvent, trackPageView } = useAnalytics();
383
372
  ```
@@ -404,7 +393,7 @@ Add to `next.config.ts`:
404
393
 
405
394
  ```typescript
406
395
  const nextConfig = {
407
- transpilePackages: ['@payaza/storefront-layouts'],
396
+ transpilePackages: ['payaza-storefront-layouts'],
408
397
  };
409
398
  ```
410
399
 
@@ -423,7 +412,7 @@ This will:
423
412
  ## Package Structure
424
413
 
425
414
  ```
426
- @payaza/storefront-layouts/
415
+ payaza-storefront-layouts/
427
416
  ├── dist/ # Compiled output
428
417
  │ ├── layouts/ # Layout components
429
418
  │ ├── components/ # UI components
@@ -453,7 +442,7 @@ Layouts are designed to work with dynamic data:
453
442
  - ✅ **Utility Functions** - Currency formatting, asset helpers, filtering
454
443
  - ✅ **Service Stubs** - Ready-to-use service interfaces
455
444
  - ✅ **Context Providers** - Auth, Store, and Loading contexts
456
- - ✅ **Custom Hooks** - Payaza checkout, analytics, and more
445
+ - ✅ **Custom Hooks** - Analytics and more
457
446
  - ✅ **Responsive Design** - All components are mobile-responsive
458
447
  - ✅ **Accessibility** - ARIA labels and keyboard navigation support
459
448
 
package/dist/index.d.ts CHANGED
@@ -113,4 +113,10 @@ export { TermsPage } from './layouts/shared/pages/TermsPage';
113
113
  export { TrackOrderPage } from './layouts/shared/pages/TrackOrderPage';
114
114
  export { WishlistPage } from './layouts/shared/pages/WishlistPage';
115
115
  export { getLayoutJSON, layoutJSONMap } from './json/json-map';
116
+ export { ToastProvider, useToast } from './components/ui/toast';
117
+ export { StoreProvider, useStore } from './lib/store-context';
118
+ export { LoadingProvider, useLoading } from './lib/loading-context';
119
+ export { AuthProvider, useAuth } from './lib/auth-context';
120
+ export { LayoutPreview } from './preview';
121
+ export { getFoodPreviewData, getClothingPreviewData, getBookingPreviewData, getFoodModernPreviewData, getClothingMinimalPreviewData, getBookingAgendaPreviewData, getElectronicsGridPreviewData, getElectronicsPreviewData, getMotivationalSpeakerPreviewData, getPreviewDataByLayout, } from './lib/preview-data';
116
122
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,mCAAm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CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,iCAAiC,EACjC,sBAAsB,GACvB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -124,3 +124,11 @@ export { TrackOrderPage } from './layouts/shared/pages/TrackOrderPage';
124
124
  export { WishlistPage } from './layouts/shared/pages/WishlistPage';
125
125
  // JSON utilities
126
126
  export { getLayoutJSON, layoutJSONMap } from './json/json-map';
127
+ // Context Providers and Hooks
128
+ export { ToastProvider, useToast } from './components/ui/toast';
129
+ export { StoreProvider, useStore } from './lib/store-context';
130
+ export { LoadingProvider, useLoading } from './lib/loading-context';
131
+ export { AuthProvider, useAuth } from './lib/auth-context';
132
+ // Preview Components and Data
133
+ export { LayoutPreview } from './preview';
134
+ export { getFoodPreviewData, getClothingPreviewData, getBookingPreviewData, getFoodModernPreviewData, getClothingMinimalPreviewData, getBookingAgendaPreviewData, getElectronicsGridPreviewData, getElectronicsPreviewData, getMotivationalSpeakerPreviewData, getPreviewDataByLayout, } from './lib/preview-data';
@@ -1,10 +1,37 @@
1
1
  {
2
+ "version": "1.0.0",
3
+ "generatedAt": "2025-01-05",
4
+ "metadata": {
5
+ "layoutId": "booking-agenda",
6
+ "name": "Booking Agenda Layout",
7
+ "description": "Agenda-based booking layout with calendar view",
8
+ "totalPages": 7
9
+ },
2
10
  "home": {
3
11
  "content": [
4
12
  {
5
13
  "type": "DateScroller",
6
14
  "props": {
7
- "id": "DateScroller-2"
15
+ "id": "DateScroller-2",
16
+ "title": "Select Date",
17
+ "showNavigation": true,
18
+ "showTodayButton": true
19
+ }
20
+ },
21
+ {
22
+ "type": "TimeSlotGrid",
23
+ "props": {
24
+ "id": "TimeSlotGrid-1",
25
+ "title": "Available Time Slots",
26
+ "showServiceFilter": true
27
+ }
28
+ },
29
+ {
30
+ "type": "ServiceQuickView",
31
+ "props": {
32
+ "id": "ServiceQuickView-3",
33
+ "title": "Services",
34
+ "showViewAll": true
8
35
  }
9
36
  }
10
37
  ],
@@ -14,5 +41,126 @@
14
41
  "pageId": "home"
15
42
  }
16
43
  }
44
+ },
45
+ "services": {
46
+ "content": [
47
+ {
48
+ "type": "ServicesHeader",
49
+ "props": {
50
+ "id": "ServicesHeader-0",
51
+ "title": "Our Services"
52
+ }
53
+ },
54
+ {
55
+ "type": "ServicesGrid",
56
+ "props": {
57
+ "id": "ServicesGrid-1"
58
+ }
59
+ }
60
+ ],
61
+ "root": {
62
+ "props": {
63
+ "title": "Services Listing",
64
+ "pageId": "services"
65
+ }
66
+ }
67
+ },
68
+ "serviceDetail": {
69
+ "content": [
70
+ {
71
+ "type": "ServiceDetail",
72
+ "props": {
73
+ "id": "ServiceDetail-0"
74
+ }
75
+ }
76
+ ],
77
+ "root": {
78
+ "props": {
79
+ "title": "Service Detail",
80
+ "pageId": "serviceDetail"
81
+ }
82
+ }
83
+ },
84
+ "book": {
85
+ "content": [
86
+ {
87
+ "type": "BookingAgendaForm",
88
+ "props": {
89
+ "id": "BookingAgendaForm-0",
90
+ "showCalendar": true,
91
+ "showTimeSlots": true
92
+ }
93
+ }
94
+ ],
95
+ "root": {
96
+ "props": {
97
+ "title": "Booking/Appointment",
98
+ "pageId": "book"
99
+ }
100
+ }
101
+ },
102
+ "categories": {
103
+ "content": [
104
+ {
105
+ "type": "CategoryGrid",
106
+ "props": {
107
+ "id": "CategoryGrid-0"
108
+ }
109
+ }
110
+ ],
111
+ "root": {
112
+ "props": {
113
+ "title": "Categories Listing",
114
+ "pageId": "categories"
115
+ }
116
+ }
117
+ },
118
+ "categoryDetail": {
119
+ "content": [
120
+ {
121
+ "type": "CategoryDetail",
122
+ "props": {
123
+ "id": "CategoryDetail-0"
124
+ }
125
+ }
126
+ ],
127
+ "root": {
128
+ "props": {
129
+ "title": "Category Detail",
130
+ "pageId": "categoryDetail"
131
+ }
132
+ }
133
+ },
134
+ "about": {
135
+ "content": [
136
+ {
137
+ "type": "AboutPage",
138
+ "props": {
139
+ "id": "AboutPage-0"
140
+ }
141
+ }
142
+ ],
143
+ "root": {
144
+ "props": {
145
+ "title": "About Page",
146
+ "pageId": "about"
147
+ }
148
+ }
149
+ },
150
+ "contact": {
151
+ "content": [
152
+ {
153
+ "type": "ContactPage",
154
+ "props": {
155
+ "id": "ContactPage-0"
156
+ }
157
+ }
158
+ ],
159
+ "root": {
160
+ "props": {
161
+ "title": "Contact Page",
162
+ "pageId": "contact"
163
+ }
164
+ }
17
165
  }
18
- }
166
+ }
@@ -1,36 +1,65 @@
1
1
  {
2
+ "version": "1.0.0",
3
+ "generatedAt": "2025-01-05",
4
+ "metadata": {
5
+ "layoutId": "booking",
6
+ "name": "Booking Layout",
7
+ "description": "Service booking and appointment scheduling layout",
8
+ "totalPages": 7
9
+ },
2
10
  "home": {
3
11
  "content": [
4
12
  {
5
13
  "type": "BookingHero",
6
14
  "props": {
7
15
  "id": "BookingHero-0",
8
- "title": "",
9
- "subtitle": ""
16
+ "title": "Book Your Appointment",
17
+ "subtitle": "Schedule a service with our specialists",
18
+ "showCTA": true,
19
+ "primaryButton": {
20
+ "text": "Book Now",
21
+ "link": "/book"
22
+ },
23
+ "secondaryButton": {
24
+ "text": "View Services",
25
+ "link": "/services"
26
+ }
10
27
  }
11
28
  },
12
29
  {
13
30
  "type": "FeaturedServices",
14
31
  "props": {
15
- "id": "FeaturedServices-1"
32
+ "id": "FeaturedServices-1",
33
+ "title": "Our Services",
34
+ "showViewAll": true,
35
+ "limit": 6
16
36
  }
17
37
  },
18
38
  {
19
39
  "type": "SpecialistProfiles",
20
40
  "props": {
21
- "id": "SpecialistProfiles-2"
41
+ "id": "SpecialistProfiles-2",
42
+ "title": "Meet Our Specialists",
43
+ "showViewAll": true,
44
+ "showRatings": true
22
45
  }
23
46
  },
24
47
  {
25
48
  "type": "Testimonials",
26
49
  "props": {
27
- "id": "Testimonials-3"
50
+ "id": "Testimonials-3",
51
+ "title": "What Our Clients Say",
52
+ "showRatings": true,
53
+ "limit": 3
28
54
  }
29
55
  },
30
56
  {
31
57
  "type": "BookingCTA",
32
58
  "props": {
33
- "id": "BookingCTA-4"
59
+ "id": "BookingCTA-4",
60
+ "title": "Ready to Book?",
61
+ "buttonText": "Schedule Appointment",
62
+ "buttonLink": "/book"
34
63
  }
35
64
  }
36
65
  ],
@@ -42,7 +71,25 @@
42
71
  }
43
72
  },
44
73
  "services": {
45
- "content": [],
74
+ "content": [
75
+ {
76
+ "type": "ServicesHeader",
77
+ "props": {
78
+ "id": "ServicesHeader-0",
79
+ "title": "Our Services",
80
+ "showFilters": true,
81
+ "showSearch": true
82
+ }
83
+ },
84
+ {
85
+ "type": "ServicesGrid",
86
+ "props": {
87
+ "id": "ServicesGrid-1",
88
+ "showPagination": true,
89
+ "showBookButton": true
90
+ }
91
+ }
92
+ ],
46
93
  "root": {
47
94
  "props": {
48
95
  "title": "Services Listing",
@@ -51,7 +98,19 @@
51
98
  }
52
99
  },
53
100
  "serviceDetail": {
54
- "content": [],
101
+ "content": [
102
+ {
103
+ "type": "ServiceDetail",
104
+ "props": {
105
+ "id": "ServiceDetail-0",
106
+ "showBookButton": true,
107
+ "showDescription": true,
108
+ "showDuration": true,
109
+ "showPrice": true,
110
+ "showSpecialists": true
111
+ }
112
+ }
113
+ ],
55
114
  "root": {
56
115
  "props": {
57
116
  "title": "Service Detail",
@@ -60,12 +119,106 @@
60
119
  }
61
120
  },
62
121
  "book": {
63
- "content": [],
122
+ "content": [
123
+ {
124
+ "type": "BookingHeader",
125
+ "props": {
126
+ "id": "BookingHeader-0",
127
+ "title": "Book Appointment",
128
+ "showSteps": true
129
+ }
130
+ },
131
+ {
132
+ "type": "BookingForm",
133
+ "props": {
134
+ "id": "BookingForm-1",
135
+ "showServiceSelection": true,
136
+ "showDatePicker": true,
137
+ "showTimeSlot": true,
138
+ "showSpecialistSelection": true
139
+ }
140
+ }
141
+ ],
64
142
  "root": {
65
143
  "props": {
66
144
  "title": "Booking/Appointment",
67
145
  "pageId": "book"
68
146
  }
69
147
  }
148
+ },
149
+ "categories": {
150
+ "content": [
151
+ {
152
+ "type": "CategoriesHeader",
153
+ "props": {
154
+ "id": "CategoriesHeader-0",
155
+ "title": "Service Categories"
156
+ }
157
+ },
158
+ {
159
+ "type": "CategoryGrid",
160
+ "props": {
161
+ "id": "CategoryGrid-1",
162
+ "showServices": true
163
+ }
164
+ }
165
+ ],
166
+ "root": {
167
+ "props": {
168
+ "title": "Categories Listing",
169
+ "pageId": "categories"
170
+ }
171
+ }
172
+ },
173
+ "categoryDetail": {
174
+ "content": [
175
+ {
176
+ "type": "CategoryDetail",
177
+ "props": {
178
+ "id": "CategoryDetail-0",
179
+ "showServices": true
180
+ }
181
+ }
182
+ ],
183
+ "root": {
184
+ "props": {
185
+ "title": "Category Detail",
186
+ "pageId": "categoryDetail"
187
+ }
188
+ }
189
+ },
190
+ "about": {
191
+ "content": [
192
+ {
193
+ "type": "AboutPage",
194
+ "props": {
195
+ "id": "AboutPage-0",
196
+ "title": "About Us"
197
+ }
198
+ }
199
+ ],
200
+ "root": {
201
+ "props": {
202
+ "title": "About Page",
203
+ "pageId": "about"
204
+ }
205
+ }
206
+ },
207
+ "contact": {
208
+ "content": [
209
+ {
210
+ "type": "ContactPage",
211
+ "props": {
212
+ "id": "ContactPage-0",
213
+ "title": "Contact Us"
214
+ }
215
+ }
216
+ ],
217
+ "root": {
218
+ "props": {
219
+ "title": "Contact Page",
220
+ "pageId": "contact"
221
+ }
222
+ }
70
223
  }
71
- }
224
+ }