@ultrst-armada/floks 2.0.11 → 2.0.13

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "2.0.11",
5
- "sourceCommit": "40bc1efdb6aaa69d3e212d99a89e8e3adc8d3356",
4
+ "version": "2.0.13",
5
+ "sourceCommit": "0022bbdbaf23acce946990c79bb3f76703cc40c8",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "44758977972"
7
+ "workflowRunId": "44919039114"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -20,6 +20,12 @@ import {
20
20
  useCanvas2DCoordinates,
21
21
  useCanvas2DMagnetic
22
22
  } from "./chunk-ZDADZVQ2.js";
23
+ import {
24
+ Tile,
25
+ TileCreateButton,
26
+ TileGrid,
27
+ useTileMenu
28
+ } from "./chunk-SA3JADUG.js";
23
29
  import {
24
30
  PredictiveGhostNodeCard,
25
31
  PredictiveHudToolbar,
@@ -29,32 +35,10 @@ import {
29
35
  getSocketLocalOffset,
30
36
  getSocketScreenPosition
31
37
  } from "./chunk-FPRATI44.js";
32
- import {
33
- Tile,
34
- TileCreateButton,
35
- TileGrid,
36
- useTileMenu
37
- } from "./chunk-SA3JADUG.js";
38
38
  import {
39
39
  AikoModule,
40
40
  EmbeddedAikoModule
41
41
  } from "./chunk-OH7S4XFZ.js";
42
- import {
43
- CanvasViewport,
44
- InfiniteCanvas,
45
- MiniMap,
46
- useCanvas
47
- } from "./chunk-34YRDZPJ.js";
48
- import {
49
- DockBar,
50
- DockItem,
51
- useDock
52
- } from "./chunk-6VB74RCH.js";
53
- import {
54
- MonacoEditor,
55
- skipoDarkTheme,
56
- useMonaco
57
- } from "./chunk-KAKAFGVH.js";
58
42
  import {
59
43
  UiAuthoringBindingEditor,
60
44
  UiAuthoringInspector,
@@ -73,6 +57,22 @@ import {
73
57
  setAuthoringOperations,
74
58
  updateAuthoringNode
75
59
  } from "./chunk-CI4C6DJR.js";
60
+ import {
61
+ CanvasViewport,
62
+ InfiniteCanvas,
63
+ MiniMap,
64
+ useCanvas
65
+ } from "./chunk-34YRDZPJ.js";
66
+ import {
67
+ DockBar,
68
+ DockItem,
69
+ useDock
70
+ } from "./chunk-6VB74RCH.js";
71
+ import {
72
+ MonacoEditor,
73
+ skipoDarkTheme,
74
+ useMonaco
75
+ } from "./chunk-KAKAFGVH.js";
76
76
  import {
77
77
  FodModule,
78
78
  filterRemoteDefinitions,
@@ -50,15 +50,29 @@ var GoogleIcon = ({ size = 14, className = "" }) => /* @__PURE__ */ jsxs("svg",
50
50
  ] });
51
51
  var GoogleSignInButton = ({
52
52
  onSignIn,
53
+ href,
53
54
  disabled = false,
54
55
  loading = false,
55
56
  label = "CONTINUE WITH GOOGLE",
56
57
  className = ""
57
- }) => /* @__PURE__ */ jsxs(
58
+ }) => href ? /* @__PURE__ */ jsxs(
59
+ "a",
60
+ {
61
+ href,
62
+ "aria-label": label,
63
+ "aria-disabled": disabled || loading,
64
+ onClick: disabled || loading ? (event) => event.preventDefault() : void 0,
65
+ className: `w-full py-2.5 text-[10px] font-black border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-bg)] hover:bg-[var(--skipo-surface-hover,var(--skipo-surface))] text-[var(--skipo-text)] flex items-center justify-center gap-2.5 transition-colors cursor-pointer select-none ${disabled || loading ? "opacity-50 pointer-events-none" : ""} ${className}`,
66
+ children: [
67
+ loading ? /* @__PURE__ */ jsx("span", { className: "inline-block w-3.5 h-3.5 border-2 border-[var(--skipo-accent)] border-t-transparent rounded-full animate-spin" }) : /* @__PURE__ */ jsx(GoogleIcon, { size: 14 }),
68
+ /* @__PURE__ */ jsx("span", { children: loading ? "CONNECTING GOOGLE..." : label })
69
+ ]
70
+ }
71
+ ) : /* @__PURE__ */ jsxs(
58
72
  "button",
59
73
  {
60
74
  type: "button",
61
- onClick: () => void onSignIn(),
75
+ onClick: () => void onSignIn?.(),
62
76
  disabled: disabled || loading,
63
77
  className: `w-full py-2.5 text-[10px] font-black border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-bg)] hover:bg-[var(--skipo-surface-hover,var(--skipo-surface))] text-[var(--skipo-text)] flex items-center justify-center gap-2.5 transition-colors cursor-pointer select-none disabled:opacity-50 ${className}`,
64
78
  "aria-label": label,
@@ -697,7 +711,7 @@ function LuthOidcGate({
697
711
  onAuthenticatedRef.current?.(auth.user);
698
712
  }
699
713
  }, [auth.session.authenticated, auth.user]);
700
- if (auth.initializing || auth.loading) {
714
+ if (auth.session.authenticated && (auth.initializing || auth.loading)) {
701
715
  return /* @__PURE__ */ jsx7(Fragment3, { children: loadingContent ?? /* @__PURE__ */ jsx7(AuthLoadingScreen, { label: "VERIFYING SESSION..." }) });
702
716
  }
703
717
  if (auth.session.authenticated && auth.user) {
@@ -726,15 +740,11 @@ function LuthOidcGate({
726
740
  ] }),
727
741
  /* @__PURE__ */ jsx7("h1", { className: "font-black text-sm tracking-wider uppercase", children: "SIGN IN TO WORKSPACE" }),
728
742
  /* @__PURE__ */ jsx7("p", { className: "mt-2 mb-5 text-xs text-[var(--skipo-text-muted,#94a3b8)]", children: "Access your workspace with your existing account or create one." }),
729
- auth.error && /* @__PURE__ */ jsxs6("div", { role: "alert", className: "mb-4 border-2 border-red-500/80 bg-red-950/30 p-3 text-xs text-red-300 space-y-2", children: [
730
- /* @__PURE__ */ jsx7("p", { children: "Session verification is unavailable. No authenticated workspace access will be granted until the service recovers." }),
731
- /* @__PURE__ */ jsx7("p", { children: auth.error })
732
- ] }),
733
743
  /* @__PURE__ */ jsx7(
734
744
  GoogleSignInButton,
735
745
  {
736
746
  label: "CONTINUE WITH GOOGLE",
737
- onSignIn: () => auth.signIn(),
747
+ href: "/api/auth/oidc/start",
738
748
  className: "mb-3"
739
749
  }
740
750
  ),
@@ -744,26 +754,14 @@ function LuthOidcGate({
744
754
  /* @__PURE__ */ jsx7("span", { className: "h-px flex-1 bg-[var(--skipo-border-color,#252d3d)]" })
745
755
  ] }),
746
756
  /* @__PURE__ */ jsx7(
747
- "button",
757
+ "a",
748
758
  {
749
- type: "button",
750
- onClick: () => auth.signIn(),
751
- className: "w-full py-3 px-4 text-xs font-black uppercase tracking-wide border-2 border-[var(--skipo-accent,#6366f1)] bg-[var(--skipo-accent,#6366f1)] text-[var(--skipo-accent-fg,#000000)] hover:brightness-110 transition-all cursor-pointer",
759
+ href: "/api/auth/oidc/start",
760
+ className: "block text-center w-full py-3 px-4 text-xs font-black uppercase tracking-wide border-2 border-[var(--skipo-accent,#6366f1)] bg-[var(--skipo-accent,#6366f1)] text-[var(--skipo-accent-fg,#000000)] hover:brightness-110 transition-all cursor-pointer",
752
761
  children: "CONTINUE WITH EMAIL"
753
762
  }
754
763
  ),
755
764
  /* @__PURE__ */ jsx7("p", { className: "mt-3 text-[10px] leading-relaxed text-[var(--skipo-text-muted,#94a3b8)]", children: "Google, email sign-in and account registration are handled on the secure Luth identity page. This application never asks for, stores, or transmits your password." }),
756
- auth.error && /* @__PURE__ */ jsx7(
757
- "button",
758
- {
759
- type: "button",
760
- onClick: () => {
761
- void auth.refresh().catch(() => void 0);
762
- },
763
- className: "mt-3 w-full border-2 border-[var(--skipo-border-color,#252d3d)] px-4 py-2 text-xs font-black uppercase",
764
- children: "RETRY SESSION"
765
- }
766
- ),
767
765
  onContinueAsGuest && /* @__PURE__ */ jsxs6(Fragment3, { children: [
768
766
  /* @__PURE__ */ jsxs6("div", { "aria-hidden": "true", className: "my-4 flex items-center gap-2 text-[9px] text-[var(--skipo-text-muted,#94a3b8)]", children: [
769
767
  /* @__PURE__ */ jsx7("span", { className: "h-px flex-1 bg-[var(--skipo-border-color,#252d3d)]" }),
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  export interface GoogleSignInButtonProps {
3
- onSignIn: () => Promise<void> | void;
3
+ onSignIn?: () => Promise<void> | void;
4
+ /** Same-origin OAuth navigation works even when session verification fails. */
5
+ href?: string;
4
6
  disabled?: boolean;
5
7
  loading?: boolean;
6
8
  label?: string;
@@ -18,7 +18,7 @@ import {
18
18
  resolveLuthOrigin,
19
19
  useApplicationOidcAuth,
20
20
  useLuthAuth
21
- } from "../../chunk-AGRCDLL3.js";
21
+ } from "../../chunk-DKRFO7GI.js";
22
22
  import "../../chunk-RLM72WKL.js";
23
23
  import "../../chunk-5ZMXFCD4.js";
24
24
  import "../../chunk-C3L53YN4.js";
@@ -48,16 +48,16 @@ import {
48
48
  IconOnlyButton,
49
49
  ModalContainer
50
50
  } from "./chunk-OR5ZNJI4.js";
51
- import {
52
- GRAPHS_MENU_REQUIRED_SERVICES,
53
- GraphsMenu
54
- } from "./chunk-6EYOJ4DD.js";
55
51
  import {
56
52
  AppShell,
57
53
  BreadcrumbNav,
58
54
  HeaderBar,
59
55
  TopToolbar
60
56
  } from "./chunk-KMVDLACR.js";
57
+ import {
58
+ GRAPHS_MENU_REQUIRED_SERVICES,
59
+ GraphsMenu
60
+ } from "./chunk-6EYOJ4DD.js";
61
61
  import "./chunk-2SD6BIUX.js";
62
62
  import {
63
63
  TilesMenu,
@@ -213,7 +213,7 @@ import {
213
213
  resolveLuthOrigin,
214
214
  useApplicationOidcAuth,
215
215
  useLuthAuth
216
- } from "./chunk-AGRCDLL3.js";
216
+ } from "./chunk-DKRFO7GI.js";
217
217
  import {
218
218
  frnlButton,
219
219
  frnlButtonDefinition,