alinea 0.4.0-preview.9 → 0.4.1
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/alinea.d.ts +1 -0
- package/dist/auth/passwordless/PasswordLessAuth.server.d.ts +2 -2
- package/dist/auth/passwordless/PasswordLessAuth.server.js +2 -2
- package/dist/backend/Database.d.ts +23 -46
- package/dist/backend/Database.js +369 -210
- package/dist/backend/Database.test.d.ts +1 -0
- package/dist/backend/Drafts.d.ts +10 -0
- package/dist/backend/Drafts.js +0 -0
- package/dist/backend/Handler.d.ts +62 -6
- package/dist/backend/Handler.js +255 -32
- package/dist/backend/History.d.ts +13 -0
- package/dist/backend/History.js +0 -0
- package/dist/backend/Media.d.ts +8 -3
- package/dist/backend/Media.js +5 -3
- package/dist/backend/Pending.d.ts +8 -0
- package/dist/backend/Pending.js +0 -0
- package/dist/backend/Store.js +1 -1
- package/dist/backend/Target.d.ts +3 -2
- package/dist/backend/data/ChangeSet.d.ts +13 -5
- package/dist/backend/data/ChangeSet.js +50 -9
- package/dist/backend/db/AlineaMeta.d.ts +1 -0
- package/dist/backend/db/AlineaMeta.js +1 -0
- package/dist/backend/{Resolver.d.ts → resolver/EntryResolver.d.ts} +11 -17
- package/dist/backend/{Resolver.js → resolver/EntryResolver.js} +32 -41
- package/dist/backend/resolver/LinkResolver.d.ts +5 -4
- package/dist/backend/resolver/LinkResolver.js +12 -4
- package/dist/backend/router/NodeHandler.d.ts +3 -0
- package/dist/backend/router/NodeHandler.js +5 -3
- package/dist/backend/router/Router.d.ts +9 -5
- package/dist/backend/router/Router.js +5 -3
- package/dist/backend/test/Example.d.ts +25 -7
- package/dist/backend/test/Example.js +66 -52
- package/dist/backend/test/ExampleTypes.d.ts +1 -1
- package/dist/backend/util/ContentHash.d.ts +3 -2
- package/dist/backend/util/ContentHash.js +9 -15
- package/dist/backend.d.ts +0 -1
- package/dist/backend.js +0 -1
- package/dist/chunks/{chunk-BWFABRHJ.js → chunk-57QP2MGK.js} +5 -0
- package/dist/chunks/chunk-57Y4IQL4.js +291 -0
- package/dist/chunks/chunk-A5EY5PG6.js +13 -0
- package/dist/chunks/chunk-B5OJDF23.js +45 -0
- package/dist/chunks/chunk-BGVZL6W4.js +1113 -0
- package/dist/chunks/chunk-CKT37OYJ.js +9 -0
- package/dist/chunks/chunk-CRWVV7PH.js +115 -0
- package/dist/chunks/chunk-EZAMUCJM.js +126 -0
- package/dist/chunks/chunk-G3BMTMIQ.js +302 -0
- package/dist/chunks/{chunk-A4UAPXAS.js → chunk-I5C4WAC4.js} +1 -1
- package/dist/chunks/chunk-IKINPSS5.js +36 -0
- package/dist/chunks/chunk-IVUC2CYA.js +245 -0
- package/dist/chunks/{chunk-47VKRVEO.js → chunk-MDIOFKJQ.js} +108 -41
- package/dist/chunks/{chunk-4O6IJ2QY.js → chunk-OBOPLPUQ.js} +30 -14
- package/dist/chunks/{chunk-FRQVD7AE.js → chunk-OBYSELPT.js} +47 -15
- package/dist/chunks/{chunk-DC7DR6SH.js → chunk-OYP4EJOA.js} +3 -5
- package/dist/chunks/chunk-PB6GIAHT.js +18 -0
- package/dist/chunks/chunk-Q2COWNH4.js +110 -0
- package/dist/chunks/chunk-QEHUZJO2.js +302 -0
- package/dist/chunks/chunk-QMGXID4H.js +14 -0
- package/dist/chunks/{chunk-GZWBEWJ3.js → chunk-QV233D56.js} +2 -1
- package/dist/chunks/chunk-VKS6HYMO.js +92 -0
- package/dist/chunks/chunk-VRNNS7VT.js +96 -0
- package/dist/chunks/{chunk-5ZMBYW5L.js → chunk-WF77DMLN.js} +1 -1
- package/dist/chunks/{chunk-TWFQFMVM.js → chunk-ZHH24SIG.js} +73 -3
- package/dist/chunks/{sql.js-2KNGN3B5.js → sql.js-OZNQGHQS.js} +1 -1
- package/dist/cli/Generate.d.ts +7 -4
- package/dist/cli/Generate.js +23 -6
- package/dist/cli/Init.d.ts +1 -0
- package/dist/cli/Init.js +20 -23
- package/dist/cli/Serve.js +45 -35
- package/dist/cli/bin.js +23 -20
- package/dist/cli/generate/CopyStaticFiles.js +11 -0
- package/dist/cli/generate/FillCache.d.ts +3 -1
- package/dist/cli/generate/FillCache.js +16 -16
- package/dist/cli/generate/GenerateDashboard.d.ts +1 -1
- package/dist/cli/generate/GenerateDashboard.js +74 -9
- package/dist/cli/generate/LocalData.d.ts +23 -0
- package/dist/{backend/data/FileData.js → cli/generate/LocalData.js} +33 -31
- package/dist/cli/serve/CreateLocalServer.d.ts +4 -0
- package/dist/cli/serve/{CreateHandler.js → CreateLocalServer.js} +29 -20
- package/dist/cli/serve/GitHistory.d.ts +12 -0
- package/dist/cli/serve/GitHistory.js +4017 -0
- package/dist/cli/serve/MemoryDrafts.d.ts +7 -0
- package/dist/cli/serve/MemoryDrafts.js +15 -0
- package/dist/cli/serve/StartNodeServer.d.ts +11 -0
- package/dist/cli/serve/{StartServer.js → StartNodeServer.js} +12 -6
- package/dist/cli/static/dashboard/entry.js +4 -3
- package/dist/cli/static/init/cms.js +2 -2
- package/dist/cli/static/store.embed.js +1 -8
- package/dist/cli/util/CommitSha.d.ts +1 -0
- package/dist/cli/util/CommitSha.js +12 -0
- package/dist/cli/util/EnsureEnv.d.ts +1 -1
- package/dist/cli/util/EnsureEnv.js +43 -1
- package/dist/cli/util/ExternalPlugin.js +1 -1
- package/dist/cli/util/WarnPublicEnv.d.ts +4 -0
- package/dist/cli/util/WarnPublicEnv.js +18 -0
- package/dist/cloud/server/CloudAuthServer.d.ts +2 -3
- package/dist/cloud/server/CloudAuthServer.js +39 -20
- package/dist/cloud/server/CloudConfig.d.ts +5 -1
- package/dist/cloud/server/CloudConfig.js +29 -13
- package/dist/cloud/server/CloudDebugHandler.d.ts +30 -0
- package/dist/cloud/server/CloudDebugHandler.js +87 -0
- package/dist/cloud/server/CloudHandler.d.ts +23 -10
- package/dist/cloud/server/CloudHandler.js +78 -23
- package/dist/core/Auth.d.ts +2 -2
- package/dist/core/Auth.js +0 -3
- package/dist/core/CMS.d.ts +6 -6
- package/dist/core/CMS.js +15 -9
- package/dist/core/Client.d.ts +15 -17
- package/dist/core/Client.js +53 -38
- package/dist/core/Config.d.ts +2 -0
- package/dist/core/Connection.d.ts +44 -17
- package/dist/core/Connection.js +11 -5
- package/dist/core/Doc.d.ts +2 -1
- package/dist/core/Doc.js +9 -2
- package/dist/core/Document.d.ts +12 -0
- package/dist/core/Document.js +35 -0
- package/dist/core/Draft.d.ts +5 -0
- package/dist/core/Draft.js +0 -0
- package/dist/core/Edits.test.d.ts +0 -0
- package/dist/core/Entry.d.ts +3 -2
- package/dist/core/EntryFilenames.d.ts +7 -1
- package/dist/core/EntryFilenames.js +42 -3
- package/dist/core/EntryRecord.d.ts +9 -1
- package/dist/core/EntryRecord.js +2 -2
- package/dist/core/EntryRow.d.ts +6 -3
- package/dist/core/EntryRow.js +12 -4
- package/dist/core/Field.d.ts +4 -4
- package/dist/core/Field.js +8 -5
- package/dist/core/Graph.d.ts +8 -6
- package/dist/core/Graph.js +7 -0
- package/dist/core/HttpError.d.ts +1 -1
- package/dist/core/HttpError.js +2 -2
- package/dist/core/Mutation.d.ts +25 -6
- package/dist/core/Mutation.js +3 -1
- package/dist/core/Resolver.d.ts +15 -0
- package/dist/core/Resolver.js +0 -0
- package/dist/core/Shape.d.ts +4 -16
- package/dist/core/Shape.js +0 -34
- package/dist/core/Type.js +2 -2
- package/dist/core/User.d.ts +4 -2
- package/dist/core/driver/DefaultDriver.d.ts +2 -2
- package/dist/core/driver/DefaultDriver.js +1 -1
- package/dist/core/driver/DefaultDriver.server.d.ts +6 -2
- package/dist/core/driver/DefaultDriver.server.js +25 -15
- package/dist/core/driver/NextDriver.server.js +40 -70
- package/dist/core/driver/NextPreviews.js +12 -7
- package/dist/core/driver/TestDriver.d.ts +6 -3
- package/dist/core/driver/TestDriver.js +20 -30
- package/dist/core/media/MediaRoot.browser.js +1 -2
- package/dist/core/media/MediaRoot.d.ts +0 -1
- package/dist/core/media/MediaRoot.js +1 -13
- package/dist/core/media/MediaSchema.browser.d.ts +8 -0
- package/dist/core/media/MediaSchema.d.ts +8 -0
- package/dist/core/media/MediaSchema.js +1 -0
- package/dist/core/pages/Expr.d.ts +2 -2
- package/dist/core/pages/Expr.js +27 -17
- package/dist/core/shape/ListShape.d.ts +3 -1
- package/dist/core/shape/ListShape.js +62 -8
- package/dist/core/shape/ListShape.test.d.ts +1 -0
- package/dist/core/shape/RecordShape.d.ts +2 -1
- package/dist/core/shape/RecordShape.js +20 -7
- package/dist/core/shape/RecordShape.test.d.ts +1 -0
- package/dist/core/shape/RichTextShape.d.ts +9 -3
- package/dist/core/shape/RichTextShape.js +136 -23
- package/dist/core/shape/ScalarShape.d.ts +2 -1
- package/dist/core/shape/ScalarShape.js +8 -1
- package/dist/core/shape/ScalarShape.test.d.ts +1 -0
- package/dist/core/shape/UnionShape.d.ts +2 -1
- package/dist/core/shape/UnionShape.js +23 -7
- package/dist/core/shape/UnionShape.test.d.ts +1 -0
- package/dist/core/util/EntryRows.d.ts +5 -0
- package/dist/core/util/EntryRows.js +60 -0
- package/dist/core/util/EntryRows.test.d.ts +0 -0
- package/dist/core/util/Slugs.d.ts +1 -1
- package/dist/core/util/Slugs.js +6 -53
- package/dist/core/util/Slugs.test.d.ts +1 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.js +2 -0
- package/dist/dashboard/App.d.ts +1 -0
- package/dist/dashboard/App.js +65 -62
- package/dist/dashboard/DashboardNav.d.ts +2 -1
- package/dist/dashboard/DashboardNav.js +2 -2
- package/dist/dashboard/DashboardProvider.d.ts +12 -0
- package/dist/dashboard/DashboardProvider.js +28 -0
- package/dist/dashboard/Routes.d.ts +78 -78
- package/dist/dashboard/Routes.js +2 -2
- package/dist/dashboard/atoms/DashboardAtoms.js +3 -3
- package/dist/dashboard/atoms/DbAtoms.d.ts +6 -16
- package/dist/dashboard/atoms/DbAtoms.js +192 -128
- package/dist/dashboard/atoms/Edits.d.ts +40 -0
- package/dist/dashboard/atoms/Edits.js +101 -0
- package/dist/dashboard/atoms/EntryAtoms.js +62 -34
- package/dist/dashboard/atoms/EntryEditorAtoms.d.ts +94 -79
- package/dist/dashboard/atoms/EntryEditorAtoms.js +361 -90
- package/dist/dashboard/atoms/EntrySummaryAtoms.js +7 -6
- package/dist/dashboard/atoms/ErrorAtoms.d.ts +4 -0
- package/dist/dashboard/atoms/ErrorAtoms.js +19 -0
- package/dist/dashboard/atoms/LocationAtoms.js +3 -3
- package/dist/dashboard/atoms/NavigationAtoms.d.ts +1 -1
- package/dist/dashboard/atoms/NavigationAtoms.js +5 -4
- package/dist/dashboard/atoms/PreferencesAtoms.js +2 -2
- package/dist/dashboard/atoms/RouterAtoms.js +2 -2
- package/dist/dashboard/atoms/StyleAtoms.js +1 -1
- package/dist/dashboard/atoms/YAtom.js +1 -1
- package/dist/dashboard/dev/DevDashboard.js +13 -5
- package/dist/dashboard/hook/UseConfig.js +2 -2
- package/dist/dashboard/hook/UseDashboard.js +2 -2
- package/dist/dashboard/hook/UseEntryEditor.d.ts +7 -0
- package/dist/dashboard/hook/UseEntryEditor.js +19 -0
- package/dist/dashboard/hook/UseEntryLocation.js +2 -2
- package/dist/dashboard/hook/UseEntrySummary.js +2 -2
- package/dist/dashboard/hook/UseExplorer.d.ts +2 -1
- package/dist/dashboard/hook/UseGraph.d.ts +1 -5
- package/dist/dashboard/hook/UseGraph.js +2 -2
- package/dist/dashboard/hook/UseLocale.js +2 -2
- package/dist/dashboard/hook/UseNav.d.ts +1 -1
- package/dist/dashboard/hook/UseNav.js +2 -2
- package/dist/dashboard/hook/UsePreferences.js +2 -2
- package/dist/dashboard/hook/UseRoot.js +2 -2
- package/dist/dashboard/hook/UseSession.js +2 -2
- package/dist/dashboard/hook/UseUploads.d.ts +21 -6
- package/dist/dashboard/hook/UseUploads.js +727 -133
- package/dist/dashboard/hook/UseWorkspace.js +2 -2
- package/dist/dashboard/pages/ContentView.js +1 -3
- package/dist/dashboard/pages/DraftsOverview.js +2 -2
- package/dist/dashboard/util/Atoms.js +1 -1
- package/dist/dashboard/util/DebounceAtom.js +1 -1
- package/dist/dashboard/util/KeepPreviousData.d.ts +1 -1
- package/dist/dashboard/util/KeepPreviousData.js +3 -3
- package/dist/dashboard/util/Loader.js +2 -2
- package/dist/dashboard/util/PersistentStore.d.ts +4 -1
- package/dist/dashboard/util/PersistentStore.js +92 -51
- package/dist/dashboard/util/WithResolvers.d.ts +2 -0
- package/dist/dashboard/util/WithResolvers.js +16 -0
- package/dist/dashboard/view/EntryEdit.js +112 -56
- package/dist/dashboard/view/EntryTree.js +28 -17
- package/dist/dashboard/view/MediaExplorer.js +24 -9
- package/dist/dashboard/view/Modal.d.ts +4 -4
- package/dist/dashboard/view/Modal.js +31 -353
- package/dist/dashboard/view/RootOverview.js +2 -2
- package/dist/dashboard/view/SearchBox.js +9 -2
- package/dist/dashboard/view/Sidebar.js +8 -9
- package/dist/dashboard/view/Toolbar.js +12 -13
- package/dist/dashboard/view/diff/ChangeBox.d.ts +1 -1
- package/dist/dashboard/view/diff/DiffUtils.d.ts +1 -1
- package/dist/dashboard/view/diff/DiffUtils.js +1 -1
- package/dist/dashboard/view/diff/FieldsDiff.js +3 -6
- package/dist/dashboard/view/diff/ListDiff.js +3 -3
- package/dist/dashboard/view/diff/RichTextDiff.js +4 -4
- package/dist/dashboard/view/entry/EntryHeader.d.ts +2 -1
- package/dist/dashboard/view/entry/EntryHeader.js +238 -96
- package/dist/dashboard/view/entry/EntryHistory.d.ts +2 -0
- package/dist/dashboard/view/entry/EntryHistory.js +74 -0
- package/dist/dashboard/view/entry/EntryPreview.d.ts +1 -1
- package/dist/dashboard/view/entry/EntryPreview.js +2 -2
- package/dist/dashboard/view/entry/EntrySummary.d.ts +6 -0
- package/dist/dashboard/view/entry/EntrySummary.js +2 -0
- package/dist/dashboard/view/entry/EntryTitle.d.ts +2 -1
- package/dist/dashboard/view/entry/EntryTitle.js +36 -16
- package/dist/dashboard/view/entry/FieldToolbar.d.ts +3 -3
- package/dist/dashboard/view/entry/FieldToolbar.js +9 -2
- package/dist/dashboard/view/entry/LangSwitch.d.ts +2 -1
- package/dist/dashboard/view/entry/LangSwitch.js +21 -14
- package/dist/dashboard/view/entry/NewEntry.js +58 -46
- package/dist/dashboard/view/explorer/Explorer.d.ts +4 -2
- package/dist/dashboard/view/explorer/Explorer.js +13 -11
- package/dist/dashboard/view/explorer/ExplorerItem.js +15 -11
- package/dist/dashboard/view/explorer/ExplorerRow.js +3 -3
- package/dist/dashboard/view/media/FileEntry.js +22 -107
- package/dist/dashboard/view/media/FileSummary.d.ts +18 -0
- package/dist/dashboard/view/media/FileSummary.js +51 -7
- package/dist/dashboard/view/media/FileUploadRow.d.ts +2 -10
- package/dist/dashboard/view/media/FileUploadRow.js +12 -5
- package/dist/dashboard/view/media/FileUploader.d.ts +1 -1
- package/dist/dashboard/view/media/FileUploader.js +6 -13
- package/dist/dashboard/view/preview/BrowserPreview.js +1 -1
- package/dist/dashboard/view/sidebar/SidebarSettings.js +28 -35
- package/dist/editor/InputState.d.ts +9 -5
- package/dist/editor/InputState.js +17 -13
- package/dist/editor/hook/UseField.js +2 -2
- package/dist/editor/hook/UseForm.js +2 -2
- package/dist/editor/view/Fields.js +7 -10
- package/dist/editor/view/InputForm.js +6 -6
- package/dist/editor/view/InputLabel.d.ts +2 -2
- package/dist/editor/view/InputLabel.js +3 -3
- package/dist/index.css +517 -261
- package/dist/input/check/CheckField.browser.js +40 -26
- package/dist/input/check/CheckField.js +1 -1
- package/dist/input/code/CodeField.browser.js +1 -1
- package/dist/input/date/DateField.browser.js +1 -1
- package/dist/input/date/DateField.d.ts +1 -1
- package/dist/input/json/JsonField.browser.js +1 -1
- package/dist/input/link/LinkConstructors.d.ts +4 -4
- package/dist/input/link/LinkConstructors.js +7 -5
- package/dist/input/link/LinkField.browser.js +8 -7
- package/dist/input/list/ListField.browser.js +8 -7
- package/dist/input/metadata/MetadataField.browser.d.ts +3 -0
- package/dist/input/metadata/MetadataField.browser.js +18 -0
- package/dist/input/metadata/MetadataField.d.ts +24 -0
- package/dist/input/metadata/MetadataField.js +31 -0
- package/dist/input/metadata.d.ts +1 -0
- package/dist/input/metadata.js +2 -0
- package/dist/input/number/NumberField.browser.js +10 -1
- package/dist/input/object/ObjectField.browser.js +2 -2
- package/dist/input/path/PathField.browser.js +111 -24
- package/dist/input/richtext/PickTextLink.js +2 -2
- package/dist/input/richtext/ReferenceLink.d.ts +1 -0
- package/dist/input/richtext/ReferenceLink.js +44 -16
- package/dist/input/richtext/RichTextField.browser.js +78 -67
- package/dist/input/richtext/RichTextField.d.ts +1 -1
- package/dist/input/richtext/RichTextKit.js +36 -12
- package/dist/input/richtext/RichTextToolbar.js +11 -10
- package/dist/input/richtext/extensions/Link.d.ts +1 -0
- package/dist/input/richtext/extensions/Link.js +4 -1
- package/dist/input/richtext/extensions/Small.js +1 -1
- package/dist/input/richtext/hook/UseEditor.js +8 -15
- package/dist/input/select/SelectField.browser.js +20 -1119
- package/dist/input/select/SelectField.d.ts +1 -1
- package/dist/input/tabs/Tabs.browser.d.ts +7 -2
- package/dist/input/tabs/Tabs.browser.js +26 -13
- package/dist/input/tabs/Tabs.d.ts +3 -3
- package/dist/input/tabs/Tabs.stories.d.ts +1 -0
- package/dist/input/text/TextField.browser.js +1 -1
- package/dist/input/view/View.browser.d.ts +3 -0
- package/dist/input/view/View.browser.js +14 -0
- package/dist/input/view/View.d.ts +9 -0
- package/dist/input/view/View.js +18 -0
- package/dist/input/view.d.ts +1 -0
- package/dist/input/view.js +2 -0
- package/dist/input.d.ts +3 -0
- package/dist/input.js +7 -1
- package/dist/jetbrains-mono-v18-latin-600-3UEC4XR2.woff2 +0 -0
- package/dist/jetbrains-mono-v18-latin-regular-62SJVGG5.woff2 +0 -0
- package/dist/picker/entry/EntryPicker.browser.js +68 -13
- package/dist/picker/entry/EntryPicker.d.ts +1 -1
- package/dist/picker/entry/EntryPicker.js +6 -5
- package/dist/picker/entry/EntryPickerRow.d.ts +1 -1
- package/dist/picker/entry/EntryPickerRow.js +2 -0
- package/dist/picker/entry/EntryReference.d.ts +3 -2
- package/dist/picker/entry/EntryReference.js +1 -1
- package/dist/picker/url/UrlPicker.browser.js +2 -4
- package/dist/picker/url/UrlPicker.js +6 -5
- package/dist/preview/PreviewMessage.d.ts +1 -1
- package/dist/preview/RegisterPreview.d.ts +1 -1
- package/dist/ui/AppBar.d.ts +1 -1
- package/dist/ui/AppBar.js +4 -4
- package/dist/ui/DropdownMenu.d.ts +5 -6
- package/dist/ui/DropdownMenu.js +252 -199
- package/dist/ui/Lift.d.ts +1 -0
- package/dist/ui/Lift.js +10 -9
- package/dist/ui/Loader.js +2 -12
- package/dist/ui/Main.d.ts +3 -1
- package/dist/ui/Main.js +16 -3
- package/dist/ui/PopoverMenu.js +393 -216
- package/dist/ui/{Card.d.ts → Sink.d.ts} +3 -2
- package/dist/ui/Sink.js +32 -0
- package/dist/ui/Statusbar.d.ts +1 -1
- package/dist/ui/Tabs.d.ts +3 -1
- package/dist/ui/Tabs.js +246 -174
- package/dist/ui/icons/IcBaselineErrorOutline.d.ts +2 -0
- package/dist/ui/icons/IcBaselineErrorOutline.js +26 -0
- package/dist/ui/icons/IcBaselineWifiTethering.d.ts +2 -0
- package/dist/ui/icons/IcBaselineWifiTethering.js +26 -0
- package/dist/ui/icons/IcOutlineAvTimer.d.ts +0 -1
- package/dist/ui/icons/IcOutlineAvTimer.js +18 -4
- package/dist/ui/icons/IcOutlineDescription.d.ts +2 -0
- package/dist/ui/icons/IcOutlineDescription.js +26 -0
- package/dist/ui/icons/IcOutlineKeyboardTab.d.ts +2 -0
- package/dist/ui/icons/IcOutlineKeyboardTab.js +26 -0
- package/dist/ui/icons/IcOutlineTableRows.d.ts +2 -0
- package/dist/ui/icons/IcOutlineTableRows.js +26 -0
- package/dist/ui/icons/IcRoundArchive.d.ts +0 -1
- package/dist/ui/icons/IcRoundArchive.js +8 -4
- package/dist/ui/icons/IcRoundDescription.d.ts +2 -0
- package/dist/ui/icons/IcRoundDescription.js +26 -0
- package/dist/ui/icons/IcRoundPublishedWithChanges.d.ts +2 -0
- package/dist/ui/icons/IcRoundPublishedWithChanges.js +26 -0
- package/dist/ui/icons/MaterialSymbolsDatabase.d.ts +2 -0
- package/dist/ui/icons/MaterialSymbolsDatabase.js +26 -0
- package/dist/ui/util/ContrastColor.js +1 -1
- package/dist/ui/util/Elevation.d.ts +12 -0
- package/dist/ui/util/Elevation.js +20 -0
- package/dist/ui/util/ImageBlurUrl.d.ts +5 -0
- package/dist/ui/util/ImageBlurUrl.js +13 -0
- package/dist/ui/util/TextareaAutosize.d.ts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1 -1
- package/dist/yjs.js +1 -1
- package/package.json +24 -13
- package/readme.md +15 -21
- package/dist/backend/Server.d.ts +0 -65
- package/dist/backend/Server.js +0 -145
- package/dist/backend/data/FileData.d.ts +0 -22
- package/dist/chunks/chunk-4LJZYAWS.js +0 -76
- package/dist/chunks/chunk-BYYHGT4Q.js +0 -41
- package/dist/chunks/chunk-ECYPFBCG.js +0 -84
- package/dist/chunks/chunk-FKASXZSC.js +0 -282
- package/dist/chunks/chunk-IEITVTQX.js +0 -150
- package/dist/chunks/chunk-IIWNR566.js +0 -26
- package/dist/chunks/chunk-MSY5WN2W.js +0 -13
- package/dist/chunks/chunk-P5CDB7B2.js +0 -10
- package/dist/chunks/chunk-Q4B3MA22.js +0 -79
- package/dist/chunks/chunk-SQT7NHS6.js +0 -80
- package/dist/chunks/chunk-TUJH2TMR.js +0 -106
- package/dist/chunks/chunk-UWHHMFCM.js +0 -20
- package/dist/chunks/chunk-VM4I5AKA.js +0 -14
- package/dist/chunks/chunk-WTI7NMC6.js +0 -32
- package/dist/cli/serve/CreateHandler.d.ts +0 -3
- package/dist/cli/serve/StartServer.d.ts +0 -9
- package/dist/dashboard/atoms/PendingAtoms.d.ts +0 -10
- package/dist/dashboard/atoms/PendingAtoms.js +0 -260
- package/dist/dashboard/dev/Main.d.ts +0 -1
- package/dist/dashboard/dev/Main.js +0 -26
- package/dist/jetbrains-mono-latin-400-normal-XBSOWAWQ.woff2 +0 -0
- package/dist/jetbrains-mono-latin-ext-400-normal-MAO3VIIK.woff2 +0 -0
- package/dist/ui/Card.js +0 -27
package/dist/alinea.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Route } from 'alinea/backend/router/Router';
|
|
2
2
|
import { Auth, Connection, User } from 'alinea/core';
|
|
3
3
|
import type { Transporter } from 'nodemailer';
|
|
4
4
|
export type PasswordLessAuthOptions = {
|
|
@@ -11,7 +11,7 @@ export type PasswordLessAuthOptions = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare class PasswordLessAuth implements Auth.Server {
|
|
13
13
|
protected options: PasswordLessAuthOptions;
|
|
14
|
-
|
|
14
|
+
router: Route<Request, Response | undefined>;
|
|
15
15
|
users: WeakMap<Request, User>;
|
|
16
16
|
constructor(options: PasswordLessAuthOptions);
|
|
17
17
|
contextFor(request: Request): Promise<Connection.AuthContext>;
|
|
@@ -279,7 +279,7 @@ var PasswordLessAuth = class {
|
|
|
279
279
|
constructor(options) {
|
|
280
280
|
this.options = options;
|
|
281
281
|
const matcher = router.startAt(Connection.routes.base);
|
|
282
|
-
this.
|
|
282
|
+
this.router = router(
|
|
283
283
|
matcher.post(Connection.routes.base + "/auth.passwordless").map(router.parseJson).map(async ({ body }) => {
|
|
284
284
|
assert(body, LoginBody);
|
|
285
285
|
const email = body.email;
|
|
@@ -305,7 +305,7 @@ var PasswordLessAuth = class {
|
|
|
305
305
|
}).map(router.jsonResponse)
|
|
306
306
|
).recover(router.reportError);
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
router;
|
|
309
309
|
users = /* @__PURE__ */ new WeakMap();
|
|
310
310
|
async contextFor(request) {
|
|
311
311
|
return { user: await this.userFor(request) };
|
|
@@ -1,73 +1,50 @@
|
|
|
1
|
-
import { Config,
|
|
1
|
+
import { Config, PageSeed, SyncResponse, Syncable } from 'alinea/core';
|
|
2
2
|
import { EntryRecord } from 'alinea/core/EntryRecord';
|
|
3
3
|
import { Mutation } from 'alinea/core/Mutation';
|
|
4
|
-
import { Driver,
|
|
5
|
-
import {
|
|
4
|
+
import { Driver, Select } from 'rado';
|
|
5
|
+
import { EntryRow } from '../core/EntryRow.js';
|
|
6
6
|
import { Source } from './Source.js';
|
|
7
7
|
import { Store } from './Store.js';
|
|
8
8
|
import { Target } from './Target.js';
|
|
9
|
-
|
|
10
|
-
type Seed = {
|
|
9
|
+
interface Seed {
|
|
11
10
|
type: string;
|
|
12
11
|
workspace: string;
|
|
13
12
|
root: string;
|
|
14
13
|
filePath: string;
|
|
15
14
|
page: PageSeed;
|
|
16
|
-
}
|
|
15
|
+
}
|
|
17
16
|
export declare class Database implements Syncable {
|
|
18
|
-
protected store: Store;
|
|
19
17
|
config: Config;
|
|
18
|
+
store: Store;
|
|
20
19
|
seed: Map<string, Seed>;
|
|
21
|
-
constructor(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
level: number;
|
|
33
|
-
filePath: string;
|
|
34
|
-
parentDir: string;
|
|
35
|
-
childrenDir: string | null;
|
|
36
|
-
index: string;
|
|
37
|
-
parent: string | null;
|
|
38
|
-
i18nId: string;
|
|
39
|
-
locale: string | null;
|
|
40
|
-
modifiedAt: number;
|
|
41
|
-
contentHash: string;
|
|
42
|
-
active: boolean;
|
|
43
|
-
main: boolean;
|
|
44
|
-
path: string;
|
|
45
|
-
url: string;
|
|
46
|
-
data: any;
|
|
47
|
-
searchableText: string;
|
|
48
|
-
}[];
|
|
49
|
-
}>;
|
|
50
|
-
versionIds(): Promise<Array<string>>;
|
|
51
|
-
syncWith(remote: Syncable): Promise<Array<string>>;
|
|
52
|
-
updateEntries(entries: Array<EntryRow>): Promise<void>;
|
|
53
|
-
applyMutations(mutations: Array<Mutation>): Promise<void>;
|
|
20
|
+
constructor(config: Config, store: Store);
|
|
21
|
+
syncRequired(contentHash: string): Promise<boolean>;
|
|
22
|
+
sync(contentHashes: Array<string>): Promise<SyncResponse>;
|
|
23
|
+
contentHashes(): Promise<string[]>;
|
|
24
|
+
syncWith(remote: Syncable, force?: boolean): Promise<Array<string>>;
|
|
25
|
+
applyMutations(mutations: Array<Mutation>, commitHash?: string): Promise<string[]>;
|
|
26
|
+
private applyPublish;
|
|
27
|
+
private updateChildren;
|
|
28
|
+
logEntries(): Promise<void>;
|
|
29
|
+
private applyMutation;
|
|
30
|
+
updateHash(tx: Driver.Async, selection: Select<EntryRow>): Promise<string[]>;
|
|
54
31
|
meta(): Promise<{
|
|
32
|
+
commitHash: string;
|
|
55
33
|
contentHash: string;
|
|
56
34
|
modifiedAt: number;
|
|
57
35
|
}>;
|
|
58
|
-
static index(
|
|
36
|
+
static index(tx: Driver.Async): Promise<{
|
|
59
37
|
rowsAffected: number;
|
|
60
38
|
}>;
|
|
61
39
|
private writeMeta;
|
|
62
40
|
inited: boolean;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
computeEntry(data: EntryRecord, meta: {
|
|
41
|
+
init(): Promise<void>;
|
|
42
|
+
computeEntry(record: EntryRecord, meta: {
|
|
66
43
|
workspace: string;
|
|
67
44
|
root: string;
|
|
68
45
|
filePath: string;
|
|
69
|
-
}, seed?: Seed): Omit<
|
|
46
|
+
}, seed?: Seed): Omit<EntryRow, 'rowHash' | 'fileHash'>;
|
|
70
47
|
seedData(): Map<string, Seed>;
|
|
71
|
-
fill(source: Source, target?: Target): Promise<void>;
|
|
48
|
+
fill(source: Source, commitHash: string, target?: Target): Promise<void>;
|
|
72
49
|
}
|
|
73
50
|
export {};
|