alinea 2.0.0-preview.0 → 2.0.0-preview.10
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 +5 -6
- 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 +2342 -289
- package/dist/adapter/next/ForwardCredentials.d.ts +1 -0
- package/dist/adapter/next/ForwardCredentials.js +17 -0
- package/dist/adapter/next/cms.d.ts +20 -6
- package/dist/adapter/next/cms.js +226 -54
- package/dist/adapter/next/context.d.ts +1 -1
- package/dist/adapter/next/context.js +15 -5
- package/dist/adapter/next/devCache.d.ts +16 -0
- package/dist/adapter/next/devCache.js +32 -0
- package/dist/adapter/next/handler.d.ts +6 -0
- package/dist/adapter/next/handler.js +119 -23
- package/dist/adapter/next/node.d.ts +5 -0
- package/dist/adapter/next/node.js +16 -0
- package/dist/adapter/next/previews.d.ts +4 -1
- package/dist/adapter/next/previews.js +20 -1
- package/dist/adapter/next/renderStats.d.ts +45 -0
- package/dist/adapter/next/renderStats.js +142 -0
- package/dist/adapter/next/syncCheck.d.ts +18 -0
- package/dist/adapter/next/syncCheck.js +53 -0
- package/dist/adapter/next/with-alinea.d.ts +0 -8
- package/dist/adapter/next/with-alinea.js +65 -46
- package/dist/adapter/vite/plugin.js +9 -4
- package/dist/backend/HandleAction.d.ts +1 -1
- package/dist/backend/HandleAction.js +1 -1
- package/dist/backend/Handler.d.ts +15 -14
- package/dist/backend/Handler.js +193 -49
- package/dist/backend/api/BasicAuth.d.ts +1 -1
- package/dist/backend/api/BasicAuth.js +14 -14
- package/dist/backend/api/CreateBackend.js +15 -3
- package/dist/backend/api/DatabaseApi.js +22 -135
- package/dist/backend/api/GithubApi.js +16 -7
- package/dist/backend/api/OAuth2.d.ts +3 -3
- package/dist/backend/api/OAuth2.js +7 -4
- package/dist/backend/api/ProxyMedia.d.ts +2 -0
- package/dist/backend/api/ProxyMedia.js +27 -0
- package/dist/backend/api/S3Uploads.d.ts +1 -1
- package/dist/backend/api/database.js +15 -3
- package/dist/backend/resolver/ParsePreview.d.ts +9 -5
- package/dist/backend/resolver/ParsePreview.js +40 -43
- package/dist/backend/router/NodeHandler.js +2 -0
- package/dist/backend/router/Router.d.ts +1 -0
- package/dist/backend/router/Router.js +23 -15
- package/dist/backend/store/GeneratedDatabase.d.ts +8 -0
- package/dist/backend/store/GeneratedDatabase.js +33 -0
- package/dist/backend/store/GeneratedDatabaseNode.d.ts +8 -0
- package/dist/backend/store/GeneratedDatabaseNode.js +25 -0
- package/dist/backend/store/GeneratedRelease.d.ts +1 -1
- package/dist/backend/store/GeneratedRelease.js +3 -4
- package/dist/backend/util/ORM.js +4 -2
- package/dist/backend/util/Syncable.js +1 -1
- package/dist/bundled.d.ts +11698 -6082
- package/dist/chunks/bun-sqlite-5SHXN3AT.js +18 -0
- package/dist/chunks/ccitt-Y7TDCCPM.js +90 -0
- package/dist/chunks/chunk-2BJ2IFQM.js +1085 -0
- package/dist/chunks/chunk-2PIFHEYR.js +364 -0
- package/dist/chunks/chunk-66YZ47TY.js +94 -0
- package/dist/chunks/chunk-6UT4N4CO.js +919 -0
- package/dist/chunks/chunk-76VMZTLN.js +55 -0
- package/dist/chunks/{chunk-TL7ZW6BX.js → chunk-A3XXZBOQ.js} +2535 -2999
- package/dist/chunks/chunk-AC5ATYI3.js +1434 -0
- package/dist/chunks/chunk-AIU6CMVT.js +495 -0
- package/dist/chunks/chunk-ASYKC6IE.js +103 -0
- package/dist/chunks/chunk-ATF42T2B.js +35 -0
- package/dist/chunks/{chunk-Y7XOMJOC.js → chunk-CFNRVI3Y.js} +220 -247
- package/dist/chunks/chunk-D6UJHBJJ.js +183 -0
- package/dist/chunks/{chunk-NWQXN4SB.js → chunk-ETBQTP2S.js} +40 -29
- package/dist/chunks/chunk-ETWOY4AL.js +100 -0
- package/dist/chunks/{chunk-EQ3TDHYD.js → chunk-HXXBAY3B.js} +35 -7
- package/dist/chunks/{chunk-I7X64JTZ.js → chunk-JOF663EG.js} +6479 -3715
- package/dist/chunks/chunk-K62JP6HR.js +22 -0
- package/dist/chunks/chunk-MOWR65LM.js +610 -0
- package/dist/chunks/chunk-N47Y62CI.js +396 -0
- package/dist/chunks/{chunk-7ORQ7BYK.js → chunk-NP4M2257.js} +203 -269
- package/dist/chunks/{chunk-53DZYORR.js → chunk-PAYSVIYI.js} +76 -176
- package/dist/chunks/{chunk-IYAQC63Y.js → chunk-PSSMQKAH.js} +1607 -744
- package/dist/chunks/chunk-QBPYWU6C.js +24 -0
- package/dist/chunks/{chunk-X47OVDF3.js → chunk-QJGGYF6E.js} +356 -1000
- package/dist/chunks/chunk-QSN6RH6X.js +94 -0
- package/dist/chunks/{chunk-IWN3T3FL.js → chunk-RE523BQ7.js} +21443 -16177
- package/dist/chunks/chunk-RE6CDK2M.js +254 -0
- package/dist/chunks/chunk-TIJTT5ZI.js +228 -0
- package/dist/chunks/{chunk-I4GC3E65.js → chunk-UPY2RUZF.js} +0 -1
- package/dist/chunks/chunk-W5AXN7GH.js +219 -0
- package/dist/chunks/chunk-XCZXR3C2.js +112 -0
- package/dist/chunks/chunk-XTWYBWP2.js +81 -0
- package/dist/chunks/dist-UDQZOKRG.js +7499 -0
- package/dist/chunks/jpeg-OJTBZV3C.js +292 -0
- package/dist/chunks/jpx-4VRYG2JB.js +667 -0
- package/dist/chunks/node-sqlite-XVNTNMCY.js +18 -0
- package/dist/cli/Generate.d.ts +2 -1
- package/dist/cli/Generate.js +91 -79
- 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 +0 -1
- package/dist/cli/Serve.js +15 -5
- package/dist/cli/bin.js +44 -14
- package/dist/cli/generate/CompileConfig.js +3 -2
- package/dist/cli/generate/CopyStaticFiles.d.ts +1 -1
- package/dist/cli/generate/CopyStaticFiles.js +39 -24
- package/dist/cli/generate/DevDB.d.ts +21 -4
- package/dist/cli/generate/DevDB.js +139 -27
- package/dist/cli/generate/FillCache.d.ts +1 -1
- package/dist/cli/generate/FillCache.js +20 -9
- package/dist/cli/generate/GenerateContext.d.ts +3 -0
- package/dist/cli/generate/GenerateDashboard.d.ts +1 -1
- package/dist/cli/generate/GenerateDashboard.js +3 -1
- 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/serve/CreateLocalServer.d.ts +3 -2
- package/dist/cli/serve/CreateLocalServer.js +106 -50
- package/dist/cli/serve/DevLock.d.ts +11 -0
- package/dist/cli/serve/DevLock.js +42 -0
- package/dist/cli/serve/DevServer.d.ts +6 -4
- package/dist/cli/serve/DevServer.js +71 -8
- package/dist/cli/serve/LiveReload.d.ts +2 -2
- package/dist/cli/serve/LiveReload.js +6 -2
- package/dist/cli/serve/LocalAuth.js +1 -1
- package/dist/cli/serve/ServeContext.d.ts +1 -1
- package/dist/cli/serve/StartServer.d.ts +3 -1
- package/dist/cli/serve/StartServer.js +10 -3
- 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 +567 -0
- package/dist/cli/static/init/agents.md +13 -0
- package/dist/cli/static/init/cms.js +5 -6
- package/dist/cli/util/ContentType.d.ts +1 -0
- package/dist/cli/util/ContentType.js +36 -0
- package/dist/cli/util/Emitter.js +1 -1
- package/dist/cli/util/EnsureLibs.js +2 -2
- package/dist/cli/util/EnsureNode.js +2 -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/AuthResult.d.ts +2 -0
- package/dist/cloud/CloudHandshake.d.ts +13 -0
- package/dist/cloud/CloudHandshake.js +121 -0
- package/dist/cloud/CloudRemote.d.ts +6 -2
- package/dist/cloud/CloudRemote.js +43 -10
- package/dist/cms.d.ts +19 -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/Badge.d.ts +11 -0
- package/dist/components/Badge.js +51 -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 +28 -8
- package/dist/components/Button.js +63 -22
- 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 +85 -39
- 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 +29 -25
- package/dist/components/ComboBox.d.ts +27 -9
- package/dist/components/ComboBox.js +198 -100
- package/dist/components/Command.d.ts +66 -0
- package/dist/components/Command.js +236 -0
- package/dist/components/ContentCard.d.ts +30 -0
- package/dist/components/ContentCard.js +199 -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 +15 -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 +53 -3
- package/dist/components/Dialog.js +188 -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 +159 -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/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 +14 -4
- package/dist/components/Link.js +22 -20
- package/dist/components/List.d.ts +20 -63
- package/dist/components/List.js +129 -250
- package/dist/components/MediaPreview.d.ts +35 -0
- package/dist/components/MediaPreview.js +227 -0
- package/dist/components/MultipleSelect.d.ts +22 -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 +19 -4
- package/dist/components/NumberField.js +105 -54
- 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 +37 -6
- package/dist/components/SearchField.js +115 -56
- package/dist/components/Select.d.ts +35 -10
- package/dist/components/Select.js +189 -97
- package/dist/components/Sidebar.d.ts +56 -0
- package/dist/components/Sidebar.js +136 -0
- package/dist/components/SortableList.d.ts +80 -0
- package/dist/components/SortableList.js +471 -0
- package/dist/components/Spinner.d.ts +8 -0
- package/dist/components/Spinner.js +86 -0
- package/dist/components/Surface.js +13 -3
- package/dist/components/Switch.d.ts +15 -4
- package/dist/components/Switch.js +32 -20
- package/dist/components/Table.d.ts +107 -14
- package/dist/components/Table.js +470 -100
- 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 +99 -33
- package/dist/components/Text.d.ts +16 -0
- package/dist/components/Text.js +44 -0
- package/dist/components/TextField.d.ts +27 -9
- package/dist/components/TextField.js +142 -46
- package/dist/components/TimeField.d.ts +20 -4
- package/dist/components/TimeField.js +75 -23
- 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 +77 -34
- package/dist/components/Tree.d.ts +48 -18
- package/dist/components/Tree.js +227 -81
- 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/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 +66 -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/useDragDrop.d.ts +22 -0
- package/dist/components/internal/useDragDrop.js +110 -0
- package/dist/components/types.d.ts +106 -0
- package/dist/components/types.js +0 -0
- package/dist/components.d.ts +29 -5
- package/dist/components.js +28 -5
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -0
- package/dist/core/BlobTransport.d.ts +5 -0
- package/dist/core/BlobTransport.js +79 -0
- package/dist/core/Client.d.ts +3 -5
- package/dist/core/Client.js +22 -19
- package/dist/core/Config.d.ts +26 -3
- package/dist/core/Config.js +24 -2
- package/dist/core/Connection.d.ts +29 -10
- package/dist/core/Connection.js +17 -0
- package/dist/core/Document.d.ts +2 -2
- package/dist/core/Document.js +15 -3
- package/dist/core/Entry.d.ts +9 -0
- package/dist/core/Entry.js +14 -0
- package/dist/core/EntryFields.d.ts +5 -0
- package/dist/core/EntrySeed.d.ts +23 -0
- package/dist/core/EntrySeed.js +135 -0
- package/dist/core/Expr.d.ts +11 -0
- package/dist/core/Field.d.ts +28 -1
- package/dist/core/Field.js +23 -0
- package/dist/core/Filter.d.ts +53 -2
- package/dist/core/Filter.js +145 -0
- package/dist/core/Graph.d.ts +35 -13
- package/dist/core/Id.d.ts +1 -0
- package/dist/core/Id.js +8 -0
- package/dist/core/Infer.d.ts +25 -1
- package/dist/core/ListRow.d.ts +3 -0
- package/dist/core/ListRow.js +1 -0
- package/dist/core/OrderBy.d.ts +7 -3
- package/dist/core/Overview.d.ts +242 -0
- package/dist/core/Overview.js +47 -0
- package/dist/core/Reference.d.ts +1 -0
- package/dist/core/Role.d.ts +6 -0
- package/dist/core/Role.js +17 -14
- package/dist/core/Root.d.ts +18 -2
- package/dist/core/Root.js +11 -3
- package/dist/core/Scope.d.ts +2 -0
- package/dist/core/Scope.js +16 -1
- package/dist/core/TextDoc.d.ts +24 -1
- package/dist/core/TextDoc.js +1 -0
- package/dist/core/Trace.d.ts +8 -0
- package/dist/core/Trace.js +32 -0
- package/dist/core/Type.d.ts +46 -9
- package/dist/core/Type.js +44 -9
- package/dist/core/Validation.d.ts +56 -0
- package/dist/core/Validation.js +121 -0
- package/dist/core/Workspace.d.ts +7 -5
- package/dist/core/Workspace.js +5 -1
- package/dist/core/db/CommitRequest.d.ts +0 -3
- package/dist/core/db/CommitRequest.js +0 -9
- package/dist/core/db/EntryAliases.js +2 -15
- package/dist/core/db/EntryReference.d.ts +8 -7
- package/dist/core/db/EntryUrlConflictError.js +1 -1
- package/dist/core/db/EntryValidationError.d.ts +13 -0
- package/dist/core/db/EntryValidationError.js +23 -0
- package/dist/core/db/IndexEvent.d.ts +2 -1
- package/dist/core/db/IndexEvent.js +11 -3
- package/dist/core/db/LinkResolver.d.ts +13 -7
- package/dist/core/db/LinkResolver.js +0 -30
- package/dist/core/db/LocalStore.d.ts +27 -0
- package/dist/core/db/LocalStore.js +0 -0
- package/dist/core/db/Operation.d.ts +24 -3
- package/dist/core/db/Operation.js +119 -26
- package/dist/core/db/WriteableGraph.d.ts +5 -0
- package/dist/core/field/CreateField.d.ts +1 -1
- package/dist/core/field/ListField.js +44 -8
- package/dist/core/field/RecordField.js +16 -2
- package/dist/core/field/RichTextField.d.ts +30 -3
- package/dist/core/field/RichTextField.js +232 -79
- package/dist/core/field/ScalarField.d.ts +2 -2
- package/dist/core/field/UnionField.js +32 -2
- 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/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/MediaAltField.d.ts +1 -0
- package/dist/core/media/MediaAltField.js +9 -1
- package/dist/core/media/MediaLocation.d.ts +11 -14
- package/dist/core/media/MediaLocation.js +31 -22
- package/dist/core/media/MediaRoot.js +2 -0
- package/dist/core/media/MediaTypes.d.ts +14 -10
- package/dist/core/media/MediaTypes.js +167 -32
- package/dist/core/media/Pdf.d.ts +15 -0
- package/dist/core/media/Pdf.js +31 -0
- 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/CombinedSource.d.ts +2 -2
- package/dist/core/source/CombinedSource.js +6 -3
- package/dist/core/source/FSSource.d.ts +18 -5
- package/dist/core/source/FSSource.js +114 -37
- package/dist/core/source/GitUtils.d.ts +4 -0
- package/dist/core/source/GitUtils.js +9 -10
- package/dist/core/source/GithubSource.d.ts +2 -2
- package/dist/core/source/GithubSource.js +77 -26
- package/dist/core/source/IndexedDBSource.d.ts +3 -2
- package/dist/core/source/IndexedDBSource.js +70 -54
- package/dist/core/source/MemorySource.d.ts +2 -2
- package/dist/core/source/MemorySource.js +8 -4
- package/dist/core/source/OverlaySource.d.ts +15 -0
- package/dist/core/source/OverlaySource.js +78 -0
- package/dist/core/source/Source.d.ts +8 -2
- package/dist/core/source/Source.js +18 -5
- package/dist/core/source/Tree.d.ts +10 -7
- package/dist/core/source/Tree.js +118 -70
- package/dist/core/source/Utils.js +6 -3
- 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/Arrays.d.ts +1 -0
- package/dist/core/util/Arrays.js +10 -0
- package/dist/core/util/Async.d.ts +15 -2
- package/dist/core/util/Async.js +82 -0
- package/dist/core/util/Checks.js +1 -1
- package/dist/core/util/EntryFilenames.d.ts +24 -3
- package/dist/core/util/EntryFilenames.js +59 -5
- package/dist/core/util/IndexedDB.d.ts +4 -0
- package/dist/core/util/IndexedDB.js +20 -0
- 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/Paths.js +5 -1
- package/dist/core.d.ts +3 -0
- package/dist/core.js +8 -1
- package/dist/dashboard/App.css +202 -76
- package/dist/dashboard/App.d.ts +3 -0
- package/dist/dashboard/App.js +55 -31
- package/dist/dashboard/StoryProvider.js +2 -2
- package/dist/dashboard/ViewKeys.d.ts +2 -0
- package/dist/dashboard/ViewKeys.js +2 -0
- package/dist/dashboard/app/AccessDenied.d.ts +16 -1
- package/dist/dashboard/app/AccessDenied.js +42 -25
- package/dist/dashboard/app/ActivityStatus.d.ts +5 -4
- package/dist/dashboard/app/ActivityStatus.js +124 -167
- package/dist/dashboard/app/AppearanceToggle.d.ts +1 -0
- package/dist/dashboard/app/AppearanceToggle.js +62 -0
- package/dist/dashboard/app/AuthView.d.ts +1 -1
- package/dist/dashboard/app/AuthView.js +78 -68
- package/dist/dashboard/app/CompactField.d.ts +19 -6
- package/dist/dashboard/app/CompactField.js +174 -48
- package/dist/dashboard/app/CroppedImage.d.ts +17 -0
- package/dist/dashboard/app/CroppedImage.js +73 -0
- package/dist/dashboard/app/DashboardErrorBoundary.js +43 -19
- package/dist/dashboard/app/DashboardLayout.d.ts +4 -2
- package/dist/dashboard/app/DashboardLayout.js +53 -34
- package/dist/dashboard/app/DashboardMeta.d.ts +2 -1
- package/dist/dashboard/app/DashboardMeta.js +20 -5
- package/dist/dashboard/app/DeleteDialog.d.ts +11 -0
- package/dist/dashboard/app/DeleteDialog.js +249 -0
- package/dist/dashboard/app/EntryFields.d.ts +12 -10
- package/dist/dashboard/app/EntryFields.js +13 -21
- package/dist/dashboard/app/EntryHeader.d.ts +2 -2
- package/dist/dashboard/app/EntryHeader.js +322 -217
- package/dist/dashboard/app/EntryHeaderActions.d.ts +24 -4
- package/dist/dashboard/app/EntryHeaderActions.js +46 -29
- package/dist/dashboard/app/EntryReferences.d.ts +13 -1
- package/dist/dashboard/app/EntryReferences.js +65 -63
- package/dist/dashboard/app/EntrySidebar.d.ts +8 -6
- package/dist/dashboard/app/EntrySidebar.js +111 -92
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +5 -2
- package/dist/dashboard/app/EntrySidebarPreview.js +92 -129
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +6 -1
- package/dist/dashboard/app/EntrySidebarToggle.js +5 -6
- package/dist/dashboard/app/EntryTranslationBanner.d.ts +3 -1
- package/dist/dashboard/app/EntryTranslationBanner.js +40 -45
- package/dist/dashboard/app/EntryValidationModal.d.ts +12 -0
- package/dist/dashboard/app/EntryValidationModal.js +77 -0
- package/dist/dashboard/app/Explorer.d.ts +15 -6
- package/dist/dashboard/app/Explorer.js +319 -340
- package/dist/dashboard/app/ExplorerBatchActions.d.ts +17 -0
- package/dist/dashboard/app/ExplorerBatchActions.js +158 -0
- package/dist/dashboard/app/ExplorerCards.d.ts +8 -3
- package/dist/dashboard/app/ExplorerCards.js +106 -314
- 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 +165 -101
- package/dist/dashboard/app/ExplorerModal.d.ts +2 -5
- package/dist/dashboard/app/ExplorerModal.js +6 -18
- package/dist/dashboard/app/ExplorerPickerContent.d.ts +19 -3
- package/dist/dashboard/app/ExplorerPickerContent.js +74 -6
- package/dist/dashboard/app/ExplorerTable.d.ts +8 -4
- package/dist/dashboard/app/ExplorerTable.js +175 -372
- package/dist/dashboard/app/ExternalLinkPicker.js +49 -48
- 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 +36 -86
- package/dist/dashboard/app/LinkPicker.d.ts +1 -1
- package/dist/dashboard/app/LinkPicker.js +123 -127
- package/dist/dashboard/app/LocaleMenu.d.ts +10 -1
- package/dist/dashboard/app/LocaleMenu.js +78 -53
- package/dist/dashboard/app/MediaPreviewCell.d.ts +8 -0
- package/dist/dashboard/app/MediaPreviewCell.js +50 -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 +251 -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 +19 -0
- package/dist/dashboard/app/PendingUploadsView.js +209 -0
- package/dist/dashboard/app/ReadOnlyBadge.d.ts +4 -0
- package/dist/dashboard/app/ReadOnlyBadge.js +33 -0
- package/dist/dashboard/app/SidebarLayout.d.ts +9 -0
- package/dist/dashboard/app/SidebarLayout.js +64 -0
- package/dist/dashboard/app/SidebarTree.d.ts +14 -11
- package/dist/dashboard/app/SidebarTree.js +267 -262
- package/dist/dashboard/app/ViewToggle.d.ts +1 -1
- package/dist/dashboard/app/ViewToggle.js +17 -10
- package/dist/dashboard/app/WorkspaceMenu.d.ts +11 -5
- package/dist/dashboard/app/WorkspaceMenu.js +125 -139
- package/dist/dashboard/app/WorkspaceRoots.d.ts +1 -1
- package/dist/dashboard/app/WorkspaceRoots.js +130 -187
- package/dist/dashboard/app/editor/FileEditor.d.ts +3 -3
- package/dist/dashboard/app/editor/FileEditor.js +129 -117
- package/dist/dashboard/app/editor/FilePreview.d.ts +5 -6
- package/dist/dashboard/app/editor/FilePreview.js +14 -139
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +1 -1
- package/dist/dashboard/app/editor/MediaAltField.view.js +14 -17
- package/dist/dashboard/app/modals/CreateEntry.js +109 -117
- package/dist/dashboard/app/pages/EntryPage.js +178 -91
- package/dist/dashboard/app/pages/RootPage.js +8 -10
- package/dist/dashboard/app/pages/SplashPage.d.ts +22 -0
- package/dist/dashboard/app/pages/SplashPage.js +414 -0
- package/dist/dashboard/app/pages/UsersPage.d.ts +20 -1
- package/dist/dashboard/app/pages/UsersPage.js +187 -260
- package/dist/dashboard/app/ui/DashboardModal.d.ts +18 -12
- package/dist/dashboard/app/ui/DashboardModal.js +56 -72
- package/dist/dashboard/atoms/ReactiveNode.js +59 -20
- package/dist/dashboard/atoms/activity.d.ts +0 -2
- package/dist/dashboard/atoms/activity.js +6 -13
- package/dist/dashboard/atoms/auth.d.ts +2 -0
- package/dist/dashboard/atoms/auth.js +10 -4
- package/dist/dashboard/atoms/config.d.ts +7 -5
- package/dist/dashboard/atoms/config.js +1 -1
- package/dist/dashboard/atoms/core.d.ts +16 -2
- package/dist/dashboard/atoms/core.js +20 -8
- package/dist/dashboard/atoms/create.js +4 -8
- package/dist/dashboard/atoms/dashboard.d.ts +14 -0
- package/dist/dashboard/atoms/dashboard.js +23 -3
- package/dist/dashboard/atoms/delete.d.ts +68 -0
- package/dist/dashboard/atoms/delete.js +143 -0
- package/dist/dashboard/atoms/editor.d.ts +8 -1
- package/dist/dashboard/atoms/editor.js +22 -35
- package/dist/dashboard/atoms/entry.d.ts +80 -52
- package/dist/dashboard/atoms/entry.js +425 -118
- package/dist/dashboard/atoms/entryTable.d.ts +10 -0
- package/dist/dashboard/atoms/entryTable.js +41 -0
- package/dist/dashboard/atoms/explorer.d.ts +164 -38
- package/dist/dashboard/atoms/explorer.js +540 -248
- package/dist/dashboard/atoms/graph.d.ts +1 -0
- package/dist/dashboard/atoms/graph.js +7 -2
- package/dist/dashboard/atoms/link.d.ts +1 -1
- package/dist/dashboard/atoms/link.js +41 -57
- package/dist/dashboard/atoms/move.d.ts +59 -0
- package/dist/dashboard/atoms/move.js +103 -0
- package/dist/dashboard/atoms/nav.d.ts +19 -4
- package/dist/dashboard/atoms/nav.js +107 -18
- package/dist/dashboard/atoms/overview.d.ts +203 -0
- package/dist/dashboard/atoms/overview.js +503 -0
- package/dist/dashboard/atoms/preview.d.ts +3 -0
- package/dist/dashboard/atoms/preview.js +19 -2
- package/dist/dashboard/atoms/root.d.ts +41 -22
- package/dist/dashboard/atoms/root.js +316 -266
- package/dist/dashboard/atoms/upload.d.ts +92 -3
- package/dist/dashboard/atoms/upload.js +245 -13
- package/dist/dashboard/atoms/user.d.ts +1 -1
- package/dist/dashboard/atoms/user.js +8 -6
- package/dist/dashboard/atoms/utils.d.ts +12 -4
- package/dist/dashboard/atoms/utils.js +36 -3
- package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
- package/dist/dashboard/boot/Boot.d.ts +2 -0
- package/dist/dashboard/boot/Boot.js +13 -13
- package/dist/dashboard/boot/BootDev.js +13 -10
- package/dist/dashboard/boot/BootProd.js +1 -0
- package/dist/dashboard/boot/DashboardWorker.d.ts +3 -3
- package/dist/dashboard/boot/DashboardWorker.js +115 -80
- package/dist/dashboard/boot/LoadWorker.js +3 -4
- package/dist/dashboard/boot/WorkerDB.d.ts +2 -2
- package/dist/dashboard/cms/EntryTable.d.ts +55 -0
- package/dist/dashboard/cms/EntryTable.js +265 -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 +41 -0
- package/dist/dashboard/cms/ViewProps.js +0 -0
- package/dist/dashboard/cms/hooks.d.ts +104 -0
- package/dist/dashboard/cms/hooks.js +107 -0
- package/dist/dashboard/contexts.d.ts +58 -0
- package/dist/dashboard/contexts.js +42 -0
- package/dist/dashboard/editor/UseField.d.ts +29 -6
- package/dist/dashboard/editor/UseField.js +6 -6
- package/dist/dashboard/fixture/cms.d.ts +14 -2
- package/dist/dashboard/fixture/cms.js +54 -6
- package/dist/dashboard/hook/UseEntryEditor.d.ts +3 -0
- package/dist/dashboard/hook/UseGraph.d.ts +3 -1
- package/dist/dashboard/hook/UseGraph.js +4 -4
- package/dist/dashboard/hook/UseLocale.d.ts +3 -1
- package/dist/dashboard/hook/UseRoot.d.ts +3 -1
- package/dist/dashboard/hook/UseRoot.js +4 -4
- package/dist/dashboard/hook/UseSaveShortcut.d.ts +1 -0
- package/dist/dashboard/hook/UseSaveShortcut.js +24 -0
- 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 +20 -100
- package/dist/dashboard/hooks.js +39 -101
- package/dist/dashboard/icons.d.ts +12 -0
- package/dist/dashboard/icons.js +140 -0
- package/dist/dashboard/plugins/alineaFixturePlugin.js +14 -3
- package/dist/dashboard.d.ts +23 -1
- package/dist/dashboard.js +5 -2
- package/dist/database/BrowserEntryStore.d.ts +47 -0
- package/dist/database/BrowserEntryStore.js +190 -0
- package/dist/database/DatabaseSource.d.ts +13 -0
- package/dist/database/DatabaseSource.js +25 -0
- package/dist/database/DatabaseTables.d.ts +38 -0
- package/dist/database/DatabaseTables.js +53 -0
- package/dist/database/EntryDatabase.d.ts +97 -0
- package/dist/database/EntryDatabase.js +532 -0
- package/dist/database/EntryStore.d.ts +58 -0
- package/dist/database/EntryStore.js +230 -0
- package/dist/database/EntryTransaction.d.ts +28 -0
- package/dist/database/EntryTransaction.js +1041 -0
- package/dist/database/EntryUrlAliases.d.ts +2 -0
- package/dist/database/EntryUrlAliases.js +69 -0
- package/dist/database/LocalDB.d.ts +39 -0
- package/dist/database/LocalDB.js +79 -0
- package/dist/database/Version.d.ts +9 -0
- package/dist/database/Version.js +13 -0
- package/dist/database/driver/DatabaseHandle.d.ts +17 -0
- package/dist/database/driver/DatabaseHandle.js +0 -0
- package/dist/database/driver/OverlayExtension.browser.d.ts +2 -0
- package/dist/database/driver/OverlayExtension.browser.js +9 -0
- package/dist/database/driver/OverlayExtension.d.ts +1 -0
- package/dist/database/driver/OverlayExtension.js +7 -0
- package/dist/database/driver/RuntimeDatabase.d.ts +13 -0
- package/dist/database/driver/RuntimeDatabase.js +77 -0
- package/dist/database/driver/WasmDatabase.d.ts +29 -0
- package/dist/database/driver/WasmDatabase.js +48 -0
- package/dist/database/entry/EntryData.d.ts +13 -0
- package/dist/database/entry/EntryData.js +51 -0
- package/dist/database/entry/EntryTable.d.ts +189 -0
- package/dist/database/entry/EntryTable.js +193 -0
- package/dist/database/query/Condition.d.ts +13 -0
- package/dist/database/query/Condition.js +125 -0
- package/dist/database/query/EntryQuery.d.ts +48 -0
- package/dist/database/query/EntryQuery.js +446 -0
- package/dist/database/query/EntryReferences.d.ts +5 -0
- package/dist/database/query/EntryReferences.js +71 -0
- package/dist/database/query/Relation.d.ts +11 -0
- package/dist/database/query/Relation.js +123 -0
- package/dist/database/query/ResolveQuery.d.ts +12 -0
- package/dist/database/query/ResolveQuery.js +191 -0
- package/dist/database/query/Search.d.ts +41 -0
- package/dist/database/query/Search.js +177 -0
- package/dist/database/sync/Derive.d.ts +8 -0
- package/dist/database/sync/Derive.js +274 -0
- package/dist/database/sync/EntryParser.d.ts +8 -0
- package/dist/database/sync/EntryParser.js +91 -0
- package/dist/database/sync/EntrySyncer.d.ts +25 -0
- package/dist/database/sync/EntrySyncer.js +89 -0
- package/dist/database/sync/Ingest.d.ts +21 -0
- package/dist/database/sync/Ingest.js +146 -0
- package/dist/database/sync/SyncQueries.d.ts +161 -0
- package/dist/database/sync/SyncQueries.js +216 -0
- package/dist/field/check/CheckField.js +3 -1
- package/dist/field/check/CheckField.view.js +10 -9
- 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 +28 -19
- package/dist/field/code/SimpleCodeEditor.js +0 -18
- package/dist/field/date/DateField.view.js +7 -13
- package/dist/field/link/EntryLink.d.ts +1 -1
- package/dist/field/link/EntryLink.js +1 -0
- package/dist/field/link/FileLink.d.ts +5 -2
- package/dist/field/link/FileLink.js +3 -7
- package/dist/field/link/ImageLink.d.ts +4 -1
- package/dist/field/link/ImageLink.js +3 -4
- package/dist/field/link/Link.js +3 -2
- package/dist/field/link/LinkField.d.ts +10 -5
- package/dist/field/link/LinkField.js +25 -0
- package/dist/field/link/LinkField.view.js +499 -497
- package/dist/field/link/UrlLink.d.ts +1 -0
- package/dist/field/link.d.ts +1 -0
- package/dist/field/list/ListField.d.ts +10 -4
- package/dist/field/list/ListField.js +10 -5
- package/dist/field/list/ListField.view.js +377 -548
- package/dist/field/localiser/LocalisedField.view.js +19 -19
- 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.js +25 -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 +30 -23
- package/dist/field/metadata/MetadataField.js +48 -104
- package/dist/field/metadata/MetadataField.view.d.ts +5 -0
- package/dist/field/metadata/MetadataField.view.js +51 -35
- package/dist/field/number/NumberField.d.ts +2 -0
- package/dist/field/number/NumberField.view.js +10 -9
- package/dist/field/object/ObjectField.view.js +15 -19
- 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.d.ts +10 -1
- package/dist/field/richtext/PickTextLink.js +125 -22
- package/dist/field/richtext/ReferenceLink.d.ts +6 -1
- package/dist/field/richtext/ReferenceLink.js +23 -4
- package/dist/field/richtext/RichTextBlock.js +51 -46
- package/dist/field/richtext/RichTextBlocks.js +1 -1
- package/dist/field/richtext/RichTextDocument.d.ts +7 -2
- package/dist/field/richtext/RichTextDocument.js +43 -6
- package/dist/field/richtext/RichTextExtensions.d.ts +3 -1
- package/dist/field/richtext/RichTextExtensions.js +2745 -7498
- package/dist/field/richtext/RichTextField.d.ts +7 -0
- package/dist/field/richtext/RichTextField.story.d.ts +4 -0
- package/dist/field/richtext/RichTextField.view.js +66 -34
- package/dist/field/richtext/RichTextInsertMenu.js +304 -525
- package/dist/field/richtext/RichTextState.js +1 -1
- package/dist/field/richtext/RichTextToolbar.d.ts +5 -2
- package/dist/field/richtext/RichTextToolbar.js +95 -37
- package/dist/field/richtext/Toolbar.d.ts +19 -1
- package/dist/field/richtext/Toolbar.js +18 -13
- package/dist/field/richtext/extensions/Anchor.js +1 -1
- package/dist/field/richtext/extensions/Link.d.ts +1 -0
- package/dist/field/richtext/extensions/Link.js +2 -1
- package/dist/field/richtext/extensions/Small.js +1 -1
- package/dist/field/richtext.d.ts +2 -0
- package/dist/field/richtext.js +2 -0
- package/dist/field/select/SelectField.view.js +20 -83
- package/dist/field/tabs/Tabs.view.js +8 -8
- package/dist/field/text/TextField.view.js +11 -10
- package/dist/field/time/TimeField.d.ts +0 -2
- package/dist/field/time/TimeField.view.js +10 -18
- package/dist/field/views.js +4 -0
- package/dist/field.d.ts +1 -1
- package/dist/field.js +1 -1
- package/dist/index.css +5434 -4984
- package/dist/next.cjs +118 -46
- package/dist/next.d.ts +4 -2
- package/dist/next.edge.d.ts +3 -2
- package/dist/next.js +1 -2
- package/dist/picker/entry/EntryPicker.d.ts +7 -3
- package/dist/picker/entry/EntryPicker.js +18 -45
- package/dist/picker/entry/EntryReference.d.ts +2 -0
- package/dist/picker/entry/EntryReference.js +1 -0
- package/dist/picker/url/UrlPicker.js +1 -0
- package/dist/preview/PreviewMessage.d.ts +3 -0
- package/dist/preview/PreviewMessage.js +1 -0
- package/dist/preview/PreviewPayload.js +35 -250
- package/dist/preview/RegisterPreview.d.ts +1 -1
- package/dist/preview/RegisterPreview.js +28 -10
- package/dist/preview/react.d.ts +5 -1
- package/dist/preview/react.js +12 -9
- package/dist/preview/widget.d.ts +45 -0
- package/dist/preview/widget.js +100 -11
- package/dist/query.d.ts +16 -225
- package/dist/types.d.ts +6 -3
- package/dist/ui/RichText.d.ts +1 -0
- package/dist/ui/RichText.js +62 -20
- package/docs/ai-agents.md +316 -0
- package/docs/ai-setup.md +297 -0
- package/docs/cli.md +94 -0
- package/docs/components/alert.md +122 -0
- package/docs/components/app-shell.md +77 -0
- package/docs/components/badge.md +88 -0
- package/docs/components/blockquote.md +24 -0
- package/docs/components/breadcrumb.md +83 -0
- package/docs/components/button.md +141 -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 +57 -0
- package/docs/components/command.md +101 -0
- package/docs/components/content-card.md +63 -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 +182 -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/heading.md +33 -0
- package/docs/components/icon.md +43 -0
- package/docs/components/kbd.md +29 -0
- package/docs/components/link.md +35 -0
- package/docs/components/list.md +104 -0
- package/docs/components/media-preview.md +43 -0
- package/docs/components/multiple-select.md +56 -0
- package/docs/components/nav-rail.md +79 -0
- package/docs/components/number-field.md +49 -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 +53 -0
- package/docs/components/select.md +138 -0
- package/docs/components/sidebar.md +104 -0
- package/docs/components/sortable-list.md +125 -0
- package/docs/components/spinner.md +29 -0
- package/docs/components/surface.md +54 -0
- package/docs/components/switch.md +52 -0
- package/docs/components/table.md +178 -0
- package/docs/components/tabs.md +120 -0
- package/docs/components/tag-group.md +56 -0
- package/docs/components/text-field.md +134 -0
- package/docs/components/text.md +44 -0
- package/docs/components/time-field.md +37 -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 +131 -0
- package/docs/configuration.md +175 -0
- package/docs/content-model.md +87 -0
- package/docs/custom-fields.md +231 -0
- package/docs/dashboard-ui.md +3 -0
- package/docs/deploy/alinea-cloud.md +26 -0
- package/docs/deploy/self-host.md +193 -0
- package/docs/deploy.md +123 -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 +139 -0
- package/docs/fields/link.md +121 -0
- package/docs/fields/list.md +126 -0
- package/docs/fields/number.md +58 -0
- package/docs/fields/object.md +91 -0
- package/docs/fields/path.md +105 -0
- package/docs/fields/rich-text.md +236 -0
- package/docs/fields/select.md +99 -0
- package/docs/fields/tabs.md +87 -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 +138 -0
- package/docs/instant-publishing.md +43 -0
- package/docs/internationalization.md +201 -0
- package/docs/introduction.md +5 -0
- package/docs/live-previews.md +151 -0
- package/docs/mcp.md +500 -0
- package/docs/overviews.md +456 -0
- package/docs/query/advanced.md +123 -0
- package/docs/query/examples.md +231 -0
- package/docs/query/filtering.md +160 -0
- package/docs/query/related.md +129 -0
- package/docs/query/structural.md +164 -0
- package/docs/query.md +139 -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 +98 -0
- package/docs/schema/type.md +131 -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 +286 -0
- package/docs/workspaces/media.md +48 -0
- package/docs/workspaces/root.md +127 -0
- package/docs/workspaces.md +98 -0
- package/llms-full.txt +11973 -3202
- package/package.json +35 -7
- package/readme.md +136 -55
- package/dist/backend/store/GeneratedSource.d.ts +0 -2
- package/dist/backend/store/GeneratedSource.js +0 -21
- package/dist/chunks/chunk-AC4U3IMS.js +0 -205
- package/dist/chunks/chunk-G6E35DMJ.js +0 -1997
- package/dist/chunks/chunk-JFROOUG6.js +0 -6363
- package/dist/chunks/chunk-LUBOGJCG.js +0 -129
- package/dist/chunks/chunk-SJBZFMQ2.js +0 -2966
- package/dist/chunks/chunk-STAJCW4Z.js +0 -322
- package/dist/chunks/chunk-U4VOHNR2.js +0 -210
- package/dist/chunks/chunk-YK3OSMDM.js +0 -5473
- package/dist/cli/util/ExternalPlugin.d.ts +0 -2
- package/dist/cli/util/ExternalPlugin.js +0 -919
- 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/core/db/EntryDB.d.ts +0 -19
- package/dist/core/db/EntryDB.js +0 -48
- package/dist/core/db/EntryIndex.d.ts +0 -130
- package/dist/core/db/EntryIndex.js +0 -2609
- package/dist/core/db/EntryReferenceIndex.d.ts +0 -21
- package/dist/core/db/EntryReferenceIndex.js +0 -131
- package/dist/core/db/EntryResolver.d.ts +0 -56
- package/dist/core/db/EntryResolver.js +0 -624
- package/dist/core/db/EntryTarget.d.ts +0 -5
- package/dist/core/db/EntryTransaction.d.ts +0 -32
- package/dist/core/db/EntryTransaction.js +0 -946
- package/dist/core/db/LocalDB.d.ts +0 -42
- package/dist/core/db/LocalDB.js +0 -112
- package/dist/core/db/TestDB.d.ts +0 -19
- package/dist/core/db/TestDB.js +0 -50
- 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 -5
- 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 -6
- package/dist/field/richtext/RichTextField.spec.d.ts +0 -1
- /package/dist/{core/db/EntryTarget.js → .init-pm/bun.lock} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type DisclosurePanelProps, type DisclosureProps as DisclosurePrimitiveProps, type HeadingProps } from 'react-aria-components';
|
|
2
|
-
export type { DisclosurePanelProps, DisclosurePrimitiveProps as DisclosureProps };
|
|
3
|
-
export declare function Disclosure({ className, ...props }: DisclosurePrimitiveProps): import("react").JSX.Element;
|
|
4
|
-
export declare function DisclosureHeader({ children, className, ...props }: HeadingProps): import("react").JSX.Element;
|
|
5
|
-
export declare function DisclosurePanel({ children, className, ...props }: DisclosurePanelProps): import("react").JSX.Element;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
$2ec61d1d4f780267$export$a8a3e93435678ff9,
|
|
3
|
-
$7705c033048f6da7$export$353f5b6fc5456de1,
|
|
4
|
-
$a3e16eab0ea4036c$export$74a362b31437ec83,
|
|
5
|
-
$a3e16eab0ea4036c$export$feabaa331e1d464c
|
|
6
|
-
} from "../chunks/chunk-I7X64JTZ.js";
|
|
7
|
-
import "../chunks/chunk-IWN3T3FL.js";
|
|
8
|
-
import "../chunks/chunk-RKDPDEF7.js";
|
|
9
|
-
import "../chunks/chunk-JFROOUG6.js";
|
|
10
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
11
|
-
import "../chunks/chunk-IYAQC63Y.js";
|
|
12
|
-
import "../chunks/chunk-LUBOGJCG.js";
|
|
13
|
-
import "../chunks/chunk-YK3OSMDM.js";
|
|
14
|
-
import "../chunks/chunk-AC4U3IMS.js";
|
|
15
|
-
import {
|
|
16
|
-
dist_default
|
|
17
|
-
} from "../chunks/chunk-I4OYYAX5.js";
|
|
18
|
-
import "../chunks/chunk-CQ52GEHY.js";
|
|
19
|
-
|
|
20
|
-
// src/components/Disclosure.tsx
|
|
21
|
-
import { IcRoundKeyboardArrowRight } from "../dashboard/icons.js";
|
|
22
|
-
import { Icon } from "./Icon.js";
|
|
23
|
-
|
|
24
|
-
// src/components/Disclosure.module.css
|
|
25
|
-
var Disclosure_default = {
|
|
26
|
-
"Disclosure-heading": "alinea-Disclosure-heading",
|
|
27
|
-
"DisclosureHeading": "alinea-Disclosure-heading",
|
|
28
|
-
"Disclosure-panel": "alinea-Disclosure-panel",
|
|
29
|
-
"DisclosurePanel": "alinea-Disclosure-panel",
|
|
30
|
-
"Disclosure-panel-content": "alinea-Disclosure-panel-content",
|
|
31
|
-
"DisclosurePanelContent": "alinea-Disclosure-panel-content",
|
|
32
|
-
"Disclosure": "alinea-Disclosure",
|
|
33
|
-
"Disclosure-trigger": "alinea-Disclosure-trigger",
|
|
34
|
-
"DisclosureTrigger": "alinea-Disclosure-trigger",
|
|
35
|
-
"Disclosure-chevron": "alinea-Disclosure-chevron",
|
|
36
|
-
"DisclosureChevron": "alinea-Disclosure-chevron",
|
|
37
|
-
"Disclosure-title": "alinea-Disclosure-title",
|
|
38
|
-
"DisclosureTitle": "alinea-Disclosure-title"
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// src/components/Disclosure.tsx
|
|
42
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
43
|
-
var styles = dist_default(Disclosure_default);
|
|
44
|
-
function Disclosure({ className, ...props }) {
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
-
$a3e16eab0ea4036c$export$74a362b31437ec83,
|
|
47
|
-
{
|
|
48
|
-
...props,
|
|
49
|
-
className: (renderProps) => styles.Disclosure(
|
|
50
|
-
dist_default.merge({
|
|
51
|
-
className: typeof className === "function" ? className(renderProps) : className
|
|
52
|
-
})
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
function DisclosureHeader({
|
|
58
|
-
children,
|
|
59
|
-
className,
|
|
60
|
-
...props
|
|
61
|
-
}) {
|
|
62
|
-
return /* @__PURE__ */ jsx(
|
|
63
|
-
$2ec61d1d4f780267$export$a8a3e93435678ff9,
|
|
64
|
-
{
|
|
65
|
-
...props,
|
|
66
|
-
className: styles.Disclosure.heading(
|
|
67
|
-
dist_default.merge({
|
|
68
|
-
className
|
|
69
|
-
})
|
|
70
|
-
),
|
|
71
|
-
children: /* @__PURE__ */ jsxs($7705c033048f6da7$export$353f5b6fc5456de1, { slot: "trigger", className: styles.Disclosure.trigger(), children: [
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
Icon,
|
|
74
|
-
{
|
|
75
|
-
icon: IcRoundKeyboardArrowRight,
|
|
76
|
-
className: styles.Disclosure.chevron()
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ jsx("span", { className: styles.Disclosure.title(), children })
|
|
80
|
-
] })
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
function DisclosurePanel({
|
|
85
|
-
children,
|
|
86
|
-
className,
|
|
87
|
-
...props
|
|
88
|
-
}) {
|
|
89
|
-
return /* @__PURE__ */ jsx(
|
|
90
|
-
$a3e16eab0ea4036c$export$feabaa331e1d464c,
|
|
91
|
-
{
|
|
92
|
-
...props,
|
|
93
|
-
className: (renderProps) => styles.Disclosure.panel(
|
|
94
|
-
dist_default.merge({
|
|
95
|
-
className: typeof className === "function" ? className(renderProps) : className
|
|
96
|
-
})
|
|
97
|
-
),
|
|
98
|
-
children: /* @__PURE__ */ jsx("div", { className: styles.Disclosure.panel.content(), children })
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
export {
|
|
103
|
-
Disclosure,
|
|
104
|
-
DisclosureHeader,
|
|
105
|
-
DisclosurePanel
|
|
106
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { type LabelProps as LabelPrimitiveProps } from 'react-aria-components';
|
|
3
|
-
export interface LabelSharedProps {
|
|
4
|
-
label?: ReactNode;
|
|
5
|
-
asLabel?: boolean;
|
|
6
|
-
description?: ReactNode;
|
|
7
|
-
errorMessage?: ReactNode;
|
|
8
|
-
isRequired?: boolean;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
icon?: ReactNode;
|
|
11
|
-
id?: string;
|
|
12
|
-
shared?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface LabelProps extends LabelSharedProps, LabelPrimitiveProps {
|
|
15
|
-
}
|
|
16
|
-
export declare function LabelHeader({ label, description, shared, icon, isRequired, asLabel, ...props }: LabelProps): import("react").JSX.Element;
|
|
17
|
-
export declare function LabelTitle({ description, shared, icon, label, isRequired, asLabel, ...props }: LabelProps): import("react").JSX.Element;
|
|
18
|
-
export interface LabelLabelProps extends LabelPrimitiveProps {
|
|
19
|
-
label?: ReactNode;
|
|
20
|
-
isRequired?: boolean;
|
|
21
|
-
asLabel?: boolean;
|
|
22
|
-
tone?: 'muted' | 'inherit';
|
|
23
|
-
weight?: 'normal' | 'semibold';
|
|
24
|
-
}
|
|
25
|
-
export declare function LabelLabel({ children, label, isRequired, asLabel, tone, weight, ...props }: LabelLabelProps): import("react").JSX.Element;
|
|
26
|
-
export declare function LabelIcon({ icon }: {
|
|
27
|
-
icon: ReactNode;
|
|
28
|
-
}): import("react").JSX.Element;
|
|
29
|
-
export interface LabelDescriptionProps extends ComponentPropsWithoutRef<'div'> {
|
|
30
|
-
description?: ReactNode;
|
|
31
|
-
size?: 'base' | 'small';
|
|
32
|
-
}
|
|
33
|
-
export declare function LabelDescription({ children, className, description, size, ...props }: LabelDescriptionProps): import("react").JSX.Element;
|
|
34
|
-
export interface LabelStackProps extends ComponentPropsWithoutRef<'span'> {
|
|
35
|
-
}
|
|
36
|
-
export declare function LabelStack({ className, ...props }: LabelStackProps): import("react").JSX.Element;
|
|
37
|
-
export interface LabelInlineProps extends ComponentPropsWithoutRef<'span'> {
|
|
38
|
-
}
|
|
39
|
-
export declare function LabelInline({ className, ...props }: LabelInlineProps): import("react").JSX.Element;
|
|
40
|
-
export declare function LabelError({ errorMessage }: {
|
|
41
|
-
errorMessage: ReactNode;
|
|
42
|
-
}): import("react").JSX.Element;
|
|
43
|
-
export interface SharedLabelBadgeProps {
|
|
44
|
-
label?: string;
|
|
45
|
-
}
|
|
46
|
-
export declare function SharedLabelBadge({ label }: SharedLabelBadgeProps): import("react").JSX.Element;
|
|
47
|
-
export declare function Label({ label, description, errorMessage, isRequired, icon, shared, children, className, asLabel, ...props }: LabelProps): import("react").JSX.Element | null;
|
|
48
|
-
export declare function labelProps<T extends LabelSharedProps>({ label, description, errorMessage, isRequired, icon, shared }: T): LabelProps;
|
package/dist/components/Label.js
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
$43a3b93638fe5db9$export$b04be29aa201d4f5
|
|
3
|
-
} from "../chunks/chunk-I7X64JTZ.js";
|
|
4
|
-
import "../chunks/chunk-IWN3T3FL.js";
|
|
5
|
-
import "../chunks/chunk-RKDPDEF7.js";
|
|
6
|
-
import "../chunks/chunk-JFROOUG6.js";
|
|
7
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
8
|
-
import "../chunks/chunk-IYAQC63Y.js";
|
|
9
|
-
import "../chunks/chunk-LUBOGJCG.js";
|
|
10
|
-
import "../chunks/chunk-YK3OSMDM.js";
|
|
11
|
-
import "../chunks/chunk-AC4U3IMS.js";
|
|
12
|
-
import {
|
|
13
|
-
dist_default
|
|
14
|
-
} from "../chunks/chunk-I4OYYAX5.js";
|
|
15
|
-
import "../chunks/chunk-CQ52GEHY.js";
|
|
16
|
-
|
|
17
|
-
// src/components/Label.tsx
|
|
18
|
-
import { Badge } from "../dashboard/app/Badge.js";
|
|
19
|
-
import { IcRoundPublic } from "../dashboard/icons.js";
|
|
20
|
-
|
|
21
|
-
// src/components/Label.module.css
|
|
22
|
-
var Label_default = {
|
|
23
|
-
"LabelRequired": "alinea-LabelRequired",
|
|
24
|
-
"LabelIcon": "alinea-LabelIcon",
|
|
25
|
-
"LabelDescription": "alinea-LabelDescription",
|
|
26
|
-
"LabelStack": "alinea-LabelStack",
|
|
27
|
-
"LabelLabel": "alinea-LabelLabel",
|
|
28
|
-
"LabelHeader": "alinea-LabelHeader",
|
|
29
|
-
"LabelTitle": "alinea-LabelTitle",
|
|
30
|
-
"LabelError": "alinea-LabelError",
|
|
31
|
-
"LabelInline": "alinea-LabelInline"
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
// src/components/Label.tsx
|
|
35
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
-
var styles = dist_default(Label_default);
|
|
37
|
-
function LabelHeader({
|
|
38
|
-
label,
|
|
39
|
-
description,
|
|
40
|
-
shared,
|
|
41
|
-
icon,
|
|
42
|
-
isRequired,
|
|
43
|
-
asLabel,
|
|
44
|
-
...props
|
|
45
|
-
}) {
|
|
46
|
-
const hasLabel = label || isRequired;
|
|
47
|
-
const hasTitle = hasLabel || icon;
|
|
48
|
-
return /* @__PURE__ */ jsx("header", { className: styles.LabelHeader(), children: hasTitle && /* @__PURE__ */ jsx(
|
|
49
|
-
LabelTitle,
|
|
50
|
-
{
|
|
51
|
-
asLabel,
|
|
52
|
-
label,
|
|
53
|
-
description,
|
|
54
|
-
shared,
|
|
55
|
-
icon,
|
|
56
|
-
isRequired,
|
|
57
|
-
...props
|
|
58
|
-
}
|
|
59
|
-
) });
|
|
60
|
-
}
|
|
61
|
-
function LabelTitle({
|
|
62
|
-
description,
|
|
63
|
-
shared,
|
|
64
|
-
icon,
|
|
65
|
-
label,
|
|
66
|
-
isRequired,
|
|
67
|
-
asLabel,
|
|
68
|
-
...props
|
|
69
|
-
}) {
|
|
70
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.LabelTitle(), children: [
|
|
71
|
-
icon && /* @__PURE__ */ jsx(LabelIcon, { icon }),
|
|
72
|
-
(label || isRequired) && /* @__PURE__ */ jsx(
|
|
73
|
-
LabelLabel,
|
|
74
|
-
{
|
|
75
|
-
...props,
|
|
76
|
-
asLabel,
|
|
77
|
-
label,
|
|
78
|
-
isRequired
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
description && /* @__PURE__ */ jsx(LabelDescription, { description }),
|
|
82
|
-
shared && /* @__PURE__ */ jsx(SharedLabelBadge, {})
|
|
83
|
-
] });
|
|
84
|
-
}
|
|
85
|
-
function LabelLabel({
|
|
86
|
-
children,
|
|
87
|
-
label,
|
|
88
|
-
isRequired,
|
|
89
|
-
asLabel,
|
|
90
|
-
tone,
|
|
91
|
-
weight,
|
|
92
|
-
...props
|
|
93
|
-
}) {
|
|
94
|
-
const Element = asLabel === false ? "div" : $43a3b93638fe5db9$export$b04be29aa201d4f5;
|
|
95
|
-
const { className, ...rest } = props;
|
|
96
|
-
return /* @__PURE__ */ jsxs(
|
|
97
|
-
Element,
|
|
98
|
-
{
|
|
99
|
-
...rest,
|
|
100
|
-
className: styles.LabelLabel(dist_default.merge({ className })),
|
|
101
|
-
"data-tone": tone,
|
|
102
|
-
"data-weight": weight,
|
|
103
|
-
children: [
|
|
104
|
-
label ?? children,
|
|
105
|
-
isRequired && /* @__PURE__ */ jsx("span", { className: styles.LabelRequired(), children: " *" })
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
function LabelIcon({ icon }) {
|
|
111
|
-
return /* @__PURE__ */ jsx("span", { className: styles.LabelIcon(), children: icon });
|
|
112
|
-
}
|
|
113
|
-
function LabelDescription({
|
|
114
|
-
children,
|
|
115
|
-
className,
|
|
116
|
-
description,
|
|
117
|
-
size,
|
|
118
|
-
...props
|
|
119
|
-
}) {
|
|
120
|
-
return /* @__PURE__ */ jsx(
|
|
121
|
-
"div",
|
|
122
|
-
{
|
|
123
|
-
...props,
|
|
124
|
-
className: styles.LabelDescription(dist_default.merge({ className })),
|
|
125
|
-
"data-size": size,
|
|
126
|
-
children: description ?? children
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
function LabelStack({ className, ...props }) {
|
|
131
|
-
return /* @__PURE__ */ jsx("span", { ...props, className: styles.LabelStack(dist_default.merge({ className })) });
|
|
132
|
-
}
|
|
133
|
-
function LabelInline({ className, ...props }) {
|
|
134
|
-
return /* @__PURE__ */ jsx(
|
|
135
|
-
"span",
|
|
136
|
-
{
|
|
137
|
-
...props,
|
|
138
|
-
className: styles.LabelInline(dist_default.merge({ className }))
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
function LabelError({ errorMessage }) {
|
|
143
|
-
return /* @__PURE__ */ jsx("div", { className: styles.LabelError(), children: errorMessage });
|
|
144
|
-
}
|
|
145
|
-
function SharedLabelBadge({ label = "Shared" }) {
|
|
146
|
-
return /* @__PURE__ */ jsx(Badge, { icon: IcRoundPublic, size: "small", title: "Shared field", children: label });
|
|
147
|
-
}
|
|
148
|
-
function Label({
|
|
149
|
-
label,
|
|
150
|
-
description,
|
|
151
|
-
errorMessage,
|
|
152
|
-
isRequired,
|
|
153
|
-
icon,
|
|
154
|
-
shared,
|
|
155
|
-
children,
|
|
156
|
-
className,
|
|
157
|
-
asLabel,
|
|
158
|
-
...props
|
|
159
|
-
}) {
|
|
160
|
-
const hasLabel = label || isRequired;
|
|
161
|
-
const hasTitle = hasLabel || icon;
|
|
162
|
-
const hasHeader = hasTitle || description;
|
|
163
|
-
if (!hasHeader && !errorMessage && !children) return null;
|
|
164
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.Label(dist_default.merge({ className })), children: [
|
|
165
|
-
hasHeader && /* @__PURE__ */ jsx(
|
|
166
|
-
LabelHeader,
|
|
167
|
-
{
|
|
168
|
-
label,
|
|
169
|
-
asLabel,
|
|
170
|
-
description,
|
|
171
|
-
isRequired,
|
|
172
|
-
icon,
|
|
173
|
-
shared,
|
|
174
|
-
...props
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
children,
|
|
178
|
-
errorMessage && /* @__PURE__ */ jsx(LabelError, { errorMessage })
|
|
179
|
-
] });
|
|
180
|
-
}
|
|
181
|
-
function labelProps({
|
|
182
|
-
label,
|
|
183
|
-
description,
|
|
184
|
-
errorMessage,
|
|
185
|
-
isRequired,
|
|
186
|
-
icon,
|
|
187
|
-
shared
|
|
188
|
-
}) {
|
|
189
|
-
return {
|
|
190
|
-
label,
|
|
191
|
-
description,
|
|
192
|
-
errorMessage,
|
|
193
|
-
isRequired,
|
|
194
|
-
icon,
|
|
195
|
-
shared
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
export {
|
|
199
|
-
Label,
|
|
200
|
-
LabelDescription,
|
|
201
|
-
LabelError,
|
|
202
|
-
LabelHeader,
|
|
203
|
-
LabelIcon,
|
|
204
|
-
LabelInline,
|
|
205
|
-
LabelLabel,
|
|
206
|
-
LabelStack,
|
|
207
|
-
LabelTitle,
|
|
208
|
-
SharedLabelBadge,
|
|
209
|
-
labelProps
|
|
210
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, type ReactNode } from 'react';
|
|
2
|
-
import { type MenuItemProps, type MenuProps as MenuPrimitiveProps, Header as PrimitiveHeader } from 'react-aria-components';
|
|
3
|
-
import { type ButtonProps } from './Button.js';
|
|
4
|
-
import { type PopoverProps } from './Popover.js';
|
|
5
|
-
export declare function MenuItem(props: MenuItemProps): import("react").JSX.Element;
|
|
6
|
-
export declare function MenuHeader(props: React.ComponentProps<typeof PrimitiveHeader>): import("react").JSX.Element;
|
|
7
|
-
export declare function MenuSeparator(): import("react").JSX.Element;
|
|
8
|
-
export interface MenuProps<T> extends MenuPrimitiveProps<T> {
|
|
9
|
-
label: ReactNode;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
popoverProps?: Omit<PopoverProps, 'children'>;
|
|
12
|
-
appearance?: ButtonProps['appearance'];
|
|
13
|
-
icon?: ComponentType;
|
|
14
|
-
isDisabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare function Menu<T extends object>({ appearance, icon, isDisabled, label, children, popoverProps, ...props }: MenuProps<T>): import("react").JSX.Element;
|
package/dist/components/Menu.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
$49319ee1285aa241$export$27d2ad3c5815583e,
|
|
3
|
-
$49319ee1285aa241$export$2ce376c2cc3355c8,
|
|
4
|
-
$49319ee1285aa241$export$c7e742effb1c51e2,
|
|
5
|
-
$49319ee1285aa241$export$d9b273488cd8ce6f,
|
|
6
|
-
$49319ee1285aa241$export$ecabc99eeffab7ca,
|
|
7
|
-
$53e61d82d8b8611d$export$8b251419efc915eb,
|
|
8
|
-
$e28ab3efe3e87743$export$1ff3c3f08ae963c0
|
|
9
|
-
} from "../chunks/chunk-I7X64JTZ.js";
|
|
10
|
-
import "../chunks/chunk-IWN3T3FL.js";
|
|
11
|
-
import "../chunks/chunk-RKDPDEF7.js";
|
|
12
|
-
import "../chunks/chunk-JFROOUG6.js";
|
|
13
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
14
|
-
import "../chunks/chunk-IYAQC63Y.js";
|
|
15
|
-
import "../chunks/chunk-LUBOGJCG.js";
|
|
16
|
-
import "../chunks/chunk-YK3OSMDM.js";
|
|
17
|
-
import "../chunks/chunk-AC4U3IMS.js";
|
|
18
|
-
import {
|
|
19
|
-
dist_default
|
|
20
|
-
} from "../chunks/chunk-I4OYYAX5.js";
|
|
21
|
-
import "../chunks/chunk-CQ52GEHY.js";
|
|
22
|
-
|
|
23
|
-
// src/components/Menu.tsx
|
|
24
|
-
import { useContext } from "react";
|
|
25
|
-
import { IcRoundCheck, IcRoundKeyboardArrowRight } from "../dashboard/icons.js";
|
|
26
|
-
import { Button } from "./Button.js";
|
|
27
|
-
import { Icon } from "./Icon.js";
|
|
28
|
-
|
|
29
|
-
// src/components/Menu.module.css
|
|
30
|
-
var Menu_default = {
|
|
31
|
-
"MenuItem-icon": "alinea-MenuItem-icon",
|
|
32
|
-
"MenuItemIcon": "alinea-MenuItem-icon",
|
|
33
|
-
"Menu": "alinea-Menu",
|
|
34
|
-
"MenuHeader": "alinea-MenuHeader",
|
|
35
|
-
"MenuSeparator": "alinea-MenuSeparator",
|
|
36
|
-
"MenuItem": "alinea-MenuItem"
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// src/components/Menu.tsx
|
|
40
|
-
import { Popover } from "./Popover.js";
|
|
41
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
42
|
-
var styles = dist_default(Menu_default);
|
|
43
|
-
function MenuItem(props) {
|
|
44
|
-
const textValue = props.textValue || (typeof props.children === "string" ? props.children : void 0);
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
-
$49319ee1285aa241$export$2ce376c2cc3355c8,
|
|
47
|
-
{
|
|
48
|
-
...props,
|
|
49
|
-
className: styles.MenuItem(),
|
|
50
|
-
textValue,
|
|
51
|
-
children: ({ hasSubmenu, isSelected, selectionMode }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
-
props.children,
|
|
53
|
-
isSelected && selectionMode && /* @__PURE__ */ jsx(IcRoundCheck, { className: styles.MenuItem.check() }),
|
|
54
|
-
hasSubmenu && /* @__PURE__ */ jsx(
|
|
55
|
-
Icon,
|
|
56
|
-
{
|
|
57
|
-
className: styles.MenuItem.icon(),
|
|
58
|
-
icon: IcRoundKeyboardArrowRight
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
] })
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
function MenuHeader(props) {
|
|
66
|
-
return /* @__PURE__ */ jsx($53e61d82d8b8611d$export$8b251419efc915eb, { ...props, className: styles.MenuHeader() });
|
|
67
|
-
}
|
|
68
|
-
function MenuSeparator() {
|
|
69
|
-
return /* @__PURE__ */ jsx($e28ab3efe3e87743$export$1ff3c3f08ae963c0, { className: styles.MenuSeparator() });
|
|
70
|
-
}
|
|
71
|
-
function Menu({
|
|
72
|
-
appearance,
|
|
73
|
-
icon,
|
|
74
|
-
isDisabled,
|
|
75
|
-
label,
|
|
76
|
-
children,
|
|
77
|
-
popoverProps,
|
|
78
|
-
...props
|
|
79
|
-
}) {
|
|
80
|
-
const isInMenu = useContext($49319ee1285aa241$export$c7e742effb1c51e2);
|
|
81
|
-
const Trigger = isInMenu ? $49319ee1285aa241$export$ecabc99eeffab7ca : $49319ee1285aa241$export$27d2ad3c5815583e;
|
|
82
|
-
return /* @__PURE__ */ jsxs(Trigger, { children: [
|
|
83
|
-
typeof label === "string" ? /* @__PURE__ */ jsxs(Button, { appearance, isDisabled, children: [
|
|
84
|
-
label,
|
|
85
|
-
icon && /* @__PURE__ */ jsx(Icon, { icon, "data-slot": "icon" })
|
|
86
|
-
] }) : /* @__PURE__ */ jsx(Fragment, { children: label }),
|
|
87
|
-
/* @__PURE__ */ jsx(Popover, { ...popoverProps, children: /* @__PURE__ */ jsx($49319ee1285aa241$export$d9b273488cd8ce6f, { ...props, className: styles.Menu(), children }) })
|
|
88
|
-
] });
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
Menu,
|
|
92
|
-
MenuHeader,
|
|
93
|
-
MenuItem,
|
|
94
|
-
MenuSeparator
|
|
95
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import { Modal as ModalPrimitive, ModalOverlay as ModalOverlayPrimitive } from 'react-aria-components';
|
|
3
|
-
export interface ModalProps extends Omit<ComponentProps<typeof ModalOverlayPrimitive>, 'children'>, Omit<ComponentProps<typeof ModalPrimitive>, 'children'> {
|
|
4
|
-
children?: ComponentProps<typeof ModalPrimitive>['children'];
|
|
5
|
-
overlayClassName?: ComponentProps<typeof ModalOverlayPrimitive>['className'];
|
|
6
|
-
}
|
|
7
|
-
export declare function Modal(props: ModalProps): import("react").JSX.Element;
|
package/dist/components/Modal.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
$8b8d26808cb8cb53$export$2b77a92f1a5ad772,
|
|
3
|
-
$8b8d26808cb8cb53$export$8948f78d83984c69
|
|
4
|
-
} from "../chunks/chunk-I7X64JTZ.js";
|
|
5
|
-
import "../chunks/chunk-IWN3T3FL.js";
|
|
6
|
-
import "../chunks/chunk-RKDPDEF7.js";
|
|
7
|
-
import "../chunks/chunk-JFROOUG6.js";
|
|
8
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
9
|
-
import "../chunks/chunk-IYAQC63Y.js";
|
|
10
|
-
import "../chunks/chunk-LUBOGJCG.js";
|
|
11
|
-
import "../chunks/chunk-YK3OSMDM.js";
|
|
12
|
-
import "../chunks/chunk-AC4U3IMS.js";
|
|
13
|
-
import {
|
|
14
|
-
dist_default
|
|
15
|
-
} from "../chunks/chunk-I4OYYAX5.js";
|
|
16
|
-
import "../chunks/chunk-CQ52GEHY.js";
|
|
17
|
-
|
|
18
|
-
// src/components/Modal.module.css
|
|
19
|
-
var Modal_default = {
|
|
20
|
-
"Modal": "alinea-Modal",
|
|
21
|
-
"Modal-fade": "alinea-Modal-fade",
|
|
22
|
-
"ModalFade": "alinea-Modal-fade",
|
|
23
|
-
"ModalOverlay": "alinea-ModalOverlay",
|
|
24
|
-
"Modal-zoom": "alinea-Modal-zoom",
|
|
25
|
-
"ModalZoom": "alinea-Modal-zoom"
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// src/components/Modal.tsx
|
|
29
|
-
import { jsx } from "react/jsx-runtime";
|
|
30
|
-
var styles = dist_default(Modal_default);
|
|
31
|
-
function Modal(props) {
|
|
32
|
-
const { children, className, overlayClassName, ...rest } = props;
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
$8b8d26808cb8cb53$export$8948f78d83984c69,
|
|
35
|
-
{
|
|
36
|
-
...rest,
|
|
37
|
-
className: (renderProps) => styles.ModalOverlay(
|
|
38
|
-
dist_default.merge({
|
|
39
|
-
className: typeof overlayClassName === "function" ? overlayClassName(renderProps) : overlayClassName
|
|
40
|
-
})
|
|
41
|
-
),
|
|
42
|
-
children: /* @__PURE__ */ jsx(
|
|
43
|
-
$8b8d26808cb8cb53$export$2b77a92f1a5ad772,
|
|
44
|
-
{
|
|
45
|
-
className: (renderProps) => styles.Modal(
|
|
46
|
-
dist_default.merge({
|
|
47
|
-
className: typeof className === "function" ? className(renderProps) : className
|
|
48
|
-
})
|
|
49
|
-
),
|
|
50
|
-
children
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
Modal
|
|
58
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ProgressBarProps } from 'react-aria-components';
|
|
2
|
-
interface ProgressCircleProps extends Omit<ProgressBarProps, 'className'> {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function ProgressCircle({ className, ...props }: ProgressCircleProps): import("react").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
$6c0095e7e99364f2$export$c17561cb55d4db30
|
|
3
|
-
} from "../chunks/chunk-I7X64JTZ.js";
|
|
4
|
-
import "../chunks/chunk-IWN3T3FL.js";
|
|
5
|
-
import "../chunks/chunk-RKDPDEF7.js";
|
|
6
|
-
import "../chunks/chunk-JFROOUG6.js";
|
|
7
|
-
import "../chunks/chunk-SJBZFMQ2.js";
|
|
8
|
-
import "../chunks/chunk-IYAQC63Y.js";
|
|
9
|
-
import "../chunks/chunk-LUBOGJCG.js";
|
|
10
|
-
import "../chunks/chunk-YK3OSMDM.js";
|
|
11
|
-
import "../chunks/chunk-AC4U3IMS.js";
|
|
12
|
-
import {
|
|
13
|
-
dist_default
|
|
14
|
-
} from "../chunks/chunk-I4OYYAX5.js";
|
|
15
|
-
import "../chunks/chunk-CQ52GEHY.js";
|
|
16
|
-
|
|
17
|
-
// src/components/ProgressCircle.module.css
|
|
18
|
-
var ProgressCircle_default = {
|
|
19
|
-
"ProgressCircle-icon-circle": "alinea-ProgressCircle-icon-circle",
|
|
20
|
-
"ProgressCircleIconCircle": "alinea-ProgressCircle-icon-circle",
|
|
21
|
-
"spin": "alinea-spin",
|
|
22
|
-
"ProgressCircle-icon": "alinea-ProgressCircle-icon",
|
|
23
|
-
"ProgressCircleIcon": "alinea-ProgressCircle-icon",
|
|
24
|
-
"ProgressCircle": "alinea-ProgressCircle"
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// src/components/ProgressCircle.tsx
|
|
28
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
-
var styles = dist_default(ProgressCircle_default);
|
|
30
|
-
function ProgressCircle({ className, ...props }) {
|
|
31
|
-
const c = "50%";
|
|
32
|
-
const r = "calc(50% - 2px)";
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
$6c0095e7e99364f2$export$c17561cb55d4db30,
|
|
35
|
-
{
|
|
36
|
-
...props,
|
|
37
|
-
className: styles.ProgressCircle(dist_default.merge({ className })),
|
|
38
|
-
children: ({ percentage, isIndeterminate }) => /* @__PURE__ */ jsxs(
|
|
39
|
-
"svg",
|
|
40
|
-
{
|
|
41
|
-
viewBox: "0 0 24 24",
|
|
42
|
-
fill: "none",
|
|
43
|
-
"data-slot": "icon",
|
|
44
|
-
className: styles.ProgressCircle.icon(),
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ jsx(
|
|
47
|
-
"circle",
|
|
48
|
-
{
|
|
49
|
-
cx: c,
|
|
50
|
-
cy: c,
|
|
51
|
-
r,
|
|
52
|
-
strokeWidth: 3,
|
|
53
|
-
stroke: "currentColor",
|
|
54
|
-
strokeOpacity: 0.25
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
!isIndeterminate ? /* @__PURE__ */ jsx(
|
|
58
|
-
"circle",
|
|
59
|
-
{
|
|
60
|
-
cx: c,
|
|
61
|
-
cy: c,
|
|
62
|
-
r,
|
|
63
|
-
strokeWidth: 3,
|
|
64
|
-
stroke: "currentColor",
|
|
65
|
-
pathLength: 100,
|
|
66
|
-
strokeDasharray: "100 200",
|
|
67
|
-
strokeDashoffset: 100 - (percentage ?? 0),
|
|
68
|
-
strokeLinecap: "round",
|
|
69
|
-
transform: "rotate(-90)",
|
|
70
|
-
className: styles.ProgressCircle.icon.circle()
|
|
71
|
-
}
|
|
72
|
-
) : /* @__PURE__ */ jsx(
|
|
73
|
-
"circle",
|
|
74
|
-
{
|
|
75
|
-
cx: c,
|
|
76
|
-
cy: c,
|
|
77
|
-
r,
|
|
78
|
-
strokeWidth: 3,
|
|
79
|
-
stroke: "currentColor",
|
|
80
|
-
pathLength: 100,
|
|
81
|
-
strokeDasharray: "100 200",
|
|
82
|
-
strokeDashoffset: 100 - 30,
|
|
83
|
-
strokeLinecap: "round",
|
|
84
|
-
className: styles.ProgressCircle.icon.circle(),
|
|
85
|
-
"data-indeterminate": true
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
export {
|
|
95
|
-
ProgressCircle
|
|
96
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../Config.js';
|
|
2
|
-
import type { LocalConnection, UploadMetadata, UploadResponse } from '../Connection.js';
|
|
3
|
-
import type { Source } from '../source/Source.js';
|
|
4
|
-
import { type CommitRequest } from './CommitRequest.js';
|
|
5
|
-
import { LocalDB } from './LocalDB.js';
|
|
6
|
-
import type { Mutation } from './Mutation.js';
|
|
7
|
-
export declare class EntryDB extends LocalDB {
|
|
8
|
-
connect: () => Promise<LocalConnection>;
|
|
9
|
-
constructor(config: Config, source: Source, connect: () => Promise<LocalConnection>);
|
|
10
|
-
mutate(mutations: Array<Mutation>): Promise<{
|
|
11
|
-
sha: string;
|
|
12
|
-
remote: Promise<string>;
|
|
13
|
-
}>;
|
|
14
|
-
write(request: CommitRequest): Promise<{
|
|
15
|
-
sha: string;
|
|
16
|
-
}>;
|
|
17
|
-
prepareUpload(file: string, metadata?: UploadMetadata): Promise<UploadResponse>;
|
|
18
|
-
syncWithRemote(): Promise<string>;
|
|
19
|
-
}
|