@dev-fastn-ai/react-core 1.0.10 → 1.0.11
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/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1561,8 +1561,8 @@ const useConfigurationForm = (input) => {
|
|
|
1561
1561
|
const configurations = useConfigurations({ configurationId: input.configurationId });
|
|
1562
1562
|
const query = reactQuery.useQuery({
|
|
1563
1563
|
queryKey: ["configuration-form", input],
|
|
1564
|
-
queryFn: () => { var _a; return fastn.getConfigurationForm(Object.assign(Object.assign({}, input), { configuration: (_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.
|
|
1565
|
-
enabled: !!((_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.
|
|
1564
|
+
queryFn: () => { var _a; return fastn.getConfigurationForm(Object.assign(Object.assign({}, input), { configuration: (_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.connectorId === input.connectorId) })); },
|
|
1565
|
+
enabled: !!((_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.connectorId === input.connectorId)),
|
|
1566
1566
|
});
|
|
1567
1567
|
return query;
|
|
1568
1568
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -1559,8 +1559,8 @@ const useConfigurationForm = (input) => {
|
|
|
1559
1559
|
const configurations = useConfigurations({ configurationId: input.configurationId });
|
|
1560
1560
|
const query = useQuery({
|
|
1561
1561
|
queryKey: ["configuration-form", input],
|
|
1562
|
-
queryFn: () => { var _a; return fastn.getConfigurationForm(Object.assign(Object.assign({}, input), { configuration: (_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.
|
|
1563
|
-
enabled: !!((_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.
|
|
1562
|
+
queryFn: () => { var _a; return fastn.getConfigurationForm(Object.assign(Object.assign({}, input), { configuration: (_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.connectorId === input.connectorId) })); },
|
|
1563
|
+
enabled: !!((_a = configurations === null || configurations === void 0 ? void 0 : configurations.data) === null || _a === void 0 ? void 0 : _a.find(c => c.connectorId === input.connectorId)),
|
|
1564
1564
|
});
|
|
1565
1565
|
return query;
|
|
1566
1566
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-fastn-ai/react-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "React hooks and components for integrating Fastn AI connector marketplace into your applications. Built on top of @fastn-ai/core with React Query for optimal performance.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|