@absolutejs/absolute 0.20.0-beta.0 → 0.20.0-beta.2
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +14 -1
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +14 -1
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +206 -47
- package/dist/build.js.map +20 -19
- package/dist/cli/config/server.js +2 -2
- package/dist/cli/index.js +16506 -11326
- package/dist/dev/client/cssUtils.ts +98 -41
- package/dist/dev/client/handlers/html.ts +75 -15
- package/dist/dev/client/handlers/htmx.ts +43 -8
- package/dist/dev/client/handlers/react.ts +114 -32
- package/dist/dev/client/handlers/rebuild.ts +28 -8
- package/dist/dev/client/handlers/svelte.ts +33 -50
- package/dist/dev/client/handlers/vue.ts +36 -45
- package/dist/dev/client/hmrClient.ts +38 -6
- package/dist/dev/client/hmrTiming.ts +141 -0
- package/dist/dev/serverBootstrap.js +20 -11
- package/dist/index.js +953 -423
- package/dist/index.js.map +27 -23
- package/dist/mobile/browser.js.map +1 -1
- package/dist/mobile/index.js +2667 -260
- package/dist/mobile/index.js.map +27 -7
- package/dist/react/index.js +16 -3
- package/dist/react/index.js.map +4 -4
- package/dist/react/jsxDevRuntimeCompat.js +22 -2
- package/dist/react/jsxDevRuntimeCompat.js.map +5 -4
- package/dist/react/jsxRuntimeCompat.js +90 -0
- package/dist/react/jsxRuntimeCompat.js.map +10 -0
- package/dist/react/server.js +16 -3
- package/dist/react/server.js.map +4 -4
- package/dist/src/build/compileVue.d.ts +1 -1
- package/dist/src/build/resolveBuildMode.d.ts +7 -0
- package/dist/src/cli/scripts/dev.d.ts +4 -1
- package/dist/src/cli/scripts/mobile.d.ts +1 -0
- package/dist/src/cli/utils.d.ts +2 -2
- package/dist/src/core/build.d.ts +1 -1
- package/dist/src/dev/clientManager.d.ts +7 -0
- package/dist/src/dev/configResolver.d.ts +2 -0
- package/dist/src/dev/moduleMapper.d.ts +1 -1
- package/dist/src/dev/moduleServer.d.ts +2 -1
- package/dist/src/dev/pathUtils.d.ts +1 -1
- package/dist/src/dev/reactComponentClassifier.d.ts +1 -1
- package/dist/src/mobile/androidConformance.d.ts +42 -0
- package/dist/src/mobile/androidEmulatorController.d.ts +100 -0
- package/dist/src/mobile/androidNativeWatcher.d.ts +19 -0
- package/dist/src/mobile/androidRelease.d.ts +51 -0
- package/dist/src/mobile/androidWebView.d.ts +46 -0
- package/dist/src/mobile/associationFiles.d.ts +49 -0
- package/dist/src/mobile/buildMetadata.d.ts +10 -0
- package/dist/src/mobile/buildPipeline.d.ts +8 -0
- package/dist/src/mobile/buildRelease.d.ts +24 -0
- package/dist/src/mobile/capacitorBundle.d.ts +28 -0
- package/dist/src/mobile/capacitorProject.d.ts +9 -0
- package/dist/src/mobile/client.d.ts +1 -1
- package/dist/src/mobile/config.d.ts +17 -0
- package/dist/src/mobile/emulatorDoctor.d.ts +25 -0
- package/dist/src/mobile/emulatorInstaller.d.ts +41 -0
- package/dist/src/mobile/index.d.ts +14 -0
- package/dist/src/mobile/iosRelease.d.ts +61 -0
- package/dist/src/mobile/materializedBundle.d.ts +14 -0
- package/dist/src/mobile/nativeDeepLinks.d.ts +5 -0
- package/dist/src/mobile/releaseArtifact.d.ts +1 -0
- package/dist/src/mobile/releaseDoctor.d.ts +13 -0
- package/dist/src/mobile/releasePublisher.d.ts +130 -0
- package/dist/src/mobile/routeMatcher.d.ts +3 -0
- package/dist/src/mobile/routeMetadataTransform.d.ts +13 -0
- package/dist/src/mobile/shellBootstrap.d.ts +1 -0
- package/dist/src/mobile/transport.d.ts +31 -0
- package/dist/src/react/hooks/useMediaQuery.d.ts +1 -1
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +1 -1
- package/dist/src/react/jsxRuntimeCompat.d.ts +7 -0
- package/dist/src/react/pageHandler.d.ts +3 -0
- package/dist/src/utils/loadConfig.d.ts +1 -0
- package/dist/src/utils/logger.d.ts +2 -0
- package/dist/src/utils/userAgentFunctions.d.ts +1 -1
- package/dist/svelte/index.js +14 -1
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +14 -1
- package/dist/svelte/server.js.map +3 -3
- package/dist/types/build.d.ts +45 -0
- package/dist/types/cli.d.ts +2 -0
- package/dist/types/globals.d.ts +14 -0
- package/dist/types/messages.d.ts +12 -0
- package/dist/vue/index.js +14 -1
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +14 -1
- package/dist/vue/server.js.map +3 -3
- package/package.json +35 -7
|
@@ -60,13 +60,33 @@ var __legacyMetadataTS = (k, v) => {
|
|
|
60
60
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
61
61
|
var __require = import.meta.require;
|
|
62
62
|
|
|
63
|
+
// src/react/jsxRuntimeCompat.ts
|
|
64
|
+
import {
|
|
65
|
+
Fragment,
|
|
66
|
+
jsx as reactJsx,
|
|
67
|
+
jsxs as reactJsxs
|
|
68
|
+
} from "react/jsx-runtime";
|
|
69
|
+
var nativeRootProps = (type, props) => {
|
|
70
|
+
if (type !== "html")
|
|
71
|
+
return props;
|
|
72
|
+
const capacitor = Reflect.get(globalThis, "Capacitor");
|
|
73
|
+
if (typeof capacitor !== "object" || capacitor === null)
|
|
74
|
+
return props;
|
|
75
|
+
const isNativePlatform = Reflect.get(capacitor, "isNativePlatform");
|
|
76
|
+
if (typeof isNativePlatform !== "function" || isNativePlatform.call(capacitor) !== true) {
|
|
77
|
+
return props;
|
|
78
|
+
}
|
|
79
|
+
return Object.assign({}, typeof props === "object" && props !== null ? props : {}, { suppressHydrationWarning: true });
|
|
80
|
+
};
|
|
81
|
+
var jsx = (type, props, key) => reactJsx(type, nativeRootProps(type, props), key);
|
|
82
|
+
var jsxs = (type, props, key) => reactJsxs(type, nativeRootProps(type, props), key);
|
|
83
|
+
|
|
63
84
|
// src/react/jsxDevRuntimeCompat.ts
|
|
64
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
65
85
|
var jsxDEV = (type, props, key, _isStaticChildren, _source, _self) => Array.isArray(props?.children) ? jsxs(type, props, key) : jsx(type, props, key);
|
|
66
86
|
export {
|
|
67
87
|
jsxDEV,
|
|
68
88
|
Fragment
|
|
69
89
|
};
|
|
70
90
|
|
|
71
|
-
//# debugId=
|
|
91
|
+
//# debugId=BED2E2FCF4EE132664756E2164756E21
|
|
72
92
|
//# sourceMappingURL=jsxDevRuntimeCompat.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/react/jsxDevRuntimeCompat.ts"],
|
|
3
|
+
"sources": ["../src/react/jsxRuntimeCompat.ts", "../src/react/jsxDevRuntimeCompat.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import {
|
|
5
|
+
"import {\n\tFragment,\n\tjsx as reactJsx,\n\tjsxs as reactJsxs\n} from 'react/jsx-runtime';\n\ntype JSXType = Parameters<typeof reactJsx>[0];\ntype JSXProps = Parameters<typeof reactJsx>[1];\ntype JSXKey = Parameters<typeof reactJsx>[2];\n\nconst nativeRootProps = (type: JSXType, props: JSXProps) => {\n\tif (type !== 'html') return props;\n\tconst capacitor: unknown = Reflect.get(globalThis, 'Capacitor');\n\tif (typeof capacitor !== 'object' || capacitor === null) return props;\n\tconst isNativePlatform: unknown = Reflect.get(\n\t\tcapacitor,\n\t\t'isNativePlatform'\n\t);\n\tif (\n\t\ttypeof isNativePlatform !== 'function' ||\n\t\tisNativePlatform.call(capacitor) !== true\n\t) {\n\t\treturn props;\n\t}\n\n\t// Capacitor's SystemBars plugin owns safe-area CSS variables on <html>.\n\t// React must preserve those native runtime attributes during hydration.\n\treturn Object.assign(\n\t\t{},\n\t\ttypeof props === 'object' && props !== null ? props : {},\n\t\t{ suppressHydrationWarning: true }\n\t);\n};\n\nexport { Fragment };\n\nexport const jsx = (type: JSXType, props: JSXProps, key?: JSXKey) =>\n\treactJsx(type, nativeRootProps(type, props), key);\n\nexport const jsxs = (type: JSXType, props: JSXProps, key?: JSXKey) =>\n\treactJsxs(type, nativeRootProps(type, props), key);\n",
|
|
6
|
+
"import { Fragment, jsx, jsxs } from './jsxRuntimeCompat';\n\ntype JSXType = Parameters<typeof jsx>[0];\ntype JSXKey = Parameters<typeof jsx>[2];\ntype JSXProps = Parameters<typeof jsx>[1] & {\n\tchildren?: unknown;\n};\n\nexport { Fragment };\n\nexport const jsxDEV = (\n\ttype: JSXType,\n\tprops: JSXProps,\n\tkey?: JSXKey,\n\t_isStaticChildren?: boolean,\n\t_source?: unknown,\n\t_self?: unknown\n) =>\n\tArray.isArray(props?.children)\n\t\t? jsxs(type, props, key)\n\t\t: jsx(type, props, key);\n"
|
|
6
7
|
],
|
|
7
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;
|
|
8
|
-
"debugId": "
|
|
8
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,SAEC;AAAA,UACA;AAAA;AAOD,IAAM,kBAAkB,CAAC,MAAe,UAAoB;AAAA,EAC3D,IAAI,SAAS;AAAA,IAAQ,OAAO;AAAA,EAC5B,MAAM,YAAqB,QAAQ,IAAI,YAAY,WAAW;AAAA,EAC9D,IAAI,OAAO,cAAc,YAAY,cAAc;AAAA,IAAM,OAAO;AAAA,EAChE,MAAM,mBAA4B,QAAQ,IACzC,WACA,kBACD;AAAA,EACA,IACC,OAAO,qBAAqB,cAC5B,iBAAiB,KAAK,SAAS,MAAM,MACpC;AAAA,IACD,OAAO;AAAA,EACR;AAAA,EAIA,OAAO,OAAO,OACb,CAAC,GACD,OAAO,UAAU,YAAY,UAAU,OAAO,QAAQ,CAAC,GACvD,EAAE,0BAA0B,KAAK,CAClC;AAAA;AAKM,IAAM,MAAM,CAAC,MAAe,OAAiB,QACnD,SAAS,MAAM,gBAAgB,MAAM,KAAK,GAAG,GAAG;AAE1C,IAAM,OAAO,CAAC,MAAe,OAAiB,QACpD,UAAU,MAAM,gBAAgB,MAAM,KAAK,GAAG,GAAG;;;AC9B3C,IAAM,SAAS,CACrB,MACA,OACA,KACA,mBACA,SACA,UAEA,MAAM,QAAQ,OAAO,QAAQ,IAC1B,KAAK,MAAM,OAAO,GAAG,IACrB,IAAI,MAAM,OAAO,GAAG;",
|
|
9
|
+
"debugId": "BED2E2FCF4EE132664756E2164756E21",
|
|
9
10
|
"names": []
|
|
10
11
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
function __accessProp(key) {
|
|
8
|
+
return this[key];
|
|
9
|
+
}
|
|
10
|
+
var __toESMCache_node;
|
|
11
|
+
var __toESMCache_esm;
|
|
12
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
+
var canCache = mod != null && typeof mod === "object";
|
|
14
|
+
if (canCache) {
|
|
15
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
16
|
+
var cached = cache.get(mod);
|
|
17
|
+
if (cached)
|
|
18
|
+
return cached;
|
|
19
|
+
}
|
|
20
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
|
+
for (let key of __getOwnPropNames(mod))
|
|
23
|
+
if (!__hasOwnProp.call(to, key))
|
|
24
|
+
__defProp(to, key, {
|
|
25
|
+
get: __accessProp.bind(mod, key),
|
|
26
|
+
enumerable: true
|
|
27
|
+
});
|
|
28
|
+
if (canCache)
|
|
29
|
+
cache.set(mod, to);
|
|
30
|
+
return to;
|
|
31
|
+
};
|
|
32
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
33
|
+
var __returnValue = (v) => v;
|
|
34
|
+
function __exportSetter(name, newValue) {
|
|
35
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
36
|
+
}
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, {
|
|
40
|
+
get: all[name],
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
set: __exportSetter.bind(all, name)
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
47
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
48
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
49
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
50
|
+
else
|
|
51
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
52
|
+
if (d = decorators[i])
|
|
53
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
54
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
55
|
+
};
|
|
56
|
+
var __legacyMetadataTS = (k, v) => {
|
|
57
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
58
|
+
return Reflect.metadata(k, v);
|
|
59
|
+
};
|
|
60
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
61
|
+
var __require = import.meta.require;
|
|
62
|
+
|
|
63
|
+
// src/react/jsxRuntimeCompat.ts
|
|
64
|
+
import {
|
|
65
|
+
Fragment,
|
|
66
|
+
jsx as reactJsx,
|
|
67
|
+
jsxs as reactJsxs
|
|
68
|
+
} from "react/jsx-runtime";
|
|
69
|
+
var nativeRootProps = (type, props) => {
|
|
70
|
+
if (type !== "html")
|
|
71
|
+
return props;
|
|
72
|
+
const capacitor = Reflect.get(globalThis, "Capacitor");
|
|
73
|
+
if (typeof capacitor !== "object" || capacitor === null)
|
|
74
|
+
return props;
|
|
75
|
+
const isNativePlatform = Reflect.get(capacitor, "isNativePlatform");
|
|
76
|
+
if (typeof isNativePlatform !== "function" || isNativePlatform.call(capacitor) !== true) {
|
|
77
|
+
return props;
|
|
78
|
+
}
|
|
79
|
+
return Object.assign({}, typeof props === "object" && props !== null ? props : {}, { suppressHydrationWarning: true });
|
|
80
|
+
};
|
|
81
|
+
var jsx = (type, props, key) => reactJsx(type, nativeRootProps(type, props), key);
|
|
82
|
+
var jsxs = (type, props, key) => reactJsxs(type, nativeRootProps(type, props), key);
|
|
83
|
+
export {
|
|
84
|
+
jsxs,
|
|
85
|
+
jsx,
|
|
86
|
+
Fragment
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
//# debugId=F5368E69FFEAB3C064756E2164756E21
|
|
90
|
+
//# sourceMappingURL=jsxRuntimeCompat.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/react/jsxRuntimeCompat.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import {\n\tFragment,\n\tjsx as reactJsx,\n\tjsxs as reactJsxs\n} from 'react/jsx-runtime';\n\ntype JSXType = Parameters<typeof reactJsx>[0];\ntype JSXProps = Parameters<typeof reactJsx>[1];\ntype JSXKey = Parameters<typeof reactJsx>[2];\n\nconst nativeRootProps = (type: JSXType, props: JSXProps) => {\n\tif (type !== 'html') return props;\n\tconst capacitor: unknown = Reflect.get(globalThis, 'Capacitor');\n\tif (typeof capacitor !== 'object' || capacitor === null) return props;\n\tconst isNativePlatform: unknown = Reflect.get(\n\t\tcapacitor,\n\t\t'isNativePlatform'\n\t);\n\tif (\n\t\ttypeof isNativePlatform !== 'function' ||\n\t\tisNativePlatform.call(capacitor) !== true\n\t) {\n\t\treturn props;\n\t}\n\n\t// Capacitor's SystemBars plugin owns safe-area CSS variables on <html>.\n\t// React must preserve those native runtime attributes during hydration.\n\treturn Object.assign(\n\t\t{},\n\t\ttypeof props === 'object' && props !== null ? props : {},\n\t\t{ suppressHydrationWarning: true }\n\t);\n};\n\nexport { Fragment };\n\nexport const jsx = (type: JSXType, props: JSXProps, key?: JSXKey) =>\n\treactJsx(type, nativeRootProps(type, props), key);\n\nexport const jsxs = (type: JSXType, props: JSXProps, key?: JSXKey) =>\n\treactJsxs(type, nativeRootProps(type, props), key);\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,SAEC;AAAA,UACA;AAAA;AAOD,IAAM,kBAAkB,CAAC,MAAe,UAAoB;AAAA,EAC3D,IAAI,SAAS;AAAA,IAAQ,OAAO;AAAA,EAC5B,MAAM,YAAqB,QAAQ,IAAI,YAAY,WAAW;AAAA,EAC9D,IAAI,OAAO,cAAc,YAAY,cAAc;AAAA,IAAM,OAAO;AAAA,EAChE,MAAM,mBAA4B,QAAQ,IACzC,WACA,kBACD;AAAA,EACA,IACC,OAAO,qBAAqB,cAC5B,iBAAiB,KAAK,SAAS,MAAM,MACpC;AAAA,IACD,OAAO;AAAA,EACR;AAAA,EAIA,OAAO,OAAO,OACb,CAAC,GACD,OAAO,UAAU,YAAY,UAAU,OAAO,QAAQ,CAAC,GACvD,EAAE,0BAA0B,KAAK,CAClC;AAAA;AAKM,IAAM,MAAM,CAAC,MAAe,OAAiB,QACnD,SAAS,MAAM,gBAAgB,MAAM,KAAK,GAAG,GAAG;AAE1C,IAAM,OAAO,CAAC,MAAe,OAAiB,QACpD,UAAU,MAAM,gBAAgB,MAAM,KAAK,GAAG,GAAG;",
|
|
8
|
+
"debugId": "F5368E69FFEAB3C064756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
package/dist/react/server.js
CHANGED
|
@@ -1011,6 +1011,19 @@ var colors2, frameworkColors, formatPath = (filePath) => {
|
|
|
1011
1011
|
const errorMsg = error instanceof Error ? error.message : error;
|
|
1012
1012
|
const fullMessage = `${colors2.red}error${colors2.reset} ${message}${errorMsg ? `: ${errorMsg}` : ""}`;
|
|
1013
1013
|
console.error(`${timestamp} ${tag} ${fullMessage}`);
|
|
1014
|
+
}, logHmrClientUpdate = (path, framework, duration, target, serverMs, clientMs, outcome = "applied", kind) => {
|
|
1015
|
+
const timestamp = `${colors2.dim}${formatTimestamp()}${colors2.reset}`;
|
|
1016
|
+
const targetLabel = target.startsWith("capacitor-") ? target.slice("capacitor-".length) : target;
|
|
1017
|
+
const tag = `${colors2.cyan}[hmr:${targetLabel}]${colors2.reset}`;
|
|
1018
|
+
const pathColor = framework ? getFrameworkColor(framework) : colors2.white;
|
|
1019
|
+
const breakdown = serverMs === undefined || clientMs === undefined ? "" : `; server ${serverMs}ms, client ${clientMs}ms`;
|
|
1020
|
+
let action = "failed after";
|
|
1021
|
+
if (outcome === "applied")
|
|
1022
|
+
action = "applied in";
|
|
1023
|
+
else if (outcome === "reloaded")
|
|
1024
|
+
action = "falling back to reload after";
|
|
1025
|
+
const kindLabel = kind ? `${kind} ` : "";
|
|
1026
|
+
console.log(`${timestamp} ${tag} ${framework ?? "update"} ${kindLabel}${pathColor}${formatPath(path)}${colors2.reset} ${colors2.dim}${action} ${duration}ms${breakdown}${colors2.reset}`);
|
|
1014
1027
|
}, logHmrUpdate = (path, framework, duration) => {
|
|
1015
1028
|
log("hmr update", { duration, framework, path });
|
|
1016
1029
|
}, logInfo = (message) => {
|
|
@@ -2191,8 +2204,8 @@ var handleReactPageRequest = async (input) => {
|
|
|
2191
2204
|
const requestPathname = resolveRequestPathname(request);
|
|
2192
2205
|
const maybeProps = requestPathname !== undefined && (!userProps || !("url" in userProps)) ? withRequestUrl(userProps, requestPathname) : userProps;
|
|
2193
2206
|
const pageName = Page.name || Page.displayName || "";
|
|
2194
|
-
const pageId = pageName || resolvedIndex;
|
|
2195
|
-
const currentContract = `react:${pageId}:${ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION}`;
|
|
2207
|
+
const pageId = input.__absoluteMobile?.pageId ?? (pageName || resolvedIndex);
|
|
2208
|
+
const currentContract = input.__absoluteMobile?.contract ?? `react:${pageId}:${ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION}`;
|
|
2196
2209
|
const mobileResponse = finalizeAbsoluteMobilePage({
|
|
2197
2210
|
compatibility: {
|
|
2198
2211
|
framework: "react",
|
|
@@ -2256,5 +2269,5 @@ export {
|
|
|
2256
2269
|
handleReactPageRequest
|
|
2257
2270
|
};
|
|
2258
2271
|
|
|
2259
|
-
//# debugId=
|
|
2272
|
+
//# debugId=823109CB5C4C5BF664756E2164756E21
|
|
2260
2273
|
//# sourceMappingURL=server.js.map
|