alinea 2.0.0-preview.12 → 2.0.0-preview.13

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 (264) hide show
  1. package/dist/.init/content/pages/welcome.json +1 -1
  2. package/dist/.mcp/later/dev.json +1 -1
  3. package/dist/.mcp/online/dev.json +1 -1
  4. package/dist/adapter/next/cms.js +16 -8
  5. package/dist/adapter/next/dashboardUrl.d.ts +6 -0
  6. package/dist/adapter/next/dashboardUrl.js +13 -0
  7. package/dist/adapter/next/syncCheck.d.ts +15 -2
  8. package/dist/adapter/next/syncCheck.js +26 -9
  9. package/dist/backend/Handler.js +5 -1
  10. package/dist/backend/api/BlobStore.d.ts +21 -0
  11. package/dist/backend/api/BlobStore.js +63 -0
  12. package/dist/backend/api/CreateBackend.js +10 -8
  13. package/dist/backend/api/DatabaseApi.d.ts +4 -1
  14. package/dist/backend/api/DatabaseApi.js +88 -4
  15. package/dist/backend/api/GithubApi.js +47 -24
  16. package/dist/backend/api/database.js +6 -6
  17. package/dist/bundled.d.ts +676 -280
  18. package/dist/chunks/{bun-sqlite-5SHXN3AT.js → bun-sqlite-RI6BYU5S.js} +3 -3
  19. package/dist/chunks/{chunk-OHGAVV4G.js → chunk-3QFSGTGF.js} +2 -3
  20. package/dist/chunks/{chunk-QJGGYF6E.js → chunk-4ZA6KZHS.js} +5 -5
  21. package/dist/chunks/{chunk-ASYKC6IE.js → chunk-5H4D5JQL.js} +1 -1
  22. package/dist/chunks/{chunk-ETWOY4AL.js → chunk-A2I6MCCS.js} +1 -1
  23. package/dist/chunks/{chunk-W5AXN7GH.js → chunk-CYVOGRSD.js} +1 -2
  24. package/dist/chunks/{chunk-TIJTT5ZI.js → chunk-G43W7AME.js} +1 -0
  25. package/dist/chunks/{chunk-RE523BQ7.js → chunk-HOETF6HN.js} +5829 -5830
  26. package/dist/chunks/{chunk-AIU6CMVT.js → chunk-PTYZMV5G.js} +1 -1
  27. package/dist/chunks/{chunk-JOF663EG.js → chunk-QHHMKJUO.js} +1 -1
  28. package/dist/chunks/{chunk-66YZ47TY.js → chunk-RAR44T5O.js} +1 -1
  29. package/dist/chunks/{chunk-QSN6RH6X.js → chunk-VA6NC3MI.js} +1 -1
  30. package/dist/chunks/{node-sqlite-XVNTNMCY.js → node-sqlite-C7VJ2NSN.js} +3 -3
  31. package/dist/cli/Mcp.js +1 -1
  32. package/dist/cli/Serve.js +1 -1
  33. package/dist/cli/bin.js +2 -3
  34. package/dist/cli/serve/mcp/DevMcp.js +1 -1
  35. package/dist/cli/serve/mcp/McpTools.js +29 -1
  36. package/dist/cloud/CloudRemote.js +1 -1
  37. package/dist/components/Alert.js +2 -2
  38. package/dist/components/AppShell.js +2 -2
  39. package/dist/components/Badge.d.ts +3 -1
  40. package/dist/components/Badge.js +5 -3
  41. package/dist/components/Breadcrumbs.js +7 -7
  42. package/dist/components/Button.d.ts +6 -1
  43. package/dist/components/Button.js +16 -7
  44. package/dist/components/Calendar.js +20 -20
  45. package/dist/components/Checkbox.js +7 -7
  46. package/dist/components/CheckboxGroup.js +4 -4
  47. package/dist/components/Code.js +2 -2
  48. package/dist/components/Collapsible.js +3 -3
  49. package/dist/components/ColorSwatch.js +2 -2
  50. package/dist/components/ColorSwatchPicker.js +2 -2
  51. package/dist/components/ComboBox.js +7 -7
  52. package/dist/components/Command.js +14 -13
  53. package/dist/components/ContentCard.d.ts +3 -1
  54. package/dist/components/ContentCard.js +46 -24
  55. package/dist/components/ContentGrid.js +17 -17
  56. package/dist/components/DataList.js +2 -2
  57. package/dist/components/DateField.js +2 -2
  58. package/dist/components/DatePicker.js +2 -2
  59. package/dist/components/DateRangePicker.js +2 -2
  60. package/dist/components/Dialog.js +7 -7
  61. package/dist/components/DropZone.js +6 -6
  62. package/dist/components/DropdownMenu.js +9 -9
  63. package/dist/components/Empty.js +5 -5
  64. package/dist/components/Field.js +8 -8
  65. package/dist/components/List.js +27 -27
  66. package/dist/components/MediaPreview.js +5 -5
  67. package/dist/components/MultipleSelect.js +22 -22
  68. package/dist/components/NavRail.js +4 -4
  69. package/dist/components/NumberField.js +4 -4
  70. package/dist/components/Page.js +3 -3
  71. package/dist/components/Popover.js +2 -2
  72. package/dist/components/PreviewFrame.js +9 -9
  73. package/dist/components/RadioGroup.js +9 -9
  74. package/dist/components/Resizable.js +4 -4
  75. package/dist/components/SearchField.d.ts +6 -1
  76. package/dist/components/SearchField.js +5 -3
  77. package/dist/components/Select.js +13 -13
  78. package/dist/components/Sheet.d.ts +50 -0
  79. package/dist/components/Sheet.js +202 -0
  80. package/dist/components/Sidebar.js +4 -4
  81. package/dist/components/SortableList.d.ts +34 -30
  82. package/dist/components/SortableList.js +161 -264
  83. package/dist/components/Spinner.js +2 -2
  84. package/dist/components/Surface.js +2 -2
  85. package/dist/components/Switch.js +8 -8
  86. package/dist/components/Table.d.ts +3 -1
  87. package/dist/components/Table.js +57 -46
  88. package/dist/components/Tabs.js +5 -5
  89. package/dist/components/TagGroup.js +8 -8
  90. package/dist/components/TextField.js +10 -10
  91. package/dist/components/TimeField.js +6 -6
  92. package/dist/components/Timestamp.js +1 -1
  93. package/dist/components/ToggleGroup.js +2 -2
  94. package/dist/components/Toolbar.js +2 -2
  95. package/dist/components/Tooltip.js +5 -5
  96. package/dist/components/Tree.js +24 -24
  97. package/dist/components/internal/DateControl.js +12 -12
  98. package/dist/components/internal/ListBoxOption.js +6 -6
  99. package/dist/components/internal/Locale.js +2 -2
  100. package/dist/components/internal/PopoverSurface.js +4 -4
  101. package/dist/components/internal/SelectionCheckbox.js +5 -5
  102. package/dist/components/internal/Slot.js +1 -1
  103. package/dist/components/internal/ToggleButton.js +3 -3
  104. package/dist/components/internal/Trigger.js +2 -2
  105. package/dist/components/internal/sortableDrag.d.ts +19 -0
  106. package/dist/components/internal/sortableDrag.js +175 -0
  107. package/dist/components/internal/useDragDrop.js +2 -2
  108. package/dist/components.d.ts +1 -0
  109. package/dist/components.js +1 -0
  110. package/dist/core/Config.d.ts +6 -1
  111. package/dist/core/Document.d.ts +9 -1
  112. package/dist/core/Document.js +31 -6
  113. package/dist/core/Overview.d.ts +2 -4
  114. package/dist/core/TextDoc.d.ts +4 -0
  115. package/dist/core/Validation.d.ts +0 -1
  116. package/dist/core/Validation.js +0 -6
  117. package/dist/core/field/RichTextField.js +23 -4
  118. package/dist/core/media/MediaTypes.js +1 -1
  119. package/dist/core/source/GithubSource.d.ts +4 -0
  120. package/dist/core/source/GithubSource.js +127 -25
  121. package/dist/core/source/GithubUsage.d.ts +21 -0
  122. package/dist/core/source/GithubUsage.js +47 -0
  123. package/dist/dashboard/App.d.ts +2 -2
  124. package/dist/dashboard/App.js +5 -3
  125. package/dist/dashboard/ViewKeys.d.ts +1 -0
  126. package/dist/dashboard/ViewKeys.js +1 -0
  127. package/dist/dashboard/app/ActivityStatus.js +7 -7
  128. package/dist/dashboard/app/AuthView.js +5 -5
  129. package/dist/dashboard/app/BlockSheet.d.ts +50 -0
  130. package/dist/dashboard/app/BlockSheet.js +207 -0
  131. package/dist/dashboard/app/BlockSheetStoryFrame.d.ts +6 -0
  132. package/dist/dashboard/app/BlockSheetStoryFrame.js +29 -0
  133. package/dist/dashboard/app/CompactField.js +16 -16
  134. package/dist/dashboard/app/DashboardLayout.js +3 -1
  135. package/dist/dashboard/app/EntryFields.js +2 -2
  136. package/dist/dashboard/app/EntryHeader.js +33 -34
  137. package/dist/dashboard/app/EntryReferences.js +7 -7
  138. package/dist/dashboard/app/EntrySidebar.js +15 -15
  139. package/dist/dashboard/app/EntrySidebarPreview.js +3 -3
  140. package/dist/dashboard/app/EntryStatusIcon.d.ts +23 -0
  141. package/dist/dashboard/app/EntryStatusIcon.js +58 -0
  142. package/dist/dashboard/app/EntryValidationModal.d.ts +6 -5
  143. package/dist/dashboard/app/EntryValidationModal.js +20 -20
  144. package/dist/dashboard/app/Explorer.d.ts +3 -1
  145. package/dist/dashboard/app/Explorer.js +48 -44
  146. package/dist/dashboard/app/ExplorerBatchActions.d.ts +3 -1
  147. package/dist/dashboard/app/ExplorerBatchActions.js +68 -43
  148. package/dist/dashboard/app/ExplorerCards.js +7 -1
  149. package/dist/dashboard/app/ExplorerControls.js +6 -6
  150. package/dist/dashboard/app/ExplorerList.js +5 -5
  151. package/dist/dashboard/app/ExplorerModal.js +2 -2
  152. package/dist/dashboard/app/ExplorerTable.js +11 -8
  153. package/dist/dashboard/app/ImageEditor.js +28 -28
  154. package/dist/dashboard/app/ImagePicker.js +3 -13
  155. package/dist/dashboard/app/LinkPicker.js +28 -26
  156. package/dist/dashboard/app/LocaleMenu.js +4 -4
  157. package/dist/dashboard/app/MediaPreviewCell.js +1 -1
  158. package/dist/dashboard/app/MoveConfirmDialog.d.ts +5 -0
  159. package/dist/dashboard/app/MoveConfirmDialog.js +79 -0
  160. package/dist/dashboard/app/OverviewCell.js +8 -13
  161. package/dist/dashboard/app/PendingUploadsView.js +3 -3
  162. package/dist/dashboard/app/ReadOnlyBadge.d.ts +1 -1
  163. package/dist/dashboard/app/RemoveDialog.d.ts +17 -0
  164. package/dist/dashboard/app/{DeleteDialog.js → RemoveDialog.js} +67 -27
  165. package/dist/dashboard/app/RemoveRedirect.d.ts +7 -0
  166. package/dist/dashboard/app/RemoveRedirect.js +123 -0
  167. package/dist/dashboard/app/SearchBar.d.ts +9 -0
  168. package/dist/dashboard/app/SearchBar.js +31 -0
  169. package/dist/dashboard/app/SidebarTree.js +27 -72
  170. package/dist/dashboard/app/WorkspaceMenu.js +7 -7
  171. package/dist/dashboard/app/WorkspaceRoots.js +12 -12
  172. package/dist/dashboard/app/editor/FileEditor.js +14 -14
  173. package/dist/dashboard/app/modals/CreateEntry.js +3 -3
  174. package/dist/dashboard/app/pages/EntryPage.d.ts +2 -1
  175. package/dist/dashboard/app/pages/EntryPage.js +34 -15
  176. package/dist/dashboard/app/pages/SplashPage.js +37 -37
  177. package/dist/dashboard/app/pages/UsersPage.js +12 -12
  178. package/dist/dashboard/app/ui/DashboardModal.js +15 -14
  179. package/dist/dashboard/atoms/dashboard.js +1 -1
  180. package/dist/dashboard/atoms/entry.js +1 -14
  181. package/dist/dashboard/atoms/entryTable.js +1 -0
  182. package/dist/dashboard/atoms/explorer.d.ts +4 -0
  183. package/dist/dashboard/atoms/explorer.js +19 -7
  184. package/dist/dashboard/atoms/graph.js +1 -1
  185. package/dist/dashboard/atoms/link.js +5 -2
  186. package/dist/dashboard/atoms/move.d.ts +5 -0
  187. package/dist/dashboard/atoms/move.js +29 -3
  188. package/dist/dashboard/atoms/moveConfirmation.d.ts +34 -0
  189. package/dist/dashboard/atoms/moveConfirmation.js +95 -0
  190. package/dist/dashboard/atoms/nav.d.ts +9 -5
  191. package/dist/dashboard/atoms/nav.js +120 -45
  192. package/dist/dashboard/atoms/overview.d.ts +6 -5
  193. package/dist/dashboard/atoms/overview.js +2 -16
  194. package/dist/dashboard/atoms/remove.d.ts +112 -0
  195. package/dist/dashboard/atoms/remove.js +268 -0
  196. package/dist/dashboard/atoms/root.d.ts +2 -2
  197. package/dist/dashboard/atoms/root.js +41 -26
  198. package/dist/dashboard/atoms/user.js +1 -1
  199. package/dist/dashboard/atoms/utils.js +1 -1
  200. package/dist/dashboard/boot/Boot.js +25 -17
  201. package/dist/dashboard/boot/DashboardWorker.d.ts +1 -0
  202. package/dist/dashboard/boot/DashboardWorker.js +10 -46
  203. package/dist/dashboard/boot/LoadWorker.js +17 -10
  204. package/dist/dashboard/cms/EntryTable.js +8 -5
  205. package/dist/database/BrowserEntryStore.d.ts +12 -62
  206. package/dist/database/BrowserEntryStore.js +97 -196
  207. package/dist/database/DatabaseTables.js +2 -2
  208. package/dist/database/EntryDatabase.js +21 -1
  209. package/dist/database/EntryTransaction.js +0 -35
  210. package/dist/database/EntryUrlAliases.d.ts +4 -0
  211. package/dist/database/EntryUrlAliases.js +16 -10
  212. package/dist/database/driver/RuntimeDatabase.js +3 -3
  213. package/dist/database/driver/WasmDatabase.d.ts +5 -18
  214. package/dist/database/driver/WasmDatabase.js +15 -16
  215. package/dist/database/entry/EntryTable.js +2 -2
  216. package/dist/database/query/EntryQuery.js +1 -1
  217. package/dist/database/query/Relation.js +1 -1
  218. package/dist/database/query/Search.js +2 -2
  219. package/dist/field/code/CodeField.view.js +16 -16
  220. package/dist/field/link/EntryLink.d.ts +4 -4
  221. package/dist/field/link/FileLink.d.ts +4 -4
  222. package/dist/field/link/ImageLink.d.ts +4 -4
  223. package/dist/field/link/Link.d.ts +1 -1
  224. package/dist/field/link/LinkField.d.ts +5 -0
  225. package/dist/field/link/LinkField.view.js +244 -370
  226. package/dist/field/link/UrlLink.d.ts +4 -4
  227. package/dist/field/list/ListField.d.ts +2 -0
  228. package/dist/field/list/ListField.view.d.ts +15 -0
  229. package/dist/field/list/ListField.view.js +343 -301
  230. package/dist/field/metadata/MetadataField.d.ts +17 -7
  231. package/dist/field/metadata/MetadataField.js +14 -3
  232. package/dist/field/metadata/MetadataField.view.d.ts +1 -0
  233. package/dist/field/metadata/MetadataField.view.js +25 -21
  234. package/dist/field/richtext/RichTextBlock.d.ts +3 -1
  235. package/dist/field/richtext/RichTextBlock.js +177 -74
  236. package/dist/field/richtext/RichTextBlockHost.js +1 -1
  237. package/dist/field/richtext/RichTextExtensions.js +31 -31
  238. package/dist/field/richtext/RichTextField.view.js +14 -8
  239. package/dist/field/richtext/RichTextInsertMenu.js +43 -27
  240. package/dist/field/views.js +2 -0
  241. package/dist/index.css +490 -309
  242. package/dist/picker/url/UrlPicker.js +1 -0
  243. package/docs/components/badge.md +1 -0
  244. package/docs/components/button.md +1 -0
  245. package/docs/components/content-card.md +1 -0
  246. package/docs/components/search-field.md +1 -0
  247. package/docs/components/sortable-list.md +5 -20
  248. package/docs/components/table.md +1 -0
  249. package/docs/configuration.md +1 -1
  250. package/docs/deploy/self-host.md +1 -1
  251. package/docs/deploy.md +5 -4
  252. package/docs/fields.md +1 -1
  253. package/docs/index.md +1 -1
  254. package/docs/instant-publishing.md +7 -22
  255. package/docs/overviews.md +3 -4
  256. package/docs/upgrading.md +3 -2
  257. package/llms-full.txt +31 -55
  258. package/package.json +2 -3
  259. package/dist/core/db/EntryValidationError.d.ts +0 -13
  260. package/dist/core/db/EntryValidationError.js +0 -23
  261. package/dist/dashboard/app/DeleteDialog.d.ts +0 -11
  262. package/dist/dashboard/atoms/delete.d.ts +0 -68
  263. package/dist/dashboard/atoms/delete.js +0 -143
  264. package/dist/chunks/{chunk-MOWR65LM.js → chunk-PYDOMKJZ.js} +71 -71
@@ -12,7 +12,7 @@ import {
12
12
  columnConfig,
13
13
  formatColumn,
14
14
  table
15
- } from "./chunk-MOWR65LM.js";
15
+ } from "./chunk-PYDOMKJZ.js";
16
16
  import {
17
17
  Sql,
18
18
  getData,
@@ -132,7 +132,7 @@ import {
132
132
  $fd2148440a13ec26$export$fc1a364ae1f3ff10,
133
133
  $fd3c5e01e837dc20$export$8042c6c013fd5226,
134
134
  $fe16bffc7a557bf0$export$7f54fc3180508a52
135
- } from "./chunk-RE523BQ7.js";
135
+ } from "./chunk-HOETF6HN.js";
136
136
  import {
137
137
  $12a3c853105e5a70$export$ad991b66133851cf,
138
138
  $2aaf608024c21ca1$export$680ea196effce5f,
@@ -4,7 +4,7 @@ import {
4
4
  execTransaction,
5
5
  sqliteDialect,
6
6
  sqliteDiff
7
- } from "./chunk-AIU6CMVT.js";
7
+ } from "./chunk-PTYZMV5G.js";
8
8
  import {
9
9
  Batch,
10
10
  SyncDatabase
@@ -4,7 +4,7 @@ import {
4
4
  execTransaction,
5
5
  sqliteDialect,
6
6
  sqliteDiff
7
- } from "./chunk-AIU6CMVT.js";
7
+ } from "./chunk-PTYZMV5G.js";
8
8
  import {
9
9
  Batch,
10
10
  SyncDatabase
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  connect
3
- } from "./chunk-ETWOY4AL.js";
4
- import "./chunk-AIU6CMVT.js";
3
+ } from "./chunk-A2I6MCCS.js";
4
+ import "./chunk-PTYZMV5G.js";
5
5
  import "./chunk-N47Y62CI.js";
6
6
  import "./chunk-QBPYWU6C.js";
7
7
  import "./chunk-2BJ2IFQM.js";
8
8
  import "./chunk-XCZXR3C2.js";
9
- import "./chunk-MOWR65LM.js";
9
+ import "./chunk-PYDOMKJZ.js";
10
10
  import "./chunk-76VMZTLN.js";
11
11
  import "./chunk-2PIFHEYR.js";
12
12
  import "./chunk-K62JP6HR.js";
package/dist/cli/Mcp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-OHGAVV4G.js";
3
+ } from "../chunks/chunk-3QFSGTGF.js";
4
4
  import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/Mcp.ts
package/dist/cli/Serve.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-OHGAVV4G.js";
3
+ } from "../chunks/chunk-3QFSGTGF.js";
4
4
  import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/Serve.ts
package/dist/cli/bin.js CHANGED
@@ -220,7 +220,7 @@ var lib_default2 = (e, t2) => new o(e, t2);
220
220
  // package.json
221
221
  var package_default = {
222
222
  name: "alinea",
223
- version: "2.0.0-preview.12",
223
+ version: "2.0.0-preview.13",
224
224
  description: "Open source, Git-based headless CMS for Next.js",
225
225
  keywords: [
226
226
  "cms",
@@ -304,7 +304,6 @@ var package_default = {
304
304
  stories: "bunx --bun ladle serve",
305
305
  tag: "bun tag.js",
306
306
  spec: "playwright test -c .playwright/playwright.config.ts",
307
- "spec:visual": "playwright test -c .playwright/playwright.visual.config.ts",
308
307
  trace: "tsc --diagnostics --generateTrace private/trace && analyze-trace private/trace & speedscope private/trace/trace.json",
309
308
  type: "tsc --diagnostics",
310
309
  web: "run-p dev:check web:run",
@@ -312,7 +311,7 @@ var package_default = {
312
311
  },
313
312
  dependencies: {
314
313
  "@alinea/iso": "^0.3.3",
315
- "@alinea/sqlite-wasm": "0.3.1",
314
+ "@alinea/sqlite-wasm": "0.8.1",
316
315
  esbuild: "^0.28.0"
317
316
  },
318
317
  peerDependencies: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../../../chunks/chunk-OHGAVV4G.js";
3
+ } from "../../../chunks/chunk-3QFSGTGF.js";
4
4
  import "../../../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cli/serve/mcp/DevMcp.ts
@@ -11,7 +11,9 @@ import { isImageCrop, isImageRotation } from "alinea/core/media/ImageTransform";
11
11
  import { Root } from "alinea/core/Root";
12
12
  import { Schema } from "alinea/core/Schema";
13
13
  import { Type } from "alinea/core/Type";
14
+ import { formatFieldPath, validateEntry } from "alinea/core/Validation";
14
15
  import { entries, keys } from "alinea/core/util/Objects";
16
+ import { slugify } from "alinea/core/util/Slugs";
15
17
  import { Workspace } from "alinea/core/Workspace";
16
18
  import { inputData, outputData } from "./McpInput.js";
17
19
  import { describeSchema } from "./McpSchema.js";
@@ -75,6 +77,18 @@ function createContentTools(options) {
75
77
  if (!config.enableDrafts) fail("Drafts are not enabled, leave out publish");
76
78
  return "draft";
77
79
  }
80
+ function checkPublishable(type, data) {
81
+ const errors = validateEntry(type, data);
82
+ if (errors.length === 0) return;
83
+ const draft = config.enableDrafts ? ", or pass publish: false to save a draft" : "";
84
+ const fields = errors.map(
85
+ (error) => `- data.${formatFieldPath(error.path)}: ${error.message}`
86
+ );
87
+ fail(
88
+ `Cannot publish, fix these fields first${draft}:
89
+ ${fields.join("\n")}`
90
+ );
91
+ }
78
92
  function inLocale(versions, locale2) {
79
93
  const [first] = versions;
80
94
  if (!first) fail("Entry not found, use find_entries to look up ids");
@@ -278,6 +292,12 @@ function createContentTools(options) {
278
292
  });
279
293
  if (!data.title) fail("data.title is required");
280
294
  if (!converted.path) delete data.path;
295
+ const saveAs = status(args.publish);
296
+ if (saveAs === "published")
297
+ checkPublishable(type, {
298
+ ...data,
299
+ path: data.path || slugify(String(data.title))
300
+ });
281
301
  const insertOrder = parent && Type.insertOrder(typeOf(parent.type));
282
302
  const created = await graph.create({
283
303
  type,
@@ -286,7 +306,7 @@ function createContentTools(options) {
286
306
  root,
287
307
  parentId,
288
308
  locale: locale2,
289
- status: status(args.publish),
309
+ status: saveAs,
290
310
  insertOrder: insertOrder === "free" ? void 0 : insertOrder,
291
311
  set: data,
292
312
  user,
@@ -324,6 +344,7 @@ function createContentTools(options) {
324
344
  ...current.data,
325
345
  ...converted
326
346
  });
347
+ if (saveAs === "published") checkPublishable(type, data);
327
348
  await graph.mutate([
328
349
  {
329
350
  op: "create",
@@ -386,6 +407,13 @@ function createContentTools(options) {
386
407
  );
387
408
  if (!from)
388
409
  return { id: id2, locale: locale2, status: "published", note: "Already published" };
410
+ const pending = await graph.first({
411
+ id: id2,
412
+ locale: locale2,
413
+ status: from,
414
+ select: { type: Entry.type, data: Entry.data }
415
+ });
416
+ if (pending) checkPublishable(typeOf(pending.type), pending.data);
389
417
  await graph.publish({ id: id2, locale: locale2, status: from });
390
418
  return { id: id2, locale: locale2, status: "published" };
391
419
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../chunks/chunk-OHGAVV4G.js";
3
+ } from "../chunks/chunk-3QFSGTGF.js";
4
4
  import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/cloud/CloudRemote.ts
@@ -6,11 +6,11 @@ import "../chunks/chunk-CQ52GEHY.js";
6
6
  // src/components/Alert.module.css
7
7
  var Alert_default = {
8
8
  "Alert": "alinea-Alert",
9
+ "AlertTitle": "alinea-AlertTitle",
9
10
  "AlertDescription": "alinea-AlertDescription",
10
11
  "Alert-icon": "alinea-Alert-icon",
11
12
  "AlertIcon": "alinea-Alert-icon",
12
- "AlertActions": "alinea-AlertActions",
13
- "AlertTitle": "alinea-AlertTitle"
13
+ "AlertActions": "alinea-AlertActions"
14
14
  };
15
15
 
16
16
  // src/components/Alert.tsx
@@ -5,8 +5,8 @@ import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/components/AppShell.module.css
7
7
  var AppShell_default = {
8
- "AppShell": "alinea-AppShell",
9
- "AppShellContent": "alinea-AppShellContent"
8
+ "AppShellContent": "alinea-AppShellContent",
9
+ "AppShell": "alinea-AppShell"
10
10
  };
11
11
 
12
12
  // src/components/AppShell.tsx
@@ -3,9 +3,11 @@ import type { AriaProps, ContentStatus, DataProps, IconType, StyleProps } from '
3
3
  export interface BadgeProps extends StyleProps, AriaProps, DataProps {
4
4
  icon?: IconType | ReactElement;
5
5
  size?: 'default' | 'sm';
6
+ /** `primary` tints the badge with the accent color, eg. to name a type */
7
+ color?: 'default' | 'primary';
6
8
  /** Colors the badge like the matching entry status */
7
9
  status?: ContentStatus;
8
10
  title?: string;
9
11
  children?: ReactNode;
10
12
  }
11
- export declare function Badge({ icon, size, status, className, children, ...props }: BadgeProps): import("react").JSX.Element;
13
+ export declare function Badge({ icon, size, color, status, className, children, ...props }: BadgeProps): import("react").JSX.Element;
@@ -5,11 +5,11 @@ import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/components/Badge.module.css
7
7
  var Badge_default = {
8
- "Badge-label": "alinea-Badge-label",
9
- "BadgeLabel": "alinea-Badge-label",
8
+ "Badge": "alinea-Badge",
10
9
  "Badge-icon": "alinea-Badge-icon",
11
10
  "BadgeIcon": "alinea-Badge-icon",
12
- "Badge": "alinea-Badge"
11
+ "Badge-label": "alinea-Badge-label",
12
+ "BadgeLabel": "alinea-Badge-label"
13
13
  };
14
14
 
15
15
  // src/components/Badge.tsx
@@ -19,6 +19,7 @@ var styles = dist_default(Badge_default);
19
19
  function Badge({
20
20
  icon,
21
21
  size = "default",
22
+ color,
22
23
  status,
23
24
  className,
24
25
  children,
@@ -30,6 +31,7 @@ function Badge({
30
31
  "data-slot": "badge",
31
32
  ...props,
32
33
  "data-size": size,
34
+ "data-color": color,
33
35
  "data-status": status,
34
36
  className: styles.Badge(dist_default.merge({ className })),
35
37
  children: [
@@ -8,16 +8,16 @@ import { IcRoundChevronRight, IcRoundMoreHoriz } from "alinea/dashboard/icons";
8
8
 
9
9
  // src/components/Breadcrumbs.module.css
10
10
  var Breadcrumbs_default = {
11
- "BreadcrumbPage": "alinea-BreadcrumbPage",
12
11
  "BreadcrumbLink": "alinea-BreadcrumbLink",
13
- "BreadcrumbList": "alinea-BreadcrumbList",
14
- "BreadcrumbEllipsis-icon": "alinea-BreadcrumbEllipsis-icon",
15
- "BreadcrumbEllipsisIcon": "alinea-BreadcrumbEllipsis-icon",
16
- "BreadcrumbItem": "alinea-BreadcrumbItem",
17
- "BreadcrumbEllipsis": "alinea-BreadcrumbEllipsis",
12
+ "BreadcrumbPage": "alinea-BreadcrumbPage",
18
13
  "BreadcrumbSeparator-icon": "alinea-BreadcrumbSeparator-icon",
19
14
  "BreadcrumbSeparatorIcon": "alinea-BreadcrumbSeparator-icon",
20
- "BreadcrumbSeparator": "alinea-BreadcrumbSeparator"
15
+ "BreadcrumbList": "alinea-BreadcrumbList",
16
+ "BreadcrumbEllipsis": "alinea-BreadcrumbEllipsis",
17
+ "BreadcrumbSeparator": "alinea-BreadcrumbSeparator",
18
+ "BreadcrumbItem": "alinea-BreadcrumbItem",
19
+ "BreadcrumbEllipsis-icon": "alinea-BreadcrumbEllipsis-icon",
20
+ "BreadcrumbEllipsisIcon": "alinea-BreadcrumbEllipsis-icon"
21
21
  };
22
22
 
23
23
  // src/components/Breadcrumbs.tsx
@@ -23,8 +23,13 @@ export interface ButtonProps extends StyleProps, AriaProps, DataProps {
23
23
  'aria-current'?: boolean | 'page' | 'step' | 'location' | 'date' | 'time';
24
24
  /** Keyboard shortcuts that activate the button, eg. `Meta+K Control+K` */
25
25
  'aria-keyshortcuts'?: string;
26
+ /**
27
+ * Lets a press on the button start a native drag, eg. of the draggable
28
+ * element it is in: browsers do not drag from a button otherwise
29
+ */
30
+ draggable?: boolean;
26
31
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
27
32
  ref?: Ref<HTMLButtonElement>;
28
33
  children?: ReactNode;
29
34
  }
30
- export declare function Button({ variant, color, size, active, icon, asChild, disabled, loading, className, children, onClick, 'aria-keyshortcuts': ariaKeyShortcuts, ...props }: ButtonProps): import("react").JSX.Element;
35
+ export declare function Button({ variant, color, size, active, icon, asChild, disabled, loading, className, children, onClick, 'aria-keyshortcuts': ariaKeyShortcuts, draggable, ...props }: ButtonProps): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  $7705c033048f6da7$export$353f5b6fc5456de1
3
- } from "../chunks/chunk-JOF663EG.js";
3
+ } from "../chunks/chunk-QHHMKJUO.js";
4
4
  import "../chunks/chunk-NUFRM6SI.js";
5
- import "../chunks/chunk-RE523BQ7.js";
5
+ import "../chunks/chunk-HOETF6HN.js";
6
6
  import "../chunks/chunk-RKDPDEF7.js";
7
7
  import "../chunks/chunk-PSSMQKAH.js";
8
8
  import {
@@ -18,9 +18,9 @@ import {
18
18
 
19
19
  // src/components/Button.module.css
20
20
  var Button_default = {
21
- "Button": "alinea-Button",
22
21
  "Button-icon": "alinea-Button-icon",
23
- "ButtonIcon": "alinea-Button-icon"
22
+ "ButtonIcon": "alinea-Button-icon",
23
+ "Button": "alinea-Button"
24
24
  };
25
25
 
26
26
  // src/components/Button.tsx
@@ -42,6 +42,7 @@ function Button({
42
42
  children,
43
43
  onClick,
44
44
  "aria-keyshortcuts": ariaKeyShortcuts,
45
+ draggable,
45
46
  ...props
46
47
  }) {
47
48
  const attributes = {
@@ -60,6 +61,7 @@ function Button({
60
61
  ...attributes,
61
62
  "aria-keyshortcuts": ariaKeyShortcuts,
62
63
  "aria-disabled": disabled || void 0,
64
+ draggable,
63
65
  onClick: (event) => {
64
66
  if (disabled) event.preventDefault();
65
67
  else onClick?.(event);
@@ -74,9 +76,16 @@ function Button({
74
76
  ...attributes,
75
77
  isDisabled: disabled,
76
78
  isPending: loading,
77
- render: ariaKeyShortcuts ? (
78
- // react-aria does not pass aria-keyshortcuts on to the element
79
- (domProps) => /* @__PURE__ */ jsx("button", { ...domProps, "aria-keyshortcuts": ariaKeyShortcuts })
79
+ render: ariaKeyShortcuts || draggable ? (
80
+ // react-aria does not pass these on to the element
81
+ (domProps) => /* @__PURE__ */ jsx(
82
+ "button",
83
+ {
84
+ ...domProps,
85
+ "aria-keyshortcuts": ariaKeyShortcuts,
86
+ draggable
87
+ }
88
+ )
80
89
  ) : void 0,
81
90
  onClick: onClick && ((event) => onClick(event)),
82
91
  children: [
@@ -9,11 +9,11 @@ import {
9
9
  $6f9a1820b787aac7$export$e11f8ba65d857bff,
10
10
  $6f9a1820b787aac7$export$e1aef45b828286de,
11
11
  $7705c033048f6da7$export$353f5b6fc5456de1
12
- } from "../chunks/chunk-JOF663EG.js";
12
+ } from "../chunks/chunk-QHHMKJUO.js";
13
13
  import "../chunks/chunk-NUFRM6SI.js";
14
14
  import {
15
15
  $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7
16
- } from "../chunks/chunk-RE523BQ7.js";
16
+ } from "../chunks/chunk-HOETF6HN.js";
17
17
  import "../chunks/chunk-RKDPDEF7.js";
18
18
  import {
19
19
  $ad063034c8620db8$export$2061056d06d7cdf7
@@ -32,33 +32,33 @@ import { Locale } from "./internal/Locale.js";
32
32
 
33
33
  // src/components/Calendar.module.css
34
34
  var Calendar_default = {
35
- "is-selected": "alinea-is-selected",
36
- "isSelected": "alinea-is-selected",
35
+ "Calendar-day": "alinea-Calendar-day",
36
+ "CalendarDay": "alinea-Calendar-day",
37
37
  "Calendar-header": "alinea-Calendar-header",
38
38
  "CalendarHeader": "alinea-Calendar-header",
39
- "Calendar": "alinea-Calendar",
39
+ "Calendar-heading": "alinea-Calendar-heading",
40
+ "CalendarHeading": "alinea-Calendar-heading",
40
41
  "is-today": "alinea-is-today",
41
42
  "isToday": "alinea-is-today",
42
- "is-unavailable": "alinea-is-unavailable",
43
- "isUnavailable": "alinea-is-unavailable",
44
- "is-rangeStart": "alinea-is-rangeStart",
45
- "isRangeStart": "alinea-is-rangeStart",
46
- "Calendar-grid": "alinea-Calendar-grid",
47
- "CalendarGrid": "alinea-Calendar-grid",
48
- "is-rangeEnd": "alinea-is-rangeEnd",
49
- "isRangeEnd": "alinea-is-rangeEnd",
50
43
  "is-weekStart": "alinea-is-weekStart",
51
44
  "isWeekStart": "alinea-is-weekStart",
45
+ "Calendar": "alinea-Calendar",
52
46
  "is-weekEnd": "alinea-is-weekEnd",
53
47
  "isWeekEnd": "alinea-is-weekEnd",
54
- "Calendar-day": "alinea-Calendar-day",
55
- "CalendarDay": "alinea-Calendar-day",
56
- "Calendar-heading": "alinea-Calendar-heading",
57
- "CalendarHeading": "alinea-Calendar-heading",
58
- "Calendar-nav": "alinea-Calendar-nav",
59
- "CalendarNav": "alinea-Calendar-nav",
48
+ "is-selected": "alinea-is-selected",
49
+ "isSelected": "alinea-is-selected",
50
+ "is-rangeEnd": "alinea-is-rangeEnd",
51
+ "isRangeEnd": "alinea-is-rangeEnd",
52
+ "Calendar-grid": "alinea-Calendar-grid",
53
+ "CalendarGrid": "alinea-Calendar-grid",
54
+ "is-unavailable": "alinea-is-unavailable",
55
+ "isUnavailable": "alinea-is-unavailable",
60
56
  "Calendar-weekday": "alinea-Calendar-weekday",
61
- "CalendarWeekday": "alinea-Calendar-weekday"
57
+ "CalendarWeekday": "alinea-Calendar-weekday",
58
+ "is-rangeStart": "alinea-is-rangeStart",
59
+ "isRangeStart": "alinea-is-rangeStart",
60
+ "Calendar-nav": "alinea-Calendar-nav",
61
+ "CalendarNav": "alinea-Calendar-nav"
62
62
  };
63
63
 
64
64
  // src/components/Calendar.tsx
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  $ed8ccb2e23e76301$export$48513f6b9f8ce62d,
3
3
  $efe09c6d1c304b50$export$9afb8bc826b033ea
4
- } from "../chunks/chunk-JOF663EG.js";
4
+ } from "../chunks/chunk-QHHMKJUO.js";
5
5
  import "../chunks/chunk-NUFRM6SI.js";
6
- import "../chunks/chunk-RE523BQ7.js";
6
+ import "../chunks/chunk-HOETF6HN.js";
7
7
  import "../chunks/chunk-RKDPDEF7.js";
8
8
  import "../chunks/chunk-PSSMQKAH.js";
9
9
  import {
@@ -18,15 +18,15 @@ import { useId } from "react";
18
18
  var Checkbox_default = {
19
19
  "Checkbox-content": "alinea-Checkbox-content",
20
20
  "CheckboxContent": "alinea-Checkbox-content",
21
+ "Checkbox-label": "alinea-Checkbox-label",
22
+ "CheckboxLabel": "alinea-Checkbox-label",
21
23
  "Checkbox-mark": "alinea-Checkbox-mark",
22
24
  "CheckboxMark": "alinea-Checkbox-mark",
23
25
  "Checkbox": "alinea-Checkbox",
24
- "Checkbox-label": "alinea-Checkbox-label",
25
- "CheckboxLabel": "alinea-Checkbox-label",
26
- "is-focusVisible": "alinea-is-focusVisible",
27
- "isFocusVisible": "alinea-is-focusVisible",
28
26
  "Checkbox-box": "alinea-Checkbox-box",
29
- "CheckboxBox": "alinea-Checkbox-box"
27
+ "CheckboxBox": "alinea-Checkbox-box",
28
+ "is-focusVisible": "alinea-is-focusVisible",
29
+ "isFocusVisible": "alinea-is-focusVisible"
30
30
  };
31
31
 
32
32
  // src/components/Checkbox.tsx
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  $ed8ccb2e23e76301$export$4aa08d5625cb8ead
3
- } from "../chunks/chunk-JOF663EG.js";
3
+ } from "../chunks/chunk-QHHMKJUO.js";
4
4
  import "../chunks/chunk-NUFRM6SI.js";
5
- import "../chunks/chunk-RE523BQ7.js";
5
+ import "../chunks/chunk-HOETF6HN.js";
6
6
  import "../chunks/chunk-RKDPDEF7.js";
7
7
  import "../chunks/chunk-PSSMQKAH.js";
8
8
  import {
@@ -12,9 +12,9 @@ import "../chunks/chunk-CQ52GEHY.js";
12
12
 
13
13
  // src/components/CheckboxGroup.module.css
14
14
  var CheckboxGroup_default = {
15
+ "CheckboxGroup": "alinea-CheckboxGroup",
15
16
  "CheckboxGroup-items": "alinea-CheckboxGroup-items",
16
- "CheckboxGroupItems": "alinea-CheckboxGroup-items",
17
- "CheckboxGroup": "alinea-CheckboxGroup"
17
+ "CheckboxGroupItems": "alinea-CheckboxGroup-items"
18
18
  };
19
19
 
20
20
  // src/components/CheckboxGroup.tsx
@@ -5,8 +5,8 @@ import "../chunks/chunk-CQ52GEHY.js";
5
5
 
6
6
  // src/components/Code.module.css
7
7
  var Code_default = {
8
- "CodeBlock": "alinea-CodeBlock",
9
- "Code": "alinea-Code"
8
+ "Code": "alinea-Code",
9
+ "CodeBlock": "alinea-CodeBlock"
10
10
  };
11
11
 
12
12
  // src/components/Code.tsx
@@ -14,13 +14,13 @@ import { FoldIcon } from "./FoldIcon.js";
14
14
 
15
15
  // src/components/Collapsible.module.css
16
16
  var Collapsible_default = {
17
- "CollapsibleTrigger-title": "alinea-CollapsibleTrigger-title",
18
- "CollapsibleTriggerTitle": "alinea-CollapsibleTrigger-title",
19
17
  "CollapsibleTrigger-icon": "alinea-CollapsibleTrigger-icon",
20
18
  "CollapsibleTriggerIcon": "alinea-CollapsibleTrigger-icon",
21
19
  "CollapsibleTrigger": "alinea-CollapsibleTrigger",
22
20
  "Collapsible": "alinea-Collapsible",
23
- "CollapsibleContent": "alinea-CollapsibleContent"
21
+ "CollapsibleContent": "alinea-CollapsibleContent",
22
+ "CollapsibleTrigger-title": "alinea-CollapsibleTrigger-title",
23
+ "CollapsibleTriggerTitle": "alinea-CollapsibleTrigger-title"
24
24
  };
25
25
 
26
26
  // src/components/Collapsible.tsx
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  $eeaff5a2d2421ecc$export$cae13e90592f246a
3
- } from "../chunks/chunk-JOF663EG.js";
3
+ } from "../chunks/chunk-QHHMKJUO.js";
4
4
  import "../chunks/chunk-NUFRM6SI.js";
5
- import "../chunks/chunk-RE523BQ7.js";
5
+ import "../chunks/chunk-HOETF6HN.js";
6
6
  import "../chunks/chunk-RKDPDEF7.js";
7
7
  import "../chunks/chunk-PSSMQKAH.js";
8
8
  import {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  $a36727cf8b43b57f$export$abcd89c27081c2ef,
3
3
  $a36727cf8b43b57f$export$b46792416e3d8515
4
- } from "../chunks/chunk-JOF663EG.js";
4
+ } from "../chunks/chunk-QHHMKJUO.js";
5
5
  import "../chunks/chunk-NUFRM6SI.js";
6
- import "../chunks/chunk-RE523BQ7.js";
6
+ import "../chunks/chunk-HOETF6HN.js";
7
7
  import "../chunks/chunk-RKDPDEF7.js";
8
8
  import "../chunks/chunk-PSSMQKAH.js";
9
9
  import {
@@ -4,9 +4,9 @@ import {
4
4
  $928221da08ecbc62$export$41f133550aa26f48,
5
5
  $dbdc5e6e7ce01b4b$export$72b9695b8216309a,
6
6
  $dbdc5e6e7ce01b4b$export$c02625b26074192c
7
- } from "../chunks/chunk-JOF663EG.js";
7
+ } from "../chunks/chunk-QHHMKJUO.js";
8
8
  import "../chunks/chunk-NUFRM6SI.js";
9
- import "../chunks/chunk-RE523BQ7.js";
9
+ import "../chunks/chunk-HOETF6HN.js";
10
10
  import "../chunks/chunk-RKDPDEF7.js";
11
11
  import "../chunks/chunk-PSSMQKAH.js";
12
12
  import {
@@ -24,18 +24,18 @@ import { IcRoundClose, IcRoundKeyboardArrowDown } from "alinea/dashboard/icons";
24
24
 
25
25
  // src/components/ComboBox.module.css
26
26
  var ComboBox_default = {
27
- "ComboBoxTrigger-input": "alinea-ComboBoxTrigger-input",
28
- "ComboBoxTriggerInput": "alinea-ComboBoxTrigger-input",
27
+ "ComboBoxTrigger": "alinea-ComboBoxTrigger",
29
28
  "ComboBoxContent-list": "alinea-ComboBoxContent-list",
30
29
  "ComboBoxContentList": "alinea-ComboBoxContent-list",
31
30
  "ComboBoxContent-empty": "alinea-ComboBoxContent-empty",
32
31
  "ComboBoxContentEmpty": "alinea-ComboBoxContent-empty",
33
- "ComboBox": "alinea-ComboBox",
34
- "ComboBoxTrigger": "alinea-ComboBoxTrigger",
35
32
  "ComboBoxTrigger-action": "alinea-ComboBoxTrigger-action",
36
33
  "ComboBoxTriggerAction": "alinea-ComboBoxTrigger-action",
37
34
  "ComboBoxTrigger-arrow": "alinea-ComboBoxTrigger-arrow",
38
- "ComboBoxTriggerArrow": "alinea-ComboBoxTrigger-arrow"
35
+ "ComboBoxTriggerArrow": "alinea-ComboBoxTrigger-arrow",
36
+ "ComboBoxTrigger-input": "alinea-ComboBoxTrigger-input",
37
+ "ComboBoxTriggerInput": "alinea-ComboBoxTrigger-input",
38
+ "ComboBox": "alinea-ComboBox"
39
39
  };
40
40
 
41
41
  // src/components/ComboBox.tsx
@@ -6,11 +6,11 @@ import {
6
6
  $928221da08ecbc62$export$a11e76429ed99b4,
7
7
  $928221da08ecbc62$export$dca12b0bb56e4fc,
8
8
  $e28ab3efe3e87743$export$1ff3c3f08ae963c0
9
- } from "../chunks/chunk-JOF663EG.js";
9
+ } from "../chunks/chunk-QHHMKJUO.js";
10
10
  import "../chunks/chunk-NUFRM6SI.js";
11
11
  import {
12
12
  $ef182bb9912241d8$export$3274cf84b703fff
13
- } from "../chunks/chunk-RE523BQ7.js";
13
+ } from "../chunks/chunk-HOETF6HN.js";
14
14
  import "../chunks/chunk-RKDPDEF7.js";
15
15
  import "../chunks/chunk-PSSMQKAH.js";
16
16
  import {
@@ -27,23 +27,23 @@ import { IcRoundSearch } from "alinea/dashboard/icons";
27
27
 
28
28
  // src/components/Command.module.css
29
29
  var Command_default = {
30
+ "CommandGroup-heading": "alinea-CommandGroup-heading",
31
+ "CommandGroupHeading": "alinea-CommandGroup-heading",
30
32
  "CommandInput": "alinea-CommandInput",
31
33
  "Command": "alinea-Command",
32
- "is-highlighted": "alinea-is-highlighted",
33
- "isHighlighted": "alinea-is-highlighted",
34
- "CommandList": "alinea-CommandList",
35
34
  "CommandEmpty": "alinea-CommandEmpty",
36
- "CommandGroup-heading": "alinea-CommandGroup-heading",
37
- "CommandGroupHeading": "alinea-CommandGroup-heading",
38
- "is-focusVisible": "alinea-is-focusVisible",
39
- "isFocusVisible": "alinea-is-focusVisible",
35
+ "CommandGroup": "alinea-CommandGroup",
36
+ "CommandItem": "alinea-CommandItem",
37
+ "CommandSeparator": "alinea-CommandSeparator",
40
38
  "CommandItem-icon": "alinea-CommandItem-icon",
41
39
  "CommandItemIcon": "alinea-CommandItem-icon",
42
40
  "CommandItem-label": "alinea-CommandItem-label",
43
41
  "CommandItemLabel": "alinea-CommandItem-label",
44
- "CommandItem": "alinea-CommandItem",
45
- "CommandSeparator": "alinea-CommandSeparator",
46
- "CommandGroup": "alinea-CommandGroup"
42
+ "is-focusVisible": "alinea-is-focusVisible",
43
+ "isFocusVisible": "alinea-is-focusVisible",
44
+ "is-highlighted": "alinea-is-highlighted",
45
+ "isHighlighted": "alinea-is-highlighted",
46
+ "CommandList": "alinea-CommandList"
47
47
  };
48
48
 
49
49
  // src/components/Command.tsx
@@ -105,7 +105,8 @@ function CommandInput({
105
105
  ...props,
106
106
  "aria-label": ariaLabel ?? (props["aria-labelledby"] ? void 0 : "Search"),
107
107
  className: styles.CommandInput(dist_default.merge({ className })),
108
- icon
108
+ icon,
109
+ variant: "inline"
109
110
  }
110
111
  );
111
112
  }