@betterstore/react 0.3.85 → 0.3.86

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.86
4
+
5
+ ### Patch Changes
6
+
7
+ - text for cz locale fixes
8
+
3
9
  ## 0.3.85
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -2078,7 +2078,7 @@ const transformOptions = options => {
2078
2078
  return options;
2079
2079
  };
2080
2080
 
2081
- const noop$1 = () => {};
2081
+ const noop$2 = () => {};
2082
2082
  const bindMemberFunctions = inst => {
2083
2083
  const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
2084
2084
  mems.forEach(mem => {
@@ -2204,7 +2204,7 @@ class I18n extends EventEmitter {
2204
2204
  });
2205
2205
  }
2206
2206
  this.format = this.options.interpolation.format;
2207
- if (!callback) callback = noop$1;
2207
+ if (!callback) callback = noop$2;
2208
2208
  if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2209
2209
  const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2210
2210
  if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];
@@ -2247,7 +2247,7 @@ class I18n extends EventEmitter {
2247
2247
  return deferred;
2248
2248
  }
2249
2249
  loadResources(language) {
2250
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$1;
2250
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$2;
2251
2251
  let usedCallback = callback;
2252
2252
  const usedLng = isString$3(language) ? language : this.language;
2253
2253
  if (typeof language === 'function') usedCallback = language;
@@ -2290,7 +2290,7 @@ class I18n extends EventEmitter {
2290
2290
  }
2291
2291
  if (!lngs) lngs = this.languages;
2292
2292
  if (!ns) ns = this.options.ns;
2293
- if (!callback) callback = noop$1;
2293
+ if (!callback) callback = noop$2;
2294
2294
  this.services.backendConnector.reload(lngs, ns, err => {
2295
2295
  deferred.resolve();
2296
2296
  callback(err);
@@ -2514,7 +2514,7 @@ class I18n extends EventEmitter {
2514
2514
  }
2515
2515
  cloneInstance() {
2516
2516
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2517
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$1;
2517
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$2;
2518
2518
  const forkResourceStore = options.forkResourceStore;
2519
2519
  if (forkResourceStore) delete options.forkResourceStore;
2520
2520
  const mergedOptions = {
@@ -3239,20 +3239,20 @@ const CheckoutEmbed$2 = {
3239
3239
  CustomerForm: {
3240
3240
  address: {
3241
3241
  address: "Adresa",
3242
- addressPlaceholder: "Zadejte svou adresu",
3242
+ addressPlaceholder: "Zadejte Vaši adresu",
3243
3243
  button: "Uložit adresu",
3244
3244
  city: "Město",
3245
3245
  cityPlaceholder: "Zadejte město",
3246
3246
  country: "Země",
3247
3247
  countryPlaceholder: "Zadejte svou zemi",
3248
- description: "Níže vyplňte údaje o vaší adrese.",
3249
- line1: "Adresa ulice",
3248
+ description: "Níže vyplňte údaje o Vaší adrese.",
3249
+ line1: "Ulice",
3250
3250
  line1Placeholder: "Zadejte ulici a číslo",
3251
3251
  line2: "Byt, apartmá, jednotka atd. (Volitelné)",
3252
3252
  line2Placeholder: "Byt 4B, Pokoj 123, atd.",
3253
3253
  state: "Stát (volitelné)",
3254
3254
  statePlaceholder: "Kalifornie",
3255
- title: "Zadejte svou adresu",
3255
+ title: "Zadejte Vaši adresu",
3256
3256
  zipCode: "PSČ",
3257
3257
  zipCodePlaceholder: "12345"
3258
3258
  },
@@ -3265,7 +3265,7 @@ const CheckoutEmbed$2 = {
3265
3265
  lastNamePlaceholder: "Zadejte své příjmení",
3266
3266
  phone: "Telefon",
3267
3267
  phonePlaceholder: "Zadejte své telefonní číslo",
3268
- title: "Údaje o doručení"
3268
+ title: "Kontaktní údaje"
3269
3269
  },
3270
3270
  Summary: {
3271
3271
  calculatedAtNextStep: "Vypočítáno v dalším kroku",
@@ -3284,14 +3284,15 @@ const CheckoutEmbed$2 = {
3284
3284
  },
3285
3285
  loading: "Načítání ...",
3286
3286
  Payment: {
3287
- back: "Zpět na doručení",
3288
- button: "Koupit hned teď",
3289
- description: "Všechny transakce jsou bezpečné a šifrovány.",
3287
+ back: "Zpět na výběr dopravy",
3288
+ button: "Dokončit objednávku",
3289
+ description: "Všechny transakce jsou zabezpečené a šifrované.",
3290
3290
  title: "Platba"
3291
3291
  },
3292
3292
  Shipping: {
3293
+ title: "Doprava",
3293
3294
  back: "Zpět k informacím",
3294
- button: "Pokračujte v pokladně",
3295
+ button: "Pokračovat",
3295
3296
  change: "Změnit",
3296
3297
  contact: "Kontakt:",
3297
3298
  day: "den",
@@ -3299,19 +3300,18 @@ const CheckoutEmbed$2 = {
3299
3300
  estimatedDeliveryDate: "Odhadované datum dodání:",
3300
3301
  address: "Adresa:",
3301
3302
  shipping: "Doprava:",
3302
- title: "Přeprava",
3303
3303
  description: {
3304
3304
  other: "Váš balíček bude doručen kurýrem.",
3305
- zasilkovna: "Váš balíček bude doručen do bodu vyzvednutí.",
3306
- shippedTo: "Doručeno do:"
3305
+ zasilkovna: "Vaše objednávka bude doručena na výdejní místo.",
3306
+ shippedTo: "Místo doručení:"
3307
3307
  }
3308
3308
  }
3309
3309
  };
3310
3310
  const Errors$1 = {
3311
- invalid_email: "Zadejte platnou e -mailovou adresu",
3311
+ invalid_email: "Zadejte platnou e-mailovou adresu",
3312
3312
  invalid_phone: "Zadejte platné telefonní číslo",
3313
3313
  invalid_zipCode: "Zadejte platný PSČ",
3314
- required_error: "Toto pole je nutné",
3314
+ required_error: "Toto pole je povinné",
3315
3315
  unknown_error: "Došlo k neznámé chybě",
3316
3316
  invalid_address: "Zadejte platnou adresu"
3317
3317
  };
@@ -4023,7 +4023,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
4023
4023
  return obj;
4024
4024
  };
4025
4025
 
4026
- const noop = () => {};
4026
+ const noop$1 = () => {};
4027
4027
 
4028
4028
  const toFiniteNumber = (value, defaultValue) => {
4029
4029
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
@@ -4155,7 +4155,7 @@ var utils$1 = {
4155
4155
  freezeMethods,
4156
4156
  toObjectSet,
4157
4157
  toCamelCase,
4158
- noop,
4158
+ noop: noop$1,
4159
4159
  toFiniteNumber,
4160
4160
  findKey,
4161
4161
  global: _global,
@@ -13136,7 +13136,7 @@ function useFormState(props) {
13136
13136
  errors: false,
13137
13137
  });
13138
13138
  useIsomorphicLayoutEffect$1(() => control._subscribe({
13139
- name: name,
13139
+ name,
13140
13140
  formState: _localProxyFormState.current,
13141
13141
  exact,
13142
13142
  callback: (formState) => {
@@ -13189,7 +13189,7 @@ function useWatch(props) {
13189
13189
  const _defaultValue = React.useRef(defaultValue);
13190
13190
  const [value, updateValue] = React.useState(control._getWatch(name, _defaultValue.current));
13191
13191
  useIsomorphicLayoutEffect$1(() => control._subscribe({
13192
- name: name,
13192
+ name,
13193
13193
  formState: {
13194
13194
  values: true,
13195
13195
  },
@@ -13286,8 +13286,8 @@ function useController(props) {
13286
13286
  const field = get(control._fields, name);
13287
13287
  if (field && elm) {
13288
13288
  field._f.ref = {
13289
- focus: () => elm.focus(),
13290
- select: () => elm.select(),
13289
+ focus: () => elm.focus && elm.focus(),
13290
+ select: () => elm.select && elm.select(),
13291
13291
  setCustomValidity: (message) => elm.setCustomValidity(message),
13292
13292
  reportValidity: () => elm.reportValidity(),
13293
13293
  };
@@ -13749,6 +13749,12 @@ function schemaErrorLookup(errors, _fields, name) {
13749
13749
  error: foundError,
13750
13750
  };
13751
13751
  }
13752
+ if (foundError && foundError.root && foundError.root.type) {
13753
+ return {
13754
+ name: `${fieldName}.root`,
13755
+ error: foundError.root,
13756
+ };
13757
+ }
13752
13758
  names.pop();
13753
13759
  }
13754
13760
  return {
@@ -14372,7 +14378,7 @@ function createFormControl(props = {}) {
14372
14378
  return;
14373
14379
  }
14374
14380
  const fieldValue = value[fieldKey];
14375
- const fieldName = `${name}.${fieldKey}`;
14381
+ const fieldName = name + '.' + fieldKey;
14376
14382
  const field = get(_fields, fieldName);
14377
14383
  (_names.array.has(name) ||
14378
14384
  isObject(fieldValue) ||
@@ -14971,6 +14977,7 @@ function createFormControl(props = {}) {
14971
14977
  setError,
14972
14978
  _subscribe,
14973
14979
  _runSchema,
14980
+ _focusError,
14974
14981
  _getWatch,
14975
14982
  _getDirty,
14976
14983
  _setValid,
@@ -15124,10 +15131,13 @@ function useForm(props = {}) {
15124
15131
  if (props.reValidateMode) {
15125
15132
  control._options.reValidateMode = props.reValidateMode;
15126
15133
  }
15127
- if (props.errors && !isEmptyObject(props.errors)) {
15134
+ }, [control, props.mode, props.reValidateMode]);
15135
+ React.useEffect(() => {
15136
+ if (props.errors) {
15128
15137
  control._setErrors(props.errors);
15138
+ control._focusError();
15129
15139
  }
15130
- }, [control, props.errors, props.mode, props.reValidateMode]);
15140
+ }, [control, props.errors]);
15131
15141
  React.useEffect(() => {
15132
15142
  props.shouldUnregister &&
15133
15143
  control._subjects.state.next({
@@ -22622,10 +22632,11 @@ const flip$2 = function (options) {
22622
22632
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
22623
22633
  const nextPlacement = placements[nextIndex];
22624
22634
  if (nextPlacement) {
22625
- var _overflowsData$;
22626
22635
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
22627
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
22628
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
22636
+ if (!ignoreCrossAxisOverflow ||
22637
+ // We leave the current main axis only if every placement on that axis
22638
+ // overflows the main axis.
22639
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
22629
22640
  // Try next placement and re-run the lifecycle.
22630
22641
  return {
22631
22642
  data: {
@@ -23946,7 +23957,10 @@ const computePosition = (reference, floating, options) => {
23946
23957
  });
23947
23958
  };
23948
23959
 
23949
- var index = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect;
23960
+ var isClient = typeof document !== 'undefined';
23961
+
23962
+ var noop = function noop() {};
23963
+ var index = isClient ? React.useLayoutEffect : noop;
23950
23964
 
23951
23965
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
23952
23966
  // functions
package/dist/index.mjs CHANGED
@@ -2058,7 +2058,7 @@ const transformOptions = options => {
2058
2058
  return options;
2059
2059
  };
2060
2060
 
2061
- const noop$1 = () => {};
2061
+ const noop$2 = () => {};
2062
2062
  const bindMemberFunctions = inst => {
2063
2063
  const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
2064
2064
  mems.forEach(mem => {
@@ -2184,7 +2184,7 @@ class I18n extends EventEmitter {
2184
2184
  });
2185
2185
  }
2186
2186
  this.format = this.options.interpolation.format;
2187
- if (!callback) callback = noop$1;
2187
+ if (!callback) callback = noop$2;
2188
2188
  if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2189
2189
  const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2190
2190
  if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];
@@ -2227,7 +2227,7 @@ class I18n extends EventEmitter {
2227
2227
  return deferred;
2228
2228
  }
2229
2229
  loadResources(language) {
2230
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$1;
2230
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$2;
2231
2231
  let usedCallback = callback;
2232
2232
  const usedLng = isString$3(language) ? language : this.language;
2233
2233
  if (typeof language === 'function') usedCallback = language;
@@ -2270,7 +2270,7 @@ class I18n extends EventEmitter {
2270
2270
  }
2271
2271
  if (!lngs) lngs = this.languages;
2272
2272
  if (!ns) ns = this.options.ns;
2273
- if (!callback) callback = noop$1;
2273
+ if (!callback) callback = noop$2;
2274
2274
  this.services.backendConnector.reload(lngs, ns, err => {
2275
2275
  deferred.resolve();
2276
2276
  callback(err);
@@ -2494,7 +2494,7 @@ class I18n extends EventEmitter {
2494
2494
  }
2495
2495
  cloneInstance() {
2496
2496
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2497
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$1;
2497
+ let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$2;
2498
2498
  const forkResourceStore = options.forkResourceStore;
2499
2499
  if (forkResourceStore) delete options.forkResourceStore;
2500
2500
  const mergedOptions = {
@@ -3219,20 +3219,20 @@ const CheckoutEmbed$2 = {
3219
3219
  CustomerForm: {
3220
3220
  address: {
3221
3221
  address: "Adresa",
3222
- addressPlaceholder: "Zadejte svou adresu",
3222
+ addressPlaceholder: "Zadejte Vaši adresu",
3223
3223
  button: "Uložit adresu",
3224
3224
  city: "Město",
3225
3225
  cityPlaceholder: "Zadejte město",
3226
3226
  country: "Země",
3227
3227
  countryPlaceholder: "Zadejte svou zemi",
3228
- description: "Níže vyplňte údaje o vaší adrese.",
3229
- line1: "Adresa ulice",
3228
+ description: "Níže vyplňte údaje o Vaší adrese.",
3229
+ line1: "Ulice",
3230
3230
  line1Placeholder: "Zadejte ulici a číslo",
3231
3231
  line2: "Byt, apartmá, jednotka atd. (Volitelné)",
3232
3232
  line2Placeholder: "Byt 4B, Pokoj 123, atd.",
3233
3233
  state: "Stát (volitelné)",
3234
3234
  statePlaceholder: "Kalifornie",
3235
- title: "Zadejte svou adresu",
3235
+ title: "Zadejte Vaši adresu",
3236
3236
  zipCode: "PSČ",
3237
3237
  zipCodePlaceholder: "12345"
3238
3238
  },
@@ -3245,7 +3245,7 @@ const CheckoutEmbed$2 = {
3245
3245
  lastNamePlaceholder: "Zadejte své příjmení",
3246
3246
  phone: "Telefon",
3247
3247
  phonePlaceholder: "Zadejte své telefonní číslo",
3248
- title: "Údaje o doručení"
3248
+ title: "Kontaktní údaje"
3249
3249
  },
3250
3250
  Summary: {
3251
3251
  calculatedAtNextStep: "Vypočítáno v dalším kroku",
@@ -3264,14 +3264,15 @@ const CheckoutEmbed$2 = {
3264
3264
  },
3265
3265
  loading: "Načítání ...",
3266
3266
  Payment: {
3267
- back: "Zpět na doručení",
3268
- button: "Koupit hned teď",
3269
- description: "Všechny transakce jsou bezpečné a šifrovány.",
3267
+ back: "Zpět na výběr dopravy",
3268
+ button: "Dokončit objednávku",
3269
+ description: "Všechny transakce jsou zabezpečené a šifrované.",
3270
3270
  title: "Platba"
3271
3271
  },
3272
3272
  Shipping: {
3273
+ title: "Doprava",
3273
3274
  back: "Zpět k informacím",
3274
- button: "Pokračujte v pokladně",
3275
+ button: "Pokračovat",
3275
3276
  change: "Změnit",
3276
3277
  contact: "Kontakt:",
3277
3278
  day: "den",
@@ -3279,19 +3280,18 @@ const CheckoutEmbed$2 = {
3279
3280
  estimatedDeliveryDate: "Odhadované datum dodání:",
3280
3281
  address: "Adresa:",
3281
3282
  shipping: "Doprava:",
3282
- title: "Přeprava",
3283
3283
  description: {
3284
3284
  other: "Váš balíček bude doručen kurýrem.",
3285
- zasilkovna: "Váš balíček bude doručen do bodu vyzvednutí.",
3286
- shippedTo: "Doručeno do:"
3285
+ zasilkovna: "Vaše objednávka bude doručena na výdejní místo.",
3286
+ shippedTo: "Místo doručení:"
3287
3287
  }
3288
3288
  }
3289
3289
  };
3290
3290
  const Errors$1 = {
3291
- invalid_email: "Zadejte platnou e -mailovou adresu",
3291
+ invalid_email: "Zadejte platnou e-mailovou adresu",
3292
3292
  invalid_phone: "Zadejte platné telefonní číslo",
3293
3293
  invalid_zipCode: "Zadejte platný PSČ",
3294
- required_error: "Toto pole je nutné",
3294
+ required_error: "Toto pole je povinné",
3295
3295
  unknown_error: "Došlo k neznámé chybě",
3296
3296
  invalid_address: "Zadejte platnou adresu"
3297
3297
  };
@@ -4003,7 +4003,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
4003
4003
  return obj;
4004
4004
  };
4005
4005
 
4006
- const noop = () => {};
4006
+ const noop$1 = () => {};
4007
4007
 
4008
4008
  const toFiniteNumber = (value, defaultValue) => {
4009
4009
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
@@ -4135,7 +4135,7 @@ var utils$1 = {
4135
4135
  freezeMethods,
4136
4136
  toObjectSet,
4137
4137
  toCamelCase,
4138
- noop,
4138
+ noop: noop$1,
4139
4139
  toFiniteNumber,
4140
4140
  findKey,
4141
4141
  global: _global,
@@ -13116,7 +13116,7 @@ function useFormState(props) {
13116
13116
  errors: false,
13117
13117
  });
13118
13118
  useIsomorphicLayoutEffect$1(() => control._subscribe({
13119
- name: name,
13119
+ name,
13120
13120
  formState: _localProxyFormState.current,
13121
13121
  exact,
13122
13122
  callback: (formState) => {
@@ -13169,7 +13169,7 @@ function useWatch(props) {
13169
13169
  const _defaultValue = React__default.useRef(defaultValue);
13170
13170
  const [value, updateValue] = React__default.useState(control._getWatch(name, _defaultValue.current));
13171
13171
  useIsomorphicLayoutEffect$1(() => control._subscribe({
13172
- name: name,
13172
+ name,
13173
13173
  formState: {
13174
13174
  values: true,
13175
13175
  },
@@ -13266,8 +13266,8 @@ function useController(props) {
13266
13266
  const field = get(control._fields, name);
13267
13267
  if (field && elm) {
13268
13268
  field._f.ref = {
13269
- focus: () => elm.focus(),
13270
- select: () => elm.select(),
13269
+ focus: () => elm.focus && elm.focus(),
13270
+ select: () => elm.select && elm.select(),
13271
13271
  setCustomValidity: (message) => elm.setCustomValidity(message),
13272
13272
  reportValidity: () => elm.reportValidity(),
13273
13273
  };
@@ -13729,6 +13729,12 @@ function schemaErrorLookup(errors, _fields, name) {
13729
13729
  error: foundError,
13730
13730
  };
13731
13731
  }
13732
+ if (foundError && foundError.root && foundError.root.type) {
13733
+ return {
13734
+ name: `${fieldName}.root`,
13735
+ error: foundError.root,
13736
+ };
13737
+ }
13732
13738
  names.pop();
13733
13739
  }
13734
13740
  return {
@@ -14352,7 +14358,7 @@ function createFormControl(props = {}) {
14352
14358
  return;
14353
14359
  }
14354
14360
  const fieldValue = value[fieldKey];
14355
- const fieldName = `${name}.${fieldKey}`;
14361
+ const fieldName = name + '.' + fieldKey;
14356
14362
  const field = get(_fields, fieldName);
14357
14363
  (_names.array.has(name) ||
14358
14364
  isObject(fieldValue) ||
@@ -14951,6 +14957,7 @@ function createFormControl(props = {}) {
14951
14957
  setError,
14952
14958
  _subscribe,
14953
14959
  _runSchema,
14960
+ _focusError,
14954
14961
  _getWatch,
14955
14962
  _getDirty,
14956
14963
  _setValid,
@@ -15104,10 +15111,13 @@ function useForm(props = {}) {
15104
15111
  if (props.reValidateMode) {
15105
15112
  control._options.reValidateMode = props.reValidateMode;
15106
15113
  }
15107
- if (props.errors && !isEmptyObject(props.errors)) {
15114
+ }, [control, props.mode, props.reValidateMode]);
15115
+ React__default.useEffect(() => {
15116
+ if (props.errors) {
15108
15117
  control._setErrors(props.errors);
15118
+ control._focusError();
15109
15119
  }
15110
- }, [control, props.errors, props.mode, props.reValidateMode]);
15120
+ }, [control, props.errors]);
15111
15121
  React__default.useEffect(() => {
15112
15122
  props.shouldUnregister &&
15113
15123
  control._subjects.state.next({
@@ -22602,10 +22612,11 @@ const flip$2 = function (options) {
22602
22612
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
22603
22613
  const nextPlacement = placements[nextIndex];
22604
22614
  if (nextPlacement) {
22605
- var _overflowsData$;
22606
22615
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
22607
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
22608
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
22616
+ if (!ignoreCrossAxisOverflow ||
22617
+ // We leave the current main axis only if every placement on that axis
22618
+ // overflows the main axis.
22619
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
22609
22620
  // Try next placement and re-run the lifecycle.
22610
22621
  return {
22611
22622
  data: {
@@ -23926,7 +23937,10 @@ const computePosition = (reference, floating, options) => {
23926
23937
  });
23927
23938
  };
23928
23939
 
23929
- var index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;
23940
+ var isClient = typeof document !== 'undefined';
23941
+
23942
+ var noop = function noop() {};
23943
+ var index = isClient ? useLayoutEffect : noop;
23930
23944
 
23931
23945
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
23932
23946
  // functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.85",
3
+ "version": "0.3.86",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {