@antelopejs/dms 0.25.8 → 0.25.9-next.1183.ga9db169

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 (477) hide show
  1. package/CHANGELOG.md +0 -48
  2. package/E2E.md +138 -0
  3. package/README.md +2 -2
  4. package/data/mockup-example/spec.json +13 -0
  5. package/data/mockup-spec.schema.json +399 -16
  6. package/dist/e2e/index.d.mts +2 -1
  7. package/dist/implementations/dms/live-pages.d.ts +6 -0
  8. package/dist/implementations/dms/live-pages.js +139 -0
  9. package/dist/implementations/dms/live-pages.js.map +1 -0
  10. package/dist/implementations/dms/page/notifications.js +2 -0
  11. package/dist/implementations/dms/page/notifications.js.map +1 -1
  12. package/dist/implementations/dms/page/registry.js +19 -4
  13. package/dist/implementations/dms/page/registry.js.map +1 -1
  14. package/dist/implementations/dms/registry-snapshot.d.ts +32 -0
  15. package/dist/implementations/dms/registry-snapshot.js +55 -0
  16. package/dist/implementations/dms/registry-snapshot.js.map +1 -0
  17. package/dist/implementations/dms/services.d.ts +2 -0
  18. package/dist/implementations/dms/services.js +2 -0
  19. package/dist/implementations/dms/services.js.map +1 -1
  20. package/dist/implementations/dms/tenant-access.d.ts +1 -0
  21. package/dist/implementations/dms/tenant-access.js +7 -0
  22. package/dist/implementations/dms/tenant-access.js.map +1 -1
  23. package/dist/implementations/dms-builder/engine/compose-page.js +1 -1
  24. package/dist/implementations/dms-builder/engine/compose-page.js.map +1 -1
  25. package/dist/implementations/dms-builder/engine/map-resources-pages.js +1 -1
  26. package/dist/implementations/dms-builder/engine/map-resources-pages.js.map +1 -1
  27. package/dist/implementations/dms-builder/engine/ops-blocks.d.ts +2 -1
  28. package/dist/implementations/dms-builder/engine/ops-blocks.js +12 -1
  29. package/dist/implementations/dms-builder/engine/ops-blocks.js.map +1 -1
  30. package/dist/implementations/dms-builder/engine/table-view-settings.js +9 -33
  31. package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -1
  32. package/dist/index.js +2 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/mcp/index.d.ts +2 -0
  35. package/dist/mcp/index.js +9 -0
  36. package/dist/mcp/index.js.map +1 -1
  37. package/dist/mcp/mockup-export/capture.d.ts +19 -0
  38. package/dist/mcp/mockup-export/capture.js +99 -0
  39. package/dist/mcp/mockup-export/capture.js.map +1 -0
  40. package/dist/mcp/mockup-export/document.d.ts +4 -0
  41. package/dist/mcp/mockup-export/document.js +199 -0
  42. package/dist/mcp/mockup-export/document.js.map +1 -0
  43. package/dist/mcp/mockup-export/index.d.ts +20 -0
  44. package/dist/mcp/mockup-export/index.js +112 -0
  45. package/dist/mcp/mockup-export/index.js.map +1 -0
  46. package/dist/mcp/mockup-export/jobs.d.ts +32 -0
  47. package/dist/mcp/mockup-export/jobs.js +49 -0
  48. package/dist/mcp/mockup-export/jobs.js.map +1 -0
  49. package/dist/mcp/mockup-export/plan.d.ts +78 -0
  50. package/dist/mcp/mockup-export/plan.js +296 -0
  51. package/dist/mcp/mockup-export/plan.js.map +1 -0
  52. package/dist/mcp/mockup-export/route.d.ts +23 -0
  53. package/dist/mcp/mockup-export/route.js +91 -0
  54. package/dist/mcp/mockup-export/route.js.map +1 -0
  55. package/dist/mcp/page-verify/index.d.ts +15 -0
  56. package/dist/mcp/page-verify/index.js +16 -6
  57. package/dist/mcp/page-verify/index.js.map +1 -1
  58. package/dist/mcp/page-verify/mockup.d.ts +3 -1
  59. package/dist/mcp/page-verify/mockup.js +2 -0
  60. package/dist/mcp/page-verify/mockup.js.map +1 -1
  61. package/dist/mcp/page-verify/modules.d.ts +1 -0
  62. package/dist/mcp/page-verify/modules.js +22 -0
  63. package/dist/mcp/page-verify/modules.js.map +1 -0
  64. package/dist/mcp/page-verify/page-probe.d.ts +5 -0
  65. package/dist/mcp/page-verify/page-probe.js +2 -0
  66. package/dist/mcp/page-verify/page-probe.js.map +1 -1
  67. package/dist/mcp/page-verify/playwright.d.ts +22 -4
  68. package/dist/mcp/page-verify/playwright.js.map +1 -1
  69. package/dist/mcp/page-verify/report.d.ts +1 -0
  70. package/dist/mcp/tools/builder-compose.js +4 -1
  71. package/dist/mcp/tools/builder-compose.js.map +1 -1
  72. package/dist/mcp/tools/builder-pages.js +1 -1
  73. package/dist/mcp/tools/builder-pages.js.map +1 -1
  74. package/dist/mcp/tools/index.d.ts +2 -0
  75. package/dist/mcp/tools/index.js +6 -1
  76. package/dist/mcp/tools/index.js.map +1 -1
  77. package/dist/mcp/tools/mockup-export-pdf.d.ts +1 -0
  78. package/dist/mcp/tools/mockup-export-pdf.js +69 -0
  79. package/dist/mcp/tools/mockup-export-pdf.js.map +1 -0
  80. package/dist/mcp/tools/mockup-install-modules.d.ts +9 -0
  81. package/dist/mcp/tools/mockup-install-modules.js +122 -0
  82. package/dist/mcp/tools/mockup-install-modules.js.map +1 -0
  83. package/dist/mcp/tools/mockup-module-catalog.d.ts +3 -0
  84. package/dist/mcp/tools/mockup-module-catalog.js +52 -0
  85. package/dist/mcp/tools/mockup-module-catalog.js.map +1 -0
  86. package/dist/mcp/tools/mockup-patch-spec.js +1 -1
  87. package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
  88. package/dist/mcp/tools/mockup-read-spec.js +8 -6
  89. package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
  90. package/dist/mcp/tools/mockup-support.js +18 -5
  91. package/dist/mcp/tools/mockup-support.js.map +1 -1
  92. package/dist/mcp/tools/mockup-write-spec.js +1 -1
  93. package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
  94. package/dist/mcp/tools/mockup.js +6 -0
  95. package/dist/mcp/tools/mockup.js.map +1 -1
  96. package/dist/mcp/tools/page-verify.d.ts +1 -0
  97. package/dist/mcp/tools/page-verify.js +6 -2
  98. package/dist/mcp/tools/page-verify.js.map +1 -1
  99. package/dist/mcp/tools/pages.d.ts +1 -0
  100. package/dist/mcp/tools/pages.js +9 -3
  101. package/dist/mcp/tools/pages.js.map +1 -1
  102. package/dist/mockup/annotations.js +2 -2
  103. package/dist/mockup/annotations.js.map +1 -1
  104. package/dist/mockup/apply-notes.js +1 -1
  105. package/dist/mockup/apply-notes.js.map +1 -1
  106. package/dist/mockup/compile-layouts.d.ts +5 -0
  107. package/dist/mockup/compile-layouts.js +74 -0
  108. package/dist/mockup/compile-layouts.js.map +1 -0
  109. package/dist/mockup/compile-modules.d.ts +5 -0
  110. package/dist/mockup/compile-modules.js +40 -0
  111. package/dist/mockup/compile-modules.js.map +1 -0
  112. package/dist/mockup/compile-nodes.d.ts +11 -0
  113. package/dist/mockup/compile-nodes.js +119 -0
  114. package/dist/mockup/compile-nodes.js.map +1 -0
  115. package/dist/mockup/compile-pages.d.ts +20 -0
  116. package/dist/mockup/compile-pages.js +272 -0
  117. package/dist/mockup/compile-pages.js.map +1 -0
  118. package/dist/mockup/compile.d.ts +10 -12
  119. package/dist/mockup/compile.js +36 -292
  120. package/dist/mockup/compile.js.map +1 -1
  121. package/dist/mockup/controller-blocks.js +2 -0
  122. package/dist/mockup/controller-blocks.js.map +1 -1
  123. package/dist/mockup/create.d.ts +16 -0
  124. package/dist/mockup/create.js +78 -0
  125. package/dist/mockup/create.js.map +1 -0
  126. package/dist/mockup/created-watch.d.ts +18 -0
  127. package/dist/mockup/created-watch.js +110 -0
  128. package/dist/mockup/created-watch.js.map +1 -0
  129. package/dist/mockup/database-routes.d.ts +15 -0
  130. package/dist/mockup/database-routes.js +58 -0
  131. package/dist/mockup/database-routes.js.map +1 -0
  132. package/dist/mockup/database-schema.d.ts +17 -0
  133. package/dist/mockup/database-schema.js +41 -0
  134. package/dist/mockup/database-schema.js.map +1 -0
  135. package/dist/mockup/entities.d.ts +20 -0
  136. package/dist/mockup/entities.js +213 -0
  137. package/dist/mockup/entities.js.map +1 -0
  138. package/dist/mockup/etag.d.ts +1 -0
  139. package/dist/mockup/etag.js +10 -0
  140. package/dist/mockup/etag.js.map +1 -0
  141. package/dist/mockup/extensions.d.ts +34 -0
  142. package/dist/mockup/extensions.js +107 -0
  143. package/dist/mockup/extensions.js.map +1 -0
  144. package/dist/mockup/files.d.ts +2 -1
  145. package/dist/mockup/files.js +2 -1
  146. package/dist/mockup/files.js.map +1 -1
  147. package/dist/mockup/fixture-answers.d.ts +3 -2
  148. package/dist/mockup/fixture-answers.js +13 -4
  149. package/dist/mockup/fixture-answers.js.map +1 -1
  150. package/dist/mockup/fixture-batch.d.ts +21 -0
  151. package/dist/mockup/fixture-batch.js +111 -0
  152. package/dist/mockup/fixture-batch.js.map +1 -0
  153. package/dist/mockup/fixture-routes.d.ts +21 -0
  154. package/dist/mockup/fixture-routes.js +136 -0
  155. package/dist/mockup/fixture-routes.js.map +1 -0
  156. package/dist/mockup/fixtures.d.ts +2 -29
  157. package/dist/mockup/fixtures.js +0 -111
  158. package/dist/mockup/fixtures.js.map +1 -1
  159. package/dist/mockup/from-page.js +2 -9
  160. package/dist/mockup/from-page.js.map +1 -1
  161. package/dist/mockup/generate.js +4 -1
  162. package/dist/mockup/generate.js.map +1 -1
  163. package/dist/mockup/history-routes.d.ts +2 -4
  164. package/dist/mockup/history-routes.js +30 -39
  165. package/dist/mockup/history-routes.js.map +1 -1
  166. package/dist/mockup/history.js +7 -3
  167. package/dist/mockup/history.js.map +1 -1
  168. package/dist/mockup/index.d.ts +14 -0
  169. package/dist/mockup/index.js +14 -0
  170. package/dist/mockup/index.js.map +1 -1
  171. package/dist/mockup/json-schema-entities.d.ts +5 -0
  172. package/dist/mockup/json-schema-entities.js +141 -0
  173. package/dist/mockup/json-schema-entities.js.map +1 -0
  174. package/dist/mockup/json-schema-layout.d.ts +1 -0
  175. package/dist/mockup/json-schema-layout.js +95 -2
  176. package/dist/mockup/json-schema-layout.js.map +1 -1
  177. package/dist/mockup/json-schema.d.ts +1 -1
  178. package/dist/mockup/json-schema.js +41 -20
  179. package/dist/mockup/json-schema.js.map +1 -1
  180. package/dist/mockup/json.d.ts +8 -0
  181. package/dist/mockup/json.js +20 -0
  182. package/dist/mockup/json.js.map +1 -0
  183. package/dist/mockup/layout-model.d.ts +156 -0
  184. package/dist/mockup/layout-model.js +96 -0
  185. package/dist/mockup/layout-model.js.map +1 -0
  186. package/dist/mockup/layouts.d.ts +9 -0
  187. package/dist/mockup/layouts.js +40 -0
  188. package/dist/mockup/layouts.js.map +1 -0
  189. package/dist/mockup/manage-routes.d.ts +3 -1
  190. package/dist/mockup/manage-routes.js +38 -1
  191. package/dist/mockup/manage-routes.js.map +1 -1
  192. package/dist/mockup/manage.js +1 -1
  193. package/dist/mockup/manage.js.map +1 -1
  194. package/dist/mockup/model.d.ts +145 -99
  195. package/dist/mockup/model.js +101 -86
  196. package/dist/mockup/model.js.map +1 -1
  197. package/dist/mockup/module-context.d.ts +25 -0
  198. package/dist/mockup/module-context.js +83 -0
  199. package/dist/mockup/module-context.js.map +1 -0
  200. package/dist/mockup/module-install.d.ts +22 -0
  201. package/dist/mockup/module-install.js +71 -0
  202. package/dist/mockup/module-install.js.map +1 -0
  203. package/dist/mockup/module-states.d.ts +17 -0
  204. package/dist/mockup/module-states.js +167 -0
  205. package/dist/mockup/module-states.js.map +1 -0
  206. package/dist/mockup/modules-schema.d.ts +2 -0
  207. package/dist/mockup/modules-schema.js +38 -0
  208. package/dist/mockup/modules-schema.js.map +1 -0
  209. package/dist/mockup/modules.d.ts +9 -10
  210. package/dist/mockup/modules.js +104 -25
  211. package/dist/mockup/modules.js.map +1 -1
  212. package/dist/mockup/page-capture-routes.d.ts +19 -0
  213. package/dist/mockup/page-capture-routes.js +92 -0
  214. package/dist/mockup/page-capture-routes.js.map +1 -0
  215. package/dist/mockup/page-captures.d.ts +61 -0
  216. package/dist/mockup/page-captures.js +252 -0
  217. package/dist/mockup/page-captures.js.map +1 -0
  218. package/dist/mockup/page-descriptions.d.ts +2 -0
  219. package/dist/mockup/page-descriptions.js +18 -0
  220. package/dist/mockup/page-descriptions.js.map +1 -0
  221. package/dist/mockup/parse-spec.d.ts +10 -0
  222. package/dist/mockup/parse-spec.js +62 -0
  223. package/dist/mockup/parse-spec.js.map +1 -0
  224. package/dist/mockup/places.d.ts +17 -0
  225. package/dist/mockup/places.js +75 -0
  226. package/dist/mockup/places.js.map +1 -0
  227. package/dist/mockup/presence-board.js +1 -1
  228. package/dist/mockup/presence-board.js.map +1 -1
  229. package/dist/mockup/presence-routes.js +2 -2
  230. package/dist/mockup/presence-routes.js.map +1 -1
  231. package/dist/mockup/refusals.d.ts +6 -0
  232. package/dist/mockup/refusals.js +17 -0
  233. package/dist/mockup/refusals.js.map +1 -1
  234. package/dist/mockup/routes.d.ts +3 -5
  235. package/dist/mockup/routes.js +24 -163
  236. package/dist/mockup/routes.js.map +1 -1
  237. package/dist/mockup/sketch-limits.d.ts +1 -0
  238. package/dist/mockup/sketch-limits.js +2 -1
  239. package/dist/mockup/sketch-limits.js.map +1 -1
  240. package/dist/mockup/sketch.d.ts +2 -2
  241. package/dist/mockup/sketch.js +2 -1
  242. package/dist/mockup/sketch.js.map +1 -1
  243. package/dist/mockup/slug.d.ts +3 -0
  244. package/dist/mockup/slug.js +7 -0
  245. package/dist/mockup/slug.js.map +1 -0
  246. package/dist/mockup/source-routes.d.ts +5 -4
  247. package/dist/mockup/source-routes.js +26 -17
  248. package/dist/mockup/source-routes.js.map +1 -1
  249. package/dist/mockup/source.d.ts +3 -3
  250. package/dist/mockup/source.js +4 -3
  251. package/dist/mockup/source.js.map +1 -1
  252. package/dist/mockup/state-patch.d.ts +22 -0
  253. package/dist/mockup/state-patch.js +76 -0
  254. package/dist/mockup/state-patch.js.map +1 -0
  255. package/dist/mockup/state.d.ts +163 -0
  256. package/dist/mockup/state.js +24 -0
  257. package/dist/mockup/state.js.map +1 -0
  258. package/dist/mockup/store-list.d.ts +28 -0
  259. package/dist/mockup/store-list.js +89 -0
  260. package/dist/mockup/store-list.js.map +1 -0
  261. package/dist/mockup/store.d.ts +25 -38
  262. package/dist/mockup/store.js +126 -203
  263. package/dist/mockup/store.js.map +1 -1
  264. package/dist/mockup/table-archive.d.ts +0 -1
  265. package/dist/mockup/table-archive.js +0 -16
  266. package/dist/mockup/table-archive.js.map +1 -1
  267. package/dist/mockup/tenancy.d.ts +19 -0
  268. package/dist/mockup/tenancy.js +73 -0
  269. package/dist/mockup/tenancy.js.map +1 -0
  270. package/dist/mockup/tenant-rows.d.ts +4 -0
  271. package/dist/mockup/tenant-rows.js +19 -0
  272. package/dist/mockup/tenant-rows.js.map +1 -0
  273. package/dist/mockup/unknown-keys.d.ts +2 -2
  274. package/dist/mockup/unknown-keys.js +8 -4
  275. package/dist/mockup/unknown-keys.js.map +1 -1
  276. package/dist/mockup/validate.d.ts +2 -2
  277. package/dist/mockup/validate.js.map +1 -1
  278. package/dist/store/catalog.d.ts +5 -1
  279. package/dist/store/catalog.js +12 -1
  280. package/dist/store/catalog.js.map +1 -1
  281. package/dist/store/changes.d.ts +3 -0
  282. package/dist/store/changes.js +22 -0
  283. package/dist/store/changes.js.map +1 -0
  284. package/dist/store/index.d.ts +2 -0
  285. package/dist/store/index.js +2 -0
  286. package/dist/store/index.js.map +1 -1
  287. package/dist/store/listing.js +5 -5
  288. package/dist/store/listing.js.map +1 -1
  289. package/dist/store/operations.d.ts +8 -0
  290. package/dist/store/operations.js +27 -3
  291. package/dist/store/operations.js.map +1 -1
  292. package/dist/store/registry.d.ts +1 -0
  293. package/dist/store/registry.js +9 -0
  294. package/dist/store/registry.js.map +1 -1
  295. package/dist/store/types.d.ts +3 -0
  296. package/dist/types/index.d.ts +1 -0
  297. package/dist/types/index.js +1 -0
  298. package/dist/types/index.js.map +1 -1
  299. package/dist/types/live-pages.d.ts +41 -0
  300. package/dist/types/live-pages.js +3 -0
  301. package/dist/types/live-pages.js.map +1 -0
  302. package/dist/validation/store.schema.d.ts +1 -0
  303. package/dist/validation/store.schema.js +4 -4
  304. package/dist/validation/store.schema.js.map +1 -1
  305. package/e2e/index.mjs +3 -2
  306. package/frontend-vue/build/viewer-chunks.ts +181 -0
  307. package/frontend-vue/dms.frontend.build.ts +2 -1
  308. package/frontend-vue/dms.frontend.ts +7 -0
  309. package/frontend-vue/eslint-globals.generated.mjs +27 -24
  310. package/frontend-vue/layers/dms-core/app/build/utils/asyncDataScope.ts +3 -31
  311. package/frontend-vue/layers/dms-core/app/build/utils/previewFrame.ts +6 -1
  312. package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +8 -2
  313. package/frontend-vue/layers/dms-core/app/utils/localFetchAnswers.ts +124 -0
  314. package/frontend-vue/layers/dms-core/app/utils/textDigest.ts +29 -0
  315. package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +4 -0
  316. package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +4 -0
  317. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +89 -31
  318. package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +21 -6
  319. package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +61 -8
  320. package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +79 -9
  321. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsNav.vue +57 -8
  322. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +12 -0
  323. package/frontend-vue/layers/dms-layout/app/build/composables/settings/useSettingsNavigation.ts +42 -62
  324. package/frontend-vue/layers/dms-layout/app/build/mockups/created-mockups.ts +12 -2
  325. package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +9 -1
  326. package/frontend-vue/layers/dms-layout/app/composables/page/useMockupStoreInstaller.ts +85 -0
  327. package/frontend-vue/layers/dms-layout/app/custom-layouts/MockupLayout.vue +0 -2
  328. package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +53 -6
  329. package/frontend-vue/layers/dms-layout/app/plugins/mockup-store-installer.ts +10 -0
  330. package/frontend-vue/layers/dms-layout/app/plugins/registered-sidebar-widgets.ts +10 -0
  331. package/frontend-vue/layers/dms-layout/app/plugins/seo.ts +7 -0
  332. package/frontend-vue/layers/dms-layout/app/theme/actions.ts +11 -7
  333. package/frontend-vue/layers/dms-onboarding/app/middleware/onboarding.global.ts +3 -3
  334. package/frontend-vue/layers/dms-onboarding/app/plugins/onboarding-preload.ts +5 -1
  335. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +31 -5
  336. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCanvasChrome.vue +2 -2
  337. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +204 -0
  338. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseData.vue +288 -0
  339. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseDiagram.vue +91 -0
  340. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseRelationEdge.vue +40 -0
  341. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabaseTableNode.vue +133 -0
  342. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEmptyState.vue +23 -0
  343. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModuleStore.vue +240 -0
  344. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +54 -33
  345. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSectionLabel.vue +52 -0
  346. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +65 -12
  347. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +21 -0
  348. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinCard.vue +1 -1
  349. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +1 -1
  350. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupReconnecting.vue +17 -0
  351. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +48 -0
  352. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTitle.vue +24 -15
  353. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupToolbar.vue +196 -0
  354. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +200 -179
  355. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWarningsMenu.vue +59 -0
  356. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +152 -57
  357. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +142 -0
  358. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewAdmission.ts +20 -0
  359. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +71 -4
  360. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +44 -4
  361. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewSwapHold.ts +157 -0
  362. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/registeredSidebarWidgets.ts +20 -0
  363. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/storeModuleInstaller.ts +32 -0
  364. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +14 -2
  365. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +309 -41
  366. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useFixtureBatches.ts +154 -0
  367. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupActivation.ts +182 -0
  368. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupConnectionTables.ts +80 -0
  369. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +212 -0
  370. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +13 -1
  371. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameRender.ts +126 -0
  372. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameSize.ts +10 -5
  373. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +50 -23
  374. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +103 -29
  375. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageZoom.ts +146 -0
  376. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +124 -0
  377. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPins.ts +1 -1
  378. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +11 -4
  379. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +60 -14
  380. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +8 -3
  381. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +6 -2
  382. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +36 -0
  383. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupToolModes.ts +5 -7
  384. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerActivation.ts +59 -0
  385. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerExport.ts +46 -0
  386. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +44 -10
  387. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +13 -2
  388. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupWarningFocus.ts +145 -0
  389. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +39 -10
  390. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePersistedCaptures.ts +151 -0
  391. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +41 -0
  392. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +37 -3
  393. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCreateModal.vue +130 -0
  394. package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +20 -1
  395. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +137 -78
  396. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +1 -8
  397. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +165 -103
  398. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +321 -0
  399. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +22 -0
  400. package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +112 -175
  401. package/frontend-vue/layers/dms-ui/app/build/utils/mockupActivation.ts +120 -0
  402. package/frontend-vue/layers/dms-ui/app/build/utils/mockupAnnotations.ts +146 -0
  403. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +118 -9
  404. package/frontend-vue/layers/dms-ui/app/build/utils/mockupDiagram.ts +330 -0
  405. package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +80 -0
  406. package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +123 -8
  407. package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +11 -2
  408. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModuleNavigation.ts +215 -0
  409. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModules.ts +240 -0
  410. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +21 -3
  411. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverviewSections.ts +66 -0
  412. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPageTree.ts +15 -0
  413. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPins.ts +6 -8
  414. package/frontend-vue/layers/dms-ui/app/build/utils/mockupRealData.ts +23 -5
  415. package/frontend-vue/layers/dms-ui/app/build/utils/mockupRows.ts +83 -0
  416. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +173 -0
  417. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSettings.ts +218 -0
  418. package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +17 -6
  419. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +20 -0
  420. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStatePatch.ts +180 -0
  421. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +17 -2
  422. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +148 -0
  423. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +23 -0
  424. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTitles.ts +33 -0
  425. package/frontend-vue/layers/dms-ui/app/build/utils/mockupVersions.ts +2 -7
  426. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixtureAnswers.ts +156 -0
  427. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixturesOnly.ts +37 -19
  428. package/frontend-vue/layers/dms-ui/app/build/utils/previewOptionRules.ts +129 -0
  429. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +108 -6
  430. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +5 -1
  431. package/frontend-vue/layers/dms-ui/app/build/utils/previewRows.ts +400 -0
  432. package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +15 -0
  433. package/frontend-vue/layers/dms-ui/app/build/utils/settingsGroups.ts +73 -0
  434. package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +68 -12
  435. package/frontend-vue/layers/dms-ui/app/build/utils/urlVariables.ts +15 -0
  436. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +61 -12
  437. package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +4 -1
  438. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupModuleStore.ts +2 -0
  439. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +2 -0
  440. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +2 -0
  441. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/registeredSidebarWidgets.ts +1 -0
  442. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/storeModuleInstaller.ts +1 -0
  443. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useFixtureBatches.ts +1 -0
  444. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupActivation.ts +1 -0
  445. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupOverview.ts +1 -0
  446. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +1 -0
  447. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupRoutePage.ts +1 -0
  448. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSession.ts +1 -0
  449. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +1 -0
  450. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePersistedCaptures.ts +1 -0
  451. package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +1 -0
  452. package/frontend-vue/layers/dms-ui/app/entries/utils/json.ts +1 -0
  453. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupActivation.ts +1 -0
  454. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupAnnotations.ts +1 -0
  455. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupDiagram.ts +1 -0
  456. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupModuleNavigation.ts +1 -0
  457. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverviewSections.ts +1 -0
  458. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupRows.ts +1 -0
  459. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +1 -0
  460. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSettings.ts +1 -0
  461. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupStatePatch.ts +1 -0
  462. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +1 -0
  463. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +1 -0
  464. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTitles.ts +1 -0
  465. package/frontend-vue/layers/dms-ui/app/entries/utils/previewFixtureAnswers.ts +1 -0
  466. package/frontend-vue/layers/dms-ui/app/entries/utils/previewRows.ts +1 -0
  467. package/frontend-vue/layers/dms-ui/app/entries/utils/settingsGroups.ts +1 -0
  468. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +85 -7
  469. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +85 -7
  470. package/frontend-vue/package.json +2 -2
  471. package/frontend-vue/scripts/test-dms-components.mjs +1 -1
  472. package/package.json +6 -5
  473. package/dist/mockup/row-filters.d.ts +0 -8
  474. package/dist/mockup/row-filters.js +0 -107
  475. package/dist/mockup/row-filters.js.map +0 -1
  476. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +0 -47
  477. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +0 -67
@@ -87,6 +87,137 @@
87
87
  }
88
88
  }
89
89
  },
90
+ "entities": {
91
+ "type": "object",
92
+ "propertyNames": {
93
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
94
+ },
95
+ "description": "The app's data model: its tables, by name. The viewer draws them as a diagram of their relations and a browser of their rows. A page fixture { \"entity\": \"<name>\", \"rows\": [...] } holds the rows of one, checked against its fields. Declare an entity before a fixture points at it.",
96
+ "additionalProperties": {
97
+ "type": "object",
98
+ "required": [
99
+ "fields"
100
+ ],
101
+ "additionalProperties": false,
102
+ "properties": {
103
+ "tenantScoped": {
104
+ "type": "boolean",
105
+ "description": "true when each tenant has its own rows of this entity, as with a tenant-scoped DMS model. The entity then has a \"tenantId\" string field right after \"id\", declared or implied, and SaaS mode shows a tenant only the rows whose \"tenantId\" is its id."
106
+ },
107
+ "fields": {
108
+ "type": "object",
109
+ "propertyNames": {
110
+ "pattern": "^[A-Za-z0-9_-]{1,64}$"
111
+ },
112
+ "description": "The columns of the entity, by name. \"id\" is the key of every row: leave it out and it is a string field; declare it to give it another type. The viewer draws \"id\" first, then the other fields in this order.",
113
+ "additionalProperties": {
114
+ "oneOf": [
115
+ {
116
+ "type": "object",
117
+ "required": [
118
+ "type"
119
+ ],
120
+ "additionalProperties": false,
121
+ "description": "A plain field. Types: string; number; price (an amount); boolean; date (a string \"Date.parse\" reads, such as 2026-11-13); email; url (an absolute URL).",
122
+ "properties": {
123
+ "type": {
124
+ "enum": [
125
+ "string",
126
+ "number",
127
+ "price",
128
+ "boolean",
129
+ "date",
130
+ "email",
131
+ "url"
132
+ ]
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "type": "object",
138
+ "required": [
139
+ "type",
140
+ "values"
141
+ ],
142
+ "additionalProperties": false,
143
+ "description": "A field that takes one of a fixed list of values.",
144
+ "properties": {
145
+ "type": {
146
+ "const": "enum"
147
+ },
148
+ "values": {
149
+ "type": "array",
150
+ "minItems": 1,
151
+ "items": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ },
155
+ "description": "The values it takes, at least one."
156
+ }
157
+ }
158
+ },
159
+ {
160
+ "type": "object",
161
+ "required": [
162
+ "type",
163
+ "to"
164
+ ],
165
+ "additionalProperties": false,
166
+ "description": "A field that holds the id of a row of another entity, drawn as a relation in the diagram.",
167
+ "properties": {
168
+ "type": {
169
+ "const": "ref"
170
+ },
171
+ "to": {
172
+ "type": "string",
173
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
174
+ "description": "The entity it points to. It must be one of the spec's entities."
175
+ }
176
+ }
177
+ }
178
+ ]
179
+ }
180
+ }
181
+ }
182
+ }
183
+ },
184
+ "fixtures": {
185
+ "type": "object",
186
+ "required": [
187
+ "tenants"
188
+ ],
189
+ "additionalProperties": false,
190
+ "description": "Data the mockup itself draws, beside the data of its pages.",
191
+ "properties": {
192
+ "tenants": {
193
+ "type": "array",
194
+ "description": "The workspaces the viewer's SaaS mode lists in its switcher. A mockup that lists the \"saas\" module can be viewed as one of them: rows of a tenant-scoped entity whose \"tenantId\" is another tenant's are hidden.",
195
+ "items": {
196
+ "type": "object",
197
+ "required": [
198
+ "id",
199
+ "name"
200
+ ],
201
+ "additionalProperties": false,
202
+ "properties": {
203
+ "id": {
204
+ "type": "string",
205
+ "minLength": 1,
206
+ "description": "The tenant's id, which \"tenantId\" holds in its rows. Unique."
207
+ },
208
+ "name": {
209
+ "type": "string",
210
+ "description": "The name the switcher shows."
211
+ },
212
+ "plan": {
213
+ "type": "string",
214
+ "description": "The plan, shown under the name in the switcher."
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }
220
+ },
90
221
  "categories": {
91
222
  "type": "array",
92
223
  "description": "The sections of the sidebar, in the menu's order, as categories of the dashboard's menu (RootCategory). A page names one in its category.",
@@ -161,21 +292,191 @@
161
292
  }
162
293
  }
163
294
  },
295
+ "layouts": {
296
+ "type": "array",
297
+ "maxItems": 10,
298
+ "description": "Custom layouts a page names with layout: { \"type\": \"custom\", \"id\": <id> }, each drawn around the page from sketches: a header above it, an aside beside it and a footer under it. Each region follows the sketch rules: static HTML and CSS, drawn in a sandboxed frame. The build writes a layout as a layout of the project, never in the DMS.",
299
+ "items": {
300
+ "type": "object",
301
+ "required": [
302
+ "id",
303
+ "title"
304
+ ],
305
+ "additionalProperties": false,
306
+ "description": "Draws at least one of header, aside and footer.",
307
+ "anyOf": [
308
+ {
309
+ "required": [
310
+ "header"
311
+ ]
312
+ },
313
+ {
314
+ "required": [
315
+ "aside"
316
+ ]
317
+ },
318
+ {
319
+ "required": [
320
+ "footer"
321
+ ]
322
+ }
323
+ ],
324
+ "properties": {
325
+ "id": {
326
+ "type": "string",
327
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
328
+ "description": "Unique among the layouts."
329
+ },
330
+ "title": {
331
+ "type": "string"
332
+ },
333
+ "description": {
334
+ "type": "string"
335
+ },
336
+ "dashboard": {
337
+ "type": "boolean",
338
+ "default": true,
339
+ "description": "true keeps the dashboard's sidebar, top bar and page header around the page; false leaves them out, as EmptyLayout does."
340
+ },
341
+ "header": {
342
+ "type": "object",
343
+ "required": [
344
+ "html"
345
+ ],
346
+ "additionalProperties": false,
347
+ "description": "Drawn above the page.",
348
+ "properties": {
349
+ "html": {
350
+ "type": "string",
351
+ "maxLength": 524288
352
+ },
353
+ "css": {
354
+ "type": "string",
355
+ "maxLength": 524288
356
+ },
357
+ "height": {
358
+ "type": "integer",
359
+ "minimum": 32,
360
+ "maximum": 1200,
361
+ "default": 64,
362
+ "description": "The sketch's frame height, in pixels."
363
+ }
364
+ }
365
+ },
366
+ "aside": {
367
+ "type": "object",
368
+ "required": [
369
+ "html"
370
+ ],
371
+ "additionalProperties": false,
372
+ "description": "Drawn beside the page.",
373
+ "properties": {
374
+ "html": {
375
+ "type": "string",
376
+ "maxLength": 524288
377
+ },
378
+ "css": {
379
+ "type": "string",
380
+ "maxLength": 524288
381
+ },
382
+ "height": {
383
+ "type": "integer",
384
+ "minimum": 32,
385
+ "maximum": 1200,
386
+ "default": 480,
387
+ "description": "The sketch's frame height, in pixels."
388
+ },
389
+ "width": {
390
+ "type": "integer",
391
+ "minimum": 120,
392
+ "maximum": 480,
393
+ "default": 280,
394
+ "description": "The aside's width, in pixels."
395
+ },
396
+ "side": {
397
+ "enum": [
398
+ "start",
399
+ "end"
400
+ ],
401
+ "default": "end",
402
+ "description": "The side of the page the aside is on: start is the left in a left-to-right language."
403
+ }
404
+ }
405
+ },
406
+ "footer": {
407
+ "type": "object",
408
+ "required": [
409
+ "html"
410
+ ],
411
+ "additionalProperties": false,
412
+ "description": "Drawn under the page.",
413
+ "properties": {
414
+ "html": {
415
+ "type": "string",
416
+ "maxLength": 524288
417
+ },
418
+ "css": {
419
+ "type": "string",
420
+ "maxLength": 524288
421
+ },
422
+ "height": {
423
+ "type": "integer",
424
+ "minimum": 32,
425
+ "maximum": 1200,
426
+ "default": 48,
427
+ "description": "The sketch's frame height, in pixels."
428
+ }
429
+ }
430
+ }
431
+ }
432
+ }
433
+ },
164
434
  "modules": {
165
435
  "type": "array",
166
436
  "uniqueItems": true,
167
- "description": "The DMS modules the app needs, by their ids in the module store catalog. Building the mockup installs each one (`ajs project modules add <package>`), and the viewer lists them.",
437
+ "description": "The DMS modules the app installs. A string is a catalog module's id in the module store catalog (the remote `store.catalogUrl` one when it answers, the bundled one otherwise; `mockup_module_catalog` lists it). A module the project does not run is a spec warning naming the command that adds it: the `mockup_install_modules` tool installs the spec's missing modules once the user approves. An installed module is never described in the spec: the viewer reads its root, pages, page extensions, settings pages and tenancy from the DMS runtime registries the real menu is built from, and lists it in the module store opened by the viewer's Modules button. The mockup draws only the pages it adds or extends. An object is a custom module, which a page joins with its `module`. A module that owns a tenant access gate, such as saas, makes the viewer show the mockup in SaaS mode, as the first of fixtures.tenants.",
168
438
  "items": {
169
- "enum": [
170
- "ai",
171
- "api",
172
- "automation",
173
- "database",
174
- "lang",
175
- "mailing",
176
- "marketing",
177
- "media",
178
- "saas"
439
+ "anyOf": [
440
+ {
441
+ "enum": [
442
+ "ai",
443
+ "api",
444
+ "automation",
445
+ "database",
446
+ "lang",
447
+ "mailing",
448
+ "marketing",
449
+ "media",
450
+ "saas"
451
+ ],
452
+ "description": "A catalog module's id."
453
+ },
454
+ {
455
+ "type": "object",
456
+ "required": [
457
+ "id",
458
+ "title"
459
+ ],
460
+ "additionalProperties": false,
461
+ "description": "A custom module, listed in the module store. Spec pages with its id as `module` sit at its owner-only root, /modules/<id>. Its id is no catalog id.",
462
+ "properties": {
463
+ "id": {
464
+ "type": "string",
465
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
466
+ },
467
+ "title": {
468
+ "type": "string"
469
+ },
470
+ "icon": {
471
+ "type": "string",
472
+ "description": "An icon name, e.g. i-ph-truck."
473
+ },
474
+ "description": {
475
+ "type": "string",
476
+ "description": "A line the module store shows on its card."
477
+ }
478
+ }
479
+ }
179
480
  ]
180
481
  }
181
482
  },
@@ -271,7 +572,35 @@
271
572
  },
272
573
  "category": {
273
574
  "type": "string",
274
- "description": "The id of the categories entry the page is listed under in the sidebar. Left out, the page is in the default \"Pages\" section."
575
+ "description": "The id of the categories entry the page is listed under in the sidebar. Left out, the page is in the default \"Pages\" section. A page with a module sits at its module's root: it sets no category."
576
+ },
577
+ "settings": {
578
+ "const": true,
579
+ "description": "true adds the page to the dashboard's Settings, under settingsCategory: its full id is settings.<id> and its path /settings/<id>. Without a layout of its own, it is drawn in the settings layout. Not with `category`, `module` or `extends`."
580
+ },
581
+ "module": {
582
+ "type": "string",
583
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
584
+ "description": "The id of a module the spec's modules list, a catalog id or a custom one: the page is added to that module's owner-only root, /modules/<id>, as a page declared with `module` under RegisterModule. Not with `extends`."
585
+ },
586
+ "extends": {
587
+ "type": "string",
588
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
589
+ "description": "The full dotted id of an existing page of the app or of an installed module, such as settings.workspace.members, saas.billing or orders.list. The page's blocks are the components a @RegisterPageExtension(<extends>) class injects into that page, and the mockup draws them among the page's real blocks, read from the project's registries. Several pages may extend one target. Not with `module`, and not a page of this spec."
590
+ },
591
+ "before": {
592
+ "type": "string",
593
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
594
+ "description": "Needs `extends`. The anchor on the target page the blocks go before, a static field name or a dotted path such as table or content.tasks, as .before(anchor). Not with `after`."
595
+ },
596
+ "after": {
597
+ "type": "string",
598
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}(\\.[A-Za-z0-9][A-Za-z0-9_-]{0,63}){0,7}$",
599
+ "description": "Needs `extends`. The anchor on the target page the blocks go after, as .after(anchor). Not with `before`. With neither, the blocks are appended after the target's own."
600
+ },
601
+ "order": {
602
+ "type": "number",
603
+ "description": "Needs `extends`. Orders extensions that land at the same spot, as .order(n): the lower goes first, a missing one is 0, and equal orders fall back to the page id, then the spec's order."
275
604
  },
276
605
  "menu": {
277
606
  "type": "boolean",
@@ -439,7 +768,7 @@
439
768
  "description": "The buttons right of the title, in order, as DefaultLayout({ headerActions }) declares them."
440
769
  },
441
770
  "layout": {
442
- "description": "The layout the page is drawn and built in: \"default\" (DefaultLayout, the dashboard frame), \"form-page\" (FormPageLayout, the frame with a readable column), \"settings\" (SettingsLayout, the frame with the settings navigation) or \"empty\" (EmptyLayout, no sidebar, no top bar and no page header). A name, or { type, options } with the layout's options. Absent, the page takes the dashboard frame.",
771
+ "description": "The layout the page is drawn and built in: \"default\" (DefaultLayout, the dashboard frame), \"form-page\" (FormPageLayout, the frame with a readable column), \"settings\" (SettingsLayout, the frame with the settings navigation) or \"empty\" (EmptyLayout, no sidebar, no top bar and no page header). A name, or { type, options } with the layout's options. { type: \"custom\", id } draws the page in the custom layout of `layouts` with that id. Absent, the page takes the dashboard frame, and a settings page the settings layout.",
443
772
  "oneOf": [
444
773
  {
445
774
  "enum": [
@@ -449,6 +778,24 @@
449
778
  "empty"
450
779
  ]
451
780
  },
781
+ {
782
+ "type": "object",
783
+ "required": [
784
+ "type",
785
+ "id"
786
+ ],
787
+ "additionalProperties": false,
788
+ "properties": {
789
+ "type": {
790
+ "const": "custom"
791
+ },
792
+ "id": {
793
+ "type": "string",
794
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$",
795
+ "description": "The id of an entry of the spec's `layouts`."
796
+ }
797
+ }
798
+ },
452
799
  {
453
800
  "type": "object",
454
801
  "required": [
@@ -625,17 +972,30 @@
625
972
  {
626
973
  "$ref": "#/$defs/generate"
627
974
  },
975
+ {
976
+ "$ref": "#/$defs/entityFixture"
977
+ },
628
978
  {
629
979
  "not": {
630
980
  "type": "object",
631
- "required": [
632
- "$generate"
981
+ "anyOf": [
982
+ {
983
+ "required": [
984
+ "$generate"
985
+ ]
986
+ },
987
+ {
988
+ "required": [
989
+ "entity",
990
+ "rows"
991
+ ]
992
+ }
633
993
  ]
634
994
  }
635
995
  }
636
996
  ]
637
997
  },
638
- "description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows."
998
+ "description": "Data a block reads: an option \"fixture:<key>\" is served from here. A value { \"$generate\": { \"rows\", \"fields\" } } is replaced by generated rows; a value { \"entity\", \"rows\" } holds the rows of an entity of the spec."
639
999
  },
640
1000
  "tree": {
641
1001
  "type": "array",
@@ -750,6 +1110,29 @@
750
1110
  }
751
1111
  }
752
1112
  },
1113
+ "entityFixture": {
1114
+ "type": "object",
1115
+ "required": [
1116
+ "entity",
1117
+ "rows"
1118
+ ],
1119
+ "additionalProperties": false,
1120
+ "description": "The rows of an entity, as a fixture. Read as an array of row objects, by a table's `fixture:<key>` as by any other block. Every row is checked against the entity: each key is one of its fields, each value fits the field's type (null always does), and a ref holds the id of a row of its target once the target has rows. The viewer lists them in the data browser.",
1121
+ "properties": {
1122
+ "entity": {
1123
+ "type": "string",
1124
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
1125
+ "description": "The name of one of the spec's entities."
1126
+ },
1127
+ "rows": {
1128
+ "type": "array",
1129
+ "items": {
1130
+ "type": "object"
1131
+ },
1132
+ "description": "The rows, as objects keyed by field name. A row whose id an earlier row of the entity has is dropped."
1133
+ }
1134
+ }
1135
+ },
753
1136
  "node": {
754
1137
  "oneOf": [
755
1138
  {
@@ -2,7 +2,8 @@
2
2
  * The Playwright config of a suite: two workers, or as many as
3
3
  * `DMS_E2E_WORKERS` says, each against a run of its
4
4
  * own that the global setup starts (one worker when `DMS_E2E_RUN` names
5
- * the run to drive), one retry on every event, which reports a pass on retry as flaky, a test timeout
5
+ * the run to drive), one retry in a GitHub merge-queue run (`merge_group`),
6
+ * which reports a pass on retry as flaky, and none elsewhere, a test timeout
6
7
  * above the kit's own waits,
7
8
  * and the CI reporters. It is plain
8
9
  * Playwright config, so `defineConfig(e2eConfig(), overrides)` adjusts it.
@@ -0,0 +1,6 @@
1
+ import type { RegisteredPage, RegisteredSettings } from "../../types";
2
+ export type ExtensionFilter = (owner: string | undefined) => boolean;
3
+ export declare function readRegisteredPage(fullId: string, keepExtension?: ExtensionFilter): Promise<RegisteredPage | undefined>;
4
+ export type PageReader = (fullId: string) => Promise<RegisteredPage | undefined>;
5
+ export declare function readOrLog(read: PageReader, fullId: string): Promise<RegisteredPage | undefined>;
6
+ export declare function readRegisteredSettings(readPage?: PageReader): Promise<RegisteredSettings | undefined>;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readRegisteredPage = readRegisteredPage;
4
+ exports.readOrLog = readOrLog;
5
+ exports.readRegisteredSettings = readRegisteredSettings;
6
+ const logging_1 = require("@antelopejs/interface-core/logging");
7
+ const component_slots_1 = require("@antelopejs/interface-dms/internal/component-slots");
8
+ const page_1 = require("@antelopejs/interface-dms/page");
9
+ const category_resolution_1 = require("@antelopejs/interface-dms/page/internal/category-resolution");
10
+ const extension_assembly_1 = require("@antelopejs/interface-dms/page/internal/extension-assembly");
11
+ const metadata_owner_1 = require("@antelopejs/interface-dms/page/internal/metadata-owner");
12
+ const registry_1 = require("@antelopejs/interface-dms/page/internal/registry");
13
+ const table_view_ids_1 = require("@antelopejs/interface-dms/page/internal/table-view-ids");
14
+ const zod_1 = require("zod");
15
+ const state_1 = require("./page/state");
16
+ const jsonValueSchema = zod_1.z.lazy(() => zod_1.z.union([
17
+ zod_1.z.string(),
18
+ zod_1.z.number(),
19
+ zod_1.z.boolean(),
20
+ zod_1.z.null(),
21
+ zod_1.z.array(jsonValueSchema),
22
+ zod_1.z.record(zod_1.z.string(), jsonValueSchema),
23
+ ]));
24
+ const jsonObjectSchema = zod_1.z.record(zod_1.z.string(), jsonValueSchema);
25
+ const colSpanSchema = zod_1.z.number().optional();
26
+ function plainOptions({ options, }) {
27
+ const parsed = jsonObjectSchema.safeParse(JSON.parse(JSON.stringify(options ?? {})));
28
+ return parsed.success ? parsed.data : undefined;
29
+ }
30
+ function declaredPaths(own) {
31
+ const paths = new Set();
32
+ const add = (component, path) => {
33
+ paths.add(path);
34
+ for (const child of component.children ?? []) {
35
+ add(child.component, `${path}.${child.id}`);
36
+ }
37
+ };
38
+ for (const [key, component] of Object.entries(own))
39
+ add(component, key);
40
+ return paths;
41
+ }
42
+ function liveComponent(component, path, declared) {
43
+ const options = plainOptions(component);
44
+ return {
45
+ componentName: component.componentName,
46
+ ...(options !== undefined && { options }),
47
+ ...(component.children !== undefined &&
48
+ component.children.length > 0 && {
49
+ children: component.children.map((child) => liveChild(child, `${path}.${child.id}`, declared)),
50
+ }),
51
+ };
52
+ }
53
+ function liveChild(child, path, declared) {
54
+ const { data: colSpan } = colSpanSchema.safeParse(child.colSpan);
55
+ return {
56
+ id: child.id,
57
+ ...liveComponent(child.component, path, declared),
58
+ ...(!declared.has(path) && { injected: true }),
59
+ ...(child.slot !== undefined && { slot: child.slot }),
60
+ ...(colSpan !== undefined && { colSpan }),
61
+ };
62
+ }
63
+ const keepEveryExtension = () => true;
64
+ async function readRegisteredPage(fullId, keepExtension = keepEveryExtension) {
65
+ const metadata = registry_1.pageMetadataByFullId.get(fullId);
66
+ if (!metadata?.pageInfo)
67
+ return undefined;
68
+ await metadata.SyncExtensions().catch(() => undefined);
69
+ const info = metadata.pageInfo;
70
+ if (!info || !metadata.AcceptsExtensions())
71
+ return undefined;
72
+ const owner = (0, metadata_owner_1.metadataOwner)(metadata);
73
+ const assembled = (0, extension_assembly_1.assembleLayoutComponents)(owner.ownComponents, [...owner.extensionEntries]
74
+ .filter(([extension]) => keepExtension((0, registry_1.pageExtensionOwnerOf)(extension)))
75
+ .flatMap(([, entries]) => entries));
76
+ const declared = declaredPaths(owner.ownComponents);
77
+ const resolved = await (0, component_slots_1.ResolveComponentSlots)(assembled);
78
+ const placed = (0, table_view_ids_1.withTableViewPlacements)(resolved);
79
+ const category = (0, category_resolution_1.resolveCategoryInfo)(info.category);
80
+ const layout = owner.layoutRef?.layout?.componentName;
81
+ return {
82
+ id: info.fullId,
83
+ title: info.displayName,
84
+ ...(info.icon !== undefined && { icon: info.icon }),
85
+ ...(info.description !== undefined && { description: info.description }),
86
+ ...(category !== undefined && { category: category.fullId }),
87
+ ...(info.order !== undefined && { order: info.order }),
88
+ api: (0, page_1.pageRoutePath)(info.fullSlug),
89
+ ...(layout !== undefined && { layout }),
90
+ components: Object.entries(placed).map(([id, component]) => liveChild({ id, component }, id, declared)),
91
+ };
92
+ }
93
+ async function readOrLog(read, fullId) {
94
+ try {
95
+ return await read(fullId);
96
+ }
97
+ catch (error) {
98
+ logging_1.Logging.Warn(`[dms] The mockup viewer leaves the page "${fullId}" out: reading it failed:`, error);
99
+ return undefined;
100
+ }
101
+ }
102
+ const SETTINGS_ROOT_ID = "settings";
103
+ function menuNodeOf(node) {
104
+ const children = Object.fromEntries(node.childrenOrders.flatMap((key) => {
105
+ const child = node.children[key];
106
+ return child && !child.hidden && child.fullId !== ""
107
+ ? [[key, menuNodeOf(child)]]
108
+ : [];
109
+ }));
110
+ return {
111
+ id: node.id,
112
+ fullId: node.fullId,
113
+ fullSlug: node.fullSlug,
114
+ displayName: node.displayName,
115
+ ...(node.description !== undefined && { description: node.description }),
116
+ ...(node.icon !== undefined && { icon: node.icon }),
117
+ ...(node.layoutUrl !== undefined && { layoutUrl: node.layoutUrl }),
118
+ children,
119
+ childrenOrders: Object.keys(children),
120
+ };
121
+ }
122
+ function pageIdsOf(node) {
123
+ return [
124
+ ...(node.layoutUrl === undefined ? [] : [node.fullId]),
125
+ ...Object.values(node.children).flatMap(pageIdsOf),
126
+ ];
127
+ }
128
+ async function readRegisteredSettings(readPage = readRegisteredPage) {
129
+ const root = state_1.navigationTree.children[SETTINGS_ROOT_ID];
130
+ if (!root)
131
+ return undefined;
132
+ const menu = menuNodeOf(root);
133
+ const pages = await Promise.all(pageIdsOf(menu).map((id) => readOrLog(readPage, id)));
134
+ return {
135
+ menu,
136
+ pages: pages.flatMap((page) => (page ? [page] : [])),
137
+ };
138
+ }
139
+ //# sourceMappingURL=live-pages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-pages.js","sourceRoot":"","sources":["../../../src/implementations/dms/live-pages.ts"],"names":[],"mappings":";;;;;AAAA,gEAA6D;AAK7D,wFAA2F;AAE3F,yDAA+D;AAC/D,qGAAkG;AAClG,mGAAsG;AACtG,2FAAuF;AACvF,+EAG0D;AAC1D,2FAAiG;AACjG,6BAAwB;AASxB,wCAA8C;AAG9C,MAAM,eAAe,GAAyB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxD,OAAC,CAAC,KAAK,CAAC;IACN,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,OAAO,EAAE;IACX,OAAC,CAAC,IAAI,EAAE;IACR,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACxB,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC;CACtC,CAAC,CACH,CAAC;AAEF,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;AAE/D,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AAG5C,SAAS,YAAY,CAAC,EACpB,OAAO,GACiB;IACxB,MAAM,MAAM,GAAG,gBAAgB,CAAC,SAAS,CACvC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAC1C,CAAC;IACF,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAClD,CAAC;A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,QAAQ;QACR,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;KACtC,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,IAAwB;IACzC,OAAO;QACL,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtD,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;KACnD,CAAC;AACJ,CAAC;AAQM,KAAK,iCACV,QAAQ,GAAe,kBAAkB;IAEzC,MAAM,IAAI,GAAG,sBAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACvD,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAC7B,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CACrD,CAAC;IACF,OAAO;QACL,IAAI;QACJ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KACrD,CAAC;AACJ,CAAC"}
@@ -9,12 +9,14 @@ exports.ignoreModuleContextGone = ignoreModuleContextGone;
9
9
  exports.schedulePublishMenuChanged = schedulePublishMenuChanged;
10
10
  exports.cancelPendingMenuNotifications = cancelPendingMenuNotifications;
11
11
  exports.publishMenuChanged = publishMenuChanged;
12
+ const store_1 = require("../../../store");
12
13
  const frontend_1 = require("../../../store/frontend");
13
14
  const realtime_1 = require("../../../realtime");
14
15
  const fire_and_forget_1 = require("@antelopejs/interface-dms/utils/fire-and-forget");
15
16
  exports.previewStructureVersion = 0;
16
17
  function notifyStructureChanged() {
17
18
  exports.previewStructureVersion++;
19
+ (0, store_1.signalModulesChanged)();
18
20
  (0, frontend_1.scheduleBroadcast)();
19
21
  schedulePublishMenuChanged(realtime_1.MENU_BROADCAST_TOPIC);
20
22
  }