pollination-react-io 1.8.0 → 1.8.1
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/build/hooks/useAPIClient.d.ts +1 -1
- package/build/index.esm.js +4 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -21591,8 +21591,8 @@ var APIClient = /** @class */ (function () {
|
|
|
21591
21591
|
this.applications = new dist.ApplicationsApi(this.config);
|
|
21592
21592
|
};
|
|
21593
21593
|
/** Overwrite current configuration and re-create all api clients. */
|
|
21594
|
-
APIClient.prototype.configure = function (
|
|
21595
|
-
this.config = new dist.Configuration(
|
|
21594
|
+
APIClient.prototype.configure = function (config) {
|
|
21595
|
+
this.config = new dist.Configuration(config);
|
|
21596
21596
|
this.init();
|
|
21597
21597
|
};
|
|
21598
21598
|
return APIClient;
|
|
@@ -21605,6 +21605,7 @@ var useAPIClient = function (config) {
|
|
|
21605
21605
|
React.useEffect(function () {
|
|
21606
21606
|
if (!config)
|
|
21607
21607
|
return;
|
|
21608
|
+
client.current.configure(__assign$3({ basePath: basePath }, config));
|
|
21608
21609
|
setLoading(true);
|
|
21609
21610
|
client.current.user.getMe()
|
|
21610
21611
|
.then(function (_a) {
|
|
@@ -31885,7 +31886,7 @@ var ComboBox = React__default["default"].forwardRef(function ComboBox(_a, ref) {
|
|
|
31885
31886
|
return;
|
|
31886
31887
|
debouncedOnScrollReachEnd && debouncedOnScrollReachEnd();
|
|
31887
31888
|
} },
|
|
31888
|
-
React__default["default"].createElement("ul", __assign$3({}, getMenuProps(), { style: __assign$3(__assign$3({}, menuStyle), { display: 'flex', width: '100%', boxSizing: 'border-box', zIndex: 100, padding: 0, flexDirection: 'column' }) }), inputItems.map(function (item, i, arr) { return (React__default["default"].createElement("li", __assign$3({ className: "poll-combobox-item", style: highlightedIndex === i ? { backgroundColor: '#bde4ff' } : {}, key: "".concat(item.name, "-").concat(i) }, getItemProps({
|
|
31889
|
+
React__default["default"].createElement("ul", __assign$3({}, getMenuProps(), { style: __assign$3(__assign$3({}, menuStyle), { display: 'flex', width: '100%', boxSizing: 'border-box', zIndex: 100, padding: 0, flexDirection: 'column', margin: 0 }) }), inputItems.map(function (item, i, arr) { return (React__default["default"].createElement("li", __assign$3({ className: "poll-combobox-item", style: highlightedIndex === i ? { backgroundColor: '#bde4ff' } : {}, key: "".concat(item.name, "-").concat(i) }, getItemProps({
|
|
31889
31890
|
item: item,
|
|
31890
31891
|
index: i,
|
|
31891
31892
|
// isSelected: selectedItem && selectedItem.id === item.id,
|