@stackable-labs/cli-app-extension 1.6.2 → 1.6.3
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.js +13 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1818,7 +1818,6 @@ var startTunnel = (port) => new Promise((resolve, reject) => {
|
|
|
1818
1818
|
reject(new Error("Tunnel connection timed out after 30s"));
|
|
1819
1819
|
}, 3e4);
|
|
1820
1820
|
tunnel.once("url", (url) => {
|
|
1821
|
-
console.log(">>> > startTunnel > url:", { url });
|
|
1822
1821
|
clearTimeout(timeout);
|
|
1823
1822
|
resolve({ url, stop: () => tunnel.stop() });
|
|
1824
1823
|
});
|
|
@@ -1891,9 +1890,9 @@ var DevDashboard = ({
|
|
|
1891
1890
|
extensionId,
|
|
1892
1891
|
appId,
|
|
1893
1892
|
appName,
|
|
1894
|
-
extensionPort,
|
|
1895
|
-
previewPort,
|
|
1896
1893
|
tunnelUrl,
|
|
1894
|
+
previewPort,
|
|
1895
|
+
extensionPort,
|
|
1897
1896
|
bundleUrlUpdated,
|
|
1898
1897
|
onQuit
|
|
1899
1898
|
}) => {
|
|
@@ -1911,7 +1910,8 @@ var DevDashboard = ({
|
|
|
1911
1910
|
onQuit();
|
|
1912
1911
|
}
|
|
1913
1912
|
});
|
|
1914
|
-
const
|
|
1913
|
+
const localPreviewUrl = `http://localhost:${previewPort}`;
|
|
1914
|
+
const previewUrl = tunnelUrl ? `${tunnelUrl.replace(/\/$/, "")}/preview` : localPreviewUrl;
|
|
1915
1915
|
return /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", children: [
|
|
1916
1916
|
/* @__PURE__ */ jsx15(Banner, {}),
|
|
1917
1917
|
/* @__PURE__ */ jsxs15(
|
|
@@ -1940,9 +1940,17 @@ var DevDashboard = ({
|
|
|
1940
1940
|
] })
|
|
1941
1941
|
] }),
|
|
1942
1942
|
/* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
|
|
1943
|
+
tunnelUrl && /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1944
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Preview:" }),
|
|
1945
|
+
/* @__PURE__ */ jsx15(Text15, { children: previewUrl })
|
|
1946
|
+
] }),
|
|
1943
1947
|
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1944
1948
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Preview:" }),
|
|
1945
|
-
/* @__PURE__ */ jsx15(Text15, { children:
|
|
1949
|
+
/* @__PURE__ */ jsx15(Text15, { children: localPreviewUrl })
|
|
1950
|
+
] }),
|
|
1951
|
+
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1952
|
+
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
|
|
1953
|
+
/* @__PURE__ */ jsx15(Text15, { children: tunnelUrl || "Connecting\u2026" })
|
|
1946
1954
|
] }),
|
|
1947
1955
|
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1948
1956
|
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Extension:" }),
|
|
@@ -1950,10 +1958,6 @@ var DevDashboard = ({
|
|
|
1950
1958
|
"http://localhost:",
|
|
1951
1959
|
extensionPort
|
|
1952
1960
|
] })
|
|
1953
|
-
] }),
|
|
1954
|
-
/* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
|
|
1955
|
-
/* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
|
|
1956
|
-
/* @__PURE__ */ jsx15(Text15, { children: tunnelUrl || "Connecting\u2026" })
|
|
1957
1961
|
] })
|
|
1958
1962
|
] })
|
|
1959
1963
|
]
|