@mxenabled/connect-widget 0.10.2 → 0.10.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/index.es.js CHANGED
@@ -5131,23 +5131,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5131
5131
  }
5132
5132
  var _baseFindIndex = baseFindIndex$2;
5133
5133
 
5134
- var reWhitespace = /\s/;
5135
- function trimmedEndIndex$1(string) {
5136
- var index = string.length;
5137
- while (index-- && reWhitespace.test(string.charAt(index))) {
5138
- }
5139
- return index;
5134
+ var _trimmedEndIndex;
5135
+ var hasRequired_trimmedEndIndex;
5136
+
5137
+ function require_trimmedEndIndex () {
5138
+ if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
5139
+ hasRequired_trimmedEndIndex = 1;
5140
+ var reWhitespace = /\s/;
5141
+ function trimmedEndIndex(string) {
5142
+ var index = string.length;
5143
+ while (index-- && reWhitespace.test(string.charAt(index))) {
5144
+ }
5145
+ return index;
5146
+ }
5147
+ _trimmedEndIndex = trimmedEndIndex;
5148
+ return _trimmedEndIndex;
5140
5149
  }
5141
- var _trimmedEndIndex = trimmedEndIndex$1;
5142
5150
 
5143
- var trimmedEndIndex = _trimmedEndIndex;
5144
- var reTrimStart = /^\s+/;
5145
- function baseTrim$1(string) {
5146
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5151
+ var _baseTrim;
5152
+ var hasRequired_baseTrim;
5153
+
5154
+ function require_baseTrim () {
5155
+ if (hasRequired_baseTrim) return _baseTrim;
5156
+ hasRequired_baseTrim = 1;
5157
+ var trimmedEndIndex = require_trimmedEndIndex();
5158
+ var reTrimStart = /^\s+/;
5159
+ function baseTrim(string) {
5160
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5161
+ }
5162
+ _baseTrim = baseTrim;
5163
+ return _baseTrim;
5147
5164
  }
5148
- var _baseTrim = baseTrim$1;
5149
5165
 
5150
- var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5166
+ var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5151
5167
  var NAN = 0 / 0;
5152
5168
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5153
5169
  var reIsBinary = /^0b[01]+$/i;
@@ -8612,7 +8628,7 @@ var hasRequiredTrim;
8612
8628
  function requireTrim () {
8613
8629
  if (hasRequiredTrim) return trim_1;
8614
8630
  hasRequiredTrim = 1;
8615
- var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8631
+ var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8616
8632
  function trim(string, chars, guard) {
8617
8633
  string = toString(string);
8618
8634
  if (string && (guard || chars === void 0)) {
@@ -74045,8 +74061,10 @@ const getStyles$l = (tokens) => ({
74045
74061
  flexDirection: "column"
74046
74062
  },
74047
74063
  svg: {
74064
+ display: "flex",
74065
+ alignItems: "center",
74048
74066
  margin: "0 auto",
74049
- width: 200
74067
+ width: 240
74050
74068
  },
74051
74069
  title: {
74052
74070
  marginBottom: tokens.Spacing.XSmall
@@ -76418,6 +76436,7 @@ const DynamicDisclosure = React__default.forwardRef(
76418
76436
  const footer = /* @__PURE__ */ jsxRuntimeExports.jsx(
76419
76437
  Button$2,
76420
76438
  {
76439
+ "data-test": "consent-button",
76421
76440
  disabled: isButtonDisabled,
76422
76441
  fullWidth: true,
76423
76442
  onClick: () => {
@@ -76507,6 +76526,7 @@ const DynamicDisclosure = React__default.forwardRef(
76507
76526
  !["en-us", "en-ca"].includes(initialLocal) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
76508
76527
  Link$1,
76509
76528
  {
76529
+ "data-test": "translation-button",
76510
76530
  onClick: () => {
76511
76531
  const locale = getLocale();
76512
76532
  setLocale(locale === "en" ? initialLocal : "en");