@layerfi/components 0.1.19 → 0.1.20

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.
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="corretto-19" project-jdk-type="JavaSDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/layer-react.iml" filepath="$PROJECT_DIR$/.idea/layer-react.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/dist/esm/index.js CHANGED
@@ -362,6 +362,7 @@ var LayerContext = createContext({
362
362
  apiUrl: "",
363
363
  theme: void 0,
364
364
  colors: {},
365
+ usePlaidSandbox: true,
365
366
  setTheme: () => void 0,
366
367
  getColor: (_shade) => void 0,
367
368
  setLightColor: () => void 0,
@@ -4472,11 +4473,11 @@ var LINKED_ACCOUNTS_MOCK_DATA = [
4472
4473
  import useSWR4 from "swr";
4473
4474
  var DEBUG = true;
4474
4475
  var USE_MOCK_RESPONSE_DATA = false;
4475
- var USE_PLAID_SANDBOX = true;
4476
4476
  var useLinkedAccounts = () => {
4477
- const { auth, businessId, apiUrl } = useLayerContext();
4477
+ const { auth, businessId, apiUrl, usePlaidSandbox } = useLayerContext();
4478
4478
  const [linkToken, setLinkToken] = useState12(null);
4479
4479
  const [loadingStatus, setLoadingStatus] = useState12("initial");
4480
+ const USE_PLAID_SANDBOX = usePlaidSandbox ?? true;
4480
4481
  const {
4481
4482
  data: responseData,
4482
4483
  isLoading,
@@ -9105,7 +9106,8 @@ var LayerProvider = ({
9105
9106
  children,
9106
9107
  businessAccessToken,
9107
9108
  environment = "production",
9108
- theme
9109
+ theme,
9110
+ usePlaidSandbox
9109
9111
  }) => {
9110
9112
  const defaultSWRConfig = {
9111
9113
  revalidateInterval: 0,
@@ -9127,6 +9129,7 @@ var LayerProvider = ({
9127
9129
  apiUrl,
9128
9130
  theme,
9129
9131
  colors,
9132
+ usePlaidSandbox,
9130
9133
  onboardingStep: void 0
9131
9134
  });
9132
9135
  const { data: auth } = appId !== void 0 && appSecret !== void 0 ? useSWR8(