alinea 2.0.0-preview.0 → 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.
Files changed (237) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/LICENSES.md +134 -80
  3. package/dist/adapter/next/DevRemote.d.ts +3 -0
  4. package/dist/adapter/next/DevRemote.js +37 -0
  5. package/dist/adapter/next/ForwardCredentials.d.ts +1 -0
  6. package/dist/adapter/next/ForwardCredentials.js +17 -0
  7. package/dist/adapter/next/cms.js +86 -38
  8. package/dist/adapter/next/context.d.ts +1 -1
  9. package/dist/adapter/next/context.js +11 -3
  10. package/dist/adapter/next/handler.d.ts +2 -0
  11. package/dist/adapter/next/handler.js +23 -16
  12. package/dist/adapter/next/with-alinea.js +18 -16
  13. package/dist/backend/Handler.d.ts +14 -13
  14. package/dist/backend/Handler.js +70 -36
  15. package/dist/backend/resolver/ParsePreview.d.ts +8 -4
  16. package/dist/backend/resolver/ParsePreview.js +40 -43
  17. package/dist/backend/router/Router.d.ts +1 -0
  18. package/dist/backend/router/Router.js +21 -15
  19. package/dist/bundled.d.ts +369 -99
  20. package/dist/chunks/chunk-6UT4N4CO.js +919 -0
  21. package/dist/chunks/{chunk-LUBOGJCG.js → chunk-6V4TAD2N.js} +1 -1
  22. package/dist/chunks/{chunk-TL7ZW6BX.js → chunk-A3XXZBOQ.js} +2535 -2999
  23. package/dist/chunks/chunk-AC5ATYI3.js +1434 -0
  24. package/dist/chunks/{chunk-7ORQ7BYK.js → chunk-KMLLLZ6X.js} +202 -269
  25. package/dist/chunks/{chunk-IWN3T3FL.js → chunk-O7XWTMCB.js} +1 -1
  26. package/dist/chunks/{chunk-53DZYORR.js → chunk-PAYSVIYI.js} +76 -176
  27. package/dist/chunks/{chunk-YK3OSMDM.js → chunk-S4AU6SRS.js} +188 -158
  28. package/dist/chunks/{chunk-EQ3TDHYD.js → chunk-UVOEM4AH.js} +6 -3
  29. package/dist/chunks/{chunk-I7X64JTZ.js → chunk-VXZM6V4P.js} +4 -4
  30. package/dist/cli/Generate.js +3 -13
  31. package/dist/cli/Serve.js +7 -3
  32. package/dist/cli/bin.js +8 -5
  33. package/dist/cli/generate/CompileConfig.js +3 -2
  34. package/dist/cli/generate/CopyStaticFiles.js +2 -3
  35. package/dist/cli/generate/DevDB.d.ts +1 -1
  36. package/dist/cli/generate/DevDB.js +3 -5
  37. package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
  38. package/dist/cli/serve/CreateLocalServer.js +3 -2
  39. package/dist/cli/serve/DevServer.d.ts +3 -2
  40. package/dist/cli/serve/DevServer.js +60 -3
  41. package/dist/cli/serve/ServeContext.d.ts +1 -0
  42. package/dist/cli/serve/StartServer.d.ts +1 -0
  43. package/dist/cli/serve/StartServer.js +6 -1
  44. package/dist/cli/util/EnsureLibs.js +2 -2
  45. package/dist/cli/util/EnsureNode.js +2 -2
  46. package/dist/cloud/CloudRemote.d.ts +2 -1
  47. package/dist/cloud/CloudRemote.js +3 -2
  48. package/dist/components/Breadcrumbs.js +8 -8
  49. package/dist/components/Button.js +6 -6
  50. package/dist/components/Calendar.js +11 -11
  51. package/dist/components/Checkbox.js +7 -7
  52. package/dist/components/CheckboxGroup.js +6 -6
  53. package/dist/components/ColorSwatch.js +6 -6
  54. package/dist/components/ColorSwatchPicker.js +6 -6
  55. package/dist/components/ComboBox.js +17 -17
  56. package/dist/components/DateField.js +9 -9
  57. package/dist/components/DatePicker.js +10 -10
  58. package/dist/components/DateRangePicker.js +14 -14
  59. package/dist/components/Dialog.js +6 -6
  60. package/dist/components/Disclosure.js +13 -13
  61. package/dist/components/DropZone.js +6 -6
  62. package/dist/components/Label.js +16 -16
  63. package/dist/components/Link.js +6 -6
  64. package/dist/components/List.js +34 -34
  65. package/dist/components/Menu.js +10 -10
  66. package/dist/components/Modal.js +8 -8
  67. package/dist/components/MultipleSelect.js +33 -33
  68. package/dist/components/NumberField.d.ts +2 -1
  69. package/dist/components/NumberField.js +21 -11
  70. package/dist/components/Popover.js +6 -6
  71. package/dist/components/ProgressCircle.js +10 -10
  72. package/dist/components/RadioGroup.js +6 -6
  73. package/dist/components/SearchField.js +11 -11
  74. package/dist/components/Select.js +13 -13
  75. package/dist/components/Surface.js +3 -3
  76. package/dist/components/Switch.js +6 -6
  77. package/dist/components/Table.js +13 -13
  78. package/dist/components/Tabs.js +8 -8
  79. package/dist/components/TagGroup.js +7 -7
  80. package/dist/components/TextField.js +10 -10
  81. package/dist/components/TimeField.js +6 -6
  82. package/dist/components/Toggle.js +6 -6
  83. package/dist/components/Toolbar.js +7 -7
  84. package/dist/components/Tooltip.js +10 -10
  85. package/dist/components/Tree.js +9 -9
  86. package/dist/core/BlobTransport.d.ts +5 -0
  87. package/dist/core/BlobTransport.js +79 -0
  88. package/dist/core/Client.d.ts +2 -1
  89. package/dist/core/Client.js +17 -12
  90. package/dist/core/Config.d.ts +4 -0
  91. package/dist/core/Config.js +6 -0
  92. package/dist/core/Connection.d.ts +4 -3
  93. package/dist/core/Connection.js +7 -0
  94. package/dist/core/Graph.d.ts +3 -4
  95. package/dist/core/ListRow.d.ts +2 -0
  96. package/dist/core/OrderBy.d.ts +7 -3
  97. package/dist/core/TextDoc.d.ts +11 -0
  98. package/dist/core/Trace.d.ts +8 -0
  99. package/dist/core/Trace.js +32 -0
  100. package/dist/core/Type.d.ts +7 -1
  101. package/dist/core/db/CommitRequest.d.ts +0 -3
  102. package/dist/core/db/CommitRequest.js +0 -9
  103. package/dist/core/db/EntryDB.js +1 -1
  104. package/dist/core/db/EntryIndex.d.ts +12 -2
  105. package/dist/core/db/EntryIndex.js +131 -22
  106. package/dist/core/db/EntryResolver.js +104 -29
  107. package/dist/core/db/EntryTransaction.d.ts +1 -2
  108. package/dist/core/db/EntryTransaction.js +29 -22
  109. package/dist/core/db/LocalDB.d.ts +5 -5
  110. package/dist/core/db/LocalDB.js +27 -12
  111. package/dist/core/field/RichTextField.d.ts +30 -3
  112. package/dist/core/field/RichTextField.js +124 -56
  113. package/dist/core/media/MediaAltField.d.ts +1 -0
  114. package/dist/core/media/MediaAltField.js +9 -1
  115. package/dist/core/media/MediaLocation.d.ts +5 -2
  116. package/dist/core/media/MediaLocation.js +6 -7
  117. package/dist/core/media/MediaTypes.js +11 -0
  118. package/dist/core/source/CombinedSource.d.ts +2 -2
  119. package/dist/core/source/CombinedSource.js +6 -3
  120. package/dist/core/source/FSSource.d.ts +4 -3
  121. package/dist/core/source/FSSource.js +59 -27
  122. package/dist/core/source/GithubSource.d.ts +2 -2
  123. package/dist/core/source/GithubSource.js +21 -9
  124. package/dist/core/source/IndexedDBSource.d.ts +2 -2
  125. package/dist/core/source/IndexedDBSource.js +3 -1
  126. package/dist/core/source/MemorySource.d.ts +2 -2
  127. package/dist/core/source/MemorySource.js +3 -1
  128. package/dist/core/source/OverlaySource.d.ts +12 -0
  129. package/dist/core/source/OverlaySource.js +50 -0
  130. package/dist/core/source/Source.d.ts +5 -2
  131. package/dist/core/source/Source.js +3 -3
  132. package/dist/core/util/Async.d.ts +8 -2
  133. package/dist/core/util/Async.js +67 -0
  134. package/dist/core/util/EntryFilenames.d.ts +2 -2
  135. package/dist/core/util/EntryFilenames.js +3 -3
  136. package/dist/dashboard/App.css +158 -0
  137. package/dist/dashboard/App.js +2 -2
  138. package/dist/dashboard/app/AccessDenied.js +3 -3
  139. package/dist/dashboard/app/ActivityStatus.js +15 -15
  140. package/dist/dashboard/app/AppShell.js +1 -1
  141. package/dist/dashboard/app/AuthView.js +11 -11
  142. package/dist/dashboard/app/CompactField.js +10 -10
  143. package/dist/dashboard/app/DashboardErrorBoundary.js +5 -5
  144. package/dist/dashboard/app/DashboardLayout.js +22 -19
  145. package/dist/dashboard/app/EntryHeader.js +12 -12
  146. package/dist/dashboard/app/EntryReferences.js +9 -9
  147. package/dist/dashboard/app/EntrySidebar.d.ts +1 -1
  148. package/dist/dashboard/app/EntrySidebar.js +17 -16
  149. package/dist/dashboard/app/EntrySidebarPreview.d.ts +1 -1
  150. package/dist/dashboard/app/EntrySidebarPreview.js +19 -14
  151. package/dist/dashboard/app/EntryTranslationBanner.js +7 -7
  152. package/dist/dashboard/app/Explorer.js +51 -43
  153. package/dist/dashboard/app/ExplorerCards.js +34 -34
  154. package/dist/dashboard/app/ExplorerFileCard.js +18 -18
  155. package/dist/dashboard/app/ExplorerList.js +13 -13
  156. package/dist/dashboard/app/ExplorerModal.js +3 -3
  157. package/dist/dashboard/app/ExplorerTable.js +76 -61
  158. package/dist/dashboard/app/ExternalLinkPicker.js +15 -4
  159. package/dist/dashboard/app/LinkPicker.js +8 -8
  160. package/dist/dashboard/app/LocaleMenu.js +12 -12
  161. package/dist/dashboard/app/SidebarLayout.d.ts +8 -0
  162. package/dist/dashboard/app/SidebarLayout.js +1169 -0
  163. package/dist/dashboard/app/SidebarTree.js +46 -46
  164. package/dist/dashboard/app/WorkspaceMenu.js +17 -17
  165. package/dist/dashboard/app/WorkspaceRoots.js +23 -23
  166. package/dist/dashboard/app/editor/FileEditor.d.ts +2 -1
  167. package/dist/dashboard/app/editor/FileEditor.js +41 -32
  168. package/dist/dashboard/app/editor/FilePreview.js +4 -4
  169. package/dist/dashboard/app/editor/MediaAltField.view.d.ts +1 -1
  170. package/dist/dashboard/app/editor/MediaAltField.view.js +6 -9
  171. package/dist/dashboard/app/modals/CreateEntry.js +4 -4
  172. package/dist/dashboard/app/pages/EntryPage.js +57 -31
  173. package/dist/dashboard/app/pages/UsersPage.js +33 -33
  174. package/dist/dashboard/app/ui/DashboardModal.js +23 -23
  175. package/dist/dashboard/app/ui/Rail.js +3 -3
  176. package/dist/dashboard/app/ui/Sidebar.js +2 -2
  177. package/dist/dashboard/atoms/auth.js +2 -0
  178. package/dist/dashboard/atoms/dashboard.d.ts +9 -0
  179. package/dist/dashboard/atoms/dashboard.js +17 -0
  180. package/dist/dashboard/atoms/editor.d.ts +7 -1
  181. package/dist/dashboard/atoms/editor.js +4 -1
  182. package/dist/dashboard/atoms/entry.d.ts +48 -2
  183. package/dist/dashboard/atoms/entry.js +222 -17
  184. package/dist/dashboard/atoms/explorer.js +4 -9
  185. package/dist/dashboard/atoms/preview.d.ts +3 -0
  186. package/dist/dashboard/atoms/preview.js +18 -1
  187. package/dist/dashboard/atoms/root.d.ts +4 -1
  188. package/dist/dashboard/atoms/root.js +96 -157
  189. package/dist/dashboard/hooks.d.ts +4 -2
  190. package/dist/dashboard/hooks.js +9 -5
  191. package/dist/dashboard/icons.d.ts +1 -0
  192. package/dist/dashboard/icons.js +10 -0
  193. package/dist/field/check/CheckField.view.js +2 -2
  194. package/dist/field/code/CodeField.view.js +12 -12
  195. package/dist/field/date/DateField.view.js +12 -2
  196. package/dist/field/link/FileLink.d.ts +2 -2
  197. package/dist/field/link/FileLink.js +5 -3
  198. package/dist/field/link/ImageLink.d.ts +1 -1
  199. package/dist/field/link/ImageLink.js +1 -1
  200. package/dist/field/link/Link.js +2 -2
  201. package/dist/field/link/LinkField.view.js +155 -128
  202. package/dist/field/list/ListField.view.js +22 -33
  203. package/dist/field/metadata/MetadataField.view.js +19 -19
  204. package/dist/field/number/NumberField.d.ts +2 -0
  205. package/dist/field/number/NumberField.view.js +4 -2
  206. package/dist/field/richtext/PickTextLink.d.ts +7 -0
  207. package/dist/field/richtext/PickTextLink.js +104 -2
  208. package/dist/field/richtext/ReferenceLink.d.ts +4 -1
  209. package/dist/field/richtext/ReferenceLink.js +18 -4
  210. package/dist/field/richtext/RichTextDocument.d.ts +7 -2
  211. package/dist/field/richtext/RichTextDocument.js +34 -5
  212. package/dist/field/richtext/RichTextExtensions.d.ts +3 -1
  213. package/dist/field/richtext/RichTextExtensions.js +2704 -7467
  214. package/dist/field/richtext/RichTextField.d.ts +4 -0
  215. package/dist/field/richtext/RichTextField.story.d.ts +4 -0
  216. package/dist/field/richtext/RichTextField.view.js +43 -20
  217. package/dist/field/richtext/RichTextInsertMenu.js +281 -495
  218. package/dist/field/richtext/RichTextToolbar.d.ts +5 -2
  219. package/dist/field/richtext/RichTextToolbar.js +38 -3
  220. package/dist/field/richtext/Toolbar.d.ts +19 -1
  221. package/dist/field/richtext/Toolbar.js +18 -13
  222. package/dist/field/richtext/extensions/Anchor.js +1 -1
  223. package/dist/field/richtext/extensions/Link.js +1 -1
  224. package/dist/field/richtext/extensions/Small.js +1 -1
  225. package/dist/field/select/SelectField.view.js +8 -6
  226. package/dist/index.css +227 -16
  227. package/dist/next.cjs +18 -16
  228. package/dist/next.d.ts +2 -1
  229. package/dist/next.edge.d.ts +2 -1
  230. package/dist/picker/entry/EntryPicker.js +9 -35
  231. package/dist/preview/PreviewPayload.js +35 -250
  232. package/dist/ui/RichText.d.ts +1 -0
  233. package/dist/ui/RichText.js +29 -2
  234. package/package.json +6 -3
  235. package/dist/cli/util/ExternalPlugin.d.ts +0 -2
  236. package/dist/cli/util/ExternalPlugin.js +0 -919
  237. package/dist/chunks/{chunk-JFROOUG6.js → chunk-NIVGVRDS.js} +17 -17
@@ -13,6 +13,7 @@ import { DashboardScope } from "../hooks.js";
13
13
  import { IcRoundAdd } from "../icons.js";
14
14
  import { AppShell, AppShellContent, AppShellInner } from "./AppShell.js";
15
15
  import { SidebarTree } from "./SidebarTree.js";
16
+ import { SidebarLayout } from "./SidebarLayout.js";
16
17
  import { WorkspaceMenu } from "./WorkspaceMenu.js";
17
18
  import { WorkspaceRoots } from "./WorkspaceRoots.js";
18
19
  import { CreateEntry } from "./modals/CreateEntry.js";
@@ -24,9 +25,7 @@ var DashboardLayout_default = {
24
25
  "DashboardLayout-create": "alinea-DashboardLayout-create",
25
26
  "DashboardLayoutCreate": "alinea-DashboardLayout-create",
26
27
  "is-toolbar": "alinea-is-toolbar",
27
- "isToolbar": "alinea-is-toolbar",
28
- "DashboardLayout-sidebar": "alinea-DashboardLayout-sidebar",
29
- "DashboardLayoutSidebar": "alinea-DashboardLayout-sidebar"
28
+ "isToolbar": "alinea-is-toolbar"
30
29
  };
31
30
 
32
31
  // src/dashboard/app/DashboardLayout.tsx
@@ -41,22 +40,26 @@ function DashboardLayout({
41
40
  }) {
42
41
  return /* @__PURE__ */ jsx(DashboardScope, { value: { page, root, workspace }, children: /* @__PURE__ */ jsx(AppShell, { children: /* @__PURE__ */ jsxs(AppShellInner, { children: [
43
42
  /* @__PURE__ */ jsx(WorkspaceRoots, { canManageMembers, page }),
44
- /* @__PURE__ */ jsxs(AppShellContent, { children: [
45
- /* @__PURE__ */ jsxs(Sidebar, { className: styles.DashboardLayout.sidebar(), children: [
46
- /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx(
47
- WorkspaceMenu,
48
- {
49
- canManageMembers,
50
- page,
51
- root,
52
- workspace
53
- }
54
- ) }),
55
- /* @__PURE__ */ jsx(SidebarTree, { page, root }),
56
- /* @__PURE__ */ jsx(SidebarCreateEntryButton, { root })
57
- ] }),
58
- children
59
- ] })
43
+ /* @__PURE__ */ jsx(AppShellContent, { children: /* @__PURE__ */ jsx(
44
+ SidebarLayout,
45
+ {
46
+ side: "left",
47
+ sidebar: /* @__PURE__ */ jsxs(Sidebar, { children: [
48
+ /* @__PURE__ */ jsx(SidebarHeader, { children: /* @__PURE__ */ jsx(
49
+ WorkspaceMenu,
50
+ {
51
+ canManageMembers,
52
+ page,
53
+ root,
54
+ workspace
55
+ }
56
+ ) }),
57
+ /* @__PURE__ */ jsx(SidebarTree, { page, root }),
58
+ /* @__PURE__ */ jsx(SidebarCreateEntryButton, { root })
59
+ ] }),
60
+ children
61
+ }
62
+ ) })
60
63
  ] }) }) });
61
64
  }
62
65
  function SidebarCreateEntryButton({ root }) {
@@ -41,23 +41,23 @@ import { EditorBackButton } from "./EditorBackButton.js";
41
41
 
42
42
  // src/dashboard/app/EntryHeader.module.css
43
43
  var EntryHeader_default = {
44
- "EntryHeader": "alinea-EntryHeader",
45
- "EntryHeader-actions": "alinea-EntryHeader-actions",
46
- "EntryHeaderActions": "alinea-EntryHeader-actions",
47
- "EntryHeader-sidebarToggle": "alinea-EntryHeader-sidebarToggle",
48
- "EntryHeaderSidebarToggle": "alinea-EntryHeader-sidebarToggle",
49
- "EntryHeader-type": "alinea-EntryHeader-type",
50
- "EntryHeaderType": "alinea-EntryHeader-type",
51
- "is-dirty": "alinea-is-dirty",
52
- "isDirty": "alinea-is-dirty",
53
44
  "EntryHeader-title": "alinea-EntryHeader-title",
54
45
  "EntryHeaderTitle": "alinea-EntryHeader-title",
55
46
  "EntryHeader-status": "alinea-EntryHeader-status",
56
47
  "EntryHeaderStatus": "alinea-EntryHeader-status",
57
- "EntryHeader-content": "alinea-EntryHeader-content",
58
- "EntryHeaderContent": "alinea-EntryHeader-content",
48
+ "is-dirty": "alinea-is-dirty",
49
+ "isDirty": "alinea-is-dirty",
50
+ "EntryHeader-actions": "alinea-EntryHeader-actions",
51
+ "EntryHeaderActions": "alinea-EntryHeader-actions",
52
+ "EntryHeader": "alinea-EntryHeader",
59
53
  "EntryHeader-main": "alinea-EntryHeader-main",
60
- "EntryHeaderMain": "alinea-EntryHeader-main"
54
+ "EntryHeaderMain": "alinea-EntryHeader-main",
55
+ "EntryHeader-type": "alinea-EntryHeader-type",
56
+ "EntryHeaderType": "alinea-EntryHeader-type",
57
+ "EntryHeader-sidebarToggle": "alinea-EntryHeader-sidebarToggle",
58
+ "EntryHeaderSidebarToggle": "alinea-EntryHeader-sidebarToggle",
59
+ "EntryHeader-content": "alinea-EntryHeader-content",
60
+ "EntryHeaderContent": "alinea-EntryHeader-content"
61
61
  };
62
62
 
63
63
  // src/dashboard/app/EntryHeader.tsx
@@ -26,21 +26,21 @@ import { IcRoundImage, IcRoundInsertDriveFile, IcRoundLink } from "../icons.js";
26
26
 
27
27
  // src/dashboard/app/EntryReferences.module.css
28
28
  var EntryReferences_default = {
29
- "EntryReferences-pending": "alinea-EntryReferences-pending",
30
- "EntryReferencesPending": "alinea-EntryReferences-pending",
31
- "EntryReferences-other": "alinea-EntryReferences-other",
32
- "EntryReferencesOther": "alinea-EntryReferences-other",
33
- "EntryReferences": "alinea-EntryReferences",
34
- "EntryReferences-list": "alinea-EntryReferences-list",
35
- "EntryReferencesList": "alinea-EntryReferences-list",
36
29
  "EntryReferences-loadingText": "alinea-EntryReferences-loadingText",
37
30
  "EntryReferencesLoadingText": "alinea-EntryReferences-loadingText",
38
31
  "EntryReferences-loading": "alinea-EntryReferences-loading",
39
32
  "EntryReferencesLoading": "alinea-EntryReferences-loading",
33
+ "EntryReferences": "alinea-EntryReferences",
34
+ "EntryReferences-pending": "alinea-EntryReferences-pending",
35
+ "EntryReferencesPending": "alinea-EntryReferences-pending",
36
+ "EntryReferences-trailing": "alinea-EntryReferences-trailing",
37
+ "EntryReferencesTrailing": "alinea-EntryReferences-trailing",
40
38
  "EntryReferences-pendingText": "alinea-EntryReferences-pendingText",
41
39
  "EntryReferencesPendingText": "alinea-EntryReferences-pendingText",
42
- "EntryReferences-trailing": "alinea-EntryReferences-trailing",
43
- "EntryReferencesTrailing": "alinea-EntryReferences-trailing"
40
+ "EntryReferences-other": "alinea-EntryReferences-other",
41
+ "EntryReferencesOther": "alinea-EntryReferences-other",
42
+ "EntryReferences-list": "alinea-EntryReferences-list",
43
+ "EntryReferencesList": "alinea-EntryReferences-list"
44
44
  };
45
45
 
46
46
  // src/dashboard/app/EntryReferences.tsx
@@ -10,7 +10,7 @@ export interface EntrySidebarProps {
10
10
  onOpenChange?: (isOpen: boolean) => void;
11
11
  }
12
12
  export type EntrySidebarTab = 'preview' | 'history' | 'references';
13
- export declare function entrySidebar(get: Getter, entry: EntryAtoms, localeData: EntryLocaleAtoms): Promise<EntrySidebarProps | undefined>;
13
+ export declare function entrySidebar(get: Getter, entry: EntryAtoms, localeData: EntryLocaleAtoms, isOpen?: boolean): Promise<EntrySidebarProps | undefined>;
14
14
  export declare function EntrySidebar({ entry, localeData, selectedTab, previousVersionsOpen, onOpenChange }: EntrySidebarProps): import("react").JSX.Element;
15
15
  export type EntrySidebarVersionStatus = EntryStatus | 'unpublished' | 'none';
16
16
  export interface EntrySidebarVersionRowProps {
@@ -47,28 +47,28 @@ import { EntryReferences } from "./EntryReferences.js";
47
47
 
48
48
  // src/dashboard/app/EntrySidebar.module.css
49
49
  var EntrySidebar_default = {
50
- "EntrySidebar-history": "alinea-EntrySidebar-history",
51
- "EntrySidebarHistory": "alinea-EntrySidebar-history",
52
- "EntrySidebar-referencesPanel": "alinea-EntrySidebar-referencesPanel",
53
- "EntrySidebarReferencesPanel": "alinea-EntrySidebar-referencesPanel",
50
+ "EntrySidebar-section": "alinea-EntrySidebar-section",
51
+ "EntrySidebarSection": "alinea-EntrySidebar-section",
52
+ "EntrySidebar-disclosure": "alinea-EntrySidebar-disclosure",
53
+ "EntrySidebarDisclosure": "alinea-EntrySidebar-disclosure",
54
54
  "EntrySidebar-disclosurePanel": "alinea-EntrySidebar-disclosurePanel",
55
55
  "EntrySidebarDisclosurePanel": "alinea-EntrySidebar-disclosurePanel",
56
+ "EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
57
+ "EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
56
58
  "EntrySidebar-header": "alinea-EntrySidebar-header",
57
59
  "EntrySidebarHeader": "alinea-EntrySidebar-header",
58
- "EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
59
- "EntrySidebarTabs": "alinea-EntrySidebar-tabs",
60
60
  "EntrySidebar-sectionTitle": "alinea-EntrySidebar-sectionTitle",
61
61
  "EntrySidebarSectionTitle": "alinea-EntrySidebar-sectionTitle",
62
- "EntrySidebar-previewPanel": "alinea-EntrySidebar-previewPanel",
63
- "EntrySidebarPreviewPanel": "alinea-EntrySidebar-previewPanel",
64
- "EntrySidebar-historyPanel": "alinea-EntrySidebar-historyPanel",
65
- "EntrySidebarHistoryPanel": "alinea-EntrySidebar-historyPanel",
62
+ "EntrySidebar-history": "alinea-EntrySidebar-history",
63
+ "EntrySidebarHistory": "alinea-EntrySidebar-history",
66
64
  "EntrySidebar-body": "alinea-EntrySidebar-body",
67
65
  "EntrySidebarBody": "alinea-EntrySidebar-body",
68
- "EntrySidebar-section": "alinea-EntrySidebar-section",
69
- "EntrySidebarSection": "alinea-EntrySidebar-section",
70
- "EntrySidebar-disclosure": "alinea-EntrySidebar-disclosure",
71
- "EntrySidebarDisclosure": "alinea-EntrySidebar-disclosure"
66
+ "EntrySidebar-referencesPanel": "alinea-EntrySidebar-referencesPanel",
67
+ "EntrySidebarReferencesPanel": "alinea-EntrySidebar-referencesPanel",
68
+ "EntrySidebar-tabs": "alinea-EntrySidebar-tabs",
69
+ "EntrySidebarTabs": "alinea-EntrySidebar-tabs",
70
+ "EntrySidebar-previewPanel": "alinea-EntrySidebar-previewPanel",
71
+ "EntrySidebarPreviewPanel": "alinea-EntrySidebar-previewPanel"
72
72
  };
73
73
 
74
74
  // src/dashboard/app/EntrySidebar.tsx
@@ -79,7 +79,7 @@ import { Sidebar, SidebarBody } from "./ui/Sidebar.js";
79
79
  import { jsx, jsxs } from "react/jsx-runtime";
80
80
  var styles = styler(EntrySidebar_default);
81
81
  var entrySidebarTabAtom = atom("preview");
82
- async function entrySidebar(get, entry, localeData) {
82
+ async function entrySidebar(get, entry, localeData, isOpen = true) {
83
83
  const typeName = get(entry.type);
84
84
  const type = get(typeAtoms(typeName));
85
85
  if (type.customView || get(localeData.untranslated)) return void 0;
@@ -87,10 +87,11 @@ async function entrySidebar(get, entry, localeData) {
87
87
  const requestedTab = get(entrySidebarTabAtom);
88
88
  const selectedTab = allowedTabs.includes(requestedTab) ? requestedTab : allowedTabs[0];
89
89
  const previousVersionsOpen = selectedTab === "history" ? get(entry.previousVersionsOpen) : false;
90
+ if (!isOpen) return { entry, localeData, selectedTab, previousVersionsOpen };
90
91
  switch (selectedTab) {
91
92
  case "preview": {
92
93
  const preview = get(entry.preview);
93
- if (preview === true) await get(localeData.previewUrlReady);
94
+ if (preview === true) void get(localeData.previewUrlReady);
94
95
  else if (preview) await get(localeData.previewEntryReady);
95
96
  break;
96
97
  }
@@ -5,6 +5,6 @@ export interface EntrySidebarPreviewProps {
5
5
  }
6
6
  export declare function EntrySidebarPreview({ entry, localeData }: EntrySidebarPreviewProps): import("react").JSX.Element;
7
7
  export interface EntrySidebarBrowserPreviewProps {
8
- localeData: Pick<EntryLocaleAtoms, 'previewUrl' | 'retryPreviewUrl'> & Partial<Pick<EntryLocaleAtoms, 'previewPayloadSignal' | 'updatePreviewPayload'>>;
8
+ localeData: Pick<EntryLocaleAtoms, 'previewUrlState' | 'retryPreviewUrl'> & Partial<Pick<EntryLocaleAtoms, 'previewPayloadSignal' | 'updatePreviewPayload'>>;
9
9
  }
10
10
  export declare function EntrySidebarBrowserPreview({ localeData }: EntrySidebarBrowserPreviewProps): import("react").JSX.Element;
@@ -25,23 +25,23 @@ import {
25
25
 
26
26
  // src/dashboard/app/EntrySidebarPreview.module.css
27
27
  var EntrySidebarPreview_default = {
28
- "EntrySidebarPreview-iframe": "alinea-EntrySidebarPreview-iframe",
29
- "EntrySidebarPreviewIframe": "alinea-EntrySidebarPreview-iframe",
30
- "EntrySidebarPreview-browser": "alinea-EntrySidebarPreview-browser",
31
- "EntrySidebarPreviewBrowser": "alinea-EntrySidebarPreview-browser",
32
28
  "EntrySidebarPreview-component": "alinea-EntrySidebarPreview-component",
33
29
  "EntrySidebarPreviewComponent": "alinea-EntrySidebarPreview-component",
30
+ "EntrySidebarPreview-subheader": "alinea-EntrySidebarPreview-subheader",
31
+ "EntrySidebarPreviewSubheader": "alinea-EntrySidebarPreview-subheader",
32
+ "EntrySidebarPreview-browserMessage": "alinea-EntrySidebarPreview-browserMessage",
33
+ "EntrySidebarPreviewBrowserMessage": "alinea-EntrySidebarPreview-browserMessage",
34
+ "EntrySidebarPreview-iframe": "alinea-EntrySidebarPreview-iframe",
35
+ "EntrySidebarPreviewIframe": "alinea-EntrySidebarPreview-iframe",
34
36
  "EntrySidebarPreview-controls": "alinea-EntrySidebarPreview-controls",
35
37
  "EntrySidebarPreviewControls": "alinea-EntrySidebarPreview-controls",
38
+ "EntrySidebarPreview-browser": "alinea-EntrySidebarPreview-browser",
39
+ "EntrySidebarPreviewBrowser": "alinea-EntrySidebarPreview-browser",
36
40
  "EntrySidebarPreview-empty": "alinea-EntrySidebarPreview-empty",
37
41
  "EntrySidebarPreviewEmpty": "alinea-EntrySidebarPreview-empty",
38
- "EntrySidebarPreview-subheader": "alinea-EntrySidebarPreview-subheader",
39
- "EntrySidebarPreviewSubheader": "alinea-EntrySidebarPreview-subheader",
40
- "EntrySidebarPreview-loading": "alinea-EntrySidebarPreview-loading",
41
- "EntrySidebarPreviewLoading": "alinea-EntrySidebarPreview-loading",
42
42
  "EntrySidebarPreview": "alinea-EntrySidebarPreview",
43
- "EntrySidebarPreview-browserMessage": "alinea-EntrySidebarPreview-browserMessage",
44
- "EntrySidebarPreviewBrowserMessage": "alinea-EntrySidebarPreview-browserMessage"
43
+ "EntrySidebarPreview-loading": "alinea-EntrySidebarPreview-loading",
44
+ "EntrySidebarPreviewLoading": "alinea-EntrySidebarPreview-loading"
45
45
  };
46
46
 
47
47
  // src/dashboard/app/EntrySidebarPreview.tsx
@@ -134,7 +134,9 @@ function EntrySidebarBrowserPreviewHeader({
134
134
  function EntrySidebarBrowserPreview({
135
135
  localeData
136
136
  }) {
137
- const previewUrl = useAtomValue(localeData.previewUrl);
137
+ const [previewUrlPending, previewUrl] = useAtomValue(
138
+ localeData.previewUrlState
139
+ );
138
140
  const retryPreviewUrl = useSetAtom(localeData.retryPreviewUrl);
139
141
  const payloadSignalAtom = localeData.previewPayloadSignal;
140
142
  const payloadSignal = useAtomValue(
@@ -216,7 +218,10 @@ function EntrySidebarBrowserPreview({
216
218
  if (!previewUrl) return retryPreviewUrl();
217
219
  setLoading(true);
218
220
  if (hasPreviewListener.current) post(PreviewAction.Reload);
219
- else setFrameVersion((version) => version + 1);
221
+ else {
222
+ retryPreviewUrl();
223
+ setFrameVersion((version) => version + 1);
224
+ }
220
225
  }
221
226
  function openPreview() {
222
227
  if (!previewUrl || typeof window === "undefined") return;
@@ -236,7 +241,7 @@ function EntrySidebarBrowserPreview({
236
241
  }
237
242
  ),
238
243
  /* @__PURE__ */ jsxs("div", { className: styles.EntrySidebarPreview.browser(), children: [
239
- previewUrl && loading && /* @__PURE__ */ jsx("div", { className: styles.EntrySidebarPreview.loading(), children: /* @__PURE__ */ jsx(ProgressCircle, { isIndeterminate: true, "aria-label": "Loading preview" }) }),
244
+ (previewUrl && loading || !previewUrl && previewUrlPending) && /* @__PURE__ */ jsx("div", { className: styles.EntrySidebarPreview.loading(), children: /* @__PURE__ */ jsx(ProgressCircle, { isIndeterminate: true, "aria-label": "Loading preview" }) }),
240
245
  previewUrl ? /* @__PURE__ */ jsx(
241
246
  "iframe",
242
247
  {
@@ -248,7 +253,7 @@ function EntrySidebarBrowserPreview({
248
253
  onLoad: () => setLoading(false)
249
254
  },
250
255
  `${previewUrl}:${frameVersion}`
251
- ) : /* @__PURE__ */ jsx("p", { className: styles.EntrySidebarPreview.browserMessage(), children: "Preview is currently unavailable." })
256
+ ) : previewUrlPending ? null : /* @__PURE__ */ jsx("p", { className: styles.EntrySidebarPreview.browserMessage(), children: "Preview is currently unavailable." })
252
257
  ] })
253
258
  ] });
254
259
  }
@@ -9,19 +9,19 @@ import { memo } from "react";
9
9
 
10
10
  // src/dashboard/app/EntryTranslationBanner.module.css
11
11
  var EntryTranslationBanner_default = {
12
- "EntryTranslationBanner-message": "alinea-EntryTranslationBanner-message",
13
- "EntryTranslationBannerMessage": "alinea-EntryTranslationBanner-message",
12
+ "EntryTranslationBanner-actions": "alinea-EntryTranslationBanner-actions",
13
+ "EntryTranslationBannerActions": "alinea-EntryTranslationBanner-actions",
14
+ "EntryTranslationBanner": "alinea-EntryTranslationBanner",
15
+ "EntryTranslationBanner-label": "alinea-EntryTranslationBanner-label",
16
+ "EntryTranslationBannerLabel": "alinea-EntryTranslationBanner-label",
14
17
  "EntryTranslationBanner-select": "alinea-EntryTranslationBanner-select",
15
18
  "EntryTranslationBannerSelect": "alinea-EntryTranslationBanner-select",
16
19
  "EntryTranslationBanner-body": "alinea-EntryTranslationBanner-body",
17
20
  "EntryTranslationBannerBody": "alinea-EntryTranslationBanner-body",
18
21
  "EntryTranslationBanner-title": "alinea-EntryTranslationBanner-title",
19
22
  "EntryTranslationBannerTitle": "alinea-EntryTranslationBanner-title",
20
- "EntryTranslationBanner-label": "alinea-EntryTranslationBanner-label",
21
- "EntryTranslationBannerLabel": "alinea-EntryTranslationBanner-label",
22
- "EntryTranslationBanner": "alinea-EntryTranslationBanner",
23
- "EntryTranslationBanner-actions": "alinea-EntryTranslationBanner-actions",
24
- "EntryTranslationBannerActions": "alinea-EntryTranslationBanner-actions"
23
+ "EntryTranslationBanner-message": "alinea-EntryTranslationBanner-message",
24
+ "EntryTranslationBannerMessage": "alinea-EntryTranslationBanner-message"
25
25
  };
26
26
 
27
27
  // src/dashboard/app/EntryTranslationBanner.tsx
@@ -7,14 +7,14 @@ import "../../chunks/chunk-Y7XOMJOC.js";
7
7
  import {
8
8
  $b325d7bd7e74496a$export$6fb4a10d2c950550,
9
9
  $f2ff30fde7b014be$export$2e1e1122cf0cba88
10
- } from "../../chunks/chunk-I7X64JTZ.js";
11
- import "../../chunks/chunk-IWN3T3FL.js";
10
+ } from "../../chunks/chunk-VXZM6V4P.js";
11
+ import "../../chunks/chunk-O7XWTMCB.js";
12
12
  import "../../chunks/chunk-RKDPDEF7.js";
13
- import "../../chunks/chunk-JFROOUG6.js";
14
- import "../../chunks/chunk-SJBZFMQ2.js";
13
+ import "../../chunks/chunk-NIVGVRDS.js";
15
14
  import "../../chunks/chunk-IYAQC63Y.js";
16
- import "../../chunks/chunk-LUBOGJCG.js";
17
- import "../../chunks/chunk-YK3OSMDM.js";
15
+ import "../../chunks/chunk-SJBZFMQ2.js";
16
+ import "../../chunks/chunk-6V4TAD2N.js";
17
+ import "../../chunks/chunk-S4AU6SRS.js";
18
18
  import "../../chunks/chunk-AC4U3IMS.js";
19
19
  import {
20
20
  dist_default
@@ -60,65 +60,65 @@ import { EditorBackButton } from "./EditorBackButton.js";
60
60
 
61
61
  // src/dashboard/app/Explorer.module.css
62
62
  var Explorer_default = {
63
+ "ExplorerHeader": "alinea-ExplorerHeader",
64
+ "Explorer-searchSlot": "alinea-Explorer-searchSlot",
65
+ "ExplorerSearchSlot": "alinea-Explorer-searchSlot",
66
+ "Sorting-button": "alinea-Sorting-button",
67
+ "SortingButton": "alinea-Sorting-button",
68
+ "Explorer-toolbar": "alinea-Explorer-toolbar",
69
+ "ExplorerToolbar": "alinea-Explorer-toolbar",
63
70
  "Explorer-locationBreadcrumbs": "alinea-Explorer-locationBreadcrumbs",
64
71
  "ExplorerLocationBreadcrumbs": "alinea-Explorer-locationBreadcrumbs",
65
- "Explorer-locationBreadcrumbs-separator": "alinea-Explorer-locationBreadcrumbs-separator",
66
- "ExplorerLocationBreadcrumbsSeparator": "alinea-Explorer-locationBreadcrumbs-separator",
67
- "Explorer-resultMode": "alinea-Explorer-resultMode",
68
- "ExplorerResultMode": "alinea-Explorer-resultMode",
69
- "Explorer-locationBreadcrumbs-parentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
70
- "ExplorerLocationBreadcrumbsParentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
71
72
  "Explorer-locationBreadcrumbs-item": "alinea-Explorer-locationBreadcrumbs-item",
72
73
  "ExplorerLocationBreadcrumbsItem": "alinea-Explorer-locationBreadcrumbs-item",
74
+ "ExplorerHeader-title": "alinea-ExplorerHeader-title",
75
+ "ExplorerHeaderTitle": "alinea-ExplorerHeader-title",
76
+ "Explorer-locationBreadcrumbs-localeValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
77
+ "ExplorerLocationBreadcrumbsLocaleValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
78
+ "Explorer-locationBreadcrumbs-separator": "alinea-Explorer-locationBreadcrumbs-separator",
79
+ "ExplorerLocationBreadcrumbsSeparator": "alinea-Explorer-locationBreadcrumbs-separator",
80
+ "ExplorerHeader-content": "alinea-ExplorerHeader-content",
81
+ "ExplorerHeaderContent": "alinea-ExplorerHeader-content",
82
+ "ExplorerHeader-primary": "alinea-ExplorerHeader-primary",
83
+ "ExplorerHeaderPrimary": "alinea-ExplorerHeader-primary",
73
84
  "ExplorerHeader-location": "alinea-ExplorerHeader-location",
74
85
  "ExplorerHeaderLocation": "alinea-ExplorerHeader-location",
86
+ "is-navigation": "alinea-is-navigation",
87
+ "isNavigation": "alinea-is-navigation",
88
+ "Explorer-toolbar-tools": "alinea-Explorer-toolbar-tools",
89
+ "ExplorerToolbarTools": "alinea-Explorer-toolbar-tools",
75
90
  "Explorer-toolbar-mediaActions": "alinea-Explorer-toolbar-mediaActions",
76
91
  "ExplorerToolbarMediaActions": "alinea-Explorer-toolbar-mediaActions",
77
- "Explorer-searchSlot": "alinea-Explorer-searchSlot",
78
- "ExplorerSearchSlot": "alinea-Explorer-searchSlot",
79
- "ExplorerHeader-primary": "alinea-ExplorerHeader-primary",
80
- "ExplorerHeaderPrimary": "alinea-ExplorerHeader-primary",
81
- "Explorer-locationBreadcrumbs-root-locale": "alinea-Explorer-locationBreadcrumbs-root-locale",
82
- "ExplorerLocationBreadcrumbsRootLocale": "alinea-Explorer-locationBreadcrumbs-root-locale",
83
- "Explorer-actions": "alinea-Explorer-actions",
84
- "ExplorerActions": "alinea-Explorer-actions",
85
92
  "Explorer-breadcrumbs": "alinea-Explorer-breadcrumbs",
86
93
  "ExplorerBreadcrumbs": "alinea-Explorer-breadcrumbs",
87
94
  "Popover": "alinea-Popover",
88
95
  "Popover-Label": "alinea-Popover-Label",
89
96
  "PopoverLabel": "alinea-Popover-Label",
97
+ "Explorer-locationBreadcrumbs-parentAction": "alinea-Explorer-locationBreadcrumbs-parentAction",
98
+ "ExplorerLocationBreadcrumbsParentAction": "alinea-Explorer-locationBreadcrumbs-parentAction",
99
+ "Explorer-locationBreadcrumbs-parentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
100
+ "ExplorerLocationBreadcrumbsParentValue": "alinea-Explorer-locationBreadcrumbs-parentValue",
90
101
  "Explorer-locationBreadcrumbs-value": "alinea-Explorer-locationBreadcrumbs-value",
91
102
  "ExplorerLocationBreadcrumbsValue": "alinea-Explorer-locationBreadcrumbs-value",
103
+ "Explorer-resultMode": "alinea-Explorer-resultMode",
104
+ "ExplorerResultMode": "alinea-Explorer-resultMode",
105
+ "Explorer-actions": "alinea-Explorer-actions",
106
+ "ExplorerActions": "alinea-Explorer-actions",
107
+ "Explorer-locationBreadcrumbs-current": "alinea-Explorer-locationBreadcrumbs-current",
108
+ "ExplorerLocationBreadcrumbsCurrent": "alinea-Explorer-locationBreadcrumbs-current",
92
109
  "Explorer-searchScope": "alinea-Explorer-searchScope",
93
110
  "ExplorerSearchScope": "alinea-Explorer-searchScope",
94
- "ExplorerHeader-content": "alinea-ExplorerHeader-content",
95
- "ExplorerHeaderContent": "alinea-ExplorerHeader-content",
96
- "Sorting-button": "alinea-Sorting-button",
97
- "SortingButton": "alinea-Sorting-button",
98
- "is-navigation": "alinea-is-navigation",
99
- "isNavigation": "alinea-is-navigation",
100
- "Explorer-toolbar": "alinea-Explorer-toolbar",
101
- "ExplorerToolbar": "alinea-Explorer-toolbar",
102
111
  "Explorer-locationBreadcrumbs-root": "alinea-Explorer-locationBreadcrumbs-root",
103
112
  "ExplorerLocationBreadcrumbsRoot": "alinea-Explorer-locationBreadcrumbs-root",
104
- "Explorer-viewport": "alinea-Explorer-viewport",
105
- "ExplorerViewport": "alinea-Explorer-viewport",
113
+ "Explorer-locationBreadcrumbs-root-locale": "alinea-Explorer-locationBreadcrumbs-root-locale",
114
+ "ExplorerLocationBreadcrumbsRootLocale": "alinea-Explorer-locationBreadcrumbs-root-locale",
106
115
  "Explorer-search": "alinea-Explorer-search",
107
116
  "ExplorerSearch": "alinea-Explorer-search",
108
- "Explorer-locationBreadcrumbs-localeValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
109
- "ExplorerLocationBreadcrumbsLocaleValue": "alinea-Explorer-locationBreadcrumbs-localeValue",
117
+ "Explorer": "alinea-Explorer",
110
118
  "ExplorerHeader-main": "alinea-ExplorerHeader-main",
111
119
  "ExplorerHeaderMain": "alinea-ExplorerHeader-main",
112
- "ExplorerHeader-title": "alinea-ExplorerHeader-title",
113
- "ExplorerHeaderTitle": "alinea-ExplorerHeader-title",
114
- "ExplorerHeader": "alinea-ExplorerHeader",
115
- "Explorer": "alinea-Explorer",
116
- "Explorer-toolbar-tools": "alinea-Explorer-toolbar-tools",
117
- "ExplorerToolbarTools": "alinea-Explorer-toolbar-tools",
118
- "Explorer-locationBreadcrumbs-current": "alinea-Explorer-locationBreadcrumbs-current",
119
- "ExplorerLocationBreadcrumbsCurrent": "alinea-Explorer-locationBreadcrumbs-current",
120
- "Explorer-locationBreadcrumbs-parentAction": "alinea-Explorer-locationBreadcrumbs-parentAction",
121
- "ExplorerLocationBreadcrumbsParentAction": "alinea-Explorer-locationBreadcrumbs-parentAction"
120
+ "Explorer-viewport": "alinea-Explorer-viewport",
121
+ "ExplorerViewport": "alinea-Explorer-viewport"
122
122
  };
123
123
 
124
124
  // src/dashboard/app/Explorer.tsx
@@ -602,7 +602,15 @@ function ExplorerControlsButton({
602
602
  toggleFilter
603
603
  }) {
604
604
  return /* @__PURE__ */ jsxs($f2ff30fde7b014be$export$2e1e1122cf0cba88, { children: [
605
- /* @__PURE__ */ jsx(Button, { size: "icon-nav", appearance: "outline", icon: IcRoundFilterList }),
605
+ /* @__PURE__ */ jsx(
606
+ Button,
607
+ {
608
+ "aria-label": "Filter and sort",
609
+ appearance: selectedFilter ? "active" : "outline",
610
+ icon: IcRoundFilterList,
611
+ size: "icon-nav"
612
+ }
613
+ ),
606
614
  /* @__PURE__ */ jsx(Popover, { placement: "bottom left", children: /* @__PURE__ */ jsx(
607
615
  ExplorerControlsPopover,
608
616
  {
@@ -13,17 +13,17 @@ import {
13
13
  $1f7649abe3ae3599$export$a7bfbda1311ca015,
14
14
  $1f7649abe3ae3599$export$e96fc9a8407faa6b,
15
15
  $7705c033048f6da7$export$353f5b6fc5456de1
16
- } from "../../chunks/chunk-I7X64JTZ.js";
17
- import "../../chunks/chunk-IWN3T3FL.js";
16
+ } from "../../chunks/chunk-VXZM6V4P.js";
17
+ import "../../chunks/chunk-O7XWTMCB.js";
18
18
  import "../../chunks/chunk-RKDPDEF7.js";
19
19
  import {
20
20
  $cc8e610d5d6e3fe4$export$cb6da89c6af1a8ec,
21
21
  $fc34f5dff94ff74a$export$7d2b12578154a735
22
- } from "../../chunks/chunk-JFROOUG6.js";
23
- import "../../chunks/chunk-SJBZFMQ2.js";
22
+ } from "../../chunks/chunk-NIVGVRDS.js";
24
23
  import "../../chunks/chunk-IYAQC63Y.js";
25
- import "../../chunks/chunk-LUBOGJCG.js";
26
- import "../../chunks/chunk-YK3OSMDM.js";
24
+ import "../../chunks/chunk-SJBZFMQ2.js";
25
+ import "../../chunks/chunk-6V4TAD2N.js";
26
+ import "../../chunks/chunk-S4AU6SRS.js";
27
27
  import "../../chunks/chunk-AC4U3IMS.js";
28
28
  import {
29
29
  dist_default
@@ -43,51 +43,51 @@ import { configAtom } from "../atoms/core.js";
43
43
 
44
44
  // src/dashboard/app/ExplorerCards.module.css
45
45
  var ExplorerCards_default = {
46
- "ExplorerCards-item-card": "alinea-ExplorerCards-item-card",
47
- "ExplorerCardsItemCard": "alinea-ExplorerCards-item-card",
48
- "ExplorerCards-item": "alinea-ExplorerCards-item",
49
- "ExplorerCardsItem": "alinea-ExplorerCards-item",
50
- "is-loading": "alinea-is-loading",
51
- "isLoading": "alinea-is-loading",
52
- "ExplorerCards-entry-iconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
53
- "ExplorerCardsEntryIconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
54
- "ExplorerCards-viewport": "alinea-ExplorerCards-viewport",
55
- "ExplorerCardsViewport": "alinea-ExplorerCards-viewport",
46
+ "ExplorerCards-entry-body": "alinea-ExplorerCards-entry-body",
47
+ "ExplorerCardsEntryBody": "alinea-ExplorerCards-entry-body",
56
48
  "ExplorerCards-surface": "alinea-ExplorerCards-surface",
57
49
  "ExplorerCardsSurface": "alinea-ExplorerCards-surface",
58
- "ExplorerCards-entry-top": "alinea-ExplorerCards-entry-top",
59
- "ExplorerCardsEntryTop": "alinea-ExplorerCards-entry-top",
60
50
  "ExplorerCards-entry-icon": "alinea-ExplorerCards-entry-icon",
61
51
  "ExplorerCardsEntryIcon": "alinea-ExplorerCards-entry-icon",
62
52
  "is-breadcrumbs": "alinea-is-breadcrumbs",
63
53
  "isBreadcrumbs": "alinea-is-breadcrumbs",
64
- "ExplorerCards-entry-meta": "alinea-ExplorerCards-entry-meta",
65
- "ExplorerCardsEntryMeta": "alinea-ExplorerCards-entry-meta",
66
54
  "ExplorerCards-entry-label": "alinea-ExplorerCards-entry-label",
67
55
  "ExplorerCardsEntryLabel": "alinea-ExplorerCards-entry-label",
56
+ "ExplorerCards-entry-body-inner": "alinea-ExplorerCards-entry-body-inner",
57
+ "ExplorerCardsEntryBodyInner": "alinea-ExplorerCards-entry-body-inner",
58
+ "ExplorerCards-viewport": "alinea-ExplorerCards-viewport",
59
+ "ExplorerCardsViewport": "alinea-ExplorerCards-viewport",
60
+ "ExplorerCards-parents-separator": "alinea-ExplorerCards-parents-separator",
61
+ "ExplorerCardsParentsSeparator": "alinea-ExplorerCards-parents-separator",
68
62
  "ExplorerCards-skeleton-pulse": "alinea-ExplorerCards-skeleton-pulse",
69
63
  "ExplorerCardsSkeletonPulse": "alinea-ExplorerCards-skeleton-pulse",
70
- "ExplorerCards-item-checkbox": "alinea-ExplorerCards-item-checkbox",
71
- "ExplorerCardsItemCheckbox": "alinea-ExplorerCards-item-checkbox",
72
- "is-file": "alinea-is-file",
73
- "isFile": "alinea-is-file",
74
64
  "is-wide": "alinea-is-wide",
75
65
  "isWide": "alinea-is-wide",
76
- "ExplorerCards-entry-skeleton": "alinea-ExplorerCards-entry-skeleton",
77
- "ExplorerCardsEntrySkeleton": "alinea-ExplorerCards-entry-skeleton",
78
- "ExplorerCards": "alinea-ExplorerCards",
79
66
  "ExplorerCards-item-drag-handle": "alinea-ExplorerCards-item-drag-handle",
80
67
  "ExplorerCardsItemDragHandle": "alinea-ExplorerCards-item-drag-handle",
81
- "ExplorerCards-entry-body": "alinea-ExplorerCards-entry-body",
82
- "ExplorerCardsEntryBody": "alinea-ExplorerCards-entry-body",
83
- "ExplorerCards-parents-separator": "alinea-ExplorerCards-parents-separator",
84
- "ExplorerCardsParentsSeparator": "alinea-ExplorerCards-parents-separator",
68
+ "ExplorerCards-entry-top": "alinea-ExplorerCards-entry-top",
69
+ "ExplorerCardsEntryTop": "alinea-ExplorerCards-entry-top",
70
+ "ExplorerCards-item-card": "alinea-ExplorerCards-item-card",
71
+ "ExplorerCardsItemCard": "alinea-ExplorerCards-item-card",
85
72
  "ExplorerCards-entry": "alinea-ExplorerCards-entry",
86
73
  "ExplorerCardsEntry": "alinea-ExplorerCards-entry",
87
- "ExplorerCards-entry-body-inner": "alinea-ExplorerCards-entry-body-inner",
88
- "ExplorerCardsEntryBodyInner": "alinea-ExplorerCards-entry-body-inner",
74
+ "ExplorerCards-entry-meta": "alinea-ExplorerCards-entry-meta",
75
+ "ExplorerCardsEntryMeta": "alinea-ExplorerCards-entry-meta",
76
+ "ExplorerCards-item": "alinea-ExplorerCards-item",
77
+ "ExplorerCardsItem": "alinea-ExplorerCards-item",
78
+ "ExplorerCards": "alinea-ExplorerCards",
89
79
  "ExplorerCards-parents": "alinea-ExplorerCards-parents",
90
- "ExplorerCardsParents": "alinea-ExplorerCards-parents"
80
+ "ExplorerCardsParents": "alinea-ExplorerCards-parents",
81
+ "is-file": "alinea-is-file",
82
+ "isFile": "alinea-is-file",
83
+ "is-loading": "alinea-is-loading",
84
+ "isLoading": "alinea-is-loading",
85
+ "ExplorerCards-entry-iconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
86
+ "ExplorerCardsEntryIconSkeleton": "alinea-ExplorerCards-entry-iconSkeleton",
87
+ "ExplorerCards-item-checkbox": "alinea-ExplorerCards-item-checkbox",
88
+ "ExplorerCardsItemCheckbox": "alinea-ExplorerCards-item-checkbox",
89
+ "ExplorerCards-entry-skeleton": "alinea-ExplorerCards-entry-skeleton",
90
+ "ExplorerCardsEntrySkeleton": "alinea-ExplorerCards-entry-skeleton"
91
91
  };
92
92
 
93
93
  // src/dashboard/app/ExplorerCards.tsx
@@ -13,34 +13,34 @@ import { IcRoundInsertDriveFile } from "../icons.js";
13
13
 
14
14
  // src/dashboard/app/ExplorerFileCard.module.css
15
15
  var ExplorerFileCard_default = {
16
- "ExplorerFileCard-label": "alinea-ExplorerFileCard-label",
17
- "ExplorerFileCardLabel": "alinea-ExplorerFileCard-label",
18
- "ExplorerFileCard-top": "alinea-ExplorerFileCard-top",
19
- "ExplorerFileCardTop": "alinea-ExplorerFileCard-top",
20
16
  "ExplorerFileCard-preview": "alinea-ExplorerFileCard-preview",
21
17
  "ExplorerFileCardPreview": "alinea-ExplorerFileCard-preview",
22
18
  "is-breadcrumbs": "alinea-is-breadcrumbs",
23
19
  "isBreadcrumbs": "alinea-is-breadcrumbs",
24
- "ExplorerFileCard-preview-placeholder-icon": "alinea-ExplorerFileCard-preview-placeholder-icon",
25
- "ExplorerFileCardPreviewPlaceholderIcon": "alinea-ExplorerFileCard-preview-placeholder-icon",
26
- "is-row": "alinea-is-row",
27
- "isRow": "alinea-is-row",
20
+ "ExplorerFileCard-body-inner": "alinea-ExplorerFileCard-body-inner",
21
+ "ExplorerFileCardBodyInner": "alinea-ExplorerFileCard-body-inner",
22
+ "ExplorerFileCard-label": "alinea-ExplorerFileCard-label",
23
+ "ExplorerFileCardLabel": "alinea-ExplorerFileCard-label",
24
+ "ExplorerFileCard-top": "alinea-ExplorerFileCard-top",
25
+ "ExplorerFileCardTop": "alinea-ExplorerFileCard-top",
28
26
  "ExplorerFileCard-body": "alinea-ExplorerFileCard-body",
29
27
  "ExplorerFileCardBody": "alinea-ExplorerFileCard-body",
30
- "ExplorerFileCard-meta": "alinea-ExplorerFileCard-meta",
31
- "ExplorerFileCardMeta": "alinea-ExplorerFileCard-meta",
32
- "ExplorerFileCard-preview-image": "alinea-ExplorerFileCard-preview-image",
33
- "ExplorerFileCardPreviewImage": "alinea-ExplorerFileCard-preview-image",
34
28
  "is-card": "alinea-is-card",
35
29
  "isCard": "alinea-is-card",
36
- "ExplorerFileCard-meta-extension": "alinea-ExplorerFileCard-meta-extension",
37
- "ExplorerFileCardMetaExtension": "alinea-ExplorerFileCard-meta-extension",
30
+ "ExplorerFileCard-meta": "alinea-ExplorerFileCard-meta",
31
+ "ExplorerFileCardMeta": "alinea-ExplorerFileCard-meta",
38
32
  "ExplorerFileCard-preview-placeholder": "alinea-ExplorerFileCard-preview-placeholder",
39
33
  "ExplorerFileCardPreviewPlaceholder": "alinea-ExplorerFileCard-preview-placeholder",
40
- "ExplorerFileCard-body-inner": "alinea-ExplorerFileCard-body-inner",
41
- "ExplorerFileCardBodyInner": "alinea-ExplorerFileCard-body-inner",
34
+ "ExplorerFileCard-meta-extension": "alinea-ExplorerFileCard-meta-extension",
35
+ "ExplorerFileCardMetaExtension": "alinea-ExplorerFileCard-meta-extension",
36
+ "is-row": "alinea-is-row",
37
+ "isRow": "alinea-is-row",
38
+ "ExplorerFileCard-preview-placeholder-icon": "alinea-ExplorerFileCard-preview-placeholder-icon",
39
+ "ExplorerFileCardPreviewPlaceholderIcon": "alinea-ExplorerFileCard-preview-placeholder-icon",
42
40
  "ExplorerFileCard-meta-details": "alinea-ExplorerFileCard-meta-details",
43
41
  "ExplorerFileCardMetaDetails": "alinea-ExplorerFileCard-meta-details",
42
+ "ExplorerFileCard-preview-image": "alinea-ExplorerFileCard-preview-image",
43
+ "ExplorerFileCardPreviewImage": "alinea-ExplorerFileCard-preview-image",
44
44
  "ExplorerFileCard": "alinea-ExplorerFileCard"
45
45
  };
46
46
 
@@ -106,9 +106,9 @@ function formatExtension(extension) {
106
106
  }
107
107
  function formatFileDetails(file) {
108
108
  const details = new Array();
109
- if (file.width && file.height) details.push(`${file.width}x${file.height}`);
109
+ if (file.width && file.height) details.push(`${file.width}\xD7${file.height}`);
110
110
  if (typeof file.size === "number") details.push(prettyBytes(file.size));
111
- return details.join(" ");
111
+ return details.join(" - ");
112
112
  }
113
113
  export {
114
114
  ExplorerFileCard