@ultrst-armada/floks 1.3.0 → 1.5.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "1.3.0",
5
- "sourceCommit": "9403b5c7a1c7eba0f314395b2a51c327c2596fdd",
4
+ "version": "1.5.0",
5
+ "sourceCommit": "f044650dce5f4d30e1e4804ad2e06624b29f461f",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "40037052749"
7
+ "workflowRunId": "40212520644"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -0,0 +1,64 @@
1
+ import React__default from 'react';
2
+
3
+ type UIAuthoringContext = 'service' | 'general-component' | 'application';
4
+ type UIAuthoringNodeKind = 'page' | 'section' | 'component';
5
+ interface AuthoringAssetRef {
6
+ packageId: string;
7
+ packageVersion: string;
8
+ exportPath: string;
9
+ assetId: string;
10
+ assetVersion: string;
11
+ }
12
+ interface UIAuthoringNode {
13
+ id: string;
14
+ kind: UIAuthoringNodeKind;
15
+ name: string;
16
+ componentId?: string;
17
+ assetRef?: AuthoringAssetRef;
18
+ parentId?: string;
19
+ props: Record<string, string | number | boolean>;
20
+ }
21
+ interface UIAuthoringSession {
22
+ sessionId: string;
23
+ context: UIAuthoringContext;
24
+ nodes: UIAuthoringNode[];
25
+ bindings: Array<{
26
+ componentId: string;
27
+ property: string;
28
+ target: {
29
+ kind: string;
30
+ apiId: string;
31
+ field: string;
32
+ fieldType?: string;
33
+ };
34
+ }>;
35
+ operations: Array<{
36
+ operationId: string;
37
+ name: string;
38
+ description?: string;
39
+ }>;
40
+ metadata: Record<string, string>;
41
+ }
42
+
43
+ declare function getAuthoringDepth(node: UIAuthoringNode, nodes: UIAuthoringNode[]): number;
44
+ declare function getAuthoringChildren(nodeId: string, nodes: UIAuthoringNode[]): UIAuthoringNode[];
45
+
46
+ declare function UiAuthoringTree(props: {
47
+ nodes: UIAuthoringNode[];
48
+ selectedNodeId?: string;
49
+ onSelect: (nodeId: string) => void;
50
+ }): React__default.JSX.Element;
51
+
52
+ declare function UiAuthoringInspector(props: {
53
+ node?: UIAuthoringNode;
54
+ onChange: (patch: Partial<UIAuthoringNode>) => void;
55
+ }): React__default.JSX.Element;
56
+
57
+ declare function UiAuthoringWorkspace(props: {
58
+ session: UIAuthoringSession;
59
+ availableAssets: AuthoringAssetRef[];
60
+ onChange: (session: UIAuthoringSession) => void;
61
+ onValidate?: () => void;
62
+ }): React__default.JSX.Element;
63
+
64
+ export { type AuthoringAssetRef, type UIAuthoringContext, type UIAuthoringNode, type UIAuthoringNodeKind, type UIAuthoringSession, UiAuthoringInspector, UiAuthoringTree, UiAuthoringWorkspace, getAuthoringChildren, getAuthoringDepth };
@@ -0,0 +1,14 @@
1
+ import {
2
+ UiAuthoringInspector,
3
+ UiAuthoringTree,
4
+ UiAuthoringWorkspace,
5
+ getAuthoringChildren,
6
+ getAuthoringDepth
7
+ } from "../chunk-MFZKZ76J.js";
8
+ export {
9
+ UiAuthoringInspector,
10
+ UiAuthoringTree,
11
+ UiAuthoringWorkspace,
12
+ getAuthoringChildren,
13
+ getAuthoringDepth
14
+ };
@@ -58,13 +58,28 @@ function MonacoEditor({
58
58
  minimap = false,
59
59
  theme = "skipo-dark",
60
60
  fontSize = 14,
61
+ sessionId,
62
+ uri,
63
+ ideService,
61
64
  onChange,
62
65
  height = "100%",
63
66
  width = "100%"
64
67
  }) {
65
68
  const containerRef = useRef(null);
66
69
  const editorRef = useRef(null);
70
+ const sessionRef = useRef(sessionId);
67
71
  const monaco = useMonaco();
72
+ const service = ideService || { execute: async () => void 0 };
73
+ useEffect2(() => {
74
+ if (!sessionRef.current) sessionRef.current = sessionId || `editor-${Date.now().toString(36)}`;
75
+ void service.execute("createSession", {
76
+ sessionId: sessionRef.current,
77
+ uri: uri || `inmemory://${sessionRef.current}`,
78
+ language,
79
+ value,
80
+ options: { readOnly, minimap, fontSize }
81
+ });
82
+ }, []);
68
83
  useEffect2(() => {
69
84
  if (!monaco || !containerRef.current) return;
70
85
  if (!editorRef.current) {
@@ -79,11 +94,15 @@ function MonacoEditor({
79
94
  scrollBeyondLastLine: false,
80
95
  padding: { top: 16, bottom: 16 }
81
96
  });
82
- if (onChange) {
83
- editorRef.current.onDidChangeModelContent(() => {
84
- onChange(editorRef.current.getValue());
97
+ editorRef.current.onDidChangeModelContent(() => {
98
+ const nextValue = editorRef.current.getValue();
99
+ void service.execute("updateDocument", {
100
+ sessionId: sessionRef.current,
101
+ value: nextValue,
102
+ language
85
103
  });
86
- }
104
+ onChange?.(nextValue);
105
+ });
87
106
  }
88
107
  return () => {
89
108
  if (editorRef.current) {
@@ -93,15 +112,18 @@ function MonacoEditor({
93
112
  };
94
113
  }, [monaco]);
95
114
  useEffect2(() => {
96
- if (editorRef.current && value !== editorRef.current.getValue()) {
97
- editorRef.current.setValue(value);
98
- }
115
+ if (editorRef.current && value !== editorRef.current.getValue()) editorRef.current.setValue(value);
99
116
  }, [value]);
100
117
  useEffect2(() => {
101
- if (editorRef.current) {
102
- monaco?.editor.setModelLanguage(editorRef.current.getModel(), language);
103
- editorRef.current.updateOptions({ readOnly, fontSize, minimap: { enabled: minimap } });
104
- if (theme) monaco?.editor.setTheme(theme);
118
+ if (!editorRef.current) return;
119
+ monaco?.editor.setModelLanguage(editorRef.current.getModel(), language);
120
+ editorRef.current.updateOptions({ readOnly, fontSize, minimap: { enabled: minimap } });
121
+ if (theme) monaco?.editor.setTheme(theme);
122
+ if (sessionRef.current) {
123
+ void service.execute("setOptions", {
124
+ sessionId: sessionRef.current,
125
+ options: { readOnly, minimap, fontSize }
126
+ });
105
127
  }
106
128
  }, [language, readOnly, fontSize, minimap, theme, monaco]);
107
129
  return /* @__PURE__ */ jsx("div", { ref: containerRef, style: { width, height, overflow: "hidden", borderRadius: "8px" } });
@@ -0,0 +1,136 @@
1
+ // src/authoring/authoringModel.ts
2
+ function getAuthoringDepth(node, nodes) {
3
+ let depth = 0;
4
+ let parentId = node.parentId;
5
+ while (parentId) {
6
+ const parent = nodes.find((item) => item.id === parentId);
7
+ if (!parent) break;
8
+ depth += 1;
9
+ parentId = parent.parentId;
10
+ }
11
+ return depth;
12
+ }
13
+ function getAuthoringChildren(nodeId, nodes) {
14
+ return nodes.filter((node) => node.parentId === nodeId);
15
+ }
16
+
17
+ // src/authoring/UiAuthoringTree.tsx
18
+ import { jsx, jsxs } from "react/jsx-runtime";
19
+ function UiAuthoringTree(props) {
20
+ return /* @__PURE__ */ jsxs("div", { className: "min-h-0 flex-1 overflow-auto", children: [
21
+ props.nodes.map((node) => /* @__PURE__ */ jsxs(
22
+ "button",
23
+ {
24
+ type: "button",
25
+ onClick: () => props.onSelect(node.id),
26
+ className: `flex w-full items-center gap-2 border-b border-black/10 px-2 py-1.5 text-left text-xs ${props.selectedNodeId === node.id ? "bg-black/10" : ""}`,
27
+ style: { paddingLeft: 8 + getAuthoringDepth(node, props.nodes) * 14 },
28
+ children: [
29
+ /* @__PURE__ */ jsx("span", { className: "font-semibold", children: node.name }),
30
+ /* @__PURE__ */ jsx("span", { className: "ml-auto opacity-50", children: node.kind })
31
+ ]
32
+ },
33
+ node.id
34
+ )),
35
+ !props.nodes.length && /* @__PURE__ */ jsx("div", { className: "p-4 text-xs opacity-60", children: "No authored nodes." })
36
+ ] });
37
+ }
38
+
39
+ // src/authoring/UiAuthoringInspector.tsx
40
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
41
+ function UiAuthoringInspector(props) {
42
+ if (!props.node) return /* @__PURE__ */ jsx2("aside", { className: "w-72 border-l border-black/10 p-3 text-xs opacity-60", children: "Select a node." });
43
+ const description = String(props.node.props.description || "");
44
+ return /* @__PURE__ */ jsxs2("aside", { className: "w-72 border-l border-black/10 p-3", children: [
45
+ /* @__PURE__ */ jsx2("div", { className: "mb-3 text-xs font-bold uppercase tracking-wide", children: props.node.kind }),
46
+ /* @__PURE__ */ jsxs2("label", { className: "block text-xs", children: [
47
+ "Name",
48
+ /* @__PURE__ */ jsx2("input", { className: "mt-1 w-full rounded border px-2 py-1.5", value: props.node.name, onChange: (e) => props.onChange({ name: e.target.value }) })
49
+ ] }),
50
+ /* @__PURE__ */ jsxs2("label", { className: "mt-3 block text-xs", children: [
51
+ "Description",
52
+ /* @__PURE__ */ jsx2("textarea", { className: "mt-1 min-h-20 w-full rounded border px-2 py-1.5", value: description, onChange: (e) => props.onChange({ props: { ...props.node?.props, description: e.target.value } }) })
53
+ ] })
54
+ ] });
55
+ }
56
+
57
+ // src/authoring/UiAuthoringWorkspace.tsx
58
+ import React from "react";
59
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
60
+ function UiAuthoringWorkspace(props) {
61
+ const [selectedNodeId, setSelectedNodeId] = React.useState();
62
+ const selectedNode = props.session.nodes.find((node) => node.id === selectedNodeId);
63
+ const addNode = (kind, assetRef) => {
64
+ const parent = kind === "section" ? props.session.nodes.find((node2) => node2.kind === "page") : kind === "component" ? props.session.nodes.find((node2) => node2.kind === "section") : void 0;
65
+ const node = {
66
+ id: `authoring-${kind}-${Date.now().toString(36)}`,
67
+ kind,
68
+ name: kind === "component" ? assetRef?.assetId || "Component" : kind[0].toUpperCase() + kind.slice(1),
69
+ componentId: kind === "component" ? assetRef?.assetId : void 0,
70
+ assetRef,
71
+ parentId: parent?.id,
72
+ props: {}
73
+ };
74
+ props.onChange({ ...props.session, nodes: [...props.session.nodes, node] });
75
+ setSelectedNodeId(node.id);
76
+ };
77
+ const updateSelected = (patch) => {
78
+ if (!selectedNode) return;
79
+ props.onChange({
80
+ ...props.session,
81
+ nodes: props.session.nodes.map((node) => node.id === selectedNode.id ? { ...node, ...patch } : node)
82
+ });
83
+ };
84
+ const removeSelected = () => {
85
+ if (!selectedNode) return;
86
+ props.onChange({
87
+ ...props.session,
88
+ nodes: props.session.nodes.filter((node) => node.id !== selectedNode.id && node.parentId !== selectedNode.id)
89
+ });
90
+ setSelectedNodeId(void 0);
91
+ };
92
+ const contextLabel = {
93
+ service: "Service UI",
94
+ "general-component": "General Component",
95
+ application: "Application UI"
96
+ };
97
+ return /* @__PURE__ */ jsxs3("section", { className: "flex h-full min-h-0 flex-col overflow-hidden border border-black/10 bg-white", children: [
98
+ /* @__PURE__ */ jsxs3("header", { className: "flex shrink-0 items-center gap-2 border-b border-black/10 px-3 py-2", children: [
99
+ /* @__PURE__ */ jsxs3("strong", { className: "text-xs", children: [
100
+ contextLabel[props.session.context],
101
+ " Authoring"
102
+ ] }),
103
+ /* @__PURE__ */ jsx3("button", { type: "button", onClick: () => addNode("page"), className: "rounded border px-2 py-1 text-xs", children: "Page" }),
104
+ /* @__PURE__ */ jsx3("button", { type: "button", onClick: () => addNode("section"), className: "rounded border px-2 py-1 text-xs", children: "Section" }),
105
+ /* @__PURE__ */ jsxs3(
106
+ "select",
107
+ {
108
+ className: "rounded border px-2 py-1 text-xs",
109
+ value: "",
110
+ onChange: (e) => {
111
+ const asset = props.availableAssets.find((item) => item.assetId === e.target.value);
112
+ if (asset) addNode("component", asset);
113
+ },
114
+ children: [
115
+ /* @__PURE__ */ jsx3("option", { value: "", children: "Add component\u2026" }),
116
+ props.availableAssets.map((asset) => /* @__PURE__ */ jsx3("option", { value: asset.assetId, children: asset.assetId }, asset.assetId))
117
+ ]
118
+ }
119
+ ),
120
+ /* @__PURE__ */ jsx3("button", { type: "button", disabled: !selectedNode, onClick: removeSelected, className: "ml-auto rounded border px-2 py-1 text-xs disabled:opacity-40", children: "Remove" }),
121
+ /* @__PURE__ */ jsx3("button", { type: "button", onClick: props.onValidate, className: "rounded border px-2 py-1 text-xs", children: "Validate" })
122
+ ] }),
123
+ /* @__PURE__ */ jsxs3("div", { className: "flex min-h-0 flex-1", children: [
124
+ /* @__PURE__ */ jsx3(UiAuthoringTree, { nodes: props.session.nodes, selectedNodeId, onSelect: setSelectedNodeId }),
125
+ /* @__PURE__ */ jsx3(UiAuthoringInspector, { node: selectedNode, onChange: updateSelected })
126
+ ] })
127
+ ] });
128
+ }
129
+
130
+ export {
131
+ getAuthoringDepth,
132
+ getAuthoringChildren,
133
+ UiAuthoringTree,
134
+ UiAuthoringInspector,
135
+ UiAuthoringWorkspace
136
+ };
@@ -34,11 +34,17 @@ declare const skipoDarkTheme: {
34
34
 
35
35
  declare function useMonaco(): any;
36
36
 
37
+ interface MonacoIdeServicePort {
38
+ execute<TIn = unknown, TOut = unknown>(operation: string, input?: TIn): Promise<TOut>;
39
+ }
37
40
  interface MonacoEditorProps extends EditorConfig {
41
+ sessionId?: string;
42
+ uri?: string;
43
+ ideService?: MonacoIdeServicePort;
38
44
  onChange?: (value: string) => void;
39
45
  height?: string | number;
40
46
  width?: string | number;
41
47
  }
42
- declare function MonacoEditor({ value, language, readOnly, minimap, theme, fontSize, onChange, height, width }: MonacoEditorProps): React.JSX.Element;
48
+ declare function MonacoEditor({ value, language, readOnly, minimap, theme, fontSize, sessionId, uri, ideService, onChange, height, width, }: MonacoEditorProps): React.JSX.Element;
43
49
 
44
- export { type EditorConfig, MonacoEditor, skipoDarkTheme, useMonaco };
50
+ export { type EditorConfig, MonacoEditor, type MonacoEditorProps, type MonacoIdeServicePort, skipoDarkTheme, useMonaco };
@@ -2,7 +2,7 @@ import {
2
2
  MonacoEditor,
3
3
  skipoDarkTheme,
4
4
  useMonaco
5
- } from "../chunk-QTTWWBNN.js";
5
+ } from "../chunk-46UQIH47.js";
6
6
  export {
7
7
  MonacoEditor,
8
8
  skipoDarkTheme,
@@ -1,7 +1,7 @@
1
1
  export { CanvasItem, CanvasViewport, InfiniteCanvas, MiniMap, Transform, useCanvas } from './canvas/index.js';
2
2
  export { DockBar, DockItem, DockItemConfig, DockPosition, useDock } from './dock/index.js';
3
3
  export { Tile, TileAction, TileConfig, TileCreateButton, TileGrid, useTileMenu } from './tile-menu/index.js';
4
- export { EditorConfig, MonacoEditor, skipoDarkTheme, useMonaco } from './editor/index.js';
4
+ export { EditorConfig, MonacoEditor, MonacoEditorProps, MonacoIdeServicePort, skipoDarkTheme, useMonaco } from './editor/index.js';
5
5
  import * as React from 'react';
6
6
  import React__default from 'react';
7
7
  import { NodeDefinition, GraphSettings, Socket, GraphNode } from '@ultrst-armada/kloks/state-graph';
@@ -10,6 +10,7 @@ export { FrnlEditableNodeGraph, FrnlEditableNodeGraphProps, frnlEditableNodeGrap
10
10
  export { B as BIOME_CONFIGS, C as COORD_SCALE, a as CameraState, b as Canvas2DViewerProps, c as ConnectingWireState } from './types-D3RRfQUo.js';
11
11
  export { CanvasBackground2D, CanvasErrorBoundary, ContainerNode2D, EffectNode2D, MagneticTraces2D, ModuleNode2D, NODE_CARD_WIDTH, Node2DBase, Node2DBaseProps, NodeRenderer2D, NodeRenderer2DProps, RecorderWaveformDisplay, RecorderWaveformDisplayProps, RotaryKnob, RotaryKnobProps, SOCKET_ROW_HEIGHT, Socket2D, Socket2DProps, SocketScreenPosition, TriggerNode2D, Wire2D, Wire2DProps, getSocketLocalOffset, getSocketScreenPosition, renderSpriteIcon, useCanvas2DCoordinates, useCanvas2DMagnetic } from './graph-2d/index.js';
12
12
  export { PredictiveGhostNodeCard, PredictiveGhostNodeCardProps, PredictiveHudToolbar, PredictiveLayer2D, PredictiveLayer2DProps, UsePredictiveGraph2DProps, UseViewer2DPredictiveProps, usePredictiveGraph2D } from './predictive/index.js';
13
+ export { AuthoringAssetRef, UIAuthoringContext, UIAuthoringNode, UIAuthoringNodeKind, UIAuthoringSession, UiAuthoringInspector, UiAuthoringTree, UiAuthoringWorkspace, getAuthoringChildren, getAuthoringDepth } from './authoring/index.js';
13
14
 
14
15
  interface MidpointWidgetsProps {
15
16
  x: number;
@@ -1,3 +1,16 @@
1
+ import {
2
+ Tile,
3
+ TileCreateButton,
4
+ TileGrid,
5
+ useTileMenu
6
+ } from "./chunk-SA3JADUG.js";
7
+ import {
8
+ UiAuthoringInspector,
9
+ UiAuthoringTree,
10
+ UiAuthoringWorkspace,
11
+ getAuthoringChildren,
12
+ getAuthoringDepth
13
+ } from "./chunk-MFZKZ76J.js";
1
14
  import {
2
15
  CanvasViewport,
3
16
  InfiniteCanvas,
@@ -13,7 +26,7 @@ import {
13
26
  MonacoEditor,
14
27
  skipoDarkTheme,
15
28
  useMonaco
16
- } from "./chunk-QTTWWBNN.js";
29
+ } from "./chunk-46UQIH47.js";
17
30
  import {
18
31
  CanvasContextMenu,
19
32
  CompatibleNodePicker,
@@ -57,12 +70,6 @@ import {
57
70
  getSocketScreenPosition,
58
71
  renderSpriteIcon
59
72
  } from "./chunk-U2SC3RMJ.js";
60
- import {
61
- Tile,
62
- TileCreateButton,
63
- TileGrid,
64
- useTileMenu
65
- } from "./chunk-SA3JADUG.js";
66
73
 
67
74
  // src/node-graph-ui/widgets/MidpointWidgets.tsx
68
75
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -730,9 +737,14 @@ export {
730
737
  TileCreateButton,
731
738
  TileGrid,
732
739
  TriggerNode2D,
740
+ UiAuthoringInspector,
741
+ UiAuthoringTree,
742
+ UiAuthoringWorkspace,
733
743
  Viewer2DNodes,
734
744
  Wire2D,
735
745
  frnlEditableNodeGraphDefinition,
746
+ getAuthoringChildren,
747
+ getAuthoringDepth,
736
748
  getSocketLocalOffset,
737
749
  getSocketScreenPosition,
738
750
  menuCategory,
@@ -52,10 +52,15 @@
52
52
  "import": "./dist/frnl-editable-node-graph/index.js",
53
53
  "types": "./dist/frnl-editable-node-graph/index.d.ts",
54
54
  "default": "./dist/frnl-editable-node-graph/index.js"
55
+ },
56
+ "./authoring": {
57
+ "import": "./dist/authoring/index.js",
58
+ "types": "./dist/authoring/index.d.ts",
59
+ "default": "./dist/authoring/index.js"
55
60
  }
56
61
  },
57
62
  "scripts": {
58
- "build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external @kloks/state-graph --external @kloks/audio-midi --external monaco-editor --external @dnd-kit/core --external @dnd-kit/sortable --external @dnd-kit/utilities"
63
+ "build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/authoring/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external @kloks/state-graph --external @kloks/audio-midi --external monaco-editor --external @dnd-kit/core --external @dnd-kit/sortable --external @dnd-kit/utilities"
59
64
  },
60
65
  "dependencies": {
61
66
  "@floks/ui": "workspace:*",
@@ -67,7 +72,8 @@
67
72
  "@dnd-kit/sortable": "^8.0.0 || ^9.0.0",
68
73
  "@dnd-kit/utilities": "^3.0.0",
69
74
  "monaco-editor": "^0.50.0",
70
- "react": "^18.0.0 || ^19.0.0"
75
+ "react": "^18.0.0 || ^19.0.0",
76
+ "@ultrst-armada/kloks": "^1.0.2 || ^1.4.0"
71
77
  },
72
78
  "peerDependenciesMeta": {
73
79
  "@dnd-kit/core": {
@@ -15,9 +15,30 @@ import {
15
15
  // src/components/auth/AuthPage.tsx
16
16
  import React, { useId, useMemo, useState } from "react";
17
17
  import { LogIn, UserPlus, Eye, EyeOff, Shield, ArrowRight, AlertCircle } from "lucide-react";
18
+
19
+ // src/components/auth/GoogleSignInButton.tsx
20
+ import { jsx } from "react/jsx-runtime";
21
+ var GoogleSignInButton = ({
22
+ onSignIn,
23
+ disabled = false,
24
+ loading = false,
25
+ label = "CONTINUE WITH GOOGLE"
26
+ }) => /* @__PURE__ */ jsx(
27
+ "button",
28
+ {
29
+ type: "button",
30
+ onClick: () => void onSignIn(),
31
+ disabled: disabled || loading,
32
+ className: "w-full py-2.5 text-[10px] font-black border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-bg)] flex items-center justify-center gap-2 disabled:opacity-50",
33
+ "aria-label": label,
34
+ children: loading ? "CONNECTING GOOGLE..." : label
35
+ }
36
+ );
37
+
38
+ // src/components/auth/AuthPage.tsx
18
39
  import { defineFrnlComponent } from "@ultrst-armada/frnlts";
19
40
  import { useFrnlComponent } from "@ultrst-armada/frnlts/react";
20
- import { jsx, jsxs } from "react/jsx-runtime";
41
+ import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
21
42
  var AUTH_PAGE_REQUIRED_SERVICES = ["auth"];
22
43
  var authPageDefinition = defineFrnlComponent({
23
44
  name: "AuthPage",
@@ -35,6 +56,7 @@ var AuthPage = ({
35
56
  onLogin,
36
57
  onRegister,
37
58
  onSuccess,
59
+ onGoogleSignIn,
38
60
  onSwitchToAdmin
39
61
  }) => {
40
62
  const store = useFloksFrnlStore();
@@ -47,8 +69,10 @@ var AuthPage = ({
47
69
  const [showPassword, setShowPassword] = useState(false);
48
70
  const [error, setError] = useState(null);
49
71
  const [loading, setLoading] = useState(false);
72
+ const [googleLoading, setGoogleLoading] = useState(false);
50
73
  const [iconError, setIconError] = useState(false);
51
74
  const iconSrc = typeof appIcon === "string" ? appIcon : "/src/frontend/assets/app-icon.svg";
75
+ const emailValid = email.trim() === "" || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.trim());
52
76
  const handlers = useMemo(() => ({
53
77
  "AuthPage.idle.login": () => {
54
78
  },
@@ -68,6 +92,7 @@ var AuthPage = ({
68
92
  e.preventDefault();
69
93
  const cleanEmail = email.trim();
70
94
  if (!cleanEmail) return setError("Email address is required.");
95
+ if (!emailValid) return setError("Enter a valid email address.");
71
96
  if (!password) return setError("Password is required.");
72
97
  if (mode === "register" && !name.trim()) return setError("Display name is required.");
73
98
  setLoading(true);
@@ -93,7 +118,7 @@ var AuthPage = ({
93
118
  children: [
94
119
  /* @__PURE__ */ jsxs("header", { className: "border-b-2 border-[var(--skipo-border-color)] bg-[var(--skipo-surface)] px-6 py-3.5 flex items-center justify-between shrink-0", children: [
95
120
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
96
- appIcon && typeof appIcon !== "string" ? /* @__PURE__ */ jsx("div", { className: "w-8 h-8 shrink-0 flex items-center justify-center", children: appIcon }) : !iconError ? /* @__PURE__ */ jsx("div", { className: "w-8 h-8 shrink-0 flex items-center justify-center overflow-hidden rounded bg-[var(--skipo-surface)] border border-[var(--skipo-border-color)]", children: /* @__PURE__ */ jsx(
121
+ appIcon && typeof appIcon !== "string" ? /* @__PURE__ */ jsx2("div", { className: "w-8 h-8 shrink-0 flex items-center justify-center", children: appIcon }) : !iconError ? /* @__PURE__ */ jsx2("div", { className: "w-8 h-8 shrink-0 flex items-center justify-center overflow-hidden rounded bg-[var(--skipo-surface)] border border-[var(--skipo-border-color)]", children: /* @__PURE__ */ jsx2(
97
122
  "img",
98
123
  {
99
124
  src: iconSrc,
@@ -101,46 +126,76 @@ var AuthPage = ({
101
126
  className: "w-6 h-6 object-contain shrink-0",
102
127
  onError: () => setIconError(true)
103
128
  }
104
- ) }) : /* @__PURE__ */ jsx("div", { className: "w-8 h-8 shrink-0 bg-[var(--skipo-accent)] text-black font-black flex items-center justify-center text-xs rounded select-none", children: "\u25B2" }),
129
+ ) }) : /* @__PURE__ */ jsx2("div", { className: "w-8 h-8 shrink-0 bg-[var(--skipo-accent)] text-black font-black flex items-center justify-center text-xs rounded select-none", children: "\u25B2" }),
105
130
  /* @__PURE__ */ jsxs("div", { children: [
106
- /* @__PURE__ */ jsx("span", { className: "text-sm font-black uppercase tracking-wider", children: appName }),
107
- /* @__PURE__ */ jsx("span", { className: "ml-2 text-[10px] text-[var(--skipo-text-muted)] tracking-tight", children: appSubtitle })
131
+ /* @__PURE__ */ jsx2("span", { className: "text-sm font-black uppercase tracking-wider", children: appName }),
132
+ /* @__PURE__ */ jsx2("span", { className: "ml-2 text-[10px] text-[var(--skipo-text-muted)] tracking-tight", children: appSubtitle })
108
133
  ] })
109
134
  ] }),
110
135
  onSwitchToAdmin && /* @__PURE__ */ jsxs("button", { type: "button", onClick: onSwitchToAdmin, className: "px-3 py-1.5 text-[10px] font-black border-2 border-[var(--skipo-accent)] text-[var(--skipo-accent)] flex items-center gap-1.5", children: [
111
- /* @__PURE__ */ jsx(Shield, { size: 13 }),
136
+ /* @__PURE__ */ jsx2(Shield, { size: 13 }),
112
137
  " ADMIN ",
113
- /* @__PURE__ */ jsx(ArrowRight, { size: 13 })
138
+ /* @__PURE__ */ jsx2(ArrowRight, { size: 13 })
114
139
  ] })
115
140
  ] }),
116
- /* @__PURE__ */ jsx("main", { className: "flex-1 flex items-center justify-center p-4 overflow-auto", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-md border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-surface)] shadow-[6px_6px_0px_var(--skipo-border-color)] p-6 my-auto", children: [
141
+ /* @__PURE__ */ jsx2("main", { className: "flex-1 flex items-center justify-center p-4 overflow-auto", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-md border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-surface)] shadow-[6px_6px_0px_var(--skipo-border-color)] p-6 my-auto", children: [
117
142
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2 mb-5", children: [
118
143
  /* @__PURE__ */ jsxs("button", { type: "button", onClick: () => {
119
144
  setMode("login");
120
145
  setError(null);
121
146
  }, className: `py-2 text-[10px] font-black border ${mode === "login" ? "bg-[var(--skipo-accent)] text-black" : "bg-[var(--skipo-bg)]"}`, children: [
122
- /* @__PURE__ */ jsx(LogIn, { size: 13, className: "inline mr-1" }),
147
+ /* @__PURE__ */ jsx2(LogIn, { size: 13, className: "inline mr-1" }),
123
148
  " SIGN IN"
124
149
  ] }),
125
150
  /* @__PURE__ */ jsxs("button", { type: "button", onClick: () => {
126
151
  setMode("register");
127
152
  setError(null);
128
153
  }, className: `py-2 text-[10px] font-black border ${mode === "register" ? "bg-[var(--skipo-accent)] text-black" : "bg-[var(--skipo-bg)]"}`, children: [
129
- /* @__PURE__ */ jsx(UserPlus, { size: 13, className: "inline mr-1" }),
154
+ /* @__PURE__ */ jsx2(UserPlus, { size: 13, className: "inline mr-1" }),
130
155
  " CREATE ACCOUNT"
131
156
  ] })
132
157
  ] }),
133
158
  error && /* @__PURE__ */ jsxs("div", { className: "mb-4 p-3 border-2 border-red-500/80 bg-red-950/30 text-red-300 text-xs flex items-center gap-2", children: [
134
- /* @__PURE__ */ jsx(AlertCircle, { size: 14 }),
159
+ /* @__PURE__ */ jsx2(AlertCircle, { size: 14 }),
135
160
  error
136
161
  ] }),
137
162
  /* @__PURE__ */ jsxs("form", { onSubmit: submit, className: "space-y-3", children: [
138
163
  mode === "register" && React.createElement(frnlTextInput, { id: componentId + ".name", label: "Full Name", value: name, onChange: (e) => setName(e.target.value) }),
139
- React.createElement(frnlTextInput, { id: componentId + ".email", label: "Email Address", value: email, onChange: (e) => setEmail(e.target.value), type: "email", autoComplete: "username" }),
140
- /* @__PURE__ */ jsx("div", { children: React.createElement(frnlTextInput, { id: componentId + ".password", label: "Password", value: password, onChange: (e) => setPassword(e.target.value), type: showPassword ? "text" : "password", autoComplete: mode === "login" ? "current-password" : "new-password", trailingIcon: /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Toggle password visibility", onClick: () => setShowPassword((v) => !v), children: showPassword ? /* @__PURE__ */ jsx(EyeOff, { size: 13 }) : /* @__PURE__ */ jsx(Eye, { size: 13 }) }) }) }),
141
- React.createElement(frnlButton, { type: "submit", disabled: loading, loading, variant: "accent", size: "lg", className: "w-full", icon: /* @__PURE__ */ jsx(ArrowRight, { size: 13 }) }, mode === "login" ? "SIGN IN TO WORKSPACE" : "CREATE ACCOUNT")
164
+ /* @__PURE__ */ jsxs("div", { children: [
165
+ React.createElement(frnlTextInput, { id: componentId + ".email", label: "Email Address", value: email, onChange: (e) => setEmail(e.target.value), type: "email", autoComplete: "username" }),
166
+ !emailValid && /* @__PURE__ */ jsx2("div", { className: "mt-1 text-[10px] text-red-400", children: "Enter a valid email address." })
167
+ ] }),
168
+ /* @__PURE__ */ jsx2("div", { children: React.createElement(frnlTextInput, { id: componentId + ".password", label: "Password", value: password, onChange: (e) => setPassword(e.target.value), type: showPassword ? "text" : "password", autoComplete: mode === "login" ? "current-password" : "new-password", trailingIcon: /* @__PURE__ */ jsx2("button", { type: "button", "aria-label": "Toggle password visibility", onClick: () => setShowPassword((v) => !v), children: showPassword ? /* @__PURE__ */ jsx2(EyeOff, { size: 13 }) : /* @__PURE__ */ jsx2(Eye, { size: 13 }) }) }) }),
169
+ React.createElement(frnlButton, { type: "submit", disabled: loading, loading, variant: "accent", size: "lg", className: "w-full", icon: /* @__PURE__ */ jsx2(ArrowRight, { size: 13 }) }, mode === "login" ? "SIGN IN TO WORKSPACE" : "CREATE ACCOUNT")
142
170
  ] }),
143
- /* @__PURE__ */ jsx("p", { className: "mt-5 pt-3 border-t border-[var(--skipo-border-color)] text-center text-[10px] text-[var(--skipo-text-muted)]", children: footerText || `${appName} WORKSPACE SYSTEM` })
171
+ onGoogleSignIn && /* @__PURE__ */ jsxs(Fragment, { children: [
172
+ /* @__PURE__ */ jsxs("div", { className: "my-4 flex items-center gap-2 text-[9px] text-[var(--skipo-text-muted)]", children: [
173
+ /* @__PURE__ */ jsx2("span", { className: "h-px flex-1 bg-[var(--skipo-border-color)]" }),
174
+ " OR ",
175
+ /* @__PURE__ */ jsx2("span", { className: "h-px flex-1 bg-[var(--skipo-border-color)]" })
176
+ ] }),
177
+ /* @__PURE__ */ jsx2(
178
+ GoogleSignInButton,
179
+ {
180
+ onSignIn: async () => {
181
+ setGoogleLoading(true);
182
+ setError(null);
183
+ try {
184
+ const result = await onGoogleSignIn();
185
+ if (!result.success) throw new Error(result.error || "Google sign-in failed.");
186
+ onSuccess?.(result);
187
+ } catch (error2) {
188
+ setError(error2 instanceof Error ? error2.message : "Google sign-in failed.");
189
+ } finally {
190
+ setGoogleLoading(false);
191
+ }
192
+ },
193
+ disabled: loading,
194
+ loading: googleLoading
195
+ }
196
+ )
197
+ ] }),
198
+ /* @__PURE__ */ jsx2("p", { className: "mt-5 pt-3 border-t border-[var(--skipo-border-color)] text-center text-[10px] text-[var(--skipo-text-muted)]", children: footerText || `${appName} WORKSPACE SYSTEM` })
144
199
  ] }) })
145
200
  ]
146
201
  }
@@ -150,7 +205,7 @@ var AuthPage = ({
150
205
  // src/components/auth/LoginModal.tsx
151
206
  import { useState as useState2 } from "react";
152
207
  import { ArrowRight as ArrowRight2, ShieldCheck, AlertCircle as AlertCircle2 } from "lucide-react";
153
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
208
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
154
209
  var LoginModal = ({
155
210
  appName = "Ecosystem App",
156
211
  onSuccess,
@@ -190,7 +245,7 @@ var LoginModal = ({
190
245
  setLoading(false);
191
246
  }
192
247
  };
193
- return /* @__PURE__ */ jsx2(
248
+ return /* @__PURE__ */ jsx3(
194
249
  "div",
195
250
  {
196
251
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-xs font-mono p-4",
@@ -199,25 +254,25 @@ var LoginModal = ({
199
254
  children: /* @__PURE__ */ jsxs2("div", { className: "w-full max-w-md p-6 border-2 border-[var(--skipo-border-color)] bg-[var(--skipo-surface)] text-[var(--skipo-text)] shadow-2xl rounded-lg space-y-4", children: [
200
255
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between pb-3 border-b border-[var(--skipo-border-color)]", children: [
201
256
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-2", children: [
202
- /* @__PURE__ */ jsx2("div", { className: "w-7 h-7 bg-[var(--skipo-accent)] text-black font-black flex items-center justify-center text-xs rounded", children: "\u25B2" }),
257
+ /* @__PURE__ */ jsx3("div", { className: "w-7 h-7 bg-[var(--skipo-accent)] text-black font-black flex items-center justify-center text-xs rounded", children: "\u25B2" }),
203
258
  /* @__PURE__ */ jsxs2("span", { className: "font-black text-sm tracking-wider uppercase text-[var(--skipo-text)]", children: [
204
259
  appName,
205
260
  " Authentication"
206
261
  ] })
207
262
  ] }),
208
263
  /* @__PURE__ */ jsxs2("span", { className: "text-[9px] px-2 py-0.5 border border-emerald-500/50 bg-emerald-500/10 text-emerald-300 font-bold rounded flex items-center gap-1", children: [
209
- /* @__PURE__ */ jsx2(ShieldCheck, { size: 10 }),
264
+ /* @__PURE__ */ jsx3(ShieldCheck, { size: 10 }),
210
265
  " SYSTEM DB"
211
266
  ] })
212
267
  ] }),
213
268
  error && /* @__PURE__ */ jsxs2("div", { className: "p-3 border border-red-500/60 bg-red-500/10 text-red-300 text-xs rounded flex items-start gap-2", children: [
214
- /* @__PURE__ */ jsx2(AlertCircle2, { size: 14, className: "shrink-0 mt-0.5" }),
215
- /* @__PURE__ */ jsx2("span", { children: error })
269
+ /* @__PURE__ */ jsx3(AlertCircle2, { size: 14, className: "shrink-0 mt-0.5" }),
270
+ /* @__PURE__ */ jsx3("span", { children: error })
216
271
  ] }),
217
272
  /* @__PURE__ */ jsxs2("form", { onSubmit: handleSubmit, className: "space-y-3", children: [
218
273
  isRegister && /* @__PURE__ */ jsxs2("div", { children: [
219
- /* @__PURE__ */ jsx2("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Full Name *" }),
220
- /* @__PURE__ */ jsx2(
274
+ /* @__PURE__ */ jsx3("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Full Name *" }),
275
+ /* @__PURE__ */ jsx3(
221
276
  BaseInput,
222
277
  {
223
278
  type: "text",
@@ -229,8 +284,8 @@ var LoginModal = ({
229
284
  )
230
285
  ] }),
231
286
  /* @__PURE__ */ jsxs2("div", { children: [
232
- /* @__PURE__ */ jsx2("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Email Address *" }),
233
- /* @__PURE__ */ jsx2(
287
+ /* @__PURE__ */ jsx3("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Email Address *" }),
288
+ /* @__PURE__ */ jsx3(
234
289
  BaseInput,
235
290
  {
236
291
  type: "email",
@@ -242,8 +297,8 @@ var LoginModal = ({
242
297
  )
243
298
  ] }),
244
299
  /* @__PURE__ */ jsxs2("div", { children: [
245
- /* @__PURE__ */ jsx2("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Password *" }),
246
- /* @__PURE__ */ jsx2(
300
+ /* @__PURE__ */ jsx3("label", { className: "block text-[10px] font-black uppercase mb-1", children: "Password *" }),
301
+ /* @__PURE__ */ jsx3(
247
302
  BaseInput,
248
303
  {
249
304
  type: "password",
@@ -254,7 +309,7 @@ var LoginModal = ({
254
309
  }
255
310
  )
256
311
  ] }),
257
- /* @__PURE__ */ jsx2("div", { className: "pt-2", children: /* @__PURE__ */ jsxs2(
312
+ /* @__PURE__ */ jsx3("div", { className: "pt-2", children: /* @__PURE__ */ jsxs2(
258
313
  BaseButton,
259
314
  {
260
315
  variant: "accent",
@@ -263,14 +318,14 @@ var LoginModal = ({
263
318
  disabled: loading,
264
319
  className: "w-full flex items-center justify-center gap-2",
265
320
  children: [
266
- /* @__PURE__ */ jsx2("span", { children: loading ? "AUTHENTICATING..." : isRegister ? "REGISTER & ENTER" : "SIGN IN" }),
267
- /* @__PURE__ */ jsx2(ArrowRight2, { size: 14 })
321
+ /* @__PURE__ */ jsx3("span", { children: loading ? "AUTHENTICATING..." : isRegister ? "REGISTER & ENTER" : "SIGN IN" }),
322
+ /* @__PURE__ */ jsx3(ArrowRight2, { size: 14 })
268
323
  ]
269
324
  }
270
325
  ) })
271
326
  ] }),
272
327
  /* @__PURE__ */ jsxs2("div", { className: "pt-2 border-t border-[var(--skipo-border-color)]/60 flex items-center justify-between text-[11px]", children: [
273
- /* @__PURE__ */ jsx2(
328
+ /* @__PURE__ */ jsx3(
274
329
  "button",
275
330
  {
276
331
  type: "button",
@@ -282,7 +337,7 @@ var LoginModal = ({
282
337
  children: isRegister ? "Already have an account? Sign In" : "Create new account"
283
338
  }
284
339
  ),
285
- /* @__PURE__ */ jsx2("span", { className: "text-[10px] text-[var(--skipo-text-muted)]", children: "ULTRST Identity" })
340
+ /* @__PURE__ */ jsx3("span", { className: "text-[10px] text-[var(--skipo-text-muted)]", children: "ULTRST Identity" })
286
341
  ] })
287
342
  ] })
288
343
  }
@@ -290,6 +345,7 @@ var LoginModal = ({
290
345
  };
291
346
 
292
347
  export {
348
+ GoogleSignInButton,
293
349
  AUTH_PAGE_REQUIRED_SERVICES,
294
350
  authPageDefinition,
295
351
  AuthPage,
@@ -6,6 +6,7 @@ interface AuthResult {
6
6
  error?: string;
7
7
  user?: unknown;
8
8
  token?: string;
9
+ redirectUrl?: string;
9
10
  }
10
11
  interface AuthPageProps {
11
12
  appName?: string;
@@ -19,6 +20,7 @@ interface AuthPageProps {
19
20
  password: string;
20
21
  }) => Promise<AuthResult>;
21
22
  onSuccess?: (result: AuthResult) => void;
23
+ onGoogleSignIn?: () => Promise<AuthResult>;
22
24
  onSwitchToAdmin?: () => void;
23
25
  }
24
26
  declare const authPageDefinition: {
@@ -84,4 +86,12 @@ interface LoginModalProps {
84
86
  }
85
87
  declare const LoginModal: React__default.FC<LoginModalProps>;
86
88
 
87
- export { AUTH_PAGE_REQUIRED_SERVICES, AuthPage, type AuthPageProps, type AuthResult, LoginModal, type LoginModalProps, authPageDefinition };
89
+ interface GoogleSignInButtonProps {
90
+ onSignIn: () => Promise<void> | void;
91
+ disabled?: boolean;
92
+ loading?: boolean;
93
+ label?: string;
94
+ }
95
+ declare const GoogleSignInButton: React__default.FC<GoogleSignInButtonProps>;
96
+
97
+ export { AUTH_PAGE_REQUIRED_SERVICES, AuthPage, type AuthPageProps, type AuthResult, GoogleSignInButton, type GoogleSignInButtonProps, LoginModal, type LoginModalProps, authPageDefinition };
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  AUTH_PAGE_REQUIRED_SERVICES,
3
3
  AuthPage,
4
+ GoogleSignInButton,
4
5
  LoginModal,
5
6
  authPageDefinition
6
- } from "../../chunk-AF2KAEOA.js";
7
+ } from "../../chunk-CUQ7R3H2.js";
7
8
  import "../../chunk-YVWJ4SW7.js";
8
9
  import "../../chunk-5ZMXFCD4.js";
9
10
  import "../../chunk-C3L53YN4.js";
@@ -14,6 +15,7 @@ import "../../chunk-A2CDQISJ.js";
14
15
  export {
15
16
  AUTH_PAGE_REQUIRED_SERVICES,
16
17
  AuthPage,
18
+ GoogleSignInButton,
17
19
  LoginModal,
18
20
  authPageDefinition
19
21
  };
@@ -7,7 +7,7 @@ export { AppShell, AppShellProps, BreadcrumbNav, BreadcrumbNavProps, HeaderBar,
7
7
  export { ApiCallIndicator, ApiCallIndicatorProps, AutoSaveStatus, AutoSaveToggle, AutoSaveToggleProps, BottomStripContextValue, BottomStripProvider, BottomStripProviderProps, StatusLight, StatusLightProps, SystemMessage, SystemMessageDisplay, SystemMessageDisplayProps, SystemMessageType, useBottomStrip } from './components/bottom-strip/index.js';
8
8
  export { B as BottomStrip, a as BottomStripProps } from './BottomStrip-DYhAUQR4.js';
9
9
  export { AccountsSettingsSection, AccountsSettingsSectionProps, SettingsTab, SettingsTabProps, ThemeSettingsSection } from './components/settings/index.js';
10
- export { AUTH_PAGE_REQUIRED_SERVICES, AuthPage, AuthPageProps, AuthResult, LoginModal, LoginModalProps, authPageDefinition } from './components/auth/index.js';
10
+ export { AUTH_PAGE_REQUIRED_SERVICES, AuthPage, AuthPageProps, AuthResult, GoogleSignInButton, GoogleSignInButtonProps, LoginModal, LoginModalProps, authPageDefinition } from './components/auth/index.js';
11
11
  export { FrnlTileRecord, TilesMenu, TilesMenuProps, tilesMenuDefinition } from './components/tiles/index.js';
12
12
  export { GRAPHS_MENU_REQUIRED_SERVICES, GraphRecord, GraphsMenu, GraphsMenuProps } from './components/graph/index.js';
13
13
  export { BackblazeAccount, BackblazeBucket, KloksServiceInvoker, SrklBackblazeAccount, SrklBackblazeTile, StorageOptionTiles, StoragePresetTile, StorageSelection, WORKSPACE_CREATE_DIALOG_REQUIRED_SERVICES, WORKSPACE_TILES_MENU_REQUIRED_SERVICES, WorkspaceCreateDialog, WorkspaceCreateDialogProps, WorkspaceCreateInput, WorkspaceGate, WorkspaceGateProps, WorkspaceRecord, WorkspaceSecondaryClone, WorkspaceSecondaryClonesPanel, WorkspaceStorageReadonlyPanel, WorkspaceStorageService, WorkspaceTilesMenu, WorkspaceTilesMenuProps, createKloksWorkspaceStorageService, defaultWorkspaceStorageService, workspaceTilesMenuDefinition } from './components/workspace/index.js';
@@ -64,18 +64,6 @@ import {
64
64
  TilesMenu,
65
65
  tilesMenuDefinition
66
66
  } from "./chunk-PH4NEHWR.js";
67
- import {
68
- frnlBadge,
69
- frnlBottomBar,
70
- frnlPage,
71
- frnlSelect,
72
- frnlSelectDefinition,
73
- frnlSlider,
74
- frnlTabWindow,
75
- frnlToggle,
76
- frnlToggleDefinition,
77
- frnlTopBar
78
- } from "./chunk-DGZBP3ND.js";
79
67
  import {
80
68
  ActionButton,
81
69
  Badge,
@@ -115,6 +103,18 @@ import {
115
103
  usePalette,
116
104
  useTheme
117
105
  } from "./chunk-ZQK5I5ZL.js";
106
+ import {
107
+ frnlBadge,
108
+ frnlBottomBar,
109
+ frnlPage,
110
+ frnlSelect,
111
+ frnlSelectDefinition,
112
+ frnlSlider,
113
+ frnlTabWindow,
114
+ frnlToggle,
115
+ frnlToggleDefinition,
116
+ frnlTopBar
117
+ } from "./chunk-DGZBP3ND.js";
118
118
  import {
119
119
  BlockquoteStyleSchema,
120
120
  CodeStyleSchema,
@@ -168,9 +168,10 @@ import {
168
168
  import {
169
169
  AUTH_PAGE_REQUIRED_SERVICES,
170
170
  AuthPage,
171
+ GoogleSignInButton,
171
172
  LoginModal,
172
173
  authPageDefinition
173
- } from "./chunk-AF2KAEOA.js";
174
+ } from "./chunk-CUQ7R3H2.js";
174
175
  import {
175
176
  frnlButton,
176
177
  frnlButtonDefinition,
@@ -266,6 +267,7 @@ export {
266
267
  FrnlStoreProvider,
267
268
  GRAPHS_MENU_REQUIRED_SERVICES,
268
269
  GhostButton,
270
+ GoogleSignInButton,
269
271
  GraphsMenu,
270
272
  HeaderBar,
271
273
  HeadingLevelSchema,