pollination-react-io 0.0.43-beta.2 → 0.0.43-beta.3

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.
@@ -5,4 +5,5 @@ export interface SelectProjectProps {
5
5
  client?: APIClient;
6
6
  setSelProject?: (project: Project) => void;
7
7
  queryConfig?: Partial<ProjectsApiListProjectsRequest>;
8
+ environment?: Window;
8
9
  }
@@ -14,4 +14,5 @@ export interface ComboBoxProps {
14
14
  footer?: string | ReactNode;
15
15
  noMatchText?: string;
16
16
  ref?: Ref<any>;
17
+ environment?: Window;
17
18
  }
@@ -30591,7 +30591,7 @@ var PerfectScrollbar = /*@__PURE__*/getDefaultExportFromCjs(lib);
30591
30591
 
30592
30592
  var ICON_SIZE = 18;
30593
30593
  var ComboBox = React__default.forwardRef(function ComboBox(_a, ref) {
30594
- var items = _a.items, renderItem = _a.renderItem, setSelected = _a.setSelected, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, inputStyle = _a.inputStyle, menuStyle = _a.menuStyle, inputProps = _a.inputProps, footer = _a.footer, _d = _a.noMatchText, noMatchText = _d === void 0 ? 'No matching items' : _d;
30594
+ var items = _a.items, renderItem = _a.renderItem, setSelected = _a.setSelected, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, inputStyle = _a.inputStyle, menuStyle = _a.menuStyle, inputProps = _a.inputProps, footer = _a.footer, _d = _a.noMatchText, noMatchText = _d === void 0 ? 'No matching items' : _d, environment = _a.environment;
30595
30595
  var _e = useState(items), inputItems = _e[0], setInputItems = _e[1];
30596
30596
  useEffect(function () {
30597
30597
  setInputItems(items);
@@ -30608,7 +30608,7 @@ var ComboBox = React__default.forwardRef(function ComboBox(_a, ref) {
30608
30608
  setInputItems(items);
30609
30609
  }
30610
30610
  },
30611
- // environment: window.parent
30611
+ environment: environment,
30612
30612
  }), isOpen = _f.isOpen, getToggleButtonProps = _f.getToggleButtonProps, getMenuProps = _f.getMenuProps, getInputProps = _f.getInputProps, getComboboxProps = _f.getComboboxProps, highlightedIndex = _f.highlightedIndex, getItemProps = _f.getItemProps, openMenu = _f.openMenu, selectItem = _f.selectItem, selectedItem = _f.selectedItem, inputValue = _f.inputValue;
30613
30613
  useImperativeHandle(ref, function () { return ({
30614
30614
  selectItem: selectItem,
@@ -33782,7 +33782,7 @@ var SelectAccount = function (_a) {
33782
33782
 
33783
33783
  var SelectProject = function (_a) {
33784
33784
  var _b;
33785
- var authUser = _a.authUser, client = _a.client, setSelProject = _a.setSelProject, queryConfig = _a.queryConfig;
33785
+ var authUser = _a.authUser, client = _a.client, setSelProject = _a.setSelProject, queryConfig = _a.queryConfig; _a.environment;
33786
33786
  var _c = useState(), projects = _c[0], setProjects = _c[1];
33787
33787
  var comboBoxRef = useRef();
33788
33788
  var _d = useState(false), loading = _d[0], setLoading = _d[1];