@velocity-astro/cms-admin 0.0.0-stage → 0.1.0-beta.11

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 (521) 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-UA2kIIOw.js +135 -0
  6. package/app-dist/assets/index-DkDHhCG6.css +2 -0
  7. package/app-dist/assets/index-DovlPZTn.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 +29 -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 +29 -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 +183 -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 +37 -0
  40. package/dist/app/RequestState.js.map +1 -0
  41. package/dist/app/RouteError.d.ts +9 -0
  42. package/dist/app/RouteError.d.ts.map +1 -0
  43. package/dist/app/RouteError.js +16 -0
  44. package/dist/app/RouteError.js.map +1 -0
  45. package/dist/app/paths.d.ts +38 -0
  46. package/dist/app/paths.d.ts.map +1 -0
  47. package/dist/app/paths.js +37 -0
  48. package/dist/app/paths.js.map +1 -0
  49. package/dist/app/routes.d.ts +4 -0
  50. package/dist/app/routes.d.ts.map +1 -0
  51. package/dist/app/routes.js +68 -0
  52. package/dist/app/routes.js.map +1 -0
  53. package/dist/app/use-go.d.ts +7 -0
  54. package/dist/app/use-go.d.ts.map +1 -0
  55. package/dist/app/use-go.js +11 -0
  56. package/dist/app/use-go.js.map +1 -0
  57. package/dist/client/admin-client.d.ts +338 -0
  58. package/dist/client/admin-client.d.ts.map +1 -0
  59. package/dist/client/admin-client.js +2 -0
  60. package/dist/client/admin-client.js.map +1 -0
  61. package/dist/client/client-context.d.ts +10 -0
  62. package/dist/client/client-context.d.ts.map +1 -0
  63. package/dist/client/client-context.js +14 -0
  64. package/dist/client/client-context.js.map +1 -0
  65. package/dist/client/errors.d.ts +22 -0
  66. package/dist/client/errors.d.ts.map +1 -0
  67. package/dist/client/errors.js +17 -0
  68. package/dist/client/errors.js.map +1 -0
  69. package/dist/client/http-client.d.ts +133 -0
  70. package/dist/client/http-client.d.ts.map +1 -0
  71. package/dist/client/http-client.js +399 -0
  72. package/dist/client/http-client.js.map +1 -0
  73. package/dist/client/queries.d.ts +232 -0
  74. package/dist/client/queries.d.ts.map +1 -0
  75. package/dist/client/queries.js +780 -0
  76. package/dist/client/queries.js.map +1 -0
  77. package/dist/fields/BlocksControl.d.ts +14 -0
  78. package/dist/fields/BlocksControl.d.ts.map +1 -0
  79. package/dist/fields/BlocksControl.js +476 -0
  80. package/dist/fields/BlocksControl.js.map +1 -0
  81. package/dist/fields/CustomFieldsDialog.d.ts +7 -0
  82. package/dist/fields/CustomFieldsDialog.d.ts.map +1 -0
  83. package/dist/fields/CustomFieldsDialog.js +29 -0
  84. package/dist/fields/CustomFieldsDialog.js.map +1 -0
  85. package/dist/fields/FieldEditor.d.ts +17 -0
  86. package/dist/fields/FieldEditor.d.ts.map +1 -0
  87. package/dist/fields/FieldEditor.js +25 -0
  88. package/dist/fields/FieldEditor.js.map +1 -0
  89. package/dist/fields/FieldGrid.d.ts +31 -0
  90. package/dist/fields/FieldGrid.d.ts.map +1 -0
  91. package/dist/fields/FieldGrid.js +42 -0
  92. package/dist/fields/FieldGrid.js.map +1 -0
  93. package/dist/fields/FieldSetDialog.d.ts +11 -0
  94. package/dist/fields/FieldSetDialog.d.ts.map +1 -0
  95. package/dist/fields/FieldSetDialog.js +73 -0
  96. package/dist/fields/FieldSetDialog.js.map +1 -0
  97. package/dist/fields/FieldSetEditor.d.ts +9 -0
  98. package/dist/fields/FieldSetEditor.d.ts.map +1 -0
  99. package/dist/fields/FieldSetEditor.js +49 -0
  100. package/dist/fields/FieldSetEditor.js.map +1 -0
  101. package/dist/fields/FieldSummary.d.ts +9 -0
  102. package/dist/fields/FieldSummary.d.ts.map +1 -0
  103. package/dist/fields/FieldSummary.js +28 -0
  104. package/dist/fields/FieldSummary.js.map +1 -0
  105. package/dist/fields/LinkControl.d.ts +8 -0
  106. package/dist/fields/LinkControl.d.ts.map +1 -0
  107. package/dist/fields/LinkControl.js +54 -0
  108. package/dist/fields/LinkControl.js.map +1 -0
  109. package/dist/fields/SiteImagePicker.d.ts +22 -0
  110. package/dist/fields/SiteImagePicker.d.ts.map +1 -0
  111. package/dist/fields/SiteImagePicker.js +42 -0
  112. package/dist/fields/SiteImagePicker.js.map +1 -0
  113. package/dist/fields/block-icons.d.ts +4 -0
  114. package/dist/fields/block-icons.d.ts.map +1 -0
  115. package/dist/fields/block-icons.js +53 -0
  116. package/dist/fields/block-icons.js.map +1 -0
  117. package/dist/fields/carry.d.ts +19 -0
  118. package/dist/fields/carry.d.ts.map +1 -0
  119. package/dist/fields/carry.js +61 -0
  120. package/dist/fields/carry.js.map +1 -0
  121. package/dist/fields/controls.d.ts +4 -0
  122. package/dist/fields/controls.d.ts.map +1 -0
  123. package/dist/fields/controls.js +363 -0
  124. package/dist/fields/controls.js.map +1 -0
  125. package/dist/fields/custom-values.d.ts +23 -0
  126. package/dist/fields/custom-values.d.ts.map +1 -0
  127. package/dist/fields/custom-values.js +30 -0
  128. package/dist/fields/custom-values.js.map +1 -0
  129. package/dist/fields/field-control.d.ts +170 -0
  130. package/dist/fields/field-control.d.ts.map +1 -0
  131. package/dist/fields/field-control.js +19 -0
  132. package/dist/fields/field-control.js.map +1 -0
  133. package/dist/fields/field-set.d.ts +39 -0
  134. package/dist/fields/field-set.d.ts.map +1 -0
  135. package/dist/fields/field-set.js +24 -0
  136. package/dist/fields/field-set.js.map +1 -0
  137. package/dist/fields/index.d.ts +7 -0
  138. package/dist/fields/index.d.ts.map +1 -0
  139. package/dist/fields/index.js +7 -0
  140. package/dist/fields/index.js.map +1 -0
  141. package/dist/fields/page-focus.d.ts +82 -0
  142. package/dist/fields/page-focus.d.ts.map +1 -0
  143. package/dist/fields/page-focus.js +104 -0
  144. package/dist/fields/page-focus.js.map +1 -0
  145. package/dist/fields/settings.d.ts +40 -0
  146. package/dist/fields/settings.d.ts.map +1 -0
  147. package/dist/fields/settings.js +99 -0
  148. package/dist/fields/settings.js.map +1 -0
  149. package/dist/index.d.ts +8 -0
  150. package/dist/index.d.ts.map +1 -0
  151. package/dist/index.js +6 -0
  152. package/dist/index.js.map +1 -0
  153. package/dist/lib/arrangement.d.ts +20 -0
  154. package/dist/lib/arrangement.d.ts.map +1 -0
  155. package/dist/lib/arrangement.js +52 -0
  156. package/dist/lib/arrangement.js.map +1 -0
  157. package/dist/lib/boot.d.ts +25 -0
  158. package/dist/lib/boot.d.ts.map +1 -0
  159. package/dist/lib/boot.js +87 -0
  160. package/dist/lib/boot.js.map +1 -0
  161. package/dist/lib/content.d.ts +45 -0
  162. package/dist/lib/content.d.ts.map +1 -0
  163. package/dist/lib/content.js +99 -0
  164. package/dist/lib/content.js.map +1 -0
  165. package/dist/lib/csv.d.ts +10 -0
  166. package/dist/lib/csv.d.ts.map +1 -0
  167. package/dist/lib/csv.js +54 -0
  168. package/dist/lib/csv.js.map +1 -0
  169. package/dist/lib/day-part.d.ts +5 -0
  170. package/dist/lib/day-part.d.ts.map +1 -0
  171. package/dist/lib/day-part.js +10 -0
  172. package/dist/lib/day-part.js.map +1 -0
  173. package/dist/lib/download.d.ts +6 -0
  174. package/dist/lib/download.d.ts.map +1 -0
  175. package/dist/lib/download.js +13 -0
  176. package/dist/lib/download.js.map +1 -0
  177. package/dist/lib/keys.d.ts +5 -0
  178. package/dist/lib/keys.d.ts.map +1 -0
  179. package/dist/lib/keys.js +26 -0
  180. package/dist/lib/keys.js.map +1 -0
  181. package/dist/lib/load-fresh.d.ts +8 -0
  182. package/dist/lib/load-fresh.d.ts.map +1 -0
  183. package/dist/lib/load-fresh.js +51 -0
  184. package/dist/lib/load-fresh.js.map +1 -0
  185. package/dist/lib/open-site.d.ts +6 -0
  186. package/dist/lib/open-site.d.ts.map +1 -0
  187. package/dist/lib/open-site.js +8 -0
  188. package/dist/lib/open-site.js.map +1 -0
  189. package/dist/lib/prepare-image.d.ts +11 -0
  190. package/dist/lib/prepare-image.d.ts.map +1 -0
  191. package/dist/lib/prepare-image.js +50 -0
  192. package/dist/lib/prepare-image.js.map +1 -0
  193. package/dist/lib/preview-tab.d.ts +14 -0
  194. package/dist/lib/preview-tab.d.ts.map +1 -0
  195. package/dist/lib/preview-tab.js +24 -0
  196. package/dist/lib/preview-tab.js.map +1 -0
  197. package/dist/lib/relative-time.d.ts +3 -0
  198. package/dist/lib/relative-time.d.ts.map +1 -0
  199. package/dist/lib/relative-time.js +18 -0
  200. package/dist/lib/relative-time.js.map +1 -0
  201. package/dist/lib/rich-from-html.d.ts +9 -0
  202. package/dist/lib/rich-from-html.d.ts.map +1 -0
  203. package/dist/lib/rich-from-html.js +129 -0
  204. package/dist/lib/rich-from-html.js.map +1 -0
  205. package/dist/lib/sittings.d.ts +16 -0
  206. package/dist/lib/sittings.d.ts.map +1 -0
  207. package/dist/lib/sittings.js +29 -0
  208. package/dist/lib/sittings.js.map +1 -0
  209. package/dist/lib/slug.d.ts +3 -0
  210. package/dist/lib/slug.d.ts.map +1 -0
  211. package/dist/lib/slug.js +10 -0
  212. package/dist/lib/slug.js.map +1 -0
  213. package/dist/lib/small-image.d.ts +7 -0
  214. package/dist/lib/small-image.d.ts.map +1 -0
  215. package/dist/lib/small-image.js +6 -0
  216. package/dist/lib/small-image.js.map +1 -0
  217. package/dist/lib/type-icon.d.ts +3 -0
  218. package/dist/lib/type-icon.d.ts.map +1 -0
  219. package/dist/lib/type-icon.js +27 -0
  220. package/dist/lib/type-icon.js.map +1 -0
  221. package/dist/lib/use-closing.d.ts +19 -0
  222. package/dist/lib/use-closing.d.ts.map +1 -0
  223. package/dist/lib/use-closing.js +24 -0
  224. package/dist/lib/use-closing.js.map +1 -0
  225. package/dist/lib/use-command-key.d.ts +16 -0
  226. package/dist/lib/use-command-key.d.ts.map +1 -0
  227. package/dist/lib/use-command-key.js +30 -0
  228. package/dist/lib/use-command-key.js.map +1 -0
  229. package/dist/lib/use-escapes.d.ts +7 -0
  230. package/dist/lib/use-escapes.d.ts.map +1 -0
  231. package/dist/lib/use-escapes.js +19 -0
  232. package/dist/lib/use-escapes.js.map +1 -0
  233. package/dist/lib/use-history.d.ts +24 -0
  234. package/dist/lib/use-history.d.ts.map +1 -0
  235. package/dist/lib/use-history.js +48 -0
  236. package/dist/lib/use-history.js.map +1 -0
  237. package/dist/lib/use-leave-guard.d.ts +16 -0
  238. package/dist/lib/use-leave-guard.d.ts.map +1 -0
  239. package/dist/lib/use-leave-guard.js +29 -0
  240. package/dist/lib/use-leave-guard.js.map +1 -0
  241. package/dist/lib/use-narrow.d.ts +5 -0
  242. package/dist/lib/use-narrow.d.ts.map +1 -0
  243. package/dist/lib/use-narrow.js +19 -0
  244. package/dist/lib/use-narrow.js.map +1 -0
  245. package/dist/lib/use-panel-sizes.d.ts +7 -0
  246. package/dist/lib/use-panel-sizes.d.ts.map +1 -0
  247. package/dist/lib/use-panel-sizes.js +33 -0
  248. package/dist/lib/use-panel-sizes.js.map +1 -0
  249. package/dist/lib/use-save-key.d.ts +15 -0
  250. package/dist/lib/use-save-key.d.ts.map +1 -0
  251. package/dist/lib/use-save-key.js +27 -0
  252. package/dist/lib/use-save-key.js.map +1 -0
  253. package/dist/lib/use-undo-keys.d.ts +14 -0
  254. package/dist/lib/use-undo-keys.d.ts.map +1 -0
  255. package/dist/lib/use-undo-keys.js +46 -0
  256. package/dist/lib/use-undo-keys.js.map +1 -0
  257. package/dist/messages/en.d.ts +1334 -0
  258. package/dist/messages/en.d.ts.map +1 -0
  259. package/dist/messages/en.js +1280 -0
  260. package/dist/messages/en.js.map +1 -0
  261. package/dist/messages/messages-context.d.ts +17 -0
  262. package/dist/messages/messages-context.d.ts.map +1 -0
  263. package/dist/messages/messages-context.js +16 -0
  264. package/dist/messages/messages-context.js.map +1 -0
  265. package/dist/page-bridge/index.d.ts +7 -0
  266. package/dist/page-bridge/index.d.ts.map +1 -0
  267. package/dist/page-bridge/index.js +7 -0
  268. package/dist/page-bridge/index.js.map +1 -0
  269. package/dist/page-bridge/preview-bridge.d.ts +35 -0
  270. package/dist/page-bridge/preview-bridge.d.ts.map +1 -0
  271. package/dist/page-bridge/preview-bridge.js +1821 -0
  272. package/dist/page-bridge/preview-bridge.js.map +1 -0
  273. package/dist/plugins/PluginBoundary.d.ts +21 -0
  274. package/dist/plugins/PluginBoundary.d.ts.map +1 -0
  275. package/dist/plugins/PluginBoundary.js +20 -0
  276. package/dist/plugins/PluginBoundary.js.map +1 -0
  277. package/dist/plugins/plugin-editor.d.ts +114 -0
  278. package/dist/plugins/plugin-editor.d.ts.map +1 -0
  279. package/dist/plugins/plugin-editor.js +142 -0
  280. package/dist/plugins/plugin-editor.js.map +1 -0
  281. package/dist/plugins/plugin-ui.d.ts +45 -0
  282. package/dist/plugins/plugin-ui.d.ts.map +1 -0
  283. package/dist/plugins/plugin-ui.js +44 -0
  284. package/dist/plugins/plugin-ui.js.map +1 -0
  285. package/dist/screens/Contact/ContactDeals.d.ts +6 -0
  286. package/dist/screens/Contact/ContactDeals.d.ts.map +1 -0
  287. package/dist/screens/Contact/ContactDeals.js +41 -0
  288. package/dist/screens/Contact/ContactDeals.js.map +1 -0
  289. package/dist/screens/Contact/ContactScreen.d.ts +3 -0
  290. package/dist/screens/Contact/ContactScreen.d.ts.map +1 -0
  291. package/dist/screens/Contact/ContactScreen.js +165 -0
  292. package/dist/screens/Contact/ContactScreen.js.map +1 -0
  293. package/dist/screens/Contact/ContactWork.d.ts +6 -0
  294. package/dist/screens/Contact/ContactWork.d.ts.map +1 -0
  295. package/dist/screens/Contact/ContactWork.js +50 -0
  296. package/dist/screens/Contact/ContactWork.js.map +1 -0
  297. package/dist/screens/Contacts/ContactsScreen.d.ts +3 -0
  298. package/dist/screens/Contacts/ContactsScreen.d.ts.map +1 -0
  299. package/dist/screens/Contacts/ContactsScreen.js +133 -0
  300. package/dist/screens/Contacts/ContactsScreen.js.map +1 -0
  301. package/dist/screens/Contacts/ImportDialog.d.ts +5 -0
  302. package/dist/screens/Contacts/ImportDialog.d.ts.map +1 -0
  303. package/dist/screens/Contacts/ImportDialog.js +90 -0
  304. package/dist/screens/Contacts/ImportDialog.js.map +1 -0
  305. package/dist/screens/Contacts/PipelineBoard.d.ts +11 -0
  306. package/dist/screens/Contacts/PipelineBoard.d.ts.map +1 -0
  307. package/dist/screens/Contacts/PipelineBoard.js +74 -0
  308. package/dist/screens/Contacts/PipelineBoard.js.map +1 -0
  309. package/dist/screens/Contacts/StagesDialog.d.ts +8 -0
  310. package/dist/screens/Contacts/StagesDialog.d.ts.map +1 -0
  311. package/dist/screens/Contacts/StagesDialog.js +61 -0
  312. package/dist/screens/Contacts/StagesDialog.js.map +1 -0
  313. package/dist/screens/Contacts/contact-source.d.ts +4 -0
  314. package/dist/screens/Contacts/contact-source.d.ts.map +1 -0
  315. package/dist/screens/Contacts/contact-source.js +18 -0
  316. package/dist/screens/Contacts/contact-source.js.map +1 -0
  317. package/dist/screens/Contacts/pipeline.d.ts +23 -0
  318. package/dist/screens/Contacts/pipeline.d.ts.map +1 -0
  319. package/dist/screens/Contacts/pipeline.js +57 -0
  320. package/dist/screens/Contacts/pipeline.js.map +1 -0
  321. package/dist/screens/ContentList/ContentListScreen.d.ts +3 -0
  322. package/dist/screens/ContentList/ContentListScreen.d.ts.map +1 -0
  323. package/dist/screens/ContentList/ContentListScreen.js +112 -0
  324. package/dist/screens/ContentList/ContentListScreen.js.map +1 -0
  325. package/dist/screens/ContentType/ContentTypeScreen.d.ts +3 -0
  326. package/dist/screens/ContentType/ContentTypeScreen.d.ts.map +1 -0
  327. package/dist/screens/ContentType/ContentTypeScreen.js +140 -0
  328. package/dist/screens/ContentType/ContentTypeScreen.js.map +1 -0
  329. package/dist/screens/ContentType/FieldDialog.d.ts +12 -0
  330. package/dist/screens/ContentType/FieldDialog.d.ts.map +1 -0
  331. package/dist/screens/ContentType/FieldDialog.js +110 -0
  332. package/dist/screens/ContentType/FieldDialog.js.map +1 -0
  333. package/dist/screens/ContentType/SectionsDialog.d.ts +7 -0
  334. package/dist/screens/ContentType/SectionsDialog.d.ts.map +1 -0
  335. package/dist/screens/ContentType/SectionsDialog.js +67 -0
  336. package/dist/screens/ContentType/SectionsDialog.js.map +1 -0
  337. package/dist/screens/ContentType/SettingsDialog.d.ts +7 -0
  338. package/dist/screens/ContentType/SettingsDialog.d.ts.map +1 -0
  339. package/dist/screens/ContentType/SettingsDialog.js +75 -0
  340. package/dist/screens/ContentType/SettingsDialog.js.map +1 -0
  341. package/dist/screens/ContentTypes/ContentTypesScreen.d.ts +3 -0
  342. package/dist/screens/ContentTypes/ContentTypesScreen.d.ts.map +1 -0
  343. package/dist/screens/ContentTypes/ContentTypesScreen.js +103 -0
  344. package/dist/screens/ContentTypes/ContentTypesScreen.js.map +1 -0
  345. package/dist/screens/Deals/DealDialog.d.ts +16 -0
  346. package/dist/screens/Deals/DealDialog.d.ts.map +1 -0
  347. package/dist/screens/Deals/DealDialog.js +84 -0
  348. package/dist/screens/Deals/DealDialog.js.map +1 -0
  349. package/dist/screens/Deals/DealsScreen.d.ts +3 -0
  350. package/dist/screens/Deals/DealsScreen.d.ts.map +1 -0
  351. package/dist/screens/Deals/DealsScreen.js +117 -0
  352. package/dist/screens/Deals/DealsScreen.js.map +1 -0
  353. package/dist/screens/Deals/deal-subject.d.ts +30 -0
  354. package/dist/screens/Deals/deal-subject.d.ts.map +1 -0
  355. package/dist/screens/Deals/deal-subject.js +57 -0
  356. package/dist/screens/Deals/deal-subject.js.map +1 -0
  357. package/dist/screens/EntryEditor/EntryDeals.d.ts +11 -0
  358. package/dist/screens/EntryEditor/EntryDeals.d.ts.map +1 -0
  359. package/dist/screens/EntryEditor/EntryDeals.js +45 -0
  360. package/dist/screens/EntryEditor/EntryDeals.js.map +1 -0
  361. package/dist/screens/EntryEditor/EntryEditorScreen.d.ts +3 -0
  362. package/dist/screens/EntryEditor/EntryEditorScreen.d.ts.map +1 -0
  363. package/dist/screens/EntryEditor/EntryEditorScreen.js +70 -0
  364. package/dist/screens/EntryEditor/EntryEditorScreen.js.map +1 -0
  365. package/dist/screens/EntryEditor/EntryForm.d.ts +26 -0
  366. package/dist/screens/EntryEditor/EntryForm.d.ts.map +1 -0
  367. package/dist/screens/EntryEditor/EntryForm.js +480 -0
  368. package/dist/screens/EntryEditor/EntryForm.js.map +1 -0
  369. package/dist/screens/EntryEditor/HistoryDialog.d.ts +17 -0
  370. package/dist/screens/EntryEditor/HistoryDialog.d.ts.map +1 -0
  371. package/dist/screens/EntryEditor/HistoryDialog.js +71 -0
  372. package/dist/screens/EntryEditor/HistoryDialog.js.map +1 -0
  373. package/dist/screens/EntryEditor/PagePane.d.ts +45 -0
  374. package/dist/screens/EntryEditor/PagePane.d.ts.map +1 -0
  375. package/dist/screens/EntryEditor/PagePane.js +82 -0
  376. package/dist/screens/EntryEditor/PagePane.js.map +1 -0
  377. package/dist/screens/EntryEditor/ScheduleDialog.d.ts +15 -0
  378. package/dist/screens/EntryEditor/ScheduleDialog.d.ts.map +1 -0
  379. package/dist/screens/EntryEditor/ScheduleDialog.js +70 -0
  380. package/dist/screens/EntryEditor/ScheduleDialog.js.map +1 -0
  381. package/dist/screens/EntryEditor/SectionOutline.d.ts +11 -0
  382. package/dist/screens/EntryEditor/SectionOutline.d.ts.map +1 -0
  383. package/dist/screens/EntryEditor/SectionOutline.js +46 -0
  384. package/dist/screens/EntryEditor/SectionOutline.js.map +1 -0
  385. package/dist/screens/EntryEditor/ThemeCard.d.ts +32 -0
  386. package/dist/screens/EntryEditor/ThemeCard.d.ts.map +1 -0
  387. package/dist/screens/EntryEditor/ThemeCard.js +71 -0
  388. package/dist/screens/EntryEditor/ThemeCard.js.map +1 -0
  389. package/dist/screens/Form/FormFields.d.ts +9 -0
  390. package/dist/screens/Form/FormFields.d.ts.map +1 -0
  391. package/dist/screens/Form/FormFields.js +26 -0
  392. package/dist/screens/Form/FormFields.js.map +1 -0
  393. package/dist/screens/Form/FormScreen.d.ts +3 -0
  394. package/dist/screens/Form/FormScreen.d.ts.map +1 -0
  395. package/dist/screens/Form/FormScreen.js +66 -0
  396. package/dist/screens/Form/FormScreen.js.map +1 -0
  397. package/dist/screens/Form/FormSettingsDialog.d.ts +8 -0
  398. package/dist/screens/Form/FormSettingsDialog.d.ts.map +1 -0
  399. package/dist/screens/Form/FormSettingsDialog.js +78 -0
  400. package/dist/screens/Form/FormSettingsDialog.js.map +1 -0
  401. package/dist/screens/Form/Submissions.d.ts +6 -0
  402. package/dist/screens/Form/Submissions.d.ts.map +1 -0
  403. package/dist/screens/Form/Submissions.js +98 -0
  404. package/dist/screens/Form/Submissions.js.map +1 -0
  405. package/dist/screens/Form/form-fields.d.ts +3 -0
  406. package/dist/screens/Form/form-fields.d.ts.map +1 -0
  407. package/dist/screens/Form/form-fields.js +9 -0
  408. package/dist/screens/Form/form-fields.js.map +1 -0
  409. package/dist/screens/Forms/FormsScreen.d.ts +3 -0
  410. package/dist/screens/Forms/FormsScreen.d.ts.map +1 -0
  411. package/dist/screens/Forms/FormsScreen.js +142 -0
  412. package/dist/screens/Forms/FormsScreen.js.map +1 -0
  413. package/dist/screens/Home/FollowUps.d.ts +8 -0
  414. package/dist/screens/Home/FollowUps.d.ts.map +1 -0
  415. package/dist/screens/Home/FollowUps.js +43 -0
  416. package/dist/screens/Home/FollowUps.js.map +1 -0
  417. package/dist/screens/Home/HomeScreen.d.ts +6 -0
  418. package/dist/screens/Home/HomeScreen.d.ts.map +1 -0
  419. package/dist/screens/Home/HomeScreen.js +156 -0
  420. package/dist/screens/Home/HomeScreen.js.map +1 -0
  421. package/dist/screens/Media/MediaScreen.d.ts +3 -0
  422. package/dist/screens/Media/MediaScreen.d.ts.map +1 -0
  423. package/dist/screens/Media/MediaScreen.js +72 -0
  424. package/dist/screens/Media/MediaScreen.js.map +1 -0
  425. package/dist/screens/People/PeopleScreen.d.ts +3 -0
  426. package/dist/screens/People/PeopleScreen.d.ts.map +1 -0
  427. package/dist/screens/People/PeopleScreen.js +78 -0
  428. package/dist/screens/People/PeopleScreen.js.map +1 -0
  429. package/dist/screens/PluginScreen/PluginScreenScreen.d.ts +3 -0
  430. package/dist/screens/PluginScreen/PluginScreenScreen.d.ts.map +1 -0
  431. package/dist/screens/PluginScreen/PluginScreenScreen.js +16 -0
  432. package/dist/screens/PluginScreen/PluginScreenScreen.js.map +1 -0
  433. package/dist/screens/Plugins/PluginActivityDialog.d.ts +7 -0
  434. package/dist/screens/Plugins/PluginActivityDialog.d.ts.map +1 -0
  435. package/dist/screens/Plugins/PluginActivityDialog.js +49 -0
  436. package/dist/screens/Plugins/PluginActivityDialog.js.map +1 -0
  437. package/dist/screens/Plugins/PluginSecrets.d.ts +7 -0
  438. package/dist/screens/Plugins/PluginSecrets.d.ts.map +1 -0
  439. package/dist/screens/Plugins/PluginSecrets.js +44 -0
  440. package/dist/screens/Plugins/PluginSecrets.js.map +1 -0
  441. package/dist/screens/Plugins/PluginSettingsDialog.d.ts +7 -0
  442. package/dist/screens/Plugins/PluginSettingsDialog.d.ts.map +1 -0
  443. package/dist/screens/Plugins/PluginSettingsDialog.js +46 -0
  444. package/dist/screens/Plugins/PluginSettingsDialog.js.map +1 -0
  445. package/dist/screens/Plugins/PluginsScreen.d.ts +3 -0
  446. package/dist/screens/Plugins/PluginsScreen.d.ts.map +1 -0
  447. package/dist/screens/Plugins/PluginsScreen.js +68 -0
  448. package/dist/screens/Plugins/PluginsScreen.js.map +1 -0
  449. package/dist/screens/Settings/EmailSettings.d.ts +3 -0
  450. package/dist/screens/Settings/EmailSettings.d.ts.map +1 -0
  451. package/dist/screens/Settings/EmailSettings.js +76 -0
  452. package/dist/screens/Settings/EmailSettings.js.map +1 -0
  453. package/dist/screens/Settings/FormsSettings.d.ts +3 -0
  454. package/dist/screens/Settings/FormsSettings.d.ts.map +1 -0
  455. package/dist/screens/Settings/FormsSettings.js +91 -0
  456. package/dist/screens/Settings/FormsSettings.js.map +1 -0
  457. package/dist/screens/Settings/GeneralSettings.d.ts +3 -0
  458. package/dist/screens/Settings/GeneralSettings.d.ts.map +1 -0
  459. package/dist/screens/Settings/GeneralSettings.js +42 -0
  460. package/dist/screens/Settings/GeneralSettings.js.map +1 -0
  461. package/dist/screens/Settings/SettingsPage.d.ts +9 -0
  462. package/dist/screens/Settings/SettingsPage.d.ts.map +1 -0
  463. package/dist/screens/Settings/SettingsPage.js +42 -0
  464. package/dist/screens/Settings/SettingsPage.js.map +1 -0
  465. package/dist/screens/Settings/SettingsScreen.d.ts +7 -0
  466. package/dist/screens/Settings/SettingsScreen.d.ts.map +1 -0
  467. package/dist/screens/Settings/SettingsScreen.js +53 -0
  468. package/dist/screens/Settings/SettingsScreen.js.map +1 -0
  469. package/dist/screens/Settings/StorageSettings.d.ts +3 -0
  470. package/dist/screens/Settings/StorageSettings.d.ts.map +1 -0
  471. package/dist/screens/Settings/StorageSettings.js +82 -0
  472. package/dist/screens/Settings/StorageSettings.js.map +1 -0
  473. package/dist/screens/SignIn/SignInScreen.d.ts +6 -0
  474. package/dist/screens/SignIn/SignInScreen.d.ts.map +1 -0
  475. package/dist/screens/SignIn/SignInScreen.js +52 -0
  476. package/dist/screens/SignIn/SignInScreen.js.map +1 -0
  477. package/dist/screens/Trash/TrashScreen.d.ts +3 -0
  478. package/dist/screens/Trash/TrashScreen.d.ts.map +1 -0
  479. package/dist/screens/Trash/TrashScreen.js +73 -0
  480. package/dist/screens/Trash/TrashScreen.js.map +1 -0
  481. package/dist/standalone/config.d.ts +19 -0
  482. package/dist/standalone/config.d.ts.map +1 -0
  483. package/dist/standalone/config.js +20 -0
  484. package/dist/standalone/config.js.map +1 -0
  485. package/dist/standalone/main.d.ts +7 -0
  486. package/dist/standalone/main.d.ts.map +1 -0
  487. package/dist/standalone/main.js +26 -0
  488. package/dist/standalone/main.js.map +1 -0
  489. package/dist/testing/admin-client-contract.d.ts +24 -0
  490. package/dist/testing/admin-client-contract.d.ts.map +1 -0
  491. package/dist/testing/admin-client-contract.js +615 -0
  492. package/dist/testing/admin-client-contract.js.map +1 -0
  493. package/dist/testing/http-server.d.ts +18 -0
  494. package/dist/testing/http-server.d.ts.map +1 -0
  495. package/dist/testing/http-server.js +56 -0
  496. package/dist/testing/http-server.js.map +1 -0
  497. package/dist/testing/index.d.ts +3 -0
  498. package/dist/testing/index.d.ts.map +1 -0
  499. package/dist/testing/index.js +3 -0
  500. package/dist/testing/index.js.map +1 -0
  501. package/dist/testing/memory-client.d.ts +166 -0
  502. package/dist/testing/memory-client.d.ts.map +1 -0
  503. package/dist/testing/memory-client.js +449 -0
  504. package/dist/testing/memory-client.js.map +1 -0
  505. package/dist/testing/memory-mail.d.ts +48 -0
  506. package/dist/testing/memory-mail.d.ts.map +1 -0
  507. package/dist/testing/memory-mail.js +74 -0
  508. package/dist/testing/memory-mail.js.map +1 -0
  509. package/dist/testing/memory-people.d.ts +18 -0
  510. package/dist/testing/memory-people.d.ts.map +1 -0
  511. package/dist/testing/memory-people.js +70 -0
  512. package/dist/testing/memory-people.js.map +1 -0
  513. package/dist/testing/render-app.d.ts +8 -0
  514. package/dist/testing/render-app.d.ts.map +1 -0
  515. package/dist/testing/render-app.js +10 -0
  516. package/dist/testing/render-app.js.map +1 -0
  517. package/dist/testing/sample-content.d.ts +29 -0
  518. package/dist/testing/sample-content.d.ts.map +1 -0
  519. package/dist/testing/sample-content.js +258 -0
  520. package/dist/testing/sample-content.js.map +1 -0
  521. package/package.json +74 -3
@@ -0,0 +1,38 @@
1
+ /** Every address in the editor, relative to where it is mounted. Screens never write one by hand. */
2
+ /** Stands where an entry's id would be, in the address of an entry that has not been saved yet. */
3
+ export declare const NEW_ENTRY = "new";
4
+ /** The name the address of a group's fields carries each holding field's id under. */
5
+ export declare const WITHIN = "in";
6
+ /** The parts of the site's settings, in the order of their tabs. */
7
+ export declare const SETTINGS_AREAS: readonly ["general", "email", "storage", "forms"];
8
+ export type SettingsAreaId = (typeof SETTINGS_AREAS)[number];
9
+ export declare const paths: {
10
+ readonly home: "/";
11
+ readonly signIn: "/sign-in";
12
+ readonly people: "/people";
13
+ readonly media: "/media";
14
+ readonly trash: "/trash";
15
+ readonly forms: "/forms";
16
+ /** One form: what it was sent, and its fields. */
17
+ readonly form: (formId: string) => string;
18
+ readonly contacts: "/contacts";
19
+ /** One contact: who they are and what happened with them. */
20
+ readonly contact: (contactId: string) => string;
21
+ readonly deals: "/deals";
22
+ readonly plugins: "/plugins";
23
+ /** A screen a plugin added. */
24
+ readonly pluginScreen: (plugin: string, screen: string) => string;
25
+ /** The site's settings, at one of their parts. */
26
+ readonly settings: (area?: SettingsAreaId) => string;
27
+ /** A single page that is part of the settings, shown as one of their parts. */
28
+ readonly settingsPage: (typeKey: string) => string;
29
+ readonly types: "/types";
30
+ /** A content type's fields, or with `within` (field ids from the top down) the fields a group holds. */
31
+ readonly type: (typeKey: string, within?: readonly string[]) => string;
32
+ readonly contentList: (typeKey: string) => string;
33
+ readonly entry: (typeKey: string, entryId: string) => string;
34
+ /** An entry with its page given the whole window: the visual editor. */
35
+ readonly visualEntry: (typeKey: string, entryId: string) => string;
36
+ readonly newEntry: (typeKey: string) => string;
37
+ };
38
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/app/paths.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,mGAAmG;AACnG,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B,sFAAsF;AACtF,eAAO,MAAM,MAAM,OAAO,CAAC;AAE3B,oEAAoE;AACpE,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,KAAK;;;;;;;IAOhB,kDAAkD;4BACnC,MAAM;;IAErB,6DAA6D;kCACxC,MAAM;;;IAG3B,+BAA+B;oCACR,MAAM,UAAU,MAAM;IAC7C,kDAAkD;+BACjC,cAAc;IAC/B,+EAA+E;qCACvD,MAAM;;IAE9B,wGAAwG;6BACxF,MAAM,WAAU,SAAS,MAAM,EAAE;oCAE1B,MAAM;8BACZ,MAAM,WAAW,MAAM;IACxC,wEAAwE;oCACjD,MAAM,WAAW,MAAM;iCAC1B,MAAM;CAClB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /** Every address in the editor, relative to where it is mounted. Screens never write one by hand. */
2
+ /** Stands where an entry's id would be, in the address of an entry that has not been saved yet. */
3
+ export const NEW_ENTRY = 'new';
4
+ /** The name the address of a group's fields carries each holding field's id under. */
5
+ export const WITHIN = 'in';
6
+ /** The parts of the site's settings, in the order of their tabs. */
7
+ export const SETTINGS_AREAS = ['general', 'email', 'storage', 'forms'];
8
+ export const paths = {
9
+ home: '/',
10
+ signIn: '/sign-in',
11
+ people: '/people',
12
+ media: '/media',
13
+ trash: '/trash',
14
+ forms: '/forms',
15
+ /** One form: what it was sent, and its fields. */
16
+ form: (formId) => `/forms/${encodeURIComponent(formId)}`,
17
+ contacts: '/contacts',
18
+ /** One contact: who they are and what happened with them. */
19
+ contact: (contactId) => `/contacts/${encodeURIComponent(contactId)}`,
20
+ deals: '/deals',
21
+ plugins: '/plugins',
22
+ /** A screen a plugin added. */
23
+ pluginScreen: (plugin, screen) => `/plugins/${encodeURIComponent(plugin)}/${encodeURIComponent(screen)}`,
24
+ /** The site's settings, at one of their parts. */
25
+ settings: (area = SETTINGS_AREAS[0]) => `/settings/${area}`,
26
+ /** A single page that is part of the settings, shown as one of their parts. */
27
+ settingsPage: (typeKey) => `/settings/page/${encodeURIComponent(typeKey)}`,
28
+ types: '/types',
29
+ /** A content type's fields, or with `within` (field ids from the top down) the fields a group holds. */
30
+ type: (typeKey, within = []) => `/types/${encodeURIComponent(typeKey)}${within.length > 0 ? `?${new URLSearchParams(within.map((id) => [WITHIN, id]))}` : ''}`,
31
+ contentList: (typeKey) => `/content/${encodeURIComponent(typeKey)}`,
32
+ entry: (typeKey, entryId) => `/content/${encodeURIComponent(typeKey)}/${encodeURIComponent(entryId)}`,
33
+ /** An entry with its page given the whole window: the visual editor. */
34
+ visualEntry: (typeKey, entryId) => `/content/${encodeURIComponent(typeKey)}/${encodeURIComponent(entryId)}?view=visual`,
35
+ newEntry: (typeKey) => `/content/${encodeURIComponent(typeKey)}/${NEW_ENTRY}`,
36
+ };
37
+ //# sourceMappingURL=paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/app/paths.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,mGAAmG;AACnG,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;AAE/B,sFAAsF;AACtF,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,oEAAoE;AACpE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAGhF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,kDAAkD;IAClD,IAAI,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,UAAU,kBAAkB,CAAC,MAAM,CAAC,EAAE;IAChE,QAAQ,EAAE,WAAW;IACrB,6DAA6D;IAC7D,OAAO,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,aAAa,kBAAkB,CAAC,SAAS,CAAC,EAAE;IAC5E,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,UAAU;IACnB,+BAA+B;IAC/B,YAAY,EAAE,CAAC,MAAc,EAAE,MAAc,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,MAAM,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE;IACxH,kDAAkD;IAClD,QAAQ,EAAE,CAAC,OAAuB,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,IAAI,EAAE;IAC3E,+EAA+E;IAC/E,YAAY,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,kBAAkB,kBAAkB,CAAC,OAAO,CAAC,EAAE;IAClF,KAAK,EAAE,QAAQ;IACf,wGAAwG;IACxG,IAAI,EAAE,CAAC,OAAe,EAAE,SAA4B,EAAE,EAAE,EAAE,CACxD,UAAU,kBAAkB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;IAChI,WAAW,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,OAAO,CAAC,EAAE;IAC3E,KAAK,EAAE,CAAC,OAAe,EAAE,OAAe,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE;IACrH,wEAAwE;IACxE,WAAW,EAAE,CAAC,OAAe,EAAE,OAAe,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,cAAc;IACvI,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,YAAY,kBAAkB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE;CAC7E,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { RouteObject } from 'react-router';
2
+ /** Every screen and its address. A new screen is added here and in `paths.ts`. */
3
+ export declare function createRoutes(siteName: string): RouteObject[];
4
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/app/routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAsBhD,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,EAAE,CA4C5D"}
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ContactScreen } from '../screens/Contact/ContactScreen.js';
3
+ import { DealsScreen } from '../screens/Deals/DealsScreen.js';
4
+ import { ContactsScreen } from '../screens/Contacts/ContactsScreen.js';
5
+ import { ContentTypeScreen } from '../screens/ContentType/ContentTypeScreen.js';
6
+ import { ContentTypesScreen } from '../screens/ContentTypes/ContentTypesScreen.js';
7
+ import { ContentListScreen } from '../screens/ContentList/ContentListScreen.js';
8
+ import { EntryEditorScreen } from '../screens/EntryEditor/EntryEditorScreen.js';
9
+ import { FormScreen } from '../screens/Form/FormScreen.js';
10
+ import { FormsScreen } from '../screens/Forms/FormsScreen.js';
11
+ import { HomeScreen } from '../screens/Home/HomeScreen.js';
12
+ import { MediaScreen } from '../screens/Media/MediaScreen.js';
13
+ import { PluginScreenScreen } from '../screens/PluginScreen/PluginScreenScreen.js';
14
+ import { PluginsScreen } from '../screens/Plugins/PluginsScreen.js';
15
+ import { PeopleScreen } from '../screens/People/PeopleScreen.js';
16
+ import { SettingsScreen } from '../screens/Settings/SettingsScreen.js';
17
+ import { TrashScreen } from '../screens/Trash/TrashScreen.js';
18
+ import { SignInScreen } from '../screens/SignIn/SignInScreen.js';
19
+ import { AdminLayout } from './AdminLayout.js';
20
+ import { NavigationBridge } from './NavigationBridge.js';
21
+ import { RouteError } from './RouteError.js';
22
+ /** Every screen and its address. A new screen is added here and in `paths.ts`. */
23
+ export function createRoutes(siteName) {
24
+ return [
25
+ {
26
+ element: _jsx(NavigationBridge, {}),
27
+ // A fault in the frame itself: the screen says so rather than the router's own page.
28
+ errorElement: _jsx(RouteError, {}),
29
+ children: [
30
+ { path: 'sign-in', element: _jsx(SignInScreen, { siteName: siteName }) },
31
+ {
32
+ element: _jsx(AdminLayout, { siteName: siteName }),
33
+ children: [
34
+ {
35
+ // A screen that cannot be drawn says so inside the frame, so the way to every other screen stays.
36
+ errorElement: _jsx(RouteError, {}),
37
+ children: [
38
+ { index: true, element: _jsx(HomeScreen, { siteName: siteName }) },
39
+ { path: 'people', element: _jsx(PeopleScreen, {}) },
40
+ { path: 'media', element: _jsx(MediaScreen, {}) },
41
+ { path: 'trash', element: _jsx(TrashScreen, {}) },
42
+ { path: 'forms', element: _jsx(FormsScreen, {}) },
43
+ { path: 'forms/:formId', element: _jsx(FormScreen, {}) },
44
+ { path: 'contacts', element: _jsx(ContactsScreen, {}) },
45
+ { path: 'contacts/:contactId', element: _jsx(ContactScreen, {}) },
46
+ { path: 'deals', element: _jsx(DealsScreen, {}) },
47
+ { path: 'plugins', element: _jsx(PluginsScreen, {}) },
48
+ { path: 'plugins/:pluginName/:screenId', element: _jsx(PluginScreenScreen, {}) },
49
+ { path: 'settings', element: _jsx(SettingsScreen, {}) },
50
+ { path: 'settings/:area', element: _jsx(SettingsScreen, {}) },
51
+ { path: 'settings/page/:typeKey', element: _jsx(SettingsScreen, {}) },
52
+ { path: 'types', element: _jsx(ContentTypesScreen, {}) },
53
+ { path: 'types/:typeKey', element: _jsx(ContentTypeScreen, {}) },
54
+ { path: 'content/:typeKey', element: _jsx(ContentListScreen, {}) },
55
+ // A new entry has this address too, with `NEW_ENTRY` as its id, so saving it for the
56
+ // first time changes the address without starting the screen again.
57
+ { path: 'content/:typeKey/:entryId', element: _jsx(EntryEditorScreen, {}) },
58
+ // An address the editor has no screen for.
59
+ { path: '*', element: _jsx(RouteError, { isNotFound: true }) },
60
+ ],
61
+ },
62
+ ],
63
+ },
64
+ ],
65
+ },
66
+ ];
67
+ }
68
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/app/routes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OA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E,OAAO,EAAE,KAAC,cAAc,KAAG,EAAE;gCAC/D,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAC,kBAAkB,KAAG,EAAE;gCAClD,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAC,iBAAiB,KAAG,EAAE;gCAC1D,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,KAAC,iBAAiB,KAAG,EAAE;gCAC5D,qFAAqF;gCACrF,oEAAoE;gCACpE,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAE,KAAC,iBAAiB,KAAG,EAAE;gCACrE,2CAA2C;gCAC3C,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAC,UAAU,IAAC,UAAU,SAAG,EAAE;6BAC9C;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type NavigateOptions } from "react-router";
2
+ /**
3
+ * Goes to another screen. Every screen changes the same way: where the browser can, the old
4
+ * screen fades as the new one comes in, and where it can't, the new one is simply shown.
5
+ */
6
+ export declare function useGo(): (to: string, options?: NavigateOptions) => void;
7
+ //# sourceMappingURL=use-go.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-go.d.ts","sourceRoot":"","sources":["../../src/app/use-go.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,KAAK,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,IAAI,CAMvE"}
@@ -0,0 +1,11 @@
1
+ import { useCallback } from "react";
2
+ import { useNavigate } from "react-router";
3
+ /**
4
+ * Goes to another screen. Every screen changes the same way: where the browser can, the old
5
+ * screen fades as the new one comes in, and where it can't, the new one is simply shown.
6
+ */
7
+ export function useGo() {
8
+ const navigate = useNavigate();
9
+ return useCallback((to, options) => void navigate(to, { viewTransition: true, ...options }), [navigate]);
10
+ }
11
+ //# sourceMappingURL=use-go.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-go.js","sourceRoot":"","sources":["../../src/app/use-go.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,WAAW,EAAwB,MAAM,cAAc,CAAC;AAEjE;;;GAGG;AACH,MAAM,UAAU,KAAK;IACnB,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,OAAO,WAAW,CAChB,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,EACxE,CAAC,QAAQ,CAAC,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,338 @@
1
+ import type { FormsSettings, FormsSettingsChanges, GeneralSettings, GeneralSettingsChanges, EmailSettings, EmailSettingsChanges, StorageSettings, StorageSettingsChanges, ContactImportReport, ContactImportRow, CustomFields, CustomFieldsChanges, Contact, ContactChanges, Deal, DealChanges, DealSubject, Forecast, NewDeal, Pipeline, PipelineChanges, TeamMember, ContactNote, NewContact, TimelineItem, PluginSettings, PluginTask, PluginInfo, PluginEditorInfo, PluginRouteMethod, ContentTypeChanges, ContentTypeDef, ContentTypeKind, Entry, EntryData, FieldArrangement, FieldChanges, FieldSection, FormChanges, FormDef, LocalizedText, NewForm, Submission, SubmissionStatus, NewField, NewUpload, Page, PreviewLink, Revision, Role, SiteImage } from '@velocity-astro/cms-core';
2
+ /** The person who is signed in. */
3
+ export interface SessionUser {
4
+ readonly id: string;
5
+ readonly email: string;
6
+ readonly name: string;
7
+ /** What they may do. The screens use it to leave out what the server would refuse anyway. */
8
+ readonly role: Role;
9
+ }
10
+ /** Someone who can sign in to the editor. */
11
+ export interface Person extends SessionUser {
12
+ /** Whether they have ever signed in. `false` for someone invited who has not yet; left out where the site cannot tell. */
13
+ readonly hasSignedIn?: boolean;
14
+ }
15
+ /** One of the signed-in person's own passkeys, by the name they gave it. */
16
+ export interface Passkey {
17
+ readonly id: string;
18
+ readonly name: string;
19
+ /** When it was added, as an ISO date, where the site knows. */
20
+ readonly createdAt?: string;
21
+ }
22
+ export interface NewPerson {
23
+ readonly email: string;
24
+ readonly name: string;
25
+ readonly role: Role;
26
+ }
27
+ /** A content type as someone starts it: fields are added afterwards, one at a time. */
28
+ export interface NewType {
29
+ /** The name code and addresses use, e.g. `testimonials`. It cannot be changed later. */
30
+ readonly key: string;
31
+ readonly kind: ContentTypeKind;
32
+ readonly label: LocalizedText;
33
+ /** Where its entries live on the site, e.g. `/news/[slug]`. Left out, it has no page of its own. */
34
+ readonly urlPattern?: string;
35
+ }
36
+ /** A field as someone adds it, and the section that shows it, by key. */
37
+ export interface NewTypeField extends NewField {
38
+ readonly section?: string;
39
+ }
40
+ export interface EntryListQuery {
41
+ /** The content type's key, e.g. `listings`. */
42
+ readonly type: string;
43
+ readonly locale?: string;
44
+ /** Defaults to 50. */
45
+ readonly limit?: number;
46
+ readonly offset?: number;
47
+ }
48
+ export interface TrashQuery {
49
+ /** Defaults to 50. */
50
+ readonly limit?: number;
51
+ readonly offset?: number;
52
+ }
53
+ /** Which editor control a field type is filled in with. */
54
+ export interface FieldTypeInfo {
55
+ /** The field type's name, as a `FieldDef` refers to it: `text`. */
56
+ readonly type: string;
57
+ /** The name of its control: `text-input`. */
58
+ readonly editor: string;
59
+ /** Whether a visitor can fill one in, so a form can ask for it. */
60
+ readonly takesSubmissions: boolean;
61
+ }
62
+ export interface SubmissionListQuery {
63
+ readonly formId: string;
64
+ /** Left out, submissions of every status. */
65
+ readonly status?: SubmissionStatus;
66
+ /** Defaults to 50. */
67
+ readonly limit?: number;
68
+ readonly offset?: number;
69
+ }
70
+ /** How many of a form's submissions have each status. */
71
+ export interface ContactListQuery {
72
+ /** Words to find in the name, email or phone. */
73
+ readonly search?: string;
74
+ /** Only contacts in this stage of the pipeline. */
75
+ readonly stage?: string;
76
+ /** Only contacts this person looks after, or with `null`, the ones nobody does. */
77
+ readonly ownerId?: string | null;
78
+ /** Only contacts to get back to on or before this day (`2026-03-14`), soonest first. */
79
+ readonly followUpBy?: string;
80
+ /** Defaults to 50. */
81
+ readonly limit?: number;
82
+ readonly offset?: number;
83
+ }
84
+ export interface DealListQuery {
85
+ readonly contactId?: string;
86
+ readonly stage?: string;
87
+ /** Only deals this person looks after, or with `null`, the ones nobody does. */
88
+ readonly ownerId?: string | null;
89
+ /** Only deals about this entry. */
90
+ readonly about?: DealSubject;
91
+ /** Defaults to 50. */
92
+ readonly limit?: number;
93
+ readonly offset?: number;
94
+ }
95
+ export type SubmissionCounts = Readonly<Record<SubmissionStatus, number>>;
96
+ export interface NewEntry {
97
+ /** The content type's key, e.g. `listings`. */
98
+ readonly type: string;
99
+ /** Left out, the entry is written in the site's default language. */
100
+ readonly locale?: string;
101
+ readonly slug: string;
102
+ /** Field values keyed by field id. */
103
+ readonly data: EntryData;
104
+ }
105
+ export interface EntryChanges {
106
+ readonly slug: string;
107
+ /** Every field value, keyed by field id. A field left out is emptied. */
108
+ readonly data: EntryData;
109
+ /** The revision that was loaded. The save is refused if someone else saved in between. */
110
+ readonly expectedRevision: number;
111
+ }
112
+ /** The images an image field chooses from, and whether the site takes new ones. */
113
+ export interface ImageList {
114
+ /** Ordered by name. */
115
+ readonly items: readonly SiteImage[];
116
+ /** `null` when the site has nowhere to keep uploads. */
117
+ readonly upload: {
118
+ readonly maxBytes: number;
119
+ } | null;
120
+ }
121
+ /**
122
+ * Everything the editor asks of the server. The screens know only this interface: the real
123
+ * implementation talks to the CMS over HTTP, and `MemoryAdminClient` in `./testing` stands in
124
+ * for it in tests and in the development preview.
125
+ *
126
+ * A method that fails rejects with an `Error` whose message can be shown to the person. When the
127
+ * server refused the request, it is an `AdminRequestError`, which also says why.
128
+ */
129
+ export interface AdminClient {
130
+ /** Who is signed in, or `null`. */
131
+ getSession(): Promise<SessionUser | null>;
132
+ /**
133
+ * Emails a sign-in link. Resolves the same way whether or not the address belongs to someone,
134
+ * so the screen cannot be used to find out who has an account.
135
+ */
136
+ requestSignInLink(email: string): Promise<void>;
137
+ /** Asks the browser for a passkey and signs in with it. */
138
+ signInWithPasskey(): Promise<SessionUser>;
139
+ signOut(): Promise<void>;
140
+ /** Content types ordered by key. */
141
+ listContentTypes(): Promise<readonly ContentTypeDef[]>;
142
+ /** Starts a content type with no fields. Owners only, like every change to a content type. */
143
+ createContentType(type: NewType): Promise<ContentTypeDef>;
144
+ /** Changes what a content type is called, or where its entries live. */
145
+ updateContentType(id: string, changes: ContentTypeChanges): Promise<ContentTypeDef>;
146
+ /** The content types that were archived, ordered by key. Owners only. */
147
+ listArchivedContentTypes(): Promise<readonly ContentTypeDef[]>;
148
+ /** Takes a content type out of the editor and its pages off the site. Its fields and entries are kept. */
149
+ archiveContentType(id: string): Promise<ContentTypeDef>;
150
+ /** Brings an archived content type back, with its entries as they were. */
151
+ restoreContentType(id: string): Promise<ContentTypeDef>;
152
+ /**
153
+ * Adds a field to a content type. Refused when a field already has its key. `within` leads to
154
+ * the field that holds it, by id from the top down, for a field inside a group.
155
+ */
156
+ addField(typeId: string, field: NewTypeField, within?: readonly string[]): Promise<ContentTypeDef>;
157
+ /** Changes a field in place. Its content stays. */
158
+ changeField(typeId: string, fieldId: string, changes: FieldChanges, within?: readonly string[]): Promise<ContentTypeDef>;
159
+ /** Hides a field from the editor and the site. Its content is kept, so it can be restored. */
160
+ removeField(typeId: string, fieldId: string, within?: readonly string[]): Promise<ContentTypeDef>;
161
+ /** Brings a removed field back, with its content. */
162
+ restoreField(typeId: string, fieldId: string, within?: readonly string[]): Promise<ContentTypeDef>;
163
+ /** Puts fields in order: a type's own, saying which section shows which, or those a group holds. */
164
+ arrangeFields(typeId: string, arrangement: FieldArrangement): Promise<ContentTypeDef>;
165
+ /** Says which sections the editor shows for a type, in order, and which fields each shows. */
166
+ setSections(typeId: string, sections: readonly FieldSection[]): Promise<ContentTypeDef>;
167
+ /** The working versions of a type's entries, newest first. */
168
+ listEntries(query: EntryListQuery): Promise<Page<Entry>>;
169
+ /** Every field type the site has, built in or from a plugin, with the control that edits it. */
170
+ listFieldTypes(): Promise<readonly FieldTypeInfo[]>;
171
+ /** The site's images, for an image field to choose from, and whether more can be uploaded. */
172
+ listImages(): Promise<ImageList>;
173
+ /** Adds an image. Refused unless the file is a JPEG, PNG or WebP the site has room for. */
174
+ uploadImage(upload: NewUpload): Promise<SiteImage>;
175
+ /** Removes an uploaded image for good. Refused for an image the site came with. */
176
+ removeImage(name: string): Promise<void>;
177
+ getEntry(id: string): Promise<Entry>;
178
+ /** Creates a draft. Required fields may still be empty: they are checked on publish. */
179
+ createEntry(entry: NewEntry): Promise<Entry>;
180
+ /** Saves the version being worked on. What visitors see does not change. */
181
+ updateEntry(id: string, changes: EntryChanges): Promise<Entry>;
182
+ /** Makes the saved version the one visitors see. Refused while a required field is empty. */
183
+ publishEntry(id: string, expectedRevision: number): Promise<Entry>;
184
+ /** Takes the entry off the site. Its content is kept as a draft. */
185
+ unpublishEntry(id: string): Promise<Entry>;
186
+ /** A copy of an entry as a new draft of its own, under the entry's slug with `-copy` after it. */
187
+ duplicateEntry(id: string): Promise<Entry>;
188
+ /** Sets the working version to go on the site at a time to come (`at`, an ISO time). It must be fit to publish now. */
189
+ scheduleEntry(id: string, input: {
190
+ readonly at: string;
191
+ readonly expectedRevision: number;
192
+ }): Promise<Entry>;
193
+ /** Takes an entry off the schedule. It stays as it is. */
194
+ unscheduleEntry(id: string): Promise<Entry>;
195
+ /** Every save of an entry, the latest first. */
196
+ entryHistory(id: string): Promise<Revision[]>;
197
+ /** Brings back what the entry held at an earlier revision, as a new save. What visitors see stays. */
198
+ revertEntry(id: string, input: {
199
+ readonly revision: number;
200
+ readonly expectedRevision: number;
201
+ }): Promise<Entry>;
202
+ /** Moves an entry to the trash: off the site and out of the lists, with nothing lost. */
203
+ trashEntry(id: string): Promise<Entry>;
204
+ /** Brings an entry back from the trash, as a draft. */
205
+ restoreEntry(id: string): Promise<Entry>;
206
+ /** The entries in the trash, of every content type, the latest to go there first. */
207
+ listTrash(query?: TrashQuery): Promise<Page<Entry>>;
208
+ /** Deletes an entry in the trash for good, with its history. */
209
+ deleteEntry(id: string): Promise<void>;
210
+ /** The site's forms, by key. */
211
+ listForms(): Promise<readonly FormDef[]>;
212
+ /** Starts a form. Refused when another form has its key. */
213
+ createForm(form: NewForm): Promise<FormDef>;
214
+ /** Changes a form: its fields all at once, in order, or its settings. Refused if someone saved in between. */
215
+ updateForm(id: string, changes: FormChanges): Promise<FormDef>;
216
+ /** Moves a form to the trash: it takes no more submissions, and what was sent is kept. */
217
+ trashForm(id: string): Promise<FormDef>;
218
+ restoreForm(id: string): Promise<FormDef>;
219
+ /** The forms in the trash, by key. */
220
+ listTrashedForms(): Promise<readonly FormDef[]>;
221
+ /** Deletes a form in the trash for good, and with it everything that was sent through it. */
222
+ deleteForm(id: string): Promise<void>;
223
+ /** What a form was sent, newest first. Only for those who may read submissions. */
224
+ listSubmissions(query: SubmissionListQuery): Promise<Page<Submission>>;
225
+ countSubmissions(formId: string): Promise<SubmissionCounts>;
226
+ /** Marks a submission new, handled or spam. */
227
+ markSubmission(id: string, status: SubmissionStatus): Promise<Submission>;
228
+ /** Deletes a submission for good. */
229
+ deleteSubmission(id: string): Promise<void>;
230
+ /** Everything a form was sent, as the text of a CSV file. */
231
+ exportSubmissions(formId: string): Promise<string>;
232
+ /** Deletes everything one person sent, through every form, for good. Answers with how many went. */
233
+ forgetSender(email: string): Promise<number>;
234
+ /** The people who wrote to the site, newest first. Only for those who may read contacts. */
235
+ listContacts(query?: ContactListQuery): Promise<Page<Contact>>;
236
+ /** How the site's email is sent. The provider's key is never part of it. Owners only. */
237
+ getEmailSettings(): Promise<EmailSettings>;
238
+ /** Saves how the site's email is sent. A key left out stays as it is; `null` takes it away. */
239
+ saveEmailSettings(changes: EmailSettingsChanges): Promise<EmailSettings>;
240
+ /** Sends a test email to whoever is signed in, the way the site's email is sent now. */
241
+ sendTestEmail(): Promise<void>;
242
+ /** The site's basics: what it is called. Owners only. */
243
+ getGeneralSettings(): Promise<GeneralSettings>;
244
+ saveGeneralSettings(changes: GeneralSettingsChanges): Promise<GeneralSettings>;
245
+ /** Where the site's uploads are kept. The bucket's secret key is never part of it. Owners only. */
246
+ getStorageSettings(): Promise<StorageSettings>;
247
+ /** Saves the bucket uploads are kept in. A secret key left out stays as it is; `null` takes it away. */
248
+ saveStorageSettings(changes: StorageSettingsChanges): Promise<StorageSettings>;
249
+ /** Tries the saved bucket: keeps a small file there, reads it back and removes it. */
250
+ testStorage(): Promise<void>;
251
+ /** How the site's forms are guarded. The challenge's secret key is never part of it. Owners only. */
252
+ getFormsSettings(): Promise<FormsSettings>;
253
+ /** Saves how the site's forms are guarded. A secret key left out stays as it is; `null` takes it away. */
254
+ saveFormsSettings(changes: FormsSettingsChanges): Promise<FormsSettings>;
255
+ /** Asks the challenge service whether it knows the saved secret key. */
256
+ testFormsSettings(): Promise<void>;
257
+ /** The stages a contact moves through, in order. */
258
+ getPipeline(): Promise<Pipeline>;
259
+ /** Replaces the stages. Contacts in a stage that is removed move to the first. */
260
+ savePipeline(changes: PipelineChanges): Promise<Pipeline>;
261
+ /** The fields this site adds to its contacts and its deals. For those who may read contacts. */
262
+ getCustomFields(): Promise<CustomFields>;
263
+ /** Replaces the custom fields named. A field left out is removed, and what it held is kept. */
264
+ saveCustomFields(changes: CustomFieldsChanges): Promise<CustomFields>;
265
+ /** Who a contact can be given to, by name. For those who may read contacts. */
266
+ listTeam(): Promise<readonly TeamMember[]>;
267
+ /** What contacts may buy, newest first. Only for those who may read contacts. */
268
+ listDeals(query?: DealListQuery): Promise<Page<Deal>>;
269
+ createDeal(input: NewDeal): Promise<Deal>;
270
+ updateDeal(id: string, changes: DealChanges): Promise<Deal>;
271
+ deleteDeal(id: string): Promise<void>;
272
+ /** Where the deals stand, stage by stage. */
273
+ getForecast(): Promise<Forecast>;
274
+ getContact(id: string): Promise<Contact>;
275
+ /** Adds a contact by hand. An email a contact already has is refused, naming the field. */
276
+ createContact(input: NewContact): Promise<Contact>;
277
+ /** Adds the contacts of a file, up to 200 rows at a time. Someone already here only gains what they lack. */
278
+ importContacts(rows: readonly ContactImportRow[]): Promise<ContactImportReport>;
279
+ updateContact(id: string, changes: ContactChanges): Promise<Contact>;
280
+ /** Deletes a contact for good, with their notes and everything they sent. Answers with how many submissions went. */
281
+ eraseContact(id: string): Promise<number>;
282
+ /** What happened with a contact, newest first: what they sent and what the team noted. */
283
+ contactTimeline(id: string): Promise<readonly TimelineItem[]>;
284
+ addContactNote(id: string, text: string): Promise<ContactNote>;
285
+ deleteContactNote(id: string, noteId: string): Promise<void>;
286
+ /** Everything held about one person, as the text of a JSON file. */
287
+ exportContact(id: string): Promise<string>;
288
+ /**
289
+ * A link to the entry's page showing the saved draft, good for a while. Refused when its type
290
+ * has no page of its own, or the site makes no previews.
291
+ */
292
+ previewEntry(id: string): Promise<PreviewLink>;
293
+ /** Everyone who can sign in, by name. Owners only, like every method about people. */
294
+ listPeople(): Promise<readonly Person[]>;
295
+ /** Lets someone in, and emails them a link. Refused for an address that is already here. */
296
+ invitePerson(person: NewPerson): Promise<Person>;
297
+ /** Changes what someone may do. Refused when it would leave the site without an owner. */
298
+ changePersonRole(id: string, role: Role): Promise<Person>;
299
+ /** Takes away someone's access at once. Refused for yourself and for the last owner. */
300
+ removePerson(id: string): Promise<void>;
301
+ /** Asks the browser to make a passkey for the signed-in person, called `name` in their list. */
302
+ addPasskey(name: string): Promise<void>;
303
+ /** The plugins the site named in its config, running or not, by name. Owners only. */
304
+ listPlugins(): Promise<readonly PluginInfo[]>;
305
+ /** The running plugins that add to the editor, for anyone signed in. */
306
+ listPluginEditors(): Promise<readonly PluginEditorInfo[]>;
307
+ /**
308
+ * Asks one of a plugin's own addresses, as the person signed in. `path` starts with a slash.
309
+ * A plugin's screens reach their server side this way and no other.
310
+ */
311
+ callPlugin(name: string, method: PluginRouteMethod, path: string, input?: PluginCall): Promise<unknown>;
312
+ /** Switches a plugin on or off, for the whole site. Owners only. */
313
+ setPluginEnabled(name: string, enabled: boolean): Promise<PluginInfo>;
314
+ /** A plugin's settings: the fields to draw, and what is set, by field id. Owners only. */
315
+ getPluginSettings(name: string): Promise<PluginSettings>;
316
+ /** Saves a plugin's settings. Refused, with the settings to look at, when one is not filled in correctly. */
317
+ savePluginSettings(name: string, values: EntryData): Promise<PluginSettings>;
318
+ /**
319
+ * Saves one of a plugin's keys or passwords, or with `null` takes the saved one away. What was
320
+ * saved never comes back: the settings only say that one is there. Owners only.
321
+ */
322
+ setPluginSecret(name: string, key: string, value: string | null): Promise<PluginSettings>;
323
+ /** What a plugin was asked to do that is tried again when it fails, newest first. Owners only. */
324
+ listPluginTasks(name: string): Promise<readonly PluginTask[]>;
325
+ /** Has a piece of a plugin's work that was given up on tried again, now. */
326
+ retryPluginTask(name: string, id: string): Promise<PluginTask>;
327
+ /** The signed-in person's own passkeys, oldest first. */
328
+ listPasskeys(): Promise<readonly Passkey[]>;
329
+ /** Removes one of the signed-in person's own passkeys. That device then signs in with a link. */
330
+ removePasskey(id: string): Promise<void>;
331
+ }
332
+ /** What goes with a request to a plugin's own address. */
333
+ export interface PluginCall {
334
+ readonly query?: Readonly<Record<string, string>>;
335
+ /** Sent as JSON. Left out for a `GET`. */
336
+ readonly body?: unknown;
337
+ }
338
+ //# sourceMappingURL=admin-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-client.d.ts","sourceRoot":"","sources":["../../src/client/admin-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,sBAAsB,EAAE,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,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gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACtE,0FAA0F;IAC1F,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACzD,6GAA6G;IAC7G,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7E;;;OAGG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1F,kGAAkG;IAClG,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC,CAAC;IAC9D,4EAA4E;IAC5E,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/D,yDAAyD;IACzD,YAAY,IAAI,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;IAC5C,iGAAiG;IACjG,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,0DAA0D;AAC1D,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=admin-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-client.js","sourceRoot":"","sources":["../../src/client/admin-client.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { AdminClient } from './admin-client.js';
3
+ export interface ClientProviderProps {
4
+ readonly client: AdminClient;
5
+ readonly children: ReactNode;
6
+ }
7
+ export declare function ClientProvider({ client, children }: ClientProviderProps): import("react").JSX.Element;
8
+ /** The connection to the server. */
9
+ export declare function useClient(): AdminClient;
10
+ //# sourceMappingURL=client-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-context.d.ts","sourceRoot":"","sources":["../../src/client/client-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAEvE;AAED,oCAAoC;AACpC,wBAAgB,SAAS,IAAI,WAAW,CAIvC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { createContext, useContext } from 'react';
3
+ const ClientContext = createContext(null);
4
+ export function ClientProvider({ client, children }) {
5
+ return _jsx(ClientContext, { value: client, children: children });
6
+ }
7
+ /** The connection to the server. */
8
+ export function useClient() {
9
+ const client = useContext(ClientContext);
10
+ if (!client)
11
+ throw new Error('useClient() was called outside <AdminApp>. Render the screen inside it.');
12
+ return client;
13
+ }
14
+ //# sourceMappingURL=client-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-context.js","sourceRoot":"","sources":["../../src/client/client-context.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAGlE,MAAM,aAAa,GAAG,aAAa,CAAqB,IAAI,CAAC,CAAC;AAO9D,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAuB;IACtE,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,MAAM,YAAG,QAAQ,GAAiB,CAAC;AAClE,CAAC;AAED,oCAAoC;AACpC,MAAM,UAAU,SAAS;IACvB,MAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACzC,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;IACxG,OAAO,MAAM,CAAC;AAChB,CAAC"}