alinea 2.0.0-preview.3 → 2.0.0-preview.4
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 +144 -90
- package/dist/adapter/next/DevRemote.js +10 -2
- package/dist/adapter/next/previews.js +1 -0
- package/dist/backend/Handler.js +14 -7
- package/dist/backend/api/BasicAuth.d.ts +1 -1
- package/dist/backend/api/BasicAuth.js +14 -14
- package/dist/backend/api/OAuth2.d.ts +3 -3
- package/dist/backend/api/OAuth2.js +7 -4
- package/dist/bundled.d.ts +96 -25
- package/dist/chunks/{chunk-Y7XOMJOC.js → chunk-CFNRVI3Y.js} +220 -247
- package/dist/chunks/chunk-D6UJHBJJ.js +183 -0
- package/dist/chunks/chunk-TIJTT5ZI.js +228 -0
- package/dist/chunks/{chunk-HFBZMKIN.js → chunk-XMOVGDFI.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/serve/LocalAuth.js +1 -1
- package/dist/cloud/AuthResult.d.ts +2 -0
- package/dist/cloud/CloudHandshake.d.ts +7 -0
- package/dist/cloud/CloudHandshake.js +64 -0
- package/dist/cloud/CloudRemote.d.ts +4 -1
- package/dist/cloud/CloudRemote.js +21 -3
- package/dist/components/Calendar.js +6 -6
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/ComboBox.js +12 -12
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/DateRangePicker.js +4 -4
- package/dist/components/Disclosure.js +6 -6
- package/dist/components/Label.js +6 -6
- package/dist/components/List.js +37 -37
- package/dist/components/Menu.js +4 -4
- package/dist/components/Modal.js +2 -2
- package/dist/components/MultipleSelect.js +23 -23
- package/dist/components/NumberField.js +5 -5
- package/dist/components/ProgressCircle.js +4 -4
- package/dist/components/SearchField.js +7 -7
- package/dist/components/Select.js +6 -6
- package/dist/components/Surface.js +1 -1
- package/dist/components/Table.js +8 -8
- package/dist/components/TextField.js +4 -4
- package/dist/components/TimeField.js +4 -4
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +2 -2
- package/dist/components/Toolbar.js +3 -3
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Tree.js +6 -6
- package/dist/core/Connection.d.ts +7 -4
- package/dist/core/Entry.d.ts +6 -0
- package/dist/core/Entry.js +10 -0
- package/dist/core/Id.d.ts +1 -0
- package/dist/core/Id.js +8 -0
- package/dist/core/db/Operation.js +4 -3
- package/dist/dashboard/App.js +30 -16
- package/dist/dashboard/StoryProvider.js +2 -2
- package/dist/dashboard/app/AccessDenied.js +3 -3
- package/dist/dashboard/app/ActivityStatus.js +23 -23
- package/dist/dashboard/app/AppShell.js +2 -2
- package/dist/dashboard/app/AppearanceToggle.d.ts +1 -0
- package/dist/dashboard/app/AppearanceToggle.js +43 -0
- package/dist/dashboard/app/AuthView.d.ts +1 -1
- package/dist/dashboard/app/AuthView.js +17 -19
- package/dist/dashboard/app/Badge.js +2 -2
- package/dist/dashboard/app/CompactField.js +17 -17
- package/dist/dashboard/app/DashboardErrorBoundary.js +23 -11
- package/dist/dashboard/app/DashboardLayout.js +15 -8
- package/dist/dashboard/app/DashboardMeta.d.ts +2 -1
- package/dist/dashboard/app/DashboardMeta.js +20 -5
- package/dist/dashboard/app/EntryFields.js +6 -6
- package/dist/dashboard/app/EntryHeader.js +27 -27
- package/dist/dashboard/app/EntryReferences.js +15 -15
- package/dist/dashboard/app/EntrySidebar.js +24 -24
- package/dist/dashboard/app/EntrySidebarPreview.js +20 -19
- package/dist/dashboard/app/EntryTranslationBanner.js +5 -5
- package/dist/dashboard/app/Explorer.js +64 -64
- package/dist/dashboard/app/ExplorerCards.js +46 -46
- package/dist/dashboard/app/ExplorerFileCard.js +19 -19
- package/dist/dashboard/app/ExplorerList.js +20 -20
- package/dist/dashboard/app/ExplorerModal.js +5 -5
- package/dist/dashboard/app/ExplorerPickerContent.js +2 -2
- package/dist/dashboard/app/ExplorerTable.js +63 -63
- package/dist/dashboard/app/ImagePicker.js +7 -7
- package/dist/dashboard/app/LinkPicker.js +17 -22
- package/dist/dashboard/app/LocaleMenu.js +10 -12
- package/dist/dashboard/app/SidebarLayout.js +4 -4
- package/dist/dashboard/app/SidebarTree.js +58 -58
- package/dist/dashboard/app/WorkspaceMenu.d.ts +10 -3
- package/dist/dashboard/app/WorkspaceMenu.js +88 -67
- package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +2 -0
- package/dist/dashboard/app/WorkspaceRoots.d.ts +3 -1
- package/dist/dashboard/app/WorkspaceRoots.js +86 -111
- package/dist/dashboard/app/editor/FileEditor.js +29 -29
- package/dist/dashboard/app/editor/FilePreview.js +6 -6
- package/dist/dashboard/app/editor/MediaAltField.view.js +4 -4
- package/dist/dashboard/app/modals/CreateEntry.js +15 -15
- package/dist/dashboard/app/pages/EntryPage.js +29 -31
- package/dist/dashboard/app/pages/RootPage.js +4 -4
- package/dist/dashboard/app/pages/SplashPage.d.ts +3 -0
- package/dist/dashboard/app/pages/SplashPage.js +414 -0
- package/dist/dashboard/app/pages/UsersPage.js +42 -42
- package/dist/dashboard/app/ui/DashboardModal.js +16 -16
- package/dist/dashboard/app/ui/Rail.js +3 -3
- package/dist/dashboard/app/ui/Sidebar.js +2 -2
- package/dist/dashboard/atoms/ReactiveNode.js +1 -1
- package/dist/dashboard/atoms/activity.js +2 -3
- package/dist/dashboard/atoms/auth.d.ts +2 -0
- package/dist/dashboard/atoms/auth.js +6 -2
- package/dist/dashboard/atoms/config.js +1 -1
- package/dist/dashboard/atoms/core.js +2 -2
- package/dist/dashboard/atoms/create.js +1 -1
- package/dist/dashboard/atoms/dashboard.js +2 -2
- package/dist/dashboard/atoms/editor.js +1 -1
- package/dist/dashboard/atoms/entry.js +2 -2
- package/dist/dashboard/atoms/explorer.d.ts +1 -3
- package/dist/dashboard/atoms/explorer.js +7 -9
- package/dist/dashboard/atoms/graph.d.ts +1 -0
- package/dist/dashboard/atoms/graph.js +7 -2
- package/dist/dashboard/atoms/link.js +2 -2
- package/dist/dashboard/atoms/nav.d.ts +4 -3
- package/dist/dashboard/atoms/nav.js +10 -5
- package/dist/dashboard/atoms/preview.js +1 -1
- package/dist/dashboard/atoms/root.js +2 -2
- package/dist/dashboard/atoms/upload.js +1 -1
- package/dist/dashboard/atoms/user.d.ts +1 -1
- package/dist/dashboard/atoms/user.js +8 -6
- package/dist/dashboard/atoms/utils.js +2 -2
- package/dist/dashboard/boot/Boot.js +2 -4
- package/dist/dashboard/boot/DashboardWorker.js +34 -29
- package/dist/dashboard/editor/UseField.js +6 -6
- package/dist/dashboard/fixture/cms.d.ts +12 -0
- package/dist/dashboard/fixture/cms.js +53 -2
- package/dist/dashboard/hook/UseGraph.js +4 -4
- package/dist/dashboard/hook/UseRoot.js +4 -4
- package/dist/dashboard/hooks.js +16 -16
- package/dist/field/code/CodeField.view.js +12 -12
- package/dist/field/link/LinkField.view.js +56 -56
- package/dist/field/list/ListField.view.js +24 -24
- package/dist/field/localiser/LocalisedField.view.js +76 -5
- package/dist/field/metadata/MetadataField.view.js +19 -19
- package/dist/field/richtext/PickTextLink.js +6 -6
- package/dist/field/richtext/RichTextBlock.js +4 -4
- package/dist/field/richtext/RichTextBlocks.js +1 -1
- package/dist/field/richtext/RichTextExtensions.js +19 -19
- package/dist/field/richtext/RichTextField.view.js +6 -6
- package/dist/field/richtext/RichTextInsertMenu.js +3 -3
- package/dist/field/richtext/RichTextState.js +1 -1
- package/dist/field/text/TextField.view.js +2 -2
- package/dist/index.css +415 -28
- package/dist/preview/RegisterPreview.d.ts +1 -1
- package/dist/preview/RegisterPreview.js +4 -6
- package/dist/preview/react.d.ts +5 -1
- package/dist/preview/react.js +12 -9
- package/package.json +1 -1
- package/dist/chunks/chunk-STAJCW4Z.js +0 -322
- package/dist/chunks/chunk-U4VOHNR2.js +0 -210
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unwrap
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-TIJTT5ZI.js";
|
|
4
4
|
import {
|
|
5
5
|
useAtom,
|
|
6
|
-
|
|
6
|
+
useAtomValueRaw,
|
|
7
7
|
useSetAtom
|
|
8
|
-
} from "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
8
|
+
} from "../../chunks/chunk-D6UJHBJJ.js";
|
|
9
|
+
import "../../chunks/chunk-CFNRVI3Y.js";
|
|
10
10
|
import {
|
|
11
11
|
$143fb904d86051ce$export$89be5a243e59c4b2,
|
|
12
12
|
$1f7649abe3ae3599$export$a7bfbda1311ca015,
|
|
@@ -42,51 +42,51 @@ import { configAtom } from "../atoms/core.js";
|
|
|
42
42
|
|
|
43
43
|
// src/dashboard/app/ExplorerCards.module.css
|
|
44
44
|
var ExplorerCards_default = {
|
|
45
|
-
"ExplorerCards-item-card": "alinea-ExplorerCards-item-card",
|
|
46
|
-
"ExplorerCardsItemCard": "alinea-ExplorerCards-item-card",
|
|
47
|
-
"is-file": "alinea-is-file",
|
|
48
|
-
"isFile": "alinea-is-file",
|
|
49
|
-
"is-wide": "alinea-is-wide",
|
|
50
|
-
"isWide": "alinea-is-wide",
|
|
51
|
-
"ExplorerCards-skeleton-pulse": "alinea-ExplorerCards-skeleton-pulse",
|
|
52
|
-
"ExplorerCardsSkeletonPulse": "alinea-ExplorerCards-skeleton-pulse",
|
|
53
45
|
"ExplorerCards-item": "alinea-ExplorerCards-item",
|
|
54
46
|
"ExplorerCardsItem": "alinea-ExplorerCards-item",
|
|
55
|
-
"ExplorerCards-entry-icon": "alinea-ExplorerCards-entry-icon",
|
|
56
|
-
"ExplorerCardsEntryIcon": "alinea-ExplorerCards-entry-icon",
|
|
57
|
-
"ExplorerCards-entry": "alinea-ExplorerCards-entry",
|
|
58
|
-
"ExplorerCardsEntry": "alinea-ExplorerCards-entry",
|
|
59
47
|
"ExplorerCards-entry-iconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
|
|
60
48
|
"ExplorerCardsEntryIconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
|
|
61
|
-
"ExplorerCards-entry-body-inner": "alinea-ExplorerCards-entry-body-inner",
|
|
62
|
-
"ExplorerCardsEntryBodyInner": "alinea-ExplorerCards-entry-body-inner",
|
|
63
|
-
"is-breadcrumbs": "alinea-is-breadcrumbs",
|
|
64
|
-
"isBreadcrumbs": "alinea-is-breadcrumbs",
|
|
65
|
-
"ExplorerCards-entry-label": "alinea-ExplorerCards-entry-label",
|
|
66
|
-
"ExplorerCardsEntryLabel": "alinea-ExplorerCards-entry-label",
|
|
67
|
-
"ExplorerCards-entry-top": "alinea-ExplorerCards-entry-top",
|
|
68
|
-
"ExplorerCardsEntryTop": "alinea-ExplorerCards-entry-top",
|
|
69
|
-
"ExplorerCards-parents": "alinea-ExplorerCards-parents",
|
|
70
|
-
"ExplorerCardsParents": "alinea-ExplorerCards-parents",
|
|
71
49
|
"ExplorerCards-item-checkbox": "alinea-ExplorerCards-item-checkbox",
|
|
72
50
|
"ExplorerCardsItemCheckbox": "alinea-ExplorerCards-item-checkbox",
|
|
51
|
+
"ExplorerCards-surface": "alinea-ExplorerCards-surface",
|
|
52
|
+
"ExplorerCardsSurface": "alinea-ExplorerCards-surface",
|
|
73
53
|
"ExplorerCards-viewport": "alinea-ExplorerCards-viewport",
|
|
74
54
|
"ExplorerCardsViewport": "alinea-ExplorerCards-viewport",
|
|
55
|
+
"is-breadcrumbs": "alinea-is-breadcrumbs",
|
|
56
|
+
"isBreadcrumbs": "alinea-is-breadcrumbs",
|
|
57
|
+
"ExplorerCards-entry-skeleton": "alinea-ExplorerCards-entry-skeleton",
|
|
58
|
+
"ExplorerCardsEntrySkeleton": "alinea-ExplorerCards-entry-skeleton",
|
|
59
|
+
"is-loading": "alinea-is-loading",
|
|
60
|
+
"isLoading": "alinea-is-loading",
|
|
61
|
+
"ExplorerCards-parents": "alinea-ExplorerCards-parents",
|
|
62
|
+
"ExplorerCardsParents": "alinea-ExplorerCards-parents",
|
|
75
63
|
"ExplorerCards-parents-separator": "alinea-ExplorerCards-parents-separator",
|
|
76
64
|
"ExplorerCardsParentsSeparator": "alinea-ExplorerCards-parents-separator",
|
|
77
|
-
"
|
|
65
|
+
"is-wide": "alinea-is-wide",
|
|
66
|
+
"isWide": "alinea-is-wide",
|
|
67
|
+
"is-file": "alinea-is-file",
|
|
68
|
+
"isFile": "alinea-is-file",
|
|
69
|
+
"ExplorerCards-entry-body-inner": "alinea-ExplorerCards-entry-body-inner",
|
|
70
|
+
"ExplorerCardsEntryBodyInner": "alinea-ExplorerCards-entry-body-inner",
|
|
71
|
+
"ExplorerCards-entry-top": "alinea-ExplorerCards-entry-top",
|
|
72
|
+
"ExplorerCardsEntryTop": "alinea-ExplorerCards-entry-top",
|
|
73
|
+
"ExplorerCards-entry-icon": "alinea-ExplorerCards-entry-icon",
|
|
74
|
+
"ExplorerCardsEntryIcon": "alinea-ExplorerCards-entry-icon",
|
|
78
75
|
"ExplorerCards-entry-meta": "alinea-ExplorerCards-entry-meta",
|
|
79
76
|
"ExplorerCardsEntryMeta": "alinea-ExplorerCards-entry-meta",
|
|
77
|
+
"ExplorerCards-entry-label": "alinea-ExplorerCards-entry-label",
|
|
78
|
+
"ExplorerCardsEntryLabel": "alinea-ExplorerCards-entry-label",
|
|
80
79
|
"ExplorerCards-entry-body": "alinea-ExplorerCards-entry-body",
|
|
81
80
|
"ExplorerCardsEntryBody": "alinea-ExplorerCards-entry-body",
|
|
82
|
-
"
|
|
83
|
-
"isLoading": "alinea-is-loading",
|
|
84
|
-
"ExplorerCards-surface": "alinea-ExplorerCards-surface",
|
|
85
|
-
"ExplorerCardsSurface": "alinea-ExplorerCards-surface",
|
|
81
|
+
"ExplorerCards": "alinea-ExplorerCards",
|
|
86
82
|
"ExplorerCards-item-drag-handle": "alinea-ExplorerCards-item-drag-handle",
|
|
87
83
|
"ExplorerCardsItemDragHandle": "alinea-ExplorerCards-item-drag-handle",
|
|
88
|
-
"ExplorerCards-entry
|
|
89
|
-
"
|
|
84
|
+
"ExplorerCards-entry": "alinea-ExplorerCards-entry",
|
|
85
|
+
"ExplorerCardsEntry": "alinea-ExplorerCards-entry",
|
|
86
|
+
"ExplorerCards-item-card": "alinea-ExplorerCards-item-card",
|
|
87
|
+
"ExplorerCardsItemCard": "alinea-ExplorerCards-item-card",
|
|
88
|
+
"ExplorerCards-skeleton-pulse": "alinea-ExplorerCards-skeleton-pulse",
|
|
89
|
+
"ExplorerCardsSkeletonPulse": "alinea-ExplorerCards-skeleton-pulse"
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
// src/dashboard/app/ExplorerCards.tsx
|
|
@@ -108,8 +108,8 @@ var ExplorerCardItem = memo(function ExplorerCardItem2({
|
|
|
108
108
|
includeWorkspace,
|
|
109
109
|
showSelectionControls
|
|
110
110
|
}) {
|
|
111
|
-
const { data } =
|
|
112
|
-
const isSelectable =
|
|
111
|
+
const { data } = useAtomValueRaw(entry.data);
|
|
112
|
+
const isSelectable = useAtomValueRaw(explorer.isSelectable(entry));
|
|
113
113
|
if (!data)
|
|
114
114
|
return /* @__PURE__ */ jsx(
|
|
115
115
|
ExplorerCardLoadingItem,
|
|
@@ -180,16 +180,16 @@ var ExplorerCardLoadedItem = memo(function ExplorerCardLoadedItem2({
|
|
|
180
180
|
includeWorkspace,
|
|
181
181
|
showSelectionControls
|
|
182
182
|
}) {
|
|
183
|
-
const label =
|
|
184
|
-
const icon =
|
|
185
|
-
const type =
|
|
186
|
-
const canOpen =
|
|
183
|
+
const label = useAtomValueRaw(data.label);
|
|
184
|
+
const icon = useAtomValueRaw(data.icon);
|
|
185
|
+
const type = useAtomValueRaw(data.type);
|
|
186
|
+
const canOpen = useAtomValueRaw(data.canOpen);
|
|
187
187
|
const performAction = useSetAtom(explorer.onAction);
|
|
188
188
|
const hasAction = explorer.hasRowAction || !isSelectable && canOpen;
|
|
189
189
|
function onAction() {
|
|
190
190
|
startTransition(() => performAction(entry, locale));
|
|
191
191
|
}
|
|
192
|
-
const info =
|
|
192
|
+
const info = useAtomValueRaw(
|
|
193
193
|
useMemo(() => unwrap(data.fileInfo, (previous) => previous ?? null), [data])
|
|
194
194
|
);
|
|
195
195
|
const location = breadcrumbs ? /* @__PURE__ */ jsx(
|
|
@@ -251,10 +251,10 @@ function ExplorerCardLocation({
|
|
|
251
251
|
entry,
|
|
252
252
|
includeWorkspace
|
|
253
253
|
}) {
|
|
254
|
-
const config =
|
|
255
|
-
const parents =
|
|
256
|
-
const root =
|
|
257
|
-
const rootLabel =
|
|
254
|
+
const config = useAtomValueRaw(configAtom);
|
|
255
|
+
const parents = useAtomValueRaw(data.parents);
|
|
256
|
+
const root = useAtomValueRaw(data.root);
|
|
257
|
+
const rootLabel = useAtomValueRaw(root.label);
|
|
258
258
|
const workspace = config.workspaces[entry.workspace];
|
|
259
259
|
const workspaceLabel = workspace ? getWorkspace(workspace).label : entry.workspace;
|
|
260
260
|
return /* @__PURE__ */ jsx(
|
|
@@ -323,12 +323,12 @@ function ExplorerCardParents({
|
|
|
323
323
|
] }, breadcrumb.id)) });
|
|
324
324
|
}
|
|
325
325
|
function ExplorerCardParent({ parent }) {
|
|
326
|
-
const { data } =
|
|
326
|
+
const { data } = useAtomValueRaw(parent.data);
|
|
327
327
|
if (!data) return null;
|
|
328
328
|
return /* @__PURE__ */ jsx(ExplorerCardLoadedParent, { parent: data });
|
|
329
329
|
}
|
|
330
330
|
function ExplorerCardLoadedParent({ parent }) {
|
|
331
|
-
const label =
|
|
331
|
+
const label = useAtomValueRaw(parent.label);
|
|
332
332
|
return /* @__PURE__ */ jsx(Fragment, { children: label });
|
|
333
333
|
}
|
|
334
334
|
function ExplorerCards({
|
|
@@ -13,35 +13,35 @@ import { IcRoundInsertDriveFile } from "../icons.js";
|
|
|
13
13
|
|
|
14
14
|
// src/dashboard/app/ExplorerFileCard.module.css
|
|
15
15
|
var ExplorerFileCard_default = {
|
|
16
|
+
"ExplorerFileCard-preview-placeholder": "alinea-ExplorerFileCard-preview-placeholder",
|
|
17
|
+
"ExplorerFileCardPreviewPlaceholder": "alinea-ExplorerFileCard-preview-placeholder",
|
|
18
|
+
"is-breadcrumbs": "alinea-is-breadcrumbs",
|
|
19
|
+
"isBreadcrumbs": "alinea-is-breadcrumbs",
|
|
16
20
|
"ExplorerFileCard-meta": "alinea-ExplorerFileCard-meta",
|
|
17
21
|
"ExplorerFileCardMeta": "alinea-ExplorerFileCard-meta",
|
|
18
|
-
"ExplorerFileCard
|
|
19
|
-
"ExplorerFileCardPreviewImage": "alinea-ExplorerFileCard-preview-image",
|
|
22
|
+
"ExplorerFileCard": "alinea-ExplorerFileCard",
|
|
20
23
|
"is-card": "alinea-is-card",
|
|
21
24
|
"isCard": "alinea-is-card",
|
|
22
|
-
"ExplorerFileCard-
|
|
23
|
-
"
|
|
25
|
+
"ExplorerFileCard-meta-extension": "alinea-ExplorerFileCard-meta-extension",
|
|
26
|
+
"ExplorerFileCardMetaExtension": "alinea-ExplorerFileCard-meta-extension",
|
|
27
|
+
"ExplorerFileCard-preview-image": "alinea-ExplorerFileCard-preview-image",
|
|
28
|
+
"ExplorerFileCardPreviewImage": "alinea-ExplorerFileCard-preview-image",
|
|
24
29
|
"ExplorerFileCard-top": "alinea-ExplorerFileCard-top",
|
|
25
30
|
"ExplorerFileCardTop": "alinea-ExplorerFileCard-top",
|
|
26
|
-
"ExplorerFileCard-preview": "alinea-ExplorerFileCard-preview",
|
|
27
|
-
"
|
|
28
|
-
"ExplorerFileCard-meta-details": "alinea-ExplorerFileCard-meta-details",
|
|
29
|
-
"ExplorerFileCardMetaDetails": "alinea-ExplorerFileCard-meta-details",
|
|
30
|
-
"ExplorerFileCard-label": "alinea-ExplorerFileCard-label",
|
|
31
|
-
"ExplorerFileCardLabel": "alinea-ExplorerFileCard-label",
|
|
32
|
-
"is-breadcrumbs": "alinea-is-breadcrumbs",
|
|
33
|
-
"isBreadcrumbs": "alinea-is-breadcrumbs",
|
|
34
|
-
"ExplorerFileCard-body": "alinea-ExplorerFileCard-body",
|
|
35
|
-
"ExplorerFileCardBody": "alinea-ExplorerFileCard-body",
|
|
31
|
+
"ExplorerFileCard-preview-placeholder-icon": "alinea-ExplorerFileCard-preview-placeholder-icon",
|
|
32
|
+
"ExplorerFileCardPreviewPlaceholderIcon": "alinea-ExplorerFileCard-preview-placeholder-icon",
|
|
36
33
|
"ExplorerFileCard-body-inner": "alinea-ExplorerFileCard-body-inner",
|
|
37
34
|
"ExplorerFileCardBodyInner": "alinea-ExplorerFileCard-body-inner",
|
|
35
|
+
"ExplorerFileCard-preview": "alinea-ExplorerFileCard-preview",
|
|
36
|
+
"ExplorerFileCardPreview": "alinea-ExplorerFileCard-preview",
|
|
38
37
|
"is-row": "alinea-is-row",
|
|
39
38
|
"isRow": "alinea-is-row",
|
|
40
|
-
"ExplorerFileCard-
|
|
41
|
-
"
|
|
42
|
-
"ExplorerFileCard-
|
|
43
|
-
"
|
|
44
|
-
"ExplorerFileCard": "alinea-ExplorerFileCard"
|
|
39
|
+
"ExplorerFileCard-body": "alinea-ExplorerFileCard-body",
|
|
40
|
+
"ExplorerFileCardBody": "alinea-ExplorerFileCard-body",
|
|
41
|
+
"ExplorerFileCard-label": "alinea-ExplorerFileCard-label",
|
|
42
|
+
"ExplorerFileCardLabel": "alinea-ExplorerFileCard-label",
|
|
43
|
+
"ExplorerFileCard-meta-details": "alinea-ExplorerFileCard-meta-details",
|
|
44
|
+
"ExplorerFileCardMetaDetails": "alinea-ExplorerFileCard-meta-details"
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
// src/dashboard/app/ExplorerFileCard.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
useAtomValueRaw,
|
|
3
3
|
useSetAtom
|
|
4
|
-
} from "../../chunks/chunk-
|
|
4
|
+
} from "../../chunks/chunk-D6UJHBJJ.js";
|
|
5
5
|
import {
|
|
6
6
|
atom
|
|
7
|
-
} from "../../chunks/chunk-
|
|
7
|
+
} from "../../chunks/chunk-CFNRVI3Y.js";
|
|
8
8
|
import {
|
|
9
9
|
$32ef394310635fd5$export$2cfc5be7a55829f6
|
|
10
10
|
} from "../../chunks/chunk-6V4TAD2N.js";
|
|
@@ -28,25 +28,25 @@ import { ExplorerCards } from "./ExplorerCards.js";
|
|
|
28
28
|
|
|
29
29
|
// src/dashboard/app/ExplorerList.module.css
|
|
30
30
|
var ExplorerList_default = {
|
|
31
|
+
"ExplorerList": "alinea-ExplorerList",
|
|
32
|
+
"ExplorerList-drag-preview-label": "alinea-ExplorerList-drag-preview-label",
|
|
33
|
+
"ExplorerListDragPreviewLabel": "alinea-ExplorerList-drag-preview-label",
|
|
31
34
|
"ExplorerList-empty-title": "alinea-ExplorerList-empty-title",
|
|
32
35
|
"ExplorerListEmptyTitle": "alinea-ExplorerList-empty-title",
|
|
33
|
-
"ExplorerList": "alinea-ExplorerList",
|
|
34
|
-
"ExplorerList-empty-text": "alinea-ExplorerList-empty-text",
|
|
35
|
-
"ExplorerListEmptyText": "alinea-ExplorerList-empty-text",
|
|
36
36
|
"ExplorerList-empty-copy": "alinea-ExplorerList-empty-copy",
|
|
37
37
|
"ExplorerListEmptyCopy": "alinea-ExplorerList-empty-copy",
|
|
38
|
-
"ExplorerList-empty-
|
|
39
|
-
"
|
|
38
|
+
"ExplorerList-empty-text": "alinea-ExplorerList-empty-text",
|
|
39
|
+
"ExplorerListEmptyText": "alinea-ExplorerList-empty-text",
|
|
40
|
+
"ExplorerList-empty": "alinea-ExplorerList-empty",
|
|
41
|
+
"ExplorerListEmpty": "alinea-ExplorerList-empty",
|
|
40
42
|
"ExplorerList-empty-icon": "alinea-ExplorerList-empty-icon",
|
|
41
43
|
"ExplorerListEmptyIcon": "alinea-ExplorerList-empty-icon",
|
|
42
|
-
"ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
|
|
43
|
-
"ExplorerListDragPreview": "alinea-ExplorerList-drag-preview",
|
|
44
|
-
"ExplorerList-drag-preview-label": "alinea-ExplorerList-drag-preview-label",
|
|
45
|
-
"ExplorerListDragPreviewLabel": "alinea-ExplorerList-drag-preview-label",
|
|
46
44
|
"ExplorerList-pending": "alinea-ExplorerList-pending",
|
|
47
45
|
"ExplorerListPending": "alinea-ExplorerList-pending",
|
|
48
|
-
"ExplorerList-empty": "alinea-ExplorerList-empty",
|
|
49
|
-
"
|
|
46
|
+
"ExplorerList-empty-button": "alinea-ExplorerList-empty-button",
|
|
47
|
+
"ExplorerListEmptyButton": "alinea-ExplorerList-empty-button",
|
|
48
|
+
"ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
|
|
49
|
+
"ExplorerListDragPreview": "alinea-ExplorerList-drag-preview"
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// src/dashboard/app/ExplorerList.tsx
|
|
@@ -55,9 +55,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
55
55
|
var styles = dist_default(ExplorerList_default);
|
|
56
56
|
var fallbackEmptyIcon = atom(LucideFile);
|
|
57
57
|
function EmptyResults({ explorer, page, root }) {
|
|
58
|
-
const icon =
|
|
58
|
+
const icon = useAtomValueRaw(root?.icon ?? fallbackEmptyIcon);
|
|
59
59
|
const setSearchScope = useSetAtom(explorer.searchScope);
|
|
60
|
-
const canSearchEverything =
|
|
60
|
+
const canSearchEverything = useAtomValueRaw(explorer.canSearchEverything);
|
|
61
61
|
const canSearchAll = canSearchEverything && page.searchScope === "workspace" && (explorer.mode === "search" || page.resultMode === "matches");
|
|
62
62
|
return /* @__PURE__ */ jsxs("div", { className: styles.ExplorerList.empty(), children: [
|
|
63
63
|
/* @__PURE__ */ jsx(Icon, { icon, className: styles.ExplorerList.empty.icon() }),
|
|
@@ -93,18 +93,18 @@ function ExplorerList({
|
|
|
93
93
|
onSelectionChange,
|
|
94
94
|
page
|
|
95
95
|
}) {
|
|
96
|
-
const showResults =
|
|
96
|
+
const showResults = explorer.mode !== "search" || Boolean(page.search.trim());
|
|
97
97
|
const getItems = useSetAtom(explorer.getItems);
|
|
98
98
|
const getDropOperation = useSetAtom(explorer.getDropOperation);
|
|
99
99
|
const dropOnItem = useSetAtom(explorer.onItemDrop);
|
|
100
|
-
const requestedLocation =
|
|
101
|
-
const selectedLocale =
|
|
100
|
+
const requestedLocation = useAtomValueRaw(explorer.location);
|
|
101
|
+
const selectedLocale = useAtomValueRaw(explorer.selectedLocale);
|
|
102
102
|
const locationIsPending = explorerPageIsPending(
|
|
103
103
|
page,
|
|
104
104
|
requestedLocation,
|
|
105
105
|
selectedLocale
|
|
106
106
|
);
|
|
107
|
-
const canUpload =
|
|
107
|
+
const canUpload = useAtomValueRaw(explorer.canUpload);
|
|
108
108
|
const upload = useSetAtom(explorer.upload);
|
|
109
109
|
const { dragAndDropHooks } = $32ef394310635fd5$export$2cfc5be7a55829f6({
|
|
110
110
|
acceptedDragTypes: page.isMedia && canUpload && !locationIsPending ? "all" : [],
|
|
@@ -10,13 +10,13 @@ import { Suspense } from "react";
|
|
|
10
10
|
|
|
11
11
|
// src/dashboard/app/ExplorerModal.module.css
|
|
12
12
|
var ExplorerModal_default = {
|
|
13
|
-
"
|
|
14
|
-
"ExplorerModalSelection": "alinea-ExplorerModalSelection",
|
|
15
|
-
"ExplorerModalContent": "alinea-ExplorerModalContent",
|
|
13
|
+
"ExplorerModal": "alinea-ExplorerModal",
|
|
16
14
|
"ExplorerModalNavigation": "alinea-ExplorerModalNavigation",
|
|
15
|
+
"ExplorerModalSelection": "alinea-ExplorerModalSelection",
|
|
17
16
|
"ExplorerModalLoading": "alinea-ExplorerModalLoading",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
17
|
+
"ExplorerModalContent": "alinea-ExplorerModalContent",
|
|
18
|
+
"ExplorerModalFooter": "alinea-ExplorerModalFooter",
|
|
19
|
+
"ExplorerModalActions": "alinea-ExplorerModalActions"
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// src/dashboard/app/ExplorerModal.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSetAtom
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-D6UJHBJJ.js";
|
|
4
4
|
import {
|
|
5
5
|
atom
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-CFNRVI3Y.js";
|
|
7
7
|
import "../../chunks/chunk-CQ52GEHY.js";
|
|
8
8
|
|
|
9
9
|
// src/dashboard/app/ExplorerPickerContent.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAtom,
|
|
3
|
-
|
|
3
|
+
useAtomValueRaw,
|
|
4
4
|
useSetAtom
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-D6UJHBJJ.js";
|
|
6
|
+
import "../../chunks/chunk-CFNRVI3Y.js";
|
|
7
7
|
import {
|
|
8
8
|
$143fb904d86051ce$export$89be5a243e59c4b2,
|
|
9
9
|
$7705c033048f6da7$export$353f5b6fc5456de1,
|
|
@@ -37,71 +37,71 @@ import { CompactField, compactFieldText } from "./CompactField.js";
|
|
|
37
37
|
|
|
38
38
|
// src/dashboard/app/ExplorerTable.module.css
|
|
39
39
|
var ExplorerTable_default = {
|
|
40
|
-
"ExplorerTable-
|
|
41
|
-
"
|
|
42
|
-
"ExplorerTable-
|
|
43
|
-
"
|
|
44
|
-
"is-linked": "alinea-is-linked",
|
|
45
|
-
"isLinked": "alinea-is-linked",
|
|
46
|
-
"ExplorerTable-iconDrag": "alinea-ExplorerTable-iconDrag",
|
|
47
|
-
"ExplorerTableIconDrag": "alinea-ExplorerTable-iconDrag",
|
|
48
|
-
"ExplorerTable-title": "alinea-ExplorerTable-title",
|
|
49
|
-
"ExplorerTableTitle": "alinea-ExplorerTable-title",
|
|
50
|
-
"ExplorerTable-cell": "alinea-ExplorerTable-cell",
|
|
51
|
-
"ExplorerTableCell": "alinea-ExplorerTable-cell",
|
|
52
|
-
"ExplorerTable-column-selection": "alinea-ExplorerTable-column-selection",
|
|
53
|
-
"ExplorerTableColumnSelection": "alinea-ExplorerTable-column-selection",
|
|
40
|
+
"ExplorerTable-cell-filler": "alinea-ExplorerTable-cell-filler",
|
|
41
|
+
"ExplorerTableCellFiller": "alinea-ExplorerTable-cell-filler",
|
|
42
|
+
"ExplorerTable-header": "alinea-ExplorerTable-header",
|
|
43
|
+
"ExplorerTableHeader": "alinea-ExplorerTable-header",
|
|
54
44
|
"ExplorerTable-body": "alinea-ExplorerTable-body",
|
|
55
45
|
"ExplorerTableBody": "alinea-ExplorerTable-body",
|
|
46
|
+
"ExplorerTable": "alinea-ExplorerTable",
|
|
56
47
|
"ExplorerTable-checkbox": "alinea-ExplorerTable-checkbox",
|
|
57
48
|
"ExplorerTableCheckbox": "alinea-ExplorerTable-checkbox",
|
|
49
|
+
"ExplorerTable-column-filler": "alinea-ExplorerTable-column-filler",
|
|
50
|
+
"ExplorerTableColumnFiller": "alinea-ExplorerTable-column-filler",
|
|
51
|
+
"is-linked": "alinea-is-linked",
|
|
52
|
+
"isLinked": "alinea-is-linked",
|
|
58
53
|
"ExplorerTable-row-grid": "alinea-ExplorerTable-row-grid",
|
|
59
54
|
"ExplorerTableRowGrid": "alinea-ExplorerTable-row-grid",
|
|
55
|
+
"is-compact": "alinea-is-compact",
|
|
56
|
+
"isCompact": "alinea-is-compact",
|
|
57
|
+
"ExplorerTable-icon": "alinea-ExplorerTable-icon",
|
|
58
|
+
"ExplorerTableIcon": "alinea-ExplorerTable-icon",
|
|
60
59
|
"ExplorerTable-viewport": "alinea-ExplorerTable-viewport",
|
|
61
60
|
"ExplorerTableViewport": "alinea-ExplorerTable-viewport",
|
|
61
|
+
"ExplorerTable-breadcrumb": "alinea-ExplorerTable-breadcrumb",
|
|
62
|
+
"ExplorerTableBreadcrumb": "alinea-ExplorerTable-breadcrumb",
|
|
63
|
+
"ExplorerTable-column-selection": "alinea-ExplorerTable-column-selection",
|
|
64
|
+
"ExplorerTableColumnSelection": "alinea-ExplorerTable-column-selection",
|
|
62
65
|
"ExplorerTable-chevron-button": "alinea-ExplorerTable-chevron-button",
|
|
63
66
|
"ExplorerTableChevronButton": "alinea-ExplorerTable-chevron-button",
|
|
64
|
-
"ExplorerTable-
|
|
65
|
-
"
|
|
66
|
-
"ExplorerTable-cell-filler": "alinea-ExplorerTable-cell-filler",
|
|
67
|
-
"ExplorerTableCellFiller": "alinea-ExplorerTable-cell-filler",
|
|
68
|
-
"ExplorerTable-header": "alinea-ExplorerTable-header",
|
|
69
|
-
"ExplorerTableHeader": "alinea-ExplorerTable-header",
|
|
67
|
+
"ExplorerTable-cell-selection": "alinea-ExplorerTable-cell-selection",
|
|
68
|
+
"ExplorerTableCellSelection": "alinea-ExplorerTable-cell-selection",
|
|
70
69
|
"is-unselectable": "alinea-is-unselectable",
|
|
71
70
|
"isUnselectable": "alinea-is-unselectable",
|
|
72
|
-
"ExplorerTable-
|
|
73
|
-
"
|
|
74
|
-
"ExplorerTable-breadcrumb": "alinea-ExplorerTable-breadcrumb",
|
|
75
|
-
"
|
|
76
|
-
"ExplorerTable-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"ExplorerTable": "alinea-ExplorerTable",
|
|
81
|
-
"
|
|
82
|
-
"ExplorerTableIcon": "alinea-ExplorerTable-icon",
|
|
83
|
-
"ExplorerTable-field": "alinea-ExplorerTable-field",
|
|
84
|
-
"ExplorerTableField": "alinea-ExplorerTable-field",
|
|
71
|
+
"ExplorerTable-cell": "alinea-ExplorerTable-cell",
|
|
72
|
+
"ExplorerTableCell": "alinea-ExplorerTable-cell",
|
|
73
|
+
"ExplorerTable-breadcrumb-root": "alinea-ExplorerTable-breadcrumb-root",
|
|
74
|
+
"ExplorerTableBreadcrumbRoot": "alinea-ExplorerTable-breadcrumb-root",
|
|
75
|
+
"ExplorerTable-empty": "alinea-ExplorerTable-empty",
|
|
76
|
+
"ExplorerTableEmpty": "alinea-ExplorerTable-empty",
|
|
77
|
+
"ExplorerTable-row": "alinea-ExplorerTable-row",
|
|
78
|
+
"ExplorerTableRow": "alinea-ExplorerTable-row",
|
|
79
|
+
"ExplorerTable-chevron": "alinea-ExplorerTable-chevron",
|
|
80
|
+
"ExplorerTableChevron": "alinea-ExplorerTable-chevron",
|
|
85
81
|
"ExplorerTable-breadcrumb-label": "alinea-ExplorerTable-breadcrumb-label",
|
|
86
82
|
"ExplorerTableBreadcrumbLabel": "alinea-ExplorerTable-breadcrumb-label",
|
|
83
|
+
"ExplorerTable-field-label": "alinea-ExplorerTable-field-label",
|
|
84
|
+
"ExplorerTableFieldLabel": "alinea-ExplorerTable-field-label",
|
|
87
85
|
"ExplorerTable-column": "alinea-ExplorerTable-column",
|
|
88
86
|
"ExplorerTableColumn": "alinea-ExplorerTable-column",
|
|
87
|
+
"ExplorerTable-surface": "alinea-ExplorerTable-surface",
|
|
88
|
+
"ExplorerTableSurface": "alinea-ExplorerTable-surface",
|
|
89
|
+
"ExplorerTable-field-value": "alinea-ExplorerTable-field-value",
|
|
90
|
+
"ExplorerTableFieldValue": "alinea-ExplorerTable-field-value",
|
|
91
|
+
"ExplorerTable-title": "alinea-ExplorerTable-title",
|
|
92
|
+
"ExplorerTableTitle": "alinea-ExplorerTable-title",
|
|
89
93
|
"is-noSelectionControls": "alinea-is-noSelectionControls",
|
|
90
94
|
"isNoSelectionControls": "alinea-is-noSelectionControls",
|
|
91
|
-
"ExplorerTable-
|
|
92
|
-
"
|
|
93
|
-
"ExplorerTable-cell-selection": "alinea-ExplorerTable-cell-selection",
|
|
94
|
-
"ExplorerTableCellSelection": "alinea-ExplorerTable-cell-selection",
|
|
95
|
-
"ExplorerTable-cell-title": "alinea-ExplorerTable-cell-title",
|
|
96
|
-
"ExplorerTableCellTitle": "alinea-ExplorerTable-cell-title",
|
|
95
|
+
"ExplorerTable-field": "alinea-ExplorerTable-field",
|
|
96
|
+
"ExplorerTableField": "alinea-ExplorerTable-field",
|
|
97
97
|
"ExplorerTable-titleAction": "alinea-ExplorerTable-titleAction",
|
|
98
98
|
"ExplorerTableTitleAction": "alinea-ExplorerTable-titleAction",
|
|
99
|
-
"ExplorerTable-
|
|
100
|
-
"
|
|
101
|
-
"ExplorerTable-breadcrumb-root": "alinea-ExplorerTable-breadcrumb-root",
|
|
102
|
-
"ExplorerTableBreadcrumbRoot": "alinea-ExplorerTable-breadcrumb-root",
|
|
99
|
+
"ExplorerTable-cell-title": "alinea-ExplorerTable-cell-title",
|
|
100
|
+
"ExplorerTableCellTitle": "alinea-ExplorerTable-cell-title",
|
|
103
101
|
"ExplorerTable-breadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
104
|
-
"ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs"
|
|
102
|
+
"ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs",
|
|
103
|
+
"ExplorerTable-iconDrag": "alinea-ExplorerTable-iconDrag",
|
|
104
|
+
"ExplorerTableIconDrag": "alinea-ExplorerTable-iconDrag"
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
// src/dashboard/app/ExplorerTable.tsx
|
|
@@ -174,7 +174,7 @@ function ExplorerTableBreadcrumbs({
|
|
|
174
174
|
] });
|
|
175
175
|
}
|
|
176
176
|
function ExplorerTableBreadcrumb({ entry, index }) {
|
|
177
|
-
const { data } =
|
|
177
|
+
const { data } = useAtomValueRaw(entry.data);
|
|
178
178
|
if (!data) return null;
|
|
179
179
|
return /* @__PURE__ */ jsx(ExplorerTableLoadedBreadcrumb, { data, index });
|
|
180
180
|
}
|
|
@@ -182,9 +182,9 @@ function ExplorerTableLoadedBreadcrumb({
|
|
|
182
182
|
data,
|
|
183
183
|
index
|
|
184
184
|
}) {
|
|
185
|
-
const label =
|
|
186
|
-
const root =
|
|
187
|
-
const rootLabel =
|
|
185
|
+
const label = useAtomValueRaw(data.label);
|
|
186
|
+
const root = useAtomValueRaw(data.root);
|
|
187
|
+
const rootLabel = useAtomValueRaw(root.label);
|
|
188
188
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
189
189
|
index === 0 && /* @__PURE__ */ jsx(
|
|
190
190
|
"span",
|
|
@@ -301,7 +301,7 @@ function ExplorerTableDisplayRow(props) {
|
|
|
301
301
|
hasChildren,
|
|
302
302
|
label
|
|
303
303
|
} = props;
|
|
304
|
-
const isExpanded =
|
|
304
|
+
const isExpanded = useAtomValueRaw(
|
|
305
305
|
useMemo(() => explorer.isExpanded(entry), [explorer, entry])
|
|
306
306
|
);
|
|
307
307
|
const onAction = useSetAtom(explorer.onAction);
|
|
@@ -363,7 +363,7 @@ function ExplorerTableDisplayRow(props) {
|
|
|
363
363
|
);
|
|
364
364
|
}
|
|
365
365
|
function ExplorerTableChildren(props) {
|
|
366
|
-
const children =
|
|
366
|
+
const children = useAtomValueRaw(
|
|
367
367
|
useMemo(
|
|
368
368
|
() => props.explorer.children(props.entry, props.locale),
|
|
369
369
|
[props.entry, props.explorer, props.locale]
|
|
@@ -403,14 +403,14 @@ function ExplorerTableLoadedRow({
|
|
|
403
403
|
explorer,
|
|
404
404
|
...props
|
|
405
405
|
}) {
|
|
406
|
-
const root =
|
|
407
|
-
const rootLabel =
|
|
408
|
-
const label =
|
|
409
|
-
const configuredIcon =
|
|
410
|
-
const hasChildren =
|
|
411
|
-
const cells =
|
|
412
|
-
const parents =
|
|
413
|
-
const isSelectable =
|
|
406
|
+
const root = useAtomValueRaw(data.root);
|
|
407
|
+
const rootLabel = useAtomValueRaw(root.label);
|
|
408
|
+
const label = useAtomValueRaw(data.label);
|
|
409
|
+
const configuredIcon = useAtomValueRaw(data.icon);
|
|
410
|
+
const hasChildren = useAtomValueRaw(data.hasChildren);
|
|
411
|
+
const cells = useAtomValueRaw(data.overviewCells);
|
|
412
|
+
const parents = useAtomValueRaw(data.parents);
|
|
413
|
+
const isSelectable = useAtomValueRaw(
|
|
414
414
|
useMemo(() => explorer.isSelectable(props.entry), [explorer, props.entry])
|
|
415
415
|
);
|
|
416
416
|
return /* @__PURE__ */ jsx(
|
|
@@ -429,7 +429,7 @@ function ExplorerTableLoadedRow({
|
|
|
429
429
|
);
|
|
430
430
|
}
|
|
431
431
|
function ExplorerTableRow(props) {
|
|
432
|
-
const { data, pending } =
|
|
432
|
+
const { data, pending } = useAtomValueRaw(props.entry.data);
|
|
433
433
|
if (pending || !data) return /* @__PURE__ */ jsx(ExplorerTableLoadingRow, { ...props });
|
|
434
434
|
return /* @__PURE__ */ jsx(ExplorerTableLoadedRow, { ...props, data });
|
|
435
435
|
}
|
|
@@ -446,7 +446,7 @@ function ExplorerTable({
|
|
|
446
446
|
const [selected, setSelected] = useAtom(explorer.selection);
|
|
447
447
|
const [expandedKeys, setExpandedKeys] = useAtom(explorer.expandedKeys);
|
|
448
448
|
const selectionMode = explorer.selectionMode;
|
|
449
|
-
const search =
|
|
449
|
+
const search = useAtomValueRaw(explorer.search);
|
|
450
450
|
const isSearching = Boolean(search.trim());
|
|
451
451
|
const breadcrumbs = explorer.breadcrumbs || page.resultMode === "matches" || isSearching || page.searchesEverything;
|
|
452
452
|
const hasSelection = selectionMode !== "none";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
useAtomValueRaw,
|
|
3
3
|
useSetAtom
|
|
4
|
-
} from "../../chunks/chunk-
|
|
4
|
+
} from "../../chunks/chunk-D6UJHBJJ.js";
|
|
5
5
|
import {
|
|
6
6
|
atom
|
|
7
|
-
} from "../../chunks/chunk-
|
|
7
|
+
} from "../../chunks/chunk-CFNRVI3Y.js";
|
|
8
8
|
import "../../chunks/chunk-CQ52GEHY.js";
|
|
9
9
|
|
|
10
10
|
// src/dashboard/app/ImagePicker.tsx
|
|
@@ -57,7 +57,7 @@ function ImagePicker(options) {
|
|
|
57
57
|
function ImagePickerModalContent({ label, options }) {
|
|
58
58
|
const modal = useDashboardModal();
|
|
59
59
|
const { page, root, workspace } = useDashboardContext();
|
|
60
|
-
const policy =
|
|
60
|
+
const policy = useAtomValueRaw(policyAtom);
|
|
61
61
|
const mediaRoot = Object.entries(workspace.roots).find(
|
|
62
62
|
([key, value]) => policy.canRead({ workspace: root.workspace, root: key }) && Boolean(getRoot(value).isMediaRoot)
|
|
63
63
|
)?.[0];
|
|
@@ -66,7 +66,7 @@ function ImagePickerModalContent({ label, options }) {
|
|
|
66
66
|
root: mediaRoot ?? root.key
|
|
67
67
|
};
|
|
68
68
|
const pickerRoot = rootAtoms(location.workspace, location.root ?? root.key);
|
|
69
|
-
const pickerI18n =
|
|
69
|
+
const pickerI18n = useAtomValueRaw(pickerRoot.i18n);
|
|
70
70
|
const initialLocale = normalizePickerLocale(
|
|
71
71
|
location.locale ?? options.selectedLocale ?? page.locale,
|
|
72
72
|
pickerI18n?.locales ?? []
|
|
@@ -93,9 +93,9 @@ function ImagePickerModalContent({ label, options }) {
|
|
|
93
93
|
});
|
|
94
94
|
return { explorer: explorer2, tree: tree2 };
|
|
95
95
|
}, [explorerIdentity]);
|
|
96
|
-
const explorerPage =
|
|
96
|
+
const explorerPage = useAtomValueRaw(explorer.page);
|
|
97
97
|
const onConfirm = useSetAtom(explorer.onConfirm);
|
|
98
|
-
const selection =
|
|
98
|
+
const selection = useAtomValueRaw(explorer.selection);
|
|
99
99
|
const selectedItems = selection === "all" ? 0 : selection.size;
|
|
100
100
|
if (!explorerPage)
|
|
101
101
|
return /* @__PURE__ */ jsx(DashboardModalDialog, { "aria-label": label, variant: "explorer", isLoading: true });
|