@loopstack/loopstack-studio 0.28.0 → 0.29.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/dist/_virtual/rolldown_runtime.js +13 -15
- package/dist/api/config.js +2 -2
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/NewRunDialog.js +2 -2
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/Workspaces.js +2 -2
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/query-keys.js +3 -3
- package/dist/hooks/useConfig.js +15 -15
- package/dist/index.d.ts +12 -12
- package/dist/index.js +3 -3
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
- package/dist/pages/DebugWorkflowsPage.js +12 -12
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/dist/pages/WorkspacePage.js +2 -2
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MarkerType, Position } from "../../../node_modules/@xyflow/system/dist/esm/index.js";
|
|
2
|
+
import { NODE_HEIGHT, NODE_WIDTH } from "./flow-types.js";
|
|
2
3
|
import dagre_esm_default from "../../../frontend/studio/node_modules/@dagrejs/dagre/dist/dagre.esm.js";
|
|
3
|
-
var
|
|
4
|
+
var CONDITION_OPERATORS = {
|
|
4
5
|
gt: ">",
|
|
5
6
|
lt: "<",
|
|
6
7
|
eq: "==",
|
|
@@ -8,32 +9,32 @@ var NODE_WIDTH = 130, NODE_HEIGHT = 70, CONDITION_OPERATORS = {
|
|
|
8
9
|
ge: ">=",
|
|
9
10
|
le: "<="
|
|
10
11
|
};
|
|
11
|
-
function getLayoutedElements(e,
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
rankdir:
|
|
15
|
-
nodesep:
|
|
16
|
-
ranksep:
|
|
12
|
+
function getLayoutedElements(e, s, c = "LR") {
|
|
13
|
+
let u = new dagre_esm_default.graphlib.Graph().setDefaultEdgeLabel(() => ({}));
|
|
14
|
+
u.setGraph({
|
|
15
|
+
rankdir: c,
|
|
16
|
+
nodesep: 120,
|
|
17
|
+
ranksep: 240
|
|
17
18
|
});
|
|
18
|
-
for (let o of e)
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
19
|
+
for (let o of e) u.setNode(o.id, {
|
|
20
|
+
width: 208,
|
|
21
|
+
height: 104
|
|
21
22
|
});
|
|
22
|
-
for (let e of
|
|
23
|
-
return dagre_esm_default.layout(
|
|
23
|
+
for (let e of s) u.setEdge(e.source, e.target);
|
|
24
|
+
return dagre_esm_default.layout(u), {
|
|
24
25
|
nodes: e.map((e) => {
|
|
25
|
-
let s =
|
|
26
|
+
let s = u.node(e.id);
|
|
26
27
|
return {
|
|
27
28
|
...e,
|
|
28
|
-
targetPosition:
|
|
29
|
-
sourcePosition:
|
|
29
|
+
targetPosition: c === "LR" ? Position.Left : Position.Top,
|
|
30
|
+
sourcePosition: c === "LR" ? Position.Right : Position.Bottom,
|
|
30
31
|
position: {
|
|
31
|
-
x: s.x -
|
|
32
|
-
y: s.y -
|
|
32
|
+
x: s.x - 208 / 2,
|
|
33
|
+
y: s.y - 104 / 2
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
}),
|
|
36
|
-
edges:
|
|
37
|
+
edges: s
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function getTransitions(e, o = /* @__PURE__ */ new Set()) {
|
|
@@ -75,8 +76,8 @@ function formatCondition(e) {
|
|
|
75
76
|
}
|
|
76
77
|
return o;
|
|
77
78
|
}
|
|
78
|
-
function buildWorkflowGraph(e, o, s, c = [], l, u = !1, f = []) {
|
|
79
|
-
let
|
|
79
|
+
function buildWorkflowGraph(e, o, s, c = [], l, u = !1, f = [], p) {
|
|
80
|
+
let m = collectTransitions(e, o, c, p?.extraTransitionSources), y = collectStates(m, f), b = buildExecutedMap(f), x = resolveTransitions(m, f), S = findEndStates(y, x), C = findVisitedStates(f), w = buildNodes(y, {
|
|
80
81
|
workflowId: s,
|
|
81
82
|
currentPlace: o?.place,
|
|
82
83
|
endStates: S,
|
|
@@ -84,24 +85,26 @@ function buildWorkflowGraph(e, o, s, c = [], l, u = !1, f = []) {
|
|
|
84
85
|
visitCounts: buildVisitCounts(f),
|
|
85
86
|
direction: l,
|
|
86
87
|
forceVisible: u
|
|
87
|
-
}),
|
|
88
|
+
}), T = buildEdges(x, {
|
|
88
89
|
workflowId: s,
|
|
89
90
|
executedMap: b,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
forceVisible: u,
|
|
92
|
+
hideSameStateTransitions: p?.hideSameStateTransitions ?? !1,
|
|
93
|
+
direction: l
|
|
92
94
|
});
|
|
93
|
-
return
|
|
94
|
-
nodes:
|
|
95
|
-
edges:
|
|
96
|
-
};
|
|
95
|
+
return w.length <= 1 ? {
|
|
96
|
+
nodes: w,
|
|
97
|
+
edges: T
|
|
98
|
+
} : getLayoutedElements(w, T, l);
|
|
97
99
|
}
|
|
98
|
-
function collectTransitions(e, o, s) {
|
|
99
|
-
let
|
|
100
|
-
e &&
|
|
101
|
-
let
|
|
102
|
-
|
|
100
|
+
function collectTransitions(e, o, s, c) {
|
|
101
|
+
let l = [...s];
|
|
102
|
+
e && l.push(...getTransitions(e)), o && l.push(...getTransitions(o));
|
|
103
|
+
for (let e of c ?? []) l.push(...getTransitions(e));
|
|
104
|
+
let u = /* @__PURE__ */ new Set();
|
|
105
|
+
return l.filter((e) => {
|
|
103
106
|
let o = Array.isArray(e.from) ? e.from.join(",") : e.from, s = `${e.id}-${o}-${e.to}`;
|
|
104
|
-
return
|
|
107
|
+
return u.has(s) ? !1 : (u.add(s), !0);
|
|
105
108
|
});
|
|
106
109
|
}
|
|
107
110
|
function collectStates(e, o) {
|
|
@@ -162,20 +165,6 @@ function findVisitedStates(e) {
|
|
|
162
165
|
for (let s of e) s.place && o.add(s.place);
|
|
163
166
|
return o;
|
|
164
167
|
}
|
|
165
|
-
function computeStateRanks(e) {
|
|
166
|
-
let o = /* @__PURE__ */ new Map();
|
|
167
|
-
for (let s of e) {
|
|
168
|
-
if (s.from === s.to) continue;
|
|
169
|
-
let e = o.get(s.from) ?? [];
|
|
170
|
-
e.push(s.to), o.set(s.from, e);
|
|
171
|
-
}
|
|
172
|
-
let s = new Map([["start", 0]]), c = ["start"];
|
|
173
|
-
for (; c.length > 0;) {
|
|
174
|
-
let e = c.shift(), l = s.get(e);
|
|
175
|
-
for (let u of o.get(e) ?? []) s.has(u) || (s.set(u, l + 1), c.push(u));
|
|
176
|
-
}
|
|
177
|
-
return s;
|
|
178
|
-
}
|
|
179
168
|
function buildNodes(e, o) {
|
|
180
169
|
return Array.from(e).map((e) => ({
|
|
181
170
|
id: `${o.workflowId}-${e}`,
|
|
@@ -196,42 +185,55 @@ function buildNodes(e, o) {
|
|
|
196
185
|
}
|
|
197
186
|
}));
|
|
198
187
|
}
|
|
188
|
+
function edgeHandleProps(e, o) {
|
|
189
|
+
return e === "TB" ? o ? {
|
|
190
|
+
sourceHandle: "tb-s-self",
|
|
191
|
+
targetHandle: "tb-t-self"
|
|
192
|
+
} : {
|
|
193
|
+
sourceHandle: "tb-s",
|
|
194
|
+
targetHandle: "tb-t"
|
|
195
|
+
} : o ? {
|
|
196
|
+
sourceHandle: "lr-r-self",
|
|
197
|
+
targetHandle: "lr-l-self"
|
|
198
|
+
} : {
|
|
199
|
+
sourceHandle: "lr-r",
|
|
200
|
+
targetHandle: "lr-l"
|
|
201
|
+
};
|
|
202
|
+
}
|
|
199
203
|
function buildEdges(o, s) {
|
|
200
204
|
let c = /* @__PURE__ */ new Set(), l = [], u = 0;
|
|
201
205
|
for (let d of o) {
|
|
202
206
|
let o = `${d.from}->${d.to}:${d.id}`;
|
|
203
207
|
if (c.has(o)) continue;
|
|
204
208
|
c.add(o);
|
|
205
|
-
let f =
|
|
209
|
+
let f = d.from === d.to;
|
|
210
|
+
if (s.hideSameStateTransitions && f) continue;
|
|
211
|
+
let p = s.executedMap.has(o), m = d.trigger === "onEntry", h = p ? "var(--primary)" : "var(--muted-foreground)", g = {
|
|
206
212
|
...d,
|
|
207
|
-
isExecuted:
|
|
208
|
-
isSelfLoop:
|
|
209
|
-
isBackEdge: _,
|
|
213
|
+
isExecuted: p,
|
|
214
|
+
isSelfLoop: f,
|
|
210
215
|
forceVisible: s.forceVisible
|
|
211
|
-
};
|
|
216
|
+
}, _ = p || s.forceVisible ? 1 : .38, v = p ? 2.5 : 1.5;
|
|
212
217
|
l.push({
|
|
213
218
|
id: `edge-${s.workflowId}-${u++}`,
|
|
214
219
|
source: `${s.workflowId}-${d.from}`,
|
|
215
220
|
target: `${s.workflowId}-${d.to}`,
|
|
216
|
-
...
|
|
217
|
-
sourceHandle: "bottom-source",
|
|
218
|
-
targetHandle: "bottom-target"
|
|
219
|
-
},
|
|
221
|
+
...edgeHandleProps(s.direction, f),
|
|
220
222
|
type: "workflowTransition",
|
|
221
223
|
animated: !1,
|
|
222
224
|
style: {
|
|
223
|
-
strokeWidth:
|
|
224
|
-
stroke:
|
|
225
|
-
strokeDasharray:
|
|
226
|
-
opacity:
|
|
225
|
+
strokeWidth: v,
|
|
226
|
+
stroke: h,
|
|
227
|
+
strokeDasharray: m ? "4,4" : p ? void 0 : "5,5",
|
|
228
|
+
opacity: _
|
|
227
229
|
},
|
|
228
230
|
markerEnd: {
|
|
229
231
|
type: MarkerType.ArrowClosed,
|
|
230
|
-
width: 18,
|
|
231
|
-
height: 18,
|
|
232
|
-
color:
|
|
232
|
+
width: f ? 12 : 18,
|
|
233
|
+
height: f ? 12 : 18,
|
|
234
|
+
color: h
|
|
233
235
|
},
|
|
234
|
-
data:
|
|
236
|
+
data: g
|
|
235
237
|
});
|
|
236
238
|
}
|
|
237
239
|
return l;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WorkflowState } from "../../../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
2
|
+
import "../../../packages/contracts/dist/enums/index.js";
|
|
2
3
|
import DocumentItem_default from "./DocumentItem.js";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import React, { useEffect } from "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { useParams } from "react-router-dom";
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
|
|
8
|
+
var DocumentList_default = (a) => {
|
|
9
|
+
let s = c(23), { workflow: l, childWorkflow: u, documents: d, scrollTo: f, settings: p } = a, { workflowId: m, clickId: h } = useParams(), g;
|
|
10
|
+
s[0] !== u.id || s[1] !== m || s[2] !== f ? (g = () => {
|
|
10
11
|
m === u.id && f(u.id);
|
|
11
|
-
},
|
|
12
|
+
}, s[0] = u.id, s[1] = m, s[2] = f, s[3] = g) : g = s[3];
|
|
12
13
|
let _;
|
|
13
|
-
|
|
14
|
+
s[4] !== u.id || s[5] !== h || s[6] !== m || s[7] !== f ? (_ = [
|
|
14
15
|
u.id,
|
|
15
16
|
m,
|
|
16
17
|
h,
|
|
17
18
|
f
|
|
18
|
-
],
|
|
19
|
-
let v = u.status ===
|
|
20
|
-
if (
|
|
19
|
+
], s[4] = u.id, s[5] = h, s[6] = m, s[7] = f, s[8] = _) : _ = s[8], useEffect(g, _);
|
|
20
|
+
let v = u.status === WorkflowState.Waiting, y;
|
|
21
|
+
if (s[9] !== u || s[10] !== d || s[11] !== v || s[12] !== p || s[13] !== l) {
|
|
21
22
|
let e;
|
|
22
|
-
|
|
23
|
-
let
|
|
23
|
+
s[15] !== u || s[16] !== d.length || s[17] !== v || s[18] !== p || s[19] !== l ? (e = (e, i) => {
|
|
24
|
+
let a = e, o = e.place === u.place || !!a.meta?.enableAtPlaces?.includes(u.place);
|
|
24
25
|
return console.log({
|
|
25
|
-
isDocumentActive:
|
|
26
|
+
isDocumentActive: o,
|
|
26
27
|
isWorkflowActive: v,
|
|
27
28
|
status: u.status,
|
|
28
29
|
place: u.place,
|
|
@@ -32,16 +33,16 @@ var import_enums = require_enums(), DocumentList_default = (e) => {
|
|
|
32
33
|
document: e,
|
|
33
34
|
workflow: u,
|
|
34
35
|
parentWorkflow: l,
|
|
35
|
-
isActive: v &&
|
|
36
|
-
isLastItem:
|
|
36
|
+
isActive: v && o,
|
|
37
|
+
isLastItem: i === d.length - 1,
|
|
37
38
|
settings: p
|
|
38
39
|
}, e.id);
|
|
39
|
-
},
|
|
40
|
-
} else y =
|
|
40
|
+
}, s[15] = u, s[16] = d.length, s[17] = v, s[18] = p, s[19] = l, s[20] = e) : e = s[20], y = d.map(e), s[9] = u, s[10] = d, s[11] = v, s[12] = p, s[13] = l, s[14] = y;
|
|
41
|
+
} else y = s[14];
|
|
41
42
|
let b;
|
|
42
|
-
return
|
|
43
|
+
return s[21] === y ? b = s[22] : (b = /* @__PURE__ */ jsx("div", {
|
|
43
44
|
className: "flex flex-col gap-3",
|
|
44
45
|
children: y
|
|
45
|
-
}),
|
|
46
|
+
}), s[21] = y, s[22] = b), b;
|
|
46
47
|
};
|
|
47
48
|
export { DocumentList_default as default };
|
|
@@ -2,7 +2,8 @@ import { cn } from "../../lib/utils.js";
|
|
|
2
2
|
import { Button } from "../../components/ui/button.js";
|
|
3
3
|
import LoadingCentered_default from "../../components/feedback/LoadingCentered.js";
|
|
4
4
|
import ErrorSnackbar_default from "../../components/feedback/ErrorSnackbar.js";
|
|
5
|
-
import {
|
|
5
|
+
import { WorkflowState } from "../../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
6
|
+
import "../../packages/contracts/dist/enums/index.js";
|
|
6
7
|
import { useRunWorkflow } from "../../hooks/useProcessor.js";
|
|
7
8
|
import DocumentList_default from "../documents/components/DocumentList.js";
|
|
8
9
|
import "../documents/index.js";
|
|
@@ -13,7 +14,7 @@ import React, { useEffect } from "react";
|
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
import { useParams } from "react-router-dom";
|
|
15
16
|
import { AlertCircle, RefreshCw } from "lucide-react";
|
|
16
|
-
var
|
|
17
|
+
var WorkflowItem_default = (h) => {
|
|
17
18
|
let g = c(55), { workflow: _, workflowId: v, scrollTo: y, settings: b, embed: x } = h, { workflowId: S, clickId: C } = useParams(), w = useRunWorkflow(), T;
|
|
18
19
|
g[0] !== b.showFullMessageHistory || g[1] !== v ? (T = {
|
|
19
20
|
workflowId: v,
|
|
@@ -34,7 +35,7 @@ var import_enums = require_enums(), WorkflowItem_default = (h) => {
|
|
|
34
35
|
], g[9] = C, g[10] = M, g[11] = S, g[12] = y, g[13] = v, g[14] = O, g[15] = L) : L = g[15], useEffect(I, L);
|
|
35
36
|
let R;
|
|
36
37
|
g[16] === E?.availableTransitions ? R = g[17] : (R = E?.availableTransitions?.some(_temp), g[16] = E?.availableTransitions, g[17] = R);
|
|
37
|
-
let z = R, B = E?.hasError && E.status ===
|
|
38
|
+
let z = R, B = E?.hasError && E.status === WorkflowState.Waiting, V = E?.hasError && !B && z !== !1, H;
|
|
38
39
|
g[18] !== w || g[19] !== v ? (H = () => {
|
|
39
40
|
w.mutate({
|
|
40
41
|
workflowId: v,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useAppConfig, useWorkflowConfig } from "../../../hooks/useConfig.js";
|
|
2
2
|
import { useCreateWorkflow } from "../../../hooks/useWorkflows.js";
|
|
3
3
|
import { useFilterWorkspaces } from "../../../hooks/useWorkspaces.js";
|
|
4
4
|
import { useComponentOverrides } from "../../../providers/ComponentOverridesProvider.js";
|
|
@@ -36,7 +36,7 @@ function NewRunDialog(e) {
|
|
|
36
36
|
}), t[4] = r, t[5] = n, t[6] = o, t[7] = s) : s = t[7], s;
|
|
37
37
|
}
|
|
38
38
|
function NewRunDialogContent(o) {
|
|
39
|
-
let s = c(115), { open: l, onSuccess: u } = o, [d, f] = useState("workspace"), [p, g] = useState(!1), [v, me] = useState(""), [y, he] = useState(""), { CreateWorkspace: x } = useComponentOverrides(), _e = x ?? CreateWorkspace_default, ve =
|
|
39
|
+
let s = c(115), { open: l, onSuccess: u } = o, [d, f] = useState("workspace"), [p, g] = useState(!1), [v, me] = useState(""), [y, he] = useState(""), { CreateWorkspace: x } = useComponentOverrides(), _e = x ?? CreateWorkspace_default, ve = useAppConfig(), ye;
|
|
40
40
|
s[0] === Symbol.for("react.memo_cache_sentinel") ? (ye = {}, s[0] = ye) : ye = s[0];
|
|
41
41
|
let S = useFilterWorkspaces(void 0, ye, "title", "ASC", 0, 100), be;
|
|
42
42
|
s[1] === S.data?.data ? be = s[2] : (be = S.data?.data ?? [], s[1] = S.data?.data, s[2] = be);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../../providers/StudioProvider.js";
|
|
2
|
+
import "../../../hooks/useWorkflows.js";
|
|
3
|
+
import "../../../components/ui/button.js";
|
|
4
|
+
import "./NewRunDialog.js";
|
|
5
|
+
import "./RecentRunItem.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useNavigate } from "react-router-dom";
|
|
10
|
+
import { ChevronDown, Loader2, Play } from "lucide-react";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../../hooks/useWorkflows.js";
|
|
2
|
+
import "../../../components/ui/button.js";
|
|
3
|
+
import "../../../components/feedback/LoadingCentered.js";
|
|
4
|
+
import "../../../components/feedback/ErrorSnackbar.js";
|
|
5
|
+
import "../../debug/index.js";
|
|
6
|
+
import "../WorkflowItem.js";
|
|
7
|
+
import "./WorkflowHistoryList.js";
|
|
8
|
+
import "./NewRunDialog.js";
|
|
9
|
+
import "../hooks/useEmbedBridge.js";
|
|
10
|
+
import "./EmbedLogsContent.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import { useCallback, useState } from "react";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { ListOrdered, Play, ScrollText, Workflow } from "lucide-react";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { formatDistanceToNow } from "date-fns";
|
|
4
|
+
var STATUS_DOT_COLORS = {
|
|
5
|
+
completed: "bg-green-500",
|
|
6
|
+
running: "bg-blue-500",
|
|
7
|
+
failed: "bg-red-500",
|
|
8
|
+
paused: "bg-yellow-500",
|
|
9
|
+
canceled: "bg-orange-500",
|
|
10
|
+
pending: "bg-muted-foreground"
|
|
11
|
+
};
|
|
12
|
+
function RecentRunItem(a) {
|
|
13
|
+
let o = c(17), { workflow: s, onClick: l } = a, u = `h-1.5 w-1.5 shrink-0 rounded-full ${STATUS_DOT_COLORS[s.status] ?? "bg-muted-foreground"}`, d;
|
|
14
|
+
o[0] === u ? d = o[1] : (d = /* @__PURE__ */ jsx("span", { className: u }), o[0] = u, o[1] = d);
|
|
15
|
+
let f;
|
|
16
|
+
o[2] !== s.alias || o[3] !== s.run ? (f = /* @__PURE__ */ jsxs("span", {
|
|
17
|
+
className: "truncate text-sm font-medium",
|
|
18
|
+
children: [
|
|
19
|
+
"Run #",
|
|
20
|
+
s.run,
|
|
21
|
+
" · ",
|
|
22
|
+
s.alias
|
|
23
|
+
]
|
|
24
|
+
}), o[2] = s.alias, o[3] = s.run, o[4] = f) : f = o[4];
|
|
25
|
+
let p;
|
|
26
|
+
o[5] !== d || o[6] !== f ? (p = /* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: "flex items-center gap-2",
|
|
28
|
+
children: [d, f]
|
|
29
|
+
}), o[5] = d, o[6] = f, o[7] = p) : p = o[7];
|
|
30
|
+
let m = s.status, h;
|
|
31
|
+
o[8] === s.createdAt ? h = o[9] : (h = formatDistanceToNow(new Date(s.createdAt), { addSuffix: !0 }), o[8] = s.createdAt, o[9] = h);
|
|
32
|
+
let g;
|
|
33
|
+
o[10] !== h || o[11] !== s.status ? (g = /* @__PURE__ */ jsxs("p", {
|
|
34
|
+
className: "text-muted-foreground mt-0.5 pl-3.5 text-xs",
|
|
35
|
+
children: [
|
|
36
|
+
m,
|
|
37
|
+
" · ",
|
|
38
|
+
h
|
|
39
|
+
]
|
|
40
|
+
}), o[10] = h, o[11] = s.status, o[12] = g) : g = o[12];
|
|
41
|
+
let _;
|
|
42
|
+
return o[13] !== l || o[14] !== p || o[15] !== g ? (_ = /* @__PURE__ */ jsxs("button", {
|
|
43
|
+
className: "hover:bg-accent w-full rounded-md px-2 py-2.5 text-left transition-colors",
|
|
44
|
+
onClick: l,
|
|
45
|
+
children: [p, g]
|
|
46
|
+
}), o[13] = l, o[14] = p, o[15] = g, o[16] = _) : _ = o[16], _;
|
|
47
|
+
}
|
|
48
|
+
export { RecentRunItem };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useWorkflowConfigByName } from "../../../hooks/useWorkflows.js";
|
|
2
|
-
import {
|
|
2
|
+
import { WorkflowState } from "../../../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
3
|
+
import "../../../packages/contracts/dist/enums/index.js";
|
|
3
4
|
import UiActions_default from "../../../components/ui-widgets/UiActions.js";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import React from "react";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var
|
|
8
|
+
var WorkflowForms_default = (o) => {
|
|
8
9
|
let s = c(8), { workflow: l, onSubmit: u } = o, d = useWorkflowConfigByName(l.className ?? void 0).data?.ui, f = d?.widgets ?? d?.actions;
|
|
9
10
|
if (!f?.length) return null;
|
|
10
11
|
let p;
|
|
11
12
|
s[0] === l.availableTransitions ? p = s[1] : (p = l.availableTransitions?.map(_temp) ?? [], s[0] = l.availableTransitions, s[1] = p);
|
|
12
|
-
let m = p, h = f, g = l.status ===
|
|
13
|
+
let m = p, h = f, g = l.status === WorkflowState.Completed, _;
|
|
13
14
|
return s[2] !== m || s[3] !== u || s[4] !== h || s[5] !== g || s[6] !== l.place ? (_ = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(UiActions_default, {
|
|
14
15
|
actions: h,
|
|
15
16
|
availableTransitions: m,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useWorkflow } from "../../../hooks/useWorkflows.js";
|
|
2
|
-
import {
|
|
2
|
+
import { WorkflowState } from "../../../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
3
|
+
import "../../../packages/contracts/dist/enums/index.js";
|
|
3
4
|
import { useRunWorkflow } from "../../../hooks/useProcessor.js";
|
|
4
5
|
import { useFilterDocuments } from "../../../hooks/useDocuments.js";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { useCallback, useMemo } from "react";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let o = c(21), { workflowId: s, showFullMessageHistory: l } = r, u = useWorkflow(s), d = useFilterDocuments(s), f = useRunWorkflow(), p;
|
|
8
|
+
function useWorkflowData(a) {
|
|
9
|
+
let o = c(21), { workflowId: s, showFullMessageHistory: l } = a, u = useWorkflow(s), d = useFilterDocuments(s), f = useRunWorkflow(), p;
|
|
10
10
|
o[0] !== u.data?.place || o[1] !== l ? (p = (e) => {
|
|
11
|
-
let
|
|
12
|
-
return !l && e.tags?.includes("internal") && (
|
|
11
|
+
let n = e.meta, r = e.ui, i = n?.hidden || r?.hidden || !!n?.hideAtPlaces?.includes(u.data?.place ?? "");
|
|
12
|
+
return !l && e.tags?.includes("internal") && (i = !0), !i;
|
|
13
13
|
}, o[0] = u.data?.place, o[1] = l, o[2] = p) : p = o[2];
|
|
14
14
|
let m = p, h;
|
|
15
15
|
bb0: {
|
|
@@ -22,17 +22,17 @@ function useWorkflowData(r) {
|
|
|
22
22
|
o[4] !== d.data || o[5] !== m ? (e = d.data.filter(m), o[4] = d.data, o[5] = m, o[6] = e) : e = o[6], h = e;
|
|
23
23
|
}
|
|
24
24
|
let g = h, _;
|
|
25
|
-
o[7] !== f || o[8] !== s ? (_ = (e,
|
|
25
|
+
o[7] !== f || o[8] !== s ? (_ = (e, n) => {
|
|
26
26
|
f.mutate({
|
|
27
27
|
workflowId: s,
|
|
28
28
|
runWorkflowPayloadDto: { transition: {
|
|
29
29
|
id: e,
|
|
30
30
|
workflowId: s,
|
|
31
|
-
payload:
|
|
31
|
+
payload: n
|
|
32
32
|
} }
|
|
33
33
|
});
|
|
34
34
|
}, o[7] = f, o[8] = s, o[9] = _) : _ = o[9];
|
|
35
|
-
let v = _, y = f.isPending || u.data?.status ===
|
|
35
|
+
let v = _, y = f.isPending || u.data?.status === WorkflowState.Running, b = u.data?.errorMessage, x;
|
|
36
36
|
return o[10] !== g || o[11] !== d.error || o[12] !== d.isLoading || o[13] !== d.isSuccess || o[14] !== u.data || o[15] !== u.isLoading || o[16] !== u.isSuccess || o[17] !== v || o[18] !== y || o[19] !== b ? (x = {
|
|
37
37
|
workflow: u.data,
|
|
38
38
|
workflowLoading: u.isLoading,
|
|
@@ -6,3 +6,7 @@ import WorkflowButtons_default from "./components/buttons/WorkflowButtons.js";
|
|
|
6
6
|
import WorkflowList_default from "./WorkflowList.js";
|
|
7
7
|
import Workbench from "./Workbench.js";
|
|
8
8
|
import { NewRunDialog } from "./components/NewRunDialog.js";
|
|
9
|
+
import "./hooks/useEmbedBridge.js";
|
|
10
|
+
import "./components/PreviewWorkbench.js";
|
|
11
|
+
import { RecentRunItem } from "./components/RecentRunItem.js";
|
|
12
|
+
import "./components/PreviewEmptyState.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStudio } from "../../providers/StudioProvider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useAppConfig } from "../../hooks/useConfig.js";
|
|
3
3
|
import { useBatchDeleteWorkspaces, useDeleteWorkspace, useFilterWorkspaces, useSetFavouriteWorkspace } from "../../hooks/useWorkspaces.js";
|
|
4
4
|
import { useComponentOverrides } from "../../providers/ComponentOverridesProvider.js";
|
|
5
5
|
import { Badge } from "../../components/ui/badge.js";
|
|
@@ -20,7 +20,7 @@ var Workspaces_default = () => {
|
|
|
20
20
|
n[1] === a ? (_ = n[2], v = n[3]) : (_ = () => {
|
|
21
21
|
a.get("create") === "true" && h(!0);
|
|
22
22
|
}, v = [a], n[1] = a, n[2] = _, n[3] = v), useEffect(_, v);
|
|
23
|
-
let y =
|
|
23
|
+
let y = useAppConfig(), b = useFilterWorkspaces(Le, p, l, u, o, s), x = useDeleteWorkspace(), ze = useBatchDeleteWorkspaces(), S = useSetFavouriteWorkspace(), C;
|
|
24
24
|
n[4] === x ? C = n[5] : (C = (e) => {
|
|
25
25
|
x.mutate(e);
|
|
26
26
|
}, n[4] = x, n[5] = C);
|
|
@@ -3,7 +3,8 @@ import { useBatchDeleteWorkflows, useChildWorkflows, useFilterWorkflows } from "
|
|
|
3
3
|
import { Badge } from "../../../components/ui/badge.js";
|
|
4
4
|
import CustomListView_default from "../../../components/lists/CustomListView.js";
|
|
5
5
|
import ErrorSnackbar_default from "../../../components/feedback/ErrorSnackbar.js";
|
|
6
|
-
import {
|
|
6
|
+
import { WorkflowState } from "../../../packages/contracts/dist/enums/workflow-state.enum.js";
|
|
7
|
+
import "../../../packages/contracts/dist/enums/index.js";
|
|
7
8
|
import NewWorkflowRunDialog_default from "./NewWorkflowRunDialog.js";
|
|
8
9
|
import { c } from "react/compiler-runtime";
|
|
9
10
|
import React, { useEffect, useState } from "react";
|
|
@@ -11,7 +12,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
11
12
|
import { useQueryClient } from "@tanstack/react-query";
|
|
12
13
|
import { ChevronDown, ChevronRight, Loader2 } from "lucide-react";
|
|
13
14
|
import { format, formatDistanceToNow, isToday, isYesterday, parseISO } from "date-fns";
|
|
14
|
-
var
|
|
15
|
+
var ChildWorkflowList = (e) => {
|
|
15
16
|
let n = c(15), { parentId: i, formatUpdatedTime: a, getWorkflowStateColor: o, onChildClick: s } = e, { data: l, isPending: u } = useChildWorkflows(i, !0);
|
|
16
17
|
if (u) {
|
|
17
18
|
let e;
|
|
@@ -194,12 +195,12 @@ function _temp(e) {
|
|
|
194
195
|
}
|
|
195
196
|
function _temp2(e) {
|
|
196
197
|
switch (e) {
|
|
197
|
-
case
|
|
198
|
-
case
|
|
199
|
-
case
|
|
200
|
-
case
|
|
201
|
-
case
|
|
202
|
-
case
|
|
198
|
+
case WorkflowState.Completed: return "bg-green-600";
|
|
199
|
+
case WorkflowState.Paused: return "bg-yellow-600";
|
|
200
|
+
case WorkflowState.Failed: return "bg-red-600";
|
|
201
|
+
case WorkflowState.Canceled:
|
|
202
|
+
case WorkflowState.Pending:
|
|
203
|
+
case WorkflowState.Running:
|
|
203
204
|
default: return "bg-black";
|
|
204
205
|
}
|
|
205
206
|
}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getGitLogCacheKey, getGitRemoteCacheKey, getGitStatusCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey,
|
|
1
|
+
import { getAppTypesCacheKey, getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getGitLogCacheKey, getGitRemoteCacheKey, getGitStatusCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey, getWorkspacesCacheKey } from "./query-keys.js";
|
|
2
2
|
import { useApiClient } from "./useApi.js";
|
|
3
3
|
import { useIsMobile } from "./use-mobile.js";
|
|
4
|
-
import { useAvailableEnvironments, useWorkflowConfig
|
|
4
|
+
import { useAppConfig, useAvailableEnvironments, useWorkflowConfig } from "./useConfig.js";
|
|
5
5
|
import { useBatchDeleteWorkflows, useChildWorkflows, useCreateWorkflow, useDeleteWorkflow, useFilterWorkflows, useUpdateWorkflow, useWorkflow, useWorkflowCheckpoints, useWorkflowConfigByName, useWorkflowSource } from "./useWorkflows.js";
|
|
6
6
|
import { useBatchDeleteWorkspaces, useCreateWorkspace, useDeleteWorkspace, useFilterWorkspaces, useSetFavouriteWorkspace, useUpdateWorkspace, useWorkspace } from "./useWorkspaces.js";
|
package/dist/hooks/query-keys.js
CHANGED
|
@@ -4,8 +4,8 @@ function getMeCacheKey(e) {
|
|
|
4
4
|
function getHealthCacheKey(e) {
|
|
5
5
|
return ["health", e];
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return ["
|
|
7
|
+
function getAppTypesCacheKey(e) {
|
|
8
|
+
return ["app-types", e];
|
|
9
9
|
}
|
|
10
10
|
function getWorkflowTypesCacheKey(e, y) {
|
|
11
11
|
return [
|
|
@@ -122,4 +122,4 @@ function getFileContentCacheKey(e, y, b) {
|
|
|
122
122
|
b
|
|
123
123
|
];
|
|
124
124
|
}
|
|
125
|
-
export { getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getGitLogCacheKey, getGitRemoteCacheKey, getGitStatusCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey,
|
|
125
|
+
export { getAppTypesCacheKey, getAvailableEnvironmentsCacheKey, getChildWorkflowsCacheKey, getDashboardStatsCacheKey, getDocumentCacheKey, getDocumentsCacheKey, getFileContentCacheKey, getFileTreeCacheKey, getGitLogCacheKey, getGitRemoteCacheKey, getGitStatusCacheKey, getHealthCacheKey, getMeCacheKey, getSecretsCacheKey, getWorkflowCacheKey, getWorkflowConfigCacheKey, getWorkflowSourceCacheKey, getWorkflowTypesCacheKey, getWorkflowsCacheKey, getWorkspaceCacheKey, getWorkspacesCacheKey };
|
package/dist/hooks/useConfig.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { getAvailableEnvironmentsCacheKey, getWorkflowTypesCacheKey
|
|
1
|
+
import { getAppTypesCacheKey, getAvailableEnvironmentsCacheKey, getWorkflowTypesCacheKey } from "./query-keys.js";
|
|
2
2
|
import { useApiClient } from "./useApi.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useQuery } from "@tanstack/react-query";
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
|
|
5
|
+
function useAppConfig() {
|
|
6
|
+
let i = c(7), { envKey: a, api: o } = useApiClient(), s;
|
|
7
|
+
i[0] === a ? s = i[1] : (s = getAppTypesCacheKey(a), i[0] = a, i[1] = s);
|
|
8
8
|
let l;
|
|
9
|
-
|
|
9
|
+
i[2] === o ? l = i[3] : (l = () => o.config.getAppTypes(), i[2] = o, i[3] = l);
|
|
10
10
|
let u;
|
|
11
|
-
return
|
|
11
|
+
return i[4] !== s || i[5] !== l ? (u = {
|
|
12
12
|
queryKey: s,
|
|
13
13
|
queryFn: l
|
|
14
|
-
},
|
|
14
|
+
}, i[4] = s, i[5] = l, i[6] = u) : u = i[6], useQuery(u);
|
|
15
15
|
}
|
|
16
16
|
function useWorkflowConfig(e) {
|
|
17
|
-
let
|
|
18
|
-
|
|
17
|
+
let i = c(10), { envKey: o, api: s } = useApiClient(), l;
|
|
18
|
+
i[0] !== e || i[1] !== o ? (l = getWorkflowTypesCacheKey(o, e), i[0] = e, i[1] = o, i[2] = l) : l = i[2];
|
|
19
19
|
let u;
|
|
20
|
-
|
|
20
|
+
i[3] !== s || i[4] !== e ? (u = () => s.config.getWorkflowTypesByApp({ appBlockName: e }), i[3] = s, i[4] = e, i[5] = u) : u = i[5];
|
|
21
21
|
let d = !!e, f;
|
|
22
|
-
return
|
|
22
|
+
return i[6] !== l || i[7] !== u || i[8] !== d ? (f = {
|
|
23
23
|
queryKey: l,
|
|
24
24
|
queryFn: u,
|
|
25
25
|
enabled: d
|
|
26
|
-
},
|
|
26
|
+
}, i[6] = l, i[7] = u, i[8] = d, i[9] = f) : f = i[9], useQuery(f);
|
|
27
27
|
}
|
|
28
|
-
function useAvailableEnvironments(
|
|
28
|
+
function useAvailableEnvironments(e) {
|
|
29
29
|
let a = c(8), { envKey: o, api: s } = useApiClient(), l;
|
|
30
30
|
a[0] === o ? l = a[1] : (l = getAvailableEnvironmentsCacheKey(o), a[0] = o, a[1] = l);
|
|
31
31
|
let u;
|
|
32
32
|
a[2] === s ? u = a[3] : (u = () => s.config.getAvailableEnvironments(), a[2] = s, a[3] = u);
|
|
33
|
-
let d =
|
|
33
|
+
let d = e?.enabled ?? !0, f;
|
|
34
34
|
return a[4] !== l || a[5] !== u || a[6] !== d ? (f = {
|
|
35
35
|
queryKey: l,
|
|
36
36
|
queryFn: u,
|
|
37
37
|
enabled: d
|
|
38
38
|
}, a[4] = l, a[5] = u, a[6] = d, a[7] = f) : f = a[7], useQuery(f);
|
|
39
39
|
}
|
|
40
|
-
export { useAvailableEnvironments, useWorkflowConfig
|
|
40
|
+
export { useAppConfig, useAvailableEnvironments, useWorkflowConfig };
|