@swype-org/react-sdk 0.1.215 → 0.1.217

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 CHANGED
@@ -17,19 +17,6 @@ var __export = (target, all) => {
17
17
  __defProp(target, name, { get: all[name], enumerable: true });
18
18
  };
19
19
 
20
- // src/contentsquare.ts
21
- var SCRIPT_SRC = "https://t.contentsquare.net/uxa/9537de3817f8f.js";
22
- var injected = false;
23
- function loadContentsquare() {
24
- if (injected) return;
25
- if (typeof document === "undefined") return;
26
- injected = true;
27
- const script = document.createElement("script");
28
- script.src = SCRIPT_SRC;
29
- script.async = true;
30
- document.head.appendChild(script);
31
- }
32
-
33
20
  // src/theme.ts
34
21
  var darkTheme = {
35
22
  bg: "#071216",
@@ -104,15 +91,13 @@ var BlinkContext = react.createContext(null);
104
91
  function BlinkProvider({
105
92
  apiBaseUrl,
106
93
  theme = "dark",
94
+ privyAppId,
107
95
  children
108
96
  }) {
109
97
  const queryClientRef = react.useRef(null);
110
98
  if (!queryClientRef.current) {
111
99
  queryClientRef.current = new reactQuery.QueryClient();
112
100
  }
113
- react.useEffect(() => {
114
- loadContentsquare();
115
- }, []);
116
101
  const [depositAmount, setDepositAmountRaw] = react.useState(null);
117
102
  const setDepositAmount = react.useCallback((amount) => {
118
103
  setDepositAmountRaw(amount);
@@ -130,7 +115,7 @@ function BlinkProvider({
130
115
  return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: queryClientRef.current, children: /* @__PURE__ */ jsxRuntime.jsx(wagmi.WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsxRuntime.jsx(
131
116
  reactAuth.PrivyProvider,
132
117
  {
133
- appId: BLINK_PRIVY_APP_ID,
118
+ appId: privyAppId ?? BLINK_PRIVY_APP_ID,
134
119
  config: {
135
120
  appearance: {
136
121
  theme,