braid-ui 1.0.9 → 1.0.10
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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8745,7 +8745,12 @@ function Statement() {
|
|
|
8745
8745
|
setProgramsError(null);
|
|
8746
8746
|
try {
|
|
8747
8747
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
8748
|
-
|
|
8748
|
+
throw new Error("Network connection timeout - Unable to reach program service");
|
|
8749
|
+
const data = mockPrograms;
|
|
8750
|
+
if (typeof data === "string") {
|
|
8751
|
+
throw new Error(data);
|
|
8752
|
+
}
|
|
8753
|
+
setPrograms(data);
|
|
8749
8754
|
} catch (error) {
|
|
8750
8755
|
const errorMessage = error instanceof Error ? error.message : "Failed to load programs";
|
|
8751
8756
|
setProgramsError(errorMessage);
|
|
@@ -8764,7 +8769,11 @@ function Statement() {
|
|
|
8764
8769
|
setProductsError(null);
|
|
8765
8770
|
try {
|
|
8766
8771
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
8767
|
-
|
|
8772
|
+
const data = mockProducts;
|
|
8773
|
+
if (typeof data === "string") {
|
|
8774
|
+
throw new Error(data);
|
|
8775
|
+
}
|
|
8776
|
+
setProducts(data);
|
|
8768
8777
|
} catch (error) {
|
|
8769
8778
|
const errorMessage = error instanceof Error ? error.message : "Failed to load products";
|
|
8770
8779
|
setProductsError(errorMessage);
|