alinea 2.0.0-preview.9 → 2.0.0-rc2
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/.init/.mcp.json +11 -0
- package/dist/.init/AGENTS.md +17 -0
- package/dist/.init/CLAUDE.md +1 -0
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/.init/package.json +1 -1
- package/dist/.init/src/cms.ts +4 -2
- package/dist/.init-pm/bun.lock +0 -0
- package/dist/.mcp/later/dev.json +1 -0
- package/dist/.mcp/lock/dev.json +1 -0
- package/dist/.mcp/online/dev.json +1 -0
- package/dist/LICENSES.md +2239 -294
- package/dist/adapter/next/cms.d.ts +2 -2
- package/dist/adapter/next/cms.js +66 -32
- package/dist/adapter/next/context.js +5 -6
- package/dist/adapter/next/dashboardUrl.d.ts +6 -0
- package/dist/adapter/next/dashboardUrl.js +13 -0
- package/dist/adapter/next/devCache.d.ts +16 -0
- package/dist/adapter/next/devCache.js +32 -0
- package/dist/adapter/next/handler.js +18 -4
- package/dist/adapter/next/syncCheck.d.ts +15 -2
- package/dist/adapter/next/syncCheck.js +26 -9
- package/dist/adapter/next/with-alinea.js +27 -20
- package/dist/backend/CommitEntries.d.ts +17 -0
- package/dist/backend/CommitEntries.js +39 -0
- package/dist/backend/Handler.d.ts +15 -1
- package/dist/backend/Handler.js +106 -32
- package/dist/backend/api/BasicAuth.js +5 -1
- package/dist/backend/api/BlobStore.d.ts +21 -0
- package/dist/backend/api/BlobStore.js +63 -0
- package/dist/backend/api/CreateBackend.js +10 -8
- package/dist/backend/api/DatabaseApi.d.ts +4 -1
- package/dist/backend/api/DatabaseApi.js +104 -7
- package/dist/backend/api/GithubApi.d.ts +13 -0
- package/dist/backend/api/GithubApi.js +217 -54
- package/dist/backend/api/OAuth2.js +21 -26
- package/dist/backend/api/ProxyMedia.js +3 -0
- package/dist/backend/api/database.js +6 -6
- package/dist/backend/store/GeneratedDatabase.js +4 -2
- package/dist/backend/store/GeneratedDatabaseNode.d.ts +5 -1
- package/dist/backend/store/GeneratedDatabaseNode.js +9 -19
- package/dist/backend/store/GeneratedRelease.d.ts +1 -1
- package/dist/backend/store/GeneratedRelease.js +3 -4
- package/dist/backend/util/JWKS.d.ts +4 -0
- package/dist/backend/util/JWKS.js +40 -0
- package/dist/backend/util/Syncable.d.ts +6 -0
- package/dist/backend/util/Syncable.js +3 -1
- package/dist/bundled.d.ts +7124 -1459
- package/dist/chunks/{node-sqlite-XVNTNMCY.js → bun-sqlite-RI6BYU5S.js} +3 -3
- package/dist/chunks/ccitt-Y7TDCCPM.js +90 -0
- package/dist/chunks/{chunk-ASYKC6IE.js → chunk-2PP7WJUJ.js} +2 -12
- package/dist/chunks/{chunk-DWR5A5KL.js → chunk-4VKHBA57.js} +25 -6
- package/dist/chunks/{chunk-QJGGYF6E.js → chunk-4ZA6KZHS.js} +5 -5
- package/dist/chunks/{chunk-OFEKTDRF.js → chunk-7DDPSWRY.js} +8383 -5156
- package/dist/chunks/{chunk-ETWOY4AL.js → chunk-A2I6MCCS.js} +1 -1
- package/dist/chunks/chunk-CYVOGRSD.js +218 -0
- package/dist/chunks/{chunk-TIJTT5ZI.js → chunk-G43W7AME.js} +1 -0
- package/dist/chunks/{chunk-KMLLLZ6X.js → chunk-NP4M2257.js} +1 -0
- package/dist/chunks/{chunk-D6RGFNUW.js → chunk-PMGIIYDD.js} +14215 -8950
- package/dist/chunks/{chunk-IYAQC63Y.js → chunk-PSSMQKAH.js} +1607 -744
- package/dist/chunks/{chunk-AIU6CMVT.js → chunk-PTYZMV5G.js} +1 -1
- package/dist/chunks/{chunk-66YZ47TY.js → chunk-RAR44T5O.js} +1 -1
- package/dist/chunks/chunk-RE6CDK2M.js +254 -0
- package/dist/chunks/{chunk-UPY2RUZF.js → chunk-TWBREZWC.js} +30 -0
- package/dist/chunks/{chunk-QSN6RH6X.js → chunk-VA6NC3MI.js} +1 -1
- package/dist/chunks/dist-IDG44KDI.js +7499 -0
- package/dist/chunks/jpeg-OJTBZV3C.js +292 -0
- package/dist/chunks/jpx-4VRYG2JB.js +667 -0
- package/dist/chunks/{bun-sqlite-5SHXN3AT.js → node-sqlite-C7VJ2NSN.js} +3 -3
- package/dist/cli/Generate.d.ts +2 -1
- package/dist/cli/Generate.js +55 -24
- package/dist/cli/Init.d.ts +43 -2
- package/dist/cli/Init.js +144 -28
- package/dist/cli/Mcp.d.ts +25 -0
- package/dist/cli/Mcp.js +106 -0
- package/dist/cli/Serve.d.ts +1 -1
- package/dist/cli/Serve.js +14 -6
- package/dist/cli/bin.js +33 -11
- package/dist/cli/build/BuildEmitter.d.ts +5 -1
- package/dist/cli/build/BuildEmitter.js +8 -3
- package/dist/cli/generate/CompileConfig.js +10 -6
- package/dist/cli/generate/CopyStaticFiles.d.ts +1 -1
- package/dist/cli/generate/CopyStaticFiles.js +27 -14
- package/dist/cli/generate/DevDB.d.ts +4 -1
- package/dist/cli/generate/DevDB.js +15 -7
- package/dist/cli/generate/GenerateContext.d.ts +3 -0
- package/dist/cli/generate/GenerateDashboard.d.ts +1 -1
- package/dist/cli/generate/GenerateDashboard.js +20 -6
- package/dist/cli/generate/GeneratedPaths.d.ts +21 -0
- package/dist/cli/generate/GeneratedPaths.js +33 -0
- package/dist/cli/generate/LinkMediaFiles.d.ts +7 -0
- package/dist/cli/generate/LinkMediaFiles.js +52 -0
- package/dist/cli/generate/MediaLocations.d.ts +18 -0
- package/dist/cli/generate/MediaLocations.js +69 -0
- package/dist/cli/serve/CreateLocalServer.d.ts +2 -1
- package/dist/cli/serve/CreateLocalServer.js +41 -11
- package/dist/cli/serve/DevLock.d.ts +11 -0
- package/dist/cli/serve/DevLock.js +42 -0
- package/dist/cli/serve/DevServer.d.ts +3 -2
- package/dist/cli/serve/DevServer.js +18 -6
- package/dist/cli/serve/LiveReload.d.ts +1 -1
- package/dist/cli/serve/LiveReload.js +3 -2
- package/dist/cli/serve/ServeContext.d.ts +0 -1
- package/dist/cli/serve/StartServer.d.ts +2 -1
- package/dist/cli/serve/StartServer.js +4 -2
- package/dist/cli/serve/mcp/DevMcp.d.ts +16 -0
- package/dist/cli/serve/mcp/DevMcp.js +50 -0
- package/dist/cli/serve/mcp/McpGraph.d.ts +35 -0
- package/dist/cli/serve/mcp/McpGraph.js +64 -0
- package/dist/cli/serve/mcp/McpInput.d.ts +11 -0
- package/dist/cli/serve/mcp/McpInput.js +254 -0
- package/dist/cli/serve/mcp/McpInstructions.d.ts +1 -0
- package/dist/cli/serve/mcp/McpInstructions.js +16 -0
- package/dist/cli/serve/mcp/McpSchema.d.ts +31 -0
- package/dist/cli/serve/mcp/McpSchema.js +184 -0
- package/dist/cli/serve/mcp/McpServer.d.ts +47 -0
- package/dist/cli/serve/mcp/McpServer.js +112 -0
- package/dist/cli/serve/mcp/McpTools.d.ts +25 -0
- package/dist/cli/serve/mcp/McpTools.js +618 -0
- package/dist/cli/static/dashboard/entry.js +2 -1
- package/dist/cli/static/init/agents.md +13 -0
- package/dist/cli/static/init/cms.js +4 -2
- package/dist/cli/util/ForwardCommand.js +4 -12
- package/dist/cli/util/PublicDefines.d.ts +1 -0
- package/dist/cli/util/PublicDefines.js +2 -1
- package/dist/cli/util/RunForwarded.d.ts +13 -0
- package/dist/cli/util/RunForwarded.js +166 -0
- package/dist/cli/util/WarnPublicEnv.js +2 -0
- package/dist/cloud/CloudHandshake.js +9 -46
- package/dist/cloud/CloudRemote.js +21 -7
- package/dist/cms.d.ts +21 -0
- package/dist/cms.js +49 -0
- package/dist/components/Alert.d.ts +29 -0
- package/dist/components/Alert.js +86 -0
- package/dist/components/AppShell.d.ts +15 -0
- package/dist/components/AppShell.js +38 -0
- package/dist/components/AsyncList.d.ts +52 -0
- package/dist/components/AsyncList.js +69 -0
- package/dist/components/Badge.d.ts +13 -0
- package/dist/components/Badge.js +53 -0
- package/dist/components/Blockquote.d.ts +7 -0
- package/dist/components/Blockquote.js +26 -0
- package/dist/components/Breadcrumbs.d.ts +39 -3
- package/dist/components/Breadcrumbs.js +103 -22
- package/dist/components/Button.d.ts +33 -8
- package/dist/components/Button.js +73 -23
- package/dist/components/Calendar.d.ts +28 -3
- package/dist/components/Calendar.js +163 -54
- package/dist/components/Checkbox.d.ts +18 -7
- package/dist/components/Checkbox.js +84 -38
- package/dist/components/CheckboxGroup.d.ts +11 -5
- package/dist/components/CheckboxGroup.js +55 -19
- package/dist/components/Code.d.ts +10 -0
- package/dist/components/Code.js +49 -0
- package/dist/components/Collapsible.d.ts +25 -0
- package/dist/components/Collapsible.js +146 -0
- package/dist/components/ColorSwatch.d.ts +9 -2
- package/dist/components/ColorSwatch.js +20 -20
- package/dist/components/ColorSwatchPicker.d.ts +18 -3
- package/dist/components/ColorSwatchPicker.js +31 -27
- package/dist/components/ComboBox.d.ts +46 -10
- package/dist/components/ComboBox.js +223 -94
- package/dist/components/Command.d.ts +66 -0
- package/dist/components/Command.js +237 -0
- package/dist/components/ContentCard.d.ts +32 -0
- package/dist/components/ContentCard.js +221 -0
- package/dist/components/ContentGrid.d.ts +58 -0
- package/dist/components/ContentGrid.js +220 -0
- package/dist/components/DataList.d.ts +27 -0
- package/dist/components/DataList.js +68 -0
- package/dist/components/DateField.d.ts +19 -4
- package/dist/components/DateField.js +51 -44
- package/dist/components/DatePicker.d.ts +17 -4
- package/dist/components/DatePicker.js +61 -68
- package/dist/components/DateRangePicker.d.ts +19 -4
- package/dist/components/DateRangePicker.js +69 -80
- package/dist/components/Dialog.d.ts +64 -3
- package/dist/components/Dialog.js +215 -20
- package/dist/components/DropZone.d.ts +25 -3
- package/dist/components/DropZone.js +99 -18
- package/dist/components/DropdownMenu.d.ts +78 -0
- package/dist/components/DropdownMenu.js +318 -0
- package/dist/components/Empty.d.ts +46 -0
- package/dist/components/Empty.js +93 -0
- package/dist/components/Field.d.ts +34 -0
- package/dist/components/Field.js +166 -0
- package/dist/components/FileTrigger.d.ts +21 -0
- package/dist/components/FileTrigger.js +53 -0
- package/dist/components/FoldIcon.js +2 -1
- package/dist/components/Form.d.ts +23 -0
- package/dist/components/Form.js +64 -0
- package/dist/components/Heading.d.ts +13 -0
- package/dist/components/Heading.js +48 -0
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Icon.js +3 -3
- package/dist/components/Kbd.d.ts +8 -0
- package/dist/components/Kbd.js +27 -0
- package/dist/components/Link.d.ts +21 -4
- package/dist/components/Link.js +22 -20
- package/dist/components/List.d.ts +23 -63
- package/dist/components/List.js +131 -251
- package/dist/components/MediaPreview.d.ts +35 -0
- package/dist/components/MediaPreview.js +227 -0
- package/dist/components/MultipleSelect.d.ts +27 -20
- package/dist/components/MultipleSelect.js +234 -216
- package/dist/components/NavRail.d.ts +41 -0
- package/dist/components/NavRail.js +121 -0
- package/dist/components/NumberField.d.ts +23 -5
- package/dist/components/NumberField.js +103 -60
- package/dist/components/Page.d.ts +57 -0
- package/dist/components/Page.js +130 -0
- package/dist/components/Popover.d.ts +39 -5
- package/dist/components/Popover.js +146 -22
- package/dist/components/PreviewFrame.d.ts +46 -0
- package/dist/components/PreviewFrame.js +182 -0
- package/dist/components/RadioGroup.d.ts +20 -7
- package/dist/components/RadioGroup.js +121 -31
- package/dist/components/Resizable.d.ts +51 -0
- package/dist/components/Resizable.js +1349 -0
- package/dist/components/SearchField.d.ts +42 -6
- package/dist/components/SearchField.js +117 -56
- package/dist/components/Select.d.ts +38 -10
- package/dist/components/Select.js +179 -101
- package/dist/components/Sheet.d.ts +52 -0
- package/dist/components/Sheet.js +216 -0
- package/dist/components/Sidebar.d.ts +56 -0
- package/dist/components/Sidebar.js +136 -0
- package/dist/components/SortableList.d.ts +84 -0
- package/dist/components/SortableList.js +368 -0
- package/dist/components/Spinner.d.ts +8 -0
- package/dist/components/Spinner.js +86 -0
- package/dist/components/Stack.d.ts +20 -0
- package/dist/components/Stack.js +45 -0
- package/dist/components/Surface.js +13 -3
- package/dist/components/Switch.d.ts +15 -4
- package/dist/components/Switch.js +30 -18
- package/dist/components/Table.d.ts +121 -14
- package/dist/components/Table.js +537 -96
- package/dist/components/Tabs.d.ts +33 -12
- package/dist/components/Tabs.js +68 -51
- package/dist/components/TagGroup.d.ts +26 -9
- package/dist/components/TagGroup.js +97 -31
- package/dist/components/Text.d.ts +16 -0
- package/dist/components/Text.js +44 -0
- package/dist/components/TextField.d.ts +33 -9
- package/dist/components/TextField.js +152 -47
- package/dist/components/TimeField.d.ts +25 -4
- package/dist/components/TimeField.js +82 -42
- package/dist/components/Timestamp.d.ts +17 -0
- package/dist/components/Timestamp.js +131 -0
- package/dist/components/Toggle.d.ts +15 -7
- package/dist/components/Toggle.js +4 -54
- package/dist/components/ToggleGroup.d.ts +33 -0
- package/dist/components/ToggleGroup.js +90 -0
- package/dist/components/Toolbar.d.ts +27 -8
- package/dist/components/Toolbar.js +51 -40
- package/dist/components/Tooltip.d.ts +22 -4
- package/dist/components/Tooltip.js +78 -34
- package/dist/components/Tree.d.ts +47 -20
- package/dist/components/Tree.js +230 -98
- package/dist/components/internal/Accept.d.ts +5 -0
- package/dist/components/internal/Accept.js +17 -0
- package/dist/components/internal/DateControl.d.ts +18 -0
- package/dist/components/internal/DateControl.js +92 -0
- package/dist/components/internal/DateValue.d.ts +16 -0
- package/dist/components/internal/DateValue.js +40 -0
- package/dist/components/internal/FormScope.d.ts +2 -0
- package/dist/components/internal/FormScope.js +8 -0
- package/dist/components/internal/ListBoxGroup.d.ts +12 -0
- package/dist/components/internal/ListBoxGroup.js +46 -0
- package/dist/components/internal/ListBoxOption.d.ts +20 -0
- package/dist/components/internal/ListBoxOption.js +111 -0
- package/dist/components/internal/Locale.d.ts +7 -0
- package/dist/components/internal/Locale.js +18 -0
- package/dist/components/internal/Placement.d.ts +3 -0
- package/dist/components/internal/Placement.js +13 -0
- package/dist/components/internal/PopoverSurface.d.ts +21 -0
- package/dist/components/internal/PopoverSurface.js +67 -0
- package/dist/components/internal/SelectionCheckbox.d.ts +8 -0
- package/dist/components/internal/SelectionCheckbox.js +57 -0
- package/dist/components/internal/Slot.d.ts +7 -0
- package/dist/components/internal/Slot.js +26 -0
- package/dist/components/internal/ToggleButton.d.ts +26 -0
- package/dist/components/internal/ToggleButton.js +68 -0
- package/dist/components/internal/Trigger.d.ts +16 -0
- package/dist/components/internal/Trigger.js +34 -0
- package/dist/components/internal/sortableDrag.d.ts +19 -0
- package/dist/components/internal/sortableDrag.js +175 -0
- package/dist/components/internal/useDragDrop.d.ts +22 -0
- package/dist/components/internal/useDragDrop.js +110 -0
- package/dist/components/types.d.ts +110 -0
- package/dist/components/types.js +0 -0
- package/dist/components.d.ts +33 -5
- package/dist/components.js +32 -5
- package/dist/config.d.ts +2 -0
- package/dist/config.js +12 -0
- package/dist/core/Client.js +12 -1
- package/dist/core/Config.d.ts +60 -2
- package/dist/core/Config.js +162 -9
- package/dist/core/Connection.d.ts +13 -1
- package/dist/core/Connection.js +9 -1
- package/dist/core/DashboardEntry.d.ts +19 -0
- package/dist/core/DashboardEntry.js +0 -0
- package/dist/core/Document.d.ts +12 -2
- package/dist/core/Document.js +39 -7
- package/dist/core/EntryFields.d.ts +11 -0
- package/dist/core/EntrySeed.d.ts +5 -1
- package/dist/core/EntrySeed.js +5 -6
- package/dist/core/Expr.d.ts +11 -0
- package/dist/core/Field.d.ts +39 -3
- package/dist/core/Field.js +25 -2
- package/dist/core/Filter.d.ts +31 -1
- package/dist/core/Filter.js +5 -0
- package/dist/core/Graph.d.ts +36 -8
- package/dist/core/Infer.d.ts +17 -0
- package/dist/core/Internal.d.ts +3 -0
- package/dist/core/Internal.js +4 -0
- package/dist/core/Overview.d.ts +315 -0
- package/dist/core/Overview.js +48 -0
- package/dist/core/Role.d.ts +6 -1
- package/dist/core/Role.js +55 -53
- package/dist/core/Root.d.ts +32 -3
- package/dist/core/Root.js +17 -7
- package/dist/core/Schema.js +7 -2
- package/dist/core/Scope.d.ts +14 -0
- package/dist/core/Scope.js +88 -10
- package/dist/core/TextDoc.d.ts +14 -1
- package/dist/core/Type.d.ts +71 -11
- package/dist/core/Type.js +67 -17
- package/dist/core/Validation.d.ts +60 -0
- package/dist/core/Validation.js +116 -0
- package/dist/core/Workspace.d.ts +1 -0
- package/dist/core/Workspace.js +5 -1
- package/dist/core/db/EntryReference.d.ts +8 -1
- package/dist/core/db/LinkResolver.d.ts +3 -0
- package/dist/core/db/LocalStore.d.ts +19 -0
- package/dist/core/db/Operation.d.ts +28 -1
- package/dist/core/db/Operation.js +161 -25
- package/dist/core/db/SyncStats.d.ts +16 -0
- package/dist/core/db/SyncStats.js +56 -0
- package/dist/core/db/WriteableGraph.d.ts +6 -14
- package/dist/core/db/WriteableGraph.js +5 -3
- package/dist/core/field/CreateField.d.ts +2 -3
- package/dist/core/field/ListField.js +29 -10
- package/dist/core/field/RecordField.js +12 -4
- package/dist/core/field/RichTextField.js +81 -24
- package/dist/core/field/ScalarField.d.ts +2 -2
- package/dist/core/field/UnionField.js +27 -4
- package/dist/core/media/CompressPdf.browser.d.ts +5 -0
- package/dist/core/media/CompressPdf.browser.js +13 -0
- package/dist/core/media/CompressPdf.d.ts +6 -0
- package/dist/core/media/CompressPdf.js +45 -0
- package/dist/core/media/CreatePreview.browser.d.ts +5 -1
- package/dist/core/media/CreatePreview.browser.js +16 -0
- package/dist/core/media/CreatePreview.d.ts +2 -1
- package/dist/core/media/CreatePreview.js +2 -0
- package/dist/core/media/FileAccept.d.ts +7 -0
- package/dist/core/media/FileAccept.js +29 -0
- package/dist/core/media/FileKinds.d.ts +10 -0
- package/dist/core/media/FileKinds.js +25 -0
- package/dist/core/media/ImageTransform.d.ts +78 -0
- package/dist/core/media/ImageTransform.js +108 -0
- package/dist/core/media/MediaRoot.js +4 -4
- package/dist/core/media/MediaTypes.d.ts +137 -9
- package/dist/core/media/MediaTypes.js +277 -51
- package/dist/core/media/Pdf.d.ts +15 -0
- package/dist/core/media/Pdf.js +31 -0
- package/dist/core/media/Summary.d.ts +9 -9
- package/dist/core/media/Summary.js +10 -10
- package/dist/core/media/TransformImage.browser.d.ts +7 -0
- package/dist/core/media/TransformImage.browser.js +38 -0
- package/dist/core/media/TransformImage.d.ts +7 -0
- package/dist/core/media/TransformImage.js +38 -0
- package/dist/core/source/GithubSource.d.ts +4 -0
- package/dist/core/source/GithubSource.js +127 -25
- package/dist/core/source/GithubUsage.d.ts +21 -0
- package/dist/core/source/GithubUsage.js +47 -0
- package/dist/core/source/Source.d.ts +2 -0
- package/dist/core/source/Source.js +11 -0
- package/dist/core/text/MarkdownToTextDoc.d.ts +29 -0
- package/dist/core/text/MarkdownToTextDoc.js +524 -0
- package/dist/core/text/TextDocToMarkdown.d.ts +20 -0
- package/dist/core/text/TextDocToMarkdown.js +316 -0
- package/dist/core/util/Async.d.ts +2 -0
- package/dist/core/util/Async.js +12 -1
- package/dist/core/util/Checks.js +1 -1
- package/dist/core/util/JWT.d.ts +1 -1
- package/dist/core/util/Objects.d.ts +2 -0
- package/dist/core/util/Objects.js +7 -0
- package/dist/core/util/OrderKeys.d.ts +11 -0
- package/dist/core/util/OrderKeys.js +64 -0
- package/dist/core/util/Slugs.js +4 -3
- package/dist/core.d.ts +3 -0
- package/dist/core.js +8 -1
- package/dist/dashboard/App.css +56 -86
- package/dist/dashboard/App.d.ts +6 -2
- package/dist/dashboard/App.js +41 -20
- package/dist/dashboard/Href.d.ts +37 -0
- package/dist/dashboard/Href.js +46 -0
- package/dist/dashboard/ViewKeys.d.ts +2 -0
- package/dist/dashboard/ViewKeys.js +2 -0
- package/dist/dashboard/app/AccessDenied.js +26 -18
- package/dist/dashboard/app/ActivityStatus.d.ts +5 -4
- package/dist/dashboard/app/ActivityStatus.js +138 -153
- package/dist/dashboard/app/AppearanceToggle.js +31 -12
- package/dist/dashboard/app/AuthView.js +75 -63
- package/dist/dashboard/app/BlockSheet.d.ts +50 -0
- package/dist/dashboard/app/BlockSheet.js +207 -0
- package/dist/dashboard/app/BlockSheetStoryFrame.d.ts +6 -0
- package/dist/dashboard/app/BlockSheetStoryFrame.js +29 -0
- package/dist/dashboard/app/BlockTabs.d.ts +12 -0
- package/dist/dashboard/app/BlockTabs.js +26 -0
- package/dist/dashboard/app/CompactField.d.ts +19 -6
- package/dist/dashboard/app/CompactField.js +177 -50
- package/dist/dashboard/app/CroppedImage.d.ts +17 -0
- package/dist/dashboard/app/CroppedImage.js +73 -0
- package/dist/dashboard/app/DashboardErrorBoundary.js +27 -15
- package/dist/dashboard/app/DashboardLayout.d.ts +5 -3
- package/dist/dashboard/app/DashboardLayout.js +59 -37
- package/dist/dashboard/app/EntryActions.d.ts +11 -0
- package/dist/dashboard/app/EntryActions.js +30 -0
- package/dist/dashboard/app/EntryFields.d.ts +26 -13
- package/dist/dashboard/app/EntryFields.js +19 -9
- package/dist/dashboard/app/EntryForm.d.ts +6 -0
- package/dist/dashboard/app/EntryForm.js +28 -0
- package/dist/dashboard/app/EntryHeader.d.ts +2 -2
- package/dist/dashboard/app/EntryHeader.js +226 -144
- package/dist/dashboard/app/EntryHeaderActions.d.ts +4 -1
- package/dist/dashboard/app/EntryHeaderActions.js +8 -12
- package/dist/dashboard/app/EntryReferences.d.ts +13 -1
- package/dist/dashboard/app/EntryReferences.js +62 -55
- package/dist/dashboard/app/EntrySidebar.d.ts +7 -5
- package/dist/dashboard/app/EntrySidebar.js +104 -98
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +4 -1
- package/dist/dashboard/app/EntrySidebarPreview.js +37 -106
- package/dist/dashboard/app/EntrySidebarToggle.js +5 -6
- package/dist/dashboard/app/EntryStatusIcon.d.ts +23 -0
- package/dist/dashboard/app/EntryStatusIcon.js +58 -0
- package/dist/dashboard/app/EntryTranslationBanner.js +37 -45
- package/dist/dashboard/app/EntryValidationModal.d.ts +13 -0
- package/dist/dashboard/app/EntryValidationModal.js +77 -0
- package/dist/dashboard/app/Explorer.d.ts +15 -6
- package/dist/dashboard/app/Explorer.js +276 -520
- package/dist/dashboard/app/ExplorerBatchActions.d.ts +19 -0
- package/dist/dashboard/app/ExplorerBatchActions.js +183 -0
- package/dist/dashboard/app/ExplorerBreadcrumbs.d.ts +13 -0
- package/dist/dashboard/app/ExplorerBreadcrumbs.js +119 -0
- package/dist/dashboard/app/ExplorerCards.d.ts +8 -3
- package/dist/dashboard/app/ExplorerCards.js +91 -289
- package/dist/dashboard/app/ExplorerControls.d.ts +20 -0
- package/dist/dashboard/app/ExplorerControls.js +170 -0
- package/dist/dashboard/app/ExplorerList.d.ts +7 -4
- package/dist/dashboard/app/ExplorerList.js +160 -95
- package/dist/dashboard/app/ExplorerModal.d.ts +2 -5
- package/dist/dashboard/app/ExplorerModal.js +7 -19
- package/dist/dashboard/app/ExplorerOverviewHeader.d.ts +6 -0
- package/dist/dashboard/app/ExplorerOverviewHeader.js +28 -0
- package/dist/dashboard/app/ExplorerPickerContent.d.ts +19 -3
- package/dist/dashboard/app/ExplorerPickerContent.js +87 -5
- package/dist/dashboard/app/ExplorerScope.d.ts +7 -0
- package/dist/dashboard/app/ExplorerScope.js +159 -0
- package/dist/dashboard/app/ExplorerTable.d.ts +8 -4
- package/dist/dashboard/app/ExplorerTable.js +150 -359
- package/dist/dashboard/app/ExplorerTabs.d.ts +12 -0
- package/dist/dashboard/app/ExplorerTabs.js +42 -0
- package/dist/dashboard/app/ExternalLinkPicker.js +45 -55
- package/dist/dashboard/app/FileKind.d.ts +8 -0
- package/dist/dashboard/app/FileKind.js +40 -0
- package/dist/dashboard/app/ImageEditor.d.ts +13 -0
- package/dist/dashboard/app/ImageEditor.js +302 -0
- package/dist/dashboard/app/ImageEditorCrop.d.ts +19 -0
- package/dist/dashboard/app/ImageEditorCrop.js +90 -0
- package/dist/dashboard/app/ImagePicker.d.ts +1 -1
- package/dist/dashboard/app/ImagePicker.js +30 -89
- package/dist/dashboard/app/LinkPicker.d.ts +1 -1
- package/dist/dashboard/app/LinkPicker.js +108 -126
- package/dist/dashboard/app/LocaleMenu.d.ts +4 -2
- package/dist/dashboard/app/LocaleMenu.js +59 -48
- package/dist/dashboard/app/MediaPreviewCell.d.ts +8 -0
- package/dist/dashboard/app/MediaPreviewCell.js +50 -0
- package/dist/dashboard/app/MoveConfirmDialog.d.ts +5 -0
- package/dist/dashboard/app/MoveConfirmDialog.js +79 -0
- package/dist/dashboard/app/MoveDialog.d.ts +10 -0
- package/dist/dashboard/app/MoveDialog.js +161 -0
- package/dist/dashboard/app/NodeEditor.d.ts +11 -0
- package/dist/dashboard/app/NodeEditor.js +13 -0
- package/dist/dashboard/app/OverviewCell.d.ts +15 -0
- package/dist/dashboard/app/OverviewCell.js +249 -0
- package/dist/dashboard/app/PendingUploadsDialog.d.ts +2 -0
- package/dist/dashboard/app/PendingUploadsDialog.js +49 -0
- package/dist/dashboard/app/PendingUploadsView.d.ts +20 -0
- package/dist/dashboard/app/PendingUploadsView.js +233 -0
- package/dist/dashboard/app/ReadOnlyBadge.d.ts +1 -1
- package/dist/dashboard/app/ReadOnlyBadge.js +1 -1
- package/dist/dashboard/app/RemoveDialog.d.ts +17 -0
- package/dist/dashboard/app/RemoveDialog.js +294 -0
- package/dist/dashboard/app/RemoveRedirect.d.ts +7 -0
- package/dist/dashboard/app/RemoveRedirect.js +123 -0
- package/dist/dashboard/app/SearchBar.d.ts +9 -0
- package/dist/dashboard/app/SearchBar.js +31 -0
- package/dist/dashboard/app/SidebarLayout.d.ts +2 -1
- package/dist/dashboard/app/SidebarLayout.js +28 -1133
- package/dist/dashboard/app/SidebarTree.d.ts +12 -6
- package/dist/dashboard/app/SidebarTree.js +220 -295
- package/dist/dashboard/app/ViewToggle.d.ts +1 -1
- package/dist/dashboard/app/ViewToggle.js +17 -10
- package/dist/dashboard/app/WorkspaceMenu.d.ts +5 -6
- package/dist/dashboard/app/WorkspaceMenu.js +76 -111
- package/dist/dashboard/app/WorkspaceRoots.d.ts +2 -4
- package/dist/dashboard/app/WorkspaceRoots.js +144 -172
- package/dist/dashboard/app/editor/FileEditor.js +161 -125
- package/dist/dashboard/app/editor/FilePreview.d.ts +8 -6
- package/dist/dashboard/app/editor/FilePreview.js +16 -143
- package/dist/dashboard/app/editor/MediaAltField.view.js +5 -5
- package/dist/dashboard/app/modals/CreateEntry.js +98 -106
- package/dist/dashboard/app/pages/EntryPage.d.ts +2 -1
- package/dist/dashboard/app/pages/EntryPage.js +139 -97
- package/dist/dashboard/app/pages/RootPage.js +4 -6
- package/dist/dashboard/app/pages/SplashPage.d.ts +19 -0
- package/dist/dashboard/app/pages/SplashPage.js +208 -193
- package/dist/dashboard/app/pages/UsersPage.d.ts +20 -1
- package/dist/dashboard/app/pages/UsersPage.js +182 -255
- package/dist/dashboard/app/ui/DashboardModal.d.ts +18 -12
- package/dist/dashboard/app/ui/DashboardModal.js +54 -69
- package/dist/dashboard/atoms/ReactiveNode.js +58 -19
- package/dist/dashboard/atoms/activity.d.ts +1 -0
- package/dist/dashboard/atoms/activity.js +8 -5
- package/dist/dashboard/atoms/auth.js +2 -2
- package/dist/dashboard/atoms/config.d.ts +5 -1
- package/dist/dashboard/atoms/core.d.ts +16 -2
- package/dist/dashboard/atoms/core.js +19 -7
- package/dist/dashboard/atoms/create.js +15 -14
- package/dist/dashboard/atoms/dashboard.d.ts +16 -0
- package/dist/dashboard/atoms/dashboard.js +11 -1
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +29 -42
- package/dist/dashboard/atoms/entry.d.ts +32 -42
- package/dist/dashboard/atoms/entry.js +240 -182
- package/dist/dashboard/atoms/entryTable.d.ts +10 -0
- package/dist/dashboard/atoms/entryTable.js +43 -0
- package/dist/dashboard/atoms/explorer.d.ts +212 -36
- package/dist/dashboard/atoms/explorer.js +597 -259
- package/dist/dashboard/atoms/graph.d.ts +5 -0
- package/dist/dashboard/atoms/graph.js +27 -2
- package/dist/dashboard/atoms/link.d.ts +2 -0
- package/dist/dashboard/atoms/link.js +11 -5
- package/dist/dashboard/atoms/move.d.ts +64 -0
- package/dist/dashboard/atoms/move.js +128 -0
- package/dist/dashboard/atoms/moveConfirmation.d.ts +34 -0
- package/dist/dashboard/atoms/moveConfirmation.js +95 -0
- package/dist/dashboard/atoms/nav.d.ts +36 -12
- package/dist/dashboard/atoms/nav.js +280 -53
- package/dist/dashboard/atoms/overview.d.ts +228 -0
- package/dist/dashboard/atoms/overview.js +519 -0
- package/dist/dashboard/atoms/remove.d.ts +112 -0
- package/dist/dashboard/atoms/remove.js +268 -0
- package/dist/dashboard/atoms/root.d.ts +44 -22
- package/dist/dashboard/atoms/root.js +294 -164
- package/dist/dashboard/atoms/upload.d.ts +105 -3
- package/dist/dashboard/atoms/upload.js +266 -11
- package/dist/dashboard/atoms/user.js +1 -1
- package/dist/dashboard/atoms/utils.d.ts +12 -4
- package/dist/dashboard/atoms/utils.js +35 -2
- package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
- package/dist/dashboard/boot/Boot.d.ts +2 -0
- package/dist/dashboard/boot/Boot.js +33 -18
- package/dist/dashboard/boot/BootDev.js +13 -10
- package/dist/dashboard/boot/BootProd.d.ts +6 -1
- package/dist/dashboard/boot/BootProd.js +3 -2
- package/dist/dashboard/boot/DashboardWorker.d.ts +7 -0
- package/dist/dashboard/boot/DashboardWorker.js +108 -24
- package/dist/dashboard/boot/LoadWorker.js +21 -11
- package/dist/dashboard/boot/SyncEvent.d.ts +7 -0
- package/dist/dashboard/boot/SyncEvent.js +14 -0
- package/dist/dashboard/boot/WorkerDB.d.ts +1 -0
- package/dist/dashboard/boot/WorkerDB.js +3 -0
- package/dist/dashboard/cms/EntryTable.d.ts +56 -0
- package/dist/dashboard/cms/EntryTable.js +273 -0
- package/dist/dashboard/cms/FieldChrome.d.ts +21 -0
- package/dist/dashboard/cms/FieldChrome.js +26 -0
- package/dist/dashboard/cms/ViewProps.d.ts +42 -0
- package/dist/dashboard/cms/ViewProps.js +0 -0
- package/dist/dashboard/cms/hooks.d.ts +120 -0
- package/dist/dashboard/cms/hooks.js +132 -0
- package/dist/dashboard/contexts.d.ts +59 -0
- package/dist/dashboard/contexts.js +43 -0
- package/dist/dashboard/editor/UseField.d.ts +29 -6
- package/dist/dashboard/fixture/cms.d.ts +2 -2
- package/dist/dashboard/hook/UseEntryEditor.d.ts +4 -1
- package/dist/dashboard/hook/UseEntryEditor.js +7 -3
- package/dist/dashboard/hook/UseGraph.d.ts +3 -1
- package/dist/dashboard/hook/UseLocale.d.ts +3 -1
- package/dist/dashboard/hook/UseRoot.d.ts +3 -1
- package/dist/dashboard/hook/UseSearchShortcut.d.ts +11 -0
- package/dist/dashboard/hook/UseSearchShortcut.js +32 -0
- package/dist/dashboard/hook/UseWorkspace.d.ts +3 -1
- package/dist/dashboard/hooks.d.ts +16 -98
- package/dist/dashboard/hooks.js +15 -90
- package/dist/dashboard/icons.d.ts +11 -0
- package/dist/dashboard/icons.js +125 -0
- package/dist/dashboard.d.ts +23 -1
- package/dist/dashboard.js +5 -2
- package/dist/database/BrowserEntryStore.d.ts +17 -24
- package/dist/database/BrowserEntryStore.js +139 -137
- package/dist/database/DatabaseTables.js +2 -2
- package/dist/database/EntryDatabase.d.ts +15 -1
- package/dist/database/EntryDatabase.js +61 -10
- package/dist/database/EntryStore.js +32 -20
- package/dist/database/EntryTransaction.d.ts +0 -5
- package/dist/database/EntryTransaction.js +173 -58
- package/dist/database/EntryUrlAliases.d.ts +4 -0
- package/dist/database/EntryUrlAliases.js +16 -10
- package/dist/database/Version.d.ts +2 -2
- package/dist/database/Version.js +1 -1
- package/dist/database/driver/RuntimeDatabase.js +3 -3
- package/dist/database/driver/WasmDatabase.d.ts +5 -18
- package/dist/database/driver/WasmDatabase.js +16 -15
- package/dist/database/entry/EntryTable.d.ts +5 -3
- package/dist/database/entry/EntryTable.js +34 -10
- package/dist/database/query/Condition.d.ts +9 -1
- package/dist/database/query/Condition.js +25 -6
- package/dist/database/query/EntryQuery.d.ts +4 -0
- package/dist/database/query/EntryQuery.js +148 -25
- package/dist/database/query/EntryReferences.d.ts +1 -1
- package/dist/database/query/EntryReferences.js +3 -2
- package/dist/database/query/Relation.d.ts +13 -1
- package/dist/database/query/Relation.js +33 -5
- package/dist/database/query/ResolveQuery.d.ts +1 -1
- package/dist/database/query/ResolveQuery.js +27 -18
- package/dist/database/query/Search.d.ts +10 -1
- package/dist/database/query/Search.js +83 -10
- package/dist/database/sync/Derive.d.ts +2 -1
- package/dist/database/sync/Derive.js +15 -10
- package/dist/database/sync/EntryParser.js +8 -7
- package/dist/database/sync/EntrySyncer.d.ts +3 -0
- package/dist/database/sync/EntrySyncer.js +10 -7
- package/dist/database/sync/Ingest.d.ts +2 -1
- package/dist/database/sync/Ingest.js +79 -49
- package/dist/database/sync/SyncQueries.d.ts +3 -2
- package/dist/database/sync/SyncQueries.js +19 -19
- package/dist/field/check/CheckField.js +3 -1
- package/dist/field/check/CheckField.view.js +13 -11
- package/dist/field/code/CodeField.d.ts +9 -0
- package/dist/field/code/CodeField.view.d.ts +3 -1
- package/dist/field/code/CodeField.view.js +30 -20
- package/dist/field/code/SimpleCodeEditor.js +0 -18
- package/dist/field/date/DateField.view.js +9 -25
- package/dist/field/link/EntryLink.d.ts +8 -9
- package/dist/field/link/FileLink.d.ts +11 -8
- package/dist/field/link/FileLink.js +7 -6
- package/dist/field/link/ImageLink.d.ts +16 -16
- package/dist/field/link/ImageLink.js +14 -23
- package/dist/field/link/Link.d.ts +1 -1
- package/dist/field/link/Link.js +2 -2
- package/dist/field/link/LinkField.d.ts +10 -5
- package/dist/field/link/LinkField.js +2 -0
- package/dist/field/link/LinkField.view.js +501 -684
- package/dist/field/link/UrlLink.d.ts +5 -4
- package/dist/field/link.d.ts +1 -0
- package/dist/field/list/ListField.d.ts +9 -5
- package/dist/field/list/ListField.js +10 -5
- package/dist/field/list/ListField.view.d.ts +15 -0
- package/dist/field/list/ListField.view.js +525 -645
- package/dist/field/localiser/LocalisedField.view.js +37 -88
- package/dist/field/localiser/LocalisedFieldTab.d.ts +7 -0
- package/dist/field/localiser/LocalisedFieldTab.js +30 -0
- package/dist/field/localiser/LocalisedFieldTabs.js +5 -5
- package/dist/field/localiser/Localiser.d.ts +17 -1
- package/dist/field/localiser/Localiser.js +152 -7
- package/dist/field/localiser/SelectLocale.d.ts +5 -0
- package/dist/field/localiser/SelectLocale.js +12 -0
- package/dist/field/metadata/MetadataAudit.d.ts +39 -0
- package/dist/field/metadata/MetadataAudit.js +124 -0
- package/dist/field/metadata/MetadataField.d.ts +20 -30
- package/dist/field/metadata/MetadataField.js +24 -107
- package/dist/field/metadata/MetadataField.view.d.ts +1 -0
- package/dist/field/metadata/MetadataField.view.js +36 -38
- package/dist/field/number/NumberField.view.js +9 -9
- package/dist/field/object/ObjectField.d.ts +3 -1
- package/dist/field/object/ObjectField.view.js +35 -25
- package/dist/field/path/PathField.view.js +3 -3
- package/dist/field/path/SlugField.d.ts +1 -2
- package/dist/field/path/SlugField.js +5 -7
- package/dist/field/richtext/PickTextAnchor.js +10 -10
- package/dist/field/richtext/PickTextLink.js +28 -41
- package/dist/field/richtext/RichTextBlock.d.ts +3 -1
- package/dist/field/richtext/RichTextBlock.js +190 -78
- package/dist/field/richtext/RichTextBlockHost.js +1 -1
- package/dist/field/richtext/RichTextExtensions.js +26 -20
- package/dist/field/richtext/RichTextField.story.d.ts +1 -0
- package/dist/field/richtext/RichTextField.view.js +13 -6
- package/dist/field/richtext/RichTextInsertMenu.js +59 -36
- package/dist/field/richtext/RichTextToolbar.js +82 -34
- package/dist/field/richtext/Toolbar.d.ts +9 -1
- package/dist/field/richtext/Toolbar.js +12 -2
- package/dist/field/richtext.d.ts +2 -0
- package/dist/field/richtext.js +2 -0
- package/dist/field/select/SelectField.view.js +15 -79
- package/dist/field/tabs/Tabs.d.ts +12 -3
- package/dist/field/tabs/Tabs.js +11 -2
- package/dist/field/tabs/Tabs.view.js +8 -8
- package/dist/field/text/TextField.view.js +9 -8
- package/dist/field/time/TimeField.view.js +10 -18
- package/dist/field/views.js +4 -0
- package/dist/field.d.ts +2 -2
- package/dist/field.js +3 -2
- package/dist/index.css +5408 -5223
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/next.cjs +27 -20
- package/dist/next.d.ts +2 -0
- package/dist/next.edge.d.ts +2 -0
- package/dist/picker/entry/EntryPicker.d.ts +11 -4
- package/dist/picker/entry/EntryPicker.js +15 -1
- package/dist/picker/url/UrlPicker.js +1 -0
- package/dist/preview/react.js +3 -0
- package/dist/preview/widget.d.ts +3 -0
- package/dist/preview/widget.js +26 -8
- package/dist/query.d.ts +41 -266
- package/dist/query.js +4 -0
- package/dist/types.d.ts +12 -5
- package/dist/ui/RichText.js +31 -1
- package/dist/ui/Stack.d.ts +4 -2
- package/docs/ai-agents.md +316 -0
- package/docs/ai-setup.md +297 -0
- package/docs/cli.md +96 -0
- package/docs/components/alert.md +122 -0
- package/docs/components/app-shell.md +77 -0
- package/docs/components/badge.md +89 -0
- package/docs/components/blockquote.md +24 -0
- package/docs/components/breadcrumb.md +83 -0
- package/docs/components/button.md +142 -0
- package/docs/components/calendar.md +32 -0
- package/docs/components/checkbox-group.md +38 -0
- package/docs/components/checkbox.md +61 -0
- package/docs/components/code.md +37 -0
- package/docs/components/collapsible.md +53 -0
- package/docs/components/color-swatch-picker.md +47 -0
- package/docs/components/combo-box.md +146 -0
- package/docs/components/command.md +101 -0
- package/docs/components/content-card.md +64 -0
- package/docs/components/content-grid.md +71 -0
- package/docs/components/data-list.md +64 -0
- package/docs/components/date-field.md +34 -0
- package/docs/components/date-picker.md +35 -0
- package/docs/components/date-range-picker.md +34 -0
- package/docs/components/dialog.md +233 -0
- package/docs/components/drop-zone.md +45 -0
- package/docs/components/dropdown-menu.md +223 -0
- package/docs/components/empty.md +81 -0
- package/docs/components/field.md +66 -0
- package/docs/components/file-trigger.md +33 -0
- package/docs/components/fold-icon.md +34 -0
- package/docs/components/form.md +67 -0
- package/docs/components/heading.md +33 -0
- package/docs/components/icon.md +43 -0
- package/docs/components/kbd.md +29 -0
- package/docs/components/link.md +45 -0
- package/docs/components/list.md +105 -0
- package/docs/components/media-preview.md +43 -0
- package/docs/components/multiple-select.md +48 -0
- package/docs/components/nav-rail.md +79 -0
- package/docs/components/number-field.md +53 -0
- package/docs/components/page.md +97 -0
- package/docs/components/popover.md +71 -0
- package/docs/components/preview-frame.md +63 -0
- package/docs/components/radio-group.md +47 -0
- package/docs/components/resizable-panel-group.md +63 -0
- package/docs/components/search-field.md +54 -0
- package/docs/components/select.md +127 -0
- package/docs/components/sidebar.md +104 -0
- package/docs/components/sortable-list.md +110 -0
- package/docs/components/spinner.md +29 -0
- package/docs/components/stack.md +42 -0
- package/docs/components/surface.md +54 -0
- package/docs/components/switch.md +52 -0
- package/docs/components/table.md +262 -0
- package/docs/components/tabs.md +120 -0
- package/docs/components/tag-group.md +56 -0
- package/docs/components/text-field.md +142 -0
- package/docs/components/text.md +44 -0
- package/docs/components/time-field.md +41 -0
- package/docs/components/timestamp.md +45 -0
- package/docs/components/toggle-group.md +46 -0
- package/docs/components/toggle.md +37 -0
- package/docs/components/toolbar.md +96 -0
- package/docs/components/tooltip.md +78 -0
- package/docs/components/tree.md +67 -0
- package/docs/components.md +169 -0
- package/docs/configuration.md +177 -0
- package/docs/content-model.md +87 -0
- package/docs/custom-fields.md +359 -0
- package/docs/dashboard-ui.md +3 -0
- package/docs/deploy/alinea-cloud.md +26 -0
- package/docs/deploy/self-host.md +195 -0
- package/docs/deploy.md +127 -0
- package/docs/editing-content.md +195 -0
- package/docs/fields/check.md +40 -0
- package/docs/fields/code.md +35 -0
- package/docs/fields/date.md +90 -0
- package/docs/fields/entry.md +179 -0
- package/docs/fields/file.md +60 -0
- package/docs/fields/image.md +138 -0
- package/docs/fields/link.md +121 -0
- package/docs/fields/list.md +149 -0
- package/docs/fields/number.md +58 -0
- package/docs/fields/object.md +93 -0
- package/docs/fields/path.md +105 -0
- package/docs/fields/rich-text.md +267 -0
- package/docs/fields/select.md +99 -0
- package/docs/fields/tabs.md +111 -0
- package/docs/fields/text.md +46 -0
- package/docs/fields/url.md +51 -0
- package/docs/fields.md +231 -0
- package/docs/get-started.md +3 -0
- package/docs/guides.md +3 -0
- package/docs/index.md +140 -0
- package/docs/instant-publishing.md +61 -0
- package/docs/internationalization.md +218 -0
- package/docs/introduction.md +5 -0
- package/docs/live-previews.md +151 -0
- package/docs/mcp.md +500 -0
- package/docs/overviews.md +580 -0
- package/docs/query/advanced.md +123 -0
- package/docs/query/examples.md +231 -0
- package/docs/query/filtering.md +162 -0
- package/docs/query/related.md +178 -0
- package/docs/query/structural.md +165 -0
- package/docs/query.md +190 -0
- package/docs/quickstart.md +203 -0
- package/docs/reference.md +3 -0
- package/docs/roles-permissions.md +234 -0
- package/docs/schema/document.md +100 -0
- package/docs/schema/type.md +133 -0
- package/docs/schema.md +66 -0
- package/docs/tutorial/step-1-landing-page.md +244 -0
- package/docs/tutorial/step-2-block-list.md +364 -0
- package/docs/tutorial/step-3-layout-root.md +200 -0
- package/docs/tutorial/step-4-blog.md +384 -0
- package/docs/tutorial/step-5-catch-all.md +222 -0
- package/docs/tutorial.md +21 -0
- package/docs/typescript.md +115 -0
- package/docs/upgrading.md +368 -0
- package/docs/workspaces/media.md +134 -0
- package/docs/workspaces/root.md +127 -0
- package/docs/workspaces.md +98 -0
- package/llms-full.txt +13007 -3217
- package/package.json +25 -6
- package/readme.md +136 -55
- package/dist/adapter/next/previews.spec.d.ts +0 -1
- package/dist/chunks/chunk-AC4U3IMS.js +0 -205
- package/dist/chunks/chunk-DNJX6CRV.js +0 -129
- package/dist/chunks/chunk-NIVGVRDS.js +0 -6363
- package/dist/chunks/chunk-S4AU6SRS.js +0 -5503
- package/dist/chunks/chunk-SJBZFMQ2.js +0 -2966
- package/dist/components/Disclosure.d.ts +0 -5
- package/dist/components/Disclosure.js +0 -106
- package/dist/components/Label.d.ts +0 -48
- package/dist/components/Label.js +0 -210
- package/dist/components/Menu.d.ts +0 -16
- package/dist/components/Menu.js +0 -95
- package/dist/components/Modal.d.ts +0 -7
- package/dist/components/Modal.js +0 -58
- package/dist/components/ProgressCircle.d.ts +0 -6
- package/dist/components/ProgressCircle.js +0 -96
- package/dist/dashboard/app/AppShell.d.ts +0 -4
- package/dist/dashboard/app/AppShell.js +0 -29
- package/dist/dashboard/app/Badge.d.ts +0 -8
- package/dist/dashboard/app/Badge.js +0 -42
- package/dist/dashboard/app/EditorBackButton.d.ts +0 -5
- package/dist/dashboard/app/EditorBackButton.js +0 -33
- package/dist/dashboard/app/EntrySidebarPreview.spec.d.ts +0 -1
- package/dist/dashboard/app/ExplorerFileCard.d.ts +0 -10
- package/dist/dashboard/app/ExplorerFileCard.js +0 -115
- package/dist/dashboard/app/StatusBadge.d.ts +0 -6
- package/dist/dashboard/app/StatusBadge.js +0 -26
- package/dist/dashboard/app/WorkspaceMenu.spec.d.ts +0 -1
- package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +0 -7
- package/dist/dashboard/app/ui/Rail.d.ts +0 -18
- package/dist/dashboard/app/ui/Rail.js +0 -41
- package/dist/dashboard/app/ui/Sidebar.d.ts +0 -15
- package/dist/dashboard/app/ui/Sidebar.js +0 -55
- package/dist/field/link/LinkField.spec.d.ts +0 -1
- package/dist/field/link/LinkField.stories.d.ts +0 -15
- package/dist/field/list/ListField.spec.d.ts +0 -1
- package/dist/field/list/ListField.stories.d.ts +0 -7
- package/dist/field/richtext/RichTextField.spec.d.ts +0 -1
- package/dist/chunks/{chunk-MOWR65LM.js → chunk-PYDOMKJZ.js} +71 -71
|
@@ -0,0 +1,1349 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dist_default
|
|
3
|
+
} from "../chunks/chunk-I4OYYAX5.js";
|
|
4
|
+
import "../chunks/chunk-CQ52GEHY.js";
|
|
5
|
+
|
|
6
|
+
// node_modules/allotment/dist/modern.mjs
|
|
7
|
+
import e, { useState as t, useRef as i, useEffect as s, useCallback as n, useLayoutEffect as r, forwardRef as o, useMemo as a, useImperativeHandle as h } from "react";
|
|
8
|
+
function _extends() {
|
|
9
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n2) {
|
|
10
|
+
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
11
|
+
var t2 = arguments[e3];
|
|
12
|
+
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
13
|
+
}
|
|
14
|
+
return n2;
|
|
15
|
+
}, _extends.apply(null, arguments);
|
|
16
|
+
}
|
|
17
|
+
var l = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
18
|
+
function u(e3) {
|
|
19
|
+
return e3 && e3.__esModule && Object.prototype.hasOwnProperty.call(e3, "default") ? e3.default : e3;
|
|
20
|
+
}
|
|
21
|
+
var c;
|
|
22
|
+
var m = {
|
|
23
|
+
exports: {}
|
|
24
|
+
};
|
|
25
|
+
var d;
|
|
26
|
+
var f;
|
|
27
|
+
var p;
|
|
28
|
+
var v = (c || (c = 1, d = m, (function() {
|
|
29
|
+
var e3 = {}.hasOwnProperty;
|
|
30
|
+
function t2() {
|
|
31
|
+
for (var e4 = "", t3 = 0; t3 < arguments.length; t3++) {
|
|
32
|
+
var n2 = arguments[t3];
|
|
33
|
+
n2 && (e4 = s2(e4, i2(n2)));
|
|
34
|
+
}
|
|
35
|
+
return e4;
|
|
36
|
+
}
|
|
37
|
+
function i2(i3) {
|
|
38
|
+
if ("string" == typeof i3 || "number" == typeof i3) return i3;
|
|
39
|
+
if ("object" != typeof i3) return "";
|
|
40
|
+
if (Array.isArray(i3)) return t2.apply(null, i3);
|
|
41
|
+
if (i3.toString !== Object.prototype.toString && !i3.toString.toString().includes("[native code]")) return i3.toString();
|
|
42
|
+
var n2 = "";
|
|
43
|
+
for (var r2 in i3) e3.call(i3, r2) && i3[r2] && (n2 = s2(n2, r2));
|
|
44
|
+
return n2;
|
|
45
|
+
}
|
|
46
|
+
function s2(e4, t3) {
|
|
47
|
+
return t3 ? e4 ? e4 + " " + t3 : e4 + t3 : e4;
|
|
48
|
+
}
|
|
49
|
+
d.exports ? (t2.default = t2, d.exports = t2) : window.classNames = t2;
|
|
50
|
+
})()), m.exports);
|
|
51
|
+
var S = u(v);
|
|
52
|
+
var z;
|
|
53
|
+
var w;
|
|
54
|
+
var g = (p || (p = 1, f = function e2(t2, i2) {
|
|
55
|
+
if (t2 === i2) return true;
|
|
56
|
+
if (t2 && i2 && "object" == typeof t2 && "object" == typeof i2) {
|
|
57
|
+
if (t2.constructor !== i2.constructor) return false;
|
|
58
|
+
var s2, n2, r2;
|
|
59
|
+
if (Array.isArray(t2)) {
|
|
60
|
+
if ((s2 = t2.length) != i2.length) return false;
|
|
61
|
+
for (n2 = s2; 0 !== n2--; ) if (!e2(t2[n2], i2[n2])) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
if (t2 instanceof Map && i2 instanceof Map) {
|
|
65
|
+
if (t2.size !== i2.size) return false;
|
|
66
|
+
for (n2 of t2.entries()) if (!i2.has(n2[0])) return false;
|
|
67
|
+
for (n2 of t2.entries()) if (!e2(n2[1], i2.get(n2[0]))) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
if (t2 instanceof Set && i2 instanceof Set) {
|
|
71
|
+
if (t2.size !== i2.size) return false;
|
|
72
|
+
for (n2 of t2.entries()) if (!i2.has(n2[0])) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
if (ArrayBuffer.isView(t2) && ArrayBuffer.isView(i2)) {
|
|
76
|
+
if ((s2 = t2.length) != i2.length) return false;
|
|
77
|
+
for (n2 = s2; 0 !== n2--; ) if (t2[n2] !== i2[n2]) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
if (t2.constructor === RegExp) return t2.source === i2.source && t2.flags === i2.flags;
|
|
81
|
+
if (t2.valueOf !== Object.prototype.valueOf) return t2.valueOf() === i2.valueOf();
|
|
82
|
+
if (t2.toString !== Object.prototype.toString) return t2.toString() === i2.toString();
|
|
83
|
+
if ((s2 = (r2 = Object.keys(t2)).length) !== Object.keys(i2).length) return false;
|
|
84
|
+
for (n2 = s2; 0 !== n2--; ) if (!Object.prototype.hasOwnProperty.call(i2, r2[n2])) return false;
|
|
85
|
+
for (n2 = s2; 0 !== n2--; ) {
|
|
86
|
+
var o2 = r2[n2];
|
|
87
|
+
if (!e2(t2[o2], i2[o2])) return false;
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
return t2 != t2 && i2 != i2;
|
|
92
|
+
}), f);
|
|
93
|
+
var y = u(g);
|
|
94
|
+
var b;
|
|
95
|
+
var I;
|
|
96
|
+
var x = u((function() {
|
|
97
|
+
if (w) return z;
|
|
98
|
+
w = 1;
|
|
99
|
+
var e3 = /^\s+|\s+$/g, t2 = /^[-+]0x[0-9a-f]+$/i, i2 = /^0b[01]+$/i, s2 = /^0o[0-7]+$/i, n2 = parseInt, r2 = Object.prototype.toString;
|
|
100
|
+
function o2(e4) {
|
|
101
|
+
var t3 = typeof e4;
|
|
102
|
+
return !!e4 && ("object" == t3 || "function" == t3);
|
|
103
|
+
}
|
|
104
|
+
function a2(a3) {
|
|
105
|
+
if ("number" == typeof a3) return a3;
|
|
106
|
+
if ((function(e4) {
|
|
107
|
+
return "symbol" == typeof e4 || /* @__PURE__ */ (function(e5) {
|
|
108
|
+
return !!e5 && "object" == typeof e5;
|
|
109
|
+
})(e4) && "[object Symbol]" == r2.call(e4);
|
|
110
|
+
})(a3)) return NaN;
|
|
111
|
+
if (o2(a3)) {
|
|
112
|
+
var h2 = "function" == typeof a3.valueOf ? a3.valueOf() : a3;
|
|
113
|
+
a3 = o2(h2) ? h2 + "" : h2;
|
|
114
|
+
}
|
|
115
|
+
if ("string" != typeof a3) return 0 === a3 ? a3 : +a3;
|
|
116
|
+
a3 = a3.replace(e3, "");
|
|
117
|
+
var l2 = i2.test(a3);
|
|
118
|
+
return l2 || s2.test(a3) ? n2(a3.slice(2), l2 ? 2 : 8) : t2.test(a3) ? NaN : +a3;
|
|
119
|
+
}
|
|
120
|
+
return z = function(e4, t3, i3) {
|
|
121
|
+
return void 0 === i3 && (i3 = t3, t3 = void 0), void 0 !== i3 && (i3 = (i3 = a2(i3)) == i3 ? i3 : 0), void 0 !== t3 && (t3 = (t3 = a2(t3)) == t3 ? t3 : 0), (function(e5, t4, i4) {
|
|
122
|
+
return e5 == e5 && (void 0 !== i4 && (e5 = e5 <= i4 ? e5 : i4), void 0 !== t4 && (e5 = e5 >= t4 ? e5 : t4)), e5;
|
|
123
|
+
})(a2(e4), t3, i3);
|
|
124
|
+
};
|
|
125
|
+
})());
|
|
126
|
+
var _ = u((function() {
|
|
127
|
+
if (I) return b;
|
|
128
|
+
I = 1;
|
|
129
|
+
var e3 = /^\s+|\s+$/g, t2 = /^[-+]0x[0-9a-f]+$/i, i2 = /^0b[01]+$/i, s2 = /^0o[0-7]+$/i, n2 = parseInt, r2 = "object" == typeof l && l && l.Object === Object && l, o2 = "object" == typeof self && self && self.Object === Object && self, a2 = r2 || o2 || Function("return this")(), h2 = Object.prototype.toString, u2 = Math.max, c2 = Math.min, m2 = function m3() {
|
|
130
|
+
return a2.Date.now();
|
|
131
|
+
};
|
|
132
|
+
function d2(e4) {
|
|
133
|
+
var t3 = typeof e4;
|
|
134
|
+
return !!e4 && ("object" == t3 || "function" == t3);
|
|
135
|
+
}
|
|
136
|
+
function f2(r3) {
|
|
137
|
+
if ("number" == typeof r3) return r3;
|
|
138
|
+
if ((function(e4) {
|
|
139
|
+
return "symbol" == typeof e4 || /* @__PURE__ */ (function(e5) {
|
|
140
|
+
return !!e5 && "object" == typeof e5;
|
|
141
|
+
})(e4) && "[object Symbol]" == h2.call(e4);
|
|
142
|
+
})(r3)) return NaN;
|
|
143
|
+
if (d2(r3)) {
|
|
144
|
+
var o3 = "function" == typeof r3.valueOf ? r3.valueOf() : r3;
|
|
145
|
+
r3 = d2(o3) ? o3 + "" : o3;
|
|
146
|
+
}
|
|
147
|
+
if ("string" != typeof r3) return 0 === r3 ? r3 : +r3;
|
|
148
|
+
r3 = r3.replace(e3, "");
|
|
149
|
+
var a3 = i2.test(r3);
|
|
150
|
+
return a3 || s2.test(r3) ? n2(r3.slice(2), a3 ? 2 : 8) : t2.test(r3) ? NaN : +r3;
|
|
151
|
+
}
|
|
152
|
+
return b = function(e4, t3, i3) {
|
|
153
|
+
var s3, n3, r3, o3, a3, h3, l2 = 0, p2 = false, v2 = false, S2 = true;
|
|
154
|
+
if ("function" != typeof e4) throw new TypeError("Expected a function");
|
|
155
|
+
function z2(t4) {
|
|
156
|
+
var i4 = s3, r4 = n3;
|
|
157
|
+
return s3 = n3 = void 0, l2 = t4, o3 = e4.apply(r4, i4);
|
|
158
|
+
}
|
|
159
|
+
function w2(e5) {
|
|
160
|
+
var i4 = e5 - h3;
|
|
161
|
+
return void 0 === h3 || i4 >= t3 || i4 < 0 || v2 && e5 - l2 >= r3;
|
|
162
|
+
}
|
|
163
|
+
function g2() {
|
|
164
|
+
var e5 = m2();
|
|
165
|
+
if (w2(e5)) return y2(e5);
|
|
166
|
+
a3 = setTimeout(g2, (function(e6) {
|
|
167
|
+
var i4 = t3 - (e6 - h3);
|
|
168
|
+
return v2 ? c2(i4, r3 - (e6 - l2)) : i4;
|
|
169
|
+
})(e5));
|
|
170
|
+
}
|
|
171
|
+
function y2(e5) {
|
|
172
|
+
return a3 = void 0, S2 && s3 ? z2(e5) : (s3 = n3 = void 0, o3);
|
|
173
|
+
}
|
|
174
|
+
function b2() {
|
|
175
|
+
var e5 = m2(), i4 = w2(e5);
|
|
176
|
+
if (s3 = arguments, n3 = this, h3 = e5, i4) {
|
|
177
|
+
if (void 0 === a3) return (function(e6) {
|
|
178
|
+
return l2 = e6, a3 = setTimeout(g2, t3), p2 ? z2(e6) : o3;
|
|
179
|
+
})(h3);
|
|
180
|
+
if (v2) return a3 = setTimeout(g2, t3), z2(h3);
|
|
181
|
+
}
|
|
182
|
+
return void 0 === a3 && (a3 = setTimeout(g2, t3)), o3;
|
|
183
|
+
}
|
|
184
|
+
return t3 = f2(t3) || 0, d2(i3) && (p2 = !!i3.leading, r3 = (v2 = "maxWait" in i3) ? u2(f2(i3.maxWait) || 0, t3) : r3, S2 = "trailing" in i3 ? !!i3.trailing : S2), b2.cancel = function() {
|
|
185
|
+
void 0 !== a3 && clearTimeout(a3), l2 = 0, s3 = h3 = n3 = a3 = void 0;
|
|
186
|
+
}, b2.flush = function() {
|
|
187
|
+
return void 0 === a3 ? o3 : y2(m2());
|
|
188
|
+
}, b2;
|
|
189
|
+
};
|
|
190
|
+
})());
|
|
191
|
+
var V = {
|
|
192
|
+
width: void 0,
|
|
193
|
+
height: void 0
|
|
194
|
+
};
|
|
195
|
+
function E(e3) {
|
|
196
|
+
const {
|
|
197
|
+
ref: r2,
|
|
198
|
+
box: o2 = "content-box"
|
|
199
|
+
} = e3, [{
|
|
200
|
+
width: a2,
|
|
201
|
+
height: h2
|
|
202
|
+
}, l2] = t(V), u2 = (function() {
|
|
203
|
+
const e4 = i(false);
|
|
204
|
+
return s(() => (e4.current = true, () => {
|
|
205
|
+
e4.current = false;
|
|
206
|
+
}), []), n(() => e4.current, []);
|
|
207
|
+
})(), c2 = i(_extends({}, V)), m2 = i(void 0);
|
|
208
|
+
return m2.current = e3.onResize, s(() => {
|
|
209
|
+
if (!r2.current) return;
|
|
210
|
+
if ("undefined" == typeof window || !("ResizeObserver" in window)) return;
|
|
211
|
+
const e4 = new ResizeObserver(([e5]) => {
|
|
212
|
+
const t2 = "border-box" === o2 ? "borderBoxSize" : "device-pixel-content-box" === o2 ? "devicePixelContentBoxSize" : "contentBoxSize", i2 = N(e5, t2, "inlineSize"), s2 = N(e5, t2, "blockSize");
|
|
213
|
+
if (c2.current.width !== i2 || c2.current.height !== s2) {
|
|
214
|
+
const _e2 = {
|
|
215
|
+
width: i2,
|
|
216
|
+
height: s2
|
|
217
|
+
};
|
|
218
|
+
c2.current.width = i2, c2.current.height = s2, m2.current ? m2.current(_e2) : u2() && l2(_e2);
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
return e4.observe(r2.current, {
|
|
222
|
+
box: o2
|
|
223
|
+
}), () => {
|
|
224
|
+
e4.disconnect();
|
|
225
|
+
};
|
|
226
|
+
}, [o2, r2, u2]), {
|
|
227
|
+
width: a2,
|
|
228
|
+
height: h2
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function N(e3, t2, i2) {
|
|
232
|
+
return e3[t2] ? Array.isArray(e3[t2]) ? e3[t2][0][i2] : e3[t2][i2] : "contentBoxSize" === t2 ? e3.contentRect["inlineSize" === i2 ? "width" : "height"] : void 0;
|
|
233
|
+
}
|
|
234
|
+
var L = "allotment-module_splitView__L-yRc";
|
|
235
|
+
var D = "allotment-module_sashContainer__fzwJF";
|
|
236
|
+
var O = "allotment-module_splitViewContainer__rQnVa";
|
|
237
|
+
var M = "allotment-module_splitViewView__MGZ6O";
|
|
238
|
+
var P = "allotment-module_vertical__WSwwa";
|
|
239
|
+
var T = "allotment-module_horizontal__7doS8";
|
|
240
|
+
var C = "allotment-module_separatorBorder__x-rDS";
|
|
241
|
+
var A;
|
|
242
|
+
var j = false;
|
|
243
|
+
var F = false;
|
|
244
|
+
"object" == typeof navigator && (A = navigator.userAgent, F = A.indexOf("Macintosh") >= 0, j = (A.indexOf("Macintosh") >= 0 || A.indexOf("iPad") >= 0 || A.indexOf("iPhone") >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0);
|
|
245
|
+
var H = j;
|
|
246
|
+
var Y = F;
|
|
247
|
+
var k = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? r : s;
|
|
248
|
+
var $ = class {
|
|
249
|
+
constructor() {
|
|
250
|
+
this._size = void 0;
|
|
251
|
+
}
|
|
252
|
+
getSize() {
|
|
253
|
+
return this._size;
|
|
254
|
+
}
|
|
255
|
+
setSize(e3) {
|
|
256
|
+
this._size = e3;
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
function B(e3, t2) {
|
|
260
|
+
const i2 = e3.length, s2 = i2 - t2.length;
|
|
261
|
+
return s2 >= 0 && e3.slice(s2, i2) === t2;
|
|
262
|
+
}
|
|
263
|
+
var R;
|
|
264
|
+
var W = {
|
|
265
|
+
exports: {}
|
|
266
|
+
};
|
|
267
|
+
var X = (R || (R = 1, (function(e3) {
|
|
268
|
+
var t2 = Object.prototype.hasOwnProperty, i2 = "~";
|
|
269
|
+
function s2() {
|
|
270
|
+
}
|
|
271
|
+
function n2(e4, t3, i3) {
|
|
272
|
+
this.fn = e4, this.context = t3, this.once = i3 || false;
|
|
273
|
+
}
|
|
274
|
+
function r2(e4, t3, s3, r3, o3) {
|
|
275
|
+
if ("function" != typeof s3) throw new TypeError("The listener must be a function");
|
|
276
|
+
var a3 = new n2(s3, r3 || e4, o3), h2 = i2 ? i2 + t3 : t3;
|
|
277
|
+
return e4._events[h2] ? e4._events[h2].fn ? e4._events[h2] = [e4._events[h2], a3] : e4._events[h2].push(a3) : (e4._events[h2] = a3, e4._eventsCount++), e4;
|
|
278
|
+
}
|
|
279
|
+
function o2(e4, t3) {
|
|
280
|
+
0 === --e4._eventsCount ? e4._events = new s2() : delete e4._events[t3];
|
|
281
|
+
}
|
|
282
|
+
function a2() {
|
|
283
|
+
this._events = new s2(), this._eventsCount = 0;
|
|
284
|
+
}
|
|
285
|
+
Object.create && (s2.prototype = /* @__PURE__ */ Object.create(null), new s2().__proto__ || (i2 = false)), a2.prototype.eventNames = function() {
|
|
286
|
+
var e4, s3, n3 = [];
|
|
287
|
+
if (0 === this._eventsCount) return n3;
|
|
288
|
+
for (s3 in e4 = this._events) t2.call(e4, s3) && n3.push(i2 ? s3.slice(1) : s3);
|
|
289
|
+
return Object.getOwnPropertySymbols ? n3.concat(Object.getOwnPropertySymbols(e4)) : n3;
|
|
290
|
+
}, a2.prototype.listeners = function(e4) {
|
|
291
|
+
var t3 = i2 ? i2 + e4 : e4, s3 = this._events[t3];
|
|
292
|
+
if (!s3) return [];
|
|
293
|
+
if (s3.fn) return [s3.fn];
|
|
294
|
+
for (var n3 = 0, r3 = s3.length, o3 = new Array(r3); n3 < r3; n3++) o3[n3] = s3[n3].fn;
|
|
295
|
+
return o3;
|
|
296
|
+
}, a2.prototype.listenerCount = function(e4) {
|
|
297
|
+
var t3 = i2 ? i2 + e4 : e4, s3 = this._events[t3];
|
|
298
|
+
return s3 ? s3.fn ? 1 : s3.length : 0;
|
|
299
|
+
}, a2.prototype.emit = function(e4, t3, s3, n3, r3, o3) {
|
|
300
|
+
var a3 = i2 ? i2 + e4 : e4;
|
|
301
|
+
if (!this._events[a3]) return false;
|
|
302
|
+
var h2, l2, u2 = this._events[a3], c2 = arguments.length;
|
|
303
|
+
if (u2.fn) {
|
|
304
|
+
switch (u2.once && this.removeListener(e4, u2.fn, void 0, true), c2) {
|
|
305
|
+
case 1:
|
|
306
|
+
return u2.fn.call(u2.context), true;
|
|
307
|
+
case 2:
|
|
308
|
+
return u2.fn.call(u2.context, t3), true;
|
|
309
|
+
case 3:
|
|
310
|
+
return u2.fn.call(u2.context, t3, s3), true;
|
|
311
|
+
case 4:
|
|
312
|
+
return u2.fn.call(u2.context, t3, s3, n3), true;
|
|
313
|
+
case 5:
|
|
314
|
+
return u2.fn.call(u2.context, t3, s3, n3, r3), true;
|
|
315
|
+
case 6:
|
|
316
|
+
return u2.fn.call(u2.context, t3, s3, n3, r3, o3), true;
|
|
317
|
+
}
|
|
318
|
+
for (l2 = 1, h2 = new Array(c2 - 1); l2 < c2; l2++) h2[l2 - 1] = arguments[l2];
|
|
319
|
+
u2.fn.apply(u2.context, h2);
|
|
320
|
+
} else {
|
|
321
|
+
var m2, d2 = u2.length;
|
|
322
|
+
for (l2 = 0; l2 < d2; l2++) switch (u2[l2].once && this.removeListener(e4, u2[l2].fn, void 0, true), c2) {
|
|
323
|
+
case 1:
|
|
324
|
+
u2[l2].fn.call(u2[l2].context);
|
|
325
|
+
break;
|
|
326
|
+
case 2:
|
|
327
|
+
u2[l2].fn.call(u2[l2].context, t3);
|
|
328
|
+
break;
|
|
329
|
+
case 3:
|
|
330
|
+
u2[l2].fn.call(u2[l2].context, t3, s3);
|
|
331
|
+
break;
|
|
332
|
+
case 4:
|
|
333
|
+
u2[l2].fn.call(u2[l2].context, t3, s3, n3);
|
|
334
|
+
break;
|
|
335
|
+
default:
|
|
336
|
+
if (!h2) for (m2 = 1, h2 = new Array(c2 - 1); m2 < c2; m2++) h2[m2 - 1] = arguments[m2];
|
|
337
|
+
u2[l2].fn.apply(u2[l2].context, h2);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return true;
|
|
341
|
+
}, a2.prototype.on = function(e4, t3, i3) {
|
|
342
|
+
return r2(this, e4, t3, i3, false);
|
|
343
|
+
}, a2.prototype.once = function(e4, t3, i3) {
|
|
344
|
+
return r2(this, e4, t3, i3, true);
|
|
345
|
+
}, a2.prototype.removeListener = function(e4, t3, s3, n3) {
|
|
346
|
+
var r3 = i2 ? i2 + e4 : e4;
|
|
347
|
+
if (!this._events[r3]) return this;
|
|
348
|
+
if (!t3) return o2(this, r3), this;
|
|
349
|
+
var a3 = this._events[r3];
|
|
350
|
+
if (a3.fn) a3.fn !== t3 || n3 && !a3.once || s3 && a3.context !== s3 || o2(this, r3);
|
|
351
|
+
else {
|
|
352
|
+
for (var h2 = 0, l2 = [], u2 = a3.length; h2 < u2; h2++) (a3[h2].fn !== t3 || n3 && !a3[h2].once || s3 && a3[h2].context !== s3) && l2.push(a3[h2]);
|
|
353
|
+
l2.length ? this._events[r3] = 1 === l2.length ? l2[0] : l2 : o2(this, r3);
|
|
354
|
+
}
|
|
355
|
+
return this;
|
|
356
|
+
}, a2.prototype.removeAllListeners = function(e4) {
|
|
357
|
+
var t3;
|
|
358
|
+
return e4 ? (t3 = i2 ? i2 + e4 : e4, this._events[t3] && o2(this, t3)) : (this._events = new s2(), this._eventsCount = 0), this;
|
|
359
|
+
}, a2.prototype.off = a2.prototype.removeListener, a2.prototype.addListener = a2.prototype.on, a2.prefixed = i2, a2.EventEmitter = a2, e3.exports = a2;
|
|
360
|
+
})(W)), W.exports);
|
|
361
|
+
var G = u(X);
|
|
362
|
+
function J(e3, t2) {
|
|
363
|
+
const i2 = e3.indexOf(t2);
|
|
364
|
+
i2 > -1 && (e3.splice(i2, 1), e3.unshift(t2));
|
|
365
|
+
}
|
|
366
|
+
function U(e3, t2) {
|
|
367
|
+
const i2 = e3.indexOf(t2);
|
|
368
|
+
i2 > -1 && (e3.splice(i2, 1), e3.push(t2));
|
|
369
|
+
}
|
|
370
|
+
function K(e3, t2, i2 = 1) {
|
|
371
|
+
const s2 = Math.max(0, Math.ceil((t2 - e3) / i2)), n2 = new Array(s2);
|
|
372
|
+
let r2 = -1;
|
|
373
|
+
for (; ++r2 < s2; ) n2[r2] = e3 + r2 * i2;
|
|
374
|
+
return n2;
|
|
375
|
+
}
|
|
376
|
+
var Z = "sash-module_sash__K-9lB";
|
|
377
|
+
var Q = "sash-module_disabled__Hm-wx";
|
|
378
|
+
var q = "sash-module_mac__Jf6OJ";
|
|
379
|
+
var ee = "sash-module_vertical__pB-rs";
|
|
380
|
+
var te = "sash-module_minimum__-UKxp";
|
|
381
|
+
var ie = "sash-module_maximum__TCWxD";
|
|
382
|
+
var se = "sash-module_horizontal__kFbiw";
|
|
383
|
+
var ne = "sash-module_hover__80W6I";
|
|
384
|
+
var re = "sash-module_active__bJspD";
|
|
385
|
+
var oe = (function(e3) {
|
|
386
|
+
return e3.Vertical = "VERTICAL", e3.Horizontal = "HORIZONTAL", e3;
|
|
387
|
+
})({});
|
|
388
|
+
var ae = (function(e3) {
|
|
389
|
+
return e3.Disabled = "DISABLED", e3.Minimum = "MINIMUM", e3.Maximum = "MAXIMUM", e3.Enabled = "ENABLED", e3;
|
|
390
|
+
})({});
|
|
391
|
+
var he = H ? 20 : 8;
|
|
392
|
+
var le = new G();
|
|
393
|
+
var ue = class extends G {
|
|
394
|
+
get state() {
|
|
395
|
+
return this._state;
|
|
396
|
+
}
|
|
397
|
+
set state(e3) {
|
|
398
|
+
this._state !== e3 && (this.el.classList.toggle(Q, e3 === ae.Disabled), this.el.classList.toggle("sash-disabled", e3 === ae.Disabled), this.el.classList.toggle(te, e3 === ae.Minimum), this.el.classList.toggle("sash-minimum", e3 === ae.Minimum), this.el.classList.toggle(ie, e3 === ae.Maximum), this.el.classList.toggle("sash-maximum", e3 === ae.Maximum), this._state = e3, this.emit("enablementChange", e3));
|
|
399
|
+
}
|
|
400
|
+
constructor(e3, t2, i2) {
|
|
401
|
+
var _i$orientation;
|
|
402
|
+
super(), this.el = void 0, this.layoutProvider = void 0, this.orientation = void 0, this.size = void 0, this.hoverDelay = 300, this.hoverDelayer = _((e4) => e4.classList.add("sash-hover", ne), this.hoverDelay), this._state = ae.Enabled, this.onPointerStart = (e4) => {
|
|
403
|
+
const t3 = e4.pageX, i3 = e4.pageY, s2 = {
|
|
404
|
+
startX: t3,
|
|
405
|
+
currentX: t3,
|
|
406
|
+
startY: i3,
|
|
407
|
+
currentY: i3
|
|
408
|
+
};
|
|
409
|
+
this.el.classList.add("sash-active", re), this.emit("start", s2), this.el.setPointerCapture(e4.pointerId);
|
|
410
|
+
const n2 = (e5) => {
|
|
411
|
+
e5.preventDefault();
|
|
412
|
+
const s3 = {
|
|
413
|
+
startX: t3,
|
|
414
|
+
currentX: e5.pageX,
|
|
415
|
+
startY: i3,
|
|
416
|
+
currentY: e5.pageY
|
|
417
|
+
};
|
|
418
|
+
this.emit("change", s3);
|
|
419
|
+
}, r2 = (e5) => {
|
|
420
|
+
e5.preventDefault(), this.el.classList.remove("sash-active", re), this.hoverDelayer.cancel(), this.emit("end"), this.el.releasePointerCapture(e5.pointerId), window.removeEventListener("pointermove", n2), window.removeEventListener("pointerup", r2);
|
|
421
|
+
};
|
|
422
|
+
window.addEventListener("pointermove", n2), window.addEventListener("pointerup", r2);
|
|
423
|
+
}, this.onPointerDoublePress = () => {
|
|
424
|
+
this.emit("reset");
|
|
425
|
+
}, this.onMouseEnter = () => {
|
|
426
|
+
this.el.classList.contains(re) ? (this.hoverDelayer.cancel(), this.el.classList.add("sash-hover", ne)) : this.hoverDelayer(this.el);
|
|
427
|
+
}, this.onMouseLeave = () => {
|
|
428
|
+
this.hoverDelayer.cancel(), this.el.classList.remove("sash-hover", ne);
|
|
429
|
+
}, this.el = document.createElement("div"), this.el.classList.add("sash", Z), this.el.dataset.testid = "sash", e3.append(this.el), Y && this.el.classList.add("sash-mac", q), this.el.addEventListener("pointerdown", this.onPointerStart), this.el.addEventListener("dblclick", this.onPointerDoublePress), this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("mouseleave", this.onMouseLeave), "number" == typeof i2.size ? (this.size = i2.size, i2.orientation === oe.Vertical ? this.el.style.width = `${this.size}px` : this.el.style.height = `${this.size}px`) : (this.size = he, le.on("onDidChangeGlobalSize", (e4) => {
|
|
430
|
+
this.size = e4, this.layout();
|
|
431
|
+
})), this.layoutProvider = t2, this.orientation = (_i$orientation = i2.orientation) != null ? _i$orientation : oe.Vertical, this.orientation === oe.Horizontal ? (this.el.classList.add("sash-horizontal", se), this.el.classList.remove("sash-vertical", ee)) : (this.el.classList.remove("sash-horizontal", se), this.el.classList.add("sash-vertical", ee)), this.layout();
|
|
432
|
+
}
|
|
433
|
+
layout() {
|
|
434
|
+
if (this.orientation === oe.Vertical) {
|
|
435
|
+
const e3 = this.layoutProvider;
|
|
436
|
+
this.el.style.left = e3.getVerticalSashLeft(this) - this.size / 2 + "px", e3.getVerticalSashTop && (this.el.style.top = e3.getVerticalSashTop(this) + "px"), e3.getVerticalSashHeight && (this.el.style.height = e3.getVerticalSashHeight(this) + "px");
|
|
437
|
+
} else {
|
|
438
|
+
const e3 = this.layoutProvider;
|
|
439
|
+
this.el.style.top = e3.getHorizontalSashTop(this) - this.size / 2 + "px", e3.getHorizontalSashLeft && (this.el.style.left = e3.getHorizontalSashLeft(this) + "px"), e3.getHorizontalSashWidth && (this.el.style.width = e3.getHorizontalSashWidth(this) + "px");
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
dispose() {
|
|
443
|
+
this.el.removeEventListener("pointerdown", this.onPointerStart), this.el.removeEventListener("dblclick", this.onPointerDoublePress), this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("mouseleave", () => this.onMouseLeave), this.el.remove();
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
var ce;
|
|
447
|
+
var me;
|
|
448
|
+
(me = ce || (ce = {})).Distribute = {
|
|
449
|
+
type: "distribute"
|
|
450
|
+
}, me.Split = function(e3) {
|
|
451
|
+
return {
|
|
452
|
+
type: "split",
|
|
453
|
+
index: e3
|
|
454
|
+
};
|
|
455
|
+
}, me.Invisible = function(e3) {
|
|
456
|
+
return {
|
|
457
|
+
type: "invisible",
|
|
458
|
+
cachedVisibleSize: e3
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
var de = (function(e3) {
|
|
462
|
+
return e3.Normal = "NORMAL", e3.Low = "LOW", e3.High = "HIGH", e3;
|
|
463
|
+
})({});
|
|
464
|
+
var fe = class {
|
|
465
|
+
constructor(e3, t2, i2) {
|
|
466
|
+
this.container = void 0, this.view = void 0, this._size = void 0, this._cachedVisibleSize = void 0, this.container = e3, this.view = t2, this.container.classList.add("split-view-view", M), this.container.dataset.testid = "split-view-view", "number" == typeof i2 ? (this._size = i2, this._cachedVisibleSize = void 0, e3.classList.add("split-view-view-visible")) : (this._size = 0, this._cachedVisibleSize = i2.cachedVisibleSize);
|
|
467
|
+
}
|
|
468
|
+
set size(e3) {
|
|
469
|
+
this._size = e3;
|
|
470
|
+
}
|
|
471
|
+
get size() {
|
|
472
|
+
return this._size;
|
|
473
|
+
}
|
|
474
|
+
get priority() {
|
|
475
|
+
return this.view.priority;
|
|
476
|
+
}
|
|
477
|
+
get snap() {
|
|
478
|
+
return !!this.view.snap;
|
|
479
|
+
}
|
|
480
|
+
get cachedVisibleSize() {
|
|
481
|
+
return this._cachedVisibleSize;
|
|
482
|
+
}
|
|
483
|
+
get visible() {
|
|
484
|
+
return void 0 === this._cachedVisibleSize;
|
|
485
|
+
}
|
|
486
|
+
setVisible(e3, t2) {
|
|
487
|
+
e3 !== this.visible && (e3 ? (this.size = x(this._cachedVisibleSize, this.viewMinimumSize, this.viewMaximumSize), this._cachedVisibleSize = void 0) : (this._cachedVisibleSize = "number" == typeof t2 ? t2 : this.size, this.size = 0), this.container.classList.toggle("split-view-view-visible", e3), this.view.setVisible && this.view.setVisible(e3));
|
|
488
|
+
}
|
|
489
|
+
get minimumSize() {
|
|
490
|
+
return this.visible ? this.view.minimumSize : 0;
|
|
491
|
+
}
|
|
492
|
+
get viewMinimumSize() {
|
|
493
|
+
return this.view.minimumSize;
|
|
494
|
+
}
|
|
495
|
+
get maximumSize() {
|
|
496
|
+
return this.visible ? this.view.maximumSize : 0;
|
|
497
|
+
}
|
|
498
|
+
get viewMaximumSize() {
|
|
499
|
+
return this.view.maximumSize;
|
|
500
|
+
}
|
|
501
|
+
set enabled(e3) {
|
|
502
|
+
this.container.style.pointerEvents = e3 ? "" : "none";
|
|
503
|
+
}
|
|
504
|
+
layout(e3) {
|
|
505
|
+
this.layoutContainer(e3), this.view.layout(this.size, e3);
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
var pe = class extends fe {
|
|
509
|
+
layoutContainer(e3) {
|
|
510
|
+
this.container.style.left = `${e3}px`, this.container.style.width = `${this.size}px`;
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
var ve = class extends fe {
|
|
514
|
+
layoutContainer(e3) {
|
|
515
|
+
this.container.style.top = `${e3}px`, this.container.style.height = `${this.size}px`;
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
var Se = class extends G {
|
|
519
|
+
get startSnappingEnabled() {
|
|
520
|
+
return this._startSnappingEnabled;
|
|
521
|
+
}
|
|
522
|
+
set startSnappingEnabled(e3) {
|
|
523
|
+
this._startSnappingEnabled !== e3 && (this._startSnappingEnabled = e3, this.updateSashEnablement());
|
|
524
|
+
}
|
|
525
|
+
get endSnappingEnabled() {
|
|
526
|
+
return this._endSnappingEnabled;
|
|
527
|
+
}
|
|
528
|
+
set endSnappingEnabled(e3) {
|
|
529
|
+
this._endSnappingEnabled !== e3 && (this._endSnappingEnabled = e3, this.updateSashEnablement());
|
|
530
|
+
}
|
|
531
|
+
constructor(e3, t2 = {}, i2, s2, n2) {
|
|
532
|
+
var _t$orientation, _t$proportionalLayout;
|
|
533
|
+
if (super(), this.onDidChange = void 0, this.onDidDragStart = void 0, this.onDidDragEnd = void 0, this.orientation = void 0, this.sashContainer = void 0, this.size = 0, this.contentSize = 0, this.proportions = void 0, this.viewItems = [], this.sashItems = [], this.sashDragState = void 0, this.proportionalLayout = void 0, this.getSashOrthogonalSize = void 0, this._startSnappingEnabled = true, this._endSnappingEnabled = true, this.onSashEnd = (e4) => {
|
|
534
|
+
this.emit("sashchange", e4), this.saveProportions();
|
|
535
|
+
for (const _e3 of this.viewItems) _e3.enabled = true;
|
|
536
|
+
}, this.orientation = (_t$orientation = t2.orientation) != null ? _t$orientation : oe.Vertical, this.proportionalLayout = (_t$proportionalLayout = t2.proportionalLayout) != null ? _t$proportionalLayout : true, this.getSashOrthogonalSize = t2.getSashOrthogonalSize, i2 && (this.onDidChange = i2), s2 && (this.onDidDragStart = s2), n2 && (this.onDidDragEnd = n2), this.sashContainer = document.createElement("div"), this.sashContainer.classList.add("sash-container", D), e3.prepend(this.sashContainer), t2.descriptor) {
|
|
537
|
+
this.size = t2.descriptor.size;
|
|
538
|
+
for (const [_e4, _i] of t2.descriptor.views.entries()) {
|
|
539
|
+
const _t = _i.size, _s = _i.container, _n = _i.view;
|
|
540
|
+
this.addView(_s, _n, _t, _e4, true);
|
|
541
|
+
}
|
|
542
|
+
this.contentSize = this.viewItems.reduce((e4, t3) => e4 + t3.size, 0), this.saveProportions();
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
addView(e3, t2, i2, s2 = this.viewItems.length, n2) {
|
|
546
|
+
let r2;
|
|
547
|
+
r2 = "number" == typeof i2 ? i2 : "split" === i2.type ? this.getViewSize(i2.index) / 2 : "invisible" === i2.type ? {
|
|
548
|
+
cachedVisibleSize: i2.cachedVisibleSize
|
|
549
|
+
} : t2.minimumSize;
|
|
550
|
+
const o2 = this.orientation === oe.Vertical ? new ve(e3, t2, r2) : new pe(e3, t2, r2);
|
|
551
|
+
if (this.viewItems.splice(s2, 0, o2), this.viewItems.length > 1) {
|
|
552
|
+
const _e5 = this.orientation === oe.Vertical ? new ue(this.sashContainer, {
|
|
553
|
+
getHorizontalSashTop: (e4) => this.getSashPosition(e4),
|
|
554
|
+
getHorizontalSashWidth: this.getSashOrthogonalSize
|
|
555
|
+
}, {
|
|
556
|
+
orientation: oe.Horizontal
|
|
557
|
+
}) : new ue(this.sashContainer, {
|
|
558
|
+
getVerticalSashLeft: (e4) => this.getSashPosition(e4),
|
|
559
|
+
getVerticalSashHeight: this.getSashOrthogonalSize
|
|
560
|
+
}, {
|
|
561
|
+
orientation: oe.Vertical
|
|
562
|
+
}), _t2 = this.orientation === oe.Vertical ? (t3) => ({
|
|
563
|
+
sash: _e5,
|
|
564
|
+
start: t3.startY,
|
|
565
|
+
current: t3.currentY
|
|
566
|
+
}) : (t3) => ({
|
|
567
|
+
sash: _e5,
|
|
568
|
+
start: t3.startX,
|
|
569
|
+
current: t3.currentX
|
|
570
|
+
});
|
|
571
|
+
_e5.on("start", (e4) => {
|
|
572
|
+
var _this$onDidDragStart;
|
|
573
|
+
this.emit("sashDragStart"), this.onSashStart(_t2(e4));
|
|
574
|
+
const i3 = this.viewItems.map((e5) => e5.size);
|
|
575
|
+
(_this$onDidDragStart = this.onDidDragStart) == null || _this$onDidDragStart.call(this, i3);
|
|
576
|
+
}), _e5.on("change", (e4) => this.onSashChange(_t2(e4))), _e5.on("end", () => {
|
|
577
|
+
var _this$onDidDragEnd;
|
|
578
|
+
this.emit("sashDragEnd"), this.onSashEnd(this.sashItems.findIndex((t4) => t4.sash === _e5));
|
|
579
|
+
const t3 = this.viewItems.map((e4) => e4.size);
|
|
580
|
+
(_this$onDidDragEnd = this.onDidDragEnd) == null || _this$onDidDragEnd.call(this, t3);
|
|
581
|
+
}), _e5.on("reset", () => {
|
|
582
|
+
const t3 = this.sashItems.findIndex((t4) => t4.sash === _e5), i3 = K(t3, -1, -1), s3 = K(t3 + 1, this.viewItems.length), n3 = this.findFirstSnapIndex(i3), r3 = this.findFirstSnapIndex(s3);
|
|
583
|
+
("number" != typeof n3 || this.viewItems[n3].visible) && ("number" != typeof r3 || this.viewItems[r3].visible) && this.emit("sashreset", t3);
|
|
584
|
+
});
|
|
585
|
+
const _i2 = {
|
|
586
|
+
sash: _e5
|
|
587
|
+
};
|
|
588
|
+
this.sashItems.splice(s2 - 1, 0, _i2);
|
|
589
|
+
}
|
|
590
|
+
n2 || this.relayout(), n2 || "number" == typeof i2 || "distribute" !== i2.type || this.distributeViewSizes();
|
|
591
|
+
}
|
|
592
|
+
removeView(e3, t2) {
|
|
593
|
+
if (e3 < 0 || e3 >= this.viewItems.length) throw new Error("Index out of bounds");
|
|
594
|
+
const i2 = this.viewItems.splice(e3, 1)[0].view;
|
|
595
|
+
if (this.viewItems.length >= 1) {
|
|
596
|
+
const _t3 = Math.max(e3 - 1, 0);
|
|
597
|
+
this.sashItems.splice(_t3, 1)[0].sash.dispose();
|
|
598
|
+
}
|
|
599
|
+
return this.relayout(), t2 && "distribute" === t2.type && this.distributeViewSizes(), i2;
|
|
600
|
+
}
|
|
601
|
+
moveView(e3, t2, i2) {
|
|
602
|
+
const s2 = this.getViewCachedVisibleSize(t2), n2 = void 0 === s2 ? this.getViewSize(t2) : ce.Invisible(s2), r2 = this.removeView(t2);
|
|
603
|
+
this.addView(e3, r2, n2, i2);
|
|
604
|
+
}
|
|
605
|
+
getViewCachedVisibleSize(e3) {
|
|
606
|
+
if (e3 < 0 || e3 >= this.viewItems.length) throw new Error("Index out of bounds");
|
|
607
|
+
return this.viewItems[e3].cachedVisibleSize;
|
|
608
|
+
}
|
|
609
|
+
layout(e3 = this.size) {
|
|
610
|
+
const t2 = Math.max(this.size, this.contentSize);
|
|
611
|
+
if (this.size = e3, this.proportions) for (let _t4 = 0; _t4 < this.viewItems.length; _t4++) {
|
|
612
|
+
const i2 = this.viewItems[_t4];
|
|
613
|
+
i2.size = x(Math.round(this.proportions[_t4] * e3), i2.minimumSize, i2.maximumSize);
|
|
614
|
+
}
|
|
615
|
+
else {
|
|
616
|
+
const i2 = K(0, this.viewItems.length), s2 = i2.filter((e4) => this.viewItems[e4].priority === de.Low), n2 = i2.filter((e4) => this.viewItems[e4].priority === de.High);
|
|
617
|
+
this.resize(this.viewItems.length - 1, e3 - t2, void 0, s2, n2);
|
|
618
|
+
}
|
|
619
|
+
this.distributeEmptySpace(), this.layoutViews();
|
|
620
|
+
}
|
|
621
|
+
resizeView(e3, t2) {
|
|
622
|
+
if (e3 < 0 || e3 >= this.viewItems.length) return;
|
|
623
|
+
const i2 = K(0, this.viewItems.length).filter((t3) => t3 !== e3), s2 = [...i2.filter((e4) => this.viewItems[e4].priority === de.Low), e3], n2 = i2.filter((e4) => this.viewItems[e4].priority === de.High), r2 = this.viewItems[e3];
|
|
624
|
+
t2 = Math.round(t2), t2 = x(t2, r2.minimumSize, Math.min(r2.maximumSize, this.size)), r2.size = t2, this.relayout(s2, n2);
|
|
625
|
+
}
|
|
626
|
+
resizeViews(e3) {
|
|
627
|
+
for (let t2 = 0; t2 < e3.length; t2++) {
|
|
628
|
+
const i2 = this.viewItems[t2];
|
|
629
|
+
let s2 = e3[t2];
|
|
630
|
+
s2 = Math.round(s2), s2 = x(s2, i2.minimumSize, Math.min(i2.maximumSize, this.size)), i2.size = s2;
|
|
631
|
+
}
|
|
632
|
+
this.contentSize = this.viewItems.reduce((e4, t2) => e4 + t2.size, 0), this.saveProportions(), this.layout(this.size);
|
|
633
|
+
}
|
|
634
|
+
getViewSize(e3) {
|
|
635
|
+
return e3 < 0 || e3 >= this.viewItems.length ? -1 : this.viewItems[e3].size;
|
|
636
|
+
}
|
|
637
|
+
isViewVisible(e3) {
|
|
638
|
+
if (e3 < 0 || e3 >= this.viewItems.length) throw new Error("Index out of bounds");
|
|
639
|
+
return this.viewItems[e3].visible;
|
|
640
|
+
}
|
|
641
|
+
setViewVisible(e3, t2) {
|
|
642
|
+
if (e3 < 0 || e3 >= this.viewItems.length) throw new Error("Index out of bounds");
|
|
643
|
+
this.viewItems[e3].setVisible(t2), this.distributeEmptySpace(e3), this.layoutViews(), this.saveProportions();
|
|
644
|
+
}
|
|
645
|
+
distributeViewSizes() {
|
|
646
|
+
const e3 = [];
|
|
647
|
+
let t2 = 0;
|
|
648
|
+
for (const _i3 of this.viewItems) _i3.maximumSize - _i3.minimumSize > 0 && (e3.push(_i3), t2 += _i3.size);
|
|
649
|
+
const i2 = Math.floor(t2 / e3.length);
|
|
650
|
+
for (const _t5 of e3) _t5.size = x(i2, _t5.minimumSize, _t5.maximumSize);
|
|
651
|
+
const s2 = K(0, this.viewItems.length), n2 = s2.filter((e4) => this.viewItems[e4].priority === de.Low), r2 = s2.filter((e4) => this.viewItems[e4].priority === de.High);
|
|
652
|
+
this.relayout(n2, r2);
|
|
653
|
+
}
|
|
654
|
+
dispose() {
|
|
655
|
+
this.sashItems.forEach((e3) => e3.sash.dispose()), this.sashItems = [], this.sashContainer.remove();
|
|
656
|
+
}
|
|
657
|
+
relayout(e3, t2) {
|
|
658
|
+
const i2 = this.viewItems.reduce((e4, t3) => e4 + t3.size, 0);
|
|
659
|
+
this.resize(this.viewItems.length - 1, this.size - i2, void 0, e3, t2), this.distributeEmptySpace(), this.layoutViews(), this.saveProportions();
|
|
660
|
+
}
|
|
661
|
+
onSashStart({
|
|
662
|
+
sash: e3,
|
|
663
|
+
start: t2
|
|
664
|
+
}) {
|
|
665
|
+
const i2 = this.sashItems.findIndex((t3) => t3.sash === e3);
|
|
666
|
+
((e4) => {
|
|
667
|
+
const t3 = this.viewItems.map((e5) => e5.size);
|
|
668
|
+
let s2, n2, r2 = Number.NEGATIVE_INFINITY, o2 = Number.POSITIVE_INFINITY;
|
|
669
|
+
const a2 = K(i2, -1, -1), h2 = K(i2 + 1, this.viewItems.length), l2 = a2.reduce((e5, i3) => e5 + (this.viewItems[i3].minimumSize - t3[i3]), 0), u2 = a2.reduce((e5, i3) => e5 + (this.viewItems[i3].viewMaximumSize - t3[i3]), 0), c2 = 0 === h2.length ? Number.POSITIVE_INFINITY : h2.reduce((e5, i3) => e5 + (t3[i3] - this.viewItems[i3].minimumSize), 0), m2 = 0 === h2.length ? Number.NEGATIVE_INFINITY : h2.reduce((e5, i3) => e5 + (t3[i3] - this.viewItems[i3].viewMaximumSize), 0);
|
|
670
|
+
r2 = Math.max(l2, m2), o2 = Math.min(c2, u2);
|
|
671
|
+
const d2 = this.findFirstSnapIndex(a2), f2 = this.findFirstSnapIndex(h2);
|
|
672
|
+
if ("number" == typeof d2) {
|
|
673
|
+
const _e6 = this.viewItems[d2], _t6 = Math.floor(_e6.viewMinimumSize / 2);
|
|
674
|
+
s2 = {
|
|
675
|
+
index: d2,
|
|
676
|
+
limitDelta: _e6.visible ? r2 - _t6 : r2 + _t6,
|
|
677
|
+
size: _e6.size
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
if ("number" == typeof f2) {
|
|
681
|
+
const _e7 = this.viewItems[f2], _t7 = Math.floor(_e7.viewMinimumSize / 2);
|
|
682
|
+
n2 = {
|
|
683
|
+
index: f2,
|
|
684
|
+
limitDelta: _e7.visible ? o2 + _t7 : o2 - _t7,
|
|
685
|
+
size: _e7.size
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
this.sashDragState = {
|
|
689
|
+
start: e4,
|
|
690
|
+
current: e4,
|
|
691
|
+
index: i2,
|
|
692
|
+
sizes: t3,
|
|
693
|
+
minDelta: r2,
|
|
694
|
+
maxDelta: o2,
|
|
695
|
+
snapBefore: s2,
|
|
696
|
+
snapAfter: n2
|
|
697
|
+
};
|
|
698
|
+
})(t2);
|
|
699
|
+
}
|
|
700
|
+
onSashChange({
|
|
701
|
+
current: e3
|
|
702
|
+
}) {
|
|
703
|
+
const {
|
|
704
|
+
index: t2,
|
|
705
|
+
start: i2,
|
|
706
|
+
sizes: s2,
|
|
707
|
+
minDelta: n2,
|
|
708
|
+
maxDelta: r2,
|
|
709
|
+
snapBefore: o2,
|
|
710
|
+
snapAfter: a2
|
|
711
|
+
} = this.sashDragState;
|
|
712
|
+
this.sashDragState.current = e3;
|
|
713
|
+
const h2 = e3 - i2;
|
|
714
|
+
this.resize(t2, h2, s2, void 0, void 0, n2, r2, o2, a2), this.distributeEmptySpace(), this.layoutViews();
|
|
715
|
+
}
|
|
716
|
+
getSashPosition(e3) {
|
|
717
|
+
let t2 = 0;
|
|
718
|
+
for (let i2 = 0; i2 < this.sashItems.length; i2++) if (t2 += this.viewItems[i2].size, this.sashItems[i2].sash === e3) return t2;
|
|
719
|
+
return 0;
|
|
720
|
+
}
|
|
721
|
+
resize(e3, t2, i2 = this.viewItems.map((e4) => e4.size), s2, n2, r2 = Number.NEGATIVE_INFINITY, o2 = Number.POSITIVE_INFINITY, a2, h2) {
|
|
722
|
+
if (e3 < 0 || e3 >= this.viewItems.length) return 0;
|
|
723
|
+
const l2 = K(e3, -1, -1), u2 = K(e3 + 1, this.viewItems.length);
|
|
724
|
+
if (n2) for (const _e8 of n2) J(l2, _e8), J(u2, _e8);
|
|
725
|
+
if (s2) for (const _e9 of s2) U(l2, _e9), U(u2, _e9);
|
|
726
|
+
const c2 = l2.map((e4) => this.viewItems[e4]), m2 = l2.map((e4) => i2[e4]), d2 = u2.map((e4) => this.viewItems[e4]), f2 = u2.map((e4) => i2[e4]), p2 = l2.reduce((e4, t3) => e4 + (this.viewItems[t3].minimumSize - i2[t3]), 0), v2 = l2.reduce((e4, t3) => e4 + (this.viewItems[t3].maximumSize - i2[t3]), 0), S2 = 0 === u2.length ? Number.POSITIVE_INFINITY : u2.reduce((e4, t3) => e4 + (i2[t3] - this.viewItems[t3].minimumSize), 0), z2 = 0 === u2.length ? Number.NEGATIVE_INFINITY : u2.reduce((e4, t3) => e4 + (i2[t3] - this.viewItems[t3].maximumSize), 0), w2 = Math.max(p2, z2, r2), g2 = Math.min(S2, v2, o2);
|
|
727
|
+
let y2 = false;
|
|
728
|
+
if (a2) {
|
|
729
|
+
const _e0 = this.viewItems[a2.index], _i4 = t2 >= a2.limitDelta;
|
|
730
|
+
y2 = _i4 !== _e0.visible, _e0.setVisible(_i4, a2.size);
|
|
731
|
+
}
|
|
732
|
+
if (!y2 && h2) {
|
|
733
|
+
const _e1 = this.viewItems[h2.index], _i5 = t2 < h2.limitDelta;
|
|
734
|
+
y2 = _i5 !== _e1.visible, _e1.setVisible(_i5, h2.size);
|
|
735
|
+
}
|
|
736
|
+
if (y2) return this.resize(e3, t2, i2, s2, n2, r2, o2);
|
|
737
|
+
for (let _e10 = 0, _i6 = t2 = x(t2, w2, g2); _e10 < c2.length; _e10++) {
|
|
738
|
+
const _t8 = c2[_e10], _s2 = x(m2[_e10] + _i6, _t8.minimumSize, _t8.maximumSize);
|
|
739
|
+
_i6 -= _s2 - m2[_e10], _t8.size = _s2;
|
|
740
|
+
}
|
|
741
|
+
for (let _e11 = 0, _i7 = t2; _e11 < d2.length; _e11++) {
|
|
742
|
+
const _t9 = d2[_e11], _s3 = x(f2[_e11] - _i7, _t9.minimumSize, _t9.maximumSize);
|
|
743
|
+
_i7 += _s3 - f2[_e11], _t9.size = _s3;
|
|
744
|
+
}
|
|
745
|
+
return t2;
|
|
746
|
+
}
|
|
747
|
+
distributeEmptySpace(e3) {
|
|
748
|
+
const t2 = this.viewItems.reduce((e4, t3) => e4 + t3.size, 0);
|
|
749
|
+
let i2 = this.size - t2;
|
|
750
|
+
const s2 = K(0, this.viewItems.length), n2 = [], r2 = s2.filter((e4) => this.viewItems[e4].priority === de.Low), o2 = s2.filter((e4) => this.viewItems[e4].priority === de.Normal), a2 = s2.filter((e4) => this.viewItems[e4].priority === de.High);
|
|
751
|
+
n2.push(...a2, ...o2, ...r2), "number" == typeof e3 && U(n2, e3);
|
|
752
|
+
for (let _e12 = 0; 0 !== i2 && _e12 < n2.length; _e12++) {
|
|
753
|
+
const _t0 = this.viewItems[n2[_e12]], _s4 = x(_t0.size + i2, _t0.minimumSize, _t0.maximumSize);
|
|
754
|
+
i2 -= _s4 - _t0.size, _t0.size = _s4;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
layoutViews() {
|
|
758
|
+
var _this$onDidChange;
|
|
759
|
+
this.contentSize = this.viewItems.reduce((e4, t2) => e4 + t2.size, 0);
|
|
760
|
+
let e3 = 0;
|
|
761
|
+
for (const t2 of this.viewItems) t2.layout(e3), e3 += t2.size;
|
|
762
|
+
(_this$onDidChange = this.onDidChange) != null && _this$onDidChange.call(this, this.viewItems.map((e4) => e4.size)), this.sashItems.forEach((e4) => e4.sash.layout()), this.updateSashEnablement();
|
|
763
|
+
}
|
|
764
|
+
saveProportions() {
|
|
765
|
+
this.proportionalLayout && this.contentSize > 0 && (this.proportions = this.viewItems.map((e3) => e3.size / this.contentSize));
|
|
766
|
+
}
|
|
767
|
+
updateSashEnablement() {
|
|
768
|
+
let e3 = false;
|
|
769
|
+
const t2 = this.viewItems.map((t3) => e3 = t3.size - t3.minimumSize > 0 || e3);
|
|
770
|
+
e3 = false;
|
|
771
|
+
const i2 = this.viewItems.map((t3) => e3 = t3.maximumSize - t3.size > 0 || e3), s2 = [...this.viewItems].reverse();
|
|
772
|
+
e3 = false;
|
|
773
|
+
const n2 = s2.map((t3) => e3 = t3.size - t3.minimumSize > 0 || e3).reverse();
|
|
774
|
+
e3 = false;
|
|
775
|
+
const r2 = s2.map((t3) => e3 = t3.maximumSize - t3.size > 0 || e3).reverse();
|
|
776
|
+
let o2 = 0;
|
|
777
|
+
for (let _e13 = 0; _e13 < this.sashItems.length; _e13++) {
|
|
778
|
+
const {
|
|
779
|
+
sash: _s5
|
|
780
|
+
} = this.sashItems[_e13];
|
|
781
|
+
o2 += this.viewItems[_e13].size;
|
|
782
|
+
const a2 = !(t2[_e13] && r2[_e13 + 1]), h2 = !(i2[_e13] && n2[_e13 + 1]);
|
|
783
|
+
if (a2 && h2) {
|
|
784
|
+
const _i8 = K(_e13, -1, -1), _r = K(_e13 + 1, this.viewItems.length), _a = this.findFirstSnapIndex(_i8), _h = this.findFirstSnapIndex(_r), l2 = "number" == typeof _a && !this.viewItems[_a].visible, u2 = "number" == typeof _h && !this.viewItems[_h].visible;
|
|
785
|
+
l2 && n2[_e13] && (o2 > 0 || this.startSnappingEnabled) ? _s5.state = ae.Minimum : u2 && t2[_e13] && (o2 < this.contentSize || this.endSnappingEnabled) ? _s5.state = ae.Maximum : _s5.state = ae.Disabled;
|
|
786
|
+
} else _s5.state = a2 && !h2 ? ae.Minimum : !a2 && h2 ? ae.Maximum : ae.Enabled;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
findFirstSnapIndex(e3) {
|
|
790
|
+
for (const t2 of e3) {
|
|
791
|
+
const _e14 = this.viewItems[t2];
|
|
792
|
+
if (_e14.visible && _e14.snap) return t2;
|
|
793
|
+
}
|
|
794
|
+
for (const t2 of e3) {
|
|
795
|
+
const _e15 = this.viewItems[t2];
|
|
796
|
+
if (_e15.visible && _e15.maximumSize - _e15.minimumSize > 0) return;
|
|
797
|
+
if (!_e15.visible && _e15.snap) return t2;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
var ze = class {
|
|
802
|
+
constructor(e3) {
|
|
803
|
+
this.size = void 0, this.size = e3;
|
|
804
|
+
}
|
|
805
|
+
getPreferredSize() {
|
|
806
|
+
return this.size;
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
var we = class {
|
|
810
|
+
constructor(e3, t2) {
|
|
811
|
+
this.proportion = void 0, this.layoutService = void 0, this.proportion = e3, this.layoutService = t2;
|
|
812
|
+
}
|
|
813
|
+
getPreferredSize() {
|
|
814
|
+
return this.proportion * this.layoutService.getSize();
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
var ge = class {
|
|
818
|
+
getPreferredSize() {
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
var ye = class {
|
|
822
|
+
get preferredSize() {
|
|
823
|
+
return this.layoutStrategy.getPreferredSize();
|
|
824
|
+
}
|
|
825
|
+
set preferredSize(e3) {
|
|
826
|
+
if ("number" == typeof e3) this.layoutStrategy = new ze(e3);
|
|
827
|
+
else if ("string" == typeof e3) {
|
|
828
|
+
const t2 = e3.trim();
|
|
829
|
+
if (B(t2, "%")) {
|
|
830
|
+
const _e16 = Number(t2.slice(0, -1)) / 100;
|
|
831
|
+
this.layoutStrategy = new we(_e16, this.layoutService);
|
|
832
|
+
} else if (B(t2, "px")) {
|
|
833
|
+
const _e17 = Number(t2.slice(0, -2)) / 100;
|
|
834
|
+
this.layoutStrategy = new ze(_e17);
|
|
835
|
+
} else if ("number" == typeof Number.parseFloat(t2)) {
|
|
836
|
+
const _e18 = Number.parseFloat(t2);
|
|
837
|
+
this.layoutStrategy = new ze(_e18);
|
|
838
|
+
} else this.layoutStrategy = new ge();
|
|
839
|
+
} else this.layoutStrategy = new ge();
|
|
840
|
+
}
|
|
841
|
+
constructor(e3, t2) {
|
|
842
|
+
var _t$priority;
|
|
843
|
+
if (this.minimumSize = 0, this.maximumSize = Number.POSITIVE_INFINITY, this.element = void 0, this.priority = void 0, this.snap = void 0, this.layoutService = void 0, this.layoutStrategy = void 0, this.layoutService = e3, this.element = t2.element, this.minimumSize = "number" == typeof t2.minimumSize ? t2.minimumSize : 30, this.maximumSize = "number" == typeof t2.maximumSize ? t2.maximumSize : Number.POSITIVE_INFINITY, "number" == typeof t2.preferredSize) this.layoutStrategy = new ze(t2.preferredSize);
|
|
844
|
+
else if ("string" == typeof t2.preferredSize) {
|
|
845
|
+
const _e19 = t2.preferredSize.trim();
|
|
846
|
+
if (B(_e19, "%")) {
|
|
847
|
+
const _t1 = Number(_e19.slice(0, -1)) / 100;
|
|
848
|
+
this.layoutStrategy = new we(_t1, this.layoutService);
|
|
849
|
+
} else if (B(_e19, "px")) {
|
|
850
|
+
const _t10 = Number(_e19.slice(0, -2));
|
|
851
|
+
this.layoutStrategy = new ze(_t10);
|
|
852
|
+
} else if ("number" == typeof Number.parseFloat(_e19)) {
|
|
853
|
+
const _t11 = Number.parseFloat(_e19);
|
|
854
|
+
this.layoutStrategy = new ze(_t11);
|
|
855
|
+
} else this.layoutStrategy = new ge();
|
|
856
|
+
} else this.layoutStrategy = new ge();
|
|
857
|
+
this.priority = (_t$priority = t2.priority) != null ? _t$priority : de.Normal, this.snap = "boolean" == typeof t2.snap && t2.snap;
|
|
858
|
+
}
|
|
859
|
+
layout(e3) {
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
function be(e3) {
|
|
863
|
+
return void 0 !== e3.minSize || void 0 !== e3.maxSize || void 0 !== e3.preferredSize || void 0 !== e3.priority || void 0 !== e3.visible;
|
|
864
|
+
}
|
|
865
|
+
var Ie = o(({
|
|
866
|
+
className: t2,
|
|
867
|
+
children: i2
|
|
868
|
+
}, s2) => e.createElement("div", {
|
|
869
|
+
ref: s2,
|
|
870
|
+
className: S("split-view-view", M, t2)
|
|
871
|
+
}, i2));
|
|
872
|
+
Ie.displayName = "Allotment.Pane";
|
|
873
|
+
var xe = o(({
|
|
874
|
+
children: r2,
|
|
875
|
+
className: o2,
|
|
876
|
+
id: l2,
|
|
877
|
+
maxSize: u2 = 1 / 0,
|
|
878
|
+
minSize: c2 = 30,
|
|
879
|
+
proportionalLayout: m2 = true,
|
|
880
|
+
separator: d2 = true,
|
|
881
|
+
sizes: f2,
|
|
882
|
+
defaultSizes: p2 = f2,
|
|
883
|
+
snap: v2 = false,
|
|
884
|
+
vertical: z2 = false,
|
|
885
|
+
onChange: w2,
|
|
886
|
+
onReset: g2,
|
|
887
|
+
onVisibleChange: b2,
|
|
888
|
+
onDragStart: I2,
|
|
889
|
+
onDragEnd: x2
|
|
890
|
+
}, _2) => {
|
|
891
|
+
const V2 = i(null), N2 = i([]), D2 = i(/* @__PURE__ */ new Map()), M2 = i(null), A2 = i(/* @__PURE__ */ new Map()), j2 = i(new $()), F2 = i([]), [Y2, B2] = t(false);
|
|
892
|
+
"production" !== process.env.NODE_ENV && f2 && console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");
|
|
893
|
+
const R2 = a(() => e.Children.toArray(r2).filter(e.isValidElement), [r2]), W2 = n((e3) => {
|
|
894
|
+
var _F$current, _M$current;
|
|
895
|
+
const t2 = (_F$current = F2.current) == null ? void 0 : _F$current[e3];
|
|
896
|
+
return "number" == typeof (t2 == null ? void 0 : t2.preferredSize) && ((_M$current = M2.current) != null && _M$current.resizeView(e3, Math.round(t2.preferredSize)), true);
|
|
897
|
+
}, []);
|
|
898
|
+
return h(_2, () => ({
|
|
899
|
+
reset: () => {
|
|
900
|
+
if (g2) g2();
|
|
901
|
+
else {
|
|
902
|
+
var _M$current2;
|
|
903
|
+
(_M$current2 = M2.current) == null || _M$current2.distributeViewSizes();
|
|
904
|
+
for (let e3 = 0; e3 < F2.current.length; e3++) W2(e3);
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
resize: (e3) => {
|
|
908
|
+
var _M$current3;
|
|
909
|
+
(_M$current3 = M2.current) == null || _M$current3.resizeViews(e3);
|
|
910
|
+
}
|
|
911
|
+
})), k(() => {
|
|
912
|
+
let e3 = true;
|
|
913
|
+
p2 && A2.current.size !== p2.length && (e3 = false, console.warn(`Expected ${p2.length} children based on defaultSizes but found ${A2.current.size}`)), e3 && p2 && (N2.current = R2.map((e4) => e4.key));
|
|
914
|
+
const t2 = _extends({
|
|
915
|
+
orientation: z2 ? oe.Vertical : oe.Horizontal,
|
|
916
|
+
proportionalLayout: m2
|
|
917
|
+
}, e3 && p2 && {
|
|
918
|
+
descriptor: {
|
|
919
|
+
size: p2.reduce((e4, t3) => e4 + t3, 0),
|
|
920
|
+
views: p2.map((e4, t3) => {
|
|
921
|
+
var _i$minSize, _i$maxSize, _i$priority, _i$snap;
|
|
922
|
+
const i3 = D2.current.get(N2.current[t3]), s2 = new ye(j2.current, _extends({
|
|
923
|
+
element: document.createElement("div"),
|
|
924
|
+
minimumSize: (_i$minSize = i3 == null ? void 0 : i3.minSize) != null ? _i$minSize : c2,
|
|
925
|
+
maximumSize: (_i$maxSize = i3 == null ? void 0 : i3.maxSize) != null ? _i$maxSize : u2,
|
|
926
|
+
priority: (_i$priority = i3 == null ? void 0 : i3.priority) != null ? _i$priority : de.Normal
|
|
927
|
+
}, (i3 == null ? void 0 : i3.preferredSize) && {
|
|
928
|
+
preferredSize: i3 == null ? void 0 : i3.preferredSize
|
|
929
|
+
}, {
|
|
930
|
+
snap: (_i$snap = i3 == null ? void 0 : i3.snap) != null ? _i$snap : v2
|
|
931
|
+
}));
|
|
932
|
+
return F2.current.push(s2), {
|
|
933
|
+
container: [...A2.current.values()][t3],
|
|
934
|
+
size: e4,
|
|
935
|
+
view: s2
|
|
936
|
+
};
|
|
937
|
+
})
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
M2.current = new Se(V2.current, t2, w2, I2, x2), M2.current.on("sashDragStart", () => {
|
|
941
|
+
var _V$current;
|
|
942
|
+
(_V$current = V2.current) == null || _V$current.classList.add("split-view-sash-dragging");
|
|
943
|
+
}), M2.current.on("sashDragEnd", () => {
|
|
944
|
+
var _V$current2;
|
|
945
|
+
(_V$current2 = V2.current) == null || _V$current2.classList.remove("split-view-sash-dragging");
|
|
946
|
+
}), M2.current.on("sashchange", (e4) => {
|
|
947
|
+
if (b2 && M2.current) {
|
|
948
|
+
const _e20 = R2.map((e5) => e5.key);
|
|
949
|
+
for (let t3 = 0; t3 < _e20.length; t3++) {
|
|
950
|
+
const i3 = D2.current.get(_e20[t3]);
|
|
951
|
+
void 0 !== (i3 == null ? void 0 : i3.visible) && i3.visible !== M2.current.isViewVisible(t3) && b2(t3, M2.current.isViewVisible(t3));
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}), M2.current.on("sashreset", (e4) => {
|
|
955
|
+
if (g2) g2();
|
|
956
|
+
else {
|
|
957
|
+
var _M$current4;
|
|
958
|
+
if (W2(e4)) return;
|
|
959
|
+
if (W2(e4 + 1)) return;
|
|
960
|
+
(_M$current4 = M2.current) == null || _M$current4.distributeViewSizes();
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
const i2 = M2.current;
|
|
964
|
+
return () => {
|
|
965
|
+
i2.dispose();
|
|
966
|
+
};
|
|
967
|
+
}, []), k(() => {
|
|
968
|
+
if (Y2) {
|
|
969
|
+
const e3 = R2.map((e4) => e4.key), t2 = [...N2.current], i2 = e3.filter((e4) => !N2.current.includes(e4)), s2 = e3.filter((e4) => N2.current.includes(e4)), n2 = N2.current.map((t3) => !e3.includes(t3));
|
|
970
|
+
for (let _e21 = n2.length - 1; _e21 >= 0; _e21--) {
|
|
971
|
+
var _M$current5;
|
|
972
|
+
n2[_e21] && ((_M$current5 = M2.current) != null && _M$current5.removeView(_e21), t2.splice(_e21, 1), F2.current.splice(_e21, 1));
|
|
973
|
+
}
|
|
974
|
+
for (const _s6 of i2) {
|
|
975
|
+
var _i9$minSize, _i9$maxSize, _i9$priority, _i9$snap, _M$current6;
|
|
976
|
+
const _i9 = D2.current.get(_s6), _n2 = new ye(j2.current, _extends({
|
|
977
|
+
element: document.createElement("div"),
|
|
978
|
+
minimumSize: (_i9$minSize = _i9 == null ? void 0 : _i9.minSize) != null ? _i9$minSize : c2,
|
|
979
|
+
maximumSize: (_i9$maxSize = _i9 == null ? void 0 : _i9.maxSize) != null ? _i9$maxSize : u2,
|
|
980
|
+
priority: (_i9$priority = _i9 == null ? void 0 : _i9.priority) != null ? _i9$priority : de.Normal
|
|
981
|
+
}, (_i9 == null ? void 0 : _i9.preferredSize) && {
|
|
982
|
+
preferredSize: _i9 == null ? void 0 : _i9.preferredSize
|
|
983
|
+
}, {
|
|
984
|
+
snap: (_i9$snap = _i9 == null ? void 0 : _i9.snap) != null ? _i9$snap : v2
|
|
985
|
+
}));
|
|
986
|
+
(_M$current6 = M2.current) != null && _M$current6.addView(A2.current.get(_s6), _n2, ce.Distribute, e3.findIndex((e4) => e4 === _s6)), t2.splice(e3.findIndex((e4) => e4 === _s6), 0, _s6), F2.current.splice(e3.findIndex((e4) => e4 === _s6), 0, _n2);
|
|
987
|
+
}
|
|
988
|
+
for (; !y(e3, t2); ) for (const [_i0, _s7] of e3.entries()) {
|
|
989
|
+
const _e22 = t2.findIndex((e4) => e4 === _s7);
|
|
990
|
+
if (_e22 !== _i0) {
|
|
991
|
+
var _M$current7;
|
|
992
|
+
(_M$current7 = M2.current) == null || _M$current7.moveView(A2.current.get(_s7), _e22, _i0);
|
|
993
|
+
const _n3 = t2[_e22];
|
|
994
|
+
t2.splice(_e22, 1), t2.splice(_i0, 0, _n3);
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
for (const _t12 of i2) {
|
|
999
|
+
var _M$current8;
|
|
1000
|
+
const _i1 = e3.findIndex((e4) => e4 === _t12), _s8 = F2.current[_i1].preferredSize;
|
|
1001
|
+
void 0 !== _s8 && ((_M$current8 = M2.current) == null ? void 0 : _M$current8.resizeView(_i1, _s8));
|
|
1002
|
+
}
|
|
1003
|
+
for (const _t13 of [...i2, ...s2]) {
|
|
1004
|
+
var _M$current9, _M$current0;
|
|
1005
|
+
const _i10 = D2.current.get(_t13), _s9 = e3.findIndex((e4) => e4 === _t13);
|
|
1006
|
+
_i10 && be(_i10) && void 0 !== _i10.visible && ((_M$current9 = M2.current) == null ? void 0 : _M$current9.isViewVisible(_s9)) !== _i10.visible && ((_M$current0 = M2.current) == null ? void 0 : _M$current0.setViewVisible(_s9, _i10.visible));
|
|
1007
|
+
}
|
|
1008
|
+
for (const _t14 of s2) {
|
|
1009
|
+
const _i11 = D2.current.get(_t14), _s0 = e3.findIndex((e4) => e4 === _t14);
|
|
1010
|
+
if (_i11 && be(_i11)) {
|
|
1011
|
+
var _M$current1;
|
|
1012
|
+
void 0 !== _i11.preferredSize && F2.current[_s0].preferredSize !== _i11.preferredSize && (F2.current[_s0].preferredSize = _i11.preferredSize);
|
|
1013
|
+
let _e23 = false;
|
|
1014
|
+
void 0 !== _i11.minSize && F2.current[_s0].minimumSize !== _i11.minSize && (F2.current[_s0].minimumSize = _i11.minSize, _e23 = true), void 0 !== _i11.maxSize && F2.current[_s0].maximumSize !== _i11.maxSize && (F2.current[_s0].maximumSize = _i11.maxSize, _e23 = true), _e23 && ((_M$current1 = M2.current) == null ? void 0 : _M$current1.layout());
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
(i2.length > 0 || n2.length > 0) && (N2.current = e3);
|
|
1018
|
+
}
|
|
1019
|
+
}, [R2, Y2, u2, c2, v2]), s(() => {
|
|
1020
|
+
M2.current && (M2.current.onDidChange = w2);
|
|
1021
|
+
}, [w2]), s(() => {
|
|
1022
|
+
M2.current && (M2.current.onDidDragStart = I2);
|
|
1023
|
+
}, [I2]), s(() => {
|
|
1024
|
+
M2.current && (M2.current.onDidDragEnd = x2);
|
|
1025
|
+
}, [x2]), E({
|
|
1026
|
+
ref: V2,
|
|
1027
|
+
onResize: ({
|
|
1028
|
+
width: e3,
|
|
1029
|
+
height: t2
|
|
1030
|
+
}) => {
|
|
1031
|
+
var _M$current10;
|
|
1032
|
+
e3 && t2 && ((_M$current10 = M2.current) != null && _M$current10.layout(z2 ? t2 : e3), j2.current.setSize(z2 ? t2 : e3), B2(true));
|
|
1033
|
+
}
|
|
1034
|
+
}), s(() => {
|
|
1035
|
+
H && _e(20);
|
|
1036
|
+
}, []), e.createElement("div", {
|
|
1037
|
+
ref: V2,
|
|
1038
|
+
className: S("split-view", z2 ? "split-view-vertical" : "split-view-horizontal", {
|
|
1039
|
+
"split-view-separator-border": d2
|
|
1040
|
+
}, L, z2 ? P : T, {
|
|
1041
|
+
[C]: d2
|
|
1042
|
+
}, o2),
|
|
1043
|
+
id: l2
|
|
1044
|
+
}, e.createElement("div", {
|
|
1045
|
+
className: S("split-view-container", O)
|
|
1046
|
+
}, e.Children.toArray(r2).map((t2) => {
|
|
1047
|
+
if (!e.isValidElement(t2)) return null;
|
|
1048
|
+
const i2 = t2.key;
|
|
1049
|
+
return "Allotment.Pane" === t2.type.displayName ? (D2.current.set(i2, t2.props), e.cloneElement(t2, {
|
|
1050
|
+
key: i2,
|
|
1051
|
+
ref: (e3) => {
|
|
1052
|
+
const s2 = t2.ref;
|
|
1053
|
+
s2 && (s2.current = e3), e3 ? A2.current.set(i2, e3) : A2.current.delete(i2);
|
|
1054
|
+
}
|
|
1055
|
+
})) : e.createElement(Ie, {
|
|
1056
|
+
key: i2,
|
|
1057
|
+
ref: (e3) => {
|
|
1058
|
+
e3 ? A2.current.set(i2, e3) : A2.current.delete(i2);
|
|
1059
|
+
}
|
|
1060
|
+
}, t2);
|
|
1061
|
+
})));
|
|
1062
|
+
});
|
|
1063
|
+
function _e(e3) {
|
|
1064
|
+
const t2 = x(e3, 4, 20), i2 = x(e3, 1, 8);
|
|
1065
|
+
document.documentElement.style.setProperty("--sash-size", t2 + "px"), document.documentElement.style.setProperty("--sash-hover-size", i2 + "px"), (function(e4) {
|
|
1066
|
+
he = e4, le.emit("onDidChangeGlobalSize", e4);
|
|
1067
|
+
})(t2);
|
|
1068
|
+
}
|
|
1069
|
+
xe.displayName = "Allotment";
|
|
1070
|
+
var Ve = Object.assign(xe, {
|
|
1071
|
+
Pane: Ie
|
|
1072
|
+
});
|
|
1073
|
+
|
|
1074
|
+
// src/components/Resizable.tsx
|
|
1075
|
+
import {
|
|
1076
|
+
Children,
|
|
1077
|
+
isValidElement,
|
|
1078
|
+
useEffect,
|
|
1079
|
+
useLayoutEffect,
|
|
1080
|
+
useRef
|
|
1081
|
+
} from "react";
|
|
1082
|
+
|
|
1083
|
+
// src/components/Resizable.module.css
|
|
1084
|
+
var Resizable_default = {
|
|
1085
|
+
"ResizablePanelGroup": "alinea-ResizablePanelGroup",
|
|
1086
|
+
"ResizablePanelGroup-handle": "alinea-ResizablePanelGroup-handle",
|
|
1087
|
+
"ResizablePanelGroupHandle": "alinea-ResizablePanelGroup-handle",
|
|
1088
|
+
"ResizablePanel": "alinea-ResizablePanel",
|
|
1089
|
+
"ResizablePanelGroup-view": "alinea-ResizablePanelGroup-view",
|
|
1090
|
+
"ResizablePanelGroupView": "alinea-ResizablePanelGroup-view"
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
// src/components/Resizable.tsx
|
|
1094
|
+
import { jsx } from "react/jsx-runtime";
|
|
1095
|
+
var styles = dist_default(Resizable_default);
|
|
1096
|
+
var priorities = {
|
|
1097
|
+
low: de.Low,
|
|
1098
|
+
normal: de.Normal,
|
|
1099
|
+
high: de.High
|
|
1100
|
+
};
|
|
1101
|
+
var rank = { high: 0, normal: 1, low: 2 };
|
|
1102
|
+
function isPanel(node) {
|
|
1103
|
+
return isValidElement(node) && node.type === ResizablePanel;
|
|
1104
|
+
}
|
|
1105
|
+
function isHandle(node) {
|
|
1106
|
+
return isValidElement(node) && node.type === ResizableHandle;
|
|
1107
|
+
}
|
|
1108
|
+
function priority({ priority: priority2, size, defaultSize }) {
|
|
1109
|
+
return priority2 ?? ((size ?? defaultSize) === void 0 ? "high" : "low");
|
|
1110
|
+
}
|
|
1111
|
+
function sum(sizes) {
|
|
1112
|
+
return sizes.reduce((total, size) => total + size, 0);
|
|
1113
|
+
}
|
|
1114
|
+
function ResizablePanelGroup({
|
|
1115
|
+
direction = "horizontal",
|
|
1116
|
+
onLayout,
|
|
1117
|
+
className,
|
|
1118
|
+
children,
|
|
1119
|
+
...props
|
|
1120
|
+
}) {
|
|
1121
|
+
const root = useRef(null);
|
|
1122
|
+
const allotment = useRef(null);
|
|
1123
|
+
const panels = [];
|
|
1124
|
+
const handles = [];
|
|
1125
|
+
for (const node of Children.toArray(children)) {
|
|
1126
|
+
if (isPanel(node)) panels.push(node);
|
|
1127
|
+
else if (isHandle(node) && panels.length > 0)
|
|
1128
|
+
handles[panels.length - 1] = node;
|
|
1129
|
+
}
|
|
1130
|
+
const vertical = direction === "vertical";
|
|
1131
|
+
const latest = useRef({ panels, handles, onLayout, vertical });
|
|
1132
|
+
const dragStart = useRef([]);
|
|
1133
|
+
const sizes = useRef(/* @__PURE__ */ new Map());
|
|
1134
|
+
useLayoutEffect(() => {
|
|
1135
|
+
latest.current = { panels, handles, onLayout, vertical };
|
|
1136
|
+
});
|
|
1137
|
+
function views() {
|
|
1138
|
+
const container = root.current?.querySelector(
|
|
1139
|
+
":scope > .split-view > .split-view-container"
|
|
1140
|
+
);
|
|
1141
|
+
return Array.from(container?.children ?? []);
|
|
1142
|
+
}
|
|
1143
|
+
function measure() {
|
|
1144
|
+
return views().map((view) => {
|
|
1145
|
+
const bounds = view.getBoundingClientRect();
|
|
1146
|
+
return vertical ? bounds.height : bounds.width;
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
function resize(targets) {
|
|
1150
|
+
const { panels: panels2 } = latest.current;
|
|
1151
|
+
const current = measure();
|
|
1152
|
+
if (current.length !== panels2.length) return current;
|
|
1153
|
+
const next = [...current];
|
|
1154
|
+
for (const [index, size] of targets) next[index] = size;
|
|
1155
|
+
const flexible = panels2.map((panel, index) => ({ panel, index })).filter(
|
|
1156
|
+
({ panel, index }) => !targets.has(index) && panel.props.visible !== false
|
|
1157
|
+
).sort(
|
|
1158
|
+
(a2, b2) => rank[priority(a2.panel.props)] - rank[priority(b2.panel.props)]
|
|
1159
|
+
);
|
|
1160
|
+
if (flexible.length > 0) next[flexible[0].index] += sum(current) - sum(next);
|
|
1161
|
+
allotment.current?.resize(next);
|
|
1162
|
+
return measure();
|
|
1163
|
+
}
|
|
1164
|
+
function reset() {
|
|
1165
|
+
const { panels: panels2, onLayout: onLayout2 } = latest.current;
|
|
1166
|
+
const targets = /* @__PURE__ */ new Map();
|
|
1167
|
+
panels2.forEach((panel, index) => {
|
|
1168
|
+
const { defaultSize, visible } = panel.props;
|
|
1169
|
+
if (defaultSize !== void 0 && visible !== false)
|
|
1170
|
+
targets.set(index, defaultSize);
|
|
1171
|
+
});
|
|
1172
|
+
if (targets.size === 0) {
|
|
1173
|
+
const visible = panels2.filter((panel) => panel.props.visible !== false);
|
|
1174
|
+
const size = sum(measure()) / Math.max(visible.length, 1);
|
|
1175
|
+
panels2.forEach((panel, index) => {
|
|
1176
|
+
if (panel.props.visible !== false) targets.set(index, size);
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
const next = resize(targets);
|
|
1180
|
+
for (const index of targets.keys())
|
|
1181
|
+
panels2[index].props.onSizeChange?.(next[index]);
|
|
1182
|
+
onLayout2?.(next);
|
|
1183
|
+
}
|
|
1184
|
+
function dragEnd(next) {
|
|
1185
|
+
const { panels: panels2, onLayout: onLayout2 } = latest.current;
|
|
1186
|
+
panels2.forEach((panel, index) => {
|
|
1187
|
+
const size = next[index];
|
|
1188
|
+
if (panel.props.visible === false || !(size > 0)) return;
|
|
1189
|
+
if (size !== dragStart.current[index]) panel.props.onSizeChange?.(size);
|
|
1190
|
+
});
|
|
1191
|
+
onLayout2?.(next);
|
|
1192
|
+
}
|
|
1193
|
+
useLayoutEffect(() => {
|
|
1194
|
+
const previous = sizes.current;
|
|
1195
|
+
const changed = panels.flatMap((panel, index) => {
|
|
1196
|
+
const { size, visible } = panel.props;
|
|
1197
|
+
const key = String(panel.key);
|
|
1198
|
+
if (size === void 0 || visible === false || !previous.has(key) || previous.get(key) === size)
|
|
1199
|
+
return [];
|
|
1200
|
+
return [{ index, size }];
|
|
1201
|
+
});
|
|
1202
|
+
sizes.current = new Map(
|
|
1203
|
+
panels.map((panel) => {
|
|
1204
|
+
const key = String(panel.key);
|
|
1205
|
+
const hidden = panel.props.visible === false && previous.has(key);
|
|
1206
|
+
return [key, hidden ? previous.get(key) : panel.props.size];
|
|
1207
|
+
})
|
|
1208
|
+
);
|
|
1209
|
+
if (changed.length === 0) return;
|
|
1210
|
+
const current = measure();
|
|
1211
|
+
const targets = /* @__PURE__ */ new Map();
|
|
1212
|
+
for (const { index, size } of changed)
|
|
1213
|
+
if (current[index] !== size) targets.set(index, size);
|
|
1214
|
+
if (targets.size > 0) resize(targets);
|
|
1215
|
+
});
|
|
1216
|
+
const handleLayout = Array.from(
|
|
1217
|
+
handles,
|
|
1218
|
+
(handle) => handle?.props.withHandle ? "grip" : "plain"
|
|
1219
|
+
).join();
|
|
1220
|
+
useLayoutEffect(() => {
|
|
1221
|
+
decorate();
|
|
1222
|
+
}, [handleLayout, vertical]);
|
|
1223
|
+
useEffect(() => {
|
|
1224
|
+
const container = root.current?.querySelector(
|
|
1225
|
+
":scope > .split-view > .sash-container"
|
|
1226
|
+
);
|
|
1227
|
+
if (!container) return;
|
|
1228
|
+
const observer = new MutationObserver(decorate);
|
|
1229
|
+
observer.observe(container, { childList: true });
|
|
1230
|
+
return () => observer.disconnect();
|
|
1231
|
+
}, []);
|
|
1232
|
+
function sashes() {
|
|
1233
|
+
return Array.from(
|
|
1234
|
+
root.current?.querySelectorAll(
|
|
1235
|
+
":scope > .split-view > .sash-container > .sash"
|
|
1236
|
+
) ?? []
|
|
1237
|
+
);
|
|
1238
|
+
}
|
|
1239
|
+
function decorate() {
|
|
1240
|
+
const { handles: handles2, vertical: vertical2 } = latest.current;
|
|
1241
|
+
sashes().forEach((sash, index) => {
|
|
1242
|
+
const handle = handles2[index];
|
|
1243
|
+
sash.dataset.slot = "resizable-handle";
|
|
1244
|
+
sash.classList.add(styles.ResizablePanelGroup.handle());
|
|
1245
|
+
sash.setAttribute("role", "separator");
|
|
1246
|
+
sash.setAttribute(
|
|
1247
|
+
"aria-orientation",
|
|
1248
|
+
vertical2 ? "horizontal" : "vertical"
|
|
1249
|
+
);
|
|
1250
|
+
sash.tabIndex = 0;
|
|
1251
|
+
if (handle?.props.withHandle) sash.dataset.withHandle = "";
|
|
1252
|
+
else delete sash.dataset.withHandle;
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
function keyDown(event) {
|
|
1256
|
+
const keys = vertical ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"];
|
|
1257
|
+
const step = [-10, 10][keys.indexOf(event.key)];
|
|
1258
|
+
const index = sashes().indexOf(event.target);
|
|
1259
|
+
if (!step || index < 0) return;
|
|
1260
|
+
event.preventDefault();
|
|
1261
|
+
const current = measure();
|
|
1262
|
+
dragStart.current = current;
|
|
1263
|
+
dragEnd(
|
|
1264
|
+
resize(
|
|
1265
|
+
/* @__PURE__ */ new Map([
|
|
1266
|
+
[index, current[index] + step],
|
|
1267
|
+
[index + 1, current[index + 1] - step]
|
|
1268
|
+
])
|
|
1269
|
+
)
|
|
1270
|
+
);
|
|
1271
|
+
}
|
|
1272
|
+
return /* @__PURE__ */ jsx(
|
|
1273
|
+
"div",
|
|
1274
|
+
{
|
|
1275
|
+
"data-slot": "resizable-panel-group",
|
|
1276
|
+
...props,
|
|
1277
|
+
ref: root,
|
|
1278
|
+
"data-direction": direction,
|
|
1279
|
+
className: styles.ResizablePanelGroup(dist_default.merge({ className })),
|
|
1280
|
+
onKeyDown: keyDown,
|
|
1281
|
+
children: /* @__PURE__ */ jsx(
|
|
1282
|
+
Ve,
|
|
1283
|
+
{
|
|
1284
|
+
ref: allotment,
|
|
1285
|
+
vertical,
|
|
1286
|
+
proportionalLayout: false,
|
|
1287
|
+
defaultSizes: panels.map(
|
|
1288
|
+
(panel) => panel.props.size ?? panel.props.defaultSize ?? Math.max(panel.props.minSize ?? 0, 100)
|
|
1289
|
+
),
|
|
1290
|
+
onDragStart: (next) => {
|
|
1291
|
+
dragStart.current = next;
|
|
1292
|
+
},
|
|
1293
|
+
onDragEnd: dragEnd,
|
|
1294
|
+
onReset: reset,
|
|
1295
|
+
children: panels.map((panel) => /* @__PURE__ */ jsx(
|
|
1296
|
+
Ve.Pane,
|
|
1297
|
+
{
|
|
1298
|
+
className: styles.ResizablePanelGroup.view(),
|
|
1299
|
+
minSize: panel.props.minSize ?? 0,
|
|
1300
|
+
maxSize: panel.props.maxSize ?? Infinity,
|
|
1301
|
+
preferredSize: panel.props.size ?? panel.props.defaultSize,
|
|
1302
|
+
priority: priorities[priority(panel.props)],
|
|
1303
|
+
visible: panel.props.visible !== false,
|
|
1304
|
+
children: panel
|
|
1305
|
+
},
|
|
1306
|
+
panel.key
|
|
1307
|
+
))
|
|
1308
|
+
}
|
|
1309
|
+
)
|
|
1310
|
+
}
|
|
1311
|
+
);
|
|
1312
|
+
}
|
|
1313
|
+
function ResizablePanel({
|
|
1314
|
+
defaultSize: _defaultSize,
|
|
1315
|
+
size: _size,
|
|
1316
|
+
onSizeChange: _onSizeChange,
|
|
1317
|
+
minSize: _minSize,
|
|
1318
|
+
maxSize: _maxSize,
|
|
1319
|
+
visible: _visible,
|
|
1320
|
+
priority: _priority,
|
|
1321
|
+
className,
|
|
1322
|
+
...props
|
|
1323
|
+
}) {
|
|
1324
|
+
return /* @__PURE__ */ jsx(
|
|
1325
|
+
"div",
|
|
1326
|
+
{
|
|
1327
|
+
"data-slot": "resizable-panel",
|
|
1328
|
+
...props,
|
|
1329
|
+
className: styles.ResizablePanel(dist_default.merge({ className }))
|
|
1330
|
+
}
|
|
1331
|
+
);
|
|
1332
|
+
}
|
|
1333
|
+
function ResizableHandle(_props) {
|
|
1334
|
+
return null;
|
|
1335
|
+
}
|
|
1336
|
+
export {
|
|
1337
|
+
ResizableHandle,
|
|
1338
|
+
ResizablePanel,
|
|
1339
|
+
ResizablePanelGroup
|
|
1340
|
+
};
|
|
1341
|
+
/*! Bundled license information:
|
|
1342
|
+
|
|
1343
|
+
allotment/dist/modern.mjs:
|
|
1344
|
+
(*!
|
|
1345
|
+
Copyright (c) 2018 Jed Watson.
|
|
1346
|
+
Licensed under the MIT License (MIT), see
|
|
1347
|
+
http://jedwatson.github.io/classnames
|
|
1348
|
+
*)
|
|
1349
|
+
*/
|