@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.
- package/dist/SetupWizard-Cki06kB0.d.mts +12 -0
- package/dist/SetupWizard-Cki06kB0.d.ts +12 -0
- package/dist/analytics/index.d.mts +87 -0
- package/dist/analytics/index.d.ts +87 -0
- package/dist/blog/index.d.mts +24 -0
- package/dist/blog/index.d.ts +24 -0
- package/dist/blog/index.js.map +1 -1
- package/dist/blog/index.mjs.map +1 -1
- package/dist/chunk-2IHTEKHU.mjs +332 -0
- package/dist/chunk-2IHTEKHU.mjs.map +1 -0
- package/dist/chunk-5R4R3WDP.js +1451 -0
- package/dist/chunk-5R4R3WDP.js.map +1 -0
- package/dist/{chunk-RV7H3I6J.js → chunk-ADHVEFWD.js} +68 -2
- package/dist/chunk-ADHVEFWD.js.map +1 -0
- package/dist/chunk-BGJLOJ7T.mjs +605 -0
- package/dist/chunk-BGJLOJ7T.mjs.map +1 -0
- package/dist/chunk-BZBJVG5Y.js +88 -0
- package/dist/chunk-BZBJVG5Y.js.map +1 -0
- package/dist/{chunk-COI6GOX2.mjs → chunk-DOHML47I.mjs} +3 -3
- package/dist/chunk-DOHML47I.mjs.map +1 -0
- package/dist/chunk-DRFTRTKV.js +809 -0
- package/dist/chunk-DRFTRTKV.js.map +1 -0
- package/dist/chunk-EL5QTAA3.mjs +805 -0
- package/dist/chunk-EL5QTAA3.mjs.map +1 -0
- package/dist/chunk-GAJLEDRD.js +334 -0
- package/dist/chunk-GAJLEDRD.js.map +1 -0
- package/dist/{chunk-3MUOUXHV.js → chunk-K2HWVOEO.js} +3 -3
- package/dist/chunk-K2HWVOEO.js.map +1 -0
- package/dist/chunk-O2OHHBUD.js +997 -0
- package/dist/chunk-O2OHHBUD.js.map +1 -0
- package/dist/chunk-QAYJV4KK.js +608 -0
- package/dist/chunk-QAYJV4KK.js.map +1 -0
- package/dist/{chunk-FEBYQGY4 2.mjs → chunk-SMUFNQLM.mjs} +67 -3
- package/dist/chunk-SMUFNQLM.mjs.map +1 -0
- package/dist/chunk-VDMZZL2O.mjs +83 -0
- package/dist/chunk-VDMZZL2O.mjs.map +1 -0
- package/dist/chunk-XFRPT5ZX.mjs +1449 -0
- package/dist/chunk-XFRPT5ZX.mjs.map +1 -0
- package/dist/chunk-XQJX252G.mjs +981 -0
- package/dist/chunk-XQJX252G.mjs.map +1 -0
- package/dist/commerce/index.d.mts +168 -0
- package/dist/commerce/index.d.ts +168 -0
- package/dist/commerce/index.js +38 -38
- package/dist/commerce/index.mjs +1 -1
- package/dist/commerce/server.d.mts +98 -0
- package/dist/commerce/server.d.ts +98 -0
- package/dist/engage/index.d.mts +27 -0
- package/dist/engage/index.d.ts +27 -0
- package/dist/engage/index.js +7 -40
- package/dist/engage/index.js.map +1 -1
- package/dist/engage/index.mjs +1 -41
- package/dist/engage/index.mjs.map +1 -1
- package/dist/forms/index.d.mts +437 -0
- package/dist/forms/index.d.ts +437 -0
- package/dist/forms/index.js +13 -5
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +2 -2
- package/dist/forms/index.mjs.map +1 -1
- package/dist/{generators-7Y5ABRYV 2.mjs → generators-TO2FKJR6.mjs} +134 -3
- package/dist/generators-TO2FKJR6.mjs.map +1 -0
- package/dist/{generators-GWIYCA5M.js → generators-YZWIGHCO.js} +135 -2
- package/dist/generators-YZWIGHCO.js.map +1 -0
- package/dist/images/index.d.mts +133 -0
- package/dist/images/index.d.ts +133 -0
- package/dist/images/index.js +41 -0
- package/dist/images/index.js.map +1 -0
- package/dist/images/index.mjs +8 -0
- package/dist/images/index.mjs.map +1 -0
- package/dist/index.d.mts +649 -0
- package/dist/index.d.ts +649 -0
- package/dist/index.js +1355 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1242 -76
- package/dist/index.mjs.map +1 -1
- package/dist/redirects/index.d.mts +72 -0
- package/dist/redirects/index.d.ts +72 -0
- package/dist/redirects/index.js +25 -0
- package/dist/redirects/index.js.map +1 -0
- package/dist/redirects/index.mjs +4 -0
- package/dist/redirects/index.mjs.map +1 -0
- package/dist/routing-BWjUF7lp.d.ts +105 -0
- package/dist/routing-CgmRi9tD.d.mts +105 -0
- package/dist/{scanner-MF7P3CDE 2.mjs → scanner-AZV5I6US.mjs} +123 -4
- package/dist/scanner-AZV5I6US.mjs.map +1 -0
- package/dist/{scanner-NT6YG4TD 2.js → scanner-ETJAMIT7.js} +124 -3
- package/dist/scanner-ETJAMIT7.js.map +1 -0
- package/dist/seo/index.d.mts +273 -0
- package/dist/seo/index.d.ts +273 -0
- package/dist/seo/server.d.mts +89 -0
- package/dist/seo/server.d.ts +89 -0
- package/dist/setup/client.d.mts +60 -0
- package/dist/setup/client.d.ts +60 -0
- package/dist/setup/client.js +30 -0
- package/dist/setup/client.js.map +1 -0
- package/dist/setup/client.mjs +5 -0
- package/dist/setup/client.mjs.map +1 -0
- package/dist/setup/index.d.mts +5 -0
- package/dist/setup/index.d.ts +5 -0
- package/dist/setup/index.js +28 -1043
- package/dist/setup/index.js.map +1 -1
- package/dist/setup/index.mjs +3 -1043
- package/dist/setup/index.mjs.map +1 -1
- package/dist/setup/server.d.mts +14 -0
- package/dist/setup/server.d.ts +14 -0
- package/dist/setup/server.js +13 -0
- package/dist/setup/server.js.map +1 -0
- package/dist/setup/server.mjs +4 -0
- package/dist/setup/server.mjs.map +1 -0
- package/dist/sitemap/index.d.mts +78 -0
- package/dist/sitemap/index.d.ts +78 -0
- package/dist/types-BDojCvvL.d.mts +156 -0
- package/dist/types-BDojCvvL.d.ts +156 -0
- package/dist/types-BmzutFwy.d.mts +227 -0
- package/dist/types-BmzutFwy.d.ts +227 -0
- package/dist/types-C0pJGfbH.d.mts +155 -0
- package/dist/types-C0pJGfbH.d.ts +155 -0
- package/dist/types-DA_Kocle.d.mts +127 -0
- package/dist/types-DA_Kocle.d.ts +127 -0
- package/dist/types-lFLKKn0G.d.mts +163 -0
- package/dist/types-lFLKKn0G.d.ts +163 -0
- package/dist/types-nB206tPK.d.mts +309 -0
- package/dist/types-nB206tPK.d.ts +309 -0
- package/dist/useEventModal-6U1pF3_g.d.mts +209 -0
- package/dist/useEventModal-BA8g-1-P.d.ts +209 -0
- package/package.json +21 -1
- package/dist/chunk-3MUOUXHV.js.map +0 -1
- package/dist/chunk-4HVYXYQL 2.mjs +0 -255
- package/dist/chunk-4HVYXYQL.mjs +0 -255
- package/dist/chunk-4HVYXYQL.mjs.map +0 -1
- package/dist/chunk-COI6GOX2.mjs.map +0 -1
- package/dist/chunk-EQCVQC35.js 2.map +0 -1
- package/dist/chunk-FEBYQGY4.mjs +0 -251
- package/dist/chunk-FEBYQGY4.mjs.map +0 -1
- package/dist/chunk-NYKRE2FL 2.mjs +0 -31
- package/dist/chunk-NYKRE2FL.mjs 2.map +0 -1
- package/dist/chunk-RV7H3I6J.js 2.map +0 -1
- package/dist/chunk-RV7H3I6J.js.map +0 -1
- package/dist/chunk-TUKGA3UK.js +0 -257
- package/dist/chunk-TUKGA3UK.js 2.map +0 -1
- package/dist/chunk-TUKGA3UK.js.map +0 -1
- package/dist/generators-7Y5ABRYV.mjs +0 -161
- package/dist/generators-7Y5ABRYV.mjs 2.map +0 -1
- package/dist/generators-7Y5ABRYV.mjs.map +0 -1
- package/dist/generators-GWIYCA5M.js 2.map +0 -1
- package/dist/generators-GWIYCA5M.js.map +0 -1
- package/dist/index 2.mjs +0 -74
- package/dist/index.js 2.map +0 -1
- package/dist/migrator-V6KS75EA 2.mjs +0 -265
- package/dist/migrator-V6KS75EA.mjs 2.map +0 -1
- package/dist/migrator-XKM7YQCY.js 2.map +0 -1
- package/dist/scanner-MF7P3CDE.mjs +0 -14386
- package/dist/scanner-MF7P3CDE.mjs 2.map +0 -1
- package/dist/scanner-MF7P3CDE.mjs.map +0 -1
- package/dist/scanner-NT6YG4TD.js +0 -14397
- package/dist/scanner-NT6YG4TD.js 2.map +0 -1
- package/dist/scanner-NT6YG4TD.js.map +0 -1
- package/dist/web-vitals-BH55V7EJ.js 2.map +0 -1
- package/dist/web-vitals-RJYPWAR3 2.mjs +0 -241
- package/dist/web-vitals-RJYPWAR3.mjs 2.map +0 -1
package/dist/commerce/index.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
10
|
+
get: function () { return chunkK2HWVOEO_js.CalendarView; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkK2HWVOEO_js.CheckoutForm; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "EventCalendar", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkK2HWVOEO_js.EventCalendar; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "EventEmbed", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkK2HWVOEO_js.EventEmbed; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "EventModal", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkK2HWVOEO_js.EventModal; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "EventTile", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkK2HWVOEO_js.EventTile; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "EventsWidget", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkK2HWVOEO_js.EventsWidget; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "OfferingCard", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkK2HWVOEO_js.OfferingCard; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "OfferingList", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkK2HWVOEO_js.OfferingList; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "ProductDetail", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkK2HWVOEO_js.ProductDetail; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkK2HWVOEO_js.ProductEmbed; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "ProductGrid", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkK2HWVOEO_js.ProductGrid; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "ProductPage", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkK2HWVOEO_js.ProductPage; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkK2HWVOEO_js.RegistrationForm; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkK2HWVOEO_js.UpcomingEvents; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkK2HWVOEO_js.createCheckoutSession; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "fetchCategories", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkK2HWVOEO_js.fetchCategories; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkK2HWVOEO_js.fetchLatestOffering; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkK2HWVOEO_js.fetchNextEvent; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "fetchOffering", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkK2HWVOEO_js.fetchOffering; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkK2HWVOEO_js.fetchOfferings; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkK2HWVOEO_js.fetchProductBySlug; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "fetchProducts", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkK2HWVOEO_js.fetchProducts; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkK2HWVOEO_js.fetchProductsPublic; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "fetchServices", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkK2HWVOEO_js.fetchServices; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkK2HWVOEO_js.fetchUpcomingEvents; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "formatDate", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkK2HWVOEO_js.formatDate; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "formatDateRange", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkK2HWVOEO_js.formatDateRange; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "formatDateTime", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkK2HWVOEO_js.formatDateTime; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "formatPrice", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkK2HWVOEO_js.formatPrice; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "formatTime", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkK2HWVOEO_js.formatTime; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkK2HWVOEO_js.getOfferingUrl; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkK2HWVOEO_js.getRelativeTimeUntil; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkK2HWVOEO_js.getSpotsRemaining; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkK2HWVOEO_js.isEventSoldOut; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "registerForEvent", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkK2HWVOEO_js.registerForEvent; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "useEventModal", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkK2HWVOEO_js.useEventModal; }
|
|
155
155
|
});
|
|
156
156
|
//# sourceMappingURL=index.js.map
|
|
157
157
|
//# sourceMappingURL=index.js.map
|
package/dist/commerce/index.mjs
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/engage/index.js
CHANGED
|
@@ -1,50 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
package/dist/engage/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/engage/index.mjs
CHANGED
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
export { EngageWidget } from '../chunk-
|
|
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":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|