@nibssplc/cams-sdk-react 1.0.0-rc.105 → 1.0.0-rc.107

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.
@@ -1,5 +1,4 @@
1
- import "ldrs/waveform";
2
- import "ldrs/react/Waveform.css";
1
+ import 'ldrs/react/NewtonsCradle.css';
3
2
  declare const LoadingSpinner: ({ loadingText }: {
4
3
  loadingText?: string;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
package/dist/index.cjs.js CHANGED
@@ -1406,11 +1406,11 @@ function DialogTitle(_a) {
1406
1406
  return (jsxRuntime.jsx(DialogPrimitive__namespace.Title, __assign({ "data-slot": "dialog-title", className: cn("text-lg leading-none font-semibold", className) }, props)));
1407
1407
  }
1408
1408
 
1409
- var a="container_f782f4",i="inner_37f4c9",c="bar_409d0f";const r=({size:r=35,color:l="black",speed:d=1,stroke:o=3.5})=>jsxRuntime.jsx("div",{className:a,style:{"--uib-size":r+"px","--uib-color":l,"--uib-speed":d+"s","--uib-stroke":o+"px"},children:jsxRuntime.jsxs("div",{className:i,children:[jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c})]})});
1409
+ var a="container_e31963",i="inner_5211a3",c="dot_fb1bed";const d=({size:d=78,color:l="black",speed:r=1.4})=>jsxRuntime.jsx("div",{className:a,style:{"--uib-size":d+"px","--uib-color":l,"--uib-speed":r+"s"},children:jsxRuntime.jsxs("div",{className:i,children:[jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c}),jsxRuntime.jsx("div",{className:c})]})});
1410
1410
 
1411
1411
  var LoadingSpinner = function (_a) {
1412
1412
  var loadingText = _a.loadingText;
1413
- return (jsxRuntime.jsxs("div", { className: "flex flex-col justify-center items-center h-full w-full py-10", children: [jsxRuntime.jsx("script", { type: "module", defer: true, src: "https://cdn.jsdelivr.net/npm/ldrs/dist/auto/waveform.js" }), jsxRuntime.jsx(r, { size: "35", stroke: "3.5", speed: "1", color: "green" }), loadingText && (jsxRuntime.jsx("p", { className: "text-center font-semibold mt-3", children: "Loading..." }))] }));
1413
+ return (jsxRuntime.jsxs("div", { className: "flex flex-col justify-center items-center h-full w-full py-10", children: [jsxRuntime.jsx(d, { size: "35", speed: "1", color: "green" }), loadingText && (jsxRuntime.jsx("p", { className: "text-center font-semibold mt-3", children: "Loading..." }))] }));
1414
1414
  };
1415
1415
 
1416
1416
  var AuthSuccessAnimation = function (_a) {
@@ -1529,13 +1529,13 @@ var useCredentialsHandler = function (onAuthComplete) {
1529
1529
  return [2 /*return*/, true];
1530
1530
  }
1531
1531
  else {
1532
- onAuthComplete(false, response.response.data);
1532
+ onAuthComplete(false, response);
1533
1533
  return [2 /*return*/, false];
1534
1534
  }
1535
1535
  case 2:
1536
1536
  error_2 = _a.sent();
1537
1537
  console.error(error_2);
1538
- onAuthComplete(false, error_2.response.data);
1538
+ onAuthComplete(false, error_2);
1539
1539
  return [2 /*return*/, false];
1540
1540
  case 3:
1541
1541
  setLoading(false);