@swype-org/react-sdk 0.1.214 → 0.1.216
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 +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17,6 +17,19 @@ 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
|
+
|
|
20
33
|
// src/theme.ts
|
|
21
34
|
var darkTheme = {
|
|
22
35
|
bg: "#071216",
|
|
@@ -97,6 +110,9 @@ function BlinkProvider({
|
|
|
97
110
|
if (!queryClientRef.current) {
|
|
98
111
|
queryClientRef.current = new reactQuery.QueryClient();
|
|
99
112
|
}
|
|
113
|
+
react.useEffect(() => {
|
|
114
|
+
loadContentsquare();
|
|
115
|
+
}, []);
|
|
100
116
|
const [depositAmount, setDepositAmountRaw] = react.useState(null);
|
|
101
117
|
const setDepositAmount = react.useCallback((amount) => {
|
|
102
118
|
setDepositAmountRaw(amount);
|