swoop-common 2.1.21 → 2.1.23
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.
|
@@ -7,5 +7,5 @@ interface Props {
|
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
export declare const useComponentPicker: () => ComponentPickerExports;
|
|
10
|
-
declare const ComponentPickerProvider: React.FC<Props>;
|
|
11
|
-
export
|
|
10
|
+
export declare const ComponentPickerProvider: React.FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -16,7 +16,7 @@ export const useComponentPicker = () => {
|
|
|
16
16
|
throw new Error("useComponentPicker used from outside selector context");
|
|
17
17
|
return picker;
|
|
18
18
|
};
|
|
19
|
-
const ComponentPickerProvider = ({ children }) => {
|
|
19
|
+
export const ComponentPickerProvider = ({ children }) => {
|
|
20
20
|
const [open, setOpen] = useState(false);
|
|
21
21
|
const changeProp = useRef(() => { });
|
|
22
22
|
const closeProp = useRef(() => { });
|
|
@@ -45,4 +45,3 @@ const ComponentPickerProvider = ({ children }) => {
|
|
|
45
45
|
React.createElement(ComponentPickerModal, { open: open, onClose: closeProp.current, onSelect: changeProp.current }),
|
|
46
46
|
children));
|
|
47
47
|
};
|
|
48
|
-
export default ComponentPickerProvider;
|
|
@@ -32,7 +32,7 @@ export const getAllPartners = () => __awaiter(void 0, void 0, void 0, function*
|
|
|
32
32
|
export const fetchComponents = (filters) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
const idToken = OpenAPI.TOKEN;
|
|
34
34
|
const query = new URLSearchParams(filters || {}).toString() || "limit=2000";
|
|
35
|
-
const response = yield fetch(`${OpenAPI.BASE}/
|
|
35
|
+
const response = yield fetch(`${OpenAPI.BASE}/components?${query}`, {
|
|
36
36
|
headers: {
|
|
37
37
|
Authorization: `Bearer ${idToken}`,
|
|
38
38
|
},
|