@delmaredigital/payload-experiments 0.4.0-rc.3 → 0.4.0-rc.5

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 (340) hide show
  1. package/dist/admin/LayerUsage.js +1 -1
  2. package/dist/admin/MetricSourceSelect.js +2 -2
  3. package/dist/admin/PlacementStatus.js +1 -1
  4. package/dist/admin/TestsDashboardCards.js +2 -2
  5. package/dist/admin/TestsNavLink.js +2 -2
  6. package/dist/admin/blocks/BlockPanel.js +3 -3
  7. package/dist/admin/blocks/TestBlockField.js +3 -3
  8. package/dist/admin/blocks/formApi.js +1 -1
  9. package/dist/admin/blocks/model.js +1 -1
  10. package/dist/admin/blocks/statusCache.js +1 -1
  11. package/dist/admin/components/RootViewMessage.js +1 -1
  12. package/dist/admin/copy/blocks.d.ts +2 -2
  13. package/dist/admin/copy/blocks.js +3 -2
  14. package/dist/admin/copy/goals.d.ts +5 -1
  15. package/dist/admin/copy/goals.js +9 -3
  16. package/dist/admin/goals/XpGoalField.js +155 -129
  17. package/dist/admin/goals/xpGoalField.css +2 -3
  18. package/dist/admin/status.model.js +1 -1
  19. package/dist/admin/surface/ResultsRoute.d.ts +2 -1
  20. package/dist/admin/surface/ResultsRoute.js +6 -13
  21. package/dist/admin/surface/SurfaceShell.js +2 -2
  22. package/dist/admin/surface/TestsHome.d.ts +1 -1
  23. package/dist/admin/surface/TestsHome.js +3 -3
  24. package/dist/admin/surface/TestsSurface.js +2 -2
  25. package/dist/admin/surface/goals/GoalForm.d.ts +1 -1
  26. package/dist/admin/surface/goals/GoalForm.js +55 -7
  27. package/dist/admin/surface/goals/GoalsList.d.ts +1 -1
  28. package/dist/admin/surface/goals/GoalsList.js +4 -4
  29. package/dist/admin/surface/goals/data.js +2 -2
  30. package/dist/admin/surface/goals/goals.css +7 -0
  31. package/dist/admin/surface/goals/goals.model.d.ts +11 -1
  32. package/dist/admin/surface/goals/goals.model.js +43 -0
  33. package/dist/admin/surface/home.model.d.ts +1 -1
  34. package/dist/admin/surface/home.model.js +5 -5
  35. package/dist/admin/surface/newTest/NewTest.d.ts +1 -1
  36. package/dist/admin/surface/newTest/NewTest.js +1 -1
  37. package/dist/admin/surface/newTest/PageWizard.d.ts +1 -1
  38. package/dist/admin/surface/newTest/PageWizard.js +23 -25
  39. package/dist/admin/surface/results/ResultsHeader.d.ts +2 -2
  40. package/dist/admin/surface/results/ResultsHeader.js +22 -15
  41. package/dist/admin/surface/test/TestPage.d.ts +1 -2
  42. package/dist/admin/surface/test/TestPage.js +45 -156
  43. package/dist/admin/views/ExperimentsRootView.js +1 -1
  44. package/dist/admin/views/TestsNavLinkServer.js +1 -1
  45. package/dist/admin/views/renderCollectionList.js +1 -1
  46. package/dist/admin/views/renderTestsSurface.js +1 -1
  47. package/dist/blocks/placementLocale.d.ts +21 -0
  48. package/dist/blocks/placementLocale.js +115 -0
  49. package/dist/collections/experiments/config.js +1 -1
  50. package/dist/collections/metrics.js +1 -1
  51. package/dist/db/bulkPlacementRemoval.d.ts +30 -0
  52. package/dist/db/bulkPlacementRemoval.js +107 -0
  53. package/dist/db/placements.d.ts +2 -0
  54. package/dist/db/placements.js +8 -0
  55. package/dist/endpoints/editorSurface.d.ts +3 -0
  56. package/dist/endpoints/editorSurface.js +31 -0
  57. package/dist/endpoints/index.js +28 -1
  58. package/dist/errors.d.ts +1 -0
  59. package/dist/errors.js +2 -0
  60. package/dist/fields/xpGoal.js +1 -1
  61. package/dist/goals/fairness.d.ts +1 -1
  62. package/dist/goals/fairness.js +1 -1
  63. package/dist/goals/picker/clickGoalPicker.model.d.ts +8 -1
  64. package/dist/goals/picker/clickGoalPicker.model.js +20 -2
  65. package/dist/goals/picker/copy.d.ts +4 -2
  66. package/dist/goals/picker/copy.js +4 -2
  67. package/dist/goals/picker/useClickGoalPicker.d.ts +1 -1
  68. package/dist/goals/picker/useClickGoalPicker.js +4 -2
  69. package/dist/hooks/blockRemovalRule.d.ts +29 -0
  70. package/dist/hooks/blockRemovalRule.js +141 -0
  71. package/dist/hooks/pageGuard.d.ts +24 -2
  72. package/dist/hooks/pageGuard.js +178 -24
  73. package/dist/lib/placementPages.d.ts +9 -0
  74. package/dist/{admin/previewLinks.model.js → lib/placementPages.js} +1 -4
  75. package/dist/onInit.js +22 -0
  76. package/dist/plugin.js +2 -1
  77. package/dist/puck/ExperimentPicker.js +25 -10
  78. package/dist/puck/copy.d.ts +4 -1
  79. package/dist/puck/copy.js +4 -1
  80. package/dist/puck/editor/ConfigureTestDrawer.d.ts +21 -0
  81. package/dist/puck/editor/ConfigureTestDrawer.js +147 -0
  82. package/dist/puck/editor/CreateExperimentDrawer.d.ts +11 -2
  83. package/dist/puck/editor/CreateExperimentDrawer.js +73 -9
  84. package/dist/puck/editor/EditorControls.d.ts +14 -0
  85. package/dist/puck/editor/EditorControls.js +99 -0
  86. package/dist/puck/editor/ExperimentSlotEditor.js +690 -79
  87. package/dist/puck/editor/LeftoverVersions.d.ts +13 -0
  88. package/dist/puck/editor/LeftoverVersions.js +115 -0
  89. package/dist/puck/editor/PlacementNotice.d.ts +8 -0
  90. package/dist/puck/editor/PlacementNotice.js +22 -0
  91. package/dist/puck/editor/QuickTestActions.d.ts +3 -0
  92. package/dist/puck/editor/QuickTestActions.js +50 -0
  93. package/dist/puck/editor/ResultsReadout.js +8 -5
  94. package/dist/puck/editor/VersionBuilder.d.ts +20 -6
  95. package/dist/puck/editor/VersionBuilder.js +80 -50
  96. package/dist/puck/editor/armWrites.d.ts +3 -1
  97. package/dist/puck/editor/armWrites.js +2 -1
  98. package/dist/puck/editor/armsCache.d.ts +3 -1
  99. package/dist/puck/editor/armsCache.js +20 -3
  100. package/dist/puck/editor/cloneSlot.d.ts +2 -0
  101. package/dist/puck/editor/cloneSlot.js +7 -0
  102. package/dist/puck/editor/copy.d.ts +42 -5
  103. package/dist/puck/editor/copy.js +43 -6
  104. package/dist/puck/editor/editor.chrome.css +44 -0
  105. package/dist/puck/editor/editor.css +68 -0
  106. package/dist/puck/editor/editor.model.d.ts +14 -0
  107. package/dist/puck/editor/editor.model.js +58 -1
  108. package/dist/puck/editor/editorSurface.d.ts +10 -0
  109. package/dist/puck/editor/editorSurface.js +65 -0
  110. package/dist/puck/editor/experimentOutlinePlugin.js +96 -28
  111. package/dist/puck/editor/localPlacements.d.ts +2 -0
  112. package/dist/puck/editor/localPlacements.js +29 -0
  113. package/dist/puck/editor/outlineVersion.d.ts +5 -0
  114. package/dist/puck/editor/outlineVersion.js +36 -0
  115. package/dist/puck/editor/placementsCache.d.ts +50 -0
  116. package/dist/puck/editor/placementsCache.js +258 -0
  117. package/dist/puck/editor/sidebar.d.ts +12 -0
  118. package/dist/puck/editor/sidebar.js +77 -0
  119. package/dist/puck/editor/usePlacementNotice.d.ts +3 -0
  120. package/dist/puck/editor/usePlacementNotice.js +14 -0
  121. package/dist/puck/editor/xpGoalPuckEditorField.js +109 -98
  122. package/dist/puck/experimentSlotField.d.ts +3 -0
  123. package/dist/puck/experimentSlotField.js +15 -4
  124. package/dist/{admin → testSurface}/actions/DecideDialog.d.ts +2 -1
  125. package/dist/{admin → testSurface}/actions/DecideDialog.js +6 -4
  126. package/dist/{admin → testSurface}/api.js +5 -6
  127. package/dist/{admin → testSurface}/copy/common.d.ts +3 -1
  128. package/dist/{admin → testSurface}/copy/common.js +5 -1
  129. package/dist/{admin → testSurface}/copy/readiness.d.ts +20 -1
  130. package/dist/{admin → testSurface}/copy/readiness.js +25 -1
  131. package/dist/{admin → testSurface}/copy/testPage.d.ts +4 -0
  132. package/dist/{admin → testSurface}/copy/testPage.js +8 -2
  133. package/dist/testSurface/format/adminURL.d.ts +7 -0
  134. package/dist/testSurface/format/adminURL.js +9 -0
  135. package/dist/{admin → testSurface}/placements/placementLabels.js +1 -1
  136. package/dist/{admin → testSurface}/previewLinks.model.d.ts +1 -6
  137. package/dist/testSurface/previewLinks.model.js +4 -0
  138. package/dist/testSurface/readPreflight.d.ts +9 -0
  139. package/dist/testSurface/readPreflight.js +38 -0
  140. package/dist/testSurface/readinessRead.d.ts +50 -0
  141. package/dist/testSurface/readinessRead.js +46 -0
  142. package/dist/testSurface/results/results.css +64 -0
  143. package/dist/{admin → testSurface}/surface/contracts.d.ts +7 -2
  144. package/dist/testSurface/surface/editorPlacement.d.ts +21 -0
  145. package/dist/testSurface/surface/editorPlacement.js +60 -0
  146. package/dist/{admin → testSurface}/surface/pageBlock/parts.js +19 -9
  147. package/dist/testSurface/surface/pagePicker/pagePicker.css +10 -0
  148. package/dist/{admin → testSurface}/surface/readiness/ActionDialogs.js +37 -7
  149. package/dist/testSurface/surface/readiness/Banner.d.ts +2 -0
  150. package/dist/{admin → testSurface}/surface/readiness/Banner.js +106 -68
  151. package/dist/testSurface/surface/readiness/BlockerList.d.ts +11 -0
  152. package/dist/testSurface/surface/readiness/BlockerList.js +31 -0
  153. package/dist/testSurface/surface/readiness/SaveStatus.d.ts +9 -0
  154. package/dist/testSurface/surface/readiness/SaveStatus.js +66 -0
  155. package/dist/{admin → testSurface}/surface/readiness/parts.js +0 -2
  156. package/dist/{admin → testSurface}/surface/readiness/readiness.model.d.ts +13 -0
  157. package/dist/{admin → testSurface}/surface/readiness/readiness.model.js +51 -36
  158. package/dist/{admin → testSurface}/surface/readiness/useTransition.d.ts +5 -2
  159. package/dist/testSurface/surface/readiness/useTransition.js +98 -0
  160. package/dist/{admin → testSurface}/surface/results/ResultsBody.d.ts +2 -2
  161. package/dist/{admin → testSurface}/surface/results/ResultsBody.js +18 -11
  162. package/dist/testSurface/surface/setting/setting.css +17 -0
  163. package/dist/{admin → testSurface}/surface/test/AdvancedSection.js +1 -0
  164. package/dist/testSurface/surface/test/GoalSection.d.ts +4 -0
  165. package/dist/{admin → testSurface}/surface/test/GoalSection.js +4 -2
  166. package/dist/testSurface/surface/test/LengthSection.d.ts +2 -0
  167. package/dist/{admin → testSurface}/surface/test/LengthSection.js +2 -1
  168. package/dist/{admin → testSurface}/surface/test/Rail.js +7 -4
  169. package/dist/{admin → testSurface}/surface/test/ReadinessBar.js +1 -2
  170. package/dist/{admin → testSurface}/surface/test/Section.d.ts +3 -1
  171. package/dist/testSurface/surface/test/Section.js +80 -0
  172. package/dist/{admin → testSurface}/surface/test/TargetingSection.js +5 -0
  173. package/dist/testSurface/surface/test/TestSurface.d.ts +19 -0
  174. package/dist/testSurface/surface/test/TestSurface.js +213 -0
  175. package/dist/testSurface/surface/test/VersionsSection.d.ts +5 -0
  176. package/dist/{admin → testSurface}/surface/test/VersionsSection.js +13 -6
  177. package/dist/testSurface/surface/test/testPage.css +104 -0
  178. package/dist/{admin → testSurface}/surface/useTestDocument.d.ts +9 -2
  179. package/dist/{admin → testSurface}/surface/useTestDocument.js +92 -46
  180. package/dist/{admin → testSurface}/surfaceUrls.js +1 -1
  181. package/dist/testSurface/useReadinessPolling.d.ts +3 -0
  182. package/dist/testSurface/useReadinessPolling.js +24 -0
  183. package/dist/transitions/placementInteractions.js +1 -1
  184. package/dist/transitions/placements.d.ts +27 -8
  185. package/dist/transitions/placements.js +77 -6
  186. package/dist/transitions/preflightData.js +1 -1
  187. package/dist/transitions/start.js +2 -2
  188. package/dist/types/endpoints.d.ts +1 -1
  189. package/dist/ui/Card.d.ts +2 -1
  190. package/dist/ui/Card.js +4 -4
  191. package/dist/ui/Dialog.d.ts +4 -1
  192. package/dist/ui/Dialog.js +41 -3
  193. package/dist/ui/Drawer.d.ts +10 -0
  194. package/dist/ui/Drawer.js +29 -0
  195. package/dist/ui/Tabs.d.ts +4 -3
  196. package/dist/ui/Tabs.js +47 -32
  197. package/dist/ui/ui.css +24 -0
  198. package/package.json +1 -1
  199. package/dist/admin/actions/ConfirmDialog.d.ts +0 -19
  200. package/dist/admin/actions/ConfirmDialog.js +0 -149
  201. package/dist/admin/results/results.css +0 -64
  202. package/dist/admin/styles.css +0 -10
  203. package/dist/admin/styles.d.ts +0 -2
  204. package/dist/admin/styles.js +0 -3
  205. package/dist/admin/surface/pagePicker/pagePicker.css +0 -10
  206. package/dist/admin/surface/readiness/Banner.d.ts +0 -5
  207. package/dist/admin/surface/readiness/SaveStatus.d.ts +0 -5
  208. package/dist/admin/surface/readiness/SaveStatus.js +0 -53
  209. package/dist/admin/surface/readiness/useTransition.js +0 -35
  210. package/dist/admin/surface/setting/setting.css +0 -17
  211. package/dist/admin/surface/test/GoalSection.d.ts +0 -2
  212. package/dist/admin/surface/test/LengthSection.d.ts +0 -2
  213. package/dist/admin/surface/test/Section.js +0 -48
  214. package/dist/admin/surface/test/VersionsSection.d.ts +0 -4
  215. package/dist/admin/surface/test/testPage.css +0 -92
  216. /package/dist/{admin → testSurface}/PreviewLinks.d.ts +0 -0
  217. /package/dist/{admin → testSurface}/PreviewLinks.js +0 -0
  218. /package/dist/{admin → testSurface}/actions/MakeContentResult.d.ts +0 -0
  219. /package/dist/{admin → testSurface}/actions/MakeContentResult.js +0 -0
  220. /package/dist/{admin → testSurface}/actions/actions.model.d.ts +0 -0
  221. /package/dist/{admin → testSurface}/actions/actions.model.js +0 -0
  222. /package/dist/{admin → testSurface}/actions/decide.model.d.ts +0 -0
  223. /package/dist/{admin → testSurface}/actions/decide.model.js +0 -0
  224. /package/dist/{admin → testSurface}/allocation.model.d.ts +0 -0
  225. /package/dist/{admin → testSurface}/allocation.model.js +0 -0
  226. /package/dist/{admin → testSurface}/api.d.ts +0 -0
  227. /package/dist/{admin → testSurface}/arms/arms.model.d.ts +0 -0
  228. /package/dist/{admin → testSurface}/arms/arms.model.js +0 -0
  229. /package/dist/{admin → testSurface}/arms/pageTarget.model.d.ts +0 -0
  230. /package/dist/{admin → testSurface}/arms/pageTarget.model.js +0 -0
  231. /package/dist/{admin → testSurface}/arms/params.model.d.ts +0 -0
  232. /package/dist/{admin → testSurface}/arms/params.model.js +0 -0
  233. /package/dist/{admin → testSurface}/copy/actions.d.ts +0 -0
  234. /package/dist/{admin → testSurface}/copy/actions.js +0 -0
  235. /package/dist/{admin → testSurface}/copy/advanced.d.ts +0 -0
  236. /package/dist/{admin → testSurface}/copy/advanced.js +0 -0
  237. /package/dist/{admin → testSurface}/copy/arms.d.ts +0 -0
  238. /package/dist/{admin → testSurface}/copy/arms.js +0 -0
  239. /package/dist/{admin → testSurface}/copy/audience.d.ts +0 -0
  240. /package/dist/{admin → testSurface}/copy/audience.js +0 -0
  241. /package/dist/{admin → testSurface}/copy/metrics.d.ts +0 -0
  242. /package/dist/{admin → testSurface}/copy/metrics.js +0 -0
  243. /package/dist/{admin → testSurface}/copy/pages.d.ts +0 -0
  244. /package/dist/{admin → testSurface}/copy/pages.js +0 -0
  245. /package/dist/{admin → testSurface}/copy/recommendation.d.ts +0 -0
  246. /package/dist/{admin → testSurface}/copy/recommendation.js +0 -0
  247. /package/dist/{admin → testSurface}/copy/results.d.ts +0 -0
  248. /package/dist/{admin → testSurface}/copy/results.js +0 -0
  249. /package/dist/{admin → testSurface}/copy/review.d.ts +0 -0
  250. /package/dist/{admin → testSurface}/copy/review.js +0 -0
  251. /package/dist/{admin → testSurface}/copy/setting.d.ts +0 -0
  252. /package/dist/{admin → testSurface}/copy/setting.js +0 -0
  253. /package/dist/{admin → testSurface}/copy/surface.d.ts +0 -0
  254. /package/dist/{admin → testSurface}/copy/surface.js +0 -0
  255. /package/dist/{admin → testSurface}/format/date.d.ts +0 -0
  256. /package/dist/{admin → testSurface}/format/date.js +0 -0
  257. /package/dist/{admin → testSurface}/labels.d.ts +0 -0
  258. /package/dist/{admin → testSurface}/labels.js +0 -0
  259. /package/dist/{admin → testSurface}/lockedNotice.model.d.ts +0 -0
  260. /package/dist/{admin → testSurface}/lockedNotice.model.js +0 -0
  261. /package/dist/{admin → testSurface}/metricSource.model.d.ts +0 -0
  262. /package/dist/{admin → testSurface}/metricSource.model.js +0 -0
  263. /package/dist/{admin → testSurface}/placements/placementLabels.d.ts +0 -0
  264. /package/dist/{admin → testSurface}/placements/placementLabels.model.d.ts +0 -0
  265. /package/dist/{admin → testSurface}/placements/placementLabels.model.js +0 -0
  266. /package/dist/{admin → testSurface}/placements/usePlacementLabels.d.ts +0 -0
  267. /package/dist/{admin → testSurface}/placements/usePlacementLabels.js +0 -0
  268. /package/dist/{admin → testSurface}/reload.d.ts +0 -0
  269. /package/dist/{admin → testSurface}/reload.js +0 -0
  270. /package/dist/{admin → testSurface}/results/CappedCell.d.ts +0 -0
  271. /package/dist/{admin → testSurface}/results/CappedCell.js +0 -0
  272. /package/dist/{admin → testSurface}/results/CiChart.d.ts +0 -0
  273. /package/dist/{admin → testSurface}/results/CiChart.js +0 -0
  274. /package/dist/{admin → testSurface}/results/DataQualityPanel.d.ts +0 -0
  275. /package/dist/{admin → testSurface}/results/DataQualityPanel.js +0 -0
  276. /package/dist/{admin → testSurface}/results/DataTable.d.ts +0 -0
  277. /package/dist/{admin → testSurface}/results/DataTable.js +0 -0
  278. /package/dist/{admin → testSurface}/results/StatTile.d.ts +0 -0
  279. /package/dist/{admin → testSurface}/results/StatTile.js +0 -0
  280. /package/dist/{admin → testSurface}/results/VerdictHero.d.ts +0 -0
  281. /package/dist/{admin → testSurface}/results/VerdictHero.js +0 -0
  282. /package/dist/{admin → testSurface}/results/chart.model.d.ts +0 -0
  283. /package/dist/{admin → testSurface}/results/chart.model.js +0 -0
  284. /package/dist/{admin → testSurface}/results/format.d.ts +0 -0
  285. /package/dist/{admin → testSurface}/results/format.js +0 -0
  286. /package/dist/{admin → testSurface}/results/legacy.d.ts +0 -0
  287. /package/dist/{admin → testSurface}/results/legacy.js +0 -0
  288. /package/dist/{admin → testSurface}/results/releasePages.model.d.ts +0 -0
  289. /package/dist/{admin → testSurface}/results/releasePages.model.js +0 -0
  290. /package/dist/{admin → testSurface}/results/results.model.d.ts +0 -0
  291. /package/dist/{admin → testSurface}/results/results.model.js +0 -0
  292. /package/dist/{admin → testSurface}/results/snapshot.d.ts +0 -0
  293. /package/dist/{admin → testSurface}/results/snapshot.js +0 -0
  294. /package/dist/{admin → testSurface}/review/review.model.d.ts +0 -0
  295. /package/dist/{admin → testSurface}/review/review.model.js +0 -0
  296. /package/dist/{admin → testSurface}/surface/contracts.js +0 -0
  297. /package/dist/{admin → testSurface}/surface/pageBlock/pageBlock.model.d.ts +0 -0
  298. /package/dist/{admin → testSurface}/surface/pageBlock/pageBlock.model.js +0 -0
  299. /package/dist/{admin → testSurface}/surface/pageBlock/parts.d.ts +0 -0
  300. /package/dist/{admin → testSurface}/surface/pagePicker/CopyRoute.d.ts +0 -0
  301. /package/dist/{admin → testSurface}/surface/pagePicker/CopyRoute.js +0 -0
  302. /package/dist/{admin → testSurface}/surface/pagePicker/PageCombobox.d.ts +0 -0
  303. /package/dist/{admin → testSurface}/surface/pagePicker/PageCombobox.js +0 -0
  304. /package/dist/{admin → testSurface}/surface/pagePicker/pagePicker.model.d.ts +0 -0
  305. /package/dist/{admin → testSurface}/surface/pagePicker/pagePicker.model.js +0 -0
  306. /package/dist/{admin → testSurface}/surface/readiness/ActionDialogs.d.ts +0 -0
  307. /package/dist/{admin → testSurface}/surface/readiness/parts.d.ts +0 -0
  308. /package/dist/{admin → testSurface}/surface/results/ReleasePages.d.ts +0 -0
  309. /package/dist/{admin → testSurface}/surface/results/ReleasePages.js +0 -0
  310. /package/dist/{admin → testSurface}/surface/results/recommendation.model.d.ts +0 -0
  311. /package/dist/{admin → testSurface}/surface/results/recommendation.model.js +0 -0
  312. /package/dist/{admin → testSurface}/surface/results/useResults.d.ts +0 -0
  313. /package/dist/{admin → testSurface}/surface/results/useResults.js +0 -0
  314. /package/dist/{admin → testSurface}/surface/setting/parts.d.ts +0 -0
  315. /package/dist/{admin → testSurface}/surface/setting/parts.js +0 -0
  316. /package/dist/{admin → testSurface}/surface/setting/setting.model.d.ts +0 -0
  317. /package/dist/{admin → testSurface}/surface/setting/setting.model.js +0 -0
  318. /package/dist/{admin → testSurface}/surface/test/AdvancedSection.d.ts +0 -0
  319. /package/dist/{admin → testSurface}/surface/test/PageHoldout.d.ts +0 -0
  320. /package/dist/{admin → testSurface}/surface/test/PageHoldout.js +0 -0
  321. /package/dist/{admin → testSurface}/surface/test/Rail.d.ts +0 -0
  322. /package/dist/{admin → testSurface}/surface/test/ReadinessBar.d.ts +0 -0
  323. /package/dist/{admin → testSurface}/surface/test/TargetingSection.d.ts +0 -0
  324. /package/dist/{admin → testSurface}/surface/test/fields.d.ts +0 -0
  325. /package/dist/{admin → testSurface}/surface/test/fields.js +0 -0
  326. /package/dist/{admin → testSurface}/surface/test/jumpToSection.d.ts +0 -0
  327. /package/dist/{admin → testSurface}/surface/test/jumpToSection.js +0 -0
  328. /package/dist/{admin → testSurface}/surface/test/pageParts.d.ts +0 -0
  329. /package/dist/{admin → testSurface}/surface/test/pageParts.js +0 -0
  330. /package/dist/{admin → testSurface}/surface/test/testPage.model.d.ts +0 -0
  331. /package/dist/{admin → testSurface}/surface/test/testPage.model.js +0 -0
  332. /package/dist/{admin → testSurface}/surface/testDocument.model.d.ts +0 -0
  333. /package/dist/{admin → testSurface}/surface/testDocument.model.js +0 -0
  334. /package/dist/{admin → testSurface}/surfaceUrls.d.ts +0 -0
  335. /package/dist/{admin → testSurface}/targeting/targeting.model.d.ts +0 -0
  336. /package/dist/{admin → testSurface}/targeting/targeting.model.js +0 -0
  337. /package/dist/{admin → testSurface}/theme.d.ts +0 -0
  338. /package/dist/{admin → testSurface}/theme.js +0 -0
  339. /package/dist/{admin → testSurface}/useApi.d.ts +0 -0
  340. /package/dist/{admin → testSurface}/useApi.js +0 -0
@@ -1,3 +1,4 @@
1
+ import { handleEditorSurface } from './editorSurface.js';
1
2
  import { handleClickKeys } from './clickKeys.js';
2
3
  import { createHmac, timingSafeEqual } from 'node:crypto';
3
4
  import { XP_MANIFEST_KEY_HEADER } from '../constants.js';
@@ -146,9 +147,15 @@ export const ROUTES = [
146
147
  path: '/xp/placements/status',
147
148
  access: 'manage',
148
149
  handler: handlePlacementStatus
150
+ },
151
+ {
152
+ method: 'get',
153
+ path: '/xp/editor-surface',
154
+ access: 'surface',
155
+ handler: handleEditorSurface
149
156
  }
150
157
  ];
151
- function error(status, code, message, detail) {
158
+ function endpointError(status, code, message, detail) {
152
159
  return Response.json({
153
160
  errors: [
154
161
  {
@@ -172,6 +179,11 @@ export function buildEndpoints(ctx) {
172
179
  const handlerContext = {
173
180
  options
174
181
  };
182
+ const error = (status, code, message, detail)=>{
183
+ const response = endpointError(status, code, message, detail);
184
+ if (route.access === 'surface') response.headers.set('Cache-Control', 'private, no-store');
185
+ return response;
186
+ };
175
187
  try {
176
188
  if (route.access === 'manage' || route.access === 'readResults') {
177
189
  if (!req.user) return error(401, 'unauthenticated', 'Authentication required');
@@ -179,6 +191,21 @@ export function buildEndpoints(ctx) {
179
191
  if (await access({
180
192
  req
181
193
  }) !== true) return error(403, 'forbidden', 'Access denied');
194
+ } else if (route.access === 'surface') {
195
+ if (!req.user) return error(401, 'unauthenticated', 'Authentication required');
196
+ // Match the admin surface: a failed host access check denies that permission.
197
+ const permits = async (access)=>{
198
+ try {
199
+ return await access({
200
+ req
201
+ }) === true;
202
+ } catch {
203
+ return false;
204
+ }
205
+ };
206
+ const manage = await permits(options.access.manage);
207
+ const read = options.access.readResults ? await permits(options.access.readResults) : manage;
208
+ if (!manage && !read) return error(403, 'forbidden', 'Access denied');
182
209
  } else if (route.access === 'manifestKey') {
183
210
  const secret = options.runtime.proxyRuntime.secrets[0];
184
211
  if (!secret) return error(401, 'unauthenticated', 'Invalid manifest key');
package/dist/errors.d.ts CHANGED
@@ -22,6 +22,7 @@ export declare class XpRefusal extends Error {
22
22
  readonly detail: unknown | undefined;
23
23
  readonly status: 409 | 413 | 422 | 500 | 404;
24
24
  name: string;
25
+ readonly isOperational = true;
25
26
  readonly isPublic = true;
26
27
  constructor(code: RefusalCode, message: string, detail: unknown | undefined, status: 409 | 413 | 422 | 500 | 404, options?: ErrorOptions);
27
28
  }
package/dist/errors.js CHANGED
@@ -26,6 +26,8 @@ export class XpRefusal extends Error {
26
26
  detail;
27
27
  status;
28
28
  name = 'XpRefusal';
29
+ // Payload-compatible marker used by Puck's public-error response mapper.
30
+ isOperational = true;
29
31
  isPublic = true;
30
32
  constructor(code, message, detail, status, options){
31
33
  super(message, options), this.code = code, this.detail = detail, this.status = status;
@@ -6,7 +6,7 @@ import { validateClickGoal } from '../goals/validate.js';
6
6
  label: 'Click goal',
7
7
  type: 'text',
8
8
  admin: {
9
- description: 'Choose the short name of the click goal to count here.',
9
+ description: 'Choose the click goal to count here.',
10
10
  components: {
11
11
  Field: XP_GOAL_FIELD
12
12
  }
@@ -1,7 +1,7 @@
1
1
  import type { PayloadRequest } from 'payload';
2
2
  import type { Arm, DocId, ResolvedOptions } from '../types/contracts.js';
3
3
  import type { PlacementDoc } from '../db/placements.js';
4
- export declare const OUTSIDE_GOAL = "This goal isn't inside the part being tested, so every version shows it the same way.";
4
+ export declare const OUTSIDE_GOAL: (name?: string, kind?: string) => string;
5
5
  export declare const LEGACY_FAIRNESS = "Goal fairness isn't checked for tests started before this update.";
6
6
  export interface GoalPlacement {
7
7
  collection?: string;
@@ -5,7 +5,7 @@ import { EXPERIMENT_BLOCK_SLUG, hostBlocks, isObject, slotBlocks } from '../bloc
5
5
  import { resolvePageCollection } from '../transitions/pageCollection.js';
6
6
  import { scanPlacements, uniquePlacementDocs } from '../transitions/placementInteractions.js';
7
7
  import { CLICK_KEY } from './key.js';
8
- export const OUTSIDE_GOAL = "This goal isn't inside the part being tested, so every version shows it the same way.";
8
+ export const OUTSIDE_GOAL = (name = 'Selected goal', kind = 'block')=>kind === 'block' ? `Heads up: the click goal “${name}” is outside this test's block, so every version shows the same button. The test can still start. To compare different buttons, move the goal inside each version.` : `Heads up: the click goal “${name}” isn't on any of this test's pages. The test can still start. Add the goal to every version's page to measure those clicks.`;
9
9
  export const LEGACY_FAIRNESS = "Goal fairness isn't checked for tests started before this update.";
10
10
  /** Inspect inline JSON only; depth-zero relationship ids never dereference another document. */ function collect(value, into, label = '', labels) {
11
11
  if (Array.isArray(value)) {
@@ -8,7 +8,14 @@ export type PickerStatus = 'loading' | 'ready' | 'not-manager' | 'error';
8
8
  export declare function goalSlug(name: string): string;
9
9
  export declare function clickGoalSlug(name: string): string;
10
10
  export declare function definedClickGoals(rows: readonly ClickGoal[]): ClickGoal[];
11
- export declare function undefinedClickKey(status: PickerStatus, goals: readonly ClickGoal[], value: string): boolean;
11
+ /** Keep legacy values visible without changing stored data during a read. */
12
+ export declare function clickGoalOptions(status: PickerStatus, goals: readonly ClickGoal[], value: string): {
13
+ options: {
14
+ value: string;
15
+ label: string;
16
+ }[];
17
+ missing: boolean;
18
+ };
12
19
  export declare function clickGoalBody(name: string, slug: string): {
13
20
  name: string;
14
21
  slug: string;
@@ -9,8 +9,26 @@ export function clickGoalSlug(name) {
9
9
  export function definedClickGoals(rows) {
10
10
  return rows.filter((row)=>isClickSource(row.source));
11
11
  }
12
- export function undefinedClickKey(status, goals, value) {
13
- return status === 'ready' && Boolean(value) && !goals.some((goal)=>goal.slug === value);
12
+ /** Keep legacy values visible without changing stored data during a read. */ export function clickGoalOptions(status, goals, value) {
13
+ const missing = status === 'ready' && Boolean(value) && !goals.some((goal)=>goal.slug === value);
14
+ const options = [
15
+ {
16
+ value: '',
17
+ label: C.none
18
+ },
19
+ ...goals.map((goal)=>({
20
+ value: goal.slug,
21
+ label: goal.name
22
+ }))
23
+ ];
24
+ if (value && !goals.some((goal)=>goal.slug === value)) options.push({
25
+ value,
26
+ label: missing ? `${value} (missing)` : value
27
+ });
28
+ return {
29
+ options,
30
+ missing
31
+ };
14
32
  }
15
33
  export function clickGoalBody(name, slug) {
16
34
  return {
@@ -1,7 +1,9 @@
1
1
  /** Shared by Payload's field and the Puck sidebar, without either UI dependency. */
2
2
  export declare const CLICK_GOAL_COPY: {
3
3
  readonly label: "Click goal";
4
- readonly choose: "Choose a click goal";
4
+ readonly none: "No click goal";
5
+ readonly loadError: "Couldn't load goals. Try again.";
6
+ readonly retry: "Try again";
5
7
  readonly newGoal: "+ New click goal";
6
8
  readonly title: "New click goal";
7
9
  readonly name: "Name";
@@ -9,7 +11,7 @@ export declare const CLICK_GOAL_COPY: {
9
11
  readonly advanced: "Advanced";
10
12
  readonly createGoal: "Create goal";
11
13
  readonly cancel: "Cancel";
12
- readonly undefinedKey: "No click goal has this name yet. Create it with \"+ New click goal\".";
14
+ readonly undefinedKey: "This click goal is missing. Choose another goal or “No click goal”.";
13
15
  readonly invalidKey: "Use a click goal short name.";
14
16
  readonly slugRule: "Use 1–64 lowercase letters, numbers, underscores or hyphens, starting with a letter or number.";
15
17
  readonly duplicateSlug: "Another goal already uses this short name. Change it under Advanced.";
@@ -1,6 +1,8 @@
1
1
  /** Shared by Payload's field and the Puck sidebar, without either UI dependency. */ export const CLICK_GOAL_COPY = {
2
2
  label: 'Click goal',
3
- choose: 'Choose a click goal',
3
+ none: 'No click goal',
4
+ loadError: "Couldn't load goals. Try again.",
5
+ retry: 'Try again',
4
6
  newGoal: '+ New click goal',
5
7
  title: 'New click goal',
6
8
  name: 'Name',
@@ -8,7 +10,7 @@
8
10
  advanced: 'Advanced',
9
11
  createGoal: 'Create goal',
10
12
  cancel: 'Cancel',
11
- undefinedKey: 'No click goal has this name yet. Create it with "+ New click goal".',
13
+ undefinedKey: 'This click goal is missing. Choose another goal or “No click goal”.',
12
14
  invalidKey: 'Use a click goal short name.',
13
15
  slugRule: 'Use 1–64 lowercase letters, numbers, underscores or hyphens, starting with a letter or number.',
14
16
  duplicateSlug: 'Another goal already uses this short name. Change it under Advanced.',
@@ -7,7 +7,7 @@ export declare function useClickGoalPicker(apiRoute: string, { enabled, onSelect
7
7
  status: PickerStatus;
8
8
  goals: ClickGoal[];
9
9
  canManage: boolean;
10
- undefinedKey: (value: string) => boolean;
10
+ retry: () => void;
11
11
  panel: {
12
12
  open: boolean;
13
13
  name: string;
@@ -2,7 +2,7 @@
2
2
  import { useEffect, useRef, useState } from 'react';
3
3
  import { fetchAllDocs } from '../../lib/fetchAllDocs.js';
4
4
  import { CLICK_KEY } from '../key.js';
5
- import { clickGoalBody, clickGoalCreateError, clickGoalSlug, definedClickGoals, undefinedClickKey } from './clickGoalPicker.model.js';
5
+ import { clickGoalBody, clickGoalCreateError, clickGoalSlug, definedClickGoals } from './clickGoalPicker.model.js';
6
6
  const goalLists = new Map();
7
7
  function publish(list, state) {
8
8
  // A read may finish after its last row unmounts and a new list has started.
@@ -180,7 +180,9 @@ const emptyPanel = ()=>({
180
180
  status,
181
181
  goals,
182
182
  canManage,
183
- undefinedKey: (value)=>undefinedClickKey(status, goals, value),
183
+ retry: ()=>{
184
+ loadGoals(api);
185
+ },
184
186
  panel,
185
187
  open: ()=>{
186
188
  if (canManage) setPanel({
@@ -0,0 +1,29 @@
1
+ import type { PayloadRequest } from 'payload';
2
+ import type { Executor } from '../db/executor.js';
3
+ import { type PlacementTest } from '../db/placements.js';
4
+ import { type BulkPlacementRemoval } from '../db/bulkPlacementRemoval.js';
5
+ import { type RemovedPlacementViews } from '../blocks/placementLocale.js';
6
+ import type { DocId } from '../types/contracts.js';
7
+ export type RemovalClaims = {
8
+ transaction: unknown;
9
+ tests: Map<string, Set<string>>;
10
+ counts?: Map<string, Map<string, number>>;
11
+ absent?: Set<string>;
12
+ };
13
+ export declare function releaseRemovalClaim(req: PayloadRequest, collection: string, id: DocId, ownKeys?: Map<string, Set<string>>): void;
14
+ /** A removal must have reached afterChange before a later write can restore it.
15
+ * A write merely retaining another locale cannot clear an in-flight removal.
16
+ */
17
+ export declare function observeUnpublishedRemoval(req: PayloadRequest, collection: string, id: DocId): void;
18
+ export declare function releaseRestoredRemovalClaims(req: PayloadRequest, collection: string, doc: Record<string, unknown> & {
19
+ id: DocId;
20
+ }, test: PlacementTest): void;
21
+ export declare const blockRemovalRule: {
22
+ prepare(req: PayloadRequest, collection: string, before: Record<string, unknown> | undefined, after: Record<string, unknown>, removingPage: boolean, exec?: Executor, tests?: readonly PlacementTest[]): Promise<{
23
+ views: RemovedPlacementViews;
24
+ affected: PlacementTest[];
25
+ }>;
26
+ discover(exec: Executor, removed: string[], tests?: readonly PlacementTest[]): Promise<PlacementTest[]>;
27
+ claim(req: PayloadRequest, transaction: unknown, affected: readonly PlacementTest[], collection: string, id: DocId, views: RemovedPlacementViews): RemovalClaims;
28
+ check(req: PayloadRequest, current: readonly PlacementTest[], affected: readonly PlacementTest[], collection: string, id: DocId, removingPage: boolean, views: RemovedPlacementViews, bulk?: BulkPlacementRemoval): Promise<void>;
29
+ };
@@ -0,0 +1,141 @@
1
+ import { removableBlockTests } from '../db/placements.js';
2
+ import { XpNoTransactionError, XpRefusal } from '../errors.js';
3
+ import { lastBlockPlacementCopy, pendingBlockRemovalCopy, bulkBlockRemovalCopy } from '../testSurface/copy/readiness.js';
4
+ import { hasOtherPublishedBlockPlacement } from '../transitions/placements.js';
5
+ import { bulkRemoves } from '../db/bulkPlacementRemoval.js';
6
+ import { localeRequest, placementLocaleContent, removedPlacementViews, placementDocumentKey } from '../blocks/placementLocale.js';
7
+ import { placementSlugs } from '../blocks/bindings.js';
8
+ export function releaseRemovalClaim(req, collection, id, ownKeys) {
9
+ const claims = req.context.xpPlacementRemovals;
10
+ for (const [test, documents] of claims?.tests ?? [])for (const key of documents){
11
+ const [slug, docId] = JSON.parse(key);
12
+ if (slug !== collection || docId !== String(id) || ownKeys && !ownKeys.get(test)?.has(key)) continue;
13
+ const count = claims?.counts?.get(test)?.get(key) ?? 1;
14
+ if (ownKeys && count > 1) claims.counts.get(test).set(key, count - 1);
15
+ else {
16
+ documents.delete(`${key}`);
17
+ claims?.counts?.get(test)?.delete(`${key}`);
18
+ claims?.absent?.delete(`${test}:${key}`);
19
+ }
20
+ }
21
+ }
22
+ /** A removal must have reached afterChange before a later write can restore it.
23
+ * A write merely retaining another locale cannot clear an in-flight removal.
24
+ */ export function observeUnpublishedRemoval(req, collection, id) {
25
+ const claims = req.context.xpPlacementRemovals;
26
+ if (!claims) return;
27
+ claims.absent ??= new Set();
28
+ for (const [test, documents] of claims.tests)for (const key of documents){
29
+ const [slug, docId] = JSON.parse(key);
30
+ if (slug === collection && docId === String(id)) claims.absent.add(`${test}:${key}`);
31
+ }
32
+ }
33
+ export function releaseRestoredRemovalClaims(req, collection, doc, test) {
34
+ const claims = req.context.xpPlacementRemovals;
35
+ if (!claims) return;
36
+ claims.absent ??= new Set();
37
+ for (const key of claims.tests.get(String(test.id)) ?? []){
38
+ const [slug, id, view] = JSON.parse(key);
39
+ if (slug !== collection || id !== String(doc.id)) continue;
40
+ const marker = `${test.id}:${key}`;
41
+ if (!placementSlugs(req.payload.config.custom.xp, collection, placementLocaleContent(localeRequest(req, view), collection, doc)).includes(test.slug)) claims.absent.add(marker);
42
+ else if (claims.absent.has(marker) && (claims.counts?.get(String(test.id))?.get(key) ?? 1) === 1) {
43
+ claims.tests.get(String(test.id)).delete(`${key}`);
44
+ claims.counts?.get(String(test.id))?.delete(`${key}`);
45
+ claims.absent.delete(`${marker}`);
46
+ }
47
+ }
48
+ }
49
+ // Separate removal-rule entry points let tests observe its IO independently
50
+ // of the earlier page-path and publish guards.
51
+ export const blockRemovalRule = {
52
+ async prepare (req, collection, before, after, removingPage, exec, tests) {
53
+ const views = removedPlacementViews(req, collection, before, after, removingPage);
54
+ const affected = views.size ? await blockRemovalRule.discover(exec, [
55
+ ...views.keys()
56
+ ], tests) : [];
57
+ return {
58
+ views,
59
+ affected
60
+ };
61
+ },
62
+ async discover (exec, removed, tests) {
63
+ if (tests) return tests.filter((test)=>test.kind === 'block' && [
64
+ 'draft',
65
+ 'stopped',
66
+ 'running'
67
+ ].includes(test.status) && removed.includes(test.slug));
68
+ return (await removableBlockTests(exec, removed)).map((test)=>({
69
+ ...test,
70
+ kind: 'block',
71
+ pageCollection: null,
72
+ phase: 0,
73
+ arms: [],
74
+ placementDocs: null
75
+ }));
76
+ },
77
+ claim (req, transaction, affected, collection, id, views) {
78
+ let claims = req.context.xpPlacementRemovals;
79
+ if (!claims) req.context.xpPlacementRemovals = claims = {
80
+ transaction,
81
+ tests: new Map()
82
+ };
83
+ claims.counts ??= new Map();
84
+ claims.absent ??= new Set();
85
+ if (claims.transaction !== transaction) {
86
+ claims.transaction = transaction;
87
+ claims.tests.clear();
88
+ claims.counts.clear();
89
+ claims.absent.clear();
90
+ }
91
+ for (const test of affected){
92
+ const documents = claims.tests.get(String(test.id)) ?? new Set();
93
+ const counts = claims.counts.get(String(test.id)) ?? new Map();
94
+ for (const view of views.get(test.slug) ?? []){
95
+ const key = placementDocumentKey(collection, id, view);
96
+ documents.add(key);
97
+ counts.set(key, (counts.get(key) ?? 0) + 1);
98
+ }
99
+ claims.tests.set(String(test.id), documents);
100
+ claims.counts.set(String(test.id), counts);
101
+ }
102
+ return claims;
103
+ },
104
+ async check (req, current, affected, collection, id, removingPage, views, bulk) {
105
+ const transaction = await req.transactionID;
106
+ // Claim only after every earlier guard passed. These claims cover subsequent
107
+ // writes; the complete bulk selection covers siblings before any can decide.
108
+ const claims = transaction == null ? undefined : blockRemovalRule.claim(req, transaction, affected, collection, id, views);
109
+ const ownKeys = new Map(affected.map((test)=>[
110
+ String(test.id),
111
+ new Set((views.get(test.slug) ?? []).map((view)=>placementDocumentKey(collection, id, view)))
112
+ ]));
113
+ try {
114
+ for (const test of affected){
115
+ if (!current.some((row)=>String(row.id) === String(test.id) && row.kind === 'block' && row.status === 'running')) continue;
116
+ const documents = claims?.tests.get(String(test.id));
117
+ let excludedSibling = false;
118
+ if (await hasOtherPublishedBlockPlacement(req, req.payload.config.custom.xp, test.slug, (slug, docId, view, doc)=>{
119
+ const key = placementDocumentKey(slug, docId, view);
120
+ if (ownKeys.get(String(test.id))?.has(key)) return true;
121
+ if (bulkRemoves(bulk, req, slug, doc, test.slug, view) || documents?.has(key)) {
122
+ excludedSibling = true;
123
+ return true;
124
+ }
125
+ return false;
126
+ })) continue;
127
+ if (transaction == null) throw new XpNoTransactionError('Save this page with transactions on.');
128
+ // Bulk selection is immutable through every sibling's decision, including
129
+ // earlier rule refusals. afterOperation explains unrelated failed writes.
130
+ const message = excludedSibling ? bulk ? bulkBlockRemovalCopy(test.name) : pendingBlockRemovalCopy(test.name) : lastBlockPlacementCopy(test.name, removingPage);
131
+ if (bulk && excludedSibling) bulk.refusals.set(message, pendingBlockRemovalCopy(test.name));
132
+ throw new XpRefusal('locked-placement', message, {
133
+ experimentId: test.id
134
+ }, 409);
135
+ }
136
+ } catch (error) {
137
+ releaseRemovalClaim(req, collection, id, ownKeys);
138
+ throw error;
139
+ }
140
+ }
141
+ };
@@ -1,9 +1,31 @@
1
- import type { CollectionAfterChangeHook, CollectionAfterOperationHook, CollectionBeforeChangeHook, CollectionBeforeDeleteHook, CollectionBeforeOperationHook } from 'payload';
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ import type { CollectionAfterChangeHook, CollectionAfterOperationHook, CollectionBeforeChangeHook, CollectionBeforeDeleteHook, CollectionBeforeOperationHook, PayloadRequest } from 'payload';
3
+ import type { DocId } from '../types/contracts.js';
2
4
  import { type PlacementTest } from '../db/placements.js';
5
+ import { type BulkPlacementRemoval } from '../db/bulkPlacementRemoval.js';
6
+ type OperationFrame = {
7
+ collection: string;
8
+ request?: PayloadRequest;
9
+ draft: boolean;
10
+ restore: boolean;
11
+ pending?: boolean;
12
+ scoped?: boolean;
13
+ complete?: boolean;
14
+ detached?: boolean;
15
+ parent?: OperationFrame;
16
+ bulk?: BulkPlacementRemoval;
17
+ };
18
+ export declare const pageGuardOperationScope: AsyncLocalStorage<OperationFrame | undefined>;
19
+ /** Must be first: buildBeforeOperation invokes its first hook synchronously,
20
+ * before the operation registers its await continuation. Later host hooks may
21
+ * await nested operations; those keep separate async contexts. No IO here.
22
+ */
23
+ export declare const pageGuardEnterOperation: CollectionBeforeOperationHook;
3
24
  export declare const pageGuardBeforeOperation: CollectionBeforeOperationHook;
4
25
  export declare const pageGuardAfterOperation: CollectionAfterOperationHook;
5
- export declare function guardExperimentIds(tests: readonly PlacementTest[], slugs: readonly string[], collection: string, paths: readonly string[], held: unknown, tags?: Set<string>): string[];
26
+ export declare function guardExperimentIds(tests: readonly PlacementTest[], slugs: readonly string[], collection: string, paths: readonly string[], held: unknown, tags?: Set<string>, discovered?: readonly DocId[]): string[];
6
27
  export declare const pageGuardBeforeDelete: CollectionBeforeDeleteHook;
7
28
  export declare const pageGuardBeforeChange: CollectionBeforeChangeHook;
8
29
  /** Unwrapped: these writes must fail the publish closed, unlike the best-effort audit. */
9
30
  export declare const pageGuardAfterChange: CollectionAfterChangeHook;
31
+ export {};