@ultrst-armada/floks 2.0.4 → 2.0.6
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 +55 -41
- package/packages/canvas-ui/dist/predictive/index.js +1 -1
- package/packages/canvas-ui/package.json +2 -2
- package/packages/ui/dist/chunk-2YP2RPJY.js +54 -0
- package/packages/ui/dist/{chunk-HWYGCCRL.js → chunk-FA6GHJKU.js} +2 -2
- package/packages/ui/dist/{chunk-G5CYPT3P.js → chunk-IYBFDSTU.js} +93 -9
- package/packages/ui/dist/{chunk-DZTJJOLR.js → chunk-NKFSUEAH.js} +1 -1
- package/packages/ui/dist/{chunk-OMNGRMJY.js → chunk-QFUPODK6.js} +601 -534
- package/packages/ui/dist/{chunk-GOUFV3B4.js → chunk-RLM72WKL.js} +1 -1
- package/packages/ui/dist/{chunk-4GMTEWLE.js → chunk-SFD2LWCU.js} +2 -2
- 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/layout/index.js +2 -2
- 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 +49 -51
- 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
- package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-GWW3BGOB.js} +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TilesMenu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKFSUEAH.js";
|
|
4
4
|
import {
|
|
5
5
|
useFloksFrnlStore
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2YP2RPJY.js";
|
|
7
7
|
|
|
8
8
|
// src/components/graph/GraphsMenu.tsx
|
|
9
9
|
import { GitBranch, Network } from "lucide-react";
|
|
@@ -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-SFD2LWCU.js";
|
|
5
|
+
import "../../chunk-NKFSUEAH.js";
|
|
6
|
+
import "../../chunk-2YP2RPJY.js";
|
|
7
7
|
export {
|
|
8
8
|
GRAPHS_MENU_REQUIRED_SERVICES,
|
|
9
9
|
GraphsMenu
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
BreadcrumbNav,
|
|
4
4
|
HeaderBar,
|
|
5
5
|
TopToolbar
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-GKP6KHTI.js";
|
|
6
|
+
} from "../../chunk-GWW3BGOB.js";
|
|
8
7
|
import "../../chunk-C3L53YN4.js";
|
|
8
|
+
import "../../chunk-GKP6KHTI.js";
|
|
9
9
|
import "../../chunk-62ITRDJX.js";
|
|
10
10
|
import "../../chunk-A2CDQISJ.js";
|
|
11
11
|
export {
|
|
@@ -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-NKFSUEAH.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-QFUPODK6.js";
|
|
16
|
+
import "../../chunk-NKFSUEAH.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,26 @@ import {
|
|
|
22
19
|
describeGoogleDriveError,
|
|
23
20
|
formatWorkspaceFolderPreview,
|
|
24
21
|
workspaceTilesMenuDefinition
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QFUPODK6.js";
|
|
23
|
+
import {
|
|
24
|
+
AUTH_PAGE_REQUIRED_SERVICES,
|
|
25
|
+
AuthLoadingScreen,
|
|
26
|
+
AuthPage,
|
|
27
|
+
DEFAULT_LUTH_URL,
|
|
28
|
+
GoogleIcon,
|
|
29
|
+
GoogleSignInButton,
|
|
30
|
+
LoginModal,
|
|
31
|
+
LuthAuthClient,
|
|
32
|
+
LuthAuthError,
|
|
33
|
+
LuthAuthPage,
|
|
34
|
+
LuthProtectedRoute,
|
|
35
|
+
authPageDefinition,
|
|
36
|
+
createLuthAuthClient,
|
|
37
|
+
createLuthAuthClientForApplication,
|
|
38
|
+
resolveLuthEnvironment,
|
|
39
|
+
resolveLuthOrigin,
|
|
40
|
+
useLuthAuth
|
|
41
|
+
} from "./chunk-FA6GHJKU.js";
|
|
26
42
|
import {
|
|
27
43
|
ConfirmDialog,
|
|
28
44
|
CopyableErrorAlert,
|
|
@@ -54,13 +70,13 @@ import {
|
|
|
54
70
|
import {
|
|
55
71
|
GRAPHS_MENU_REQUIRED_SERVICES,
|
|
56
72
|
GraphsMenu
|
|
57
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-SFD2LWCU.js";
|
|
58
74
|
import {
|
|
59
75
|
AppShell,
|
|
60
76
|
BreadcrumbNav,
|
|
61
77
|
HeaderBar,
|
|
62
78
|
TopToolbar
|
|
63
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GWW3BGOB.js";
|
|
64
80
|
import {
|
|
65
81
|
AccountsSettingsSection,
|
|
66
82
|
SettingsTab,
|
|
@@ -73,8 +89,9 @@ import "./chunk-2SD6BIUX.js";
|
|
|
73
89
|
import {
|
|
74
90
|
TilesMenu,
|
|
75
91
|
tilesMenuDefinition
|
|
76
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-NKFSUEAH.js";
|
|
77
93
|
import {
|
|
94
|
+
createFrnlDomMeasurementAdapter,
|
|
78
95
|
frnlBadge,
|
|
79
96
|
frnlBottomBar,
|
|
80
97
|
frnlPage,
|
|
@@ -85,7 +102,29 @@ import {
|
|
|
85
102
|
frnlToggle,
|
|
86
103
|
frnlToggleDefinition,
|
|
87
104
|
frnlTopBar
|
|
88
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-IYBFDSTU.js";
|
|
106
|
+
import {
|
|
107
|
+
frnlButton,
|
|
108
|
+
frnlButtonDefinition,
|
|
109
|
+
frnlTextInput,
|
|
110
|
+
frnlTextInputDefinition
|
|
111
|
+
} from "./chunk-RLM72WKL.js";
|
|
112
|
+
import "./chunk-5ZMXFCD4.js";
|
|
113
|
+
import {
|
|
114
|
+
ApiCallIndicator,
|
|
115
|
+
AutoSaveToggle,
|
|
116
|
+
BottomStrip,
|
|
117
|
+
StatusLight,
|
|
118
|
+
SystemMessageDisplay
|
|
119
|
+
} from "./chunk-C3L53YN4.js";
|
|
120
|
+
import {
|
|
121
|
+
FrnlStoreProvider,
|
|
122
|
+
floksFrnlFrontendApi,
|
|
123
|
+
floksFrnlStore,
|
|
124
|
+
getFloksFrnlFrontendApi,
|
|
125
|
+
getFloksFrnlStore,
|
|
126
|
+
useFloksFrnlStore
|
|
127
|
+
} from "./chunk-2YP2RPJY.js";
|
|
89
128
|
import {
|
|
90
129
|
DEFAULT_PALETTE_ID,
|
|
91
130
|
THEME_STORAGE_KEY,
|
|
@@ -186,46 +225,6 @@ import {
|
|
|
186
225
|
BaseBadge,
|
|
187
226
|
BaseCard
|
|
188
227
|
} from "./chunk-UOR4P6PO.js";
|
|
189
|
-
import {
|
|
190
|
-
AUTH_PAGE_REQUIRED_SERVICES,
|
|
191
|
-
AuthLoadingScreen,
|
|
192
|
-
AuthPage,
|
|
193
|
-
DEFAULT_LUTH_URL,
|
|
194
|
-
GoogleIcon,
|
|
195
|
-
GoogleSignInButton,
|
|
196
|
-
LoginModal,
|
|
197
|
-
LuthAuthClient,
|
|
198
|
-
LuthAuthError,
|
|
199
|
-
LuthAuthPage,
|
|
200
|
-
LuthProtectedRoute,
|
|
201
|
-
authPageDefinition,
|
|
202
|
-
createLuthAuthClient,
|
|
203
|
-
createLuthAuthClientForApplication,
|
|
204
|
-
resolveLuthEnvironment,
|
|
205
|
-
resolveLuthOrigin,
|
|
206
|
-
useLuthAuth
|
|
207
|
-
} from "./chunk-HWYGCCRL.js";
|
|
208
|
-
import {
|
|
209
|
-
frnlButton,
|
|
210
|
-
frnlButtonDefinition,
|
|
211
|
-
frnlTextInput,
|
|
212
|
-
frnlTextInputDefinition
|
|
213
|
-
} from "./chunk-GOUFV3B4.js";
|
|
214
|
-
import "./chunk-5ZMXFCD4.js";
|
|
215
|
-
import {
|
|
216
|
-
ApiCallIndicator,
|
|
217
|
-
AutoSaveToggle,
|
|
218
|
-
BottomStrip,
|
|
219
|
-
StatusLight,
|
|
220
|
-
SystemMessageDisplay
|
|
221
|
-
} from "./chunk-C3L53YN4.js";
|
|
222
|
-
import {
|
|
223
|
-
FrnlStoreProvider,
|
|
224
|
-
floksFrnlFrontendApi,
|
|
225
|
-
floksFrnlStore,
|
|
226
|
-
getFloksFrnlStore,
|
|
227
|
-
useFloksFrnlStore
|
|
228
|
-
} from "./chunk-B4XTM5TI.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,
|
package/packages/ui/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floks/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Floks UI — Reusable React Component Library with Theme Engine, Base Primitives, Containers, Composite & Layout",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"zod": "^3.24.1",
|
|
112
|
-
"@ultrst-armada/frnlts": "^0.5.
|
|
112
|
+
"@ultrst-armada/frnlts": "^0.5.24",
|
|
113
113
|
"zustand": "^5.0.3",
|
|
114
114
|
"@xyflow/react": "^12.8.6",
|
|
115
115
|
"d3-force": "^3.0.0",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/frnl/store.ts
|
|
2
|
-
import React, { createContext, useContext } from "react";
|
|
3
|
-
import { createFrnlFrontendApi, installFrnlFrontendApi, createFrnlStore } from "@ultrst-armada/frnlts";
|
|
4
|
-
var floksFrnlStore = createFrnlStore();
|
|
5
|
-
var floksFrnlFrontendApi = createFrnlFrontendApi(floksFrnlStore);
|
|
6
|
-
installFrnlFrontendApi(floksFrnlFrontendApi);
|
|
7
|
-
function getFloksFrnlStore() {
|
|
8
|
-
return floksFrnlStore;
|
|
9
|
-
}
|
|
10
|
-
var FrnlStoreContext = createContext(null);
|
|
11
|
-
var FrnlStoreProvider = ({ store, children }) => {
|
|
12
|
-
return React.createElement(FrnlStoreContext.Provider, { value: store }, children);
|
|
13
|
-
};
|
|
14
|
-
function useFloksFrnlStore() {
|
|
15
|
-
const contextStore = useContext(FrnlStoreContext);
|
|
16
|
-
return contextStore ?? floksFrnlStore;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
floksFrnlStore,
|
|
21
|
-
floksFrnlFrontendApi,
|
|
22
|
-
getFloksFrnlStore,
|
|
23
|
-
FrnlStoreProvider,
|
|
24
|
-
useFloksFrnlStore
|
|
25
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface SrklBackblazeAccount {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
provider: string;
|
|
6
|
-
credentials?: {
|
|
7
|
-
keyId?: string;
|
|
8
|
-
b2KeyId?: string;
|
|
9
|
-
applicationKey?: string;
|
|
10
|
-
b2ApplicationKey?: string;
|
|
11
|
-
bucketName?: string;
|
|
12
|
-
region?: string;
|
|
13
|
-
endpoint?: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
interface Props {
|
|
17
|
-
account: SrklBackblazeAccount;
|
|
18
|
-
selectedBucketName?: string;
|
|
19
|
-
isSelectedAccount: boolean;
|
|
20
|
-
onSelectBucket: (account: SrklBackblazeAccount, bucketName: string) => void;
|
|
21
|
-
userId?: string;
|
|
22
|
-
storageService?: {
|
|
23
|
-
listBackblazeBuckets?: (accountId: string, userId: string) => Promise<any[]>;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export declare const SrklBackblazeTile: React.FC<Props>;
|
|
27
|
-
export {};
|