alinea 2.0.0-preview.1 → 2.0.0-preview.2
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/LICENSES.md +61 -34
- package/dist/adapter/next/DevRemote.d.ts +3 -0
- package/dist/adapter/next/DevRemote.js +37 -0
- package/dist/adapter/next/ForwardCredentials.d.ts +1 -0
- package/dist/adapter/next/ForwardCredentials.js +17 -0
- package/dist/adapter/next/cms.js +86 -38
- package/dist/adapter/next/context.d.ts +1 -1
- package/dist/adapter/next/context.js +11 -3
- package/dist/adapter/next/handler.d.ts +2 -0
- package/dist/adapter/next/handler.js +23 -16
- package/dist/adapter/next/with-alinea.js +18 -16
- package/dist/backend/Handler.d.ts +14 -13
- package/dist/backend/Handler.js +53 -22
- package/dist/backend/resolver/ParsePreview.d.ts +8 -4
- package/dist/backend/resolver/ParsePreview.js +40 -43
- package/dist/bundled.d.ts +255 -60
- package/dist/chunks/{chunk-LUBOGJCG.js → chunk-6V4TAD2N.js} +1 -1
- package/dist/chunks/{chunk-TL7ZW6BX.js → chunk-A3XXZBOQ.js} +2535 -2999
- package/dist/chunks/chunk-AC5ATYI3.js +1434 -0
- package/dist/chunks/{chunk-7ORQ7BYK.js → chunk-KMLLLZ6X.js} +202 -269
- package/dist/chunks/{chunk-IWN3T3FL.js → chunk-O7XWTMCB.js} +1 -1
- package/dist/chunks/{chunk-53DZYORR.js → chunk-PAYSVIYI.js} +76 -176
- package/dist/chunks/{chunk-YK3OSMDM.js → chunk-S4AU6SRS.js} +188 -158
- package/dist/chunks/{chunk-FRYHNUEK.js → chunk-UVOEM4AH.js} +6 -3
- package/dist/chunks/{chunk-I7X64JTZ.js → chunk-VXZM6V4P.js} +4 -4
- package/dist/cli/Generate.js +3 -13
- package/dist/cli/Serve.js +7 -3
- package/dist/cli/bin.js +8 -5
- package/dist/cli/generate/CopyStaticFiles.js +2 -3
- package/dist/cli/generate/DevDB.d.ts +1 -1
- package/dist/cli/generate/DevDB.js +3 -5
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +3 -2
- package/dist/cli/serve/DevServer.d.ts +3 -2
- package/dist/cli/serve/DevServer.js +60 -3
- package/dist/cli/serve/ServeContext.d.ts +1 -0
- package/dist/cli/serve/StartServer.d.ts +1 -0
- package/dist/cli/serve/StartServer.js +6 -1
- package/dist/cli/util/EnsureLibs.js +2 -2
- package/dist/cli/util/EnsureNode.js +2 -2
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Breadcrumbs.js +8 -8
- package/dist/components/Button.js +6 -6
- package/dist/components/Calendar.js +9 -9
- package/dist/components/Checkbox.js +9 -9
- package/dist/components/CheckboxGroup.js +6 -6
- package/dist/components/ColorSwatch.js +6 -6
- package/dist/components/ColorSwatchPicker.js +6 -6
- package/dist/components/ComboBox.js +16 -16
- package/dist/components/DateField.js +9 -9
- package/dist/components/DatePicker.js +11 -11
- package/dist/components/DateRangePicker.js +14 -14
- package/dist/components/Dialog.js +6 -6
- package/dist/components/Disclosure.js +14 -14
- package/dist/components/DropZone.js +6 -6
- package/dist/components/Label.js +14 -14
- package/dist/components/Link.js +6 -6
- package/dist/components/List.js +32 -32
- package/dist/components/Menu.js +10 -10
- package/dist/components/Modal.js +8 -8
- package/dist/components/MultipleSelect.js +25 -25
- package/dist/components/NumberField.d.ts +2 -1
- package/dist/components/NumberField.js +25 -15
- package/dist/components/Popover.js +6 -6
- package/dist/components/ProgressCircle.js +9 -9
- package/dist/components/RadioGroup.js +8 -8
- package/dist/components/SearchField.js +15 -15
- package/dist/components/Select.js +14 -14
- package/dist/components/Surface.js +2 -2
- package/dist/components/Switch.js +8 -8
- package/dist/components/Table.js +14 -14
- package/dist/components/Tabs.js +7 -7
- package/dist/components/TagGroup.js +8 -8
- package/dist/components/TextField.js +10 -10
- package/dist/components/TimeField.js +8 -8
- package/dist/components/Toggle.js +8 -8
- package/dist/components/Toolbar.js +9 -9
- package/dist/components/Tooltip.js +7 -7
- package/dist/components/Tree.js +10 -10
- package/dist/core/Client.js +3 -2
- package/dist/core/Config.d.ts +4 -0
- package/dist/core/Config.js +6 -0
- package/dist/core/Connection.d.ts +2 -2
- package/dist/core/Connection.js +7 -0
- package/dist/core/Graph.d.ts +3 -4
- package/dist/core/ListRow.d.ts +2 -0
- package/dist/core/OrderBy.d.ts +7 -3
- package/dist/core/TextDoc.d.ts +11 -0
- package/dist/core/Trace.d.ts +8 -0
- package/dist/core/Trace.js +32 -0
- package/dist/core/db/CommitRequest.d.ts +0 -3
- package/dist/core/db/CommitRequest.js +0 -9
- package/dist/core/db/EntryDB.js +1 -1
- package/dist/core/db/EntryIndex.d.ts +10 -0
- package/dist/core/db/EntryIndex.js +117 -9
- package/dist/core/db/EntryResolver.js +104 -29
- package/dist/core/db/EntryTransaction.d.ts +1 -2
- package/dist/core/db/EntryTransaction.js +25 -13
- package/dist/core/db/LocalDB.d.ts +2 -3
- package/dist/core/db/LocalDB.js +24 -19
- package/dist/core/field/RichTextField.d.ts +30 -3
- package/dist/core/field/RichTextField.js +125 -41
- package/dist/core/media/MediaAltField.d.ts +1 -0
- package/dist/core/media/MediaAltField.js +9 -1
- package/dist/core/source/OverlaySource.d.ts +12 -0
- package/dist/core/source/OverlaySource.js +50 -0
- package/dist/core/source/Source.d.ts +1 -1
- package/dist/core/source/Source.js +3 -3
- package/dist/dashboard/App.css +158 -0
- package/dist/dashboard/App.js +3 -3
- package/dist/dashboard/app/AccessDenied.js +1 -1
- package/dist/dashboard/app/ActivityStatus.js +14 -14
- package/dist/dashboard/app/AppShell.js +2 -2
- package/dist/dashboard/app/AuthView.js +12 -12
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +13 -13
- package/dist/dashboard/app/DashboardErrorBoundary.js +6 -6
- package/dist/dashboard/app/DashboardLayout.js +22 -19
- package/dist/dashboard/app/EntryHeader.js +10 -10
- package/dist/dashboard/app/EntryReferences.js +9 -9
- package/dist/dashboard/app/EntrySidebar.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebar.js +19 -18
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +1 -1
- package/dist/dashboard/app/EntrySidebarPreview.js +20 -15
- package/dist/dashboard/app/EntryTranslationBanner.js +6 -6
- package/dist/dashboard/app/Explorer.js +46 -46
- package/dist/dashboard/app/ExplorerCards.js +42 -42
- package/dist/dashboard/app/ExplorerFileCard.js +16 -16
- package/dist/dashboard/app/ExplorerList.js +15 -15
- package/dist/dashboard/app/ExplorerModal.js +5 -5
- package/dist/dashboard/app/ExplorerTable.js +54 -54
- package/dist/dashboard/app/ExternalLinkPicker.js +15 -4
- package/dist/dashboard/app/LinkPicker.js +6 -6
- package/dist/dashboard/app/LocaleMenu.js +11 -11
- package/dist/dashboard/app/SidebarLayout.d.ts +8 -0
- package/dist/dashboard/app/SidebarLayout.js +1169 -0
- package/dist/dashboard/app/SidebarTree.js +44 -44
- package/dist/dashboard/app/WorkspaceMenu.js +17 -17
- package/dist/dashboard/app/WorkspaceRoots.js +26 -26
- package/dist/dashboard/app/editor/FileEditor.js +28 -29
- package/dist/dashboard/app/editor/FilePreview.js +2 -2
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +1 -1
- package/dist/dashboard/app/editor/MediaAltField.view.js +6 -9
- package/dist/dashboard/app/modals/CreateEntry.js +4 -4
- package/dist/dashboard/app/pages/EntryPage.js +49 -25
- package/dist/dashboard/app/pages/UsersPage.js +38 -38
- package/dist/dashboard/app/ui/DashboardModal.js +22 -22
- package/dist/dashboard/app/ui/Rail.js +2 -2
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/dashboard/atoms/auth.js +2 -0
- package/dist/dashboard/atoms/dashboard.d.ts +9 -0
- package/dist/dashboard/atoms/dashboard.js +17 -0
- package/dist/dashboard/atoms/editor.d.ts +7 -1
- package/dist/dashboard/atoms/editor.js +4 -1
- package/dist/dashboard/atoms/entry.d.ts +3 -1
- package/dist/dashboard/atoms/entry.js +55 -15
- package/dist/dashboard/atoms/explorer.js +3 -8
- package/dist/dashboard/atoms/preview.d.ts +3 -0
- package/dist/dashboard/atoms/preview.js +18 -1
- package/dist/dashboard/hooks.d.ts +4 -2
- package/dist/dashboard/hooks.js +9 -5
- package/dist/dashboard/icons.d.ts +1 -0
- package/dist/dashboard/icons.js +10 -0
- package/dist/field/check/CheckField.view.js +2 -2
- package/dist/field/code/CodeField.view.js +13 -13
- package/dist/field/date/DateField.view.js +12 -2
- package/dist/field/link/Link.js +2 -2
- package/dist/field/link/LinkField.view.js +88 -77
- package/dist/field/list/ListField.view.js +22 -33
- package/dist/field/metadata/MetadataField.view.js +20 -20
- package/dist/field/number/NumberField.d.ts +2 -0
- package/dist/field/number/NumberField.view.js +4 -2
- package/dist/field/richtext/PickTextLink.d.ts +7 -0
- package/dist/field/richtext/PickTextLink.js +104 -2
- package/dist/field/richtext/ReferenceLink.d.ts +4 -1
- package/dist/field/richtext/ReferenceLink.js +18 -4
- package/dist/field/richtext/RichTextDocument.d.ts +7 -2
- package/dist/field/richtext/RichTextDocument.js +34 -5
- package/dist/field/richtext/RichTextExtensions.d.ts +3 -1
- package/dist/field/richtext/RichTextExtensions.js +2704 -7467
- package/dist/field/richtext/RichTextField.d.ts +4 -0
- package/dist/field/richtext/RichTextField.story.d.ts +4 -0
- package/dist/field/richtext/RichTextField.view.js +44 -21
- package/dist/field/richtext/RichTextInsertMenu.js +281 -495
- package/dist/field/richtext/RichTextToolbar.d.ts +5 -2
- package/dist/field/richtext/RichTextToolbar.js +38 -3
- package/dist/field/richtext/Toolbar.d.ts +19 -1
- package/dist/field/richtext/Toolbar.js +18 -13
- package/dist/field/richtext/extensions/Anchor.js +1 -1
- package/dist/field/richtext/extensions/Link.js +1 -1
- package/dist/field/richtext/extensions/Small.js +1 -1
- package/dist/field/select/SelectField.view.js +8 -6
- package/dist/index.css +219 -14
- package/dist/next.cjs +18 -16
- package/dist/next.d.ts +2 -1
- package/dist/next.edge.d.ts +2 -1
- package/dist/ui/RichText.d.ts +1 -0
- package/dist/ui/RichText.js +29 -2
- package/package.json +6 -3
- package/dist/chunks/{chunk-JFROOUG6.js → chunk-NIVGVRDS.js} +17 -17
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
import "../../chunks/chunk-Y7XOMJOC.js";
|
|
7
7
|
import {
|
|
8
8
|
$143fb904d86051ce$export$89be5a243e59c4b2
|
|
9
|
-
} from "../../chunks/chunk-
|
|
9
|
+
} from "../../chunks/chunk-VXZM6V4P.js";
|
|
10
10
|
import {
|
|
11
11
|
$42ceafc619f9c3ba$export$fb8073518f34e6ec
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-O7XWTMCB.js";
|
|
13
13
|
import "../../chunks/chunk-RKDPDEF7.js";
|
|
14
14
|
import {
|
|
15
15
|
$942f06a693c162e2$export$cacbb3924155d68e
|
|
16
|
-
} from "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-SJBZFMQ2.js";
|
|
16
|
+
} from "../../chunks/chunk-NIVGVRDS.js";
|
|
18
17
|
import "../../chunks/chunk-IYAQC63Y.js";
|
|
18
|
+
import "../../chunks/chunk-SJBZFMQ2.js";
|
|
19
19
|
import {
|
|
20
20
|
$32ef394310635fd5$export$2cfc5be7a55829f6
|
|
21
|
-
} from "../../chunks/chunk-
|
|
22
|
-
import "../../chunks/chunk-
|
|
21
|
+
} from "../../chunks/chunk-6V4TAD2N.js";
|
|
22
|
+
import "../../chunks/chunk-S4AU6SRS.js";
|
|
23
23
|
import "../../chunks/chunk-AC4U3IMS.js";
|
|
24
24
|
import {
|
|
25
25
|
dist_default
|
|
@@ -43,62 +43,62 @@ import { LocaleMenu } from "./LocaleMenu.js";
|
|
|
43
43
|
|
|
44
44
|
// src/dashboard/app/SidebarTree.module.css
|
|
45
45
|
var SidebarTree_default = {
|
|
46
|
+
"SidebarTree-rootButton": "alinea-SidebarTree-rootButton",
|
|
47
|
+
"SidebarTreeRootButton": "alinea-SidebarTree-rootButton",
|
|
48
|
+
"SidebarTree-itemSkeleton-label": "alinea-SidebarTree-itemSkeleton-label",
|
|
49
|
+
"SidebarTreeItemSkeletonLabel": "alinea-SidebarTree-itemSkeleton-label",
|
|
46
50
|
"is-selected": "alinea-is-selected",
|
|
47
51
|
"isSelected": "alinea-is-selected",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
+
"SidebarTree-rootButton-label": "alinea-SidebarTree-rootButton-label",
|
|
53
|
+
"SidebarTreeRootButtonLabel": "alinea-SidebarTree-rootButton-label",
|
|
54
|
+
"SidebarTree-root": "alinea-SidebarTree-root",
|
|
55
|
+
"SidebarTreeRoot": "alinea-SidebarTree-root",
|
|
52
56
|
"SidebarTree-rootButton-locale": "alinea-SidebarTree-rootButton-locale",
|
|
53
57
|
"SidebarTreeRootButtonLocale": "alinea-SidebarTree-rootButton-locale",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"SidebarTree-
|
|
57
|
-
"
|
|
58
|
+
"is-draft": "alinea-is-draft",
|
|
59
|
+
"isDraft": "alinea-is-draft",
|
|
60
|
+
"SidebarTree-tree": "alinea-SidebarTree-tree",
|
|
61
|
+
"SidebarTreeTree": "alinea-SidebarTree-tree",
|
|
58
62
|
"SidebarTree-skeleton-pulse": "alinea-SidebarTree-skeleton-pulse",
|
|
59
63
|
"SidebarTreeSkeletonPulse": "alinea-SidebarTree-skeleton-pulse",
|
|
64
|
+
"SidebarTree-skeleton-label": "alinea-SidebarTree-skeleton-label",
|
|
65
|
+
"SidebarTreeSkeletonLabel": "alinea-SidebarTree-skeleton-label",
|
|
66
|
+
"SidebarTree-skeleton-row": "alinea-SidebarTree-skeleton-row",
|
|
67
|
+
"SidebarTreeSkeletonRow": "alinea-SidebarTree-skeleton-row",
|
|
68
|
+
"is-archived": "alinea-is-archived",
|
|
69
|
+
"isArchived": "alinea-is-archived",
|
|
60
70
|
"is-untranslated": "alinea-is-untranslated",
|
|
61
71
|
"isUntranslated": "alinea-is-untranslated",
|
|
62
|
-
"SidebarTree-itemSkeleton-label": "alinea-SidebarTree-itemSkeleton-label",
|
|
63
|
-
"SidebarTreeItemSkeletonLabel": "alinea-SidebarTree-itemSkeleton-label",
|
|
64
|
-
"SidebarTree-status": "alinea-SidebarTree-status",
|
|
65
|
-
"SidebarTreeStatus": "alinea-SidebarTree-status",
|
|
66
|
-
"SidebarTree-itemLoading-pulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
67
|
-
"SidebarTreeItemLoadingPulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
68
72
|
"SidebarTree-entryLink": "alinea-SidebarTree-entryLink",
|
|
69
73
|
"SidebarTreeEntryLink": "alinea-SidebarTree-entryLink",
|
|
70
|
-
"SidebarTree-rootButton-label": "alinea-SidebarTree-rootButton-label",
|
|
71
|
-
"SidebarTreeRootButtonLabel": "alinea-SidebarTree-rootButton-label",
|
|
72
|
-
"is-parentSelected": "alinea-is-parentSelected",
|
|
73
|
-
"isParentSelected": "alinea-is-parentSelected",
|
|
74
|
-
"SidebarTree-skeleton-icon": "alinea-SidebarTree-skeleton-icon",
|
|
75
|
-
"SidebarTreeSkeletonIcon": "alinea-SidebarTree-skeleton-icon",
|
|
76
74
|
"SidebarTree-skeleton": "alinea-SidebarTree-skeleton",
|
|
77
75
|
"SidebarTreeSkeleton": "alinea-SidebarTree-skeleton",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"SidebarTree-skeleton-label": "alinea-SidebarTree-skeleton-label",
|
|
81
|
-
"SidebarTreeSkeletonLabel": "alinea-SidebarTree-skeleton-label",
|
|
82
|
-
"is-archived": "alinea-is-archived",
|
|
83
|
-
"isArchived": "alinea-is-archived",
|
|
84
|
-
"SidebarTree-tree": "alinea-SidebarTree-tree",
|
|
85
|
-
"SidebarTreeTree": "alinea-SidebarTree-tree",
|
|
86
|
-
"is-draft": "alinea-is-draft",
|
|
87
|
-
"isDraft": "alinea-is-draft",
|
|
76
|
+
"is-short": "alinea-is-short",
|
|
77
|
+
"isShort": "alinea-is-short",
|
|
88
78
|
"SidebarTree-loading": "alinea-SidebarTree-loading",
|
|
89
79
|
"SidebarTreeLoading": "alinea-SidebarTree-loading",
|
|
90
|
-
"SidebarTree-
|
|
91
|
-
"
|
|
92
|
-
"SidebarTree-
|
|
93
|
-
"
|
|
80
|
+
"SidebarTree-itemLoading": "alinea-SidebarTree-itemLoading",
|
|
81
|
+
"SidebarTreeItemLoading": "alinea-SidebarTree-itemLoading",
|
|
82
|
+
"SidebarTree-itemLoading-pulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
83
|
+
"SidebarTreeItemLoadingPulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
94
84
|
"SidebarTree-item": "alinea-SidebarTree-item",
|
|
95
85
|
"SidebarTreeItem": "alinea-SidebarTree-item",
|
|
86
|
+
"SidebarTree-skeleton-chevron": "alinea-SidebarTree-skeleton-chevron",
|
|
87
|
+
"SidebarTreeSkeletonChevron": "alinea-SidebarTree-skeleton-chevron",
|
|
88
|
+
"SidebarTree-skeleton-icon": "alinea-SidebarTree-skeleton-icon",
|
|
89
|
+
"SidebarTreeSkeletonIcon": "alinea-SidebarTree-skeleton-icon",
|
|
96
90
|
"is-loading": "alinea-is-loading",
|
|
97
91
|
"isLoading": "alinea-is-loading",
|
|
98
|
-
"SidebarTree-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
92
|
+
"SidebarTree-tree-viewport": "alinea-SidebarTree-tree-viewport",
|
|
93
|
+
"SidebarTreeTreeViewport": "alinea-SidebarTree-tree-viewport",
|
|
94
|
+
"is-unpublished": "alinea-is-unpublished",
|
|
95
|
+
"isUnpublished": "alinea-is-unpublished",
|
|
96
|
+
"is-parentSelected": "alinea-is-parentSelected",
|
|
97
|
+
"isParentSelected": "alinea-is-parentSelected",
|
|
98
|
+
"SidebarTree-status": "alinea-SidebarTree-status",
|
|
99
|
+
"SidebarTreeStatus": "alinea-SidebarTree-status",
|
|
100
|
+
"SidebarTree-rootButton-action": "alinea-SidebarTree-rootButton-action",
|
|
101
|
+
"SidebarTreeRootButtonAction": "alinea-SidebarTree-rootButton-action"
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// src/dashboard/app/SidebarTree.tsx
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
import "../../chunks/chunk-Y7XOMJOC.js";
|
|
6
6
|
import {
|
|
7
7
|
$7705c033048f6da7$export$353f5b6fc5456de1
|
|
8
|
-
} from "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
8
|
+
} from "../../chunks/chunk-VXZM6V4P.js";
|
|
9
|
+
import "../../chunks/chunk-O7XWTMCB.js";
|
|
10
10
|
import "../../chunks/chunk-RKDPDEF7.js";
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-SJBZFMQ2.js";
|
|
11
|
+
import "../../chunks/chunk-NIVGVRDS.js";
|
|
13
12
|
import "../../chunks/chunk-IYAQC63Y.js";
|
|
14
|
-
import "../../chunks/chunk-
|
|
15
|
-
import "../../chunks/chunk-
|
|
13
|
+
import "../../chunks/chunk-SJBZFMQ2.js";
|
|
14
|
+
import "../../chunks/chunk-6V4TAD2N.js";
|
|
15
|
+
import "../../chunks/chunk-S4AU6SRS.js";
|
|
16
16
|
import "../../chunks/chunk-AC4U3IMS.js";
|
|
17
17
|
import {
|
|
18
18
|
dist_default
|
|
@@ -47,22 +47,22 @@ import {
|
|
|
47
47
|
|
|
48
48
|
// src/dashboard/app/WorkspaceMenu.module.css
|
|
49
49
|
var WorkspaceMenu_default = {
|
|
50
|
-
"WorkspaceMenu-avatar": "alinea-WorkspaceMenu-avatar",
|
|
51
|
-
"WorkspaceMenuAvatar": "alinea-WorkspaceMenu-avatar",
|
|
52
|
-
"WorkspaceMenu-avatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
53
|
-
"WorkspaceMenuAvatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
54
|
-
"WorkspaceMenu-parent": "alinea-WorkspaceMenu-parent",
|
|
55
|
-
"WorkspaceMenuParent": "alinea-WorkspaceMenu-parent",
|
|
56
|
-
"WorkspaceMenu-trigger-text": "alinea-WorkspaceMenu-trigger-text",
|
|
57
|
-
"WorkspaceMenuTriggerText": "alinea-WorkspaceMenu-trigger-text",
|
|
58
50
|
"WorkspaceMenu-trigger": "alinea-WorkspaceMenu-trigger",
|
|
59
51
|
"WorkspaceMenuTrigger": "alinea-WorkspaceMenu-trigger",
|
|
60
|
-
"WorkspaceMenu-menuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
61
|
-
"WorkspaceMenuMenuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
62
52
|
"WorkspaceMenu-search": "alinea-WorkspaceMenu-search",
|
|
63
53
|
"WorkspaceMenuSearch": "alinea-WorkspaceMenu-search",
|
|
54
|
+
"WorkspaceMenu-avatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
55
|
+
"WorkspaceMenuAvatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
56
|
+
"WorkspaceMenu-avatar": "alinea-WorkspaceMenu-avatar",
|
|
57
|
+
"WorkspaceMenuAvatar": "alinea-WorkspaceMenu-avatar",
|
|
58
|
+
"WorkspaceMenu-menuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
59
|
+
"WorkspaceMenuMenuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
64
60
|
"WorkspaceMenu-avatar-logo": "alinea-WorkspaceMenu-avatar-logo",
|
|
65
|
-
"WorkspaceMenuAvatarLogo": "alinea-WorkspaceMenu-avatar-logo"
|
|
61
|
+
"WorkspaceMenuAvatarLogo": "alinea-WorkspaceMenu-avatar-logo",
|
|
62
|
+
"WorkspaceMenu-parent": "alinea-WorkspaceMenu-parent",
|
|
63
|
+
"WorkspaceMenuParent": "alinea-WorkspaceMenu-parent",
|
|
64
|
+
"WorkspaceMenu-trigger-text": "alinea-WorkspaceMenu-trigger-text",
|
|
65
|
+
"WorkspaceMenuTriggerText": "alinea-WorkspaceMenu-trigger-text"
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
// src/dashboard/app/WorkspaceMenu.tsx
|
|
@@ -46,43 +46,43 @@ import { WorkspaceAvatarMenu } from "./WorkspaceMenu.js";
|
|
|
46
46
|
|
|
47
47
|
// src/dashboard/app/WorkspaceRoots.module.css
|
|
48
48
|
var WorkspaceRoots_default = {
|
|
49
|
-
"WorkspaceRoots-
|
|
50
|
-
"
|
|
51
|
-
"WorkspaceRoots-
|
|
52
|
-
"
|
|
53
|
-
"WorkspaceRoots-profile-popover-
|
|
54
|
-
"
|
|
49
|
+
"WorkspaceRoots-profile": "alinea-WorkspaceRoots-profile",
|
|
50
|
+
"WorkspaceRootsProfile": "alinea-WorkspaceRoots-profile",
|
|
51
|
+
"WorkspaceRoots-profile-popover-user-title": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
52
|
+
"WorkspaceRootsProfilePopoverUserTitle": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
53
|
+
"WorkspaceRoots-profile-popover-item-label": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
54
|
+
"WorkspaceRootsProfilePopoverItemLabel": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
55
|
+
"WorkspaceRoots-profile-popover-user-icon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
56
|
+
"WorkspaceRootsProfilePopoverUserIcon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
57
|
+
"WorkspaceRoots": "alinea-WorkspaceRoots",
|
|
55
58
|
"WorkspaceRoots-profile-popover-user": "alinea-WorkspaceRoots-profile-popover-user",
|
|
56
59
|
"WorkspaceRootsProfilePopoverUser": "alinea-WorkspaceRoots-profile-popover-user",
|
|
57
|
-
"WorkspaceRoots-profile-popover-themeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
58
|
-
"WorkspaceRootsProfilePopoverThemeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
59
|
-
"WorkspaceRoots-profile-popover-action-button": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
60
|
-
"WorkspaceRootsProfilePopoverActionButton": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
61
60
|
"WorkspaceRoots-profile-popover-action-label": "alinea-WorkspaceRoots-profile-popover-action-label",
|
|
62
61
|
"WorkspaceRootsProfilePopoverActionLabel": "alinea-WorkspaceRoots-profile-popover-action-label",
|
|
62
|
+
"WorkspaceRoots-profile-popover-action-button": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
63
|
+
"WorkspaceRootsProfilePopoverActionButton": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
64
|
+
"WorkspaceRoots-profile-popover-surface": "alinea-WorkspaceRoots-profile-popover-surface",
|
|
65
|
+
"WorkspaceRootsProfilePopoverSurface": "alinea-WorkspaceRoots-profile-popover-surface",
|
|
66
|
+
"WorkspaceRoots-workspace": "alinea-WorkspaceRoots-workspace",
|
|
67
|
+
"WorkspaceRootsWorkspace": "alinea-WorkspaceRoots-workspace",
|
|
68
|
+
"WorkspaceRoots-profile-popover": "alinea-WorkspaceRoots-profile-popover",
|
|
69
|
+
"WorkspaceRootsProfilePopover": "alinea-WorkspaceRoots-profile-popover",
|
|
70
|
+
"WorkspaceRoots-footer": "alinea-WorkspaceRoots-footer",
|
|
71
|
+
"WorkspaceRootsFooter": "alinea-WorkspaceRoots-footer",
|
|
72
|
+
"WorkspaceRoots-profile-popover-themeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
73
|
+
"WorkspaceRootsProfilePopoverThemeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
63
74
|
"WorkspaceRoots-trigger-text": "alinea-WorkspaceRoots-trigger-text",
|
|
64
75
|
"WorkspaceRootsTriggerText": "alinea-WorkspaceRoots-trigger-text",
|
|
65
|
-
"WorkspaceRoots": "alinea-WorkspaceRoots",
|
|
66
|
-
"WorkspaceRoots-roots": "alinea-WorkspaceRoots-roots",
|
|
67
|
-
"WorkspaceRootsRoots": "alinea-WorkspaceRoots-roots",
|
|
68
|
-
"WorkspaceRoots-profile": "alinea-WorkspaceRoots-profile",
|
|
69
|
-
"WorkspaceRootsProfile": "alinea-WorkspaceRoots-profile",
|
|
70
|
-
"WorkspaceRoots-profile-popover-user-icon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
71
|
-
"WorkspaceRootsProfilePopoverUserIcon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
72
76
|
"WorkspaceRoots-profile-popover-action": "alinea-WorkspaceRoots-profile-popover-action",
|
|
73
77
|
"WorkspaceRootsProfilePopoverAction": "alinea-WorkspaceRoots-profile-popover-action",
|
|
74
|
-
"WorkspaceRoots-profile-popover-item-label": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
75
|
-
"WorkspaceRootsProfilePopoverItemLabel": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
76
78
|
"WorkspaceRoots-profile-popover-item": "alinea-WorkspaceRoots-profile-popover-item",
|
|
77
79
|
"WorkspaceRootsProfilePopoverItem": "alinea-WorkspaceRoots-profile-popover-item",
|
|
78
|
-
"WorkspaceRoots-
|
|
79
|
-
"
|
|
80
|
-
"WorkspaceRoots-workspace": "alinea-WorkspaceRoots-workspace",
|
|
81
|
-
"WorkspaceRootsWorkspace": "alinea-WorkspaceRoots-workspace",
|
|
82
|
-
"WorkspaceRoots-profile-popover-user-title": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
83
|
-
"WorkspaceRootsProfilePopoverUserTitle": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
80
|
+
"WorkspaceRoots-rootButton": "alinea-WorkspaceRoots-rootButton",
|
|
81
|
+
"WorkspaceRootsRootButton": "alinea-WorkspaceRoots-rootButton",
|
|
84
82
|
"WorkspaceRoots-trigger": "alinea-WorkspaceRoots-trigger",
|
|
85
|
-
"WorkspaceRootsTrigger": "alinea-WorkspaceRoots-trigger"
|
|
83
|
+
"WorkspaceRootsTrigger": "alinea-WorkspaceRoots-trigger",
|
|
84
|
+
"WorkspaceRoots-roots": "alinea-WorkspaceRoots-roots",
|
|
85
|
+
"WorkspaceRootsRoots": "alinea-WorkspaceRoots-roots"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// src/dashboard/app/WorkspaceRoots.tsx
|
|
@@ -20,7 +20,6 @@ import { Config } from "alinea/core/Config";
|
|
|
20
20
|
import { isImage as isImageExtension } from "alinea/core/media/IsImage";
|
|
21
21
|
import { MediaLocation } from "alinea/core/media/MediaLocation";
|
|
22
22
|
import { MediaFile } from "alinea/core/media/MediaTypes";
|
|
23
|
-
import { outcome } from "alinea/core/Outcome";
|
|
24
23
|
import { base64 } from "alinea/core/util/Encoding";
|
|
25
24
|
import { configAtom } from "alinea/dashboard/atoms/core";
|
|
26
25
|
import { useEditor, useField, useFieldValue } from "alinea/dashboard/hooks";
|
|
@@ -29,45 +28,45 @@ import { NodeEditor } from "../EntryFields.js";
|
|
|
29
28
|
|
|
30
29
|
// src/dashboard/app/editor/FileEditor.module.css
|
|
31
30
|
var FileEditor_default = {
|
|
31
|
+
"FileEditor-focus-header": "alinea-FileEditor-focus-header",
|
|
32
|
+
"FileEditorFocusHeader": "alinea-FileEditor-focus-header",
|
|
33
|
+
"is-full": "alinea-is-full",
|
|
34
|
+
"isFull": "alinea-is-full",
|
|
35
|
+
"FileEditor-metadata-value": "alinea-FileEditor-metadata-value",
|
|
36
|
+
"FileEditorMetadataValue": "alinea-FileEditor-metadata-value",
|
|
37
|
+
"FileEditor-metadata-term": "alinea-FileEditor-metadata-term",
|
|
38
|
+
"FileEditorMetadataTerm": "alinea-FileEditor-metadata-term",
|
|
39
|
+
"FileEditor-tabs": "alinea-FileEditor-tabs",
|
|
40
|
+
"FileEditorTabs": "alinea-FileEditor-tabs",
|
|
41
|
+
"FileEditor-metadata-item": "alinea-FileEditor-metadata-item",
|
|
42
|
+
"FileEditorMetadataItem": "alinea-FileEditor-metadata-item",
|
|
43
|
+
"is-link": "alinea-is-link",
|
|
44
|
+
"isLink": "alinea-is-link",
|
|
32
45
|
"FileEditor-metadataPanel": "alinea-FileEditor-metadataPanel",
|
|
33
46
|
"FileEditorMetadataPanel": "alinea-FileEditor-metadataPanel",
|
|
34
|
-
"FileEditor-focus-
|
|
35
|
-
"
|
|
36
|
-
"FileEditor-content": "alinea-FileEditor-content",
|
|
37
|
-
"FileEditorContent": "alinea-FileEditor-content",
|
|
38
|
-
"is-image": "alinea-is-image",
|
|
39
|
-
"isImage": "alinea-is-image",
|
|
47
|
+
"FileEditor-focus-label": "alinea-FileEditor-focus-label",
|
|
48
|
+
"FileEditorFocusLabel": "alinea-FileEditor-focus-label",
|
|
40
49
|
"FileEditor-surface": "alinea-FileEditor-surface",
|
|
41
50
|
"FileEditorSurface": "alinea-FileEditor-surface",
|
|
42
51
|
"FileEditor-tabPanel": "alinea-FileEditor-tabPanel",
|
|
43
52
|
"FileEditorTabPanel": "alinea-FileEditor-tabPanel",
|
|
44
|
-
"FileEditor-metadata-grid": "alinea-FileEditor-metadata-grid",
|
|
45
|
-
"FileEditorMetadataGrid": "alinea-FileEditor-metadata-grid",
|
|
46
|
-
"is-link": "alinea-is-link",
|
|
47
|
-
"isLink": "alinea-is-link",
|
|
48
53
|
"FileEditor-focus": "alinea-FileEditor-focus",
|
|
49
54
|
"FileEditorFocus": "alinea-FileEditor-focus",
|
|
50
|
-
"FileEditor-focus-label": "alinea-FileEditor-focus-label",
|
|
51
|
-
"FileEditorFocusLabel": "alinea-FileEditor-focus-label",
|
|
52
|
-
"FileEditor-focus-description": "alinea-FileEditor-focus-description",
|
|
53
|
-
"FileEditorFocusDescription": "alinea-FileEditor-focus-description",
|
|
54
55
|
"FileEditor-tabs-header": "alinea-FileEditor-tabs-header",
|
|
55
56
|
"FileEditorTabsHeader": "alinea-FileEditor-tabs-header",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"FileEditor": "alinea-FileEditor",
|
|
59
|
-
"FileEditor-metadata-term": "alinea-FileEditor-metadata-term",
|
|
60
|
-
"FileEditorMetadataTerm": "alinea-FileEditor-metadata-term",
|
|
61
|
-
"FileEditor-metadata-item": "alinea-FileEditor-metadata-item",
|
|
62
|
-
"FileEditorMetadataItem": "alinea-FileEditor-metadata-item",
|
|
63
|
-
"FileEditor-metadata-value": "alinea-FileEditor-metadata-value",
|
|
64
|
-
"FileEditorMetadataValue": "alinea-FileEditor-metadata-value",
|
|
65
|
-
"FileEditor-tabs": "alinea-FileEditor-tabs",
|
|
66
|
-
"FileEditorTabs": "alinea-FileEditor-tabs",
|
|
57
|
+
"FileEditor-content": "alinea-FileEditor-content",
|
|
58
|
+
"FileEditorContent": "alinea-FileEditor-content",
|
|
67
59
|
"FileEditor-metadata": "alinea-FileEditor-metadata",
|
|
68
60
|
"FileEditorMetadata": "alinea-FileEditor-metadata",
|
|
69
|
-
"FileEditor
|
|
70
|
-
"
|
|
61
|
+
"FileEditor": "alinea-FileEditor",
|
|
62
|
+
"FileEditor-metadata-grid": "alinea-FileEditor-metadata-grid",
|
|
63
|
+
"FileEditorMetadataGrid": "alinea-FileEditor-metadata-grid",
|
|
64
|
+
"FileEditor-focus-description": "alinea-FileEditor-focus-description",
|
|
65
|
+
"FileEditorFocusDescription": "alinea-FileEditor-focus-description",
|
|
66
|
+
"FileEditor-focus-value": "alinea-FileEditor-focus-value",
|
|
67
|
+
"FileEditorFocusValue": "alinea-FileEditor-focus-value",
|
|
68
|
+
"is-image": "alinea-is-image",
|
|
69
|
+
"isImage": "alinea-is-image"
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
// src/dashboard/app/editor/FileEditor.tsx
|
|
@@ -108,7 +107,7 @@ function FileEditor({ entry, parentPaths }) {
|
|
|
108
107
|
workspace: entry.workspace
|
|
109
108
|
});
|
|
110
109
|
const baseUrl = Config.baseUrl(config) ?? window.location.href;
|
|
111
|
-
const
|
|
110
|
+
const liveUrl = URL.parse(publicLocation, baseUrl);
|
|
112
111
|
const parsedBaseUrl = URL.parse(baseUrl);
|
|
113
112
|
const displayedUrl = liveUrl ? parsedBaseUrl && liveUrl.origin === parsedBaseUrl.origin ? `${liveUrl.pathname}${liveUrl.search}${liveUrl.hash}` : liveUrl.href : void 0;
|
|
114
113
|
const displayedFocusPoint = hoverPoint ?? focusPoint;
|
|
@@ -10,12 +10,12 @@ import { useEffect, useRef, useState } from "react";
|
|
|
10
10
|
|
|
11
11
|
// src/dashboard/app/editor/FilePreview.module.css
|
|
12
12
|
var FilePreview_default = {
|
|
13
|
-
"FilePreview-focus-dot": "alinea-FilePreview-focus-dot",
|
|
14
|
-
"FilePreviewFocusDot": "alinea-FilePreview-focus-dot",
|
|
15
13
|
"FilePreview-interactive": "alinea-FilePreview-interactive",
|
|
16
14
|
"FilePreviewInteractive": "alinea-FilePreview-interactive",
|
|
17
15
|
"FilePreview-image": "alinea-FilePreview-image",
|
|
18
16
|
"FilePreviewImage": "alinea-FilePreview-image",
|
|
17
|
+
"FilePreview-focus-dot": "alinea-FilePreview-focus-dot",
|
|
18
|
+
"FilePreviewFocusDot": "alinea-FilePreview-focus-dot",
|
|
19
19
|
"FilePreview-focus": "alinea-FilePreview-focus",
|
|
20
20
|
"FilePreviewFocus": "alinea-FilePreview-focus",
|
|
21
21
|
"FilePreview-focus-inner": "alinea-FilePreview-focus-inner",
|
|
@@ -6,13 +6,16 @@ import "../../../chunks/chunk-CQ52GEHY.js";
|
|
|
6
6
|
|
|
7
7
|
// src/dashboard/app/editor/MediaAltField.view.tsx
|
|
8
8
|
import { TextField } from "alinea/components";
|
|
9
|
+
import {
|
|
10
|
+
mediaAltText
|
|
11
|
+
} from "alinea/core/media/MediaAltField";
|
|
12
|
+
import { isRecord } from "alinea/core/util/Objects";
|
|
9
13
|
import {
|
|
10
14
|
useEntryAtoms,
|
|
11
15
|
useField,
|
|
12
16
|
useFieldError,
|
|
13
17
|
useFieldOptions
|
|
14
18
|
} from "alinea/dashboard/hooks";
|
|
15
|
-
import { isRecord } from "alinea/core/util/Objects";
|
|
16
19
|
import { LocalisedFieldTabs } from "alinea/field/localiser/LocalisedFieldTabs";
|
|
17
20
|
import { useState } from "react";
|
|
18
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -29,7 +32,7 @@ function MediaAltFieldView({ field }) {
|
|
|
29
32
|
{
|
|
30
33
|
error,
|
|
31
34
|
options,
|
|
32
|
-
value:
|
|
35
|
+
value: mediaAltText(value),
|
|
33
36
|
onChange: (next) => setValue(next)
|
|
34
37
|
}
|
|
35
38
|
);
|
|
@@ -46,7 +49,7 @@ function MediaAltFieldView({ field }) {
|
|
|
46
49
|
{
|
|
47
50
|
error,
|
|
48
51
|
options,
|
|
49
|
-
value:
|
|
52
|
+
value: mediaAltText(value, locale2),
|
|
50
53
|
onChange: (next) => {
|
|
51
54
|
setValue((current) => mediaAltLocalise(current, locale2, next));
|
|
52
55
|
}
|
|
@@ -78,12 +81,6 @@ function MediaAltTextField({
|
|
|
78
81
|
}
|
|
79
82
|
);
|
|
80
83
|
}
|
|
81
|
-
function mediaAltString(value, locale) {
|
|
82
|
-
if (typeof value === "string") return value;
|
|
83
|
-
if (!isRecord(value)) return "";
|
|
84
|
-
if (locale && typeof value[locale] === "string") return value[locale];
|
|
85
|
-
return Object.values(value).find((value2) => typeof value2 === "string") ?? "";
|
|
86
|
-
}
|
|
87
84
|
function mediaAltLocalise(value, locale, next) {
|
|
88
85
|
const current = isRecord(value) ? Object.fromEntries(
|
|
89
86
|
Object.entries(value).filter(
|
|
@@ -49,12 +49,12 @@ import {
|
|
|
49
49
|
var CreateEntry_default = {
|
|
50
50
|
"CreateEntry-parentRow": "alinea-CreateEntry-parentRow",
|
|
51
51
|
"CreateEntryParentRow": "alinea-CreateEntry-parentRow",
|
|
52
|
-
"CreateEntry-
|
|
53
|
-
"
|
|
52
|
+
"CreateEntry-insertOrder": "alinea-CreateEntry-insertOrder",
|
|
53
|
+
"CreateEntryInsertOrder": "alinea-CreateEntry-insertOrder",
|
|
54
54
|
"CreateEntry-parentField": "alinea-CreateEntry-parentField",
|
|
55
55
|
"CreateEntryParentField": "alinea-CreateEntry-parentField",
|
|
56
|
-
"CreateEntry-
|
|
57
|
-
"
|
|
56
|
+
"CreateEntry-message": "alinea-CreateEntry-message",
|
|
57
|
+
"CreateEntryMessage": "alinea-CreateEntry-message"
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
// src/dashboard/app/modals/CreateEntry.tsx
|
|
@@ -31,7 +31,9 @@ import { EntryScope } from "../../hooks.js";
|
|
|
31
31
|
import {
|
|
32
32
|
IcBaselineErrorOutline,
|
|
33
33
|
IcOutlineViewList,
|
|
34
|
-
IcRoundEdit
|
|
34
|
+
IcRoundEdit,
|
|
35
|
+
IcRoundCheck,
|
|
36
|
+
IcRoundSave
|
|
35
37
|
} from "../../icons.js";
|
|
36
38
|
import { FileEditor } from "./../editor/FileEditor.js";
|
|
37
39
|
import { CreateEntryButton } from "./../DashboardLayout.js";
|
|
@@ -43,6 +45,7 @@ import {
|
|
|
43
45
|
} from "./../EntrySidebar.js";
|
|
44
46
|
import { EntryTranslationBanner } from "./../EntryTranslationBanner.js";
|
|
45
47
|
import { Explorer } from "./../Explorer.js";
|
|
48
|
+
import { SidebarLayout } from "../SidebarLayout.js";
|
|
46
49
|
import {
|
|
47
50
|
DashboardModal,
|
|
48
51
|
DashboardModalContent,
|
|
@@ -53,31 +56,31 @@ import { Rail, RailBody, RailContent } from "./../ui/Rail.js";
|
|
|
53
56
|
|
|
54
57
|
// src/dashboard/app/pages/EntryPage.module.css
|
|
55
58
|
var EntryPage_default = {
|
|
56
|
-
"EntryEditor-title": "alinea-EntryEditor-title",
|
|
57
|
-
"EntryEditorTitle": "alinea-EntryEditor-title",
|
|
58
|
-
"MissingEntry-title": "alinea-MissingEntry-title",
|
|
59
|
-
"MissingEntryTitle": "alinea-MissingEntry-title",
|
|
60
|
-
"MissingEntry-message": "alinea-MissingEntry-message",
|
|
61
|
-
"MissingEntryMessage": "alinea-MissingEntry-message",
|
|
62
59
|
"EntryEditor-fields": "alinea-EntryEditor-fields",
|
|
63
60
|
"EntryEditorFields": "alinea-EntryEditor-fields",
|
|
64
|
-
"EntryEditor-
|
|
65
|
-
"
|
|
66
|
-
"EntryEditor-
|
|
67
|
-
"
|
|
61
|
+
"EntryEditor-title": "alinea-EntryEditor-title",
|
|
62
|
+
"EntryEditorTitle": "alinea-EntryEditor-title",
|
|
63
|
+
"EntryEditor-toolbar": "alinea-EntryEditor-toolbar",
|
|
64
|
+
"EntryEditorToolbar": "alinea-EntryEditor-toolbar",
|
|
68
65
|
"EntryOverview-mobileActions": "alinea-EntryOverview-mobileActions",
|
|
69
66
|
"EntryOverviewMobileActions": "alinea-EntryOverview-mobileActions",
|
|
67
|
+
"EntryEditor-header": "alinea-EntryEditor-header",
|
|
68
|
+
"EntryEditorHeader": "alinea-EntryEditor-header",
|
|
70
69
|
"MissingEntry-card": "alinea-MissingEntry-card",
|
|
71
70
|
"MissingEntryCard": "alinea-MissingEntry-card",
|
|
72
|
-
"EntryEditor-toolbar": "alinea-EntryEditor-toolbar",
|
|
73
|
-
"EntryEditorToolbar": "alinea-EntryEditor-toolbar",
|
|
74
71
|
"MissingEntry": "alinea-MissingEntry",
|
|
75
|
-
"MissingEntry-icon": "alinea-MissingEntry-icon",
|
|
76
|
-
"MissingEntryIcon": "alinea-MissingEntry-icon",
|
|
77
72
|
"EntryEditor-body": "alinea-EntryEditor-body",
|
|
78
73
|
"EntryEditorBody": "alinea-EntryEditor-body",
|
|
74
|
+
"MissingEntry-icon": "alinea-MissingEntry-icon",
|
|
75
|
+
"MissingEntryIcon": "alinea-MissingEntry-icon",
|
|
76
|
+
"MissingEntry-title": "alinea-MissingEntry-title",
|
|
77
|
+
"MissingEntryTitle": "alinea-MissingEntry-title",
|
|
78
|
+
"MissingEntry-message": "alinea-MissingEntry-message",
|
|
79
|
+
"MissingEntryMessage": "alinea-MissingEntry-message",
|
|
79
80
|
"MissingEntry-id": "alinea-MissingEntry-id",
|
|
80
|
-
"MissingEntryId": "alinea-MissingEntry-id"
|
|
81
|
+
"MissingEntryId": "alinea-MissingEntry-id",
|
|
82
|
+
"EntryEditor-banner": "alinea-EntryEditor-banner",
|
|
83
|
+
"EntryEditorBanner": "alinea-EntryEditor-banner"
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
// src/dashboard/app/pages/EntryPage.tsx
|
|
@@ -106,17 +109,21 @@ var entryPage = page(async (page2, get) => {
|
|
|
106
109
|
);
|
|
107
110
|
}
|
|
108
111
|
const selectedNode = await get(localeData.selectedNode);
|
|
112
|
+
const richTextImages = await get(localeData.richTextImages);
|
|
109
113
|
const parentNeedsTranslation = type.customView ? false : await get(localeData.parentNeedsTranslation);
|
|
110
114
|
const sourceLocale = get(localeData.translationSourceLocale);
|
|
111
|
-
const
|
|
115
|
+
const isSidebarOpen = get(entrySidebarOpenAtom);
|
|
116
|
+
const sidebar = await entrySidebar(get, entry, localeData, isSidebarOpen);
|
|
112
117
|
return /* @__PURE__ */ jsx(
|
|
113
118
|
EntryEditorContent,
|
|
114
119
|
{
|
|
115
120
|
entry,
|
|
121
|
+
isSidebarOpen: Boolean(sidebar && isSidebarOpen),
|
|
116
122
|
localeData,
|
|
117
123
|
node: selectedNode,
|
|
118
124
|
page: page2,
|
|
119
125
|
parentNeedsTranslation,
|
|
126
|
+
richTextImages,
|
|
120
127
|
selectedEntry,
|
|
121
128
|
sidebar,
|
|
122
129
|
sourceLocale
|
|
@@ -229,8 +236,10 @@ function EntryOverview({
|
|
|
229
236
|
function EntryEditorContent({
|
|
230
237
|
page: page2,
|
|
231
238
|
entry,
|
|
239
|
+
isSidebarOpen,
|
|
232
240
|
localeData,
|
|
233
241
|
parentNeedsTranslation,
|
|
242
|
+
richTextImages,
|
|
234
243
|
selectedEntry,
|
|
235
244
|
sidebar,
|
|
236
245
|
sourceLocale,
|
|
@@ -252,7 +261,7 @@ function EntryEditorContent({
|
|
|
252
261
|
const reset = useSetAtom(node.reset);
|
|
253
262
|
const [routeBlock, setRouteBlock] = useAtom(routeBlockAtom);
|
|
254
263
|
const setRouteGuard = useSetAtom(routeGuardAtom);
|
|
255
|
-
const
|
|
264
|
+
const setSidebarOpen = useSetAtom(entrySidebarOpenAtom);
|
|
256
265
|
const editorBodyRef = useRef(null);
|
|
257
266
|
const isMediaFile = type.type === MediaFile;
|
|
258
267
|
const isMediaLibrary = type.type === MediaLibrary;
|
|
@@ -299,6 +308,7 @@ function EntryEditorContent({
|
|
|
299
308
|
{
|
|
300
309
|
entry,
|
|
301
310
|
localeData,
|
|
311
|
+
richTextImages,
|
|
302
312
|
selectedEntry,
|
|
303
313
|
children: /* @__PURE__ */ jsx(View, { type: type.type })
|
|
304
314
|
}
|
|
@@ -330,22 +340,36 @@ function EntryEditorContent({
|
|
|
330
340
|
children: routeBlock && /* @__PURE__ */ jsxs(DashboardModalDialog, { label: "Confirm navigation", children: [
|
|
331
341
|
/* @__PURE__ */ jsx(DashboardModalContent, { children: "This entry has unsaved changes" }),
|
|
332
342
|
/* @__PURE__ */ jsxs(DashboardModalFooter, { children: [
|
|
333
|
-
/* @__PURE__ */ jsx(Button, { onPress: discardAndConfirm,
|
|
334
|
-
/* @__PURE__ */ jsx(
|
|
343
|
+
/* @__PURE__ */ jsx(Button, { onPress: discardAndConfirm, appearance: "plain", children: "Discard my changes" }),
|
|
344
|
+
/* @__PURE__ */ jsx(
|
|
345
|
+
Button,
|
|
346
|
+
{
|
|
347
|
+
onPress: saveAndConfirm,
|
|
348
|
+
intent: "primary",
|
|
349
|
+
icon: mediaDraftsDisabled ? IcRoundCheck : IcRoundSave,
|
|
350
|
+
children: mediaDraftsDisabled ? "Publish" : "Save as draft"
|
|
351
|
+
}
|
|
352
|
+
)
|
|
335
353
|
] })
|
|
336
354
|
] })
|
|
337
355
|
}
|
|
338
356
|
),
|
|
339
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ jsx(
|
|
340
358
|
EntryScope,
|
|
341
359
|
{
|
|
342
360
|
entry,
|
|
343
361
|
localeData,
|
|
362
|
+
richTextImages,
|
|
344
363
|
selectedEntry,
|
|
345
|
-
children:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
364
|
+
children: /* @__PURE__ */ jsx(
|
|
365
|
+
SidebarLayout,
|
|
366
|
+
{
|
|
367
|
+
side: "right",
|
|
368
|
+
visible: Boolean(sidebar && isSidebarOpen),
|
|
369
|
+
sidebar: sidebar && isSidebarOpen && /* @__PURE__ */ jsx(EntrySidebar, { ...sidebar, onOpenChange: setSidebarOpen }),
|
|
370
|
+
children: mainEditor
|
|
371
|
+
}
|
|
372
|
+
)
|
|
349
373
|
}
|
|
350
374
|
)
|
|
351
375
|
] });
|