@burdenoff/fluidgrids-fe-sdk 2026.1007.5 → 2026.1008.2

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.
Files changed (65) hide show
  1. package/dist/ExecutionDetailPage-HPAU7U3E.js +12 -0
  2. package/dist/{ExecutionDetailPage-3QKAXLHE.js.map → ExecutionDetailPage-HPAU7U3E.js.map} +1 -1
  3. package/dist/ExecutionsListPage-TLXVEIRK.js +11 -0
  4. package/dist/{ExecutionsListPage-KZLKLSSC.js.map → ExecutionsListPage-TLXVEIRK.js.map} +1 -1
  5. package/dist/{WorkflowBuilder-B3VBBZVG.js → WorkflowBuilder-YJLWNBT3.js} +7 -7
  6. package/dist/{WorkflowBuilder-B3VBBZVG.js.map → WorkflowBuilder-YJLWNBT3.js.map} +1 -1
  7. package/dist/WorkflowsList-YSZWXFMZ.js +14 -0
  8. package/dist/{WorkflowsList-3Q7SSUYR.js.map → WorkflowsList-YSZWXFMZ.js.map} +1 -1
  9. package/dist/{chunk-GKSXZFDY.js → chunk-2C6CUHM3.js} +4 -4
  10. package/dist/{chunk-GKSXZFDY.js.map → chunk-2C6CUHM3.js.map} +1 -1
  11. package/dist/{chunk-ZLYJKIKG.js → chunk-2ORIFA6I.js} +3 -3
  12. package/dist/{chunk-ZLYJKIKG.js.map → chunk-2ORIFA6I.js.map} +1 -1
  13. package/dist/chunk-F2BBRTLB.js +204 -0
  14. package/dist/chunk-F2BBRTLB.js.map +1 -0
  15. package/dist/{chunk-FKOUPL6Z.js → chunk-FAPYERDO.js} +3 -3
  16. package/dist/{chunk-FKOUPL6Z.js.map → chunk-FAPYERDO.js.map} +1 -1
  17. package/dist/{chunk-5TITRVCU.js → chunk-I2766GDR.js} +4 -4
  18. package/dist/{chunk-5TITRVCU.js.map → chunk-I2766GDR.js.map} +1 -1
  19. package/dist/{chunk-G3RPRMP5.js → chunk-IOV4YPQU.js} +4 -4
  20. package/dist/{chunk-G3RPRMP5.js.map → chunk-IOV4YPQU.js.map} +1 -1
  21. package/dist/{chunk-RJPBWDZM.js → chunk-KIJDG6MG.js} +5 -5
  22. package/dist/{chunk-RJPBWDZM.js.map → chunk-KIJDG6MG.js.map} +1 -1
  23. package/dist/{chunk-LW722GAN.js → chunk-LVKUOMLJ.js} +5 -4
  24. package/dist/chunk-LVKUOMLJ.js.map +1 -0
  25. package/dist/{chunk-SJORR3EX.js → chunk-NG32SZ75.js} +5 -153
  26. package/dist/chunk-NG32SZ75.js.map +1 -0
  27. package/dist/{chunk-2DN6NTKM.js → chunk-W73HBP7B.js} +5 -5
  28. package/dist/{chunk-2DN6NTKM.js.map → chunk-W73HBP7B.js.map} +1 -1
  29. package/dist/{chunk-IVWSTICA.js → chunk-W7APOU2R.js} +19 -10
  30. package/dist/chunk-W7APOU2R.js.map +1 -0
  31. package/dist/{chunk-67CQSSWO.js → chunk-WKALLY4E.js} +4 -4
  32. package/dist/{chunk-67CQSSWO.js.map → chunk-WKALLY4E.js.map} +1 -1
  33. package/dist/{chunk-5A7GP6O7.js → chunk-WNFZXH3Z.js} +3 -3
  34. package/dist/{chunk-5A7GP6O7.js.map → chunk-WNFZXH3Z.js.map} +1 -1
  35. package/dist/{chunk-BNSM27CU.js → chunk-WXNDAONY.js} +3 -3
  36. package/dist/{chunk-BNSM27CU.js.map → chunk-WXNDAONY.js.map} +1 -1
  37. package/dist/{chunk-ZZRRG37Q.js → chunk-WYQ4OBES.js} +3 -3
  38. package/dist/{chunk-ZZRRG37Q.js.map → chunk-WYQ4OBES.js.map} +1 -1
  39. package/dist/{chunk-5BDQNSP3.js → chunk-ZBMMEE5U.js} +6 -4
  40. package/dist/chunk-ZBMMEE5U.js.map +1 -0
  41. package/dist/client-YFAZ23OL.js +3 -0
  42. package/dist/{client-AMUUS7VE.js.map → client-YFAZ23OL.js.map} +1 -1
  43. package/dist/{config-5UMLMALY.js → config-YHUOLDAL.js} +3 -3
  44. package/dist/{config-5UMLMALY.js.map → config-YHUOLDAL.js.map} +1 -1
  45. package/dist/executions.js +6 -6
  46. package/dist/history.js +4 -4
  47. package/dist/index.d.ts +1 -0
  48. package/dist/index.js +23 -23
  49. package/dist/nodes.js +2 -2
  50. package/dist/observability.js +3 -3
  51. package/dist/settings.js +3 -3
  52. package/dist/templates.js +5 -5
  53. package/dist/workflow-builder.js +6 -6
  54. package/dist/workflows-list.js +4 -4
  55. package/package.json +1 -1
  56. package/dist/ExecutionDetailPage-3QKAXLHE.js +0 -12
  57. package/dist/ExecutionsListPage-KZLKLSSC.js +0 -11
  58. package/dist/WorkflowsList-3Q7SSUYR.js +0 -14
  59. package/dist/chunk-5BDQNSP3.js.map +0 -1
  60. package/dist/chunk-IVWSTICA.js.map +0 -1
  61. package/dist/chunk-LW722GAN.js.map +0 -1
  62. package/dist/chunk-SJORR3EX.js.map +0 -1
  63. package/dist/chunk-U4AJLVHA.js +0 -52
  64. package/dist/chunk-U4AJLVHA.js.map +0 -1
  65. package/dist/client-AMUUS7VE.js +0 -3
@@ -1,52 +0,0 @@
1
- // src/config/index.ts
2
- var runtimeConfig = {
3
- apiGatewayUrl: "",
4
- workspaceId: ""
5
- };
6
- var config = new Proxy({}, {
7
- get(_, prop) {
8
- return runtimeConfig[prop];
9
- }
10
- });
11
- function getFluidGridsConfig() {
12
- return { ...runtimeConfig };
13
- }
14
- function setFluidGridsConfig(newConfig) {
15
- runtimeConfig = { ...runtimeConfig, ...newConfig };
16
- }
17
- function resetFluidGridsConfig() {
18
- runtimeConfig = {
19
- apiGatewayUrl: "",
20
- workspaceId: ""
21
- };
22
- }
23
- function normalizeOrigin(origin) {
24
- return origin.replace(/\/$/, "");
25
- }
26
- function validateTrustedOrigin(trustedOrigins) {
27
- if (typeof window === "undefined" || !trustedOrigins?.length) {
28
- return;
29
- }
30
- const currentOrigin = normalizeOrigin(window.location.origin);
31
- const allowedOrigins = trustedOrigins.map(normalizeOrigin);
32
- if (!allowedOrigins.includes(currentOrigin)) {
33
- throw new Error(
34
- `FluidGrids SDK blocked untrusted origin: ${currentOrigin}`
35
- );
36
- }
37
- }
38
- function getGraphQLEndpoint(baseUrl) {
39
- const url = baseUrl || runtimeConfig.apiGatewayUrl;
40
- if (!url) {
41
- throw new Error("FluidGrids SDK requires apiGatewayUrl to be configured");
42
- }
43
- const normalizedBase = url.endsWith("/") ? url.slice(0, -1) : url;
44
- if (normalizedBase.endsWith("/graphql")) {
45
- return normalizedBase;
46
- }
47
- return `${normalizedBase}/workspaces/graphql`;
48
- }
49
-
50
- export { config, getFluidGridsConfig, getGraphQLEndpoint, resetFluidGridsConfig, setFluidGridsConfig, validateTrustedOrigin };
51
- //# sourceMappingURL=chunk-U4AJLVHA.js.map
52
- //# sourceMappingURL=chunk-U4AJLVHA.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config/index.ts"],"names":[],"mappings":";AAsDA,IAAI,aAAA,GAAkC;AAAA,EACpC,aAAA,EAAe,EAAA;AAAA,EACf,WAAA,EAAa;AACf,CAAA;AAKO,IAAM,MAAA,GAAS,IAAI,KAAA,CAAM,EAAC,EAAuB;AAAA,EACtD,GAAA,CAAI,GAAG,IAAA,EAA8B;AACnC,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,EAC3B;AACF,CAAC;AAKM,SAAS,mBAAA,GAAwC;AACtD,EAAA,OAAO,EAAE,GAAG,aAAA,EAAc;AAC5B;AAKO,SAAS,oBACd,SAAA,EACM;AACN,EAAA,aAAA,GAAgB,EAAE,GAAG,aAAA,EAAe,GAAG,SAAA,EAAU;AACnD;AAKO,SAAS,qBAAA,GAA8B;AAC5C,EAAA,aAAA,GAAgB;AAAA,IACd,aAAA,EAAe,EAAA;AAAA,IACf,WAAA,EAAa;AAAA,GACf;AACF;AAEA,SAAS,gBAAgB,MAAA,EAAwB;AAC/C,EAAA,OAAO,MAAA,CAAO,OAAA,CAAQ,KAAA,EAAO,EAAE,CAAA;AACjC;AAEO,SAAS,sBAAsB,cAAA,EAAiC;AACrE,EAAA,IAAI,OAAO,MAAA,KAAW,WAAA,IAAe,CAAC,gBAAgB,MAAA,EAAQ;AAC5D,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,aAAA,GAAgB,eAAA,CAAgB,MAAA,CAAO,QAAA,CAAS,MAAM,CAAA;AAC5D,EAAA,MAAM,cAAA,GAAiB,cAAA,CAAe,GAAA,CAAI,eAAe,CAAA;AAEzD,EAAA,IAAI,CAAC,cAAA,CAAe,QAAA,CAAS,aAAa,CAAA,EAAG;AAC3C,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,4CAA4C,aAAa,CAAA;AAAA,KAC3D;AAAA,EACF;AACF;AAKO,SAAS,mBAAmB,OAAA,EAA0B;AAC3D,EAAA,MAAM,GAAA,GAAM,WAAW,aAAA,CAAc,aAAA;AACrC,EAAA,IAAI,CAAC,GAAA,EAAK;AACR,IAAA,MAAM,IAAI,MAAM,wDAAwD,CAAA;AAAA,EAC1E;AACA,EAAA,MAAM,cAAA,GAAiB,IAAI,QAAA,CAAS,GAAG,IAAI,GAAA,CAAI,KAAA,CAAM,CAAA,EAAG,EAAE,CAAA,GAAI,GAAA;AAC9D,EAAA,IAAI,cAAA,CAAe,QAAA,CAAS,UAAU,CAAA,EAAG;AACvC,IAAA,OAAO,cAAA;AAAA,EACT;AACA,EAAA,OAAO,GAAG,cAAc,CAAA,mBAAA,CAAA;AAC1B","file":"chunk-U4AJLVHA.js","sourcesContent":["/**\n * Configuration module for FluidGrids SDK\n */\n\n/** Result passed to the onWorkflowSaved callback after a successful save */\nexport interface WorkflowSavedResult {\n /** Database row ID of the saved workflow definition */\n dbId: string;\n /** Human-readable workflow key (e.g., \"github_user_profile\") */\n workflowKey: string;\n /** Semantic version string (e.g., \"v1\", \"v2\") */\n version: string;\n /** Display name of the workflow */\n name: string;\n /** Optional description */\n description?: string;\n /** What kind of save operation occurred */\n operation: \"created\" | \"updated\" | \"versioned\";\n}\n\nexport interface FluidGridsConfig {\n /** GraphQL endpoint URL (workspace gateway) */\n apiGatewayUrl: string;\n /** GraphQL endpoint URL (global gateway) */\n globalApiUrl?: string;\n /** Auth token for API calls */\n authToken?: string;\n /** Current workspace ID */\n workspaceId: string;\n /** Current tenant ID */\n tenantId?: string;\n /** Organization ID */\n organizationId?: string;\n /**\n * @deprecated Never read. Share/Embed links used to be built from this\n * value, which no host ever set, so they shipped as `undefined/...`\n * (BOFF-7753). Kept only so existing host configs still type-check.\n */\n fluidgridFrontendUrl?: string;\n /** Product ID for workflow isolation (e.g., 'bigconsole', 'botlit', 'fluidgrids') */\n productId?: string;\n /** Product name for display purposes */\n productName?: string;\n /** Optional allowlist for host origins embedding the SDK */\n trustedOrigins?: string[];\n /**\n * Callback invoked after a workflow is successfully saved to wspace-workflow-svc.\n * Host apps (BigConsole, Botlit) can use this to sync metadata to their own backends.\n * Errors thrown by this callback are caught and logged — they never block the save.\n */\n onWorkflowSaved?: (result: WorkflowSavedResult) => void | Promise<void>;\n}\n\n// Default configuration\nlet runtimeConfig: FluidGridsConfig = {\n apiGatewayUrl: \"\",\n workspaceId: \"\",\n};\n\n/**\n * Get current configuration via proxy for live access\n */\nexport const config = new Proxy({} as FluidGridsConfig, {\n get(_, prop: keyof FluidGridsConfig) {\n return runtimeConfig[prop];\n },\n});\n\n/**\n * Get the full configuration object\n */\nexport function getFluidGridsConfig(): FluidGridsConfig {\n return { ...runtimeConfig };\n}\n\n/**\n * Set runtime configuration\n */\nexport function setFluidGridsConfig(\n newConfig: Partial<FluidGridsConfig>,\n): void {\n runtimeConfig = { ...runtimeConfig, ...newConfig };\n}\n\n/**\n * Reset configuration to defaults\n */\nexport function resetFluidGridsConfig(): void {\n runtimeConfig = {\n apiGatewayUrl: \"\",\n workspaceId: \"\",\n };\n}\n\nfunction normalizeOrigin(origin: string): string {\n return origin.replace(/\\/$/, \"\");\n}\n\nexport function validateTrustedOrigin(trustedOrigins?: string[]): void {\n if (typeof window === \"undefined\" || !trustedOrigins?.length) {\n return;\n }\n\n const currentOrigin = normalizeOrigin(window.location.origin);\n const allowedOrigins = trustedOrigins.map(normalizeOrigin);\n\n if (!allowedOrigins.includes(currentOrigin)) {\n throw new Error(\n `FluidGrids SDK blocked untrusted origin: ${currentOrigin}`,\n );\n }\n}\n\n/**\n * Get the GraphQL endpoint URL\n */\nexport function getGraphQLEndpoint(baseUrl?: string): string {\n const url = baseUrl || runtimeConfig.apiGatewayUrl;\n if (!url) {\n throw new Error(\"FluidGrids SDK requires apiGatewayUrl to be configured\");\n }\n const normalizedBase = url.endsWith(\"/\") ? url.slice(0, -1) : url;\n if (normalizedBase.endsWith(\"/graphql\")) {\n return normalizedBase;\n }\n return `${normalizedBase}/workspaces/graphql`;\n}\n"]}
@@ -1,3 +0,0 @@
1
- export { createFluidGridsClient, getFluidGridsClient, getFluidGridsClientSafe, isFluidGridsClientReady, resetFluidGridsClient, setFluidGridsClient, waitForFluidGridsClient } from './chunk-5BDQNSP3.js';
2
- //# sourceMappingURL=client-AMUUS7VE.js.map
3
- //# sourceMappingURL=client-AMUUS7VE.js.map