@burdenoff/fluidgrids-fe-sdk 2026.1031.4 → 2026.1031.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/dist/ExecutionDetailPage-GKX4OUUR.js +23 -0
- package/dist/{WorkflowsList-BZXBTGNL.js → ExecutionsListPage-ZZOUZQBS.js} +9 -8
- package/dist/{TemplateDetailPanel-MTKW3SPM.js → TemplateDetailPanel-WH74G7PF.js} +18 -7
- package/dist/{WorkflowBuilder-N3ZUYFRK.js → WorkflowBuilder-4QEJNKVE.js} +12 -11
- package/dist/{ExecutionsListPage-AYDGFU6W.js → WorkflowsList-4CTHUYM7.js} +9 -8
- package/dist/{chunk-VJWJGSRS.js → chunk-34HHBNZE.js} +1 -1
- package/dist/{chunk-P3TGCUXP.js → chunk-34XK5BC7.js} +5 -37
- package/dist/{chunk-JFQGODKK.js → chunk-35N3PEO6.js} +1 -1
- package/dist/{chunk-DHR2YURL.js → chunk-3KKGE7CE.js} +164 -9
- package/dist/{chunk-XX6D7IND.js → chunk-5XQMYHJ7.js} +2 -2
- package/dist/{chunk-OGYAC7QW.js → chunk-AHDYETEE.js} +1 -1
- package/dist/{chunk-WHPQRYZD.js → chunk-CAZHE2MQ.js} +6 -5
- package/dist/{chunk-GV5RJ6BU.js → chunk-E7AQAPZN.js} +33 -22
- package/dist/{chunk-6PGLJWIC.js → chunk-EPYTVCYH.js} +30 -188
- package/dist/{chunk-DJAGZUHW.js → chunk-FUYHCONW.js} +1257 -34
- package/dist/{chunk-ADTEMSJI.js → chunk-GMVXPC5N.js} +849 -4
- package/dist/{chunk-IGROOI7E.js → chunk-GREPXIXS.js} +2 -2
- package/dist/{chunk-PTROESUB.js → chunk-HCKYGGUU.js} +4 -4
- package/dist/{chunk-Z3FYBDE3.js → chunk-HQX7JZLY.js} +33 -1
- package/dist/{chunk-QKQOTEAB.js → chunk-I5BPMBIV.js} +1 -1
- package/dist/{chunk-R4Q37Q4X.js → chunk-IJBT25CS.js} +3 -3
- package/dist/{chunk-44KAAKFK.js → chunk-JUHSLK7C.js} +5 -5
- package/dist/{chunk-AW3UXMNI.js → chunk-KEYKB4E7.js} +12 -1
- package/dist/{chunk-P2VAHDGO.js → chunk-NLRQSHRS.js} +2 -2
- package/dist/{chunk-BHD4CDLL.js → chunk-P4R4ACCC.js} +1 -1
- package/dist/{chunk-CIR7WF4W.js → chunk-PP62ABIG.js} +1 -1
- package/dist/{chunk-Q3HKE627.js → chunk-RYUSWVIR.js} +3 -3
- package/dist/{chunk-INMYNHJL.js → chunk-TVOXRODW.js} +34 -2
- package/dist/{chunk-PKG6BCHB.js → chunk-VWFA3RQR.js} +2 -2
- package/dist/{chunk-475XP5J7.js → chunk-ZEHMJURX.js} +6 -5
- package/dist/chunk-ZUVFD5KV.js +186 -0
- package/dist/executions.js +13 -12
- package/dist/history.js +5 -4
- package/dist/index.d.ts +741 -4
- package/dist/index.js +45 -40
- package/dist/nodes.js +2 -2
- package/dist/observability.js +7 -6
- package/dist/settings.js +7 -6
- package/dist/templates.js +11 -10
- package/dist/workflow-builder.js +13 -12
- package/dist/workflows-list.js +9 -8
- package/package.json +1 -1
- package/dist/ExecutionDetailPage-WOOORXXU.js +0 -22
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { CreateWorkflowRefusalDialog, firstWorkflowProgress, GUIDED_TOUR_STATE, builderPathFor } from './chunk-
|
|
2
|
-
import { useExecutions } from './chunk-
|
|
3
|
-
import { useExportWorkflowAs, downloadWorkflowExport, importAcceptAttribute, QuotaExhaustedDialog, importFileKind, parseWorkflowImport, CODE_EXPORT_FORMATS, ImportSourceError, assertImportByteSize, MAX_IMPORT_ARCHIVE_BYTES, readProjectArchive, checkTypeScriptImport, MAX_IMPORT_SOURCE_BYTES, typeScriptModuleFile, typeScriptImportSource, workflowNameFromFile, primaryImportModule } from './chunk-
|
|
1
|
+
import { CreateWorkflowRefusalDialog, firstWorkflowProgress, GUIDED_TOUR_STATE, builderPathFor } from './chunk-P4R4ACCC.js';
|
|
2
|
+
import { useExecutions } from './chunk-5XQMYHJ7.js';
|
|
3
|
+
import { useExportWorkflowAs, downloadWorkflowExport, importAcceptAttribute, QuotaExhaustedDialog, importFileKind, parseWorkflowImport, CODE_EXPORT_FORMATS, ImportSourceError, assertImportByteSize, MAX_IMPORT_ARCHIVE_BYTES, readProjectArchive, checkTypeScriptImport, MAX_IMPORT_SOURCE_BYTES, typeScriptModuleFile, typeScriptImportSource, workflowNameFromFile, primaryImportModule } from './chunk-GREPXIXS.js';
|
|
4
4
|
import { workflowsListControls } from './chunk-FNZZ5JJL.js';
|
|
5
|
-
import { useCreateWorkflow, useWorkflowDefinitions, useLazyWorkflowDefinition, useImportWorkflow, useDuplicateWorkflow, useDeleteWorkflow } from './chunk-
|
|
5
|
+
import { useCreateWorkflow, useWorkflowDefinitions, useLazyWorkflowDefinition, useImportWorkflow, useDuplicateWorkflow, useDeleteWorkflow } from './chunk-VWFA3RQR.js';
|
|
6
6
|
import { useFluidGridsPageControls } from './chunk-PJAWNFJV.js';
|
|
7
7
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
8
|
-
import { createThenOpen,
|
|
8
|
+
import { createThenOpen, useFluidGridsFlag, FLUIDGRIDS_FLAGS, BILLING_PLANS_PATH, describeOperationError, useFlowStore, isQuotaExhaustedFailure } from './chunk-EPYTVCYH.js';
|
|
9
|
+
import { useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, SdkPermissionButton, SdkPermissionGate } from './chunk-ZUVFD5KV.js';
|
|
9
10
|
import { useTr } from './chunk-UULVIT25.js';
|
|
10
11
|
import { useState, useRef, useCallback, useMemo } from 'react';
|
|
11
12
|
import { useNavigate } from 'react-router';
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { cn } from './chunk-JL7CASN5.js';
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
+
import { forwardRef, createContext, useMemo, useContext, cloneElement } from 'react';
|
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
7
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
8
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
9
|
+
var TooltipContent = forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
+
TooltipPrimitive.Content,
|
|
11
|
+
{
|
|
12
|
+
ref,
|
|
13
|
+
sideOffset,
|
|
14
|
+
className: cn(
|
|
15
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
));
|
|
21
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
22
|
+
var ALLOW_ALL_PERMISSIONS = {
|
|
23
|
+
hasPermission: () => true,
|
|
24
|
+
isLoading: false,
|
|
25
|
+
enforced: false
|
|
26
|
+
};
|
|
27
|
+
var FluidGridsPermissionsContext = createContext(
|
|
28
|
+
ALLOW_ALL_PERMISSIONS
|
|
29
|
+
);
|
|
30
|
+
function FluidGridsPermissionsProvider({
|
|
31
|
+
hasPermission,
|
|
32
|
+
isLoading = false,
|
|
33
|
+
children
|
|
34
|
+
}) {
|
|
35
|
+
const value = useMemo(
|
|
36
|
+
() => ({ hasPermission, isLoading, enforced: true }),
|
|
37
|
+
[hasPermission, isLoading]
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ jsx(FluidGridsPermissionsContext.Provider, { value, children });
|
|
40
|
+
}
|
|
41
|
+
function evaluatePermissionCheck(ctx, permission) {
|
|
42
|
+
const permissions = typeof permission === "string" ? [permission] : permission;
|
|
43
|
+
return {
|
|
44
|
+
allowed: ctx.isLoading ? false : permissions.some((p) => ctx.hasPermission(p)),
|
|
45
|
+
isLoading: ctx.isLoading,
|
|
46
|
+
enforced: ctx.enforced
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function useFluidGridsPermission(permission) {
|
|
50
|
+
return evaluatePermissionCheck(
|
|
51
|
+
useContext(FluidGridsPermissionsContext),
|
|
52
|
+
permission
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
var DEFAULT_DENIED_TOOLTIP = "You don't have permission to perform this action";
|
|
56
|
+
function SdkPermissionButton({
|
|
57
|
+
permission,
|
|
58
|
+
deniedBehavior = "disable",
|
|
59
|
+
deniedTooltip = DEFAULT_DENIED_TOOLTIP,
|
|
60
|
+
deniedTooltipClassName,
|
|
61
|
+
children
|
|
62
|
+
}) {
|
|
63
|
+
const { allowed, isLoading } = useFluidGridsPermission(permission);
|
|
64
|
+
if (allowed) return children;
|
|
65
|
+
if (deniedBehavior === "hide") return null;
|
|
66
|
+
const disabledChild = cloneElement(children, {
|
|
67
|
+
disabled: true,
|
|
68
|
+
onClick: void 0
|
|
69
|
+
});
|
|
70
|
+
if (isLoading) return disabledChild;
|
|
71
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
72
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx("span", { className: "inline-flex cursor-not-allowed", children: disabledChild }) }),
|
|
73
|
+
/* @__PURE__ */ jsx(TooltipContent, { className: deniedTooltipClassName, children: deniedTooltip })
|
|
74
|
+
] }) });
|
|
75
|
+
}
|
|
76
|
+
function SdkPermissionGate({
|
|
77
|
+
permission,
|
|
78
|
+
fallback = null,
|
|
79
|
+
children
|
|
80
|
+
}) {
|
|
81
|
+
const { allowed } = useFluidGridsPermission(permission);
|
|
82
|
+
return /* @__PURE__ */ jsx(Fragment, { children: allowed ? children : fallback });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// src/permissions/constants.ts
|
|
86
|
+
var FLUIDGRIDS_PERMISSIONS = {
|
|
87
|
+
// Workflow resources
|
|
88
|
+
WORKFLOW_LIST: "workflow:list",
|
|
89
|
+
WORKFLOW_READ: "workflow:read",
|
|
90
|
+
WORKFLOW_CREATE: "workflow:create",
|
|
91
|
+
WORKFLOW_UPDATE: "workflow:update",
|
|
92
|
+
WORKFLOW_DELETE: "workflow:delete",
|
|
93
|
+
WORKFLOW_EXECUTE: "workflow:execute",
|
|
94
|
+
/** Activating workflows; also turns failure triage on and off (BOFF-3698). */
|
|
95
|
+
WORKFLOW_PUBLISH: "workflow:publish",
|
|
96
|
+
// Workflow run resources
|
|
97
|
+
WORKFLOW_RUN_LIST: "workflow-run:list",
|
|
98
|
+
WORKFLOW_RUN_READ: "workflow-run:read",
|
|
99
|
+
WORKFLOW_RUN_EXECUTE: "workflow-run:execute",
|
|
100
|
+
/** Terminating a durable-function run (terminateWorkflowRun, BOFF-9905). */
|
|
101
|
+
WORKFLOW_RUN_DELETE: "workflow-run:delete",
|
|
102
|
+
// Node resources
|
|
103
|
+
NODE_LIST: "node:list",
|
|
104
|
+
NODE_READ: "node:read",
|
|
105
|
+
NODE_CREATE: "node:create",
|
|
106
|
+
NODE_DELETE: "node:delete",
|
|
107
|
+
// Node installation resources
|
|
108
|
+
NODE_INSTALLATION_LIST: "node-installation:list",
|
|
109
|
+
NODE_INSTALLATION_READ: "node-installation:read",
|
|
110
|
+
NODE_INSTALLATION_CREATE: "node-installation:create",
|
|
111
|
+
NODE_INSTALLATION_UPDATE: "node-installation:update",
|
|
112
|
+
NODE_INSTALLATION_DELETE: "node-installation:delete",
|
|
113
|
+
// Node endpoint config resources
|
|
114
|
+
NODE_ENDPOINT_CONFIG_LIST: "node-endpoint-config:list",
|
|
115
|
+
NODE_ENDPOINT_CONFIG_READ: "node-endpoint-config:read",
|
|
116
|
+
NODE_ENDPOINT_CONFIG_UPDATE: "node-endpoint-config:update",
|
|
117
|
+
NODE_ENDPOINT_CONFIG_DELETE: "node-endpoint-config:delete",
|
|
118
|
+
// Scheduled job resources
|
|
119
|
+
SCHEDULED_JOB_LIST: "scheduled-job:list",
|
|
120
|
+
SCHEDULED_JOB_READ: "scheduled-job:read",
|
|
121
|
+
SCHEDULED_JOB_CREATE: "scheduled-job:create",
|
|
122
|
+
SCHEDULED_JOB_UPDATE: "scheduled-job:update",
|
|
123
|
+
SCHEDULED_JOB_DELETE: "scheduled-job:delete",
|
|
124
|
+
// AI workflow resources
|
|
125
|
+
AI_WORKFLOW_EXECUTE: "ai-workflow:execute",
|
|
126
|
+
AI_WORKFLOW_CREATE: "ai-workflow:create",
|
|
127
|
+
// Artifact resources
|
|
128
|
+
ARTIFACT_LIST: "artifact:list",
|
|
129
|
+
ARTIFACT_READ: "artifact:read",
|
|
130
|
+
ARTIFACT_DELETE: "artifact:delete",
|
|
131
|
+
// Chat resources
|
|
132
|
+
CHAT_SESSION_LIST: "chat-session:list",
|
|
133
|
+
CHAT_SESSION_READ: "chat-session:read",
|
|
134
|
+
CHAT_SESSION_CREATE: "chat-session:create",
|
|
135
|
+
CHAT_SESSION_DELETE: "chat-session:delete",
|
|
136
|
+
// Submission resources
|
|
137
|
+
SUBMISSION_LIST: "submission:list",
|
|
138
|
+
SUBMISSION_READ: "submission:read",
|
|
139
|
+
SUBMISSION_DELETE: "submission:delete",
|
|
140
|
+
SUBMISSION_EXECUTE: "submission:execute",
|
|
141
|
+
// Event registration resources
|
|
142
|
+
EVENT_REGISTRATION_LIST: "event-registration:list",
|
|
143
|
+
EVENT_REGISTRATION_READ: "event-registration:read",
|
|
144
|
+
EVENT_REGISTRATION_CREATE: "event-registration:create",
|
|
145
|
+
EVENT_REGISTRATION_UPDATE: "event-registration:update",
|
|
146
|
+
EVENT_REGISTRATION_DELETE: "event-registration:delete",
|
|
147
|
+
// Usage resources
|
|
148
|
+
USAGE_LIST: "usage:list",
|
|
149
|
+
USAGE_READ: "usage:read",
|
|
150
|
+
// Dashboard resources
|
|
151
|
+
DASHBOARD_READ: "dashboard:read",
|
|
152
|
+
// System config resources
|
|
153
|
+
SYSTEM_CONFIG_READ: "system-config:read",
|
|
154
|
+
SYSTEM_CONFIG_UPDATE: "system-config:update",
|
|
155
|
+
// Workflow variable resources (BOFF-7517)
|
|
156
|
+
VARIABLE_READ: "workflow-variable:read",
|
|
157
|
+
VARIABLE_CREATE: "workflow-variable:create",
|
|
158
|
+
VARIABLE_UPDATE: "workflow-variable:update",
|
|
159
|
+
VARIABLE_DELETE: "workflow-variable:delete",
|
|
160
|
+
VARIABLE_REVEAL: "workflow-variable:reveal",
|
|
161
|
+
// External secrets provider config resources (BOFF-7517)
|
|
162
|
+
SECRETS_PROVIDER_CONFIG_READ: "secrets-provider-config:read",
|
|
163
|
+
SECRETS_PROVIDER_CONFIG_UPDATE: "secrets-provider-config:update",
|
|
164
|
+
SECRETS_PROVIDER_CONFIG_TEST: "secrets-provider-config:test",
|
|
165
|
+
// Integrations (wspace-integrations-svc)
|
|
166
|
+
INTEGRATION_CONNECTION_CREATE: "integration-connection:create",
|
|
167
|
+
// Self-hosted runners (wspace-sandbox-svc; @rbac resource "sandbox")
|
|
168
|
+
SANDBOX_READ: "sandbox:read",
|
|
169
|
+
SANDBOX_CREATE: "sandbox:create",
|
|
170
|
+
/** Rotating a runner's registration token (rotateSandboxRunnerToken). */
|
|
171
|
+
SANDBOX_UPDATE: "sandbox:update",
|
|
172
|
+
SANDBOX_DELETE: "sandbox:delete",
|
|
173
|
+
// Data tables (wspace-workflow-svc; @rbac resources "data-table" and
|
|
174
|
+
// "data-table-row", BOFF-10105)
|
|
175
|
+
DATA_TABLE_CREATE: "data-table:create",
|
|
176
|
+
DATA_TABLE_UPDATE: "data-table:update",
|
|
177
|
+
DATA_TABLE_DELETE: "data-table:delete",
|
|
178
|
+
DATA_TABLE_ROW_CREATE: "data-table-row:create",
|
|
179
|
+
DATA_TABLE_ROW_UPDATE: "data-table-row:update",
|
|
180
|
+
DATA_TABLE_ROW_DELETE: "data-table-row:delete",
|
|
181
|
+
// AI Agent tool-call approvals (pendingToolApprovals, decideToolApproval)
|
|
182
|
+
TOOL_APPROVAL_REQUEST_READ: "tool-approval-request:read",
|
|
183
|
+
TOOL_APPROVAL_REQUEST_EXECUTE: "tool-approval-request:execute"
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export { ALLOW_ALL_PERMISSIONS, FLUIDGRIDS_PERMISSIONS, FluidGridsPermissionsProvider, SdkPermissionButton, SdkPermissionGate, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, evaluatePermissionCheck, useFluidGridsPermission };
|
package/dist/executions.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import './chunk-AD3BXTJS.js';
|
|
2
|
-
export { ExecutionsListPage } from './chunk-
|
|
3
|
-
export { ExecutionDetailPage } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
2
|
+
export { ExecutionsListPage } from './chunk-HCKYGGUU.js';
|
|
3
|
+
export { ExecutionDetailPage } from './chunk-3KKGE7CE.js';
|
|
4
|
+
import './chunk-34XK5BC7.js';
|
|
5
|
+
import './chunk-5XQMYHJ7.js';
|
|
6
|
+
import './chunk-NLRQSHRS.js';
|
|
7
|
+
import './chunk-34HHBNZE.js';
|
|
8
8
|
import './chunk-5ERAJC2I.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-GMVXPC5N.js';
|
|
10
|
+
import './chunk-TVOXRODW.js';
|
|
11
11
|
import './chunk-Y53CVZVV.js';
|
|
12
12
|
import './chunk-FNZZ5JJL.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-VWFA3RQR.js';
|
|
14
14
|
import './chunk-PJAWNFJV.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-HQX7JZLY.js';
|
|
16
16
|
import './chunk-4VJ3MDOV.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-EPYTVCYH.js';
|
|
18
|
+
import './chunk-ZUVFD5KV.js';
|
|
18
19
|
import './chunk-JL7CASN5.js';
|
|
19
20
|
import './chunk-PXIFUMLA.js';
|
|
20
21
|
import './chunk-6AMNEX2Y.js';
|
|
21
22
|
import './chunk-G77IGC3Y.js';
|
|
22
|
-
import './chunk-
|
|
23
|
+
import './chunk-KEYKB4E7.js';
|
|
23
24
|
import './chunk-UULVIT25.js';
|
|
24
25
|
import './chunk-NTWG3CJX.js';
|
|
25
26
|
import './chunk-62GWEYJ5.js';
|
package/dist/history.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { HistoryPage } from './chunk-
|
|
1
|
+
export { HistoryPage } from './chunk-I5BPMBIV.js';
|
|
2
2
|
import './chunk-FNZZ5JJL.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-VWFA3RQR.js';
|
|
4
4
|
import './chunk-PJAWNFJV.js';
|
|
5
5
|
import './chunk-4VJ3MDOV.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-EPYTVCYH.js';
|
|
7
|
+
import './chunk-ZUVFD5KV.js';
|
|
7
8
|
import './chunk-JL7CASN5.js';
|
|
8
9
|
import './chunk-PXIFUMLA.js';
|
|
9
10
|
import './chunk-6AMNEX2Y.js';
|
|
10
11
|
import './chunk-G77IGC3Y.js';
|
|
11
|
-
import './chunk-
|
|
12
|
+
import './chunk-KEYKB4E7.js';
|
|
12
13
|
import './chunk-UULVIT25.js';
|
|
13
14
|
import './chunk-NTWG3CJX.js';
|
|
14
15
|
import './chunk-62GWEYJ5.js';
|