@embedreach/components 0.3.38 → 0.3.40

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.
@@ -22713,7 +22713,16 @@ const measureAndAcquireHandlers = [
22713
22713
  }
22714
22714
  });
22715
22715
  }
22716
- )
22716
+ ),
22717
+ http.post(`${HOSTNAME}/api/measure/complete-submission`, async () => {
22718
+ return HttpResponse.json({
22719
+ success: true,
22720
+ message: "Success (Sandbox)",
22721
+ data: {
22722
+ message: "Measure submission completed successfully"
22723
+ }
22724
+ });
22725
+ })
22717
22726
  ];
22718
22727
  const generateReputationResponsesData = ({
22719
22728
  platformData,
@@ -25476,20 +25485,20 @@ const SpinLoader = ({
25476
25485
  text,
25477
25486
  textSpeed = 2e3,
25478
25487
  // Default 2 seconds per text
25479
- textColor = "black"
25488
+ textColor = "black",
25489
+ footer
25480
25490
  }) => {
25481
25491
  const [currentTextIndex, setCurrentTextIndex] = useState(0);
25482
25492
  const textArray = Array.isArray(text) ? text : text ? [text] : [];
25483
25493
  useEffect(() => {
25484
25494
  if (textArray.length <= 1) return;
25485
- if (currentTextIndex >= textArray.length - 1) return;
25486
25495
  const interval = setInterval(() => {
25487
25496
  setCurrentTextIndex(
25488
- (current) => current < textArray.length - 1 ? current + 1 : current
25497
+ (current) => current < textArray.length - 1 ? current + 1 : 0
25489
25498
  );
25490
25499
  }, textSpeed);
25491
25500
  return () => clearInterval(interval);
25492
- }, [textArray.length, textSpeed, currentTextIndex]);
25501
+ }, [textArray.length, textSpeed]);
25493
25502
  return /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-center items-center h-full", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
25494
25503
  /* @__PURE__ */ jsxs(
25495
25504
  "div",
@@ -25519,6 +25528,7 @@ const SpinLoader = ({
25519
25528
  },
25520
25529
  currentTextIndex
25521
25530
  ),
25531
+ footer && /* @__PURE__ */ jsx("div", { className: "text-center mt-6", children: footer }),
25522
25532
  /* @__PURE__ */ jsx("style", { children: `
25523
25533
  .loader-container {
25524
25534
  position: relative;