@reddb-io/ui 0.4.3 → 0.4.5

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.
Files changed (47) hide show
  1. package/build/404.html +10 -10
  2. package/build/_app/immutable/chunks/{BVl6pBRc.js → B3FG5fhF.js} +6 -6
  3. package/build/_app/immutable/chunks/{Dc8lKBnh.js → BlQXYusA.js} +8 -8
  4. package/build/_app/immutable/chunks/{DWBmncSs.js → C7CNScGY.js} +1 -1
  5. package/build/_app/immutable/chunks/CA0FBK2E.js +1 -0
  6. package/build/_app/immutable/chunks/DUYiW17f.js +9 -0
  7. package/build/_app/immutable/chunks/{kV8hsQzl.js → wBgvmJJD.js} +1 -1
  8. package/build/_app/immutable/entry/{app.ClFhgICw.js → app.D8Jp8K7E.js} +2 -2
  9. package/build/_app/immutable/entry/start.D-Hfyjh7.js +1 -0
  10. package/build/_app/immutable/nodes/{0.DnxEB_UF.js → 0.BUmcOGPK.js} +2 -2
  11. package/build/_app/immutable/nodes/{1.DTJl_4yI.js → 1.BY28ghvY.js} +1 -1
  12. package/build/_app/immutable/nodes/10.B0M25chV.js +1 -0
  13. package/build/_app/immutable/nodes/{15.aWdEGw6h.js → 15.CcKAFOhX.js} +4 -4
  14. package/build/_app/version.json +1 -1
  15. package/build/analytics.html +10 -10
  16. package/build/appearance.html +10 -10
  17. package/build/ask.html +10 -10
  18. package/build/cluster.html +10 -10
  19. package/build/collections.html +10 -10
  20. package/build/graph.html +11 -12
  21. package/build/index.html +10 -10
  22. package/build/query.html +10 -10
  23. package/build/redwire-ws-spike.html +10 -10
  24. package/build/security.html +10 -10
  25. package/build/settings.html +10 -10
  26. package/build/shadow-dom-spike.html +11 -11
  27. package/dist/embed/{AnalyticsView-DJ0Y_Zv4.js → AnalyticsView-DxVm8C96.js} +2405 -2416
  28. package/dist/embed/AnalyticsView-DxVm8C96.js.map +1 -0
  29. package/dist/embed/{RedUiEmbedRoot-CoCFK0ru.js → RedUiEmbedRoot-kDChueQB.js} +11397 -11111
  30. package/dist/embed/RedUiEmbedRoot-kDChueQB.js.map +1 -0
  31. package/dist/embed/{index-DpTEAkP_.js → index-DoXUF64H.js} +4 -4
  32. package/dist/embed/{index-DpTEAkP_.js.map → index-DoXUF64H.js.map} +1 -1
  33. package/dist/embed/{index-client-mxz2no-1.js → index-client-BSNcPP6j.js} +2 -2
  34. package/dist/embed/{index-client-mxz2no-1.js.map → index-client-BSNcPP6j.js.map} +1 -1
  35. package/dist/embed/index.js +1 -1
  36. package/dist/embed/{sigma.esm-CS_13_LV.js → sigma.esm-DVyBdcK2.js} +2 -2
  37. package/dist/embed/{sigma.esm-CS_13_LV.js.map → sigma.esm-DVyBdcK2.js.map} +1 -1
  38. package/package.json +3 -3
  39. package/src/lib/Topbar.svelte +7 -6
  40. package/src/lib/reddb/connection-string.ts +18 -2
  41. package/build/_app/immutable/chunks/BhXOdBY3.js +0 -5
  42. package/build/_app/immutable/chunks/CFwxJx29.js +0 -1
  43. package/build/_app/immutable/chunks/DRlh90Cv.js +0 -1
  44. package/build/_app/immutable/entry/start.CkIHSDqO.js +0 -1
  45. package/build/_app/immutable/nodes/10.DvpOZduu.js +0 -1
  46. package/dist/embed/AnalyticsView-DJ0Y_Zv4.js.map +0 -1
  47. package/dist/embed/RedUiEmbedRoot-CoCFK0ru.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reddb-io/ui",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "private": false,
5
5
  "description": "RedDB UI components and standalone web application.",
6
6
  "type": "module",
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@aflsolutions/graphology-communities-leiden": "^1.1.1",
50
- "@reddb-io/ui-kit": "0.4.3",
51
- "@reddb-io/ui-mcp": "0.4.3",
50
+ "@reddb-io/ui-kit": "0.4.5",
51
+ "@reddb-io/ui-mcp": "0.4.5",
52
52
  "@sigma/edge-curve": "^3.1.0",
53
53
  "@sigma/node-border": "^3.0.0",
54
54
  "@tauri-apps/api": "^2.5.0",
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { Kbd } from '../../vendor/ds/kits/base/src/index.ts'
2
+ import { Kbd, Logo } from '../../vendor/ds/kits/base/src/index.ts'
3
3
  import ConnectDropdown from './ConnectDropdown.svelte'
4
4
  import ActivityIndicator from './ActivityIndicator.svelte'
5
5
  import Search from '@lucide/svelte/icons/search'
@@ -34,13 +34,14 @@
34
34
 
35
35
  <header class="h-11 flex items-center justify-between px-3.5 bg-bg-1/80 backdrop-blur-md border-b border-line-1 relative z-10">
36
36
  <div class="flex items-center gap-2.5">
37
- <a
37
+ <Logo
38
+ layout="horizontal"
39
+ size={16}
40
+ on={theme.current}
38
41
  href={router.href({ view: 'collections' })}
42
+ label="RedDB home"
39
43
  onclick={(e) => router.go({ view: 'collections' }, e)}
40
- class="font-mono font-semibold text-[13px] tracking-tight text-fg-0 no-underline hover:text-primary-text transition-colors"
41
- >
42
- red<span class="text-primary-text mx-px">·</span>ui
43
- </a>
44
+ />
44
45
  {#if showConnect}
45
46
  <div class="w-px h-[18px] bg-line-2"></div>
46
47
  <ConnectDropdown />
@@ -59,7 +59,16 @@ export function decodeConnectionString(input: string): string {
59
59
  }
60
60
  }
61
61
 
62
- /** Browser connections use HTTP. RedWire aliases retain the existing HTTP bridge port convention. */
62
+ /** Managed RedDB databases publish HTTPS on 443; their native wire and HTTP
63
+ * container ports are not browser endpoints. Self-hosted aliases keep the
64
+ * existing local HTTP bridge convention. Explicit HTTP(S) URLs stay caller-owned. */
65
+ function managedDatabaseHost(hostname: string): boolean {
66
+ const label = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
67
+ return new RegExp(
68
+ `^${label}\\.${label}\\.dbs\\.reddb\\.(?:dev|io)$`,
69
+ "i"
70
+ ).test(hostname);
71
+ }
63
72
  export function parseConnectionString(input: string): ParsedConnectionString {
64
73
  let raw = decodeConnectionString(input);
65
74
  if (/^(file|unix|red\+unix):\/\//i.test(raw)) return { url: raw };
@@ -98,7 +107,14 @@ export function parseConnectionString(input: string): ParsedConnectionString {
98
107
  url.username = "";
99
108
  url.password = "";
100
109
  }
101
- if (wire) url.port = "5055";
110
+ if (wire) {
111
+ if (managedDatabaseHost(url.hostname)) {
112
+ url.protocol = "https:";
113
+ url.port = "";
114
+ } else {
115
+ url.port = "5055";
116
+ }
117
+ }
102
118
  const endpoint = url.href.replace(/\/$/, "");
103
119
  return { url: endpoint, ...(credentials ? { credentials } : {}) };
104
120
  } catch (error) {