@burdenoff/fluidgrids-fe-sdk 2026.1104.2 → 2026.1105.1
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/README.md +38 -0
- package/dist/ExecutionDetailPage-YBAMVPMB.js +26 -0
- package/dist/{WorkflowsList-YFD2RKKQ.js → ExecutionsListPage-NQIQXMTY.js} +10 -9
- package/dist/{WorkflowBuilder-4I44FWII.js → WorkflowBuilder-CRR5WP4V.js} +15 -14
- package/dist/{ExecutionsListPage-EZ65FXER.js → WorkflowsList-EV725VG5.js} +10 -9
- package/dist/{agentTools-SZZN6TP3.js → agentTools-PN4W7QZH.js} +7 -6
- package/dist/{chunk-4YCMMBSK.js → chunk-2QOAJF7V.js} +2 -2
- package/dist/{chunk-NTWG3CJX.js → chunk-3IXU7WUC.js} +32 -21
- package/dist/{chunk-KHXRYQYP.js → chunk-4QB6S7YW.js} +3 -2
- package/dist/{chunk-NJRCAE6K.js → chunk-6EZJ5J3B.js} +5 -5
- package/dist/{chunk-BIB7IH26.js → chunk-6P7DOBVN.js} +4 -4
- package/dist/{chunk-5D4XS3WJ.js → chunk-AG3VC7Y2.js} +17 -3
- package/dist/{chunk-NGXJHYV5.js → chunk-AMXJLVZN.js} +2 -2
- package/dist/{chunk-PXIFUMLA.js → chunk-AU7LACOY.js} +16 -11
- package/dist/{chunk-NIY6R42C.js → chunk-AZKVI4YN.js} +5 -4
- package/dist/{chunk-Q72EOY4T.js → chunk-BHAKNT5M.js} +9 -3
- package/dist/{chunk-AAIZ6S6E.js → chunk-C26QAWCT.js} +69 -87
- package/dist/{chunk-SS7Y66P5.js → chunk-CGR3AEZU.js} +2 -2
- package/dist/{chunk-NYBL5WHP.js → chunk-D7G5VWSH.js} +3 -3
- package/dist/{chunk-XCSCD3IU.js → chunk-DANOMJ5I.js} +7 -6
- package/dist/{chunk-F7LQL43U.js → chunk-EC2AN74G.js} +1 -1
- package/dist/{chunk-MF7JLSJX.js → chunk-FCT6POFX.js} +11 -2
- package/dist/{chunk-YYVRBROH.js → chunk-FJSXXO5W.js} +1 -1
- package/dist/{chunk-5UHAB75U.js → chunk-GVIYGJQG.js} +1 -1
- package/dist/{chunk-TBHAZK52.js → chunk-HLAUK5GM.js} +1 -1
- package/dist/{chunk-AFX3EKFN.js → chunk-HOTVUVZG.js} +15 -3
- package/dist/{chunk-DFIX6YWP.js → chunk-I3QPAEL6.js} +39 -20
- package/dist/{chunk-IK7IGG6T.js → chunk-JC4D7RQ6.js} +8 -7
- package/dist/{chunk-GEY7RXRZ.js → chunk-JDQYGH4Q.js} +4 -4
- package/dist/{chunk-4EUEKSEQ.js → chunk-L2N6DDOI.js} +2 -2
- package/dist/{chunk-WTV6SQYK.js → chunk-L44BRLW5.js} +12 -11
- package/dist/{chunk-OMB3WMDQ.js → chunk-MQN6YDX4.js} +10 -9
- package/dist/{chunk-XNU2PLJ2.js → chunk-MSQAULLG.js} +6 -5
- package/dist/{chunk-ZDCJPQ5M.js → chunk-MZFJL4X3.js} +1 -1
- package/dist/{chunk-X6PIU7FE.js → chunk-O2EB7UT2.js} +3 -2
- package/dist/{chunk-ON7LK6QH.js → chunk-R3Z7W4EX.js} +5 -4
- package/dist/chunk-UEG2WC3G.js +502 -0
- package/dist/chunk-US5QSLPV.js +316 -0
- package/dist/{chunk-VDJFTZ2H.js → chunk-VFVN7D3A.js} +2 -1
- package/dist/{chunk-D4WA2M2N.js → chunk-XLI75E3D.js} +3 -2
- package/dist/client-YVZMLEQX.js +3 -0
- package/dist/config-66FUPSG5.js +1 -0
- package/dist/executions.js +15 -14
- package/dist/global-client-N5EIFW6T.js +3 -0
- package/dist/history.js +8 -7
- package/dist/index.d.ts +96 -133
- package/dist/index.js +91 -72
- package/dist/{node-detail-view-GAGSLHAO.js → node-detail-view-3VG7XFIZ.js} +11 -10
- package/dist/nodes.js +4 -2
- package/dist/observability.js +8 -7
- package/dist/{quick-config-panel-44RBX6YR.js → quick-config-panel-GB7SDWHD.js} +8 -7
- package/dist/settings.js +9 -8
- package/dist/templates.js +14 -13
- package/dist/{workflow-builder-BMGVSwpy.d.ts → workflow-builder-7vv9dCdp.d.ts} +413 -2
- package/dist/workflow-builder.d.ts +2 -1
- package/dist/workflow-builder.js +16 -15
- package/dist/workflows-list.js +10 -9
- package/package.json +1 -1
- package/dist/ExecutionDetailPage-ND2VMU45.js +0 -25
- package/dist/chunk-6AMNEX2Y.js +0 -214
- package/dist/client-EYQDMR4O.js +0 -1
- package/dist/config-3DBXLCK3.js +0 -1
- package/dist/global-client-O2HCG5CJ.js +0 -1
package/dist/chunk-6AMNEX2Y.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
|
|
3
|
-
var defaultFilter = {
|
|
4
|
-
status: "all",
|
|
5
|
-
workflowKey: "",
|
|
6
|
-
dateRange: {
|
|
7
|
-
start: null,
|
|
8
|
-
end: null,
|
|
9
|
-
preset: "all"
|
|
10
|
-
},
|
|
11
|
-
search: "",
|
|
12
|
-
triggerType: "all",
|
|
13
|
-
durationMinSeconds: null,
|
|
14
|
-
durationMaxSeconds: null,
|
|
15
|
-
errorType: "all",
|
|
16
|
-
nodeId: "",
|
|
17
|
-
tagId: "",
|
|
18
|
-
workflowId: ""
|
|
19
|
-
};
|
|
20
|
-
var defaultPagination = {
|
|
21
|
-
page: 1,
|
|
22
|
-
pageSize: 25,
|
|
23
|
-
total: 0
|
|
24
|
-
};
|
|
25
|
-
var useExecutionsStore = create((set) => ({
|
|
26
|
-
// Initial state
|
|
27
|
-
viewMode: "table",
|
|
28
|
-
selectedExecution: null,
|
|
29
|
-
expandedRows: /* @__PURE__ */ new Set(),
|
|
30
|
-
selection: {
|
|
31
|
-
runIds: [],
|
|
32
|
-
allSelected: false
|
|
33
|
-
},
|
|
34
|
-
filter: defaultFilter,
|
|
35
|
-
pagination: defaultPagination,
|
|
36
|
-
isFilterPanelOpen: false,
|
|
37
|
-
isDetailsPanelOpen: false,
|
|
38
|
-
autoRefresh: true,
|
|
39
|
-
autoRefreshInterval: 5e3,
|
|
40
|
-
liveRunIds: /* @__PURE__ */ new Set(),
|
|
41
|
-
// Actions - View
|
|
42
|
-
setViewMode: (mode) => set({ viewMode: mode }),
|
|
43
|
-
setSelectedExecution: (execution) => set({
|
|
44
|
-
selectedExecution: execution,
|
|
45
|
-
isDetailsPanelOpen: execution !== null
|
|
46
|
-
}),
|
|
47
|
-
toggleRowExpanded: (runId) => set((state) => {
|
|
48
|
-
const newExpanded = new Set(state.expandedRows);
|
|
49
|
-
if (newExpanded.has(runId)) {
|
|
50
|
-
newExpanded.delete(runId);
|
|
51
|
-
} else {
|
|
52
|
-
newExpanded.add(runId);
|
|
53
|
-
}
|
|
54
|
-
return { expandedRows: newExpanded };
|
|
55
|
-
}),
|
|
56
|
-
// Actions - Selection
|
|
57
|
-
setSelection: (selection) => set({ selection }),
|
|
58
|
-
toggleSelectRun: (runId) => set((state) => {
|
|
59
|
-
const isSelected = state.selection.runIds.includes(runId);
|
|
60
|
-
const newRunIds = isSelected ? state.selection.runIds.filter((id) => id !== runId) : [...state.selection.runIds, runId];
|
|
61
|
-
return {
|
|
62
|
-
selection: {
|
|
63
|
-
runIds: newRunIds,
|
|
64
|
-
allSelected: false
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}),
|
|
68
|
-
selectAll: (runIds) => set((state) => ({
|
|
69
|
-
selection: {
|
|
70
|
-
runIds: state.selection.allSelected ? [] : runIds,
|
|
71
|
-
allSelected: !state.selection.allSelected
|
|
72
|
-
}
|
|
73
|
-
})),
|
|
74
|
-
clearSelection: () => set({
|
|
75
|
-
selection: {
|
|
76
|
-
runIds: [],
|
|
77
|
-
allSelected: false
|
|
78
|
-
}
|
|
79
|
-
}),
|
|
80
|
-
// Actions - Filter
|
|
81
|
-
updateFilter: (filterUpdate) => set((state) => ({
|
|
82
|
-
filter: { ...state.filter, ...filterUpdate },
|
|
83
|
-
pagination: { ...state.pagination, page: 1 }
|
|
84
|
-
})),
|
|
85
|
-
setStatusFilter: (status) => set((state) => ({
|
|
86
|
-
filter: { ...state.filter, status },
|
|
87
|
-
pagination: { ...state.pagination, page: 1 }
|
|
88
|
-
})),
|
|
89
|
-
setWorkflowFilter: (workflowKey) => set((state) => ({
|
|
90
|
-
filter: { ...state.filter, workflowKey },
|
|
91
|
-
pagination: { ...state.pagination, page: 1 }
|
|
92
|
-
})),
|
|
93
|
-
setDateRange: (dateRange) => set((state) => ({
|
|
94
|
-
filter: { ...state.filter, dateRange },
|
|
95
|
-
pagination: { ...state.pagination, page: 1 }
|
|
96
|
-
})),
|
|
97
|
-
setSearchQuery: (search) => set((state) => ({
|
|
98
|
-
filter: { ...state.filter, search },
|
|
99
|
-
pagination: { ...state.pagination, page: 1 }
|
|
100
|
-
})),
|
|
101
|
-
setTriggerTypeFilter: (triggerType) => set((state) => ({
|
|
102
|
-
filter: { ...state.filter, triggerType },
|
|
103
|
-
pagination: { ...state.pagination, page: 1 }
|
|
104
|
-
})),
|
|
105
|
-
setDurationFilter: (durationMinSeconds, durationMaxSeconds) => set((state) => ({
|
|
106
|
-
filter: { ...state.filter, durationMinSeconds, durationMaxSeconds },
|
|
107
|
-
pagination: { ...state.pagination, page: 1 }
|
|
108
|
-
})),
|
|
109
|
-
setErrorTypeFilter: (errorType) => set((state) => ({
|
|
110
|
-
filter: { ...state.filter, errorType },
|
|
111
|
-
pagination: { ...state.pagination, page: 1 }
|
|
112
|
-
})),
|
|
113
|
-
setNodeFilter: (nodeId) => set((state) => ({
|
|
114
|
-
filter: { ...state.filter, nodeId },
|
|
115
|
-
pagination: { ...state.pagination, page: 1 }
|
|
116
|
-
})),
|
|
117
|
-
setTagFilter: (tagId) => set((state) => ({
|
|
118
|
-
filter: { ...state.filter, tagId },
|
|
119
|
-
pagination: { ...state.pagination, page: 1 }
|
|
120
|
-
})),
|
|
121
|
-
setWorkflowIdFilter: (workflowId) => set((state) => ({
|
|
122
|
-
filter: { ...state.filter, workflowId },
|
|
123
|
-
pagination: { ...state.pagination, page: 1 }
|
|
124
|
-
})),
|
|
125
|
-
resetFilters: () => set({
|
|
126
|
-
filter: defaultFilter,
|
|
127
|
-
pagination: { ...defaultPagination }
|
|
128
|
-
}),
|
|
129
|
-
// Actions - Pagination
|
|
130
|
-
setPage: (page) => set((state) => ({
|
|
131
|
-
pagination: { ...state.pagination, page }
|
|
132
|
-
})),
|
|
133
|
-
setPageSize: (pageSize) => set((state) => ({
|
|
134
|
-
pagination: { ...state.pagination, pageSize, page: 1 }
|
|
135
|
-
})),
|
|
136
|
-
setTotal: (total) => set((state) => ({
|
|
137
|
-
pagination: { ...state.pagination, total }
|
|
138
|
-
})),
|
|
139
|
-
// Actions - UI
|
|
140
|
-
toggleFilterPanel: () => set((state) => ({
|
|
141
|
-
isFilterPanelOpen: !state.isFilterPanelOpen
|
|
142
|
-
})),
|
|
143
|
-
toggleDetailsPanel: () => set((state) => ({
|
|
144
|
-
isDetailsPanelOpen: !state.isDetailsPanelOpen
|
|
145
|
-
})),
|
|
146
|
-
setAutoRefresh: (enabled) => set({ autoRefresh: enabled }),
|
|
147
|
-
setAutoRefreshInterval: (interval) => set({ autoRefreshInterval: interval }),
|
|
148
|
-
// Actions - Real-time
|
|
149
|
-
addLiveRun: (runId) => set((state) => {
|
|
150
|
-
const newLiveRunIds = new Set(state.liveRunIds);
|
|
151
|
-
newLiveRunIds.add(runId);
|
|
152
|
-
return { liveRunIds: newLiveRunIds };
|
|
153
|
-
}),
|
|
154
|
-
removeLiveRun: (runId) => set((state) => {
|
|
155
|
-
const newLiveRunIds = new Set(state.liveRunIds);
|
|
156
|
-
newLiveRunIds.delete(runId);
|
|
157
|
-
return { liveRunIds: newLiveRunIds };
|
|
158
|
-
}),
|
|
159
|
-
clearLiveRuns: () => set({ liveRunIds: /* @__PURE__ */ new Set() })
|
|
160
|
-
}));
|
|
161
|
-
|
|
162
|
-
// src/config/index.ts
|
|
163
|
-
var runtimeConfig = {
|
|
164
|
-
apiGatewayUrl: "",
|
|
165
|
-
workspaceId: ""
|
|
166
|
-
};
|
|
167
|
-
var config = new Proxy({}, {
|
|
168
|
-
get(_, prop) {
|
|
169
|
-
return runtimeConfig[prop];
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
function getFluidGridsConfig() {
|
|
173
|
-
return { ...runtimeConfig };
|
|
174
|
-
}
|
|
175
|
-
function setFluidGridsConfig(newConfig) {
|
|
176
|
-
runtimeConfig = { ...runtimeConfig, ...newConfig };
|
|
177
|
-
}
|
|
178
|
-
function resetFluidGridsConfig() {
|
|
179
|
-
runtimeConfig = {
|
|
180
|
-
apiGatewayUrl: "",
|
|
181
|
-
workspaceId: ""
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function normalizeOrigin(origin) {
|
|
185
|
-
return origin.replace(/\/$/, "");
|
|
186
|
-
}
|
|
187
|
-
function validateTrustedOrigin(trustedOrigins) {
|
|
188
|
-
if (typeof window === "undefined" || !trustedOrigins?.length) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
const currentOrigin = normalizeOrigin(window.location.origin);
|
|
192
|
-
const allowedOrigins = trustedOrigins.map(normalizeOrigin);
|
|
193
|
-
if (!allowedOrigins.includes(currentOrigin)) {
|
|
194
|
-
throw new Error(
|
|
195
|
-
`FluidGrids SDK blocked untrusted origin: ${currentOrigin}`
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
function getGraphQLEndpoint(baseUrl) {
|
|
200
|
-
const url = baseUrl || runtimeConfig.apiGatewayUrl;
|
|
201
|
-
if (!url) {
|
|
202
|
-
throw new Error("FluidGrids SDK requires apiGatewayUrl to be configured");
|
|
203
|
-
}
|
|
204
|
-
const normalizedBase = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
205
|
-
if (normalizedBase.endsWith("/graphql")) {
|
|
206
|
-
return normalizedBase;
|
|
207
|
-
}
|
|
208
|
-
return `${normalizedBase}/workspaces/graphql`;
|
|
209
|
-
}
|
|
210
|
-
function resetFluidGridsExecutionState() {
|
|
211
|
-
useExecutionsStore.setState(useExecutionsStore.getInitialState(), true);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export { config, getFluidGridsConfig, getGraphQLEndpoint, resetFluidGridsConfig, resetFluidGridsExecutionState, setFluidGridsConfig, useExecutionsStore, validateTrustedOrigin };
|
package/dist/client-EYQDMR4O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createFluidGridsClient, getFluidGridsClient, getFluidGridsClientSafe, isFluidGridsClientReady, resetFluidGridsClient, setFluidGridsClient, waitForFluidGridsClient } from './chunk-NTWG3CJX.js';
|
package/dist/config-3DBXLCK3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { config, getFluidGridsConfig, getGraphQLEndpoint, resetFluidGridsConfig, resetFluidGridsExecutionState, setFluidGridsConfig, validateTrustedOrigin } from './chunk-6AMNEX2Y.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createGlobalStoreClient, getGlobalStoreClient, resetGlobalStoreClient, setGlobalStoreClient } from './chunk-PXIFUMLA.js';
|