@dev-fastn-ai/react-core 2.0.7 → 2.0.8
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 +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1507,7 +1507,7 @@ function getSubmitHandler({ configuration, configurationId, connectorId, connect
|
|
|
1507
1507
|
* Extensible for custom loaders.
|
|
1508
1508
|
*/
|
|
1509
1509
|
async function fetchOptions(context, pagination, resetCursor = false, query) {
|
|
1510
|
-
var _a, _b;
|
|
1510
|
+
var _a, _b, _c;
|
|
1511
1511
|
const config = getConfig();
|
|
1512
1512
|
try {
|
|
1513
1513
|
const { data } = await getFieldData({
|
|
@@ -1545,7 +1545,7 @@ async function fetchOptions(context, pagination, resetCursor = false, query) {
|
|
|
1545
1545
|
options: newOptions,
|
|
1546
1546
|
pagination: Object.assign(Object.assign({}, pagination), { cursor, offset: newOffset, total,
|
|
1547
1547
|
hasNextPage, loaded: newOptions.length }),
|
|
1548
|
-
searchable:
|
|
1548
|
+
searchable: (_c = response === null || response === void 0 ? void 0 : response.searchable) !== null && _c !== void 0 ? _c : false,
|
|
1549
1549
|
};
|
|
1550
1550
|
}
|
|
1551
1551
|
catch (error) {
|
package/dist/index.esm.js
CHANGED
|
@@ -1505,7 +1505,7 @@ function getSubmitHandler({ configuration, configurationId, connectorId, connect
|
|
|
1505
1505
|
* Extensible for custom loaders.
|
|
1506
1506
|
*/
|
|
1507
1507
|
async function fetchOptions(context, pagination, resetCursor = false, query) {
|
|
1508
|
-
var _a, _b;
|
|
1508
|
+
var _a, _b, _c;
|
|
1509
1509
|
const config = getConfig();
|
|
1510
1510
|
try {
|
|
1511
1511
|
const { data } = await getFieldData({
|
|
@@ -1543,7 +1543,7 @@ async function fetchOptions(context, pagination, resetCursor = false, query) {
|
|
|
1543
1543
|
options: newOptions,
|
|
1544
1544
|
pagination: Object.assign(Object.assign({}, pagination), { cursor, offset: newOffset, total,
|
|
1545
1545
|
hasNextPage, loaded: newOptions.length }),
|
|
1546
|
-
searchable:
|
|
1546
|
+
searchable: (_c = response === null || response === void 0 ? void 0 : response.searchable) !== null && _c !== void 0 ? _c : false,
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
1549
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-fastn-ai/react-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
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",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://docs.fastn.ai",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@dev-fastn-ai/core": "^2.0.
|
|
62
|
+
"@dev-fastn-ai/core": "^2.0.5",
|
|
63
63
|
"@types/lodash": "^4.17.20",
|
|
64
64
|
"lodash": "^4.17.21"
|
|
65
65
|
},
|