alinea 0.7.1 → 0.8.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/alinea.d.ts +18 -5
- package/dist/alinea.js +12 -13
- package/dist/auth/passwordless/PasswordLessAuth.server.d.ts +3 -1
- package/dist/auth/passwordless/PasswordLessAuth.server.js +3 -1
- package/dist/auth/passwordless/PasswordLessLogin.d.ts +1 -1
- package/dist/auth/passwordless/PasswordLessLogin.js +1 -1
- package/dist/auth/passwordless.d.ts +1 -1
- package/dist/backend/Database.d.ts +3 -1
- package/dist/backend/Database.js +12 -13
- package/dist/backend/Drafts.d.ts +2 -1
- package/dist/backend/Handler.d.ts +6 -2
- package/dist/backend/Handler.js +6 -8
- package/dist/backend/History.d.ts +2 -1
- package/dist/backend/Loader.d.ts +1 -1
- package/dist/backend/Media.d.ts +2 -3
- package/dist/backend/Media.js +0 -16
- package/dist/backend/Pending.d.ts +2 -2
- package/dist/backend/Previews.d.ts +1 -1
- package/dist/backend/Target.d.ts +1 -1
- package/dist/backend/data/ChangeSet.d.ts +2 -1
- package/dist/backend/data/ChangeSet.js +3 -1
- package/dist/backend/data/MemoryHandler.d.ts +3 -2
- package/dist/backend/data/MemoryHandler.js +3 -2
- package/dist/backend/loader/JsonLoader.d.ts +1 -1
- package/dist/backend/resolver/EntryResolver.d.ts +3 -2
- package/dist/backend/resolver/EntryResolver.js +5 -8
- package/dist/backend/resolver/LinkResolver.d.ts +1 -1
- package/dist/backend/resolver/LinkResolver.js +1 -1
- package/dist/backend/test/Example.d.ts +139 -53
- package/dist/backend/test/Example.js +120 -4
- package/dist/backend/test/ExampleTypes.d.ts +5 -5
- package/dist/backend/test/ExampleTypes.js +2 -2
- package/dist/backend/util/JWTPreviews.d.ts +1 -1
- package/dist/chunks/{chunk-533F6JLE.js → chunk-HP3RAFUD.js} +519 -106
- package/dist/chunks/{chunk-2IYXSPPT.js → chunk-JX36FX7R.js} +91 -82
- package/dist/chunks/{chunk-N5R3FLOP.js → chunk-PYIT5GU5.js} +144 -211
- package/dist/cli/Init.js +2 -4
- package/dist/cli/Serve.js +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/CompileConfig.js +1 -0
- package/dist/cli/generate/FillCache.d.ts +1 -1
- package/dist/cli/generate/GenerateDashboard.js +1 -1
- package/dist/cli/generate/GenerateTypes.js +1 -1
- package/dist/cli/generate/LocalData.d.ts +1 -1
- package/dist/cli/generate/LocalData.js +2 -1
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +1 -1
- package/dist/cli/serve/GitHistory.d.ts +1 -1
- package/dist/cli/serve/MemoryDrafts.d.ts +1 -1
- package/dist/cli/static/init/cms.js +21 -19
- package/dist/cloud/server/CloudAuthServer.d.ts +3 -1
- package/dist/cloud/server/CloudAuthServer.js +5 -7
- package/dist/cloud/server/CloudDebugHandler.d.ts +3 -1
- package/dist/cloud/server/CloudDebugHandler.js +1 -1
- package/dist/cloud/server/CloudHandler.d.ts +3 -1
- package/dist/cloud/server/CloudHandler.js +1 -1
- package/dist/cloud/view/CloudAuth.browser.js +1 -1
- package/dist/config.d.ts +11 -0
- package/dist/config.js +27 -0
- package/dist/core/CMS.d.ts +6 -3
- package/dist/core/CMS.js +7 -1
- package/dist/core/Client.d.ts +5 -3
- package/dist/core/Client.js +2 -4
- package/dist/core/Config.d.ts +19 -14
- package/dist/core/Config.js +2 -2
- package/dist/core/Connection.d.ts +1 -8
- package/dist/core/Document.d.ts +7 -6
- package/dist/core/Document.js +29 -23
- package/dist/core/Edit.d.ts +18 -0
- package/dist/core/Edit.js +47 -0
- package/dist/core/Field.d.ts +1 -0
- package/dist/core/Field.js +1 -0
- package/dist/core/Graph.d.ts +6 -6
- package/dist/core/Page.d.ts +1 -1
- package/dist/core/Picker.d.ts +6 -8
- package/dist/core/Picker.js +8 -12
- package/dist/core/Query.d.ts +71 -0
- package/dist/core/Query.js +113 -0
- package/dist/core/Resolver.d.ts +8 -2
- package/dist/core/Root.d.ts +9 -1
- package/dist/core/Root.js +11 -3
- package/dist/core/Schema.d.ts +9 -1
- package/dist/core/Schema.js +2 -2
- package/dist/core/TextDoc.d.ts +1 -1
- package/dist/core/Tracker.d.ts +1 -1
- package/dist/core/Transaction.d.ts +67 -0
- package/dist/core/Transaction.js +387 -0
- package/dist/core/Type.d.ts +27 -7
- package/dist/core/Type.js +28 -13
- package/dist/core/View.d.ts +3 -3
- package/dist/core/Workspace.d.ts +10 -3
- package/dist/core/Workspace.js +22 -6
- package/dist/core/driver/DefaultDriver.d.ts +2 -0
- package/dist/core/driver/DefaultDriver.js +3 -0
- package/dist/core/driver/DefaultDriver.server.d.ts +4 -3
- package/dist/core/driver/DefaultDriver.server.js +20 -8
- package/dist/core/driver/NextDriver.server.js +0 -8
- package/dist/core/driver/TestDriver.js +39 -14
- package/dist/core/field/ListField.d.ts +11 -0
- package/dist/core/field/ListField.js +32 -0
- package/dist/core/field/RichTextField.d.ts +8 -1
- package/dist/core/field/RichTextField.js +1844 -2
- package/dist/core/media/CreatePreview.browser.d.ts +3 -0
- package/dist/core/media/CreatePreview.browser.js +528 -0
- package/dist/core/media/CreatePreview.d.ts +12 -0
- package/dist/core/media/CreatePreview.js +46 -0
- package/dist/core/media/IsImage.d.ts +2 -0
- package/dist/core/media/IsImage.js +22 -0
- package/dist/core/media/MediaRoot.browser.d.ts +0 -1
- package/dist/core/media/MediaRoot.browser.js +10 -14
- package/dist/core/media/MediaRoot.d.ts +0 -2
- package/dist/core/media/MediaRoot.js +6 -15
- package/dist/core/media/MediaTypes.browser.d.ts +29 -0
- package/dist/core/media/MediaTypes.browser.js +63 -0
- package/dist/core/media/MediaTypes.d.ts +24 -0
- package/dist/core/media/MediaTypes.js +41 -0
- package/dist/core/pages/CreateSelection.d.ts +1 -1
- package/dist/core/pages/CreateSelection.js +6 -27
- package/dist/core/pages/Cursor.d.ts +39 -55
- package/dist/core/pages/Cursor.js +129 -67
- package/dist/core/pages/Expr.d.ts +21 -16
- package/dist/core/pages/Expr.js +70 -30
- package/dist/core/pages/Projection.d.ts +2 -2
- package/dist/core/pages/ResolveData.d.ts +226 -0
- package/dist/core/pages/{ExprData.js → ResolveData.js} +131 -4
- package/dist/core/pages/Serialize.d.ts +1 -1
- package/dist/core/pages/Snippet.js +1 -1
- package/dist/core/pages/Target.d.ts +3 -3
- package/dist/core/pages/Target.js +13 -7
- package/dist/core/pages/TargetData.d.ts +1 -1
- package/dist/core/pages/index.d.ts +1 -5
- package/dist/core/pages/index.js +1 -5
- package/dist/core/shape/RichTextShape.d.ts +20 -2
- package/dist/core/shape/RichTextShape.js +20 -0
- package/dist/{backend → core}/util/ContentHash.d.ts +1 -1
- package/dist/{backend → core}/util/ContentHash.js +1 -1
- package/dist/core/{EntryFilenames.d.ts → util/EntryFilenames.d.ts} +3 -3
- package/dist/core/{EntryFilenames.js → util/EntryFilenames.js} +8 -9
- package/dist/core/util/EntryRows.js +4 -4
- package/dist/core/util/Hints.js +1 -1
- package/dist/core.d.ts +1 -38
- package/dist/core.js +1 -38
- package/dist/dashboard/App.d.ts +2 -1
- package/dist/dashboard/App.js +3 -2
- package/dist/dashboard/DashboardProvider.d.ts +2 -1
- package/dist/dashboard/Routes.d.ts +24 -20
- package/dist/dashboard/Routes.js +1 -1
- package/dist/dashboard/atoms/DashboardAtoms.d.ts +4 -3
- package/dist/dashboard/atoms/DashboardAtoms.js +1 -1
- package/dist/dashboard/atoms/DbAtoms.js +4 -4
- package/dist/dashboard/atoms/Edits.d.ts +1 -1
- package/dist/dashboard/atoms/Edits.js +2 -1
- package/dist/dashboard/atoms/EntryAtoms.d.ts +1 -1
- package/dist/dashboard/atoms/EntryAtoms.js +2 -2
- package/dist/dashboard/atoms/EntryDocAtoms.d.ts +1 -0
- package/dist/dashboard/atoms/EntryEditorAtoms.d.ts +10 -3
- package/dist/dashboard/atoms/EntryEditorAtoms.js +9 -13
- package/dist/dashboard/atoms/EntrySummaryAtoms.js +1 -1
- package/dist/dashboard/atoms/FormAtoms.d.ts +3 -1
- package/dist/dashboard/atoms/FormAtoms.js +7 -8
- package/dist/dashboard/atoms/NavigationAtoms.d.ts +4 -3
- package/dist/dashboard/atoms/NavigationAtoms.js +2 -1
- package/dist/dashboard/dev/DevDashboard.d.ts +1 -1
- package/dist/dashboard/editor/InputForm.d.ts +2 -1
- package/dist/dashboard/editor/InputForm.js +3 -1
- package/dist/dashboard/hook/UseConfig.d.ts +1 -1
- package/dist/dashboard/hook/UseExplorer.d.ts +1 -1
- package/dist/dashboard/hook/UseRoot.d.ts +3 -2
- package/dist/dashboard/hook/UseSession.d.ts +1 -1
- package/dist/dashboard/hook/UseUploads.d.ts +2 -1
- package/dist/dashboard/hook/UseUploads.js +13 -533
- package/dist/dashboard/hook/UseWorkspace.d.ts +1 -1
- package/dist/dashboard/pages/ContentView.js +4 -1
- package/dist/dashboard/pages/DraftsOverview.js +1 -1
- package/dist/dashboard/util/PersistentStore.js +1 -1
- package/dist/dashboard/view/EntryEdit.js +7 -5
- package/dist/dashboard/view/EntryTree.js +2 -1
- package/dist/dashboard/view/MediaExplorer.d.ts +1 -1
- package/dist/dashboard/view/MediaExplorer.js +2 -2
- package/dist/dashboard/view/RootOverview.js +1 -2
- package/dist/dashboard/view/SearchBox.js +1 -1
- package/dist/dashboard/view/Sidebar.js +2 -1
- package/dist/dashboard/view/Toolbar.js +7 -5
- package/dist/dashboard/view/WorkspaceLabel.d.ts +1 -2
- package/dist/dashboard/view/diff/DiffUtils.d.ts +1 -1
- package/dist/dashboard/view/diff/EntryDiff.d.ts +1 -1
- package/dist/dashboard/view/diff/EntryDiff.js +1 -1
- package/dist/dashboard/view/diff/FieldDiff.d.ts +5 -2
- package/dist/dashboard/view/diff/FieldDiff.js +20 -5
- package/dist/dashboard/view/diff/FieldsDiff.d.ts +1 -1
- package/dist/dashboard/view/diff/FieldsDiff.js +1 -0
- package/dist/dashboard/view/diff/ListDiff.d.ts +4 -1
- package/dist/dashboard/view/diff/ListDiff.js +1 -2
- package/dist/dashboard/view/diff/RichTextDiff.d.ts +6 -2
- package/dist/dashboard/view/diff/RichTextDiff.js +6 -2
- package/dist/dashboard/view/entry/EntryHeader.js +2 -2
- package/dist/dashboard/view/entry/EntryPreview.d.ts +2 -1
- package/dist/dashboard/view/entry/EntrySummary.d.ts +4 -4
- package/dist/dashboard/view/entry/EntrySummary.js +3 -1
- package/dist/dashboard/view/entry/EntryTitle.js +2 -1
- package/dist/dashboard/view/entry/NewEntry.js +18 -19
- package/dist/dashboard/view/explorer/Explorer.d.ts +1 -1
- package/dist/dashboard/view/explorer/Explorer.js +1 -1
- package/dist/dashboard/view/explorer/ExplorerItem.d.ts +2 -1
- package/dist/dashboard/view/explorer/ExplorerItem.js +3 -3
- package/dist/dashboard/view/explorer/ExplorerRow.d.ts +3 -1
- package/dist/dashboard/view/media/FileEntry.d.ts +4 -1
- package/dist/dashboard/view/media/FileEntry.js +12 -12
- package/dist/dashboard/view/media/FileSummary.d.ts +5 -48
- package/dist/dashboard/view/media/FileSummary.js +45 -78
- package/dist/dashboard/view/media/MediaThumbnail.js +1 -2
- package/dist/dashboard/view/sidebar/SidebarSettings.js +2 -2
- package/dist/{input → field}/check/CheckField.browser.js +16 -16
- package/dist/{input → field}/check/CheckField.d.ts +2 -4
- package/dist/{input → field}/check/CheckField.js +2 -2
- package/dist/field/check.d.ts +1 -0
- package/dist/field/check.js +2 -0
- package/dist/{input → field}/code/CodeField.browser.js +7 -7
- package/dist/{input → field}/code/CodeField.js +1 -1
- package/dist/field/code.d.ts +1 -0
- package/dist/field/code.js +2 -0
- package/dist/{input → field}/date/DateField.browser.js +7 -7
- package/dist/{input → field}/date/DateField.js +1 -1
- package/dist/field/date.d.ts +1 -0
- package/dist/field/date.js +2 -0
- package/dist/{input → field}/hidden/HiddenField.js +1 -1
- package/dist/{input → field}/hidden.js +1 -1
- package/dist/{input → field}/json/JsonField.browser.js +9 -9
- package/dist/{input → field}/json/JsonField.js +1 -1
- package/dist/field/json.d.ts +1 -0
- package/dist/field/json.js +2 -0
- package/dist/{input → field}/link/LinkConstructors.d.ts +17 -17
- package/dist/{input → field}/link/LinkConstructors.js +7 -7
- package/dist/{input → field}/link/LinkField.browser.js +19 -19
- package/dist/{input → field}/link/LinkField.d.ts +4 -2
- package/dist/{input → field}/link/LinkField.js +2 -2
- package/dist/field/link.d.ts +1 -0
- package/dist/field/link.js +2 -0
- package/dist/{input → field}/list/ListField.browser.d.ts +2 -1
- package/dist/{input → field}/list/ListField.browser.js +25 -24
- package/dist/{input → field}/list/ListField.d.ts +2 -1
- package/dist/{input → field}/list/ListField.js +2 -2
- package/dist/field/list.d.ts +1 -0
- package/dist/field/list.js +2 -0
- package/dist/{input → field}/metadata/MetadataField.browser.js +1 -1
- package/dist/{input → field}/metadata/MetadataField.d.ts +4 -3
- package/dist/{input → field}/metadata/MetadataField.js +5 -5
- package/dist/field/metadata.d.ts +1 -0
- package/dist/field/metadata.js +2 -0
- package/dist/{input → field}/number/NumberField.browser.js +7 -7
- package/dist/{input → field}/number/NumberField.js +1 -1
- package/dist/field/number.d.ts +1 -0
- package/dist/field/number.js +2 -0
- package/dist/{input → field}/object/ObjectField.browser.js +2 -2
- package/dist/field/object/ObjectField.d.ts +15 -0
- package/dist/field/object/ObjectField.js +18 -0
- package/dist/field/object.d.ts +1 -0
- package/dist/field/object.js +2 -0
- package/dist/{input → field}/path/PathField.browser.js +17 -15
- package/dist/{input → field}/path/PathField.js +1 -1
- package/dist/field/path.d.ts +1 -0
- package/dist/field/path.js +2 -0
- package/dist/{input → field}/richtext/PickTextLink.d.ts +1 -1
- package/dist/{input → field}/richtext/PickTextLink.js +8 -7
- package/dist/{input → field}/richtext/ReferenceLink.js +2 -2
- package/dist/{input → field}/richtext/RichTextField.browser.d.ts +1 -1
- package/dist/{input → field}/richtext/RichTextField.browser.js +49 -18
- package/dist/{input → field}/richtext/RichTextField.d.ts +3 -1
- package/dist/{input → field}/richtext/RichTextField.js +2 -2
- package/dist/{input → field}/richtext/RichTextKit.js +5 -5
- package/dist/{input → field}/richtext/RichTextToolbar.js +3 -3
- package/dist/{input → field}/richtext/extensions/Link.js +2 -2
- package/dist/{input → field}/richtext/extensions/Small.js +2 -2
- package/dist/field/richtext.d.ts +1 -0
- package/dist/field/richtext.js +2 -0
- package/dist/{input → field}/select/SelectField.browser.js +33 -33
- package/dist/{input → field}/select/SelectField.d.ts +8 -5
- package/dist/{input → field}/select/SelectField.js +4 -3
- package/dist/field/select.d.ts +1 -0
- package/dist/field/select.js +2 -0
- package/dist/{input → field}/tabs/Tabs.browser.d.ts +1 -1
- package/dist/{input → field}/tabs/Tabs.browser.js +3 -2
- package/dist/{input → field}/tabs/Tabs.d.ts +4 -1
- package/dist/{input → field}/tabs/Tabs.js +4 -6
- package/dist/field/tabs.d.ts +1 -0
- package/dist/field/tabs.js +2 -0
- package/dist/{input → field}/text/TextField.browser.js +7 -7
- package/dist/{input → field}/text/TextField.js +1 -1
- package/dist/field/text.d.ts +1 -0
- package/dist/field/text.js +2 -0
- package/dist/{input → field}/view/View.browser.js +2 -2
- package/dist/{input → field}/view/View.d.ts +3 -2
- package/dist/{input → field}/view/View.js +2 -2
- package/dist/field/view.d.ts +1 -0
- package/dist/field/view.js +2 -0
- package/dist/field.d.ts +20 -0
- package/dist/field.js +45 -0
- package/dist/index.css +81 -81
- package/dist/index.d.ts +5 -1
- package/dist/index.js +9 -1
- package/dist/picker/entry/EntryPicker.browser.d.ts +1 -1
- package/dist/picker/entry/EntryPicker.browser.js +50 -34
- package/dist/picker/entry/EntryPicker.d.ts +28 -24
- package/dist/picker/entry/EntryPicker.js +6 -5
- package/dist/picker/entry/EntryPickerRow.js +1 -1
- package/dist/picker/url/UrlPicker.browser.d.ts +1 -1
- package/dist/picker/url/UrlPicker.browser.js +25 -17
- package/dist/picker/url/UrlPicker.d.ts +3 -3
- package/dist/picker/url/UrlPicker.js +4 -3
- package/dist/types.d.ts +9 -0
- package/dist/types.js +9 -0
- package/dist/ui/Avatar.d.ts +1 -1
- package/dist/ui/Avatar.js +1 -1
- package/dist/ui/Lift.js +1 -1
- package/dist/ui/RichText.d.ts +5 -20
- package/dist/ui/RichText.js +1 -21
- package/dist/ui/TextLabel.d.ts +1 -2
- package/dist/ui/TextLabel.js +0 -2
- package/dist/ui/icons/IcRoundPermMedia.d.ts +0 -1
- package/dist/ui/icons/IcRoundPermMedia.js +1 -3
- package/dist/ui/util/Styler.js +2 -0
- package/package.json +91 -82
- package/dist/core/Edits.test.d.ts +0 -0
- package/dist/core/media/MediaSchema.browser.d.ts +0 -28
- package/dist/core/media/MediaSchema.browser.js +0 -43
- package/dist/core/media/MediaSchema.d.ts +0 -47
- package/dist/core/media/MediaSchema.js +0 -49
- package/dist/core/pages/CreateExprData.d.ts +0 -2
- package/dist/core/pages/CreateExprData.js +0 -24
- package/dist/core/pages/ExprData.d.ts +0 -102
- package/dist/core/pages/Selection.d.ts +0 -76
- package/dist/core/pages/Selection.js +0 -75
- package/dist/core/pages/SelectionVisitor.d.ts +0 -8
- package/dist/core/pages/SelectionVisitor.js +0 -0
- package/dist/core/pages/Tree.d.ts +0 -22
- package/dist/core/pages/Tree.js +0 -55
- package/dist/core/util/EntryRows.test.d.ts +0 -0
- package/dist/input/check.d.ts +0 -1
- package/dist/input/check.js +0 -2
- package/dist/input/code.d.ts +0 -1
- package/dist/input/code.js +0 -2
- package/dist/input/date.d.ts +0 -1
- package/dist/input/date.js +0 -2
- package/dist/input/json.d.ts +0 -1
- package/dist/input/json.js +0 -2
- package/dist/input/link.d.ts +0 -1
- package/dist/input/link.js +0 -2
- package/dist/input/list.d.ts +0 -1
- package/dist/input/list.js +0 -2
- package/dist/input/metadata.d.ts +0 -1
- package/dist/input/metadata.js +0 -2
- package/dist/input/number.d.ts +0 -1
- package/dist/input/number.js +0 -2
- package/dist/input/object/ObjectField.d.ts +0 -12
- package/dist/input/object/ObjectField.js +0 -17
- package/dist/input/object.d.ts +0 -1
- package/dist/input/object.js +0 -2
- package/dist/input/path.d.ts +0 -1
- package/dist/input/path.js +0 -2
- package/dist/input/richtext.d.ts +0 -1
- package/dist/input/richtext.js +0 -2
- package/dist/input/select.d.ts +0 -1
- package/dist/input/select.js +0 -2
- package/dist/input/tabs.d.ts +0 -1
- package/dist/input/tabs.js +0 -2
- package/dist/input/text.d.ts +0 -1
- package/dist/input/text.js +0 -2
- package/dist/input/view.d.ts +0 -1
- package/dist/input/view.js +0 -2
- package/dist/input.d.ts +0 -20
- package/dist/input.js +0 -45
- /package/dist/{input → field}/check/CheckField.browser.d.ts +0 -0
- /package/dist/{input → field}/check/CheckField.stories.d.ts +0 -0
- /package/dist/{input → field}/code/CodeField.browser.d.ts +0 -0
- /package/dist/{input → field}/code/CodeField.d.ts +0 -0
- /package/dist/{input → field}/code/CodeField.stories.d.ts +0 -0
- /package/dist/{input → field}/date/DateField.browser.d.ts +0 -0
- /package/dist/{input → field}/date/DateField.d.ts +0 -0
- /package/dist/{input → field}/date/DateField.stories.d.ts +0 -0
- /package/dist/{input → field}/hidden/HiddenField.d.ts +0 -0
- /package/dist/{input → field}/hidden.d.ts +0 -0
- /package/dist/{input → field}/json/JsonField.browser.d.ts +0 -0
- /package/dist/{input → field}/json/JsonField.d.ts +0 -0
- /package/dist/{input → field}/json/JsonField.stories.d.ts +0 -0
- /package/dist/{input → field}/link/LinkField.browser.d.ts +0 -0
- /package/dist/{input → field}/link/LinkInput.stories.d.ts +0 -0
- /package/dist/{input → field}/list/ListField.stories.d.ts +0 -0
- /package/dist/{input → field}/metadata/MetadataField.browser.d.ts +0 -0
- /package/dist/{input → field}/metadata/MetadataField.stories.d.ts +0 -0
- /package/dist/{input → field}/number/NumberField.browser.d.ts +0 -0
- /package/dist/{input → field}/number/NumberField.d.ts +0 -0
- /package/dist/{input → field}/number/NumberField.stories.d.ts +0 -0
- /package/dist/{input → field}/object/ObjectField.browser.d.ts +0 -0
- /package/dist/{input → field}/object/ObjectField.stories.d.ts +0 -0
- /package/dist/{input → field}/path/PathField.browser.d.ts +0 -0
- /package/dist/{input → field}/path/PathField.d.ts +0 -0
- /package/dist/{input → field}/path/PathField.stories.d.ts +0 -0
- /package/dist/{input → field}/richtext/ReferenceLink.d.ts +0 -0
- /package/dist/{input → field}/richtext/RichText.stories.d.ts +0 -0
- /package/dist/{input → field}/richtext/RichTextKit.d.ts +0 -0
- /package/dist/{input → field}/richtext/RichTextToolbar.d.ts +0 -0
- /package/dist/{input → field}/richtext/extensions/Link.d.ts +0 -0
- /package/dist/{input → field}/richtext/extensions/Small.d.ts +0 -0
- /package/dist/{input → field}/select/SelectField.browser.d.ts +0 -0
- /package/dist/{input → field}/select/SelectField.stories.d.ts +0 -0
- /package/dist/{input → field}/tabs/Tabs.stories.d.ts +0 -0
- /package/dist/{input → field}/text/TextField.browser.d.ts +0 -0
- /package/dist/{input → field}/text/TextField.d.ts +0 -0
- /package/dist/{input → field}/text/TextField.stories.d.ts +0 -0
- /package/dist/{input → field}/view/View.browser.d.ts +0 -0
package/dist/alinea.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
export { createConfig as config
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
1
|
+
export { createConfig as config } from 'alinea/core/Config';
|
|
2
|
+
export { Meta as meta } from 'alinea/core/Meta';
|
|
3
|
+
export { page } from 'alinea/core/Page';
|
|
4
|
+
export { root } from 'alinea/core/Root';
|
|
5
|
+
export { schema } from 'alinea/core/Schema';
|
|
6
|
+
export { track } from 'alinea/core/Tracker';
|
|
7
|
+
export { type } from 'alinea/core/Type';
|
|
8
|
+
export { workspace } from 'alinea/core/Workspace';
|
|
9
|
+
export { snippet } from 'alinea/core/pages/Snippet';
|
|
10
|
+
export type { Config } from 'alinea/core/Config';
|
|
11
|
+
export type { Infer } from 'alinea/core/Infer';
|
|
12
|
+
export { Root } from 'alinea/core/Root';
|
|
13
|
+
export type { Schema } from 'alinea/core/Schema';
|
|
14
|
+
export type { TextDoc } from 'alinea/core/TextDoc';
|
|
15
|
+
export type { Type } from 'alinea/core/Type';
|
|
16
|
+
export { Workspace } from 'alinea/core/Workspace';
|
|
4
17
|
export type { EntryReference, FileReference, ImageReference } from 'alinea/picker/entry/EntryReference';
|
|
5
18
|
export type { UrlReference } from 'alinea/picker/url';
|
|
6
|
-
export type { Infer as infer } from 'alinea/core';
|
|
7
19
|
export { document } from 'alinea/core/Document';
|
|
20
|
+
export type { Infer as infer } from 'alinea/core/Infer';
|
|
8
21
|
export { createMediaRoot as media } from 'alinea/core/media/MediaRoot';
|
|
9
|
-
export * from './
|
|
22
|
+
export * from './field.js';
|
package/dist/alinea.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import "./chunks/chunk-U5RRZUYZ.js";
|
|
2
2
|
|
|
3
3
|
// src/alinea.ts
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "alinea/core";
|
|
15
|
-
import { Root, Workspace } from "alinea/core";
|
|
4
|
+
import { createConfig } from "alinea/core/Config";
|
|
5
|
+
import { Meta } from "alinea/core/Meta";
|
|
6
|
+
import { page } from "alinea/core/Page";
|
|
7
|
+
import { root } from "alinea/core/Root";
|
|
8
|
+
import { schema } from "alinea/core/Schema";
|
|
9
|
+
import { track } from "alinea/core/Tracker";
|
|
10
|
+
import { type } from "alinea/core/Type";
|
|
11
|
+
import { workspace } from "alinea/core/Workspace";
|
|
12
|
+
import { snippet } from "alinea/core/pages/Snippet";
|
|
13
|
+
import { Root } from "alinea/core/Root";
|
|
14
|
+
import { Workspace } from "alinea/core/Workspace";
|
|
16
15
|
import { document } from "alinea/core/Document";
|
|
17
16
|
import { createMediaRoot } from "alinea/core/media/MediaRoot";
|
|
18
|
-
export * from "./
|
|
17
|
+
export * from "./field.js";
|
|
19
18
|
export {
|
|
20
19
|
Root,
|
|
21
20
|
Workspace,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Route } from 'alinea/backend/router/Router';
|
|
2
|
-
import { Auth
|
|
2
|
+
import { Auth } from 'alinea/core/Auth';
|
|
3
|
+
import { Connection } from 'alinea/core/Connection';
|
|
4
|
+
import { User } from 'alinea/core/User';
|
|
3
5
|
import type { Transporter } from 'nodemailer';
|
|
4
6
|
export type PasswordLessAuthOptions = {
|
|
5
7
|
dashboardUrl: string;
|
|
@@ -2,7 +2,9 @@ import "../../chunks/chunk-U5RRZUYZ.js";
|
|
|
2
2
|
|
|
3
3
|
// src/auth/passwordless/PasswordLessAuth.server.ts
|
|
4
4
|
import { router } from "alinea/backend/router/Router";
|
|
5
|
-
import { Connection
|
|
5
|
+
import { Connection } from "alinea/core/Connection";
|
|
6
|
+
import { HttpError } from "alinea/core/HttpError";
|
|
7
|
+
import { Outcome } from "alinea/core/Outcome";
|
|
6
8
|
import { sign, verify } from "alinea/core/util/JWT";
|
|
7
9
|
|
|
8
10
|
// node_modules/superstruct/dist/index.mjs
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Auth } from 'alinea/core';
|
|
1
|
+
import { Auth } from 'alinea/core/Auth';
|
|
2
2
|
export declare function PasswordLessLogin({ setSession }: Auth.ViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../chunks/chunk-U5RRZUYZ.js";
|
|
2
2
|
|
|
3
3
|
// src/auth/passwordless/PasswordLessLogin.tsx
|
|
4
|
-
import { Connection } from "alinea/core";
|
|
5
4
|
import { Client } from "alinea/core/Client";
|
|
5
|
+
import { Connection } from "alinea/core/Connection";
|
|
6
6
|
import { decode } from "alinea/core/util/JWT";
|
|
7
7
|
import { joinPaths } from "alinea/core/util/Urls";
|
|
8
8
|
import { useDashboard } from "alinea/dashboard/hook/UseDashboard";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PasswordLessAuthOptions } from 'alinea/auth/passwordless/PasswordLessAuth';
|
|
2
|
-
import { Auth } from 'alinea/core';
|
|
2
|
+
import type { Auth } from 'alinea/core/Auth';
|
|
3
3
|
export type PasswordLess = PasswordLessAuthOptions;
|
|
4
4
|
export declare const passwordLess: Auth<PasswordLessAuthOptions>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { Config
|
|
1
|
+
import { Config } from 'alinea/core/Config';
|
|
2
|
+
import { SyncResponse, Syncable } from 'alinea/core/Connection';
|
|
2
3
|
import { EntryRecord } from 'alinea/core/EntryRecord';
|
|
3
4
|
import { Mutation } from 'alinea/core/Mutation';
|
|
5
|
+
import { PageSeed } from 'alinea/core/Page';
|
|
4
6
|
import { Driver, Select } from 'rado';
|
|
5
7
|
import { EntryRow } from '../core/EntryRow.js';
|
|
6
8
|
import { Source } from './Source.js';
|
package/dist/backend/Database.js
CHANGED
|
@@ -12,29 +12,28 @@ import {
|
|
|
12
12
|
import "../chunks/chunk-U5RRZUYZ.js";
|
|
13
13
|
|
|
14
14
|
// src/backend/Database.ts
|
|
15
|
-
import { JsonLoader, Media } from "alinea/backend";
|
|
16
|
-
import {
|
|
17
|
-
PageSeed,
|
|
18
|
-
Root,
|
|
19
|
-
Schema,
|
|
20
|
-
Type,
|
|
21
|
-
Workspace,
|
|
22
|
-
createId,
|
|
23
|
-
slugify,
|
|
24
|
-
unreachable
|
|
25
|
-
} from "alinea/core";
|
|
26
|
-
import { entryInfo, entryUrl } from "alinea/core/EntryFilenames";
|
|
27
15
|
import { EntryRecord, META_KEY, createRecord } from "alinea/core/EntryRecord";
|
|
16
|
+
import { createId } from "alinea/core/Id";
|
|
28
17
|
import { MutationType } from "alinea/core/Mutation";
|
|
18
|
+
import { PageSeed } from "alinea/core/Page";
|
|
19
|
+
import { Root } from "alinea/core/Root";
|
|
20
|
+
import { Schema } from "alinea/core/Schema";
|
|
21
|
+
import { Type } from "alinea/core/Type";
|
|
22
|
+
import { Workspace } from "alinea/core/Workspace";
|
|
23
|
+
import { createFileHash, createRowHash } from "alinea/core/util/ContentHash";
|
|
24
|
+
import { entryInfo, entryUrl } from "alinea/core/util/EntryFilenames";
|
|
29
25
|
import { createEntryRow, publishEntryRow } from "alinea/core/util/EntryRows";
|
|
30
26
|
import { Logger } from "alinea/core/util/Logger";
|
|
31
27
|
import { entries } from "alinea/core/util/Objects";
|
|
32
28
|
import * as paths from "alinea/core/util/Paths";
|
|
29
|
+
import { slugify } from "alinea/core/util/Slugs";
|
|
30
|
+
import { unreachable } from "alinea/core/util/Types";
|
|
33
31
|
import { EntryPhase, EntryRow } from "../core/EntryRow.js";
|
|
32
|
+
import { Media } from "./Media.js";
|
|
34
33
|
import { ChangeSetCreator } from "./data/ChangeSet.js";
|
|
35
34
|
import { AlineaMeta } from "./db/AlineaMeta.js";
|
|
36
35
|
import { createEntrySearch } from "./db/CreateEntrySearch.js";
|
|
37
|
-
import {
|
|
36
|
+
import { JsonLoader } from "./loader/JsonLoader.js";
|
|
38
37
|
var Database = class _Database {
|
|
39
38
|
constructor(config, store) {
|
|
40
39
|
this.config = config;
|
package/dist/backend/Drafts.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Request, Response } from '@alinea/iso';
|
|
2
|
-
import { Auth
|
|
2
|
+
import { Auth } from 'alinea/core/Auth';
|
|
3
|
+
import { Config } from 'alinea/core/Config';
|
|
4
|
+
import { Connection } from 'alinea/core/Connection';
|
|
5
|
+
import { EntryPhase } from 'alinea/core/EntryRow';
|
|
6
|
+
import { PreviewUpdate, ResolveDefaults, ResolveParams, Resolver } from 'alinea/core/Resolver';
|
|
3
7
|
import { Database } from './Database.js';
|
|
4
8
|
import { Drafts } from './Drafts.js';
|
|
5
9
|
import { History } from './History.js';
|
|
@@ -31,7 +35,7 @@ export declare class Handler implements Resolver {
|
|
|
31
35
|
protected lastSync: number;
|
|
32
36
|
protected resolver: EntryResolver;
|
|
33
37
|
constructor(options: HandlerOptions);
|
|
34
|
-
resolve: (params:
|
|
38
|
+
resolve: (params: ResolveParams) => Promise<unknown>;
|
|
35
39
|
protected previewAuth(): Connection.Context;
|
|
36
40
|
parsePreview(preview: PreviewUpdate): Promise<{
|
|
37
41
|
path: string;
|
package/dist/backend/Handler.js
CHANGED
|
@@ -16,17 +16,15 @@ import {
|
|
|
16
16
|
import "../chunks/chunk-U5RRZUYZ.js";
|
|
17
17
|
|
|
18
18
|
// src/backend/Handler.ts
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
parseYDoc
|
|
25
|
-
} from "alinea/core";
|
|
19
|
+
import { Auth } from "alinea/core/Auth";
|
|
20
|
+
import { Connection } from "alinea/core/Connection";
|
|
21
|
+
import { parseYDoc } from "alinea/core/Doc";
|
|
22
|
+
import { Entry } from "alinea/core/Entry";
|
|
23
|
+
import { EntryPhase } from "alinea/core/EntryRow";
|
|
26
24
|
import { MutationType } from "alinea/core/Mutation";
|
|
27
25
|
import { createSelection } from "alinea/core/pages/CreateSelection";
|
|
28
26
|
import { Realm } from "alinea/core/pages/Realm";
|
|
29
|
-
import { Selection } from "alinea/core/pages/
|
|
27
|
+
import { Selection } from "alinea/core/pages/ResolveData";
|
|
30
28
|
import { base64, base64url } from "alinea/core/util/Encoding";
|
|
31
29
|
import { Logger, Report } from "alinea/core/util/Logger";
|
|
32
30
|
import * as Y from "alinea/yjs";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import { Connection } from 'alinea/core/Connection';
|
|
2
2
|
import { EntryRecord } from 'alinea/core/EntryRecord';
|
|
3
|
+
import { User } from 'alinea/core/User';
|
|
3
4
|
export interface Revision {
|
|
4
5
|
ref: string;
|
|
5
6
|
createdAt: number;
|
package/dist/backend/Loader.d.ts
CHANGED
package/dist/backend/Media.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import type { Connection } from 'alinea/core/Connection';
|
|
2
|
+
import type { EntryRow } from 'alinea/core/EntryRow';
|
|
2
3
|
export interface Media {
|
|
3
4
|
prepareUpload(file: string, ctx: Connection.Context): Promise<Connection.UploadResponse>;
|
|
4
5
|
}
|
|
@@ -24,7 +25,5 @@ export declare namespace Media {
|
|
|
24
25
|
export const ORIGINAL_LOCATION = "@alinea.location";
|
|
25
26
|
export type File = EntryRow<FileProperties & Partial<ImageProperties>>;
|
|
26
27
|
export type Image = EntryRow<FileProperties & ImageProperties>;
|
|
27
|
-
export const imageExtensions: string[];
|
|
28
|
-
export function isImage(pathOrExtension: string): boolean | "" | undefined;
|
|
29
28
|
export {};
|
|
30
29
|
}
|
package/dist/backend/Media.js
CHANGED
|
@@ -4,22 +4,6 @@ import "../chunks/chunk-U5RRZUYZ.js";
|
|
|
4
4
|
var Media;
|
|
5
5
|
((Media2) => {
|
|
6
6
|
Media2.ORIGINAL_LOCATION = "@alinea.location";
|
|
7
|
-
Media2.imageExtensions = [
|
|
8
|
-
".jpg",
|
|
9
|
-
".jpeg",
|
|
10
|
-
".png",
|
|
11
|
-
".gif",
|
|
12
|
-
".bmp",
|
|
13
|
-
".webp",
|
|
14
|
-
".avif",
|
|
15
|
-
".heic",
|
|
16
|
-
".svg"
|
|
17
|
-
];
|
|
18
|
-
function isImage(pathOrExtension) {
|
|
19
|
-
const extension = pathOrExtension.toLowerCase().split(".").pop();
|
|
20
|
-
return extension && Media2.imageExtensions.includes(`.${extension}`);
|
|
21
|
-
}
|
|
22
|
-
Media2.isImage = isImage;
|
|
23
7
|
})(Media || (Media = {}));
|
|
24
8
|
export {
|
|
25
9
|
Media
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Connection } from 'alinea/core';
|
|
2
|
-
import { Mutation } from 'alinea/core/Mutation';
|
|
1
|
+
import type { Connection } from 'alinea/core/Connection';
|
|
2
|
+
import type { Mutation } from 'alinea/core/Mutation';
|
|
3
3
|
export interface Pending {
|
|
4
4
|
pendingSince(commitHash: string, ctx: Connection.Context): Promise<{
|
|
5
5
|
toCommitHash: string;
|
package/dist/backend/Target.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Config
|
|
1
|
+
import { Config } from 'alinea/core/Config';
|
|
2
2
|
import { ArchiveMutation, CreateMutation, DiscardDraftMutation, EditMutation, FileRemoveMutation, MoveMutation, Mutation, OrderMutation, PatchMutation, PublishMutation, RemoveEntryMutation, UploadMutation } from 'alinea/core/Mutation';
|
|
3
|
+
import { EntryUrlMeta } from 'alinea/core/Type';
|
|
3
4
|
export declare enum ChangeType {
|
|
4
5
|
Write = "write",
|
|
5
6
|
Rename = "rename",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import "../../chunks/chunk-U5RRZUYZ.js";
|
|
2
2
|
|
|
3
3
|
// src/backend/data/ChangeSet.ts
|
|
4
|
-
import { EntryPhase, Type, Workspace } from "alinea/core";
|
|
5
4
|
import { META_KEY, createRecord } from "alinea/core/EntryRecord";
|
|
5
|
+
import { EntryPhase } from "alinea/core/EntryRow";
|
|
6
6
|
import {
|
|
7
7
|
MutationType
|
|
8
8
|
} from "alinea/core/Mutation";
|
|
9
|
+
import { Type } from "alinea/core/Type";
|
|
10
|
+
import { Workspace } from "alinea/core/Workspace";
|
|
9
11
|
import { join } from "alinea/core/util/Paths";
|
|
10
12
|
import { JsonLoader } from "../loader/JsonLoader.js";
|
|
11
13
|
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Config } from 'alinea/core/Config';
|
|
2
|
+
import { Database } from '../Database.js';
|
|
3
|
+
import { Handler } from '../Handler.js';
|
|
3
4
|
export declare function createMemoryHandler(config: Config, db: Database): Handler;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../../chunks/chunk-U5RRZUYZ.js";
|
|
2
2
|
|
|
3
3
|
// src/backend/data/MemoryHandler.ts
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { createId } from "alinea/core/Id";
|
|
5
|
+
import { Handler } from "../Handler.js";
|
|
6
|
+
import { JWTPreviews } from "../util/JWTPreviews.js";
|
|
6
7
|
var MemoryApi = class {
|
|
7
8
|
constructor(config, db) {
|
|
8
9
|
this.config = config;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Loader } from '../Loader.js';
|
|
1
|
+
import type { Loader } from '../Loader.js';
|
|
2
2
|
export declare const JsonLoader: Loader;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Connection, PreviewUpdate, ResolveDefaults, Schema } from 'alinea/core';
|
|
2
1
|
import { EntryRow, EntryTable } from 'alinea/core/EntryRow';
|
|
2
|
+
import { PreviewUpdate, ResolveDefaults, ResolveParams } from 'alinea/core/Resolver';
|
|
3
|
+
import { Schema } from 'alinea/core/Schema';
|
|
3
4
|
import type * as pages from 'alinea/core/pages';
|
|
4
5
|
import { Realm } from 'alinea/core/pages/Realm';
|
|
5
6
|
import { Expr, ExprData, OrderBy, QueryData, Select, Table } from 'rado';
|
|
@@ -52,6 +53,6 @@ export declare class EntryResolver {
|
|
|
52
53
|
postFieldsOf(ctx: PostContext, interim: Interim, target: pages.TargetData): Promise<void>;
|
|
53
54
|
postRecord(ctx: PostContext, interim: Interim, { fields }: pages.Selection.Record): Promise<void>;
|
|
54
55
|
post(ctx: PostContext, interim: Interim, selection: pages.Selection): Promise<void>;
|
|
55
|
-
resolve: <T>({ selection, location, locale, realm, preview }:
|
|
56
|
+
resolve: <T>({ selection, location, locale, realm, preview }: ResolveParams) => Promise<T>;
|
|
56
57
|
}
|
|
57
58
|
export {};
|
|
@@ -19,18 +19,15 @@ import {
|
|
|
19
19
|
import "../../chunks/chunk-U5RRZUYZ.js";
|
|
20
20
|
|
|
21
21
|
// src/backend/resolver/EntryResolver.ts
|
|
22
|
-
import {
|
|
23
|
-
Field,
|
|
24
|
-
Schema,
|
|
25
|
-
Type,
|
|
26
|
-
unreachable
|
|
27
|
-
} from "alinea/core";
|
|
28
22
|
import { EntryPhase, EntryRow } from "alinea/core/EntryRow";
|
|
29
23
|
import { EntrySearch } from "alinea/core/EntrySearch";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
24
|
+
import { Field } from "alinea/core/Field";
|
|
25
|
+
import { Schema } from "alinea/core/Schema";
|
|
26
|
+
import { Type } from "alinea/core/Type";
|
|
32
27
|
import { Realm } from "alinea/core/pages/Realm";
|
|
28
|
+
import { BinaryOp, SourceType, UnaryOp } from "alinea/core/pages/ResolveData";
|
|
33
29
|
import { entries, fromEntries, keys } from "alinea/core/util/Objects";
|
|
30
|
+
import { unreachable } from "alinea/core/util/Types";
|
|
34
31
|
import { Database } from "../Database.js";
|
|
35
32
|
import { LinkResolver } from "./LinkResolver.js";
|
|
36
33
|
import { ResolveContext } from "./ResolveContext.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
// src/backend/resolver/LinkResolver.ts
|
|
12
12
|
var import_dataloader = __toESM(require_dataloader(), 1);
|
|
13
|
-
import { Entry } from "alinea/core";
|
|
13
|
+
import { Entry } from "alinea/core/Entry";
|
|
14
14
|
import { createSelection } from "alinea/core/pages/CreateSelection";
|
|
15
15
|
import { serializeSelection } from "alinea/core/pages/Serialize";
|
|
16
16
|
import { ResolveContext } from "./ResolveContext.js";
|
|
@@ -1,72 +1,158 @@
|
|
|
1
1
|
export declare function createExample(): {
|
|
2
2
|
schema: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
Fields: import("alinea/core/Type").Type<{
|
|
4
|
+
title: import("../../field/text").TextField;
|
|
5
|
+
path: import("../../field/path").PathField;
|
|
6
|
+
metadata: import("../../field/metadata").MetadataField;
|
|
7
|
+
} & {
|
|
8
|
+
text: import("../../field/text").TextField;
|
|
9
|
+
hello: import("../../field/text").TextField;
|
|
10
|
+
richText: import("../../core").RichTextField<{}, import("../../field/richtext").RichTextOptions<{}>>;
|
|
11
|
+
select: import("../../field/select").SelectField<"a" | "b">;
|
|
12
|
+
number: import("../../field/number").NumberField;
|
|
13
|
+
check: import("../../field/check").CheckField;
|
|
14
|
+
date: import("../../field/date").DateField;
|
|
15
|
+
code: import("../../field/code").CodeField;
|
|
16
|
+
externalLink: import("../../field/link/LinkField").LinkField<import("../..").UrlReference & {}>;
|
|
17
|
+
entry: import("../../field/link/LinkField").LinkField<import("../..").EntryReference & {}>;
|
|
18
|
+
entryWithCondition: import("../../field/link/LinkField").LinkField<import("../..").EntryReference & {}>;
|
|
19
|
+
linkMultiple: import("../../field/link/LinkField").LinksField<(import("../..").EntryReference & {} & import("../../core/shape/ListShape").ListRow) | (import("../..").UrlReference & {} & import("../../core/shape/ListShape").ListRow)>;
|
|
20
|
+
image: import("../../field/link/LinkField").LinkField<import("../..").ImageReference & {}>;
|
|
21
|
+
images: import("../../field/link/LinkField").LinksField<import("../..").ImageReference & {} & import("../../core/shape/ListShape").ListRow>;
|
|
22
|
+
file: import("../../field/link/LinkField").LinkField<import("../..").EntryReference & {}>;
|
|
23
|
+
withFields: import("../../field/link/LinkField").LinkField<(import("../..").EntryReference & {
|
|
24
|
+
fieldA: string;
|
|
25
|
+
fieldB: string;
|
|
26
|
+
}) | (import("../..").UrlReference & {
|
|
27
|
+
fieldA: string;
|
|
28
|
+
fieldB: string;
|
|
29
|
+
}) | (import("../..").FileReference & {
|
|
30
|
+
fieldA: string;
|
|
31
|
+
fieldB: string;
|
|
32
|
+
})>;
|
|
33
|
+
multipleWithFields: import("../../field/link/LinkField").LinksField<(import("../..").EntryReference & {
|
|
34
|
+
fieldA: string;
|
|
35
|
+
fieldB: string;
|
|
36
|
+
} & import("../../core/shape/ListShape").ListRow) | (import("../..").UrlReference & {
|
|
37
|
+
fieldA: string;
|
|
38
|
+
fieldB: string;
|
|
39
|
+
} & import("../../core/shape/ListShape").ListRow)>;
|
|
40
|
+
list: import("../../core").ListField<({
|
|
41
|
+
id: string;
|
|
42
|
+
type: "Text";
|
|
43
|
+
index: string;
|
|
44
|
+
title: string;
|
|
45
|
+
text: import("../..").TextDoc<{}>;
|
|
46
|
+
} | {
|
|
47
|
+
id: string;
|
|
48
|
+
type: "Image";
|
|
49
|
+
index: string;
|
|
50
|
+
image: import("../..").ImageReference & {};
|
|
51
|
+
}) & import("../../field/list").ListRow, import("../../field/list").ListOptions<{
|
|
52
|
+
Text: import("alinea/core/Type").Type<{
|
|
53
|
+
title: import("../../field/text").TextField;
|
|
54
|
+
text: import("../../core").RichTextField<{}, import("../../field/richtext").RichTextOptions<{}>>;
|
|
55
|
+
}>;
|
|
56
|
+
Image: import("alinea/core/Type").Type<{
|
|
57
|
+
image: import("../../field/link/LinkField").LinkField<import("../..").ImageReference & {}>;
|
|
58
|
+
}>;
|
|
59
|
+
}>>;
|
|
60
|
+
withInitial: import("../../core").RichTextField<{}, import("../../field/richtext").RichTextOptions<{}>>;
|
|
61
|
+
nested: import("../../core").RichTextField<{
|
|
62
|
+
Inner: import("alinea/core/Type").Type<{
|
|
63
|
+
checkbox1: import("../../field/check").CheckField;
|
|
64
|
+
checkbox2: import("../../field/check").CheckField;
|
|
65
|
+
title: import("../../field/text").TextField;
|
|
66
|
+
content: import("../../core").RichTextField<{}, import("../../field/richtext").RichTextOptions<{}>>;
|
|
67
|
+
}>;
|
|
68
|
+
NestLayout: import("alinea/core/Type").Type<{
|
|
69
|
+
tabA: import("../../field/text").TextField;
|
|
70
|
+
tabB: import("../../field/text").TextField;
|
|
71
|
+
object: import("../../field/object").ObjectField<{
|
|
72
|
+
fieldA: import("../../field/text").TextField;
|
|
73
|
+
fieldB: import("../../field/text").TextField;
|
|
74
|
+
}>;
|
|
75
|
+
}>;
|
|
76
|
+
}, import("../../field/richtext").RichTextOptions<{
|
|
77
|
+
Inner: import("alinea/core/Type").Type<{
|
|
78
|
+
checkbox1: import("../../field/check").CheckField;
|
|
79
|
+
checkbox2: import("../../field/check").CheckField;
|
|
80
|
+
title: import("../../field/text").TextField;
|
|
81
|
+
content: import("../../core").RichTextField<{}, import("../../field/richtext").RichTextOptions<{}>>;
|
|
82
|
+
}>;
|
|
83
|
+
NestLayout: import("alinea/core/Type").Type<{
|
|
84
|
+
tabA: import("../../field/text").TextField;
|
|
85
|
+
tabB: import("../../field/text").TextField;
|
|
86
|
+
object: import("../../field/object").ObjectField<{
|
|
87
|
+
fieldA: import("../../field/text").TextField;
|
|
88
|
+
fieldB: import("../../field/text").TextField;
|
|
89
|
+
}>;
|
|
90
|
+
}>;
|
|
91
|
+
}>>;
|
|
92
|
+
}>;
|
|
93
|
+
Page: import("alinea/core/Type").Type<{
|
|
94
|
+
name: import("../../field/path").PathField & import("../../field/text").TextField;
|
|
95
|
+
name2: import("../../field/text").TextField;
|
|
96
|
+
title: import("../../field/text").TextField;
|
|
97
|
+
path: import("../../field/path").PathField;
|
|
8
98
|
}>;
|
|
9
|
-
Container: import("alinea/core").Type<{
|
|
10
|
-
title: import("../../
|
|
11
|
-
path: import("../../
|
|
12
|
-
name: import("../../
|
|
99
|
+
Container: import("alinea/core/Type").Type<{
|
|
100
|
+
title: import("../../field/text").TextField;
|
|
101
|
+
path: import("../../field/path").PathField;
|
|
102
|
+
name: import("../../field/text").TextField;
|
|
13
103
|
}>;
|
|
14
104
|
};
|
|
15
105
|
workspaces: {
|
|
16
|
-
main: import("alinea/core").Workspace<{
|
|
17
|
-
pages: import("alinea/core").Root<{
|
|
18
|
-
entry1: import("alinea/core").PageSeed<{
|
|
19
|
-
name: import("../../
|
|
20
|
-
name2: import("../../
|
|
21
|
-
title: import("../../
|
|
22
|
-
path: import("../../
|
|
106
|
+
main: import("alinea/core/Workspace").Workspace<{
|
|
107
|
+
pages: import("alinea/core/Root").Root<{
|
|
108
|
+
entry1: import("alinea/core/Page").PageSeed<{
|
|
109
|
+
name: import("../../field/path").PathField & import("../../field/text").TextField;
|
|
110
|
+
name2: import("../../field/text").TextField;
|
|
111
|
+
title: import("../../field/text").TextField;
|
|
112
|
+
path: import("../../field/path").PathField;
|
|
113
|
+
}, Record<string, any>>;
|
|
114
|
+
entry2: import("alinea/core/Page").PageSeed<{
|
|
115
|
+
title: import("../../field/text").TextField;
|
|
116
|
+
path: import("../../field/path").PathField;
|
|
117
|
+
name: import("../../field/text").TextField;
|
|
23
118
|
}, Record<string, any>>;
|
|
24
|
-
entry2: import("alinea/core").PageSeed<{
|
|
25
|
-
title: import("../../input/text").TextField;
|
|
26
|
-
path: import("../../input/path").PathField;
|
|
27
|
-
name: import("../../input/text").TextField;
|
|
28
|
-
}, {
|
|
29
|
-
entry3: any;
|
|
30
|
-
}>;
|
|
31
119
|
}>;
|
|
32
|
-
multiLanguage: import("alinea/core").Root<{
|
|
33
|
-
localised1: import("alinea/core").PageSeed<{
|
|
34
|
-
name: import("../../
|
|
35
|
-
name2: import("../../
|
|
36
|
-
title: import("../../
|
|
37
|
-
path: import("../../
|
|
120
|
+
multiLanguage: import("alinea/core/Root").Root<{
|
|
121
|
+
localised1: import("alinea/core/Page").PageSeed<{
|
|
122
|
+
name: import("../../field/path").PathField & import("../../field/text").TextField;
|
|
123
|
+
name2: import("../../field/text").TextField;
|
|
124
|
+
title: import("../../field/text").TextField;
|
|
125
|
+
path: import("../../field/path").PathField;
|
|
126
|
+
}, Record<string, any>>;
|
|
127
|
+
localised2: import("alinea/core/Page").PageSeed<{
|
|
128
|
+
title: import("../../field/text").TextField;
|
|
129
|
+
path: import("../../field/path").PathField;
|
|
130
|
+
name: import("../../field/text").TextField;
|
|
38
131
|
}, Record<string, any>>;
|
|
39
|
-
localised2: import("alinea/core").PageSeed<{
|
|
40
|
-
title: import("../../input/text").TextField;
|
|
41
|
-
path: import("../../input/path").PathField;
|
|
42
|
-
name: import("../../input/text").TextField;
|
|
43
|
-
}, {
|
|
44
|
-
localised3: any;
|
|
45
|
-
}>;
|
|
46
132
|
}>;
|
|
47
133
|
media: import("../../core/media/MediaRoot").MediaRoot<{
|
|
48
|
-
dir: import("alinea/core").PageSeed<{
|
|
49
|
-
title: import("../../
|
|
50
|
-
path: import("../../
|
|
134
|
+
dir: import("alinea/core/Page").PageSeed<{
|
|
135
|
+
title: import("../../field/hidden").HiddenField<string>;
|
|
136
|
+
path: import("../../field/hidden").HiddenField<string>;
|
|
51
137
|
}, Record<string, any>>;
|
|
52
|
-
'file1.png': import("alinea/core").PageSeed<{
|
|
53
|
-
title: import("../../
|
|
54
|
-
path: import("../../
|
|
55
|
-
location: import("../../
|
|
56
|
-
extension: import("../../
|
|
57
|
-
size: import("../../
|
|
58
|
-
hash: import("../../
|
|
59
|
-
width: import("../../
|
|
60
|
-
height: import("../../
|
|
61
|
-
preview: import("../../
|
|
62
|
-
averageColor: import("../../
|
|
63
|
-
focus: import("../../
|
|
138
|
+
'file1.png': import("alinea/core/Page").PageSeed<{
|
|
139
|
+
title: import("../../field/hidden").HiddenField<string>;
|
|
140
|
+
path: import("../../field/hidden").HiddenField<string>;
|
|
141
|
+
location: import("../../field/hidden").HiddenField<string>;
|
|
142
|
+
extension: import("../../field/hidden").HiddenField<string>;
|
|
143
|
+
size: import("../../field/hidden").HiddenField<number>;
|
|
144
|
+
hash: import("../../field/hidden").HiddenField<string>;
|
|
145
|
+
width: import("../../field/hidden").HiddenField<number>;
|
|
146
|
+
height: import("../../field/hidden").HiddenField<number>;
|
|
147
|
+
preview: import("../../field/hidden").HiddenField<string>;
|
|
148
|
+
averageColor: import("../../field/hidden").HiddenField<string>;
|
|
149
|
+
focus: import("../../field/hidden").HiddenField<{
|
|
64
150
|
x: number;
|
|
65
151
|
y: number;
|
|
66
152
|
}>;
|
|
67
|
-
thumbHash: import("../../
|
|
153
|
+
thumbHash: import("../../field/hidden").HiddenField<string>;
|
|
68
154
|
}, Record<string, any>>;
|
|
69
155
|
}>;
|
|
70
156
|
}>;
|
|
71
157
|
};
|
|
72
|
-
} & import("alinea/core/driver/TestDriver").TestApi & import("
|
|
158
|
+
} & import("alinea/core/driver/TestDriver").TestApi & import("../../core/CMS").CMS;
|