@thefittingroom/shop-ui 0.1.1 → 0.1.3

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.
@@ -47,7 +47,6 @@ declare var L: {
47
47
  TheFittingRoom: string;
48
48
  TryOn: string;
49
49
  TryOnText: string;
50
- TrySize: string;
51
50
  UsernameOrPasswordEmpty: string;
52
51
  UsernameOrPasswordIncorrect: string;
53
52
  VirtualTryOnWith: string;
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v0.0.16 (2023-11-20T17:29:10.547Z)
2
+ * thefittingroom v0.1.3 (2023-12-01T01:00:50.585Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  /*!
@@ -23252,11 +23252,10 @@ var L = {
23252
23252
  TheFittingRoom: 'The Fitting Room',
23253
23253
  TryOn: 'and try on.',
23254
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
- TrySize: 'You can try on a size',
23256
23255
  UsernameOrPasswordEmpty: 'Username or password is empty.',
23257
23256
  UsernameOrPasswordIncorrect: 'Username or password is incorrect.',
23258
23257
  VirtualTryOnWith: 'Virtual try on with',
23259
- WeRecommendSize: 'We recommend starting with a',
23258
+ WeRecommendSize: 'We recommend a size',
23260
23259
  };
23261
23260
 
23262
23261
  const validateEmail = (email) => {
@@ -36070,7 +36069,7 @@ const SizeErrorModal = (props) => {
36070
36069
  return `
36071
36070
  <div class="tfr-mt-15-p tfr-mb-13-p">
36072
36071
  <div tfr-element="true" class="tfr-title-font tfr-light-22-300 tfr-c-dark">
36073
- ${L.NoSizeAvailable} ${L.TrySize} ${(_a = props.sizes) === null || _a === void 0 ? void 0 : _a.recommended} ${L.OrSize} ${(_c = (_b = props.sizes) === null || _b === void 0 ? void 0 : _b.available) === null || _c === void 0 ? void 0 : _c.join(' or ')}
36072
+ ${L.NoSizeAvailable} ${(_a = props.sizes) === null || _a === void 0 ? void 0 : _a.recommended} ${L.OrSize} ${(_c = (_b = props.sizes) === null || _b === void 0 ? void 0 : _b.available) === null || _c === void 0 ? void 0 : _c.join(' or ')}
36074
36073
  </div>
36075
36074
  </div>
36076
36075
 
@@ -36321,12 +36320,12 @@ class FittingRoom {
36321
36320
  }
36322
36321
  async getRecommendedSizeString(styleId) {
36323
36322
  const res = await this.tfrShop.getRecommendedSizesLabels(styleId);
36324
- const { availableSizeLabels, recommendedSizeLabel } = res;
36323
+ const { availableSizeLabels } = res;
36325
36324
  const firstSizes = availableSizeLabels.slice(0, -1);
36326
36325
  const lastSize = availableSizeLabels.slice(-1);
36327
- const tryFirstSizes = `${L.TrySize} ${firstSizes.join(', ')}`;
36326
+ const tryFirstSizes = `${L.WeRecommendSize} ${firstSizes.join(', ')}`;
36328
36327
  const trySizes = availableSizeLabels.length > 1 ? `${tryFirstSizes} ${L.OrSize} ${lastSize}` : tryFirstSizes;
36329
- return `${trySizes}. ${L.WeRecommendSize} ${recommendedSizeLabel}.`;
36328
+ return `${trySizes}.`;
36330
36329
  }
36331
36330
  onSignInClick() {
36332
36331
  this.nav.toScan();