@antelopejs/dms 0.25.6 → 0.25.7-next.1111.gaba637e

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 (384) hide show
  1. package/CHANGELOG.md +0 -60
  2. package/README.md +1 -1
  3. package/data/mockup-spec.schema.json +223 -303
  4. package/dist/implementations/dms-auth/account-emails.js +2 -2
  5. package/dist/implementations/dms-auth/account-emails.js.map +1 -1
  6. package/dist/implementations/dms-auth/index.js +2 -1
  7. package/dist/implementations/dms-auth/index.js.map +1 -1
  8. package/dist/implementations/dms-base/search-route.js +5 -8
  9. package/dist/implementations/dms-base/search-route.js.map +1 -1
  10. package/dist/implementations/dms-builder/engine/cell-displays.js +1 -4
  11. package/dist/implementations/dms-builder/engine/cell-displays.js.map +1 -1
  12. package/dist/implementations/dms-builder/engine/mapped-displays.js +1 -5
  13. package/dist/implementations/dms-builder/engine/mapped-displays.js.map +1 -1
  14. package/dist/implementations/dms-builder/engine/resource-emit.js +0 -4
  15. package/dist/implementations/dms-builder/engine/resource-emit.js.map +1 -1
  16. package/dist/implementations/dms-builder/engine/theme-assets.js +17 -5
  17. package/dist/implementations/dms-builder/engine/theme-assets.js.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/mcp/index.d.ts +1 -0
  21. package/dist/mcp/index.js +5 -0
  22. package/dist/mcp/index.js.map +1 -1
  23. package/dist/mcp/mockup-export/capture.d.ts +15 -0
  24. package/dist/mcp/mockup-export/capture.js +97 -0
  25. package/dist/mcp/mockup-export/capture.js.map +1 -0
  26. package/dist/mcp/mockup-export/document.d.ts +4 -0
  27. package/dist/mcp/mockup-export/document.js +199 -0
  28. package/dist/mcp/mockup-export/document.js.map +1 -0
  29. package/dist/mcp/mockup-export/index.d.ts +23 -0
  30. package/dist/mcp/mockup-export/index.js +90 -0
  31. package/dist/mcp/mockup-export/index.js.map +1 -0
  32. package/dist/mcp/mockup-export/plan.d.ts +78 -0
  33. package/dist/mcp/mockup-export/plan.js +257 -0
  34. package/dist/mcp/mockup-export/plan.js.map +1 -0
  35. package/dist/mcp/mockup-export/route.d.ts +13 -0
  36. package/dist/mcp/mockup-export/route.js +66 -0
  37. package/dist/mcp/mockup-export/route.js.map +1 -0
  38. package/dist/mcp/page-verify/index.d.ts +14 -0
  39. package/dist/mcp/page-verify/index.js +9 -5
  40. package/dist/mcp/page-verify/index.js.map +1 -1
  41. package/dist/mcp/page-verify/mockup.d.ts +2 -1
  42. package/dist/mcp/page-verify/mockup.js +1 -0
  43. package/dist/mcp/page-verify/mockup.js.map +1 -1
  44. package/dist/mcp/page-verify/playwright.d.ts +22 -4
  45. package/dist/mcp/page-verify/playwright.js.map +1 -1
  46. package/dist/mcp/tools/mockup-apply-to-page.js +1 -1
  47. package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -1
  48. package/dist/mcp/tools/mockup-export-pdf.d.ts +1 -0
  49. package/dist/mcp/tools/mockup-export-pdf.js +71 -0
  50. package/dist/mcp/tools/mockup-export-pdf.js.map +1 -0
  51. package/dist/mcp/tools/mockup-patch-spec.js +1 -1
  52. package/dist/mcp/tools/mockup-patch-spec.js.map +1 -1
  53. package/dist/mcp/tools/mockup-read-spec.js +10 -3
  54. package/dist/mcp/tools/mockup-read-spec.js.map +1 -1
  55. package/dist/mcp/tools/mockup-write-spec.js +1 -1
  56. package/dist/mcp/tools/mockup-write-spec.js.map +1 -1
  57. package/dist/mcp/tools/mockup.js +2 -0
  58. package/dist/mcp/tools/mockup.js.map +1 -1
  59. package/dist/mcp/tools/page-verify.d.ts +1 -0
  60. package/dist/mcp/tools/page-verify.js +5 -1
  61. package/dist/mcp/tools/page-verify.js.map +1 -1
  62. package/dist/mockup/apply-notes.d.ts +1 -1
  63. package/dist/mockup/apply-notes.js +1 -2
  64. package/dist/mockup/apply-notes.js.map +1 -1
  65. package/dist/mockup/apply-plan.js +0 -3
  66. package/dist/mockup/apply-plan.js.map +1 -1
  67. package/dist/mockup/compile.d.ts +6 -1
  68. package/dist/mockup/compile.js +29 -25
  69. package/dist/mockup/compile.js.map +1 -1
  70. package/dist/mockup/controller-blocks.js +10 -62
  71. package/dist/mockup/controller-blocks.js.map +1 -1
  72. package/dist/mockup/database-manifest.d.ts +2 -0
  73. package/dist/mockup/database-manifest.js +75 -0
  74. package/dist/mockup/database-manifest.js.map +1 -0
  75. package/dist/mockup/display-values.js +1 -1
  76. package/dist/mockup/display-values.js.map +1 -1
  77. package/dist/mockup/entities.d.ts +20 -0
  78. package/dist/mockup/entities.js +213 -0
  79. package/dist/mockup/entities.js.map +1 -0
  80. package/dist/mockup/files.d.ts +2 -2
  81. package/dist/mockup/files.js +2 -2
  82. package/dist/mockup/files.js.map +1 -1
  83. package/dist/mockup/fixture-answers.d.ts +1 -0
  84. package/dist/mockup/fixture-answers.js +1 -1
  85. package/dist/mockup/fixture-answers.js.map +1 -1
  86. package/dist/mockup/{capture-routes.d.ts → fixture-routes.d.ts} +11 -6
  87. package/dist/mockup/fixture-routes.js +155 -0
  88. package/dist/mockup/fixture-routes.js.map +1 -0
  89. package/dist/mockup/fixtures.d.ts +1 -3
  90. package/dist/mockup/fixtures.js +2 -25
  91. package/dist/mockup/fixtures.js.map +1 -1
  92. package/dist/mockup/form-fields.js +1 -10
  93. package/dist/mockup/form-fields.js.map +1 -1
  94. package/dist/mockup/generate.js +4 -1
  95. package/dist/mockup/generate.js.map +1 -1
  96. package/dist/mockup/history-routes.js +2 -17
  97. package/dist/mockup/history-routes.js.map +1 -1
  98. package/dist/mockup/index.d.ts +3 -0
  99. package/dist/mockup/index.js +3 -0
  100. package/dist/mockup/index.js.map +1 -1
  101. package/dist/mockup/json-schema-entities.d.ts +5 -0
  102. package/dist/mockup/json-schema-entities.js +141 -0
  103. package/dist/mockup/json-schema-entities.js.map +1 -0
  104. package/dist/mockup/json-schema.js +23 -24
  105. package/dist/mockup/json-schema.js.map +1 -1
  106. package/dist/mockup/json.d.ts +8 -0
  107. package/dist/mockup/json.js +20 -0
  108. package/dist/mockup/json.js.map +1 -0
  109. package/dist/mockup/manage.js +1 -1
  110. package/dist/mockup/manage.js.map +1 -1
  111. package/dist/mockup/manifest-blocks.d.ts +19 -0
  112. package/dist/mockup/manifest-blocks.js +65 -0
  113. package/dist/mockup/manifest-blocks.js.map +1 -0
  114. package/dist/mockup/model.d.ts +106 -255
  115. package/dist/mockup/model.js +86 -82
  116. package/dist/mockup/model.js.map +1 -1
  117. package/dist/mockup/module-manifests.d.ts +22 -0
  118. package/dist/mockup/module-manifests.js +28 -0
  119. package/dist/mockup/module-manifests.js.map +1 -0
  120. package/dist/mockup/modules-schema.d.ts +2 -0
  121. package/dist/mockup/modules-schema.js +42 -0
  122. package/dist/mockup/modules-schema.js.map +1 -0
  123. package/dist/mockup/modules.d.ts +20 -9
  124. package/dist/mockup/modules.js +146 -22
  125. package/dist/mockup/modules.js.map +1 -1
  126. package/dist/mockup/page-links.d.ts +1 -2
  127. package/dist/mockup/page-links.js +3 -14
  128. package/dist/mockup/page-links.js.map +1 -1
  129. package/dist/mockup/refusals.d.ts +4 -1
  130. package/dist/mockup/refusals.js +15 -1
  131. package/dist/mockup/refusals.js.map +1 -1
  132. package/dist/mockup/routes.d.ts +1 -5
  133. package/dist/mockup/routes.js +9 -171
  134. package/dist/mockup/routes.js.map +1 -1
  135. package/dist/mockup/saas-manifest.d.ts +2 -0
  136. package/dist/mockup/saas-manifest.js +496 -0
  137. package/dist/mockup/saas-manifest.js.map +1 -0
  138. package/dist/mockup/sample-rows.js +0 -4
  139. package/dist/mockup/sample-rows.js.map +1 -1
  140. package/dist/mockup/state.d.ts +76 -0
  141. package/dist/mockup/state.js +22 -0
  142. package/dist/mockup/state.js.map +1 -0
  143. package/dist/mockup/{summary-fields.js → store-summary.js} +1 -1
  144. package/dist/mockup/store-summary.js.map +1 -0
  145. package/dist/mockup/store.d.ts +1 -2
  146. package/dist/mockup/store.js +16 -22
  147. package/dist/mockup/store.js.map +1 -1
  148. package/dist/mockup/table-columns.js +3 -9
  149. package/dist/mockup/table-columns.js.map +1 -1
  150. package/dist/mockup/table-options.d.ts +1 -4
  151. package/dist/mockup/table-options.js +2 -40
  152. package/dist/mockup/table-options.js.map +1 -1
  153. package/dist/mockup/tenancy.d.ts +19 -0
  154. package/dist/mockup/tenancy.js +73 -0
  155. package/dist/mockup/tenancy.js.map +1 -0
  156. package/dist/mockup/tenant-rows.d.ts +4 -0
  157. package/dist/mockup/tenant-rows.js +19 -0
  158. package/dist/mockup/tenant-rows.js.map +1 -0
  159. package/dist/mockup/validate.d.ts +1 -7
  160. package/dist/mockup/validate.js +3 -76
  161. package/dist/mockup/validate.js.map +1 -1
  162. package/dist/pages/account.d.ts +0 -1
  163. package/dist/pages/account.js +0 -1
  164. package/dist/pages/account.js.map +1 -1
  165. package/dist/pages/settings/overview/account-summary.d.ts +0 -2
  166. package/dist/pages/settings/overview/account-summary.js +8 -17
  167. package/dist/pages/settings/overview/account-summary.js.map +1 -1
  168. package/dist/pages/settings/settings-index.js +1 -2
  169. package/dist/pages/settings/settings-index.js.map +1 -1
  170. package/dist/realtime/sse.js +4 -2
  171. package/dist/realtime/sse.js.map +1 -1
  172. package/dist/store/internal/frontend/dev-reload.js +1 -7
  173. package/dist/store/internal/frontend/dev-reload.js.map +1 -1
  174. package/dist/utils/account-notifications.js +0 -1
  175. package/dist/utils/account-notifications.js.map +1 -1
  176. package/dist/utils/email-change-mail.js +2 -2
  177. package/dist/utils/email-change-mail.js.map +1 -1
  178. package/dist/utils/export-jobs.js +2 -2
  179. package/dist/utils/export-jobs.js.map +1 -1
  180. package/dist/utils/index.d.ts +0 -2
  181. package/dist/utils/index.js +0 -2
  182. package/dist/utils/index.js.map +1 -1
  183. package/dist/validation/index.d.ts +0 -1
  184. package/dist/validation/index.js +0 -1
  185. package/dist/validation/index.js.map +1 -1
  186. package/frontend-vue/eslint-globals.generated.mjs +2 -2
  187. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/2fa.vue +0 -3
  188. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/backup.vue +0 -3
  189. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot-validation.vue +0 -3
  190. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/forgot.vue +0 -3
  191. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/login.vue +1 -4
  192. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/recover.vue +0 -3
  193. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/signup.vue +1 -17
  194. package/frontend-vue/layers/dms-auth/app/custom-pages/auth/validate.vue +0 -3
  195. package/frontend-vue/layers/dms-auth/i18n/locales/auth-fr-FR.json +10 -10
  196. package/frontend-vue/layers/dms-core/app/build/composables/api-error.ts +0 -8
  197. package/frontend-vue/layers/dms-core/app/composables/data-types/useDataType.ts +2 -3
  198. package/frontend-vue/layers/dms-core/app/composables/translation/useUniqueLocales.ts +5 -23
  199. package/frontend-vue/layers/dms-core/app/composables/useApiErrorPresenter.ts +0 -1
  200. package/frontend-vue/layers/dms-core/app/composables/useFieldErrors.ts +443 -12
  201. package/frontend-vue/layers/dms-core/i18n/locales/core-en-GB.json +0 -8
  202. package/frontend-vue/layers/dms-core/i18n/locales/core-fr-FR.json +0 -8
  203. package/frontend-vue/layers/dms-core/shared/types/app-config.ts +0 -2
  204. package/frontend-vue/layers/dms-layout/app/app.config.ts +0 -1
  205. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardHeader.vue +4 -7
  206. package/frontend-vue/layers/dms-layout/app/build/components/layout/DashboardSidebar.vue +29 -14
  207. package/frontend-vue/layers/dms-layout/app/build/components/layout/LayoutFooter.vue +0 -2
  208. package/frontend-vue/layers/dms-layout/app/build/components/layout/MockupSidebarMenu.vue +21 -6
  209. package/frontend-vue/layers/dms-layout/app/build/components/layout/PreviewPageHeader.vue +3 -19
  210. package/frontend-vue/layers/dms-layout/app/build/components/layout/mockupMenu.ts +110 -9
  211. package/frontend-vue/layers/dms-layout/app/build/components/notification/NotificationPopover.vue +2 -8
  212. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationInboxItem.vue +9 -6
  213. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixCategory.vue +2 -6
  214. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationMatrixSubject.vue +22 -27
  215. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/NotificationPreferencesForm.vue +10 -8
  216. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/notification/notificationDisplay.ts +3 -39
  217. package/frontend-vue/layers/dms-layout/app/build/components/pages/settings/shell/SettingsShell.vue +5 -38
  218. package/frontend-vue/layers/dms-layout/app/build/composables/settings/profile/useProfilePreferences.ts +3 -1
  219. package/frontend-vue/layers/dms-layout/app/build/utils/dev-reload-stream.ts +4 -23
  220. package/frontend-vue/layers/dms-layout/app/custom-layouts/EmptyLayout.vue +31 -39
  221. package/frontend-vue/layers/dms-layout/app/custom-layouts/PreviewLayout.vue +9 -60
  222. package/frontend-vue/layers/dms-layout/app/error.vue +1 -1
  223. package/frontend-vue/layers/dms-layout/app/middleware/module-routing.global.ts +1 -7
  224. package/frontend-vue/layers/dms-layout/app/plugins/dms-menu-sync.client.ts +1 -14
  225. package/frontend-vue/layers/dms-layout/app/utils/breadcrumb.ts +0 -13
  226. package/frontend-vue/layers/dms-layout/i18n/locales/layout-en-GB.json +1 -1
  227. package/frontend-vue/layers/dms-layout/i18n/locales/layout-fr-FR.json +5 -5
  228. package/frontend-vue/layers/dms-onboarding/app/build/components/onboarding/steps/StepPlatform.vue +0 -3
  229. package/frontend-vue/layers/dms-onboarding/app/components/onboarding/steps/StepRegister.vue +1 -3
  230. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/BlockPreviewSketch.vue +1 -1
  231. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupDatabase.vue +165 -0
  232. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupHeaderActions.vue +4 -1
  233. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupInspector.vue +1 -2
  234. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupIssues.vue +1 -22
  235. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupModules.vue +11 -6
  236. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverview.vue +182 -125
  237. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewSlot.vue +12 -114
  238. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupPinLayer.vue +4 -10
  239. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTenantBanner.vue +48 -0
  240. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupTopBar.vue +76 -8
  241. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +65 -9
  242. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkspaceSwitcher.vue +142 -0
  243. package/frontend-vue/layers/dms-ui/app/build/components/table-view/ExpandedRowDetail.vue +6 -26
  244. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewNavigation.ts +8 -8
  245. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +6 -46
  246. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupDatabase.ts +175 -0
  247. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupOverview.ts +35 -109
  248. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPageFrame.ts +18 -5
  249. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupPdfExport.ts +76 -0
  250. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupRoutePage.ts +1 -4
  251. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupTenancy.ts +63 -0
  252. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerPages.ts +1 -3
  253. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupViewerShortcuts.ts +6 -0
  254. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +13 -68
  255. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewLinks.ts +7 -17
  256. package/frontend-vue/layers/dms-ui/app/build/composables/confirm/fetchedConfirmDialog.ts +0 -6
  257. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultDisplayComponents.ts +0 -4
  258. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/defaultPrimitiveTypes.ts +0 -38
  259. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/registerFieldTypes.ts +3 -69
  260. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/useColumnValueRenderer.ts +7 -20
  261. package/frontend-vue/layers/dms-ui/app/build/composables/form/keyValueRows.ts +0 -36
  262. package/frontend-vue/layers/dms-ui/app/build/composables/form/useInstantForm.ts +0 -4
  263. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewGrouping.ts +0 -1
  264. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewListing.ts +5 -21
  265. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableViewSorting.ts +0 -8
  266. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useGroupedRows.ts +4 -32
  267. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableFooter.ts +1 -1
  268. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/useTableRows.ts +1 -1
  269. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/displayOptions.ts +2 -14
  270. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/groupedRows.ts +6 -68
  271. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/tableQuery.ts +0 -5
  272. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCard.vue +48 -73
  273. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupCards.vue +11 -18
  274. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +125 -34
  275. package/frontend-vue/layers/dms-ui/app/build/mockups/manage.ts +3 -7
  276. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +149 -84
  277. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewNavigation.ts +119 -0
  278. package/frontend-vue/layers/dms-ui/app/build/utils/mockup.ts +72 -43
  279. package/frontend-vue/layers/dms-ui/app/build/utils/mockupEntities.ts +80 -0
  280. package/frontend-vue/layers/dms-ui/app/build/utils/mockupFrame.ts +92 -8
  281. package/frontend-vue/layers/dms-ui/app/build/utils/mockupLinks.ts +1 -35
  282. package/frontend-vue/layers/dms-ui/app/build/utils/mockupOverview.ts +17 -44
  283. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSchema.ts +177 -0
  284. package/frontend-vue/layers/dms-ui/app/build/utils/mockupShortcuts.ts +14 -3
  285. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +14 -26
  286. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenancy.ts +151 -0
  287. package/frontend-vue/layers/dms-ui/app/build/utils/mockupTenants.ts +23 -0
  288. package/frontend-vue/layers/dms-ui/app/build/utils/recordGuards.ts +15 -0
  289. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +6 -56
  290. package/frontend-vue/layers/dms-ui/app/components/block-preview/MockupViewer.vue +3 -0
  291. package/frontend-vue/layers/dms-ui/app/components/confirm/ConfirmModal.vue +7 -7
  292. package/frontend-vue/layers/dms-ui/app/components/flow-canvas/FlowCanvas.vue +7 -4
  293. package/frontend-vue/layers/dms-ui/app/components/form/components/InputPhone.vue +0 -5
  294. package/frontend-vue/layers/dms-ui/app/components/form/components/KeyValue.vue +20 -2
  295. package/frontend-vue/layers/dms-ui/app/components/key-value-list/KeyValueList.vue +15 -51
  296. package/frontend-vue/layers/dms-ui/app/composables/form/useForm.ts +8 -3
  297. package/frontend-vue/layers/dms-ui/app/composables/table-view/types/config.ts +0 -10
  298. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupTenantBanner.ts +2 -0
  299. package/frontend-vue/layers/dms-ui/app/entries/components/block-preview/MockupWorkspaceSwitcher.ts +2 -0
  300. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupPdfExport.ts +1 -0
  301. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/useMockupTenancy.ts +1 -0
  302. package/frontend-vue/layers/dms-ui/app/entries/utils/blockPreview.ts +0 -3
  303. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupSchema.ts +1 -0
  304. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenancy.ts +1 -0
  305. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupTenants.ts +1 -0
  306. package/frontend-vue/layers/dms-ui/app/types/table/query.ts +0 -5
  307. package/frontend-vue/layers/dms-ui/i18n/locales/ui-en-GB.json +28 -2
  308. package/frontend-vue/layers/dms-ui/i18n/locales/ui-fr-FR.json +38 -12
  309. package/frontend-vue/scripts/check-invariants.mjs +0 -101
  310. package/package.json +5 -5
  311. package/skills/dms/SKILL.md +2 -4
  312. package/skills/dms-module/SKILL.md +0 -3
  313. package/dist/implementations/dms-base/group-order.d.ts +0 -18
  314. package/dist/implementations/dms-base/group-order.js +0 -66
  315. package/dist/implementations/dms-base/group-order.js.map +0 -1
  316. package/dist/mockup/capture-routes.js +0 -101
  317. package/dist/mockup/capture-routes.js.map +0 -1
  318. package/dist/mockup/capture.d.ts +0 -10
  319. package/dist/mockup/capture.js +0 -64
  320. package/dist/mockup/capture.js.map +0 -1
  321. package/dist/mockup/header-action.d.ts +0 -47
  322. package/dist/mockup/header-action.js +0 -46
  323. package/dist/mockup/header-action.js.map +0 -1
  324. package/dist/mockup/json-schema-header.d.ts +0 -2
  325. package/dist/mockup/json-schema-header.js +0 -69
  326. package/dist/mockup/json-schema-header.js.map +0 -1
  327. package/dist/mockup/json-schema-layout.d.ts +0 -2
  328. package/dist/mockup/json-schema-layout.js +0 -61
  329. package/dist/mockup/json-schema-layout.js.map +0 -1
  330. package/dist/mockup/summary-fields.js.map +0 -1
  331. package/dist/mockup/table-param-filters.d.ts +0 -52
  332. package/dist/mockup/table-param-filters.js +0 -83
  333. package/dist/mockup/table-param-filters.js.map +0 -1
  334. package/dist/mockup/table-row-actions.d.ts +0 -2
  335. package/dist/mockup/table-row-actions.js +0 -85
  336. package/dist/mockup/table-row-actions.js.map +0 -1
  337. package/dist/mockup/unknown-keys.d.ts +0 -3
  338. package/dist/mockup/unknown-keys.js +0 -45
  339. package/dist/mockup/unknown-keys.js.map +0 -1
  340. package/dist/utils/email-plain-text.d.ts +0 -1
  341. package/dist/utils/email-plain-text.js +0 -95
  342. package/dist/utils/email-plain-text.js.map +0 -1
  343. package/dist/utils/html-email.d.ts +0 -8
  344. package/dist/utils/html-email.js +0 -9
  345. package/dist/utils/html-email.js.map +0 -1
  346. package/dist/utils/image-signatures.d.ts +0 -3
  347. package/dist/utils/image-signatures.js +0 -22
  348. package/dist/utils/image-signatures.js.map +0 -1
  349. package/dist/utils/sse-keepalive/index.d.ts +0 -3
  350. package/dist/utils/sse-keepalive/index.js +0 -8
  351. package/dist/utils/sse-keepalive/index.js.map +0 -1
  352. package/dist/validation/allowed-keys.d.ts +0 -2
  353. package/dist/validation/allowed-keys.js +0 -16
  354. package/dist/validation/allowed-keys.js.map +0 -1
  355. package/frontend-vue/layers/dms-core/app/build/composables/field-errors.ts +0 -485
  356. package/frontend-vue/layers/dms-core/app/build/composables/useHydrated.ts +0 -27
  357. package/frontend-vue/layers/dms-core/app/entries/composables/useHydrated.ts +0 -1
  358. package/frontend-vue/layers/dms-layout/app/build/components/layout/EmptyLayoutBrand.vue +0 -49
  359. package/frontend-vue/layers/dms-layout/app/entries/components/pages/settings/shell/SettingsShell.ts +0 -2
  360. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewArrows.vue +0 -110
  361. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewFrameImage.vue +0 -75
  362. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupOverviewZoom.vue +0 -67
  363. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCapture.ts +0 -247
  364. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewCaptureAssets.ts +0 -181
  365. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/previewRaster.ts +0 -45
  366. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useOverviewCaptures.ts +0 -136
  367. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewCapture.ts +0 -96
  368. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewChannel.ts +0 -10
  369. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewRects.ts +0 -61
  370. package/frontend-vue/layers/dms-ui/app/build/utils/dotGrid.ts +0 -37
  371. package/frontend-vue/layers/dms-ui/app/build/utils/legalIdentifier.ts +0 -279
  372. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCaptures.ts +0 -130
  373. package/frontend-vue/layers/dms-ui/app/build/utils/previewHeader.ts +0 -154
  374. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageLayout.ts +0 -149
  375. package/frontend-vue/layers/dms-ui/app/build/utils/previewPageQuery.ts +0 -42
  376. package/frontend-vue/layers/dms-ui/app/components/form/components/InputIdentifier.vue +0 -90
  377. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCapture.ts +0 -1
  378. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/previewCaptureAssets.ts +0 -1
  379. package/frontend-vue/layers/dms-ui/app/entries/composables/block-preview/usePreviewFrame.ts +0 -1
  380. package/frontend-vue/layers/dms-ui/app/entries/composables/table-view/utils/displayOptions.ts +0 -1
  381. package/frontend-vue/layers/dms-ui/app/entries/mockups/manage.ts +0 -1
  382. package/frontend-vue/layers/dms-ui/app/entries/utils/legalIdentifier.ts +0 -1
  383. package/frontend-vue/layers/dms-ui/app/entries/utils/mockupCaptures.ts +0 -1
  384. /package/dist/mockup/{summary-fields.d.ts → store-summary.d.ts} +0 -0
@@ -1,15 +1,13 @@
1
+ import { ButtonVariant } from "@antelopejs/interface-dms/base/types/button";
1
2
  import { z } from "zod";
2
- import { type MockupModule } from "./modules";
3
- import { type MockupHeaderAction } from "./header-action";
3
+ import { type Json, type JsonObject } from "./json";
4
+ export * from "./json";
5
+ export * from "./state";
4
6
  export * from "./route-patterns";
5
7
  export * from "./modules";
6
- export * from "./header-action";
7
- export type Json = string | number | boolean | null | Json[] | JsonObject;
8
- export interface JsonObject {
9
- [key: string]: Json;
10
- }
11
- export declare const jsonSchema: z.ZodType<Json>;
12
- export declare const jsonObjectSchema: z.ZodType<JsonObject>;
8
+ export * from "./module-manifests";
9
+ export * from "./tenancy";
10
+ export * from "./tenant-rows";
13
11
  export declare const SLUG_PATTERN: RegExp;
14
12
  export declare const KEY_PATTERN: RegExp;
15
13
  export declare const MAX_PAGES = 50;
@@ -38,55 +36,26 @@ declare const pageOptionsSchema: z.ZodObject<{
38
36
  padding: z.ZodOptional<z.ZodBoolean>;
39
37
  }, z.core.$strict>;
40
38
  export type MockupPageOptions = z.infer<typeof pageOptionsSchema>;
41
- export declare const MOCKUP_LAYOUTS: readonly ["default", "form-page", "settings", "empty"];
42
- export type MockupLayoutType = (typeof MOCKUP_LAYOUTS)[number];
43
- declare const layoutObjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
- type: z.ZodLiteral<"default">;
45
- options: z.ZodOptional<z.ZodObject<{
46
- hideHeader: z.ZodOptional<z.ZodBoolean>;
47
- fillHeight: z.ZodOptional<z.ZodBoolean>;
48
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
49
- hideBrand: z.ZodOptional<z.ZodBoolean>;
50
- hideFooter: z.ZodOptional<z.ZodBoolean>;
51
- fillHeight: z.ZodOptional<z.ZodBoolean>;
52
- }, z.core.$strict>>;
53
- }, z.core.$strict>, z.ZodObject<{
54
- type: z.ZodLiteral<"form-page">;
55
- options: z.ZodOptional<z.ZodObject<{
56
- hideHeader: z.ZodOptional<z.ZodBoolean>;
57
- fillHeight: z.ZodOptional<z.ZodBoolean>;
58
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
59
- hideBrand: z.ZodOptional<z.ZodBoolean>;
60
- hideFooter: z.ZodOptional<z.ZodBoolean>;
61
- fillHeight: z.ZodOptional<z.ZodBoolean>;
62
- }, z.core.$strict>>;
63
- }, z.core.$strict>, z.ZodObject<{
64
- type: z.ZodLiteral<"settings">;
65
- options: z.ZodOptional<z.ZodObject<{
66
- hideHeader: z.ZodOptional<z.ZodBoolean>;
67
- fillHeight: z.ZodOptional<z.ZodBoolean>;
68
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
69
- hideBrand: z.ZodOptional<z.ZodBoolean>;
70
- hideFooter: z.ZodOptional<z.ZodBoolean>;
71
- fillHeight: z.ZodOptional<z.ZodBoolean>;
72
- }, z.core.$strict>>;
73
- }, z.core.$strict>, z.ZodObject<{
74
- type: z.ZodLiteral<"empty">;
75
- options: z.ZodOptional<z.ZodObject<{
76
- hideHeader: z.ZodOptional<z.ZodBoolean>;
77
- fillHeight: z.ZodOptional<z.ZodBoolean>;
78
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
79
- hideBrand: z.ZodOptional<z.ZodBoolean>;
80
- hideFooter: z.ZodOptional<z.ZodBoolean>;
81
- fillHeight: z.ZodOptional<z.ZodBoolean>;
82
- }, z.core.$strict>>;
83
- }, z.core.$strict>], "type">;
84
- export type MockupPageLayout = z.infer<typeof layoutObjectSchema>;
85
39
  declare const livePageSchema: z.ZodObject<{
86
40
  ref: z.ZodString;
87
41
  version: z.ZodString;
88
42
  }, z.core.$strict>;
89
43
  export type MockupLivePage = z.infer<typeof livePageSchema>;
44
+ declare const headerActionSchema: z.ZodObject<{
45
+ label: z.ZodString;
46
+ icon: z.ZodOptional<z.ZodString>;
47
+ color: z.ZodOptional<z.ZodEnum<{
48
+ error: "error";
49
+ info: "info";
50
+ neutral: "neutral";
51
+ primary: "primary";
52
+ secondary: "secondary";
53
+ success: "success";
54
+ warning: "warning";
55
+ }>>;
56
+ variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
57
+ }, z.core.$strict>;
58
+ export type MockupHeaderAction = z.infer<typeof headerActionSchema>;
90
59
  declare const categorySchema: z.ZodObject<{
91
60
  id: z.ZodString;
92
61
  title: z.ZodString;
@@ -135,85 +104,8 @@ declare const pageSchema: z.ZodObject<{
135
104
  success: "success";
136
105
  warning: "warning";
137
106
  }>>;
138
- variant: z.ZodOptional<z.ZodEnum<typeof import("@antelopejs/interface-dms/base").ButtonVariant>>;
139
- target: z.ZodOptional<z.ZodObject<{
140
- type: z.ZodLiteral<"page">;
141
- url: z.ZodString;
142
- }, z.core.$strict>>;
143
- confirm: z.ZodOptional<z.ZodObject<{
144
- title: z.ZodString;
145
- description: z.ZodOptional<z.ZodString>;
146
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
147
- icon: z.ZodOptional<z.ZodString>;
148
- color: z.ZodOptional<z.ZodEnum<{
149
- error: "error";
150
- info: "info";
151
- neutral: "neutral";
152
- primary: "primary";
153
- secondary: "secondary";
154
- success: "success";
155
- warning: "warning";
156
- }>>;
157
- confirmLabel: z.ZodOptional<z.ZodString>;
158
- cancelLabel: z.ZodOptional<z.ZodString>;
159
- impact: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
- icon: z.ZodString;
161
- label: z.ZodString;
162
- count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
163
- }, z.core.$strict>>>;
164
- blocked: z.ZodOptional<z.ZodBoolean>;
165
- confirmText: z.ZodOptional<z.ZodString>;
166
- confirmTextCaseInsensitive: z.ZodOptional<z.ZodBoolean>;
167
- }, z.core.$strict>>;
107
+ variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
168
108
  }, z.core.$strict>>>;
169
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
170
- default: "default";
171
- empty: "empty";
172
- "form-page": "form-page";
173
- settings: "settings";
174
- }>, z.ZodTransform<{
175
- type: "default" | "empty" | "form-page" | "settings";
176
- }, "default" | "empty" | "form-page" | "settings">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
177
- type: z.ZodLiteral<"default">;
178
- options: z.ZodOptional<z.ZodObject<{
179
- hideHeader: z.ZodOptional<z.ZodBoolean>;
180
- fillHeight: z.ZodOptional<z.ZodBoolean>;
181
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
182
- hideBrand: z.ZodOptional<z.ZodBoolean>;
183
- hideFooter: z.ZodOptional<z.ZodBoolean>;
184
- fillHeight: z.ZodOptional<z.ZodBoolean>;
185
- }, z.core.$strict>>;
186
- }, z.core.$strict>, z.ZodObject<{
187
- type: z.ZodLiteral<"form-page">;
188
- options: z.ZodOptional<z.ZodObject<{
189
- hideHeader: z.ZodOptional<z.ZodBoolean>;
190
- fillHeight: z.ZodOptional<z.ZodBoolean>;
191
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
192
- hideBrand: z.ZodOptional<z.ZodBoolean>;
193
- hideFooter: z.ZodOptional<z.ZodBoolean>;
194
- fillHeight: z.ZodOptional<z.ZodBoolean>;
195
- }, z.core.$strict>>;
196
- }, z.core.$strict>, z.ZodObject<{
197
- type: z.ZodLiteral<"settings">;
198
- options: z.ZodOptional<z.ZodObject<{
199
- hideHeader: z.ZodOptional<z.ZodBoolean>;
200
- fillHeight: z.ZodOptional<z.ZodBoolean>;
201
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
202
- hideBrand: z.ZodOptional<z.ZodBoolean>;
203
- hideFooter: z.ZodOptional<z.ZodBoolean>;
204
- fillHeight: z.ZodOptional<z.ZodBoolean>;
205
- }, z.core.$strict>>;
206
- }, z.core.$strict>, z.ZodObject<{
207
- type: z.ZodLiteral<"empty">;
208
- options: z.ZodOptional<z.ZodObject<{
209
- hideHeader: z.ZodOptional<z.ZodBoolean>;
210
- fillHeight: z.ZodOptional<z.ZodBoolean>;
211
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
212
- hideBrand: z.ZodOptional<z.ZodBoolean>;
213
- hideFooter: z.ZodOptional<z.ZodBoolean>;
214
- fillHeight: z.ZodOptional<z.ZodBoolean>;
215
- }, z.core.$strict>>;
216
- }, z.core.$strict>], "type">]>>;
217
109
  options: z.ZodOptional<z.ZodObject<{
218
110
  theme: z.ZodOptional<z.ZodEnum<{
219
111
  dark: "dark";
@@ -236,6 +128,14 @@ declare const pageSchema: z.ZodObject<{
236
128
  tree: z.ZodDefault<z.ZodArray<z.ZodType<MockupNode, unknown, z.core.$ZodTypeInternals<MockupNode, unknown>>>>;
237
129
  }, z.core.$strict>;
238
130
  export type MockupSpecPage = z.infer<typeof pageSchema>;
131
+ declare const customModuleSchema: z.ZodObject<{
132
+ id: z.ZodString;
133
+ title: z.ZodString;
134
+ icon: z.ZodOptional<z.ZodString>;
135
+ pages: z.ZodArray<z.ZodString>;
136
+ }, z.core.$strict>;
137
+ export type MockupCustomModule = z.infer<typeof customModuleSchema>;
138
+ export type MockupSpecModule = string | MockupCustomModule;
239
139
  export declare const CUSTOM_PAGE_FIELDS: readonly ["html", "css", "height", "states"];
240
140
  export declare const MOCKUP_SOURCES: readonly ["chat", "claude-code", "codex"];
241
141
  export type MockupSource = (typeof MOCKUP_SOURCES)[number];
@@ -259,6 +159,47 @@ declare const specDataSchema: z.ZodObject<{
259
159
  }>>;
260
160
  }, z.core.$strict>;
261
161
  export type MockupData = z.infer<typeof specDataSchema>;
162
+ export declare const PLAIN_FIELD_TYPES: readonly ["string", "number", "price", "boolean", "date", "email", "url"];
163
+ export type MockupFieldType = (typeof PLAIN_FIELD_TYPES)[number] | "enum" | "ref";
164
+ declare const entityFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
165
+ type: z.ZodEnum<{
166
+ boolean: "boolean";
167
+ date: "date";
168
+ email: "email";
169
+ number: "number";
170
+ price: "price";
171
+ string: "string";
172
+ url: "url";
173
+ }>;
174
+ }, z.core.$strict>, z.ZodObject<{
175
+ type: z.ZodLiteral<"enum">;
176
+ values: z.ZodArray<z.ZodString>;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ type: z.ZodLiteral<"ref">;
179
+ to: z.ZodString;
180
+ }, z.core.$strict>], "type">;
181
+ export type MockupSpecEntityField = z.infer<typeof entityFieldSchema>;
182
+ declare const entitySchema: z.ZodObject<{
183
+ tenantScoped: z.ZodOptional<z.ZodBoolean>;
184
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
185
+ type: z.ZodEnum<{
186
+ boolean: "boolean";
187
+ date: "date";
188
+ email: "email";
189
+ number: "number";
190
+ price: "price";
191
+ string: "string";
192
+ url: "url";
193
+ }>;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ type: z.ZodLiteral<"enum">;
196
+ values: z.ZodArray<z.ZodString>;
197
+ }, z.core.$strict>, z.ZodObject<{
198
+ type: z.ZodLiteral<"ref">;
199
+ to: z.ZodString;
200
+ }, z.core.$strict>], "type">>;
201
+ }, z.core.$strict>;
202
+ export type MockupSpecEntity = z.infer<typeof entitySchema>;
262
203
  export declare const specSchema: z.ZodObject<{
263
204
  $schema: z.ZodOptional<z.ZodString>;
264
205
  version: z.ZodLiteral<1>;
@@ -282,6 +223,33 @@ export declare const specSchema: z.ZodObject<{
282
223
  "read-write": "read-write";
283
224
  }>>;
284
225
  }, z.core.$strict>>;
226
+ entities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
227
+ tenantScoped: z.ZodOptional<z.ZodBoolean>;
228
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
229
+ type: z.ZodEnum<{
230
+ boolean: "boolean";
231
+ date: "date";
232
+ email: "email";
233
+ number: "number";
234
+ price: "price";
235
+ string: "string";
236
+ url: "url";
237
+ }>;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ type: z.ZodLiteral<"enum">;
240
+ values: z.ZodArray<z.ZodString>;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ type: z.ZodLiteral<"ref">;
243
+ to: z.ZodString;
244
+ }, z.core.$strict>], "type">>;
245
+ }, z.core.$strict>>>;
246
+ fixtures: z.ZodOptional<z.ZodObject<{
247
+ tenants: z.ZodArray<z.ZodObject<{
248
+ id: z.ZodString;
249
+ name: z.ZodString;
250
+ plan: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strict>>;
252
+ }, z.core.$strict>>;
285
253
  categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
254
  id: z.ZodString;
287
255
  title: z.ZodString;
@@ -296,7 +264,12 @@ export declare const specSchema: z.ZodObject<{
296
264
  height: z.ZodOptional<z.ZodNumber>;
297
265
  }, z.core.$strict>>;
298
266
  }, z.core.$strict>>;
299
- modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
+ modules: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
268
+ id: z.ZodString;
269
+ title: z.ZodString;
270
+ icon: z.ZodOptional<z.ZodString>;
271
+ pages: z.ZodArray<z.ZodString>;
272
+ }, z.core.$strict>]>>>;
300
273
  pages: z.ZodArray<z.ZodObject<{
301
274
  id: z.ZodString;
302
275
  title: z.ZodString;
@@ -318,85 +291,8 @@ export declare const specSchema: z.ZodObject<{
318
291
  success: "success";
319
292
  warning: "warning";
320
293
  }>>;
321
- variant: z.ZodOptional<z.ZodEnum<typeof import("@antelopejs/interface-dms/base").ButtonVariant>>;
322
- target: z.ZodOptional<z.ZodObject<{
323
- type: z.ZodLiteral<"page">;
324
- url: z.ZodString;
325
- }, z.core.$strict>>;
326
- confirm: z.ZodOptional<z.ZodObject<{
327
- title: z.ZodString;
328
- description: z.ZodOptional<z.ZodString>;
329
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
330
- icon: z.ZodOptional<z.ZodString>;
331
- color: z.ZodOptional<z.ZodEnum<{
332
- error: "error";
333
- info: "info";
334
- neutral: "neutral";
335
- primary: "primary";
336
- secondary: "secondary";
337
- success: "success";
338
- warning: "warning";
339
- }>>;
340
- confirmLabel: z.ZodOptional<z.ZodString>;
341
- cancelLabel: z.ZodOptional<z.ZodString>;
342
- impact: z.ZodOptional<z.ZodArray<z.ZodObject<{
343
- icon: z.ZodString;
344
- label: z.ZodString;
345
- count: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
346
- }, z.core.$strict>>>;
347
- blocked: z.ZodOptional<z.ZodBoolean>;
348
- confirmText: z.ZodOptional<z.ZodString>;
349
- confirmTextCaseInsensitive: z.ZodOptional<z.ZodBoolean>;
350
- }, z.core.$strict>>;
294
+ variant: z.ZodOptional<z.ZodEnum<typeof ButtonVariant>>;
351
295
  }, z.core.$strict>>>;
352
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodEnum<{
353
- default: "default";
354
- empty: "empty";
355
- "form-page": "form-page";
356
- settings: "settings";
357
- }>, z.ZodTransform<{
358
- type: "default" | "empty" | "form-page" | "settings";
359
- }, "default" | "empty" | "form-page" | "settings">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
360
- type: z.ZodLiteral<"default">;
361
- options: z.ZodOptional<z.ZodObject<{
362
- hideHeader: z.ZodOptional<z.ZodBoolean>;
363
- fillHeight: z.ZodOptional<z.ZodBoolean>;
364
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
365
- hideBrand: z.ZodOptional<z.ZodBoolean>;
366
- hideFooter: z.ZodOptional<z.ZodBoolean>;
367
- fillHeight: z.ZodOptional<z.ZodBoolean>;
368
- }, z.core.$strict>>;
369
- }, z.core.$strict>, z.ZodObject<{
370
- type: z.ZodLiteral<"form-page">;
371
- options: z.ZodOptional<z.ZodObject<{
372
- hideHeader: z.ZodOptional<z.ZodBoolean>;
373
- fillHeight: z.ZodOptional<z.ZodBoolean>;
374
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
375
- hideBrand: z.ZodOptional<z.ZodBoolean>;
376
- hideFooter: z.ZodOptional<z.ZodBoolean>;
377
- fillHeight: z.ZodOptional<z.ZodBoolean>;
378
- }, z.core.$strict>>;
379
- }, z.core.$strict>, z.ZodObject<{
380
- type: z.ZodLiteral<"settings">;
381
- options: z.ZodOptional<z.ZodObject<{
382
- hideHeader: z.ZodOptional<z.ZodBoolean>;
383
- fillHeight: z.ZodOptional<z.ZodBoolean>;
384
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
385
- hideBrand: z.ZodOptional<z.ZodBoolean>;
386
- hideFooter: z.ZodOptional<z.ZodBoolean>;
387
- fillHeight: z.ZodOptional<z.ZodBoolean>;
388
- }, z.core.$strict>>;
389
- }, z.core.$strict>, z.ZodObject<{
390
- type: z.ZodLiteral<"empty">;
391
- options: z.ZodOptional<z.ZodObject<{
392
- hideHeader: z.ZodOptional<z.ZodBoolean>;
393
- fillHeight: z.ZodOptional<z.ZodBoolean>;
394
- }, z.core.$strict>> | z.ZodOptional<z.ZodObject<{
395
- hideBrand: z.ZodOptional<z.ZodBoolean>;
396
- hideFooter: z.ZodOptional<z.ZodBoolean>;
397
- fillHeight: z.ZodOptional<z.ZodBoolean>;
398
- }, z.core.$strict>>;
399
- }, z.core.$strict>], "type">]>>;
400
296
  options: z.ZodOptional<z.ZodObject<{
401
297
  theme: z.ZodOptional<z.ZodEnum<{
402
298
  dark: "dark";
@@ -424,51 +320,6 @@ export interface MockupIssue {
424
320
  path: string;
425
321
  message: string;
426
322
  }
427
- export interface MockupPageState {
428
- id: string;
429
- title: string;
430
- category?: string;
431
- menu?: false;
432
- custom?: true;
433
- generated?: true;
434
- parent?: string;
435
- route?: {
436
- param: string;
437
- sample?: string;
438
- };
439
- links: string[];
440
- icon?: string;
441
- description?: string;
442
- headerActions?: MockupHeaderAction[];
443
- layout?: MockupPageLayout;
444
- options: MockupPageOptions;
445
- tree: MockupNode[];
446
- realTree?: MockupNode[];
447
- livePage?: Pick<MockupLivePage, "ref">;
448
- paths: Record<string, string>;
449
- }
450
- export interface MockupSidebarWidgetState {
451
- id: string;
452
- title?: string;
453
- html: string;
454
- css?: string;
455
- height: number;
456
- }
457
- export interface MockupSidebarState {
458
- widgets: MockupSidebarWidgetState[];
459
- }
460
- export interface MockupState {
461
- name: MockupName;
462
- title?: string;
463
- revision: number;
464
- categories?: MockupCategory[];
465
- sidebar?: MockupSidebarState;
466
- modules?: MockupModule[];
467
- pages: MockupPageState[];
468
- issues: MockupIssue[];
469
- warnings: MockupIssue[];
470
- }
471
323
  export declare function isJsonObject(value: Json | undefined): value is JsonObject;
472
324
  export declare function specValueAt(value: Json, pointer: string): Json | undefined;
473
- export declare function jsonPointer(path: readonly PropertyKey[]): string;
474
325
  export declare function zodIssues(base: string, error: z.ZodError): MockupIssue[];
@@ -14,30 +14,28 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.specSchema = exports.mockupBuiltSchema = exports.mockupSourceSchema = exports.MOCKUP_SOURCES = exports.CUSTOM_PAGE_FIELDS = exports.ROUTE_PARAM_PATTERN = exports.SIDEBAR_WIDGET_DEFAULT_HEIGHT = exports.MAX_SIDEBAR_WIDGETS = exports.MOCKUP_LAYOUTS = exports.annotationIdSchema = exports.fixtureKeySchema = exports.pageIdSchema = exports.mockupNameSchema = exports.RESERVED_MOCKUP_NAMES = exports.MAX_PAGES = exports.KEY_PATTERN = exports.SLUG_PATTERN = exports.jsonObjectSchema = exports.jsonSchema = void 0;
17
+ exports.specSchema = exports.PLAIN_FIELD_TYPES = exports.mockupBuiltSchema = exports.mockupSourceSchema = exports.MOCKUP_SOURCES = exports.CUSTOM_PAGE_FIELDS = exports.ROUTE_PARAM_PATTERN = exports.SIDEBAR_WIDGET_DEFAULT_HEIGHT = exports.MAX_SIDEBAR_WIDGETS = exports.annotationIdSchema = exports.fixtureKeySchema = exports.pageIdSchema = exports.mockupNameSchema = exports.RESERVED_MOCKUP_NAMES = exports.MAX_PAGES = exports.KEY_PATTERN = exports.SLUG_PATTERN = void 0;
18
18
  exports.parseMockupName = parseMockupName;
19
19
  exports.isJsonObject = isJsonObject;
20
20
  exports.specValueAt = specValueAt;
21
- exports.jsonPointer = jsonPointer;
22
21
  exports.zodIssues = zodIssues;
22
+ const button_1 = require("@antelopejs/interface-dms/base/types/button");
23
+ const tone_1 = require("@antelopejs/interface-dms/base/types/tone");
23
24
  const zod_1 = require("zod");
25
+ const entities_1 = require("./entities");
24
26
  const generate_1 = require("./generate");
27
+ const json_1 = require("./json");
25
28
  const modules_1 = require("./modules");
26
- const header_action_1 = require("./header-action");
29
+ const tenancy_1 = require("./tenancy");
27
30
  const route_patterns_1 = require("./route-patterns");
31
+ __exportStar(require("./json"), exports);
32
+ __exportStar(require("./state"), exports);
28
33
  __exportStar(require("./route-patterns"), exports);
29
34
  __exportStar(require("./modules"), exports);
30
- __exportStar(require("./header-action"), exports);
35
+ __exportStar(require("./module-manifests"), exports);
36
+ __exportStar(require("./tenancy"), exports);
37
+ __exportStar(require("./tenant-rows"), exports);
31
38
  const sketch_limits_1 = require("./sketch-limits");
32
- exports.jsonSchema = zod_1.z.union([
33
- zod_1.z.string(),
34
- zod_1.z.number(),
35
- zod_1.z.boolean(),
36
- zod_1.z.null(),
37
- zod_1.z.array(zod_1.z.lazy(() => exports.jsonSchema)),
38
- zod_1.z.record(zod_1.z.string(), zod_1.z.lazy(() => exports.jsonSchema)),
39
- ]);
40
- exports.jsonObjectSchema = zod_1.z.record(zod_1.z.string(), exports.jsonSchema);
41
39
  exports.SLUG_PATTERN = /^[a-z0-9][a-z0-9-]{0,63}$/;
42
40
  exports.KEY_PATTERN = /^[A-Za-z0-9_-]{1,64}$/;
43
41
  exports.MAX_PAGES = 50;
@@ -60,7 +58,7 @@ const nodeSchema = zod_1.z
60
58
  .object({
61
59
  type: zod_1.z.string().optional(),
62
60
  componentName: zod_1.z.string().optional(),
63
- options: exports.jsonObjectSchema.optional(),
61
+ options: json_1.jsonObjectSchema.optional(),
64
62
  children: zod_1.z.array(zod_1.z.lazy(() => nodeSchema)).optional(),
65
63
  id: zod_1.z.string().optional(),
66
64
  slot: zod_1.z.string().optional(),
@@ -74,50 +72,17 @@ const pageOptionsSchema = zod_1.z
74
72
  padding: zod_1.z.boolean().optional(),
75
73
  })
76
74
  .strict();
77
- exports.MOCKUP_LAYOUTS = [
78
- "default",
79
- "form-page",
80
- "settings",
81
- "empty",
82
- ];
83
- const framedLayoutOptions = {
84
- hideHeader: zod_1.z.boolean().optional(),
85
- fillHeight: zod_1.z.boolean().optional(),
86
- };
87
- const layoutOptionSchemas = {
88
- default: zod_1.z
89
- .object({ fullWidth: zod_1.z.boolean().optional(), ...framedLayoutOptions })
90
- .strict(),
91
- "form-page": zod_1.z.object(framedLayoutOptions).strict(),
92
- settings: zod_1.z.object(framedLayoutOptions).strict(),
93
- empty: zod_1.z
94
- .object({
95
- hideBrand: zod_1.z.boolean().optional(),
96
- hideFooter: zod_1.z.boolean().optional(),
97
- fillHeight: zod_1.z.boolean().optional(),
98
- })
99
- .strict(),
100
- };
101
- function layoutSchemaOf(type) {
102
- return zod_1.z
103
- .object({
104
- type: zod_1.z.literal(type),
105
- options: layoutOptionSchemas[type].optional(),
106
- })
107
- .strict();
108
- }
109
- const layoutObjectSchema = zod_1.z.discriminatedUnion("type", [
110
- layoutSchemaOf("default"),
111
- layoutSchemaOf("form-page"),
112
- layoutSchemaOf("settings"),
113
- layoutSchemaOf("empty"),
114
- ]);
115
- const pageLayoutSchema = zod_1.z.union([zod_1.z.enum(exports.MOCKUP_LAYOUTS).transform((type) => ({ type })), layoutObjectSchema], {
116
- error: `is the name of a layout, one of ${exports.MOCKUP_LAYOUTS.join(", ")}, or { "type": <that name>, "options": {...} }`,
117
- });
118
75
  const livePageSchema = zod_1.z
119
76
  .object({ ref: zod_1.z.string().min(1), version: zod_1.z.string() })
120
77
  .strict();
78
+ const headerActionSchema = zod_1.z
79
+ .object({
80
+ label: zod_1.z.string(),
81
+ icon: zod_1.z.string().optional(),
82
+ color: zod_1.z.enum(tone_1.TONES).optional(),
83
+ variant: zod_1.z.nativeEnum(button_1.ButtonVariant).optional(),
84
+ })
85
+ .strict();
121
86
  const categorySchema = zod_1.z
122
87
  .object({
123
88
  id: exports.pageIdSchema,
@@ -147,6 +112,10 @@ const sidebarSchema = zod_1.z
147
112
  })
148
113
  .strict();
149
114
  exports.ROUTE_PARAM_PATTERN = /^:[A-Za-z_][A-Za-z0-9_]*$/;
115
+ const FIXTURE_FORMS = [
116
+ { holds: generate_1.holdsGenerate, schema: generate_1.generatedFixtureSchema },
117
+ { holds: entities_1.holdsEntity, schema: entities_1.entityFixtureSchema },
118
+ ];
150
119
  const pageSchema = zod_1.z
151
120
  .object({
152
121
  id: exports.pageIdSchema,
@@ -157,36 +126,45 @@ const pageSchema = zod_1.z
157
126
  route: zod_1.z.string().regex(exports.ROUTE_PARAM_PATTERN).optional(),
158
127
  icon: zod_1.z.string().optional(),
159
128
  description: zod_1.z.string().optional(),
160
- headerActions: zod_1.z.array(header_action_1.headerActionSchema).optional(),
161
- layout: pageLayoutSchema.optional(),
129
+ headerActions: zod_1.z.array(headerActionSchema).optional(),
162
130
  options: pageOptionsSchema.optional(),
163
131
  livePage: livePageSchema.optional(),
164
132
  liveRoutes: zod_1.z.record(exports.fixtureKeySchema, route_patterns_1.liveRouteSchema).optional(),
165
- fixtures: zod_1.z.record(exports.fixtureKeySchema, exports.jsonSchema).optional(),
133
+ fixtures: zod_1.z.record(exports.fixtureKeySchema, json_1.jsonSchema).optional(),
166
134
  custom: zod_1.z.boolean().optional(),
167
- html: exports.jsonSchema.optional(),
168
- css: exports.jsonSchema.optional(),
169
- height: exports.jsonSchema.optional(),
170
- states: exports.jsonSchema.optional(),
135
+ html: json_1.jsonSchema.optional(),
136
+ css: json_1.jsonSchema.optional(),
137
+ height: json_1.jsonSchema.optional(),
138
+ states: json_1.jsonSchema.optional(),
171
139
  tree: zod_1.z.array(nodeSchema).default([]),
172
140
  })
173
141
  .strict()
174
142
  .superRefine((page, context) => {
175
143
  for (const [key, value] of Object.entries(page.fixtures ?? {})) {
176
- if (!(0, generate_1.holdsGenerate)(value))
177
- continue;
178
- const generated = generate_1.generatedFixtureSchema.safeParse(value);
179
- if (generated.success)
180
- continue;
181
- for (const issue of generated.error.issues) {
182
- context.addIssue({
183
- code: zod_1.z.ZodIssueCode.custom,
184
- path: ["fixtures", key, ...issue.path],
185
- message: issue.message,
186
- });
144
+ for (const { holds, schema } of FIXTURE_FORMS) {
145
+ if (!holds(value))
146
+ continue;
147
+ const read = schema.safeParse(value);
148
+ if (read.success)
149
+ continue;
150
+ for (const issue of read.error.issues) {
151
+ context.addIssue({
152
+ code: zod_1.z.ZodIssueCode.custom,
153
+ path: ["fixtures", key, ...issue.path],
154
+ message: issue.message,
155
+ });
156
+ }
187
157
  }
188
158
  }
189
159
  });
160
+ const customModuleSchema = zod_1.z
161
+ .object({
162
+ id: exports.pageIdSchema,
163
+ title: zod_1.z.string(),
164
+ icon: zod_1.z.string().optional(),
165
+ pages: zod_1.z.array(exports.pageIdSchema).max(exports.MAX_PAGES),
166
+ })
167
+ .strict();
190
168
  exports.CUSTOM_PAGE_FIELDS = ["html", "css", "height", "states"];
191
169
  function checkCustomPages(pages, issue) {
192
170
  pages.forEach((page, index) => {
@@ -253,6 +231,32 @@ const specDataSchema = zod_1.z
253
231
  access: connectionAccessSchema.default("read"),
254
232
  })
255
233
  .strict();
234
+ const entityNameSchema = zod_1.z.string().regex(exports.KEY_PATTERN);
235
+ exports.PLAIN_FIELD_TYPES = [
236
+ "string",
237
+ "number",
238
+ "price",
239
+ "boolean",
240
+ "date",
241
+ "email",
242
+ "url",
243
+ ];
244
+ const entityFieldSchema = zod_1.z.discriminatedUnion("type", [
245
+ zod_1.z.object({ type: zod_1.z.enum(exports.PLAIN_FIELD_TYPES) }).strict(),
246
+ zod_1.z
247
+ .object({
248
+ type: zod_1.z.literal("enum"),
249
+ values: zod_1.z.array(zod_1.z.string().min(1)).nonempty(),
250
+ })
251
+ .strict(),
252
+ zod_1.z.object({ type: zod_1.z.literal("ref"), to: entityNameSchema }).strict(),
253
+ ]);
254
+ const entitySchema = zod_1.z
255
+ .object({
256
+ tenantScoped: zod_1.z.boolean().optional(),
257
+ fields: zod_1.z.record(entityNameSchema, entityFieldSchema),
258
+ })
259
+ .strict();
256
260
  exports.specSchema = zod_1.z
257
261
  .object({
258
262
  $schema: zod_1.z.string().optional(),
@@ -261,9 +265,14 @@ exports.specSchema = zod_1.z
261
265
  source: exports.mockupSourceSchema.optional(),
262
266
  built: exports.mockupBuiltSchema.optional(),
263
267
  data: specDataSchema.optional(),
268
+ entities: zod_1.z.record(entityNameSchema, entitySchema).optional(),
269
+ fixtures: tenancy_1.specFixturesSchema.optional(),
264
270
  categories: zod_1.z.array(categorySchema).max(exports.MAX_PAGES).optional(),
265
271
  sidebar: sidebarSchema.optional(),
266
- modules: zod_1.z.array(zod_1.z.string()).max(exports.MAX_PAGES).optional(),
272
+ modules: zod_1.z
273
+ .array(zod_1.z.union([zod_1.z.string(), customModuleSchema]))
274
+ .max(exports.MAX_PAGES)
275
+ .optional(),
267
276
  pages: zod_1.z.array(pageSchema).max(exports.MAX_PAGES),
268
277
  })
269
278
  .strict()
@@ -285,8 +294,8 @@ exports.specSchema = zod_1.z
285
294
  }
286
295
  widgets.add(widget.id);
287
296
  });
288
- for (const { index, message } of (0, modules_1.moduleIssues)(spec.modules ?? [])) {
289
- issue(["modules", index], message);
297
+ for (const { path, message } of (0, modules_1.moduleIssues)(spec.modules ?? [], spec.pages)) {
298
+ issue(path, message);
290
299
  }
291
300
  const known = categories.size
292
301
  ? `the categories are ${[...categories].join(", ")}`
@@ -317,14 +326,9 @@ function specValueAt(value, pointer) {
317
326
  : undefined;
318
327
  }, value);
319
328
  }
320
- function jsonPointer(path) {
321
- return path
322
- .map((segment) => `/${String(segment).replaceAll("~", "~0").replaceAll("/", "~1")}`)
323
- .join("");
324
- }
325
329
  function zodIssues(base, error) {
326
330
  return error.issues.map((issue) => ({
327
- path: `${base}${jsonPointer(issue.path)}`,
331
+ path: `${base}${(0, json_1.jsonPointer)(issue.path)}`,
328
332
  message: issue.message,
329
333
  }));
330
334
  }