alinea 2.0.0-preview.2 → 2.0.0-preview.3
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 +63 -63
- package/dist/adapter/next/previews.js +3 -1
- package/dist/adapter/next/previews.spec.d.ts +1 -0
- package/dist/bundled.d.ts +63 -17
- package/dist/chunks/{chunk-UVOEM4AH.js → chunk-HFBZMKIN.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cloud/CloudRemote.js +1 -1
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Calendar.js +5 -5
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ComboBox.js +12 -12
- package/dist/components/DateField.js +3 -3
- package/dist/components/DatePicker.js +5 -5
- package/dist/components/DateRangePicker.js +7 -7
- package/dist/components/Disclosure.js +8 -8
- package/dist/components/Label.js +6 -6
- package/dist/components/List.js +29 -29
- package/dist/components/Menu.js +4 -4
- package/dist/components/Modal.js +4 -4
- package/dist/components/MultipleSelect.js +24 -24
- package/dist/components/NumberField.js +5 -5
- package/dist/components/ProgressCircle.js +3 -3
- package/dist/components/RadioGroup.js +2 -2
- package/dist/components/SearchField.js +7 -7
- package/dist/components/Select.js +8 -8
- package/dist/components/Surface.js +3 -3
- package/dist/components/Table.js +8 -8
- package/dist/components/Tabs.js +4 -4
- package/dist/components/TagGroup.js +2 -2
- package/dist/components/TextField.js +4 -4
- package/dist/components/TimeField.js +3 -3
- package/dist/components/Toolbar.js +3 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tree.d.ts +4 -2
- package/dist/components/Tree.js +18 -4
- package/dist/core/Graph.d.ts +1 -1
- package/dist/core/Infer.d.ts +8 -1
- package/dist/core/db/EntryAliases.js +1 -4
- package/dist/core/db/EntryResolver.js +6 -6
- package/dist/core/db/EntryTransaction.js +1 -0
- package/dist/core/db/Operation.d.ts +2 -2
- package/dist/core/db/Operation.js +11 -1
- package/dist/dashboard/App.js +8 -2
- package/dist/dashboard/app/AccessDenied.d.ts +16 -1
- package/dist/dashboard/app/AccessDenied.js +20 -11
- package/dist/dashboard/app/ActivityStatus.js +15 -15
- package/dist/dashboard/app/AppShell.js +2 -2
- package/dist/dashboard/app/AuthView.js +8 -8
- package/dist/dashboard/app/CompactField.js +13 -13
- package/dist/dashboard/app/DashboardErrorBoundary.js +5 -5
- package/dist/dashboard/app/EntryHeader.js +7 -7
- package/dist/dashboard/app/EntryReferences.js +10 -10
- package/dist/dashboard/app/EntrySidebar.js +11 -11
- package/dist/dashboard/app/EntrySidebarPreview.js +52 -26
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +6 -1
- package/dist/dashboard/app/EntryTranslationBanner.js +5 -5
- package/dist/dashboard/app/Explorer.d.ts +2 -1
- package/dist/dashboard/app/Explorer.js +56 -44
- package/dist/dashboard/app/ExplorerCards.js +42 -46
- package/dist/dashboard/app/ExplorerFileCard.js +18 -18
- package/dist/dashboard/app/ExplorerList.js +11 -11
- package/dist/dashboard/app/ExplorerModal.js +5 -5
- package/dist/dashboard/app/ExplorerTable.js +53 -53
- package/dist/dashboard/app/LinkPicker.js +34 -9
- package/dist/dashboard/app/LocaleMenu.js +5 -5
- package/dist/dashboard/app/SidebarLayout.js +3 -3
- package/dist/dashboard/app/SidebarTree.js +48 -56
- package/dist/dashboard/app/WorkspaceMenu.js +11 -11
- package/dist/dashboard/app/WorkspaceRoots.js +24 -24
- package/dist/dashboard/app/editor/FileEditor.js +26 -26
- package/dist/dashboard/app/editor/FilePreview.js +4 -4
- package/dist/dashboard/app/modals/CreateEntry.js +2 -2
- package/dist/dashboard/app/pages/EntryPage.js +17 -17
- package/dist/dashboard/app/pages/UsersPage.js +35 -35
- package/dist/dashboard/app/ui/DashboardModal.js +17 -17
- package/dist/dashboard/app/ui/Rail.js +2 -2
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/field/check/CheckField.view.js +2 -2
- package/dist/field/code/CodeField.view.js +11 -11
- package/dist/field/link/EntryLink.d.ts +1 -1
- package/dist/field/link/EntryLink.js +1 -0
- package/dist/field/link/Link.js +1 -0
- package/dist/field/link/LinkField.d.ts +5 -0
- package/dist/field/link/LinkField.view.js +58 -41
- package/dist/field/list/ListField.view.js +14 -14
- package/dist/field/metadata/MetadataField.d.ts +2 -0
- package/dist/field/metadata/MetadataField.js +2 -1
- package/dist/field/metadata/MetadataField.view.js +19 -19
- package/dist/field/richtext/RichTextBlock.js +2 -2
- package/dist/field/richtext/RichTextExtensions.js +24 -24
- package/dist/field/richtext/RichTextField.view.js +4 -4
- package/dist/field/richtext/RichTextInsertMenu.js +3 -3
- package/dist/index.css +21 -0
- package/dist/preview/PreviewMessage.d.ts +3 -0
- package/dist/preview/PreviewMessage.js +1 -0
- package/dist/preview/RegisterPreview.js +29 -9
- package/dist/preview/widget.js +6 -12
- package/dist/query.d.ts +7 -7
- package/package.json +1 -1
|
@@ -42,9 +42,13 @@ import {
|
|
|
42
42
|
var LinkPicker_default = {
|
|
43
43
|
"LinkPicker-popover": "alinea-LinkPicker-popover",
|
|
44
44
|
"LinkPickerPopover": "alinea-LinkPicker-popover",
|
|
45
|
+
"LinkPickerCompact-selection": "alinea-LinkPickerCompact-selection",
|
|
46
|
+
"LinkPickerCompactSelection": "alinea-LinkPickerCompact-selection",
|
|
45
47
|
"LinkPickerCompact": "alinea-LinkPickerCompact",
|
|
46
48
|
"LinkPickerCompact-header": "alinea-LinkPickerCompact-header",
|
|
47
|
-
"LinkPickerCompactHeader": "alinea-LinkPickerCompact-header"
|
|
49
|
+
"LinkPickerCompactHeader": "alinea-LinkPickerCompact-header",
|
|
50
|
+
"LinkPickerCompact-footer": "alinea-LinkPickerCompact-footer",
|
|
51
|
+
"LinkPickerCompactFooter": "alinea-LinkPickerCompact-footer"
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
// src/dashboard/app/LinkPicker.tsx
|
|
@@ -210,18 +214,29 @@ function LinkPickerCompact({
|
|
|
210
214
|
onExpand
|
|
211
215
|
}) {
|
|
212
216
|
const popover = useDashboardModal();
|
|
217
|
+
const selection = useAtomValue(explorer.selection);
|
|
213
218
|
const setSelection = useSetAtom(explorer.selection);
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
const selectsMultiple = explorer.selectionMode === "multiple";
|
|
220
|
+
const selectedItems = selection === "all" ? 0 : selection.size;
|
|
221
|
+
function commitSelection(selection2) {
|
|
222
|
+
if (selection2 === "all" || selection2.size === 0 && explorer.selectionMode !== "multiple")
|
|
223
|
+
return;
|
|
216
224
|
startTransition(() => {
|
|
217
|
-
onCommit?.([...
|
|
225
|
+
onCommit?.([...selection2].map(String));
|
|
218
226
|
popover.close();
|
|
219
227
|
});
|
|
220
228
|
}
|
|
221
229
|
function commitEntry(entry) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
230
|
+
if (selectsMultiple) {
|
|
231
|
+
const nextSelection2 = selection === "all" ? /* @__PURE__ */ new Set() : new Set(selection);
|
|
232
|
+
if (nextSelection2.has(entry.id)) nextSelection2.delete(entry.id);
|
|
233
|
+
else nextSelection2.add(entry.id);
|
|
234
|
+
setSelection(nextSelection2);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const nextSelection = /* @__PURE__ */ new Set([entry.id]);
|
|
238
|
+
setSelection(nextSelection);
|
|
239
|
+
commitSelection(nextSelection);
|
|
225
240
|
}
|
|
226
241
|
function openExpanded() {
|
|
227
242
|
onExpand();
|
|
@@ -254,10 +269,19 @@ function LinkPickerCompact({
|
|
|
254
269
|
{
|
|
255
270
|
compactTable: true,
|
|
256
271
|
explorer,
|
|
257
|
-
onSelectionChange: commitSelection,
|
|
272
|
+
onSelectionChange: selectsMultiple ? void 0 : commitSelection,
|
|
258
273
|
page
|
|
259
274
|
}
|
|
260
|
-
)
|
|
275
|
+
),
|
|
276
|
+
selectsMultiple && /* @__PURE__ */ jsxs("div", { className: styles.LinkPickerCompact.footer(), children: [
|
|
277
|
+
/* @__PURE__ */ jsxs("span", { className: styles.LinkPickerCompact.selection(), children: [
|
|
278
|
+
selectedItems,
|
|
279
|
+
" ",
|
|
280
|
+
selectedItems === 1 ? "item" : "items",
|
|
281
|
+
" selected"
|
|
282
|
+
] }),
|
|
283
|
+
/* @__PURE__ */ jsx(Button, { intent: "primary", onPress: () => commitSelection(selection), children: "Select" })
|
|
284
|
+
] })
|
|
261
285
|
] });
|
|
262
286
|
}
|
|
263
287
|
function LinkPickerExpanded({
|
|
@@ -281,6 +305,7 @@ function LinkPickerExpanded({
|
|
|
281
305
|
ExplorerHeader,
|
|
282
306
|
{
|
|
283
307
|
autoFocusSearch: true,
|
|
308
|
+
canBrowse: options.enableNavigation !== false,
|
|
284
309
|
controls: /* @__PURE__ */ jsx(DashboardModalCloseButton, {}),
|
|
285
310
|
explorer,
|
|
286
311
|
navigate: true,
|
|
@@ -25,16 +25,16 @@ import { IcRoundUnfoldMore } from "../icons.js";
|
|
|
25
25
|
|
|
26
26
|
// src/dashboard/app/LocaleMenu.module.css
|
|
27
27
|
var LocaleMenu_default = {
|
|
28
|
-
"LocaleMenu-
|
|
29
|
-
"
|
|
28
|
+
"LocaleMenu-trigger": "alinea-LocaleMenu-trigger",
|
|
29
|
+
"LocaleMenuTrigger": "alinea-LocaleMenu-trigger",
|
|
30
30
|
"LocaleMenu-label-fullName": "alinea-LocaleMenu-label-fullName",
|
|
31
31
|
"LocaleMenuLabelFullName": "alinea-LocaleMenu-label-fullName",
|
|
32
|
+
"LocaleMenu-label": "alinea-LocaleMenu-label",
|
|
33
|
+
"LocaleMenuLabel": "alinea-LocaleMenu-label",
|
|
32
34
|
"LocaleMenu-label-code": "alinea-LocaleMenu-label-code",
|
|
33
35
|
"LocaleMenuLabelCode": "alinea-LocaleMenu-label-code",
|
|
34
36
|
"LocaleMenu-trigger-icon": "alinea-LocaleMenu-trigger-icon",
|
|
35
|
-
"LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon"
|
|
36
|
-
"LocaleMenu-trigger": "alinea-LocaleMenu-trigger",
|
|
37
|
-
"LocaleMenuTrigger": "alinea-LocaleMenu-trigger"
|
|
37
|
+
"LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon"
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
// src/dashboard/app/LocaleMenu.tsx
|
|
@@ -1126,7 +1126,6 @@ function SidebarLayout({
|
|
|
1126
1126
|
maxSize: isMobile ? Infinity : side === "left" ? 480 : 640,
|
|
1127
1127
|
preferredSize: width,
|
|
1128
1128
|
priority: de.Low,
|
|
1129
|
-
visible: sidebarVisible,
|
|
1130
1129
|
children: sidebar
|
|
1131
1130
|
},
|
|
1132
1131
|
"sidebar"
|
|
@@ -1135,11 +1134,12 @@ function SidebarLayout({
|
|
|
1135
1134
|
Ve,
|
|
1136
1135
|
{
|
|
1137
1136
|
ref: allotment,
|
|
1137
|
+
defaultSizes: sidebarVisible ? side === "left" ? [width, 500] : [200, width] : [500],
|
|
1138
1138
|
proportionalLayout: false,
|
|
1139
1139
|
onDragEnd: saveWidth,
|
|
1140
1140
|
onReset: resetWidth,
|
|
1141
1141
|
children: [
|
|
1142
|
-
side === "left" && sidebarPane,
|
|
1142
|
+
sidebarVisible && side === "left" && sidebarPane,
|
|
1143
1143
|
/* @__PURE__ */ jsx(
|
|
1144
1144
|
Ve.Pane,
|
|
1145
1145
|
{
|
|
@@ -1150,7 +1150,7 @@ function SidebarLayout({
|
|
|
1150
1150
|
},
|
|
1151
1151
|
"content"
|
|
1152
1152
|
),
|
|
1153
|
-
side === "right" && sidebarPane
|
|
1153
|
+
sidebarVisible && side === "right" && sidebarPane
|
|
1154
1154
|
]
|
|
1155
1155
|
}
|
|
1156
1156
|
) });
|
|
@@ -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-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"SidebarTree-
|
|
55
|
-
"
|
|
56
|
-
"SidebarTree-
|
|
57
|
-
"
|
|
46
|
+
"SidebarTree-status": "alinea-SidebarTree-status",
|
|
47
|
+
"SidebarTreeStatus": "alinea-SidebarTree-status",
|
|
48
|
+
"is-archived": "alinea-is-archived",
|
|
49
|
+
"isArchived": "alinea-is-archived",
|
|
50
|
+
"SidebarTree-skeleton": "alinea-SidebarTree-skeleton",
|
|
51
|
+
"SidebarTreeSkeleton": "alinea-SidebarTree-skeleton",
|
|
52
|
+
"is-parentSelected": "alinea-is-parentSelected",
|
|
53
|
+
"isParentSelected": "alinea-is-parentSelected",
|
|
54
|
+
"SidebarTree-entryLink": "alinea-SidebarTree-entryLink",
|
|
55
|
+
"SidebarTreeEntryLink": "alinea-SidebarTree-entryLink",
|
|
56
|
+
"SidebarTree-skeleton-row": "alinea-SidebarTree-skeleton-row",
|
|
57
|
+
"SidebarTreeSkeletonRow": "alinea-SidebarTree-skeleton-row",
|
|
58
58
|
"is-draft": "alinea-is-draft",
|
|
59
59
|
"isDraft": "alinea-is-draft",
|
|
60
60
|
"SidebarTree-tree": "alinea-SidebarTree-tree",
|
|
61
61
|
"SidebarTreeTree": "alinea-SidebarTree-tree",
|
|
62
|
-
"SidebarTree-
|
|
63
|
-
"
|
|
62
|
+
"SidebarTree-tree-viewport": "alinea-SidebarTree-tree-viewport",
|
|
63
|
+
"SidebarTreeTreeViewport": "alinea-SidebarTree-tree-viewport",
|
|
64
64
|
"SidebarTree-skeleton-label": "alinea-SidebarTree-skeleton-label",
|
|
65
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",
|
|
70
|
-
"is-untranslated": "alinea-is-untranslated",
|
|
71
|
-
"isUntranslated": "alinea-is-untranslated",
|
|
72
|
-
"SidebarTree-entryLink": "alinea-SidebarTree-entryLink",
|
|
73
|
-
"SidebarTreeEntryLink": "alinea-SidebarTree-entryLink",
|
|
74
|
-
"SidebarTree-skeleton": "alinea-SidebarTree-skeleton",
|
|
75
|
-
"SidebarTreeSkeleton": "alinea-SidebarTree-skeleton",
|
|
76
66
|
"is-short": "alinea-is-short",
|
|
77
67
|
"isShort": "alinea-is-short",
|
|
78
|
-
"SidebarTree-
|
|
79
|
-
"
|
|
80
|
-
"SidebarTree-
|
|
81
|
-
"
|
|
82
|
-
"SidebarTree-
|
|
83
|
-
"
|
|
68
|
+
"SidebarTree-rootButton": "alinea-SidebarTree-rootButton",
|
|
69
|
+
"SidebarTreeRootButton": "alinea-SidebarTree-rootButton",
|
|
70
|
+
"SidebarTree-root": "alinea-SidebarTree-root",
|
|
71
|
+
"SidebarTreeRoot": "alinea-SidebarTree-root",
|
|
72
|
+
"SidebarTree-rootButton-action": "alinea-SidebarTree-rootButton-action",
|
|
73
|
+
"SidebarTreeRootButtonAction": "alinea-SidebarTree-rootButton-action",
|
|
74
|
+
"is-selected": "alinea-is-selected",
|
|
75
|
+
"isSelected": "alinea-is-selected",
|
|
84
76
|
"SidebarTree-item": "alinea-SidebarTree-item",
|
|
85
77
|
"SidebarTreeItem": "alinea-SidebarTree-item",
|
|
86
|
-
"SidebarTree-skeleton-chevron": "alinea-SidebarTree-skeleton-chevron",
|
|
87
|
-
"SidebarTreeSkeletonChevron": "alinea-SidebarTree-skeleton-chevron",
|
|
88
78
|
"SidebarTree-skeleton-icon": "alinea-SidebarTree-skeleton-icon",
|
|
89
79
|
"SidebarTreeSkeletonIcon": "alinea-SidebarTree-skeleton-icon",
|
|
80
|
+
"SidebarTree-skeleton-chevron": "alinea-SidebarTree-skeleton-chevron",
|
|
81
|
+
"SidebarTreeSkeletonChevron": "alinea-SidebarTree-skeleton-chevron",
|
|
82
|
+
"is-untranslated": "alinea-is-untranslated",
|
|
83
|
+
"isUntranslated": "alinea-is-untranslated",
|
|
84
|
+
"SidebarTree-rootButton-label": "alinea-SidebarTree-rootButton-label",
|
|
85
|
+
"SidebarTreeRootButtonLabel": "alinea-SidebarTree-rootButton-label",
|
|
86
|
+
"SidebarTree-rootButton-locale": "alinea-SidebarTree-rootButton-locale",
|
|
87
|
+
"SidebarTreeRootButtonLocale": "alinea-SidebarTree-rootButton-locale",
|
|
88
|
+
"SidebarTree-loading": "alinea-SidebarTree-loading",
|
|
89
|
+
"SidebarTreeLoading": "alinea-SidebarTree-loading",
|
|
90
90
|
"is-loading": "alinea-is-loading",
|
|
91
91
|
"isLoading": "alinea-is-loading",
|
|
92
|
-
"SidebarTree-
|
|
93
|
-
"
|
|
92
|
+
"SidebarTree-itemSkeleton-label": "alinea-SidebarTree-itemSkeleton-label",
|
|
93
|
+
"SidebarTreeItemSkeletonLabel": "alinea-SidebarTree-itemSkeleton-label",
|
|
94
|
+
"SidebarTree-skeleton-pulse": "alinea-SidebarTree-skeleton-pulse",
|
|
95
|
+
"SidebarTreeSkeletonPulse": "alinea-SidebarTree-skeleton-pulse",
|
|
96
|
+
"SidebarTree-itemLoading-pulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
97
|
+
"SidebarTreeItemLoadingPulse": "alinea-SidebarTree-itemLoading-pulse",
|
|
98
|
+
"SidebarTree-itemLoading": "alinea-SidebarTree-itemLoading",
|
|
99
|
+
"SidebarTreeItemLoading": "alinea-SidebarTree-itemLoading",
|
|
94
100
|
"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"
|
|
101
|
+
"isUnpublished": "alinea-is-unpublished"
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// src/dashboard/app/SidebarTree.tsx
|
|
@@ -136,6 +136,7 @@ var SidebarTreeItem = memo(function SidebarTreeItem2({
|
|
|
136
136
|
const isArchived = rowStatus?.status === "archived";
|
|
137
137
|
const isUnpublished = rowStatus?.status === "unpublished";
|
|
138
138
|
const isUntranslated = displayStatus?.status === "untranslated";
|
|
139
|
+
const link = entryLink?.(data);
|
|
139
140
|
return /* @__PURE__ */ jsx(
|
|
140
141
|
TreeItem,
|
|
141
142
|
{
|
|
@@ -144,6 +145,7 @@ var SidebarTreeItem = memo(function SidebarTreeItem2({
|
|
|
144
145
|
title: data.title,
|
|
145
146
|
hasChildItems: data.hasChildren,
|
|
146
147
|
icon: configuredIcon ?? (data.hasChildren ? LucideFolder : LucideFile),
|
|
148
|
+
iconHref: link ? dashboardHref(link.href) : void 0,
|
|
147
149
|
className: styles.SidebarTree.item({
|
|
148
150
|
archived: isArchived,
|
|
149
151
|
parentSelected: selectedAncestor !== void 0,
|
|
@@ -162,13 +164,7 @@ var SidebarTreeItem = memo(function SidebarTreeItem2({
|
|
|
162
164
|
children: /* @__PURE__ */ jsx(Icon, { icon: displayStatus.icon })
|
|
163
165
|
}
|
|
164
166
|
) : void 0,
|
|
165
|
-
label:
|
|
166
|
-
SidebarTreeEntryLink,
|
|
167
|
-
{
|
|
168
|
-
href: entryLink(data).href,
|
|
169
|
-
title: data.title
|
|
170
|
-
}
|
|
171
|
-
) : data.title,
|
|
167
|
+
label: link ? /* @__PURE__ */ jsx(SidebarTreeEntryLink, { href: link.href, title: data.title }) : data.title,
|
|
172
168
|
children
|
|
173
169
|
}
|
|
174
170
|
);
|
|
@@ -176,15 +172,11 @@ var SidebarTreeItem = memo(function SidebarTreeItem2({
|
|
|
176
172
|
function documentPath() {
|
|
177
173
|
return typeof window === "undefined" ? "" : `${window.location.pathname}${window.location.search}`;
|
|
178
174
|
}
|
|
175
|
+
function dashboardHref(href) {
|
|
176
|
+
return `${documentPath()}#${href}`;
|
|
177
|
+
}
|
|
179
178
|
function SidebarTreeEntryLink({ href, title }) {
|
|
180
|
-
return /* @__PURE__ */ jsx(
|
|
181
|
-
"a",
|
|
182
|
-
{
|
|
183
|
-
className: styles.SidebarTree.entryLink(),
|
|
184
|
-
href: `${documentPath()}#${href}`,
|
|
185
|
-
children: title
|
|
186
|
-
}
|
|
187
|
-
);
|
|
179
|
+
return /* @__PURE__ */ jsx("a", { className: styles.SidebarTree.entryLink(), href: dashboardHref(href), children: title });
|
|
188
180
|
}
|
|
189
181
|
function equalStringSets(left, right) {
|
|
190
182
|
return left.size === right.size && Array.from(left).every((value) => right.has(value));
|
|
@@ -47,22 +47,22 @@ import {
|
|
|
47
47
|
|
|
48
48
|
// src/dashboard/app/WorkspaceMenu.module.css
|
|
49
49
|
var WorkspaceMenu_default = {
|
|
50
|
-
"WorkspaceMenu-trigger": "alinea-WorkspaceMenu-trigger",
|
|
51
|
-
"WorkspaceMenuTrigger": "alinea-WorkspaceMenu-trigger",
|
|
52
|
-
"WorkspaceMenu-search": "alinea-WorkspaceMenu-search",
|
|
53
|
-
"WorkspaceMenuSearch": "alinea-WorkspaceMenu-search",
|
|
54
|
-
"WorkspaceMenu-avatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
55
|
-
"WorkspaceMenuAvatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
56
50
|
"WorkspaceMenu-avatar": "alinea-WorkspaceMenu-avatar",
|
|
57
51
|
"WorkspaceMenuAvatar": "alinea-WorkspaceMenu-avatar",
|
|
58
|
-
"WorkspaceMenu-menuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
59
|
-
"WorkspaceMenuMenuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
60
52
|
"WorkspaceMenu-avatar-logo": "alinea-WorkspaceMenu-avatar-logo",
|
|
61
53
|
"WorkspaceMenuAvatarLogo": "alinea-WorkspaceMenu-avatar-logo",
|
|
62
|
-
"WorkspaceMenu-
|
|
63
|
-
"
|
|
54
|
+
"WorkspaceMenu-avatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
55
|
+
"WorkspaceMenuAvatarTrigger": "alinea-WorkspaceMenu-avatarTrigger",
|
|
56
|
+
"WorkspaceMenu-menuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
57
|
+
"WorkspaceMenuMenuItemIcon": "alinea-WorkspaceMenu-menuItemIcon",
|
|
58
|
+
"WorkspaceMenu-trigger": "alinea-WorkspaceMenu-trigger",
|
|
59
|
+
"WorkspaceMenuTrigger": "alinea-WorkspaceMenu-trigger",
|
|
60
|
+
"WorkspaceMenu-search": "alinea-WorkspaceMenu-search",
|
|
61
|
+
"WorkspaceMenuSearch": "alinea-WorkspaceMenu-search",
|
|
64
62
|
"WorkspaceMenu-trigger-text": "alinea-WorkspaceMenu-trigger-text",
|
|
65
|
-
"WorkspaceMenuTriggerText": "alinea-WorkspaceMenu-trigger-text"
|
|
63
|
+
"WorkspaceMenuTriggerText": "alinea-WorkspaceMenu-trigger-text",
|
|
64
|
+
"WorkspaceMenu-parent": "alinea-WorkspaceMenu-parent",
|
|
65
|
+
"WorkspaceMenuParent": "alinea-WorkspaceMenu-parent"
|
|
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
|
-
"WorkspaceRootsProfilePopoverUserTitle": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
49
|
+
"WorkspaceRoots-footer": "alinea-WorkspaceRoots-footer",
|
|
50
|
+
"WorkspaceRootsFooter": "alinea-WorkspaceRoots-footer",
|
|
51
|
+
"WorkspaceRoots": "alinea-WorkspaceRoots",
|
|
53
52
|
"WorkspaceRoots-profile-popover-item-label": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
54
53
|
"WorkspaceRootsProfilePopoverItemLabel": "alinea-WorkspaceRoots-profile-popover-item-label",
|
|
54
|
+
"WorkspaceRoots-roots": "alinea-WorkspaceRoots-roots",
|
|
55
|
+
"WorkspaceRootsRoots": "alinea-WorkspaceRoots-roots",
|
|
55
56
|
"WorkspaceRoots-profile-popover-user-icon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
56
57
|
"WorkspaceRootsProfilePopoverUserIcon": "alinea-WorkspaceRoots-profile-popover-user-icon",
|
|
57
|
-
"WorkspaceRoots": "alinea-WorkspaceRoots",
|
|
58
|
-
"WorkspaceRoots-profile-popover-user": "alinea-WorkspaceRoots-profile-popover-user",
|
|
59
|
-
"WorkspaceRootsProfilePopoverUser": "alinea-WorkspaceRoots-profile-popover-user",
|
|
60
|
-
"WorkspaceRoots-profile-popover-action-label": "alinea-WorkspaceRoots-profile-popover-action-label",
|
|
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
58
|
"WorkspaceRoots-workspace": "alinea-WorkspaceRoots-workspace",
|
|
67
59
|
"WorkspaceRootsWorkspace": "alinea-WorkspaceRoots-workspace",
|
|
68
|
-
"WorkspaceRoots-profile
|
|
69
|
-
"
|
|
70
|
-
"WorkspaceRoots-
|
|
71
|
-
"
|
|
60
|
+
"WorkspaceRoots-profile": "alinea-WorkspaceRoots-profile",
|
|
61
|
+
"WorkspaceRootsProfile": "alinea-WorkspaceRoots-profile",
|
|
62
|
+
"WorkspaceRoots-profile-popover-user": "alinea-WorkspaceRoots-profile-popover-user",
|
|
63
|
+
"WorkspaceRootsProfilePopoverUser": "alinea-WorkspaceRoots-profile-popover-user",
|
|
64
|
+
"WorkspaceRoots-profile-popover-user-title": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
65
|
+
"WorkspaceRootsProfilePopoverUserTitle": "alinea-WorkspaceRoots-profile-popover-user-title",
|
|
72
66
|
"WorkspaceRoots-profile-popover-themeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
73
67
|
"WorkspaceRootsProfilePopoverThemeOptions": "alinea-WorkspaceRoots-profile-popover-themeOptions",
|
|
74
|
-
"WorkspaceRoots-trigger
|
|
75
|
-
"
|
|
68
|
+
"WorkspaceRoots-trigger": "alinea-WorkspaceRoots-trigger",
|
|
69
|
+
"WorkspaceRootsTrigger": "alinea-WorkspaceRoots-trigger",
|
|
76
70
|
"WorkspaceRoots-profile-popover-action": "alinea-WorkspaceRoots-profile-popover-action",
|
|
77
71
|
"WorkspaceRootsProfilePopoverAction": "alinea-WorkspaceRoots-profile-popover-action",
|
|
78
72
|
"WorkspaceRoots-profile-popover-item": "alinea-WorkspaceRoots-profile-popover-item",
|
|
79
73
|
"WorkspaceRootsProfilePopoverItem": "alinea-WorkspaceRoots-profile-popover-item",
|
|
74
|
+
"WorkspaceRoots-profile-popover-surface": "alinea-WorkspaceRoots-profile-popover-surface",
|
|
75
|
+
"WorkspaceRootsProfilePopoverSurface": "alinea-WorkspaceRoots-profile-popover-surface",
|
|
76
|
+
"WorkspaceRoots-profile-popover": "alinea-WorkspaceRoots-profile-popover",
|
|
77
|
+
"WorkspaceRootsProfilePopover": "alinea-WorkspaceRoots-profile-popover",
|
|
78
|
+
"WorkspaceRoots-profile-popover-action-label": "alinea-WorkspaceRoots-profile-popover-action-label",
|
|
79
|
+
"WorkspaceRootsProfilePopoverActionLabel": "alinea-WorkspaceRoots-profile-popover-action-label",
|
|
80
|
+
"WorkspaceRoots-profile-popover-action-button": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
81
|
+
"WorkspaceRootsProfilePopoverActionButton": "alinea-WorkspaceRoots-profile-popover-action-button",
|
|
82
|
+
"WorkspaceRoots-trigger-text": "alinea-WorkspaceRoots-trigger-text",
|
|
83
|
+
"WorkspaceRootsTriggerText": "alinea-WorkspaceRoots-trigger-text",
|
|
80
84
|
"WorkspaceRoots-rootButton": "alinea-WorkspaceRoots-rootButton",
|
|
81
|
-
"WorkspaceRootsRootButton": "alinea-WorkspaceRoots-rootButton"
|
|
82
|
-
"WorkspaceRoots-trigger": "alinea-WorkspaceRoots-trigger",
|
|
83
|
-
"WorkspaceRootsTrigger": "alinea-WorkspaceRoots-trigger",
|
|
84
|
-
"WorkspaceRoots-roots": "alinea-WorkspaceRoots-roots",
|
|
85
|
-
"WorkspaceRootsRoots": "alinea-WorkspaceRoots-roots"
|
|
85
|
+
"WorkspaceRootsRootButton": "alinea-WorkspaceRoots-rootButton"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// src/dashboard/app/WorkspaceRoots.tsx
|
|
@@ -28,45 +28,45 @@ import { NodeEditor } from "../EntryFields.js";
|
|
|
28
28
|
|
|
29
29
|
// src/dashboard/app/editor/FileEditor.module.css
|
|
30
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
31
|
"FileEditor-tabs": "alinea-FileEditor-tabs",
|
|
40
32
|
"FileEditorTabs": "alinea-FileEditor-tabs",
|
|
41
|
-
"FileEditor-
|
|
42
|
-
"
|
|
33
|
+
"FileEditor-content": "alinea-FileEditor-content",
|
|
34
|
+
"FileEditorContent": "alinea-FileEditor-content",
|
|
43
35
|
"is-link": "alinea-is-link",
|
|
44
36
|
"isLink": "alinea-is-link",
|
|
37
|
+
"FileEditor-metadata": "alinea-FileEditor-metadata",
|
|
38
|
+
"FileEditorMetadata": "alinea-FileEditor-metadata",
|
|
39
|
+
"FileEditor-metadata-value": "alinea-FileEditor-metadata-value",
|
|
40
|
+
"FileEditorMetadataValue": "alinea-FileEditor-metadata-value",
|
|
41
|
+
"is-full": "alinea-is-full",
|
|
42
|
+
"isFull": "alinea-is-full",
|
|
45
43
|
"FileEditor-metadataPanel": "alinea-FileEditor-metadataPanel",
|
|
46
44
|
"FileEditorMetadataPanel": "alinea-FileEditor-metadataPanel",
|
|
47
|
-
"FileEditor-
|
|
48
|
-
"
|
|
49
|
-
"FileEditor-surface": "alinea-FileEditor-surface",
|
|
50
|
-
"FileEditorSurface": "alinea-FileEditor-surface",
|
|
51
|
-
"FileEditor-tabPanel": "alinea-FileEditor-tabPanel",
|
|
52
|
-
"FileEditorTabPanel": "alinea-FileEditor-tabPanel",
|
|
53
|
-
"FileEditor-focus": "alinea-FileEditor-focus",
|
|
54
|
-
"FileEditorFocus": "alinea-FileEditor-focus",
|
|
45
|
+
"FileEditor-metadata-term": "alinea-FileEditor-metadata-term",
|
|
46
|
+
"FileEditorMetadataTerm": "alinea-FileEditor-metadata-term",
|
|
55
47
|
"FileEditor-tabs-header": "alinea-FileEditor-tabs-header",
|
|
56
48
|
"FileEditorTabsHeader": "alinea-FileEditor-tabs-header",
|
|
57
|
-
"FileEditor-
|
|
58
|
-
"
|
|
59
|
-
"FileEditor-
|
|
60
|
-
"
|
|
61
|
-
"FileEditor": "alinea-FileEditor",
|
|
62
|
-
"FileEditor-metadata-grid": "alinea-FileEditor-metadata-grid",
|
|
63
|
-
"FileEditorMetadataGrid": "alinea-FileEditor-metadata-grid",
|
|
49
|
+
"FileEditor-metadata-item": "alinea-FileEditor-metadata-item",
|
|
50
|
+
"FileEditorMetadataItem": "alinea-FileEditor-metadata-item",
|
|
51
|
+
"FileEditor-focus": "alinea-FileEditor-focus",
|
|
52
|
+
"FileEditorFocus": "alinea-FileEditor-focus",
|
|
64
53
|
"FileEditor-focus-description": "alinea-FileEditor-focus-description",
|
|
65
54
|
"FileEditorFocusDescription": "alinea-FileEditor-focus-description",
|
|
55
|
+
"FileEditor-metadata-grid": "alinea-FileEditor-metadata-grid",
|
|
56
|
+
"FileEditorMetadataGrid": "alinea-FileEditor-metadata-grid",
|
|
57
|
+
"FileEditor-focus-header": "alinea-FileEditor-focus-header",
|
|
58
|
+
"FileEditorFocusHeader": "alinea-FileEditor-focus-header",
|
|
66
59
|
"FileEditor-focus-value": "alinea-FileEditor-focus-value",
|
|
67
60
|
"FileEditorFocusValue": "alinea-FileEditor-focus-value",
|
|
61
|
+
"FileEditor": "alinea-FileEditor",
|
|
68
62
|
"is-image": "alinea-is-image",
|
|
69
|
-
"isImage": "alinea-is-image"
|
|
63
|
+
"isImage": "alinea-is-image",
|
|
64
|
+
"FileEditor-focus-label": "alinea-FileEditor-focus-label",
|
|
65
|
+
"FileEditorFocusLabel": "alinea-FileEditor-focus-label",
|
|
66
|
+
"FileEditor-tabPanel": "alinea-FileEditor-tabPanel",
|
|
67
|
+
"FileEditorTabPanel": "alinea-FileEditor-tabPanel",
|
|
68
|
+
"FileEditor-surface": "alinea-FileEditor-surface",
|
|
69
|
+
"FileEditorSurface": "alinea-FileEditor-surface"
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// src/dashboard/app/editor/FileEditor.tsx
|
|
@@ -10,17 +10,17 @@ 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-inner": "alinea-FilePreview-focus-inner",
|
|
14
|
+
"FilePreviewFocusInner": "alinea-FilePreview-focus-inner",
|
|
13
15
|
"FilePreview-interactive": "alinea-FilePreview-interactive",
|
|
14
16
|
"FilePreviewInteractive": "alinea-FilePreview-interactive",
|
|
15
17
|
"FilePreview-image": "alinea-FilePreview-image",
|
|
16
18
|
"FilePreviewImage": "alinea-FilePreview-image",
|
|
17
19
|
"FilePreview-focus-dot": "alinea-FilePreview-focus-dot",
|
|
18
20
|
"FilePreviewFocusDot": "alinea-FilePreview-focus-dot",
|
|
21
|
+
"FilePreview": "alinea-FilePreview",
|
|
19
22
|
"FilePreview-focus": "alinea-FilePreview-focus",
|
|
20
|
-
"FilePreviewFocus": "alinea-FilePreview-focus"
|
|
21
|
-
"FilePreview-focus-inner": "alinea-FilePreview-focus-inner",
|
|
22
|
-
"FilePreviewFocusInner": "alinea-FilePreview-focus-inner",
|
|
23
|
-
"FilePreview": "alinea-FilePreview"
|
|
23
|
+
"FilePreviewFocus": "alinea-FilePreview-focus"
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// src/dashboard/app/editor/FilePreview.tsx
|
|
@@ -47,12 +47,12 @@ import {
|
|
|
47
47
|
|
|
48
48
|
// src/dashboard/app/modals/CreateEntry.module.css
|
|
49
49
|
var CreateEntry_default = {
|
|
50
|
+
"CreateEntry-parentField": "alinea-CreateEntry-parentField",
|
|
51
|
+
"CreateEntryParentField": "alinea-CreateEntry-parentField",
|
|
50
52
|
"CreateEntry-parentRow": "alinea-CreateEntry-parentRow",
|
|
51
53
|
"CreateEntryParentRow": "alinea-CreateEntry-parentRow",
|
|
52
54
|
"CreateEntry-insertOrder": "alinea-CreateEntry-insertOrder",
|
|
53
55
|
"CreateEntryInsertOrder": "alinea-CreateEntry-insertOrder",
|
|
54
|
-
"CreateEntry-parentField": "alinea-CreateEntry-parentField",
|
|
55
|
-
"CreateEntryParentField": "alinea-CreateEntry-parentField",
|
|
56
56
|
"CreateEntry-message": "alinea-CreateEntry-message",
|
|
57
57
|
"CreateEntryMessage": "alinea-CreateEntry-message"
|
|
58
58
|
};
|
|
@@ -56,31 +56,31 @@ import { Rail, RailBody, RailContent } from "./../ui/Rail.js";
|
|
|
56
56
|
|
|
57
57
|
// src/dashboard/app/pages/EntryPage.module.css
|
|
58
58
|
var EntryPage_default = {
|
|
59
|
+
"EntryEditor-body": "alinea-EntryEditor-body",
|
|
60
|
+
"EntryEditorBody": "alinea-EntryEditor-body",
|
|
61
|
+
"MissingEntry": "alinea-MissingEntry",
|
|
62
|
+
"MissingEntry-card": "alinea-MissingEntry-card",
|
|
63
|
+
"MissingEntryCard": "alinea-MissingEntry-card",
|
|
64
|
+
"MissingEntry-message": "alinea-MissingEntry-message",
|
|
65
|
+
"MissingEntryMessage": "alinea-MissingEntry-message",
|
|
66
|
+
"MissingEntry-id": "alinea-MissingEntry-id",
|
|
67
|
+
"MissingEntryId": "alinea-MissingEntry-id",
|
|
59
68
|
"EntryEditor-fields": "alinea-EntryEditor-fields",
|
|
60
69
|
"EntryEditorFields": "alinea-EntryEditor-fields",
|
|
61
|
-
"EntryEditor-
|
|
62
|
-
"
|
|
70
|
+
"EntryEditor-banner": "alinea-EntryEditor-banner",
|
|
71
|
+
"EntryEditorBanner": "alinea-EntryEditor-banner",
|
|
63
72
|
"EntryEditor-toolbar": "alinea-EntryEditor-toolbar",
|
|
64
73
|
"EntryEditorToolbar": "alinea-EntryEditor-toolbar",
|
|
65
|
-
"EntryOverview-mobileActions": "alinea-EntryOverview-mobileActions",
|
|
66
|
-
"EntryOverviewMobileActions": "alinea-EntryOverview-mobileActions",
|
|
67
|
-
"EntryEditor-header": "alinea-EntryEditor-header",
|
|
68
|
-
"EntryEditorHeader": "alinea-EntryEditor-header",
|
|
69
|
-
"MissingEntry-card": "alinea-MissingEntry-card",
|
|
70
|
-
"MissingEntryCard": "alinea-MissingEntry-card",
|
|
71
|
-
"MissingEntry": "alinea-MissingEntry",
|
|
72
|
-
"EntryEditor-body": "alinea-EntryEditor-body",
|
|
73
|
-
"EntryEditorBody": "alinea-EntryEditor-body",
|
|
74
74
|
"MissingEntry-icon": "alinea-MissingEntry-icon",
|
|
75
75
|
"MissingEntryIcon": "alinea-MissingEntry-icon",
|
|
76
|
+
"EntryEditor-title": "alinea-EntryEditor-title",
|
|
77
|
+
"EntryEditorTitle": "alinea-EntryEditor-title",
|
|
76
78
|
"MissingEntry-title": "alinea-MissingEntry-title",
|
|
77
79
|
"MissingEntryTitle": "alinea-MissingEntry-title",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"EntryEditor-banner": "alinea-EntryEditor-banner",
|
|
83
|
-
"EntryEditorBanner": "alinea-EntryEditor-banner"
|
|
80
|
+
"EntryOverview-mobileActions": "alinea-EntryOverview-mobileActions",
|
|
81
|
+
"EntryOverviewMobileActions": "alinea-EntryOverview-mobileActions",
|
|
82
|
+
"EntryEditor-header": "alinea-EntryEditor-header",
|
|
83
|
+
"EntryEditorHeader": "alinea-EntryEditor-header"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// src/dashboard/app/pages/EntryPage.tsx
|