@antelopejs/dms 0.25.8-next.1175.g5f8cc4d → 0.25.8

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 (343) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +2 -2
  3. package/data/mockup-example/spec.json +0 -11
  4. package/data/mockup-spec.schema.json +16 -399
  5. package/dist/e2e/index.d.mts +1 -2
  6. package/dist/implementations/dms-builder/engine/table-view-settings.js +33 -9
  7. package/dist/implementations/dms-builder/engine/table-view-settings.js.map +1 -1
  8. package/dist/index.js +0 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/mcp/index.d.ts +0 -2
  11. package/dist/mcp/index.js +0 -9
  12. package/dist/mcp/index.js.map +1 -1
  13. package/dist/mcp/page-verify/index.d.ts +0 -15
  14. package/dist/mcp/page-verify/index.js +6 -16
  15. package/dist/mcp/page-verify/index.js.map +1 -1
  16. package/dist/mcp/page-verify/mockup.d.ts +1 -3
  17. package/dist/mcp/page-verify/mockup.js +1 -5
  18. package/dist/mcp/page-verify/mockup.js.map +1 -1
  19. package/dist/mcp/page-verify/page-probe.d.ts +0 -5
  20. package/dist/mcp/page-verify/page-probe.js +0 -2
  21. package/dist/mcp/page-verify/page-probe.js.map +1 -1
  22. package/dist/mcp/page-verify/playwright.d.ts +4 -22
  23. package/dist/mcp/page-verify/playwright.js.map +1 -1
  24. package/dist/mcp/page-verify/report.d.ts +0 -1
  25. package/dist/mcp/tools/mockup-read-spec.js +3 -2
  26. package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
  27. package/dist/mcp/tools/mockup.js +0 -4
  28. package/dist/mcp/tools/mockup.js.map +1 -1
  29. package/dist/mcp/tools/page-verify.d.ts +0 -1
  30. package/dist/mcp/tools/page-verify.js +2 -6
  31. package/dist/mcp/tools/page-verify.js.map +1 -1
  32. package/dist/mockup/annotations.js +2 -2
  33. package/dist/mockup/annotations.js.map +1 -1
  34. package/dist/mockup/apply-notes.js +1 -1
  35. package/dist/mockup/apply-notes.js.map +1 -1
  36. package/dist/mockup/compile.d.ts +10 -6
  37. package/dist/mockup/compile.js +290 -31
  38. package/dist/mockup/compile.js.map +1 -1
  39. package/dist/mockup/files.d.ts +1 -2
  40. package/dist/mockup/files.js +1 -2
  41. package/dist/mockup/files.js.map +1 -1
  42. package/dist/mockup/fixture-answers.d.ts +0 -1
  43. package/dist/mockup/fixture-answers.js +1 -1
  44. package/dist/mockup/fixture-answers.js.map +1 -1
  45. package/dist/mockup/fixtures.d.ts +27 -0
  46. package/dist/mockup/fixtures.js +111 -0
  47. package/dist/mockup/fixtures.js.map +1 -1
  48. package/dist/mockup/from-page.js +9 -2
  49. package/dist/mockup/from-page.js.map +1 -1
  50. package/dist/mockup/generate.js +1 -4
  51. package/dist/mockup/generate.js.map +1 -1
  52. package/dist/mockup/history-routes.d.ts +4 -2
  53. package/dist/mockup/history-routes.js +36 -27
  54. package/dist/mockup/history-routes.js.map +1 -1
  55. package/dist/mockup/history.js +1 -2
  56. package/dist/mockup/history.js.map +1 -1
  57. package/dist/mockup/index.d.ts +0 -10
  58. package/dist/mockup/index.js +0 -10
  59. package/dist/mockup/index.js.map +1 -1
  60. package/dist/mockup/json-schema-layout.d.ts +0 -1
  61. package/dist/mockup/json-schema-layout.js +2 -95
  62. package/dist/mockup/json-schema-layout.js.map +1 -1
  63. package/dist/mockup/json-schema.js +19 -40
  64. package/dist/mockup/json-schema.js.map +1 -1
  65. package/dist/mockup/manage-routes.d.ts +1 -3
  66. package/dist/mockup/manage-routes.js +1 -38
  67. package/dist/mockup/manage-routes.js.map +1 -1
  68. package/dist/mockup/manage.js +1 -1
  69. package/dist/mockup/manage.js.map +1 -1
  70. package/dist/mockup/model.d.ts +100 -137
  71. package/dist/mockup/model.js +86 -102
  72. package/dist/mockup/model.js.map +1 -1
  73. package/dist/mockup/modules.d.ts +9 -6
  74. package/dist/mockup/modules.js +24 -105
  75. package/dist/mockup/modules.js.map +1 -1
  76. package/dist/mockup/presence-board.js +1 -1
  77. package/dist/mockup/presence-board.js.map +1 -1
  78. package/dist/mockup/presence-routes.js +2 -2
  79. package/dist/mockup/presence-routes.js.map +1 -1
  80. package/dist/mockup/refusals.d.ts +0 -5
  81. package/dist/mockup/refusals.js +0 -16
  82. package/dist/mockup/refusals.js.map +1 -1
  83. package/dist/mockup/routes.d.ts +5 -3
  84. package/dist/mockup/routes.js +162 -19
  85. package/dist/mockup/routes.js.map +1 -1
  86. package/dist/mockup/row-filters.d.ts +8 -0
  87. package/dist/mockup/row-filters.js +107 -0
  88. package/dist/mockup/row-filters.js.map +1 -0
  89. package/dist/mockup/sketch-limits.d.ts +0 -1
  90. package/dist/mockup/sketch-limits.js +1 -2
  91. package/dist/mockup/sketch-limits.js.map +1 -1
  92. package/dist/mockup/sketch.d.ts +2 -2
  93. package/dist/mockup/sketch.js +1 -2
  94. package/dist/mockup/sketch.js.map +1 -1
  95. package/dist/mockup/source-routes.d.ts +4 -5
  96. package/dist/mockup/source-routes.js +17 -26
  97. package/dist/mockup/source-routes.js.map +1 -1
  98. package/dist/mockup/source.js +1 -2
  99. package/dist/mockup/source.js.map +1 -1
  100. package/dist/mockup/store.d.ts +37 -16
  101. package/dist/mockup/store.js +200 -85
  102. package/dist/mockup/store.js.map +1 -1
  103. package/dist/mockup/table-archive.d.ts +1 -0
  104. package/dist/mockup/table-archive.js +16 -0
  105. package/dist/mockup/table-archive.js.map +1 -1
  106. package/e2e/index.mjs +2 -3
  107. package/frontend-vue/eslint-globals.generated.mjs +38 -40
  108. package/frontend-vue/layers/dms-core/app/build/utils/asyncDataScope.ts +31 -3
  109. package/frontend-vue/layers/dms-core/app/composables/auth/useAuthFetch.ts +2 -8
  110. package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +0 -3
  111. package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +0 -3
  112. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +30 -110
  113. package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +6 -21
  114. package/frontend-vue/layers/dms-layout/app/build/components/layout/SidebarUserMenu.vue +7 -19
  115. package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +9 -79
  116. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsNav.vue +4 -17
  117. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +0 -12
  118. package/frontend-vue/layers/dms-layout/app/build/composables/settings/useSettingsNavigation.ts +0 -39
  119. package/frontend-vue/layers/dms-layout/app/build/mockups/created-mockups.ts +2 -12
  120. package/frontend-vue/layers/dms-layout/app/build/mockups/created-toast.ts +1 -9
  121. package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +6 -53
  122. package/frontend-vue/layers/dms-layout/app/theme/actions.ts +7 -11
  123. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +5 -31
  124. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupCanvasChrome.vue +1 -1
  125. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +47 -0
  126. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +33 -59
  127. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +12 -58
  128. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/{MockupZoomControls.vue → MockupOverviewZoom.vue} +15 -23
  129. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPagesList.vue +0 -21
  130. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinCard.vue +1 -1
  131. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +1 -1
  132. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +9 -77
  133. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +45 -130
  134. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +3 -70
  135. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +4 -44
  136. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockInspector.ts +2 -14
  137. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +36 -256
  138. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupEditing.ts +1 -13
  139. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameSize.ts +5 -10
  140. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +23 -50
  141. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +29 -82
  142. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPins.ts +1 -1
  143. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRealData.ts +3 -10
  144. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +14 -60
  145. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSession.ts +3 -8
  146. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +2 -6
  147. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupToolModes.ts +7 -5
  148. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +8 -29
  149. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +2 -13
  150. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +10 -39
  151. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +0 -41
  152. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +3 -37
  153. package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +1 -20
  154. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +8 -1
  155. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +103 -167
  156. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +0 -22
  157. package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +173 -75
  158. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +9 -118
  159. package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +8 -123
  160. package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +2 -6
  161. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +3 -21
  162. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPageTree.ts +0 -15
  163. package/frontend-vue/layers/dms-ui/app/build/utils/mockupPins.ts +8 -6
  164. package/frontend-vue/layers/dms-ui/app/build/utils/mockupRealData.ts +5 -18
  165. package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +6 -17
  166. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStream.ts +2 -17
  167. package/frontend-vue/layers/dms-ui/app/build/utils/mockupVersions.ts +7 -2
  168. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixturesOnly.ts +0 -8
  169. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +6 -108
  170. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +1 -5
  171. package/frontend-vue/layers/dms-ui/app/build/utils/sketch.ts +10 -40
  172. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +6 -23
  173. package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +0 -2
  174. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +4 -53
  175. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +4 -53
  176. package/frontend-vue/package.json +2 -2
  177. package/package.json +5 -6
  178. package/E2E.md +0 -138
  179. package/dist/mcp/mockup-export/capture.d.ts +0 -19
  180. package/dist/mcp/mockup-export/capture.js +0 -99
  181. package/dist/mcp/mockup-export/capture.js.map +0 -1
  182. package/dist/mcp/mockup-export/document.d.ts +0 -4
  183. package/dist/mcp/mockup-export/document.js +0 -199
  184. package/dist/mcp/mockup-export/document.js.map +0 -1
  185. package/dist/mcp/mockup-export/index.d.ts +0 -20
  186. package/dist/mcp/mockup-export/index.js +0 -110
  187. package/dist/mcp/mockup-export/index.js.map +0 -1
  188. package/dist/mcp/mockup-export/jobs.d.ts +0 -32
  189. package/dist/mcp/mockup-export/jobs.js +0 -49
  190. package/dist/mcp/mockup-export/jobs.js.map +0 -1
  191. package/dist/mcp/mockup-export/plan.d.ts +0 -78
  192. package/dist/mcp/mockup-export/plan.js +0 -292
  193. package/dist/mcp/mockup-export/plan.js.map +0 -1
  194. package/dist/mcp/mockup-export/route.d.ts +0 -23
  195. package/dist/mcp/mockup-export/route.js +0 -91
  196. package/dist/mcp/mockup-export/route.js.map +0 -1
  197. package/dist/mcp/page-verify/modules.d.ts +0 -8
  198. package/dist/mcp/page-verify/modules.js +0 -49
  199. package/dist/mcp/page-verify/modules.js.map +0 -1
  200. package/dist/mcp/tools/mockup-export-pdf.d.ts +0 -1
  201. package/dist/mcp/tools/mockup-export-pdf.js +0 -69
  202. package/dist/mcp/tools/mockup-export-pdf.js.map +0 -1
  203. package/dist/mcp/tools/mockup-module-catalog.d.ts +0 -1
  204. package/dist/mcp/tools/mockup-module-catalog.js +0 -36
  205. package/dist/mcp/tools/mockup-module-catalog.js.map +0 -1
  206. package/dist/mockup/compile-layouts.d.ts +0 -5
  207. package/dist/mockup/compile-layouts.js +0 -74
  208. package/dist/mockup/compile-layouts.js.map +0 -1
  209. package/dist/mockup/compile-nodes.d.ts +0 -11
  210. package/dist/mockup/compile-nodes.js +0 -119
  211. package/dist/mockup/compile-nodes.js.map +0 -1
  212. package/dist/mockup/compile-pages.d.ts +0 -18
  213. package/dist/mockup/compile-pages.js +0 -189
  214. package/dist/mockup/compile-pages.js.map +0 -1
  215. package/dist/mockup/create.d.ts +0 -16
  216. package/dist/mockup/create.js +0 -78
  217. package/dist/mockup/create.js.map +0 -1
  218. package/dist/mockup/created-watch.d.ts +0 -18
  219. package/dist/mockup/created-watch.js +0 -110
  220. package/dist/mockup/created-watch.js.map +0 -1
  221. package/dist/mockup/entities.d.ts +0 -20
  222. package/dist/mockup/entities.js +0 -213
  223. package/dist/mockup/entities.js.map +0 -1
  224. package/dist/mockup/etag.d.ts +0 -1
  225. package/dist/mockup/etag.js +0 -10
  226. package/dist/mockup/etag.js.map +0 -1
  227. package/dist/mockup/extensions.d.ts +0 -18
  228. package/dist/mockup/extensions.js +0 -61
  229. package/dist/mockup/extensions.js.map +0 -1
  230. package/dist/mockup/fixture-batch.d.ts +0 -21
  231. package/dist/mockup/fixture-batch.js +0 -111
  232. package/dist/mockup/fixture-batch.js.map +0 -1
  233. package/dist/mockup/fixture-routes.d.ts +0 -21
  234. package/dist/mockup/fixture-routes.js +0 -136
  235. package/dist/mockup/fixture-routes.js.map +0 -1
  236. package/dist/mockup/json-schema-entities.d.ts +0 -5
  237. package/dist/mockup/json-schema-entities.js +0 -141
  238. package/dist/mockup/json-schema-entities.js.map +0 -1
  239. package/dist/mockup/json.d.ts +0 -8
  240. package/dist/mockup/json.js +0 -20
  241. package/dist/mockup/json.js.map +0 -1
  242. package/dist/mockup/layout-model.d.ts +0 -156
  243. package/dist/mockup/layout-model.js +0 -96
  244. package/dist/mockup/layout-model.js.map +0 -1
  245. package/dist/mockup/layouts.d.ts +0 -9
  246. package/dist/mockup/layouts.js +0 -40
  247. package/dist/mockup/layouts.js.map +0 -1
  248. package/dist/mockup/module-manifests.d.ts +0 -99
  249. package/dist/mockup/module-manifests.js +0 -95
  250. package/dist/mockup/module-manifests.js.map +0 -1
  251. package/dist/mockup/module-states.d.ts +0 -10
  252. package/dist/mockup/module-states.js +0 -85
  253. package/dist/mockup/module-states.js.map +0 -1
  254. package/dist/mockup/modules-schema.d.ts +0 -2
  255. package/dist/mockup/modules-schema.js +0 -39
  256. package/dist/mockup/modules-schema.js.map +0 -1
  257. package/dist/mockup/page-capture-routes.d.ts +0 -19
  258. package/dist/mockup/page-capture-routes.js +0 -92
  259. package/dist/mockup/page-capture-routes.js.map +0 -1
  260. package/dist/mockup/page-captures.d.ts +0 -61
  261. package/dist/mockup/page-captures.js +0 -252
  262. package/dist/mockup/page-captures.js.map +0 -1
  263. package/dist/mockup/parse-spec.d.ts +0 -10
  264. package/dist/mockup/parse-spec.js +0 -62
  265. package/dist/mockup/parse-spec.js.map +0 -1
  266. package/dist/mockup/places.d.ts +0 -17
  267. package/dist/mockup/places.js +0 -75
  268. package/dist/mockup/places.js.map +0 -1
  269. package/dist/mockup/slug.d.ts +0 -3
  270. package/dist/mockup/slug.js +0 -7
  271. package/dist/mockup/slug.js.map +0 -1
  272. package/dist/mockup/state-patch.d.ts +0 -22
  273. package/dist/mockup/state-patch.js +0 -75
  274. package/dist/mockup/state-patch.js.map +0 -1
  275. package/dist/mockup/state.d.ts +0 -112
  276. package/dist/mockup/state.js +0 -22
  277. package/dist/mockup/state.js.map +0 -1
  278. package/dist/mockup/store-list.d.ts +0 -28
  279. package/dist/mockup/store-list.js +0 -89
  280. package/dist/mockup/store-list.js.map +0 -1
  281. package/dist/mockup/tenancy.d.ts +0 -19
  282. package/dist/mockup/tenancy.js +0 -73
  283. package/dist/mockup/tenancy.js.map +0 -1
  284. package/dist/mockup/tenant-rows.d.ts +0 -4
  285. package/dist/mockup/tenant-rows.js +0 -19
  286. package/dist/mockup/tenant-rows.js.map +0 -1
  287. package/frontend-vue/layers/dms-core/app/utils/localFetchAnswers.ts +0 -124
  288. package/frontend-vue/layers/dms-core/app/utils/textDigest.ts +0 -29
  289. package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupWidgets.ts +0 -65
  290. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +0 -153
  291. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupEmptyState.vue +0 -23
  292. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModuleStore.vue +0 -164
  293. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSectionLabel.vue +0 -51
  294. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupReconnecting.vue +0 -17
  295. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +0 -48
  296. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +0 -142
  297. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useFixtureBatches.ts +0 -154
  298. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupActivation.ts +0 -157
  299. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +0 -165
  300. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupFrameRender.ts +0 -126
  301. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageZoom.ts +0 -138
  302. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +0 -124
  303. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +0 -37
  304. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerActivation.ts +0 -56
  305. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerExport.ts +0 -46
  306. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePersistedCaptures.ts +0 -151
  307. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCreateModal.vue +0 -130
  308. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +0 -332
  309. package/frontend-vue/layers/dms-ui/app/build/utils/mockupActivation.ts +0 -100
  310. package/frontend-vue/layers/dms-ui/app/build/utils/mockupAnnotations.ts +0 -146
  311. package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +0 -80
  312. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModuleNavigation.ts +0 -171
  313. package/frontend-vue/layers/dms-ui/app/build/utils/mockupModules.ts +0 -138
  314. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverviewSections.ts +0 -66
  315. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +0 -177
  316. package/frontend-vue/layers/dms-ui/app/build/utils/mockupStatePatch.ts +0 -179
  317. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +0 -143
  318. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +0 -23
  319. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixtureAnswers.ts +0 -156
  320. package/frontend-vue/layers/dms-ui/app/build/utils/previewRows.ts +0 -400
  321. package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +0 -15
  322. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupModuleStore.ts +0 -2
  323. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +0 -2
  324. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +0 -2
  325. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useFixtureBatches.ts +0 -1
  326. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupActivation.ts +0 -1
  327. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupOverview.ts +0 -1
  328. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +0 -1
  329. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupRoutePage.ts +0 -1
  330. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupSession.ts +0 -1
  331. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +0 -1
  332. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePersistedCaptures.ts +0 -1
  333. package/frontend-vue/layers/dms-ui/app/entries/utils/json.ts +0 -1
  334. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupActivation.ts +0 -1
  335. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupAnnotations.ts +0 -1
  336. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupModuleNavigation.ts +0 -1
  337. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupOverviewSections.ts +0 -1
  338. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +0 -1
  339. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupStatePatch.ts +0 -1
  340. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +0 -1
  341. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +0 -1
  342. package/frontend-vue/layers/dms-ui/app/entries/utils/previewFixtureAnswers.ts +0 -1
  343. package/frontend-vue/layers/dms-ui/app/entries/utils/previewRows.ts +0 -1
@@ -1,31 +1,14 @@
1
1
  import type { PreviewSketch } from "./blockPreview";
2
2
  import { MOCKUP_VIEWER_PATH } from "./mockupLinks";
3
- import { isString } from "../../../../dms-core/app/utils/type-check";
4
- import { isRecord } from "./recordGuards";
5
-
6
- /** The type of the message {@link SKETCH_LINK_RELAY} posts. */
7
- const SKETCH_LINK_MESSAGE = "dms-sketch-link";
8
-
9
- /**
10
- * The one script a sketch frame runs, and only a sketch linking to a page of
11
- * the mockup: a click on such a link posts its URL to the page holding the
12
- * frame, which opens that page of the mockup ({@link sketchLinkHref}), in
13
- * place of loading the whole dashboard again.
14
- */
15
- export const SKETCH_LINK_RELAY = `document.addEventListener("click",function(e){var a=e.target instanceof Element&&e.target.closest("a[target=_top]");if(!a)return;e.preventDefault();parent.postMessage({type:"${SKETCH_LINK_MESSAGE}",href:a.href},"*")})`;
16
-
17
- /** The CSP source of {@link SKETCH_LINK_RELAY}: its SHA-256, base64. */
18
- export const SKETCH_LINK_RELAY_SOURCE =
19
- "'sha256-6lqeH4ElBGXp0HTSjcu3IIz4LMoCGtwgjt4UkUBhX2I='";
20
3
 
21
4
  /**
22
5
  * How a sketch is drawn. The frame is the security boundary: a `sandbox`
23
- * with an opaque origin, no forms, popups or top navigation, and scripts
6
+ * with no scripts, an opaque origin, no forms or popups, and top navigation
24
7
  * only for a sketch linking to a page ({@link sketchSandbox}), and a CSP that
25
- * runs no script but {@link SKETCH_LINK_RELAY} and loads nothing but inline
26
- * styles and `data:` images and fonts.
8
+ * loads nothing but inline styles and `data:` images and fonts.
27
9
  */
28
- export const SKETCH_CSP = `default-src 'none'; script-src ${SKETCH_LINK_RELAY_SOURCE}; style-src 'unsafe-inline'; img-src data:; font-src data:`;
10
+ export const SKETCH_CSP =
11
+ "default-src 'none'; style-src 'unsafe-inline'; img-src data:; font-src data:";
29
12
 
30
13
  /**
31
14
  * A link to a page of the mockup as the compiler writes it in a sketch's
@@ -48,22 +31,13 @@ export interface SketchLinkContext {
48
31
 
49
32
  /**
50
33
  * The frame's `sandbox`: empty, except for a sketch linking to a page of the
51
- * mockup, which runs the scripts its CSP admits, {@link SKETCH_LINK_RELAY}
52
- * alone. Never top navigation, never the dashboard's origin.
34
+ * mockup, which may navigate the window holding the dashboard when the user
35
+ * clicks a link. Never scripts, never the dashboard's origin.
53
36
  */
54
37
  export function sketchSandbox(html: string): string {
55
- return HOLDS_PAGE_LINK.test(html) ? "allow-scripts" : "";
56
- }
57
-
58
- /** The URL of the link a message of {@link SKETCH_LINK_RELAY} says was clicked. */
59
- export function sketchLinkHref(
60
- data: Parameters<typeof isRecord>[0],
61
- ): string | undefined {
62
- return isRecord(data) &&
63
- data.type === SKETCH_LINK_MESSAGE &&
64
- isString(data.href)
65
- ? data.href
66
- : undefined;
38
+ return HOLDS_PAGE_LINK.test(html)
39
+ ? "allow-top-navigation-by-user-activation"
40
+ : "";
67
41
  }
68
42
 
69
43
  /**
@@ -229,8 +203,7 @@ export function currentSketchScheme(): SketchScheme {
229
203
  * `#anchor` resolve inside the frame's own `about:srcdoc` document, where a
230
204
  * srcdoc document would otherwise resolve it against the dashboard's URL and
231
205
  * load the dashboard into the frame. With `links`, the sketch's links to the
232
- * pages of the mockup are drawn absolute ({@link resolveSketchLinks}). A
233
- * sketch holding such a link carries {@link SKETCH_LINK_RELAY}.
206
+ * pages of the mockup are drawn absolute ({@link resolveSketchLinks}).
234
207
  */
235
208
  export function buildSketchDocument(
236
209
  sketch: PreviewSketch,
@@ -244,9 +217,6 @@ export function buildSketchDocument(
244
217
  '<meta charset="utf-8">',
245
218
  `<style>${tokensCss}\n${SKETCH_BASE_CSS}</style>`,
246
219
  `<style>${sketch.css ?? ""}</style>`,
247
- HOLDS_PAGE_LINK.test(sketch.html)
248
- ? `<script>${SKETCH_LINK_RELAY}</script>`
249
- : "",
250
220
  `</head><body>${links ? resolveSketchLinks(sketch.html, links) : sketch.html}</body></html>`,
251
221
  ].join("");
252
222
  }
@@ -3,16 +3,11 @@ import { isString } from "../../../../dms-core/app/utils/type-check";
3
3
  import { markRaw, type Component } from "vue";
4
4
  import BlockPreviewIssue from "../../build/components/block-preview/BlockPreviewIssue.vue";
5
5
  import BlockPreviewSketch from "../../build/components/block-preview/BlockPreviewSketch.vue";
6
- import MockupModuleStore from "../../build/components/block-preview/MockupModuleStore.vue";
7
6
  import {
8
7
  previewHeader,
9
- previewNavigation,
10
8
  previewPageLayout,
11
9
  } from "../../build/composables/block-preview/previewNavigation";
12
- import {
13
- type PreviewLocaleSetter,
14
- useBlockPreviewEmbed,
15
- } from "../../build/composables/block-preview/useBlockPreviewEmbed";
10
+ import { useBlockPreviewEmbed } from "../../build/composables/block-preview/useBlockPreviewEmbed";
16
11
  import {
17
12
  collectPreviewIssues,
18
13
  decodePreviewState,
@@ -26,8 +21,6 @@ import { previewFrameOf } from "../../build/utils/previewPageLayout";
26
21
  import {
27
22
  FIXTURES_ONLY_QUERY,
28
23
  FIXTURES_ONLY_VALUE,
29
- MOCKUP_PAGE_FRAME_QUERY,
30
- MOCKUP_PAGE_FRAME_VALUE,
31
24
  } from "../../build/utils/previewFixturesOnly";
32
25
  import {
33
26
  previewRouteQuery,
@@ -85,10 +78,10 @@ const initialState =
85
78
  : undefined;
86
79
  const isStateInvalid = props.embed && !!stateParam && !initialState;
87
80
 
88
- const switchLocale: PreviewLocaleSetter = (code, options) => {
81
+ function switchLocale(code: string): void {
89
82
  const known = locales.value.some((entry) => entry.code === code);
90
- if (known && code !== locale.value) void setLocale(code, options);
91
- };
83
+ if (known && code !== locale.value) void setLocale(code);
84
+ }
92
85
 
93
86
  const embed = props.embed
94
87
  ? useBlockPreviewEmbed({
@@ -96,8 +89,6 @@ const embed = props.embed
96
89
  initialState,
97
90
  setLocale: switchLocale,
98
91
  fixturesOnly: route.query[FIXTURES_ONLY_QUERY] === FIXTURES_ONLY_VALUE,
99
- isMockupPage:
100
- route.query[MOCKUP_PAGE_FRAME_QUERY] === MOCKUP_PAGE_FRAME_VALUE,
101
92
  })
102
93
  : undefined;
103
94
 
@@ -133,17 +124,10 @@ const fillClass = computed(() =>
133
124
  frame.value.fillHeight ? FILL_COLUMN_CLASS : undefined,
134
125
  );
135
126
 
136
- /** The installed modules, while a mockup's module store is open in place of the blocks. */
137
- const storeModules = computed(() =>
138
- embed && previewNavigation.value?.store
139
- ? (previewNavigation.value.modules ?? [])
140
- : undefined,
141
- );
142
-
143
127
  const fetchedBlockTypes = ref<PreviewBlockTypes>();
144
128
  const blockTypes = computed(() => props.blockTypes ?? fetchedBlockTypes.value);
145
129
  const tree = computed(() => (embed ? embed.tree.value : props.tree));
146
- const scope = computed(() => embed?.scope.value ?? "");
130
+ const revision = computed(() => embed?.revision.value ?? 0);
147
131
  const routeParams = computed(() => embed?.params.value);
148
132
  const isTransparent = computed(() => embed?.transparent.value ?? false);
149
133
  const isPadded = computed(
@@ -248,7 +232,6 @@ onMounted(async () => {
248
232
  icon="i-ph-warning-circle"
249
233
  :title="t('dms.block_preview.invalid_state')"
250
234
  />
251
- <MockupModuleStore v-else-if="storeModules" :modules="storeModules" />
252
235
  <p
253
236
  v-else-if="!components.length && embed"
254
237
  class="text-muted py-8 text-center text-sm"
@@ -257,7 +240,7 @@ onMounted(async () => {
257
240
  </p>
258
241
  <div
259
242
  v-else
260
- :key="scope"
243
+ :key="revision"
261
244
  class="dms-page-stack space-y-6"
262
245
  :class="fillClass"
263
246
  >
@@ -12,7 +12,6 @@ const route = useDmsRoute();
12
12
  const name = readQueryValue(route.query.name);
13
13
  const width = readQueryValue(route.query.width);
14
14
  const data = readQueryValue(route.query.data);
15
- const tenant = readQueryValue(route.query.tenant);
16
15
  </script>
17
16
 
18
17
  <template>
@@ -22,7 +21,6 @@ const tenant = readQueryValue(route.query.tenant);
22
21
  :name="name"
23
22
  :initial-width="isMockupWidth(width) ? width : undefined"
24
23
  :initial-data="isMockupDataMode(data) ? data : undefined"
25
- :initial-tenant="tenant"
26
24
  />
27
25
  <div v-else class="p-4 sm:p-6">
28
26
  <MockupIndex :base-path="route.path" />
@@ -835,19 +835,8 @@
835
835
  "card_rename": "Rename",
836
836
  "card_duplicate": "Duplicate",
837
837
  "new_title": "New mockup",
838
- "new_hint": "Start blank or from an example, or describe a page and the AI drafts it.",
838
+ "new_hint": "Describe a page and the AI drafts it.",
839
839
  "new_prompt": "Draft a mockup of ",
840
- "new_hint_manual": "Name it, then add pages and blocks in the viewer.",
841
- "new_title_label": "Title",
842
- "new_title_placeholder": "Order desk",
843
- "new_template_label": "Start from",
844
- "new_template_blank": "Blank",
845
- "new_template_blank_hint": "One empty page called Home.",
846
- "new_template_example": "Example",
847
- "new_template_example_hint": "An order desk with a chart, a table and a customer page.",
848
- "new_create": "Create",
849
- "new_ask_assistant": "Ask the assistant",
850
- "new_failed": "The mockup could not be created.",
851
840
  "rename_hint": "The title is what the card shows. The name is its folder under mockups/.",
852
841
  "rename_title_label": "Title",
853
842
  "rename_name_label": "Name",
@@ -890,12 +879,6 @@
890
879
  "rename_title": "Rename mockup",
891
880
  "back_hint": "Back to the mockups",
892
881
  "build_hint": "Hand this mockup to the AI to build",
893
- "export_pdf": "Export PDF",
894
- "export_pdf_running": "Exporting…",
895
- "export_pdf_progress": "Exporting {drawn}/{total}…",
896
- "export_pdf_printing": "Printing the PDF…",
897
- "export_pdf_hint": "Download the mockup as a PDF: a cover, one sheet per page with its open annotations, and the data model",
898
- "export_pdf_failed": "The PDF export failed",
899
882
  "shortcuts_title": "Keyboard shortcuts",
900
883
  "shortcuts_description": "They work while the focus is not in a text field or a dialog.",
901
884
  "shortcut_group_panels": "Panels and help",
@@ -919,7 +902,7 @@
919
902
  "shortcut_redo": "Redo",
920
903
  "shortcut_back_to_current": "Leave the previewed version and go back to the current one",
921
904
  "shortcut_close_page": "Close the page and go back to the Overview",
922
- "shortcut_fit_all": "Fit the page to the canvas, or every page in the Overview",
905
+ "shortcut_fit_all": "Fit every page in view",
923
906
  "banner_comment": "Click to place a comment",
924
907
  "banner_place": "Click on the page to place {name}",
925
908
  "banner_cancel": "to cancel",
@@ -938,7 +921,6 @@
938
921
  "overview_zoom_in": "Zoom in",
939
922
  "overview_zoom_out": "Zoom out",
940
923
  "overview_fit": "Fit every page",
941
- "page_fit": "Fit the page to the canvas",
942
924
  "history_close": "Close history",
943
925
  "history_empty": "No version yet. Each save of the mockup adds one.",
944
926
  "history_failed": "The history could not be loaded.",
@@ -1018,7 +1000,6 @@
1018
1000
  "save_failed": "The mockup could not be saved.",
1019
1001
  "refused_discarded": "Edits made while it was being saved were dropped.",
1020
1002
  "save_retrying": "The mockup is not saved yet. Retrying until it is.",
1021
- "fixtures_failed": "The mockup's data could not be loaded. The page shows what it had.",
1022
1003
  "prompt_title": "Ask your AI",
1023
1004
  "prompt_hint": "No assistant took this request here. Copy it into your AI tool.",
1024
1005
  "prompt_custom_zone": "In mockup {mockup}, page \"{page}\": change the custom zone \"{label}\".",
@@ -1033,37 +1014,8 @@
1033
1014
  "copied": "Copied",
1034
1015
  "close": "Close",
1035
1016
  "section_default": "Pages",
1036
- "overview_extends": "extends {target}",
1037
- "overview_settings": "Settings",
1038
- "store_title": "Modules",
1039
- "store_description": "The DMS modules this mockup installs.",
1040
- "store_empty": "The mockup installs no module.",
1041
- "store_catalog": "Catalog",
1042
- "store_custom": "Custom",
1043
- "store_custom_module": "Custom module",
1044
- "store_pages": "Pages it adds",
1045
- "store_no_pages": "Adds no page.",
1046
- "store_settings": "Settings pages",
1047
- "store_widgets": "Sidebar widgets",
1048
- "store_owner_only": "Owner only",
1049
- "database": "Database",
1050
- "database_hint": "Explore the mockup's data model: its diagram and its data",
1051
- "database_close": "Back to the mockup",
1052
- "database_tab_json": "Entities JSON",
1053
- "workspace_title": "Workspaces",
1054
- "workspace_caption": "Workspace",
1055
- "workspace_none": "No workspace",
1056
- "workspace_current": "Current workspace",
1057
- "tenant_banner": "Mockup: tenant {name} active.",
1058
- "tenant_banner_hidden": "Rows from other tenants are hidden ({counts} shown).",
1059
- "tenant_banner_count": "{shown} of {total} {entity}",
1060
- "database_source": "Source of the schema",
1061
- "database_source_spec": "Spec entities",
1062
- "database_source_connection": "Introspected DB",
1063
- "database_rows": "{count} row | {count} rows",
1064
- "database_used_by": "Used by pages",
1065
- "database_missing_title": "The database explorer is not installed",
1066
- "database_missing": "The diagram and the data are drawn by {package}. Add that module to the project to see them; Entities JSON still shows the spec's entities.",
1017
+ "modules": "Modules",
1018
+ "modules_hint": "Building the mockup installs these DMS modules.",
1067
1019
  "section_new": "New section",
1068
1020
  "section_name": "Section name",
1069
1021
  "section_actions": "Section actions",
@@ -1081,7 +1033,6 @@
1081
1033
  "shortcut_group_preview": "Preview",
1082
1034
  "shortcut_preview": "Turn Preview on or off",
1083
1035
  "shortcut_close_preview": "Leave Preview",
1084
- "shortcut_close_database": "Close the database explorer and go back to the mockup",
1085
1036
  "page_hidden": "Hidden from the sidebar"
1086
1037
  },
1087
1038
  "drawer": {
@@ -835,19 +835,8 @@
835
835
  "card_rename": "Renommer",
836
836
  "card_duplicate": "Dupliquer",
837
837
  "new_title": "Nouvelle maquette",
838
- "new_hint": "Partez d’une page vierge ou de l’exemple, ou décrivez une page et l’IA en fait un brouillon.",
838
+ "new_hint": "Décrivez une page, l’IA en fait un brouillon.",
839
839
  "new_prompt": "Dessine une maquette de ",
840
- "new_hint_manual": "Donnez-lui un nom, puis ajoutez des pages et des blocs dans le visualiseur.",
841
- "new_title_label": "Titre",
842
- "new_title_placeholder": "Bureau des commandes",
843
- "new_template_label": "Partir de",
844
- "new_template_blank": "Vierge",
845
- "new_template_blank_hint": "Une page vide nommée Home.",
846
- "new_template_example": "Exemple",
847
- "new_template_example_hint": "Un bureau des commandes avec un graphique, un tableau et une page client.",
848
- "new_create": "Créer",
849
- "new_ask_assistant": "Demander à l’assistant",
850
- "new_failed": "La maquette n’a pas pu être créée.",
851
840
  "rename_hint": "Le titre est ce que la carte affiche. Le nom est son dossier sous mockups/.",
852
841
  "rename_title_label": "Titre",
853
842
  "rename_name_label": "Nom",
@@ -890,12 +879,6 @@
890
879
  "rename_title": "Renommer la maquette",
891
880
  "back_hint": "Retour aux maquettes",
892
881
  "build_hint": "Confier cette maquette à l’IA pour la construire",
893
- "export_pdf": "Exporter en PDF",
894
- "export_pdf_running": "Export…",
895
- "export_pdf_progress": "Export {drawn}/{total}…",
896
- "export_pdf_printing": "Impression du PDF…",
897
- "export_pdf_hint": "Télécharger la maquette en PDF : une couverture, une feuille par page avec ses annotations ouvertes, et le modèle de données",
898
- "export_pdf_failed": "L’export PDF a échoué",
899
882
  "shortcuts_title": "Raccourcis clavier",
900
883
  "shortcuts_description": "Ils fonctionnent tant que le focus n’est pas dans un champ de texte ou une boîte de dialogue.",
901
884
  "shortcut_group_panels": "Panneaux et aide",
@@ -919,7 +902,7 @@
919
902
  "shortcut_redo": "Rétablir",
920
903
  "shortcut_back_to_current": "Quitter la version affichée et revenir à l’actuelle",
921
904
  "shortcut_close_page": "Fermer la page et revenir à la vue d’ensemble",
922
- "shortcut_fit_all": "Ajuster la page au canevas, ou toutes les pages dans la vue d’ensemble",
905
+ "shortcut_fit_all": "Afficher toutes les pages",
923
906
  "banner_comment": "Cliquez pour placer un commentaire",
924
907
  "banner_place": "Cliquez sur la page pour placer {name}",
925
908
  "banner_cancel": "pour annuler",
@@ -938,7 +921,6 @@
938
921
  "overview_zoom_in": "Zoom avant",
939
922
  "overview_zoom_out": "Zoom arrière",
940
923
  "overview_fit": "Ajuster à toutes les pages",
941
- "page_fit": "Ajuster la page au canevas",
942
924
  "history_close": "Fermer l’historique",
943
925
  "history_empty": "Aucune version pour l’instant. Chaque enregistrement de la maquette en ajoute une.",
944
926
  "history_failed": "L’historique n’a pas pu être chargé.",
@@ -1018,7 +1000,6 @@
1018
1000
  "save_failed": "La maquette n’a pas pu être enregistrée.",
1019
1001
  "refused_discarded": "Les modifications faites pendant l’enregistrement ont été abandonnées.",
1020
1002
  "save_retrying": "La maquette n’est pas encore enregistrée. Nouvelle tentative en cours.",
1021
- "fixtures_failed": "Les données de la maquette n’ont pas pu être chargées. La page garde ce qu’elle affichait.",
1022
1003
  "prompt_title": "Demandez à votre IA",
1023
1004
  "prompt_hint": "Aucun assistant n’a pris cette demande ici. Copiez-la dans votre outil d’IA.",
1024
1005
  "prompt_custom_zone": "Dans la maquette {mockup}, page « {page} » : modifier la zone personnalisée « {label} ».",
@@ -1033,37 +1014,8 @@
1033
1014
  "copied": "Copié",
1034
1015
  "close": "Fermer",
1035
1016
  "section_default": "Pages",
1036
- "overview_extends": "étend {target}",
1037
- "overview_settings": "Réglages",
1038
- "store_title": "Modules",
1039
- "store_description": "Les modules DMS que cette maquette installe.",
1040
- "store_empty": "La maquette n'installe aucun module.",
1041
- "store_catalog": "Catalogue",
1042
- "store_custom": "Sur mesure",
1043
- "store_custom_module": "Module sur mesure",
1044
- "store_pages": "Pages qu'il ajoute",
1045
- "store_no_pages": "N'ajoute aucune page.",
1046
- "store_settings": "Pages de réglages",
1047
- "store_widgets": "Widgets de la barre latérale",
1048
- "store_owner_only": "Propriétaire uniquement",
1049
- "database": "Base de données",
1050
- "database_hint": "Explorer le modèle de données de la maquette : son diagramme et ses données",
1051
- "database_close": "Retour à la maquette",
1052
- "database_tab_json": "JSON des entités",
1053
- "workspace_title": "Espaces de travail",
1054
- "workspace_caption": "Espace de travail",
1055
- "workspace_none": "Aucun espace de travail",
1056
- "workspace_current": "Espace de travail actuel",
1057
- "tenant_banner": "Maquette : tenant {name} actif.",
1058
- "tenant_banner_hidden": "Les lignes des autres tenants sont masquées ({counts} affichées).",
1059
- "tenant_banner_count": "{shown} sur {total} {entity}",
1060
- "database_source": "Source du schéma",
1061
- "database_source_spec": "Entités de la spec",
1062
- "database_source_connection": "Base introspectée",
1063
- "database_rows": "{count} ligne | {count} lignes",
1064
- "database_used_by": "Utilisée par les pages",
1065
- "database_missing_title": "L’explorateur de base de données n’est pas installé",
1066
- "database_missing": "Le diagramme et les données sont dessinés par {package}. Ajoutez ce module au projet pour les voir ; le JSON des entités affiche toujours les entités de la spec.",
1017
+ "modules": "Modules",
1018
+ "modules_hint": "Construire la maquette installe ces modules DMS.",
1067
1019
  "section_new": "Nouvelle section",
1068
1020
  "section_name": "Nom de la section",
1069
1021
  "section_actions": "Actions de la section",
@@ -1081,7 +1033,6 @@
1081
1033
  "shortcut_group_preview": "Aperçu",
1082
1034
  "shortcut_preview": "Activer ou quitter l’aperçu",
1083
1035
  "shortcut_close_preview": "Quitter l’aperçu",
1084
- "shortcut_close_database": "Fermer l’explorateur de base de données et revenir à la maquette",
1085
1036
  "page_hidden": "Absente du menu latéral"
1086
1037
  },
1087
1038
  "drawer": {
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "packageManager": "pnpm@10.34.9",
13
13
  "engines": {
14
- "@antelopejs/dms-frontend": ">=0.11.17-next.361.g259e039 <0.12.0"
14
+ "@antelopejs/dms-frontend": ">=0.11.16-next.359.g17b154c <0.12.0"
15
15
  },
16
16
  "scripts": {
17
17
  "typecheck": "env -u npm_config_shamefully_hoist ajs dms verify-source --layer \"$PWD\" --local-package @antelopejs/dms=.. --local-package @antelopejs/interface-dms=../../interface-dms",
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "devDependencies": {
81
81
  "@antelopejs/core": "~1.25.0",
82
- "@antelopejs/dms-frontend": "0.11.17-next.361.g259e039",
82
+ "@antelopejs/dms-frontend": "0.11.16-next.359.g17b154c",
83
83
  "@antelopejs/tooling-configs": ">=0.10.15 <0.11.0",
84
84
  "@inertiajs/vue3": "^3.7.0",
85
85
  "@nuxt/eslint-config": "^1.17.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms",
3
- "version": "0.25.8-next.1175.g5f8cc4d",
3
+ "version": "0.25.8",
4
4
  "description": "AntelopeJS DMS. Plug in your PostgreSQL, MySQL, MariaDB, MongoDB or RethinkDB database and your coding agent builds a back office and analytics dashboard as typed TypeScript. Real-time updates on the data the DMS manages.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -61,7 +61,6 @@
61
61
  "!data/*.mmdb",
62
62
  "package.json",
63
63
  "README.md",
64
- "E2E.md",
65
64
  "CHANGELOG.md",
66
65
  "LICENSE"
67
66
  ],
@@ -88,8 +87,6 @@
88
87
  "@antelopejs/interface-data-api": ">=0.8.2 <0.9.0",
89
88
  "@antelopejs/interface-database": ">=0.4.5 <0.5.0",
90
89
  "@antelopejs/interface-database-decorators": ">=0.5.4 <0.6.0",
91
- "@antelopejs/interface-dms": "0.17.5-next.1173.g098f3ca",
92
- "@antelopejs/interface-dms-builder": "^0.6.4",
93
90
  "@antelopejs/interface-email": ">=0.2.2 <0.3.0",
94
91
  "@antelopejs/interface-file-storage": ">=0.1.10 <0.2.0",
95
92
  "@csstools/css-tokenizer": "^4.0.3",
@@ -111,7 +108,9 @@
111
108
  "striptags": "^3.2.0",
112
109
  "ts-morph": "^28.0.0",
113
110
  "ua-parser-js": "^2.0.9",
114
- "zod": "^4.5.0"
111
+ "zod": "^4.5.0",
112
+ "@antelopejs/interface-dms": "^0.17.5",
113
+ "@antelopejs/interface-dms-builder": "^0.6.5"
115
114
  },
116
115
  "devDependencies": {
117
116
  "@antelopejs/api": "~1.7.9",
@@ -211,7 +210,7 @@
211
210
  "optional": true
212
211
  }
213
212
  },
214
- "gitHead": "5f8cc4d8355470236c58b2eb1204fb7623245dc2",
213
+ "gitHead": "5148eb86c2e5b789327e85f784e61b4a79137365",
215
214
  "scripts": {
216
215
  "build": "pnpm --filter @antelopejs/interface-dms --filter @antelopejs/interface-dms-builder build && rimraf dist && antelopejs-tsc && tsc-alias && tsc -p e2e/tsconfig.types.json",
217
216
  "dev": "ajs project run --inspect -w -p playground",
package/E2E.md DELETED
@@ -1,138 +0,0 @@
1
- # The e2e kit
2
-
3
- `@antelopejs/dms/e2e` is a Playwright setup for a DMS repository. The global setup of its config prepares the playground and starts a run for each worker for the whole invocation: a copy of the playground on free ports, its own MongoDB, a mail sink and the built dashboard. It stops the runs after the last test. A spec is ordinary Playwright: it imports `test` and `expect` from the kit, and its fixtures give it a fresh database, an administrator and the run's dashboard as `baseURL`. `registerJourneys()` turns the journeys of `e2e/journeys/` into tests on the same fixtures.
4
-
5
- ## Configure a suite
6
-
7
- `e2e/playwright.config.ts`:
8
-
9
- ```ts
10
- import { e2eConfig } from "@antelopejs/dms/e2e";
11
-
12
- export default e2eConfig();
13
- ```
14
-
15
- `e2e/zz-journeys.spec.ts`:
16
-
17
- ```ts
18
- import { registerJourneys } from "@antelopejs/dms/e2e";
19
-
20
- await registerJourneys();
21
- ```
22
-
23
- `e2e/journeys.config.ts` declares the suite's run and its journeys:
24
-
25
- ```ts
26
- import type { JourneysConfig } from "@antelopejs/dms/e2e";
27
-
28
- export default {
29
- playground: "packages/dms/playground",
30
- prepare: [
31
- ["pnpm", "install", "--frozen-lockfile", "--prefer-offline", "--ignore-scripts"],
32
- ["pnpm", "--dir", "packages/dms", "build"],
33
- ["pnpm", "--dir", "packages/dms/playground", "build"],
34
- ],
35
- smoke: "smoke",
36
- } satisfies JourneysConfig;
37
- ```
38
-
39
- - `playground`: the playground folder, relative to the repository root, or absolute for a playground in another checkout.
40
- - `renderer`: the built `@antelopejs/dms-frontend` checkout the run serves, for the repository that is the renderer. Without it, the playground's installed one.
41
- - `prepare`: the install and build commands the global setup runs before the run starts.
42
- - `smoke`: the feature whose journeys run first.
43
-
44
- Each `*.mjs` file of `e2e/journeys/` is a feature, named after the file, and exports its `journeys`. The helpers they import live in subfolders or outside `e2e/journeys/`.
45
-
46
- `e2eConfig` and `startRun` of `@antelopejs/dms/e2e/run` take these options:
47
-
48
- - `config`: a journeys config file relative to the repository root, whose journeys are the `*.mjs` files of `journeys/` beside it, for a second suite (`e2eConfig({ config: "e2e/builder/journeys.config.ts" })`). It defaults to `e2e/journeys.config.ts`.
49
- - `frontend: "dev"`: the run serves the dashboard with `ajs dms dev`, and the suite runs only the journeys that set `frontend: "dev"`. A suite without it serves a build and leaves those journeys out. Its test output and report folders end in `-dev`.
50
-
51
- `registerJourneys()` reads both from the config that loaded it.
52
-
53
- A suite runs on two workers, or as many as `DMS_E2E_WORKERS` says. The global setup starts a run for each, with its own playground copy, ports, MongoDB, mail sink, backends and dashboard, and each worker runs its tests one at a time against its own run, taking the next test in order, the files in alphabetical order. Each test on a fresh database gets a backend that has served nothing else, booted ahead of it: the run boots the first one while its dashboard starts, and each test boots the next one while it runs, so only a test that follows one shorter than a backend boot waits for the rest of it. `--workers=N` starts N runs. With `DMS_E2E_RUN`, the suite runs on one worker. A config that starts a `webServer`, such as a mock of an outside API, shares it between the workers, so the global setup refuses more than one: set `workers: 1` with `defineConfig(e2eConfig(), { workers: 1, webServer })`. `registerJourneys()` registers the journeys of the config's `smoke` feature first, then the other features in alphabetical order, then every journey marked `last`, so `--grep @smoke` runs the `smoke` journey before the other journeys. Name the journeys file so that it sorts after the specs (`zz-journeys.spec.ts`): a journey marked `last` changes the playground of its worker's run for the backends that follow, and a spec that sorts after it on that worker cannot start its backend. `--shard=i/N` splits a suite across machines, each with a run of its own.
54
-
55
- ## Write a spec
56
-
57
- `e2e/members.spec.ts`:
58
-
59
- ```ts
60
- import { expect, test } from "@antelopejs/dms/e2e";
61
-
62
- test("the administrator opens the members page", async ({ adminPage }) => {
63
- await adminPage.goto("/settings/workspace/members");
64
- await expect(adminPage.getByRole("heading", { name: "Members", exact: true })).toBeVisible();
65
- });
66
- ```
67
-
68
- The fixtures:
69
-
70
- - `run`: the run the global setup started for the worker, which only its tests drive: its `webUrl`, `apiUrl`, `accounts` and `evidence` folder.
71
- - `baseURL`: the run's dashboard, so `page.goto("/settings")` opens it.
72
- - `dms`: the test's journey context. Before the test, it prepares the run as a journey's run does: a fresh database with a backend of its own, and an onboarded administrator. The test drives the run through it: `dms.tab(account)`, `dms.api(label, request)`, `dms.mail(accept)`, `dms.email(name)`, `dms.unique(prefix)` and `dms.verify(label, checks)`. After the test, it closes the tabs, judges the `verify` steps, and replays them into the report. A failing step attaches its screenshot and ARIA snapshot, and a failed test attaches the backend's log. The evidence goes to `<run>/evidence/<feature>/<test>/`. A test whose preparation fails does not run.
73
- - `adminPage`: a tab of `dms` that the administrator signed in on.
74
- - `dmsOptions`: how `dms` prepares the test, with the fields of a journey: `test.use({ dmsOptions: { database: "shared", onboard: false, backend: "dev", standby: false, knownFailures: { … } } })`.
75
-
76
- Playwright's own `page` opens the run's dashboard on the database the previous test left. A test that needs a fresh database uses `dms` or `adminPage`.
77
-
78
- ## Journey fields for the suite
79
-
80
- - `tag`: Playwright tags, such as `@smoke`.
81
- - `knownFailures`: the name of each check that fails today, mapped to the finding that makes it fail. A listed check that fails does not fail the journey. A listed check that passes does.
82
- - `last: true`: runs the journey after all others, for a journey that changes the run's playground for later backends.
83
- - `frontend: "dev"`: the journey needs the development dashboard, for UI that only `import.meta.env.DEV` renders. A suite without `frontend: "dev"` leaves it out.
84
- - `database`, `onboard`, `backend` and `standby`: how the run is prepared for the journey, as `dmsOptions` does for a spec.
85
-
86
- ## Start a run from node:test
87
-
88
- `@antelopejs/dms/e2e/run` starts the same run as the global setup, for a test runner without Playwright. It loads no `@playwright/test`. `startRun` takes the options of `e2eConfig` plus `prepare`, which runs the config's `prepare` commands unless `DMS_E2E_PREBUILT=1`. It returns the ready `run` and `stop`, which stops every process the run started. `onboard(run, {})` creates and signs in the administrator, and `apiRequest(run, { method, path, body, as })` calls the backend as `admin`, another account of `run.accounts`, or `anon`. Each request and its answer go to the run's `evidence/` folder.
89
-
90
- `test/cli.test.mjs`:
91
-
92
- ```js
93
- import assert from "node:assert/strict";
94
- import { after, before, test } from "node:test";
95
- import { apiRequest, onboard, startRun } from "@antelopejs/dms/e2e/run";
96
-
97
- /** @type {Awaited<ReturnType<typeof startRun>>} */
98
- let started;
99
- before(async () => {
100
- started = await startRun();
101
- await onboard(started.run, {});
102
- });
103
- after(() => started?.stop());
104
-
105
- test("the administrator reads the onboarding state", async () => {
106
- const answer = await apiRequest(started.run, {
107
- method: "GET",
108
- path: "/api/onboarding/informations",
109
- as: "admin",
110
- });
111
- assert.deepEqual(answer.body, { has_onboarded: true });
112
- });
113
- ```
114
-
115
- `run.apiUrl` and `run.webUrl` are the backend's and the dashboard's addresses, for a CLI or an HTTP client of the test's own.
116
-
117
- ## Environment
118
-
119
- - `DMS_E2E_PREBUILT=1`: the global setup and `startRun` skip the config's `prepare` commands (install and build), for a checkout an earlier run prepared.
120
- - `DMS_E2E_RUN=<run folder>`: the tests drive that run, such as one `startRun` started, and the suite stops nothing. A run whose dashboard is not served the way the suite asks is refused.
121
- - `DMS_E2E_RUNS`: the folder the run folders go to.
122
- - `DMS_E2E_WORKERS=<n>`: the suite runs on `n` workers, each with a run of its own, in place of two. Raise it on a runner with the cores and memory for more runs; `--workers=N` and a config's `workers` still take precedence.
123
- - `DMS_E2E_NO_STANDBY=1`: each fresh database's backend starts when the test needs it, rather than one ahead, the first test's included.
124
- - `DMS_E2E_SHUFFLE=<seed>`: `registerJourneys()` registers the journeys not marked `last` in an order drawn from the seed, the same for the same seed, and the `last` ones after them. A suite that passes under several seeds holds no journey that depends on another's state.
125
-
126
- ## Port recipe
127
-
128
- 1. Pin `@antelopejs/dms` to the exact preview that `next` publishes (dist-tag `next`). A range such as `>=0.20.2 <0.21.0` does not match a prerelease. Add `@playwright/test` `~1.65.0` as a devDependency, on the line of the `playwright-core` that `@antelopejs/dms` resolves.
129
- 2. Add the three files above, an `e2e/tsconfig.json` (`allowJs`, `noEmit`, `nodenext`), and the script `"e2e": "playwright test -c e2e"`.
130
- 3. Move the skill's `journeys/` folder to `e2e/journeys/`, with the helpers it imports in subfolders or beside it in `e2e/`.
131
- 4. Give each journey that needs the development dashboard `frontend: "dev"`, and add `e2e/playwright.dev.config.ts` with `e2eConfig({ frontend: "dev" })`. Run it with `playwright test -c e2e/playwright.dev.config.ts`.
132
- 5. A journey that fails today because of a product finding gets `knownFailures`, never a skip. A journey that changes the run's playground for later backends gets `last: true`.
133
- 6. Tag `@smoke` on about 5 fast journeys, the `smoke` journey first, none that needs `backend: "watch"`, `withBaseBackend`, `standby: false` or `frontend: "dev"`.
134
- 7. Copy AntelopeJS/dms's `e2e.yml` reusable workflow, which holds the `e2e` and `e2e-report` jobs, and the `e2e` job of its `ci.yml` that calls it with the tier, along with the `e2e` line of its `ubuntu` gate. Nothing runs on a draft or the none tier. A pull request runs `--grep @smoke`. The merge queue, a manual run, a pull request labelled `ci:full` and the nightly schedule run the whole suite with `--shard=i/N --add-reporter=blob`, which keeps the config's reporters, with N chosen so that one shard stays under about 30 minutes, and `e2e-report` merges the shards' blob reports. A dev config runs in the same job, after the build config.
135
-
136
- ## Move off verify.config.ts
137
-
138
- The kit reads only `e2e/journeys.config.ts`, or the file `config` names. A suite whose config is still a verify skill's `verify.config.ts` moves before it upgrades: copy its `playground`, `renderer`, `prepare` and `smoke` into `e2e/journeys.config.ts`, move its journeys to `e2e/journeys/` and a playground that lives in the skill folder to `e2e/`, and drop `skill` from `e2eConfig`, which now refuses it.
@@ -1,19 +0,0 @@
1
- import type { PdfOptions } from "../page-verify/playwright";
2
- import type { ScreenShots } from "./document";
3
- export interface CaptureRequest {
4
- name: string;
5
- pages: readonly {
6
- id: string;
7
- hasBlocks: boolean;
8
- }[];
9
- saasTenant?: string;
10
- origin: string;
11
- }
12
- export interface CaptureControl {
13
- onDrawn: (drawn: number) => void;
14
- signal: AbortSignal;
15
- }
16
- export declare function captureAndPrint(request: CaptureRequest, print: (shots: ScreenShots) => {
17
- html: string;
18
- pdf: PdfOptions;
19
- }, control: CaptureControl): Promise<Buffer>;