alinea 2.0.0-preview.13 → 2.0.0-preview.14
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/.mcp/later/dev.json +1 -1
- package/dist/.mcp/online/dev.json +1 -1
- package/dist/adapter/next/cms.js +6 -2
- package/dist/adapter/next/context.js +1 -4
- package/dist/adapter/next/handler.js +12 -1
- package/dist/backend/CommitEntries.d.ts +17 -0
- package/dist/backend/CommitEntries.js +39 -0
- package/dist/backend/Handler.d.ts +9 -0
- package/dist/backend/Handler.js +80 -20
- package/dist/backend/api/BasicAuth.js +5 -1
- package/dist/backend/api/CreateBackend.js +2 -2
- package/dist/backend/api/DatabaseApi.js +18 -5
- package/dist/backend/api/GithubApi.d.ts +13 -0
- package/dist/backend/api/GithubApi.js +170 -30
- package/dist/backend/api/database.js +2 -2
- package/dist/backend/util/Syncable.d.ts +6 -0
- package/dist/backend/util/Syncable.js +3 -1
- package/dist/bundled.d.ts +911 -151
- package/dist/chunks/{chunk-5H4D5JQL.js → chunk-2PP7WJUJ.js} +1 -11
- package/dist/chunks/{chunk-QHHMKJUO.js → chunk-7DDPSWRY.js} +465 -2
- package/dist/chunks/{chunk-HOETF6HN.js → chunk-PMGIIYDD.js} +1 -0
- package/dist/chunks/{chunk-3QFSGTGF.js → chunk-SCV3TEXM.js} +1 -1
- package/dist/chunks/{chunk-UPY2RUZF.js → chunk-TWBREZWC.js} +30 -0
- package/dist/cli/Generate.js +20 -7
- package/dist/cli/Mcp.js +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/build/BuildEmitter.d.ts +5 -1
- package/dist/cli/build/BuildEmitter.js +8 -3
- package/dist/cli/generate/CompileConfig.js +10 -6
- package/dist/cli/generate/DevDB.d.ts +4 -1
- package/dist/cli/generate/DevDB.js +15 -7
- package/dist/cli/generate/GenerateDashboard.js +1 -0
- package/dist/cli/generate/MediaLocations.d.ts +18 -0
- package/dist/cli/generate/MediaLocations.js +69 -0
- package/dist/cli/serve/CreateLocalServer.js +1 -0
- package/dist/cli/serve/mcp/DevMcp.js +1 -1
- package/dist/cloud/CloudRemote.js +21 -7
- package/dist/cms.d.ts +4 -2
- package/dist/components/Alert.js +2 -2
- package/dist/components/AppShell.js +2 -2
- package/dist/components/AsyncList.d.ts +52 -0
- package/dist/components/AsyncList.js +69 -0
- package/dist/components/Breadcrumbs.js +6 -6
- package/dist/components/Button.js +4 -4
- package/dist/components/Calendar.js +18 -18
- package/dist/components/Checkbox.js +10 -10
- package/dist/components/CheckboxGroup.js +2 -2
- package/dist/components/Collapsible.js +5 -5
- package/dist/components/ColorSwatch.js +2 -2
- package/dist/components/ColorSwatchPicker.js +4 -4
- package/dist/components/ComboBox.d.ts +27 -9
- package/dist/components/ComboBox.js +40 -9
- package/dist/components/Command.js +13 -13
- package/dist/components/ContentCard.js +28 -28
- package/dist/components/ContentGrid.js +11 -11
- package/dist/components/DataList.js +1 -1
- package/dist/components/DateField.d.ts +4 -0
- package/dist/components/DateField.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DateRangePicker.js +2 -2
- package/dist/components/Dialog.d.ts +14 -3
- package/dist/components/Dialog.js +38 -11
- package/dist/components/DropZone.js +6 -6
- package/dist/components/DropdownMenu.js +8 -8
- package/dist/components/Empty.js +4 -4
- package/dist/components/Field.d.ts +1 -1
- package/dist/components/Field.js +18 -12
- package/dist/components/Form.d.ts +23 -0
- package/dist/components/Form.js +64 -0
- package/dist/components/Link.d.ts +8 -1
- package/dist/components/List.js +27 -27
- package/dist/components/MediaPreview.js +5 -5
- package/dist/components/MultipleSelect.d.ts +13 -8
- package/dist/components/MultipleSelect.js +25 -25
- package/dist/components/NavRail.js +7 -7
- package/dist/components/NumberField.d.ts +5 -1
- package/dist/components/NumberField.js +6 -4
- package/dist/components/Page.js +6 -6
- package/dist/components/Popover.js +2 -2
- package/dist/components/PreviewFrame.js +8 -8
- package/dist/components/RadioGroup.js +10 -10
- package/dist/components/Resizable.js +1 -1
- package/dist/components/SearchField.js +8 -8
- package/dist/components/Select.d.ts +13 -10
- package/dist/components/Select.js +18 -32
- package/dist/components/Sheet.js +6 -6
- package/dist/components/Sidebar.js +5 -5
- package/dist/components/SortableList.js +12 -12
- package/dist/components/Spinner.js +4 -4
- package/dist/components/Stack.d.ts +20 -0
- package/dist/components/Stack.js +45 -0
- package/dist/components/Surface.js +1 -1
- package/dist/components/Switch.js +5 -5
- package/dist/components/Table.d.ts +11 -1
- package/dist/components/Table.js +81 -53
- package/dist/components/Tabs.js +6 -6
- package/dist/components/TagGroup.js +10 -10
- package/dist/components/TextField.d.ts +7 -1
- package/dist/components/TextField.js +20 -11
- package/dist/components/TimeField.d.ts +6 -1
- package/dist/components/TimeField.js +51 -26
- package/dist/components/Timestamp.js +1 -1
- package/dist/components/ToggleGroup.js +2 -2
- package/dist/components/Toolbar.js +3 -3
- package/dist/components/Tooltip.js +5 -4
- package/dist/components/Tree.js +27 -27
- package/dist/components/internal/DateControl.js +11 -11
- package/dist/components/internal/FormScope.d.ts +2 -0
- package/dist/components/internal/FormScope.js +8 -0
- package/dist/components/internal/ListBoxGroup.d.ts +12 -0
- package/dist/components/internal/ListBoxGroup.js +46 -0
- package/dist/components/internal/ListBoxOption.d.ts +2 -2
- package/dist/components/internal/ListBoxOption.js +5 -5
- package/dist/components/internal/Locale.js +2 -2
- package/dist/components/internal/PopoverSurface.js +5 -4
- package/dist/components/internal/SelectionCheckbox.js +5 -5
- package/dist/components/internal/Slot.js +1 -1
- package/dist/components/internal/ToggleButton.js +4 -4
- package/dist/components/internal/Trigger.js +2 -2
- package/dist/components/internal/useDragDrop.js +2 -2
- package/dist/components/types.d.ts +4 -0
- package/dist/components.d.ts +3 -0
- package/dist/components.js +3 -0
- package/dist/core/Client.js +12 -1
- package/dist/core/Config.d.ts +6 -0
- package/dist/core/Config.js +12 -0
- package/dist/core/DashboardEntry.d.ts +19 -0
- package/dist/core/DashboardEntry.js +0 -0
- package/dist/core/Document.d.ts +2 -2
- package/dist/core/Document.js +10 -3
- package/dist/core/EntryFields.d.ts +8 -2
- package/dist/core/Field.d.ts +5 -0
- package/dist/core/Filter.d.ts +19 -2
- package/dist/core/Filter.js +5 -0
- package/dist/core/Graph.d.ts +10 -2
- package/dist/core/Overview.d.ts +74 -5
- package/dist/core/Overview.js +1 -0
- package/dist/core/Root.js +1 -1
- package/dist/core/Scope.d.ts +5 -0
- package/dist/core/Scope.js +22 -5
- package/dist/core/Type.d.ts +25 -6
- package/dist/core/Type.js +25 -7
- package/dist/core/db/LocalStore.d.ts +7 -0
- package/dist/core/field/CreateField.d.ts +1 -2
- package/dist/core/source/Source.d.ts +2 -0
- package/dist/core/source/Source.js +11 -0
- package/dist/core/util/Async.d.ts +2 -0
- package/dist/core/util/Async.js +12 -1
- package/dist/core/util/Checks.js +1 -1
- package/dist/core/util/Slugs.js +4 -3
- package/dist/dashboard/App.css +13 -11
- package/dist/dashboard/App.d.ts +1 -0
- package/dist/dashboard/App.js +22 -6
- package/dist/dashboard/Href.d.ts +37 -0
- package/dist/dashboard/Href.js +46 -0
- package/dist/dashboard/app/ActivityStatus.js +34 -12
- package/dist/dashboard/app/AuthView.js +2 -2
- package/dist/dashboard/app/BlockSettings.d.ts +9 -0
- package/dist/dashboard/app/BlockSettings.js +16 -0
- package/dist/dashboard/app/BlockSheet.js +3 -3
- package/dist/dashboard/app/BlockSheetStoryFrame.js +2 -2
- package/dist/dashboard/app/CompactField.js +15 -15
- package/dist/dashboard/app/CroppedImage.js +2 -2
- package/dist/dashboard/app/DashboardLayout.d.ts +1 -1
- package/dist/dashboard/app/DashboardLayout.js +12 -0
- package/dist/dashboard/app/EntryActions.d.ts +11 -0
- package/dist/dashboard/app/EntryActions.js +30 -0
- package/dist/dashboard/app/EntryFields.d.ts +15 -2
- package/dist/dashboard/app/EntryFields.js +26 -5
- package/dist/dashboard/app/EntryHeader.js +17 -7
- package/dist/dashboard/app/EntryReferences.js +2 -2
- package/dist/dashboard/app/EntrySidebar.js +25 -23
- package/dist/dashboard/app/EntrySidebarPreview.js +2 -2
- package/dist/dashboard/app/EntryValidationModal.js +3 -3
- package/dist/dashboard/app/Explorer.js +84 -45
- package/dist/dashboard/app/ExplorerBatchActions.js +4 -4
- package/dist/dashboard/app/ExplorerControls.js +5 -5
- package/dist/dashboard/app/ExplorerList.js +2 -2
- package/dist/dashboard/app/ExplorerModal.js +3 -3
- package/dist/dashboard/app/ExplorerOverviewHeader.d.ts +6 -0
- package/dist/dashboard/app/ExplorerOverviewHeader.js +28 -0
- package/dist/dashboard/app/ExplorerTable.js +7 -7
- package/dist/dashboard/app/ExplorerTabs.d.ts +12 -0
- package/dist/dashboard/app/ExplorerTabs.js +42 -0
- package/dist/dashboard/app/ImageEditor.js +31 -31
- package/dist/dashboard/app/LinkPicker.js +3 -3
- package/dist/dashboard/app/LocaleMenu.js +9 -9
- package/dist/dashboard/app/MediaPreviewCell.js +5 -5
- package/dist/dashboard/app/OverviewCell.js +12 -10
- package/dist/dashboard/app/RemoveDialog.js +5 -0
- package/dist/dashboard/app/SearchBar.js +4 -4
- package/dist/dashboard/app/SettingsTab.d.ts +6 -0
- package/dist/dashboard/app/SettingsTab.js +27 -0
- package/dist/dashboard/app/SidebarTree.js +19 -19
- package/dist/dashboard/app/WorkspaceMenu.js +6 -6
- package/dist/dashboard/app/WorkspaceRoots.js +102 -98
- package/dist/dashboard/app/editor/FileEditor.js +18 -18
- package/dist/dashboard/app/pages/EntryPage.js +42 -39
- package/dist/dashboard/app/pages/RootPage.js +3 -3
- package/dist/dashboard/app/pages/SplashPage.js +94 -79
- package/dist/dashboard/app/pages/UsersPage.js +9 -9
- package/dist/dashboard/app/ui/DashboardModal.js +14 -14
- package/dist/dashboard/atoms/activity.d.ts +1 -0
- package/dist/dashboard/atoms/activity.js +8 -5
- package/dist/dashboard/atoms/config.d.ts +2 -0
- package/dist/dashboard/atoms/dashboard.d.ts +11 -0
- package/dist/dashboard/atoms/dashboard.js +8 -0
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +14 -2
- package/dist/dashboard/atoms/explorer.d.ts +15 -0
- package/dist/dashboard/atoms/explorer.js +43 -14
- package/dist/dashboard/atoms/graph.d.ts +5 -0
- package/dist/dashboard/atoms/graph.js +26 -1
- package/dist/dashboard/atoms/nav.d.ts +16 -10
- package/dist/dashboard/atoms/nav.js +96 -36
- package/dist/dashboard/atoms/overview.d.ts +26 -4
- package/dist/dashboard/atoms/overview.js +41 -12
- package/dist/dashboard/atoms/root.js +7 -1
- package/dist/dashboard/boot/ActivityEvent.d.ts +1 -1
- package/dist/dashboard/boot/Boot.js +6 -0
- package/dist/dashboard/boot/DashboardWorker.d.ts +6 -0
- package/dist/dashboard/boot/DashboardWorker.js +89 -8
- package/dist/dashboard/boot/LoadWorker.js +3 -0
- package/dist/dashboard/boot/SyncEvent.d.ts +7 -0
- package/dist/dashboard/boot/SyncEvent.js +14 -0
- package/dist/dashboard/boot/WorkerDB.d.ts +1 -0
- package/dist/dashboard/boot/WorkerDB.js +3 -0
- package/dist/dashboard/cms/EntryTable.d.ts +4 -3
- package/dist/dashboard/cms/EntryTable.js +2 -2
- package/dist/dashboard/cms/ViewProps.d.ts +3 -2
- package/dist/dashboard/cms/hooks.d.ts +34 -18
- package/dist/dashboard/cms/hooks.js +43 -18
- package/dist/dashboard/contexts.d.ts +3 -2
- package/dist/dashboard/contexts.js +3 -2
- package/dist/dashboard/hook/UseEntryEditor.d.ts +1 -1
- package/dist/dashboard/hook/UseEntryEditor.js +7 -3
- package/dist/dashboard/icons.d.ts +1 -0
- package/dist/dashboard/icons.js +15 -0
- package/dist/database/BrowserEntryStore.js +35 -13
- package/dist/database/DatabaseTables.js +1 -1
- package/dist/database/EntryDatabase.d.ts +10 -1
- package/dist/database/EntryDatabase.js +31 -10
- package/dist/database/EntryStore.js +1 -11
- package/dist/database/entry/EntryTable.d.ts +5 -3
- package/dist/database/entry/EntryTable.js +25 -8
- package/dist/database/query/Condition.d.ts +4 -1
- package/dist/database/query/Condition.js +16 -5
- package/dist/database/query/EntryQuery.js +59 -7
- package/dist/database/query/Relation.d.ts +13 -1
- package/dist/database/query/Relation.js +19 -1
- package/dist/database/query/Search.d.ts +7 -1
- package/dist/database/query/Search.js +54 -9
- package/dist/database/sync/EntrySyncer.d.ts +2 -0
- package/dist/database/sync/EntrySyncer.js +4 -2
- package/dist/database/sync/Ingest.d.ts +2 -1
- package/dist/database/sync/Ingest.js +20 -6
- package/dist/field/code/CodeField.view.js +12 -12
- package/dist/field/link/EntryLink.d.ts +4 -5
- package/dist/field/link/FileLink.d.ts +2 -2
- package/dist/field/link/ImageLink.d.ts +2 -5
- package/dist/field/link/ImageLink.js +0 -1
- package/dist/field/link/LinkField.view.js +18 -15
- package/dist/field/list/ListField.view.js +50 -35
- package/dist/field/metadata/MetadataField.view.js +14 -14
- package/dist/field/richtext/RichTextBlock.js +39 -35
- package/dist/field/richtext/RichTextExtensions.js +23 -23
- package/dist/field/richtext/RichTextField.view.js +6 -6
- package/dist/field/richtext/RichTextInsertMenu.js +5 -5
- package/dist/field/richtext/RichTextToolbar.js +26 -1
- package/dist/field/richtext/Toolbar.d.ts +9 -1
- package/dist/field/richtext/Toolbar.js +12 -2
- package/dist/field/select/SelectField.view.js +1 -0
- package/dist/index.css +174 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/next.d.ts +2 -0
- package/dist/next.edge.d.ts +2 -0
- package/dist/picker/entry/EntryPicker.d.ts +3 -1
- package/dist/picker/entry/EntryPicker.js +15 -1
- package/dist/preview/react.js +3 -0
- package/dist/query.d.ts +26 -14
- package/dist/query.js +4 -0
- package/dist/types.d.ts +8 -5
- package/dist/ui/Stack.d.ts +4 -2
- package/docs/ai-setup.md +3 -3
- package/docs/cli.md +4 -2
- package/docs/components/combo-box.md +105 -16
- package/docs/components/date-field.md +1 -1
- package/docs/components/dialog.md +51 -0
- package/docs/components/form.md +67 -0
- package/docs/components/link.md +10 -0
- package/docs/components/multiple-select.md +9 -17
- package/docs/components/number-field.md +5 -1
- package/docs/components/select.md +9 -20
- package/docs/components/stack.md +42 -0
- package/docs/components/table.md +83 -0
- package/docs/components/text-field.md +9 -1
- package/docs/components/time-field.md +5 -1
- package/docs/components.md +39 -1
- package/docs/configuration.md +3 -1
- package/docs/custom-fields.md +135 -7
- package/docs/deploy/self-host.md +2 -0
- package/docs/deploy.md +7 -4
- package/docs/fields/image.md +0 -1
- package/docs/fields/list.md +19 -0
- package/docs/fields/object.md +5 -3
- package/docs/fields/rich-text.md +31 -0
- package/docs/index.md +8 -6
- package/docs/instant-publishing.md +23 -2
- package/docs/overviews.md +128 -4
- package/docs/query/filtering.md +2 -0
- package/docs/query/related.md +58 -9
- package/docs/query.md +52 -1
- package/docs/quickstart.md +5 -5
- package/docs/schema/document.md +2 -0
- package/docs/schema/type.md +3 -1
- package/docs/upgrading.md +100 -19
- package/llms-full.txt +1022 -125
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/chunks/{chunk-4ZA6KZHS.js → chunk-6FQ5IMNA.js} +3 -3
|
@@ -27,11 +27,11 @@ import { IcRoundLink, LucideFile } from "../icons.js";
|
|
|
27
27
|
|
|
28
28
|
// src/dashboard/app/EntryReferences.module.css
|
|
29
29
|
var EntryReferences_default = {
|
|
30
|
+
"EntryReferences-trailing": "alinea-EntryReferences-trailing",
|
|
31
|
+
"EntryReferencesTrailing": "alinea-EntryReferences-trailing",
|
|
30
32
|
"EntryReferences-tab": "alinea-EntryReferences-tab",
|
|
31
33
|
"EntryReferencesTab": "alinea-EntryReferences-tab",
|
|
32
34
|
"EntryReferences": "alinea-EntryReferences",
|
|
33
|
-
"EntryReferences-trailing": "alinea-EntryReferences-trailing",
|
|
34
|
-
"EntryReferencesTrailing": "alinea-EntryReferences-trailing",
|
|
35
35
|
"EntryReferences-list": "alinea-EntryReferences-list",
|
|
36
36
|
"EntryReferencesList": "alinea-EntryReferences-list"
|
|
37
37
|
};
|
|
@@ -55,30 +55,30 @@ import { EntryReferences } from "./EntryReferences.js";
|
|
|
55
55
|
|
|
56
56
|
// src/dashboard/app/EntrySidebar.module.css
|
|
57
57
|
var EntrySidebar_default = {
|
|
58
|
-
"EntrySidebar-
|
|
59
|
-
"
|
|
60
|
-
"EntrySidebar-
|
|
61
|
-
"
|
|
62
|
-
"EntrySidebar-
|
|
63
|
-
"
|
|
58
|
+
"EntrySidebar-referencesPanel": "alinea-EntrySidebar-referencesPanel",
|
|
59
|
+
"EntrySidebarReferencesPanel": "alinea-EntrySidebar-referencesPanel",
|
|
60
|
+
"EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
|
|
61
|
+
"EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
|
|
62
|
+
"EntrySidebar-disclosure": "alinea-EntrySidebar-disclosure",
|
|
63
|
+
"EntrySidebarDisclosure": "alinea-EntrySidebar-disclosure",
|
|
64
64
|
"EntrySidebar-disclosurePanel": "alinea-EntrySidebar-disclosurePanel",
|
|
65
65
|
"EntrySidebarDisclosurePanel": "alinea-EntrySidebar-disclosurePanel",
|
|
66
|
-
"EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
|
|
67
|
-
"EntrySidebarTabs": "alinea-EntrySidebar-tabs",
|
|
68
66
|
"EntrySidebar-previewPanel": "alinea-EntrySidebar-previewPanel",
|
|
69
67
|
"EntrySidebarPreviewPanel": "alinea-EntrySidebar-previewPanel",
|
|
70
|
-
"EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
|
|
71
|
-
"EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
|
|
72
|
-
"EntrySidebar-history": "alinea-EntrySidebar-history",
|
|
73
|
-
"EntrySidebarHistory": "alinea-EntrySidebar-history",
|
|
74
68
|
"EntrySidebar-loading": "alinea-EntrySidebar-loading",
|
|
75
69
|
"EntrySidebarLoading": "alinea-EntrySidebar-loading",
|
|
70
|
+
"EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
|
|
71
|
+
"EntrySidebarTabs": "alinea-EntrySidebar-tabs",
|
|
72
|
+
"EntrySidebar-body": "alinea-EntrySidebar-body",
|
|
73
|
+
"EntrySidebarBody": "alinea-EntrySidebar-body",
|
|
74
|
+
"EntrySidebar-disclosureTrigger": "alinea-EntrySidebar-disclosureTrigger",
|
|
75
|
+
"EntrySidebarDisclosureTrigger": "alinea-EntrySidebar-disclosureTrigger",
|
|
76
76
|
"EntrySidebar-section": "alinea-EntrySidebar-section",
|
|
77
77
|
"EntrySidebarSection": "alinea-EntrySidebar-section",
|
|
78
|
-
"EntrySidebar-
|
|
79
|
-
"
|
|
80
|
-
"EntrySidebar-
|
|
81
|
-
"
|
|
78
|
+
"EntrySidebar-sectionTitle": "alinea-EntrySidebar-sectionTitle",
|
|
79
|
+
"EntrySidebarSectionTitle": "alinea-EntrySidebar-sectionTitle",
|
|
80
|
+
"EntrySidebar-history": "alinea-EntrySidebar-history",
|
|
81
|
+
"EntrySidebarHistory": "alinea-EntrySidebar-history"
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
// src/dashboard/app/EntrySidebar.tsx
|
|
@@ -89,8 +89,8 @@ var styles = styler(EntrySidebar_default);
|
|
|
89
89
|
async function entrySidebar(get, entry, localeData, isOpen = true) {
|
|
90
90
|
const typeName = get(entry.type);
|
|
91
91
|
const type = get(typeAtoms(typeName));
|
|
92
|
-
if (
|
|
93
|
-
const allowedTabs = entrySidebarTabs(type.type);
|
|
92
|
+
if (get(localeData.untranslated)) return void 0;
|
|
93
|
+
const allowedTabs = entrySidebarTabs(type.type, Boolean(get(entry.preview)));
|
|
94
94
|
const requestedTab = get(entrySidebarTabAtom);
|
|
95
95
|
const selectedTab = allowedTabs.includes(requestedTab) ? requestedTab : allowedTabs[0];
|
|
96
96
|
const previousVersionsOpen = selectedTab === "history" ? get(entry.previousVersionsOpen) : false;
|
|
@@ -114,9 +114,9 @@ async function entrySidebar(get, entry, localeData, isOpen = true) {
|
|
|
114
114
|
}
|
|
115
115
|
return { entry, localeData, selectedTab, previousVersionsOpen, previewEntry };
|
|
116
116
|
}
|
|
117
|
-
function entrySidebarTabs(type) {
|
|
117
|
+
function entrySidebarTabs(type, hasPreview) {
|
|
118
118
|
if (type === MediaFile) return ["references"];
|
|
119
|
-
if (type === MediaLibrary) return ["history", "references"];
|
|
119
|
+
if (type === MediaLibrary || !hasPreview) return ["history", "references"];
|
|
120
120
|
return ["preview", "history", "references"];
|
|
121
121
|
}
|
|
122
122
|
function EntrySidebar({
|
|
@@ -131,9 +131,11 @@ function EntrySidebar({
|
|
|
131
131
|
const type = useAtomValueRaw(typeAtoms(typeName)).type;
|
|
132
132
|
const setSelectedTab = useSetAtom(entrySidebarTabAtom);
|
|
133
133
|
const isMediaFile = type === MediaFile;
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
const allowedTabs = entrySidebarTabs(
|
|
135
|
+
type,
|
|
136
|
+
Boolean(useAtomValueRaw(entry.preview))
|
|
137
|
+
);
|
|
138
|
+
const hasPreview = allowedTabs.includes("preview");
|
|
137
139
|
return /* @__PURE__ */ jsx(Sidebar, { side: "right", children: /* @__PURE__ */ jsxs(
|
|
138
140
|
Tabs,
|
|
139
141
|
{
|
|
@@ -22,9 +22,9 @@ import { IcRoundVisibilityOff } from "../icons.js";
|
|
|
22
22
|
var EntrySidebarPreview_default = {
|
|
23
23
|
"EntrySidebarPreview-component": "alinea-EntrySidebarPreview-component",
|
|
24
24
|
"EntrySidebarPreviewComponent": "alinea-EntrySidebarPreview-component",
|
|
25
|
-
"EntrySidebarPreview": "alinea-EntrySidebarPreview",
|
|
26
25
|
"EntrySidebarPreview-empty": "alinea-EntrySidebarPreview-empty",
|
|
27
|
-
"EntrySidebarPreviewEmpty": "alinea-EntrySidebarPreview-empty"
|
|
26
|
+
"EntrySidebarPreviewEmpty": "alinea-EntrySidebarPreview-empty",
|
|
27
|
+
"EntrySidebarPreview": "alinea-EntrySidebarPreview"
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
// src/dashboard/app/EntrySidebarPreview.tsx
|
|
@@ -8,10 +8,10 @@ import { Button, Text } from "alinea/components";
|
|
|
8
8
|
|
|
9
9
|
// src/dashboard/app/EntryValidationModal.module.css
|
|
10
10
|
var EntryValidationModal_default = {
|
|
11
|
-
"EntryValidationModal-list": "alinea-EntryValidationModal-list",
|
|
12
|
-
"EntryValidationModalList": "alinea-EntryValidationModal-list",
|
|
13
11
|
"EntryValidationModal-item": "alinea-EntryValidationModal-item",
|
|
14
|
-
"EntryValidationModalItem": "alinea-EntryValidationModal-item"
|
|
12
|
+
"EntryValidationModalItem": "alinea-EntryValidationModal-item",
|
|
13
|
+
"EntryValidationModal-list": "alinea-EntryValidationModal-list",
|
|
14
|
+
"EntryValidationModalList": "alinea-EntryValidationModal-list"
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// src/dashboard/app/EntryValidationModal.tsx
|
|
@@ -54,61 +54,63 @@ import {
|
|
|
54
54
|
|
|
55
55
|
// src/dashboard/app/Explorer.module.css
|
|
56
56
|
var Explorer_default = {
|
|
57
|
-
"ExplorerHeader-primary": "alinea-ExplorerHeader-primary",
|
|
58
|
-
"ExplorerHeaderPrimary": "alinea-ExplorerHeader-primary",
|
|
59
|
-
"ExplorerHeader-location": "alinea-ExplorerHeader-location",
|
|
60
|
-
"ExplorerHeaderLocation": "alinea-ExplorerHeader-location",
|
|
61
57
|
"ExplorerHeader-main": "alinea-ExplorerHeader-main",
|
|
62
58
|
"ExplorerHeaderMain": "alinea-ExplorerHeader-main",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"ExplorerToolbarTools": "alinea-Explorer-toolbar-tools",
|
|
68
|
-
"is-navigation": "alinea-is-navigation",
|
|
69
|
-
"isNavigation": "alinea-is-navigation",
|
|
59
|
+
"Explorer-toolbar-mediaActions": "alinea-Explorer-toolbar-mediaActions",
|
|
60
|
+
"ExplorerToolbarMediaActions": "alinea-Explorer-toolbar-mediaActions",
|
|
61
|
+
"Explorer-toolbar": "alinea-Explorer-toolbar",
|
|
62
|
+
"ExplorerToolbar": "alinea-Explorer-toolbar",
|
|
70
63
|
"Explorer-search": "alinea-Explorer-search",
|
|
71
64
|
"ExplorerSearch": "alinea-Explorer-search",
|
|
72
|
-
"
|
|
73
|
-
"ExplorerResultMode": "alinea-Explorer-resultMode",
|
|
65
|
+
"ExplorerHeader": "alinea-ExplorerHeader",
|
|
74
66
|
"Explorer-viewport": "alinea-Explorer-viewport",
|
|
75
67
|
"ExplorerViewport": "alinea-Explorer-viewport",
|
|
68
|
+
"ExplorerHeader-primary": "alinea-ExplorerHeader-primary",
|
|
69
|
+
"ExplorerHeaderPrimary": "alinea-ExplorerHeader-primary",
|
|
76
70
|
"Explorer-locationBreadcrumbs": "alinea-Explorer-locationBreadcrumbs",
|
|
77
71
|
"ExplorerLocationBreadcrumbs": "alinea-Explorer-locationBreadcrumbs",
|
|
78
|
-
"Explorer-
|
|
79
|
-
"
|
|
80
|
-
"Explorer-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"Explorer-locationBreadcrumbs-
|
|
85
|
-
"
|
|
72
|
+
"Explorer-searchSlot": "alinea-Explorer-searchSlot",
|
|
73
|
+
"ExplorerSearchSlot": "alinea-Explorer-searchSlot",
|
|
74
|
+
"Explorer-resultMode": "alinea-Explorer-resultMode",
|
|
75
|
+
"ExplorerResultMode": "alinea-Explorer-resultMode",
|
|
76
|
+
"is-navigation": "alinea-is-navigation",
|
|
77
|
+
"isNavigation": "alinea-is-navigation",
|
|
78
|
+
"Explorer-locationBreadcrumbs-item": "alinea-Explorer-locationBreadcrumbs-item",
|
|
79
|
+
"ExplorerLocationBreadcrumbsItem": "alinea-Explorer-locationBreadcrumbs-item",
|
|
86
80
|
"Explorer-locationBreadcrumbs-current": "alinea-Explorer-locationBreadcrumbs-current",
|
|
87
81
|
"ExplorerLocationBreadcrumbsCurrent": "alinea-Explorer-locationBreadcrumbs-current",
|
|
88
82
|
"Explorer-locationBreadcrumbs-parentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
|
|
89
83
|
"ExplorerLocationBreadcrumbsParentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
|
|
90
|
-
"Explorer-locationBreadcrumbs-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"Explorer-toolbar-mediaActions": "alinea-Explorer-toolbar-mediaActions",
|
|
95
|
-
"ExplorerToolbarMediaActions": "alinea-Explorer-toolbar-mediaActions",
|
|
84
|
+
"Explorer-locationBreadcrumbs-root": "alinea-Explorer-locationBreadcrumbs-root",
|
|
85
|
+
"ExplorerLocationBreadcrumbsRoot": "alinea-Explorer-locationBreadcrumbs-root",
|
|
86
|
+
"ExplorerHeader-content": "alinea-ExplorerHeader-content",
|
|
87
|
+
"ExplorerHeaderContent": "alinea-ExplorerHeader-content",
|
|
96
88
|
"Explorer-searchScope": "alinea-Explorer-searchScope",
|
|
97
89
|
"ExplorerSearchScope": "alinea-Explorer-searchScope",
|
|
90
|
+
"Explorer-locationBreadcrumbs-separator": "alinea-Explorer-locationBreadcrumbs-separator",
|
|
91
|
+
"ExplorerLocationBreadcrumbsSeparator": "alinea-Explorer-locationBreadcrumbs-separator",
|
|
92
|
+
"Explorer-locationBreadcrumbs-value": "alinea-Explorer-locationBreadcrumbs-value",
|
|
93
|
+
"ExplorerLocationBreadcrumbsValue": "alinea-Explorer-locationBreadcrumbs-value",
|
|
94
|
+
"Explorer-locationBreadcrumbs-localeValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
|
|
95
|
+
"ExplorerLocationBreadcrumbsLocaleValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
|
|
96
|
+
"ExplorerHeader-location": "alinea-ExplorerHeader-location",
|
|
97
|
+
"ExplorerHeaderLocation": "alinea-ExplorerHeader-location",
|
|
98
|
+
"Explorer-actions": "alinea-Explorer-actions",
|
|
99
|
+
"ExplorerActions": "alinea-Explorer-actions",
|
|
100
|
+
"Explorer-locationBreadcrumbs-root-locale": "alinea-Explorer-locationBreadcrumbs-root-locale",
|
|
101
|
+
"ExplorerLocationBreadcrumbsRootLocale": "alinea-Explorer-locationBreadcrumbs-root-locale",
|
|
98
102
|
"Explorer-locationBreadcrumbs-parentAction": "alinea-Explorer-locationBreadcrumbs-parentAction",
|
|
99
103
|
"ExplorerLocationBreadcrumbsParentAction": "alinea-Explorer-locationBreadcrumbs-parentAction",
|
|
100
|
-
"Explorer-
|
|
101
|
-
"
|
|
102
|
-
"Explorer-searchSlot": "alinea-Explorer-searchSlot",
|
|
103
|
-
"ExplorerSearchSlot": "alinea-Explorer-searchSlot",
|
|
104
|
-
"Explorer-locationBreadcrumbs-root-locale": "alinea-Explorer-locationBreadcrumbs-root-locale",
|
|
105
|
-
"ExplorerLocationBreadcrumbsRootLocale": "alinea-Explorer-locationBreadcrumbs-root-locale"
|
|
104
|
+
"Explorer-toolbar-tools": "alinea-Explorer-toolbar-tools",
|
|
105
|
+
"ExplorerToolbarTools": "alinea-Explorer-toolbar-tools"
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
// src/dashboard/app/Explorer.tsx
|
|
109
109
|
import { ExplorerBatchActions } from "./ExplorerBatchActions.js";
|
|
110
110
|
import { ExplorerControls } from "./ExplorerControls.js";
|
|
111
111
|
import { ExplorerList } from "./ExplorerList.js";
|
|
112
|
+
import { ExplorerOverviewHeader } from "./ExplorerOverviewHeader.js";
|
|
113
|
+
import { ExplorerTabs } from "./ExplorerTabs.js";
|
|
112
114
|
import { LocaleMenu } from "./LocaleMenu.js";
|
|
113
115
|
import { ActivityStatus } from "./ActivityStatus.js";
|
|
114
116
|
import { ReadOnlyBadge } from "./ReadOnlyBadge.js";
|
|
@@ -727,6 +729,25 @@ function ExplorerHeader({
|
|
|
727
729
|
)
|
|
728
730
|
] }) });
|
|
729
731
|
}
|
|
732
|
+
function ExplorerHeaderView({ page }) {
|
|
733
|
+
const views = useAtomValueRaw(viewsAtom);
|
|
734
|
+
const { location, overview } = page;
|
|
735
|
+
if (!overview.header || !location.root) return null;
|
|
736
|
+
const Header = resolveView(views, overview.header);
|
|
737
|
+
if (!Header) return null;
|
|
738
|
+
return /* @__PURE__ */ jsx(ExplorerOverviewHeader, { children: /* @__PURE__ */ jsx(
|
|
739
|
+
Header,
|
|
740
|
+
{
|
|
741
|
+
workspace: location.workspace,
|
|
742
|
+
root: location.root,
|
|
743
|
+
parentId: location.parentId ?? null,
|
|
744
|
+
locale: page.locale,
|
|
745
|
+
search: page.search,
|
|
746
|
+
filter: page.filter,
|
|
747
|
+
query: page.query
|
|
748
|
+
}
|
|
749
|
+
) });
|
|
750
|
+
}
|
|
730
751
|
function ExplorerBody({
|
|
731
752
|
compactTable,
|
|
732
753
|
explorer,
|
|
@@ -734,18 +755,36 @@ function ExplorerBody({
|
|
|
734
755
|
page,
|
|
735
756
|
children
|
|
736
757
|
}) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
758
|
+
const setTab = useSetAtom(explorer.requestedTab);
|
|
759
|
+
const [, startTransition] = useTransition();
|
|
760
|
+
const { tabs } = page.overview;
|
|
761
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
762
|
+
/* @__PURE__ */ jsx(ExplorerHeaderView, { page }),
|
|
763
|
+
/* @__PURE__ */ jsxs("div", { className: styles.Explorer.viewport(), children: [
|
|
764
|
+
/* @__PURE__ */ jsx(
|
|
765
|
+
ExplorerList,
|
|
766
|
+
{
|
|
767
|
+
compactTable,
|
|
768
|
+
explorer,
|
|
769
|
+
onPick,
|
|
770
|
+
page
|
|
771
|
+
}
|
|
772
|
+
),
|
|
773
|
+
children
|
|
774
|
+
] })
|
|
775
|
+
] });
|
|
776
|
+
return /* @__PURE__ */ jsx(PageContent, { children: page.tab ? /* @__PURE__ */ jsx(
|
|
777
|
+
ExplorerTabs,
|
|
778
|
+
{
|
|
779
|
+
tabs,
|
|
780
|
+
value: page.tab,
|
|
781
|
+
onValueChange: (tab) => (
|
|
782
|
+
// The first tab is the default, it keeps the url short
|
|
783
|
+
startTransition(() => setTab(tab === tabs[0].key ? void 0 : tab))
|
|
784
|
+
),
|
|
785
|
+
children: body
|
|
786
|
+
}
|
|
787
|
+
) : body });
|
|
749
788
|
}
|
|
750
789
|
function Explorer({
|
|
751
790
|
controls,
|
|
@@ -21,13 +21,13 @@ import { IcRoundClose, IcRoundDelete, IcRoundDriveFileMove } from "../icons.js";
|
|
|
21
21
|
|
|
22
22
|
// src/dashboard/app/ExplorerBatchActions.module.css
|
|
23
23
|
var ExplorerBatchActions_default = {
|
|
24
|
-
"ExplorerBatchActionBar-count": "alinea-ExplorerBatchActionBar-count",
|
|
25
|
-
"ExplorerBatchActionBarCount": "alinea-ExplorerBatchActionBar-count",
|
|
26
24
|
"ExplorerBatchActionBar": "alinea-ExplorerBatchActionBar",
|
|
25
|
+
"ExplorerBatchActionBar-action": "alinea-ExplorerBatchActionBar-action",
|
|
26
|
+
"ExplorerBatchActionBarAction": "alinea-ExplorerBatchActionBar-action",
|
|
27
27
|
"ExplorerBatchActionBar-divider": "alinea-ExplorerBatchActionBar-divider",
|
|
28
28
|
"ExplorerBatchActionBarDivider": "alinea-ExplorerBatchActionBar-divider",
|
|
29
|
-
"ExplorerBatchActionBar-
|
|
30
|
-
"
|
|
29
|
+
"ExplorerBatchActionBar-count": "alinea-ExplorerBatchActionBar-count",
|
|
30
|
+
"ExplorerBatchActionBarCount": "alinea-ExplorerBatchActionBar-count"
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// src/dashboard/app/ExplorerBatchActions.tsx
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
|
|
21
21
|
// src/dashboard/app/ExplorerControls.module.css
|
|
22
22
|
var ExplorerControls_default = {
|
|
23
|
-
"ExplorerControls": "alinea-ExplorerControls",
|
|
24
23
|
"ExplorerControls-sortOption": "alinea-ExplorerControls-sortOption",
|
|
25
24
|
"ExplorerControlsSortOption": "alinea-ExplorerControls-sortOption",
|
|
26
25
|
"ExplorerControls-reset": "alinea-ExplorerControls-reset",
|
|
27
26
|
"ExplorerControlsReset": "alinea-ExplorerControls-reset",
|
|
27
|
+
"ExplorerControls": "alinea-ExplorerControls",
|
|
28
28
|
"ExplorerControls-label": "alinea-ExplorerControls-label",
|
|
29
29
|
"ExplorerControlsLabel": "alinea-ExplorerControls-label",
|
|
30
|
-
"ExplorerControls-section": "alinea-ExplorerControls-section",
|
|
31
|
-
"ExplorerControlsSection": "alinea-ExplorerControls-section",
|
|
32
30
|
"ExplorerControls-filterOptions": "alinea-ExplorerControls-filterOptions",
|
|
33
|
-
"ExplorerControlsFilterOptions": "alinea-ExplorerControls-filterOptions"
|
|
31
|
+
"ExplorerControlsFilterOptions": "alinea-ExplorerControls-filterOptions",
|
|
32
|
+
"ExplorerControls-section": "alinea-ExplorerControls-section",
|
|
33
|
+
"ExplorerControlsSection": "alinea-ExplorerControls-section"
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// src/dashboard/app/ExplorerControls.tsx
|
|
@@ -63,7 +63,7 @@ function ExplorerControlsMenu({
|
|
|
63
63
|
}) {
|
|
64
64
|
const filtered = Object.keys(picked).length > 0;
|
|
65
65
|
return /* @__PURE__ */ jsxs("div", { className: styles.ExplorerControls(), children: [
|
|
66
|
-
filters.map((filter) => /* @__PURE__ */ jsxs(
|
|
66
|
+
filters.filter((filter) => filter.options.length > 0).map((filter) => /* @__PURE__ */ jsxs(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
role: "group",
|
|
@@ -37,12 +37,12 @@ import { ExplorerCards } from "./ExplorerCards.js";
|
|
|
37
37
|
|
|
38
38
|
// src/dashboard/app/ExplorerList.module.css
|
|
39
39
|
var ExplorerList_default = {
|
|
40
|
-
"ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
|
|
41
|
-
"ExplorerListDragPreview": "alinea-ExplorerList-drag-preview",
|
|
42
40
|
"ExplorerList-empty": "alinea-ExplorerList-empty",
|
|
43
41
|
"ExplorerListEmpty": "alinea-ExplorerList-empty",
|
|
44
42
|
"ExplorerList-empty-button": "alinea-ExplorerList-empty-button",
|
|
45
43
|
"ExplorerListEmptyButton": "alinea-ExplorerList-empty-button",
|
|
44
|
+
"ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
|
|
45
|
+
"ExplorerListDragPreview": "alinea-ExplorerList-drag-preview",
|
|
46
46
|
"ExplorerList-drag-preview-label": "alinea-ExplorerList-drag-preview-label",
|
|
47
47
|
"ExplorerListDragPreviewLabel": "alinea-ExplorerList-drag-preview-label",
|
|
48
48
|
"ExplorerList": "alinea-ExplorerList"
|
|
@@ -10,12 +10,12 @@ import { Suspense } from "react";
|
|
|
10
10
|
|
|
11
11
|
// src/dashboard/app/ExplorerModal.module.css
|
|
12
12
|
var ExplorerModal_default = {
|
|
13
|
+
"ExplorerModalActions": "alinea-ExplorerModalActions",
|
|
13
14
|
"ExplorerModal": "alinea-ExplorerModal",
|
|
14
|
-
"ExplorerModalContent": "alinea-ExplorerModalContent",
|
|
15
15
|
"ExplorerModalFooter": "alinea-ExplorerModalFooter",
|
|
16
|
-
"ExplorerModalNavigation": "alinea-ExplorerModalNavigation",
|
|
17
16
|
"ExplorerModalLoading": "alinea-ExplorerModalLoading",
|
|
18
|
-
"
|
|
17
|
+
"ExplorerModalContent": "alinea-ExplorerModalContent",
|
|
18
|
+
"ExplorerModalNavigation": "alinea-ExplorerModalNavigation"
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// src/dashboard/app/ExplorerModal.tsx
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ExplorerOverviewHeaderProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/** Places the `overview.header` view between the toolbar and the list */
|
|
6
|
+
export declare function ExplorerOverviewHeader({ children }: ExplorerOverviewHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dist_default
|
|
3
|
+
} from "../../chunks/chunk-I4OYYAX5.js";
|
|
4
|
+
import "../../chunks/chunk-CQ52GEHY.js";
|
|
5
|
+
|
|
6
|
+
// src/dashboard/app/ExplorerOverviewHeader.module.css
|
|
7
|
+
var ExplorerOverviewHeader_default = {
|
|
8
|
+
"ExplorerOverviewHeader": "alinea-ExplorerOverviewHeader"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// src/dashboard/app/ExplorerOverviewHeader.tsx
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var styles = dist_default(ExplorerOverviewHeader_default);
|
|
14
|
+
function ExplorerOverviewHeader({
|
|
15
|
+
children
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: styles.ExplorerOverviewHeader(),
|
|
21
|
+
"data-slot": "overview-header",
|
|
22
|
+
children
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
ExplorerOverviewHeader
|
|
28
|
+
};
|
|
@@ -26,19 +26,19 @@ import { fileKindVisual } from "./FileKind.js";
|
|
|
26
26
|
|
|
27
27
|
// src/dashboard/app/ExplorerTable.module.css
|
|
28
28
|
var ExplorerTable_default = {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"ExplorerTable-breadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
30
|
+
"ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
31
|
+
"ExplorerTable": "alinea-ExplorerTable",
|
|
31
32
|
"ExplorerTable-breadcrumb-root": "alinea-ExplorerTable-breadcrumb-root",
|
|
32
33
|
"ExplorerTableBreadcrumbRoot": "alinea-ExplorerTable-breadcrumb-root",
|
|
33
34
|
"ExplorerTable-breadcrumb-label": "alinea-ExplorerTable-breadcrumb-label",
|
|
34
35
|
"ExplorerTableBreadcrumbLabel": "alinea-ExplorerTable-breadcrumb-label",
|
|
35
|
-
"ExplorerTable-breadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
36
|
-
"ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
37
|
-
"ExplorerTable-viewport": "alinea-ExplorerTable-viewport",
|
|
38
|
-
"ExplorerTableViewport": "alinea-ExplorerTable-viewport",
|
|
39
36
|
"ExplorerTable-breadcrumb": "alinea-ExplorerTable-breadcrumb",
|
|
40
37
|
"ExplorerTableBreadcrumb": "alinea-ExplorerTable-breadcrumb",
|
|
41
|
-
"
|
|
38
|
+
"is-compact": "alinea-is-compact",
|
|
39
|
+
"isCompact": "alinea-is-compact",
|
|
40
|
+
"ExplorerTable-viewport": "alinea-ExplorerTable-viewport",
|
|
41
|
+
"ExplorerTableViewport": "alinea-ExplorerTable-viewport"
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
// src/dashboard/app/ExplorerTable.tsx
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { OverviewTabState } from '../atoms/overview.js';
|
|
3
|
+
export interface ExplorerTabsProps {
|
|
4
|
+
tabs: Array<OverviewTabState>;
|
|
5
|
+
/** The key of the selected tab */
|
|
6
|
+
value: string;
|
|
7
|
+
onValueChange: (value: string) => void;
|
|
8
|
+
/** The listed entries of the selected tab */
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/** The tabs of an overview, above the entries listed for the selected tab */
|
|
12
|
+
export declare function ExplorerTabs({ tabs, value, onValueChange, children }: ExplorerTabsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dist_default
|
|
3
|
+
} from "../../chunks/chunk-I4OYYAX5.js";
|
|
4
|
+
import "../../chunks/chunk-CQ52GEHY.js";
|
|
5
|
+
|
|
6
|
+
// src/dashboard/app/ExplorerTabs.tsx
|
|
7
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "alinea/components";
|
|
8
|
+
|
|
9
|
+
// src/dashboard/app/ExplorerTabs.module.css
|
|
10
|
+
var ExplorerTabs_default = {
|
|
11
|
+
"ExplorerTabs-panel": "alinea-ExplorerTabs-panel",
|
|
12
|
+
"ExplorerTabsPanel": "alinea-ExplorerTabs-panel",
|
|
13
|
+
"ExplorerTabs-bar": "alinea-ExplorerTabs-bar",
|
|
14
|
+
"ExplorerTabsBar": "alinea-ExplorerTabs-bar",
|
|
15
|
+
"ExplorerTabs": "alinea-ExplorerTabs"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// src/dashboard/app/ExplorerTabs.tsx
|
|
19
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
|
+
var styles = dist_default(ExplorerTabs_default);
|
|
21
|
+
function ExplorerTabs({
|
|
22
|
+
tabs,
|
|
23
|
+
value,
|
|
24
|
+
onValueChange,
|
|
25
|
+
children
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsxs(
|
|
28
|
+
Tabs,
|
|
29
|
+
{
|
|
30
|
+
className: styles.ExplorerTabs(),
|
|
31
|
+
value,
|
|
32
|
+
onValueChange,
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: styles.ExplorerTabs.bar(), children: /* @__PURE__ */ jsx(TabsList, { "aria-label": "Overview tabs", children: tabs.map((tab) => /* @__PURE__ */ jsx(TabsTrigger, { value: tab.key, children: tab.label }, tab.key)) }) }),
|
|
35
|
+
/* @__PURE__ */ jsx(TabsContent, { value, className: styles.ExplorerTabs.panel(), children })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
ExplorerTabs
|
|
42
|
+
};
|
|
@@ -14,45 +14,45 @@ import { CroppedImage } from "./CroppedImage.js";
|
|
|
14
14
|
|
|
15
15
|
// src/dashboard/app/ImageEditor.module.css
|
|
16
16
|
var ImageEditor_default = {
|
|
17
|
+
"ImageEditor-toolbar": "alinea-ImageEditor-toolbar",
|
|
18
|
+
"ImageEditorToolbar": "alinea-ImageEditor-toolbar",
|
|
19
|
+
"ImageEditor-crop-grid": "alinea-ImageEditor-crop-grid",
|
|
20
|
+
"ImageEditorCropGrid": "alinea-ImageEditor-crop-grid",
|
|
21
|
+
"ImageEditor-aspect": "alinea-ImageEditor-aspect",
|
|
22
|
+
"ImageEditorAspect": "alinea-ImageEditor-aspect",
|
|
23
|
+
"is-e": "alinea-is-e",
|
|
24
|
+
"isE": "alinea-is-e",
|
|
25
|
+
"is-se": "alinea-is-se",
|
|
26
|
+
"isSe": "alinea-is-se",
|
|
27
|
+
"is-sw": "alinea-is-sw",
|
|
28
|
+
"isSw": "alinea-is-sw",
|
|
17
29
|
"ImageEditor-size": "alinea-ImageEditor-size",
|
|
18
30
|
"ImageEditorSize": "alinea-ImageEditor-size",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"is-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
31
|
+
"is-nw": "alinea-is-nw",
|
|
32
|
+
"isNw": "alinea-is-nw",
|
|
33
|
+
"is-ne": "alinea-is-ne",
|
|
34
|
+
"isNe": "alinea-is-ne",
|
|
35
|
+
"is-s": "alinea-is-s",
|
|
36
|
+
"isS": "alinea-is-s",
|
|
25
37
|
"ImageEditor-image": "alinea-ImageEditor-image",
|
|
26
38
|
"ImageEditorImage": "alinea-ImageEditor-image",
|
|
27
|
-
"ImageEditor": "alinea-ImageEditor",
|
|
28
39
|
"ImageEditor-shade-hole": "alinea-ImageEditor-shade-hole",
|
|
29
40
|
"ImageEditorShadeHole": "alinea-ImageEditor-shade-hole",
|
|
30
|
-
"ImageEditor-crop": "alinea-ImageEditor-crop",
|
|
31
|
-
"ImageEditorCrop": "alinea-ImageEditor-crop",
|
|
32
|
-
"is-s": "alinea-is-s",
|
|
33
|
-
"isS": "alinea-is-s",
|
|
34
|
-
"is-w": "alinea-is-w",
|
|
35
|
-
"isW": "alinea-is-w",
|
|
36
|
-
"is-ne": "alinea-is-ne",
|
|
37
|
-
"isNe": "alinea-is-ne",
|
|
38
|
-
"is-nw": "alinea-is-nw",
|
|
39
|
-
"isNw": "alinea-is-nw",
|
|
40
|
-
"is-sw": "alinea-is-sw",
|
|
41
|
-
"isSw": "alinea-is-sw",
|
|
42
|
-
"ImageEditor-crop-grid": "alinea-ImageEditor-crop-grid",
|
|
43
|
-
"ImageEditorCropGrid": "alinea-ImageEditor-crop-grid",
|
|
44
|
-
"is-e": "alinea-is-e",
|
|
45
|
-
"isE": "alinea-is-e",
|
|
46
|
-
"ImageEditor-toolbar": "alinea-ImageEditor-toolbar",
|
|
47
|
-
"ImageEditorToolbar": "alinea-ImageEditor-toolbar",
|
|
48
|
-
"ImageEditor-crop-handle": "alinea-ImageEditor-crop-handle",
|
|
49
|
-
"ImageEditorCropHandle": "alinea-ImageEditor-crop-handle",
|
|
50
|
-
"ImageEditor-aspect": "alinea-ImageEditor-aspect",
|
|
51
|
-
"ImageEditorAspect": "alinea-ImageEditor-aspect",
|
|
52
41
|
"ImageEditor-stage": "alinea-ImageEditor-stage",
|
|
53
42
|
"ImageEditorStage": "alinea-ImageEditor-stage",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
43
|
+
"ImageEditor": "alinea-ImageEditor",
|
|
44
|
+
"ImageEditor-crop-handle": "alinea-ImageEditor-crop-handle",
|
|
45
|
+
"ImageEditorCropHandle": "alinea-ImageEditor-crop-handle",
|
|
46
|
+
"ImageEditor-canvas": "alinea-ImageEditor-canvas",
|
|
47
|
+
"ImageEditorCanvas": "alinea-ImageEditor-canvas",
|
|
48
|
+
"is-n": "alinea-is-n",
|
|
49
|
+
"isN": "alinea-is-n",
|
|
50
|
+
"is-w": "alinea-is-w",
|
|
51
|
+
"isW": "alinea-is-w",
|
|
52
|
+
"ImageEditor-crop": "alinea-ImageEditor-crop",
|
|
53
|
+
"ImageEditorCrop": "alinea-ImageEditor-crop",
|
|
54
|
+
"ImageEditor-shade": "alinea-ImageEditor-shade",
|
|
55
|
+
"ImageEditorShade": "alinea-ImageEditor-shade"
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
// src/dashboard/app/ImageEditor.tsx
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
|
|
36
36
|
// src/dashboard/app/LinkPicker.module.css
|
|
37
37
|
var LinkPicker_default = {
|
|
38
|
-
"LinkPickerCompact": "alinea-LinkPickerCompact",
|
|
38
|
+
"LinkPickerCompact-footer": "alinea-LinkPickerCompact-footer",
|
|
39
|
+
"LinkPickerCompactFooter": "alinea-LinkPickerCompact-footer",
|
|
39
40
|
"LinkPicker-popover": "alinea-LinkPicker-popover",
|
|
40
41
|
"LinkPickerPopover": "alinea-LinkPicker-popover",
|
|
41
|
-
"LinkPickerCompact
|
|
42
|
-
"LinkPickerCompactFooter": "alinea-LinkPickerCompact-footer"
|
|
42
|
+
"LinkPickerCompact": "alinea-LinkPickerCompact"
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
// src/dashboard/app/LinkPicker.tsx
|
|
@@ -21,18 +21,18 @@ import { IcRoundUnfoldMore } from "../icons.js";
|
|
|
21
21
|
|
|
22
22
|
// src/dashboard/app/LocaleMenu.module.css
|
|
23
23
|
var LocaleMenu_default = {
|
|
24
|
-
"LocaleMenu-trigger-icon": "alinea-LocaleMenu-trigger-icon",
|
|
25
|
-
"LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon",
|
|
26
|
-
"is-lg": "alinea-is-lg",
|
|
27
|
-
"isLg": "alinea-is-lg",
|
|
28
|
-
"LocaleMenu-label": "alinea-LocaleMenu-label",
|
|
29
|
-
"LocaleMenuLabel": "alinea-LocaleMenu-label",
|
|
30
|
-
"LocaleMenu-label-fullName": "alinea-LocaleMenu-label-fullName",
|
|
31
|
-
"LocaleMenuLabelFullName": "alinea-LocaleMenu-label-fullName",
|
|
32
24
|
"LocaleMenu-trigger": "alinea-LocaleMenu-trigger",
|
|
33
25
|
"LocaleMenuTrigger": "alinea-LocaleMenu-trigger",
|
|
26
|
+
"LocaleMenu-label-fullName": "alinea-LocaleMenu-label-fullName",
|
|
27
|
+
"LocaleMenuLabelFullName": "alinea-LocaleMenu-label-fullName",
|
|
28
|
+
"LocaleMenu-label": "alinea-LocaleMenu-label",
|
|
29
|
+
"LocaleMenuLabel": "alinea-LocaleMenu-label",
|
|
34
30
|
"LocaleMenu-label-code": "alinea-LocaleMenu-label-code",
|
|
35
|
-
"LocaleMenuLabelCode": "alinea-LocaleMenu-label-code"
|
|
31
|
+
"LocaleMenuLabelCode": "alinea-LocaleMenu-label-code",
|
|
32
|
+
"LocaleMenu-trigger-icon": "alinea-LocaleMenu-trigger-icon",
|
|
33
|
+
"LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon",
|
|
34
|
+
"is-lg": "alinea-is-lg",
|
|
35
|
+
"isLg": "alinea-is-lg"
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
// src/dashboard/app/LocaleMenu.tsx
|