@datatechsolutions/ui 2.11.83 → 2.11.84
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/dist/astrlabe/index.d.mts +3 -52
- package/dist/astrlabe/index.d.ts +3 -52
- package/dist/astrlabe/index.js +107 -107
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/chunk-3T2WGL47.js +44 -0
- package/dist/chunk-3T2WGL47.js.map +1 -0
- package/dist/{chunk-UVGMKHWH.mjs → chunk-63AL2RN5.mjs} +4 -4
- package/dist/{chunk-UVGMKHWH.mjs.map → chunk-63AL2RN5.mjs.map} +1 -1
- package/dist/chunk-64G2HBRQ.mjs +481 -0
- package/dist/chunk-64G2HBRQ.mjs.map +1 -0
- package/dist/{chunk-J3OYJ44D.mjs → chunk-BH2AU3LG.mjs} +3 -3
- package/dist/{chunk-J3OYJ44D.mjs.map → chunk-BH2AU3LG.mjs.map} +1 -1
- package/dist/chunk-CCRBT7TA.mjs +941 -0
- package/dist/chunk-CCRBT7TA.mjs.map +1 -0
- package/dist/chunk-CHLJUSXX.mjs +128 -0
- package/dist/chunk-CHLJUSXX.mjs.map +1 -0
- package/dist/chunk-CXIQWPBH.js +214 -0
- package/dist/chunk-CXIQWPBH.js.map +1 -0
- package/dist/chunk-EDE36MKE.mjs +412 -0
- package/dist/chunk-EDE36MKE.mjs.map +1 -0
- package/dist/{chunk-M7P2TQ6X.js → chunk-EFREXNZB.js} +64 -64
- package/dist/{chunk-M7P2TQ6X.js.map → chunk-EFREXNZB.js.map} +1 -1
- package/dist/chunk-FAGDZEKM.js +23 -0
- package/dist/chunk-FAGDZEKM.js.map +1 -0
- package/dist/{chunk-TUEYBNWL.js → chunk-GV6WJCEB.js} +3 -3
- package/dist/{chunk-TUEYBNWL.js.map → chunk-GV6WJCEB.js.map} +1 -1
- package/dist/chunk-HU3EAHFO.mjs +20 -0
- package/dist/chunk-HU3EAHFO.mjs.map +1 -0
- package/dist/{chunk-LLFU42KC.mjs → chunk-I6WYV2AN.mjs} +3 -3
- package/dist/{chunk-LLFU42KC.mjs.map → chunk-I6WYV2AN.mjs.map} +1 -1
- package/dist/chunk-JJWFMKZY.js +132 -0
- package/dist/chunk-JJWFMKZY.js.map +1 -0
- package/dist/{chunk-JFWZHROG.js → chunk-L6FVIWAJ.js} +128 -128
- package/dist/{chunk-JFWZHROG.js.map → chunk-L6FVIWAJ.js.map} +1 -1
- package/dist/chunk-MNQEZL7B.mjs +210 -0
- package/dist/chunk-MNQEZL7B.mjs.map +1 -0
- package/dist/chunk-SGJ24J2Q.js +943 -0
- package/dist/chunk-SGJ24J2Q.js.map +1 -0
- package/dist/chunk-SW6TVAIJ.js +418 -0
- package/dist/chunk-SW6TVAIJ.js.map +1 -0
- package/dist/chunk-SYNVNTLJ.mjs +20 -0
- package/dist/chunk-SYNVNTLJ.mjs.map +1 -0
- package/dist/chunk-UQXVCVAN.mjs +41 -0
- package/dist/chunk-UQXVCVAN.mjs.map +1 -0
- package/dist/chunk-WGELLCOZ.js +22 -0
- package/dist/chunk-WGELLCOZ.js.map +1 -0
- package/dist/chunk-YXPHJ2BQ.js +541 -0
- package/dist/chunk-YXPHJ2BQ.js.map +1 -0
- package/dist/index.d.mts +3 -47
- package/dist/index.d.ts +3 -47
- package/dist/index.js +765 -765
- package/dist/index.mjs +2 -2
- package/dist/navigation-BiWVffAN.d.mts +49 -0
- package/dist/navigation-BiWVffAN.d.ts +49 -0
- package/dist/platform/agents-workspace.d.mts +19 -0
- package/dist/platform/agents-workspace.d.ts +19 -0
- package/dist/platform/agents-workspace.js +26 -0
- package/dist/platform/agents-workspace.js.map +1 -0
- package/dist/platform/agents-workspace.mjs +17 -0
- package/dist/platform/agents-workspace.mjs.map +1 -0
- package/dist/platform/app-shell.d.mts +58 -0
- package/dist/platform/app-shell.d.ts +58 -0
- package/dist/platform/app-shell.js +17 -0
- package/dist/platform/app-shell.js.map +1 -0
- package/dist/platform/app-shell.mjs +8 -0
- package/dist/platform/app-shell.mjs.map +1 -0
- package/dist/platform/index.d.mts +100 -3
- package/dist/platform/index.d.ts +100 -3
- package/dist/platform/index.js +499 -28
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.mjs +472 -27
- package/dist/platform/index.mjs.map +1 -1
- package/dist/platform/pages/index.d.mts +243 -82
- package/dist/platform/pages/index.d.ts +243 -82
- package/dist/platform/pages/index.js +886 -614
- package/dist/platform/pages/index.js.map +1 -1
- package/dist/platform/pages/index.mjs +756 -511
- package/dist/platform/pages/index.mjs.map +1 -1
- package/dist/platform/utils/index.js +18 -56
- package/dist/platform/utils/index.js.map +1 -1
- package/dist/platform/utils/index.mjs +3 -53
- package/dist/platform/utils/index.mjs.map +1 -1
- package/dist/platform/workflow-api-client.d.mts +6 -0
- package/dist/platform/workflow-api-client.d.ts +6 -0
- package/dist/platform/workflow-api-client.js +246 -0
- package/dist/platform/workflow-api-client.js.map +1 -0
- package/dist/platform/workflow-api-client.mjs +5 -0
- package/dist/platform/workflow-api-client.mjs.map +1 -0
- package/dist/platform/workflow-canvas-shell.d.mts +18 -0
- package/dist/platform/workflow-canvas-shell.d.ts +18 -0
- package/dist/platform/workflow-canvas-shell.js +20 -0
- package/dist/platform/workflow-canvas-shell.js.map +1 -0
- package/dist/platform/workflow-canvas-shell.mjs +11 -0
- package/dist/platform/workflow-canvas-shell.mjs.map +1 -0
- package/dist/{rule-form-F5jBOeqk.d.mts → rule-form-BYJzyork.d.mts} +50 -1
- package/dist/{rule-form-F5jBOeqk.d.ts → rule-form-BYJzyork.d.ts} +50 -1
- package/dist/workflow-api-client-C8gPn_D1.d.mts +386 -0
- package/dist/workflow-api-client-Dy1Ph8W-.d.ts +386 -0
- package/package.json +21 -1
package/dist/platform/index.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { SessionSwitcherProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
|
|
2
|
+
import { SessionSwitcherProps, LocaleCode, WorkflowWorkspaceProps, ManagedUser, Organization } from '@datatechsolutions/shared-domain/common';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { AuthUser } from '@datatechsolutions/windsock/client';
|
|
5
|
-
export {
|
|
5
|
+
export { PlatformAppShell, PlatformAppShellProps } from './app-shell.js';
|
|
6
|
+
import { N as NavigationItem } from '../navigation-BiWVffAN.js';
|
|
7
|
+
import { PlatformRoleDefinition } from './rbac.js';
|
|
8
|
+
export { CreatePlatformRbacOptions, PlatformRbac, createPlatformRbac } from './rbac.js';
|
|
9
|
+
import { Workflow } from '../astrlabe/contracts.js';
|
|
10
|
+
export { WorkflowCanvasShell } from './workflow-canvas-shell.js';
|
|
11
|
+
export { AgentsWorkspace, AgentsWorkspaceProps } from './agents-workspace.js';
|
|
6
12
|
export { CreateSecretInput, SecretDetail, SecretSummary, UpdateSecretInput, addOrganizationDomain, addOrganizationMember, createOrganization, createOrganizationInvitation, createPermission, createSecret, createUser, deleteOrganization, deletePermission, deleteUser, disableSecret, getSecret, getUserPermissions, listOrganizationDomains, listOrganizationInvitations, listOrganizationMembers, listOrganizations, listPermissions, listSecrets, listUsers, removeOrganizationMember, resetUserPassword, rotateSecret, setUserPermissions, setWindsockAdminClient, updateOrganization, updatePermission, updateUser, verifyOrganizationDomain } from './windsock-admin-client.js';
|
|
7
13
|
import { AdminUserSummary, AuthOrganization } from '@datatechsolutions/shared-domain';
|
|
8
14
|
|
|
@@ -25,6 +31,97 @@ type PlatformStateProviderProps = {
|
|
|
25
31
|
declare function PlatformStateProvider({ children, normalizeRole }: PlatformStateProviderProps): react_jsx_runtime.JSX.Element;
|
|
26
32
|
declare function usePlatformState(): PlatformState;
|
|
27
33
|
|
|
34
|
+
type PlatformDockContainerProps = {
|
|
35
|
+
/** JWT-derived actor used for permission filtering. */
|
|
36
|
+
actor: AuthUser | null;
|
|
37
|
+
/** App-specific navigation items (already translated). */
|
|
38
|
+
navigationItems: NavigationItem[];
|
|
39
|
+
/**
|
|
40
|
+
* Pathname where the dock should be hidden (defaults to `/dashboard`).
|
|
41
|
+
* The dashboard typically owns its own navigation chrome.
|
|
42
|
+
*/
|
|
43
|
+
dashboardPath?: string;
|
|
44
|
+
/** Path to redirect to on sign-out (defaults to `/login`). */
|
|
45
|
+
signOutPath?: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Floating dock + profile-modal trigger shared by every platform app.
|
|
49
|
+
* Reads the active route from ui's router context and uses windsock for
|
|
50
|
+
* preferences + sign-out, so the consumer only has to wire up navigation
|
|
51
|
+
* items + an optional dashboard/sign-out path.
|
|
52
|
+
*/
|
|
53
|
+
declare function PlatformDockContainer({ actor, navigationItems, dashboardPath, signOutPath, }: PlatformDockContainerProps): react_jsx_runtime.JSX.Element | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Locale + theme controls used inside the platform preferences drawer.
|
|
57
|
+
* Reads the active locale from the i18n context and the theme/dock
|
|
58
|
+
* preferences from windsock — both shared providers consuming apps must
|
|
59
|
+
* mount above this component.
|
|
60
|
+
*/
|
|
61
|
+
declare function PreferencesControls(): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Locale switcher hook — reads the current locale from the i18n context and
|
|
65
|
+
* pushes the user's choice through windsock so the next session inherits it.
|
|
66
|
+
*
|
|
67
|
+
* Lifted from astrlabe; consumers (astrlabe, kori-erp) wrap their tree in
|
|
68
|
+
* `<I18nProvider>` + windsock's `<AuthProvider>` and import this directly.
|
|
69
|
+
*/
|
|
70
|
+
declare function useLocaleSwitcher(): {
|
|
71
|
+
locale: LocaleCode;
|
|
72
|
+
shortCode: string;
|
|
73
|
+
setLocale: (newLocale: LocaleCode | string) => void;
|
|
74
|
+
locales: readonly LocaleCode[];
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
type UsersSettingsSectionProps = {
|
|
78
|
+
/**
|
|
79
|
+
* Role normalizer produced by each app's `createPlatformRbac()` call.
|
|
80
|
+
* Used to coerce JWT role strings into the app's canonical role enum.
|
|
81
|
+
*/
|
|
82
|
+
normalizeRole: (input: unknown) => string;
|
|
83
|
+
};
|
|
84
|
+
type RolesSettingsSectionProps = UsersSettingsSectionProps & {
|
|
85
|
+
/** App-defined role definitions (from `createPlatformRbac`). */
|
|
86
|
+
roleDefinitions: Record<string, PlatformRoleDefinition<string>>;
|
|
87
|
+
/** Display options for the role-assignment select. */
|
|
88
|
+
roleOptions: Array<{
|
|
89
|
+
value: string;
|
|
90
|
+
label: string;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
declare function UsersSettingsSection({ normalizeRole }: UsersSettingsSectionProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function RolesSettingsSection({ roleDefinitions, roleOptions, normalizeRole }: RolesSettingsSectionProps): react_jsx_runtime.JSX.Element;
|
|
95
|
+
|
|
96
|
+
interface Props {
|
|
97
|
+
open: boolean;
|
|
98
|
+
onClose: () => void;
|
|
99
|
+
onGenerated: (workflow: Workflow) => void;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Minimal NL → graph generator surface. Lets the user pick one of the
|
|
103
|
+
* org's model provider connections, enter a prompt, and produces a
|
|
104
|
+
* Workflow row whose `graph` is the LLM's output. The caller navigates
|
|
105
|
+
* the editor to the new workflow once generation succeeds — validation
|
|
106
|
+
* issues are surfaced as notifications so the user can iterate.
|
|
107
|
+
*/
|
|
108
|
+
declare function AiWorkflowGenerateModal({ open, onClose, onGenerated }: Props): react_jsx_runtime.JSX.Element;
|
|
109
|
+
|
|
110
|
+
interface WorkflowTemplateModalProps {
|
|
111
|
+
open: boolean;
|
|
112
|
+
onClose: () => void;
|
|
113
|
+
onCreated: (workflow: Workflow) => void;
|
|
114
|
+
}
|
|
115
|
+
declare function WorkflowTemplateModal({ open, onClose, onCreated }: WorkflowTemplateModalProps): react_jsx_runtime.JSX.Element;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Thin wrapper that forwards a workflow graph into the visual canvas while
|
|
119
|
+
* threading the active locale from the i18n context. The graph type from
|
|
120
|
+
* `shared-domain` is structurally identical to ui's contract type — the
|
|
121
|
+
* cast keeps callers from having to import both.
|
|
122
|
+
*/
|
|
123
|
+
declare function WorkflowWorkspace({ graph }: WorkflowWorkspaceProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
28
125
|
/** Maps a windsock AuthOrganization to the app-level Organization shape used by UI pages. */
|
|
29
126
|
declare function mapAuthOrg(raw: AuthOrganization): Organization;
|
|
30
127
|
/**
|
|
@@ -38,4 +135,4 @@ declare function mapAdminUser(row: AdminUserSummary, normalizeRole: (input: unkn
|
|
|
38
135
|
declare const ORG_ROLE_MAP: Record<string, 'owner' | 'admin' | 'member' | 'viewer'>;
|
|
39
136
|
declare function mapRoleToOrgRole(role: string): 'owner' | 'admin' | 'member' | 'viewer';
|
|
40
137
|
|
|
41
|
-
export { ORG_ROLE_MAP, PlatformStateProvider, type PlatformStateProviderProps, SessionSwitcher, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, usePlatformState };
|
|
138
|
+
export { AiWorkflowGenerateModal, ORG_ROLE_MAP, PlatformDockContainer, type PlatformDockContainerProps, PlatformRoleDefinition, PlatformStateProvider, type PlatformStateProviderProps, PreferencesControls, RolesSettingsSection, type RolesSettingsSectionProps, SessionSwitcher, UsersSettingsSection, type UsersSettingsSectionProps, WorkflowTemplateModal, type WorkflowTemplateModalProps, WorkflowWorkspace, mapAdminUser, mapAuthOrg, mapRoleToOrgRole, useLocaleSwitcher, usePlatformState };
|