@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
|
@@ -2,53 +2,45 @@ import { useStudio } from "../providers/StudioProvider.js";
|
|
|
2
2
|
import { useFilterWorkflows } from "../hooks/useWorkflows.js";
|
|
3
3
|
import { Button } from "../components/ui/button.js";
|
|
4
4
|
import { NewRunDialog } from "../features/workbench/components/NewRunDialog.js";
|
|
5
|
+
import { RecentRunItem } from "../features/workbench/components/RecentRunItem.js";
|
|
5
6
|
import "../features/workbench/index.js";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { useCallback, useState } from "react";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { ChevronDown, Loader2, Play } from "lucide-react";
|
|
10
|
-
import { formatDistanceToNow } from "date-fns";
|
|
11
|
-
var STATUS_DOT_COLORS = {
|
|
12
|
-
completed: "bg-green-500",
|
|
13
|
-
running: "bg-blue-500",
|
|
14
|
-
failed: "bg-red-500",
|
|
15
|
-
paused: "bg-yellow-500",
|
|
16
|
-
canceled: "bg-orange-500",
|
|
17
|
-
pending: "bg-muted-foreground"
|
|
18
|
-
};
|
|
19
11
|
function StudioLandingPage() {
|
|
20
|
-
let
|
|
21
|
-
|
|
12
|
+
let m = c(28), { router: h } = useStudio(), [g, _] = useState(!1), [v, y] = useState(3), b;
|
|
13
|
+
m[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { parentId: null }, m[0] = b) : b = m[0];
|
|
22
14
|
let x = useFilterWorkflows(void 0, b, "createdAt", "DESC", 0, v), S;
|
|
23
|
-
|
|
15
|
+
m[1] === x.data?.data ? S = m[2] : (S = x.data?.data ?? [], m[1] = x.data?.data, m[2] = S);
|
|
24
16
|
let C = S, w = x.data?.total ?? 0, T = C.length < w, E;
|
|
25
|
-
|
|
17
|
+
m[3] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
26
18
|
parentId: null,
|
|
27
19
|
status: "paused"
|
|
28
|
-
},
|
|
20
|
+
}, m[3] = E) : E = m[3];
|
|
29
21
|
let D = useFilterWorkflows(void 0, E, "createdAt", "DESC", 0, 5), O;
|
|
30
|
-
|
|
22
|
+
m[4] === D.data?.data ? O = m[5] : (O = D.data?.data ?? [], m[4] = D.data?.data, m[5] = O);
|
|
31
23
|
let k = O, A;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
24
|
+
m[6] === h ? A = m[7] : (A = (e) => {
|
|
25
|
+
_(!1), h.navigateToWorkflow(e);
|
|
26
|
+
}, m[6] = h, m[7] = A);
|
|
35
27
|
let j = A, M;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
28
|
+
m[8] === h ? M = m[9] : (M = (e) => {
|
|
29
|
+
h.navigateToWorkflow(e);
|
|
30
|
+
}, m[8] = h, m[9] = M);
|
|
39
31
|
let N = M, P;
|
|
40
|
-
|
|
32
|
+
m[10] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ jsx("div", {
|
|
41
33
|
className: "flex justify-center",
|
|
42
34
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
43
35
|
variant: "secondary",
|
|
44
36
|
size: "sm",
|
|
45
37
|
className: "gap-1.5",
|
|
46
|
-
onClick: () =>
|
|
38
|
+
onClick: () => _(!0),
|
|
47
39
|
children: [/* @__PURE__ */ jsx(Play, { className: "h-3.5 w-3.5" }), "New Run"]
|
|
48
40
|
})
|
|
49
|
-
}),
|
|
41
|
+
}), m[10] = P) : P = m[10];
|
|
50
42
|
let F;
|
|
51
|
-
|
|
43
|
+
m[11] !== N || m[12] !== k ? (F = k.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
52
44
|
className: "text-muted-foreground mb-2 text-xs font-medium",
|
|
53
45
|
children: "Needs Attention"
|
|
54
46
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -57,9 +49,9 @@ function StudioLandingPage() {
|
|
|
57
49
|
workflow: e,
|
|
58
50
|
onClick: () => N(e.id)
|
|
59
51
|
}, e.id))
|
|
60
|
-
})] }),
|
|
52
|
+
})] }), m[11] = N, m[12] = k, m[13] = F) : F = m[13];
|
|
61
53
|
let I;
|
|
62
|
-
|
|
54
|
+
m[14] !== x.isLoading || m[15] !== N || m[16] !== T || m[17] !== C ? (I = x.isLoading && C.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
63
55
|
className: "flex justify-center py-4",
|
|
64
56
|
children: /* @__PURE__ */ jsx(Loader2, { className: "text-muted-foreground h-4 w-4 animate-spin" })
|
|
65
57
|
}) : C.length > 0 ? /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -82,65 +74,29 @@ function StudioLandingPage() {
|
|
|
82
74
|
onClick: () => y(_temp),
|
|
83
75
|
children: [/* @__PURE__ */ jsx(ChevronDown, { className: "h-3 w-3" }), "Load more"]
|
|
84
76
|
})
|
|
85
|
-
] }) : null,
|
|
77
|
+
] }) : null, m[14] = x.isLoading, m[15] = N, m[16] = T, m[17] = C, m[18] = I) : I = m[18];
|
|
86
78
|
let L;
|
|
87
|
-
|
|
79
|
+
m[19] !== F || m[20] !== I ? (L = /* @__PURE__ */ jsxs("div", {
|
|
88
80
|
className: "w-full max-w-sm space-y-6 px-4",
|
|
89
81
|
children: [
|
|
90
82
|
P,
|
|
91
83
|
F,
|
|
92
84
|
I
|
|
93
85
|
]
|
|
94
|
-
}),
|
|
86
|
+
}), m[19] = F, m[20] = I, m[21] = L) : L = m[21];
|
|
95
87
|
let R;
|
|
96
|
-
|
|
97
|
-
open:
|
|
98
|
-
onOpenChange:
|
|
88
|
+
m[22] !== j || m[23] !== g ? (R = /* @__PURE__ */ jsx(NewRunDialog, {
|
|
89
|
+
open: g,
|
|
90
|
+
onOpenChange: _,
|
|
99
91
|
onSuccess: j
|
|
100
|
-
}),
|
|
92
|
+
}), m[22] = j, m[23] = g, m[24] = R) : R = m[24];
|
|
101
93
|
let z;
|
|
102
|
-
return
|
|
94
|
+
return m[25] !== R || m[26] !== L ? (z = /* @__PURE__ */ jsxs("div", {
|
|
103
95
|
className: "flex h-full flex-col items-center justify-center",
|
|
104
96
|
children: [L, R]
|
|
105
|
-
}),
|
|
97
|
+
}), m[25] = R, m[26] = L, m[27] = z) : z = m[27], z;
|
|
106
98
|
}
|
|
107
99
|
function _temp(e) {
|
|
108
100
|
return e + 5;
|
|
109
101
|
}
|
|
110
|
-
function RecentRunItem(e) {
|
|
111
|
-
let i = c(17), { workflow: a, onClick: o } = e, s = `h-1.5 w-1.5 shrink-0 rounded-full ${STATUS_DOT_COLORS[a.status] ?? "bg-muted-foreground"}`, l;
|
|
112
|
-
i[0] === s ? l = i[1] : (l = /* @__PURE__ */ jsx("span", { className: s }), i[0] = s, i[1] = l);
|
|
113
|
-
let u;
|
|
114
|
-
i[2] !== a.alias || i[3] !== a.run ? (u = /* @__PURE__ */ jsxs("span", {
|
|
115
|
-
className: "truncate text-sm font-medium",
|
|
116
|
-
children: [
|
|
117
|
-
"Run #",
|
|
118
|
-
a.run,
|
|
119
|
-
" · ",
|
|
120
|
-
a.alias
|
|
121
|
-
]
|
|
122
|
-
}), i[2] = a.alias, i[3] = a.run, i[4] = u) : u = i[4];
|
|
123
|
-
let d;
|
|
124
|
-
i[5] !== l || i[6] !== u ? (d = /* @__PURE__ */ jsxs("div", {
|
|
125
|
-
className: "flex items-center gap-2",
|
|
126
|
-
children: [l, u]
|
|
127
|
-
}), i[5] = l, i[6] = u, i[7] = d) : d = i[7];
|
|
128
|
-
let f = a.status, h;
|
|
129
|
-
i[8] === a.createdAt ? h = i[9] : (h = formatDistanceToNow(new Date(a.createdAt), { addSuffix: !0 }), i[8] = a.createdAt, i[9] = h);
|
|
130
|
-
let g;
|
|
131
|
-
i[10] !== h || i[11] !== a.status ? (g = /* @__PURE__ */ jsxs("p", {
|
|
132
|
-
className: "text-muted-foreground mt-0.5 pl-3.5 text-xs",
|
|
133
|
-
children: [
|
|
134
|
-
f,
|
|
135
|
-
" · ",
|
|
136
|
-
h
|
|
137
|
-
]
|
|
138
|
-
}), i[10] = h, i[11] = a.status, i[12] = g) : g = i[12];
|
|
139
|
-
let _;
|
|
140
|
-
return i[13] !== o || i[14] !== d || i[15] !== g ? (_ = /* @__PURE__ */ jsxs("button", {
|
|
141
|
-
className: "hover:bg-accent w-full rounded-md px-2 py-2.5 text-left transition-colors",
|
|
142
|
-
onClick: o,
|
|
143
|
-
children: [d, g]
|
|
144
|
-
}), i[13] = o, i[14] = d, i[15] = g, i[16] = _) : _ = i[16], _;
|
|
145
|
-
}
|
|
146
102
|
export { StudioLandingPage as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopstack/loopstack-studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"repository": "loopstack-ai/loopstack-studio",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fontsource/roboto": "^5.2.10",
|
|
28
28
|
"@hookform/resolvers": "^5.2.2",
|
|
29
|
-
"@loopstack/contracts": "^0.
|
|
29
|
+
"@loopstack/contracts": "^0.30.0",
|
|
30
30
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
31
31
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
32
32
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AbstractProduction, Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./model.js";
|
|
2
|
-
function isSequenceProd(e) {
|
|
3
|
-
return e instanceof Alternative || e instanceof Option || e instanceof Repetition || e instanceof RepetitionMandatory || e instanceof RepetitionMandatoryWithSeparator || e instanceof RepetitionWithSeparator || e instanceof Terminal || e instanceof Rule;
|
|
4
|
-
}
|
|
5
|
-
function isOptionalProd(p, m = []) {
|
|
6
|
-
return p instanceof Option || p instanceof Repetition || p instanceof RepetitionWithSeparator ? !0 : p instanceof Alternation ? p.definition.some((e) => isOptionalProd(e, m)) : p instanceof NonTerminal && m.includes(p) ? !1 : p instanceof AbstractProduction ? (p instanceof NonTerminal && m.push(p), p.definition.every((e) => isOptionalProd(e, m))) : !1;
|
|
7
|
-
}
|
|
8
|
-
function isBranchingProd(e) {
|
|
9
|
-
return e instanceof Alternation;
|
|
10
|
-
}
|
|
11
|
-
function getProductionDslName(e) {
|
|
12
|
-
/* istanbul ignore else */
|
|
13
|
-
if (e instanceof NonTerminal) return "SUBRULE";
|
|
14
|
-
if (e instanceof Option) return "OPTION";
|
|
15
|
-
if (e instanceof Alternation) return "OR";
|
|
16
|
-
if (e instanceof RepetitionMandatory) return "AT_LEAST_ONE";
|
|
17
|
-
if (e instanceof RepetitionMandatoryWithSeparator) return "AT_LEAST_ONE_SEP";
|
|
18
|
-
if (e instanceof RepetitionWithSeparator) return "MANY_SEP";
|
|
19
|
-
if (e instanceof Repetition) return "MANY";
|
|
20
|
-
if (e instanceof Terminal) return "CONSUME";
|
|
21
|
-
throw Error("non exhaustive match");
|
|
22
|
-
}
|
|
23
|
-
export { getProductionDslName, isBranchingProd, isOptionalProd, isSequenceProd };
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
function tokenLabel(e) {
|
|
2
|
-
return hasTokenLabel(e) ? e.LABEL : e.name;
|
|
3
|
-
}
|
|
4
|
-
function hasTokenLabel(e) {
|
|
5
|
-
return typeof e.LABEL == "string" && e.LABEL !== "";
|
|
6
|
-
}
|
|
7
|
-
var AbstractProduction = class {
|
|
8
|
-
get definition() {
|
|
9
|
-
return this._definition;
|
|
10
|
-
}
|
|
11
|
-
set definition(e) {
|
|
12
|
-
this._definition = e;
|
|
13
|
-
}
|
|
14
|
-
constructor(e) {
|
|
15
|
-
this._definition = e;
|
|
16
|
-
}
|
|
17
|
-
accept(e) {
|
|
18
|
-
e.visit(this), this.definition.forEach((p) => {
|
|
19
|
-
p.accept(e);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}, NonTerminal = class extends AbstractProduction {
|
|
23
|
-
constructor(e) {
|
|
24
|
-
super([]), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
25
|
-
}
|
|
26
|
-
set definition(e) {}
|
|
27
|
-
get definition() {
|
|
28
|
-
return this.referencedRule === void 0 ? [] : this.referencedRule.definition;
|
|
29
|
-
}
|
|
30
|
-
accept(e) {
|
|
31
|
-
e.visit(this);
|
|
32
|
-
}
|
|
33
|
-
}, Rule = class extends AbstractProduction {
|
|
34
|
-
constructor(e) {
|
|
35
|
-
super(e.definition), this.orgText = "", Object.assign(this, pickOnlyDefined(e));
|
|
36
|
-
}
|
|
37
|
-
}, Alternative = class extends AbstractProduction {
|
|
38
|
-
constructor(e) {
|
|
39
|
-
super(e.definition), this.ignoreAmbiguities = !1, Object.assign(this, pickOnlyDefined(e));
|
|
40
|
-
}
|
|
41
|
-
}, Option = class extends AbstractProduction {
|
|
42
|
-
constructor(e) {
|
|
43
|
-
super(e.definition), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
44
|
-
}
|
|
45
|
-
}, RepetitionMandatory = class extends AbstractProduction {
|
|
46
|
-
constructor(e) {
|
|
47
|
-
super(e.definition), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
48
|
-
}
|
|
49
|
-
}, RepetitionMandatoryWithSeparator = class extends AbstractProduction {
|
|
50
|
-
constructor(e) {
|
|
51
|
-
super(e.definition), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
52
|
-
}
|
|
53
|
-
}, Repetition = class extends AbstractProduction {
|
|
54
|
-
constructor(e) {
|
|
55
|
-
super(e.definition), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
56
|
-
}
|
|
57
|
-
}, RepetitionWithSeparator = class extends AbstractProduction {
|
|
58
|
-
constructor(e) {
|
|
59
|
-
super(e.definition), this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
60
|
-
}
|
|
61
|
-
}, Alternation = class extends AbstractProduction {
|
|
62
|
-
get definition() {
|
|
63
|
-
return this._definition;
|
|
64
|
-
}
|
|
65
|
-
set definition(e) {
|
|
66
|
-
this._definition = e;
|
|
67
|
-
}
|
|
68
|
-
constructor(e) {
|
|
69
|
-
super(e.definition), this.idx = 1, this.ignoreAmbiguities = !1, this.hasPredicates = !1, Object.assign(this, pickOnlyDefined(e));
|
|
70
|
-
}
|
|
71
|
-
}, Terminal = class {
|
|
72
|
-
constructor(e) {
|
|
73
|
-
this.idx = 1, Object.assign(this, pickOnlyDefined(e));
|
|
74
|
-
}
|
|
75
|
-
accept(e) {
|
|
76
|
-
e.visit(this);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
function serializeGrammar(e) {
|
|
80
|
-
return e.map(serializeProduction);
|
|
81
|
-
}
|
|
82
|
-
function serializeProduction(p) {
|
|
83
|
-
function m(e) {
|
|
84
|
-
return e.map(serializeProduction);
|
|
85
|
-
}
|
|
86
|
-
/* istanbul ignore else */
|
|
87
|
-
if (p instanceof NonTerminal) {
|
|
88
|
-
let e = {
|
|
89
|
-
type: "NonTerminal",
|
|
90
|
-
name: p.nonTerminalName,
|
|
91
|
-
idx: p.idx
|
|
92
|
-
};
|
|
93
|
-
return typeof p.label == "string" && (e.label = p.label), e;
|
|
94
|
-
} else if (p instanceof Alternative) return {
|
|
95
|
-
type: "Alternative",
|
|
96
|
-
definition: m(p.definition)
|
|
97
|
-
};
|
|
98
|
-
else if (p instanceof Option) return {
|
|
99
|
-
type: "Option",
|
|
100
|
-
idx: p.idx,
|
|
101
|
-
definition: m(p.definition)
|
|
102
|
-
};
|
|
103
|
-
else if (p instanceof RepetitionMandatory) return {
|
|
104
|
-
type: "RepetitionMandatory",
|
|
105
|
-
idx: p.idx,
|
|
106
|
-
definition: m(p.definition)
|
|
107
|
-
};
|
|
108
|
-
else if (p instanceof RepetitionMandatoryWithSeparator) return {
|
|
109
|
-
type: "RepetitionMandatoryWithSeparator",
|
|
110
|
-
idx: p.idx,
|
|
111
|
-
separator: serializeProduction(new Terminal({ terminalType: p.separator })),
|
|
112
|
-
definition: m(p.definition)
|
|
113
|
-
};
|
|
114
|
-
else if (p instanceof RepetitionWithSeparator) return {
|
|
115
|
-
type: "RepetitionWithSeparator",
|
|
116
|
-
idx: p.idx,
|
|
117
|
-
separator: serializeProduction(new Terminal({ terminalType: p.separator })),
|
|
118
|
-
definition: m(p.definition)
|
|
119
|
-
};
|
|
120
|
-
else if (p instanceof Repetition) return {
|
|
121
|
-
type: "Repetition",
|
|
122
|
-
idx: p.idx,
|
|
123
|
-
definition: m(p.definition)
|
|
124
|
-
};
|
|
125
|
-
else if (p instanceof Alternation) return {
|
|
126
|
-
type: "Alternation",
|
|
127
|
-
idx: p.idx,
|
|
128
|
-
definition: m(p.definition)
|
|
129
|
-
};
|
|
130
|
-
else if (p instanceof Terminal) {
|
|
131
|
-
let m = {
|
|
132
|
-
type: "Terminal",
|
|
133
|
-
name: p.terminalType.name,
|
|
134
|
-
label: tokenLabel(p.terminalType),
|
|
135
|
-
idx: p.idx
|
|
136
|
-
};
|
|
137
|
-
typeof p.label == "string" && (m.terminalLabel = p.label);
|
|
138
|
-
let h = p.terminalType.PATTERN;
|
|
139
|
-
return p.terminalType.PATTERN && (m.pattern = h instanceof RegExp ? h.source : h), m;
|
|
140
|
-
} else if (p instanceof Rule) return {
|
|
141
|
-
type: "Rule",
|
|
142
|
-
name: p.name,
|
|
143
|
-
orgText: p.orgText,
|
|
144
|
-
definition: m(p.definition)
|
|
145
|
-
};
|
|
146
|
-
else throw Error("non exhaustive match");
|
|
147
|
-
}
|
|
148
|
-
function pickOnlyDefined(e) {
|
|
149
|
-
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
|
|
150
|
-
}
|
|
151
|
-
export { AbstractProduction, Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal, serializeGrammar, serializeProduction };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal } from "./model.js";
|
|
2
|
-
var GAstVisitor = class {
|
|
3
|
-
visit(u) {
|
|
4
|
-
let d = u;
|
|
5
|
-
switch (d.constructor) {
|
|
6
|
-
case NonTerminal: return this.visitNonTerminal(d);
|
|
7
|
-
case Alternative: return this.visitAlternative(d);
|
|
8
|
-
case Option: return this.visitOption(d);
|
|
9
|
-
case RepetitionMandatory: return this.visitRepetitionMandatory(d);
|
|
10
|
-
case RepetitionMandatoryWithSeparator: return this.visitRepetitionMandatoryWithSeparator(d);
|
|
11
|
-
case RepetitionWithSeparator: return this.visitRepetitionWithSeparator(d);
|
|
12
|
-
case Repetition: return this.visitRepetition(d);
|
|
13
|
-
case Alternation: return this.visitAlternation(d);
|
|
14
|
-
case Terminal: return this.visitTerminal(d);
|
|
15
|
-
case Rule: return this.visitRule(d);
|
|
16
|
-
default: throw Error("non exhaustive match");
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/* c8 ignore next */
|
|
20
|
-
visitNonTerminal(e) {}
|
|
21
|
-
/* c8 ignore next */
|
|
22
|
-
visitAlternative(e) {}
|
|
23
|
-
/* c8 ignore next */
|
|
24
|
-
visitOption(e) {}
|
|
25
|
-
/* c8 ignore next */
|
|
26
|
-
visitRepetition(e) {}
|
|
27
|
-
/* c8 ignore next */
|
|
28
|
-
visitRepetitionMandatory(e) {}
|
|
29
|
-
/* c8 ignore next 3 */
|
|
30
|
-
visitRepetitionMandatoryWithSeparator(e) {}
|
|
31
|
-
/* c8 ignore next */
|
|
32
|
-
visitRepetitionWithSeparator(e) {}
|
|
33
|
-
/* c8 ignore next */
|
|
34
|
-
visitAlternation(e) {}
|
|
35
|
-
/* c8 ignore next */
|
|
36
|
-
visitTerminal(e) {}
|
|
37
|
-
/* c8 ignore next */
|
|
38
|
-
visitRule(e) {}
|
|
39
|
-
};
|
|
40
|
-
export { GAstVisitor };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
var BaseRegExpVisitor = class {
|
|
2
|
-
visitChildren(e) {
|
|
3
|
-
for (let t in e) {
|
|
4
|
-
let n = e[t];
|
|
5
|
-
/* istanbul ignore else */
|
|
6
|
-
e.hasOwnProperty(t) && (n.type === void 0 ? Array.isArray(n) && n.forEach((e) => {
|
|
7
|
-
this.visit(e);
|
|
8
|
-
}, this) : this.visit(n));
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
visit(e) {
|
|
12
|
-
switch (e.type) {
|
|
13
|
-
case "Pattern":
|
|
14
|
-
this.visitPattern(e);
|
|
15
|
-
break;
|
|
16
|
-
case "Flags":
|
|
17
|
-
this.visitFlags(e);
|
|
18
|
-
break;
|
|
19
|
-
case "Disjunction":
|
|
20
|
-
this.visitDisjunction(e);
|
|
21
|
-
break;
|
|
22
|
-
case "Alternative":
|
|
23
|
-
this.visitAlternative(e);
|
|
24
|
-
break;
|
|
25
|
-
case "StartAnchor":
|
|
26
|
-
this.visitStartAnchor(e);
|
|
27
|
-
break;
|
|
28
|
-
case "EndAnchor":
|
|
29
|
-
this.visitEndAnchor(e);
|
|
30
|
-
break;
|
|
31
|
-
case "WordBoundary":
|
|
32
|
-
this.visitWordBoundary(e);
|
|
33
|
-
break;
|
|
34
|
-
case "NonWordBoundary":
|
|
35
|
-
this.visitNonWordBoundary(e);
|
|
36
|
-
break;
|
|
37
|
-
case "Lookahead":
|
|
38
|
-
this.visitLookahead(e);
|
|
39
|
-
break;
|
|
40
|
-
case "NegativeLookahead":
|
|
41
|
-
this.visitNegativeLookahead(e);
|
|
42
|
-
break;
|
|
43
|
-
case "Lookbehind":
|
|
44
|
-
this.visitLookbehind(e);
|
|
45
|
-
break;
|
|
46
|
-
case "NegativeLookbehind":
|
|
47
|
-
this.visitNegativeLookbehind(e);
|
|
48
|
-
break;
|
|
49
|
-
case "Character":
|
|
50
|
-
this.visitCharacter(e);
|
|
51
|
-
break;
|
|
52
|
-
case "Set":
|
|
53
|
-
this.visitSet(e);
|
|
54
|
-
break;
|
|
55
|
-
case "Group":
|
|
56
|
-
this.visitGroup(e);
|
|
57
|
-
break;
|
|
58
|
-
case "GroupBackReference":
|
|
59
|
-
this.visitGroupBackReference(e);
|
|
60
|
-
break;
|
|
61
|
-
case "Quantifier":
|
|
62
|
-
this.visitQuantifier(e);
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
this.visitChildren(e);
|
|
66
|
-
}
|
|
67
|
-
visitPattern(e) {}
|
|
68
|
-
visitFlags(e) {}
|
|
69
|
-
visitDisjunction(e) {}
|
|
70
|
-
visitAlternative(e) {}
|
|
71
|
-
visitStartAnchor(e) {}
|
|
72
|
-
visitEndAnchor(e) {}
|
|
73
|
-
visitWordBoundary(e) {}
|
|
74
|
-
visitNonWordBoundary(e) {}
|
|
75
|
-
visitLookahead(e) {}
|
|
76
|
-
visitNegativeLookahead(e) {}
|
|
77
|
-
visitLookbehind(e) {}
|
|
78
|
-
visitNegativeLookbehind(e) {}
|
|
79
|
-
visitCharacter(e) {}
|
|
80
|
-
visitSet(e) {}
|
|
81
|
-
visitGroup(e) {}
|
|
82
|
-
visitGroupBackReference(e) {}
|
|
83
|
-
visitQuantifier(e) {}
|
|
84
|
-
};
|
|
85
|
-
export { BaseRegExpVisitor };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { cc } from "./utils.js";
|
|
2
|
-
const digitsCharCodes = [];
|
|
3
|
-
for (let r = cc("0"); r <= cc("9"); r++) digitsCharCodes.push(r);
|
|
4
|
-
const wordCharCodes = [cc("_")].concat(digitsCharCodes);
|
|
5
|
-
for (let n = cc("a"); n <= cc("z"); n++) wordCharCodes.push(n);
|
|
6
|
-
for (let n = cc("A"); n <= cc("Z"); n++) wordCharCodes.push(n);
|
|
7
|
-
const whitespaceCodes = [
|
|
8
|
-
cc(" "),
|
|
9
|
-
cc("\f"),
|
|
10
|
-
cc("\n"),
|
|
11
|
-
cc("\r"),
|
|
12
|
-
cc(" "),
|
|
13
|
-
cc("\v"),
|
|
14
|
-
cc(" "),
|
|
15
|
-
cc("\xA0"),
|
|
16
|
-
cc(" "),
|
|
17
|
-
cc(" "),
|
|
18
|
-
cc(" "),
|
|
19
|
-
cc(" "),
|
|
20
|
-
cc(" "),
|
|
21
|
-
cc(" "),
|
|
22
|
-
cc(" "),
|
|
23
|
-
cc(" "),
|
|
24
|
-
cc(" "),
|
|
25
|
-
cc(" "),
|
|
26
|
-
cc(" "),
|
|
27
|
-
cc(" "),
|
|
28
|
-
cc("\u2028"),
|
|
29
|
-
cc("\u2029"),
|
|
30
|
-
cc(" "),
|
|
31
|
-
cc(" "),
|
|
32
|
-
cc(" "),
|
|
33
|
-
cc("")
|
|
34
|
-
];
|
|
35
|
-
export { digitsCharCodes, whitespaceCodes, wordCharCodes };
|