@quillsql/react 2.16.5 → 2.16.6
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 +23 -44
- package/dist/index.js +23 -44
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18945,7 +18945,9 @@ var init_dataFetcher = __esm({
|
|
|
18945
18945
|
if (e instanceof Error && e.name === "AbortError") {
|
|
18946
18946
|
throw e;
|
|
18947
18947
|
}
|
|
18948
|
-
|
|
18948
|
+
if (task !== "set-section-order") {
|
|
18949
|
+
console.error("Failed to fetch:", e);
|
|
18950
|
+
}
|
|
18949
18951
|
return { error: "Failed to fetch data" };
|
|
18950
18952
|
}
|
|
18951
18953
|
};
|
|
@@ -22282,28 +22284,16 @@ var ContextProvider = ({
|
|
|
22282
22284
|
dashboardName,
|
|
22283
22285
|
sectionOrder: newSectionOrder
|
|
22284
22286
|
};
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
type: "bug",
|
|
22296
|
-
// TODO: determine type
|
|
22297
|
-
severity: "high",
|
|
22298
|
-
message: "Error setting section order",
|
|
22299
|
-
errorMessage: e.message,
|
|
22300
|
-
errorStack: e.stack,
|
|
22301
|
-
errorData: {
|
|
22302
|
-
caller: "Context",
|
|
22303
|
-
function: "loadDashboard"
|
|
22304
|
-
}
|
|
22305
|
-
});
|
|
22306
|
-
}
|
|
22287
|
+
void quillFetch({
|
|
22288
|
+
client,
|
|
22289
|
+
task: "set-section-order",
|
|
22290
|
+
metadata: body,
|
|
22291
|
+
getToken: getAuthorizationToken
|
|
22292
|
+
}).catch((error) => {
|
|
22293
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
22294
|
+
return;
|
|
22295
|
+
}
|
|
22296
|
+
});
|
|
22307
22297
|
}
|
|
22308
22298
|
}
|
|
22309
22299
|
}
|
|
@@ -23159,12 +23149,11 @@ var useDashboardInternal = (dashboardName, customFilters) => {
|
|
|
23159
23149
|
dashboardName,
|
|
23160
23150
|
sectionOrder
|
|
23161
23151
|
};
|
|
23162
|
-
|
|
23163
|
-
|
|
23164
|
-
|
|
23165
|
-
|
|
23166
|
-
|
|
23167
|
-
});
|
|
23152
|
+
void quillFetchWithToken({
|
|
23153
|
+
client,
|
|
23154
|
+
task: "set-section-order",
|
|
23155
|
+
metadata: body
|
|
23156
|
+
}).then((response) => {
|
|
23168
23157
|
Object.entries(response?.data?.newIds ?? {}).forEach(
|
|
23169
23158
|
([section, newId2]) => {
|
|
23170
23159
|
dashboardConfigDispatch({
|
|
@@ -23186,21 +23175,11 @@ var useDashboardInternal = (dashboardName, customFilters) => {
|
|
|
23186
23175
|
});
|
|
23187
23176
|
}
|
|
23188
23177
|
);
|
|
23189
|
-
}
|
|
23190
|
-
|
|
23191
|
-
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
severity: "high",
|
|
23195
|
-
message: "Error setting section order",
|
|
23196
|
-
errorMessage: e.message,
|
|
23197
|
-
errorStack: e.stack,
|
|
23198
|
-
errorData: {
|
|
23199
|
-
caller: "useDashboard",
|
|
23200
|
-
function: "setSectionOrder"
|
|
23201
|
-
}
|
|
23202
|
-
});
|
|
23203
|
-
}
|
|
23178
|
+
}).catch((error) => {
|
|
23179
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
23180
|
+
return;
|
|
23181
|
+
}
|
|
23182
|
+
});
|
|
23204
23183
|
}
|
|
23205
23184
|
};
|
|
23206
23185
|
function isDashboardFilterLoading(filterName) {
|
package/dist/index.js
CHANGED
|
@@ -18981,7 +18981,9 @@ var init_dataFetcher = __esm({
|
|
|
18981
18981
|
if (e instanceof Error && e.name === "AbortError") {
|
|
18982
18982
|
throw e;
|
|
18983
18983
|
}
|
|
18984
|
-
|
|
18984
|
+
if (task !== "set-section-order") {
|
|
18985
|
+
console.error("Failed to fetch:", e);
|
|
18986
|
+
}
|
|
18985
18987
|
return { error: "Failed to fetch data" };
|
|
18986
18988
|
}
|
|
18987
18989
|
};
|
|
@@ -22290,28 +22292,16 @@ var ContextProvider = ({
|
|
|
22290
22292
|
dashboardName,
|
|
22291
22293
|
sectionOrder: newSectionOrder
|
|
22292
22294
|
};
|
|
22293
|
-
|
|
22294
|
-
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
type: "bug",
|
|
22304
|
-
// TODO: determine type
|
|
22305
|
-
severity: "high",
|
|
22306
|
-
message: "Error setting section order",
|
|
22307
|
-
errorMessage: e.message,
|
|
22308
|
-
errorStack: e.stack,
|
|
22309
|
-
errorData: {
|
|
22310
|
-
caller: "Context",
|
|
22311
|
-
function: "loadDashboard"
|
|
22312
|
-
}
|
|
22313
|
-
});
|
|
22314
|
-
}
|
|
22295
|
+
void quillFetch({
|
|
22296
|
+
client,
|
|
22297
|
+
task: "set-section-order",
|
|
22298
|
+
metadata: body,
|
|
22299
|
+
getToken: getAuthorizationToken
|
|
22300
|
+
}).catch((error) => {
|
|
22301
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
22302
|
+
return;
|
|
22303
|
+
}
|
|
22304
|
+
});
|
|
22315
22305
|
}
|
|
22316
22306
|
}
|
|
22317
22307
|
}
|
|
@@ -23173,12 +23163,11 @@ var useDashboardInternal = (dashboardName, customFilters) => {
|
|
|
23173
23163
|
dashboardName,
|
|
23174
23164
|
sectionOrder
|
|
23175
23165
|
};
|
|
23176
|
-
|
|
23177
|
-
|
|
23178
|
-
|
|
23179
|
-
|
|
23180
|
-
|
|
23181
|
-
});
|
|
23166
|
+
void quillFetchWithToken({
|
|
23167
|
+
client,
|
|
23168
|
+
task: "set-section-order",
|
|
23169
|
+
metadata: body
|
|
23170
|
+
}).then((response) => {
|
|
23182
23171
|
Object.entries(response?.data?.newIds ?? {}).forEach(
|
|
23183
23172
|
([section, newId2]) => {
|
|
23184
23173
|
dashboardConfigDispatch({
|
|
@@ -23200,21 +23189,11 @@ var useDashboardInternal = (dashboardName, customFilters) => {
|
|
|
23200
23189
|
});
|
|
23201
23190
|
}
|
|
23202
23191
|
);
|
|
23203
|
-
}
|
|
23204
|
-
|
|
23205
|
-
|
|
23206
|
-
|
|
23207
|
-
|
|
23208
|
-
severity: "high",
|
|
23209
|
-
message: "Error setting section order",
|
|
23210
|
-
errorMessage: e.message,
|
|
23211
|
-
errorStack: e.stack,
|
|
23212
|
-
errorData: {
|
|
23213
|
-
caller: "useDashboard",
|
|
23214
|
-
function: "setSectionOrder"
|
|
23215
|
-
}
|
|
23216
|
-
});
|
|
23217
|
-
}
|
|
23192
|
+
}).catch((error) => {
|
|
23193
|
+
if (error instanceof Error && error.name === "AbortError") {
|
|
23194
|
+
return;
|
|
23195
|
+
}
|
|
23196
|
+
});
|
|
23218
23197
|
}
|
|
23219
23198
|
};
|
|
23220
23199
|
function isDashboardFilterLoading(filterName) {
|