@ai-ecoverse/slicc-spectrum 1.40.0 → 1.41.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/README.md +3 -3
- package/dist/slicc-dummy.js +19 -5
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +13 -2
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/network.d.ts +3 -1
- package/dist/types/model/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/slicc-ui.js
CHANGED
|
@@ -10755,6 +10755,7 @@ var networkHealth = {
|
|
|
10755
10755
|
var routes = {
|
|
10756
10756
|
proxy: "Through slicc-node, which reaches every site.",
|
|
10757
10757
|
extension: "Through the SLICC Chrome extension, which reaches every site.",
|
|
10758
|
+
tailnet: "Through a Tailscale exit node, which reaches every site.",
|
|
10758
10759
|
page: "Through this page\u2019s own fetch. Sites that block cross-origin requests are out of reach.",
|
|
10759
10760
|
none: "No route to the network."
|
|
10760
10761
|
};
|
|
@@ -10778,6 +10779,7 @@ var tailnetStates = {
|
|
|
10778
10779
|
var tailnetOnly = {
|
|
10779
10780
|
proxy: "Tailnet hosts only. Everything else goes through slicc-node.",
|
|
10780
10781
|
extension: "Tailnet hosts only. Everything else goes through the SLICC extension.",
|
|
10782
|
+
tailnet: "Everything goes through your tailnet.",
|
|
10781
10783
|
page: "Tailnet hosts only. Everything else goes through this page\u2019s fetch.",
|
|
10782
10784
|
none: "Tailnet hosts only. Nothing else is reachable."
|
|
10783
10785
|
};
|
|
@@ -10788,6 +10790,15 @@ function exitNodeValue(tailnet) {
|
|
|
10788
10790
|
if (tailnet.autoExitNode) return "auto";
|
|
10789
10791
|
return tailnet.exitNodes?.find((node) => node.name === tailnet.exitNode)?.id ?? "none";
|
|
10790
10792
|
}
|
|
10793
|
+
var wholeWeb = /* @__PURE__ */ new Set([
|
|
10794
|
+
"proxy",
|
|
10795
|
+
"extension",
|
|
10796
|
+
"tailnet"
|
|
10797
|
+
]);
|
|
10798
|
+
function routeLine(status2) {
|
|
10799
|
+
const node = status2.route === "tailnet" ? status2.tailnet?.exitNode : null;
|
|
10800
|
+
return node ? `Through the Tailscale exit node ${node}, which reaches every site.` : routes[status2.route ?? "none"];
|
|
10801
|
+
}
|
|
10791
10802
|
function networkLabel(status2) {
|
|
10792
10803
|
return `Network: ${networkHealth[status2.health][1].toLowerCase()}`;
|
|
10793
10804
|
}
|
|
@@ -11192,7 +11203,7 @@ var SliccNetwork = class extends ModelElement {
|
|
|
11192
11203
|
<h2 id="state">Connection</h2>
|
|
11193
11204
|
<swc-status-light variant=${variant} data-health=${status2.health}>${label}</swc-status-light>
|
|
11194
11205
|
</div>
|
|
11195
|
-
<p data-route=${status2.route ?? "none"}>${
|
|
11206
|
+
<p data-route=${status2.route ?? "none"}>${routeLine(status2)}</p>
|
|
11196
11207
|
${status2.detail ? b`<p class="detail">${status2.detail}</p>` : A}
|
|
11197
11208
|
${status2.browser ? b`<p data-browser=${automationOf(status2.browser)} class=${status2.browser.declined ? "muted" : ""}>${automation[automationOf(status2.browser)]}${status2.browser.detail ? b` <span class="detail">${status2.browser.detail}</span>` : A}</p>` : A}
|
|
11198
11209
|
${this.model?.network?.check ? b`<div class="actions"><swc-button size="m" variant="secondary" data-action="check" ?pending=${this.checking} @click=${() => this.check()}>Check again</swc-button></div>` : A}
|
|
@@ -11212,7 +11223,7 @@ var SliccNetwork = class extends ModelElement {
|
|
|
11212
11223
|
${this.uncopied ? b`<div class="error" role="alert" data-error="copy"><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle><span>Couldn’t copy. Select the command and copy it.</span></div>` : A}`;
|
|
11213
11224
|
}
|
|
11214
11225
|
#whole(status2) {
|
|
11215
|
-
if (
|
|
11226
|
+
if (wholeWeb.has(status2.route)) {
|
|
11216
11227
|
return b`<details><summary>Other ways to reach the whole web</summary><div>${this.#ways(status2)}</div></details>`;
|
|
11217
11228
|
}
|
|
11218
11229
|
return b`<section aria-labelledby="whole">
|