@uptrademedia/site-kit 1.0.1 → 1.0.4

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 (159) hide show
  1. package/dist/SetupWizard-Cki06kB0.d.mts +12 -0
  2. package/dist/SetupWizard-Cki06kB0.d.ts +12 -0
  3. package/dist/analytics/index.d.mts +87 -0
  4. package/dist/analytics/index.d.ts +87 -0
  5. package/dist/blog/index.d.mts +24 -0
  6. package/dist/blog/index.d.ts +24 -0
  7. package/dist/blog/index.js.map +1 -1
  8. package/dist/blog/index.mjs.map +1 -1
  9. package/dist/chunk-2IHTEKHU.mjs +332 -0
  10. package/dist/chunk-2IHTEKHU.mjs.map +1 -0
  11. package/dist/chunk-5R4R3WDP.js +1451 -0
  12. package/dist/chunk-5R4R3WDP.js.map +1 -0
  13. package/dist/{chunk-RV7H3I6J.js → chunk-ADHVEFWD.js} +68 -2
  14. package/dist/chunk-ADHVEFWD.js.map +1 -0
  15. package/dist/chunk-BGJLOJ7T.mjs +605 -0
  16. package/dist/chunk-BGJLOJ7T.mjs.map +1 -0
  17. package/dist/chunk-BZBJVG5Y.js +88 -0
  18. package/dist/chunk-BZBJVG5Y.js.map +1 -0
  19. package/dist/{chunk-COI6GOX2.mjs → chunk-DOHML47I.mjs} +3 -3
  20. package/dist/chunk-DOHML47I.mjs.map +1 -0
  21. package/dist/chunk-DRFTRTKV.js +809 -0
  22. package/dist/chunk-DRFTRTKV.js.map +1 -0
  23. package/dist/chunk-EL5QTAA3.mjs +805 -0
  24. package/dist/chunk-EL5QTAA3.mjs.map +1 -0
  25. package/dist/chunk-GAJLEDRD.js +334 -0
  26. package/dist/chunk-GAJLEDRD.js.map +1 -0
  27. package/dist/{chunk-3MUOUXHV.js → chunk-K2HWVOEO.js} +3 -3
  28. package/dist/chunk-K2HWVOEO.js.map +1 -0
  29. package/dist/chunk-O2OHHBUD.js +997 -0
  30. package/dist/chunk-O2OHHBUD.js.map +1 -0
  31. package/dist/chunk-QAYJV4KK.js +608 -0
  32. package/dist/chunk-QAYJV4KK.js.map +1 -0
  33. package/dist/{chunk-FEBYQGY4 2.mjs → chunk-SMUFNQLM.mjs} +67 -3
  34. package/dist/chunk-SMUFNQLM.mjs.map +1 -0
  35. package/dist/chunk-VDMZZL2O.mjs +83 -0
  36. package/dist/chunk-VDMZZL2O.mjs.map +1 -0
  37. package/dist/chunk-XFRPT5ZX.mjs +1449 -0
  38. package/dist/chunk-XFRPT5ZX.mjs.map +1 -0
  39. package/dist/chunk-XQJX252G.mjs +981 -0
  40. package/dist/chunk-XQJX252G.mjs.map +1 -0
  41. package/dist/commerce/index.d.mts +168 -0
  42. package/dist/commerce/index.d.ts +168 -0
  43. package/dist/commerce/index.js +38 -38
  44. package/dist/commerce/index.mjs +1 -1
  45. package/dist/commerce/server.d.mts +98 -0
  46. package/dist/commerce/server.d.ts +98 -0
  47. package/dist/engage/index.d.mts +27 -0
  48. package/dist/engage/index.d.ts +27 -0
  49. package/dist/engage/index.js +7 -40
  50. package/dist/engage/index.js.map +1 -1
  51. package/dist/engage/index.mjs +1 -41
  52. package/dist/engage/index.mjs.map +1 -1
  53. package/dist/forms/index.d.mts +437 -0
  54. package/dist/forms/index.d.ts +437 -0
  55. package/dist/forms/index.js +13 -5
  56. package/dist/forms/index.js.map +1 -1
  57. package/dist/forms/index.mjs +2 -2
  58. package/dist/forms/index.mjs.map +1 -1
  59. package/dist/{generators-7Y5ABRYV 2.mjs → generators-TO2FKJR6.mjs} +134 -3
  60. package/dist/generators-TO2FKJR6.mjs.map +1 -0
  61. package/dist/{generators-GWIYCA5M.js → generators-YZWIGHCO.js} +135 -2
  62. package/dist/generators-YZWIGHCO.js.map +1 -0
  63. package/dist/images/index.d.mts +133 -0
  64. package/dist/images/index.d.ts +133 -0
  65. package/dist/images/index.js +41 -0
  66. package/dist/images/index.js.map +1 -0
  67. package/dist/images/index.mjs +8 -0
  68. package/dist/images/index.mjs.map +1 -0
  69. package/dist/index.d.mts +649 -0
  70. package/dist/index.d.ts +649 -0
  71. package/dist/index.js +1355 -104
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.mjs +1242 -76
  74. package/dist/index.mjs.map +1 -1
  75. package/dist/redirects/index.d.mts +72 -0
  76. package/dist/redirects/index.d.ts +72 -0
  77. package/dist/redirects/index.js +25 -0
  78. package/dist/redirects/index.js.map +1 -0
  79. package/dist/redirects/index.mjs +4 -0
  80. package/dist/redirects/index.mjs.map +1 -0
  81. package/dist/routing-BWjUF7lp.d.ts +105 -0
  82. package/dist/routing-CgmRi9tD.d.mts +105 -0
  83. package/dist/{scanner-MF7P3CDE 2.mjs → scanner-AZV5I6US.mjs} +123 -4
  84. package/dist/scanner-AZV5I6US.mjs.map +1 -0
  85. package/dist/{scanner-NT6YG4TD 2.js → scanner-ETJAMIT7.js} +124 -3
  86. package/dist/scanner-ETJAMIT7.js.map +1 -0
  87. package/dist/seo/index.d.mts +273 -0
  88. package/dist/seo/index.d.ts +273 -0
  89. package/dist/seo/server.d.mts +89 -0
  90. package/dist/seo/server.d.ts +89 -0
  91. package/dist/setup/client.d.mts +60 -0
  92. package/dist/setup/client.d.ts +60 -0
  93. package/dist/setup/client.js +30 -0
  94. package/dist/setup/client.js.map +1 -0
  95. package/dist/setup/client.mjs +5 -0
  96. package/dist/setup/client.mjs.map +1 -0
  97. package/dist/setup/index.d.mts +5 -0
  98. package/dist/setup/index.d.ts +5 -0
  99. package/dist/setup/index.js +28 -1043
  100. package/dist/setup/index.js.map +1 -1
  101. package/dist/setup/index.mjs +3 -1043
  102. package/dist/setup/index.mjs.map +1 -1
  103. package/dist/setup/server.d.mts +14 -0
  104. package/dist/setup/server.d.ts +14 -0
  105. package/dist/setup/server.js +13 -0
  106. package/dist/setup/server.js.map +1 -0
  107. package/dist/setup/server.mjs +4 -0
  108. package/dist/setup/server.mjs.map +1 -0
  109. package/dist/sitemap/index.d.mts +78 -0
  110. package/dist/sitemap/index.d.ts +78 -0
  111. package/dist/types-BDojCvvL.d.mts +156 -0
  112. package/dist/types-BDojCvvL.d.ts +156 -0
  113. package/dist/types-BmzutFwy.d.mts +227 -0
  114. package/dist/types-BmzutFwy.d.ts +227 -0
  115. package/dist/types-C0pJGfbH.d.mts +155 -0
  116. package/dist/types-C0pJGfbH.d.ts +155 -0
  117. package/dist/types-DA_Kocle.d.mts +127 -0
  118. package/dist/types-DA_Kocle.d.ts +127 -0
  119. package/dist/types-lFLKKn0G.d.mts +163 -0
  120. package/dist/types-lFLKKn0G.d.ts +163 -0
  121. package/dist/types-nB206tPK.d.mts +309 -0
  122. package/dist/types-nB206tPK.d.ts +309 -0
  123. package/dist/useEventModal-6U1pF3_g.d.mts +209 -0
  124. package/dist/useEventModal-BA8g-1-P.d.ts +209 -0
  125. package/package.json +21 -1
  126. package/dist/chunk-3MUOUXHV.js.map +0 -1
  127. package/dist/chunk-4HVYXYQL 2.mjs +0 -255
  128. package/dist/chunk-4HVYXYQL.mjs +0 -255
  129. package/dist/chunk-4HVYXYQL.mjs.map +0 -1
  130. package/dist/chunk-COI6GOX2.mjs.map +0 -1
  131. package/dist/chunk-EQCVQC35.js 2.map +0 -1
  132. package/dist/chunk-FEBYQGY4.mjs +0 -251
  133. package/dist/chunk-FEBYQGY4.mjs.map +0 -1
  134. package/dist/chunk-NYKRE2FL 2.mjs +0 -31
  135. package/dist/chunk-NYKRE2FL.mjs 2.map +0 -1
  136. package/dist/chunk-RV7H3I6J.js 2.map +0 -1
  137. package/dist/chunk-RV7H3I6J.js.map +0 -1
  138. package/dist/chunk-TUKGA3UK.js +0 -257
  139. package/dist/chunk-TUKGA3UK.js 2.map +0 -1
  140. package/dist/chunk-TUKGA3UK.js.map +0 -1
  141. package/dist/generators-7Y5ABRYV.mjs +0 -161
  142. package/dist/generators-7Y5ABRYV.mjs 2.map +0 -1
  143. package/dist/generators-7Y5ABRYV.mjs.map +0 -1
  144. package/dist/generators-GWIYCA5M.js 2.map +0 -1
  145. package/dist/generators-GWIYCA5M.js.map +0 -1
  146. package/dist/index 2.mjs +0 -74
  147. package/dist/index.js 2.map +0 -1
  148. package/dist/migrator-V6KS75EA 2.mjs +0 -265
  149. package/dist/migrator-V6KS75EA.mjs 2.map +0 -1
  150. package/dist/migrator-XKM7YQCY.js 2.map +0 -1
  151. package/dist/scanner-MF7P3CDE.mjs +0 -14386
  152. package/dist/scanner-MF7P3CDE.mjs 2.map +0 -1
  153. package/dist/scanner-MF7P3CDE.mjs.map +0 -1
  154. package/dist/scanner-NT6YG4TD.js +0 -14397
  155. package/dist/scanner-NT6YG4TD.js 2.map +0 -1
  156. package/dist/scanner-NT6YG4TD.js.map +0 -1
  157. package/dist/web-vitals-BH55V7EJ.js 2.map +0 -1
  158. package/dist/web-vitals-RJYPWAR3 2.mjs +0 -241
  159. package/dist/web-vitals-RJYPWAR3.mjs 2.map +0 -1
@@ -1,157 +1,157 @@
1
1
  'use strict';
2
2
 
3
- var chunk3MUOUXHV_js = require('../chunk-3MUOUXHV.js');
3
+ var chunkK2HWVOEO_js = require('../chunk-K2HWVOEO.js');
4
4
  require('../chunk-EQCVQC35.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "CalendarView", {
9
9
  enumerable: true,
10
- get: function () { return chunk3MUOUXHV_js.CalendarView; }
10
+ get: function () { return chunkK2HWVOEO_js.CalendarView; }
11
11
  });
12
12
  Object.defineProperty(exports, "CheckoutForm", {
13
13
  enumerable: true,
14
- get: function () { return chunk3MUOUXHV_js.CheckoutForm; }
14
+ get: function () { return chunkK2HWVOEO_js.CheckoutForm; }
15
15
  });
16
16
  Object.defineProperty(exports, "EventCalendar", {
17
17
  enumerable: true,
18
- get: function () { return chunk3MUOUXHV_js.EventCalendar; }
18
+ get: function () { return chunkK2HWVOEO_js.EventCalendar; }
19
19
  });
20
20
  Object.defineProperty(exports, "EventEmbed", {
21
21
  enumerable: true,
22
- get: function () { return chunk3MUOUXHV_js.EventEmbed; }
22
+ get: function () { return chunkK2HWVOEO_js.EventEmbed; }
23
23
  });
24
24
  Object.defineProperty(exports, "EventModal", {
25
25
  enumerable: true,
26
- get: function () { return chunk3MUOUXHV_js.EventModal; }
26
+ get: function () { return chunkK2HWVOEO_js.EventModal; }
27
27
  });
28
28
  Object.defineProperty(exports, "EventTile", {
29
29
  enumerable: true,
30
- get: function () { return chunk3MUOUXHV_js.EventTile; }
30
+ get: function () { return chunkK2HWVOEO_js.EventTile; }
31
31
  });
32
32
  Object.defineProperty(exports, "EventsWidget", {
33
33
  enumerable: true,
34
- get: function () { return chunk3MUOUXHV_js.EventsWidget; }
34
+ get: function () { return chunkK2HWVOEO_js.EventsWidget; }
35
35
  });
36
36
  Object.defineProperty(exports, "OfferingCard", {
37
37
  enumerable: true,
38
- get: function () { return chunk3MUOUXHV_js.OfferingCard; }
38
+ get: function () { return chunkK2HWVOEO_js.OfferingCard; }
39
39
  });
40
40
  Object.defineProperty(exports, "OfferingList", {
41
41
  enumerable: true,
42
- get: function () { return chunk3MUOUXHV_js.OfferingList; }
42
+ get: function () { return chunkK2HWVOEO_js.OfferingList; }
43
43
  });
44
44
  Object.defineProperty(exports, "ProductDetail", {
45
45
  enumerable: true,
46
- get: function () { return chunk3MUOUXHV_js.ProductDetail; }
46
+ get: function () { return chunkK2HWVOEO_js.ProductDetail; }
47
47
  });
48
48
  Object.defineProperty(exports, "ProductEmbed", {
49
49
  enumerable: true,
50
- get: function () { return chunk3MUOUXHV_js.ProductEmbed; }
50
+ get: function () { return chunkK2HWVOEO_js.ProductEmbed; }
51
51
  });
52
52
  Object.defineProperty(exports, "ProductGrid", {
53
53
  enumerable: true,
54
- get: function () { return chunk3MUOUXHV_js.ProductGrid; }
54
+ get: function () { return chunkK2HWVOEO_js.ProductGrid; }
55
55
  });
56
56
  Object.defineProperty(exports, "ProductPage", {
57
57
  enumerable: true,
58
- get: function () { return chunk3MUOUXHV_js.ProductPage; }
58
+ get: function () { return chunkK2HWVOEO_js.ProductPage; }
59
59
  });
60
60
  Object.defineProperty(exports, "RegistrationForm", {
61
61
  enumerable: true,
62
- get: function () { return chunk3MUOUXHV_js.RegistrationForm; }
62
+ get: function () { return chunkK2HWVOEO_js.RegistrationForm; }
63
63
  });
64
64
  Object.defineProperty(exports, "UpcomingEvents", {
65
65
  enumerable: true,
66
- get: function () { return chunk3MUOUXHV_js.UpcomingEvents; }
66
+ get: function () { return chunkK2HWVOEO_js.UpcomingEvents; }
67
67
  });
68
68
  Object.defineProperty(exports, "createCheckoutSession", {
69
69
  enumerable: true,
70
- get: function () { return chunk3MUOUXHV_js.createCheckoutSession; }
70
+ get: function () { return chunkK2HWVOEO_js.createCheckoutSession; }
71
71
  });
72
72
  Object.defineProperty(exports, "fetchCategories", {
73
73
  enumerable: true,
74
- get: function () { return chunk3MUOUXHV_js.fetchCategories; }
74
+ get: function () { return chunkK2HWVOEO_js.fetchCategories; }
75
75
  });
76
76
  Object.defineProperty(exports, "fetchLatestOffering", {
77
77
  enumerable: true,
78
- get: function () { return chunk3MUOUXHV_js.fetchLatestOffering; }
78
+ get: function () { return chunkK2HWVOEO_js.fetchLatestOffering; }
79
79
  });
80
80
  Object.defineProperty(exports, "fetchNextEvent", {
81
81
  enumerable: true,
82
- get: function () { return chunk3MUOUXHV_js.fetchNextEvent; }
82
+ get: function () { return chunkK2HWVOEO_js.fetchNextEvent; }
83
83
  });
84
84
  Object.defineProperty(exports, "fetchOffering", {
85
85
  enumerable: true,
86
- get: function () { return chunk3MUOUXHV_js.fetchOffering; }
86
+ get: function () { return chunkK2HWVOEO_js.fetchOffering; }
87
87
  });
88
88
  Object.defineProperty(exports, "fetchOfferings", {
89
89
  enumerable: true,
90
- get: function () { return chunk3MUOUXHV_js.fetchOfferings; }
90
+ get: function () { return chunkK2HWVOEO_js.fetchOfferings; }
91
91
  });
92
92
  Object.defineProperty(exports, "fetchProductBySlug", {
93
93
  enumerable: true,
94
- get: function () { return chunk3MUOUXHV_js.fetchProductBySlug; }
94
+ get: function () { return chunkK2HWVOEO_js.fetchProductBySlug; }
95
95
  });
96
96
  Object.defineProperty(exports, "fetchProducts", {
97
97
  enumerable: true,
98
- get: function () { return chunk3MUOUXHV_js.fetchProducts; }
98
+ get: function () { return chunkK2HWVOEO_js.fetchProducts; }
99
99
  });
100
100
  Object.defineProperty(exports, "fetchProductsPublic", {
101
101
  enumerable: true,
102
- get: function () { return chunk3MUOUXHV_js.fetchProductsPublic; }
102
+ get: function () { return chunkK2HWVOEO_js.fetchProductsPublic; }
103
103
  });
104
104
  Object.defineProperty(exports, "fetchServices", {
105
105
  enumerable: true,
106
- get: function () { return chunk3MUOUXHV_js.fetchServices; }
106
+ get: function () { return chunkK2HWVOEO_js.fetchServices; }
107
107
  });
108
108
  Object.defineProperty(exports, "fetchUpcomingEvents", {
109
109
  enumerable: true,
110
- get: function () { return chunk3MUOUXHV_js.fetchUpcomingEvents; }
110
+ get: function () { return chunkK2HWVOEO_js.fetchUpcomingEvents; }
111
111
  });
112
112
  Object.defineProperty(exports, "formatDate", {
113
113
  enumerable: true,
114
- get: function () { return chunk3MUOUXHV_js.formatDate; }
114
+ get: function () { return chunkK2HWVOEO_js.formatDate; }
115
115
  });
116
116
  Object.defineProperty(exports, "formatDateRange", {
117
117
  enumerable: true,
118
- get: function () { return chunk3MUOUXHV_js.formatDateRange; }
118
+ get: function () { return chunkK2HWVOEO_js.formatDateRange; }
119
119
  });
120
120
  Object.defineProperty(exports, "formatDateTime", {
121
121
  enumerable: true,
122
- get: function () { return chunk3MUOUXHV_js.formatDateTime; }
122
+ get: function () { return chunkK2HWVOEO_js.formatDateTime; }
123
123
  });
124
124
  Object.defineProperty(exports, "formatPrice", {
125
125
  enumerable: true,
126
- get: function () { return chunk3MUOUXHV_js.formatPrice; }
126
+ get: function () { return chunkK2HWVOEO_js.formatPrice; }
127
127
  });
128
128
  Object.defineProperty(exports, "formatTime", {
129
129
  enumerable: true,
130
- get: function () { return chunk3MUOUXHV_js.formatTime; }
130
+ get: function () { return chunkK2HWVOEO_js.formatTime; }
131
131
  });
132
132
  Object.defineProperty(exports, "getOfferingUrl", {
133
133
  enumerable: true,
134
- get: function () { return chunk3MUOUXHV_js.getOfferingUrl; }
134
+ get: function () { return chunkK2HWVOEO_js.getOfferingUrl; }
135
135
  });
136
136
  Object.defineProperty(exports, "getRelativeTimeUntil", {
137
137
  enumerable: true,
138
- get: function () { return chunk3MUOUXHV_js.getRelativeTimeUntil; }
138
+ get: function () { return chunkK2HWVOEO_js.getRelativeTimeUntil; }
139
139
  });
140
140
  Object.defineProperty(exports, "getSpotsRemaining", {
141
141
  enumerable: true,
142
- get: function () { return chunk3MUOUXHV_js.getSpotsRemaining; }
142
+ get: function () { return chunkK2HWVOEO_js.getSpotsRemaining; }
143
143
  });
144
144
  Object.defineProperty(exports, "isEventSoldOut", {
145
145
  enumerable: true,
146
- get: function () { return chunk3MUOUXHV_js.isEventSoldOut; }
146
+ get: function () { return chunkK2HWVOEO_js.isEventSoldOut; }
147
147
  });
148
148
  Object.defineProperty(exports, "registerForEvent", {
149
149
  enumerable: true,
150
- get: function () { return chunk3MUOUXHV_js.registerForEvent; }
150
+ get: function () { return chunkK2HWVOEO_js.registerForEvent; }
151
151
  });
152
152
  Object.defineProperty(exports, "useEventModal", {
153
153
  enumerable: true,
154
- get: function () { return chunk3MUOUXHV_js.useEventModal; }
154
+ get: function () { return chunkK2HWVOEO_js.useEventModal; }
155
155
  });
156
156
  //# sourceMappingURL=index.js.map
157
157
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal } from '../chunk-COI6GOX2.mjs';
1
+ export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal } from '../chunk-DOHML47I.mjs';
2
2
  import '../chunk-NYKRE2FL.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,98 @@
1
+ import { O as OfferingType, C as CommerceOffering } from '../types-nB206tPK.mjs';
2
+
3
+ /**
4
+ * @uptrade/site-kit/commerce - Server-side utilities
5
+ *
6
+ * Helpers for server-side rendering and dynamic routes.
7
+ * Use in Next.js getStaticPaths, getStaticProps, or App Router.
8
+ */
9
+
10
+ interface ServerConfig {
11
+ supabaseUrl: string;
12
+ supabaseKey: string;
13
+ projectId: string;
14
+ }
15
+ /**
16
+ * Get all product slugs for static generation
17
+ *
18
+ * @example Next.js Pages Router
19
+ * export async function getStaticPaths() {
20
+ * const paths = await getProductPaths(config)
21
+ * return { paths, fallback: 'blocking' }
22
+ * }
23
+ */
24
+ declare function getProductPaths(config: ServerConfig): Promise<{
25
+ params: {
26
+ slug: string;
27
+ };
28
+ }[]>;
29
+ /**
30
+ * Get all event slugs for static generation
31
+ */
32
+ declare function getEventPaths(config: ServerConfig): Promise<{
33
+ params: {
34
+ slug: string;
35
+ };
36
+ }[]>;
37
+ /**
38
+ * Get all offering slugs for static generation (any type)
39
+ */
40
+ declare function getOfferingPaths(config: ServerConfig, type?: OfferingType | OfferingType[]): Promise<{
41
+ params: {
42
+ slug: string;
43
+ };
44
+ }[]>;
45
+ /**
46
+ * Fetch a single offering by slug (server-side)
47
+ *
48
+ * @example Next.js Pages Router
49
+ * export async function getStaticProps({ params }) {
50
+ * const product = await getOfferingBySlug(config, params.slug)
51
+ * if (!product) return { notFound: true }
52
+ * return { props: { product }, revalidate: 60 }
53
+ * }
54
+ */
55
+ declare function getOfferingBySlug(config: ServerConfig, slug: string): Promise<CommerceOffering | null>;
56
+ /**
57
+ * Fetch all offerings of a type (server-side)
58
+ */
59
+ declare function getOfferings(config: ServerConfig, options?: {
60
+ type?: OfferingType | OfferingType[];
61
+ category?: string;
62
+ limit?: number;
63
+ status?: string;
64
+ }): Promise<CommerceOffering[]>;
65
+ /**
66
+ * Fetch upcoming events (server-side)
67
+ */
68
+ declare function getUpcomingEvents(config: ServerConfig, options?: {
69
+ limit?: number;
70
+ category?: string;
71
+ }): Promise<CommerceOffering[]>;
72
+ /**
73
+ * Get next upcoming event (server-side)
74
+ */
75
+ declare function getNextEvent(config: ServerConfig, category?: string): Promise<CommerceOffering | null>;
76
+ /**
77
+ * Generate page metadata for an offering
78
+ *
79
+ * @example Next.js App Router
80
+ * export async function generateMetadata({ params }) {
81
+ * const product = await getOfferingBySlug(config, params.slug)
82
+ * return generateOfferingMetadata(product, 'https://example.com')
83
+ * }
84
+ */
85
+ declare function generateOfferingMetadata(offering: CommerceOffering | null, siteUrl: string): {
86
+ title: string;
87
+ description: string;
88
+ openGraph: {
89
+ title: string;
90
+ description: string;
91
+ images: string[];
92
+ type: string;
93
+ url: string;
94
+ };
95
+ } | null;
96
+ declare function createServerConfig(supabaseUrl: string, supabaseKey: string, projectId: string): ServerConfig;
97
+
98
+ export { createServerConfig, generateOfferingMetadata, getEventPaths, getNextEvent, getOfferingBySlug, getOfferingPaths, getOfferings, getProductPaths, getUpcomingEvents };
@@ -0,0 +1,98 @@
1
+ import { O as OfferingType, C as CommerceOffering } from '../types-nB206tPK.js';
2
+
3
+ /**
4
+ * @uptrade/site-kit/commerce - Server-side utilities
5
+ *
6
+ * Helpers for server-side rendering and dynamic routes.
7
+ * Use in Next.js getStaticPaths, getStaticProps, or App Router.
8
+ */
9
+
10
+ interface ServerConfig {
11
+ supabaseUrl: string;
12
+ supabaseKey: string;
13
+ projectId: string;
14
+ }
15
+ /**
16
+ * Get all product slugs for static generation
17
+ *
18
+ * @example Next.js Pages Router
19
+ * export async function getStaticPaths() {
20
+ * const paths = await getProductPaths(config)
21
+ * return { paths, fallback: 'blocking' }
22
+ * }
23
+ */
24
+ declare function getProductPaths(config: ServerConfig): Promise<{
25
+ params: {
26
+ slug: string;
27
+ };
28
+ }[]>;
29
+ /**
30
+ * Get all event slugs for static generation
31
+ */
32
+ declare function getEventPaths(config: ServerConfig): Promise<{
33
+ params: {
34
+ slug: string;
35
+ };
36
+ }[]>;
37
+ /**
38
+ * Get all offering slugs for static generation (any type)
39
+ */
40
+ declare function getOfferingPaths(config: ServerConfig, type?: OfferingType | OfferingType[]): Promise<{
41
+ params: {
42
+ slug: string;
43
+ };
44
+ }[]>;
45
+ /**
46
+ * Fetch a single offering by slug (server-side)
47
+ *
48
+ * @example Next.js Pages Router
49
+ * export async function getStaticProps({ params }) {
50
+ * const product = await getOfferingBySlug(config, params.slug)
51
+ * if (!product) return { notFound: true }
52
+ * return { props: { product }, revalidate: 60 }
53
+ * }
54
+ */
55
+ declare function getOfferingBySlug(config: ServerConfig, slug: string): Promise<CommerceOffering | null>;
56
+ /**
57
+ * Fetch all offerings of a type (server-side)
58
+ */
59
+ declare function getOfferings(config: ServerConfig, options?: {
60
+ type?: OfferingType | OfferingType[];
61
+ category?: string;
62
+ limit?: number;
63
+ status?: string;
64
+ }): Promise<CommerceOffering[]>;
65
+ /**
66
+ * Fetch upcoming events (server-side)
67
+ */
68
+ declare function getUpcomingEvents(config: ServerConfig, options?: {
69
+ limit?: number;
70
+ category?: string;
71
+ }): Promise<CommerceOffering[]>;
72
+ /**
73
+ * Get next upcoming event (server-side)
74
+ */
75
+ declare function getNextEvent(config: ServerConfig, category?: string): Promise<CommerceOffering | null>;
76
+ /**
77
+ * Generate page metadata for an offering
78
+ *
79
+ * @example Next.js App Router
80
+ * export async function generateMetadata({ params }) {
81
+ * const product = await getOfferingBySlug(config, params.slug)
82
+ * return generateOfferingMetadata(product, 'https://example.com')
83
+ * }
84
+ */
85
+ declare function generateOfferingMetadata(offering: CommerceOffering | null, siteUrl: string): {
86
+ title: string;
87
+ description: string;
88
+ openGraph: {
89
+ title: string;
90
+ description: string;
91
+ images: string[];
92
+ type: string;
93
+ url: string;
94
+ };
95
+ } | null;
96
+ declare function createServerConfig(supabaseUrl: string, supabaseKey: string, projectId: string): ServerConfig;
97
+
98
+ export { createServerConfig, generateOfferingMetadata, getEventPaths, getNextEvent, getOfferingBySlug, getOfferingPaths, getOfferings, getProductPaths, getUpcomingEvents };
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { C as ChatConfig } from '../types-C0pJGfbH.mjs';
3
+ export { d as ChatConversation, c as ChatMessage, f as EngageAnalytics, e as EngageConfig, E as EngageElement, T as TargetingRules, b as TriggerConfig, a as WidgetConfig, W as WidgetType } from '../types-C0pJGfbH.mjs';
4
+
5
+ /**
6
+ * @uptrade/site-kit/engage - Engage Widget
7
+ *
8
+ * Loads and renders engagement widgets (popups, nudges, bars, chat) via Portal API
9
+ */
10
+ interface EngageWidgetProps {
11
+ apiUrl?: string;
12
+ apiKey?: string;
13
+ position?: 'bottom-right' | 'bottom-left';
14
+ zIndex?: number;
15
+ chatEnabled?: boolean;
16
+ debug?: boolean;
17
+ }
18
+ declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): react_jsx_runtime.JSX.Element;
19
+
20
+ interface ChatWidgetProps {
21
+ projectId: string;
22
+ config?: Partial<ChatConfig>;
23
+ signalApiUrl?: string;
24
+ }
25
+ declare function ChatWidget({ projectId, config, signalApiUrl }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
26
+
27
+ export { ChatConfig, ChatWidget, EngageWidget };
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { C as ChatConfig } from '../types-C0pJGfbH.js';
3
+ export { d as ChatConversation, c as ChatMessage, f as EngageAnalytics, e as EngageConfig, E as EngageElement, T as TargetingRules, b as TriggerConfig, a as WidgetConfig, W as WidgetType } from '../types-C0pJGfbH.js';
4
+
5
+ /**
6
+ * @uptrade/site-kit/engage - Engage Widget
7
+ *
8
+ * Loads and renders engagement widgets (popups, nudges, bars, chat) via Portal API
9
+ */
10
+ interface EngageWidgetProps {
11
+ apiUrl?: string;
12
+ apiKey?: string;
13
+ position?: 'bottom-right' | 'bottom-left';
14
+ zIndex?: number;
15
+ chatEnabled?: boolean;
16
+ debug?: boolean;
17
+ }
18
+ declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): react_jsx_runtime.JSX.Element;
19
+
20
+ interface ChatWidgetProps {
21
+ projectId: string;
22
+ config?: Partial<ChatConfig>;
23
+ signalApiUrl?: string;
24
+ }
25
+ declare function ChatWidget({ projectId, config, signalApiUrl }: ChatWidgetProps): react_jsx_runtime.JSX.Element;
26
+
27
+ export { ChatConfig, ChatWidget, EngageWidget };
@@ -1,50 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunkTUKGA3UK_js = require('../chunk-TUKGA3UK.js');
3
+ var chunkQAYJV4KK_js = require('../chunk-QAYJV4KK.js');
4
4
  require('../chunk-EQCVQC35.js');
5
- var jsxRuntime = require('react/jsx-runtime');
6
5
 
7
- function ChatWidget({ projectId, config }) {
8
- return /* @__PURE__ */ jsxRuntime.jsx(
9
- "div",
10
- {
11
- style: {
12
- position: "fixed",
13
- [config?.position === "bottom-left" ? "left" : "right"]: 20,
14
- bottom: 20,
15
- width: 60,
16
- height: 60,
17
- borderRadius: "50%",
18
- backgroundColor: config?.buttonColor || "#0066cc",
19
- display: "flex",
20
- alignItems: "center",
21
- justifyContent: "center",
22
- cursor: "pointer",
23
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
24
- },
25
- title: "Chat with us",
26
- children: /* @__PURE__ */ jsxRuntime.jsx(
27
- "svg",
28
- {
29
- width: "28",
30
- height: "28",
31
- viewBox: "0 0 24 24",
32
- fill: "none",
33
- stroke: "white",
34
- strokeWidth: "2",
35
- strokeLinecap: "round",
36
- strokeLinejoin: "round",
37
- children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
38
- }
39
- )
40
- }
41
- );
42
- }
43
6
 
7
+
8
+ Object.defineProperty(exports, "ChatWidget", {
9
+ enumerable: true,
10
+ get: function () { return chunkQAYJV4KK_js.ChatWidget; }
11
+ });
44
12
  Object.defineProperty(exports, "EngageWidget", {
45
13
  enumerable: true,
46
- get: function () { return chunkTUKGA3UK_js.EngageWidget; }
14
+ get: function () { return chunkQAYJV4KK_js.EngageWidget; }
47
15
  });
48
- exports.ChatWidget = ChatWidget;
49
16
  //# sourceMappingURL=index.js.map
50
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/engage/ChatWidget.tsx"],"names":["jsx"],"mappings":";;;;;;AAgBO,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,MAAA,EAAO,EAAoB;AAUjE,EAAA,uBACEA,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,QAAA,EAAU,OAAA;AAAA,QACV,CAAC,MAAA,EAAQ,QAAA,KAAa,aAAA,GAAgB,MAAA,GAAS,OAAO,GAAG,EAAA;AAAA,QACzD,MAAA,EAAQ,EAAA;AAAA,QACR,KAAA,EAAO,EAAA;AAAA,QACP,MAAA,EAAQ,EAAA;AAAA,QACR,YAAA,EAAc,KAAA;AAAA,QACd,eAAA,EAAiB,QAAQ,WAAA,IAAe,SAAA;AAAA,QACxC,OAAA,EAAS,MAAA;AAAA,QACT,UAAA,EAAY,QAAA;AAAA,QACZ,cAAA,EAAgB,QAAA;AAAA,QAChB,MAAA,EAAQ,SAAA;AAAA,QACR,SAAA,EAAW;AAAA,OACb;AAAA,MACA,KAAA,EAAM,cAAA;AAAA,MAGN,QAAA,kBAAAA,cAAA;AAAA,QAAC,KAAA;AAAA,QAAA;AAAA,UACC,KAAA,EAAM,IAAA;AAAA,UACN,MAAA,EAAO,IAAA;AAAA,UACP,OAAA,EAAQ,WAAA;AAAA,UACR,IAAA,EAAK,MAAA;AAAA,UACL,MAAA,EAAO,OAAA;AAAA,UACP,WAAA,EAAY,GAAA;AAAA,UACZ,aAAA,EAAc,OAAA;AAAA,UACd,cAAA,EAAe,OAAA;AAAA,UAEf,QAAA,kBAAAA,cAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,+DAAA,EAAgE;AAAA;AAAA;AAC1E;AAAA,GACF;AAEJ","file":"index.js","sourcesContent":["/**\n * @uptrade/site-kit/engage - Chat Widget (Placeholder)\n * \n * AI/Live chat widget - implementation TBD\n */\n\n'use client'\n\nimport React from 'react'\nimport type { ChatConfig } from './types'\n\ninterface ChatWidgetProps {\n projectId: string\n config?: Partial<ChatConfig>\n}\n\nexport function ChatWidget({ projectId, config }: ChatWidgetProps) {\n // Placeholder - full implementation will include:\n // - Chat bubble button\n // - Expandable chat window\n // - Message history\n // - AI (Echo) integration\n // - Live agent handoff\n // - Typing indicators\n // - File attachments\n \n return (\n <div\n style={{\n position: 'fixed',\n [config?.position === 'bottom-left' ? 'left' : 'right']: 20,\n bottom: 20,\n width: 60,\n height: 60,\n borderRadius: '50%',\n backgroundColor: config?.buttonColor || '#0066cc',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.2)',\n }}\n title=\"Chat with us\"\n >\n {/* Chat icon */}\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" />\n </svg>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,44 +1,4 @@
1
- export { EngageWidget } from '../chunk-4HVYXYQL.mjs';
1
+ export { ChatWidget, EngageWidget } from '../chunk-BGJLOJ7T.mjs';
2
2
  import '../chunk-NYKRE2FL.mjs';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- function ChatWidget({ projectId, config }) {
6
- return /* @__PURE__ */ jsx(
7
- "div",
8
- {
9
- style: {
10
- position: "fixed",
11
- [config?.position === "bottom-left" ? "left" : "right"]: 20,
12
- bottom: 20,
13
- width: 60,
14
- height: 60,
15
- borderRadius: "50%",
16
- backgroundColor: config?.buttonColor || "#0066cc",
17
- display: "flex",
18
- alignItems: "center",
19
- justifyContent: "center",
20
- cursor: "pointer",
21
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.2)"
22
- },
23
- title: "Chat with us",
24
- children: /* @__PURE__ */ jsx(
25
- "svg",
26
- {
27
- width: "28",
28
- height: "28",
29
- viewBox: "0 0 24 24",
30
- fill: "none",
31
- stroke: "white",
32
- strokeWidth: "2",
33
- strokeLinecap: "round",
34
- strokeLinejoin: "round",
35
- children: /* @__PURE__ */ jsx("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })
36
- }
37
- )
38
- }
39
- );
40
- }
41
-
42
- export { ChatWidget };
43
3
  //# sourceMappingURL=index.mjs.map
44
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/engage/ChatWidget.tsx"],"names":[],"mappings":";;;;AAgBO,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,MAAA,EAAO,EAAoB;AAUjE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,QAAA,EAAU,OAAA;AAAA,QACV,CAAC,MAAA,EAAQ,QAAA,KAAa,aAAA,GAAgB,MAAA,GAAS,OAAO,GAAG,EAAA;AAAA,QACzD,MAAA,EAAQ,EAAA;AAAA,QACR,KAAA,EAAO,EAAA;AAAA,QACP,MAAA,EAAQ,EAAA;AAAA,QACR,YAAA,EAAc,KAAA;AAAA,QACd,eAAA,EAAiB,QAAQ,WAAA,IAAe,SAAA;AAAA,QACxC,OAAA,EAAS,MAAA;AAAA,QACT,UAAA,EAAY,QAAA;AAAA,QACZ,cAAA,EAAgB,QAAA;AAAA,QAChB,MAAA,EAAQ,SAAA;AAAA,QACR,SAAA,EAAW;AAAA,OACb;AAAA,MACA,KAAA,EAAM,cAAA;AAAA,MAGN,QAAA,kBAAA,GAAA;AAAA,QAAC,KAAA;AAAA,QAAA;AAAA,UACC,KAAA,EAAM,IAAA;AAAA,UACN,MAAA,EAAO,IAAA;AAAA,UACP,OAAA,EAAQ,WAAA;AAAA,UACR,IAAA,EAAK,MAAA;AAAA,UACL,MAAA,EAAO,OAAA;AAAA,UACP,WAAA,EAAY,GAAA;AAAA,UACZ,aAAA,EAAc,OAAA;AAAA,UACd,cAAA,EAAe,OAAA;AAAA,UAEf,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAE,+DAAA,EAAgE;AAAA;AAAA;AAC1E;AAAA,GACF;AAEJ","file":"index.mjs","sourcesContent":["/**\n * @uptrade/site-kit/engage - Chat Widget (Placeholder)\n * \n * AI/Live chat widget - implementation TBD\n */\n\n'use client'\n\nimport React from 'react'\nimport type { ChatConfig } from './types'\n\ninterface ChatWidgetProps {\n projectId: string\n config?: Partial<ChatConfig>\n}\n\nexport function ChatWidget({ projectId, config }: ChatWidgetProps) {\n // Placeholder - full implementation will include:\n // - Chat bubble button\n // - Expandable chat window\n // - Message history\n // - AI (Echo) integration\n // - Live agent handoff\n // - Typing indicators\n // - File attachments\n \n return (\n <div\n style={{\n position: 'fixed',\n [config?.position === 'bottom-left' ? 'left' : 'right']: 20,\n bottom: 20,\n width: 60,\n height: 60,\n borderRadius: '50%',\n backgroundColor: config?.buttonColor || '#0066cc',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.2)',\n }}\n title=\"Chat with us\"\n >\n {/* Chat icon */}\n <svg\n width=\"28\"\n height=\"28\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" />\n </svg>\n </div>\n )\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}