@loopstack/loopstack-studio 0.28.0 → 0.29.0
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/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/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/components/ExecutionTimeline.js +9 -8
- 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/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- 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,12 +1,12 @@
|
|
|
1
1
|
import isFunction_default from "../../../lodash-es/isFunction.js";
|
|
2
2
|
import constant_default from "../../../lodash-es/constant.js";
|
|
3
|
-
import isEmpty_default from "../../../lodash-es/isEmpty.js";
|
|
4
3
|
import keys_default from "../../../lodash-es/keys.js";
|
|
5
|
-
import filter_default from "../../../lodash-es/filter.js";
|
|
6
4
|
import forEach_default from "../../../lodash-es/forEach.js";
|
|
7
|
-
import
|
|
5
|
+
import filter_default from "../../../lodash-es/filter.js";
|
|
8
6
|
import values_default from "../../../lodash-es/values.js";
|
|
7
|
+
import isEmpty_default from "../../../lodash-es/isEmpty.js";
|
|
9
8
|
import isUndefined_default from "../../../lodash-es/isUndefined.js";
|
|
9
|
+
import reduce_default from "../../../lodash-es/reduce.js";
|
|
10
10
|
import union_default from "../../../lodash-es/union.js";
|
|
11
11
|
var DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = class {
|
|
12
12
|
constructor(e = {}) {
|
|
@@ -27,8 +27,8 @@ var DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = c
|
|
|
27
27
|
graph() {
|
|
28
28
|
return this._label;
|
|
29
29
|
}
|
|
30
|
-
setDefaultNodeLabel(
|
|
31
|
-
return isFunction_default(
|
|
30
|
+
setDefaultNodeLabel(f) {
|
|
31
|
+
return isFunction_default(f) || (f = constant_default(f)), this._defaultNodeLabelFn = f, this;
|
|
32
32
|
}
|
|
33
33
|
nodeCount() {
|
|
34
34
|
return this._nodeCount;
|
|
@@ -38,24 +38,24 @@ var DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = c
|
|
|
38
38
|
}
|
|
39
39
|
sources() {
|
|
40
40
|
var e = this;
|
|
41
|
-
return filter_default(this.nodes(), function(
|
|
42
|
-
return isEmpty_default(e._in[
|
|
41
|
+
return filter_default(this.nodes(), function(d) {
|
|
42
|
+
return isEmpty_default(e._in[d]);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
sinks() {
|
|
46
46
|
var e = this;
|
|
47
|
-
return filter_default(this.nodes(), function(
|
|
48
|
-
return isEmpty_default(e._out[
|
|
47
|
+
return filter_default(this.nodes(), function(d) {
|
|
48
|
+
return isEmpty_default(e._out[d]);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
setNodes(e,
|
|
52
|
-
var
|
|
51
|
+
setNodes(e, d) {
|
|
52
|
+
var f = arguments, m = this;
|
|
53
53
|
return forEach_default(e, function(e) {
|
|
54
|
-
|
|
54
|
+
f.length > 1 ? m.setNode(e, d) : m.setNode(e);
|
|
55
55
|
}), this;
|
|
56
56
|
}
|
|
57
|
-
setNode(e,
|
|
58
|
-
return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] =
|
|
57
|
+
setNode(e, d) {
|
|
58
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = d), this) : (this._nodes[e] = arguments.length > 1 ? d : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = GRAPH_NODE, this._children[e] = {}, this._children[GRAPH_NODE][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
|
|
59
59
|
}
|
|
60
60
|
node(e) {
|
|
61
61
|
return this._nodes[e];
|
|
@@ -65,78 +65,78 @@ var DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = c
|
|
|
65
65
|
}
|
|
66
66
|
removeNode(e) {
|
|
67
67
|
if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
|
|
68
|
-
var
|
|
68
|
+
var d = (e) => this.removeEdge(this._edgeObjs[e]);
|
|
69
69
|
delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], forEach_default(this.children(e), (e) => {
|
|
70
70
|
this.setParent(e);
|
|
71
|
-
}), delete this._children[e]), forEach_default(keys_default(this._in[e]),
|
|
71
|
+
}), delete this._children[e]), forEach_default(keys_default(this._in[e]), d), delete this._in[e], delete this._preds[e], forEach_default(keys_default(this._out[e]), d), delete this._out[e], delete this._sucs[e], --this._nodeCount;
|
|
72
72
|
}
|
|
73
73
|
return this;
|
|
74
74
|
}
|
|
75
|
-
setParent(e,
|
|
75
|
+
setParent(e, d) {
|
|
76
76
|
if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
|
|
77
|
-
if (isUndefined_default(
|
|
77
|
+
if (isUndefined_default(d)) d = GRAPH_NODE;
|
|
78
78
|
else {
|
|
79
|
-
|
|
80
|
-
for (var
|
|
81
|
-
this.setNode(
|
|
79
|
+
d += "";
|
|
80
|
+
for (var f = d; !isUndefined_default(f); f = this.parent(f)) if (f === e) throw Error("Setting " + d + " as parent of " + e + " would create a cycle");
|
|
81
|
+
this.setNode(d);
|
|
82
82
|
}
|
|
83
|
-
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] =
|
|
83
|
+
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = d, this._children[d][e] = !0, this;
|
|
84
84
|
}
|
|
85
85
|
_removeFromParentsChildList(e) {
|
|
86
86
|
delete this._children[this._parent[e]][e];
|
|
87
87
|
}
|
|
88
88
|
parent(e) {
|
|
89
89
|
if (this._isCompound) {
|
|
90
|
-
var
|
|
91
|
-
if (
|
|
90
|
+
var d = this._parent[e];
|
|
91
|
+
if (d !== GRAPH_NODE) return d;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
children(e) {
|
|
95
95
|
if (isUndefined_default(e) && (e = GRAPH_NODE), this._isCompound) {
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
96
|
+
var d = this._children[e];
|
|
97
|
+
if (d) return keys_default(d);
|
|
98
98
|
} else if (e === GRAPH_NODE) return this.nodes();
|
|
99
99
|
else if (this.hasNode(e)) return [];
|
|
100
100
|
}
|
|
101
101
|
predecessors(e) {
|
|
102
|
-
var
|
|
103
|
-
if (
|
|
102
|
+
var d = this._preds[e];
|
|
103
|
+
if (d) return keys_default(d);
|
|
104
104
|
}
|
|
105
105
|
successors(e) {
|
|
106
|
-
var
|
|
107
|
-
if (
|
|
106
|
+
var d = this._sucs[e];
|
|
107
|
+
if (d) return keys_default(d);
|
|
108
108
|
}
|
|
109
109
|
neighbors(e) {
|
|
110
|
-
var
|
|
111
|
-
if (
|
|
110
|
+
var d = this.predecessors(e);
|
|
111
|
+
if (d) return union_default(d, this.successors(e));
|
|
112
112
|
}
|
|
113
113
|
isLeaf(e) {
|
|
114
114
|
return (this.isDirected() ? this.successors(e) : this.neighbors(e)).length === 0;
|
|
115
115
|
}
|
|
116
116
|
filterNodes(e) {
|
|
117
|
-
var
|
|
117
|
+
var d = new this.constructor({
|
|
118
118
|
directed: this._isDirected,
|
|
119
119
|
multigraph: this._isMultigraph,
|
|
120
120
|
compound: this._isCompound
|
|
121
121
|
});
|
|
122
|
-
|
|
123
|
-
var
|
|
124
|
-
forEach_default(this._nodes, function(
|
|
125
|
-
e(
|
|
122
|
+
d.setGraph(this.graph());
|
|
123
|
+
var f = this;
|
|
124
|
+
forEach_default(this._nodes, function(f, p) {
|
|
125
|
+
e(p) && d.setNode(p, f);
|
|
126
126
|
}), forEach_default(this._edgeObjs, function(e) {
|
|
127
|
-
|
|
127
|
+
d.hasNode(e.v) && d.hasNode(e.w) && d.setEdge(e, f.edge(e));
|
|
128
128
|
});
|
|
129
129
|
var m = {};
|
|
130
130
|
function h(e) {
|
|
131
|
-
var
|
|
132
|
-
return
|
|
131
|
+
var p = f.parent(e);
|
|
132
|
+
return p === void 0 || d.hasNode(p) ? (m[e] = p, p) : p in m ? m[p] : h(p);
|
|
133
133
|
}
|
|
134
|
-
return this._isCompound && forEach_default(
|
|
135
|
-
|
|
136
|
-
}),
|
|
134
|
+
return this._isCompound && forEach_default(d.nodes(), function(e) {
|
|
135
|
+
d.setParent(e, h(e));
|
|
136
|
+
}), d;
|
|
137
137
|
}
|
|
138
|
-
setDefaultEdgeLabel(
|
|
139
|
-
return isFunction_default(
|
|
138
|
+
setDefaultEdgeLabel(f) {
|
|
139
|
+
return isFunction_default(f) || (f = constant_default(f)), this._defaultEdgeLabelFn = f, this;
|
|
140
140
|
}
|
|
141
141
|
edgeCount() {
|
|
142
142
|
return this._edgeCount;
|
|
@@ -144,85 +144,85 @@ var DEFAULT_EDGE_NAME = "\0", GRAPH_NODE = "\0", EDGE_KEY_DELIM = "", Graph = c
|
|
|
144
144
|
edges() {
|
|
145
145
|
return values_default(this._edgeObjs);
|
|
146
146
|
}
|
|
147
|
-
setPath(e,
|
|
148
|
-
var
|
|
149
|
-
return reduce_default(e, function(e,
|
|
150
|
-
return
|
|
147
|
+
setPath(e, d) {
|
|
148
|
+
var f = this, p = arguments;
|
|
149
|
+
return reduce_default(e, function(e, m) {
|
|
150
|
+
return p.length > 1 ? f.setEdge(e, m, d) : f.setEdge(e, m), m;
|
|
151
151
|
}), this;
|
|
152
152
|
}
|
|
153
153
|
setEdge() {
|
|
154
|
-
var e, f, p, m
|
|
155
|
-
typeof
|
|
156
|
-
var
|
|
157
|
-
if (Object.prototype.hasOwnProperty.call(this._edgeLabels,
|
|
158
|
-
if (!isUndefined_default(
|
|
159
|
-
this.setNode(e), this.setNode(
|
|
160
|
-
var v = edgeArgsToObj(this._isDirected, e,
|
|
161
|
-
return e = v.v,
|
|
162
|
-
}
|
|
163
|
-
edge(e,
|
|
164
|
-
var
|
|
165
|
-
return this._edgeLabels[
|
|
166
|
-
}
|
|
167
|
-
hasEdge(e,
|
|
168
|
-
var
|
|
169
|
-
return Object.prototype.hasOwnProperty.call(this._edgeLabels,
|
|
170
|
-
}
|
|
171
|
-
removeEdge(e,
|
|
172
|
-
var
|
|
173
|
-
return
|
|
174
|
-
}
|
|
175
|
-
inEdges(e,
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
178
|
-
var
|
|
179
|
-
return
|
|
180
|
-
return e.v ===
|
|
181
|
-
}) :
|
|
154
|
+
var e, d, f, p, m = !1, h = arguments[0];
|
|
155
|
+
typeof h == "object" && h && "v" in h ? (e = h.v, d = h.w, f = h.name, arguments.length === 2 && (p = arguments[1], m = !0)) : (e = h, d = arguments[1], f = arguments[3], arguments.length > 2 && (p = arguments[2], m = !0)), e = "" + e, d = "" + d, isUndefined_default(f) || (f = "" + f);
|
|
156
|
+
var g = edgeArgsToId(this._isDirected, e, d, f);
|
|
157
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, g)) return m && (this._edgeLabels[g] = p), this;
|
|
158
|
+
if (!isUndefined_default(f) && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
|
|
159
|
+
this.setNode(e), this.setNode(d), this._edgeLabels[g] = m ? p : this._defaultEdgeLabelFn(e, d, f);
|
|
160
|
+
var v = edgeArgsToObj(this._isDirected, e, d, f);
|
|
161
|
+
return e = v.v, d = v.w, Object.freeze(v), this._edgeObjs[g] = v, incrementOrInitEntry(this._preds[d], e), incrementOrInitEntry(this._sucs[e], d), this._in[d][g] = v, this._out[e][g] = v, this._edgeCount++, this;
|
|
162
|
+
}
|
|
163
|
+
edge(e, d, f) {
|
|
164
|
+
var p = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, d, f);
|
|
165
|
+
return this._edgeLabels[p];
|
|
166
|
+
}
|
|
167
|
+
hasEdge(e, d, f) {
|
|
168
|
+
var p = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, d, f);
|
|
169
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, p);
|
|
170
|
+
}
|
|
171
|
+
removeEdge(e, d, f) {
|
|
172
|
+
var p = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, e, d, f), m = this._edgeObjs[p];
|
|
173
|
+
return m && (e = m.v, d = m.w, delete this._edgeLabels[p], delete this._edgeObjs[p], decrementOrRemoveEntry(this._preds[d], e), decrementOrRemoveEntry(this._sucs[e], d), delete this._in[d][p], delete this._out[e][p], this._edgeCount--), this;
|
|
174
|
+
}
|
|
175
|
+
inEdges(e, d) {
|
|
176
|
+
var f = this._in[e];
|
|
177
|
+
if (f) {
|
|
178
|
+
var p = values_default(f);
|
|
179
|
+
return d ? filter_default(p, function(e) {
|
|
180
|
+
return e.v === d;
|
|
181
|
+
}) : p;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
outEdges(e,
|
|
185
|
-
var
|
|
186
|
-
if (
|
|
187
|
-
var
|
|
188
|
-
return
|
|
189
|
-
return e.w ===
|
|
190
|
-
}) :
|
|
184
|
+
outEdges(e, d) {
|
|
185
|
+
var f = this._out[e];
|
|
186
|
+
if (f) {
|
|
187
|
+
var p = values_default(f);
|
|
188
|
+
return d ? filter_default(p, function(e) {
|
|
189
|
+
return e.w === d;
|
|
190
|
+
}) : p;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
nodeEdges(e,
|
|
194
|
-
var
|
|
195
|
-
if (
|
|
193
|
+
nodeEdges(e, d) {
|
|
194
|
+
var f = this.inEdges(e, d);
|
|
195
|
+
if (f) return f.concat(this.outEdges(e, d));
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
Graph.prototype._nodeCount = 0, Graph.prototype._edgeCount = 0;
|
|
199
|
-
function incrementOrInitEntry(e,
|
|
200
|
-
e[
|
|
199
|
+
function incrementOrInitEntry(e, d) {
|
|
200
|
+
e[d] ? e[d]++ : e[d] = 1;
|
|
201
201
|
}
|
|
202
|
-
function decrementOrRemoveEntry(e,
|
|
203
|
-
--e[
|
|
202
|
+
function decrementOrRemoveEntry(e, d) {
|
|
203
|
+
--e[d] || delete e[d];
|
|
204
204
|
}
|
|
205
|
-
function edgeArgsToId(e, f, p
|
|
206
|
-
var
|
|
207
|
-
if (!e &&
|
|
208
|
-
var
|
|
209
|
-
|
|
205
|
+
function edgeArgsToId(e, d, f, p) {
|
|
206
|
+
var m = "" + d, h = "" + f;
|
|
207
|
+
if (!e && m > h) {
|
|
208
|
+
var g = m;
|
|
209
|
+
m = h, h = g;
|
|
210
210
|
}
|
|
211
|
-
return
|
|
211
|
+
return m + EDGE_KEY_DELIM + h + EDGE_KEY_DELIM + (isUndefined_default(p) ? DEFAULT_EDGE_NAME : p);
|
|
212
212
|
}
|
|
213
|
-
function edgeArgsToObj(e, f, p
|
|
214
|
-
var
|
|
215
|
-
if (!e &&
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
var
|
|
220
|
-
v:
|
|
221
|
-
w:
|
|
213
|
+
function edgeArgsToObj(e, d, f, p) {
|
|
214
|
+
var m = "" + d, h = "" + f;
|
|
215
|
+
if (!e && m > h) {
|
|
216
|
+
var g = m;
|
|
217
|
+
m = h, h = g;
|
|
218
|
+
}
|
|
219
|
+
var _ = {
|
|
220
|
+
v: m,
|
|
221
|
+
w: h
|
|
222
222
|
};
|
|
223
|
-
return
|
|
223
|
+
return p && (_.name = p), _;
|
|
224
224
|
}
|
|
225
|
-
function edgeObjToId(e,
|
|
226
|
-
return edgeArgsToId(e,
|
|
225
|
+
function edgeObjToId(e, d) {
|
|
226
|
+
return edgeArgsToId(e, d.v, d.w, d.name);
|
|
227
227
|
}
|
|
228
228
|
export { Graph };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import map_default from "../../../lodash-es/map.js";
|
|
2
1
|
import clone_default from "../../../lodash-es/clone.js";
|
|
2
|
+
import map_default from "../../../lodash-es/map.js";
|
|
3
3
|
import isUndefined_default from "../../../lodash-es/isUndefined.js";
|
|
4
4
|
import "./graph.js";
|
|
5
|
-
function write(
|
|
5
|
+
function write(n) {
|
|
6
6
|
var r = {
|
|
7
7
|
options: {
|
|
8
|
-
directed:
|
|
9
|
-
multigraph:
|
|
10
|
-
compound:
|
|
8
|
+
directed: n.isDirected(),
|
|
9
|
+
multigraph: n.isMultigraph(),
|
|
10
|
+
compound: n.isCompound()
|
|
11
11
|
},
|
|
12
|
-
nodes: writeNodes(
|
|
13
|
-
edges: writeEdges(
|
|
12
|
+
nodes: writeNodes(n),
|
|
13
|
+
edges: writeEdges(n)
|
|
14
14
|
};
|
|
15
|
-
return isUndefined_default(
|
|
15
|
+
return isUndefined_default(n.graph()) || (r.value = clone_default(n.graph())), r;
|
|
16
16
|
}
|
|
17
|
-
function writeNodes(
|
|
18
|
-
return map_default(
|
|
19
|
-
var r =
|
|
17
|
+
function writeNodes(e) {
|
|
18
|
+
return map_default(e.nodes(), function(n) {
|
|
19
|
+
var r = e.node(n), i = e.parent(n), a = { v: n };
|
|
20
20
|
return isUndefined_default(r) || (a.value = r), isUndefined_default(i) || (a.parent = i), a;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function writeEdges(
|
|
24
|
-
return map_default(
|
|
25
|
-
var r =
|
|
26
|
-
v:
|
|
27
|
-
w:
|
|
23
|
+
function writeEdges(e) {
|
|
24
|
+
return map_default(e.edges(), function(n) {
|
|
25
|
+
var r = e.edge(n), i = {
|
|
26
|
+
v: n.v,
|
|
27
|
+
w: n.w
|
|
28
28
|
};
|
|
29
|
-
return isUndefined_default(
|
|
29
|
+
return isUndefined_default(n.name) || (i.name = n.name), isUndefined_default(r) || (i.value = r), i;
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
export { write };
|