alinea 1.7.0 → 2.0.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/.init/src/app/(alinea)/api/cms/route.ts +8 -8
- package/dist/.init/src/cms.ts +45 -47
- package/dist/LICENSES.md +208 -560
- package/dist/adapter/core/cms.js +1 -1
- package/dist/adapter/core/handler.js +1 -1
- package/dist/adapter/core/preview.js +2 -2
- package/dist/adapter/core/previewContext.d.ts +1 -1
- package/dist/adapter/core/previewContext.js +1 -1
- package/dist/adapter/next/cms.d.ts +1 -1
- package/dist/adapter/next/cms.js +7 -7
- package/dist/adapter/next/context.js +1 -1
- package/dist/adapter/next/handler.d.ts +2 -4
- package/dist/adapter/next/handler.js +11 -5
- package/dist/adapter/next/previews.d.ts +2 -2
- package/dist/adapter/next/previews.js +13 -17
- package/dist/adapter/next/with-alinea.js +20 -10
- package/dist/adapter/vite/plugin.d.ts +2 -0
- package/dist/adapter/vite/plugin.js +66 -0
- package/dist/backend/Auth.js +1 -1
- package/dist/backend/HandleAction.d.ts +1 -0
- package/dist/backend/HandleAction.js +2 -1
- package/dist/backend/Handler.js +125 -17
- package/dist/backend/Previews.d.ts +2 -5
- package/dist/backend/api/BasicAuth.d.ts +2 -2
- package/dist/backend/api/BasicAuth.js +5 -3
- package/dist/backend/api/CreateBackend.d.ts +11 -2
- package/dist/backend/api/CreateBackend.js +45 -2502
- package/dist/backend/api/DatabaseApi.d.ts +8 -2
- package/dist/backend/api/DatabaseApi.js +252 -123
- package/dist/backend/api/GithubApi.d.ts +0 -4
- package/dist/backend/api/GithubApi.js +11 -7
- package/dist/backend/api/OAuth2.d.ts +3 -3
- package/dist/backend/api/OAuth2.js +36 -25
- package/dist/backend/api/S3Uploads.d.ts +32 -0
- package/dist/backend/api/S3Uploads.js +178 -0
- package/dist/backend/api/SupabaseUploads.d.ts +28 -0
- package/dist/backend/api/SupabaseUploads.js +41 -0
- package/dist/backend/api/UploadPaths.d.ts +7 -0
- package/dist/backend/api/UploadPaths.js +53 -0
- package/dist/backend/api/auth.d.ts +5 -0
- package/dist/backend/api/auth.js +15 -0
- package/dist/backend/api/database.d.ts +2 -0
- package/dist/backend/api/database.js +16 -0
- package/dist/backend/api/github.d.ts +3 -0
- package/dist/backend/api/github.js +10 -0
- package/dist/backend/api/uploads.d.ts +9 -0
- package/dist/backend/api/uploads.js +23 -0
- package/dist/backend/loader/JsonLoader.js +1 -1
- package/dist/backend/resolver/ParsePreview.js +2 -2
- package/dist/backend/router/NodeHandler.js +1 -1
- package/dist/backend/router/Router.js +32 -6
- package/dist/backend/store/GeneratedRelease.js +1 -1
- package/dist/backend/store/GeneratedSource.js +1 -1
- package/dist/backend/util/ExecGit.js +4 -4
- package/dist/backend/util/JWTPreviews.d.ts +3 -3
- package/dist/backend/util/JWTPreviews.js +19 -5
- package/dist/backend/util/JsonPatch.js +1 -1
- package/dist/backend/util/ORM.js +2 -2
- package/dist/backend/util/Syncable.js +2 -2
- package/dist/backend.d.ts +5 -0
- package/dist/backend.js +17 -0
- package/dist/bundled.d.ts +8233 -8178
- package/dist/chunks/chunk-53DZYORR.js +3705 -0
- package/dist/chunks/chunk-7ORQ7BYK.js +1187 -0
- package/dist/chunks/chunk-AC4U3IMS.js +205 -0
- package/dist/chunks/chunk-BYJRQTFR.js +57 -0
- package/dist/chunks/chunk-CQ52GEHY.js +39 -0
- package/dist/chunks/chunk-EQ3TDHYD.js +79 -0
- package/dist/chunks/chunk-F36YGSHN.js +335 -0
- package/dist/chunks/chunk-G6E35DMJ.js +1997 -0
- package/dist/chunks/chunk-I4GC3E65.js +170 -0
- package/dist/chunks/chunk-I4OYYAX5.js +63 -0
- package/dist/chunks/chunk-I7X64JTZ.js +10402 -0
- package/dist/chunks/chunk-IWN3T3FL.js +19493 -0
- package/dist/chunks/chunk-IYAQC63Y.js +1265 -0
- package/dist/chunks/chunk-JFROOUG6.js +6363 -0
- package/dist/chunks/chunk-LB3UYTOL.js +95 -0
- package/dist/chunks/chunk-LUBOGJCG.js +129 -0
- package/dist/chunks/chunk-NWQXN4SB.js +227 -0
- package/dist/chunks/chunk-RKDPDEF7.js +160 -0
- package/dist/chunks/chunk-SJBZFMQ2.js +2966 -0
- package/dist/chunks/chunk-STAJCW4Z.js +322 -0
- package/dist/chunks/chunk-TL7ZW6BX.js +17963 -0
- package/dist/chunks/chunk-U4VOHNR2.js +210 -0
- package/dist/chunks/chunk-U5Z2VE7Z.js +120 -0
- package/dist/chunks/chunk-X47OVDF3.js +1974 -0
- package/dist/chunks/chunk-Y7XOMJOC.js +791 -0
- package/dist/chunks/chunk-YK3OSMDM.js +5473 -0
- package/dist/chunks/crypto-UO2XRCJS.js +11 -0
- package/dist/cli/Generate.js +9 -4
- package/dist/cli/Init.js +1 -1
- package/dist/cli/Serve.d.ts +2 -2
- package/dist/cli/Serve.js +54 -100
- package/dist/cli/bin.js +85 -12
- package/dist/cli/build/BuildEmitter.js +1 -1
- package/dist/cli/build/BuildOptions.js +1 -1
- package/dist/cli/generate/CompileConfig.d.ts +1 -1
- package/dist/cli/generate/CompileConfig.js +1 -1
- package/dist/cli/generate/CopyStaticFiles.js +2 -1
- package/dist/cli/generate/DevDB.js +2 -8
- package/dist/cli/generate/FillCache.js +2 -2
- package/dist/cli/generate/GenerateDashboard.js +1 -1
- package/dist/cli/generate/LoadConfig.js +2 -3
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +81 -26
- package/dist/cli/serve/DevServer.d.ts +19 -0
- package/dist/cli/serve/DevServer.js +134 -0
- package/dist/cli/serve/GitHistory.d.ts +1 -2
- package/dist/cli/serve/GitHistory.js +15 -2
- package/dist/cli/serve/LiveReload.js +1 -1
- package/dist/cli/serve/LocalAuth.js +1 -1
- package/dist/cli/serve/MemoryDrafts.js +1 -1
- package/dist/cli/serve/StartServer.js +1 -1
- package/dist/cli/static/init/cms.js +45 -47
- package/dist/cli/static/init/next-handler.js +8 -8
- package/dist/cli/util/CommitMessage.js +1 -1
- package/dist/cli/util/CommitSha.js +1 -1
- package/dist/cli/util/Dirname.js +1 -1
- package/dist/cli/util/Emitter.js +1 -1
- package/dist/cli/util/EnsureEnv.js +1 -1
- package/dist/cli/util/EnsureLibs.js +1 -1
- package/dist/cli/util/EnsureNode.js +1 -1
- package/dist/cli/util/ExternalPlugin.js +595 -486
- package/dist/cli/util/FS.js +1 -1
- package/dist/cli/util/FindConfigFile.js +1 -1
- package/dist/cli/util/ForwardCommand.js +1 -1
- package/dist/cli/util/IgnorePlugin.js +1 -1
- package/dist/cli/util/PublicDefines.js +1 -1
- package/dist/cli/util/Report.js +1 -1
- package/dist/cli/util/ViewsPlugin.js +2 -2
- package/dist/cli/util/WarnPublicEnv.js +1 -1
- package/dist/cli/util/Watcher.js +1 -1
- package/dist/cloud/AuthResult.js +1 -1
- package/dist/cloud/CloudConfig.d.ts +1 -0
- package/dist/cloud/CloudConfig.js +2 -1
- package/dist/cloud/CloudRemote.d.ts +10 -4
- package/dist/cloud/CloudRemote.js +56 -9
- package/dist/components/Breadcrumbs.d.ts +3 -0
- package/dist/components/Breadcrumbs.js +42 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.js +57 -0
- package/dist/components/Calendar.d.ts +3 -0
- package/dist/components/Calendar.js +94 -0
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox.js +75 -0
- package/dist/components/CheckboxGroup.d.ts +6 -0
- package/dist/components/CheckboxGroup.js +45 -0
- package/dist/components/ColorSwatch.d.ts +2 -0
- package/dist/components/ColorSwatch.js +45 -0
- package/dist/components/ColorSwatchPicker.d.ts +3 -0
- package/dist/components/ColorSwatchPicker.js +66 -0
- package/dist/components/ComboBox.d.ts +13 -0
- package/dist/components/ComboBox.js +147 -0
- package/dist/components/DateField.d.ts +5 -0
- package/dist/components/DateField.js +61 -0
- package/dist/components/DatePicker.d.ts +5 -0
- package/dist/components/DatePicker.js +78 -0
- package/dist/components/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker.js +95 -0
- package/dist/components/Dialog.d.ts +3 -0
- package/dist/components/Dialog.js +43 -0
- package/dist/components/Disclosure.d.ts +5 -0
- package/dist/components/Disclosure.js +106 -0
- package/dist/components/DropZone.d.ts +4 -0
- package/dist/components/DropZone.js +41 -0
- package/dist/components/FoldIcon.d.ts +6 -0
- package/dist/components/FoldIcon.js +31 -0
- package/dist/components/Icon.d.ts +7 -0
- package/dist/components/Icon.js +40 -0
- package/dist/components/Label.d.ts +48 -0
- package/dist/components/Label.js +210 -0
- package/dist/components/Link.d.ts +5 -0
- package/dist/components/Link.js +42 -0
- package/dist/components/List.d.ts +99 -0
- package/dist/components/List.js +397 -0
- package/dist/components/Menu.d.ts +16 -0
- package/dist/components/Menu.js +95 -0
- package/dist/components/Modal.d.ts +7 -0
- package/dist/components/Modal.js +58 -0
- package/dist/components/MultipleSelect.d.ts +25 -0
- package/dist/components/MultipleSelect.js +278 -0
- package/dist/components/NumberField.d.ts +6 -0
- package/dist/components/NumberField.js +90 -0
- package/dist/components/Popover.d.ts +6 -0
- package/dist/components/Popover.js +42 -0
- package/dist/components/ProgressCircle.d.ts +6 -0
- package/dist/components/ProgressCircle.js +96 -0
- package/dist/components/RadioGroup.d.ts +8 -0
- package/dist/components/RadioGroup.js +64 -0
- package/dist/components/SearchField.d.ts +8 -0
- package/dist/components/SearchField.js +86 -0
- package/dist/components/Select.d.ts +13 -0
- package/dist/components/Select.js +150 -0
- package/dist/components/Surface.d.ts +15 -0
- package/dist/components/Surface.js +53 -0
- package/dist/components/Switch.d.ts +5 -0
- package/dist/components/Switch.js +47 -0
- package/dist/components/Table.d.ts +14 -0
- package/dist/components/Table.js +147 -0
- package/dist/components/Tabs.d.ts +13 -0
- package/dist/components/Tabs.js +96 -0
- package/dist/components/TagGroup.d.ts +10 -0
- package/dist/components/TagGroup.js +81 -0
- package/dist/components/TextField.d.ts +13 -0
- package/dist/components/TextField.js +77 -0
- package/dist/components/TimeField.d.ts +5 -0
- package/dist/components/TimeField.js +55 -0
- package/dist/components/Toggle.d.ts +8 -0
- package/dist/components/Toggle.js +61 -0
- package/dist/components/Toolbar.d.ts +8 -0
- package/dist/components/Toolbar.js +80 -0
- package/dist/components/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip.js +54 -0
- package/dist/components/Tree.d.ts +23 -0
- package/dist/components/Tree.js +130 -0
- package/dist/components.d.ts +38 -0
- package/dist/components.js +39 -0
- package/dist/config.js +1 -1
- package/dist/core/CMS.js +1 -1
- package/dist/core/Client.d.ts +11 -7
- package/dist/core/Client.js +53 -10
- package/dist/core/Config.d.ts +2 -0
- package/dist/core/Config.js +1 -3
- package/dist/core/Connection.d.ts +28 -9
- package/dist/core/Document.js +10 -8
- package/dist/core/Draft.js +1 -1
- package/dist/core/Entry.d.ts +6 -0
- package/dist/core/Entry.js +16 -1
- package/dist/core/EntryFields.d.ts +4 -0
- package/dist/core/EntryFields.js +4 -2
- package/dist/core/EntryRecord.js +1 -1
- package/dist/core/Expr.d.ts +1 -0
- package/dist/core/Expr.js +1 -1
- package/dist/core/Field.d.ts +46 -5
- package/dist/core/Field.js +56 -10
- package/dist/core/Graph.d.ts +6 -0
- package/dist/core/Graph.js +1 -1
- package/dist/core/HttpError.js +1 -1
- package/dist/core/Id.js +1 -1
- package/dist/core/Infer.d.ts +1 -1
- package/dist/core/Internal.js +6 -6
- package/dist/core/ListRow.d.ts +10 -0
- package/dist/core/ListRow.js +12 -0
- package/dist/core/Outcome.js +1 -1
- package/dist/core/Page.js +2 -2
- package/dist/core/Picker.d.ts +0 -2
- package/dist/core/Picker.js +1 -1
- package/dist/core/Reference.js +1 -1
- package/dist/core/Role.d.ts +3 -0
- package/dist/core/Role.js +7 -1
- package/dist/core/Root.d.ts +4 -0
- package/dist/core/Root.js +7 -2
- package/dist/core/Schema.d.ts +0 -2
- package/dist/core/Schema.js +2 -16
- package/dist/core/Scope.js +1 -1
- package/dist/core/Section.js +2 -2
- package/dist/core/TextDoc.d.ts +4 -0
- package/dist/core/TextDoc.js +3 -1
- package/dist/core/Tracker.d.ts +1 -6
- package/dist/core/Tracker.js +2 -12
- package/dist/core/Trigger.js +1 -1
- package/dist/core/Type.d.ts +15 -6
- package/dist/core/Type.js +108 -28
- package/dist/core/UnionRow.d.ts +11 -0
- package/dist/core/UnionRow.js +11 -0
- package/dist/core/User.d.ts +7 -1
- package/dist/core/User.js +1 -1
- package/dist/core/View.js +1 -1
- package/dist/core/Workspace.d.ts +4 -1
- package/dist/core/Workspace.js +1 -1
- package/dist/core/db/CommitRequest.d.ts +2 -0
- package/dist/core/db/CommitRequest.js +1 -1
- package/dist/core/db/EntryAliases.d.ts +2 -0
- package/dist/core/db/EntryAliases.js +28 -0
- package/dist/core/db/EntryDB.d.ts +2 -2
- package/dist/core/db/EntryDB.js +3 -3
- package/dist/core/db/EntryIndex.d.ts +7 -0
- package/dist/core/db/EntryIndex.js +168 -26
- package/dist/core/db/EntryReference.d.ts +44 -0
- package/dist/core/db/EntryReference.js +9 -0
- package/dist/core/db/EntryReferenceIndex.d.ts +21 -0
- package/dist/core/db/EntryReferenceIndex.js +131 -0
- package/dist/core/db/EntryResolver.d.ts +10 -7
- package/dist/core/db/EntryResolver.js +90 -35
- package/dist/core/db/EntryTransaction.d.ts +1 -1
- package/dist/core/db/EntryTransaction.js +395 -57
- package/dist/core/db/EntryUrlConflictError.d.ts +11 -0
- package/dist/core/db/EntryUrlConflictError.js +16 -0
- package/dist/core/db/IndexEvent.d.ts +5 -2
- package/dist/core/db/IndexEvent.js +2 -1
- package/dist/core/db/LinkResolver.d.ts +1 -1
- package/dist/core/db/LinkResolver.js +4 -1
- package/dist/core/db/LocalDB.d.ts +4 -2
- package/dist/core/db/LocalDB.js +8 -6
- package/dist/core/db/Mutation.d.ts +3 -3
- package/dist/core/db/Operation.d.ts +8 -3
- package/dist/core/db/Operation.js +67 -23
- package/dist/core/db/TestDB.d.ts +9 -1
- package/dist/core/db/TestDB.js +24 -1
- package/dist/core/db/WriteableGraph.d.ts +15 -4
- package/dist/core/db/WriteableGraph.js +14 -2
- package/dist/core/field/CreateField.d.ts +5 -4
- package/dist/core/field/CreateField.js +9 -5
- package/dist/core/field/ListField.d.ts +13 -4
- package/dist/core/field/ListField.js +146 -13
- package/dist/core/field/RecordField.d.ts +5 -3
- package/dist/core/field/RecordField.js +58 -2
- package/dist/core/field/RichTextField.d.ts +7 -2
- package/dist/core/field/RichTextField.js +325 -10
- package/dist/core/field/ScalarField.js +9 -7
- package/dist/core/field/UnionField.d.ts +2 -3
- package/dist/core/field/UnionField.js +61 -12
- package/dist/core/media/CreatePreview.browser.js +5 -5
- package/dist/core/media/CreatePreview.js +15 -10
- package/dist/core/media/IsImage.js +1 -1
- package/dist/core/media/MediaAltField.d.ts +9 -0
- package/dist/core/media/MediaAltField.js +17 -0
- package/dist/core/media/MediaLocation.d.ts +39 -0
- package/dist/core/media/MediaLocation.js +55 -2
- package/dist/core/media/MediaRoot.d.ts +2 -2
- package/dist/core/media/MediaRoot.js +12 -11
- package/dist/core/media/MediaTypes.d.ts +21 -15
- package/dist/core/media/MediaTypes.js +33 -16
- package/dist/core/media/Summary.d.ts +8 -8
- package/dist/core/media/Summary.js +1 -1
- package/dist/core/media/UploadLimits.d.ts +1 -0
- package/dist/core/media/UploadLimits.js +20 -0
- package/dist/core/pages/Snippet.js +1 -1
- package/dist/core/shape/ListShape.d.ts +1 -47
- package/dist/core/shape/ListShape.js +1 -224
- package/dist/core/source/CombinedSource.js +1 -1
- package/dist/core/source/FSSource.d.ts +3 -2
- package/dist/core/source/FSSource.js +25 -12
- package/dist/core/source/FilePatch.js +5 -2
- package/dist/core/source/GitDelta.js +1 -1
- package/dist/core/source/GitUtils.js +1 -1
- package/dist/core/source/GithubSource.d.ts +1 -0
- package/dist/core/source/GithubSource.js +17 -4
- package/dist/core/source/IndexedDBSource.js +23 -11
- package/dist/core/source/MemorySource.js +1 -1
- package/dist/core/source/ShaMismatchError.js +3 -1
- package/dist/core/source/Source.js +1 -1
- package/dist/core/source/SourceExport.js +3 -3
- package/dist/core/source/Tree.js +1 -1
- package/dist/core/source/Utils.js +2 -5
- package/dist/core/util/Anchors.d.ts +4 -0
- package/dist/core/util/Anchors.js +45 -0
- package/dist/core/util/ArrayBuffers.js +1 -1
- package/dist/core/util/Assert.js +1 -1
- package/dist/core/util/Async.js +1 -1
- package/dist/core/util/BufferToBase64.js +1 -1
- package/dist/core/util/Callable.js +1 -1
- package/dist/core/util/Checks.js +2 -2
- package/dist/core/util/CodeGen.js +3 -1
- package/dist/core/util/ContentHash.js +1 -1
- package/dist/core/util/Debounce.js +1 -1
- package/dist/core/util/DeepMap.d.ts +14 -0
- package/dist/core/util/DeepMap.js +75 -0
- package/dist/core/util/Encoding.js +1 -1
- package/dist/core/util/EntryFilenames.d.ts +0 -1
- package/dist/core/util/EntryFilenames.js +2 -6
- package/dist/core/util/EntryRows.js +1 -1
- package/dist/core/util/FractionalIndexing.js +1 -1
- package/dist/core/util/GetRandomColor.js +20 -20
- package/dist/core/util/Identifiers.js +1 -1
- package/dist/core/util/JWT.js +1 -1
- package/dist/core/util/Lazy.js +1 -1
- package/dist/core/util/LazyRecord.js +1 -1
- package/dist/core/util/Logger.js +2 -1
- package/dist/core/util/Objects.d.ts +1 -0
- package/dist/core/util/Objects.js +5 -1
- package/dist/core/util/Paths.js +2 -2
- package/dist/core/util/RowId.js +1 -1
- package/dist/core/util/Slugs.js +1 -1
- package/dist/core/util/Timer.js +1 -1
- package/dist/core/util/Types.js +1 -1
- package/dist/core/util/Urls.js +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +2 -1
- package/dist/dashboard/App.css +319 -0
- package/dist/dashboard/App.d.ts +8 -8
- package/dist/dashboard/App.js +188 -142
- package/dist/dashboard/StoryProvider.d.ts +12 -0
- package/dist/dashboard/StoryProvider.js +82 -0
- package/dist/dashboard/ViewKeys.d.ts +26 -0
- package/dist/dashboard/ViewKeys.js +32 -0
- package/dist/dashboard/app/AccessDenied.d.ts +5 -0
- package/dist/dashboard/app/AccessDenied.js +53 -0
- package/dist/dashboard/app/ActivityStatus.d.ts +10 -0
- package/dist/dashboard/app/ActivityStatus.js +459 -0
- package/dist/dashboard/app/AlineaLogo.d.ts +4 -0
- package/dist/dashboard/app/AlineaLogo.js +26 -0
- package/dist/dashboard/app/AppShell.d.ts +4 -0
- package/dist/dashboard/app/AppShell.js +29 -0
- package/dist/dashboard/app/AuthView.d.ts +8 -0
- package/dist/dashboard/app/AuthView.js +111 -0
- package/dist/dashboard/app/Badge.d.ts +8 -0
- package/dist/dashboard/app/Badge.js +42 -0
- package/dist/dashboard/app/CompactField.d.ts +14 -0
- package/dist/dashboard/app/CompactField.js +178 -0
- package/dist/dashboard/app/DashboardErrorBoundary.d.ts +2 -0
- package/dist/dashboard/app/DashboardErrorBoundary.js +122 -0
- package/dist/dashboard/app/DashboardLayout.d.ts +18 -0
- package/dist/dashboard/app/DashboardLayout.js +88 -0
- package/dist/dashboard/app/DashboardMeta.d.ts +7 -0
- package/dist/dashboard/app/DashboardMeta.js +28 -0
- package/dist/dashboard/app/EditorBackButton.d.ts +5 -0
- package/dist/dashboard/app/EditorBackButton.js +33 -0
- package/dist/dashboard/app/EntryFields.d.ts +21 -0
- package/dist/dashboard/app/EntryFields.js +101 -0
- package/dist/dashboard/app/EntryHeader.d.ts +15 -0
- package/dist/dashboard/app/EntryHeader.js +452 -0
- package/dist/dashboard/app/EntryHeaderActions.d.ts +37 -0
- package/dist/dashboard/app/EntryHeaderActions.js +71 -0
- package/dist/dashboard/app/EntryReferences.d.ts +6 -0
- package/dist/dashboard/app/EntryReferences.js +209 -0
- package/dist/dashboard/app/EntrySidebar.d.ts +25 -0
- package/dist/dashboard/app/EntrySidebar.js +378 -0
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +10 -0
- package/dist/dashboard/app/EntrySidebarPreview.js +260 -0
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +1 -0
- package/dist/dashboard/app/EntrySidebarToggle.d.ts +6 -0
- package/dist/dashboard/app/EntrySidebarToggle.js +29 -0
- package/dist/dashboard/app/EntryTranslationBanner.d.ts +7 -0
- package/dist/dashboard/app/EntryTranslationBanner.js +60 -0
- package/dist/dashboard/app/Explorer.d.ts +41 -0
- package/dist/dashboard/app/Explorer.js +804 -0
- package/dist/dashboard/app/ExplorerCards.d.ts +12 -0
- package/dist/dashboard/app/ExplorerCards.js +389 -0
- package/dist/dashboard/app/ExplorerFileCard.d.ts +10 -0
- package/dist/dashboard/app/ExplorerFileCard.js +115 -0
- package/dist/dashboard/app/ExplorerList.d.ts +9 -0
- package/dist/dashboard/app/ExplorerList.js +165 -0
- package/dist/dashboard/app/ExplorerModal.d.ts +16 -0
- package/dist/dashboard/app/ExplorerModal.js +89 -0
- package/dist/dashboard/app/ExplorerPickerContent.d.ts +13 -0
- package/dist/dashboard/app/ExplorerPickerContent.js +114 -0
- package/dist/dashboard/app/ExplorerTable.d.ts +14 -0
- package/dist/dashboard/app/ExplorerTable.js +497 -0
- package/dist/dashboard/app/ExternalLinkPicker.d.ts +12 -0
- package/dist/dashboard/app/ExternalLinkPicker.js +97 -0
- package/dist/dashboard/app/ImagePicker.d.ts +6 -0
- package/dist/dashboard/app/ImagePicker.js +145 -0
- package/dist/dashboard/app/LinkPicker.d.ts +9 -0
- package/dist/dashboard/app/LinkPicker.js +317 -0
- package/dist/dashboard/app/LocaleMenu.d.ts +8 -0
- package/dist/dashboard/app/LocaleMenu.js +110 -0
- package/dist/dashboard/app/LogoShape.d.ts +8 -0
- package/dist/dashboard/app/LogoShape.js +60 -0
- package/dist/dashboard/app/SidebarTree.d.ts +37 -0
- package/dist/dashboard/app/SidebarTree.js +433 -0
- package/dist/dashboard/app/StatusBadge.d.ts +6 -0
- package/dist/dashboard/app/StatusBadge.js +26 -0
- package/dist/dashboard/app/ViewToggle.d.ts +7 -0
- package/dist/dashboard/app/ViewToggle.js +27 -0
- package/dist/dashboard/app/WorkspaceMenu.d.ts +24 -0
- package/dist/dashboard/app/WorkspaceMenu.js +264 -0
- package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +5 -0
- package/dist/dashboard/app/WorkspaceRoots.d.ts +6 -0
- package/dist/dashboard/app/WorkspaceRoots.js +285 -0
- package/dist/dashboard/app/editor/FileEditor.d.ts +5 -0
- package/dist/dashboard/app/editor/FileEditor.js +190 -0
- package/dist/dashboard/app/editor/FilePreview.d.ts +13 -0
- package/dist/dashboard/app/editor/FilePreview.js +196 -0
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +5 -0
- package/dist/dashboard/app/editor/MediaAltField.view.js +98 -0
- package/dist/dashboard/app/modals/CreateEntry.d.ts +1 -0
- package/dist/dashboard/app/modals/CreateEntry.js +283 -0
- package/dist/dashboard/app/pages/EntryPage.d.ts +11 -0
- package/dist/dashboard/app/pages/EntryPage.js +354 -0
- package/dist/dashboard/app/pages/RootPage.d.ts +9 -0
- package/dist/dashboard/app/pages/RootPage.js +90 -0
- package/dist/dashboard/app/pages/UsersPage.d.ts +7 -0
- package/dist/dashboard/app/pages/UsersPage.js +552 -0
- package/dist/dashboard/app/ui/DashboardModal.d.ts +34 -0
- package/dist/dashboard/app/ui/DashboardModal.js +192 -0
- package/dist/dashboard/app/ui/Rail.d.ts +18 -0
- package/dist/dashboard/app/ui/Rail.js +41 -0
- package/dist/dashboard/app/ui/Sidebar.d.ts +15 -0
- package/dist/dashboard/app/ui/Sidebar.js +55 -0
- package/dist/dashboard/atoms/ReactiveNode.d.ts +41 -0
- package/dist/dashboard/atoms/ReactiveNode.js +248 -0
- package/dist/dashboard/atoms/activity.d.ts +48 -0
- package/dist/dashboard/atoms/activity.js +189 -0
- package/dist/dashboard/atoms/auth.d.ts +38 -0
- package/dist/dashboard/atoms/auth.js +106 -0
- package/dist/dashboard/atoms/config.d.ts +27 -0
- package/dist/dashboard/atoms/config.js +49 -0
- package/dist/dashboard/atoms/core.d.ts +15 -0
- package/dist/dashboard/atoms/core.js +37 -0
- package/dist/dashboard/atoms/create.d.ts +13 -0
- package/dist/dashboard/atoms/create.js +79 -0
- package/dist/dashboard/atoms/dashboard.d.ts +12 -0
- package/dist/dashboard/atoms/dashboard.js +71 -0
- package/dist/dashboard/atoms/editor.d.ts +80 -0
- package/dist/dashboard/atoms/editor.js +132 -0
- package/dist/dashboard/atoms/entry.d.ts +223 -0
- package/dist/dashboard/atoms/entry.js +609 -0
- package/dist/dashboard/atoms/explorer.d.ts +257 -0
- package/dist/dashboard/atoms/explorer.js +677 -0
- package/dist/dashboard/atoms/graph.d.ts +5 -0
- package/dist/dashboard/atoms/graph.js +62 -0
- package/dist/dashboard/atoms/link.d.ts +24 -0
- package/dist/dashboard/atoms/link.js +82 -0
- package/dist/dashboard/atoms/nav.d.ts +47 -0
- package/dist/dashboard/atoms/nav.js +220 -0
- package/dist/dashboard/atoms/preview.d.ts +4 -0
- package/dist/dashboard/atoms/preview.js +10 -0
- package/dist/dashboard/atoms/root.d.ts +88 -0
- package/dist/dashboard/atoms/root.js +444 -0
- package/dist/dashboard/atoms/upload.d.ts +9 -0
- package/dist/dashboard/atoms/upload.js +81 -0
- package/dist/dashboard/atoms/user.d.ts +9 -0
- package/dist/dashboard/atoms/user.js +75 -0
- package/dist/dashboard/atoms/utils.d.ts +17 -0
- package/dist/dashboard/atoms/utils.js +151 -0
- package/dist/dashboard/boot/ActivityEvent.d.ts +44 -0
- package/dist/dashboard/boot/ActivityEvent.js +14 -0
- package/dist/dashboard/boot/Boot.js +9 -5
- package/dist/dashboard/boot/BootDev.js +2 -1
- package/dist/dashboard/boot/BootProd.js +1 -1
- package/dist/dashboard/boot/DashboardWorker.d.ts +7 -7
- package/dist/dashboard/boot/DashboardWorker.js +370 -30
- package/dist/dashboard/boot/LoadWorker.js +6 -3
- package/dist/dashboard/boot/WorkerDB.d.ts +9 -2
- package/dist/dashboard/boot/WorkerDB.js +20 -3
- package/dist/dashboard/editor/UseField.d.ts +29 -10
- package/dist/dashboard/editor/UseField.js +27 -59
- package/dist/dashboard/fixture/cms.d.ts +116 -0
- package/dist/dashboard/fixture/cms.js +230 -0
- package/dist/dashboard/hook/UseEntryEditor.d.ts +25 -6
- package/dist/dashboard/hook/UseEntryEditor.js +34 -12
- package/dist/dashboard/hook/UseGraph.d.ts +3 -0
- package/dist/dashboard/hook/UseGraph.js +5 -5
- package/dist/dashboard/hook/UseLocale.d.ts +4 -1
- package/dist/dashboard/hook/UseLocale.js +5 -7
- package/dist/dashboard/hook/UseRoot.d.ts +7 -12
- package/dist/dashboard/hook/UseRoot.js +8 -5
- package/dist/dashboard/hook/UseWorkspace.d.ts +7 -9
- package/dist/dashboard/hook/UseWorkspace.js +5 -7
- package/dist/dashboard/hooks.d.ts +157 -0
- package/dist/dashboard/hooks.js +229 -0
- package/dist/dashboard/icons.d.ts +171 -0
- package/dist/dashboard/icons.js +2686 -0
- package/dist/dashboard/plugins/alineaFixturePlugin.d.ts +2 -0
- package/dist/dashboard/plugins/alineaFixturePlugin.js +200 -0
- package/dist/dashboard.d.ts +1 -2
- package/dist/dashboard.js +6 -2
- package/dist/edit.d.ts +1 -1
- package/dist/edit.js +2 -4
- package/dist/field/check/CheckField.js +3 -3
- package/dist/field/check/CheckField.view.d.ts +3 -3
- package/dist/field/check/CheckField.view.js +37 -84
- package/dist/field/code/CodeField.js +2 -2
- package/dist/field/code/CodeField.view.d.ts +21 -3
- package/dist/field/code/CodeField.view.js +177 -39
- package/dist/field/code/SimpleCodeEditor.d.ts +50 -0
- package/dist/field/code/SimpleCodeEditor.js +452 -0
- package/dist/field/date/DateField.js +3 -3
- package/dist/field/date/DateField.view.d.ts +3 -3
- package/dist/field/date/DateField.view.js +26 -26
- package/dist/field/hidden/HiddenField.js +2 -2
- package/dist/field/hidden/HiddenField.view.js +1 -1
- package/dist/field/json/JsonField.js +2 -2
- package/dist/field/json/JsonField.view.d.ts +4 -4
- package/dist/field/json/JsonField.view.js +53 -76
- package/dist/field/link/EntryLink.d.ts +9 -8
- package/dist/field/link/EntryLink.js +4 -2
- package/dist/field/link/FileLink.d.ts +5 -5
- package/dist/field/link/FileLink.js +7 -3
- package/dist/field/link/ImageLink.d.ts +4 -2
- package/dist/field/link/ImageLink.js +4 -1
- package/dist/field/link/Link.d.ts +1 -1
- package/dist/field/link/Link.js +1 -1
- package/dist/field/link/LinkEditor.d.ts +1 -1
- package/dist/field/link/LinkEditor.js +1 -1
- package/dist/field/link/LinkField.d.ts +5 -3
- package/dist/field/link/LinkField.js +56 -17
- package/dist/field/link/LinkField.stories.d.ts +11 -1
- package/dist/field/link/LinkField.view.d.ts +8 -10
- package/dist/field/link/LinkField.view.js +1444 -362
- package/dist/field/link/UrlLink.d.ts +2 -2
- package/dist/field/link/UrlLink.js +4 -2
- package/dist/field/list/ListField.d.ts +3 -3
- package/dist/field/list/ListField.js +5 -6
- package/dist/field/list/ListField.stories.d.ts +2 -1
- package/dist/field/list/ListField.view.d.ts +15 -7
- package/dist/field/list/ListField.view.js +888 -377
- package/dist/field/localiser/LocalisedField.view.d.ts +5 -0
- package/dist/field/localiser/LocalisedField.view.js +63 -0
- package/dist/field/localiser/LocalisedFieldTabs.d.ts +8 -0
- package/dist/field/localiser/LocalisedFieldTabs.js +38 -0
- package/dist/field/localiser/Localiser.d.ts +25 -0
- package/dist/field/localiser/Localiser.js +140 -0
- package/dist/field/localiser.d.ts +1 -0
- package/dist/field/localiser.js +2 -0
- package/dist/field/metadata/MetadataAliases.d.ts +20 -0
- package/dist/field/metadata/MetadataAliases.js +22 -0
- package/dist/field/metadata/MetadataField.d.ts +31 -8
- package/dist/field/metadata/MetadataField.js +127 -11
- package/dist/field/metadata/MetadataField.view.d.ts +11 -3
- package/dist/field/metadata/MetadataField.view.js +130 -96
- package/dist/field/number/NumberField.js +3 -3
- package/dist/field/number/NumberField.view.d.ts +3 -3
- package/dist/field/number/NumberField.view.js +22 -54
- package/dist/field/object/ObjectField.d.ts +1 -1
- package/dist/field/object/ObjectField.js +11 -4
- package/dist/field/object/ObjectField.view.d.ts +4 -4
- package/dist/field/object/ObjectField.view.js +28 -19
- package/dist/field/path/PathField.js +3 -3
- package/dist/field/path/PathField.view.d.ts +3 -3
- package/dist/field/path/PathField.view.js +33 -133
- package/dist/field/path/SlugField.d.ts +16 -0
- package/dist/field/path/SlugField.js +52 -0
- package/dist/field/richtext/Extensions.d.ts +1 -28
- package/dist/field/richtext/Extensions.js +2 -4146
- package/dist/field/richtext/PickTextAnchor.d.ts +19 -0
- package/dist/field/richtext/PickTextAnchor.js +99 -0
- package/dist/field/richtext/PickTextLink.d.ts +18 -17
- package/dist/field/richtext/PickTextLink.js +133 -88
- package/dist/field/richtext/ReferenceLink.d.ts +2 -0
- package/dist/field/richtext/ReferenceLink.js +13 -4
- package/dist/field/richtext/RichTextBlock.d.ts +11 -0
- package/dist/field/richtext/RichTextBlock.js +143 -0
- package/dist/field/richtext/RichTextBlockHost.d.ts +13 -0
- package/dist/field/richtext/RichTextBlockHost.js +56 -0
- package/dist/field/richtext/RichTextBlockValue.d.ts +5 -0
- package/dist/field/richtext/RichTextBlockValue.js +34 -0
- package/dist/field/richtext/RichTextBlocks.d.ts +16 -0
- package/dist/field/richtext/RichTextBlocks.js +40 -0
- package/dist/field/richtext/RichTextDocument.d.ts +4 -0
- package/dist/field/richtext/RichTextDocument.js +162 -0
- package/dist/field/richtext/RichTextExtensions.d.ts +67 -0
- package/dist/field/richtext/RichTextExtensions.js +8219 -0
- package/dist/field/richtext/RichTextField.d.ts +10 -3
- package/dist/field/richtext/RichTextField.js +13 -3
- package/dist/field/richtext/RichTextField.story.d.ts +8 -0
- package/dist/field/richtext/RichTextField.view.d.ts +11 -5
- package/dist/field/richtext/RichTextField.view.js +385 -2447
- package/dist/field/richtext/RichTextInsertMenu.d.ts +9 -0
- package/dist/field/richtext/RichTextInsertMenu.js +1014 -0
- package/dist/field/richtext/RichTextState.d.ts +6 -0
- package/dist/field/richtext/RichTextState.js +58 -0
- package/dist/field/richtext/RichTextToolbar.d.ts +9 -36
- package/dist/field/richtext/RichTextToolbar.js +206 -178
- package/dist/field/richtext/Toolbar.d.ts +111 -65
- package/dist/field/richtext/Toolbar.js +60 -45
- package/dist/field/richtext/extensions/Anchor.d.ts +19 -0
- package/dist/field/richtext/extensions/Anchor.js +94 -0
- package/dist/field/richtext/extensions/Link.d.ts +3 -13
- package/dist/field/richtext/extensions/Link.js +15 -37
- package/dist/field/richtext/extensions/Small.d.ts +1 -10
- package/dist/field/richtext/extensions/Small.js +7 -19
- package/dist/field/select/SelectField.d.ts +15 -4
- package/dist/field/select/SelectField.js +17 -2
- package/dist/field/select/SelectField.view.d.ts +7 -3
- package/dist/field/select/SelectField.view.js +112 -155
- package/dist/field/tabs/Tabs.js +3 -2
- package/dist/field/tabs/Tabs.view.d.ts +1 -6
- package/dist/field/tabs/Tabs.view.js +22 -29
- package/dist/field/text/TextField.js +8 -3
- package/dist/field/text/TextField.view.d.ts +2 -2
- package/dist/field/text/TextField.view.js +40 -60
- package/dist/field/time/TimeField.js +3 -3
- package/dist/field/time/TimeField.view.d.ts +3 -3
- package/dist/field/time/TimeField.view.js +30 -30
- package/dist/field/view/View.js +1 -1
- package/dist/field/views.d.ts +2 -0
- package/dist/field/views.js +65 -0
- package/dist/field.d.ts +1 -0
- package/dist/field.js +3 -1
- package/dist/index.css +7034 -3625
- package/dist/index.js +1 -1
- package/dist/inter-latin-500-normal-JSHNAZJU.woff2 +0 -0
- package/dist/inter-latin-ext-500-normal-5ARINTHO.woff2 +0 -0
- package/dist/next.cjs +19 -9
- package/dist/next.edge.js +1 -1
- package/dist/next.js +1 -1
- package/dist/picker/entry/EntryPicker.d.ts +9 -4
- package/dist/picker/entry/EntryPicker.js +97 -19
- package/dist/picker/entry/EntryReference.d.ts +4 -0
- package/dist/picker/entry/EntryReference.js +3 -1
- package/dist/picker/url/UrlPicker.js +2 -12
- package/dist/preview/ChunkCookieValue.js +1 -1
- package/dist/preview/PreviewCookies.js +1 -1
- package/dist/preview/PreviewMessage.js +1 -1
- package/dist/preview/PreviewPayload.js +237 -10
- package/dist/preview/RegisterPreview.js +1 -1
- package/dist/preview/react.js +10 -3
- package/dist/preview/widget.js +1 -1
- package/dist/query.d.ts +116 -92
- package/dist/query.js +7 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui/Link.d.ts +6 -5
- package/dist/ui/Link.js +37 -13
- package/dist/ui/RichText.d.ts +37 -11
- package/dist/ui/RichText.js +81 -44
- package/dist/ui/Stack.d.ts +11 -22
- package/dist/ui/Stack.js +54 -67
- package/dist/ui/icons/IcAlignCenter.d.ts +4 -2
- package/dist/ui/icons/IcAlignCenter.js +6 -12
- package/dist/ui/icons/IcOutlineGridView.d.ts +3 -2
- package/dist/ui/icons/IcOutlineGridView.js +3 -11
- package/dist/ui/icons/IcOutlineSettings.d.ts +3 -2
- package/dist/ui/icons/IcOutlineSettings.js +3 -11
- package/dist/ui/icons/IcRoundAccountTree.d.ts +4 -2
- package/dist/ui/icons/IcRoundAccountTree.js +6 -22
- package/dist/ui/icons/IcRoundClose.d.ts +4 -2
- package/dist/ui/icons/IcRoundClose.js +6 -12
- package/dist/ui/icons/IcRoundCode.d.ts +4 -2
- package/dist/ui/icons/IcRoundCode.js +6 -12
- package/dist/ui/icons/IcRoundDateRange.d.ts +3 -2
- package/dist/ui/icons/IcRoundDateRange.js +3 -11
- package/dist/ui/icons/IcRoundDelete.d.ts +4 -2
- package/dist/ui/icons/IcRoundDelete.js +6 -12
- package/dist/ui/icons/IcRoundEdit.d.ts +4 -2
- package/dist/ui/icons/IcRoundEdit.js +6 -12
- package/dist/ui/icons/IcRoundFormatListNumbered.d.ts +3 -2
- package/dist/ui/icons/IcRoundFormatListNumbered.js +3 -11
- package/dist/ui/icons/IcRoundLink.d.ts +4 -2
- package/dist/ui/icons/IcRoundLink.js +6 -12
- package/dist/ui/icons/IcRoundOpenInNew.d.ts +4 -2
- package/dist/ui/icons/IcRoundOpenInNew.js +6 -12
- package/dist/ui/icons/IcRoundPanorama.d.ts +4 -2
- package/dist/ui/icons/IcRoundPanorama.js +6 -6
- package/dist/ui/icons/IcRoundRefresh.d.ts +3 -2
- package/dist/ui/icons/IcRoundRefresh.js +3 -11
- package/dist/ui/icons/IcRoundSave.d.ts +4 -2
- package/dist/ui/icons/IcRoundSave.js +6 -22
- package/dist/ui/icons/IcRoundSearch.d.ts +4 -2
- package/dist/ui/icons/IcRoundSearch.js +6 -12
- package/dist/ui/icons/IcRoundShare.d.ts +4 -2
- package/dist/ui/icons/IcRoundShare.js +6 -12
- package/dist/ui/icons/IcRoundSync.d.ts +4 -2
- package/dist/ui/icons/IcRoundSync.js +6 -22
- package/dist/ui/icons/MaterialSymbolsDatabase.d.ts +4 -2
- package/dist/ui/icons/MaterialSymbolsDatabase.js +6 -22
- package/dist/ui/icons/TableInsert.d.ts +4 -2
- package/dist/ui/icons/TableInsert.js +6 -12
- package/dist/ui/util/ImageBlurUrl.js +1 -1
- package/dist/ui.d.ts +0 -8
- package/dist/ui.js +0 -8
- package/package.json +49 -64
- package/dist/backend/router/Proxy.d.ts +0 -1
- package/dist/backend/router/Proxy.js +0 -32
- package/dist/chunks/chunk-2NTSADJL.js +0 -20
- package/dist/chunks/chunk-2STBQ2Y4.js +0 -166
- package/dist/chunks/chunk-2X5P2RZV.js +0 -94
- package/dist/chunks/chunk-3DIW62EI.js +0 -2900
- package/dist/chunks/chunk-3TNMMA3W.js +0 -249
- package/dist/chunks/chunk-467JA2PB.js +0 -29
- package/dist/chunks/chunk-5LTN67OE.js +0 -51
- package/dist/chunks/chunk-76QF5YTJ.js +0 -107
- package/dist/chunks/chunk-A5O3N2GS.js +0 -63
- package/dist/chunks/chunk-AICQFCVN.js +0 -19
- package/dist/chunks/chunk-AJJSW27C.js +0 -728
- package/dist/chunks/chunk-C53YJRET.js +0 -112
- package/dist/chunks/chunk-CKT37OYJ.js +0 -9
- package/dist/chunks/chunk-F2HHHLEQ.js +0 -72
- package/dist/chunks/chunk-FKWEJTSK.js +0 -16282
- package/dist/chunks/chunk-G2AFWRAD.js +0 -12
- package/dist/chunks/chunk-HSIHEWFC.js +0 -101
- package/dist/chunks/chunk-I26ZIF6Q.js +0 -360
- package/dist/chunks/chunk-JL5K3F7X.js +0 -1116
- package/dist/chunks/chunk-NZLE2WMY.js +0 -35
- package/dist/chunks/chunk-ORDS5C6Z.js +0 -83
- package/dist/chunks/chunk-PNILF4WM.js +0 -251
- package/dist/chunks/chunk-QUIANN6B.js +0 -8001
- package/dist/chunks/chunk-RSX2DILK.js +0 -335
- package/dist/chunks/chunk-SKF4L7JN.js +0 -401
- package/dist/chunks/chunk-SOTBYUJY.js +0 -120
- package/dist/chunks/chunk-TOJF2G3X.js +0 -96
- package/dist/chunks/chunk-TPUTTEHF.js +0 -3002
- package/dist/chunks/chunk-VUACWPFC.js +0 -892
- package/dist/chunks/chunk-WD7H5L2L.js +0 -168
- package/dist/chunks/chunk-WDCPVJJC.js +0 -341
- package/dist/chunks/chunk-WJ67RR7S.js +0 -554
- package/dist/chunks/chunk-WKC37UOZ.js +0 -143
- package/dist/chunks/chunk-WLKPH7JA.js +0 -2786
- package/dist/chunks/chunk-YWCPLD22.js +0 -2343
- package/dist/chunks/crypto-HZTUU327.js +0 -11
- package/dist/cloud/view/CloudAuth.browser.d.ts +0 -2
- package/dist/cloud/view/CloudAuth.browser.js +0 -111
- package/dist/cloud/view/CloudAuth.d.ts +0 -1
- package/dist/cloud/view/CloudAuth.js +0 -9
- package/dist/core/Doc.d.ts +0 -11
- package/dist/core/Doc.js +0 -44
- package/dist/core/Role.test.d.ts +0 -1
- package/dist/core/Shape.d.ts +0 -19
- package/dist/core/Trigger.test.d.ts +0 -1
- package/dist/core/Type.test.d.ts +0 -1
- package/dist/core/db/EntryIndex.test.d.ts +0 -1
- package/dist/core/db/EntryResolver.test.d.ts +0 -1
- package/dist/core/db/LocalDB.test.d.ts +0 -1
- package/dist/core/field/RichTextField.test.d.ts +0 -1
- package/dist/core/shape/ListShape.test.d.ts +0 -1
- package/dist/core/shape/RecordShape.d.ts +0 -26
- package/dist/core/shape/RecordShape.js +0 -102
- package/dist/core/shape/RecordShape.test.d.ts +0 -1
- package/dist/core/shape/RichTextShape.d.ts +0 -75
- package/dist/core/shape/RichTextShape.js +0 -435
- package/dist/core/shape/RichTextShape.test.d.ts +0 -1
- package/dist/core/shape/ScalarShape.d.ts +0 -20
- package/dist/core/shape/ScalarShape.js +0 -53
- package/dist/core/shape/ScalarShape.test.d.ts +0 -1
- package/dist/core/shape/UnionShape.d.ts +0 -34
- package/dist/core/shape/UnionShape.js +0 -141
- package/dist/core/shape/UnionShape.test.d.ts +0 -1
- package/dist/core/source/CombinedSource.test.d.ts +0 -1
- package/dist/core/source/FSSource.test.d.ts +0 -1
- package/dist/core/source/FilePatch.test.d.ts +0 -1
- package/dist/core/source/GitDelta.test.d.ts +0 -1
- package/dist/core/source/GitUtils.test.d.ts +0 -1
- package/dist/core/source/GithubSource.test.d.ts +0 -1
- package/dist/core/source/IndexedDBSource.test.d.ts +0 -1
- package/dist/core/source/MemorySource.test.d.ts +0 -1
- package/dist/core/source/SourceExport.test.d.ts +0 -1
- package/dist/core/source/Tree.test.d.ts +0 -1
- package/dist/core/source/Utils.test.d.ts +0 -1
- package/dist/core/util/CodeGen.test.d.ts +0 -1
- package/dist/core/util/EntryFilenames.test.d.ts +0 -1
- package/dist/core/util/JWT.test.d.ts +0 -1
- package/dist/core/util/Paths.test.d.ts +0 -1
- package/dist/core/util/Slugs.test.d.ts +0 -1
- package/dist/dashboard/DashboardNav.d.ts +0 -22
- package/dist/dashboard/DashboardNav.js +0 -44
- package/dist/dashboard/DashboardProvider.d.ts +0 -16
- package/dist/dashboard/DashboardProvider.js +0 -28
- package/dist/dashboard/Routes.d.ts +0 -111
- package/dist/dashboard/Routes.js +0 -78
- package/dist/dashboard/Welcome.d.ts +0 -1
- package/dist/dashboard/Welcome.js +0 -21
- package/dist/dashboard/atoms/DashboardAtoms.d.ts +0 -18
- package/dist/dashboard/atoms/DashboardAtoms.js +0 -86
- package/dist/dashboard/atoms/DbAtoms.d.ts +0 -5
- package/dist/dashboard/atoms/DbAtoms.js +0 -95
- package/dist/dashboard/atoms/Edits.d.ts +0 -31
- package/dist/dashboard/atoms/Edits.js +0 -93
- package/dist/dashboard/atoms/EntryAtoms.d.ts +0 -34
- package/dist/dashboard/atoms/EntryAtoms.js +0 -298
- package/dist/dashboard/atoms/EntryEditorAtoms.d.ts +0 -255
- package/dist/dashboard/atoms/EntryEditorAtoms.js +0 -629
- package/dist/dashboard/atoms/EntrySummaryAtoms.d.ts +0 -21
- package/dist/dashboard/atoms/EntrySummaryAtoms.js +0 -58
- package/dist/dashboard/atoms/ErrorAtoms.d.ts +0 -4
- package/dist/dashboard/atoms/ErrorAtoms.js +0 -18
- package/dist/dashboard/atoms/FormAtoms.d.ts +0 -56
- package/dist/dashboard/atoms/FormAtoms.js +0 -189
- package/dist/dashboard/atoms/LocationAtoms.d.ts +0 -25
- package/dist/dashboard/atoms/LocationAtoms.js +0 -104
- package/dist/dashboard/atoms/NavigationAtoms.d.ts +0 -38
- package/dist/dashboard/atoms/NavigationAtoms.js +0 -124
- package/dist/dashboard/atoms/PolicyAtom.d.ts +0 -6
- package/dist/dashboard/atoms/PolicyAtom.js +0 -29
- package/dist/dashboard/atoms/PreferencesAtoms.d.ts +0 -16
- package/dist/dashboard/atoms/PreferencesAtoms.js +0 -53
- package/dist/dashboard/atoms/RouterAtoms.d.ts +0 -78
- package/dist/dashboard/atoms/RouterAtoms.js +0 -161
- package/dist/dashboard/atoms/StyleAtoms.d.ts +0 -1
- package/dist/dashboard/atoms/StyleAtoms.js +0 -14
- package/dist/dashboard/atoms/YAtom.d.ts +0 -2
- package/dist/dashboard/atoms/YAtom.js +0 -24
- package/dist/dashboard/editor/DefaultViews.d.ts +0 -19
- package/dist/dashboard/editor/DefaultViews.js +0 -52
- package/dist/dashboard/editor/InputForm.d.ts +0 -26
- package/dist/dashboard/editor/InputForm.js +0 -53
- package/dist/dashboard/editor/ViewKeys.d.ts +0 -23
- package/dist/dashboard/editor/ViewKeys.js +0 -29
- package/dist/dashboard/hook/UseConfig.d.ts +0 -1
- package/dist/dashboard/hook/UseConfig.js +0 -12
- package/dist/dashboard/hook/UseDashboard.d.ts +0 -1
- package/dist/dashboard/hook/UseDashboard.js +0 -12
- package/dist/dashboard/hook/UseDb.d.ts +0 -2
- package/dist/dashboard/hook/UseDb.js +0 -14
- package/dist/dashboard/hook/UseDebounce.d.ts +0 -1
- package/dist/dashboard/hook/UseDebounce.js +0 -23
- package/dist/dashboard/hook/UseEntryLocation.d.ts +0 -1
- package/dist/dashboard/hook/UseEntryLocation.js +0 -12
- package/dist/dashboard/hook/UseEntrySummary.d.ts +0 -1
- package/dist/dashboard/hook/UseEntrySummary.js +0 -16
- package/dist/dashboard/hook/UseExplorer.d.ts +0 -14
- package/dist/dashboard/hook/UseExplorer.js +0 -13
- package/dist/dashboard/hook/UseFocusList.d.ts +0 -14
- package/dist/dashboard/hook/UseFocusList.js +0 -113
- package/dist/dashboard/hook/UseNav.d.ts +0 -10
- package/dist/dashboard/hook/UseNav.js +0 -12
- package/dist/dashboard/hook/UsePolicy.d.ts +0 -1
- package/dist/dashboard/hook/UsePolicy.js +0 -14
- package/dist/dashboard/hook/UsePreferences.d.ts +0 -6
- package/dist/dashboard/hook/UsePreferences.js +0 -30
- package/dist/dashboard/hook/UseSession.d.ts +0 -1
- package/dist/dashboard/hook/UseSession.js +0 -12
- package/dist/dashboard/hook/UseUploads.d.ts +0 -42
- package/dist/dashboard/hook/UseUploads.js +0 -91
- package/dist/dashboard/pages/ContentView.d.ts +0 -5
- package/dist/dashboard/pages/ContentView.js +0 -96
- package/dist/dashboard/util/Atoms.d.ts +0 -2
- package/dist/dashboard/util/Atoms.js +0 -21
- package/dist/dashboard/util/DebounceAtom.d.ts +0 -2
- package/dist/dashboard/util/DebounceAtom.js +0 -26
- package/dist/dashboard/util/HashRouter.d.ts +0 -1
- package/dist/dashboard/util/HashRouter.js +0 -2
- package/dist/dashboard/util/Head.d.ts +0 -2
- package/dist/dashboard/util/Head.js +0 -10
- package/dist/dashboard/util/KeepInView.d.ts +0 -2
- package/dist/dashboard/util/KeepInView.js +0 -19
- package/dist/dashboard/util/KeepPreviousData.d.ts +0 -9
- package/dist/dashboard/util/KeepPreviousData.js +0 -32
- package/dist/dashboard/util/Loader.d.ts +0 -17
- package/dist/dashboard/util/Loader.js +0 -31
- package/dist/dashboard/util/SuspenseBoundary.d.ts +0 -4
- package/dist/dashboard/util/SuspenseBoundary.js +0 -23
- package/dist/dashboard/util/WithResolvers.d.ts +0 -2
- package/dist/dashboard/util/WithResolvers.js +0 -16
- package/dist/dashboard/view/AlineaLogo.d.ts +0 -2
- package/dist/dashboard/view/AlineaLogo.js +0 -16
- package/dist/dashboard/view/Breadcrumbs.d.ts +0 -3
- package/dist/dashboard/view/Breadcrumbs.js +0 -33
- package/dist/dashboard/view/Create.d.ts +0 -13
- package/dist/dashboard/view/Create.js +0 -75
- package/dist/dashboard/view/EntryEdit.d.ts +0 -5
- package/dist/dashboard/view/EntryEdit.js +0 -222
- package/dist/dashboard/view/EntryTree.d.ts +0 -5
- package/dist/dashboard/view/EntryTree.js +0 -1463
- package/dist/dashboard/view/ErrorBoundary.d.ts +0 -6
- package/dist/dashboard/view/ErrorBoundary.js +0 -95
- package/dist/dashboard/view/IconButton.d.ts +0 -18
- package/dist/dashboard/view/IconButton.js +0 -51
- package/dist/dashboard/view/InputLabel.d.ts +0 -36
- package/dist/dashboard/view/InputLabel.js +0 -151
- package/dist/dashboard/view/MediaExplorer.d.ts +0 -7
- package/dist/dashboard/view/MediaExplorer.js +0 -121
- package/dist/dashboard/view/Modal.d.ts +0 -8
- package/dist/dashboard/view/Modal.js +0 -63
- package/dist/dashboard/view/PageHeader.d.ts +0 -5
- package/dist/dashboard/view/PageHeader.js +0 -26
- package/dist/dashboard/view/Preview.d.ts +0 -3
- package/dist/dashboard/view/Preview.js +0 -20
- package/dist/dashboard/view/RootOverview.d.ts +0 -5
- package/dist/dashboard/view/RootOverview.js +0 -46
- package/dist/dashboard/view/SearchBox.d.ts +0 -1
- package/dist/dashboard/view/SearchBox.js +0 -126
- package/dist/dashboard/view/Sidebar.d.ts +0 -21
- package/dist/dashboard/view/Sidebar.js +0 -312
- package/dist/dashboard/view/Toolbar.d.ts +0 -9
- package/dist/dashboard/view/Toolbar.js +0 -240
- package/dist/dashboard/view/Viewport.d.ts +0 -8
- package/dist/dashboard/view/Viewport.js +0 -69
- package/dist/dashboard/view/WorkspaceLabel.d.ts +0 -7
- package/dist/dashboard/view/WorkspaceLabel.js +0 -32
- package/dist/dashboard/view/diff/ChangeBox.d.ts +0 -14
- package/dist/dashboard/view/diff/ChangeBox.js +0 -36
- package/dist/dashboard/view/diff/DiffUtils.d.ts +0 -16
- package/dist/dashboard/view/diff/DiffUtils.js +0 -82
- package/dist/dashboard/view/diff/DiffUtils.test.d.ts +0 -1
- package/dist/dashboard/view/diff/EntryDiff.d.ts +0 -6
- package/dist/dashboard/view/diff/EntryDiff.js +0 -45
- package/dist/dashboard/view/diff/FieldDiff.d.ts +0 -10
- package/dist/dashboard/view/diff/FieldDiff.js +0 -51
- package/dist/dashboard/view/diff/FieldsDiff.d.ts +0 -7
- package/dist/dashboard/view/diff/FieldsDiff.js +0 -24
- package/dist/dashboard/view/diff/ListDiff.d.ts +0 -10
- package/dist/dashboard/view/diff/ListDiff.js +0 -32
- package/dist/dashboard/view/diff/RichTextDiff.d.ts +0 -11
- package/dist/dashboard/view/diff/RichTextDiff.js +0 -94
- package/dist/dashboard/view/diff/ScalarDiff.d.ts +0 -5
- package/dist/dashboard/view/diff/ScalarDiff.js +0 -1520
- package/dist/dashboard/view/entry/EditModeToggle.d.ts +0 -9
- package/dist/dashboard/view/entry/EditModeToggle.js +0 -51
- package/dist/dashboard/view/entry/EntryHeader.d.ts +0 -5
- package/dist/dashboard/view/entry/EntryHeader.js +0 -414
- package/dist/dashboard/view/entry/EntryHistory.d.ts +0 -2
- package/dist/dashboard/view/entry/EntryHistory.js +0 -78
- package/dist/dashboard/view/entry/EntryNotice.d.ts +0 -7
- package/dist/dashboard/view/entry/EntryNotice.js +0 -44
- package/dist/dashboard/view/entry/EntryPreview.d.ts +0 -10
- package/dist/dashboard/view/entry/EntryPreview.js +0 -44
- package/dist/dashboard/view/entry/EntrySummary.d.ts +0 -3
- package/dist/dashboard/view/entry/EntrySummary.js +0 -75
- package/dist/dashboard/view/entry/EntryTitle.d.ts +0 -7
- package/dist/dashboard/view/entry/EntryTitle.js +0 -64
- package/dist/dashboard/view/entry/FieldToolbar.d.ts +0 -11
- package/dist/dashboard/view/entry/FieldToolbar.js +0 -41
- package/dist/dashboard/view/entry/LangSwitch.d.ts +0 -7
- package/dist/dashboard/view/entry/LangSwitch.js +0 -110
- package/dist/dashboard/view/entry/NewEntry.d.ts +0 -4
- package/dist/dashboard/view/entry/NewEntry.js +0 -288
- package/dist/dashboard/view/entry/RootHeader.d.ts +0 -4
- package/dist/dashboard/view/entry/RootHeader.js +0 -61
- package/dist/dashboard/view/explorer/Explorer.d.ts +0 -24
- package/dist/dashboard/view/explorer/Explorer.js +0 -2230
- package/dist/dashboard/view/explorer/ExplorerItem.d.ts +0 -11
- package/dist/dashboard/view/explorer/ExplorerItem.js +0 -128
- package/dist/dashboard/view/explorer/ExplorerRow.d.ts +0 -15
- package/dist/dashboard/view/explorer/ExplorerRow.js +0 -73
- package/dist/dashboard/view/media/CardOverview.d.ts +0 -1
- package/dist/dashboard/view/media/CardOverview.js +0 -10
- package/dist/dashboard/view/media/FileEntry.d.ts +0 -6
- package/dist/dashboard/view/media/FileEntry.js +0 -223
- package/dist/dashboard/view/media/FileSummary.d.ts +0 -3
- package/dist/dashboard/view/media/FileSummary.js +0 -102
- package/dist/dashboard/view/media/FileUploadRow.d.ts +0 -2
- package/dist/dashboard/view/media/FileUploadRow.js +0 -53
- package/dist/dashboard/view/media/FileUploader.d.ts +0 -10
- package/dist/dashboard/view/media/FileUploader.js +0 -151
- package/dist/dashboard/view/media/MediaThumbnail.d.ts +0 -11
- package/dist/dashboard/view/media/MediaThumbnail.js +0 -55
- package/dist/dashboard/view/preview/BrowserPreview.d.ts +0 -12
- package/dist/dashboard/view/preview/BrowserPreview.js +0 -210
- package/dist/dashboard/view/sidebar/SidebarSettings.d.ts +0 -1
- package/dist/dashboard/view/sidebar/SidebarSettings.js +0 -192
- package/dist/field/check/CheckField.stories.d.ts +0 -5
- package/dist/field/code/CodeField.stories.d.ts +0 -5
- package/dist/field/date/DateField.stories.d.ts +0 -5
- package/dist/field/json/JsonField.stories.d.ts +0 -5
- package/dist/field/metadata/MetadataField.stories.d.ts +0 -5
- package/dist/field/number/NumberField.stories.d.ts +0 -5
- package/dist/field/object/ObjectField.stories.d.ts +0 -5
- package/dist/field/path/PathField.stories.d.ts +0 -5
- package/dist/field/richtext/RichText.stories.d.ts +0 -5
- package/dist/field/select/SelectField.stories.d.ts +0 -5
- package/dist/field/tabs/Tabs.stories.d.ts +0 -5
- package/dist/field/text/TextField.stories.d.ts +0 -5
- package/dist/field/time/TimeField.stories.d.ts +0 -5
- package/dist/picker/entry/EntryPicker.browser.d.ts +0 -7
- package/dist/picker/entry/EntryPicker.browser.js +0 -373
- package/dist/picker/entry/EntryPicker.stories.d.ts +0 -2
- package/dist/picker/entry/EntryPickerRow.d.ts +0 -5
- package/dist/picker/entry/EntryPickerRow.js +0 -24
- package/dist/picker/url/UrlPicker.browser.d.ts +0 -6
- package/dist/picker/url/UrlPicker.browser.js +0 -83
- package/dist/picker/url/UrlPicker.stories.d.ts +0 -5
- package/dist/picker/url/UrlPickerRow.d.ts +0 -5
- package/dist/picker/url/UrlPickerRow.js +0 -38
- package/dist/preview/ChunkCookieValue.test.d.ts +0 -1
- package/dist/preview/PreviewPayload.test.d.ts +0 -1
- package/dist/test/EntryFixture.d.ts +0 -30
- package/dist/test/EntryFixture.js +0 -91
- package/dist/test/broken-index.test.d.ts +0 -1
- package/dist/test/cms.d.ts +0 -17
- package/dist/test/cms.js +0 -38
- package/dist/test/drafts.test.d.ts +0 -1
- package/dist/test/example.d.ts +0 -137
- package/dist/test/example.js +0 -230
- package/dist/test/insert-order.test.d.ts +0 -1
- package/dist/test/links.test.d.ts +0 -1
- package/dist/test/locales.test.d.ts +0 -1
- package/dist/test/moves.test.d.ts +0 -1
- package/dist/test/mutate.test.d.ts +0 -1
- package/dist/test/query.test.d.ts +0 -1
- package/dist/test/renames.test.d.ts +0 -1
- package/dist/test/roles.test.d.ts +0 -1
- package/dist/test/schema/DemoHome.d.ts +0 -25
- package/dist/test/schema/DemoHome.js +0 -25
- package/dist/test/schema/DemoRecipe.d.ts +0 -14
- package/dist/test/schema/DemoRecipe.js +0 -22
- package/dist/test/schema/DemoRecipes.d.ts +0 -4
- package/dist/test/schema/DemoRecipes.js +0 -14
- package/dist/test/schema/index.d.ts +0 -3
- package/dist/test/schema/index.js +0 -4
- package/dist/test/seeding.test.d.ts +0 -1
- package/dist/test/shared.test.d.ts +0 -1
- package/dist/test/status.test.d.ts +0 -1
- package/dist/test/uploads.test.d.ts +0 -1
- package/dist/ui/AppBar.d.ts +0 -14
- package/dist/ui/AppBar.js +0 -68
- package/dist/ui/Avatar.d.ts +0 -6
- package/dist/ui/Avatar.js +0 -33
- package/dist/ui/Badge.d.ts +0 -9
- package/dist/ui/Badge.js +0 -44
- package/dist/ui/Button.d.ts +0 -9
- package/dist/ui/Button.js +0 -57
- package/dist/ui/Button.stories.d.ts +0 -6
- package/dist/ui/Chip.d.ts +0 -8
- package/dist/ui/Chip.js +0 -46
- package/dist/ui/DropdownMenu.d.ts +0 -12
- package/dist/ui/DropdownMenu.js +0 -415
- package/dist/ui/Ellipsis.d.ts +0 -2
- package/dist/ui/Ellipsis.js +0 -33
- package/dist/ui/ErrorMessage.d.ts +0 -4
- package/dist/ui/ErrorMessage.js +0 -17
- package/dist/ui/Icon.d.ts +0 -9
- package/dist/ui/Icon.js +0 -41
- package/dist/ui/Lift.d.ts +0 -3
- package/dist/ui/Lift.js +0 -22
- package/dist/ui/Loader.d.ts +0 -8
- package/dist/ui/Loader.js +0 -32
- package/dist/ui/Main.d.ts +0 -12
- package/dist/ui/Main.js +0 -56
- package/dist/ui/Pane.d.ts +0 -9
- package/dist/ui/Pane.js +0 -132
- package/dist/ui/PopoverMenu.d.ts +0 -12
- package/dist/ui/PopoverMenu.js +0 -418
- package/dist/ui/Property.d.ts +0 -1
- package/dist/ui/Property.js +0 -7
- package/dist/ui/Sink.d.ts +0 -9
- package/dist/ui/Sink.js +0 -49
- package/dist/ui/Statusbar.d.ts +0 -15
- package/dist/ui/Statusbar.js +0 -54
- package/dist/ui/Tabs.d.ts +0 -11
- package/dist/ui/Tabs.js +0 -293
- package/dist/ui/TextLabel.d.ts +0 -5
- package/dist/ui/TextLabel.js +0 -10
- package/dist/ui/Typo.d.ts +0 -35
- package/dist/ui/Typo.js +0 -28
- package/dist/ui/UIStory.d.ts +0 -8
- package/dist/ui/branding/FavIcon.d.ts +0 -5
- package/dist/ui/branding/FavIcon.js +0 -56
- package/dist/ui/branding/LogoShape.d.ts +0 -6
- package/dist/ui/branding/LogoShape.js +0 -52
- package/dist/ui/hook/UseAutoHide.d.ts +0 -8
- package/dist/ui/hook/UseAutoHide.js +0 -43
- package/dist/ui/hook/UseColorScheme.d.ts +0 -4
- package/dist/ui/hook/UseColorScheme.js +0 -13
- package/dist/ui/hook/UseContrastColor.d.ts +0 -1
- package/dist/ui/hook/UseContrastColor.js +0 -12
- package/dist/ui/hook/UseElementSize.d.ts +0 -6
- package/dist/ui/hook/UseElementSize.js +0 -52
- package/dist/ui/hook/UseForceUpdate.d.ts +0 -1
- package/dist/ui/hook/UseForceUpdate.js +0 -11
- package/dist/ui/hook/UseHash.d.ts +0 -1
- package/dist/ui/hook/UseHash.js +0 -24
- package/dist/ui/hook/UseInitialEffect.d.ts +0 -2
- package/dist/ui/hook/UseInitialEffect.js +0 -15
- package/dist/ui/hook/UseLocalStorage.d.ts +0 -1
- package/dist/ui/hook/UseLocalStorage.js +0 -36
- package/dist/ui/hook/UseNonInitialEffect.d.ts +0 -2
- package/dist/ui/hook/UseNonInitialEffect.js +0 -17
- package/dist/ui/hook/UseTrigger.d.ts +0 -7
- package/dist/ui/hook/UseTrigger.js +0 -29
- package/dist/ui/icons/IcAlignJustify.d.ts +0 -3
- package/dist/ui/icons/IcAlignJustify.js +0 -18
- package/dist/ui/icons/IcAlignLeft.d.ts +0 -2
- package/dist/ui/icons/IcAlignLeft.js +0 -16
- package/dist/ui/icons/IcAlignRight.d.ts +0 -2
- package/dist/ui/icons/IcAlignRight.js +0 -16
- package/dist/ui/icons/IcBaselineAccountCircle.d.ts +0 -2
- package/dist/ui/icons/IcBaselineAccountCircle.js +0 -26
- package/dist/ui/icons/IcBaselineContentCopy.d.ts +0 -2
- package/dist/ui/icons/IcBaselineContentCopy.js +0 -26
- package/dist/ui/icons/IcBaselineContentPasteGo.d.ts +0 -2
- package/dist/ui/icons/IcBaselineContentPasteGo.js +0 -35
- package/dist/ui/icons/IcBaselineDesktopMac.d.ts +0 -2
- package/dist/ui/icons/IcBaselineDesktopMac.js +0 -16
- package/dist/ui/icons/IcBaselineErrorOutline.d.ts +0 -2
- package/dist/ui/icons/IcBaselineErrorOutline.js +0 -26
- package/dist/ui/icons/IcBaselinePause.d.ts +0 -2
- package/dist/ui/icons/IcBaselinePause.js +0 -20
- package/dist/ui/icons/IcBaselinePhoneIphone.d.ts +0 -2
- package/dist/ui/icons/IcBaselinePhoneIphone.js +0 -16
- package/dist/ui/icons/IcBaselineWifiTethering.d.ts +0 -2
- package/dist/ui/icons/IcBaselineWifiTethering.js +0 -26
- package/dist/ui/icons/IcOutlineArchive.d.ts +0 -2
- package/dist/ui/icons/IcOutlineArchive.js +0 -26
- package/dist/ui/icons/IcOutlineArrowCircleRight.d.ts +0 -2
- package/dist/ui/icons/IcOutlineArrowCircleRight.js +0 -16
- package/dist/ui/icons/IcOutlineAvTimer.d.ts +0 -2
- package/dist/ui/icons/IcOutlineAvTimer.js +0 -26
- package/dist/ui/icons/IcOutlineCloudUpload.d.ts +0 -2
- package/dist/ui/icons/IcOutlineCloudUpload.js +0 -26
- package/dist/ui/icons/IcOutlineDarkMode.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDarkMode.js +0 -16
- package/dist/ui/icons/IcOutlineDescription.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDescription.js +0 -26
- package/dist/ui/icons/IcOutlineDrafts.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDrafts.js +0 -26
- package/dist/ui/icons/IcOutlineFolder.d.ts +0 -2
- package/dist/ui/icons/IcOutlineFolder.js +0 -26
- package/dist/ui/icons/IcOutlineInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcOutlineInsertDriveFile.js +0 -26
- package/dist/ui/icons/IcOutlineKeyboardTab.d.ts +0 -2
- package/dist/ui/icons/IcOutlineKeyboardTab.js +0 -26
- package/dist/ui/icons/IcOutlineLightMode.d.ts +0 -2
- package/dist/ui/icons/IcOutlineLightMode.js +0 -16
- package/dist/ui/icons/IcOutlineList.d.ts +0 -3
- package/dist/ui/icons/IcOutlineList.js +0 -18
- package/dist/ui/icons/IcOutlineLock.d.ts +0 -2
- package/dist/ui/icons/IcOutlineLock.js +0 -26
- package/dist/ui/icons/IcOutlineMoreHoriz.d.ts +0 -3
- package/dist/ui/icons/IcOutlineMoreHoriz.js +0 -18
- package/dist/ui/icons/IcOutlinePreview.d.ts +0 -2
- package/dist/ui/icons/IcOutlinePreview.js +0 -16
- package/dist/ui/icons/IcOutlineRemoveRedEye.d.ts +0 -2
- package/dist/ui/icons/IcOutlineRemoveRedEye.js +0 -26
- package/dist/ui/icons/IcOutlineScreenshot.d.ts +0 -2
- package/dist/ui/icons/IcOutlineScreenshot.js +0 -16
- package/dist/ui/icons/IcOutlineTableRows.d.ts +0 -2
- package/dist/ui/icons/IcOutlineTableRows.js +0 -26
- package/dist/ui/icons/IcRoundAdd.d.ts +0 -2
- package/dist/ui/icons/IcRoundAdd.js +0 -16
- package/dist/ui/icons/IcRoundAddCircle.d.ts +0 -3
- package/dist/ui/icons/IcRoundAddCircle.js +0 -18
- package/dist/ui/icons/IcRoundAddCircleOutline.d.ts +0 -2
- package/dist/ui/icons/IcRoundAddCircleOutline.js +0 -16
- package/dist/ui/icons/IcRoundArchive.d.ts +0 -2
- package/dist/ui/icons/IcRoundArchive.js +0 -16
- package/dist/ui/icons/IcRoundArrowBack.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowBack.js +0 -16
- package/dist/ui/icons/IcRoundArrowDownward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowDownward.js +0 -26
- package/dist/ui/icons/IcRoundArrowDropDown.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropDown.js +0 -18
- package/dist/ui/icons/IcRoundArrowDropDownCircle.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropDownCircle.js +0 -18
- package/dist/ui/icons/IcRoundArrowDropUp.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropUp.js +0 -18
- package/dist/ui/icons/IcRoundArrowForward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowForward.js +0 -16
- package/dist/ui/icons/IcRoundArrowUpward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowUpward.js +0 -26
- package/dist/ui/icons/IcRoundAttachFile.d.ts +0 -2
- package/dist/ui/icons/IcRoundAttachFile.js +0 -10
- package/dist/ui/icons/IcRoundCheck.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheck.js +0 -16
- package/dist/ui/icons/IcRoundCheckBox.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheckBox.js +0 -16
- package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.js +0 -16
- package/dist/ui/icons/IcRoundChevronRight.d.ts +0 -2
- package/dist/ui/icons/IcRoundChevronRight.js +0 -26
- package/dist/ui/icons/IcRoundDescription.d.ts +0 -2
- package/dist/ui/icons/IcRoundDescription.js +0 -26
- package/dist/ui/icons/IcRoundDragHandle.d.ts +0 -3
- package/dist/ui/icons/IcRoundDragHandle.js +0 -18
- package/dist/ui/icons/IcRoundExitToApp.d.ts +0 -2
- package/dist/ui/icons/IcRoundExitToApp.js +0 -26
- package/dist/ui/icons/IcRoundFeed.d.ts +0 -2
- package/dist/ui/icons/IcRoundFeed.js +0 -16
- package/dist/ui/icons/IcRoundFormatBold.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatBold.js +0 -18
- package/dist/ui/icons/IcRoundFormatClear.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatClear.js +0 -18
- package/dist/ui/icons/IcRoundFormatItalic.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatItalic.js +0 -18
- package/dist/ui/icons/IcRoundFormatListBulleted.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatListBulleted.js +0 -18
- package/dist/ui/icons/IcRoundFormatPaint.d.ts +0 -2
- package/dist/ui/icons/IcRoundFormatPaint.js +0 -10
- package/dist/ui/icons/IcRoundHamburger.d.ts +0 -3
- package/dist/ui/icons/IcRoundHamburger.js +0 -18
- package/dist/ui/icons/IcRoundHdrStrong.d.ts +0 -3
- package/dist/ui/icons/IcRoundHdrStrong.js +0 -18
- package/dist/ui/icons/IcRoundHorizontalRule.d.ts +0 -3
- package/dist/ui/icons/IcRoundHorizontalRule.js +0 -19
- package/dist/ui/icons/IcRoundInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcRoundInsertDriveFile.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowDown.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowDown.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowLeft.d.ts +0 -3
- package/dist/ui/icons/IcRoundKeyboardArrowLeft.js +0 -18
- package/dist/ui/icons/IcRoundKeyboardArrowRight.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowRight.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowUp.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowUp.js +0 -16
- package/dist/ui/icons/IcRoundLanguage.d.ts +0 -2
- package/dist/ui/icons/IcRoundLanguage.js +0 -16
- package/dist/ui/icons/IcRoundLastPage.d.ts +0 -2
- package/dist/ui/icons/IcRoundLastPage.js +0 -26
- package/dist/ui/icons/IcRoundLock.d.ts +0 -3
- package/dist/ui/icons/IcRoundLock.js +0 -18
- package/dist/ui/icons/IcRoundMenu.d.ts +0 -2
- package/dist/ui/icons/IcRoundMenu.js +0 -16
- package/dist/ui/icons/IcRoundMoreHoriz.d.ts +0 -2
- package/dist/ui/icons/IcRoundMoreHoriz.js +0 -16
- package/dist/ui/icons/IcRoundMoreVert.d.ts +0 -2
- package/dist/ui/icons/IcRoundMoreVert.js +0 -26
- package/dist/ui/icons/IcRoundNorthEast.d.ts +0 -2
- package/dist/ui/icons/IcRoundNorthEast.js +0 -16
- package/dist/ui/icons/IcRoundNotes.d.ts +0 -2
- package/dist/ui/icons/IcRoundNotes.js +0 -16
- package/dist/ui/icons/IcRoundNumbers.d.ts +0 -2
- package/dist/ui/icons/IcRoundNumbers.js +0 -16
- package/dist/ui/icons/IcRoundPermMedia.d.ts +0 -2
- package/dist/ui/icons/IcRoundPermMedia.js +0 -25
- package/dist/ui/icons/IcRoundPublish.d.ts +0 -2
- package/dist/ui/icons/IcRoundPublish.js +0 -16
- package/dist/ui/icons/IcRoundPublishedWithChanges.d.ts +0 -2
- package/dist/ui/icons/IcRoundPublishedWithChanges.js +0 -26
- package/dist/ui/icons/IcRoundQuote.d.ts +0 -2
- package/dist/ui/icons/IcRoundQuote.js +0 -16
- package/dist/ui/icons/IcRoundRedo.d.ts +0 -3
- package/dist/ui/icons/IcRoundRedo.js +0 -18
- package/dist/ui/icons/IcRoundRemoveCircleOutline.d.ts +0 -2
- package/dist/ui/icons/IcRoundRemoveCircleOutline.js +0 -16
- package/dist/ui/icons/IcRoundRotateLeft.d.ts +0 -2
- package/dist/ui/icons/IcRoundRotateLeft.js +0 -16
- package/dist/ui/icons/IcRoundSend.d.ts +0 -2
- package/dist/ui/icons/IcRoundSend.js +0 -26
- package/dist/ui/icons/IcRoundSouthWest.d.ts +0 -2
- package/dist/ui/icons/IcRoundSouthWest.js +0 -16
- package/dist/ui/icons/IcRoundSubscript.d.ts +0 -2
- package/dist/ui/icons/IcRoundSubscript.js +0 -26
- package/dist/ui/icons/IcRoundSuperscript.d.ts +0 -2
- package/dist/ui/icons/IcRoundSuperscript.js +0 -26
- package/dist/ui/icons/IcRoundTabletMac.d.ts +0 -2
- package/dist/ui/icons/IcRoundTabletMac.js +0 -16
- package/dist/ui/icons/IcRoundTextFields.d.ts +0 -2
- package/dist/ui/icons/IcRoundTextFields.js +0 -16
- package/dist/ui/icons/IcRoundTranslate.d.ts +0 -2
- package/dist/ui/icons/IcRoundTranslate.js +0 -26
- package/dist/ui/icons/IcRoundUndo.d.ts +0 -3
- package/dist/ui/icons/IcRoundUndo.js +0 -18
- package/dist/ui/icons/IcRoundUnfoldLess.d.ts +0 -2
- package/dist/ui/icons/IcRoundUnfoldLess.js +0 -26
- package/dist/ui/icons/IcRoundUnfoldMore.d.ts +0 -2
- package/dist/ui/icons/IcRoundUnfoldMore.js +0 -16
- package/dist/ui/icons/IcRoundUploadFile.d.ts +0 -3
- package/dist/ui/icons/IcRoundUploadFile.js +0 -18
- package/dist/ui/icons/IcRoundVisibilityOff.d.ts +0 -2
- package/dist/ui/icons/IcRoundVisibilityOff.js +0 -16
- package/dist/ui/icons/IcRoundWarning.d.ts +0 -2
- package/dist/ui/icons/IcRoundWarning.js +0 -16
- package/dist/ui/icons/IcSharpBrightnessMedium.d.ts +0 -2
- package/dist/ui/icons/IcSharpBrightnessMedium.js +0 -16
- package/dist/ui/icons/IcSharpVerticalAlignCenter.d.ts +0 -2
- package/dist/ui/icons/IcSharpVerticalAlignCenter.js +0 -16
- package/dist/ui/icons/IcTwotoneDescription.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneDescription.js +0 -37
- package/dist/ui/icons/IcTwotoneFolder.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneFolder.js +0 -37
- package/dist/ui/icons/IcTwotoneInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneInsertDriveFile.js +0 -30
- package/dist/ui/icons/MdiGithub.d.ts +0 -3
- package/dist/ui/icons/MdiGithub.js +0 -18
- package/dist/ui/icons/MdiSourceBranch.d.ts +0 -2
- package/dist/ui/icons/MdiSourceBranch.js +0 -16
- package/dist/ui/icons/MdiTwitterCircle.d.ts +0 -2
- package/dist/ui/icons/MdiTwitterCircle.js +0 -26
- package/dist/ui/icons/MiLayers.d.ts +0 -3
- package/dist/ui/icons/MiLayers.js +0 -16
- package/dist/ui/icons/PhGlobe.d.ts +0 -2
- package/dist/ui/icons/PhGlobe.js +0 -26
- package/dist/ui/icons/RiFlashlightFill.d.ts +0 -2
- package/dist/ui/icons/RiFlashlightFill.js +0 -10
- package/dist/ui/icons/TableDelete.d.ts +0 -2
- package/dist/ui/icons/TableDelete.js +0 -25
- package/dist/ui/icons/TableDeleteColumn.d.ts +0 -2
- package/dist/ui/icons/TableDeleteColumn.js +0 -16
- package/dist/ui/icons/TableDeleteRow.d.ts +0 -2
- package/dist/ui/icons/TableDeleteRow.js +0 -16
- package/dist/ui/icons/TableHeaderCell.d.ts +0 -2
- package/dist/ui/icons/TableHeaderCell.js +0 -16
- package/dist/ui/icons/TableHeaderColumn.d.ts +0 -2
- package/dist/ui/icons/TableHeaderColumn.js +0 -16
- package/dist/ui/icons/TableHeaderRow.d.ts +0 -2
- package/dist/ui/icons/TableHeaderRow.js +0 -16
- package/dist/ui/icons/TableInsertColumnAfter.d.ts +0 -2
- package/dist/ui/icons/TableInsertColumnAfter.js +0 -16
- package/dist/ui/icons/TableInsertColumnBefore.d.ts +0 -2
- package/dist/ui/icons/TableInsertColumnBefore.js +0 -16
- package/dist/ui/icons/TableInsertRowAfter.d.ts +0 -2
- package/dist/ui/icons/TableInsertRowAfter.js +0 -16
- package/dist/ui/icons/TableInsertRowBefore.d.ts +0 -2
- package/dist/ui/icons/TableInsertRowBefore.js +0 -16
- package/dist/ui/icons/TableMergeCells.d.ts +0 -2
- package/dist/ui/icons/TableMergeCells.js +0 -16
- package/dist/ui/icons/TableSplitCell.d.ts +0 -2
- package/dist/ui/icons/TableSplitCell.js +0 -16
- package/dist/ui/util/ContrastColor.d.ts +0 -1
- package/dist/ui/util/ContrastColor.js +0 -17
- package/dist/ui/util/CreateTypo.d.ts +0 -62
- package/dist/ui/util/CreateTypo.js +0 -119
- package/dist/ui/util/Elevation.d.ts +0 -12
- package/dist/ui/util/Elevation.js +0 -20
- package/dist/ui/util/PropsWithAs.d.ts +0 -12
- package/dist/ui/util/PropsWithAs.js +0 -10
- package/dist/ui/util/Slots.d.ts +0 -11
- package/dist/ui/util/Slots.js +0 -50
- package/dist/ui/util/TextareaAutosize.d.ts +0 -2
- package/dist/ui/util/TextareaAutosize.js +0 -40
- package/dist/ui/util/Units.d.ts +0 -1
- package/dist/ui/util/Units.js +0 -7
- package/dist/ui/util/UseId.d.ts +0 -1
- package/dist/ui/util/UseId.js +0 -11
- package/dist/yjs.d.ts +0 -1
- package/dist/yjs.js +0 -206
- /package/dist/{core/Shape.js → chunks/chunk-NUFRM6SI.js} +0 -0
- /package/dist/{backend/Handler.test.d.ts → dashboard/app/EntrySidebarPreview.spec.d.ts} +0 -0
- /package/dist/{backend/router/Router.test.d.ts → dashboard/app/WorkspaceMenu.spec.d.ts} +0 -0
- /package/dist/{cli/Init.test.d.ts → field/link/LinkField.spec.d.ts} +0 -0
- /package/dist/{cli/util/CommitMessage.test.d.ts → field/list/ListField.spec.d.ts} +0 -0
- /package/dist/{core/Config.test.d.ts → field/richtext/RichTextField.spec.d.ts} +0 -0
package/dist/ui/Pane.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dist_default
|
|
3
|
-
} from "../chunks/chunk-A5O3N2GS.js";
|
|
4
|
-
import "../chunks/chunk-NZLE2WMY.js";
|
|
5
|
-
|
|
6
|
-
// src/ui/Pane.tsx
|
|
7
|
-
import {
|
|
8
|
-
useRef
|
|
9
|
-
} from "react";
|
|
10
|
-
|
|
11
|
-
// src/ui/Pane.module.scss
|
|
12
|
-
var Pane_module_default = {
|
|
13
|
-
"root": "alinea-Pane",
|
|
14
|
-
"root-inner": "alinea-Pane-inner",
|
|
15
|
-
"rootInner": "alinea-Pane-inner",
|
|
16
|
-
"divider": "alinea-Pane-divider",
|
|
17
|
-
"divider-handle": "alinea-Pane-divider-handle",
|
|
18
|
-
"dividerHandle": "alinea-Pane-divider-handle",
|
|
19
|
-
"divider-handle-line": "alinea-Pane-divider-handle-line",
|
|
20
|
-
"dividerHandleLine": "alinea-Pane-divider-handle-line",
|
|
21
|
-
"is-left": "alinea-Pane-is-left",
|
|
22
|
-
"isLeft": "alinea-Pane-is-left",
|
|
23
|
-
"is-right": "alinea-Pane-is-right",
|
|
24
|
-
"isRight": "alinea-Pane-is-right"
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// src/ui/Pane.tsx
|
|
28
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
-
var styles = dist_default(Pane_module_default);
|
|
30
|
-
function Divider({
|
|
31
|
-
position,
|
|
32
|
-
direction,
|
|
33
|
-
container,
|
|
34
|
-
defaultWidth,
|
|
35
|
-
minWidth,
|
|
36
|
-
maxWidth,
|
|
37
|
-
width,
|
|
38
|
-
setWidth
|
|
39
|
-
}) {
|
|
40
|
-
function ignoreIframes() {
|
|
41
|
-
const iframes = document.querySelectorAll("iframe");
|
|
42
|
-
for (const iframe of iframes) iframe.style.pointerEvents = "none";
|
|
43
|
-
return () => {
|
|
44
|
-
for (const iframe of iframes) iframe.style.pointerEvents = "";
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
const draggingClassName = "is-dragging";
|
|
48
|
-
function handleMouseDown(mouseDownEvent) {
|
|
49
|
-
container.current?.classList.add(draggingClassName);
|
|
50
|
-
let prevX = mouseDownEvent.clientX;
|
|
51
|
-
const restoreIframes = ignoreIframes();
|
|
52
|
-
function move(moveEvent) {
|
|
53
|
-
moveEvent.preventDefault();
|
|
54
|
-
if (!container?.current) return;
|
|
55
|
-
let newWidth = width + (moveEvent.clientX - prevX) * direction;
|
|
56
|
-
if (newWidth < minWidth) newWidth = minWidth;
|
|
57
|
-
else if (newWidth > maxWidth) newWidth = maxWidth;
|
|
58
|
-
else prevX = moveEvent.clientX;
|
|
59
|
-
width = newWidth;
|
|
60
|
-
container.current.style.width = `${newWidth}px`;
|
|
61
|
-
setWidth(newWidth);
|
|
62
|
-
}
|
|
63
|
-
window.addEventListener("mousemove", move);
|
|
64
|
-
window.addEventListener(
|
|
65
|
-
"mouseup",
|
|
66
|
-
() => {
|
|
67
|
-
container.current?.classList.remove(draggingClassName);
|
|
68
|
-
window.removeEventListener("mousemove", move);
|
|
69
|
-
restoreIframes();
|
|
70
|
-
},
|
|
71
|
-
{ once: true }
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
return /* @__PURE__ */ jsx(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
className: styles.divider(position),
|
|
78
|
-
onDoubleClick: (e) => {
|
|
79
|
-
e.preventDefault();
|
|
80
|
-
width = defaultWidth;
|
|
81
|
-
setWidth(defaultWidth);
|
|
82
|
-
container.current.style.width = `${defaultWidth}px`;
|
|
83
|
-
},
|
|
84
|
-
children: /* @__PURE__ */ jsx("div", { className: styles.divider.handle(), onMouseDown: handleMouseDown, children: /* @__PURE__ */ jsx("div", { className: styles.divider.handle.line() }) })
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
function Pane({
|
|
89
|
-
id,
|
|
90
|
-
children,
|
|
91
|
-
resizable,
|
|
92
|
-
defaultWidth = 320,
|
|
93
|
-
minWidth = 320,
|
|
94
|
-
maxWidth = 1200,
|
|
95
|
-
...props
|
|
96
|
-
}) {
|
|
97
|
-
const container = useRef(null);
|
|
98
|
-
const persistenceId = `@alinea/ui/pane-${id}`;
|
|
99
|
-
const width = Number(window?.localStorage?.getItem(persistenceId)) || defaultWidth;
|
|
100
|
-
const divider = /* @__PURE__ */ jsx(
|
|
101
|
-
Divider,
|
|
102
|
-
{
|
|
103
|
-
position: resizable,
|
|
104
|
-
container,
|
|
105
|
-
minWidth,
|
|
106
|
-
maxWidth,
|
|
107
|
-
defaultWidth,
|
|
108
|
-
direction: resizable === "left" ? -1 : 1,
|
|
109
|
-
width: Math.max(width, minWidth),
|
|
110
|
-
setWidth: (width2) => {
|
|
111
|
-
window?.localStorage?.setItem(persistenceId, String(width2));
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
return /* @__PURE__ */ jsxs(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
...props,
|
|
119
|
-
className: styles.root.mergeProps(props)(),
|
|
120
|
-
ref: container,
|
|
121
|
-
style: { width, minWidth },
|
|
122
|
-
children: [
|
|
123
|
-
resizable === "left" && divider,
|
|
124
|
-
/* @__PURE__ */ jsx("div", { className: styles.root.inner(), children }),
|
|
125
|
-
resizable === "right" && divider
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
export {
|
|
131
|
-
Pane
|
|
132
|
-
};
|
package/dist/ui/PopoverMenu.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type PopoverButtonProps } from '@headlessui/react';
|
|
2
|
-
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
3
|
-
export declare namespace PopoverMenu {
|
|
4
|
-
function Root(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
function Trigger(props: PopoverButtonProps<'button'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
function Items({ left, right, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
left?: boolean;
|
|
8
|
-
right?: boolean;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
function Header({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
function Footer({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
}
|
package/dist/ui/PopoverMenu.js
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Me,
|
|
3
|
-
R,
|
|
4
|
-
R2,
|
|
5
|
-
Re,
|
|
6
|
-
be,
|
|
7
|
-
c,
|
|
8
|
-
d,
|
|
9
|
-
f as f2,
|
|
10
|
-
i,
|
|
11
|
-
m,
|
|
12
|
-
n as n2,
|
|
13
|
-
re,
|
|
14
|
-
s as s3,
|
|
15
|
-
s2 as s4,
|
|
16
|
-
te,
|
|
17
|
-
u as u3,
|
|
18
|
-
x2 as x,
|
|
19
|
-
xe,
|
|
20
|
-
ye
|
|
21
|
-
} from "../chunks/chunk-WLKPH7JA.js";
|
|
22
|
-
import {
|
|
23
|
-
A,
|
|
24
|
-
F,
|
|
25
|
-
P,
|
|
26
|
-
T as T2,
|
|
27
|
-
b,
|
|
28
|
-
h
|
|
29
|
-
} from "../chunks/chunk-HSIHEWFC.js";
|
|
30
|
-
import {
|
|
31
|
-
f,
|
|
32
|
-
s as s2
|
|
33
|
-
} from "../chunks/chunk-AICQFCVN.js";
|
|
34
|
-
import {
|
|
35
|
-
r as r2
|
|
36
|
-
} from "../chunks/chunk-2NTSADJL.js";
|
|
37
|
-
import {
|
|
38
|
-
$6179b936705e76d3$export$ae780daf29e6d456,
|
|
39
|
-
$f7dceffc5ad7768b$export$4e328f61c538687f,
|
|
40
|
-
K,
|
|
41
|
-
L,
|
|
42
|
-
O,
|
|
43
|
-
T,
|
|
44
|
-
_,
|
|
45
|
-
e,
|
|
46
|
-
n,
|
|
47
|
-
o2 as o,
|
|
48
|
-
o3 as o2,
|
|
49
|
-
r,
|
|
50
|
-
s2 as s,
|
|
51
|
-
u,
|
|
52
|
-
u2,
|
|
53
|
-
w,
|
|
54
|
-
y
|
|
55
|
-
} from "../chunks/chunk-VUACWPFC.js";
|
|
56
|
-
import {
|
|
57
|
-
dist_default
|
|
58
|
-
} from "../chunks/chunk-A5O3N2GS.js";
|
|
59
|
-
import "../chunks/chunk-NZLE2WMY.js";
|
|
60
|
-
|
|
61
|
-
// node_modules/@headlessui/react/dist/internal/close-provider.js
|
|
62
|
-
import r3, { createContext as n3, useContext as i2 } from "react";
|
|
63
|
-
var e2 = n3(() => {
|
|
64
|
-
});
|
|
65
|
-
function C({ value: t, children: o4 }) {
|
|
66
|
-
return r3.createElement(e2.Provider, { value: t }, o4);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// node_modules/@headlessui/react/dist/hooks/use-event-listener.js
|
|
70
|
-
import { useEffect as d2 } from "react";
|
|
71
|
-
function E(n4, e3, a3, t) {
|
|
72
|
-
let i3 = s(a3);
|
|
73
|
-
d2(() => {
|
|
74
|
-
n4 = n4 != null ? n4 : window;
|
|
75
|
-
function r4(o4) {
|
|
76
|
-
i3.current(o4);
|
|
77
|
-
}
|
|
78
|
-
return n4.addEventListener(e3, r4, t), () => n4.removeEventListener(e3, r4, t);
|
|
79
|
-
}, [n4, e3, t]);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// node_modules/@headlessui/react/dist/hooks/use-root-containers.js
|
|
83
|
-
import f3, { createContext as M, useContext as d3, useState as H } from "react";
|
|
84
|
-
function R3({ defaultContainers: l = [], portals: n4, mainTreeNode: o4 } = {}) {
|
|
85
|
-
let r4 = n2(o4), u5 = o(() => {
|
|
86
|
-
var i3, c2;
|
|
87
|
-
let t = [];
|
|
88
|
-
for (let e3 of l) e3 !== null && (e3 instanceof HTMLElement ? t.push(e3) : "current" in e3 && e3.current instanceof HTMLElement && t.push(e3.current));
|
|
89
|
-
if (n4 != null && n4.current) for (let e3 of n4.current) t.push(e3);
|
|
90
|
-
for (let e3 of (i3 = r4 == null ? void 0 : r4.querySelectorAll("html > *, body > *")) != null ? i3 : []) e3 !== document.body && e3 !== document.head && e3 instanceof HTMLElement && e3.id !== "headlessui-portal-root" && (o4 && (e3.contains(o4) || e3.contains((c2 = o4 == null ? void 0 : o4.getRootNode()) == null ? void 0 : c2.host)) || t.some((m2) => e3.contains(m2)) || t.push(e3));
|
|
91
|
-
return t;
|
|
92
|
-
});
|
|
93
|
-
return { resolveContainers: u5, contains: o((t) => u5().some((i3) => i3.contains(t))) };
|
|
94
|
-
}
|
|
95
|
-
var a = M(null);
|
|
96
|
-
function O2({ children: l, node: n4 }) {
|
|
97
|
-
let [o4, r4] = H(null), u5 = b2(n4 != null ? n4 : o4);
|
|
98
|
-
return f3.createElement(a.Provider, { value: u5 }, l, u5 === null && f3.createElement(f, { features: s2.Hidden, ref: (t) => {
|
|
99
|
-
var i3, c2;
|
|
100
|
-
if (t) {
|
|
101
|
-
for (let e3 of (c2 = (i3 = u(t)) == null ? void 0 : i3.querySelectorAll("html > *, body > *")) != null ? c2 : []) if (e3 !== document.body && e3 !== document.head && e3 instanceof HTMLElement && e3 != null && e3.contains(t)) {
|
|
102
|
-
r4(e3);
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
} }));
|
|
107
|
-
}
|
|
108
|
-
function b2(l = null) {
|
|
109
|
-
var n4;
|
|
110
|
-
return (n4 = d3(a)) != null ? n4 : l;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// node_modules/@headlessui/react/dist/hooks/use-tab-direction.js
|
|
114
|
-
import { useRef as o3 } from "react";
|
|
115
|
-
var a2 = ((r4) => (r4[r4.Forwards = 0] = "Forwards", r4[r4.Backwards = 1] = "Backwards", r4))(a2 || {});
|
|
116
|
-
function u4() {
|
|
117
|
-
let e3 = o3(0);
|
|
118
|
-
return s3(true, "keydown", (r4) => {
|
|
119
|
-
r4.key === "Tab" && (e3.current = r4.shiftKey ? 1 : 0);
|
|
120
|
-
}, true), e3;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// node_modules/@headlessui/react/dist/components/popover/popover.js
|
|
124
|
-
import y2, { createContext as oe, createRef as Pe, useContext as re2, useEffect as ne, useMemo as D, useReducer as De, useRef as ee, useState as le } from "react";
|
|
125
|
-
var lt = ((f4) => (f4[f4.Open = 0] = "Open", f4[f4.Closed = 1] = "Closed", f4))(lt || {});
|
|
126
|
-
var at = ((p) => (p[p.TogglePopover = 0] = "TogglePopover", p[p.ClosePopover = 1] = "ClosePopover", p[p.SetButton = 2] = "SetButton", p[p.SetButtonId = 3] = "SetButtonId", p[p.SetPanel = 4] = "SetPanel", p[p.SetPanelId = 5] = "SetPanelId", p))(at || {});
|
|
127
|
-
var pt = { [0]: (o4) => ({ ...o4, popoverState: u2(o4.popoverState, { [0]: 1, [1]: 0 }), __demoMode: false }), [1](o4) {
|
|
128
|
-
return o4.popoverState === 1 ? o4 : { ...o4, popoverState: 1, __demoMode: false };
|
|
129
|
-
}, [2](o4, a3) {
|
|
130
|
-
return o4.button === a3.button ? o4 : { ...o4, button: a3.button };
|
|
131
|
-
}, [3](o4, a3) {
|
|
132
|
-
return o4.buttonId === a3.buttonId ? o4 : { ...o4, buttonId: a3.buttonId };
|
|
133
|
-
}, [4](o4, a3) {
|
|
134
|
-
return o4.panel === a3.panel ? o4 : { ...o4, panel: a3.panel };
|
|
135
|
-
}, [5](o4, a3) {
|
|
136
|
-
return o4.panelId === a3.panelId ? o4 : { ...o4, panelId: a3.panelId };
|
|
137
|
-
} };
|
|
138
|
-
var Ee = oe(null);
|
|
139
|
-
Ee.displayName = "PopoverContext";
|
|
140
|
-
function se(o4) {
|
|
141
|
-
let a3 = re2(Ee);
|
|
142
|
-
if (a3 === null) {
|
|
143
|
-
let f4 = new Error(`<${o4} /> is missing a parent <Popover /> component.`);
|
|
144
|
-
throw Error.captureStackTrace && Error.captureStackTrace(f4, se), f4;
|
|
145
|
-
}
|
|
146
|
-
return a3;
|
|
147
|
-
}
|
|
148
|
-
var ue = oe(null);
|
|
149
|
-
ue.displayName = "PopoverAPIContext";
|
|
150
|
-
function be2(o4) {
|
|
151
|
-
let a3 = re2(ue);
|
|
152
|
-
if (a3 === null) {
|
|
153
|
-
let f4 = new Error(`<${o4} /> is missing a parent <Popover /> component.`);
|
|
154
|
-
throw Error.captureStackTrace && Error.captureStackTrace(f4, be2), f4;
|
|
155
|
-
}
|
|
156
|
-
return a3;
|
|
157
|
-
}
|
|
158
|
-
var ge = oe(null);
|
|
159
|
-
ge.displayName = "PopoverGroupContext";
|
|
160
|
-
function Me2() {
|
|
161
|
-
return re2(ge);
|
|
162
|
-
}
|
|
163
|
-
var ie = oe(null);
|
|
164
|
-
ie.displayName = "PopoverPanelContext";
|
|
165
|
-
function st() {
|
|
166
|
-
return re2(ie);
|
|
167
|
-
}
|
|
168
|
-
function ut(o4, a3) {
|
|
169
|
-
return u2(a3.type, pt, o4, a3);
|
|
170
|
-
}
|
|
171
|
-
var it = "div";
|
|
172
|
-
function dt(o4, a3) {
|
|
173
|
-
var J;
|
|
174
|
-
let { __demoMode: f4 = false, ...C2 } = o4, T3 = ee(null), S = y(a3, T((t) => {
|
|
175
|
-
T3.current = t;
|
|
176
|
-
})), p = ee([]), l = De(ut, { __demoMode: f4, popoverState: f4 ? 0 : 1, buttons: p, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: Pe(), afterPanelSentinel: Pe(), afterButtonSentinel: Pe() }), [{ popoverState: c2, button: d4, buttonId: r4, panel: s5, panelId: R4, beforePanelSentinel: m2, afterPanelSentinel: h2, afterButtonSentinel: P2 }, n4] = l, v = n2((J = T3.current) != null ? J : d4), g = D(() => {
|
|
177
|
-
if (!d4 || !s5) return false;
|
|
178
|
-
for (let E2 of document.querySelectorAll("body > *")) if (Number(E2 == null ? void 0 : E2.contains(d4)) ^ Number(E2 == null ? void 0 : E2.contains(s5))) return true;
|
|
179
|
-
let t = b(), e3 = t.indexOf(d4), u5 = (e3 + t.length - 1) % t.length, i3 = (e3 + 1) % t.length, A2 = t[u5], x2 = t[i3];
|
|
180
|
-
return !s5.contains(A2) && !s5.contains(x2);
|
|
181
|
-
}, [d4, s5]), _2 = s(r4), L2 = s(R4), I = D(() => ({ buttonId: _2, panelId: L2, close: () => n4({ type: 1 }) }), [_2, L2, n4]), M2 = Me2(), k = M2 == null ? void 0 : M2.registerPopover, B = o(() => {
|
|
182
|
-
var t;
|
|
183
|
-
return (t = M2 == null ? void 0 : M2.isFocusWithinPopoverGroup()) != null ? t : (v == null ? void 0 : v.activeElement) && ((d4 == null ? void 0 : d4.contains(v.activeElement)) || (s5 == null ? void 0 : s5.contains(v.activeElement)));
|
|
184
|
-
});
|
|
185
|
-
ne(() => k == null ? void 0 : k(I), [k, I]);
|
|
186
|
-
let [U, O3] = te(), N = b2(d4), w2 = R3({ mainTreeNode: N, portals: U, defaultContainers: [d4, s5] });
|
|
187
|
-
E(v == null ? void 0 : v.defaultView, "focus", (t) => {
|
|
188
|
-
var e3, u5, i3, A2, x2, E2;
|
|
189
|
-
t.target !== window && t.target instanceof HTMLElement && c2 === 0 && (B() || d4 && s5 && (w2.contains(t.target) || (u5 = (e3 = m2.current) == null ? void 0 : e3.contains) != null && u5.call(e3, t.target) || (A2 = (i3 = h2.current) == null ? void 0 : i3.contains) != null && A2.call(i3, t.target) || (E2 = (x2 = P2.current) == null ? void 0 : x2.contains) != null && E2.call(x2, t.target) || n4({ type: 1 })));
|
|
190
|
-
}, true), R(c2 === 0, w2.resolveContainers, (t, e3) => {
|
|
191
|
-
n4({ type: 1 }), A(e3, h.Loose) || (t.preventDefault(), d4 == null || d4.focus());
|
|
192
|
-
});
|
|
193
|
-
let F2 = o((t) => {
|
|
194
|
-
n4({ type: 1 });
|
|
195
|
-
let e3 = (() => t ? t instanceof HTMLElement ? t : "current" in t && t.current instanceof HTMLElement ? t.current : d4 : d4)();
|
|
196
|
-
e3 == null || e3.focus();
|
|
197
|
-
}), Q = D(() => ({ close: F2, isPortalled: g }), [F2, g]), K2 = D(() => ({ open: c2 === 0, close: F2 }), [c2, F2]), Z = { ref: S }, $ = L();
|
|
198
|
-
return y2.createElement(O2, { node: N }, y2.createElement(Me, null, y2.createElement(ie.Provider, { value: null }, y2.createElement(Ee.Provider, { value: l }, y2.createElement(ue.Provider, { value: Q }, y2.createElement(C, { value: F2 }, y2.createElement(c, { value: u2(c2, { [0]: i.Open, [1]: i.Closed }) }, y2.createElement(O3, null, $({ ourProps: Z, theirProps: C2, slot: K2, defaultTag: it, name: "Popover" })))))))));
|
|
199
|
-
}
|
|
200
|
-
var Pt = "button";
|
|
201
|
-
function ft(o4, a3) {
|
|
202
|
-
let f4 = r(), { id: C2 = `headlessui-popover-button-${f4}`, disabled: T3 = false, autoFocus: S = false, ...p } = o4, [l, c2] = se("Popover.Button"), { isPortalled: d4 } = be2("Popover.Button"), r4 = ee(null), s5 = `headlessui-focus-sentinel-${r()}`, R4 = Me2(), m2 = R4 == null ? void 0 : R4.closeOthers, P2 = st() !== null;
|
|
203
|
-
ne(() => {
|
|
204
|
-
if (!P2) return c2({ type: 3, buttonId: C2 }), () => {
|
|
205
|
-
c2({ type: 3, buttonId: null });
|
|
206
|
-
};
|
|
207
|
-
}, [P2, C2, c2]);
|
|
208
|
-
let [n4] = le(() => Symbol()), v = y(r4, a3, ye(), o((e3) => {
|
|
209
|
-
if (!P2) {
|
|
210
|
-
if (e3) l.buttons.current.push(n4);
|
|
211
|
-
else {
|
|
212
|
-
let u5 = l.buttons.current.indexOf(n4);
|
|
213
|
-
u5 !== -1 && l.buttons.current.splice(u5, 1);
|
|
214
|
-
}
|
|
215
|
-
l.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), e3 && c2({ type: 2, button: e3 });
|
|
216
|
-
}
|
|
217
|
-
})), g = y(r4, a3), _2 = n2(r4), L2 = o((e3) => {
|
|
218
|
-
var u5, i3, A2;
|
|
219
|
-
if (P2) {
|
|
220
|
-
if (l.popoverState === 1) return;
|
|
221
|
-
switch (e3.key) {
|
|
222
|
-
case o2.Space:
|
|
223
|
-
case o2.Enter:
|
|
224
|
-
e3.preventDefault(), (i3 = (u5 = e3.target).click) == null || i3.call(u5), c2({ type: 1 }), (A2 = l.button) == null || A2.focus();
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
} else switch (e3.key) {
|
|
228
|
-
case o2.Space:
|
|
229
|
-
case o2.Enter:
|
|
230
|
-
e3.preventDefault(), e3.stopPropagation(), l.popoverState === 1 && (m2 == null || m2(l.buttonId)), c2({ type: 0 });
|
|
231
|
-
break;
|
|
232
|
-
case o2.Escape:
|
|
233
|
-
if (l.popoverState !== 0) return m2 == null ? void 0 : m2(l.buttonId);
|
|
234
|
-
if (!r4.current || _2 != null && _2.activeElement && !r4.current.contains(_2.activeElement)) return;
|
|
235
|
-
e3.preventDefault(), e3.stopPropagation(), c2({ type: 1 });
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
}), I = o((e3) => {
|
|
239
|
-
P2 || e3.key === o2.Space && e3.preventDefault();
|
|
240
|
-
}), M2 = o((e3) => {
|
|
241
|
-
var u5, i3;
|
|
242
|
-
r2(e3.currentTarget) || T3 || (P2 ? (c2({ type: 1 }), (u5 = l.button) == null || u5.focus()) : (e3.preventDefault(), e3.stopPropagation(), l.popoverState === 1 && (m2 == null || m2(l.buttonId)), c2({ type: 0 }), (i3 = l.button) == null || i3.focus()));
|
|
243
|
-
}), k = o((e3) => {
|
|
244
|
-
e3.preventDefault(), e3.stopPropagation();
|
|
245
|
-
}), { isFocusVisible: B, focusProps: U } = $f7dceffc5ad7768b$export$4e328f61c538687f({ autoFocus: S }), { isHovered: O3, hoverProps: N } = $6179b936705e76d3$export$ae780daf29e6d456({ isDisabled: T3 }), { pressed: w2, pressProps: Y } = w({ disabled: T3 }), F2 = l.popoverState === 0, Q = D(() => ({ open: F2, active: w2 || F2, disabled: T3, hover: O3, focus: B, autofocus: S }), [F2, O3, B, w2, T3, S]), K2 = e(o4, l.button), Z = P2 ? _({ ref: g, type: K2, onKeyDown: L2, onClick: M2, disabled: T3 || void 0, autoFocus: S }, U, N, Y) : _({ ref: v, id: l.buttonId, type: K2, "aria-expanded": l.popoverState === 0, "aria-controls": l.panel ? l.panelId : void 0, disabled: T3 || void 0, autoFocus: S, onKeyDown: L2, onKeyUp: I, onClick: M2, onMouseDown: k }, U, N, Y), $ = u4(), J = o(() => {
|
|
246
|
-
let e3 = l.panel;
|
|
247
|
-
if (!e3) return;
|
|
248
|
-
function u5() {
|
|
249
|
-
u2($.current, { [a2.Forwards]: () => P(e3, F.First), [a2.Backwards]: () => P(e3, F.Last) }) === T2.Error && P(b().filter((A2) => A2.dataset.headlessuiFocusGuard !== "true"), u2($.current, { [a2.Forwards]: F.Next, [a2.Backwards]: F.Previous }), { relativeTo: l.button });
|
|
250
|
-
}
|
|
251
|
-
u5();
|
|
252
|
-
}), t = L();
|
|
253
|
-
return y2.createElement(y2.Fragment, null, t({ ourProps: Z, theirProps: p, slot: Q, defaultTag: Pt, name: "Popover.Button" }), F2 && !P2 && d4 && y2.createElement(f, { id: s5, ref: l.afterButtonSentinel, features: s2.Focusable, "data-headlessui-focus-guard": true, as: "button", type: "button", onFocus: J }));
|
|
254
|
-
}
|
|
255
|
-
var ct = "div";
|
|
256
|
-
var vt = O.RenderStrategy | O.Static;
|
|
257
|
-
function Oe(o4, a3) {
|
|
258
|
-
let f4 = r(), { id: C2 = `headlessui-popover-backdrop-${f4}`, transition: T3 = false, ...S } = o4, [{ popoverState: p }, l] = se("Popover.Backdrop"), [c2, d4] = le(null), r4 = y(a3, d4), s5 = u3(), [R4, m2] = x(T3, c2, s5 !== null ? (s5 & i.Open) === i.Open : p === 0), h2 = o((g) => {
|
|
259
|
-
if (r2(g.currentTarget)) return g.preventDefault();
|
|
260
|
-
l({ type: 1 });
|
|
261
|
-
}), P2 = D(() => ({ open: p === 0 }), [p]), n4 = { ref: r4, id: C2, "aria-hidden": true, onClick: h2, ...R2(m2) };
|
|
262
|
-
return L()({ ourProps: n4, theirProps: S, slot: P2, defaultTag: ct, features: vt, visible: R4, name: "Popover.Backdrop" });
|
|
263
|
-
}
|
|
264
|
-
var Tt = "div";
|
|
265
|
-
var mt = O.RenderStrategy | O.Static;
|
|
266
|
-
function yt(o4, a3) {
|
|
267
|
-
let f4 = r(), { id: C2 = `headlessui-popover-panel-${f4}`, focus: T3 = false, anchor: S, portal: p = false, modal: l = false, transition: c2 = false, ...d4 } = o4, [r4, s5] = se("Popover.Panel"), { close: R4, isPortalled: m2 } = be2("Popover.Panel"), h2 = `headlessui-focus-sentinel-before-${f4}`, P2 = `headlessui-focus-sentinel-after-${f4}`, n4 = ee(null), v = xe(S), [g, _2] = Re(v), L2 = be();
|
|
268
|
-
v && (p = true);
|
|
269
|
-
let [I, M2] = le(null), k = y(n4, a3, v ? g : null, o((t) => s5({ type: 4, panel: t })), M2), B = n2(n4);
|
|
270
|
-
n(() => (s5({ type: 5, panelId: C2 }), () => {
|
|
271
|
-
s5({ type: 5, panelId: null });
|
|
272
|
-
}), [C2, s5]);
|
|
273
|
-
let U = u3(), [O3, N] = x(c2, I, U !== null ? (U & i.Open) === i.Open : r4.popoverState === 0);
|
|
274
|
-
m(O3, r4.button, () => {
|
|
275
|
-
s5({ type: 1 });
|
|
276
|
-
});
|
|
277
|
-
let w2 = r4.__demoMode ? false : l && O3;
|
|
278
|
-
f2(w2, B);
|
|
279
|
-
let Y = o((t) => {
|
|
280
|
-
var e3;
|
|
281
|
-
switch (t.key) {
|
|
282
|
-
case o2.Escape:
|
|
283
|
-
if (r4.popoverState !== 0 || !n4.current || B != null && B.activeElement && !n4.current.contains(B.activeElement)) return;
|
|
284
|
-
t.preventDefault(), t.stopPropagation(), s5({ type: 1 }), (e3 = r4.button) == null || e3.focus();
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
ne(() => {
|
|
289
|
-
var t;
|
|
290
|
-
o4.static || r4.popoverState === 1 && ((t = o4.unmount) == null || t) && s5({ type: 4, panel: null });
|
|
291
|
-
}, [r4.popoverState, o4.unmount, o4.static, s5]), ne(() => {
|
|
292
|
-
if (r4.__demoMode || !T3 || r4.popoverState !== 0 || !n4.current) return;
|
|
293
|
-
let t = B == null ? void 0 : B.activeElement;
|
|
294
|
-
n4.current.contains(t) || P(n4.current, F.First);
|
|
295
|
-
}, [r4.__demoMode, T3, n4.current, r4.popoverState]);
|
|
296
|
-
let F2 = D(() => ({ open: r4.popoverState === 0, close: R4 }), [r4.popoverState, R4]), Q = _(v ? L2() : {}, { ref: k, id: C2, onKeyDown: Y, onBlur: T3 && r4.popoverState === 0 ? (t) => {
|
|
297
|
-
var u5, i3, A2, x2, E2;
|
|
298
|
-
let e3 = t.relatedTarget;
|
|
299
|
-
e3 && n4.current && ((u5 = n4.current) != null && u5.contains(e3) || (s5({ type: 1 }), ((A2 = (i3 = r4.beforePanelSentinel.current) == null ? void 0 : i3.contains) != null && A2.call(i3, e3) || (E2 = (x2 = r4.afterPanelSentinel.current) == null ? void 0 : x2.contains) != null && E2.call(x2, e3)) && e3.focus({ preventScroll: true })));
|
|
300
|
-
} : void 0, tabIndex: -1, style: { ...d4.style, ..._2, "--button-width": d(r4.button, true).width }, ...R2(N) }), K2 = u4(), Z = o(() => {
|
|
301
|
-
let t = n4.current;
|
|
302
|
-
if (!t) return;
|
|
303
|
-
function e3() {
|
|
304
|
-
u2(K2.current, { [a2.Forwards]: () => {
|
|
305
|
-
var i3;
|
|
306
|
-
P(t, F.First) === T2.Error && ((i3 = r4.afterPanelSentinel.current) == null || i3.focus());
|
|
307
|
-
}, [a2.Backwards]: () => {
|
|
308
|
-
var u5;
|
|
309
|
-
(u5 = r4.button) == null || u5.focus({ preventScroll: true });
|
|
310
|
-
} });
|
|
311
|
-
}
|
|
312
|
-
e3();
|
|
313
|
-
}), $ = o(() => {
|
|
314
|
-
let t = n4.current;
|
|
315
|
-
if (!t) return;
|
|
316
|
-
function e3() {
|
|
317
|
-
u2(K2.current, { [a2.Forwards]: () => {
|
|
318
|
-
if (!r4.button) return;
|
|
319
|
-
let u5 = b(), i3 = u5.indexOf(r4.button), A2 = u5.slice(0, i3 + 1), E2 = [...u5.slice(i3 + 1), ...A2];
|
|
320
|
-
for (let de of E2.slice()) if (de.dataset.headlessuiFocusGuard === "true" || I != null && I.contains(de)) {
|
|
321
|
-
let Se = E2.indexOf(de);
|
|
322
|
-
Se !== -1 && E2.splice(Se, 1);
|
|
323
|
-
}
|
|
324
|
-
P(E2, F.First, { sorted: false });
|
|
325
|
-
}, [a2.Backwards]: () => {
|
|
326
|
-
var i3;
|
|
327
|
-
P(t, F.Previous) === T2.Error && ((i3 = r4.button) == null || i3.focus());
|
|
328
|
-
} });
|
|
329
|
-
}
|
|
330
|
-
e3();
|
|
331
|
-
}), J = L();
|
|
332
|
-
return y2.createElement(s4, null, y2.createElement(ie.Provider, { value: C2 }, y2.createElement(ue.Provider, { value: { close: R4, isPortalled: m2 } }, y2.createElement(re, { enabled: p ? o4.static || O3 : false }, O3 && m2 && y2.createElement(f, { id: h2, ref: r4.beforePanelSentinel, features: s2.Focusable, "data-headlessui-focus-guard": true, as: "button", type: "button", onFocus: Z }), J({ ourProps: Q, theirProps: d4, slot: F2, defaultTag: Tt, features: mt, visible: O3, name: "Popover.Panel" }), O3 && m2 && y2.createElement(f, { id: P2, ref: r4.afterPanelSentinel, features: s2.Focusable, "data-headlessui-focus-guard": true, as: "button", type: "button", onFocus: $ })))));
|
|
333
|
-
}
|
|
334
|
-
var Et = "div";
|
|
335
|
-
function bt(o4, a3) {
|
|
336
|
-
let f4 = ee(null), C2 = y(f4, a3), [T3, S] = le([]), p = o((P2) => {
|
|
337
|
-
S((n4) => {
|
|
338
|
-
let v = n4.indexOf(P2);
|
|
339
|
-
if (v !== -1) {
|
|
340
|
-
let g = n4.slice();
|
|
341
|
-
return g.splice(v, 1), g;
|
|
342
|
-
}
|
|
343
|
-
return n4;
|
|
344
|
-
});
|
|
345
|
-
}), l = o((P2) => (S((n4) => [...n4, P2]), () => p(P2))), c2 = o(() => {
|
|
346
|
-
var v;
|
|
347
|
-
let P2 = u(f4);
|
|
348
|
-
if (!P2) return false;
|
|
349
|
-
let n4 = P2.activeElement;
|
|
350
|
-
return (v = f4.current) != null && v.contains(n4) ? true : T3.some((g) => {
|
|
351
|
-
var _2, L2;
|
|
352
|
-
return ((_2 = P2.getElementById(g.buttonId.current)) == null ? void 0 : _2.contains(n4)) || ((L2 = P2.getElementById(g.panelId.current)) == null ? void 0 : L2.contains(n4));
|
|
353
|
-
});
|
|
354
|
-
}), d4 = o((P2) => {
|
|
355
|
-
for (let n4 of T3) n4.buttonId.current !== P2 && n4.close();
|
|
356
|
-
}), r4 = D(() => ({ registerPopover: l, unregisterPopover: p, isFocusWithinPopoverGroup: c2, closeOthers: d4 }), [l, p, c2, d4]), s5 = D(() => ({}), []), R4 = o4, m2 = { ref: C2 }, h2 = L();
|
|
357
|
-
return y2.createElement(O2, null, y2.createElement(ge.Provider, { value: r4 }, h2({ ourProps: m2, theirProps: R4, slot: s5, defaultTag: Et, name: "Popover.Group" })));
|
|
358
|
-
}
|
|
359
|
-
var gt = K(dt);
|
|
360
|
-
var St = K(ft);
|
|
361
|
-
var At = K(Oe);
|
|
362
|
-
var Ct = K(Oe);
|
|
363
|
-
var Rt = K(yt);
|
|
364
|
-
var Bt = K(bt);
|
|
365
|
-
var lo = Object.assign(gt, { Button: St, Backdrop: Ct, Overlay: At, Panel: Rt, Group: Bt });
|
|
366
|
-
|
|
367
|
-
// src/ui/PopoverMenu.module.scss
|
|
368
|
-
var PopoverMenu_module_default = {
|
|
369
|
-
"root": "alinea-PopoverMenu",
|
|
370
|
-
"trigger": "alinea-PopoverMenu-trigger",
|
|
371
|
-
"items": "alinea-PopoverMenu-items",
|
|
372
|
-
"is-left": "alinea-PopoverMenu-is-left",
|
|
373
|
-
"isLeft": "alinea-PopoverMenu-is-left",
|
|
374
|
-
"is-right": "alinea-PopoverMenu-is-right",
|
|
375
|
-
"isRight": "alinea-PopoverMenu-is-right",
|
|
376
|
-
"header": "alinea-PopoverMenu-header",
|
|
377
|
-
"footer": "alinea-PopoverMenu-footer"
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
// src/ui/PopoverMenu.tsx
|
|
381
|
-
import { jsx } from "react/jsx-runtime";
|
|
382
|
-
var styles = dist_default(PopoverMenu_module_default);
|
|
383
|
-
var PopoverMenu;
|
|
384
|
-
((PopoverMenu2) => {
|
|
385
|
-
function Root(props) {
|
|
386
|
-
return /* @__PURE__ */ jsx(lo, { children: /* @__PURE__ */ jsx("div", { ...props, className: styles.root.mergeProps(props)() }) });
|
|
387
|
-
}
|
|
388
|
-
PopoverMenu2.Root = Root;
|
|
389
|
-
function Trigger(props) {
|
|
390
|
-
return /* @__PURE__ */ jsx(lo.Button, { ...props, className: styles.trigger() });
|
|
391
|
-
}
|
|
392
|
-
PopoverMenu2.Trigger = Trigger;
|
|
393
|
-
function Items({
|
|
394
|
-
left,
|
|
395
|
-
right,
|
|
396
|
-
...props
|
|
397
|
-
}) {
|
|
398
|
-
return /* @__PURE__ */ jsx(
|
|
399
|
-
lo.Panel,
|
|
400
|
-
{
|
|
401
|
-
...props,
|
|
402
|
-
className: styles.items.mergeProps(props)({ left, right })
|
|
403
|
-
}
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
PopoverMenu2.Items = Items;
|
|
407
|
-
function Header({ children }) {
|
|
408
|
-
return /* @__PURE__ */ jsx("div", { className: styles.header(), children: /* @__PURE__ */ jsx("header", { children }) });
|
|
409
|
-
}
|
|
410
|
-
PopoverMenu2.Header = Header;
|
|
411
|
-
function Footer({ children }) {
|
|
412
|
-
return /* @__PURE__ */ jsx("div", { className: styles.footer(), children: /* @__PURE__ */ jsx("footer", { children }) });
|
|
413
|
-
}
|
|
414
|
-
PopoverMenu2.Footer = Footer;
|
|
415
|
-
})(PopoverMenu || (PopoverMenu = {}));
|
|
416
|
-
export {
|
|
417
|
-
PopoverMenu
|
|
418
|
-
};
|
package/dist/ui/Property.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputLabel as Property } from 'alinea/dashboard';
|
package/dist/ui/Property.js
DELETED
package/dist/ui/Sink.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLProps, PropsWithChildren } from 'react';
|
|
2
|
-
export declare namespace Sink {
|
|
3
|
-
function Root(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
function Row(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
function Content(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
function Options(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
function Header(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
function Title(props: PropsWithChildren<HTMLProps<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
}
|
package/dist/ui/Sink.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dist_default
|
|
3
|
-
} from "../chunks/chunk-A5O3N2GS.js";
|
|
4
|
-
import "../chunks/chunk-NZLE2WMY.js";
|
|
5
|
-
|
|
6
|
-
// src/ui/Sink.module.scss
|
|
7
|
-
var Sink_module_default = {
|
|
8
|
-
"root": "alinea-Sink",
|
|
9
|
-
"row": "alinea-Sink-row",
|
|
10
|
-
"header": "alinea-Sink-header",
|
|
11
|
-
"title": "alinea-Sink-title",
|
|
12
|
-
"content": "alinea-Sink-content",
|
|
13
|
-
"options": "alinea-Sink-options"
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// src/ui/Sink.tsx
|
|
17
|
-
import { ElevationProvider } from "./util/Elevation.js";
|
|
18
|
-
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
var styles = dist_default(Sink_module_default);
|
|
20
|
-
var Sink;
|
|
21
|
-
((Sink2) => {
|
|
22
|
-
function Root(props) {
|
|
23
|
-
return /* @__PURE__ */ jsx(ElevationProvider, { type: "sink", children: /* @__PURE__ */ jsx("div", { className: styles.root(), ...props }) });
|
|
24
|
-
}
|
|
25
|
-
Sink2.Root = Root;
|
|
26
|
-
function Row(props) {
|
|
27
|
-
return /* @__PURE__ */ jsx("div", { ...props, className: styles.row(dist_default.merge(props)) });
|
|
28
|
-
}
|
|
29
|
-
Sink2.Row = Row;
|
|
30
|
-
function Content(props) {
|
|
31
|
-
return /* @__PURE__ */ jsx("div", { ...props, className: styles.content(dist_default.merge(props)) });
|
|
32
|
-
}
|
|
33
|
-
Sink2.Content = Content;
|
|
34
|
-
function Options(props) {
|
|
35
|
-
return /* @__PURE__ */ jsx("div", { ...props, className: styles.options(dist_default.merge(props)) });
|
|
36
|
-
}
|
|
37
|
-
Sink2.Options = Options;
|
|
38
|
-
function Header(props) {
|
|
39
|
-
return /* @__PURE__ */ jsx("header", { ...props, className: styles.header(dist_default.merge(props)) });
|
|
40
|
-
}
|
|
41
|
-
Sink2.Header = Header;
|
|
42
|
-
function Title(props) {
|
|
43
|
-
return /* @__PURE__ */ jsx("p", { ...props, className: styles.title(dist_default.merge(props)) });
|
|
44
|
-
}
|
|
45
|
-
Sink2.Title = Title;
|
|
46
|
-
})(Sink || (Sink = {}));
|
|
47
|
-
export {
|
|
48
|
-
Sink
|
|
49
|
-
};
|
package/dist/ui/Statusbar.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
export declare namespace Statusbar {
|
|
4
|
-
const Provider: ComponentType<{
|
|
5
|
-
children?: import("react").ReactNode | undefined;
|
|
6
|
-
}>, Portal: ComponentType<import("react").HTMLProps<HTMLDivElement>>, Slot: ComponentType<{
|
|
7
|
-
children?: import("react").ReactNode | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
function Root({ children }: PropsWithChildren<{}>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
interface StatusProps extends PropsWithChildren {
|
|
11
|
-
icon?: ComponentType;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
}
|
|
14
|
-
function Status({ children, icon, onClick }: StatusProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
}
|