@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,570 +0,0 @@
|
|
|
1
|
-
import { ASSERT_EXISTS, ASSERT_NEVER_REACH_HERE, addFlag, cc, insertToSet, isCharacter } from "./utils.js";
|
|
2
|
-
import { digitsCharCodes, whitespaceCodes, wordCharCodes } from "./character-classes.js";
|
|
3
|
-
var hexDigitPattern = /[0-9a-fA-F]/, decimalPattern = /[0-9]/, decimalPatternNoZero = /[1-9]/, RegExpParser = class {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.idx = 0, this.input = "", this.groupIdx = 0;
|
|
6
|
-
}
|
|
7
|
-
saveState() {
|
|
8
|
-
return {
|
|
9
|
-
idx: this.idx,
|
|
10
|
-
input: this.input,
|
|
11
|
-
groupIdx: this.groupIdx
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
restoreState(e) {
|
|
15
|
-
this.idx = e.idx, this.input = e.input, this.groupIdx = e.groupIdx;
|
|
16
|
-
}
|
|
17
|
-
pattern(e) {
|
|
18
|
-
this.idx = 0, this.input = e, this.groupIdx = 0, this.consumeChar("/");
|
|
19
|
-
let u = this.disjunction();
|
|
20
|
-
this.consumeChar("/");
|
|
21
|
-
let f = {
|
|
22
|
-
type: "Flags",
|
|
23
|
-
loc: {
|
|
24
|
-
begin: this.idx,
|
|
25
|
-
end: e.length
|
|
26
|
-
},
|
|
27
|
-
global: !1,
|
|
28
|
-
ignoreCase: !1,
|
|
29
|
-
multiLine: !1,
|
|
30
|
-
unicode: !1,
|
|
31
|
-
sticky: !1
|
|
32
|
-
};
|
|
33
|
-
for (; this.isRegExpFlag();) switch (this.popChar()) {
|
|
34
|
-
case "g":
|
|
35
|
-
addFlag(f, "global");
|
|
36
|
-
break;
|
|
37
|
-
case "i":
|
|
38
|
-
addFlag(f, "ignoreCase");
|
|
39
|
-
break;
|
|
40
|
-
case "m":
|
|
41
|
-
addFlag(f, "multiLine");
|
|
42
|
-
break;
|
|
43
|
-
case "u":
|
|
44
|
-
addFlag(f, "unicode");
|
|
45
|
-
break;
|
|
46
|
-
case "y":
|
|
47
|
-
addFlag(f, "sticky");
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
if (this.idx !== this.input.length) throw Error("Redundant input: " + this.input.substring(this.idx));
|
|
51
|
-
return {
|
|
52
|
-
type: "Pattern",
|
|
53
|
-
flags: f,
|
|
54
|
-
value: u,
|
|
55
|
-
loc: this.loc(0)
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
disjunction() {
|
|
59
|
-
let e = [], u = this.idx;
|
|
60
|
-
for (e.push(this.alternative()); this.peekChar() === "|";) this.consumeChar("|"), e.push(this.alternative());
|
|
61
|
-
return {
|
|
62
|
-
type: "Disjunction",
|
|
63
|
-
value: e,
|
|
64
|
-
loc: this.loc(u)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
alternative() {
|
|
68
|
-
let e = [], u = this.idx;
|
|
69
|
-
for (; this.isTerm();) e.push(this.term());
|
|
70
|
-
return {
|
|
71
|
-
type: "Alternative",
|
|
72
|
-
value: e,
|
|
73
|
-
loc: this.loc(u)
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
term() {
|
|
77
|
-
return this.isAssertion() ? this.assertion() : this.atom();
|
|
78
|
-
}
|
|
79
|
-
assertion() {
|
|
80
|
-
let d = this.idx;
|
|
81
|
-
switch (this.popChar()) {
|
|
82
|
-
case "^": return {
|
|
83
|
-
type: "StartAnchor",
|
|
84
|
-
loc: this.loc(d)
|
|
85
|
-
};
|
|
86
|
-
case "$": return {
|
|
87
|
-
type: "EndAnchor",
|
|
88
|
-
loc: this.loc(d)
|
|
89
|
-
};
|
|
90
|
-
case "\\":
|
|
91
|
-
switch (this.popChar()) {
|
|
92
|
-
case "b": return {
|
|
93
|
-
type: "WordBoundary",
|
|
94
|
-
loc: this.loc(d)
|
|
95
|
-
};
|
|
96
|
-
case "B": return {
|
|
97
|
-
type: "NonWordBoundary",
|
|
98
|
-
loc: this.loc(d)
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
/* c8 ignore next */
|
|
102
|
-
throw Error("Invalid Assertion Escape");
|
|
103
|
-
case "(":
|
|
104
|
-
this.consumeChar("?");
|
|
105
|
-
let u;
|
|
106
|
-
switch (this.popChar()) {
|
|
107
|
-
case "=":
|
|
108
|
-
u = "Lookahead";
|
|
109
|
-
break;
|
|
110
|
-
case "!":
|
|
111
|
-
u = "NegativeLookahead";
|
|
112
|
-
break;
|
|
113
|
-
case "<":
|
|
114
|
-
switch (this.popChar()) {
|
|
115
|
-
case "=":
|
|
116
|
-
u = "Lookbehind";
|
|
117
|
-
break;
|
|
118
|
-
case "!": u = "NegativeLookbehind";
|
|
119
|
-
}
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
ASSERT_EXISTS(u);
|
|
123
|
-
let f = this.disjunction();
|
|
124
|
-
return this.consumeChar(")"), {
|
|
125
|
-
type: u,
|
|
126
|
-
value: f,
|
|
127
|
-
loc: this.loc(d)
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
// istanbul ignore next
|
|
131
|
-
return ASSERT_NEVER_REACH_HERE();
|
|
132
|
-
}
|
|
133
|
-
quantifier(u = !1) {
|
|
134
|
-
let d, f = this.idx;
|
|
135
|
-
switch (this.popChar()) {
|
|
136
|
-
case "*":
|
|
137
|
-
d = {
|
|
138
|
-
atLeast: 0,
|
|
139
|
-
atMost: Infinity
|
|
140
|
-
};
|
|
141
|
-
break;
|
|
142
|
-
case "+":
|
|
143
|
-
d = {
|
|
144
|
-
atLeast: 1,
|
|
145
|
-
atMost: Infinity
|
|
146
|
-
};
|
|
147
|
-
break;
|
|
148
|
-
case "?":
|
|
149
|
-
d = {
|
|
150
|
-
atLeast: 0,
|
|
151
|
-
atMost: 1
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
154
|
-
case "{":
|
|
155
|
-
let f = this.integerIncludingZero();
|
|
156
|
-
switch (this.popChar()) {
|
|
157
|
-
case "}":
|
|
158
|
-
d = {
|
|
159
|
-
atLeast: f,
|
|
160
|
-
atMost: f
|
|
161
|
-
};
|
|
162
|
-
break;
|
|
163
|
-
case ",":
|
|
164
|
-
let e;
|
|
165
|
-
this.isDigit() ? (e = this.integerIncludingZero(), d = {
|
|
166
|
-
atLeast: f,
|
|
167
|
-
atMost: e
|
|
168
|
-
}) : d = {
|
|
169
|
-
atLeast: f,
|
|
170
|
-
atMost: Infinity
|
|
171
|
-
}, this.consumeChar("}");
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
if (u === !0 && d === void 0) return;
|
|
175
|
-
ASSERT_EXISTS(d);
|
|
176
|
-
break;
|
|
177
|
-
}
|
|
178
|
-
if (!(u === !0 && d === void 0) && ASSERT_EXISTS(d)) return this.peekChar(0) === "?" ? (this.consumeChar("?"), d.greedy = !1) : d.greedy = !0, d.type = "Quantifier", d.loc = this.loc(f), d;
|
|
179
|
-
}
|
|
180
|
-
atom() {
|
|
181
|
-
let d, f = this.idx;
|
|
182
|
-
switch (this.peekChar()) {
|
|
183
|
-
case ".":
|
|
184
|
-
d = this.dotAll();
|
|
185
|
-
break;
|
|
186
|
-
case "\\":
|
|
187
|
-
d = this.atomEscape();
|
|
188
|
-
break;
|
|
189
|
-
case "[":
|
|
190
|
-
d = this.characterClass();
|
|
191
|
-
break;
|
|
192
|
-
case "(":
|
|
193
|
-
d = this.group();
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
// istanbul ignore next
|
|
197
|
-
return d === void 0 && this.isPatternCharacter() && (d = this.patternCharacter()), ASSERT_EXISTS(d) ? (d.loc = this.loc(f), this.isQuantifier() && (d.quantifier = this.quantifier()), d) : ASSERT_NEVER_REACH_HERE();
|
|
198
|
-
}
|
|
199
|
-
dotAll() {
|
|
200
|
-
return this.consumeChar("."), {
|
|
201
|
-
type: "Set",
|
|
202
|
-
complement: !0,
|
|
203
|
-
value: [
|
|
204
|
-
cc("\n"),
|
|
205
|
-
cc("\r"),
|
|
206
|
-
cc("\u2028"),
|
|
207
|
-
cc("\u2029")
|
|
208
|
-
]
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
atomEscape() {
|
|
212
|
-
switch (this.consumeChar("\\"), this.peekChar()) {
|
|
213
|
-
case "1":
|
|
214
|
-
case "2":
|
|
215
|
-
case "3":
|
|
216
|
-
case "4":
|
|
217
|
-
case "5":
|
|
218
|
-
case "6":
|
|
219
|
-
case "7":
|
|
220
|
-
case "8":
|
|
221
|
-
case "9": return this.decimalEscapeAtom();
|
|
222
|
-
case "d":
|
|
223
|
-
case "D":
|
|
224
|
-
case "s":
|
|
225
|
-
case "S":
|
|
226
|
-
case "w":
|
|
227
|
-
case "W": return this.characterClassEscape();
|
|
228
|
-
case "f":
|
|
229
|
-
case "n":
|
|
230
|
-
case "r":
|
|
231
|
-
case "t":
|
|
232
|
-
case "v": return this.controlEscapeAtom();
|
|
233
|
-
case "c": return this.controlLetterEscapeAtom();
|
|
234
|
-
case "0": return this.nulCharacterAtom();
|
|
235
|
-
case "x": return this.hexEscapeSequenceAtom();
|
|
236
|
-
case "u": return this.regExpUnicodeEscapeSequenceAtom();
|
|
237
|
-
default: return this.identityEscapeAtom();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
decimalEscapeAtom() {
|
|
241
|
-
return {
|
|
242
|
-
type: "GroupBackReference",
|
|
243
|
-
value: this.positiveInteger()
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
characterClassEscape() {
|
|
247
|
-
let d, f = !1;
|
|
248
|
-
switch (this.popChar()) {
|
|
249
|
-
case "d":
|
|
250
|
-
d = digitsCharCodes;
|
|
251
|
-
break;
|
|
252
|
-
case "D":
|
|
253
|
-
d = digitsCharCodes, f = !0;
|
|
254
|
-
break;
|
|
255
|
-
case "s":
|
|
256
|
-
d = whitespaceCodes;
|
|
257
|
-
break;
|
|
258
|
-
case "S":
|
|
259
|
-
d = whitespaceCodes, f = !0;
|
|
260
|
-
break;
|
|
261
|
-
case "w":
|
|
262
|
-
d = wordCharCodes;
|
|
263
|
-
break;
|
|
264
|
-
case "W":
|
|
265
|
-
d = wordCharCodes, f = !0;
|
|
266
|
-
break;
|
|
267
|
-
}
|
|
268
|
-
// istanbul ignore next
|
|
269
|
-
return ASSERT_EXISTS(d) ? {
|
|
270
|
-
type: "Set",
|
|
271
|
-
value: d,
|
|
272
|
-
complement: f
|
|
273
|
-
} : ASSERT_NEVER_REACH_HERE();
|
|
274
|
-
}
|
|
275
|
-
controlEscapeAtom() {
|
|
276
|
-
let d;
|
|
277
|
-
switch (this.popChar()) {
|
|
278
|
-
case "f":
|
|
279
|
-
d = cc("\f");
|
|
280
|
-
break;
|
|
281
|
-
case "n":
|
|
282
|
-
d = cc("\n");
|
|
283
|
-
break;
|
|
284
|
-
case "r":
|
|
285
|
-
d = cc("\r");
|
|
286
|
-
break;
|
|
287
|
-
case "t":
|
|
288
|
-
d = cc(" ");
|
|
289
|
-
break;
|
|
290
|
-
case "v":
|
|
291
|
-
d = cc("\v");
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
// istanbul ignore next
|
|
295
|
-
return ASSERT_EXISTS(d) ? {
|
|
296
|
-
type: "Character",
|
|
297
|
-
value: d
|
|
298
|
-
} : ASSERT_NEVER_REACH_HERE();
|
|
299
|
-
}
|
|
300
|
-
controlLetterEscapeAtom() {
|
|
301
|
-
this.consumeChar("c");
|
|
302
|
-
let e = this.popChar();
|
|
303
|
-
if (/[a-zA-Z]/.test(e) === !1) throw Error("Invalid ");
|
|
304
|
-
return {
|
|
305
|
-
type: "Character",
|
|
306
|
-
value: e.toUpperCase().charCodeAt(0) - 64
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
nulCharacterAtom() {
|
|
310
|
-
return this.consumeChar("0"), {
|
|
311
|
-
type: "Character",
|
|
312
|
-
value: cc("\0")
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
hexEscapeSequenceAtom() {
|
|
316
|
-
return this.consumeChar("x"), this.parseHexDigits(2);
|
|
317
|
-
}
|
|
318
|
-
regExpUnicodeEscapeSequenceAtom() {
|
|
319
|
-
return this.consumeChar("u"), this.parseHexDigits(4);
|
|
320
|
-
}
|
|
321
|
-
identityEscapeAtom() {
|
|
322
|
-
return {
|
|
323
|
-
type: "Character",
|
|
324
|
-
value: cc(this.popChar())
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
classPatternCharacterAtom() {
|
|
328
|
-
switch (this.peekChar()) {
|
|
329
|
-
case "\n":
|
|
330
|
-
case "\r":
|
|
331
|
-
case "\u2028":
|
|
332
|
-
case "\u2029":
|
|
333
|
-
case "\\":
|
|
334
|
-
case "]": throw Error("TBD");
|
|
335
|
-
default: return {
|
|
336
|
-
type: "Character",
|
|
337
|
-
value: cc(this.popChar())
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
characterClass() {
|
|
342
|
-
let e = [], u = !1;
|
|
343
|
-
for (this.consumeChar("["), this.peekChar(0) === "^" && (this.consumeChar("^"), u = !0); this.isClassAtom();) {
|
|
344
|
-
let u = this.classAtom();
|
|
345
|
-
if (u.type, isCharacter(u) && this.isRangeDash()) {
|
|
346
|
-
this.consumeChar("-");
|
|
347
|
-
let d = this.classAtom();
|
|
348
|
-
if (d.type, isCharacter(d)) {
|
|
349
|
-
if (d.value < u.value) throw Error("Range out of order in character class");
|
|
350
|
-
e.push({
|
|
351
|
-
from: u.value,
|
|
352
|
-
to: d.value
|
|
353
|
-
});
|
|
354
|
-
} else insertToSet(u.value, e), e.push(cc("-")), insertToSet(d.value, e);
|
|
355
|
-
} else insertToSet(u.value, e);
|
|
356
|
-
}
|
|
357
|
-
return this.consumeChar("]"), {
|
|
358
|
-
type: "Set",
|
|
359
|
-
complement: u,
|
|
360
|
-
value: e
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
classAtom() {
|
|
364
|
-
switch (this.peekChar()) {
|
|
365
|
-
case "]":
|
|
366
|
-
case "\n":
|
|
367
|
-
case "\r":
|
|
368
|
-
case "\u2028":
|
|
369
|
-
case "\u2029": throw Error("TBD");
|
|
370
|
-
case "\\": return this.classEscape();
|
|
371
|
-
default: return this.classPatternCharacterAtom();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
classEscape() {
|
|
375
|
-
switch (this.consumeChar("\\"), this.peekChar()) {
|
|
376
|
-
case "b": return this.consumeChar("b"), {
|
|
377
|
-
type: "Character",
|
|
378
|
-
value: cc("\b")
|
|
379
|
-
};
|
|
380
|
-
case "d":
|
|
381
|
-
case "D":
|
|
382
|
-
case "s":
|
|
383
|
-
case "S":
|
|
384
|
-
case "w":
|
|
385
|
-
case "W": return this.characterClassEscape();
|
|
386
|
-
case "f":
|
|
387
|
-
case "n":
|
|
388
|
-
case "r":
|
|
389
|
-
case "t":
|
|
390
|
-
case "v": return this.controlEscapeAtom();
|
|
391
|
-
case "c": return this.controlLetterEscapeAtom();
|
|
392
|
-
case "0": return this.nulCharacterAtom();
|
|
393
|
-
case "x": return this.hexEscapeSequenceAtom();
|
|
394
|
-
case "u": return this.regExpUnicodeEscapeSequenceAtom();
|
|
395
|
-
default: return this.identityEscapeAtom();
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
group() {
|
|
399
|
-
let e = !0;
|
|
400
|
-
switch (this.consumeChar("("), this.peekChar(0)) {
|
|
401
|
-
case "?":
|
|
402
|
-
this.consumeChar("?"), this.consumeChar(":"), e = !1;
|
|
403
|
-
break;
|
|
404
|
-
default:
|
|
405
|
-
this.groupIdx++;
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
let u = this.disjunction();
|
|
409
|
-
this.consumeChar(")");
|
|
410
|
-
let d = {
|
|
411
|
-
type: "Group",
|
|
412
|
-
capturing: e,
|
|
413
|
-
value: u
|
|
414
|
-
};
|
|
415
|
-
return e && (d.idx = this.groupIdx), d;
|
|
416
|
-
}
|
|
417
|
-
positiveInteger() {
|
|
418
|
-
let e = this.popChar();
|
|
419
|
-
// istanbul ignore next - can't ever get here due to previous lookahead checks
|
|
420
|
-
if (decimalPatternNoZero.test(e) === !1) throw Error("Expecting a positive integer");
|
|
421
|
-
for (; decimalPattern.test(this.peekChar(0));) e += this.popChar();
|
|
422
|
-
return parseInt(e, 10);
|
|
423
|
-
}
|
|
424
|
-
integerIncludingZero() {
|
|
425
|
-
let e = this.popChar();
|
|
426
|
-
if (decimalPattern.test(e) === !1) throw Error("Expecting an integer");
|
|
427
|
-
for (; decimalPattern.test(this.peekChar(0));) e += this.popChar();
|
|
428
|
-
return parseInt(e, 10);
|
|
429
|
-
}
|
|
430
|
-
patternCharacter() {
|
|
431
|
-
let e = this.popChar();
|
|
432
|
-
switch (e) {
|
|
433
|
-
case "\n":
|
|
434
|
-
case "\r":
|
|
435
|
-
case "\u2028":
|
|
436
|
-
case "\u2029":
|
|
437
|
-
case "^":
|
|
438
|
-
case "$":
|
|
439
|
-
case "\\":
|
|
440
|
-
case ".":
|
|
441
|
-
case "*":
|
|
442
|
-
case "+":
|
|
443
|
-
case "?":
|
|
444
|
-
case "(":
|
|
445
|
-
case ")":
|
|
446
|
-
case "[":
|
|
447
|
-
case "|":
|
|
448
|
-
// istanbul ignore next
|
|
449
|
-
throw Error("TBD");
|
|
450
|
-
default: return {
|
|
451
|
-
type: "Character",
|
|
452
|
-
value: cc(e)
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
isRegExpFlag() {
|
|
457
|
-
switch (this.peekChar(0)) {
|
|
458
|
-
case "g":
|
|
459
|
-
case "i":
|
|
460
|
-
case "m":
|
|
461
|
-
case "u":
|
|
462
|
-
case "y": return !0;
|
|
463
|
-
default: return !1;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
isRangeDash() {
|
|
467
|
-
return this.peekChar() === "-" && this.isClassAtom(1);
|
|
468
|
-
}
|
|
469
|
-
isDigit() {
|
|
470
|
-
return decimalPattern.test(this.peekChar(0));
|
|
471
|
-
}
|
|
472
|
-
isClassAtom(e = 0) {
|
|
473
|
-
switch (this.peekChar(e)) {
|
|
474
|
-
case "]":
|
|
475
|
-
case "\n":
|
|
476
|
-
case "\r":
|
|
477
|
-
case "\u2028":
|
|
478
|
-
case "\u2029": return !1;
|
|
479
|
-
default: return !0;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
isTerm() {
|
|
483
|
-
return this.isAtom() || this.isAssertion();
|
|
484
|
-
}
|
|
485
|
-
isAtom() {
|
|
486
|
-
if (this.isPatternCharacter()) return !0;
|
|
487
|
-
switch (this.peekChar(0)) {
|
|
488
|
-
case ".":
|
|
489
|
-
case "\\":
|
|
490
|
-
case "[":
|
|
491
|
-
case "(": return !0;
|
|
492
|
-
default: return !1;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
isAssertion() {
|
|
496
|
-
switch (this.peekChar(0)) {
|
|
497
|
-
case "^":
|
|
498
|
-
case "$": return !0;
|
|
499
|
-
case "\\": switch (this.peekChar(1)) {
|
|
500
|
-
case "b":
|
|
501
|
-
case "B": return !0;
|
|
502
|
-
default: return !1;
|
|
503
|
-
}
|
|
504
|
-
case "(": return this.peekChar(1) === "?" && (this.peekChar(2) === "=" || this.peekChar(2) === "!" || this.peekChar(2) === "<" && (this.peekChar(3) === "=" || this.peekChar(3) === "!"));
|
|
505
|
-
default: return !1;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
isQuantifier() {
|
|
509
|
-
let e = this.saveState();
|
|
510
|
-
try {
|
|
511
|
-
return this.quantifier(!0) !== void 0;
|
|
512
|
-
} catch {
|
|
513
|
-
return !1;
|
|
514
|
-
} finally {
|
|
515
|
-
this.restoreState(e);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
isPatternCharacter() {
|
|
519
|
-
switch (this.peekChar()) {
|
|
520
|
-
case "^":
|
|
521
|
-
case "$":
|
|
522
|
-
case "\\":
|
|
523
|
-
case ".":
|
|
524
|
-
case "*":
|
|
525
|
-
case "+":
|
|
526
|
-
case "?":
|
|
527
|
-
case "(":
|
|
528
|
-
case ")":
|
|
529
|
-
case "[":
|
|
530
|
-
case "|":
|
|
531
|
-
case "/":
|
|
532
|
-
case "\n":
|
|
533
|
-
case "\r":
|
|
534
|
-
case "\u2028":
|
|
535
|
-
case "\u2029": return !1;
|
|
536
|
-
default: return !0;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
parseHexDigits(e) {
|
|
540
|
-
let u = "";
|
|
541
|
-
for (let d = 0; d < e; d++) {
|
|
542
|
-
let e = this.popChar();
|
|
543
|
-
if (hexDigitPattern.test(e) === !1) throw Error("Expecting a HexDecimal digits");
|
|
544
|
-
u += e;
|
|
545
|
-
}
|
|
546
|
-
return {
|
|
547
|
-
type: "Character",
|
|
548
|
-
value: parseInt(u, 16)
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
peekChar(e = 0) {
|
|
552
|
-
return this.input[this.idx + e];
|
|
553
|
-
}
|
|
554
|
-
popChar() {
|
|
555
|
-
let e = this.peekChar(0);
|
|
556
|
-
return this.consumeChar(void 0), e;
|
|
557
|
-
}
|
|
558
|
-
consumeChar(e) {
|
|
559
|
-
if (e !== void 0 && this.input[this.idx] !== e) throw Error("Expected: '" + e + "' but found: '" + this.input[this.idx] + "' at offset: " + this.idx);
|
|
560
|
-
if (this.idx >= this.input.length) throw Error("Unexpected end of input");
|
|
561
|
-
this.idx++;
|
|
562
|
-
}
|
|
563
|
-
loc(e) {
|
|
564
|
-
return {
|
|
565
|
-
begin: e,
|
|
566
|
-
end: this.idx
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
export { RegExpParser };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
function cc(e) {
|
|
2
|
-
return e.charCodeAt(0);
|
|
3
|
-
}
|
|
4
|
-
function insertToSet(e, a) {
|
|
5
|
-
Array.isArray(e) ? e.forEach(function(e) {
|
|
6
|
-
a.push(e);
|
|
7
|
-
}) : a.push(e);
|
|
8
|
-
}
|
|
9
|
-
function addFlag(e, a) {
|
|
10
|
-
if (e[a] === !0) throw "duplicate flag " + a;
|
|
11
|
-
e[a], e[a] = !0;
|
|
12
|
-
}
|
|
13
|
-
function ASSERT_EXISTS(e) {
|
|
14
|
-
// istanbul ignore next
|
|
15
|
-
if (e === void 0) throw Error("Internal Error - Should never get here!");
|
|
16
|
-
return !0;
|
|
17
|
-
}
|
|
18
|
-
// istanbul ignore next
|
|
19
|
-
function ASSERT_NEVER_REACH_HERE() {
|
|
20
|
-
throw Error("Internal Error - Should never get here!");
|
|
21
|
-
}
|
|
22
|
-
function isCharacter(e) {
|
|
23
|
-
return e.type === "Character";
|
|
24
|
-
}
|
|
25
|
-
export { ASSERT_EXISTS, ASSERT_NEVER_REACH_HERE, addFlag, cc, insertToSet, isCharacter };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
function PRINT_ERROR(e) {
|
|
2
|
-
/* istanbul ignore else - can't override global.console in node.js */
|
|
3
|
-
console && console.error && console.error(`Error: ${e}`);
|
|
4
|
-
}
|
|
5
|
-
function PRINT_WARNING(e) {
|
|
6
|
-
/* istanbul ignore else - can't override global.console in node.js*/
|
|
7
|
-
console && console.warn && console.warn(`Warning: ${e}`);
|
|
8
|
-
}
|
|
9
|
-
export { PRINT_ERROR, PRINT_WARNING };
|
package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createDefaultCoreModule, createDefaultSharedCoreModule } from "../../../../../langium/lib/default-module.js";
|
|
2
|
-
import { inject } from "../../../../../langium/lib/dependency-injection.js";
|
|
3
|
-
import { EmptyFileSystem } from "../../../../../langium/lib/workspace/file-system-provider.js";
|
|
4
|
-
import "../../../../../langium/lib/index.js";
|
|
5
|
-
import { AbstractMermaidTokenBuilder, AbstractMermaidValueConverter, MermaidGeneratedSharedModule, PieGrammarGeneratedModule, __name } from "./chunk-K5T4RW27.js";
|
|
6
|
-
var PieTokenBuilder = class extends AbstractMermaidTokenBuilder {
|
|
7
|
-
static #e = __name(this, "PieTokenBuilder");
|
|
8
|
-
constructor() {
|
|
9
|
-
super(["pie", "showData"]);
|
|
10
|
-
}
|
|
11
|
-
}, PieValueConverter = class extends AbstractMermaidValueConverter {
|
|
12
|
-
static #e = __name(this, "PieValueConverter");
|
|
13
|
-
runCustomConverter(e, c, l) {
|
|
14
|
-
if (e.name === "PIE_SECTION_LABEL") return c.replace(/"/g, "").trim();
|
|
15
|
-
}
|
|
16
|
-
}, PieModule = { parser: {
|
|
17
|
-
TokenBuilder: /* @__PURE__ */ __name(() => new PieTokenBuilder(), "TokenBuilder"),
|
|
18
|
-
ValueConverter: /* @__PURE__ */ __name(() => new PieValueConverter(), "ValueConverter")
|
|
19
|
-
} };
|
|
20
|
-
function createPieServices(u = EmptyFileSystem) {
|
|
21
|
-
let d = inject(createDefaultSharedCoreModule(u), MermaidGeneratedSharedModule), f = inject(createDefaultCoreModule({ shared: d }), PieGrammarGeneratedModule, PieModule);
|
|
22
|
-
return d.ServiceRegistry.register(f), {
|
|
23
|
-
shared: d,
|
|
24
|
-
Pie: f
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
__name(createPieServices, "createPieServices");
|
|
28
|
-
export { PieModule, createPieServices };
|
package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createDefaultCoreModule, createDefaultSharedCoreModule } from "../../../../../langium/lib/default-module.js";
|
|
2
|
-
import { inject } from "../../../../../langium/lib/dependency-injection.js";
|
|
3
|
-
import { EmptyFileSystem } from "../../../../../langium/lib/workspace/file-system-provider.js";
|
|
4
|
-
import "../../../../../langium/lib/index.js";
|
|
5
|
-
import { AbstractMermaidValueConverter, MermaidGeneratedSharedModule, WardleyGrammarGeneratedModule, __name } from "./chunk-K5T4RW27.js";
|
|
6
|
-
var WardleyValueConverter = class extends AbstractMermaidValueConverter {
|
|
7
|
-
static #e = __name(this, "WardleyValueConverter");
|
|
8
|
-
runCustomConverter(e, o, s) {
|
|
9
|
-
switch (e.name.toUpperCase()) {
|
|
10
|
-
case "LINK_LABEL": return o.substring(1).trim();
|
|
11
|
-
default: return;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}, WardleyModule = { parser: { ValueConverter: /* @__PURE__ */ __name(() => new WardleyValueConverter(), "ValueConverter") } };
|
|
15
|
-
function createWardleyServices(c = EmptyFileSystem) {
|
|
16
|
-
let l = inject(createDefaultSharedCoreModule(c), MermaidGeneratedSharedModule), u = inject(createDefaultCoreModule({ shared: l }), WardleyGrammarGeneratedModule, WardleyModule);
|
|
17
|
-
return l.ServiceRegistry.register(u), {
|
|
18
|
-
shared: l,
|
|
19
|
-
Wardley: u
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
__name(createWardleyServices, "createWardleyServices");
|
|
23
|
-
export { WardleyModule, createWardleyServices };
|