@ultrst-armada/floks 2.0.16 → 2.0.17
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/.krusbl-release-attestation.json +3 -3
- package/package.json +2 -2
- package/packages/canvas-ui/dist/index.js +10 -10
- package/packages/ui/dist/{chunk-LSQI4YEL.js → chunk-UADCSN5P.js} +33 -47
- package/packages/ui/dist/components/auth/LuthOidcGate.d.ts +2 -1
- package/packages/ui/dist/components/auth/index.js +1 -1
- package/packages/ui/dist/index.js +8 -8
- package/packages/ui/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@ultrst-armada/floks",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"sourceCommit": "
|
|
4
|
+
"version": "2.0.17",
|
|
5
|
+
"sourceCommit": "ef88a21b4aa085183369bb69024c3d23f3ee3558",
|
|
6
6
|
"releaseWorkflow": "npm Release",
|
|
7
|
-
"workflowRunId": "
|
|
7
|
+
"workflowRunId": "45017683774"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultrst-armada/floks",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"verify:npm-trusted-publishing": "node scripts/verify-npm-trusted-publishing.mjs"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@dinilmusick/gutts": "2.2.
|
|
104
|
+
"@dinilmusick/gutts": "2.2.6",
|
|
105
105
|
"@ultrst-armada/frnlts": "^0.5.26",
|
|
106
106
|
"zod": "^3.24.1"
|
|
107
107
|
},
|
|
@@ -57,22 +57,16 @@ import {
|
|
|
57
57
|
setAuthoringOperations,
|
|
58
58
|
updateAuthoringNode
|
|
59
59
|
} from "./chunk-CI4C6DJR.js";
|
|
60
|
-
import {
|
|
61
|
-
MonacoEditor,
|
|
62
|
-
skipoDarkTheme,
|
|
63
|
-
useMonaco
|
|
64
|
-
} from "./chunk-KAKAFGVH.js";
|
|
65
60
|
import {
|
|
66
61
|
DockBar,
|
|
67
62
|
DockItem,
|
|
68
63
|
useDock
|
|
69
64
|
} from "./chunk-6VB74RCH.js";
|
|
70
65
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} from "./chunk-34YRDZPJ.js";
|
|
66
|
+
MonacoEditor,
|
|
67
|
+
skipoDarkTheme,
|
|
68
|
+
useMonaco
|
|
69
|
+
} from "./chunk-KAKAFGVH.js";
|
|
76
70
|
import {
|
|
77
71
|
FodModule,
|
|
78
72
|
authorizedRemoteCategories,
|
|
@@ -103,6 +97,12 @@ import {
|
|
|
103
97
|
import {
|
|
104
98
|
usePredictiveGraph2D
|
|
105
99
|
} from "./chunk-ZSVXR3HU.js";
|
|
100
|
+
import {
|
|
101
|
+
CanvasViewport,
|
|
102
|
+
InfiniteCanvas,
|
|
103
|
+
MiniMap,
|
|
104
|
+
useCanvas
|
|
105
|
+
} from "./chunk-34YRDZPJ.js";
|
|
106
106
|
|
|
107
107
|
// src/node-graph-ui/widgets/MidpointWidgets.tsx
|
|
108
108
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -602,7 +602,7 @@ import { useCallback as useCallback2, useEffect as useEffect4, useMemo as useMem
|
|
|
602
602
|
import {
|
|
603
603
|
createApplicationAuthClient
|
|
604
604
|
} from "@dinilmusick/gutts/auth";
|
|
605
|
-
import { Fragment as Fragment3, jsx as jsx7
|
|
605
|
+
import { Fragment as Fragment3, jsx as jsx7 } from "react/jsx-runtime";
|
|
606
606
|
function useApplicationOidcAuth() {
|
|
607
607
|
const client = useMemo3(() => createApplicationAuthClient(), []);
|
|
608
608
|
const [session, setSession] = useState4({ authenticated: false });
|
|
@@ -698,58 +698,44 @@ function LuthOidcGate({
|
|
|
698
698
|
onAuthenticatedRef.current?.(auth.user);
|
|
699
699
|
}
|
|
700
700
|
}, [auth.session.authenticated, auth.user]);
|
|
701
|
-
if (auth.
|
|
701
|
+
if (auth.initializing || auth.loading) {
|
|
702
702
|
return /* @__PURE__ */ jsx7(Fragment3, { children: loadingContent ?? /* @__PURE__ */ jsx7(AuthLoadingScreen, { label: "VERIFYING SESSION..." }) });
|
|
703
703
|
}
|
|
704
704
|
if (auth.session.authenticated && auth.user) {
|
|
705
705
|
return typeof authenticatedContent === "function" ? /* @__PURE__ */ jsx7(Fragment3, { children: authenticatedContent(auth) }) : /* @__PURE__ */ jsx7(Fragment3, { children: authenticatedContent });
|
|
706
706
|
}
|
|
707
|
-
|
|
708
|
-
|
|
707
|
+
const resultFor = (verified) => verified.authenticated && verified.user ? { success: true, user: verified.user } : { success: false, error: "The application session could not be verified." };
|
|
708
|
+
const signInEmail = async (email, password) => {
|
|
709
|
+
try {
|
|
710
|
+
const session = await auth.client.signInWithEmailCredentials({ email, password });
|
|
711
|
+
if (!session.authenticated) return resultFor(session);
|
|
712
|
+
return resultFor(await auth.refresh());
|
|
713
|
+
} catch (cause) {
|
|
714
|
+
return { success: false, error: cause instanceof Error ? cause.message : "Email sign-in failed." };
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
const signUpEmail = async (input) => {
|
|
718
|
+
try {
|
|
719
|
+
const session = await auth.client.signUpWithEmailCredentials(input);
|
|
720
|
+
if (!session.authenticated) return resultFor(session);
|
|
721
|
+
return resultFor(await auth.refresh());
|
|
722
|
+
} catch (cause) {
|
|
723
|
+
return { success: false, error: cause instanceof Error ? cause.message : "Account creation failed." };
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
return /* @__PURE__ */ jsx7(
|
|
727
|
+
AuthPage,
|
|
709
728
|
{
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
{
|
|
721
|
-
"aria-label": `${appName} sign in`,
|
|
722
|
-
className: "w-full max-w-md border-2 border-[var(--skipo-border-color,#252d3d)] bg-[var(--skipo-surface,#121722)] shadow-[6px_6px_0px_var(--skipo-border-color,#252d3d)] p-6 my-auto",
|
|
723
|
-
children: [
|
|
724
|
-
/* @__PURE__ */ jsx7(
|
|
725
|
-
GoogleSignInButton,
|
|
726
|
-
{
|
|
727
|
-
label: "CONTINUE WITH GOOGLE",
|
|
728
|
-
href: "/api/auth/oidc/start?method=google",
|
|
729
|
-
className: "mb-3"
|
|
730
|
-
}
|
|
731
|
-
),
|
|
732
|
-
/* @__PURE__ */ jsx7(
|
|
733
|
-
"a",
|
|
734
|
-
{
|
|
735
|
-
href: "/api/auth/oidc/start?method=email",
|
|
736
|
-
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",
|
|
737
|
-
children: "CONTINUE WITH EMAIL"
|
|
738
|
-
}
|
|
739
|
-
),
|
|
740
|
-
onContinueAsGuest && /* @__PURE__ */ jsx7(Fragment3, { children: /* @__PURE__ */ jsx7(
|
|
741
|
-
"button",
|
|
742
|
-
{
|
|
743
|
-
type: "button",
|
|
744
|
-
onClick: onContinueAsGuest,
|
|
745
|
-
className: "mt-3 w-full py-2 text-[10px] font-black border-2 border-[var(--skipo-border-color,#252d3d)] text-[var(--skipo-text-muted,#94a3b8)] hover:text-[var(--skipo-text,#f8fafc)] transition-colors cursor-pointer",
|
|
746
|
-
children: "CONTINUE AS GUEST"
|
|
747
|
-
}
|
|
748
|
-
) })
|
|
749
|
-
]
|
|
750
|
-
}
|
|
751
|
-
) })
|
|
752
|
-
]
|
|
729
|
+
appName,
|
|
730
|
+
appSubtitle: "WORKSPACE",
|
|
731
|
+
footerText: "",
|
|
732
|
+
onLogin: signInEmail,
|
|
733
|
+
onRegister: signUpEmail,
|
|
734
|
+
onGoogleSignIn: async () => {
|
|
735
|
+
auth.client.signInWithGoogle();
|
|
736
|
+
return { success: true };
|
|
737
|
+
},
|
|
738
|
+
onContinueAsGuest
|
|
753
739
|
}
|
|
754
740
|
);
|
|
755
741
|
}
|
|
@@ -13,7 +13,8 @@ export interface ApplicationOidcAuth {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Canonical application identity gate. Browser receives only an opaque
|
|
16
|
-
* app-origin cookie; Luth/Better Auth
|
|
16
|
+
* app-origin cookie; Luth/Better Auth verifies identity, while the
|
|
17
|
+
* shared Floks form offers first-party email and registration inline.
|
|
17
18
|
* All Skipo-generated and migrated app shells should use this one gate,
|
|
18
19
|
* rather than reimplementing callback or session hydration.
|
|
19
20
|
*/
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MIDI_MAX,
|
|
3
|
-
MIDI_MIN,
|
|
4
|
-
MIDI_TIMELINE_HEIGHT,
|
|
5
|
-
MidiTimeline,
|
|
6
|
-
MusicalTimeline
|
|
7
|
-
} from "./chunk-HXTM3RSQ.js";
|
|
8
1
|
import {
|
|
9
2
|
GoogleDriveWorkspacePicker,
|
|
10
3
|
WORKSPACE_TILES_MENU_REQUIRED_SERVICES,
|
|
@@ -20,6 +13,13 @@ import {
|
|
|
20
13
|
formatWorkspaceFolderPreview,
|
|
21
14
|
workspaceTilesMenuDefinition
|
|
22
15
|
} from "./chunk-FVOZFKV7.js";
|
|
16
|
+
import {
|
|
17
|
+
MIDI_MAX,
|
|
18
|
+
MIDI_MIN,
|
|
19
|
+
MIDI_TIMELINE_HEIGHT,
|
|
20
|
+
MidiTimeline,
|
|
21
|
+
MusicalTimeline
|
|
22
|
+
} from "./chunk-HXTM3RSQ.js";
|
|
23
23
|
import {
|
|
24
24
|
ConfirmDialog,
|
|
25
25
|
CopyableErrorAlert,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
resolveLuthOrigin,
|
|
214
214
|
useApplicationOidcAuth,
|
|
215
215
|
useLuthAuth
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-UADCSN5P.js";
|
|
217
217
|
import {
|
|
218
218
|
frnlButton,
|
|
219
219
|
frnlButtonDefinition,
|
package/packages/ui/package.json
CHANGED