@mxenabled/connect-widget 0.15.4 → 0.16.0

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 CHANGED
@@ -52,18 +52,33 @@ const App = () => {
52
52
 
53
53
  You need to pass an object containing API endpoint callbacks as the `apiValue` prop of the ApiProvider as described in the [usage](#usage) section for the widget to work. [Here](./docs/APIDOCUMENTATION.md) is a more detailed list of the API endpoint callbacks.
54
54
 
55
- ## Developing
55
+ ## Development Set Up
56
56
 
57
57
  1. Clone project
58
58
  2. Install `Node(with npm)`. See [package.json](/package.json) for current required versions
59
59
  3. Run `npm i`
60
- 4. Make your code changes
60
+ 4. Make your code changes - [Follow Conventional Commits](#commit-message-requirements)
61
61
  5. Run `npm run build` to build the project
62
62
  6. [Link Project](#linking-for-development)
63
63
  7. Test your changes
64
- 8. Update change log, translations, and documentation as needed
64
+ 8. Update translations and documentation as needed
65
65
  9. Open Pull Request
66
66
 
67
+ ## Commit Message Requirements
68
+
69
+ _To make commits that trigger a package release, use `npx cz`, it will launch easy to follow commitizen prompts._
70
+
71
+ A new _MAJOR.MINOR.PATCH_ release will be generated if at least one of the following types are used, see [Conventional Commits Documentation](https://www.conventionalcommits.org/) for more specifics.
72
+ * `fix:` -> PATCH bump
73
+ * `feat:` -> MINOR bump
74
+
75
+ Major bump (any type with a footer of `BREAKING CHANGE:`)
76
+ ```
77
+ <any_type>: <message>
78
+
79
+ BREAKING CHANGE: <description>
80
+ ```
81
+
67
82
  ## Linking for Development
68
83
 
69
84
  For developing this package locally, we suggest you use npm link to connect your local version of the package to your client app using the package.
package/dist/index.es.js CHANGED
@@ -5131,39 +5131,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
5131
5131
  }
5132
5132
  var _baseFindIndex = baseFindIndex$2;
5133
5133
 
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;
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;
5149
5140
  }
5141
+ var _trimmedEndIndex = trimmedEndIndex$1;
5150
5142
 
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;
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;
5164
5147
  }
5148
+ var _baseTrim = baseTrim$1;
5165
5149
 
5166
- var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5150
+ var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
5167
5151
  var NAN = 0 / 0;
5168
5152
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5169
5153
  var reIsBinary = /^0b[01]+$/i;
@@ -8629,7 +8613,7 @@ var hasRequiredTrim;
8629
8613
  function requireTrim () {
8630
8614
  if (hasRequiredTrim) return trim_1;
8631
8615
  hasRequiredTrim = 1;
8632
- var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8616
+ var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
8633
8617
  function trim(string, chars, guard) {
8634
8618
  string = toString(string);
8635
8619
  if (string && (guard || chars === void 0)) {
@@ -75467,8 +75451,10 @@ const VerifyExistingMember = (props) => {
75467
75451
  [dispatch, institutions]
75468
75452
  );
75469
75453
  useEffect(() => {
75470
- focusElement(document.getElementById("connect-select-institution"));
75471
- }, []);
75454
+ if (!loading) {
75455
+ focusElement(document.getElementById("connect-select-institution"));
75456
+ }
75457
+ }, [loading]);
75472
75458
  useEffect(() => {
75473
75459
  const fetchInstitutionsProgressively = async () => {
75474
75460
  setLoading(true);
@@ -75533,6 +75519,7 @@ const VerifyExistingMember = (props) => {
75533
75519
  /* @__PURE__ */ jsxRuntimeExports.jsx(
75534
75520
  x,
75535
75521
  {
75522
+ component: "p",
75536
75523
  "data-test": "verify-existing-member-text",
75537
75524
  sx: { marginBottom: tokens.Spacing.Large },
75538
75525
  truncate: false,
@@ -75542,6 +75529,7 @@ const VerifyExistingMember = (props) => {
75542
75529
  )
75543
75530
  }
75544
75531
  ),
75532
+ /* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
75545
75533
  /* @__PURE__ */ jsxRuntimeExports.jsx(
75546
75534
  x,
75547
75535
  {