@ultrst-armada/floks 2.0.4 → 2.0.7
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 +3 -3
- package/packages/canvas-ui/dist/authoring/authoringOperations.d.ts +41 -0
- package/packages/canvas-ui/dist/authoring/authoringOperations.test.d.ts +1 -0
- package/packages/canvas-ui/dist/authoring/index.d.ts +1 -0
- package/packages/canvas-ui/dist/authoring/index.js +17 -3
- package/packages/canvas-ui/dist/{chunk-TS7P3WWH.js → chunk-CI4C6DJR.js} +108 -24
- package/packages/canvas-ui/dist/index.js +25 -11
- package/packages/canvas-ui/package.json +2 -2
- package/packages/ui/dist/chunk-2YP2RPJY.js +54 -0
- package/packages/ui/dist/{chunk-4GMTEWLE.js → chunk-6EYOJ4DD.js} +2 -2
- package/packages/ui/dist/{chunk-DZTJJOLR.js → chunk-DEKSKDSF.js} +26 -13
- package/packages/ui/dist/{chunk-HWYGCCRL.js → chunk-FA6GHJKU.js} +2 -2
- package/packages/ui/dist/{chunk-OMNGRMJY.js → chunk-FVOZFKV7.js} +601 -534
- package/packages/ui/dist/{chunk-G5CYPT3P.js → chunk-IYBFDSTU.js} +93 -9
- package/packages/ui/dist/{chunk-GOUFV3B4.js → chunk-RLM72WKL.js} +1 -1
- package/packages/ui/dist/components/auth/index.js +3 -3
- package/packages/ui/dist/components/graph/index.js +3 -3
- package/packages/ui/dist/components/tiles/index.js +2 -2
- package/packages/ui/dist/components/workspace/GoogleDriveWorkspacePicker.d.ts +2 -2
- package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.backblaze.test.d.ts +1 -0
- package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.d.ts +45 -12
- package/packages/ui/dist/components/workspace/WorkspaceCreateDialog.kloks-service.test.d.ts +1 -0
- package/packages/ui/dist/components/workspace/WorkspaceGate.d.ts +3 -1
- package/packages/ui/dist/components/workspace/WorkspaceTilesMenu.d.ts +1 -1
- package/packages/ui/dist/components/workspace/index.d.ts +0 -3
- package/packages/ui/dist/components/workspace/index.js +3 -9
- package/packages/ui/dist/frnl/frnlPage.d.ts +30 -0
- package/packages/ui/dist/frnl/frnlTabWindow.d.ts +21 -0
- package/packages/ui/dist/frnl/index.d.ts +3 -1
- package/packages/ui/dist/frnl/index.js +7 -3
- package/packages/ui/dist/frnl/store.d.ts +7 -18
- package/packages/ui/dist/frnl/store.js +3 -1
- package/packages/ui/dist/index.js +11 -13
- package/packages/ui/package.json +2 -2
- package/packages/ui/dist/chunk-B4XTM5TI.js +0 -25
- package/packages/ui/dist/components/workspace/SrklBackblazeTile.d.ts +0 -27
- package/packages/ui/dist/components/workspace/StorageOptionTiles.d.ts +0 -27
- package/packages/ui/dist/components/workspace/StoragePresetTile.d.ts +0 -8
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFloksFrnlStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2YP2RPJY.js";
|
|
4
4
|
import {
|
|
5
5
|
BottomStripProvider,
|
|
6
6
|
useBottomStrip
|
|
7
7
|
} from "./chunk-62ITRDJX.js";
|
|
8
8
|
|
|
9
|
+
// src/frnl/index.ts
|
|
10
|
+
import { createFrnlDomMeasurementAdapter } from "@ultrst-armada/frnlts";
|
|
11
|
+
|
|
9
12
|
// src/frnl/frnlControls.tsx
|
|
10
13
|
import { useId, useMemo } from "react";
|
|
11
14
|
import { defineFrnlComponent } from "@ultrst-armada/frnlts";
|
|
@@ -284,8 +287,21 @@ var frnlBadge = ({
|
|
|
284
287
|
frnlBadge.displayName = "frnlBadge";
|
|
285
288
|
|
|
286
289
|
// src/frnl/frnlTabWindow.tsx
|
|
287
|
-
import { useState } from "react";
|
|
290
|
+
import { useMemo as useMemo2, useState } from "react";
|
|
291
|
+
import { defineFrnlComponent as defineFrnlComponent2 } from "@ultrst-armada/frnlts";
|
|
292
|
+
import { useFrnlComponent as useFrnlComponent2 } from "@ultrst-armada/frnlts/react";
|
|
288
293
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
294
|
+
var frnlTabWindowDefinition = defineFrnlComponent2({
|
|
295
|
+
name: "frnlTabWindow",
|
|
296
|
+
states: {
|
|
297
|
+
active: {
|
|
298
|
+
name: "active",
|
|
299
|
+
events: { selectTab: { functionId: "frnlTabWindow.selectTab" } },
|
|
300
|
+
visualParameters: {},
|
|
301
|
+
phases: { sustainPhase: { visualDefinition: { parameters: {} } } }
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
289
305
|
var frnlTabWindow = ({
|
|
290
306
|
id = "frnl-tab-window",
|
|
291
307
|
tabs,
|
|
@@ -294,14 +310,39 @@ var frnlTabWindow = ({
|
|
|
294
310
|
className = "",
|
|
295
311
|
children
|
|
296
312
|
}) => {
|
|
313
|
+
const store = useFloksFrnlStore();
|
|
297
314
|
const [internalActiveTab, setInternalActiveTab] = useState(tabs[0]?.id);
|
|
315
|
+
const resolvedId = id;
|
|
298
316
|
const activeId = activeTabId ?? internalActiveTab;
|
|
317
|
+
const handlers = useMemo2(() => ({
|
|
318
|
+
"frnlTabWindow.selectTab": (payload) => {
|
|
319
|
+
if (typeof payload !== "string") throw new TypeError("selectTab expects a tab id");
|
|
320
|
+
const tab = tabs.find((item) => item.id === payload);
|
|
321
|
+
if (!tab || tab.disabled) throw new Error("Unknown or disabled tab: " + payload);
|
|
322
|
+
handleSelect(tab);
|
|
323
|
+
}
|
|
324
|
+
}), [tabs, onTabChange]);
|
|
325
|
+
const semanticProperties = useMemo2(
|
|
326
|
+
() => ({
|
|
327
|
+
activeTabId: activeId,
|
|
328
|
+
tabs: tabs.map((tab) => ({ id: tab.id, label: tab.label, disabled: Boolean(tab.disabled) }))
|
|
329
|
+
}),
|
|
330
|
+
[activeId, tabs]
|
|
331
|
+
);
|
|
332
|
+
useFrnlComponent2({
|
|
333
|
+
id: resolvedId,
|
|
334
|
+
definition: frnlTabWindowDefinition,
|
|
335
|
+
store,
|
|
336
|
+
state: "active",
|
|
337
|
+
properties: semanticProperties,
|
|
338
|
+
handlers
|
|
339
|
+
});
|
|
299
340
|
const { setInspectionText } = useBottomStrip();
|
|
300
|
-
|
|
341
|
+
function handleSelect(tab) {
|
|
301
342
|
if (tab.disabled) return;
|
|
302
343
|
if (onTabChange) onTabChange(tab.id);
|
|
303
344
|
else setInternalActiveTab(tab.id);
|
|
304
|
-
}
|
|
345
|
+
}
|
|
305
346
|
const currentTab = tabs.find((t) => t.id === activeId);
|
|
306
347
|
return /* @__PURE__ */ jsxs2(
|
|
307
348
|
"div",
|
|
@@ -700,9 +741,30 @@ var frnlBottomBar = ({
|
|
|
700
741
|
frnlBottomBar.displayName = "frnlBottomBar";
|
|
701
742
|
|
|
702
743
|
// src/frnl/frnlPage.tsx
|
|
703
|
-
import React5, { useEffect as useEffect3, useState as useState4 } from "react";
|
|
744
|
+
import React5, { useEffect as useEffect3, useMemo as useMemo3, useState as useState4 } from "react";
|
|
704
745
|
import { mountFrnlOrchestration } from "@ultrst-armada/frnlts";
|
|
746
|
+
import { defineFrnlComponent as defineFrnlComponent3 } from "@ultrst-armada/frnlts";
|
|
747
|
+
import { useFrnlComponent as useFrnlComponent3 } from "@ultrst-armada/frnlts/react";
|
|
705
748
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
749
|
+
var frnlPageDefinition = defineFrnlComponent3({
|
|
750
|
+
name: "frnlPage",
|
|
751
|
+
states: {
|
|
752
|
+
active: {
|
|
753
|
+
name: "active",
|
|
754
|
+
events: {
|
|
755
|
+
selectTab: { functionId: "frnlPage.selectTab" },
|
|
756
|
+
save: { functionId: "frnlPage.save" },
|
|
757
|
+
openSettings: { functionId: "frnlPage.openSettings" },
|
|
758
|
+
logout: { functionId: "frnlPage.logout" }
|
|
759
|
+
},
|
|
760
|
+
visualParameters: {},
|
|
761
|
+
phases: { sustainPhase: { visualDefinition: { parameters: {} } } }
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
var EMPTY_PAGE_TABS = [];
|
|
766
|
+
var EMPTY_PAGE_ORCHESTRATIONS = [];
|
|
767
|
+
var EMPTY_RECENT_API_REQUESTS = [];
|
|
706
768
|
function FrnlGlobalHoverInspector() {
|
|
707
769
|
const { setInspectionText } = useBottomStrip();
|
|
708
770
|
useEffect3(() => {
|
|
@@ -751,7 +813,7 @@ function FrnlPageInner({
|
|
|
751
813
|
appName = "Skipo App",
|
|
752
814
|
appLogo,
|
|
753
815
|
breadcrumbs,
|
|
754
|
-
tabs =
|
|
816
|
+
tabs = EMPTY_PAGE_TABS,
|
|
755
817
|
activeTabId,
|
|
756
818
|
onTabChange,
|
|
757
819
|
showTopBar = true,
|
|
@@ -762,14 +824,35 @@ function FrnlPageInner({
|
|
|
762
824
|
onOpenSettings,
|
|
763
825
|
onSave,
|
|
764
826
|
isSaving = false,
|
|
765
|
-
recentApiRequests =
|
|
766
|
-
orchestrations =
|
|
827
|
+
recentApiRequests = EMPTY_RECENT_API_REQUESTS,
|
|
828
|
+
orchestrations = EMPTY_PAGE_ORCHESTRATIONS,
|
|
767
829
|
className = "",
|
|
768
830
|
children
|
|
769
831
|
}) {
|
|
770
832
|
const store = useFloksFrnlStore();
|
|
771
833
|
const [internalActiveTab, setInternalActiveTab] = useState4(tabs[0]?.id);
|
|
772
834
|
const activeTab = activeTabId ?? internalActiveTab;
|
|
835
|
+
const handlers = React5.useMemo(() => ({
|
|
836
|
+
"frnlPage.selectTab": (payload) => {
|
|
837
|
+
if (typeof payload !== "string") throw new TypeError("selectTab expects a tab id");
|
|
838
|
+
handleTabChange(payload);
|
|
839
|
+
},
|
|
840
|
+
"frnlPage.save": () => onSave?.(),
|
|
841
|
+
"frnlPage.openSettings": () => onOpenSettings?.(),
|
|
842
|
+
"frnlPage.logout": () => onLogout?.()
|
|
843
|
+
}), [onSave, onOpenSettings, onLogout, onTabChange]);
|
|
844
|
+
const semanticProperties = useMemo3(
|
|
845
|
+
() => ({ appName, activeTabId: activeTab, tabIds: tabs.map((tab) => tab.id) }),
|
|
846
|
+
[appName, activeTab, tabs]
|
|
847
|
+
);
|
|
848
|
+
useFrnlComponent3({
|
|
849
|
+
id,
|
|
850
|
+
definition: frnlPageDefinition,
|
|
851
|
+
store,
|
|
852
|
+
state: "active",
|
|
853
|
+
properties: semanticProperties,
|
|
854
|
+
handlers
|
|
855
|
+
});
|
|
773
856
|
useEffect3(() => {
|
|
774
857
|
const cleanups = orchestrations.map(
|
|
775
858
|
(orchestration) => mountFrnlOrchestration(store, orchestration)
|
|
@@ -828,5 +911,6 @@ export {
|
|
|
828
911
|
frnlTabWindow,
|
|
829
912
|
frnlTopBar,
|
|
830
913
|
frnlBottomBar,
|
|
831
|
-
frnlPage
|
|
914
|
+
frnlPage,
|
|
915
|
+
createFrnlDomMeasurementAdapter
|
|
832
916
|
};
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
resolveLuthEnvironment,
|
|
17
17
|
resolveLuthOrigin,
|
|
18
18
|
useLuthAuth
|
|
19
|
-
} from "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
} from "../../chunk-FA6GHJKU.js";
|
|
20
|
+
import "../../chunk-RLM72WKL.js";
|
|
21
21
|
import "../../chunk-5ZMXFCD4.js";
|
|
22
22
|
import "../../chunk-C3L53YN4.js";
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-2YP2RPJY.js";
|
|
24
24
|
import "../../chunk-W42SJGOJ.js";
|
|
25
25
|
import "../../chunk-62ITRDJX.js";
|
|
26
26
|
import "../../chunk-A2CDQISJ.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GRAPHS_MENU_REQUIRED_SERVICES,
|
|
3
3
|
GraphsMenu
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-6EYOJ4DD.js";
|
|
5
|
+
import "../../chunk-DEKSKDSF.js";
|
|
6
|
+
import "../../chunk-2YP2RPJY.js";
|
|
7
7
|
export {
|
|
8
8
|
GRAPHS_MENU_REQUIRED_SERVICES,
|
|
9
9
|
GraphsMenu
|
|
@@ -2,8 +2,8 @@ import "../../chunk-2SD6BIUX.js";
|
|
|
2
2
|
import {
|
|
3
3
|
TilesMenu,
|
|
4
4
|
tilesMenuDefinition
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-DEKSKDSF.js";
|
|
6
|
+
import "../../chunk-2YP2RPJY.js";
|
|
7
7
|
export {
|
|
8
8
|
TilesMenu,
|
|
9
9
|
tilesMenuDefinition
|
|
@@ -14,8 +14,8 @@ export interface GoogleDriveFolder {
|
|
|
14
14
|
export interface GoogleDriveWorkspacePickerProps {
|
|
15
15
|
userId: string;
|
|
16
16
|
connection?: GoogleDriveConnection;
|
|
17
|
-
connectGoogleDrive?: (userId: string) => Promise<GoogleDriveConnection>;
|
|
18
|
-
listGoogleDriveFolders?: (connectionId: string, parentFolderId?: string) => Promise<GoogleDriveFolder[]>;
|
|
17
|
+
connectGoogleDrive?: (userId: string) => Promise<GoogleDriveConnection | void>;
|
|
18
|
+
listGoogleDriveFolders?: (connectionId: string, parentFolderId?: string, userId?: string) => Promise<GoogleDriveFolder[]>;
|
|
19
19
|
onConnected: (connection: GoogleDriveConnection) => void;
|
|
20
20
|
onSelectFolder: (folder: GoogleDriveFolder) => void;
|
|
21
21
|
selectedFolder?: GoogleDriveFolder | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,17 @@ export interface BackblazeAccount {
|
|
|
13
13
|
name: string;
|
|
14
14
|
provider?: string;
|
|
15
15
|
}
|
|
16
|
+
export interface BackblazeCredentialInput {
|
|
17
|
+
label?: string;
|
|
18
|
+
keyId: string;
|
|
19
|
+
applicationKey: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BackblazeCredentialTestResult {
|
|
22
|
+
success: boolean;
|
|
23
|
+
accountId?: string;
|
|
24
|
+
buckets: BackblazeBucket[];
|
|
25
|
+
error?: string;
|
|
26
|
+
}
|
|
16
27
|
export interface WorkspaceStorageOption {
|
|
17
28
|
id: string;
|
|
18
29
|
provider: WorkspaceStorageProvider;
|
|
@@ -26,6 +37,7 @@ export interface WorkspaceStorageOption {
|
|
|
26
37
|
bucketName?: string;
|
|
27
38
|
b2BucketName?: string;
|
|
28
39
|
googleEmail?: string;
|
|
40
|
+
googleAccountId?: string;
|
|
29
41
|
googleRootFolderId?: string;
|
|
30
42
|
googleRootFolderName?: string;
|
|
31
43
|
}
|
|
@@ -53,12 +65,35 @@ export interface WorkspaceCreateInput {
|
|
|
53
65
|
googleRootFolderName?: string;
|
|
54
66
|
storageConnection?: WorkspaceStorageOption;
|
|
55
67
|
}
|
|
68
|
+
export interface StorageProviderCapability {
|
|
69
|
+
id: WorkspaceStorageProvider;
|
|
70
|
+
displayName: string;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
availabilityReason?: string;
|
|
73
|
+
canSelectExistingConnection: boolean;
|
|
74
|
+
canCreateConnection: boolean;
|
|
75
|
+
requiredConfigurationFields: string[];
|
|
76
|
+
authorizationMode: string;
|
|
77
|
+
discoveryCapabilities: {
|
|
78
|
+
accounts: boolean;
|
|
79
|
+
buckets: boolean;
|
|
80
|
+
folders: boolean;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
56
83
|
export interface WorkspaceStorageService {
|
|
84
|
+
listStorageProviderCapabilities?: (userId: string) => Promise<StorageProviderCapability[]>;
|
|
57
85
|
listStorageConnections?: (userId: string) => Promise<WorkspaceStorageOption[]>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
86
|
+
testBackblazeCredentials?: (input: BackblazeCredentialInput) => Promise<BackblazeCredentialTestResult>;
|
|
87
|
+
createBackblazeConnection?: (userId: string, input: BackblazeCredentialInput & {
|
|
88
|
+
bucketName: string;
|
|
89
|
+
}) => Promise<BackblazeAccount>;
|
|
90
|
+
connectGoogleDrive?: (userId: string) => Promise<WorkspaceStorageOption | void>;
|
|
91
|
+
listGoogleDriveFolders?: (connectionId: string, parentFolderId?: string, userId?: string) => Promise<GoogleDriveFolder[]>;
|
|
92
|
+
getGoogleDriveAccountIdentity?: (userId: string, connectionId: string) => Promise<{
|
|
93
|
+
accountId: string;
|
|
94
|
+
email?: string;
|
|
95
|
+
}>;
|
|
96
|
+
selectGoogleDriveRootFolder?: (userId: string, connectionId: string, folderId: string) => Promise<GoogleDriveFolder>;
|
|
62
97
|
}
|
|
63
98
|
export type WorkspaceCreateDialogHiddenField = 'description' | 'localFolderName' | 'backblaze' | 'canonicalFolderPreview';
|
|
64
99
|
export interface WorkspaceStoragePolicy {
|
|
@@ -88,6 +123,7 @@ export interface WorkspaceCreateDialogProps {
|
|
|
88
123
|
storageOptions?: WorkspaceStorageOption[];
|
|
89
124
|
storageService?: WorkspaceStorageService;
|
|
90
125
|
visibility?: WorkspaceCreateDialogVisibility;
|
|
126
|
+
googleDriveConnectionId?: string;
|
|
91
127
|
onClose: () => void;
|
|
92
128
|
onSubmit: (input: WorkspaceCreateInput) => Promise<void> | void;
|
|
93
129
|
}
|
|
@@ -103,12 +139,9 @@ export interface KloksServiceInvoker {
|
|
|
103
139
|
invoke: (serviceId: string, operation: string, input: Record<string, unknown>) => Promise<unknown>;
|
|
104
140
|
}
|
|
105
141
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
142
|
+
* Every storage operation, including Google OAuth and folder selection, is
|
|
143
|
+
* invoked through the canonical Kloks StorageService contract. Floks never
|
|
144
|
+
* exchanges OAuth codes, persists tokens, or calls provider APIs directly.
|
|
108
145
|
*/
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
listGoogleDriveFolders: (connectionId: string, parentFolderId?: string) => Promise<GoogleDriveFolder[]>;
|
|
112
|
-
}
|
|
113
|
-
export declare function createKloksWorkspaceStorageService(invoker: KloksServiceInvoker, googleDrive?: KloksGoogleDriveWorkspaceApi): WorkspaceStorageService;
|
|
114
|
-
export declare function WorkspaceCreateDialog({ open, userId, currentUser, appName, storageOptions, storageService, visibility, onClose, onSubmit, }: WorkspaceCreateDialogProps): React.JSX.Element;
|
|
146
|
+
export declare function createKloksWorkspaceStorageService(invoker: KloksServiceInvoker): WorkspaceStorageService;
|
|
147
|
+
export declare function WorkspaceCreateDialog({ open, userId, currentUser, appName, storageOptions, storageService, visibility, googleDriveConnectionId, onClose, onSubmit, }: WorkspaceCreateDialogProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WorkspaceRecord } from './WorkspaceTilesMenu.js';
|
|
3
|
-
import { type WorkspaceStorageService, type WorkspaceCreateInput } from './WorkspaceCreateDialog.js';
|
|
3
|
+
import { type WorkspaceStorageService, type WorkspaceCreateInput, type WorkspaceStorageOption, type WorkspaceCreateDialogVisibility } from './WorkspaceCreateDialog.js';
|
|
4
4
|
export interface WorkspaceGateProps {
|
|
5
5
|
workspaces: WorkspaceRecord[] | any[];
|
|
6
6
|
activeWorkspaceId?: string | null;
|
|
@@ -14,6 +14,8 @@ export interface WorkspaceGateProps {
|
|
|
14
14
|
appName?: string;
|
|
15
15
|
appSubtitle?: string;
|
|
16
16
|
storageService?: WorkspaceStorageService;
|
|
17
|
+
storageOptions?: WorkspaceStorageOption[];
|
|
18
|
+
visibility?: WorkspaceCreateDialogVisibility;
|
|
17
19
|
onSelectWorkspace: (workspace: WorkspaceRecord) => void;
|
|
18
20
|
onCreateWorkspace?: (input: WorkspaceCreateInput | any) => Promise<void> | void;
|
|
19
21
|
onUpdateWorkspace?: (workspaceId: string, patch: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WorkspaceCreateInput, type WorkspaceStorageService, type WorkspaceCreateDialogVisibility, type WorkspaceStorageOption } from './WorkspaceCreateDialog.js';
|
|
3
|
-
export declare const WORKSPACE_TILES_MENU_REQUIRED_SERVICES: readonly ["auth", "workspace", "storage"
|
|
3
|
+
export declare const WORKSPACE_TILES_MENU_REQUIRED_SERVICES: readonly ["auth", "workspace", "storage"];
|
|
4
4
|
export interface WorkspaceRecord {
|
|
5
5
|
id: string;
|
|
6
6
|
title: string;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './StoragePresetTile.js';
|
|
2
|
-
export * from './SrklBackblazeTile.js';
|
|
3
|
-
export * from './StorageOptionTiles.js';
|
|
4
1
|
export * from './WorkspaceStorageReadonlyPanel.js';
|
|
5
2
|
export * from './WorkspaceSecondaryClonesPanel.js';
|
|
6
3
|
export * from './WorkspaceCreateDialog.js';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GoogleDriveWorkspacePicker,
|
|
3
|
-
SrklBackblazeTile,
|
|
4
|
-
StorageOptionTiles,
|
|
5
|
-
StoragePresetTile,
|
|
6
3
|
WORKSPACE_TILES_MENU_REQUIRED_SERVICES,
|
|
7
4
|
WorkspaceCreateDialog,
|
|
8
5
|
WorkspaceGate,
|
|
@@ -15,14 +12,11 @@ import {
|
|
|
15
12
|
describeGoogleDriveError,
|
|
16
13
|
formatWorkspaceFolderPreview,
|
|
17
14
|
workspaceTilesMenuDefinition
|
|
18
|
-
} from "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
15
|
+
} from "../../chunk-FVOZFKV7.js";
|
|
16
|
+
import "../../chunk-DEKSKDSF.js";
|
|
17
|
+
import "../../chunk-2YP2RPJY.js";
|
|
21
18
|
export {
|
|
22
19
|
GoogleDriveWorkspacePicker,
|
|
23
|
-
SrklBackblazeTile,
|
|
24
|
-
StorageOptionTiles,
|
|
25
|
-
StoragePresetTile,
|
|
26
20
|
WORKSPACE_TILES_MENU_REQUIRED_SERVICES,
|
|
27
21
|
WorkspaceCreateDialog,
|
|
28
22
|
WorkspaceGate,
|
|
@@ -2,6 +2,36 @@ import React from 'react';
|
|
|
2
2
|
import { type FrnlOrchestrationDefinition } from '@ultrst-armada/frnlts';
|
|
3
3
|
import { type FrnlBreadcrumbItem, type FrnlTopBarTab, type FrnlUserProfile } from './frnlTopBar.js';
|
|
4
4
|
import { type FrnlApiRequestLog } from './frnlBottomBar.js';
|
|
5
|
+
export declare const frnlPageDefinition: {
|
|
6
|
+
name: string;
|
|
7
|
+
states: {
|
|
8
|
+
active: {
|
|
9
|
+
name: string;
|
|
10
|
+
events: {
|
|
11
|
+
selectTab: {
|
|
12
|
+
functionId: string;
|
|
13
|
+
};
|
|
14
|
+
save: {
|
|
15
|
+
functionId: string;
|
|
16
|
+
};
|
|
17
|
+
openSettings: {
|
|
18
|
+
functionId: string;
|
|
19
|
+
};
|
|
20
|
+
logout: {
|
|
21
|
+
functionId: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
visualParameters: {};
|
|
25
|
+
phases: {
|
|
26
|
+
sustainPhase: {
|
|
27
|
+
visualDefinition: {
|
|
28
|
+
parameters: {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
5
35
|
export interface FrnlPageTab extends FrnlTopBarTab {
|
|
6
36
|
content?: React.ReactNode;
|
|
7
37
|
}
|
|
@@ -7,6 +7,27 @@ export interface FrnlTabItem {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
content?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
+
export declare const frnlTabWindowDefinition: {
|
|
11
|
+
name: string;
|
|
12
|
+
states: {
|
|
13
|
+
active: {
|
|
14
|
+
name: string;
|
|
15
|
+
events: {
|
|
16
|
+
selectTab: {
|
|
17
|
+
functionId: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
visualParameters: {};
|
|
21
|
+
phases: {
|
|
22
|
+
sustainPhase: {
|
|
23
|
+
visualDefinition: {
|
|
24
|
+
parameters: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
10
31
|
export interface FrnlTabWindowProps {
|
|
11
32
|
id?: string;
|
|
12
33
|
tabs: FrnlTabItem[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './store.js';
|
|
2
2
|
export type { FrnlInputContract } from '@ultrst-armada/frnlts';
|
|
3
|
-
export type { FrnlFrontendApi, FrnlFrontendSnapshot, FrnlComponentSnapshot, FrnlComponentControl } from '@ultrst-armada/frnlts';
|
|
3
|
+
export type { FrnlFrontendApi, FrnlFrontendSnapshot, FrnlComponentSnapshot, FrnlComponentControl, FrnlMeasurementAdapter, FrnlRealizedState, FrnlGeometry } from '@ultrst-armada/frnlts';
|
|
4
|
+
export { createFrnlDomMeasurementAdapter } from '@ultrst-armada/frnlts';
|
|
5
|
+
export { getFloksFrnlFrontendApi, floksFrnlFrontendApi } from './store.js';
|
|
4
6
|
export { frnlButton, frnlButtonDefinition, type FrnlButtonProps, type FrnlButtonVariant, type FrnlButtonSize, } from './frnlButton.js';
|
|
5
7
|
export { frnlTextInput, frnlTextInputDefinition, type FrnlTextInputProps, } from './frnlTextInput.js';
|
|
6
8
|
export { frnlSelect, frnlSelectDefinition, type FrnlSelectProps, type FrnlSelectOption, frnlToggle, frnlToggleDefinition, type FrnlToggleProps, frnlSlider, type FrnlSliderProps, frnlBadge, type FrnlBadgeProps, } from './frnlControls.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createFrnlDomMeasurementAdapter,
|
|
2
3
|
frnlBadge,
|
|
3
4
|
frnlBottomBar,
|
|
4
5
|
frnlPage,
|
|
@@ -9,26 +10,28 @@ import {
|
|
|
9
10
|
frnlToggle,
|
|
10
11
|
frnlToggleDefinition,
|
|
11
12
|
frnlTopBar
|
|
12
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-IYBFDSTU.js";
|
|
13
14
|
import {
|
|
14
15
|
frnlButton,
|
|
15
16
|
frnlButtonDefinition,
|
|
16
17
|
frnlTextInput,
|
|
17
18
|
frnlTextInputDefinition
|
|
18
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-RLM72WKL.js";
|
|
19
20
|
import "../chunk-5ZMXFCD4.js";
|
|
20
21
|
import "../chunk-C3L53YN4.js";
|
|
21
22
|
import {
|
|
22
23
|
FrnlStoreProvider,
|
|
23
24
|
floksFrnlFrontendApi,
|
|
24
25
|
floksFrnlStore,
|
|
26
|
+
getFloksFrnlFrontendApi,
|
|
25
27
|
getFloksFrnlStore,
|
|
26
28
|
useFloksFrnlStore
|
|
27
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-2YP2RPJY.js";
|
|
28
30
|
import "../chunk-62ITRDJX.js";
|
|
29
31
|
import "../chunk-A2CDQISJ.js";
|
|
30
32
|
export {
|
|
31
33
|
FrnlStoreProvider,
|
|
34
|
+
createFrnlDomMeasurementAdapter,
|
|
32
35
|
floksFrnlFrontendApi,
|
|
33
36
|
floksFrnlStore,
|
|
34
37
|
frnlBadge,
|
|
@@ -45,6 +48,7 @@ export {
|
|
|
45
48
|
frnlToggle,
|
|
46
49
|
frnlToggleDefinition,
|
|
47
50
|
frnlTopBar,
|
|
51
|
+
getFloksFrnlFrontendApi,
|
|
48
52
|
getFloksFrnlStore,
|
|
49
53
|
useFloksFrnlStore
|
|
50
54
|
};
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { type FrnlStore } from '@ultrst-armada/frnlts';
|
|
2
|
+
import { type FrnlStore, type FrnlFrontendApi } from '@ultrst-armada/frnlts';
|
|
3
3
|
export type { FrnlStore };
|
|
4
|
-
/**
|
|
5
|
-
* Default canonical shared FrnlTS semantic store for Floks UI assets.
|
|
6
|
-
* For application-level custom store isolation, prefer using `FrnlStoreProvider`.
|
|
7
|
-
*/
|
|
4
|
+
/** Default canonical shared FrnlTS semantic store for Floks UI assets. */
|
|
8
5
|
export declare const floksFrnlStore: FrnlStore;
|
|
9
|
-
/** Canonical programmatic
|
|
10
|
-
export declare const floksFrnlFrontendApi:
|
|
11
|
-
/**
|
|
12
|
-
* Returns the currently active global Frnl store (defaults to `floksFrnlStore`).
|
|
13
|
-
*/
|
|
6
|
+
/** Canonical programmatic UI surface for the default Floks store. */
|
|
7
|
+
export declare const floksFrnlFrontendApi: FrnlFrontendApi;
|
|
14
8
|
export declare function getFloksFrnlStore(): FrnlStore;
|
|
9
|
+
export declare function getFloksFrnlFrontendApi(): FrnlFrontendApi;
|
|
15
10
|
export interface FrnlStoreProviderProps {
|
|
16
11
|
store: FrnlStore;
|
|
17
12
|
children: ReactNode;
|
|
13
|
+
applicationId?: string;
|
|
14
|
+
route?: string;
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Context provider allowing applications to inject an isolated or shared Frnl store
|
|
21
|
-
* down a specific component subtree. This is the preferred mechanism for custom store injection.
|
|
22
|
-
*/
|
|
23
16
|
export declare const FrnlStoreProvider: React.FC<FrnlStoreProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* Hook to access the active Frnl store: prefers React Context if provided via FrnlStoreProvider,
|
|
26
|
-
* falling back to the canonical default floksFrnlStore.
|
|
27
|
-
*/
|
|
28
17
|
export declare function useFloksFrnlStore(): FrnlStore;
|
|
@@ -2,13 +2,15 @@ import {
|
|
|
2
2
|
FrnlStoreProvider,
|
|
3
3
|
floksFrnlFrontendApi,
|
|
4
4
|
floksFrnlStore,
|
|
5
|
+
getFloksFrnlFrontendApi,
|
|
5
6
|
getFloksFrnlStore,
|
|
6
7
|
useFloksFrnlStore
|
|
7
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-2YP2RPJY.js";
|
|
8
9
|
export {
|
|
9
10
|
FrnlStoreProvider,
|
|
10
11
|
floksFrnlFrontendApi,
|
|
11
12
|
floksFrnlStore,
|
|
13
|
+
getFloksFrnlFrontendApi,
|
|
12
14
|
getFloksFrnlStore,
|
|
13
15
|
useFloksFrnlStore
|
|
14
16
|
};
|
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
} from "./chunk-HXTM3RSQ.js";
|
|
8
8
|
import {
|
|
9
9
|
GoogleDriveWorkspacePicker,
|
|
10
|
-
SrklBackblazeTile,
|
|
11
|
-
StorageOptionTiles,
|
|
12
|
-
StoragePresetTile,
|
|
13
10
|
WORKSPACE_TILES_MENU_REQUIRED_SERVICES,
|
|
14
11
|
WorkspaceCreateDialog,
|
|
15
12
|
WorkspaceGate,
|
|
@@ -22,7 +19,7 @@ import {
|
|
|
22
19
|
describeGoogleDriveError,
|
|
23
20
|
formatWorkspaceFolderPreview,
|
|
24
21
|
workspaceTilesMenuDefinition
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FVOZFKV7.js";
|
|
26
23
|
import {
|
|
27
24
|
ConfirmDialog,
|
|
28
25
|
CopyableErrorAlert,
|
|
@@ -54,7 +51,7 @@ import {
|
|
|
54
51
|
import {
|
|
55
52
|
GRAPHS_MENU_REQUIRED_SERVICES,
|
|
56
53
|
GraphsMenu
|
|
57
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6EYOJ4DD.js";
|
|
58
55
|
import {
|
|
59
56
|
AppShell,
|
|
60
57
|
BreadcrumbNav,
|
|
@@ -73,8 +70,9 @@ import "./chunk-2SD6BIUX.js";
|
|
|
73
70
|
import {
|
|
74
71
|
TilesMenu,
|
|
75
72
|
tilesMenuDefinition
|
|
76
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-DEKSKDSF.js";
|
|
77
74
|
import {
|
|
75
|
+
createFrnlDomMeasurementAdapter,
|
|
78
76
|
frnlBadge,
|
|
79
77
|
frnlBottomBar,
|
|
80
78
|
frnlPage,
|
|
@@ -85,7 +83,7 @@ import {
|
|
|
85
83
|
frnlToggle,
|
|
86
84
|
frnlToggleDefinition,
|
|
87
85
|
frnlTopBar
|
|
88
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-IYBFDSTU.js";
|
|
89
87
|
import {
|
|
90
88
|
DEFAULT_PALETTE_ID,
|
|
91
89
|
THEME_STORAGE_KEY,
|
|
@@ -204,13 +202,13 @@ import {
|
|
|
204
202
|
resolveLuthEnvironment,
|
|
205
203
|
resolveLuthOrigin,
|
|
206
204
|
useLuthAuth
|
|
207
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-FA6GHJKU.js";
|
|
208
206
|
import {
|
|
209
207
|
frnlButton,
|
|
210
208
|
frnlButtonDefinition,
|
|
211
209
|
frnlTextInput,
|
|
212
210
|
frnlTextInputDefinition
|
|
213
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-RLM72WKL.js";
|
|
214
212
|
import "./chunk-5ZMXFCD4.js";
|
|
215
213
|
import {
|
|
216
214
|
ApiCallIndicator,
|
|
@@ -223,9 +221,10 @@ import {
|
|
|
223
221
|
FrnlStoreProvider,
|
|
224
222
|
floksFrnlFrontendApi,
|
|
225
223
|
floksFrnlStore,
|
|
224
|
+
getFloksFrnlFrontendApi,
|
|
226
225
|
getFloksFrnlStore,
|
|
227
226
|
useFloksFrnlStore
|
|
228
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-2YP2RPJY.js";
|
|
229
228
|
import {
|
|
230
229
|
BaseInput
|
|
231
230
|
} from "./chunk-W42SJGOJ.js";
|
|
@@ -339,11 +338,8 @@ export {
|
|
|
339
338
|
SkipoThemeMetadataSchema,
|
|
340
339
|
SkipoThemeProvider,
|
|
341
340
|
SplitContainer,
|
|
342
|
-
SrklBackblazeTile,
|
|
343
341
|
StatusIndicator,
|
|
344
342
|
StatusLight,
|
|
345
|
-
StorageOptionTiles,
|
|
346
|
-
StoragePresetTile,
|
|
347
343
|
SystemMessageDisplay,
|
|
348
344
|
THEME_STORAGE_KEY,
|
|
349
345
|
TabContainer,
|
|
@@ -370,6 +366,7 @@ export {
|
|
|
370
366
|
buildWorkspaceCreateInput,
|
|
371
367
|
centralLedger,
|
|
372
368
|
createAppThemeSocket,
|
|
369
|
+
createFrnlDomMeasurementAdapter,
|
|
373
370
|
createKloksWorkspaceStorageService,
|
|
374
371
|
createLuthAuthClient,
|
|
375
372
|
createLuthAuthClientForApplication,
|
|
@@ -395,6 +392,7 @@ export {
|
|
|
395
392
|
frnlTopBar,
|
|
396
393
|
getActivePalette,
|
|
397
394
|
getAllUIElements,
|
|
395
|
+
getFloksFrnlFrontendApi,
|
|
398
396
|
getFloksFrnlStore,
|
|
399
397
|
getProviderIcon,
|
|
400
398
|
getThemeEngineStatus,
|