@multiplatform.one/core 9.16.1 → 10.0.0
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/cjs/app/CreateApp.cjs +174 -202
- package/dist/cjs/app/CreateApp.native.cjs +227 -0
- package/dist/cjs/app/CreateApp.native.js +188 -216
- package/dist/cjs/app/CreateApp.native.js.map +1 -1
- package/dist/cjs/app/CreateRootLayout.cjs +155 -160
- package/dist/cjs/app/CreateRootLayout.native.cjs +82 -0
- package/dist/cjs/app/CreateRootLayout.native.js +54 -85
- package/dist/cjs/app/CreateRootLayout.native.js.map +1 -1
- package/dist/cjs/app/RuntimePublicConfigScript.cjs +20 -26
- package/dist/cjs/app/RuntimePublicConfigScript.native.cjs +36 -0
- package/dist/cjs/app/RuntimePublicConfigScript.native.js +20 -30
- package/dist/cjs/app/RuntimePublicConfigScript.native.js.map +1 -1
- package/dist/cjs/app/TanstackDevtools.cjs +95 -112
- package/dist/cjs/app/TanstackDevtools.native.cjs +134 -0
- package/dist/cjs/app/TanstackDevtools.native.js +99 -124
- package/dist/cjs/app/TanstackDevtools.native.js.map +1 -1
- package/dist/cjs/app/TanstackProvider.cjs +51 -66
- package/dist/cjs/app/TanstackProvider.native.cjs +47 -0
- package/dist/cjs/app/TanstackProvider.native.js +32 -39
- package/dist/cjs/app/TanstackProvider.native.js.map +1 -1
- package/dist/cjs/app/deepLinkPath.cjs +24 -28
- package/dist/cjs/app/deepLinkPath.native.cjs +41 -0
- package/dist/cjs/app/deepLinkPath.native.js +26 -29
- package/dist/cjs/app/deepLinkPath.native.js.map +1 -1
- package/dist/cjs/app/devtoolsTrigger.cjs +204 -227
- package/dist/cjs/app/devtoolsTrigger.native.cjs +307 -0
- package/dist/cjs/app/devtoolsTrigger.native.js +249 -278
- package/dist/cjs/app/devtoolsTrigger.native.js.map +1 -1
- package/dist/cjs/app/frappeSocketPort.cjs +23 -27
- package/dist/cjs/app/frappeSocketPort.native.cjs +40 -0
- package/dist/cjs/app/frappeSocketPort.native.js +25 -28
- package/dist/cjs/app/frappeSocketPort.native.js.map +1 -1
- package/dist/cjs/app/frappeSyncOptions.cjs +28 -32
- package/dist/cjs/app/frappeSyncOptions.native.cjs +41 -0
- package/dist/cjs/app/frappeSyncOptions.native.js +28 -31
- package/dist/cjs/app/frappeSyncOptions.native.js.map +1 -1
- package/dist/cjs/app/index.cjs +9 -11
- package/dist/cjs/app/index.native.cjs +22 -0
- package/dist/cjs/app/index.native.js +9 -10
- package/dist/cjs/app/index.native.js.map +1 -1
- package/dist/cjs/app/loadWalletProvider.cjs +15 -21
- package/dist/cjs/app/loadWalletProvider.native.cjs +35 -0
- package/dist/cjs/app/loadWalletProvider.native.js +22 -29
- package/dist/cjs/app/loadWalletProvider.native.js.map +1 -1
- package/dist/cjs/app/oneFrappeNavigation.cjs +29 -33
- package/dist/cjs/app/oneFrappeNavigation.native.cjs +47 -0
- package/dist/cjs/app/oneFrappeNavigation.native.js +33 -36
- package/dist/cjs/app/oneFrappeNavigation.native.js.map +1 -1
- package/dist/cjs/app/rootLayoutShared.cjs +9 -11
- package/dist/cjs/app/rootLayoutShared.native.cjs +18 -0
- package/dist/cjs/app/rootLayoutShared.native.js +9 -10
- package/dist/cjs/app/rootLayoutShared.native.js.map +1 -1
- package/dist/cjs/app/runtimePublicConfigMiddleware.cjs +31 -37
- package/dist/cjs/app/runtimePublicConfigMiddleware.native.cjs +48 -0
- package/dist/cjs/app/runtimePublicConfigMiddleware.native.js +32 -37
- package/dist/cjs/app/runtimePublicConfigMiddleware.native.js.map +1 -1
- package/dist/cjs/app/useNativeDeepLinks.cjs +14 -18
- package/dist/cjs/app/useNativeDeepLinks.native.cjs +49 -0
- package/dist/cjs/app/useNativeDeepLinks.native.js +32 -37
- package/dist/cjs/app/useNativeDeepLinks.native.js.map +1 -1
- package/dist/cjs/healthz.cjs +15 -21
- package/dist/cjs/healthz.native.cjs +28 -0
- package/dist/cjs/healthz.native.js +15 -20
- package/dist/cjs/healthz.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/layouts/CreateDefaultLayout.cjs +69 -84
- package/dist/cjs/layouts/CreateDefaultLayout.native.cjs +89 -0
- package/dist/cjs/layouts/CreateDefaultLayout.native.js +72 -86
- package/dist/cjs/layouts/CreateDefaultLayout.native.js.map +1 -1
- package/dist/cjs/layouts/index.cjs +14 -18
- package/dist/cjs/layouts/index.native.cjs +26 -0
- package/dist/cjs/layouts/index.native.js +14 -17
- package/dist/cjs/layouts/index.native.js.map +1 -1
- package/dist/esm/app/CreateApp.mjs +158 -177
- package/dist/esm/app/CreateApp.mjs.map +1 -1
- package/dist/esm/app/CreateApp.native.js +174 -194
- package/dist/esm/app/CreateApp.native.js.map +1 -1
- package/dist/esm/app/CreateRootLayout.mjs +141 -135
- package/dist/esm/app/CreateRootLayout.mjs.map +1 -1
- package/dist/esm/app/CreateRootLayout.native.js +40 -61
- package/dist/esm/app/CreateRootLayout.native.js.map +1 -1
- package/dist/esm/app/RuntimePublicConfigScript.mjs +8 -8
- package/dist/esm/app/RuntimePublicConfigScript.mjs.map +1 -1
- package/dist/esm/app/RuntimePublicConfigScript.native.js +9 -14
- package/dist/esm/app/RuntimePublicConfigScript.native.js.map +1 -1
- package/dist/esm/app/TanstackDevtools.mjs +80 -86
- package/dist/esm/app/TanstackDevtools.mjs.map +1 -1
- package/dist/esm/app/TanstackDevtools.native.js +86 -102
- package/dist/esm/app/TanstackDevtools.native.js.map +1 -1
- package/dist/esm/app/TanstackProvider.mjs +35 -39
- package/dist/esm/app/TanstackProvider.mjs.map +1 -1
- package/dist/esm/app/TanstackProvider.native.js +21 -23
- package/dist/esm/app/TanstackProvider.native.js.map +1 -1
- package/dist/esm/app/deepLinkPath.mjs +11 -10
- package/dist/esm/app/deepLinkPath.mjs.map +1 -1
- package/dist/esm/app/deepLinkPath.native.js +13 -12
- package/dist/esm/app/deepLinkPath.native.js.map +1 -1
- package/dist/esm/app/devtoolsTrigger.mjs +177 -196
- package/dist/esm/app/devtoolsTrigger.mjs.map +1 -1
- package/dist/esm/app/devtoolsTrigger.native.js +218 -244
- package/dist/esm/app/devtoolsTrigger.native.js.map +1 -1
- package/dist/esm/app/frappeSocketPort.mjs +10 -9
- package/dist/esm/app/frappeSocketPort.mjs.map +1 -1
- package/dist/esm/app/frappeSocketPort.native.js +12 -11
- package/dist/esm/app/frappeSocketPort.native.js.map +1 -1
- package/dist/esm/app/frappeSyncOptions.mjs +15 -14
- package/dist/esm/app/frappeSyncOptions.mjs.map +1 -1
- package/dist/esm/app/frappeSyncOptions.native.js +15 -14
- package/dist/esm/app/frappeSyncOptions.native.js.map +1 -1
- package/dist/esm/app/index.mjs +5 -4
- package/dist/esm/app/index.native.js +5 -4
- package/dist/esm/app/loadWalletProvider.mjs +3 -3
- package/dist/esm/app/loadWalletProvider.mjs.map +1 -1
- package/dist/esm/app/loadWalletProvider.native.js +10 -12
- package/dist/esm/app/loadWalletProvider.native.js.map +1 -1
- package/dist/esm/app/oneFrappeNavigation.mjs +17 -15
- package/dist/esm/app/oneFrappeNavigation.mjs.map +1 -1
- package/dist/esm/app/oneFrappeNavigation.native.js +21 -19
- package/dist/esm/app/oneFrappeNavigation.native.js.map +1 -1
- package/dist/esm/app/rootLayoutShared.mjs +0 -2
- package/dist/esm/app/rootLayoutShared.native.js +0 -2
- package/dist/esm/app/runtimePublicConfigMiddleware.mjs +19 -19
- package/dist/esm/app/runtimePublicConfigMiddleware.mjs.map +1 -1
- package/dist/esm/app/runtimePublicConfigMiddleware.native.js +20 -20
- package/dist/esm/app/runtimePublicConfigMiddleware.native.js.map +1 -1
- package/dist/esm/app/useNativeDeepLinks.mjs +1 -0
- package/dist/esm/app/useNativeDeepLinks.mjs.map +1 -1
- package/dist/esm/app/useNativeDeepLinks.native.js +20 -20
- package/dist/esm/app/useNativeDeepLinks.native.js.map +1 -1
- package/dist/esm/healthz.mjs +2 -3
- package/dist/esm/healthz.mjs.map +1 -1
- package/dist/esm/healthz.native.js +2 -3
- package/dist/esm/healthz.native.js.map +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/index.native.js +3 -3
- package/dist/esm/layouts/CreateDefaultLayout.mjs +58 -68
- package/dist/esm/layouts/CreateDefaultLayout.mjs.map +1 -1
- package/dist/esm/layouts/CreateDefaultLayout.native.js +62 -72
- package/dist/esm/layouts/CreateDefaultLayout.native.js.map +1 -1
- package/dist/esm/layouts/index.mjs +2 -2
- package/dist/esm/layouts/index.native.js +2 -2
- package/package.json +24 -24
- package/types/app/CreateApp.d.ts +2 -2
- package/types/app/CreateApp.d.ts.map +1 -1
- package/types/app/RuntimePublicConfigScript.d.ts +1 -1
- package/types/app/RuntimePublicConfigScript.d.ts.map +1 -1
- package/types/app/TanstackDevtools.d.ts +2 -1
- package/types/app/TanstackDevtools.d.ts.map +1 -1
- package/types/layouts/CreateDefaultLayout.d.ts +1 -1
- package/dist/esm/app/index.mjs.map +0 -1
- package/dist/esm/app/index.native.js.map +0 -1
- package/dist/esm/app/rootLayoutShared.mjs.map +0 -1
- package/dist/esm/app/rootLayoutShared.native.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/layouts/index.mjs.map +0 -1
- package/dist/esm/layouts/index.native.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"runtimePublicConfigMiddleware.native.js","names":[],"sources":["cjs/app/runtimePublicConfigMiddleware.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar runtimePublicConfigMiddleware_exports = {};\n__export(runtimePublicConfigMiddleware_exports, {\n runtimePublicConfigMiddleware: () => runtimePublicConfigMiddleware\n});\nmodule.exports = __toCommonJS(runtimePublicConfigMiddleware_exports);\nvar import_platform = require(\"@multiplatform.one/platform\");\nasync function runtimePublicConfigMiddleware(param) {\n var { next } = param;\n var _response_headers_get;\n var response = await next();\n if (!(response === null || response === void 0 ? void 0 : (_response_headers_get = response.headers.get(\"content-type\")) === null || _response_headers_get === void 0 ? void 0 : _response_headers_get.startsWith(\"text/html\"))) return response;\n if (response.headers.has(\"cache-control\")) return response;\n var html = await response.text();\n var headers = new Headers(response.headers);\n headers.delete(\"content-length\");\n return new Response(withRuntimePublicConfig(html), {\n status: response.status,\n statusText: response.statusText,\n headers\n });\n}\nfunction withRuntimePublicConfig(html) {\n if (html.includes(import_platform.runtimePublicConfigKey)) return html;\n var head = html.match(/<head(\\s[^>]*)?>/i);\n if ((head === null || head === void 0 ? void 0 : head.index) === void 0) return html;\n var at = head.index + head[0].length;\n return `${html.slice(0, at)}<script>${(0, import_platform.serializeRuntimePublicConfig)()}</script>${html.slice(at)}`;\n}\n//# sourceMappingURL=runtimePublicConfigMiddleware.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wCAAwC,CAAC;AAC7C,SAAS,uCAAuC,EAC9C,qCAAqC,8BACvC,CAAC;AACD,OAAO,UAAU,aAAa,qCAAqC;AACnE,IAAI,kBAAkB,QAAQ,6BAA6B;AAC3D,eAAe,8BAA8B,OAAO;CAClD,IAAI,EAAE,SAAS;CACf,IAAI;CACJ,IAAI,WAAW,MAAM,KAAK;CAC1B,IAAI,EAAE,aAAa,QAAQ,aAAa,KAAK,IAAI,KAAK,KAAK,wBAAwB,SAAS,QAAQ,IAAI,cAAc,OAAO,QAAQ,0BAA0B,KAAK,IAAI,KAAK,IAAI,sBAAsB,WAAW,WAAW,IAAI,OAAO;CACxO,IAAI,SAAS,QAAQ,IAAI,eAAe,GAAG,OAAO;CAClD,IAAI,OAAO,MAAM,SAAS,KAAK;CAC/B,IAAI,UAAU,IAAI,QAAQ,SAAS,OAAO;CAC1C,QAAQ,OAAO,gBAAgB;CAC/B,OAAO,IAAI,SAAS,wBAAwB,IAAI,GAAG;EACjD,QAAQ,SAAS;EACjB,YAAY,SAAS;EACrB;CACF,CAAC;AACH;AACA,SAAS,wBAAwB,MAAM;CACrC,IAAI,KAAK,SAAS,gBAAgB,sBAAsB,GAAG,OAAO;CAClE,IAAI,OAAO,KAAK,MAAM,mBAAmB;CACzC,KAAK,SAAS,QAAQ,SAAS,KAAK,IAAI,KAAK,IAAI,KAAK,WAAW,KAAK,GAAG,OAAO;CAChF,IAAI,KAAK,KAAK,QAAQ,KAAK,EAAE,CAAC;CAC9B,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE,WAAW,GAAG,gBAAgB,6BAA4B,CAAE,EAAE,YAAW,KAAK,MAAM,EAAE;AACpH"}
|
|
@@ -3,26 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var useNativeDeepLinks_exports = {};
|
|
24
|
-
__export(useNativeDeepLinks_exports, {
|
|
25
|
-
useNativeDeepLinks: () => useNativeDeepLinks
|
|
26
|
-
});
|
|
22
|
+
__export(useNativeDeepLinks_exports, { useNativeDeepLinks: () => useNativeDeepLinks });
|
|
27
23
|
module.exports = __toCommonJS(useNativeDeepLinks_exports);
|
|
28
|
-
function useNativeDeepLinks() {}
|
|
24
|
+
function useNativeDeepLinks() {}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var useNativeDeepLinks_native_exports = {};
|
|
24
|
+
__export(useNativeDeepLinks_native_exports, { useNativeDeepLinks: () => useNativeDeepLinks });
|
|
25
|
+
module.exports = __toCommonJS(useNativeDeepLinks_native_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_react_native = require("react-native");
|
|
28
|
+
var import_one = require("one");
|
|
29
|
+
var import_deepLinkPath = require("./deepLinkPath.native.js");
|
|
30
|
+
function useNativeDeepLinks() {
|
|
31
|
+
var router = (0, import_one.useRouter)();
|
|
32
|
+
(0, import_react.useEffect)(function() {
|
|
33
|
+
var cancelled = false;
|
|
34
|
+
import_react_native.Linking.getInitialURL().then(function(url) {
|
|
35
|
+
if (cancelled) return;
|
|
36
|
+
var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);
|
|
37
|
+
if (path) router.replace(path);
|
|
38
|
+
});
|
|
39
|
+
var subscription = import_react_native.Linking.addEventListener("url", function(param) {
|
|
40
|
+
var { url } = param;
|
|
41
|
+
var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);
|
|
42
|
+
if (path) router.push(path);
|
|
43
|
+
});
|
|
44
|
+
return function() {
|
|
45
|
+
cancelled = true;
|
|
46
|
+
subscription.remove();
|
|
47
|
+
};
|
|
48
|
+
}, [router]);
|
|
49
|
+
}
|
|
@@ -5,52 +5,47 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var useNativeDeepLinks_native_exports = {};
|
|
26
|
-
__export(useNativeDeepLinks_native_exports, {
|
|
27
|
-
useNativeDeepLinks: () => useNativeDeepLinks
|
|
28
|
-
});
|
|
24
|
+
__export(useNativeDeepLinks_native_exports, { useNativeDeepLinks: () => useNativeDeepLinks });
|
|
29
25
|
module.exports = __toCommonJS(useNativeDeepLinks_native_exports);
|
|
30
26
|
var import_react = require("react");
|
|
31
27
|
var import_react_native = require("react-native");
|
|
32
28
|
var import_one = require("one");
|
|
33
29
|
var import_deepLinkPath = require("./deepLinkPath.native.js");
|
|
34
30
|
function useNativeDeepLinks() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
}, [router]);
|
|
31
|
+
var router = (0, import_one.useRouter)();
|
|
32
|
+
(0, import_react.useEffect)(function() {
|
|
33
|
+
var cancelled = false;
|
|
34
|
+
import_react_native.Linking.getInitialURL().then(function(url) {
|
|
35
|
+
if (cancelled) return;
|
|
36
|
+
var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);
|
|
37
|
+
if (path) router.replace(path);
|
|
38
|
+
});
|
|
39
|
+
var subscription = import_react_native.Linking.addEventListener("url", function(param) {
|
|
40
|
+
var { url } = param;
|
|
41
|
+
var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);
|
|
42
|
+
if (path) router.push(path);
|
|
43
|
+
});
|
|
44
|
+
return function() {
|
|
45
|
+
cancelled = true;
|
|
46
|
+
subscription.remove();
|
|
47
|
+
};
|
|
48
|
+
}, [router]);
|
|
55
49
|
}
|
|
50
|
+
|
|
56
51
|
//# sourceMappingURL=useNativeDeepLinks.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"useNativeDeepLinks.native.js","names":[],"sources":["cjs/app/useNativeDeepLinks.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useNativeDeepLinks_native_exports = {};\n__export(useNativeDeepLinks_native_exports, {\n useNativeDeepLinks: () => useNativeDeepLinks\n});\nmodule.exports = __toCommonJS(useNativeDeepLinks_native_exports);\nvar import_react = require(\"react\");\nvar import_react_native = require(\"react-native\");\nvar import_one = require(\"one\");\nvar import_deepLinkPath = require(\"./deepLinkPath\");\nfunction useNativeDeepLinks() {\n var router = (0, import_one.useRouter)();\n (0, import_react.useEffect)(function() {\n var cancelled = false;\n import_react_native.Linking.getInitialURL().then(function(url) {\n if (cancelled) return;\n var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);\n if (path) router.replace(path);\n });\n var subscription = import_react_native.Linking.addEventListener(\"url\", function(param) {\n var { url } = param;\n var path = (0, import_deepLinkPath.deepLinkUrlToPath)(url);\n if (path) router.push(path);\n });\n return function() {\n cancelled = true;\n subscription.remove();\n };\n }, [\n router\n ]);\n}\n//# sourceMappingURL=useNativeDeepLinks.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oCAAoC,CAAC;AACzC,SAAS,mCAAmC,EAC1C,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,iCAAiC;AAC/D,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,sBAAsB,QAAQ,cAAc;AAChD,IAAI,aAAa,QAAQ,KAAK;AAC9B,IAAI,sBAAsB,QAAQ,0BAAgB;AAClD,SAAS,qBAAqB;CAC5B,IAAI,UAAU,GAAG,WAAW,UAAS,CAAE;CACvC,CAAC,GAAG,aAAa,UAAS,CAAE,WAAW;EACrC,IAAI,YAAY;EAChB,oBAAoB,QAAQ,cAAc,CAAC,CAAC,KAAK,SAAS,KAAK;GAC7D,IAAI,WAAW;GACf,IAAI,QAAQ,GAAG,oBAAoB,kBAAiB,CAAE,GAAG;GACzD,IAAI,MAAM,OAAO,QAAQ,IAAI;EAC/B,CAAC;EACD,IAAI,eAAe,oBAAoB,QAAQ,iBAAiB,OAAO,SAAS,OAAO;GACrF,IAAI,EAAE,QAAQ;GACd,IAAI,QAAQ,GAAG,oBAAoB,kBAAiB,CAAE,GAAG;GACzD,IAAI,MAAM,OAAO,KAAK,IAAI;EAC5B,CAAC;EACD,OAAO,WAAW;GAChB,YAAY;GACZ,aAAa,OAAO;EACtB;CACF,GAAG,CACD,MACF,CAAC;AACH"}
|
package/dist/cjs/healthz.cjs
CHANGED
|
@@ -3,30 +3,24 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var healthz_exports = {};
|
|
24
|
-
__export(healthz_exports, {
|
|
25
|
-
GET: () => GET
|
|
26
|
-
});
|
|
22
|
+
__export(healthz_exports, { GET: () => GET });
|
|
27
23
|
module.exports = __toCommonJS(healthz_exports);
|
|
28
24
|
async function GET(_request) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
25
|
+
return new Response(JSON.stringify({ status: "ok" }));
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var healthz_exports = {};
|
|
24
|
+
__export(healthz_exports, { GET: () => GET });
|
|
25
|
+
module.exports = __toCommonJS(healthz_exports);
|
|
26
|
+
async function GET(_request) {
|
|
27
|
+
return new Response(JSON.stringify({ status: "ok" }));
|
|
28
|
+
}
|
|
@@ -5,31 +5,26 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var healthz_exports = {};
|
|
26
|
-
__export(healthz_exports, {
|
|
27
|
-
GET: () => GET
|
|
28
|
-
});
|
|
24
|
+
__export(healthz_exports, { GET: () => GET });
|
|
29
25
|
module.exports = __toCommonJS(healthz_exports);
|
|
30
26
|
async function GET(_request) {
|
|
31
|
-
|
|
32
|
-
status: "ok"
|
|
33
|
-
}));
|
|
27
|
+
return new Response(JSON.stringify({ status: "ok" }));
|
|
34
28
|
}
|
|
29
|
+
|
|
35
30
|
//# sourceMappingURL=healthz.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"healthz.native.js","names":[],"sources":["cjs/healthz.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar healthz_exports = {};\n__export(healthz_exports, {\n GET: () => GET\n});\nmodule.exports = __toCommonJS(healthz_exports);\nasync function GET(_request) {\n return new Response(JSON.stringify({\n status: \"ok\"\n }));\n}\n//# sourceMappingURL=healthz.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,kBAAkB,CAAC;AACvB,SAAS,iBAAiB,EACxB,WAAW,IACb,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,eAAe,IAAI,UAAU;CAC3B,OAAO,IAAI,SAAS,KAAK,UAAU,EACjC,QAAQ,KACV,CAAC,CAAC;AACJ"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,19 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
13
|
};
|
|
14
14
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
}), mod);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
16
|
var index_exports = {};
|
|
19
17
|
module.exports = __toCommonJS(index_exports);
|
|
20
18
|
__reExport(index_exports, require("./app/index.cjs"), module.exports);
|
|
21
|
-
__reExport(index_exports, require("./layouts/index.cjs"), module.exports);
|
|
19
|
+
__reExport(index_exports, require("./layouts/index.cjs"), module.exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./app/index.native.js"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("./layouts/index.native.js"), module.exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,20 +5,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
15
|
};
|
|
16
16
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
18
|
var index_exports = {};
|
|
21
19
|
module.exports = __toCommonJS(index_exports);
|
|
22
20
|
__reExport(index_exports, require("./app/index.native.js"), module.exports);
|
|
23
21
|
__reExport(index_exports, require("./layouts/index.native.js"), module.exports);
|
|
22
|
+
|
|
24
23
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./app/index\"), module.exports);\n__reExport(index_exports, require(\"./layouts/index\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO;AAChE,WAAW,eAAe,QAAQ,2BAAiB,GAAG,OAAO,OAAO"}
|
|
@@ -3,97 +3,82 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var CreateDefaultLayout_exports = {};
|
|
24
|
-
__export(CreateDefaultLayout_exports, {
|
|
25
|
-
createDefaultLayout: () => createDefaultLayout
|
|
26
|
-
});
|
|
22
|
+
__export(CreateDefaultLayout_exports, { createDefaultLayout: () => createDefaultLayout });
|
|
27
23
|
module.exports = __toCommonJS(CreateDefaultLayout_exports);
|
|
28
24
|
var import_tamagui = require("tamagui");
|
|
29
25
|
var import_platform = require("@multiplatform.one/platform");
|
|
30
26
|
var import_platform2 = require("@multiplatform.one/platform");
|
|
31
27
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
28
|
function createDefaultLayout(options = {}) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})]
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
allExtraLayouts.push(withDebug);
|
|
93
|
-
}
|
|
94
|
-
const withDefaultLayout = (0, import_platform2.createWithLayout)(DefaultLayout, allExtraLayouts);
|
|
95
|
-
return {
|
|
96
|
-
DefaultLayout,
|
|
97
|
-
withDefaultLayout
|
|
98
|
-
};
|
|
99
|
-
}
|
|
29
|
+
const { SafeAreaWrapper, safeAreaEdges = [
|
|
30
|
+
"top",
|
|
31
|
+
"left",
|
|
32
|
+
"right"
|
|
33
|
+
], safeAreaBackground = "$background", KeyboardAvoidingWrapper, background = "$background", Toast, debug = false, extraLayouts = [] } = options;
|
|
34
|
+
function DefaultLayout({ children }) {
|
|
35
|
+
let content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
36
|
+
position: "absolute",
|
|
37
|
+
top: 0,
|
|
38
|
+
right: 0,
|
|
39
|
+
bottom: 0,
|
|
40
|
+
left: 0,
|
|
41
|
+
backgroundColor: background,
|
|
42
|
+
children: [children, Toast && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Toast, {})]
|
|
43
|
+
});
|
|
44
|
+
if (KeyboardAvoidingWrapper) {
|
|
45
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KeyboardAvoidingWrapper, {
|
|
46
|
+
flex: 1,
|
|
47
|
+
children: content
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
if (SafeAreaWrapper) {
|
|
51
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SafeAreaWrapper, {
|
|
52
|
+
edges: safeAreaEdges,
|
|
53
|
+
bg: safeAreaBackground,
|
|
54
|
+
children: content
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return content;
|
|
58
|
+
}
|
|
59
|
+
const allExtraLayouts = [...extraLayouts];
|
|
60
|
+
if (debug) {
|
|
61
|
+
const DebugView = typeof debug === "function" ? debug : void 0;
|
|
62
|
+
const withDebug = (0, import_platform2.createWithLayout)(({ children }) => {
|
|
63
|
+
if (import_platform.config.get("DEBUG") !== "1") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
64
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
|
|
65
|
+
position: "absolute",
|
|
66
|
+
top: 0,
|
|
67
|
+
right: 0,
|
|
68
|
+
bottom: 0,
|
|
69
|
+
left: 0,
|
|
70
|
+
children: [children, DebugView && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
|
|
71
|
+
position: "absolute",
|
|
72
|
+
pointerEvents: "box-none",
|
|
73
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DebugView, {})
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
allExtraLayouts.push(withDebug);
|
|
78
|
+
}
|
|
79
|
+
const withDefaultLayout = (0, import_platform2.createWithLayout)(DefaultLayout, allExtraLayouts);
|
|
80
|
+
return {
|
|
81
|
+
DefaultLayout,
|
|
82
|
+
withDefaultLayout
|
|
83
|
+
};
|
|
84
|
+
}
|