@loopstack/loopstack-studio 0.25.1 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +20 -0
- package/dist/api/auth.js +2 -4
- package/dist/api/client.js +7 -9
- package/dist/api/config.js +2 -4
- package/dist/api/dashboard.js +2 -4
- package/dist/api/documents.js +2 -4
- package/dist/api/index.js +19 -21
- package/dist/api/processor.js +2 -4
- package/dist/api/secrets.js +2 -4
- package/dist/api/workflows.js +2 -4
- package/dist/api/workspaces.js +2 -4
- package/dist/app/EnvironmentEmbedRoot.js +31 -24
- package/dist/components/ai-elements/code-block.js +71 -53
- package/dist/components/ai-elements/message.js +82 -41
- package/dist/components/ai-elements/prompt-input.js +253 -162
- package/dist/components/ai-elements/reasoning.js +116 -78
- package/dist/components/ai-elements/shimmer.js +35 -23
- package/dist/components/ai-elements/sources.js +58 -29
- package/dist/components/data-table/ConfirmDialog.js +30 -14
- package/dist/components/data-table/DataList.js +198 -138
- package/dist/components/data-table/DataTable.js +234 -168
- package/dist/components/data-table/DataTableBatchAction.js +27 -18
- package/dist/components/data-table/DataTableFilters.js +78 -53
- package/dist/components/data-table/DataTablePagination.js +104 -72
- package/dist/components/data-table/DataTableToolbar.js +65 -53
- package/dist/components/dynamic-form/ArrayController.js +103 -85
- package/dist/components/dynamic-form/CodeContent.js +36 -28
- package/dist/components/dynamic-form/Form.js +56 -43
- package/dist/components/dynamic-form/FormBody.js +10 -12
- package/dist/components/dynamic-form/FormElement.js +41 -31
- package/dist/components/dynamic-form/FormElementHeader.js +20 -12
- package/dist/components/dynamic-form/InputController.js +38 -36
- package/dist/components/dynamic-form/MarkdownContent.js +74 -53
- package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
- package/dist/components/dynamic-form/ObjectController.js +32 -24
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
- package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
- package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
- package/dist/components/dynamic-form/fields/InputField.js +90 -62
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
- package/dist/components/dynamic-form/fields/RadioField.js +62 -46
- package/dist/components/dynamic-form/fields/SelectField.js +58 -40
- package/dist/components/dynamic-form/fields/SliderField.js +100 -94
- package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
- package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
- package/dist/components/feedback/ErrorAlert.js +17 -11
- package/dist/components/feedback/ErrorBoundary.js +14 -16
- package/dist/components/feedback/ErrorSnackbar.js +30 -13
- package/dist/components/feedback/LoadingCentered.js +28 -15
- package/dist/components/feedback/Snackbar.js +44 -43
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +25 -17
- package/dist/components/layout/StudioSidebar.js +202 -132
- package/dist/components/lists/CustomListView.js +74 -49
- package/dist/components/lists/ListView.js +102 -66
- package/dist/components/loopstack-elements/link.js +104 -65
- package/dist/components/loopstack-elements/tool.js +142 -70
- package/dist/components/messages/CompletionMessagePaper.js +85 -53
- package/dist/components/page/PageBreadcrumbs.js +83 -64
- package/dist/components/ui/DiscordLogo.js +22 -16
- package/dist/components/ui/GoogleLogo.js +44 -40
- package/dist/components/ui/accordion.js +52 -31
- package/dist/components/ui/alert-dialog.js +109 -59
- package/dist/components/ui/alert.js +36 -22
- package/dist/components/ui/avatar.js +35 -21
- package/dist/components/ui/badge.js +17 -13
- package/dist/components/ui/breadcrumb.js +82 -46
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +21 -17
- package/dist/components/ui/card.js +74 -40
- package/dist/components/ui/checkbox.js +23 -17
- package/dist/components/ui/collapsible.js +25 -17
- package/dist/components/ui/command.js +2 -1
- package/dist/components/ui/context-menu.js +52 -32
- package/dist/components/ui/dialog.js +107 -62
- package/dist/components/ui/drawer.js +99 -54
- package/dist/components/ui/dropdown-menu.js +159 -91
- package/dist/components/ui/hover-card.js +2 -1
- package/dist/components/ui/input-group.js +56 -36
- package/dist/components/ui/input.js +15 -11
- package/dist/components/ui/label.js +15 -11
- package/dist/components/ui/popover.js +38 -25
- package/dist/components/ui/radio-group.js +33 -22
- package/dist/components/ui/scroll-area.js +43 -28
- package/dist/components/ui/select.js +134 -73
- package/dist/components/ui/separator.js +17 -13
- package/dist/components/ui/sheet.js +105 -60
- package/dist/components/ui/sidebar.js +451 -269
- package/dist/components/ui/skeleton.js +14 -10
- package/dist/components/ui/slider.js +15 -17
- package/dist/components/ui/switch.js +21 -15
- package/dist/components/ui/table.js +85 -46
- package/dist/components/ui/tabs.js +45 -26
- package/dist/components/ui/textarea.js +14 -10
- package/dist/components/ui/tooltip.js +41 -26
- package/dist/components/ui-widgets/UiActions.js +37 -30
- package/dist/components/ui-widgets/UiWidget.js +46 -34
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
- package/dist/components/ui-widgets/widgets/SandboxRun.js +26 -19
- package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
- package/dist/events/api-client-events.js +2 -4
- package/dist/events/sse-client-events.js +2 -4
- package/dist/features/code-explorer/CodeExplorer.js +2 -1
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
- package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
- package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
- package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +39 -41
- package/dist/features/dashboard/Dashboard.js +121 -79
- package/dist/features/dashboard/RunItem.js +68 -50
- package/dist/features/dashboard/RunList.js +28 -17
- package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
- package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
- package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
- package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
- package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +31 -33
- package/dist/features/debug/lib/flow-utils.js +145 -147
- package/dist/features/documents/DocumentRenderer.js +77 -73
- package/dist/features/documents/components/DocumentItem.js +24 -21
- package/dist/features/documents/components/DocumentList.js +45 -39
- package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
- package/dist/features/documents/document-details/DocumentDetails.js +413 -298
- package/dist/features/documents/document-details/PromptDetails.js +142 -105
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +48 -39
- package/dist/features/documents/renderers/AiMessageContent.js +164 -108
- package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
- package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
- package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
- package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
- package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
- package/dist/features/documents/renderers/SecretInputRenderer.js +35 -37
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +7 -9
- package/dist/features/health/LocalHealthCheck.js +53 -54
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +197 -148
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +71 -52
- package/dist/features/runs/Runs.js +187 -145
- package/dist/features/workbench/Workbench.js +98 -72
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +66 -51
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/RemoteFileTabsBar.js +17 -18
- package/dist/features/workbench/components/RemoteFileTree.js +85 -54
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +63 -52
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +51 -34
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +44 -35
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -50
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +49 -51
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +172 -143
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- package/dist/features/workbench/components/WorkflowForms.js +23 -17
- package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
- package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
- package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
- package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
- package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
- package/dist/features/workbench/index.js +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +138 -123
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -76
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +25 -27
- package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
- package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
- package/dist/features/workspaces/components/WorkspaceHomePage.js +80 -59
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
- package/dist/features/workspaces/index.js +3 -3
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +31 -33
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/hooks/useApi.js +14 -16
- package/dist/hooks/useAuth.js +53 -38
- package/dist/hooks/useConfig.js +37 -26
- package/dist/hooks/useDashboard.js +15 -12
- package/dist/hooks/useDebounce.js +11 -12
- package/dist/hooks/useDocuments.js +35 -23
- package/dist/hooks/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +161 -109
- package/dist/hooks/useWorkspaces.js +123 -83
- package/dist/index.d.ts +1304 -0
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +2 -4
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1913 -1812
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
- package/dist/node_modules/@shikijs/core/dist/index.js +1119 -583
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +148 -163
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
- package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
- package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
- package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
- package/dist/node_modules/bail/index.js +2 -4
- package/dist/node_modules/ccount/index.js +2 -4
- package/dist/node_modules/character-entities-html4/index.js +2 -4
- package/dist/node_modules/character-entities-legacy/index.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +3 -5
- package/dist/node_modules/comma-separated-tokens/index.js +3 -5
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +2 -4
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +6 -8
- package/dist/node_modules/d3-array/src/descending.js +2 -4
- package/dist/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-array/src/number.js +2 -4
- package/dist/node_modules/d3-array/src/range.js +2 -4
- package/dist/node_modules/d3-array/src/ticks.js +11 -13
- package/dist/node_modules/d3-axis/src/axis.js +46 -48
- package/dist/node_modules/d3-axis/src/identity.js +2 -4
- package/dist/node_modules/d3-brush/src/brush.js +4 -6
- package/dist/node_modules/d3-color/src/color.js +84 -86
- package/dist/node_modules/d3-color/src/define.js +3 -5
- package/dist/node_modules/d3-color/src/lab.js +43 -45
- package/dist/node_modules/d3-color/src/math.js +2 -4
- package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
- package/dist/node_modules/d3-drag/src/constant.js +2 -4
- package/dist/node_modules/d3-drag/src/drag.js +75 -77
- package/dist/node_modules/d3-drag/src/event.js +3 -5
- package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
- package/dist/node_modules/d3-drag/src/noevent.js +4 -6
- package/dist/node_modules/d3-ease/src/cubic.js +2 -4
- package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-format/src/exponent.js +4 -6
- package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
- package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
- package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
- package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
- package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
- package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
- package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
- package/dist/node_modules/d3-format/src/identity.js +2 -4
- package/dist/node_modules/d3-format/src/locale.js +31 -33
- package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
- package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
- package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
- package/dist/node_modules/d3-interpolate/src/array.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
- package/dist/node_modules/d3-interpolate/src/color.js +17 -19
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
- package/dist/node_modules/d3-interpolate/src/date.js +2 -4
- package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
- package/dist/node_modules/d3-interpolate/src/number.js +2 -4
- package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
- package/dist/node_modules/d3-interpolate/src/object.js +4 -6
- package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
- package/dist/node_modules/d3-interpolate/src/round.js +2 -4
- package/dist/node_modules/d3-interpolate/src/string.js +14 -16
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
- package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
- package/dist/node_modules/d3-interpolate/src/value.js +12 -14
- package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
- package/dist/node_modules/d3-path/src/path.js +14 -16
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-sankey/src/align.js +10 -12
- package/dist/node_modules/d3-sankey/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
- package/dist/node_modules/d3-scale/src/band.js +9 -11
- package/dist/node_modules/d3-scale/src/constant.js +2 -4
- package/dist/node_modules/d3-scale/src/continuous.js +47 -49
- package/dist/node_modules/d3-scale/src/init.js +2 -4
- package/dist/node_modules/d3-scale/src/linear.js +13 -15
- package/dist/node_modules/d3-scale/src/nice.js +2 -4
- package/dist/node_modules/d3-scale/src/number.js +2 -4
- package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
- package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
- package/dist/node_modules/d3-scale/src/time.js +34 -36
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
- package/dist/node_modules/d3-selection/src/array.js +2 -4
- package/dist/node_modules/d3-selection/src/constant.js +2 -4
- package/dist/node_modules/d3-selection/src/creator.js +10 -12
- package/dist/node_modules/d3-selection/src/matcher.js +3 -5
- package/dist/node_modules/d3-selection/src/namespace.js +5 -7
- package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
- package/dist/node_modules/d3-selection/src/pointer.js +4 -6
- package/dist/node_modules/d3-selection/src/select.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
- package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
- package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
- package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
- package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
- package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
- package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
- package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
- package/dist/node_modules/d3-selection/src/selector.js +4 -6
- package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
- package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
- package/dist/node_modules/d3-selection/src/window.js +2 -4
- package/dist/node_modules/d3-shape/src/arc.js +36 -38
- package/dist/node_modules/d3-shape/src/array.js +2 -3
- package/dist/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
- package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
- package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
- package/dist/node_modules/d3-shape/src/descending.js +2 -4
- package/dist/node_modules/d3-shape/src/identity.js +2 -4
- package/dist/node_modules/d3-shape/src/line.js +17 -19
- package/dist/node_modules/d3-shape/src/math.js +6 -8
- package/dist/node_modules/d3-shape/src/noop.js +2 -4
- package/dist/node_modules/d3-shape/src/path.js +4 -6
- package/dist/node_modules/d3-shape/src/pie.js +13 -15
- package/dist/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-time/src/day.js +15 -17
- package/dist/node_modules/d3-time/src/duration.js +2 -4
- package/dist/node_modules/d3-time/src/hour.js +14 -16
- package/dist/node_modules/d3-time/src/interval.js +5 -7
- package/dist/node_modules/d3-time/src/millisecond.js +5 -7
- package/dist/node_modules/d3-time/src/minute.js +14 -16
- package/dist/node_modules/d3-time/src/month.js +12 -14
- package/dist/node_modules/d3-time/src/second.js +7 -9
- package/dist/node_modules/d3-time/src/ticks.js +64 -66
- package/dist/node_modules/d3-time/src/week.js +19 -21
- package/dist/node_modules/d3-time/src/year.js +8 -10
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-time-format/src/locale.js +344 -346
- package/dist/node_modules/d3-timer/src/timeout.js +4 -6
- package/dist/node_modules/d3-timer/src/timer.js +31 -33
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
- package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
- package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
- package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
- package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
- package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
- package/dist/node_modules/d3-zoom/src/constant.js +2 -4
- package/dist/node_modules/d3-zoom/src/event.js +2 -4
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
- package/dist/node_modules/d3-zoom/src/transform.js +10 -12
- package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
- package/dist/node_modules/dayjs/dayjs.min.js +4 -6
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/duration.js +4 -6
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
- package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
- package/dist/node_modules/devlop/lib/default.js +2 -4
- package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
- package/dist/node_modules/entities/dist/esm/decode.js +85 -87
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
- package/dist/node_modules/extend/index.js +6 -9
- package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
- package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
- package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +249 -250
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +15 -17
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
- package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
- package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
- package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
- package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
- package/dist/node_modules/hastscript/lib/create-h.js +24 -26
- package/dist/node_modules/hastscript/lib/index.js +5 -7
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
- package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
- package/dist/node_modules/html-void-elements/index.js +2 -4
- package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
- package/dist/node_modules/internmap/src/index.js +20 -22
- package/dist/node_modules/katex/dist/katex.js +2307 -2301
- package/dist/node_modules/khroma/dist/channels/index.js +21 -23
- package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
- package/dist/node_modules/khroma/dist/channels/type.js +5 -7
- package/dist/node_modules/khroma/dist/color/hex.js +8 -10
- package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
- package/dist/node_modules/khroma/dist/color/index.js +15 -17
- package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
- package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
- package/dist/node_modules/khroma/dist/constants.js +5 -7
- package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
- package/dist/node_modules/khroma/dist/methods/change.js +7 -9
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
- package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
- package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
- package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
- package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
- package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
- package/dist/node_modules/khroma/dist/utils/index.js +8 -10
- package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
- package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
- package/dist/node_modules/langium/lib/default-module.js +64 -66
- package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
- package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
- package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
- package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
- package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
- package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
- package/dist/node_modules/langium/lib/references/linker.js +103 -104
- package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
- package/dist/node_modules/langium/lib/references/references.js +51 -53
- package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
- package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
- package/dist/node_modules/langium/lib/references/scope.js +56 -27
- package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
- package/dist/node_modules/langium/lib/service-registry.js +5 -7
- package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
- package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
- package/dist/node_modules/langium/lib/utils/caching.js +42 -33
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
- package/dist/node_modules/langium/lib/utils/collections.js +33 -35
- package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
- package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
- package/dist/node_modules/langium/lib/utils/errors.js +9 -8
- package/dist/node_modules/langium/lib/utils/event.js +5 -7
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
- package/dist/node_modules/langium/lib/utils/stream.js +153 -155
- package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
- package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
- package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
- package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
- package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
- package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
- package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
- package/dist/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/lodash/_Symbol.js +7 -0
- package/dist/node_modules/lodash/_baseGetTag.js +13 -0
- package/dist/node_modules/lodash/_baseTrim.js +11 -0
- package/dist/node_modules/lodash/_freeGlobal.js +6 -0
- package/dist/node_modules/lodash/_getRawTag.js +17 -0
- package/dist/node_modules/lodash/_objectToString.js +10 -0
- package/dist/node_modules/lodash/_root.js +8 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
- package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
- package/dist/node_modules/lodash/isObject.js +10 -0
- package/dist/node_modules/lodash/isObjectLike.js +9 -0
- package/dist/node_modules/lodash/isSymbol.js +12 -0
- package/dist/node_modules/lodash/now.js +10 -0
- package/dist/node_modules/lodash/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -6
- package/dist/node_modules/lodash-es/_Hash.js +13 -14
- package/dist/node_modules/lodash-es/_ListCache.js +13 -14
- package/dist/node_modules/lodash-es/_Map.js +4 -6
- package/dist/node_modules/lodash-es/_MapCache.js +13 -14
- package/dist/node_modules/lodash-es/_Promise.js +4 -6
- package/dist/node_modules/lodash-es/_Set.js +4 -6
- package/dist/node_modules/lodash-es/_SetCache.js +9 -10
- package/dist/node_modules/lodash-es/_Stack.js +11 -12
- package/dist/node_modules/lodash-es/_Symbol.js +3 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
- package/dist/node_modules/lodash-es/_apply.js +3 -4
- package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
- package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
- package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
- package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
- package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
- package/dist/node_modules/lodash-es/_arraySome.js +3 -4
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
- package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
- package/dist/node_modules/lodash-es/_assignValue.js +7 -8
- package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
- package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
- package/dist/node_modules/lodash-es/_baseClone.js +50 -51
- package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
- package/dist/node_modules/lodash-es/_baseEach.js +4 -6
- package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
- package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
- package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
- package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
- package/dist/node_modules/lodash-es/_baseFor.js +3 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
- package/dist/node_modules/lodash-es/_baseGet.js +7 -8
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
- package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
- package/dist/node_modules/lodash-es/_baseGt.js +3 -4
- package/dist/node_modules/lodash-es/_baseHas.js +5 -6
- package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
- package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
- package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
- package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
- package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
- package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
- package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
- package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
- package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
- package/dist/node_modules/lodash-es/_baseLt.js +3 -4
- package/dist/node_modules/lodash-es/_baseMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
- package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
- package/dist/node_modules/lodash-es/_basePick.js +7 -8
- package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
- package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
- package/dist/node_modules/lodash-es/_baseRange.js +5 -6
- package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
- package/dist/node_modules/lodash-es/_baseRest.js +7 -8
- package/dist/node_modules/lodash-es/_baseSet.js +13 -14
- package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
- package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
- package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
- package/dist/node_modules/lodash-es/_baseToString.js +12 -13
- package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
- package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
- package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
- package/dist/node_modules/lodash-es/_baseValues.js +5 -6
- package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
- package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_castFunction.js +5 -6
- package/dist/node_modules/lodash-es/_castPath.js +8 -9
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
- package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
- package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
- package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
- package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
- package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
- package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
- package/dist/node_modules/lodash-es/_copyArray.js +3 -4
- package/dist/node_modules/lodash-es/_copyObject.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
- package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
- package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
- package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
- package/dist/node_modules/lodash-es/_createFind.js +9 -10
- package/dist/node_modules/lodash-es/_createRange.js +7 -8
- package/dist/node_modules/lodash-es/_createSet.js +7 -9
- package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
- package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
- package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
- package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
- package/dist/node_modules/lodash-es/_flatRest.js +7 -8
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
- package/dist/node_modules/lodash-es/_getMapData.js +5 -6
- package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
- package/dist/node_modules/lodash-es/_getNative.js +7 -8
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
- package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
- package/dist/node_modules/lodash-es/_getTag.js +19 -21
- package/dist/node_modules/lodash-es/_getValue.js +3 -4
- package/dist/node_modules/lodash-es/_hasPath.js +12 -13
- package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
- package/dist/node_modules/lodash-es/_hashClear.js +5 -6
- package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
- package/dist/node_modules/lodash-es/_hashGet.js +8 -9
- package/dist/node_modules/lodash-es/_hashHas.js +6 -7
- package/dist/node_modules/lodash-es/_hashSet.js +6 -7
- package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
- package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
- package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
- package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
- package/dist/node_modules/lodash-es/_isIndex.js +5 -6
- package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
- package/dist/node_modules/lodash-es/_isKey.js +8 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
- package/dist/node_modules/lodash-es/_isMasked.js +8 -9
- package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
- package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
- package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
- package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
- package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
- package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
- package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
- package/dist/node_modules/lodash-es/_objectToString.js +5 -6
- package/dist/node_modules/lodash-es/_overArg.js +3 -4
- package/dist/node_modules/lodash-es/_overRest.js +8 -9
- package/dist/node_modules/lodash-es/_root.js +3 -5
- package/dist/node_modules/lodash-es/_safeGet.js +3 -4
- package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
- package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_setToArray.js +3 -4
- package/dist/node_modules/lodash-es/_setToString.js +4 -6
- package/dist/node_modules/lodash-es/_shortOut.js +6 -7
- package/dist/node_modules/lodash-es/_stackClear.js +5 -6
- package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
- package/dist/node_modules/lodash-es/_stackGet.js +3 -4
- package/dist/node_modules/lodash-es/_stackHas.js +3 -4
- package/dist/node_modules/lodash-es/_stackSet.js +10 -11
- package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
- package/dist/node_modules/lodash-es/_stringSize.js +7 -8
- package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
- package/dist/node_modules/lodash-es/_toKey.js +7 -8
- package/dist/node_modules/lodash-es/_toSource.js +7 -8
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
- package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
- package/dist/node_modules/lodash-es/clone.js +6 -7
- package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
- package/dist/node_modules/lodash-es/constant.js +3 -4
- package/dist/node_modules/lodash-es/defaults.js +11 -13
- package/dist/node_modules/lodash-es/eq.js +3 -4
- package/dist/node_modules/lodash-es/filter.js +8 -9
- package/dist/node_modules/lodash-es/find.js +4 -6
- package/dist/node_modules/lodash-es/findIndex.js +9 -10
- package/dist/node_modules/lodash-es/flatMap.js +6 -7
- package/dist/node_modules/lodash-es/flatten.js +5 -6
- package/dist/node_modules/lodash-es/forEach.js +8 -9
- package/dist/node_modules/lodash-es/forIn.js +7 -8
- package/dist/node_modules/lodash-es/forOwn.js +6 -7
- package/dist/node_modules/lodash-es/get.js +5 -6
- package/dist/node_modules/lodash-es/has.js +6 -7
- package/dist/node_modules/lodash-es/hasIn.js +6 -7
- package/dist/node_modules/lodash-es/identity.js +3 -4
- package/dist/node_modules/lodash-es/isArguments.js +6 -8
- package/dist/node_modules/lodash-es/isArray.js +2 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
- package/dist/node_modules/lodash-es/isBuffer.js +4 -6
- package/dist/node_modules/lodash-es/isEmpty.js +17 -18
- package/dist/node_modules/lodash-es/isFunction.js +9 -10
- package/dist/node_modules/lodash-es/isLength.js +5 -6
- package/dist/node_modules/lodash-es/isMap.js +5 -7
- package/dist/node_modules/lodash-es/isObject.js +3 -4
- package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
- package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
- package/dist/node_modules/lodash-es/isSet.js +5 -7
- package/dist/node_modules/lodash-es/isString.js +8 -9
- package/dist/node_modules/lodash-es/isSymbol.js +7 -8
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
- package/dist/node_modules/lodash-es/isUndefined.js +3 -4
- package/dist/node_modules/lodash-es/keys.js +7 -8
- package/dist/node_modules/lodash-es/keysIn.js +7 -8
- package/dist/node_modules/lodash-es/last.js +3 -4
- package/dist/node_modules/lodash-es/map.js +8 -9
- package/dist/node_modules/lodash-es/mapValues.js +8 -9
- package/dist/node_modules/lodash-es/max.js +7 -8
- package/dist/node_modules/lodash-es/memoize.js +8 -9
- package/dist/node_modules/lodash-es/merge.js +5 -7
- package/dist/node_modules/lodash-es/min.js +7 -8
- package/dist/node_modules/lodash-es/minBy.js +7 -8
- package/dist/node_modules/lodash-es/noop.js +3 -4
- package/dist/node_modules/lodash-es/now.js +4 -6
- package/dist/node_modules/lodash-es/pick.js +5 -7
- package/dist/node_modules/lodash-es/property.js +8 -9
- package/dist/node_modules/lodash-es/range.js +3 -5
- package/dist/node_modules/lodash-es/reduce.js +10 -11
- package/dist/node_modules/lodash-es/size.js +12 -13
- package/dist/node_modules/lodash-es/sortBy.js +7 -9
- package/dist/node_modules/lodash-es/stubArray.js +3 -4
- package/dist/node_modules/lodash-es/stubFalse.js +3 -4
- package/dist/node_modules/lodash-es/toFinite.js +6 -7
- package/dist/node_modules/lodash-es/toInteger.js +5 -6
- package/dist/node_modules/lodash-es/toNumber.js +13 -14
- package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
- package/dist/node_modules/lodash-es/toString.js +5 -6
- package/dist/node_modules/lodash-es/union.js +7 -9
- package/dist/node_modules/lodash-es/uniqBy.js +6 -7
- package/dist/node_modules/lodash-es/uniqueId.js +7 -8
- package/dist/node_modules/lodash-es/values.js +6 -7
- package/dist/node_modules/lodash-es/zipObject.js +6 -7
- package/dist/node_modules/longest-streak/index.js +2 -4
- package/dist/node_modules/markdown-table/index.js +9 -11
- package/dist/node_modules/marked/lib/marked.esm.js +685 -687
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
- package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
- package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
- package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
- package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
- package/dist/node_modules/micromark/lib/constructs.js +79 -80
- package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
- package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
- package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
- package/dist/node_modules/micromark/lib/parse.js +18 -20
- package/dist/node_modules/micromark/lib/postprocess.js +4 -6
- package/dist/node_modules/micromark/lib/preprocess.js +4 -6
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
- package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
- package/dist/node_modules/micromark-factory-destination/index.js +8 -10
- package/dist/node_modules/micromark-factory-label/index.js +5 -7
- package/dist/node_modules/micromark-factory-space/index.js +5 -7
- package/dist/node_modules/micromark-factory-title/index.js +6 -8
- package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
- package/dist/node_modules/micromark-util-character/index.js +12 -14
- package/dist/node_modules/micromark-util-chunked/index.js +4 -6
- package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
- package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
- package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
- package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
- package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
- package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +4 -6
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
- package/dist/node_modules/property-information/index.js +23 -25
- package/dist/node_modules/property-information/lib/aria.js +39 -41
- package/dist/node_modules/property-information/lib/find.js +16 -18
- package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
- package/dist/node_modules/property-information/lib/html.js +94 -96
- package/dist/node_modules/property-information/lib/normalize.js +2 -4
- package/dist/node_modules/property-information/lib/svg.js +77 -79
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
- package/dist/node_modules/property-information/lib/util/create.js +8 -10
- package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
- package/dist/node_modules/property-information/lib/util/info.js +3 -5
- package/dist/node_modules/property-information/lib/util/merge.js +4 -6
- package/dist/node_modules/property-information/lib/util/schema.js +3 -5
- package/dist/node_modules/property-information/lib/util/types.js +14 -15
- package/dist/node_modules/property-information/lib/xlink.js +3 -5
- package/dist/node_modules/property-information/lib/xml.js +3 -5
- package/dist/node_modules/property-information/lib/xmlns.js +5 -7
- package/dist/node_modules/rehype-harden/dist/index.js +45 -47
- package/dist/node_modules/rehype-katex/lib/index.js +23 -25
- package/dist/node_modules/rehype-raw/lib/index.js +4 -6
- package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
- package/dist/node_modules/remark-gfm/lib/index.js +7 -9
- package/dist/node_modules/remark-math/lib/index.js +7 -9
- package/dist/node_modules/remark-parse/lib/index.js +4 -6
- package/dist/node_modules/remark-rehype/lib/index.js +5 -7
- package/dist/node_modules/remend/dist/index.js +324 -326
- package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
- package/dist/node_modules/shiki/dist/bundle-full.js +11 -13
- package/dist/node_modules/shiki/dist/{langs-bundle-full-DfKZStlK.js → langs.js} +6 -8
- package/dist/node_modules/shiki/dist/themes.js +4 -6
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +3 -5
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
- package/dist/node_modules/stringify-entities/lib/core.js +16 -18
- package/dist/node_modules/stringify-entities/lib/index.js +5 -7
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
- package/dist/node_modules/style-to-js/cjs/index.js +7 -9
- package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
- package/dist/node_modules/style-to-object/cjs/index.js +6 -8
- package/dist/node_modules/stylis/src/Enum.js +2 -4
- package/dist/node_modules/stylis/src/Parser.js +36 -38
- package/dist/node_modules/stylis/src/Serializer.js +15 -17
- package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
- package/dist/node_modules/stylis/src/Utility.js +15 -17
- package/dist/node_modules/trim-lines/index.js +8 -10
- package/dist/node_modules/trough/lib/index.js +4 -6
- package/dist/node_modules/ts-dedent/esm/index.js +2 -4
- package/dist/node_modules/unified/lib/callable-instance.js +2 -4
- package/dist/node_modules/unified/lib/index.js +101 -102
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
- package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
- package/dist/node_modules/unist-util-is/lib/index.js +29 -31
- package/dist/node_modules/unist-util-position/lib/index.js +5 -7
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
- package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
- package/dist/node_modules/vaul/dist/index.js +274 -276
- package/dist/node_modules/vfile/lib/index.js +42 -44
- package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
- package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
- package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
- package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
- package/dist/node_modules/vfile-location/lib/index.js +5 -7
- package/dist/node_modules/vfile-message/lib/index.js +5 -7
- package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
- package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
- package/dist/node_modules/web-namespaces/index.js +2 -4
- package/dist/node_modules/zwitch/index.js +5 -7
- package/dist/packages/contracts/dist/enums/index.js +12 -14
- package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
- package/dist/pages/DashboardPage.js +99 -55
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +119 -91
- package/dist/pages/DebugWorkflowsPage.js +37 -39
- package/dist/pages/EmbedWorkbenchPage.js +62 -48
- package/dist/pages/PreviewWorkbenchPage.js +324 -243
- package/dist/pages/RunsListPage.js +61 -44
- package/dist/pages/RunsPage.js +48 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +86 -56
- package/dist/pages/WorkflowDebugPage.js +110 -74
- package/dist/pages/WorkspacePage.js +115 -72
- package/dist/pages/WorkspaceRunsPage.js +70 -43
- package/dist/pages/WorkspacesPage.js +35 -24
- package/dist/providers/ComponentOverridesProvider.js +12 -9
- package/dist/providers/InvalidationEventsProvider.js +35 -33
- package/dist/providers/QueryProvider.js +18 -14
- package/dist/providers/SseProvider.js +29 -28
- package/dist/providers/StudioProvider.js +19 -14
- package/dist/routing/LocalRouter.js +9 -6
- package/dist/services/createApiClient.js +5 -7
- package/dist/services/eventEmitter.js +2 -3
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +5 -7
- package/package.json +33 -33
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
- package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
- package/dist/node_modules/@shikijs/primitive/dist/index.js +0 -540
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +0 -17
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +0 -7
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
|
|
6
|
-
function o(e) {
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import React, { useEffect, useLayoutEffect, useMemo } from "react";
|
|
4
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
5
|
+
function __insertCSS(e) {
|
|
7
6
|
if (!e || typeof document > "u") return;
|
|
8
7
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
9
8
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
10
9
|
}
|
|
11
|
-
var
|
|
10
|
+
var DrawerContext = React.createContext({
|
|
12
11
|
drawerRef: { current: null },
|
|
13
12
|
overlayRef: { current: null },
|
|
14
13
|
onPress: () => {},
|
|
@@ -38,50 +37,50 @@ var s = t.createContext({
|
|
|
38
37
|
noBodyStyles: !1,
|
|
39
38
|
container: null,
|
|
40
39
|
autoFocus: !1
|
|
41
|
-
}),
|
|
42
|
-
let e =
|
|
40
|
+
}), useDrawerContext = () => {
|
|
41
|
+
let e = React.useContext(DrawerContext);
|
|
43
42
|
if (!e) throw Error("useDrawerContext must be used within a Drawer.Root");
|
|
44
43
|
return e;
|
|
45
44
|
};
|
|
46
|
-
|
|
47
|
-
function
|
|
45
|
+
__insertCSS("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");
|
|
46
|
+
function isMobileFirefox() {
|
|
48
47
|
let e = navigator.userAgent;
|
|
49
48
|
return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || /FxiOS/.test(e));
|
|
50
49
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
50
|
+
function isMac() {
|
|
51
|
+
return testPlatform(/^Mac/);
|
|
53
52
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
53
|
+
function isIPhone() {
|
|
54
|
+
return testPlatform(/^iPhone/);
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function isSafari() {
|
|
58
57
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
59
58
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
59
|
+
function isIPad() {
|
|
60
|
+
return testPlatform(/^iPad/) || isMac() && navigator.maxTouchPoints > 1;
|
|
62
61
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
62
|
+
function isIOS() {
|
|
63
|
+
return isIPhone() || isIPad();
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function testPlatform(e) {
|
|
67
66
|
return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
|
|
68
67
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
68
|
+
var KEYBOARD_BUFFER = 24, useIsomorphicLayoutEffect = typeof window < "u" ? useLayoutEffect : useEffect;
|
|
69
|
+
function chain$1(...e) {
|
|
71
70
|
return (...t) => {
|
|
72
71
|
for (let n of e) typeof n == "function" && n(...t);
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
74
|
+
var visualViewport = typeof document < "u" && window.visualViewport;
|
|
75
|
+
function isScrollable(e) {
|
|
77
76
|
let t = window.getComputedStyle(e);
|
|
78
77
|
return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
|
|
79
78
|
}
|
|
80
|
-
function
|
|
81
|
-
for (
|
|
79
|
+
function getScrollParent(e) {
|
|
80
|
+
for (isScrollable(e) && (e = e.parentElement); e && !isScrollable(e);) e = e.parentElement;
|
|
82
81
|
return e || document.scrollingElement || document.documentElement;
|
|
83
82
|
}
|
|
84
|
-
var
|
|
83
|
+
var nonTextInputTypes = new Set([
|
|
85
84
|
"checkbox",
|
|
86
85
|
"radio",
|
|
87
86
|
"range",
|
|
@@ -91,18 +90,18 @@ var S = new Set([
|
|
|
91
90
|
"button",
|
|
92
91
|
"submit",
|
|
93
92
|
"reset"
|
|
94
|
-
]),
|
|
95
|
-
function
|
|
93
|
+
]), preventScrollCount = 0, restore;
|
|
94
|
+
function usePreventScroll(e = {}) {
|
|
96
95
|
let { isDisabled: t } = e;
|
|
97
|
-
|
|
98
|
-
if (!t) return
|
|
99
|
-
|
|
96
|
+
useIsomorphicLayoutEffect(() => {
|
|
97
|
+
if (!t) return preventScrollCount++, preventScrollCount === 1 && isIOS() && (restore = preventScrollMobileSafari()), () => {
|
|
98
|
+
preventScrollCount--, preventScrollCount === 0 && restore?.();
|
|
100
99
|
};
|
|
101
100
|
}, [t]);
|
|
102
101
|
}
|
|
103
|
-
function
|
|
102
|
+
function preventScrollMobileSafari() {
|
|
104
103
|
let e, t = 0, n = (n) => {
|
|
105
|
-
e =
|
|
104
|
+
e = getScrollParent(n.target), !(e === document.documentElement && e === document.body) && (t = n.changedTouches[0].pageY);
|
|
106
105
|
}, r = (n) => {
|
|
107
106
|
if (!e || e === document.documentElement || e === document.body) {
|
|
108
107
|
n.preventDefault();
|
|
@@ -112,70 +111,70 @@ function T() {
|
|
|
112
111
|
a !== 0 && ((i <= 0 && r > t || i >= a && r < t) && n.preventDefault(), t = r);
|
|
113
112
|
}, i = (e) => {
|
|
114
113
|
let t = e.target;
|
|
115
|
-
|
|
114
|
+
isInput(t) && t !== document.activeElement && (e.preventDefault(), t.style.transform = "translateY(-2000px)", t.focus(), requestAnimationFrame(() => {
|
|
116
115
|
t.style.transform = "";
|
|
117
116
|
}));
|
|
118
117
|
}, a = (e) => {
|
|
119
118
|
let t = e.target;
|
|
120
|
-
|
|
121
|
-
t.style.transform = "",
|
|
122
|
-
|
|
123
|
-
}) :
|
|
119
|
+
isInput(t) && (t.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
120
|
+
t.style.transform = "", visualViewport && (visualViewport.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
121
|
+
scrollIntoView(t);
|
|
122
|
+
}) : visualViewport.addEventListener("resize", () => scrollIntoView(t), { once: !0 }));
|
|
124
123
|
}));
|
|
125
124
|
}, o = () => {
|
|
126
125
|
window.scrollTo(0, 0);
|
|
127
|
-
}, s = window.pageXOffset, c = window.pageYOffset, l =
|
|
126
|
+
}, s = window.pageXOffset, c = window.pageYOffset, l = chain$1(setStyle(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
|
|
128
127
|
window.scrollTo(0, 0);
|
|
129
|
-
let u =
|
|
128
|
+
let u = chain$1(addEvent(document, "touchstart", n, {
|
|
130
129
|
passive: !1,
|
|
131
130
|
capture: !0
|
|
132
|
-
}),
|
|
131
|
+
}), addEvent(document, "touchmove", r, {
|
|
133
132
|
passive: !1,
|
|
134
133
|
capture: !0
|
|
135
|
-
}),
|
|
134
|
+
}), addEvent(document, "touchend", i, {
|
|
136
135
|
passive: !1,
|
|
137
136
|
capture: !0
|
|
138
|
-
}),
|
|
137
|
+
}), addEvent(document, "focus", a, !0), addEvent(window, "scroll", o));
|
|
139
138
|
return () => {
|
|
140
139
|
l(), u(), window.scrollTo(s, c);
|
|
141
140
|
};
|
|
142
141
|
}
|
|
143
|
-
function
|
|
142
|
+
function setStyle(e, t, n) {
|
|
144
143
|
let r = e.style[t];
|
|
145
144
|
return e.style[t] = n, () => {
|
|
146
145
|
e.style[t] = r;
|
|
147
146
|
};
|
|
148
147
|
}
|
|
149
|
-
function
|
|
148
|
+
function addEvent(e, t, n, r) {
|
|
150
149
|
return e.addEventListener(t, n, r), () => {
|
|
151
150
|
e.removeEventListener(t, n, r);
|
|
152
151
|
};
|
|
153
152
|
}
|
|
154
|
-
function
|
|
153
|
+
function scrollIntoView(e) {
|
|
155
154
|
let t = document.scrollingElement || document.documentElement;
|
|
156
155
|
for (; e && e !== t;) {
|
|
157
|
-
let t =
|
|
156
|
+
let t = getScrollParent(e);
|
|
158
157
|
if (t !== document.documentElement && t !== document.body && t !== e) {
|
|
159
158
|
let n = t.getBoundingClientRect().top, r = e.getBoundingClientRect().top;
|
|
160
|
-
e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom +
|
|
159
|
+
e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom + KEYBOARD_BUFFER && (t.scrollTop += r - n);
|
|
161
160
|
}
|
|
162
161
|
e = t.parentElement;
|
|
163
162
|
}
|
|
164
163
|
}
|
|
165
|
-
function
|
|
166
|
-
return e instanceof HTMLInputElement && !
|
|
164
|
+
function isInput(e) {
|
|
165
|
+
return e instanceof HTMLInputElement && !nonTextInputTypes.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
167
166
|
}
|
|
168
|
-
function
|
|
167
|
+
function setRef(e, t) {
|
|
169
168
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
170
169
|
}
|
|
171
|
-
function
|
|
172
|
-
return (t) => e.forEach((e) =>
|
|
170
|
+
function composeRefs(...e) {
|
|
171
|
+
return (t) => e.forEach((e) => setRef(e, t));
|
|
173
172
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
173
|
+
function useComposedRefs(...t) {
|
|
174
|
+
return React$1.useCallback(composeRefs(...t), t);
|
|
176
175
|
}
|
|
177
|
-
var
|
|
178
|
-
function
|
|
176
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
177
|
+
function set(e, t, n = !1) {
|
|
179
178
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
180
179
|
let r = {};
|
|
181
180
|
Object.entries(t).forEach(([t, n]) => {
|
|
@@ -184,14 +183,14 @@ function M(e, t, n = !1) {
|
|
|
184
183
|
return;
|
|
185
184
|
}
|
|
186
185
|
r[t] = e.style[t], e.style[t] = n;
|
|
187
|
-
}), !n &&
|
|
186
|
+
}), !n && cache.set(e, r);
|
|
188
187
|
}
|
|
189
|
-
function
|
|
188
|
+
function reset(e, t) {
|
|
190
189
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
191
|
-
let n =
|
|
190
|
+
let n = cache.get(e);
|
|
192
191
|
n && (e.style[t] = n[t]);
|
|
193
192
|
}
|
|
194
|
-
var
|
|
193
|
+
var isVertical = (e) => {
|
|
195
194
|
switch (e) {
|
|
196
195
|
case "top":
|
|
197
196
|
case "bottom": return !0;
|
|
@@ -200,22 +199,22 @@ var N = (e) => {
|
|
|
200
199
|
default: return e;
|
|
201
200
|
}
|
|
202
201
|
};
|
|
203
|
-
function
|
|
202
|
+
function getTranslate(e, t) {
|
|
204
203
|
if (!e) return null;
|
|
205
204
|
let n = window.getComputedStyle(e), r = n.transform || n.webkitTransform || n.mozTransform, i = r.match(/^matrix3d\((.+)\)$/);
|
|
206
|
-
return i ? parseFloat(i[1].split(", ")[
|
|
205
|
+
return i ? parseFloat(i[1].split(", ")[isVertical(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[isVertical(t) ? 5 : 4]) : null);
|
|
207
206
|
}
|
|
208
|
-
function
|
|
207
|
+
function dampenValue(e) {
|
|
209
208
|
return 8 * (Math.log(e + 1) - 2);
|
|
210
209
|
}
|
|
211
|
-
function
|
|
210
|
+
function assignStyle(e, t) {
|
|
212
211
|
if (!e) return () => {};
|
|
213
212
|
let n = e.style.cssText;
|
|
214
213
|
return Object.assign(e.style, t), () => {
|
|
215
214
|
e.style.cssText = n;
|
|
216
215
|
};
|
|
217
216
|
}
|
|
218
|
-
var
|
|
217
|
+
var TRANSITIONS = {
|
|
219
218
|
DURATION: .5,
|
|
220
219
|
EASE: [
|
|
221
220
|
.32,
|
|
@@ -223,16 +222,16 @@ var I = {
|
|
|
223
222
|
0,
|
|
224
223
|
1
|
|
225
224
|
]
|
|
226
|
-
},
|
|
227
|
-
function
|
|
228
|
-
let n =
|
|
229
|
-
return
|
|
225
|
+
}, VELOCITY_THRESHOLD = .4, CLOSE_THRESHOLD = .25, SCROLL_LOCK_TIMEOUT = 100, BORDER_RADIUS = 8, NESTED_DISPLACEMENT = 16, WINDOW_TOP_OFFSET = 26, DRAG_CLASS = "vaul-dragging";
|
|
226
|
+
function useCallbackRef(e) {
|
|
227
|
+
let n = React.useRef(e);
|
|
228
|
+
return React.useEffect(() => {
|
|
230
229
|
n.current = e;
|
|
231
|
-
}),
|
|
230
|
+
}), React.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
|
|
232
231
|
}
|
|
233
|
-
function
|
|
234
|
-
let r =
|
|
235
|
-
return
|
|
232
|
+
function useUncontrolledState({ defaultProp: e, onChange: n }) {
|
|
233
|
+
let r = React.useState(e), [i] = r, a = React.useRef(i), o = useCallbackRef(n);
|
|
234
|
+
return React.useEffect(() => {
|
|
236
235
|
a.current !== i && (o(i), a.current = i);
|
|
237
236
|
}, [
|
|
238
237
|
i,
|
|
@@ -240,12 +239,12 @@ function de({ defaultProp: e, onChange: n }) {
|
|
|
240
239
|
o
|
|
241
240
|
]), r;
|
|
242
241
|
}
|
|
243
|
-
function
|
|
244
|
-
let [i, a] =
|
|
242
|
+
function useControllableState({ prop: e, defaultProp: n, onChange: r = () => {} }) {
|
|
243
|
+
let [i, a] = useUncontrolledState({
|
|
245
244
|
defaultProp: n,
|
|
246
245
|
onChange: r
|
|
247
|
-
}), o = e !== void 0, s = o ? e : i, c =
|
|
248
|
-
return [s,
|
|
246
|
+
}), o = e !== void 0, s = o ? e : i, c = useCallbackRef(r);
|
|
247
|
+
return [s, React.useCallback((t) => {
|
|
249
248
|
if (o) {
|
|
250
249
|
let n = typeof t == "function" ? t(e) : t;
|
|
251
250
|
n !== e && c(n);
|
|
@@ -257,16 +256,16 @@ function fe({ prop: e, defaultProp: n, onChange: r = () => {} }) {
|
|
|
257
256
|
c
|
|
258
257
|
])];
|
|
259
258
|
}
|
|
260
|
-
function
|
|
261
|
-
let [d, f] =
|
|
259
|
+
function useSnapPoints({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r, drawerRef: i, overlayRef: a, fadeFromIndex: o, onSnapPointChange: s, direction: c = "bottom", container: l, snapToSequentialPoint: u }) {
|
|
260
|
+
let [d, f] = useControllableState({
|
|
262
261
|
prop: e,
|
|
263
262
|
defaultProp: r?.[0],
|
|
264
263
|
onChange: n
|
|
265
|
-
}), [p, m] =
|
|
264
|
+
}), [p, m] = React.useState(typeof window < "u" ? {
|
|
266
265
|
innerWidth: window.innerWidth,
|
|
267
266
|
innerHeight: window.innerHeight
|
|
268
267
|
} : void 0);
|
|
269
|
-
|
|
268
|
+
React.useEffect(() => {
|
|
270
269
|
function e() {
|
|
271
270
|
m({
|
|
272
271
|
innerWidth: window.innerWidth,
|
|
@@ -275,7 +274,7 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
275
274
|
}
|
|
276
275
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
277
276
|
}, []);
|
|
278
|
-
let h =
|
|
277
|
+
let h = React.useMemo(() => d === r?.[r.length - 1] || null, [r, d]), g = React.useMemo(() => r?.findIndex((e) => e === d) ?? null, [r, d]), _ = r && r.length > 0 && (o || o === 0) && !Number.isNaN(o) && r[o] === d || !r, v = React.useMemo(() => {
|
|
279
278
|
let e = l ? {
|
|
280
279
|
width: l.getBoundingClientRect().width,
|
|
281
280
|
height: l.getBoundingClientRect().height
|
|
@@ -288,7 +287,7 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
288
287
|
};
|
|
289
288
|
return r?.map((t) => {
|
|
290
289
|
let n = typeof t == "string", r = 0;
|
|
291
|
-
if (n && (r = parseInt(t, 10)),
|
|
290
|
+
if (n && (r = parseInt(t, 10)), isVertical(c)) {
|
|
292
291
|
let i = n ? r : p ? t * e.height : 0;
|
|
293
292
|
return p ? c === "bottom" ? e.height - i : -e.height + i : i;
|
|
294
293
|
}
|
|
@@ -299,16 +298,16 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
299
298
|
r,
|
|
300
299
|
p,
|
|
301
300
|
l
|
|
302
|
-
]), y =
|
|
301
|
+
]), y = React.useMemo(() => g === null ? null : v?.[g], [v, g]), b = React.useCallback((e) => {
|
|
303
302
|
let t = v?.findIndex((t) => t === e) ?? null;
|
|
304
|
-
s(t),
|
|
305
|
-
transition: `transform ${
|
|
306
|
-
transform:
|
|
307
|
-
}), v && t !== v.length - 1 && o !== void 0 && t !== o && t < o ?
|
|
308
|
-
transition: `opacity ${
|
|
303
|
+
s(t), set(i.current, {
|
|
304
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
305
|
+
transform: isVertical(c) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
306
|
+
}), v && t !== v.length - 1 && o !== void 0 && t !== o && t < o ? set(a.current, {
|
|
307
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
309
308
|
opacity: "0"
|
|
310
|
-
}) :
|
|
311
|
-
transition: `opacity ${
|
|
309
|
+
}) : set(a.current, {
|
|
310
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
312
311
|
opacity: "1"
|
|
313
312
|
}), f(r?.[Math.max(t, 0)]);
|
|
314
313
|
}, [
|
|
@@ -319,7 +318,7 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
319
318
|
a,
|
|
320
319
|
f
|
|
321
320
|
]);
|
|
322
|
-
|
|
321
|
+
React.useEffect(() => {
|
|
323
322
|
if (d || e) {
|
|
324
323
|
let t = r?.findIndex((t) => t === e || t === d) ?? -1;
|
|
325
324
|
v && t !== -1 && typeof v[t] == "number" && b(v[t]);
|
|
@@ -334,7 +333,7 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
334
333
|
function x({ draggedDistance: e, closeDrawer: t, velocity: n, dismissible: i }) {
|
|
335
334
|
if (o === void 0) return;
|
|
336
335
|
let s = c === "bottom" || c === "right" ? (y ?? 0) - e : (y ?? 0) + e, l = g === o - 1, d = g === 0, f = e > 0;
|
|
337
|
-
if (l &&
|
|
336
|
+
if (l && set(a.current, { transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})` }), !u && n > 2 && !f) {
|
|
338
337
|
i ? t() : b(v[0]);
|
|
339
338
|
return;
|
|
340
339
|
}
|
|
@@ -342,8 +341,8 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
342
341
|
b(v[r.length - 1]);
|
|
343
342
|
return;
|
|
344
343
|
}
|
|
345
|
-
let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - s) < Math.abs(e - s) ? t : e), m =
|
|
346
|
-
if (n >
|
|
344
|
+
let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - s) < Math.abs(e - s) ? t : e), m = isVertical(c) ? window.innerHeight : window.innerWidth;
|
|
345
|
+
if (n > VELOCITY_THRESHOLD && Math.abs(e) < m * .4) {
|
|
347
346
|
let e = f ? 1 : -1;
|
|
348
347
|
if (e > 0 && h && r) {
|
|
349
348
|
b(v[r.length - 1]);
|
|
@@ -358,7 +357,7 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
358
357
|
function S({ draggedDistance: e }) {
|
|
359
358
|
if (y === null) return;
|
|
360
359
|
let t = c === "bottom" || c === "right" ? y - e : y + e;
|
|
361
|
-
(c === "bottom" || c === "right") && t < v[v.length - 1] || (c === "top" || c === "left") && t > v[v.length - 1] ||
|
|
360
|
+
(c === "bottom" || c === "right") && t < v[v.length - 1] || (c === "top" || c === "left") && t > v[v.length - 1] || set(i.current, { transform: isVertical(c) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
362
361
|
}
|
|
363
362
|
function C(e, t) {
|
|
364
363
|
if (!r || typeof g != "number" || !v || o === void 0) return null;
|
|
@@ -381,31 +380,31 @@ function pe({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: r,
|
|
|
381
380
|
snapPointsOffset: v
|
|
382
381
|
};
|
|
383
382
|
}
|
|
384
|
-
function
|
|
385
|
-
let { direction: e, isOpen: n, shouldScaleBackground: r, setBackgroundColorOnScale: a, noBodyStyles: o } =
|
|
383
|
+
function useScaleBackground() {
|
|
384
|
+
let { direction: e, isOpen: n, shouldScaleBackground: r, setBackgroundColorOnScale: a, noBodyStyles: o } = useDrawerContext(), s = React.useRef(null), l = useMemo(() => document.body.style.backgroundColor, []);
|
|
386
385
|
function u() {
|
|
387
|
-
return (window.innerWidth -
|
|
386
|
+
return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;
|
|
388
387
|
}
|
|
389
|
-
|
|
388
|
+
React.useEffect(() => {
|
|
390
389
|
if (n && r) {
|
|
391
390
|
s.current && clearTimeout(s.current);
|
|
392
391
|
let t = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
393
392
|
if (!t) return;
|
|
394
|
-
a && !o &&
|
|
395
|
-
transformOrigin:
|
|
393
|
+
a && !o && assignStyle(document.body, { background: "black" }), assignStyle(t, {
|
|
394
|
+
transformOrigin: isVertical(e) ? "top" : "left",
|
|
396
395
|
transitionProperty: "transform, border-radius",
|
|
397
|
-
transitionDuration: `${
|
|
398
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
396
|
+
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
|
397
|
+
transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(",")})`
|
|
399
398
|
});
|
|
400
|
-
let n =
|
|
401
|
-
borderRadius: `${
|
|
399
|
+
let n = assignStyle(t, {
|
|
400
|
+
borderRadius: `${BORDER_RADIUS}px`,
|
|
402
401
|
overflow: "hidden",
|
|
403
|
-
...
|
|
402
|
+
...isVertical(e) ? { transform: `scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)` } : { transform: `scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)` }
|
|
404
403
|
});
|
|
405
404
|
return () => {
|
|
406
405
|
n(), s.current = window.setTimeout(() => {
|
|
407
406
|
l ? document.body.style.background = l : document.body.style.removeProperty("background");
|
|
408
|
-
},
|
|
407
|
+
}, TRANSITIONS.DURATION * 1e3);
|
|
409
408
|
};
|
|
410
409
|
}
|
|
411
410
|
}, [
|
|
@@ -414,11 +413,11 @@ function me() {
|
|
|
414
413
|
l
|
|
415
414
|
]);
|
|
416
415
|
}
|
|
417
|
-
var
|
|
418
|
-
function
|
|
419
|
-
let [s, c] =
|
|
420
|
-
if (
|
|
421
|
-
|
|
416
|
+
var previousBodyPosition = null;
|
|
417
|
+
function usePositionFixed({ isOpen: e, modal: n, nested: r, hasBeenOpened: i, preventScrollRestoration: a, noBodyStyles: o }) {
|
|
418
|
+
let [s, c] = React.useState(() => typeof window < "u" ? window.location.href : ""), l = React.useRef(0), u = React.useCallback(() => {
|
|
419
|
+
if (isSafari() && previousBodyPosition === null && e && !o) {
|
|
420
|
+
previousBodyPosition = {
|
|
422
421
|
position: document.body.style.position,
|
|
423
422
|
top: document.body.style.top,
|
|
424
423
|
left: document.body.style.left,
|
|
@@ -436,30 +435,30 @@ function he({ isOpen: e, modal: n, nested: r, hasBeenOpened: i, preventScrollRes
|
|
|
436
435
|
e && l.current >= t && (document.body.style.top = `${-(l.current + e)}px`);
|
|
437
436
|
}), 300);
|
|
438
437
|
}
|
|
439
|
-
}, [e]), d =
|
|
440
|
-
if (
|
|
438
|
+
}, [e]), d = React.useCallback(() => {
|
|
439
|
+
if (isSafari() && previousBodyPosition !== null && !o) {
|
|
441
440
|
let e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
|
|
442
|
-
Object.assign(document.body.style,
|
|
441
|
+
Object.assign(document.body.style, previousBodyPosition), window.requestAnimationFrame(() => {
|
|
443
442
|
if (a && s !== window.location.href) {
|
|
444
443
|
c(window.location.href);
|
|
445
444
|
return;
|
|
446
445
|
}
|
|
447
446
|
window.scrollTo(t, e);
|
|
448
|
-
}),
|
|
447
|
+
}), previousBodyPosition = null;
|
|
449
448
|
}
|
|
450
449
|
}, [s]);
|
|
451
|
-
return
|
|
450
|
+
return React.useEffect(() => {
|
|
452
451
|
function e() {
|
|
453
452
|
l.current = window.scrollY;
|
|
454
453
|
}
|
|
455
454
|
return e(), window.addEventListener("scroll", e), () => {
|
|
456
455
|
window.removeEventListener("scroll", e);
|
|
457
456
|
};
|
|
458
|
-
}, []),
|
|
457
|
+
}, []), React.useEffect(() => {
|
|
459
458
|
if (n) return () => {
|
|
460
459
|
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || d();
|
|
461
460
|
};
|
|
462
|
-
}, [n, d]),
|
|
461
|
+
}, [n, d]), React.useEffect(() => {
|
|
463
462
|
r || !i || (e ? (!window.matchMedia("(display-mode: standalone)").matches && u(), n || window.setTimeout(() => {
|
|
464
463
|
d();
|
|
465
464
|
}, 500)) : d());
|
|
@@ -473,57 +472,57 @@ function he({ isOpen: e, modal: n, nested: r, hasBeenOpened: i, preventScrollRes
|
|
|
473
472
|
d
|
|
474
473
|
]), { restorePositionSetting: d };
|
|
475
474
|
}
|
|
476
|
-
function
|
|
477
|
-
let [
|
|
475
|
+
function Root({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: o, snapPoints: c, shouldScaleBackground: u = !1, setBackgroundColorOnScale: d = !0, closeThreshold: f = CLOSE_THRESHOLD, scrollLockTimeout: p = SCROLL_LOCK_TIMEOUT, dismissible: h = !0, handleOnly: g = !1, fadeFromIndex: _ = c && c.length - 1, activeSnapPoint: v, setActiveSnapPoint: y, fixed: b, modal: x = !0, onClose: S, nested: C, noBodyStyles: w = !1, direction: T = "bottom", defaultOpen: E = !1, disablePreventScroll: D = !0, snapToSequentialPoint: O = !1, preventScrollRestoration: k = !1, repositionInputs: A = !0, onAnimationEnd: ve, container: j, autoFocus: ye = !1 }) {
|
|
476
|
+
let [M = !1, N] = useControllableState({
|
|
478
477
|
defaultProp: E,
|
|
479
478
|
prop: e,
|
|
480
479
|
onChange: (e) => {
|
|
481
480
|
n?.(e), !e && !C && je(), setTimeout(() => {
|
|
482
|
-
|
|
483
|
-
},
|
|
481
|
+
ve?.(e);
|
|
482
|
+
}, TRANSITIONS.DURATION * 1e3), e && !x && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
484
483
|
document.body.style.pointerEvents = "auto";
|
|
485
484
|
}), e || (document.body.style.pointerEvents = "auto");
|
|
486
485
|
}
|
|
487
|
-
}), [
|
|
486
|
+
}), [P, be] = React.useState(!1), [F, I] = React.useState(!1), [xe, L] = React.useState(!1), R = React.useRef(null), z = React.useRef(null), B = React.useRef(null), V = React.useRef(null), H = React.useRef(null), U = React.useRef(!1), W = React.useRef(null), G = React.useRef(0), K = React.useRef(!1), q = React.useRef(!E), Se = React.useRef(0), J = React.useRef(null), Ce = React.useRef(J.current?.getBoundingClientRect().height || 0), we = React.useRef(J.current?.getBoundingClientRect().width || 0), Te = React.useRef(0), { activeSnapPoint: Ee, activeSnapPointIndex: Y, setActiveSnapPoint: De, onRelease: Oe, snapPointsOffset: X, onDrag: ke, shouldFade: Z, getPercentageDragged: Ae } = useSnapPoints({
|
|
488
487
|
snapPoints: c,
|
|
489
488
|
activeSnapPointProp: v,
|
|
490
489
|
setActiveSnapPointProp: y,
|
|
491
|
-
drawerRef:
|
|
490
|
+
drawerRef: J,
|
|
492
491
|
fadeFromIndex: _,
|
|
493
|
-
overlayRef:
|
|
494
|
-
onSnapPointChange:
|
|
495
|
-
c && e ===
|
|
492
|
+
overlayRef: R,
|
|
493
|
+
onSnapPointChange: React.useCallback((e) => {
|
|
494
|
+
c && e === X.length - 1 && (z.current = /* @__PURE__ */ new Date());
|
|
496
495
|
}, []),
|
|
497
496
|
direction: T,
|
|
498
497
|
container: j,
|
|
499
498
|
snapToSequentialPoint: O
|
|
500
499
|
});
|
|
501
|
-
|
|
502
|
-
let { restorePositionSetting: je } =
|
|
503
|
-
isOpen:
|
|
500
|
+
usePreventScroll({ isDisabled: !M || F || !x || xe || !P || !A || !D });
|
|
501
|
+
let { restorePositionSetting: je } = usePositionFixed({
|
|
502
|
+
isOpen: M,
|
|
504
503
|
modal: x,
|
|
505
504
|
nested: C ?? !1,
|
|
506
|
-
hasBeenOpened:
|
|
507
|
-
preventScrollRestoration:
|
|
505
|
+
hasBeenOpened: P,
|
|
506
|
+
preventScrollRestoration: k,
|
|
508
507
|
noBodyStyles: w
|
|
509
508
|
});
|
|
510
509
|
function Q() {
|
|
511
|
-
return (window.innerWidth -
|
|
510
|
+
return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;
|
|
512
511
|
}
|
|
513
512
|
function Me(e) {
|
|
514
|
-
!h && !c ||
|
|
513
|
+
!h && !c || J.current && !J.current.contains(e.target) || (Ce.current = J.current?.getBoundingClientRect().height || 0, we.current = J.current?.getBoundingClientRect().width || 0, I(!0), B.current = /* @__PURE__ */ new Date(), isIOS() && window.addEventListener("touchend", () => U.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), G.current = isVertical(T) ? e.pageY : e.pageX);
|
|
515
514
|
}
|
|
516
515
|
function Ne(e, t) {
|
|
517
|
-
let n = e, r = window.getSelection()?.toString(), i =
|
|
516
|
+
let n = e, r = window.getSelection()?.toString(), i = J.current ? getTranslate(J.current, T) : null, a = /* @__PURE__ */ new Date();
|
|
518
517
|
if (n.tagName === "SELECT" || n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
|
|
519
518
|
if (T === "right" || T === "left") return !0;
|
|
520
|
-
if (
|
|
519
|
+
if (z.current && a.getTime() - z.current.getTime() < 500) return !1;
|
|
521
520
|
if (i !== null && (T === "bottom" ? i > 0 : i < 0)) return !0;
|
|
522
521
|
if (r && r.length > 0) return !1;
|
|
523
|
-
if (
|
|
522
|
+
if (H.current && a.getTime() - H.current.getTime() < p && i === 0 || t) return H.current = a, !1;
|
|
524
523
|
for (; n;) {
|
|
525
524
|
if (n.scrollHeight > n.clientHeight) {
|
|
526
|
-
if (n.scrollTop !== 0) return
|
|
525
|
+
if (n.scrollTop !== 0) return H.current = /* @__PURE__ */ new Date(), !1;
|
|
527
526
|
if (n.getAttribute("role") === "dialog") return !0;
|
|
528
527
|
}
|
|
529
528
|
n = n.parentNode;
|
|
@@ -531,82 +530,82 @@ function B({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: o, sna
|
|
|
531
530
|
return !0;
|
|
532
531
|
}
|
|
533
532
|
function Pe(e) {
|
|
534
|
-
if (
|
|
535
|
-
let t = T === "bottom" || T === "right" ? 1 : -1, n = (
|
|
536
|
-
if (a &&
|
|
537
|
-
let o = Math.abs(n), s = document.querySelector("[data-vaul-drawer-wrapper]"), l = o / (T === "bottom" || T === "top" ?
|
|
538
|
-
if (d !== null && (l = d), a && l >= 1 || !
|
|
539
|
-
if (
|
|
540
|
-
let e =
|
|
541
|
-
|
|
533
|
+
if (J.current && F) {
|
|
534
|
+
let t = T === "bottom" || T === "right" ? 1 : -1, n = (G.current - (isVertical(T) ? e.pageY : e.pageX)) * t, r = n > 0, a = c && !h && !r;
|
|
535
|
+
if (a && Y === 0) return;
|
|
536
|
+
let o = Math.abs(n), s = document.querySelector("[data-vaul-drawer-wrapper]"), l = o / (T === "bottom" || T === "top" ? Ce.current : we.current), d = Ae(o, r);
|
|
537
|
+
if (d !== null && (l = d), a && l >= 1 || !U.current && !Ne(e.target, r)) return;
|
|
538
|
+
if (J.current.classList.add(DRAG_CLASS), U.current = !0, set(J.current, { transition: "none" }), set(R.current, { transition: "none" }), c && ke({ draggedDistance: n }), r && !c) {
|
|
539
|
+
let e = dampenValue(n), r = Math.min(e * -1, 0) * t;
|
|
540
|
+
set(J.current, { transform: isVertical(T) ? `translate3d(0, ${r}px, 0)` : `translate3d(${r}px, 0, 0)` });
|
|
542
541
|
return;
|
|
543
542
|
}
|
|
544
543
|
let f = 1 - l;
|
|
545
|
-
if ((
|
|
544
|
+
if ((Z || _ && Y === _ - 1) && (i?.(e, l), set(R.current, {
|
|
546
545
|
opacity: `${f}`,
|
|
547
546
|
transition: "none"
|
|
548
|
-
}, !0)), s &&
|
|
547
|
+
}, !0)), s && R.current && u) {
|
|
549
548
|
let e = Math.min(Q() + l * (1 - Q()), 1), t = 8 - l * 8, n = Math.max(0, 14 - l * 14);
|
|
550
|
-
|
|
549
|
+
set(s, {
|
|
551
550
|
borderRadius: `${t}px`,
|
|
552
|
-
transform:
|
|
551
|
+
transform: isVertical(T) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
|
|
553
552
|
transition: "none"
|
|
554
553
|
}, !0);
|
|
555
554
|
}
|
|
556
555
|
if (!c) {
|
|
557
556
|
let e = o * t;
|
|
558
|
-
|
|
557
|
+
set(J.current, { transform: isVertical(T) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
|
|
559
558
|
}
|
|
560
559
|
}
|
|
561
560
|
}
|
|
562
|
-
|
|
561
|
+
React.useEffect(() => {
|
|
563
562
|
window.requestAnimationFrame(() => {
|
|
564
|
-
|
|
563
|
+
q.current = !0;
|
|
565
564
|
});
|
|
566
|
-
}, []),
|
|
565
|
+
}, []), React.useEffect(() => {
|
|
567
566
|
var e;
|
|
568
567
|
function t() {
|
|
569
|
-
if (!
|
|
568
|
+
if (!J.current || !A) return;
|
|
570
569
|
let e = document.activeElement;
|
|
571
|
-
if (
|
|
572
|
-
let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r =
|
|
573
|
-
|
|
574
|
-
let a =
|
|
575
|
-
if (Math.abs(
|
|
576
|
-
let e =
|
|
570
|
+
if (isInput(e) || K.current) {
|
|
571
|
+
let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r = J.current.getBoundingClientRect().height || 0, i = r > t * .8;
|
|
572
|
+
Te.current ||= r;
|
|
573
|
+
let a = J.current.getBoundingClientRect().top;
|
|
574
|
+
if (Math.abs(Se.current - n) > 60 && (K.current = !K.current), c && c.length > 0 && X && Y) {
|
|
575
|
+
let e = X[Y] || 0;
|
|
577
576
|
n += e;
|
|
578
577
|
}
|
|
579
|
-
if (
|
|
580
|
-
let t =
|
|
581
|
-
t > e && (r = e - (i ? a :
|
|
582
|
-
} else
|
|
583
|
-
c && c.length > 0 && !
|
|
578
|
+
if (Se.current = n, r > e || K.current) {
|
|
579
|
+
let t = J.current.getBoundingClientRect().height, r = t;
|
|
580
|
+
t > e && (r = e - (i ? a : WINDOW_TOP_OFFSET)), b ? J.current.style.height = `${t - Math.max(n, 0)}px` : J.current.style.height = `${Math.max(r, e - a)}px`;
|
|
581
|
+
} else isMobileFirefox() || (J.current.style.height = `${Te.current}px`);
|
|
582
|
+
c && c.length > 0 && !K.current ? J.current.style.bottom = "0px" : J.current.style.bottom = `${Math.max(n, 0)}px`;
|
|
584
583
|
}
|
|
585
584
|
}
|
|
586
585
|
return (e = window.visualViewport) == null || e.addEventListener("resize", t), () => window.visualViewport?.removeEventListener("resize", t);
|
|
587
586
|
}, [
|
|
588
|
-
|
|
587
|
+
Y,
|
|
589
588
|
c,
|
|
590
|
-
|
|
589
|
+
X
|
|
591
590
|
]);
|
|
592
591
|
function $(e) {
|
|
593
|
-
Ie(), S?.(), e ||
|
|
594
|
-
c &&
|
|
595
|
-
},
|
|
592
|
+
Ie(), S?.(), e || N(!1), setTimeout(() => {
|
|
593
|
+
c && De(c[0]);
|
|
594
|
+
}, TRANSITIONS.DURATION * 1e3);
|
|
596
595
|
}
|
|
597
596
|
function Fe() {
|
|
598
|
-
if (!
|
|
599
|
-
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t =
|
|
600
|
-
|
|
597
|
+
if (!J.current) return;
|
|
598
|
+
let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = getTranslate(J.current, T);
|
|
599
|
+
set(J.current, {
|
|
601
600
|
transform: "translate3d(0, 0, 0)",
|
|
602
|
-
transition: `transform ${
|
|
603
|
-
}),
|
|
604
|
-
transition: `opacity ${
|
|
601
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`
|
|
602
|
+
}), set(R.current, {
|
|
603
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
605
604
|
opacity: "1"
|
|
606
|
-
}), u && t && t > 0 &&
|
|
607
|
-
borderRadius: `${
|
|
605
|
+
}), u && t && t > 0 && M && set(e, {
|
|
606
|
+
borderRadius: `${BORDER_RADIUS}px`,
|
|
608
607
|
overflow: "hidden",
|
|
609
|
-
...
|
|
608
|
+
...isVertical(T) ? {
|
|
610
609
|
transform: `scale(${Q()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
611
610
|
transformOrigin: "top"
|
|
612
611
|
} : {
|
|
@@ -614,23 +613,23 @@ function B({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: o, sna
|
|
|
614
613
|
transformOrigin: "left"
|
|
615
614
|
},
|
|
616
615
|
transitionProperty: "transform, border-radius",
|
|
617
|
-
transitionDuration: `${
|
|
618
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
616
|
+
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
|
617
|
+
transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(",")})`
|
|
619
618
|
}, !0);
|
|
620
619
|
}
|
|
621
620
|
function Ie() {
|
|
622
|
-
!
|
|
621
|
+
!F || !J.current || (J.current.classList.remove(DRAG_CLASS), U.current = !1, I(!1), V.current = /* @__PURE__ */ new Date());
|
|
623
622
|
}
|
|
624
623
|
function Le(e) {
|
|
625
|
-
if (!
|
|
626
|
-
|
|
627
|
-
let t =
|
|
628
|
-
if (!e || !Ne(e.target, !1) || !t || Number.isNaN(t) ||
|
|
629
|
-
let n =
|
|
630
|
-
if (i > .05 && (
|
|
631
|
-
|
|
624
|
+
if (!F || !J.current) return;
|
|
625
|
+
J.current.classList.remove(DRAG_CLASS), U.current = !1, I(!1), V.current = /* @__PURE__ */ new Date();
|
|
626
|
+
let t = getTranslate(J.current, T);
|
|
627
|
+
if (!e || !Ne(e.target, !1) || !t || Number.isNaN(t) || B.current === null) return;
|
|
628
|
+
let n = V.current.getTime() - B.current.getTime(), r = G.current - (isVertical(T) ? e.pageY : e.pageX), i = Math.abs(r) / n;
|
|
629
|
+
if (i > .05 && (L(!0), setTimeout(() => {
|
|
630
|
+
L(!1);
|
|
632
631
|
}, 200)), c) {
|
|
633
|
-
|
|
632
|
+
Oe({
|
|
634
633
|
draggedDistance: r * (T === "bottom" || T === "right" ? 1 : -1),
|
|
635
634
|
closeDrawer: $,
|
|
636
635
|
velocity: i,
|
|
@@ -642,95 +641,95 @@ function B({ open: e, onOpenChange: n, children: r, onDrag: i, onRelease: o, sna
|
|
|
642
641
|
Fe(), o?.(e, !0);
|
|
643
642
|
return;
|
|
644
643
|
}
|
|
645
|
-
if (i >
|
|
644
|
+
if (i > VELOCITY_THRESHOLD) {
|
|
646
645
|
$(), o?.(e, !1);
|
|
647
646
|
return;
|
|
648
647
|
}
|
|
649
|
-
let a = Math.min(
|
|
650
|
-
if (Math.abs(t) >= (
|
|
648
|
+
let a = Math.min(J.current.getBoundingClientRect().height ?? 0, window.innerHeight), s = Math.min(J.current.getBoundingClientRect().width ?? 0, window.innerWidth), l = T === "left" || T === "right";
|
|
649
|
+
if (Math.abs(t) >= (l ? s : a) * f) {
|
|
651
650
|
$(), o?.(e, !1);
|
|
652
651
|
return;
|
|
653
652
|
}
|
|
654
653
|
o?.(e, !0), Fe();
|
|
655
654
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}), [
|
|
655
|
+
React.useEffect(() => (M && (set(document.documentElement, { scrollBehavior: "auto" }), z.current = /* @__PURE__ */ new Date()), () => {
|
|
656
|
+
reset(document.documentElement, "scrollBehavior");
|
|
657
|
+
}), [M]);
|
|
659
658
|
function Re(e) {
|
|
660
|
-
let t = e ? (window.innerWidth -
|
|
661
|
-
|
|
662
|
-
transition: `transform ${
|
|
663
|
-
transform:
|
|
664
|
-
}), !e &&
|
|
665
|
-
let e =
|
|
666
|
-
|
|
659
|
+
let t = e ? (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth : 1, n = e ? -NESTED_DISPLACEMENT : 0;
|
|
660
|
+
W.current && window.clearTimeout(W.current), set(J.current, {
|
|
661
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
662
|
+
transform: isVertical(T) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
|
|
663
|
+
}), !e && J.current && (W.current = setTimeout(() => {
|
|
664
|
+
let e = getTranslate(J.current, T);
|
|
665
|
+
set(J.current, {
|
|
667
666
|
transition: "none",
|
|
668
|
-
transform:
|
|
667
|
+
transform: isVertical(T) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
669
668
|
});
|
|
670
669
|
}, 500));
|
|
671
670
|
}
|
|
672
671
|
function ze(e, t) {
|
|
673
672
|
if (t < 0) return;
|
|
674
|
-
let n = (window.innerWidth -
|
|
675
|
-
|
|
676
|
-
transform:
|
|
673
|
+
let n = (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth, r = n + t * (1 - n), i = -NESTED_DISPLACEMENT + t * NESTED_DISPLACEMENT;
|
|
674
|
+
set(J.current, {
|
|
675
|
+
transform: isVertical(T) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
677
676
|
transition: "none"
|
|
678
677
|
});
|
|
679
678
|
}
|
|
680
679
|
function Be(e, t) {
|
|
681
|
-
let n =
|
|
682
|
-
t &&
|
|
683
|
-
transition: `transform ${
|
|
684
|
-
transform:
|
|
680
|
+
let n = isVertical(T) ? window.innerHeight : window.innerWidth, r = t ? (n - NESTED_DISPLACEMENT) / n : 1, i = t ? -NESTED_DISPLACEMENT : 0;
|
|
681
|
+
t && set(J.current, {
|
|
682
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(",")})`,
|
|
683
|
+
transform: isVertical(T) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
|
|
685
684
|
});
|
|
686
685
|
}
|
|
687
|
-
return
|
|
686
|
+
return React.useEffect(() => {
|
|
688
687
|
x || window.requestAnimationFrame(() => {
|
|
689
688
|
document.body.style.pointerEvents = "auto";
|
|
690
689
|
});
|
|
691
|
-
}, [x]), /* @__PURE__ */
|
|
690
|
+
}, [x]), /* @__PURE__ */ React.createElement(DialogPrimitive.Root, {
|
|
692
691
|
defaultOpen: E,
|
|
693
692
|
onOpenChange: (e) => {
|
|
694
|
-
!h && !e || (e ?
|
|
693
|
+
!h && !e || (e ? be(!0) : $(!0), N(e));
|
|
695
694
|
},
|
|
696
|
-
open:
|
|
697
|
-
}, /* @__PURE__ */
|
|
698
|
-
activeSnapPoint:
|
|
695
|
+
open: M
|
|
696
|
+
}, /* @__PURE__ */ React.createElement(DrawerContext.Provider, { value: {
|
|
697
|
+
activeSnapPoint: Ee,
|
|
699
698
|
snapPoints: c,
|
|
700
|
-
setActiveSnapPoint:
|
|
701
|
-
drawerRef:
|
|
702
|
-
overlayRef:
|
|
699
|
+
setActiveSnapPoint: De,
|
|
700
|
+
drawerRef: J,
|
|
701
|
+
overlayRef: R,
|
|
703
702
|
onOpenChange: n,
|
|
704
703
|
onPress: Me,
|
|
705
704
|
onRelease: Le,
|
|
706
705
|
onDrag: Pe,
|
|
707
706
|
dismissible: h,
|
|
708
|
-
shouldAnimate:
|
|
707
|
+
shouldAnimate: q,
|
|
709
708
|
handleOnly: g,
|
|
710
|
-
isOpen:
|
|
711
|
-
isDragging:
|
|
712
|
-
shouldFade:
|
|
709
|
+
isOpen: M,
|
|
710
|
+
isDragging: F,
|
|
711
|
+
shouldFade: Z,
|
|
713
712
|
closeDrawer: $,
|
|
714
713
|
onNestedDrag: ze,
|
|
715
714
|
onNestedOpenChange: Re,
|
|
716
715
|
onNestedRelease: Be,
|
|
717
|
-
keyboardIsOpen:
|
|
716
|
+
keyboardIsOpen: K,
|
|
718
717
|
modal: x,
|
|
719
|
-
snapPointsOffset:
|
|
720
|
-
activeSnapPointIndex:
|
|
718
|
+
snapPointsOffset: X,
|
|
719
|
+
activeSnapPointIndex: Y,
|
|
721
720
|
direction: T,
|
|
722
721
|
shouldScaleBackground: u,
|
|
723
722
|
setBackgroundColorOnScale: d,
|
|
724
723
|
noBodyStyles: w,
|
|
725
724
|
container: j,
|
|
726
|
-
autoFocus:
|
|
725
|
+
autoFocus: ye
|
|
727
726
|
} }, r));
|
|
728
727
|
}
|
|
729
|
-
var
|
|
730
|
-
let { overlayRef: r, snapPoints: i, onRelease: o, shouldFade: s, isOpen: l, modal: u, shouldAnimate: d } =
|
|
728
|
+
var Overlay = /* @__PURE__ */ React.forwardRef(function({ ...e }, n) {
|
|
729
|
+
let { overlayRef: r, snapPoints: i, onRelease: o, shouldFade: s, isOpen: l, modal: u, shouldAnimate: d } = useDrawerContext(), f = useComposedRefs(n, r), p = i && i.length > 0;
|
|
731
730
|
if (!u) return null;
|
|
732
|
-
let m =
|
|
733
|
-
return /* @__PURE__ */
|
|
731
|
+
let m = React.useCallback((e) => o(e), [o]);
|
|
732
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Overlay, {
|
|
734
733
|
onMouseUp: m,
|
|
735
734
|
ref: f,
|
|
736
735
|
"data-vaul-overlay": "",
|
|
@@ -740,11 +739,11 @@ var V = /* @__PURE__ */ t.forwardRef(function({ ...e }, n) {
|
|
|
740
739
|
...e
|
|
741
740
|
});
|
|
742
741
|
});
|
|
743
|
-
|
|
744
|
-
var
|
|
745
|
-
let { drawerRef: s, onPress: l, onRelease: u, onDrag: d, keyboardIsOpen: f, snapPointsOffset: p, activeSnapPointIndex: m, modal: h, isOpen: g, direction: _, snapPoints: v, container: y, handleOnly: b, shouldAnimate: x, autoFocus: S } =
|
|
746
|
-
|
|
747
|
-
let
|
|
742
|
+
Overlay.displayName = "Drawer.Overlay";
|
|
743
|
+
var Content = /* @__PURE__ */ React.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: r, ...i }, o) {
|
|
744
|
+
let { drawerRef: s, onPress: l, onRelease: u, onDrag: d, keyboardIsOpen: f, snapPointsOffset: p, activeSnapPointIndex: m, modal: h, isOpen: g, direction: _, snapPoints: v, container: y, handleOnly: b, shouldAnimate: x, autoFocus: S } = useDrawerContext(), [C, w] = React.useState(!1), ge = useComposedRefs(o, s), T = React.useRef(null), E = React.useRef(null), D = React.useRef(!1), O = v && v.length > 0;
|
|
745
|
+
useScaleBackground();
|
|
746
|
+
let _e = (e, t, n = 0) => {
|
|
748
747
|
if (D.current) return !0;
|
|
749
748
|
let r = Math.abs(e.y), i = Math.abs(e.x), a = i > r, o = ["bottom", "right"].includes(t) ? 1 : -1;
|
|
750
749
|
if (t === "left" || t === "right") {
|
|
@@ -752,15 +751,15 @@ var ge = /* @__PURE__ */ t.forwardRef(function({ onPointerDownOutside: e, style:
|
|
|
752
751
|
} else if (!(e.y * o < 0) && r >= 0 && r <= n) return !a;
|
|
753
752
|
return D.current = !0, !0;
|
|
754
753
|
};
|
|
755
|
-
|
|
754
|
+
React.useEffect(() => {
|
|
756
755
|
O && window.requestAnimationFrame(() => {
|
|
757
756
|
w(!0);
|
|
758
757
|
});
|
|
759
758
|
}, []);
|
|
760
|
-
function
|
|
759
|
+
function k(e) {
|
|
761
760
|
T.current = null, D.current = !1, u(e);
|
|
762
761
|
}
|
|
763
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Content, {
|
|
764
763
|
"data-vaul-drawer-direction": _,
|
|
765
764
|
"data-vaul-drawer": "",
|
|
766
765
|
"data-vaul-delayed-snap-points": C ? "true" : "false",
|
|
@@ -768,7 +767,7 @@ var ge = /* @__PURE__ */ t.forwardRef(function({ onPointerDownOutside: e, style:
|
|
|
768
767
|
"data-vaul-custom-container": y ? "true" : "false",
|
|
769
768
|
"data-vaul-animate": x?.current ? "true" : "false",
|
|
770
769
|
...i,
|
|
771
|
-
ref:
|
|
770
|
+
ref: ge,
|
|
772
771
|
style: p && p.length > 0 ? {
|
|
773
772
|
"--snap-point-height": `${p[m ?? 0]}px`,
|
|
774
773
|
...n
|
|
@@ -798,7 +797,7 @@ var ge = /* @__PURE__ */ t.forwardRef(function({ onPointerDownOutside: e, style:
|
|
|
798
797
|
onPointerMove: (e) => {
|
|
799
798
|
if (E.current = e, b || (i.onPointerMove == null || i.onPointerMove.call(i, e), !T.current)) return;
|
|
800
799
|
let t = e.pageY - T.current.y, n = e.pageX - T.current.x, r = e.pointerType === "touch" ? 10 : 2;
|
|
801
|
-
|
|
800
|
+
_e({
|
|
802
801
|
x: n,
|
|
803
802
|
y: t
|
|
804
803
|
}, _, r) ? d(e) : (Math.abs(n) > r || Math.abs(t) > r) && (T.current = null);
|
|
@@ -807,16 +806,16 @@ var ge = /* @__PURE__ */ t.forwardRef(function({ onPointerDownOutside: e, style:
|
|
|
807
806
|
i.onPointerUp == null || i.onPointerUp.call(i, e), T.current = null, D.current = !1, u(e);
|
|
808
807
|
},
|
|
809
808
|
onPointerOut: (e) => {
|
|
810
|
-
i.onPointerOut == null || i.onPointerOut.call(i, e),
|
|
809
|
+
i.onPointerOut == null || i.onPointerOut.call(i, e), k(E.current);
|
|
811
810
|
},
|
|
812
811
|
onContextMenu: (e) => {
|
|
813
|
-
i.onContextMenu == null || i.onContextMenu.call(i, e), E.current &&
|
|
812
|
+
i.onContextMenu == null || i.onContextMenu.call(i, e), E.current && k(E.current);
|
|
814
813
|
}
|
|
815
814
|
});
|
|
816
815
|
});
|
|
817
|
-
|
|
818
|
-
var
|
|
819
|
-
let { closeDrawer: a, isDragging: o, snapPoints: s, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: d, handleOnly: f, isOpen: p, onPress: m, onDrag: h } =
|
|
816
|
+
Content.displayName = "Drawer.Content";
|
|
817
|
+
var LONG_HANDLE_PRESS_TIMEOUT = 250, DOUBLE_TAP_TIMEOUT = 120, Handle = /* @__PURE__ */ React.forwardRef(function({ preventCycle: e = !1, children: n, ...r }, i) {
|
|
818
|
+
let { closeDrawer: a, isDragging: o, snapPoints: s, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: d, handleOnly: f, isOpen: p, onPress: m, onDrag: h } = useDrawerContext(), g = React.useRef(null), _ = React.useRef(!1);
|
|
820
819
|
function v() {
|
|
821
820
|
if (_.current) {
|
|
822
821
|
x();
|
|
@@ -824,7 +823,7 @@ var _e = 250, H = 120, U = /* @__PURE__ */ t.forwardRef(function({ preventCycle:
|
|
|
824
823
|
}
|
|
825
824
|
window.setTimeout(() => {
|
|
826
825
|
y();
|
|
827
|
-
},
|
|
826
|
+
}, DOUBLE_TAP_TIMEOUT);
|
|
828
827
|
}
|
|
829
828
|
function y() {
|
|
830
829
|
if (o || e || _.current) {
|
|
@@ -847,12 +846,12 @@ var _e = 250, H = 120, U = /* @__PURE__ */ t.forwardRef(function({ preventCycle:
|
|
|
847
846
|
function b() {
|
|
848
847
|
g.current = window.setTimeout(() => {
|
|
849
848
|
_.current = !0;
|
|
850
|
-
},
|
|
849
|
+
}, LONG_HANDLE_PRESS_TIMEOUT);
|
|
851
850
|
}
|
|
852
851
|
function x() {
|
|
853
852
|
g.current && window.clearTimeout(g.current), _.current = !1;
|
|
854
853
|
}
|
|
855
|
-
return /* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
856
855
|
onClick: v,
|
|
857
856
|
onPointerCancel: x,
|
|
858
857
|
onPointerDown: (e) => {
|
|
@@ -866,16 +865,16 @@ var _e = 250, H = 120, U = /* @__PURE__ */ t.forwardRef(function({ preventCycle:
|
|
|
866
865
|
"data-vaul-handle": "",
|
|
867
866
|
"aria-hidden": "true",
|
|
868
867
|
...r
|
|
869
|
-
}, /* @__PURE__ */
|
|
868
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
870
869
|
"data-vaul-handle-hitarea": "",
|
|
871
870
|
"aria-hidden": "true"
|
|
872
871
|
}, n));
|
|
873
872
|
});
|
|
874
|
-
|
|
875
|
-
function
|
|
876
|
-
let { onNestedDrag: a, onNestedOpenChange: o, onNestedRelease: s } =
|
|
873
|
+
Handle.displayName = "Drawer.Handle";
|
|
874
|
+
function NestedRoot({ onDrag: e, onOpenChange: n, open: r, ...i }) {
|
|
875
|
+
let { onNestedDrag: a, onNestedOpenChange: o, onNestedRelease: s } = useDrawerContext();
|
|
877
876
|
if (!a) throw Error("Drawer.NestedRoot must be placed in another drawer");
|
|
878
|
-
return /* @__PURE__ */
|
|
877
|
+
return /* @__PURE__ */ React.createElement(Root, {
|
|
879
878
|
nested: !0,
|
|
880
879
|
open: r,
|
|
881
880
|
onClose: () => {
|
|
@@ -891,24 +890,23 @@ function W({ onDrag: e, onOpenChange: n, open: r, ...i }) {
|
|
|
891
890
|
...i
|
|
892
891
|
});
|
|
893
892
|
}
|
|
894
|
-
function
|
|
895
|
-
let n =
|
|
896
|
-
return /* @__PURE__ */
|
|
893
|
+
function Portal(e) {
|
|
894
|
+
let n = useDrawerContext(), { container: r = n.container, ...i } = e;
|
|
895
|
+
return /* @__PURE__ */ React.createElement(DialogPrimitive.Portal, {
|
|
897
896
|
container: r,
|
|
898
897
|
...i
|
|
899
898
|
});
|
|
900
899
|
}
|
|
901
|
-
var
|
|
902
|
-
Root
|
|
903
|
-
NestedRoot
|
|
904
|
-
Content
|
|
905
|
-
Overlay
|
|
906
|
-
Trigger:
|
|
907
|
-
Portal
|
|
908
|
-
Handle
|
|
909
|
-
Close:
|
|
910
|
-
Title:
|
|
911
|
-
Description:
|
|
900
|
+
var Drawer = {
|
|
901
|
+
Root,
|
|
902
|
+
NestedRoot,
|
|
903
|
+
Content,
|
|
904
|
+
Overlay,
|
|
905
|
+
Trigger: DialogPrimitive.Trigger,
|
|
906
|
+
Portal,
|
|
907
|
+
Handle,
|
|
908
|
+
Close: DialogPrimitive.Close,
|
|
909
|
+
Title: DialogPrimitive.Title,
|
|
910
|
+
Description: DialogPrimitive.Description
|
|
912
911
|
};
|
|
913
|
-
|
|
914
|
-
export { K as Drawer };
|
|
912
|
+
export { Drawer };
|