@phis/ui 0.7.8 → 0.8.1

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 (462) hide show
  1. package/components/cms/phi-cms-layout-renderer.js +15 -7
  2. package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
  3. package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
  4. package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
  5. package/components/cms/phi-cms-render-diagnostic.js +12 -2
  6. package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
  7. package/components/cms/phi-cms-render-error-boundary.js +1 -1
  8. package/components/cms/phi-cms-root-layout.js +3 -1
  9. package/components/controls/phi-address-control.d.ts +23 -0
  10. package/components/controls/phi-address-control.js +43 -0
  11. package/components/controls/phi-color-control.d.ts +3 -1
  12. package/components/controls/phi-color-control.js +2 -2
  13. package/components/controls/phi-country-select-control.d.ts +22 -0
  14. package/components/controls/phi-country-select-control.js +16 -0
  15. package/components/controls/phi-dialog-control.d.ts +1 -1
  16. package/components/controls/phi-drawer-control-adapter.d.ts +1 -1
  17. package/components/controls/phi-drawer-control-adapter.js +5 -3
  18. package/components/controls/phi-drawer-control.d.ts +7 -5
  19. package/components/controls/phi-float-button-control.d.ts +8 -1
  20. package/components/controls/phi-float-button-control.js +19 -3
  21. package/components/controls/phi-form-control.js +52 -8
  22. package/components/controls/phi-media-picker-control.d.ts +9 -0
  23. package/components/controls/phi-media-picker-control.js +1 -1
  24. package/components/controls/phi-modal-control-adapter.d.ts +1 -1
  25. package/components/controls/phi-modal-control-adapter.js +14 -37
  26. package/components/controls/phi-modal-control.d.ts +5 -5
  27. package/components/controls/phi-options-provider.d.ts +1 -0
  28. package/components/controls/phi-options-provider.js +1 -0
  29. package/components/controls/phi-overlay-control-contract.d.ts +52 -17
  30. package/components/controls/phi-overlay-control-contract.js +55 -30
  31. package/components/controls/phi-popover-control.js +4 -1
  32. package/components/controls/phi-reveal-once-dialog-control.d.ts +21 -0
  33. package/components/controls/phi-reveal-once-dialog-control.js +52 -0
  34. package/components/controls/phi-reveal-once-dialog-labels.d.ts +10 -0
  35. package/components/controls/phi-reveal-once-dialog-labels.js +5 -0
  36. package/components/controls/phi-table-control.d.ts +7 -1
  37. package/components/controls/phi-table-control.js +23 -8
  38. package/components/forms/flags-field.d.ts +22 -0
  39. package/components/forms/flags-field.js +58 -0
  40. package/components/forms/form-descriptor-field-check.d.ts +18 -0
  41. package/components/forms/form-descriptor-field-check.js +41 -0
  42. package/components/forms/form-descriptor-runtime-client.js +11 -10
  43. package/components/forms/form-option-flags.d.ts +20 -0
  44. package/components/forms/form-option-flags.js +38 -0
  45. package/components/forms/form-provider-contract.d.ts +23 -0
  46. package/components/forms/form-provider-contract.js +36 -0
  47. package/components/forms/form-provider-registry.d.ts +5 -1
  48. package/components/forms/form-record-source.d.ts +38 -0
  49. package/components/forms/form-record-source.js +48 -0
  50. package/components/forms/shared-form-descriptors.d.ts +0 -34
  51. package/components/forms/shared-form-descriptors.js +0 -6
  52. package/components/forms/shared-form-ids.d.ts +1 -1
  53. package/components/forms/shared-form-ids.js +1 -1
  54. package/components/forms/shared-form-provider-registry.js +13 -0
  55. package/components/forms/structured-field-labels.d.ts +24 -0
  56. package/components/forms/structured-field-labels.js +43 -0
  57. package/components/forms/structured-form-field-controls.d.ts +12 -0
  58. package/components/forms/structured-form-field-controls.js +65 -0
  59. package/components/media/media-settings-labels.d.ts +1 -0
  60. package/components/media/media-settings-labels.js +2 -0
  61. package/components/media/phi-media-picker-binding.d.ts +41 -33
  62. package/components/media/phi-media-picker-binding.js +2 -1
  63. package/components/media/use-media-library-add-picker.d.ts +33 -32
  64. package/components/overlays/phi-overlay-container-client.js +13 -11
  65. package/components/regions/phi-cms-region-shell.js +2 -2
  66. package/components/regions/presets/content-entry-editor-page-tree.js +12 -3
  67. package/components/regions/presets/phi-settings-page-shell-tree.d.ts +13 -2
  68. package/components/regions/presets/phi-settings-page-shell-tree.js +4 -4
  69. package/components/root/phi-root-theme-resolver.js +3 -0
  70. package/components/shell/phi-antd-icon.d.ts +1 -8
  71. package/components/shell/phi-antd-icon.js +1 -227
  72. package/components/shell/phi-icon-names.d.ts +22 -0
  73. package/components/shell/phi-icon-names.js +267 -0
  74. package/components/shell/phi-icon.d.ts +4 -15
  75. package/components/shell/phi-icon.js +9 -50
  76. package/components/tables/client/phi-table-binding-params.d.ts +24 -0
  77. package/components/tables/client/phi-table-binding-params.js +39 -0
  78. package/components/tables/client/phi-table-binding.d.ts +1 -3
  79. package/components/tables/client/phi-table-binding.js +5 -9
  80. package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
  81. package/components/widgets/client/shared/phi-button-icons.js +8 -12
  82. package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
  83. package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
  84. package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
  85. package/components/widgets/client/shared/phi-collection-provider.js +5 -0
  86. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  87. package/components/widgets/client/shared/phi-command-buttons.d.ts +29 -2
  88. package/components/widgets/client/shared/phi-command-buttons.js +19 -5
  89. package/components/widgets/client/shared/phi-rendered-value.js +27 -3
  90. package/components/widgets/client/shared/phi-table-provider-refusal.d.ts +13 -0
  91. package/components/widgets/client/shared/phi-table-provider-refusal.js +13 -0
  92. package/components/widgets/config/background.d.ts +3 -2
  93. package/components/widgets/config/choice-shared.d.ts +10 -1
  94. package/components/widgets/config/choice-shared.js +8 -2
  95. package/components/widgets/label-sets/admin-locales.js +1 -1
  96. package/components/widgets/label-sets/admin-users.d.ts +3 -5
  97. package/components/widgets/label-sets/admin-users.js +6 -10
  98. package/components/widgets/label-sets/builder-modules.js +4 -0
  99. package/components/widgets/label-sets/effects.js +2 -4
  100. package/components/widgets/label-sets/profile.d.ts +13 -16
  101. package/components/widgets/label-sets/profile.js +24 -33
  102. package/components/widgets/label-sets/registration.d.ts +0 -1
  103. package/components/widgets/label-sets/registration.js +0 -2
  104. package/components/widgets/label-sets/revisions.js +2 -0
  105. package/components/widgets/label-sets/search-results.js +2 -4
  106. package/components/widgets/label-sets/signals.js +2 -0
  107. package/components/widgets/label-sets/table.js +9 -0
  108. package/components/widgets/label-types/builder-modules.d.ts +4 -0
  109. package/components/widgets/label-types/builder-modules.js +2 -0
  110. package/components/widgets/label-types/effects.d.ts +3 -2
  111. package/components/widgets/label-types/effects.js +1 -2
  112. package/components/widgets/label-types/revisions.d.ts +2 -0
  113. package/components/widgets/label-types/revisions.js +2 -1
  114. package/components/widgets/label-types/search-results.d.ts +2 -2
  115. package/components/widgets/label-types/search-results.js +1 -2
  116. package/components/widgets/label-types/signals.d.ts +2 -0
  117. package/components/widgets/label-types/signals.js +1 -0
  118. package/components/widgets/label-types/table.d.ts +3 -0
  119. package/components/widgets/label-types/table.js +2 -0
  120. package/components/widgets/server/builder-chrome.d.ts +4 -1
  121. package/components/widgets/server/builder-chrome.js +2 -2
  122. package/components/widgets/shared/markdown-body-client.d.ts +26 -0
  123. package/components/widgets/shared/markdown-body-client.js +31 -1
  124. package/components/widgets/shared/markdown-render.d.ts +10 -2
  125. package/components/widgets/shared/markdown-render.js +35 -13
  126. package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
  127. package/components/widgets/shared/widget-failure-audience.js +21 -0
  128. package/components/widgets/shared/widget-failure-client.js +5 -2
  129. package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
  130. package/components/widgets/shared/widget-failure-notice-client.js +10 -0
  131. package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
  132. package/components/widgets/shared/widget-failure-notice.js +17 -0
  133. package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
  134. package/components/widgets/shared/widget-failure-staff.js +18 -0
  135. package/components/widgets/shared/widget-failure.d.ts +9 -6
  136. package/components/widgets/shared/widget-failure.js +0 -9
  137. package/components/widgets/shared/widget-failure.server.d.ts +4 -2
  138. package/components/widgets/shared/widget-failure.server.js +8 -3
  139. package/constants/countries.d.ts +9 -0
  140. package/constants/countries.js +28 -0
  141. package/constants/customer-file.d.ts +34 -0
  142. package/constants/customer-file.js +35 -0
  143. package/constants/record-field-kinds.d.ts +15 -0
  144. package/constants/record-field-kinds.js +13 -0
  145. package/constants/runtime-module-ownership.js +15 -2
  146. package/constants/runtime-render-client-types.d.ts +5 -0
  147. package/constants/runtime-render-client-types.js +5 -0
  148. package/constants/site-address.d.ts +9 -0
  149. package/constants/site-address.js +10 -0
  150. package/constants/table-loading.d.ts +14 -0
  151. package/constants/table-loading.js +14 -0
  152. package/{plugins/runtime-modules/threads/controller/address.js → constants/threads-controller-address.js} +1 -1
  153. package/constants.d.ts +2 -0
  154. package/constants.js +4 -0
  155. package/gateway/form-handler-request.d.ts +22 -0
  156. package/gateway/form-handler-request.js +40 -0
  157. package/gateway/label-set.d.ts +15 -2
  158. package/gateway/label-set.js +60 -22
  159. package/gateway/site-cms-write-validation.js +19 -3
  160. package/gateway/site-form-route.js +11 -2
  161. package/helpers/address-field.d.ts +43 -0
  162. package/helpers/address-field.js +68 -0
  163. package/helpers/announced-action.d.ts +17 -0
  164. package/helpers/announced-action.js +29 -0
  165. package/helpers/cms-dialog.d.ts +5 -20
  166. package/helpers/cms-dialog.js +8 -13
  167. package/helpers/cms-page-catalog.d.ts +10 -0
  168. package/helpers/cms-page-catalog.js +19 -0
  169. package/helpers/cms-preset-nodes.d.ts +4 -4
  170. package/helpers/cms-preset-nodes.js +1 -1
  171. package/helpers/cms-region-keys.d.ts +1 -1
  172. package/helpers/country-names.d.ts +12 -0
  173. package/helpers/country-names.js +14 -0
  174. package/helpers/phi-metadata.d.ts +25 -1
  175. package/helpers/phi-metadata.js +53 -1
  176. package/helpers/phi-site-description.d.ts +11 -0
  177. package/helpers/phi-site-description.js +13 -0
  178. package/helpers/preset-form-check.d.ts +14 -0
  179. package/helpers/preset-form-check.js +12 -0
  180. package/helpers/preset-table-check.d.ts +38 -0
  181. package/helpers/preset-table-check.js +118 -0
  182. package/helpers/preset-text-source-check.d.ts +4 -1
  183. package/helpers/preset-text-source-check.js +6 -1
  184. package/helpers/preset-tree-contract-check.d.ts +3 -2
  185. package/helpers/preset-tree-contract-check.js +30 -5
  186. package/helpers/public-route-claims.d.ts +9 -1
  187. package/helpers/public-route-claims.js +23 -3
  188. package/helpers/record-fields.d.ts +1 -5
  189. package/helpers/record-fields.js +15 -6
  190. package/helpers/record-widget-binding.d.ts +10 -0
  191. package/helpers/record-widget-binding.js +35 -0
  192. package/helpers/record-widget.d.ts +1 -10
  193. package/helpers/record-widget.js +4 -33
  194. package/helpers/route-address-check.d.ts +22 -2
  195. package/helpers/route-address-check.js +29 -8
  196. package/helpers/site-address-row.d.ts +23 -0
  197. package/helpers/site-address-row.js +36 -0
  198. package/helpers/surface-style.d.ts +8 -1
  199. package/helpers/surface-style.js +12 -2
  200. package/helpers/table-widget-binding.d.ts +12 -0
  201. package/helpers/table-widget-binding.js +296 -0
  202. package/helpers/thread-inbox-row.d.ts +20 -0
  203. package/helpers/thread-inbox-row.js +26 -0
  204. package/helpers/translation-format.d.ts +26 -0
  205. package/helpers/translation-format.js +31 -0
  206. package/helpers/tree-widget-binding.d.ts +19 -0
  207. package/helpers/tree-widget-binding.js +72 -0
  208. package/helpers/typed-confirmation.d.ts +9 -0
  209. package/helpers/typed-confirmation.js +13 -0
  210. package/helpers/widget-binding-check.d.ts +22 -0
  211. package/helpers/widget-binding-check.js +91 -0
  212. package/module-labels.d.ts +1 -1
  213. package/module-labels.js +1 -1
  214. package/module-page-check.d.ts +3 -0
  215. package/module-page-check.js +3 -0
  216. package/module-records.d.ts +2 -2
  217. package/module-records.js +1 -0
  218. package/next/area-route.js +34 -1
  219. package/next/root-route.js +4 -4
  220. package/package.json +2 -2
  221. package/plugins/runtime-modules/accounting/customer-file-access.d.ts +11 -0
  222. package/plugins/runtime-modules/accounting/customer-file-access.js +12 -0
  223. package/plugins/runtime-modules/accounting/data-providers.js +1 -1
  224. package/plugins/runtime-modules/accounting/ids.d.ts +14 -0
  225. package/plugins/runtime-modules/accounting/ids.js +34 -0
  226. package/plugins/runtime-modules/accounting/presets.js +32 -5
  227. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +78 -0
  228. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +136 -0
  229. package/plugins/runtime-modules/accounting/trees/accounting-products-label-set.js +2 -2
  230. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +29 -0
  231. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +450 -0
  232. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-products-page-tree.js +4 -0
  233. package/plugins/runtime-modules/app/client-data-providers.d.ts +7 -0
  234. package/plugins/runtime-modules/app/client-data-providers.js +9 -0
  235. package/plugins/runtime-modules/app/data-providers.d.ts +43 -0
  236. package/plugins/runtime-modules/app/data-providers.js +45 -0
  237. package/plugins/runtime-modules/app/definition.d.ts +60 -1
  238. package/plugins/runtime-modules/app/definition.js +2 -0
  239. package/plugins/runtime-modules/app/forms.d.ts +33 -3
  240. package/plugins/runtime-modules/app/forms.js +166 -31
  241. package/plugins/runtime-modules/app/ids.d.ts +8 -0
  242. package/plugins/runtime-modules/app/ids.js +9 -0
  243. package/plugins/runtime-modules/app/module.d.ts +60 -1
  244. package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
  245. package/plugins/runtime-modules/app/services/addresses-collection.js +105 -0
  246. package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +21 -0
  247. package/plugins/runtime-modules/app/trees/account-addresses-panel.js +143 -0
  248. package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +57 -0
  249. package/plugins/runtime-modules/app/trees/addresses-label-set.js +104 -0
  250. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
  251. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +28 -19
  252. package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +1 -2
  253. package/plugins/runtime-modules/app/trees/profile-label-set.js +5 -14
  254. package/plugins/runtime-modules/asset/presets.d.ts +4 -0
  255. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
  256. package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +4 -2
  257. package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +4 -2
  258. package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +2 -2
  259. package/plugins/runtime-modules/auth/widgets/logout/client.d.ts +1 -1
  260. package/plugins/runtime-modules/auth/widgets/logout/client.js +2 -2
  261. package/plugins/runtime-modules/auth/widgets/security/client.d.ts +5 -1
  262. package/plugins/runtime-modules/auth/widgets/security/client.js +12 -10
  263. package/plugins/runtime-modules/avatar/overlay-tree.server.js +1 -1
  264. package/plugins/runtime-modules/blog/presets.d.ts +4 -0
  265. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
  266. package/plugins/runtime-modules/builder/clients/inspector-image-field.d.ts +2 -1
  267. package/plugins/runtime-modules/builder/clients/inspector-image-field.js +6 -3
  268. package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
  269. package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.d.ts +23 -0
  270. package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.js +38 -0
  271. package/plugins/runtime-modules/builder/clients/mode-switch.d.ts +4 -1
  272. package/plugins/runtime-modules/builder/clients/mode-switch.js +2 -15
  273. package/plugins/runtime-modules/builder/clients/pages-workspace.js +2 -0
  274. package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +2 -1
  275. package/plugins/runtime-modules/builder/controller/draft-status-controller.js +28 -1
  276. package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
  277. package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +5 -0
  278. package/plugins/runtime-modules/builder/page-presets.server.d.ts +7 -0
  279. package/plugins/runtime-modules/builder/page-presets.server.js +10 -1
  280. package/plugins/runtime-modules/builder/persistence.js +4 -0
  281. package/plugins/runtime-modules/builder/public-route-collisions.js +8 -3
  282. package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
  283. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +8 -1
  284. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +47 -7
  285. package/plugins/runtime-modules/builder/widgets/chrome/config.d.ts +6 -4
  286. package/plugins/runtime-modules/builder/widgets/chrome/config.js +11 -1
  287. package/plugins/runtime-modules/builder/widgets/inspector-header/authoring.d.ts +2 -2
  288. package/plugins/runtime-modules/builder/widgets/inspector-header/plugin.d.ts +2 -2
  289. package/plugins/runtime-modules/builder/widgets/mode-switch/plugin.js +1 -1
  290. package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +2 -2
  291. package/plugins/runtime-modules/client-manifests/app.js +3 -0
  292. package/plugins/runtime-modules/client-manifests/builder.js +10 -0
  293. package/plugins/runtime-modules/client-manifests/common.js +6 -0
  294. package/plugins/runtime-modules/content-entry-routes.d.ts +4 -0
  295. package/plugins/runtime-modules/contracts.js +31 -1
  296. package/plugins/runtime-modules/core/definition.d.ts +23 -0
  297. package/plugins/runtime-modules/core/form-providers.d.ts +23 -0
  298. package/plugins/runtime-modules/core/messaging/thread-inbox-table.d.ts +0 -17
  299. package/plugins/runtime-modules/core/messaging/thread-inbox-table.js +2 -23
  300. package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -2
  301. package/plugins/runtime-modules/core/widgets/card/config.js +0 -1
  302. package/plugins/runtime-modules/core/widgets/card/editor.js +1 -1
  303. package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
  304. package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
  305. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
  306. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
  307. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
  308. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
  309. package/plugins/runtime-modules/core/widgets/command-toolbar/client.js +3 -0
  310. package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +316 -1
  311. package/plugins/runtime-modules/core/widgets/command-toolbar/config.js +4 -4
  312. package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
  313. package/plugins/runtime-modules/core/widgets/dimension/config.d.ts +1 -1
  314. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
  315. package/plugins/runtime-modules/core/widgets/float-button/client.js +4 -1
  316. package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +326 -3
  317. package/plugins/runtime-modules/core/widgets/float-button/config.js +5 -2
  318. package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
  319. package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
  320. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
  321. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +1 -1
  322. package/plugins/runtime-modules/core/widgets/length/config.d.ts +1 -1
  323. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
  324. package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
  325. package/plugins/runtime-modules/core/widgets/markdown/server.d.ts +6 -2
  326. package/plugins/runtime-modules/core/widgets/markdown/server.js +2 -2
  327. package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.d.ts +12 -0
  328. package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.js +68 -0
  329. package/plugins/runtime-modules/core/widgets/number-input/config.d.ts +1 -1
  330. package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
  331. package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
  332. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
  333. package/plugins/runtime-modules/core/widgets/simple-text/config.js +1 -1
  334. package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +2 -1
  335. package/plugins/runtime-modules/core/widgets/table/client.js +48 -51
  336. package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
  337. package/plugins/runtime-modules/core/widgets/table/config.js +9 -0
  338. package/plugins/runtime-modules/core/widgets/table/reader-query.d.ts +17 -0
  339. package/plugins/runtime-modules/core/widgets/table/reader-query.js +33 -0
  340. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
  341. package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
  342. package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
  343. package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
  344. package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
  345. package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
  346. package/plugins/runtime-modules/dashboard/trees/dashboard-cards-page-tree.js +3 -1
  347. package/plugins/runtime-modules/descriptor-compiler.d.ts +19 -3
  348. package/plugins/runtime-modules/descriptor-compiler.js +44 -16
  349. package/plugins/runtime-modules/editor/presets.d.ts +4 -0
  350. package/plugins/runtime-modules/editor/trees/phi-default-editor-releases-page-tree.js +3 -1
  351. package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +5 -1
  352. package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +5 -1
  353. package/plugins/runtime-modules/localization/presets.d.ts +4 -0
  354. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
  355. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
  356. package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +3 -1
  357. package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +9 -2
  358. package/plugins/runtime-modules/news/presets.d.ts +4 -0
  359. package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +6 -2
  360. package/plugins/runtime-modules/resolver.js +17 -0
  361. package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
  362. package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
  363. package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
  364. package/plugins/runtime-modules/revisions/controller/client.js +86 -60
  365. package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
  366. package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
  367. package/plugins/runtime-modules/revisions/controller/draft-context-target.d.ts +25 -0
  368. package/plugins/runtime-modules/revisions/controller/draft-context-target.js +33 -0
  369. package/plugins/runtime-modules/revisions/forms.js +1 -1
  370. package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
  371. package/plugins/runtime-modules/revisions/page-ids.js +4 -1
  372. package/plugins/runtime-modules/revisions/presets.d.ts +4 -0
  373. package/plugins/runtime-modules/revisions/services/options.js +14 -4
  374. package/plugins/runtime-modules/revisions/services/table.js +54 -25
  375. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +79 -4
  376. package/plugins/runtime-modules/search/widgets/search-results/client.js +4 -2
  377. package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
  378. package/plugins/runtime-modules/theme/presets.d.ts +4 -0
  379. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +105 -7
  380. package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +3 -2
  381. package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +2 -2
  382. package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +19 -7
  383. package/plugins/runtime-modules/threads/client-data-providers.js +10 -0
  384. package/plugins/runtime-modules/threads/controller/client.js +62 -2
  385. package/plugins/runtime-modules/threads/controller/definition.js +49 -1
  386. package/plugins/runtime-modules/threads/data-providers.d.ts +100 -2
  387. package/plugins/runtime-modules/threads/data-providers.js +96 -0
  388. package/plugins/runtime-modules/threads/definition.d.ts +100 -2
  389. package/plugins/runtime-modules/threads/definition.js +1 -1
  390. package/plugins/runtime-modules/threads/ids.d.ts +4 -0
  391. package/plugins/runtime-modules/threads/ids.js +5 -0
  392. package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
  393. package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
  394. package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
  395. package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
  396. package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +126 -0
  397. package/plugins/runtime-modules/threads/services/customer-file-table.js +79 -0
  398. package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +5 -3
  399. package/plugins/runtime-modules/user-management/client-data-providers.js +5 -0
  400. package/plugins/runtime-modules/user-management/data-providers.d.ts +159 -0
  401. package/plugins/runtime-modules/user-management/data-providers.js +101 -3
  402. package/plugins/runtime-modules/user-management/definition.d.ts +159 -0
  403. package/plugins/runtime-modules/user-management/ids.d.ts +9 -0
  404. package/plugins/runtime-modules/user-management/ids.js +9 -0
  405. package/plugins/runtime-modules/user-management/presets.js +17 -1
  406. package/plugins/runtime-modules/user-management/services/users-access-table.d.ts +378 -0
  407. package/plugins/runtime-modules/user-management/services/users-access-table.js +132 -0
  408. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +90 -0
  409. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +122 -0
  410. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.d.ts +20 -0
  411. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +181 -0
  412. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +24 -18
  413. package/server-helpers/cms-page-record.d.ts +9 -1
  414. package/server-helpers/cms-page-record.js +11 -1
  415. package/server-helpers/cms-request.js +8 -5
  416. package/server-helpers/link-preview-image.d.ts +30 -0
  417. package/server-helpers/link-preview-image.js +57 -0
  418. package/server-helpers/runtime.js +0 -1
  419. package/server-helpers/search-text.js +3 -0
  420. package/server-helpers.d.ts +1 -1
  421. package/server-helpers.js +1 -1
  422. package/styles/controls.css +4 -2
  423. package/styles/layout.css +7 -0
  424. package/styles/shell.css +30 -6
  425. package/theme/phi-antd-token-resolver.d.ts +8 -0
  426. package/theme/phi-antd-token-resolver.js +10 -0
  427. package/theme/phi-theme-color.d.ts +19 -0
  428. package/theme/phi-theme-color.js +42 -0
  429. package/theme/phi-theme-composition.js +9 -0
  430. package/theme/phi-theme-gradients.js +4 -22
  431. package/theme/phi-theme-inverse-ground.d.ts +39 -0
  432. package/theme/phi-theme-inverse-ground.js +103 -0
  433. package/theme/phi-theme-palette-defaults.d.ts +16 -0
  434. package/theme/phi-theme-palette-defaults.js +103 -0
  435. package/theme/phi-theme-tokens.d.ts +2 -1
  436. package/theme/phi-theme-tokens.js +2 -0
  437. package/types/cms-module-descriptors.d.ts +14 -0
  438. package/types/cms-overlay.d.ts +13 -6
  439. package/types/cms-overlay.js +6 -22
  440. package/types/cms-plugins.d.ts +20 -3
  441. package/types/cms.d.ts +10 -0
  442. package/types/collection-provider.d.ts +27 -0
  443. package/types/collection-signal-values.d.ts +2 -0
  444. package/types/collection-signal-values.js +23 -0
  445. package/types/collection-view-widget.d.ts +9 -0
  446. package/types/core-widget-placements.d.ts +9 -3
  447. package/types/link-preview.d.ts +19 -0
  448. package/types/link-preview.js +19 -0
  449. package/types/record-provider.d.ts +22 -1
  450. package/types/signals.d.ts +2 -0
  451. package/types/signals.js +2 -0
  452. package/types/site-theme.d.ts +27 -0
  453. package/types/table-embed.d.ts +48 -0
  454. package/types/table-embed.js +1 -0
  455. package/types/table-widget.d.ts +29 -1
  456. package/types/table-widget.js +0 -282
  457. package/types/tree-widget.d.ts +0 -1
  458. package/types/tree-widget.js +0 -60
  459. package/types/widget-runtime.d.ts +3 -1
  460. package/types.d.ts +2 -1
  461. package/types.js +1 -1
  462. /package/{plugins/runtime-modules/threads/controller/address.d.ts → constants/threads-controller-address.d.ts} +0 -0
@@ -141,7 +141,7 @@ export declare function instantiatePhiCmsAreaShellPreset({ binding, catalog, sit
141
141
  runtime: PhiBlockRuntime;
142
142
  loadModuleMedia: PhiModuleMediaLoader;
143
143
  }): Promise<PhiResolvedCmsPageTree>;
144
- export declare function instantiatePhiCmsRoutePreset({ binding, catalog, activeModuleIds, siteId, path, runtime, loadModuleMedia, resolveMissingPageTitle, }: {
144
+ export declare function instantiatePhiCmsRoutePreset({ binding, catalog, activeModuleIds, siteId, path, runtime, loadModuleMedia, translateRouteText, }: {
145
145
  binding: PhiCmsRoutePresetBinding;
146
146
  catalog: PhiCmsCompiledDescriptorCatalog;
147
147
  activeModuleIds: ReadonlySet<PhiRuntimeModuleId>;
@@ -149,6 +149,22 @@ export declare function instantiatePhiCmsRoutePreset({ binding, catalog, activeM
149
149
  path: string;
150
150
  runtime: PhiBlockRuntime;
151
151
  loadModuleMedia: PhiModuleMediaLoader;
152
- resolveMissingPageTitle?: (sourceTitle: string) => string | Promise<string>;
153
- }): Promise<PhiResolvedCmsPageTree>;
152
+ translateRouteText?: (source: string) => string | Promise<string>;
153
+ }): Promise<{
154
+ pageMeta: {
155
+ title: import("../../types").PhiCmsResolvedPageMetaField;
156
+ description: import("../../types").PhiCmsResolvedPageMetaField | null;
157
+ preview?: {
158
+ title: string | null;
159
+ description: string | null;
160
+ image: import("../../module-records").PhiRecordPicture | null;
161
+ } | null;
162
+ };
163
+ page: PhiCmsPageNode;
164
+ regions: import("../../types").PhiCmsRegionNode[];
165
+ overlays: import("../../types").PhiCmsOverlayNode[];
166
+ layoutNodes: import("../../types").PhiCmsLayoutNode[];
167
+ contentWidgets: import("../../types").PhiCmsContentWidgetNode[];
168
+ controllerSettings?: import("../../types/cms").PhiCmsTreeControllerSettings | null;
169
+ }>;
154
170
  export {};
@@ -9,8 +9,10 @@ import { resolvePhiRuntimeModuleAreaRoutePath } from "../../helpers/runtime-modu
9
9
  import { createPhiPageReference } from "../../types/references";
10
10
  import { choosePhiAreaRootApplicant, describePhiAreaShellSettingsError, orderPhiAreaPathClaimsByCover, isPhiAssignablePublicRoutePath, } from "../../helpers/cms-area-config";
11
11
  import { checkPhiPresetTreeContract } from "../../helpers/preset-tree-contract-check";
12
+ import { refusePhiCatalogRouteAddresses } from "../../helpers/route-address-check";
12
13
  import { concatPhiCmsTreeControllerSettings } from "../../helpers/cms-tree-controller-settings";
13
14
  import { createPhiModuleMediaResolver } from "../../helpers/module-media";
15
+ import { PHI_PAGE_SHARE_IMAGE_CONFIG_KEY } from "../../types/link-preview";
14
16
  const PHI_CMS_REGION_TYPE_VALUES = new Set(Object.values(PhiCmsRegionType));
15
17
  const PHI_ROUTE_PARAMETER_PATTERN = /^:[A-Za-z][A-Za-z0-9_]*$/;
16
18
  const PHI_NAVIGATION_ANCHORS = new Set([
@@ -112,6 +114,13 @@ export function compilePhiCmsRoutePattern(descriptor) {
112
114
  if (dynamicSegments.length > 1) {
113
115
  throw new Error(`${descriptor.ownerModuleId}/${descriptor.presetKey}: a route may contain at most one dynamic segment.`);
114
116
  }
117
+ // The route's own meta is stated or left out, never stated empty.
118
+ if (descriptor.description !== undefined && !descriptor.description.trim()) {
119
+ throw new Error(`${descriptor.ownerModuleId}/${descriptor.presetKey}: a route's description must not be empty.`);
120
+ }
121
+ if (descriptor.shareImage !== undefined && !descriptor.shareImage.asset?.trim()) {
122
+ throw new Error(`${descriptor.ownerModuleId}/${descriptor.presetKey}: a route's share image must name a picture of the package.`);
123
+ }
115
124
  // A page record is filled in from the address, so every route parameter it names has to be in the path.
116
125
  if (descriptor.pageRecord) {
117
126
  const routeParams = new Set(dynamicSegments.map((segment) => segment.slice(1)));
@@ -444,6 +453,8 @@ export function compilePhiCmsDescriptorCatalog({ catalog, areaDefinitions, }) {
444
453
  for (const identity of areaShellByIdentity.keys()) {
445
454
  visitShell(identity);
446
455
  }
456
+ // A Page is never a folder, across every installed package (THIRD_PARTY_MODULES.md, "Addresses and folders").
457
+ refusePhiCatalogRouteAddresses(routesByArea);
447
458
  const routeDescriptors = [...routesByArea.values()].flat().map(({ descriptor }) => descriptor);
448
459
  const injectionKeysByOwnerAndSurface = new Map();
449
460
  const allInjectionKeysBySurface = new Map();
@@ -1625,7 +1636,7 @@ export async function instantiatePhiCmsAreaShellPreset({ binding, catalog, siteI
1625
1636
  assertPhiCmsPresetTreeContract(tree, page, catalog.formDefinitionsById);
1626
1637
  return tree;
1627
1638
  }
1628
- export async function instantiatePhiCmsRoutePreset({ binding, catalog, activeModuleIds, siteId, path, runtime, loadModuleMedia, resolveMissingPageTitle, }) {
1639
+ export async function instantiatePhiCmsRoutePreset({ binding, catalog, activeModuleIds, siteId, path, runtime, loadModuleMedia, translateRouteText, }) {
1629
1640
  const descriptor = binding.descriptor;
1630
1641
  const page = createSyntheticPresetPage({
1631
1642
  siteId,
@@ -1633,29 +1644,46 @@ export async function instantiatePhiCmsRoutePreset({ binding, catalog, activeMod
1633
1644
  path,
1634
1645
  flags: descriptor.defaultPageFlags ?? 0,
1635
1646
  });
1647
+ const media = createPhiModuleMediaResolver(descriptor.ownerModuleId, loadModuleMedia);
1636
1648
  const loadedTree = await descriptor.loadTree({
1637
1649
  page,
1638
1650
  runtime: resolveTargetRuntime(runtime, descriptor.area),
1639
1651
  catalog,
1640
1652
  activeModuleIds,
1641
1653
  params: binding.params,
1642
- media: createPhiModuleMediaResolver(descriptor.ownerModuleId, loadModuleMedia),
1654
+ media,
1643
1655
  });
1644
- const tree = loadedTree.pageMeta?.title
1645
- ? loadedTree
1646
- : {
1647
- ...loadedTree,
1648
- pageMeta: {
1649
- title: {
1650
- msgId: 0,
1651
- source: descriptor.title,
1652
- value: resolveMissingPageTitle
1653
- ? (await resolveMissingPageTitle(descriptor.title)).trim() || descriptor.title
1654
- : descriptor.title,
1656
+ /*
1657
+ * The route's own meta fills in what the tree leaves out: its title and description, translated as the
1658
+ * Module's text, and its share picture, resolved like any picture of the package. What the tree states
1659
+ * wins, field by field.
1660
+ */
1661
+ const translate = async (source) => translateRouteText
1662
+ ? (await translateRouteText(source)).trim() || source
1663
+ : source;
1664
+ const metaField = async (source) => ({ msgId: 0, source, value: await translate(source) });
1665
+ const title = loadedTree.pageMeta?.title ?? await metaField(descriptor.title);
1666
+ const description = loadedTree.pageMeta?.description
1667
+ ?? (descriptor.description ? await metaField(descriptor.description) : null);
1668
+ const shareImageAssetId = descriptor.shareImage
1669
+ && loadedTree.page.layoutConfig?.[PHI_PAGE_SHARE_IMAGE_CONFIG_KEY] === undefined
1670
+ ? await media.asset(descriptor.shareImage.asset)
1671
+ : null;
1672
+ const tree = {
1673
+ ...loadedTree,
1674
+ ...(shareImageAssetId !== null
1675
+ ? {
1676
+ page: {
1677
+ ...loadedTree.page,
1678
+ layoutConfig: {
1679
+ ...loadedTree.page.layoutConfig,
1680
+ [PHI_PAGE_SHARE_IMAGE_CONFIG_KEY]: { assetId: shareImageAssetId },
1681
+ },
1655
1682
  },
1656
- description: loadedTree.pageMeta?.description ?? null,
1657
- },
1658
- };
1683
+ }
1684
+ : {}),
1685
+ pageMeta: { ...loadedTree.pageMeta, title, description },
1686
+ };
1659
1687
  assertPhiCmsPresetTreeContract(tree, page, catalog.formDefinitionsById);
1660
1688
  return tree;
1661
1689
  }
@@ -38,6 +38,10 @@ export declare const PHI_EDITOR_RUNTIME_MODULE_ROUTES: (PhiCmsRoutePresetDescrip
38
38
  path: string;
39
39
  landingPage?: true;
40
40
  title: string;
41
+ description?: string;
42
+ shareImage?: {
43
+ asset: string;
44
+ };
41
45
  defaultPageFlags?: number;
42
46
  loadTree: (context: import("../../../types").PhiCmsDescriptorBuildContext & {
43
47
  activeModuleIds: ReadonlySet<import("../contracts").PhiRuntimeModuleId>;
@@ -1,5 +1,5 @@
1
1
  import { PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS } from "../../../../constants/cms-layout-types";
2
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
2
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
3
3
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
4
4
  import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
5
5
  import { canPhiViewerAccess, PHI_VIEWER_ACCESS_PUBLISHING } from "../../../../types/access";
@@ -70,6 +70,8 @@ export async function buildPhiDefaultEditorReleasesPageTree({ page, runtime, })
70
70
  typeKey: "table",
71
71
  slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
72
72
  sortOrder: 10,
73
+ // The Module's Label Set, translated already.
74
+ flags: PhiCmsFlags.NoTranslate,
73
75
  label: labels.widgetLabel,
74
76
  config: {
75
77
  source: {
@@ -1,6 +1,6 @@
1
1
  import { PHI_TEXT_SOURCE_PRESET } from "../../../../helpers/text-source";
2
2
  import { PHI_CMS_DEFAULT_SLOT_INDEX } from "../../../../constants/cms-layout-types";
3
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
3
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
4
4
  import { PHI_GROUPS_RUNTIME_DATA_PROVIDER_KEYS } from "../ids";
5
5
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
6
6
  import { createPhiSignalAddress, PHI_SIGNAL_VALUE_SCHEMAS } from "../../../../types/signals";
@@ -284,6 +284,8 @@ export async function buildPhiDefaultAdminGroupsPageTree({ page, runtime, }) {
284
284
  typeKey: "table",
285
285
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
286
286
  sortOrder: 0,
287
+ // The Module's Label Set, translated already.
288
+ flags: PhiCmsFlags.NoTranslate,
287
289
  label: labels.groups.title,
288
290
  config: {
289
291
  source: {
@@ -409,6 +411,8 @@ export async function buildPhiDefaultAdminGroupsPageTree({ page, runtime, }) {
409
411
  // Its own slot: one slot holds one direct node, so the two tables stack rather than collide.
410
412
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
411
413
  sortOrder: 1,
414
+ // The Module's Label Set, translated already.
415
+ flags: PhiCmsFlags.NoTranslate,
412
416
  label: labels.members.title,
413
417
  config: {
414
418
  ...buildPhiGroupMembersTable({
@@ -1,6 +1,6 @@
1
1
  import { PHI_TEXT_SOURCE_PRESET } from "../../../../helpers/text-source";
2
2
  import { PHI_CMS_DEFAULT_SLOT_INDEX } from "../../../../constants/cms-layout-types";
3
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
3
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
4
4
  import { PHI_GROUPS_RUNTIME_DATA_PROVIDER_KEYS } from "../ids";
5
5
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
6
6
  import { createPhiSignalAddress, PHI_SIGNAL_VALUE_SCHEMAS } from "../../../../types/signals";
@@ -111,6 +111,8 @@ export async function buildPhiDefaultAppGroupsPageTree({ page, runtime, }) {
111
111
  typeKey: "table",
112
112
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
113
113
  sortOrder: 0,
114
+ // The Module's Label Set, translated already.
115
+ flags: PhiCmsFlags.NoTranslate,
114
116
  label: labels.mine.title,
115
117
  config: {
116
118
  source: {
@@ -198,6 +200,8 @@ export async function buildPhiDefaultAppGroupsPageTree({ page, runtime, }) {
198
200
  typeKey: "table",
199
201
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
200
202
  sortOrder: 1,
203
+ // The Module's Label Set, translated already.
204
+ flags: PhiCmsFlags.NoTranslate,
201
205
  label: labels.members.title,
202
206
  config: {
203
207
  ...buildPhiGroupMembersTable({ labels, audience: "colleagues" }),
@@ -37,6 +37,10 @@ export declare const PHI_LOCALIZATION_RUNTIME_MODULE_ROUTES: (PhiCmsRoutePresetD
37
37
  path: string;
38
38
  landingPage?: true;
39
39
  title: string;
40
+ description?: string;
41
+ shareImage?: {
42
+ asset: string;
43
+ };
40
44
  defaultPageFlags?: number;
41
45
  loadTree: (context: import("../../../types").PhiCmsDescriptorBuildContext & {
42
46
  activeModuleIds: ReadonlySet<import("../contracts").PhiRuntimeModuleId>;
@@ -45,6 +45,8 @@ export type PhiEditorTranslationsWidgetLabels = {
45
45
  title: string;
46
46
  text: string;
47
47
  };
48
+ /** The Table's footer; %1 the source messages the query finds. */
49
+ footer: string;
48
50
  feedback: {
49
51
  saveSuccess: string;
50
52
  deleteSuccess: string;
@@ -37,6 +37,7 @@ const PHI_EDITOR_TRANSLATIONS_WIDGET_LABEL_SET = definePhiRuntimeModuleLabelSet(
37
37
  delete_description: definePhiMessageLabel("Delete this translated variant?"),
38
38
  empty_title: definePhiMessageLabel("No translations found."),
39
39
  empty_text: definePhiMessageLabel("No source messages match the current filters."),
40
+ footer_count: "%1 source messages",
40
41
  load_error: definePhiMessageLabel("Failed to load translations."),
41
42
  save_error: definePhiMessageLabel("Failed to save translation."),
42
43
  required_translation: definePhiMessageLabel("A translation is required."),
@@ -91,6 +92,7 @@ export async function getPhiEditorTranslationsWidgetLabels(options) {
91
92
  title: labels.empty_title,
92
93
  text: labels.empty_text,
93
94
  },
95
+ footer: labels.footer_count,
94
96
  feedback: {
95
97
  saveSuccess: labels.save_success,
96
98
  deleteSuccess: labels.delete_success,
@@ -1,7 +1,7 @@
1
1
  import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-id";
2
2
  import { PHI_LOCALIZATION_RUNTIME_MODULE_ID } from "../ids";
3
3
  import { PHI_CMS_DEFAULT_SLOT_INDEX, } from "../../../../constants/cms-layout-types";
4
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
4
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
5
5
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
6
6
  import { createPhiSignalAddress, PHI_SIGNAL_VALUE_SCHEMAS } from "../../../../types/signals";
7
7
  import { buildPhiBasePageContentScaffold, PHI_BASE_PAGE_LAYOUT_NODE_ID } from "../../../../components/regions/presets/phi-base-page-layout";
@@ -128,6 +128,8 @@ export async function buildPhiDefaultAdminLocalesPageTree({ page, runtime, }) {
128
128
  parentLayoutNodeId: SYNTHETIC_ADMIN_LOCALES_LAYOUT_IDS.layoutGrid,
129
129
  typeKey: "table",
130
130
  slotIndex: 1,
131
+ // The Module's Label Set, translated already.
132
+ flags: PhiCmsFlags.NoTranslate,
131
133
  label: labels.widgetLabel,
132
134
  config: {
133
135
  source: {
@@ -1,6 +1,6 @@
1
1
  import { PHI_TEXT_SOURCE_PRESET } from "../../../../helpers/text-source";
2
2
  import { PHI_CMS_DEFAULT_SLOT_INDEX, PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS, } from "../../../../constants/cms-layout-types";
3
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
3
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
4
4
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
5
5
  import { createPhiSignalAddress, createPhiSignalSubcontrolAddress } from "../../../../types/signals";
6
6
  import { PHI_EDITOR_TRANSLATION_FORM_WIDGET_ID, PHI_EDITOR_TRANSLATION_COMMANDS_WIDGET_ID, PHI_EDITOR_TRANSLATION_OVERLAY_ID, PHI_EDITOR_TRANSLATION_OVERLAY_FOOTER_LAYOUT_ID, PHI_EDITOR_TRANSLATION_OVERLAY_LAYOUT_ID, PHI_EDITOR_TRANSLATIONS_SOURCE_LOCALE_WIDGET_ID, PHI_EDITOR_TRANSLATIONS_WIDGET_ID, } from "./editor-translations-shell";
@@ -67,7 +67,7 @@ export async function buildPhiDefaultEditorTranslationsPageTree({ page, runtime,
67
67
  label: "editor translation edit modal",
68
68
  config: {
69
69
  title: widgetLabels.actions.edit,
70
- width: { compact: "calc(100vw - 32px)", medium: 640, wide: 720 },
70
+ size: { width: 720 },
71
71
  mountPolicy: "remount",
72
72
  closeMode: "request",
73
73
  signalRoutes: {
@@ -136,6 +136,8 @@ export async function buildPhiDefaultEditorTranslationsPageTree({ page, runtime,
136
136
  typeKey: "table",
137
137
  slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
138
138
  sortOrder: 10,
139
+ // The Module's Label Set, translated already.
140
+ flags: PhiCmsFlags.NoTranslate,
139
141
  label: labels.widgetLabel,
140
142
  config: {
141
143
  source: {
@@ -160,6 +162,11 @@ export async function buildPhiDefaultEditorTranslationsPageTree({ page, runtime,
160
162
  { key: "updatedAt", fieldKey: "updatedAt", title: widgetLabels.columns.updated, renderer: "datetime", sizing: { mode: "content", minWidth: 168 } },
161
163
  ],
162
164
  emptyState: { title: widgetLabels.empty.title, description: widgetLabels.empty.text },
165
+ footer: {
166
+ template: widgetLabels.footer,
167
+ values: [{ key: "messages", value: { source: "core", fieldKey: "totalRows" } }],
168
+ align: "start",
169
+ },
163
170
  controlSize: "small",
164
171
  },
165
172
  features: {
@@ -44,6 +44,10 @@ export declare const PHI_NEWS_RUNTIME_MODULE_ROUTES: ({
44
44
  path: string;
45
45
  landingPage?: true;
46
46
  title: string;
47
+ description?: string;
48
+ shareImage?: {
49
+ asset: string;
50
+ };
47
51
  defaultPageFlags?: number;
48
52
  loadTree: (context: import("../../../types").PhiCmsDescriptorBuildContext & {
49
53
  activeModuleIds: ReadonlySet<import("../contracts").PhiRuntimeModuleId>;
@@ -1,7 +1,7 @@
1
1
  import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-id";
2
2
  import { PHI_OBSERVABILITY_RUNTIME_MODULE_ID } from "../ids";
3
3
  import { PHI_CMS_DEFAULT_SLOT_INDEX } from "../../../../constants/cms-layout-types";
4
- import { PhiCmsPageType } from "../../../../constants/phi-cms";
4
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
5
5
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
6
6
  import { buildPhiBasePageContentScaffold, PHI_BASE_PAGE_LAYOUT_NODE_ID } from "../../../../components/regions/presets/phi-base-page-layout";
7
7
  import { getPhiAdminLogsPageLabels } from "./admin-logs-label-set";
@@ -57,7 +57,7 @@ export async function buildPhiDefaultAdminLogsPageTree({ page, runtime, }) {
57
57
  label: "observability log detail modal",
58
58
  config: {
59
59
  title: widgetLabels.detail.title,
60
- width: 960,
60
+ size: { width: 960 },
61
61
  mountPolicy: "lazy-keep",
62
62
  /*
63
63
  * Which row action this modal is for, which it has to say itself.
@@ -115,6 +115,8 @@ export async function buildPhiDefaultAdminLogsPageTree({ page, runtime, }) {
115
115
  typeKey: "table",
116
116
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
117
117
  sortOrder: 0,
118
+ // The Module's Label Set, translated already.
119
+ flags: PhiCmsFlags.NoTranslate,
118
120
  label: labels.tableLabel,
119
121
  config: {
120
122
  source: {
@@ -249,6 +251,8 @@ export async function buildPhiDefaultAdminLogsPageTree({ page, runtime, }) {
249
251
  typeKey: "record",
250
252
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
251
253
  sortOrder: 0,
254
+ // The Module's Label Set, translated already.
255
+ flags: PhiCmsFlags.NoTranslate,
252
256
  label: "observability log record",
253
257
  config: {
254
258
  source: {
@@ -405,6 +405,23 @@ export function collectPhiRuntimeDataProviderKeys({ moduleSet, trees, }) {
405
405
  readPhiCollectionViewItemRendererKey(widgetConfig, moduleSet) === PHI_MEDIA_LIBRARY_ITEM_RENDERER_KEY) {
406
406
  collected.add(PHI_MEDIA_LIBRARY_DATA_PROVIDER_KEYS.collection);
407
407
  }
408
+ /*
409
+ * A Markdown text's Table embeds read the Provider their active Module names (TABLES.md), found in its
410
+ * source -- its own or its Content record's. One a code sample quotes mounts a Provider, never a Table.
411
+ */
412
+ if (widget.widgetType === PhiCmsWidgetType.Markdown) {
413
+ const sources = [widgetConfig.markdown, widget.resolvedContent?.textFields.markdown?.source];
414
+ const keys = sources.flatMap((source) => typeof source === "string"
415
+ ? [...source.matchAll(/!\[[^\]\n]*\]\(\s*<?phis:table\/([^\s?#)>]+)/gu)].map((match) => match[1])
416
+ : []);
417
+ for (const key of keys) {
418
+ for (const definition of moduleSet.moduleDefinitionsById.values()) {
419
+ const providerKey = definition.embeddableTables?.find((embed) => embed.key === key)?.source.providerKey;
420
+ if (providerKey && knownProviderKeys.has(providerKey))
421
+ collected.add(providerKey);
422
+ }
423
+ }
424
+ }
408
425
  if (widget.widgetType === PhiCmsWidgetType.Form) {
409
426
  const formId = parsePhiFormWidgetConfig(widgetConfig).formId;
410
427
  const form = formId ? moduleSet.formDefinitionsById.get(formId) : null;
@@ -0,0 +1,37 @@
1
+ import { type PhiBuilderAreaKey } from "../../../../constants/cms-areas";
2
+ import type { PhiWorkspaceCatalogState } from "../../../../components/workspace/catalog-state";
3
+ import { type PhiCmsReviewKind } from "../../../../helpers/cms-scope-search-params";
4
+ /** The scope the Revisions Controller hands the history Table: the one binding the Table reads by. */
5
+ export type PhiRevisionsTableBinding = {
6
+ area: PhiBuilderAreaKey;
7
+ kind: PhiCmsReviewKind;
8
+ scopeKey: string;
9
+ };
10
+ type CatalogState = Pick<PhiWorkspaceCatalogState, "area" | "pageKey" | "catalogHydrated" | "pageCatalogHydratedByArea" | "modulePresetPagesByArea" | "customPages" | "persistedPageCatalogByArea">;
11
+ /**
12
+ * Whether the workspace catalog stands for the Area the address names.
13
+ *
14
+ * Before the Builder has read the address, the catalog answers its default Area (`public`) with whatever
15
+ * it holds of it; a scope resolved then belongs to another Area -- a Module Page of the App was asked for
16
+ * as a Public Page and, handed to the Table, written back into the address as the Public Area. So nothing
17
+ * is resolved until the preload is in, the open Area is the one the address names, and its Pages are read.
18
+ */
19
+ export declare function isPhiRevisionsCatalogReady(state: CatalogState, search: URLSearchParams): boolean;
20
+ /** The kind the address names, the Area where it names none. */
21
+ export declare function readPhiRevisionsAddressKind(search: URLSearchParams): PhiCmsReviewKind;
22
+ /**
23
+ * The scope the address names, resolved against the workspace catalog -- or null while the catalog does
24
+ * not stand for that address yet (`isPhiRevisionsCatalogReady`), which is a moment, not a fault.
25
+ */
26
+ export declare function resolvePhiRevisionsControllerBinding(state: CatalogState, search: URLSearchParams): PhiRevisionsTableBinding | null;
27
+ /**
28
+ * The binding a Table request carries, when it carries a whole one.
29
+ *
30
+ * The history Table mounts with its labels and nothing to ask about; the Controller hands it the scope
31
+ * once the catalog stands for the address. Until then -- and while a kind chosen in the Table's own
32
+ * select still stands beside the scope of the kind before it, until the scope select answers -- there is
33
+ * no question, and a request that asked one anyway asked for the wrong history and was thrown away a
34
+ * moment later: the flicker of the Table on every open.
35
+ */
36
+ export declare function readPhiRevisionsTableBinding(params: unknown): PhiRevisionsTableBinding | null;
37
+ export {};
@@ -0,0 +1,75 @@
1
+ import { isPhiBuilderAreaKey } from "../../../../constants/cms-areas";
2
+ import { PHI_BUILDER_AREA_SEARCH_PARAM, PHI_BUILDER_NAVIGATION_KEY_SEARCH_PARAM, PHI_BUILDER_PAGE_SEARCH_PARAM, PHI_BUILDER_REVISIONS_KIND_SEARCH_PARAM, PHI_BUILDER_REVISIONS_SCOPE_SEARCH_PARAM, PHI_BUILDER_THEME_KEY_SEARCH_PARAM, normalizePhiBuilderAreaSearchParam, normalizePhiBuilderPageSearchParam, normalizePhiBuilderRevisionsKindSearchParam, } from "../../../../helpers/cms-scope-search-params";
3
+ import { resolvePhiBuilderActivePageCatalog, resolvePhiBuilderActivePageKey, } from "../../../../helpers/cms-page-catalog";
4
+ import { resolvePhiBuilderRevisionNavScopeKey } from "../../../../helpers/cms-navigation-scope-key";
5
+ import { resolvePhiBuilderRevisionPagePath } from "../types";
6
+ import { isPhiRecord } from "../../../../helpers/is-record";
7
+ /**
8
+ * Whether the workspace catalog stands for the Area the address names.
9
+ *
10
+ * Before the Builder has read the address, the catalog answers its default Area (`public`) with whatever
11
+ * it holds of it; a scope resolved then belongs to another Area -- a Module Page of the App was asked for
12
+ * as a Public Page and, handed to the Table, written back into the address as the Public Area. So nothing
13
+ * is resolved until the preload is in, the open Area is the one the address names, and its Pages are read.
14
+ */
15
+ export function isPhiRevisionsCatalogReady(state, search) {
16
+ if (!state.catalogHydrated || state.pageCatalogHydratedByArea[state.area] !== true)
17
+ return false;
18
+ const area = normalizePhiBuilderAreaSearchParam(search.get(PHI_BUILDER_AREA_SEARCH_PARAM));
19
+ return area == null || area === state.area;
20
+ }
21
+ /** The kind the address names, the Area where it names none. */
22
+ export function readPhiRevisionsAddressKind(search) {
23
+ return normalizePhiBuilderRevisionsKindSearchParam(search.get(PHI_BUILDER_REVISIONS_KIND_SEARCH_PARAM)) ?? "area";
24
+ }
25
+ /**
26
+ * The scope the address names, resolved against the workspace catalog -- or null while the catalog does
27
+ * not stand for that address yet (`isPhiRevisionsCatalogReady`), which is a moment, not a fault.
28
+ */
29
+ export function resolvePhiRevisionsControllerBinding(state, search) {
30
+ if (!isPhiRevisionsCatalogReady(state, search))
31
+ return null;
32
+ const pages = resolvePhiBuilderActivePageCatalog(state.area, state.modulePresetPagesByArea, state.customPages, state.persistedPageCatalogByArea);
33
+ const pageKey = resolvePhiBuilderActivePageKey(normalizePhiBuilderPageSearchParam(search.get(PHI_BUILDER_PAGE_SEARCH_PARAM)) ?? state.pageKey, pages);
34
+ if (!pageKey)
35
+ return null;
36
+ const kind = readPhiRevisionsAddressKind(search);
37
+ const requestedScope = search.get(PHI_BUILDER_REVISIONS_SCOPE_SEARCH_PARAM)?.trim() ?? "";
38
+ const scopeKey = kind === "page"
39
+ ? requestedScope.startsWith("/")
40
+ ? requestedScope
41
+ : resolvePhiBuilderRevisionPagePath(state.area, pageKey, pages)
42
+ : kind === "navigation"
43
+ ? requestedScope.includes(":")
44
+ ? requestedScope
45
+ : resolvePhiBuilderRevisionNavScopeKey(state.area, search.get(PHI_BUILDER_NAVIGATION_KEY_SEARCH_PARAM))
46
+ : kind === "theme"
47
+ ? requestedScope || search.get(PHI_BUILDER_THEME_KEY_SEARCH_PARAM) || "default"
48
+ : normalizePhiBuilderAreaSearchParam(requestedScope) ?? state.area;
49
+ return { area: state.area, kind, scopeKey };
50
+ }
51
+ /**
52
+ * The binding a Table request carries, when it carries a whole one.
53
+ *
54
+ * The history Table mounts with its labels and nothing to ask about; the Controller hands it the scope
55
+ * once the catalog stands for the address. Until then -- and while a kind chosen in the Table's own
56
+ * select still stands beside the scope of the kind before it, until the scope select answers -- there is
57
+ * no question, and a request that asked one anyway asked for the wrong history and was thrown away a
58
+ * moment later: the flicker of the Table on every open.
59
+ */
60
+ export function readPhiRevisionsTableBinding(params) {
61
+ if (!isPhiRecord(params) || !isPhiBuilderAreaKey(params.area))
62
+ return null;
63
+ const kind = normalizePhiBuilderRevisionsKindSearchParam(params.kind);
64
+ const scopeKey = typeof params.scopeKey === "string" ? params.scopeKey.trim() : "";
65
+ if (!kind || !scopeKey)
66
+ return null;
67
+ const fits = kind === "area"
68
+ ? isPhiBuilderAreaKey(scopeKey)
69
+ : kind === "page"
70
+ ? scopeKey.startsWith("/")
71
+ : kind === "navigation"
72
+ ? scopeKey.includes(":")
73
+ : !isPhiBuilderAreaKey(scopeKey);
74
+ return fits ? { area: params.area, kind, scopeKey } : null;
75
+ }
@@ -23,6 +23,11 @@ export declare const PHI_REVISIONS_RUNTIME_CONTROLLER_PLUGIN: {
23
23
  action: "change";
24
24
  valueType: "string";
25
25
  valueSchema?: undefined;
26
+ } | {
27
+ id: string;
28
+ action: "change";
29
+ valueType: "boolean";
30
+ valueSchema?: undefined;
26
31
  } | {
27
32
  id: string;
28
33
  action: "activate";