@velocity-astro/cms-admin 0.0.0-stage → 0.1.0-beta.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 (413) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -2
  3. package/app-directory.d.mts +2 -0
  4. package/app-directory.mjs +8 -0
  5. package/app-dist/assets/RichTextEditor-Ci93Tlgw.js +135 -0
  6. package/app-dist/assets/index-CczBKhBz.css +2 -0
  7. package/app-dist/assets/index-DOIcFJow.js +80 -0
  8. package/app-dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  9. package/app-dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  10. package/app-dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  11. package/app-dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  12. package/app-dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  13. package/app-dist/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2 +0 -0
  14. package/app-dist/assets/manrope-greek-wght-normal-DL7QRZyv.woff2 +0 -0
  15. package/app-dist/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2 +0 -0
  16. package/app-dist/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
  17. package/app-dist/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2 +0 -0
  18. package/app-dist/assets/outfit-latin-ext-wght-normal-DdQaqQDo.woff2 +0 -0
  19. package/app-dist/assets/outfit-latin-wght-normal-Bc-8i84L.woff2 +0 -0
  20. package/app-dist/index.html +15 -0
  21. package/dist/app/AdminApp.d.ts +34 -0
  22. package/dist/app/AdminApp.d.ts.map +1 -0
  23. package/dist/app/AdminApp.js +26 -0
  24. package/dist/app/AdminApp.js.map +1 -0
  25. package/dist/app/AdminLayout.d.ts +7 -0
  26. package/dist/app/AdminLayout.d.ts.map +1 -0
  27. package/dist/app/AdminLayout.js +128 -0
  28. package/dist/app/AdminLayout.js.map +1 -0
  29. package/dist/app/NavigationBridge.d.ts +6 -0
  30. package/dist/app/NavigationBridge.d.ts.map +1 -0
  31. package/dist/app/NavigationBridge.js +15 -0
  32. package/dist/app/NavigationBridge.js.map +1 -0
  33. package/dist/app/PasskeysDialog.d.ts +5 -0
  34. package/dist/app/PasskeysDialog.d.ts.map +1 -0
  35. package/dist/app/PasskeysDialog.js +51 -0
  36. package/dist/app/PasskeysDialog.js.map +1 -0
  37. package/dist/app/RequestState.d.ts +20 -0
  38. package/dist/app/RequestState.d.ts.map +1 -0
  39. package/dist/app/RequestState.js +33 -0
  40. package/dist/app/RequestState.js.map +1 -0
  41. package/dist/app/paths.d.ts +29 -0
  42. package/dist/app/paths.d.ts.map +1 -0
  43. package/dist/app/paths.js +29 -0
  44. package/dist/app/paths.js.map +1 -0
  45. package/dist/app/routes.d.ts +4 -0
  46. package/dist/app/routes.d.ts.map +1 -0
  47. package/dist/app/routes.js +53 -0
  48. package/dist/app/routes.js.map +1 -0
  49. package/dist/app/use-go.d.ts +7 -0
  50. package/dist/app/use-go.d.ts.map +1 -0
  51. package/dist/app/use-go.js +11 -0
  52. package/dist/app/use-go.js.map +1 -0
  53. package/dist/client/admin-client.d.ts +317 -0
  54. package/dist/client/admin-client.d.ts.map +1 -0
  55. package/dist/client/admin-client.js +2 -0
  56. package/dist/client/admin-client.js.map +1 -0
  57. package/dist/client/client-context.d.ts +10 -0
  58. package/dist/client/client-context.d.ts.map +1 -0
  59. package/dist/client/client-context.js +14 -0
  60. package/dist/client/client-context.js.map +1 -0
  61. package/dist/client/errors.d.ts +22 -0
  62. package/dist/client/errors.d.ts.map +1 -0
  63. package/dist/client/errors.js +17 -0
  64. package/dist/client/errors.js.map +1 -0
  65. package/dist/client/http-client.d.ts +122 -0
  66. package/dist/client/http-client.d.ts.map +1 -0
  67. package/dist/client/http-client.js +366 -0
  68. package/dist/client/http-client.js.map +1 -0
  69. package/dist/client/queries.d.ts +213 -0
  70. package/dist/client/queries.d.ts.map +1 -0
  71. package/dist/client/queries.js +672 -0
  72. package/dist/client/queries.js.map +1 -0
  73. package/dist/fields/BlocksControl.d.ts +8 -0
  74. package/dist/fields/BlocksControl.d.ts.map +1 -0
  75. package/dist/fields/BlocksControl.js +154 -0
  76. package/dist/fields/BlocksControl.js.map +1 -0
  77. package/dist/fields/CustomFieldsDialog.d.ts +7 -0
  78. package/dist/fields/CustomFieldsDialog.d.ts.map +1 -0
  79. package/dist/fields/CustomFieldsDialog.js +29 -0
  80. package/dist/fields/CustomFieldsDialog.js.map +1 -0
  81. package/dist/fields/FieldEditor.d.ts +17 -0
  82. package/dist/fields/FieldEditor.d.ts.map +1 -0
  83. package/dist/fields/FieldEditor.js +25 -0
  84. package/dist/fields/FieldEditor.js.map +1 -0
  85. package/dist/fields/FieldGrid.d.ts +19 -0
  86. package/dist/fields/FieldGrid.d.ts.map +1 -0
  87. package/dist/fields/FieldGrid.js +36 -0
  88. package/dist/fields/FieldGrid.js.map +1 -0
  89. package/dist/fields/FieldSetDialog.d.ts +11 -0
  90. package/dist/fields/FieldSetDialog.d.ts.map +1 -0
  91. package/dist/fields/FieldSetDialog.js +73 -0
  92. package/dist/fields/FieldSetDialog.js.map +1 -0
  93. package/dist/fields/FieldSetEditor.d.ts +9 -0
  94. package/dist/fields/FieldSetEditor.d.ts.map +1 -0
  95. package/dist/fields/FieldSetEditor.js +49 -0
  96. package/dist/fields/FieldSetEditor.js.map +1 -0
  97. package/dist/fields/FieldSummary.d.ts +9 -0
  98. package/dist/fields/FieldSummary.d.ts.map +1 -0
  99. package/dist/fields/FieldSummary.js +28 -0
  100. package/dist/fields/FieldSummary.js.map +1 -0
  101. package/dist/fields/LinkControl.d.ts +8 -0
  102. package/dist/fields/LinkControl.d.ts.map +1 -0
  103. package/dist/fields/LinkControl.js +54 -0
  104. package/dist/fields/LinkControl.js.map +1 -0
  105. package/dist/fields/block-icons.d.ts +4 -0
  106. package/dist/fields/block-icons.d.ts.map +1 -0
  107. package/dist/fields/block-icons.js +51 -0
  108. package/dist/fields/block-icons.js.map +1 -0
  109. package/dist/fields/controls.d.ts +4 -0
  110. package/dist/fields/controls.d.ts.map +1 -0
  111. package/dist/fields/controls.js +292 -0
  112. package/dist/fields/controls.js.map +1 -0
  113. package/dist/fields/custom-values.d.ts +23 -0
  114. package/dist/fields/custom-values.d.ts.map +1 -0
  115. package/dist/fields/custom-values.js +30 -0
  116. package/dist/fields/custom-values.js.map +1 -0
  117. package/dist/fields/field-control.d.ts +72 -0
  118. package/dist/fields/field-control.d.ts.map +1 -0
  119. package/dist/fields/field-control.js +19 -0
  120. package/dist/fields/field-control.js.map +1 -0
  121. package/dist/fields/field-set.d.ts +39 -0
  122. package/dist/fields/field-set.d.ts.map +1 -0
  123. package/dist/fields/field-set.js +24 -0
  124. package/dist/fields/field-set.js.map +1 -0
  125. package/dist/fields/index.d.ts +7 -0
  126. package/dist/fields/index.d.ts.map +1 -0
  127. package/dist/fields/index.js +7 -0
  128. package/dist/fields/index.js.map +1 -0
  129. package/dist/fields/page-focus.d.ts +23 -0
  130. package/dist/fields/page-focus.d.ts.map +1 -0
  131. package/dist/fields/page-focus.js +14 -0
  132. package/dist/fields/page-focus.js.map +1 -0
  133. package/dist/fields/settings.d.ts +40 -0
  134. package/dist/fields/settings.d.ts.map +1 -0
  135. package/dist/fields/settings.js +92 -0
  136. package/dist/fields/settings.js.map +1 -0
  137. package/dist/index.d.ts +8 -0
  138. package/dist/index.d.ts.map +1 -0
  139. package/dist/index.js +6 -0
  140. package/dist/index.js.map +1 -0
  141. package/dist/lib/arrangement.d.ts +20 -0
  142. package/dist/lib/arrangement.d.ts.map +1 -0
  143. package/dist/lib/arrangement.js +52 -0
  144. package/dist/lib/arrangement.js.map +1 -0
  145. package/dist/lib/content.d.ts +45 -0
  146. package/dist/lib/content.d.ts.map +1 -0
  147. package/dist/lib/content.js +99 -0
  148. package/dist/lib/content.js.map +1 -0
  149. package/dist/lib/csv.d.ts +10 -0
  150. package/dist/lib/csv.d.ts.map +1 -0
  151. package/dist/lib/csv.js +54 -0
  152. package/dist/lib/csv.js.map +1 -0
  153. package/dist/lib/day-part.d.ts +5 -0
  154. package/dist/lib/day-part.d.ts.map +1 -0
  155. package/dist/lib/day-part.js +10 -0
  156. package/dist/lib/day-part.js.map +1 -0
  157. package/dist/lib/download.d.ts +6 -0
  158. package/dist/lib/download.d.ts.map +1 -0
  159. package/dist/lib/download.js +13 -0
  160. package/dist/lib/download.js.map +1 -0
  161. package/dist/lib/keys.d.ts +5 -0
  162. package/dist/lib/keys.d.ts.map +1 -0
  163. package/dist/lib/keys.js +26 -0
  164. package/dist/lib/keys.js.map +1 -0
  165. package/dist/lib/prepare-image.d.ts +11 -0
  166. package/dist/lib/prepare-image.d.ts.map +1 -0
  167. package/dist/lib/prepare-image.js +52 -0
  168. package/dist/lib/prepare-image.js.map +1 -0
  169. package/dist/lib/preview-tab.d.ts +14 -0
  170. package/dist/lib/preview-tab.d.ts.map +1 -0
  171. package/dist/lib/preview-tab.js +24 -0
  172. package/dist/lib/preview-tab.js.map +1 -0
  173. package/dist/lib/relative-time.d.ts +3 -0
  174. package/dist/lib/relative-time.d.ts.map +1 -0
  175. package/dist/lib/relative-time.js +18 -0
  176. package/dist/lib/relative-time.js.map +1 -0
  177. package/dist/lib/slug.d.ts +3 -0
  178. package/dist/lib/slug.d.ts.map +1 -0
  179. package/dist/lib/slug.js +10 -0
  180. package/dist/lib/slug.js.map +1 -0
  181. package/dist/lib/type-icon.d.ts +3 -0
  182. package/dist/lib/type-icon.d.ts.map +1 -0
  183. package/dist/lib/type-icon.js +27 -0
  184. package/dist/lib/type-icon.js.map +1 -0
  185. package/dist/lib/use-closing.d.ts +19 -0
  186. package/dist/lib/use-closing.d.ts.map +1 -0
  187. package/dist/lib/use-closing.js +24 -0
  188. package/dist/lib/use-closing.js.map +1 -0
  189. package/dist/lib/use-leave-guard.d.ts +16 -0
  190. package/dist/lib/use-leave-guard.d.ts.map +1 -0
  191. package/dist/lib/use-leave-guard.js +29 -0
  192. package/dist/lib/use-leave-guard.js.map +1 -0
  193. package/dist/messages/en.d.ts +1068 -0
  194. package/dist/messages/en.d.ts.map +1 -0
  195. package/dist/messages/en.js +1041 -0
  196. package/dist/messages/en.js.map +1 -0
  197. package/dist/messages/messages-context.d.ts +17 -0
  198. package/dist/messages/messages-context.d.ts.map +1 -0
  199. package/dist/messages/messages-context.js +16 -0
  200. package/dist/messages/messages-context.js.map +1 -0
  201. package/dist/plugins/PluginBoundary.d.ts +21 -0
  202. package/dist/plugins/PluginBoundary.d.ts.map +1 -0
  203. package/dist/plugins/PluginBoundary.js +20 -0
  204. package/dist/plugins/PluginBoundary.js.map +1 -0
  205. package/dist/plugins/plugin-editor.d.ts +112 -0
  206. package/dist/plugins/plugin-editor.d.ts.map +1 -0
  207. package/dist/plugins/plugin-editor.js +142 -0
  208. package/dist/plugins/plugin-editor.js.map +1 -0
  209. package/dist/plugins/plugin-ui.d.ts +45 -0
  210. package/dist/plugins/plugin-ui.d.ts.map +1 -0
  211. package/dist/plugins/plugin-ui.js +44 -0
  212. package/dist/plugins/plugin-ui.js.map +1 -0
  213. package/dist/screens/Contact/ContactDeals.d.ts +6 -0
  214. package/dist/screens/Contact/ContactDeals.d.ts.map +1 -0
  215. package/dist/screens/Contact/ContactDeals.js +41 -0
  216. package/dist/screens/Contact/ContactDeals.js.map +1 -0
  217. package/dist/screens/Contact/ContactScreen.d.ts +3 -0
  218. package/dist/screens/Contact/ContactScreen.d.ts.map +1 -0
  219. package/dist/screens/Contact/ContactScreen.js +153 -0
  220. package/dist/screens/Contact/ContactScreen.js.map +1 -0
  221. package/dist/screens/Contact/ContactWork.d.ts +6 -0
  222. package/dist/screens/Contact/ContactWork.d.ts.map +1 -0
  223. package/dist/screens/Contact/ContactWork.js +50 -0
  224. package/dist/screens/Contact/ContactWork.js.map +1 -0
  225. package/dist/screens/Contacts/ContactsScreen.d.ts +3 -0
  226. package/dist/screens/Contacts/ContactsScreen.d.ts.map +1 -0
  227. package/dist/screens/Contacts/ContactsScreen.js +127 -0
  228. package/dist/screens/Contacts/ContactsScreen.js.map +1 -0
  229. package/dist/screens/Contacts/ImportDialog.d.ts +5 -0
  230. package/dist/screens/Contacts/ImportDialog.d.ts.map +1 -0
  231. package/dist/screens/Contacts/ImportDialog.js +90 -0
  232. package/dist/screens/Contacts/ImportDialog.js.map +1 -0
  233. package/dist/screens/Contacts/PipelineBoard.d.ts +11 -0
  234. package/dist/screens/Contacts/PipelineBoard.d.ts.map +1 -0
  235. package/dist/screens/Contacts/PipelineBoard.js +74 -0
  236. package/dist/screens/Contacts/PipelineBoard.js.map +1 -0
  237. package/dist/screens/Contacts/StagesDialog.d.ts +8 -0
  238. package/dist/screens/Contacts/StagesDialog.d.ts.map +1 -0
  239. package/dist/screens/Contacts/StagesDialog.js +58 -0
  240. package/dist/screens/Contacts/StagesDialog.js.map +1 -0
  241. package/dist/screens/Contacts/contact-source.d.ts +4 -0
  242. package/dist/screens/Contacts/contact-source.d.ts.map +1 -0
  243. package/dist/screens/Contacts/contact-source.js +18 -0
  244. package/dist/screens/Contacts/contact-source.js.map +1 -0
  245. package/dist/screens/Contacts/pipeline.d.ts +23 -0
  246. package/dist/screens/Contacts/pipeline.d.ts.map +1 -0
  247. package/dist/screens/Contacts/pipeline.js +57 -0
  248. package/dist/screens/Contacts/pipeline.js.map +1 -0
  249. package/dist/screens/ContentList/ContentListScreen.d.ts +3 -0
  250. package/dist/screens/ContentList/ContentListScreen.d.ts.map +1 -0
  251. package/dist/screens/ContentList/ContentListScreen.js +105 -0
  252. package/dist/screens/ContentList/ContentListScreen.js.map +1 -0
  253. package/dist/screens/ContentType/ContentTypeScreen.d.ts +3 -0
  254. package/dist/screens/ContentType/ContentTypeScreen.d.ts.map +1 -0
  255. package/dist/screens/ContentType/ContentTypeScreen.js +133 -0
  256. package/dist/screens/ContentType/ContentTypeScreen.js.map +1 -0
  257. package/dist/screens/ContentType/FieldDialog.d.ts +12 -0
  258. package/dist/screens/ContentType/FieldDialog.d.ts.map +1 -0
  259. package/dist/screens/ContentType/FieldDialog.js +110 -0
  260. package/dist/screens/ContentType/FieldDialog.js.map +1 -0
  261. package/dist/screens/ContentType/SectionsDialog.d.ts +7 -0
  262. package/dist/screens/ContentType/SectionsDialog.d.ts.map +1 -0
  263. package/dist/screens/ContentType/SectionsDialog.js +67 -0
  264. package/dist/screens/ContentType/SectionsDialog.js.map +1 -0
  265. package/dist/screens/ContentType/SettingsDialog.d.ts +7 -0
  266. package/dist/screens/ContentType/SettingsDialog.d.ts.map +1 -0
  267. package/dist/screens/ContentType/SettingsDialog.js +75 -0
  268. package/dist/screens/ContentType/SettingsDialog.js.map +1 -0
  269. package/dist/screens/ContentTypes/ContentTypesScreen.d.ts +3 -0
  270. package/dist/screens/ContentTypes/ContentTypesScreen.d.ts.map +1 -0
  271. package/dist/screens/ContentTypes/ContentTypesScreen.js +103 -0
  272. package/dist/screens/ContentTypes/ContentTypesScreen.js.map +1 -0
  273. package/dist/screens/Deals/DealDialog.d.ts +16 -0
  274. package/dist/screens/Deals/DealDialog.d.ts.map +1 -0
  275. package/dist/screens/Deals/DealDialog.js +84 -0
  276. package/dist/screens/Deals/DealDialog.js.map +1 -0
  277. package/dist/screens/Deals/DealsScreen.d.ts +3 -0
  278. package/dist/screens/Deals/DealsScreen.d.ts.map +1 -0
  279. package/dist/screens/Deals/DealsScreen.js +93 -0
  280. package/dist/screens/Deals/DealsScreen.js.map +1 -0
  281. package/dist/screens/Deals/deal-subject.d.ts +30 -0
  282. package/dist/screens/Deals/deal-subject.d.ts.map +1 -0
  283. package/dist/screens/Deals/deal-subject.js +57 -0
  284. package/dist/screens/Deals/deal-subject.js.map +1 -0
  285. package/dist/screens/EntryEditor/EntryDeals.d.ts +11 -0
  286. package/dist/screens/EntryEditor/EntryDeals.d.ts.map +1 -0
  287. package/dist/screens/EntryEditor/EntryDeals.js +45 -0
  288. package/dist/screens/EntryEditor/EntryDeals.js.map +1 -0
  289. package/dist/screens/EntryEditor/EntryEditorScreen.d.ts +3 -0
  290. package/dist/screens/EntryEditor/EntryEditorScreen.d.ts.map +1 -0
  291. package/dist/screens/EntryEditor/EntryEditorScreen.js +65 -0
  292. package/dist/screens/EntryEditor/EntryEditorScreen.js.map +1 -0
  293. package/dist/screens/EntryEditor/EntryForm.d.ts +22 -0
  294. package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -0
  295. package/dist/screens/EntryEditor/EntryForm.js +279 -0
  296. package/dist/screens/EntryEditor/EntryForm.js.map +1 -0
  297. package/dist/screens/EntryEditor/HistoryDialog.d.ts +16 -0
  298. package/dist/screens/EntryEditor/HistoryDialog.d.ts.map +1 -0
  299. package/dist/screens/EntryEditor/HistoryDialog.js +52 -0
  300. package/dist/screens/EntryEditor/HistoryDialog.js.map +1 -0
  301. package/dist/screens/EntryEditor/PagePane.d.ts +15 -0
  302. package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -0
  303. package/dist/screens/EntryEditor/PagePane.js +25 -0
  304. package/dist/screens/EntryEditor/PagePane.js.map +1 -0
  305. package/dist/screens/EntryEditor/ScheduleDialog.d.ts +15 -0
  306. package/dist/screens/EntryEditor/ScheduleDialog.d.ts.map +1 -0
  307. package/dist/screens/EntryEditor/ScheduleDialog.js +70 -0
  308. package/dist/screens/EntryEditor/ScheduleDialog.js.map +1 -0
  309. package/dist/screens/Form/FormFields.d.ts +9 -0
  310. package/dist/screens/Form/FormFields.d.ts.map +1 -0
  311. package/dist/screens/Form/FormFields.js +26 -0
  312. package/dist/screens/Form/FormFields.js.map +1 -0
  313. package/dist/screens/Form/FormScreen.d.ts +3 -0
  314. package/dist/screens/Form/FormScreen.d.ts.map +1 -0
  315. package/dist/screens/Form/FormScreen.js +58 -0
  316. package/dist/screens/Form/FormScreen.js.map +1 -0
  317. package/dist/screens/Form/FormSettingsDialog.d.ts +8 -0
  318. package/dist/screens/Form/FormSettingsDialog.d.ts.map +1 -0
  319. package/dist/screens/Form/FormSettingsDialog.js +78 -0
  320. package/dist/screens/Form/FormSettingsDialog.js.map +1 -0
  321. package/dist/screens/Form/Submissions.d.ts +6 -0
  322. package/dist/screens/Form/Submissions.d.ts.map +1 -0
  323. package/dist/screens/Form/Submissions.js +98 -0
  324. package/dist/screens/Form/Submissions.js.map +1 -0
  325. package/dist/screens/Form/form-fields.d.ts +3 -0
  326. package/dist/screens/Form/form-fields.d.ts.map +1 -0
  327. package/dist/screens/Form/form-fields.js +9 -0
  328. package/dist/screens/Form/form-fields.js.map +1 -0
  329. package/dist/screens/Forms/FormsScreen.d.ts +3 -0
  330. package/dist/screens/Forms/FormsScreen.d.ts.map +1 -0
  331. package/dist/screens/Forms/FormsScreen.js +139 -0
  332. package/dist/screens/Forms/FormsScreen.js.map +1 -0
  333. package/dist/screens/Home/FollowUps.d.ts +8 -0
  334. package/dist/screens/Home/FollowUps.d.ts.map +1 -0
  335. package/dist/screens/Home/FollowUps.js +43 -0
  336. package/dist/screens/Home/FollowUps.js.map +1 -0
  337. package/dist/screens/Home/HomeScreen.d.ts +6 -0
  338. package/dist/screens/Home/HomeScreen.d.ts.map +1 -0
  339. package/dist/screens/Home/HomeScreen.js +67 -0
  340. package/dist/screens/Home/HomeScreen.js.map +1 -0
  341. package/dist/screens/Media/MediaScreen.d.ts +3 -0
  342. package/dist/screens/Media/MediaScreen.d.ts.map +1 -0
  343. package/dist/screens/Media/MediaScreen.js +71 -0
  344. package/dist/screens/Media/MediaScreen.js.map +1 -0
  345. package/dist/screens/People/PeopleScreen.d.ts +3 -0
  346. package/dist/screens/People/PeopleScreen.d.ts.map +1 -0
  347. package/dist/screens/People/PeopleScreen.js +78 -0
  348. package/dist/screens/People/PeopleScreen.js.map +1 -0
  349. package/dist/screens/PluginScreen/PluginScreenScreen.d.ts +3 -0
  350. package/dist/screens/PluginScreen/PluginScreenScreen.d.ts.map +1 -0
  351. package/dist/screens/PluginScreen/PluginScreenScreen.js +16 -0
  352. package/dist/screens/PluginScreen/PluginScreenScreen.js.map +1 -0
  353. package/dist/screens/Plugins/PluginActivityDialog.d.ts +7 -0
  354. package/dist/screens/Plugins/PluginActivityDialog.d.ts.map +1 -0
  355. package/dist/screens/Plugins/PluginActivityDialog.js +49 -0
  356. package/dist/screens/Plugins/PluginActivityDialog.js.map +1 -0
  357. package/dist/screens/Plugins/PluginSecrets.d.ts +7 -0
  358. package/dist/screens/Plugins/PluginSecrets.d.ts.map +1 -0
  359. package/dist/screens/Plugins/PluginSecrets.js +44 -0
  360. package/dist/screens/Plugins/PluginSecrets.js.map +1 -0
  361. package/dist/screens/Plugins/PluginSettingsDialog.d.ts +7 -0
  362. package/dist/screens/Plugins/PluginSettingsDialog.d.ts.map +1 -0
  363. package/dist/screens/Plugins/PluginSettingsDialog.js +46 -0
  364. package/dist/screens/Plugins/PluginSettingsDialog.js.map +1 -0
  365. package/dist/screens/Plugins/PluginsScreen.d.ts +3 -0
  366. package/dist/screens/Plugins/PluginsScreen.d.ts.map +1 -0
  367. package/dist/screens/Plugins/PluginsScreen.js +68 -0
  368. package/dist/screens/Plugins/PluginsScreen.js.map +1 -0
  369. package/dist/screens/SignIn/SignInScreen.d.ts +6 -0
  370. package/dist/screens/SignIn/SignInScreen.d.ts.map +1 -0
  371. package/dist/screens/SignIn/SignInScreen.js +52 -0
  372. package/dist/screens/SignIn/SignInScreen.js.map +1 -0
  373. package/dist/screens/Trash/TrashScreen.d.ts +3 -0
  374. package/dist/screens/Trash/TrashScreen.d.ts.map +1 -0
  375. package/dist/screens/Trash/TrashScreen.js +73 -0
  376. package/dist/screens/Trash/TrashScreen.js.map +1 -0
  377. package/dist/standalone/config.d.ts +19 -0
  378. package/dist/standalone/config.d.ts.map +1 -0
  379. package/dist/standalone/config.js +20 -0
  380. package/dist/standalone/config.js.map +1 -0
  381. package/dist/standalone/main.d.ts +7 -0
  382. package/dist/standalone/main.d.ts.map +1 -0
  383. package/dist/standalone/main.js +26 -0
  384. package/dist/standalone/main.js.map +1 -0
  385. package/dist/testing/admin-client-contract.d.ts +24 -0
  386. package/dist/testing/admin-client-contract.d.ts.map +1 -0
  387. package/dist/testing/admin-client-contract.js +571 -0
  388. package/dist/testing/admin-client-contract.js.map +1 -0
  389. package/dist/testing/http-server.d.ts +18 -0
  390. package/dist/testing/http-server.d.ts.map +1 -0
  391. package/dist/testing/http-server.js +51 -0
  392. package/dist/testing/http-server.js.map +1 -0
  393. package/dist/testing/index.d.ts +3 -0
  394. package/dist/testing/index.d.ts.map +1 -0
  395. package/dist/testing/index.js +3 -0
  396. package/dist/testing/index.js.map +1 -0
  397. package/dist/testing/memory-client.d.ts +142 -0
  398. package/dist/testing/memory-client.d.ts.map +1 -0
  399. package/dist/testing/memory-client.js +401 -0
  400. package/dist/testing/memory-client.js.map +1 -0
  401. package/dist/testing/memory-people.d.ts +18 -0
  402. package/dist/testing/memory-people.d.ts.map +1 -0
  403. package/dist/testing/memory-people.js +70 -0
  404. package/dist/testing/memory-people.js.map +1 -0
  405. package/dist/testing/render-app.d.ts +8 -0
  406. package/dist/testing/render-app.d.ts.map +1 -0
  407. package/dist/testing/render-app.js +10 -0
  408. package/dist/testing/render-app.js.map +1 -0
  409. package/dist/testing/sample-content.d.ts +23 -0
  410. package/dist/testing/sample-content.d.ts.map +1 -0
  411. package/dist/testing/sample-content.js +225 -0
  412. package/dist/testing/sample-content.js.map +1 -0
  413. package/package.json +70 -3
@@ -0,0 +1,366 @@
1
+ import { readImage } from '@velocity-astro/cms-core';
2
+ import { AdminRequestError } from './errors.js';
3
+ const CODES = new Set(['validation_failed', 'conflict', 'not_found', 'forbidden', 'unauthenticated']);
4
+ /** The `AdminClient` the editor uses on a real site: each method is one request to `cms-api`. */
5
+ export class HttpAdminClient {
6
+ #auth;
7
+ #baseUrl;
8
+ #fetch;
9
+ constructor(options) {
10
+ this.#auth = options.auth;
11
+ this.#baseUrl = (options.baseUrl ?? '/api/cms').replace(/\/+$/, '');
12
+ // Called through a closure: a browser's `fetch` refuses to run as another object's method.
13
+ this.#fetch = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
14
+ }
15
+ async getSession() {
16
+ return (await this.#get('/session')).user;
17
+ }
18
+ requestSignInLink(email) {
19
+ return this.#auth.requestSignInLink(email);
20
+ }
21
+ async signInWithPasskey() {
22
+ await this.#auth.signInWithPasskey();
23
+ // Sign-in knows who the person is; the API also knows what they may do.
24
+ const user = await this.getSession();
25
+ if (!user)
26
+ throw new Error('The passkey was accepted, but no session was started. Try again.');
27
+ return user;
28
+ }
29
+ signOut() {
30
+ return this.#auth.signOut();
31
+ }
32
+ async listContentTypes() {
33
+ return (await this.#get('/content-types')).items;
34
+ }
35
+ async listArchivedContentTypes() {
36
+ return (await this.#get('/content-types/archived')).items;
37
+ }
38
+ archiveContentType(id) {
39
+ return this.#send('DELETE', `/content-types/${encodeURIComponent(id)}`, {});
40
+ }
41
+ restoreContentType(id) {
42
+ return this.#send('POST', `/content-types/${encodeURIComponent(id)}/restore`, {});
43
+ }
44
+ createContentType(type) {
45
+ return this.#send('POST', '/content-types', type);
46
+ }
47
+ updateContentType(id, changes) {
48
+ return this.#send('PATCH', `/content-types/${encodeURIComponent(id)}`, changes);
49
+ }
50
+ addField(typeId, field, within) {
51
+ return this.#send('POST', `/content-types/${encodeURIComponent(typeId)}/fields${holders(within)}`, field);
52
+ }
53
+ changeField(typeId, fieldId, changes, within) {
54
+ return this.#send('PATCH', `/content-types/${encodeURIComponent(typeId)}/fields/${encodeURIComponent(fieldId)}${holders(within)}`, changes);
55
+ }
56
+ removeField(typeId, fieldId, within) {
57
+ return this.#send('DELETE', `/content-types/${encodeURIComponent(typeId)}/fields/${encodeURIComponent(fieldId)}${holders(within)}`, {});
58
+ }
59
+ restoreField(typeId, fieldId, within) {
60
+ return this.#send('POST', `/content-types/${encodeURIComponent(typeId)}/fields/${encodeURIComponent(fieldId)}/restore${holders(within)}`, {});
61
+ }
62
+ arrangeFields(typeId, arrangement) {
63
+ return this.#send('PUT', `/content-types/${encodeURIComponent(typeId)}/fields`, arrangement);
64
+ }
65
+ setSections(typeId, sections) {
66
+ return this.#send('PUT', `/content-types/${encodeURIComponent(typeId)}/sections`, { sections });
67
+ }
68
+ async listFieldTypes() {
69
+ return (await this.#get('/field-types')).items;
70
+ }
71
+ listImages() {
72
+ return this.#get('/images');
73
+ }
74
+ uploadImage(upload) {
75
+ // The file travels as it is. If it is no image at all, the server says so in its own words.
76
+ const type = readImage(upload.bytes)?.contentType ?? 'image/jpeg';
77
+ return this.#request(`/images?${new URLSearchParams({ name: upload.fileName })}`, {
78
+ method: 'POST',
79
+ headers: { accept: 'application/json', 'content-type': type },
80
+ body: upload.bytes,
81
+ });
82
+ }
83
+ async removeImage(name) {
84
+ await this.#send('DELETE', `/images/${encodeURIComponent(name)}`, {});
85
+ }
86
+ listEntries(query) {
87
+ const search = new URLSearchParams({ type: query.type });
88
+ if (query.locale !== undefined)
89
+ search.set('locale', query.locale);
90
+ if (query.limit !== undefined)
91
+ search.set('limit', String(query.limit));
92
+ if (query.offset !== undefined)
93
+ search.set('offset', String(query.offset));
94
+ return this.#get(`/entries?${search}`);
95
+ }
96
+ getEntry(id) {
97
+ return this.#get(`/entries/${encodeURIComponent(id)}`);
98
+ }
99
+ createEntry(entry) {
100
+ return this.#send('POST', '/entries', entry);
101
+ }
102
+ updateEntry(id, changes) {
103
+ return this.#send('PATCH', `/entries/${encodeURIComponent(id)}`, changes);
104
+ }
105
+ publishEntry(id, expectedRevision) {
106
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/publish`, { expectedRevision });
107
+ }
108
+ unpublishEntry(id) {
109
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/unpublish`, {});
110
+ }
111
+ duplicateEntry(id) {
112
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/duplicate`, {});
113
+ }
114
+ scheduleEntry(id, input) {
115
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/schedule`, input);
116
+ }
117
+ unscheduleEntry(id) {
118
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/unschedule`, {});
119
+ }
120
+ async entryHistory(id) {
121
+ return (await this.#get(`/entries/${encodeURIComponent(id)}/history`)).items;
122
+ }
123
+ revertEntry(id, input) {
124
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/revert`, input);
125
+ }
126
+ trashEntry(id) {
127
+ return this.#send('DELETE', `/entries/${encodeURIComponent(id)}`, {});
128
+ }
129
+ restoreEntry(id) {
130
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/restore`, {});
131
+ }
132
+ listTrash(query = {}) {
133
+ const search = new URLSearchParams();
134
+ if (query.limit !== undefined)
135
+ search.set('limit', String(query.limit));
136
+ if (query.offset !== undefined)
137
+ search.set('offset', String(query.offset));
138
+ return this.#get(`/trash?${search}`);
139
+ }
140
+ async deleteEntry(id) {
141
+ await this.#send('DELETE', `/trash/${encodeURIComponent(id)}`, {});
142
+ }
143
+ async listForms() {
144
+ return (await this.#get('/forms')).items;
145
+ }
146
+ createForm(form) {
147
+ return this.#send('POST', '/forms', form);
148
+ }
149
+ updateForm(id, changes) {
150
+ return this.#send('PATCH', `/forms/${encodeURIComponent(id)}`, changes);
151
+ }
152
+ trashForm(id) {
153
+ return this.#send('DELETE', `/forms/${encodeURIComponent(id)}`, {});
154
+ }
155
+ restoreForm(id) {
156
+ return this.#send('POST', `/forms/${encodeURIComponent(id)}/restore`, {});
157
+ }
158
+ async listTrashedForms() {
159
+ return (await this.#get('/forms/trash')).items;
160
+ }
161
+ async deleteForm(id) {
162
+ await this.#send('DELETE', `/forms/trash/${encodeURIComponent(id)}`, {});
163
+ }
164
+ listSubmissions(query) {
165
+ const search = new URLSearchParams();
166
+ if (query.status !== undefined)
167
+ search.set('status', query.status);
168
+ if (query.limit !== undefined)
169
+ search.set('limit', String(query.limit));
170
+ if (query.offset !== undefined)
171
+ search.set('offset', String(query.offset));
172
+ return this.#get(`/forms/${encodeURIComponent(query.formId)}/submissions?${search}`);
173
+ }
174
+ countSubmissions(formId) {
175
+ return this.#get(`/forms/${encodeURIComponent(formId)}/submission-counts`);
176
+ }
177
+ markSubmission(id, status) {
178
+ return this.#send('PATCH', `/submissions/${encodeURIComponent(id)}`, { status });
179
+ }
180
+ async deleteSubmission(id) {
181
+ await this.#send('DELETE', `/submissions/${encodeURIComponent(id)}`, {});
182
+ }
183
+ async exportSubmissions(formId) {
184
+ return (await this.#get(`/forms/${encodeURIComponent(formId)}/export`)).csv;
185
+ }
186
+ async forgetSender(email) {
187
+ return (await this.#send('POST', '/submissions/forget', { email })).removed;
188
+ }
189
+ listContacts(query = {}) {
190
+ const search = new URLSearchParams();
191
+ if (query.search !== undefined && query.search !== '')
192
+ search.set('search', query.search);
193
+ if (query.stage !== undefined)
194
+ search.set('stage', query.stage);
195
+ if (query.ownerId !== undefined)
196
+ search.set('owner', query.ownerId ?? 'none');
197
+ if (query.followUpBy !== undefined)
198
+ search.set('due', query.followUpBy);
199
+ if (query.limit !== undefined)
200
+ search.set('limit', String(query.limit));
201
+ if (query.offset !== undefined)
202
+ search.set('offset', String(query.offset));
203
+ return this.#get(`/contacts?${search}`);
204
+ }
205
+ listDeals(query = {}) {
206
+ const search = new URLSearchParams();
207
+ if (query.about !== undefined) {
208
+ search.set('aboutType', query.about.typeId);
209
+ search.set('aboutEntry', query.about.entry);
210
+ }
211
+ if (query.contactId !== undefined)
212
+ search.set('contact', query.contactId);
213
+ if (query.stage !== undefined)
214
+ search.set('stage', query.stage);
215
+ if (query.ownerId !== undefined)
216
+ search.set('owner', query.ownerId ?? 'none');
217
+ if (query.limit !== undefined)
218
+ search.set('limit', String(query.limit));
219
+ if (query.offset !== undefined)
220
+ search.set('offset', String(query.offset));
221
+ return this.#get(`/deals?${search}`);
222
+ }
223
+ createDeal(input) {
224
+ return this.#send('POST', '/deals', input);
225
+ }
226
+ updateDeal(id, changes) {
227
+ return this.#send('PATCH', `/deals/${encodeURIComponent(id)}`, changes);
228
+ }
229
+ async deleteDeal(id) {
230
+ await this.#send('DELETE', `/deals/${encodeURIComponent(id)}`, {});
231
+ }
232
+ getForecast() {
233
+ return this.#get('/deals/forecast');
234
+ }
235
+ getPipeline() {
236
+ return this.#get('/pipeline');
237
+ }
238
+ savePipeline(changes) {
239
+ return this.#send('PUT', '/pipeline', changes);
240
+ }
241
+ getCustomFields() {
242
+ return this.#get('/custom-fields');
243
+ }
244
+ saveCustomFields(changes) {
245
+ return this.#send('PUT', '/custom-fields', changes);
246
+ }
247
+ async listTeam() {
248
+ return (await this.#get('/team')).items;
249
+ }
250
+ getContact(id) {
251
+ return this.#get(`/contacts/${encodeURIComponent(id)}`);
252
+ }
253
+ createContact(input) {
254
+ return this.#send('POST', '/contacts', input);
255
+ }
256
+ importContacts(rows) {
257
+ return this.#send('POST', '/contacts/import', { rows });
258
+ }
259
+ updateContact(id, changes) {
260
+ return this.#send('PATCH', `/contacts/${encodeURIComponent(id)}`, changes);
261
+ }
262
+ async eraseContact(id) {
263
+ return (await this.#send('DELETE', `/contacts/${encodeURIComponent(id)}`, {})).removed;
264
+ }
265
+ async contactTimeline(id) {
266
+ return (await this.#get(`/contacts/${encodeURIComponent(id)}/timeline`)).items;
267
+ }
268
+ addContactNote(id, text) {
269
+ return this.#send('POST', `/contacts/${encodeURIComponent(id)}/notes`, { text });
270
+ }
271
+ async deleteContactNote(id, noteId) {
272
+ await this.#send('DELETE', `/contacts/${encodeURIComponent(id)}/notes/${encodeURIComponent(noteId)}`, {});
273
+ }
274
+ async exportContact(id) {
275
+ return (await this.#get(`/contacts/${encodeURIComponent(id)}/export`)).file;
276
+ }
277
+ previewEntry(id) {
278
+ return this.#send('POST', `/entries/${encodeURIComponent(id)}/preview`, {});
279
+ }
280
+ async listPeople() {
281
+ return (await this.#get('/people')).items;
282
+ }
283
+ invitePerson(person) {
284
+ return this.#send('POST', '/people', person);
285
+ }
286
+ changePersonRole(id, role) {
287
+ return this.#send('PATCH', `/people/${encodeURIComponent(id)}`, { role });
288
+ }
289
+ async removePerson(id) {
290
+ await this.#send('DELETE', `/people/${encodeURIComponent(id)}`, {});
291
+ }
292
+ addPasskey(name) {
293
+ return this.#auth.registerPasskey(name);
294
+ }
295
+ async listPlugins() {
296
+ return (await this.#get('/plugins')).items;
297
+ }
298
+ async listPluginEditors() {
299
+ return (await this.#get('/plugin-editors')).items;
300
+ }
301
+ callPlugin(name, method, path, input = {}) {
302
+ const query = new URLSearchParams(input.query).toString();
303
+ const address = `/plugins/${encodeURIComponent(name)}${path}${query === '' ? '' : `?${query}`}`;
304
+ return method === 'GET' ? this.#get(address) : this.#send(method, address, input.body ?? {});
305
+ }
306
+ setPluginEnabled(name, enabled) {
307
+ return this.#send('PATCH', `/plugins/${encodeURIComponent(name)}`, { enabled });
308
+ }
309
+ getPluginSettings(name) {
310
+ return this.#get(`/plugin-settings/${encodeURIComponent(name)}`);
311
+ }
312
+ savePluginSettings(name, values) {
313
+ return this.#send('PUT', `/plugin-settings/${encodeURIComponent(name)}`, { values });
314
+ }
315
+ setPluginSecret(name, key, value) {
316
+ return this.#send('PUT', `/plugin-secrets/${encodeURIComponent(name)}/${encodeURIComponent(key)}`, { value });
317
+ }
318
+ async listPluginTasks(name) {
319
+ return (await this.#get(`/plugin-tasks/${encodeURIComponent(name)}`)).items;
320
+ }
321
+ retryPluginTask(name, id) {
322
+ return this.#send('POST', `/plugin-tasks/${encodeURIComponent(name)}/${encodeURIComponent(id)}/retry`, {});
323
+ }
324
+ listPasskeys() {
325
+ return this.#auth.listPasskeys();
326
+ }
327
+ removePasskey(id) {
328
+ return this.#auth.removePasskey(id);
329
+ }
330
+ #get(path) {
331
+ return this.#request(path, { headers: { accept: 'application/json' } });
332
+ }
333
+ #send(method, path, body) {
334
+ return this.#request(path, {
335
+ method,
336
+ headers: { accept: 'application/json', 'content-type': 'application/json' },
337
+ body: JSON.stringify(body),
338
+ });
339
+ }
340
+ async #request(path, init) {
341
+ let response;
342
+ try {
343
+ // The session travels as a cookie, which is sent only to the site the editor came from.
344
+ response = await this.#fetch(`${this.#baseUrl}${path}`, { ...init, credentials: 'same-origin' });
345
+ }
346
+ catch {
347
+ throw new Error('The server could not be reached. Check your connection and try again.');
348
+ }
349
+ const body = await response.json().catch(() => null);
350
+ if (response.ok)
351
+ return body;
352
+ throw refusal(body, response.status);
353
+ }
354
+ }
355
+ /** The fields that hold the one a request is about, as the API reads them: `?within=<id>&within=<id>`. */
356
+ function holders(within = []) {
357
+ return within.length > 0 ? `?${new URLSearchParams(within.map((id) => ['within', id]))}` : '';
358
+ }
359
+ /** The error for a response that was not a success, in the server's own words when it gave any. */
360
+ function refusal(body, status) {
361
+ const error = typeof body === 'object' && body !== null && 'error' in body ? body.error : null;
362
+ const message = typeof error?.['message'] === 'string' ? error['message'] : `The server answered with an error (${status}). Try again in a moment.`;
363
+ const code = typeof error?.['code'] === 'string' && CODES.has(error['code']) ? error['code'] : 'unknown';
364
+ return new AdminRequestError(message, code, Array.isArray(error?.['issues']) ? error['issues'] : []);
365
+ }
366
+ //# sourceMappingURL=http-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.js","sourceRoot":"","sources":["../../src/client/http-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmsB,MAAM,0BAA0B,CAAC;AAEtvB,OAAO,EAAE,iBAAiB,EAA4C,MAAM,aAAa,CAAC;AA2B1F,MAAM,KAAK,GAAwB,IAAI,GAAG,CAAmB,CAAC,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAE7I,iGAAiG;AACjG,MAAM,OAAO,eAAe;IACjB,KAAK,CAAa;IAClB,QAAQ,CAAS;IACjB,MAAM,CAA0B;IAEzC,YAAY,OAA+B;QACzC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,EAA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,CAAC;CACF;AAED,0GAA0G;AAC1G,SAAS,OAAO,CAAC,SAA4B,EAAE;IAC7C,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAChG,CAAC;AAED,mGAAmG;AACnG,SAAS,OAAO,CAAC,IAAa,EAAE,MAAc;IAC5C,MAAM,KAAK,GAAG,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,IAAI,CAAC,CAAC,CAAE,IAAI,CAAC,KAAwC,CAAC,CAAC,CAAC,IAAI,CAAC;IACnI,MAAM,OAAO,GAAG,OAAO,KAAK,EAAE,CAAC,SAAS,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,sCAAsC,MAAM,2BAA2B,CAAC;IACpJ,MAAM,IAAI,GAAG,OAAO,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,MAAM,CAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/H,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC3H,CAAC"}
@@ -0,0 +1,213 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import type { ContactImportReport, ContactImportRow, ContentTypeChanges, ContentTypeDef, Entry, FieldArrangement, FieldChanges, FieldSection, Contact, ContactChanges, DealChanges, NewDeal, Page, PipelineChanges, CustomFieldsChanges, FormChanges, FormDef, NewContact, NewForm, NewUpload, Role, SubmissionStatus } from '@velocity-astro/cms-core';
3
+ import type { ContactListQuery, DealListQuery, EntryChanges, EntryListQuery, NewEntry, NewPerson, NewType, NewTypeField, SubmissionListQuery } from './admin-client.js';
4
+ /**
5
+ * The cache every request goes through, one per app. When the server answers any request with
6
+ * "sign in first" (the session ended, or was ended elsewhere), the app learns that nobody is
7
+ * signed in, and the frame shows the sign-in screen.
8
+ */
9
+ export declare function createQueryCache(): QueryClient;
10
+ export declare function useSession(): import("@tanstack/react-query").UseQueryResult<import("./admin-client.js").SessionUser | null, Error>;
11
+ export declare function useContentTypes(): import("@tanstack/react-query").UseQueryResult<readonly ContentTypeDef[], Error>;
12
+ export declare function useCreateContentType(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, NewType, unknown>;
13
+ /** The archived content types. Asked for only where they are shown. */
14
+ export declare function useArchivedContentTypes(): import("@tanstack/react-query").UseQueryResult<readonly ContentTypeDef[], Error>;
15
+ export declare function useArchiveContentType(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, string, unknown>;
16
+ export declare function useRestoreContentType(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, string, unknown>;
17
+ export declare function useUpdateContentType(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
18
+ id: string;
19
+ changes: ContentTypeChanges;
20
+ }, unknown>;
21
+ export declare function useAddField(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
22
+ typeId: string;
23
+ field: NewTypeField;
24
+ within?: readonly string[];
25
+ }, unknown>;
26
+ /** Changes a field and, when `arrangement` says so, where it is shown: one action to the person. */
27
+ export declare function useChangeField(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
28
+ typeId: string;
29
+ fieldId: string;
30
+ changes: FieldChanges;
31
+ arrangement?: FieldArrangement;
32
+ within?: readonly string[];
33
+ }, unknown>;
34
+ export declare function useRemoveField(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
35
+ typeId: string;
36
+ fieldId: string;
37
+ within?: readonly string[];
38
+ }, unknown>;
39
+ export declare function useRestoreField(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
40
+ typeId: string;
41
+ fieldId: string;
42
+ within?: readonly string[];
43
+ }, unknown>;
44
+ export declare function useSetSections(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
45
+ typeId: string;
46
+ sections: readonly FieldSection[];
47
+ }, unknown>;
48
+ export declare function useArrangeFields(): import("@tanstack/react-query").UseMutationResult<ContentTypeDef, Error, {
49
+ typeId: string;
50
+ arrangement: FieldArrangement;
51
+ }, unknown>;
52
+ export declare function useEntries(query: EntryListQuery): import("@tanstack/react-query").UseQueryResult<Page<Entry>, Error>;
53
+ /** The entries of several content types at once, one request each, sharing the lists' cache. */
54
+ export declare function useEntriesOfTypes(queries: readonly EntryListQuery[]): import("@tanstack/react-query").UseQueryResult<Page<Entry>, Error>[];
55
+ /** Field types change only when the site is redeployed, so they are fetched once. */
56
+ export declare function useFieldTypes(): import("@tanstack/react-query").UseQueryResult<readonly import("./admin-client.js").FieldTypeInfo[], Error>;
57
+ /** The site's images change only when someone here uploads one, so they are fetched once. */
58
+ export declare function useImages(): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").SiteImage[], Error>;
59
+ /** Whether the site takes uploads, and how large one may be. `null` when it takes none. */
60
+ export declare function useUploadRules(): import("@tanstack/react-query").UseQueryResult<{
61
+ readonly maxBytes: number;
62
+ } | null, Error>;
63
+ /** Adds an image, which then shows among the others without asking the server again. */
64
+ export declare function useRemoveImage(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
65
+ export declare function useUploadImage(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").SiteImage, Error, NewUpload, unknown>;
66
+ /** One entry. Not fetched while `id` is `null`, which is how a new entry's screen asks. */
67
+ export declare function useEntry(id: string | null): import("@tanstack/react-query").UseQueryResult<Entry, Error>;
68
+ export declare function useCreateEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, NewEntry, unknown>;
69
+ export declare function useUpdateEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, {
70
+ id: string;
71
+ changes: EntryChanges;
72
+ }, unknown>;
73
+ export declare function usePublishEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, {
74
+ id: string;
75
+ expectedRevision: number;
76
+ }, unknown>;
77
+ export declare function useUnpublishEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, string, unknown>;
78
+ /** Asks for a link each time: a link runs out, so it is never kept. */
79
+ /** The entries in the trash. Kept with the lists, so whatever changes an entry refreshes it. */
80
+ export declare function useTrash(): import("@tanstack/react-query").UseQueryResult<Page<Entry>, Error>;
81
+ export declare function useDuplicateEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, string, unknown>;
82
+ export declare function useScheduleEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, {
83
+ readonly id: string;
84
+ readonly at: string;
85
+ readonly expectedRevision: number;
86
+ }, unknown>;
87
+ export declare function useUnscheduleEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, string, unknown>;
88
+ /** Every save of an entry, the latest first. Asked for only once someone opens its history. */
89
+ export declare function useEntryHistory(id: string, isAsked?: boolean): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").Revision[], Error>;
90
+ export declare function useRevertEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, {
91
+ readonly id: string;
92
+ readonly revision: number;
93
+ readonly expectedRevision: number;
94
+ }, unknown>;
95
+ export declare function useTrashEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, string, unknown>;
96
+ export declare function useRestoreEntry(): import("@tanstack/react-query").UseMutationResult<Entry, Error, string, unknown>;
97
+ export declare function useDeleteEntry(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
98
+ export declare function useForms(): import("@tanstack/react-query").UseQueryResult<readonly FormDef[], Error>;
99
+ /** The forms in the trash. Asked for only where they are shown. */
100
+ export declare function useTrashedForms(isAsked?: boolean): import("@tanstack/react-query").UseQueryResult<readonly FormDef[], Error>;
101
+ export declare function useCreateForm(): import("@tanstack/react-query").UseMutationResult<FormDef, Error, NewForm, unknown>;
102
+ export declare function useUpdateForm(): import("@tanstack/react-query").UseMutationResult<FormDef, Error, {
103
+ id: string;
104
+ changes: FormChanges;
105
+ }, unknown>;
106
+ export declare function useTrashForm(): import("@tanstack/react-query").UseMutationResult<FormDef, Error, string, unknown>;
107
+ export declare function useRestoreForm(): import("@tanstack/react-query").UseMutationResult<FormDef, Error, string, unknown>;
108
+ export declare function useDeleteForm(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
109
+ /** What a form was sent. `isAsked` is false for someone who may not read submissions. */
110
+ export declare function useSubmissions(query: SubmissionListQuery, isAsked?: boolean): import("@tanstack/react-query").UseQueryResult<Page<import("@velocity-astro/cms-core").Submission>, Error>;
111
+ export declare function useSubmissionCounts(formId: string, isAsked?: boolean): import("@tanstack/react-query").UseQueryResult<Readonly<Record<SubmissionStatus, number>>, Error>;
112
+ /** The counts of several forms at once, in the order asked, for a list of forms. */
113
+ export declare function useSubmissionCountsOf(formIds: readonly string[], isAsked?: boolean): import("@tanstack/react-query").UseQueryResult<Readonly<Record<SubmissionStatus, number>>, Error>[];
114
+ export declare function useMarkSubmission(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").Submission, Error, {
115
+ id: string;
116
+ status: SubmissionStatus;
117
+ }, unknown>;
118
+ export declare function useDeleteSubmission(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
119
+ /** Asks for the file each time it is wanted: it is never kept. */
120
+ export declare function useExportSubmissions(): import("@tanstack/react-query").UseMutationResult<string, Error, string, unknown>;
121
+ export declare function useForgetSender(): import("@tanstack/react-query").UseMutationResult<number, Error, string, unknown>;
122
+ /** The people who wrote to the site. What was on screen stays while the next search is on its way. */
123
+ export declare function useContacts(query?: ContactListQuery): import("@tanstack/react-query").UseQueryResult<Page<Contact>, Error>;
124
+ /** One list of contacts per query, asked for together: the columns of the board. */
125
+ export declare function useContactLists(queries: readonly ContactListQuery[]): import("@tanstack/react-query").UseQueryResult<Page<Contact>, Error>[];
126
+ /**
127
+ * Puts a contact in another stage. It stays pending until the lists have been asked for again,
128
+ * so the board can show the card where it was put for as long as the lists still say otherwise.
129
+ */
130
+ export declare function useMoveContact(): import("@tanstack/react-query").UseMutationResult<Contact, Error, {
131
+ contact: Contact;
132
+ stage: string;
133
+ }, unknown>;
134
+ export declare function useDeals(query?: DealListQuery): import("@tanstack/react-query").UseQueryResult<Page<import("@velocity-astro/cms-core").Deal>, Error>;
135
+ /** One list of deals per query, asked for together: the columns of the board. */
136
+ export declare function useDealLists(queries: readonly DealListQuery[]): import("@tanstack/react-query").UseQueryResult<Page<import("@velocity-astro/cms-core").Deal>, Error>[];
137
+ export declare function useForecast(): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").Forecast, Error>;
138
+ export declare function useCreateDeal(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").Deal, Error, NewDeal, unknown>;
139
+ export declare function useUpdateDeal(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").Deal, Error, {
140
+ id: string;
141
+ changes: DealChanges;
142
+ }, unknown>;
143
+ export declare function useDeleteDeal(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
144
+ /** The stages a contact moves through. */
145
+ export declare function usePipeline(): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").Pipeline, Error>;
146
+ export declare function useSavePipeline(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").Pipeline, Error, PipelineChanges, unknown>;
147
+ /** The fields this site adds to its contacts and deals. */
148
+ export declare function useCustomFields(): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").CustomFields, Error>;
149
+ export declare function useSaveCustomFields(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").CustomFields, Error, CustomFieldsChanges, unknown>;
150
+ /** Who a contact can be given to. */
151
+ export declare function useTeam(): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").TeamMember[], Error>;
152
+ export declare function useContact(id: string): import("@tanstack/react-query").UseQueryResult<Contact, Error>;
153
+ export declare function useContactTimeline(id: string): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").TimelineItem[], Error>;
154
+ export declare function useCreateContact(): import("@tanstack/react-query").UseMutationResult<Contact, Error, NewContact, unknown>;
155
+ /**
156
+ * Adds the contacts of a file, a part at a time, and answers with what became of all its rows.
157
+ * A problem is given by the row's place in the whole file. If a part fails, the parts before it
158
+ * are in, and the lists are read again all the same.
159
+ */
160
+ export declare function useImportContacts(): import("@tanstack/react-query").UseMutationResult<ContactImportReport, Error, readonly ContactImportRow[], unknown>;
161
+ export declare function useUpdateContact(): import("@tanstack/react-query").UseMutationResult<Contact, Error, {
162
+ id: string;
163
+ changes: ContactChanges;
164
+ }, unknown>;
165
+ export declare function useEraseContact(): import("@tanstack/react-query").UseMutationResult<number, Error, string, unknown>;
166
+ export declare function useAddContactNote(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").ContactNote, Error, {
167
+ id: string;
168
+ text: string;
169
+ }, unknown>;
170
+ export declare function useDeleteContactNote(): import("@tanstack/react-query").UseMutationResult<void, Error, {
171
+ id: string;
172
+ noteId: string;
173
+ }, unknown>;
174
+ /** Asks for the file each time it is wanted: it is never kept. */
175
+ export declare function useExportContact(): import("@tanstack/react-query").UseMutationResult<string, Error, string, unknown>;
176
+ export declare function usePreviewEntry(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").PreviewLink, Error, string, unknown>;
177
+ /**
178
+ * A link to the entry's page for the frame beside its form, asked for again well before it runs
179
+ * out. `saved` is the entry's revision: a save may have changed the page's address.
180
+ */
181
+ export declare function usePagePreview(id: string | undefined, saved: number | undefined): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").PreviewLink, Error>;
182
+ export declare function usePeople(): import("@tanstack/react-query").UseQueryResult<readonly import("./admin-client.js").Person[], Error>;
183
+ export declare function useInvitePerson(): import("@tanstack/react-query").UseMutationResult<import("./admin-client.js").Person, Error, NewPerson, unknown>;
184
+ export declare function useChangePersonRole(): import("@tanstack/react-query").UseMutationResult<import("./admin-client.js").Person, Error, {
185
+ id: string;
186
+ role: Role;
187
+ }, unknown>;
188
+ export declare function useRemovePerson(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
189
+ export declare function usePlugins(): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").PluginInfo[], Error>;
190
+ /** The running plugins that add to the editor. Asked once someone is signed in. */
191
+ export declare function usePluginEditorList(isSignedIn: boolean): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").PluginEditorInfo[], Error>;
192
+ export declare function useSetPluginEnabled(): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").PluginInfo, Error, {
193
+ name: string;
194
+ enabled: boolean;
195
+ }, unknown>;
196
+ export declare function usePluginSettings(name: string): import("@tanstack/react-query").UseQueryResult<import("@velocity-astro/cms-core").PluginSettings, Error>;
197
+ export declare function useSavePluginSettings(name: string): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").PluginSettings, Error, Readonly<Record<string, unknown>>, unknown>;
198
+ /** Saves or removes one of a plugin's keys or passwords. */
199
+ export declare function useSetPluginSecret(name: string): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").PluginSettings, Error, {
200
+ key: string;
201
+ value: string | null;
202
+ }, unknown>;
203
+ /** What a plugin was asked to do, newest first. Asked for each time it is looked at: it changes by itself. */
204
+ export declare function usePluginTasks(name: string, enabled: boolean): import("@tanstack/react-query").UseQueryResult<readonly import("@velocity-astro/cms-core").PluginTask[], Error>;
205
+ export declare function useRetryPluginTask(name: string): import("@tanstack/react-query").UseMutationResult<import("@velocity-astro/cms-core").PluginTask, Error, string, unknown>;
206
+ /** The signed-in person's own passkeys. Asked for only while their window is open. */
207
+ export declare function usePasskeys(): import("@tanstack/react-query").UseQueryResult<readonly import("./admin-client.js").Passkey[], Error>;
208
+ export declare function useAddPasskey(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
209
+ export declare function useRemovePasskey(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
210
+ export declare function useRequestSignInLink(): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
211
+ export declare function useSignInWithPasskey(): import("@tanstack/react-query").UseMutationResult<import("./admin-client.js").SessionUser, Error, void, unknown>;
212
+ export declare function useSignOut(): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
213
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/client/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAqD,MAAM,uBAAuB,CAAC;AAClI,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,kBAAkB,EAAa,cAAc,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACnW,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAa,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AA6CnL;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,CAU9C;AAED,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