@mxenabled/connect-widget 0.15.5 → 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 +18 -3
- package/dist/index.es.js +14 -30
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +14 -1
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
|
-
##
|
|
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
|
|
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
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
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
|
|
5152
|
-
var
|
|
5153
|
-
|
|
5154
|
-
|
|
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 =
|
|
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 =
|
|
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)) {
|