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
@@ -7,10 +7,10 @@ import {
7
7
  } from "../../chunks/chunk-Y7XOMJOC.js";
8
8
  import {
9
9
  $32ef394310635fd5$export$2cfc5be7a55829f6
10
- } from "../../chunks/chunk-LUBOGJCG.js";
10
+ } from "../../chunks/chunk-6V4TAD2N.js";
11
11
  import {
12
12
  $d40e85a29b831dd6$export$a144e1752ebe0aa
13
- } from "../../chunks/chunk-YK3OSMDM.js";
13
+ } from "../../chunks/chunk-S4AU6SRS.js";
14
14
  import "../../chunks/chunk-AC4U3IMS.js";
15
15
  import {
16
16
  dist_default
@@ -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-empty-icon": "alinea-ExplorerList-empty-icon",
32
- "ExplorerListEmptyIcon": "alinea-ExplorerList-empty-icon",
33
31
  "ExplorerList-empty-text": "alinea-ExplorerList-empty-text",
34
32
  "ExplorerListEmptyText": "alinea-ExplorerList-empty-text",
35
- "ExplorerList-empty": "alinea-ExplorerList-empty",
36
- "ExplorerListEmpty": "alinea-ExplorerList-empty",
37
- "ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
38
- "ExplorerListDragPreview": "alinea-ExplorerList-drag-preview",
39
- "ExplorerList": "alinea-ExplorerList",
40
- "ExplorerList-empty-title": "alinea-ExplorerList-empty-title",
41
- "ExplorerListEmptyTitle": "alinea-ExplorerList-empty-title",
42
33
  "ExplorerList-pending": "alinea-ExplorerList-pending",
43
34
  "ExplorerListPending": "alinea-ExplorerList-pending",
44
35
  "ExplorerList-empty-copy": "alinea-ExplorerList-empty-copy",
45
36
  "ExplorerListEmptyCopy": "alinea-ExplorerList-empty-copy",
37
+ "ExplorerList-drag-preview": "alinea-ExplorerList-drag-preview",
38
+ "ExplorerListDragPreview": "alinea-ExplorerList-drag-preview",
39
+ "ExplorerList-empty": "alinea-ExplorerList-empty",
40
+ "ExplorerListEmpty": "alinea-ExplorerList-empty",
41
+ "ExplorerList-empty-title": "alinea-ExplorerList-empty-title",
42
+ "ExplorerListEmptyTitle": "alinea-ExplorerList-empty-title",
43
+ "ExplorerList": "alinea-ExplorerList",
44
+ "ExplorerList-drag-preview-label": "alinea-ExplorerList-drag-preview-label",
45
+ "ExplorerListDragPreviewLabel": "alinea-ExplorerList-drag-preview-label",
46
46
  "ExplorerList-empty-button": "alinea-ExplorerList-empty-button",
47
47
  "ExplorerListEmptyButton": "alinea-ExplorerList-empty-button",
48
- "ExplorerList-drag-preview-label": "alinea-ExplorerList-drag-preview-label",
49
- "ExplorerListDragPreviewLabel": "alinea-ExplorerList-drag-preview-label"
48
+ "ExplorerList-empty-icon": "alinea-ExplorerList-empty-icon",
49
+ "ExplorerListEmptyIcon": "alinea-ExplorerList-empty-icon"
50
50
  };
51
51
 
52
52
  // src/dashboard/app/ExplorerList.tsx
@@ -11,12 +11,12 @@ import { Suspense } from "react";
11
11
  // src/dashboard/app/ExplorerModal.module.css
12
12
  var ExplorerModal_default = {
13
13
  "ExplorerModal": "alinea-ExplorerModal",
14
+ "ExplorerModalContent": "alinea-ExplorerModalContent",
15
+ "ExplorerModalLoading": "alinea-ExplorerModalLoading",
14
16
  "ExplorerModalNavigation": "alinea-ExplorerModalNavigation",
15
17
  "ExplorerModalFooter": "alinea-ExplorerModalFooter",
16
- "ExplorerModalActions": "alinea-ExplorerModalActions",
17
- "ExplorerModalContent": "alinea-ExplorerModalContent",
18
18
  "ExplorerModalSelection": "alinea-ExplorerModalSelection",
19
- "ExplorerModalLoading": "alinea-ExplorerModalLoading"
19
+ "ExplorerModalActions": "alinea-ExplorerModalActions"
20
20
  };
21
21
 
22
22
  // src/dashboard/app/ExplorerModal.tsx
@@ -10,18 +10,18 @@ import {
10
10
  $89d060d8eb451127$export$4b687e3f663d618c,
11
11
  $89d060d8eb451127$export$53d36ab85dc89436,
12
12
  $89d060d8eb451127$export$7fbedc92909ed28e
13
- } from "../../chunks/chunk-I7X64JTZ.js";
13
+ } from "../../chunks/chunk-VXZM6V4P.js";
14
14
  import {
15
15
  $42ceafc619f9c3ba$export$fb8073518f34e6ec
16
- } from "../../chunks/chunk-IWN3T3FL.js";
16
+ } from "../../chunks/chunk-O7XWTMCB.js";
17
17
  import "../../chunks/chunk-RKDPDEF7.js";
18
18
  import {
19
19
  $942f06a693c162e2$export$cacbb3924155d68e
20
- } from "../../chunks/chunk-JFROOUG6.js";
21
- import "../../chunks/chunk-SJBZFMQ2.js";
20
+ } from "../../chunks/chunk-NIVGVRDS.js";
22
21
  import "../../chunks/chunk-IYAQC63Y.js";
23
- import "../../chunks/chunk-LUBOGJCG.js";
24
- import "../../chunks/chunk-YK3OSMDM.js";
22
+ import "../../chunks/chunk-SJBZFMQ2.js";
23
+ import "../../chunks/chunk-6V4TAD2N.js";
24
+ import "../../chunks/chunk-S4AU6SRS.js";
25
25
  import "../../chunks/chunk-AC4U3IMS.js";
26
26
  import {
27
27
  dist_default
@@ -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-field": "alinea-ExplorerTable-field",
41
- "ExplorerTableField": "alinea-ExplorerTable-field",
42
- "ExplorerTable-field-label": "alinea-ExplorerTable-field-label",
43
- "ExplorerTableFieldLabel": "alinea-ExplorerTable-field-label",
44
- "ExplorerTable-column-filler": "alinea-ExplorerTable-column-filler",
45
- "ExplorerTableColumnFiller": "alinea-ExplorerTable-column-filler",
46
40
  "ExplorerTable-chevron-button": "alinea-ExplorerTable-chevron-button",
47
41
  "ExplorerTableChevronButton": "alinea-ExplorerTable-chevron-button",
48
- "ExplorerTable-cell-filler": "alinea-ExplorerTable-cell-filler",
49
- "ExplorerTableCellFiller": "alinea-ExplorerTable-cell-filler",
50
- "ExplorerTable": "alinea-ExplorerTable",
51
- "ExplorerTable-surface": "alinea-ExplorerTable-surface",
52
- "ExplorerTableSurface": "alinea-ExplorerTable-surface",
53
- "ExplorerTable-viewport": "alinea-ExplorerTable-viewport",
54
- "ExplorerTableViewport": "alinea-ExplorerTable-viewport",
55
- "ExplorerTable-chevron": "alinea-ExplorerTable-chevron",
56
- "ExplorerTableChevron": "alinea-ExplorerTable-chevron",
57
- "ExplorerTable-row": "alinea-ExplorerTable-row",
58
- "ExplorerTableRow": "alinea-ExplorerTable-row",
59
- "ExplorerTable-cell": "alinea-ExplorerTable-cell",
60
- "ExplorerTableCell": "alinea-ExplorerTable-cell",
61
- "ExplorerTable-breadcrumbs": "alinea-ExplorerTable-breadcrumbs",
62
- "ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs",
63
- "ExplorerTable-body": "alinea-ExplorerTable-body",
64
- "ExplorerTableBody": "alinea-ExplorerTable-body",
65
- "ExplorerTable-field-value": "alinea-ExplorerTable-field-value",
66
- "ExplorerTableFieldValue": "alinea-ExplorerTable-field-value",
67
- "ExplorerTable-breadcrumb": "alinea-ExplorerTable-breadcrumb",
68
- "ExplorerTableBreadcrumb": "alinea-ExplorerTable-breadcrumb",
69
- "ExplorerTable-cell-title": "alinea-ExplorerTable-cell-title",
70
- "ExplorerTableCellTitle": "alinea-ExplorerTable-cell-title",
71
- "ExplorerTable-titleAction": "alinea-ExplorerTable-titleAction",
72
- "ExplorerTableTitleAction": "alinea-ExplorerTable-titleAction",
73
- "ExplorerTable-title": "alinea-ExplorerTable-title",
74
- "ExplorerTableTitle": "alinea-ExplorerTable-title",
75
- "is-noSelectionControls": "alinea-is-noSelectionControls",
76
- "isNoSelectionControls": "alinea-is-noSelectionControls",
77
- "ExplorerTable-breadcrumb-label": "alinea-ExplorerTable-breadcrumb-label",
78
- "ExplorerTableBreadcrumbLabel": "alinea-ExplorerTable-breadcrumb-label",
42
+ "ExplorerTable-icon": "alinea-ExplorerTable-icon",
43
+ "ExplorerTableIcon": "alinea-ExplorerTable-icon",
44
+ "ExplorerTable-field-label": "alinea-ExplorerTable-field-label",
45
+ "ExplorerTableFieldLabel": "alinea-ExplorerTable-field-label",
79
46
  "ExplorerTable-row-grid": "alinea-ExplorerTable-row-grid",
80
47
  "ExplorerTableRowGrid": "alinea-ExplorerTable-row-grid",
81
- "ExplorerTable-breadcrumb-root": "alinea-ExplorerTable-breadcrumb-root",
82
- "ExplorerTableBreadcrumbRoot": "alinea-ExplorerTable-breadcrumb-root",
83
- "ExplorerTable-column-selection": "alinea-ExplorerTable-column-selection",
84
- "ExplorerTableColumnSelection": "alinea-ExplorerTable-column-selection",
48
+ "is-unselectable": "alinea-is-unselectable",
49
+ "isUnselectable": "alinea-is-unselectable",
50
+ "ExplorerTable-header": "alinea-ExplorerTable-header",
51
+ "ExplorerTableHeader": "alinea-ExplorerTable-header",
52
+ "ExplorerTable-viewport": "alinea-ExplorerTable-viewport",
53
+ "ExplorerTableViewport": "alinea-ExplorerTable-viewport",
85
54
  "ExplorerTable-cell-selection": "alinea-ExplorerTable-cell-selection",
86
55
  "ExplorerTableCellSelection": "alinea-ExplorerTable-cell-selection",
87
56
  "ExplorerTable-column": "alinea-ExplorerTable-column",
88
57
  "ExplorerTableColumn": "alinea-ExplorerTable-column",
58
+ "ExplorerTable-breadcrumb-root": "alinea-ExplorerTable-breadcrumb-root",
59
+ "ExplorerTableBreadcrumbRoot": "alinea-ExplorerTable-breadcrumb-root",
60
+ "ExplorerTable-empty": "alinea-ExplorerTable-empty",
61
+ "ExplorerTableEmpty": "alinea-ExplorerTable-empty",
62
+ "ExplorerTable-field-value": "alinea-ExplorerTable-field-value",
63
+ "ExplorerTableFieldValue": "alinea-ExplorerTable-field-value",
64
+ "ExplorerTable": "alinea-ExplorerTable",
65
+ "ExplorerTable-surface": "alinea-ExplorerTable-surface",
66
+ "ExplorerTableSurface": "alinea-ExplorerTable-surface",
89
67
  "ExplorerTable-iconDrag": "alinea-ExplorerTable-iconDrag",
90
68
  "ExplorerTableIconDrag": "alinea-ExplorerTable-iconDrag",
69
+ "ExplorerTable-breadcrumbs": "alinea-ExplorerTable-breadcrumbs",
70
+ "ExplorerTableBreadcrumbs": "alinea-ExplorerTable-breadcrumbs",
71
+ "ExplorerTable-chevron": "alinea-ExplorerTable-chevron",
72
+ "ExplorerTableChevron": "alinea-ExplorerTable-chevron",
73
+ "ExplorerTable-column-selection": "alinea-ExplorerTable-column-selection",
74
+ "ExplorerTableColumnSelection": "alinea-ExplorerTable-column-selection",
75
+ "ExplorerTable-cell-title": "alinea-ExplorerTable-cell-title",
76
+ "ExplorerTableCellTitle": "alinea-ExplorerTable-cell-title",
77
+ "ExplorerTable-cell": "alinea-ExplorerTable-cell",
78
+ "ExplorerTableCell": "alinea-ExplorerTable-cell",
79
+ "is-compact": "alinea-is-compact",
80
+ "isCompact": "alinea-is-compact",
91
81
  "ExplorerTable-checkbox": "alinea-ExplorerTable-checkbox",
92
82
  "ExplorerTableCheckbox": "alinea-ExplorerTable-checkbox",
93
- "is-unselectable": "alinea-is-unselectable",
94
- "isUnselectable": "alinea-is-unselectable",
95
- "ExplorerTable-empty": "alinea-ExplorerTable-empty",
96
- "ExplorerTableEmpty": "alinea-ExplorerTable-empty",
83
+ "ExplorerTable-breadcrumb-label": "alinea-ExplorerTable-breadcrumb-label",
84
+ "ExplorerTableBreadcrumbLabel": "alinea-ExplorerTable-breadcrumb-label",
85
+ "ExplorerTable-row": "alinea-ExplorerTable-row",
86
+ "ExplorerTableRow": "alinea-ExplorerTable-row",
87
+ "ExplorerTable-column-filler": "alinea-ExplorerTable-column-filler",
88
+ "ExplorerTableColumnFiller": "alinea-ExplorerTable-column-filler",
97
89
  "is-linked": "alinea-is-linked",
98
90
  "isLinked": "alinea-is-linked",
99
- "is-compact": "alinea-is-compact",
100
- "isCompact": "alinea-is-compact",
101
- "ExplorerTable-icon": "alinea-ExplorerTable-icon",
102
- "ExplorerTableIcon": "alinea-ExplorerTable-icon",
103
- "ExplorerTable-header": "alinea-ExplorerTable-header",
104
- "ExplorerTableHeader": "alinea-ExplorerTable-header"
91
+ "is-noSelectionControls": "alinea-is-noSelectionControls",
92
+ "isNoSelectionControls": "alinea-is-noSelectionControls",
93
+ "ExplorerTable-cell-filler": "alinea-ExplorerTable-cell-filler",
94
+ "ExplorerTableCellFiller": "alinea-ExplorerTable-cell-filler",
95
+ "ExplorerTable-titleAction": "alinea-ExplorerTable-titleAction",
96
+ "ExplorerTableTitleAction": "alinea-ExplorerTable-titleAction",
97
+ "ExplorerTable-field": "alinea-ExplorerTable-field",
98
+ "ExplorerTableField": "alinea-ExplorerTable-field",
99
+ "ExplorerTable-title": "alinea-ExplorerTable-title",
100
+ "ExplorerTableTitle": "alinea-ExplorerTable-title",
101
+ "ExplorerTable-breadcrumb": "alinea-ExplorerTable-breadcrumb",
102
+ "ExplorerTableBreadcrumb": "alinea-ExplorerTable-breadcrumb",
103
+ "ExplorerTable-body": "alinea-ExplorerTable-body",
104
+ "ExplorerTableBody": "alinea-ExplorerTable-body"
105
105
  };
106
106
 
107
107
  // src/dashboard/app/ExplorerTable.tsx
@@ -116,7 +116,7 @@ var explorerTableSelectionColumn = {
116
116
  var explorerTableTitleColumn = {
117
117
  id: "title",
118
118
  kind: "title",
119
- width: 220
119
+ width: 300
120
120
  };
121
121
  var compactExplorerTableTitleColumn = {
122
122
  id: "title",
@@ -162,7 +162,14 @@ function ExplorerTableBreadcrumbs({
162
162
  rootLabel
163
163
  }) {
164
164
  return /* @__PURE__ */ jsxs("span", { className: styles.ExplorerTable.breadcrumbs(), children: [
165
- entries.length === 0 && rootLabel && /* @__PURE__ */ jsx("span", { className: styles.ExplorerTable.breadcrumb.root(), children: rootLabel }),
165
+ entries.length === 0 && rootLabel && /* @__PURE__ */ jsx(
166
+ "span",
167
+ {
168
+ className: styles.ExplorerTable.breadcrumb.root(),
169
+ title: rootLabel,
170
+ children: rootLabel
171
+ }
172
+ ),
166
173
  entries.map((entry, index) => /* @__PURE__ */ jsx("span", { className: styles.ExplorerTable.breadcrumb(), children: /* @__PURE__ */ jsx(ExplorerTableBreadcrumb, { entry, index }) }, entry.id))
167
174
  ] });
168
175
  }
@@ -179,11 +186,19 @@ function ExplorerTableLoadedBreadcrumb({
179
186
  const root = useAtomValue(data.root);
180
187
  const rootLabel = useAtomValue(root.label);
181
188
  return /* @__PURE__ */ jsxs(Fragment, { children: [
182
- index === 0 && /* @__PURE__ */ jsx("span", { className: styles.ExplorerTable.breadcrumb.root(), children: rootLabel }),
189
+ index === 0 && /* @__PURE__ */ jsx(
190
+ "span",
191
+ {
192
+ className: styles.ExplorerTable.breadcrumb.root(),
193
+ title: rootLabel,
194
+ children: rootLabel
195
+ }
196
+ ),
183
197
  /* @__PURE__ */ jsx(
184
198
  "span",
185
199
  {
186
200
  className: styles.ExplorerTable.breadcrumb.label(),
201
+ title: label,
187
202
  children: `/ ${label}`
188
203
  }
189
204
  )
@@ -435,7 +450,7 @@ function ExplorerTable({
435
450
  const isSearching = Boolean(search.trim());
436
451
  const breadcrumbs = explorer.breadcrumbs || page.resultMode === "matches" || isSearching || page.searchesEverything;
437
452
  const hasSelection = selectionMode !== "none";
438
- const showSelectionControls = hasSelection && (compact || explorer.showSelectionControls);
453
+ const showSelectionControls = hasSelection && !compact && explorer.showSelectionControls;
439
454
  const columns = useMemo(
440
455
  () => createExplorerTableColumns({ compact, showSelectionControls }),
441
456
  [compact, showSelectionControls]
@@ -41,6 +41,8 @@ function ExternalLinkPickerDialog({
41
41
  const initialUrl = initialValue?.url ?? "";
42
42
  const initialTitle = initialValue?.title ?? "";
43
43
  const [url, setUrl] = useState(initialUrl);
44
+ const parsedUrl = url.trim() ? URL.parse(url, "https://example.com") : null;
45
+ const urlError = url && !parsedUrl ? "Enter a valid URL, for example https://example.com" : void 0;
44
46
  const [title, setTitle] = useState(initialTitle);
45
47
  const [openInNewTab, setOpenInNewTab] = useState(
46
48
  initialValue?.target !== "_self"
@@ -48,10 +50,9 @@ function ExternalLinkPickerDialog({
48
50
  function onSubmit(event) {
49
51
  event.preventDefault();
50
52
  event.stopPropagation();
51
- const normalizedUrl = URL.parse(url) ? url : `https://${url}`;
52
- if (!URL.parse(normalizedUrl)) return;
53
+ if (!parsedUrl) return;
53
54
  onConfirm({
54
- url: normalizedUrl,
55
+ url,
55
56
  title,
56
57
  target: openInNewTab ? "_blank" : "_self"
57
58
  });
@@ -68,7 +69,17 @@ function ExternalLinkPickerDialog({
68
69
  /* @__PURE__ */ jsx(DashboardModalCloseButton, {})
69
70
  ] }),
70
71
  /* @__PURE__ */ jsxs(DashboardModalFormBody, { children: [
71
- /* @__PURE__ */ jsx(TextField, { label: "URL", value: url, onChange: setUrl, isRequired: true }),
72
+ /* @__PURE__ */ jsx(
73
+ TextField,
74
+ {
75
+ label: "URL",
76
+ value: url,
77
+ onChange: setUrl,
78
+ errorMessage: urlError,
79
+ isInvalid: Boolean(urlError),
80
+ isRequired: true
81
+ }
82
+ ),
72
83
  /* @__PURE__ */ jsx(
73
84
  TextField,
74
85
  {
@@ -11,7 +11,7 @@ import {
11
11
  import "../../chunks/chunk-CQ52GEHY.js";
12
12
 
13
13
  // src/dashboard/app/LinkPicker.tsx
14
- import { Button, Dialog, Popover } from "alinea/components";
14
+ import { Button, Dialog, Popover, Tooltip } from "alinea/components";
15
15
  import {
16
16
  createExplorerAtoms
17
17
  } from "alinea/dashboard/atoms/explorer";
@@ -23,7 +23,7 @@ import {
23
23
  useMemo,
24
24
  useState
25
25
  } from "react";
26
- import { IcRoundOpenInNew } from "../icons.js";
26
+ import { IcRoundOpenInFull } from "../icons.js";
27
27
  import { ExplorerBody, ExplorerHeader, ExplorerSearch } from "./Explorer.js";
28
28
  import {
29
29
  ExplorerModal,
@@ -40,11 +40,11 @@ import {
40
40
 
41
41
  // src/dashboard/app/LinkPicker.module.css
42
42
  var LinkPicker_default = {
43
- "LinkPickerCompact-header": "alinea-LinkPickerCompact-header",
44
- "LinkPickerCompactHeader": "alinea-LinkPickerCompact-header",
45
43
  "LinkPicker-popover": "alinea-LinkPicker-popover",
46
44
  "LinkPickerPopover": "alinea-LinkPicker-popover",
47
- "LinkPickerCompact": "alinea-LinkPickerCompact"
45
+ "LinkPickerCompact": "alinea-LinkPickerCompact",
46
+ "LinkPickerCompact-header": "alinea-LinkPickerCompact-header",
47
+ "LinkPickerCompactHeader": "alinea-LinkPickerCompact-header"
48
48
  };
49
49
 
50
50
  // src/dashboard/app/LinkPicker.tsx
@@ -238,16 +238,16 @@ function LinkPickerCompact({
238
238
  page
239
239
  }
240
240
  ),
241
- /* @__PURE__ */ jsx(
241
+ /* @__PURE__ */ jsx(Tooltip, { tooltip: "Expand entry picker", children: /* @__PURE__ */ jsx(
242
242
  Button,
243
243
  {
244
244
  "aria-label": "Expand entry picker",
245
245
  appearance: "plain",
246
- icon: IcRoundOpenInNew,
246
+ icon: IcRoundOpenInFull,
247
247
  size: "icon-nav",
248
248
  onPress: openExpanded
249
249
  }
250
- )
250
+ ) })
251
251
  ] }),
252
252
  /* @__PURE__ */ jsx(
253
253
  ExplorerBody,
@@ -4,14 +4,14 @@ import {
4
4
  import "../../chunks/chunk-Y7XOMJOC.js";
5
5
  import {
6
6
  $7705c033048f6da7$export$353f5b6fc5456de1
7
- } from "../../chunks/chunk-I7X64JTZ.js";
8
- import "../../chunks/chunk-IWN3T3FL.js";
7
+ } from "../../chunks/chunk-VXZM6V4P.js";
8
+ import "../../chunks/chunk-O7XWTMCB.js";
9
9
  import "../../chunks/chunk-RKDPDEF7.js";
10
- import "../../chunks/chunk-JFROOUG6.js";
11
- import "../../chunks/chunk-SJBZFMQ2.js";
10
+ import "../../chunks/chunk-NIVGVRDS.js";
12
11
  import "../../chunks/chunk-IYAQC63Y.js";
13
- import "../../chunks/chunk-LUBOGJCG.js";
14
- import "../../chunks/chunk-YK3OSMDM.js";
12
+ import "../../chunks/chunk-SJBZFMQ2.js";
13
+ import "../../chunks/chunk-6V4TAD2N.js";
14
+ import "../../chunks/chunk-S4AU6SRS.js";
15
15
  import "../../chunks/chunk-AC4U3IMS.js";
16
16
  import {
17
17
  dist_default
@@ -27,14 +27,14 @@ import { IcRoundUnfoldMore } from "../icons.js";
27
27
  var LocaleMenu_default = {
28
28
  "LocaleMenu-label": "alinea-LocaleMenu-label",
29
29
  "LocaleMenuLabel": "alinea-LocaleMenu-label",
30
- "LocaleMenu-trigger": "alinea-LocaleMenu-trigger",
31
- "LocaleMenuTrigger": "alinea-LocaleMenu-trigger",
32
- "LocaleMenu-trigger-icon": "alinea-LocaleMenu-trigger-icon",
33
- "LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon",
30
+ "LocaleMenu-label-fullName": "alinea-LocaleMenu-label-fullName",
31
+ "LocaleMenuLabelFullName": "alinea-LocaleMenu-label-fullName",
34
32
  "LocaleMenu-label-code": "alinea-LocaleMenu-label-code",
35
33
  "LocaleMenuLabelCode": "alinea-LocaleMenu-label-code",
36
- "LocaleMenu-label-fullName": "alinea-LocaleMenu-label-fullName",
37
- "LocaleMenuLabelFullName": "alinea-LocaleMenu-label-fullName"
34
+ "LocaleMenu-trigger-icon": "alinea-LocaleMenu-trigger-icon",
35
+ "LocaleMenuTriggerIcon": "alinea-LocaleMenu-trigger-icon",
36
+ "LocaleMenu-trigger": "alinea-LocaleMenu-trigger",
37
+ "LocaleMenuTrigger": "alinea-LocaleMenu-trigger"
38
38
  };
39
39
 
40
40
  // src/dashboard/app/LocaleMenu.tsx
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface SidebarLayoutProps {
3
+ children: ReactNode;
4
+ sidebar: ReactNode;
5
+ side: 'left' | 'right';
6
+ visible?: boolean;
7
+ }
8
+ export declare function SidebarLayout({ children, sidebar, side, visible }: SidebarLayoutProps): import("react").JSX.Element;