@frak-labs/components 1.3.0 → 1.3.1-beta.98f81202
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/README.md +1 -1
- package/cdn/Ambassador.CRPtw_VT.js +392 -0
- package/cdn/Banner.gDEO8VKX.js +208 -0
- package/cdn/{ButtonShare.CgF4rWEO.js → ButtonShare.OuDvPMdk.js} +1 -1
- package/cdn/ButtonWallet.DNE6ZhkT.js +40 -0
- package/cdn/GiftIcon.NTATj1WE.js +1 -0
- package/cdn/OpenInAppButton.Dv7oAwl1.js +1 -0
- package/cdn/PostPurchase.Co0QSBMO.js +102 -0
- package/cdn/components.js +1 -1
- package/cdn/{jsxRuntime.module.CgbYebLx.js → jsxRuntime.module.C5UTjP_H.js} +1 -1
- package/cdn/loader.js +58 -36
- package/cdn/qr.vkJgq9pN.js +5 -0
- package/cdn/replay-V6FXES7X.CgBxdfNp.js +1 -0
- package/cdn/rewards.COyZ6-7W.js +1 -0
- package/cdn/useGlobalComponents.DoG1wfeq.js +1 -0
- package/cdn/{useLightDomStyles.CkTNHin8.js → useLightDomStyles.B0_CS0Kq.js} +1 -1
- package/cdn/{usePlacement.b__OilKu.js → usePlacement.B5JX9OU-.js} +1 -1
- package/cdn/{useReward.Duy0EWvi.js → useReward.By-xuybY.js} +1 -1
- package/dist/{GiftIcon-DNqgjTjb.js → GiftIcon-JVhSFEhP.js} +0 -1
- package/dist/ambassador.js +239 -104
- package/dist/banner.js +84 -59
- package/dist/postPurchase.js +43 -30
- package/dist/sharedBaseCss.css-BkMpQeRx.js +5 -0
- package/package.json +5 -4
- package/cdn/Ambassador.LCnsy5iT.js +0 -320
- package/cdn/Banner.BnzLkajr.js +0 -183
- package/cdn/ButtonWallet.JbMXw9dW.js +0 -40
- package/cdn/GiftIcon.Be-UU58r.js +0 -1
- package/cdn/OpenInAppButton.BaRZ25xH.js +0 -1
- package/cdn/PostPurchase.c3eqzVRl.js +0 -89
- package/cdn/qr.Bdg4-2EI.js +0 -5
- package/cdn/replay-V6FXES7X.efKsNT6s.js +0 -1
- package/cdn/rewards.B_p05JY_.js +0 -1
- package/cdn/useGlobalComponents.da05dAlQ.js +0 -1
- package/dist/sharedBaseCss.css-ChRUA1zY.js +0 -5
package/dist/banner.js
CHANGED
|
@@ -4,9 +4,9 @@ import { t as useGlobalComponents } from "./useGlobalComponents-B3s2UQFk.js";
|
|
|
4
4
|
import { t as useLightDomStyles } from "./useLightDomStyles-BQ5FvCPi.js";
|
|
5
5
|
import { t as useReward } from "./useReward-DEhiMfgl.js";
|
|
6
6
|
import { componentDefaults } from "./i18n/defaults.js";
|
|
7
|
-
import { t as cssSource$5 } from "./sharedBaseCss.css-
|
|
7
|
+
import { t as cssSource$5 } from "./sharedBaseCss.css-BkMpQeRx.js";
|
|
8
8
|
import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
|
|
9
|
-
import { a as CloseCircleIcon, i as ExternalLinkIcon, n as WarningIcon, r as LogoFrakWithName, t as GiftIcon } from "./GiftIcon-
|
|
9
|
+
import { a as CloseCircleIcon, i as ExternalLinkIcon, n as WarningIcon, r as LogoFrakWithName, t as GiftIcon } from "./GiftIcon-JVhSFEhP.js";
|
|
10
10
|
import { isInAppBrowser, redirectToExternalBrowser, sanitizeProductDetailsList, trackEvent } from "@frak-labs/core-sdk";
|
|
11
11
|
import { REFERRAL_SUCCESS_EVENT, getMergeToken } from "@frak-labs/core-sdk/actions";
|
|
12
12
|
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
@@ -16,119 +16,134 @@ const cssSource$4 = `@keyframes keyframes_fadeIn__mnqmlt0 {
|
|
|
16
16
|
from {
|
|
17
17
|
opacity: 0;
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
to {
|
|
20
21
|
opacity: 1;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
24
|
+
|
|
23
25
|
@keyframes keyframes_fadeOut__mnqmlt1 {
|
|
24
26
|
from {
|
|
25
27
|
opacity: 1;
|
|
26
28
|
}
|
|
29
|
+
|
|
27
30
|
to {
|
|
28
31
|
opacity: 0;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
34
|
+
|
|
31
35
|
@keyframes keyframes_fadeInDown__mnqmlt2 {
|
|
32
36
|
from {
|
|
33
37
|
opacity: 0;
|
|
34
38
|
transform: translateY(-4px);
|
|
35
39
|
}
|
|
40
|
+
|
|
36
41
|
to {
|
|
37
42
|
opacity: 1;
|
|
38
43
|
transform: translateY(0);
|
|
39
44
|
}
|
|
40
|
-
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
41
47
|
//#endregion
|
|
42
48
|
//#region \0ve-inline:../../packages/design-system/src/styles/inAppBanner.css.ts.vanilla.js
|
|
43
49
|
const cssSource$3 = `.inAppBanner_container__1ibpiy70 {
|
|
44
|
-
position: fixed;
|
|
45
50
|
top: max(8px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
46
|
-
left: 16px;
|
|
47
|
-
right: 16px;
|
|
48
51
|
z-index: 1000;
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
gap: 4px;
|
|
52
|
-
padding: 12px 16px;
|
|
53
|
-
padding-right: 32px;
|
|
54
|
-
border-radius: 12px;
|
|
55
|
-
background-color: #000000cc;
|
|
56
|
-
backdrop-filter: blur(12px);
|
|
57
52
|
-webkit-backdrop-filter: blur(12px);
|
|
53
|
+
backdrop-filter: blur(12px);
|
|
58
54
|
color: var(--text-onAction__pbq4ak6);
|
|
59
|
-
|
|
55
|
+
background-color: #000c;
|
|
56
|
+
border-radius: 12px;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
gap: 4px;
|
|
59
|
+
padding: 12px 32px 12px 16px;
|
|
60
|
+
animation: .3s ease-out keyframes_fadeInDown__mnqmlt2;
|
|
61
|
+
display: flex;
|
|
62
|
+
position: fixed;
|
|
63
|
+
left: 16px;
|
|
64
|
+
right: 16px;
|
|
60
65
|
}
|
|
66
|
+
|
|
61
67
|
.inAppBanner_header__1ibpiy71 {
|
|
62
|
-
display: flex;
|
|
63
68
|
align-items: center;
|
|
64
69
|
gap: 8px;
|
|
70
|
+
display: flex;
|
|
65
71
|
}
|
|
72
|
+
|
|
66
73
|
.inAppBanner_iconWrapper__1ibpiy72 {
|
|
67
|
-
flex-shrink: 0;
|
|
68
74
|
width: 20px;
|
|
69
75
|
height: 20px;
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
76
|
color: var(--text-onAction__pbq4ak6);
|
|
77
|
+
flex-shrink: 0;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
align-items: center;
|
|
80
|
+
display: flex;
|
|
74
81
|
}
|
|
82
|
+
|
|
75
83
|
.inAppBanner_title__1ibpiy73 {
|
|
84
|
+
color: var(--text-onAction__pbq4ak6);
|
|
76
85
|
margin: 0;
|
|
77
86
|
padding: 0;
|
|
78
87
|
font-size: 16px;
|
|
79
88
|
font-weight: 500;
|
|
80
89
|
line-height: 26px;
|
|
81
|
-
color: var(--text-onAction__pbq4ak6);
|
|
82
90
|
}
|
|
91
|
+
|
|
83
92
|
.inAppBanner_body__1ibpiy74 {
|
|
84
|
-
display: flex;
|
|
85
93
|
flex-wrap: wrap;
|
|
86
94
|
align-items: baseline;
|
|
87
95
|
gap: 0 4px;
|
|
96
|
+
display: flex;
|
|
88
97
|
}
|
|
98
|
+
|
|
89
99
|
.inAppBanner_description__1ibpiy75 {
|
|
100
|
+
color: var(--text-onAction__pbq4ak6);
|
|
101
|
+
opacity: .96;
|
|
90
102
|
margin: 0;
|
|
91
103
|
padding: 0;
|
|
92
104
|
font-size: 14px;
|
|
93
|
-
color: var(--text-onAction__pbq4ak6);
|
|
94
105
|
line-height: 22px;
|
|
95
|
-
opacity: 0.96;
|
|
96
106
|
}
|
|
107
|
+
|
|
97
108
|
.inAppBanner_cta__1ibpiy76 {
|
|
98
109
|
all: unset;
|
|
99
|
-
|
|
110
|
+
color: #2bb2ff;
|
|
111
|
+
text-underline-offset: 2px;
|
|
112
|
+
cursor: pointer;
|
|
100
113
|
align-items: center;
|
|
101
114
|
gap: 4px;
|
|
102
|
-
color: #2bb2ff;
|
|
103
115
|
font-size: 14px;
|
|
104
116
|
font-weight: 600;
|
|
105
117
|
text-decoration: underline;
|
|
106
|
-
|
|
107
|
-
cursor: pointer;
|
|
118
|
+
display: inline-flex;
|
|
108
119
|
}
|
|
120
|
+
|
|
109
121
|
.inAppBanner_cta__1ibpiy76:focus-visible {
|
|
110
|
-
outline: 2px solid #2bb2ff;
|
|
111
122
|
outline-offset: 2px;
|
|
112
123
|
border-radius: 4px;
|
|
124
|
+
outline: 2px solid #2bb2ff;
|
|
113
125
|
}
|
|
126
|
+
|
|
114
127
|
.inAppBanner_closeButton__1ibpiy77 {
|
|
115
128
|
all: unset;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
129
|
+
color: #fff9;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
border-radius: 9999px;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
align-items: center;
|
|
119
134
|
width: 28px;
|
|
120
135
|
height: 28px;
|
|
121
136
|
display: flex;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
color: #ffffff99;
|
|
126
|
-
cursor: pointer;
|
|
137
|
+
position: absolute;
|
|
138
|
+
top: 8px;
|
|
139
|
+
right: 8px;
|
|
127
140
|
}
|
|
141
|
+
|
|
128
142
|
.inAppBanner_closeButton__1ibpiy77:focus-visible {
|
|
129
143
|
outline: 2px solid var(--text-onAction__pbq4ak6);
|
|
130
144
|
outline-offset: 2px;
|
|
131
|
-
}
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
132
147
|
//#endregion
|
|
133
148
|
//#region ../../packages/design-system/src/styles/inAppBanner.css.ts
|
|
134
149
|
var body = "inAppBanner_body__1ibpiy74";
|
|
@@ -191,75 +206,85 @@ function InAppBanner({ title: title$1, description: description$1, cta: cta$1, d
|
|
|
191
206
|
//#endregion
|
|
192
207
|
//#region \0ve-inline:src/components/Banner/Banner.css.ts.vanilla.js
|
|
193
208
|
const cssSource$1 = `.Banner_rootBase__1gnumzi0 {
|
|
194
|
-
|
|
209
|
+
animation: .3s ease-out keyframes_fadeInDown__mnqmlt2;
|
|
195
210
|
display: flex;
|
|
196
|
-
|
|
211
|
+
position: relative;
|
|
197
212
|
}
|
|
213
|
+
|
|
198
214
|
.Banner_iconSvg__1gnumzi1 {
|
|
199
215
|
width: 100%;
|
|
200
216
|
height: 100%;
|
|
201
217
|
}
|
|
218
|
+
|
|
202
219
|
.Banner_referral__1gnumzi2 {
|
|
220
|
+
color: var(--text-primary__pbq4ak0);
|
|
221
|
+
border: 1px solid var(--border-default__pbq4akv);
|
|
222
|
+
background-color: #fff;
|
|
223
|
+
border-radius: 12px;
|
|
203
224
|
flex-direction: row;
|
|
204
225
|
align-items: center;
|
|
205
226
|
gap: 16px;
|
|
206
227
|
padding: 16px;
|
|
207
|
-
background-color: #ffffff;
|
|
208
|
-
color: var(--text-primary__pbq4ak0);
|
|
209
|
-
border: 1px solid var(--border-default__pbq4akv);
|
|
210
|
-
border-radius: 12px;
|
|
211
228
|
}
|
|
229
|
+
|
|
212
230
|
.Banner_referralIconWrapper__1gnumzi3 {
|
|
213
231
|
flex-shrink: 0;
|
|
232
|
+
justify-content: center;
|
|
214
233
|
align-self: flex-start;
|
|
215
|
-
display: flex;
|
|
216
234
|
align-items: center;
|
|
217
|
-
justify-content: center;
|
|
218
235
|
width: 40px;
|
|
219
236
|
height: 40px;
|
|
237
|
+
display: flex;
|
|
220
238
|
overflow: hidden;
|
|
221
239
|
}
|
|
240
|
+
|
|
222
241
|
.Banner_referralImage__1gnumzi4 {
|
|
223
|
-
|
|
224
|
-
max-height: 100%;
|
|
242
|
+
object-fit: contain;
|
|
225
243
|
width: auto;
|
|
244
|
+
max-width: 100%;
|
|
226
245
|
height: auto;
|
|
227
|
-
|
|
246
|
+
max-height: 100%;
|
|
228
247
|
display: block;
|
|
229
248
|
}
|
|
249
|
+
|
|
230
250
|
.Banner_referralBody__1gnumzi5 {
|
|
231
251
|
flex: 1;
|
|
232
252
|
min-width: 0;
|
|
233
253
|
}
|
|
254
|
+
|
|
234
255
|
.Banner_referralTitle__1gnumzi6 {
|
|
256
|
+
color: var(--text-primary__pbq4ak0);
|
|
235
257
|
font-size: 16px;
|
|
236
258
|
font-weight: 600;
|
|
237
|
-
color: var(--text-primary__pbq4ak0);
|
|
238
259
|
line-height: 22px;
|
|
239
260
|
}
|
|
261
|
+
|
|
240
262
|
.Banner_referralDescription__1gnumzi7 {
|
|
263
|
+
color: #979797;
|
|
241
264
|
margin-bottom: 8px;
|
|
242
265
|
font-size: 14px;
|
|
243
|
-
color: #979797;
|
|
244
266
|
line-height: 22px;
|
|
245
267
|
}
|
|
268
|
+
|
|
246
269
|
.Banner_referralCta__1gnumzi8 {
|
|
247
|
-
display: inline-block;
|
|
248
|
-
padding: 8px 16px;
|
|
249
|
-
border: 1px solid #000000;
|
|
250
|
-
border-radius: 9999px;
|
|
251
270
|
color: var(--text-primary__pbq4ak0);
|
|
271
|
+
text-transform: uppercase;
|
|
272
|
+
border: 1px solid #000;
|
|
273
|
+
border-radius: 9999px;
|
|
274
|
+
padding: 8px 16px;
|
|
252
275
|
font-size: 10px;
|
|
253
276
|
font-weight: 700;
|
|
254
277
|
line-height: 12px;
|
|
255
|
-
|
|
278
|
+
display: inline-block;
|
|
256
279
|
}
|
|
280
|
+
|
|
257
281
|
.Banner_frakLogo__1gnumzi9 {
|
|
282
|
+
pointer-events: none;
|
|
258
283
|
position: absolute;
|
|
259
|
-
right: 16px;
|
|
260
284
|
bottom: 12px;
|
|
261
|
-
|
|
262
|
-
}
|
|
285
|
+
right: 16px;
|
|
286
|
+
}
|
|
287
|
+
`;
|
|
263
288
|
//#endregion
|
|
264
289
|
//#region src/components/Banner/Banner.css.ts
|
|
265
290
|
var frakLogo = "Banner_frakLogo__1gnumzi9";
|
package/dist/postPurchase.js
CHANGED
|
@@ -3,9 +3,9 @@ import { i as w, n as K, t as C } from "./rewards-DoVY1pWr.js";
|
|
|
3
3
|
import { t as useGlobalComponents } from "./useGlobalComponents-B3s2UQFk.js";
|
|
4
4
|
import { t as useLightDomStyles } from "./useLightDomStyles-BQ5FvCPi.js";
|
|
5
5
|
import { componentDefaults } from "./i18n/defaults.js";
|
|
6
|
-
import { t as cssSource$2 } from "./sharedBaseCss.css-
|
|
6
|
+
import { t as cssSource$2 } from "./sharedBaseCss.css-BkMpQeRx.js";
|
|
7
7
|
import { t as usePlacement } from "./usePlacement-BpaIbzun.js";
|
|
8
|
-
import { r as LogoFrakWithName, t as GiftIcon } from "./GiftIcon-
|
|
8
|
+
import { r as LogoFrakWithName, t as GiftIcon } from "./GiftIcon-JVhSFEhP.js";
|
|
9
9
|
import { sanitizeSharingProducts, trackEvent } from "@frak-labs/core-sdk";
|
|
10
10
|
import { getMerchantInformation, getUserReferralStatus, trackPurchaseStatus } from "@frak-labs/core-sdk/actions";
|
|
11
11
|
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
@@ -13,94 +13,107 @@ import { jsx, jsxs } from "preact/jsx-runtime";
|
|
|
13
13
|
import { FrakRpcError, RpcErrorCodes } from "@frak-labs/frame-connector";
|
|
14
14
|
//#region \0ve-inline:src/components/PostPurchase/PostPurchase.css.ts.vanilla.js
|
|
15
15
|
const cssSource$1 = `.PostPurchase_card__5fv5lh0 {
|
|
16
|
-
padding: 16px;
|
|
17
|
-
border-radius: 12px;
|
|
18
16
|
background-color: var(--surface-background__pbq4akc);
|
|
19
17
|
border: 1px solid var(--border-default__pbq4akv);
|
|
18
|
+
border-radius: 12px;
|
|
19
|
+
padding: 16px;
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
.PostPurchase_cardLayout__5fv5lh1 {
|
|
22
|
-
display: flex;
|
|
23
23
|
flex-direction: row;
|
|
24
24
|
align-items: center;
|
|
25
25
|
gap: 32px;
|
|
26
|
+
display: flex;
|
|
26
27
|
}
|
|
28
|
+
|
|
27
29
|
.PostPurchase_cardLeft__5fv5lh2 {
|
|
30
|
+
flex-direction: column;
|
|
28
31
|
flex-grow: 1;
|
|
32
|
+
gap: 8px;
|
|
29
33
|
min-width: 0;
|
|
30
34
|
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: 8px;
|
|
33
35
|
}
|
|
36
|
+
|
|
34
37
|
.PostPurchase_cardRight__5fv5lh3 {
|
|
35
|
-
|
|
36
|
-
display: flex;
|
|
38
|
+
text-align: right;
|
|
37
39
|
flex-direction: column;
|
|
40
|
+
flex-shrink: 0;
|
|
38
41
|
align-items: flex-end;
|
|
39
42
|
gap: 8px;
|
|
40
|
-
|
|
43
|
+
display: flex;
|
|
41
44
|
}
|
|
45
|
+
|
|
42
46
|
.PostPurchase_badge__5fv5lh4 {
|
|
43
|
-
|
|
44
|
-
background-color: #
|
|
47
|
+
color: var(--text-primary__pbq4ak0);
|
|
48
|
+
background-color: #fff534;
|
|
45
49
|
border-radius: 4px;
|
|
50
|
+
align-self: flex-start;
|
|
46
51
|
padding: 4px 8px;
|
|
47
52
|
font-size: 12px;
|
|
48
53
|
font-weight: 600;
|
|
49
54
|
line-height: 12px;
|
|
50
|
-
color: var(--text-primary__pbq4ak0);
|
|
51
55
|
}
|
|
56
|
+
|
|
52
57
|
.PostPurchase_message__5fv5lh5 {
|
|
58
|
+
color: var(--text-primary__pbq4ak0);
|
|
53
59
|
margin: 0;
|
|
54
60
|
font-size: 16px;
|
|
55
|
-
line-height: 22px;
|
|
56
|
-
color: var(--text-primary__pbq4ak0);
|
|
57
61
|
font-weight: 600;
|
|
62
|
+
line-height: 22px;
|
|
58
63
|
}
|
|
64
|
+
|
|
59
65
|
.PostPurchase_cta__5fv5lh6 {
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
background-color: var(--text-primary__pbq4ak0);
|
|
67
|
+
color: var(--text-onAction__pbq4ak6);
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
border-radius: 9999px;
|
|
62
70
|
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
63
72
|
gap: 4px;
|
|
64
73
|
padding: 12px 16px;
|
|
65
|
-
border-radius: 9999px;
|
|
66
|
-
background-color: var(--text-primary__pbq4ak0);
|
|
67
|
-
color: var(--text-onAction__pbq4ak6);
|
|
68
74
|
font-size: 12px;
|
|
69
75
|
font-weight: bold;
|
|
70
|
-
|
|
76
|
+
display: inline-flex;
|
|
71
77
|
}
|
|
78
|
+
|
|
72
79
|
.PostPurchase_cta__5fv5lh6:disabled {
|
|
73
|
-
opacity:
|
|
80
|
+
opacity: .7;
|
|
74
81
|
cursor: default;
|
|
75
82
|
}
|
|
83
|
+
|
|
76
84
|
.PostPurchase_icon__5fv5lh7 {
|
|
77
85
|
margin: -2px 0;
|
|
78
86
|
}
|
|
87
|
+
|
|
79
88
|
.PostPurchase_giftIcon__5fv5lh8 {
|
|
80
|
-
display: block;
|
|
81
89
|
flex-shrink: 0;
|
|
90
|
+
display: block;
|
|
82
91
|
}
|
|
92
|
+
|
|
83
93
|
.PostPurchase_imageWrapper__5fv5lh9 {
|
|
84
94
|
flex-shrink: 0;
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
95
|
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
88
97
|
width: 80px;
|
|
89
98
|
height: 80px;
|
|
99
|
+
display: flex;
|
|
90
100
|
overflow: hidden;
|
|
91
101
|
}
|
|
102
|
+
|
|
92
103
|
.PostPurchase_customImage__5fv5lha {
|
|
93
|
-
|
|
94
|
-
max-height: 100%;
|
|
104
|
+
object-fit: contain;
|
|
95
105
|
width: auto;
|
|
106
|
+
max-width: 100%;
|
|
96
107
|
height: auto;
|
|
97
|
-
|
|
108
|
+
max-height: 100%;
|
|
98
109
|
display: block;
|
|
99
110
|
}
|
|
111
|
+
|
|
100
112
|
.PostPurchase_frakLogo__5fv5lhb {
|
|
101
|
-
display: block;
|
|
102
113
|
margin-left: auto;
|
|
103
|
-
|
|
114
|
+
display: block;
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
104
117
|
var card = "PostPurchase_card__5fv5lh0";
|
|
105
118
|
var cardLayout = "PostPurchase_cardLayout__5fv5lh1";
|
|
106
119
|
var cardLeft = "PostPurchase_cardLeft__5fv5lh2";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/styles/sharedBaseCss.css.ts
|
|
3
|
+
const cssSource = ".reset_base__1831jhd0 {\n box-sizing: border-box;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n -webkit-tap-highlight-color: transparent;\n border: 0;\n margin: 0;\n padding: 0;\n}\n\n.reset_focusRing__1831jhd1 {\n outline-offset: 2px;\n outline: 2px solid #0000;\n}\n\n.reset_focusRing__1831jhd1:focus-visible {\n outline-color: currentColor;\n}\n\n.reset_fieldAppearance__1831jhd2 {\n appearance: none;\n background-color: #0000;\n}\n\n.reset_visuallyHidden__1831jhd3 {\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.reset_element_ul__1831jhd4, .reset_element_ol__1831jhd5 {\n list-style: none;\n}\n\n.reset_element_button__1831jhd6 {\n cursor: pointer;\n}\n\n.reset_element_a__1831jhd7 {\n color: inherit;\n text-decoration: none;\n}\n\n.reset_element_table__1831jhdb {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n.reset_element_img__1831jhdc {\n max-width: 100%;\n display: block;\n}\n:root {\n --text-primary__pbq4ak0: #000;\n --text-secondary__pbq4ak1: #525252;\n --text-tertiary__pbq4ak2: #a3a3a3;\n --text-disabled__pbq4ak3: #a3a3a3;\n --text-action__pbq4ak4: #0043ef;\n --text-actionHover__pbq4ak5: #0036bf;\n --text-onAction__pbq4ak6: #fff;\n --text-error__pbq4ak7: #e31c31;\n --text-success__pbq4ak8: #09be67;\n --text-warning__pbq4ak9: #ec7e00;\n --surface-primary__pbq4aka: #0043ef;\n --surface-secondary__pbq4akb: #f2f6fe;\n --surface-background__pbq4akc: #fff;\n --surface-background2__pbq4akd: #f9fafb;\n --surface-elevated__pbq4ake: #fff;\n --surface-muted__pbq4akf: #f7f7f7;\n --surface-tertiary__pbq4akg: #f7f7f7;\n --surface-overlay__pbq4akh: #000000b2;\n --surface-disabled__pbq4aki: #e2e2e2;\n --surface-primaryHover__pbq4akj: #0036bf;\n --surface-primaryPressed__pbq4akk: #00288f;\n --surface-secondaryHover__pbq4akl: #e5ecfd;\n --surface-secondaryPressed__pbq4akm: #ccd9fc;\n --surface-error__pbq4akn: #fce8ea;\n --surface-success__pbq4ako: #f3fcf7;\n --surface-warning__pbq4akp: #fef9f2;\n --border-subtle__pbq4akq: #f5f5f5;\n --border-focus__pbq4akr: #a3a3a3;\n --border-error__pbq4aks: #e31c31;\n --border-success__pbq4akt: #09be67;\n --border-warning__pbq4aku: #ec7e00;\n --border-default__pbq4akv: #e2e2e2;\n --icon-primary__pbq4akw: #000;\n --icon-secondary__pbq4akx: #525252;\n --icon-tertiary__pbq4aky: #a3a3a3;\n --icon-disabled__pbq4akz: #a3a3a3;\n --icon-action__pbq4ak10: #0043ef;\n --icon-actionHover__pbq4ak11: #0036bf;\n --icon-onAction__pbq4ak12: #fff;\n --icon-error__pbq4ak13: #e31c31;\n --icon-success__pbq4ak14: #09be67;\n --icon-warning__pbq4ak15: #ec7e00;\n}\n.sharedBaseCss_buttonReset__7cswil0 {\n appearance: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: transparent;\n cursor: pointer;\n outline-offset: 2px;\n background-color: #0000;\n border: 0;\n outline: 2px solid #0000;\n margin: 0;\n font-family: inherit;\n}\n\n.sharedBaseCss_buttonReset__7cswil0:focus-visible {\n outline-color: currentColor;\n}\n";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { cssSource as t };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://twitter.com/QNivelais"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"version": "1.3.
|
|
14
|
+
"version": "1.3.1-beta.98f81202",
|
|
15
15
|
"description": "Frak web components (share button, banner, post-purchase, ambassador page) for any merchant page; load the shim from https://sdk.frak.id/components.js.",
|
|
16
16
|
"repository": {
|
|
17
17
|
"url": "https://github.com/frak-id/wallet",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"publish": "echo 'Publishing components...'"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"@frak-labs/core-sdk": "1.5.
|
|
114
|
-
"@frak-labs/frame-connector": "1.3.0",
|
|
113
|
+
"@frak-labs/core-sdk": "1.5.1-beta.98f81202",
|
|
114
|
+
"@frak-labs/frame-connector": "1.3.0-beta.98f81202",
|
|
115
115
|
"preact": "^10.29.8",
|
|
116
116
|
"preact-custom-element": "^4.6.0",
|
|
117
117
|
"qr": "^0.7.0"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@testing-library/preact": "^3.2.4",
|
|
127
127
|
"@testing-library/user-event": "^14.6.7",
|
|
128
128
|
"@types/jsdom": "^30.0.0",
|
|
129
|
-
"@types/node": "^25.9.
|
|
129
|
+
"@types/node": "^25.9.9",
|
|
130
130
|
"@types/preact-custom-element": "^4.0.4",
|
|
131
131
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
132
132
|
"@vanilla-extract/css": "^1.21.2",
|
|
@@ -136,6 +136,7 @@
|
|
|
136
136
|
"@vitest/coverage-v8": "^5.0.0",
|
|
137
137
|
"@vitest/ui": "^5.0.0",
|
|
138
138
|
"jsdom": "^30.0.1",
|
|
139
|
+
"lightningcss": "^1.33.0",
|
|
139
140
|
"rolldown": "~1.2.0",
|
|
140
141
|
"tsdown": "^0.23.0",
|
|
141
142
|
"typescript": "^6.0.3",
|