@thefittingroom/shop-ui 0.1.9 → 0.1.11
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/esm/components/locale.d.ts +2 -21
- package/dist/esm/index.js +17 -36
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ declare var L: {
|
|
|
2
2
|
AssociatedEmail: string;
|
|
3
3
|
BackToSignIn: string;
|
|
4
4
|
BrandUserIdNotSet: string;
|
|
5
|
-
CreateAvatarSc: string;
|
|
6
5
|
DontHaveAcc: string;
|
|
7
6
|
DontHaveAvatar: string;
|
|
8
7
|
EmailAddress: string;
|
|
@@ -10,47 +9,29 @@ declare var L: {
|
|
|
10
9
|
EnterEmailAddress: string;
|
|
11
10
|
EnterPhoneNumber: string;
|
|
12
11
|
FailedToLoadLocale: string;
|
|
13
|
-
ForgotPassword: string;
|
|
14
12
|
ForgotPasswordWithSymbol: string;
|
|
15
|
-
GetRecommendedSizesErrorText: string;
|
|
16
|
-
GetVirtualTryOnFramesErrorText: string;
|
|
17
13
|
HaveAcc: string;
|
|
18
|
-
HowItWorks: string;
|
|
19
|
-
HowItWorksText: string;
|
|
20
14
|
Loading: string;
|
|
21
15
|
LoadingAvatar: string;
|
|
22
|
-
ModalTitle: string;
|
|
23
16
|
NoSizeAvailable: string;
|
|
24
|
-
Or: string;
|
|
25
17
|
OrSize: string;
|
|
26
18
|
Password: string;
|
|
27
19
|
PasswordError: string;
|
|
28
20
|
PhoneNumber: string;
|
|
29
21
|
ReturnToCatalogPage: string;
|
|
30
22
|
ReturnToProductPage: string;
|
|
31
|
-
ReturnToSignIn: string;
|
|
32
23
|
ReturnToSite: string;
|
|
33
24
|
ReturnToTfr: string;
|
|
34
25
|
Send: string;
|
|
35
|
-
SendPasswordResetEmailErrorText: string;
|
|
36
26
|
SignBackIn: string;
|
|
37
27
|
SignIn: string;
|
|
38
|
-
SignOut: string;
|
|
39
|
-
SignOutErrorText: string;
|
|
40
|
-
SignUp: string;
|
|
41
|
-
SimplyScan: string;
|
|
42
|
-
SimplyScanText: string;
|
|
43
|
-
SomethingIsWrongWithThisUser: string;
|
|
44
28
|
SomethingWentWrong: string;
|
|
45
|
-
StyleNotReadyForVTO: string;
|
|
46
29
|
SuccessfullyLoggedOut: string;
|
|
47
30
|
TheFittingRoom: string;
|
|
48
|
-
TryOn: string;
|
|
49
|
-
TryOnText: string;
|
|
50
31
|
UsernameOrPasswordEmpty: string;
|
|
51
32
|
UsernameOrPasswordIncorrect: string;
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
ModalTagline: string;
|
|
34
|
+
ModalText: string;
|
|
54
35
|
};
|
|
55
36
|
declare function SetLocale(locale: string): Promise<void>;
|
|
56
37
|
declare const InitLocale: () => Promise<string>;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v0.1.
|
|
2
|
+
* thefittingroom v0.1.11 (2024-01-05T17:54:12.566Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
/*!
|
|
@@ -23207,55 +23207,37 @@ var L = {
|
|
|
23207
23207
|
AssociatedEmail: 'If there is an account associated with that email, We have sent a link to reset your password.',
|
|
23208
23208
|
BackToSignIn: 'Back to sign in',
|
|
23209
23209
|
BrandUserIdNotSet: 'User not logged in to brand site.',
|
|
23210
|
-
CreateAvatarSc: 'Scan the QR code/click link to download our app and create an avatar:',
|
|
23211
23210
|
DontHaveAcc: "Don't have an account?",
|
|
23212
23211
|
DontHaveAvatar: "Whoops! Looks like you don't have an avatar yet.",
|
|
23213
23212
|
EmailAddress: 'Email address',
|
|
23214
23213
|
EmailError: 'Please enter a valid email address.',
|
|
23215
23214
|
EnterEmailAddress: 'Enter your email address, we will send you a link to reset your password.',
|
|
23216
|
-
EnterPhoneNumber: 'Enter
|
|
23215
|
+
EnterPhoneNumber: 'Enter number for download link',
|
|
23217
23216
|
FailedToLoadLocale: 'Something went wrong when fetching another language.',
|
|
23218
|
-
ForgotPassword: 'Forgot password',
|
|
23219
23217
|
ForgotPasswordWithSymbol: 'Forgot password?',
|
|
23220
|
-
GetRecommendedSizesErrorText: 'Something went wrong while fetching sizes. Try again!',
|
|
23221
|
-
GetVirtualTryOnFramesErrorText: 'Something went wrong while fetching style id. Try again!',
|
|
23222
23218
|
HaveAcc: 'Have an account? Sign in',
|
|
23223
|
-
HowItWorks: 'How it works',
|
|
23224
|
-
HowItWorksText: 'The Fitting Room has partnered with your favourite designers to enable you to virtually try on garments, so you will know exactly how it will look before purchasing. Say good-bye to the days of dealing with returns!',
|
|
23225
23219
|
Loading: 'Loading...',
|
|
23226
23220
|
LoadingAvatar: 'Your avatar is loading...',
|
|
23227
|
-
ModalTitle: 'Enter your email address to be notified when The Fitting Room try on is offered on Google Play:',
|
|
23228
23221
|
NoSizeAvailable: 'Unfortunately, that size is not available for try on.',
|
|
23229
|
-
Or: 'Or',
|
|
23230
23222
|
OrSize: 'or',
|
|
23231
23223
|
Password: 'Password',
|
|
23232
23224
|
PasswordError: 'Please enter a valid password (at least 7 characters).',
|
|
23233
23225
|
PhoneNumber: 'Phone number',
|
|
23234
23226
|
ReturnToCatalogPage: 'Return to Catalog Page',
|
|
23235
23227
|
ReturnToProductPage: 'Return to Product Page',
|
|
23236
|
-
ReturnToSignIn: 'Return to sign in',
|
|
23237
23228
|
ReturnToSite: 'Return to site',
|
|
23238
23229
|
ReturnToTfr: 'Please return to The Fitting Room app to create your avatar.',
|
|
23239
23230
|
Send: 'Send',
|
|
23240
|
-
SendPasswordResetEmailErrorText: 'Something went wrong while sending password reset email. Try again!',
|
|
23241
23231
|
SignBackIn: 'Sign back in',
|
|
23242
23232
|
SignIn: 'Sign in',
|
|
23243
|
-
SignOut: 'Sign out',
|
|
23244
|
-
SignOutErrorText: 'Something went wrong while logging out. Try again!',
|
|
23245
|
-
SignUp: 'Sign up',
|
|
23246
|
-
SimplyScan: 'Simply scan,',
|
|
23247
|
-
SimplyScanText: 'Download The Fitting Room app, create an account, follow the easy set up steps, and then scan yourself using just your smartphone to create your personal lifelike avatar.',
|
|
23248
|
-
SomethingIsWrongWithThisUser: 'Something is wrong with this user. Try to re-authenticate again!',
|
|
23249
23233
|
SomethingWentWrong: 'Something went wrong. Try again!',
|
|
23250
|
-
StyleNotReadyForVTO: 'This style is not ready for virtual try on yet. Please check back later.',
|
|
23251
23234
|
SuccessfullyLoggedOut: 'You have successfully logged out!',
|
|
23252
23235
|
TheFittingRoom: 'The Fitting Room',
|
|
23253
|
-
TryOn: 'and try on.',
|
|
23254
|
-
TryOnText: 'After creating your avatar, return here and sign in. We will use the measurements from your avatar to tell you which size will fit you best, as well as let you try the garment on - all without leaving your house!',
|
|
23255
23236
|
UsernameOrPasswordEmpty: 'Username or password is empty.',
|
|
23256
23237
|
UsernameOrPasswordIncorrect: 'Username or password is incorrect.',
|
|
23257
|
-
|
|
23258
|
-
|
|
23238
|
+
// Modal
|
|
23239
|
+
ModalTagline: 'End size uncertainty with',
|
|
23240
|
+
ModalText: 'Our technology captures your precise measurements, and considers things like fabric stretch and your individual physique for the perfect fit every time.',
|
|
23259
23241
|
};
|
|
23260
23242
|
|
|
23261
23243
|
const validateEmail = (email) => {
|
|
@@ -23278,13 +23260,13 @@ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r
|
|
|
23278
23260
|
var css$6 = ".tfr-bg-aquamarina-strong{background-color:#209da7}.tfr-c-white{color:#fff}.tfr-c-brand{color:#209da7}.tfr-c-dark{color:#000}.tfr-c-dark-o5{color:rgba(0,0,0,.5)}.tfr-c-red{color:red}";
|
|
23279
23261
|
n(css$6,{});
|
|
23280
23262
|
|
|
23281
|
-
var css$5 = ".tfr-home-button-container{display:flex;flex-wrap:wrap;margin:20px}.tfr-home-button-container>button{border:0;cursor:pointer;height:60px;margin:20px;width:200px}.tfr-home-button-container>button:hover{background-color:#e6e6e6}[data-tfr=hidden]{display:none}.tfr-modal{
|
|
23263
|
+
var css$5 = ".tfr-home-button-container{display:flex;flex-wrap:wrap;margin:20px}.tfr-home-button-container>button{border:0;cursor:pointer;height:60px;margin:20px;width:200px}.tfr-home-button-container>button:hover{background-color:#e6e6e6}[data-tfr=hidden]{display:none}.tfr-modal{background-color:rgba(0,0,0,.53);display:flex;height:100%;left:0;position:fixed;top:0;width:100%;z-index:10000}.tfr-modal-content{margin:auto;text-align:center;width:90%}.tfr-modal-content-flex{align-items:center;display:flex}.tfr-modal-content-container{background-color:#fff;border:1px solid #434343;border-radius:0;box-shadow:0 6px 6px #00000029;line-height:normal;margin:auto;max-height:100vh;max-width:709px;overflow:auto;width:100%}.tfr-close-container{text-align:end}.tfr-close{color:#aaa;font-size:28px;font-weight:700;height:50px;width:50px}.tfr-close:focus,.tfr-close:hover{color:#000;text-decoration:none}.tfr-cursor:hover{cursor:pointer}.tfr-underline{text-decoration:underline}.tfr-standard-button{border:0;border-radius:3px;color:#fff;height:43px;width:138px}.tfr-logo-container{align-items:center;display:flex}.tfr-modal-title-logo-container{align-items:center;display:flex;justify-content:center}.tfr-girl-clothes{display:inline-block;height:316px;width:253px}.tfr-t-a-center{text-align:center}.tfr-w-70-p{width:70%}.tfr-w-80-p{width:80%}.tfr-w-85-p{width:85%}.tfr-w-150{width:150px}.tfr-h-150{height:150px}.tfr-d-none{display:none}.tfr-d-block{display:block}.tfr-d-flex{display:flex}.tfr-how-it-works-item{align-items:center;display:flex;justify-items:center}.tfr-try-on-content{margin-left:60px}#tfr-tryon-image{max-width:30vw}.progress-bar{background-color:#fff;border:1px solid #bdbdbd;height:10px;margin:15px auto 0;width:55%}.progress-bar-fill{animation-duration:120s;animation-name:progress;background-color:#209da7;color:#fff;display:block;font-size:16px;height:100%;text-align:center;transition:width .6s linear}#tfr-video{height:100%}.tfr-logo-box{aspect-ratio:1;margin:auto;max-height:430px;max-width:430px;padding:20px}.tfr-flex,.tfr-logo-box{align-items:center;display:flex;justify-content:center}";
|
|
23282
23264
|
n(css$5,{});
|
|
23283
23265
|
|
|
23284
23266
|
var css$4 = "input{border:none;box-shadow:none!important;width:100%}input:focus,select:focus,textarea:focus{border:none;outline:none}.tfr-fieldset{margin-left:auto;margin-right:auto;width:65%}.tfr-fieldset,.tfr-fieldset-inline{border-color:rgba(0,0,0,.5);border-radius:10px;border-width:1px;padding:5px 10px 10px;text-align:left}.tfr-fieldset-inline{margin-right:10px;width:250px}.tfr-fieldset-err{border-color:red}";
|
|
23285
23267
|
n(css$4,{});
|
|
23286
23268
|
|
|
23287
|
-
var css$3 = "@media screen and (max-width:702px){.tfr-modal-title-logo-container{display:flex;flex-direction:column}}@media screen and (min-width:600px){.tfr-modal-content-container{border-radius:10px;height:auto}
|
|
23269
|
+
var css$3 = "@media screen and (max-width:702px){.tfr-modal-title-logo-container{display:flex;flex-direction:column}}@media screen and (min-width:600px){.tfr-modal-content-container{border-radius:10px;height:auto}}@media screen and (max-width:599px){.tfr-mobile-hidden{display:none}.tfr-modal-content-container{min-height:100vh}.trf-logo-title{margin-bottom:10px}.tfr-modal-content-flex{height:calc(100vh - 76px)}}@media screen and (max-width:500px){.tfr-fieldset{width:90%}.tfr-how-it-works-item{flex-direction:column}.tfr-try-on-content{margin-left:0;margin-top:20px}}";
|
|
23288
23270
|
n(css$3,{});
|
|
23289
23271
|
|
|
23290
23272
|
var css$2 = ".tfr-mt-10{margin-top:10px}.tfr-mt-20{margin-top:20px}.tfr-mt-15{margin-top:15px}.tfr-mt-30{margin-top:30px}.mt-40{margin-top:40px}.tfr-mb-40{margin-bottom:40px}.tfr-mb-20{margin-bottom:20px}.tfr-mr-10{margin-right:10px}.tfr-mr-15{margin-right:15px}.tfr-mt-50{margin-top:50px}.tfr-mt-60{margin-top:60px}.tfr-mb-60{margin-bottom:60px}.tfr-mr-20{margin-right:20px}.tfr-mt-15-p{margin-top:15%}.tfr-mb-13-p{margin-bottom:13%}.tfr-m-h-auto{margin-left:auto;margin-right:auto}.tfr-pt-20{padding-top:20px}.tfr-pb-50{padding-bottom:50px}.tfr-p-20{padding:20px}.tfr-pr-20{padding-right:20px}.tfr-pl-20{padding-left:20px}.tfr-pb-7-p{padding-bottom:7%}";
|
|
@@ -23455,7 +23437,7 @@ const InitModalManager = (elementID) => {
|
|
|
23455
23437
|
<div class="tfr-modal-content-flex">
|
|
23456
23438
|
<div class="tfr-modal-content tfr-pt-20 tfr-pb-50">
|
|
23457
23439
|
<div class="tfr-modal-title-logo-container">
|
|
23458
|
-
<div tfr-element="true" class="trf-logo-title tfr-title-font tfr-light-24-300 tfr-c-dark tfr-mr-10">${L.
|
|
23440
|
+
<div tfr-element="true" class="trf-logo-title tfr-title-font tfr-light-24-300 tfr-c-dark tfr-mr-10">${L.ModalTagline}</div>
|
|
23459
23441
|
<div tfr-element="true" class="tfr-logo-container">
|
|
23460
23442
|
<div class="tfr-mr-15">
|
|
23461
23443
|
<svg width="26" height="47" viewBox="0 0 68 124" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -35925,6 +35907,8 @@ const ScanCodeModal = (props) => {
|
|
|
35925
35907
|
initTel('#tel-input');
|
|
35926
35908
|
document.getElementById('tel-button').addEventListener('click', onTelSubmit);
|
|
35927
35909
|
document.getElementById('tfr-sign-in-nav').addEventListener('click', onSignInNav);
|
|
35910
|
+
const video = document.getElementById('tfr-video');
|
|
35911
|
+
video.play();
|
|
35928
35912
|
};
|
|
35929
35913
|
const onUnhook = () => {
|
|
35930
35914
|
document.getElementById('tel-button').removeEventListener('click', onTelSubmit);
|
|
@@ -35932,16 +35916,13 @@ const ScanCodeModal = (props) => {
|
|
|
35932
35916
|
};
|
|
35933
35917
|
const body = () => {
|
|
35934
35918
|
return `
|
|
35935
|
-
<div tfr-element="true"
|
|
35936
|
-
<div class="tfr-
|
|
35937
|
-
|
|
35938
|
-
|
|
35939
|
-
|
|
35940
|
-
|
|
35941
|
-
|
|
35942
|
-
</svg>
|
|
35943
|
-
</div>
|
|
35944
|
-
<div tfr-element="true" class="tfr-title-font tfr-light-24-300 tfr-mr-10 tfr-c-white">${L.TheFittingRoom}</div>
|
|
35919
|
+
<div tfr-element="true">
|
|
35920
|
+
<div tfr-element="true" class="tfr-title-font tfr-light-16-300 tfr-mt-10">${L.ModalText}</div>
|
|
35921
|
+
</div>
|
|
35922
|
+
<div tfr-element="true" class="tfr-logo-box">
|
|
35923
|
+
<video id="tfr-video">
|
|
35924
|
+
<source src="https://assets.dev.thefittingroom.xyz/videos/the-fitting-room.mp4" />
|
|
35925
|
+
</video>
|
|
35945
35926
|
</div>
|
|
35946
35927
|
|
|
35947
35928
|
<div tfr-element="true" class="tfr-title-font tfr-light-16-300 tfr-mt-10">${L.EnterPhoneNumber}</div>
|