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.js CHANGED
@@ -8713,7 +8713,12 @@ function Statement() {
8713
8713
  setProgramsError(null);
8714
8714
  try {
8715
8715
  await new Promise((resolve) => setTimeout(resolve, 1e3));
8716
- setPrograms(mockPrograms);
8716
+ throw new Error("Network connection timeout - Unable to reach program service");
8717
+ const data = mockPrograms;
8718
+ if (typeof data === "string") {
8719
+ throw new Error(data);
8720
+ }
8721
+ setPrograms(data);
8717
8722
  } catch (error) {
8718
8723
  const errorMessage = error instanceof Error ? error.message : "Failed to load programs";
8719
8724
  setProgramsError(errorMessage);
@@ -8732,7 +8737,11 @@ function Statement() {
8732
8737
  setProductsError(null);
8733
8738
  try {
8734
8739
  await new Promise((resolve) => setTimeout(resolve, 1e3));
8735
- setProducts(mockProducts);
8740
+ const data = mockProducts;
8741
+ if (typeof data === "string") {
8742
+ throw new Error(data);
8743
+ }
8744
+ setProducts(data);
8736
8745
  } catch (error) {
8737
8746
  const errorMessage = error instanceof Error ? error.message : "Failed to load products";
8738
8747
  setProductsError(errorMessage);