@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
@@ -113,6 +113,7 @@ async function projectInternalMarkdownNodes(tree, runtime) {
113
113
  const pageReferences = [];
114
114
  const assetIds = [];
115
115
  const figures = new Map();
116
+ const embeds = new Map();
116
117
  const collect = (nodes) => {
117
118
  for (const node of nodes ?? []) {
118
119
  if (node.type === "link" || node.type === "image") {
@@ -127,8 +128,8 @@ async function projectInternalMarkdownNodes(tree, runtime) {
127
128
  };
128
129
  collect(tree.children);
129
130
  const resolved = await resolvePhiWidgetInternalReferences({ runtime, pageReferences, assetIds });
130
- const project = (nodes) => (nodes ?? []).flatMap((node) => {
131
- const children = project(node.children);
131
+ const project = (nodes, lone = false) => (nodes ?? []).flatMap((node) => {
132
+ const children = project(node.children, node.type === "paragraph" && node.children?.filter((child) => child.value?.trim() !== "").length === 1);
132
133
  if (node.type === "link") {
133
134
  const reference = readPhiInternalReference(node.url);
134
135
  if (reference?.kind === "page") {
@@ -140,6 +141,15 @@ async function projectInternalMarkdownNodes(tree, runtime) {
140
141
  return [{ ...node, children }];
141
142
  }
142
143
  if (node.type === "image") {
144
+ // A Module's Table (TABLES.md): alone in a paragraph it keeps an address, as a figure does; else its caption.
145
+ const table = node.url?.trim().match(/^phis:table\/([^?]*)\??(.*)$/su);
146
+ if (table && !lone)
147
+ return [{ type: "text", value: node.alt ?? "" }];
148
+ if (table) {
149
+ const src = `phi-table-embed:${embeds.size}`;
150
+ embeds.set(src, { embedKey: table[1], params: [...new URLSearchParams(table[2])] });
151
+ return [{ ...node, url: src, children }];
152
+ }
143
153
  const address = readPhiMarkdownImageAddress(node.url ?? "");
144
154
  const reference = readPhiInternalReference(address.reference);
145
155
  if (reference?.kind === "asset") {
@@ -166,26 +176,32 @@ async function projectInternalMarkdownNodes(tree, runtime) {
166
176
  return [{ ...node, ...(node.children ? { children } : {}) }];
167
177
  });
168
178
  tree.children = project(tree.children);
169
- return figures;
179
+ return { figures, embeds };
170
180
  }
171
181
  /*
172
182
  * A paragraph that is one Media picture and nothing else is a figure: a block of its own, drawn by the
173
183
  * house's picture Control -- optimised, sized, its box reserved and its corners the Theme's. A picture in
174
- * the middle of a sentence, or one on somebody else's server, stays the plain picture it was.
184
+ * the middle of a sentence, or one on somebody else's server, stays the plain picture it was. A lone embed is a Table.
175
185
  */
176
- function promoteMarkdownFigures(blocks, figures, defaults) {
177
- if (figures.size === 0)
186
+ function promoteMarkdownFigures(blocks, figures, defaults, embeds, found) {
187
+ if (figures.size + embeds.size === 0)
178
188
  return blocks;
179
189
  return blocks.map((block) => {
180
190
  if (block.kind === "blockquote")
181
- return { ...block, children: promoteMarkdownFigures(block.children, figures, defaults) };
191
+ return { ...block, children: promoteMarkdownFigures(block.children, figures, defaults, embeds, found) };
182
192
  if (block.kind === "list")
183
- return { ...block, items: block.items.map((item) => promoteMarkdownFigures(item, figures, defaults)) };
193
+ return { ...block, items: block.items.map((item) => promoteMarkdownFigures(item, figures, defaults, embeds, found)) };
184
194
  if (block.kind !== "paragraph")
185
195
  return block;
186
196
  const content = block.inlines.filter((inline) => !(inline.kind === "text" && !inline.text.trim()));
187
197
  const only = content.length === 1 ? content[0] : null;
188
198
  const source = only?.kind === "image" ? figures.get(only.src) : undefined;
199
+ const reference = only?.kind === "image" ? embeds.get(only.src) : undefined;
200
+ if (only?.kind === "image" && reference) {
201
+ const embed = { kind: "table_embed", caption: only.alt.trim(), table: null, notice: null };
202
+ found.push([embed, reference]);
203
+ return embed;
204
+ }
189
205
  if (!only || only.kind !== "image" || !source)
190
206
  return block;
191
207
  return { kind: "image", image: buildMarkdownFigure(only, source, defaults) };
@@ -459,7 +475,7 @@ export async function resolveMarkdownSource(config, publicUrl) {
459
475
  const resolvedMarkdown = config.resolvedContent?.textFields.markdown?.source?.trim() ?? "";
460
476
  return { ok: true, markdown: resolvedMarkdown || inlineMarkdown };
461
477
  }
462
- export async function resolveMarkdownRenderData(config, runtime) {
478
+ export async function resolveMarkdownRenderData(config, runtime, options = {}) {
463
479
  const resolvedSource = await resolveMarkdownSource(config, runtime?.site.publicUrl);
464
480
  if (!resolvedSource.ok) {
465
481
  return { error: resolvedSource.message };
@@ -491,9 +507,9 @@ export async function resolveMarkdownRenderData(config, runtime) {
491
507
  ...(config?.imageAspectRatio ? { aspectRatio: config.imageAspectRatio } : {}),
492
508
  ...(config?.imageFloat ? { float: config.imageFloat } : {}),
493
509
  ...(config?.imageFloatWidth ? { floatWidth: config.imageFloatWidth } : {}),
494
- });
510
+ }, options.tableEmbeds);
495
511
  }
496
- async function resolveMarkdownRenderDataFromSource(markdown, translate, headingIdPrefix, sourceLocale, sourceMode = "inline", sourceUrl = null, runtime, extent = "document", headingOffset = 0, imageDefaults = {}) {
512
+ async function resolveMarkdownRenderDataFromSource(markdown, translate, headingIdPrefix, sourceLocale, sourceMode = "inline", sourceUrl = null, runtime, extent = "document", headingOffset = 0, imageDefaults = {}, tableEmbeds) {
497
513
  const tree = parseMarkdown(markdown);
498
514
  if (extent === "first-paragraph") {
499
515
  // Cut by the parser's own reading, never by blank lines: a fence or a list may hold those too.
@@ -501,11 +517,12 @@ async function resolveMarkdownRenderDataFromSource(markdown, translate, headingI
501
517
  tree.children = paragraph ? [paragraph] : [];
502
518
  }
503
519
  let figures = new Map();
520
+ let embeds = new Map();
504
521
  if (sourceMode === "url" && sourceUrl) {
505
522
  tree.children = projectExternalMarkdownNodes(tree.children, sourceUrl);
506
523
  }
507
524
  else if (runtime) {
508
- figures = await projectInternalMarkdownNodes(tree, runtime);
525
+ ({ figures, embeds } = await projectInternalMarkdownNodes(tree, runtime));
509
526
  }
510
527
  const context = {
511
528
  sourceLines: markdown.split(/\r?\n/),
@@ -515,7 +532,12 @@ async function resolveMarkdownRenderDataFromSource(markdown, translate, headingI
515
532
  headingOffset,
516
533
  };
517
534
  const inlineMap = await buildMarkdownInlineMap(tree, translate, sourceLocale, runtime?.locale.current, runtime);
518
- const blocks = promoteMarkdownFigures(protectMarkdownMail(mapBlockNodes(tree.children, context, inlineMap)), figures, imageDefaults);
535
+ const found = [];
536
+ const blocks = promoteMarkdownFigures(protectMarkdownMail(mapBlockNodes(tree.children, context, inlineMap)), figures, imageDefaults, embeds, found);
537
+ if (found.length > 0 && tableEmbeds) {
538
+ const answers = await tableEmbeds(found.map(([block, reference]) => ({ caption: block.caption, reference })));
539
+ found.forEach(([block], index) => Object.assign(block, answers[index]));
540
+ }
519
541
  return { blocks, headings: context.headings };
520
542
  }
521
543
  /*
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function PhiWidgetFailureAudienceProvider({ staff, children }: {
3
+ staff: boolean;
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ /** That the viewer is Staff, who read a Widget's failure on a live page too. */
7
+ export declare function usePhiWidgetFailureStaff(): boolean;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext } from "react";
4
+ /*
5
+ * Whether the person looking at a live page is Staff, for the one question a live page asks it: does a
6
+ * Widget that failed say so (`widget-failure.tsx`)?
7
+ *
8
+ * Decided once, on the server, by the Area's boundary from the viewer it already resolved
9
+ * (`canPhiViewerReadWidgetFailures`), and handed down here: no request asks for it, and a Widget does
10
+ * not have to carry the viewer to know. Absent -- a page outside an Area boundary, a test -- it is a
11
+ * visitor, who is shown nothing. A Public page rendered once for everybody is rendered for a visitor; a
12
+ * signed-in viewer is never served that render (STATIC_RENDERING.md), so Staff get theirs.
13
+ */
14
+ const PhiWidgetFailureStaffContext = createContext(false);
15
+ export function PhiWidgetFailureAudienceProvider({ staff, children }) {
16
+ return _jsx(PhiWidgetFailureStaffContext.Provider, { value: staff, children: children });
17
+ }
18
+ /** That the viewer is Staff, who read a Widget's failure on a live page too. */
19
+ export function usePhiWidgetFailureStaff() {
20
+ return useContext(PhiWidgetFailureStaffContext);
21
+ }
@@ -1,6 +1,8 @@
1
1
  "use client";
2
2
  import { useEffect, useEffectEvent } from "react";
3
- import { logPhiWidgetFailure, renderPhiWidgetFailureNotice } from "./widget-failure";
3
+ import { logPhiWidgetFailure } from "./widget-failure";
4
+ import { usePhiWidgetFailureStaff } from "./widget-failure-audience";
5
+ import { renderPhiWidgetFailureNotice } from "./widget-failure-notice";
4
6
  /**
5
7
  * A Widget's data or configuration failure, found in the browser -- a Provider the Area does not offer,
6
8
  * a read that failed after hydration.
@@ -11,10 +13,11 @@ import { logPhiWidgetFailure, renderPhiWidgetFailureNotice } from "./widget-fail
11
13
  */
12
14
  export function PhiWidgetFailure(props) {
13
15
  const { renderMode, widgetType, widgetId, title, description } = props;
16
+ const staff = usePhiWidgetFailureStaff();
14
17
  // `error` is read, not watched: it is a new object whenever the same failure is raised again.
15
18
  const log = useEffectEvent(() => logPhiWidgetFailure(props));
16
19
  useEffect(() => {
17
20
  log();
18
21
  }, [description, renderMode, title, widgetId, widgetType]);
19
- return renderPhiWidgetFailureNotice(props);
22
+ return renderPhiWidgetFailureNotice(props, staff);
20
23
  }
@@ -0,0 +1,6 @@
1
+ import type { PhiWidgetFailureProps } from "./widget-failure";
2
+ /**
3
+ * The card for a failure the server decided and has already written down (`PhiWidgetFailureServer`):
4
+ * drawn here because only the browser's side of the page knows whether the viewer is Staff.
5
+ */
6
+ export declare function PhiWidgetFailureNotice(props: Omit<PhiWidgetFailureProps, "error">): import("react").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { usePhiWidgetFailureStaff } from "./widget-failure-audience";
3
+ import { renderPhiWidgetFailureNotice } from "./widget-failure-notice";
4
+ /**
5
+ * The card for a failure the server decided and has already written down (`PhiWidgetFailureServer`):
6
+ * drawn here because only the browser's side of the page knows whether the viewer is Staff.
7
+ */
8
+ export function PhiWidgetFailureNotice(props) {
9
+ return renderPhiWidgetFailureNotice(props, usePhiWidgetFailureStaff());
10
+ }
@@ -0,0 +1,6 @@
1
+ import type { PhiWidgetFailureProps } from "./widget-failure";
2
+ /**
3
+ * The card itself, or nothing on a live page for anyone but Staff (`staff`, read from
4
+ * `usePhiWidgetFailureStaff`). Both variants draw through this, so they cannot drift.
5
+ */
6
+ export declare function renderPhiWidgetFailureNotice({ renderMode, widgetType, widgetId, title, description }: PhiWidgetFailureProps, staff: boolean): import("react").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { PhiAlertControl } from "../../controls/phi-alert-control";
3
+ /*
4
+ * Apart from `widget-failure.tsx`, which writes the warning: the card is drawn in the browser for a
5
+ * failure the server decided too (`PhiWidgetFailureNotice`), and that Client needs the card and not the
6
+ * log writer.
7
+ */
8
+ /**
9
+ * The card itself, or nothing on a live page for anyone but Staff (`staff`, read from
10
+ * `usePhiWidgetFailureStaff`). Both variants draw through this, so they cannot drift.
11
+ */
12
+ export function renderPhiWidgetFailureNotice({ renderMode, widgetType, widgetId, title, description }, staff) {
13
+ if (renderMode === "live" && !staff) {
14
+ return null;
15
+ }
16
+ return (_jsx("div", { "data-phi-widget-failure": widgetType, "data-phi-widget-failure-id": widgetId == null ? undefined : String(widgetId), children: _jsx(PhiAlertControl, { level: "error", showIcon: true, title: title, description: description ?? undefined }) }));
17
+ }
@@ -0,0 +1,3 @@
1
+ import { type PhiAccessViewer } from "../../../types/access";
2
+ /** That `viewer` is Staff and reads a failed Widget's card on a live page (`PhiWidgetFailureAudienceProvider`). */
3
+ export declare function canPhiViewerReadWidgetFailures(viewer: PhiAccessViewer): boolean;
@@ -0,0 +1,18 @@
1
+ import { PhiBaseRole } from "@phis/contracts/access";
2
+ import { canPhiViewerAccess, PHI_CORE_ROLE_PROVIDER_ID } from "../../../types/access";
3
+ /*
4
+ * Who reads a Widget's failure on a live page: Staff, who is whoever holds any Core role
5
+ * (`PhiBaseRole.Staff` in @phis/contracts/access). They can have it fixed -- an author, a maintainer,
6
+ * a colleague who tells one -- and a Widget that is simply absent for them was a failure nobody saw
7
+ * (@phis/support's Linked work Table until f5bbd545). A visitor is shown nothing, as before. Admin is
8
+ * Staff by the Site-superuser rule of `canPhiViewerAccess`.
9
+ */
10
+ const PHI_WIDGET_FAILURE_READERS = {
11
+ access: "roles",
12
+ providerId: PHI_CORE_ROLE_PROVIDER_ID,
13
+ allowedRoleFlags: Object.values(PhiBaseRole).reduce((mask, flag) => mask | flag, 0),
14
+ };
15
+ /** That `viewer` is Staff and reads a failed Widget's card on a live page (`PhiWidgetFailureAudienceProvider`). */
16
+ export function canPhiViewerReadWidgetFailures(viewer) {
17
+ return canPhiViewerAccess(viewer, PHI_WIDGET_FAILURE_READERS);
18
+ }
@@ -7,10 +7,15 @@ import type { PhiRenderableBlockRenderMode } from "../../../types/renderable-blo
7
7
  *
8
8
  * Said to the person who can do something about it, as the renderer says an unrenderable block
9
9
  * (`renderCmsDiagnostic`). In the Builder that is the author, and the card stands in the Widget's own
10
- * place with the cause. On a live page -- a revision preview is one -- it is nobody: a visitor cannot
11
- * rebind a Provider, and a heading over an error, or over an empty frame, reads as a broken Site or as
12
- * one that published nothing. So the Widget is absent and the rest of the page stands. The warning is
13
- * written either way, which is where an operator finds it.
10
+ * place with the cause. On a live page -- a revision preview is one -- it is Staff (whoever holds a
11
+ * Core role, `canPhiViewerReadWidgetFailures`), who see the same card in the same place: a config is
12
+ * checked where it is made and the browser trusts it (owner, 2026-11-24), so what still fails here is
13
+ * runtime state or a config stored before the checks, and a Widget that is simply absent for the people
14
+ * who could have it fixed is a failure nobody sees. A visitor sees nothing: they cannot rebind a
15
+ * Provider, and a heading over an error, or over an empty frame, reads as a broken Site or as one that
16
+ * published nothing. So for them the Widget is absent and the rest of the page stands. The warning is
17
+ * written either way, which is where an operator finds it -- on the server for a failure the server
18
+ * decided, in the browser console for one found in the browser, which has no way to the Site's log.
14
19
  *
15
20
  * What a visitor is meant to read -- a form's own answer, an empty state, a refusal addressed to them --
16
21
  * is content, not a failure, and does not come here.
@@ -27,5 +32,3 @@ export type PhiWidgetFailureProps = {
27
32
  };
28
33
  export declare const PHI_WIDGET_FAILURE_LOG_EVENT = "cms.widget.unavailable";
29
34
  export declare function logPhiWidgetFailure({ renderMode, widgetType, widgetId, title, description, error, }: PhiWidgetFailureProps): void;
30
- /** The card itself, or nothing on a live page. Both variants draw through this, so they cannot drift. */
31
- export declare function renderPhiWidgetFailureNotice({ renderMode, widgetType, widgetId, title, description, }: PhiWidgetFailureProps): import("react").JSX.Element | null;
@@ -1,6 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  import { logRuntimeEvent } from "../../../net/log";
3
- import { PhiAlertControl } from "../../controls/phi-alert-control";
4
2
  export const PHI_WIDGET_FAILURE_LOG_EVENT = "cms.widget.unavailable";
5
3
  export function logPhiWidgetFailure({ renderMode, widgetType, widgetId, title, description, error, }) {
6
4
  logRuntimeEvent("warn", PHI_WIDGET_FAILURE_LOG_EVENT, {
@@ -11,10 +9,3 @@ export function logPhiWidgetFailure({ renderMode, widgetType, widgetId, title, d
11
9
  meta: { widgetType, title, description: description ?? null, renderMode },
12
10
  });
13
11
  }
14
- /** The card itself, or nothing on a live page. Both variants draw through this, so they cannot drift. */
15
- export function renderPhiWidgetFailureNotice({ renderMode, widgetType, widgetId, title, description, }) {
16
- if (renderMode === "live") {
17
- return null;
18
- }
19
- return (_jsx("div", { "data-phi-widget-failure": widgetType, "data-phi-widget-failure-id": widgetId == null ? undefined : String(widgetId), children: _jsx(PhiAlertControl, { level: "error", showIcon: true, title: title, description: description ?? undefined }) }));
20
- }
@@ -4,6 +4,8 @@ import { type PhiWidgetFailureProps } from "./widget-failure";
4
4
  * A Widget's data or configuration failure, decided while the page is drawn on the server.
5
5
  *
6
6
  * The warning is written here, during the render, because this render happens once per request and on
7
- * the machine whose log an operator reads. See `PhiWidgetFailureProps` for what counts and who sees it.
7
+ * the machine whose log an operator reads. The card is the browser's to draw or leave out, which knows
8
+ * whether the viewer is Staff (`PhiWidgetFailureNotice`). See `PhiWidgetFailureProps` for what counts and
9
+ * who sees it.
8
10
  */
9
- export declare function PhiWidgetFailureServer(props: PhiWidgetFailureProps): import("react").JSX.Element | null;
11
+ export declare function PhiWidgetFailureServer(props: PhiWidgetFailureProps): import("react").JSX.Element;
@@ -1,12 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import "server-only";
2
- import { logPhiWidgetFailure, renderPhiWidgetFailureNotice } from "./widget-failure";
3
+ import { logPhiWidgetFailure } from "./widget-failure";
4
+ import { PhiWidgetFailureNotice } from "./widget-failure-notice-client";
3
5
  /**
4
6
  * A Widget's data or configuration failure, decided while the page is drawn on the server.
5
7
  *
6
8
  * The warning is written here, during the render, because this render happens once per request and on
7
- * the machine whose log an operator reads. See `PhiWidgetFailureProps` for what counts and who sees it.
9
+ * the machine whose log an operator reads. The card is the browser's to draw or leave out, which knows
10
+ * whether the viewer is Staff (`PhiWidgetFailureNotice`). See `PhiWidgetFailureProps` for what counts and
11
+ * who sees it.
8
12
  */
9
13
  export function PhiWidgetFailureServer(props) {
10
14
  logPhiWidgetFailure(props);
11
- return renderPhiWidgetFailureNotice(props);
15
+ const { error: _logged, ...notice } = props;
16
+ return _jsx(PhiWidgetFailureNotice, { ...notice });
12
17
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Every country and territory of ISO 3166-1 by its alpha-2 code (249, in code order), as the `country` and
3
+ * `address` Form fields offer them and as phis-server stores an address's country (`PhisSiteAddress.country`).
4
+ * Names are not kept here: a field shows each in the reader's language through `Intl.DisplayNames`.
5
+ */
6
+ export declare const PHI_ISO_3166_ALPHA2_CODES: readonly ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"];
7
+ export type PhiCountryCode = (typeof PHI_ISO_3166_ALPHA2_CODES)[number];
8
+ /** The code as stored -- two capital letters of ISO 3166-1 alpha-2 -- or null for anything else. */
9
+ export declare function readPhiCountryCode(value: unknown): PhiCountryCode | null;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Every country and territory of ISO 3166-1 by its alpha-2 code (249, in code order), as the `country` and
3
+ * `address` Form fields offer them and as phis-server stores an address's country (`PhisSiteAddress.country`).
4
+ * Names are not kept here: a field shows each in the reader's language through `Intl.DisplayNames`.
5
+ */
6
+ export const PHI_ISO_3166_ALPHA2_CODES = [
7
+ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ",
8
+ "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS",
9
+ "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN",
10
+ "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE",
11
+ "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF",
12
+ "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM",
13
+ "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM",
14
+ "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC",
15
+ "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK",
16
+ "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA",
17
+ "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG",
18
+ "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW",
19
+ "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS",
20
+ "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO",
21
+ "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI",
22
+ "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW",
23
+ ];
24
+ const PHI_COUNTRY_CODE_SET = new Set(PHI_ISO_3166_ALPHA2_CODES);
25
+ /** The code as stored -- two capital letters of ISO 3166-1 alpha-2 -- or null for anything else. */
26
+ export function readPhiCountryCode(value) {
27
+ return typeof value === "string" && PHI_COUNTRY_CODE_SET.has(value) ? value : null;
28
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Staff's customer file on one member (phis-server `GET /api/site/members/{userId}/file`) as a Foundation
3
+ * contract, on the terms of `thread-library-provider-keys.ts`: the conversations Module answers the Table
4
+ * Provider (`constants/runtime-module-ownership.ts`), and a Page of another Module binds it by these names
5
+ * without importing the conversations Module -- the Accounting Module's customer file does, and a Module
6
+ * offering its own file over the same Core route (Support's, for a Supporter) does the same. Whether
7
+ * anything answers the key is decided by the installation: the conversations Module must be active in the
8
+ * Area the Page stands in.
9
+ */
10
+ export declare const PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS: {
11
+ readonly table: `${string}/${string}`;
12
+ /**
13
+ * The member's addresses as tiles (a Collection drawn by `PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`), read-only,
14
+ * from the same read: the member arrives as the binding param `userId` (`PHI_CUSTOMER_FILE_MEMBER_PARAM`),
15
+ * which the Conversations Controller forwards from the person Table's choice.
16
+ */
17
+ readonly addresses: `${string}/${string}`;
18
+ };
19
+ /**
20
+ * The resources, each one answer of the same route read for one member: the Table Provider's person and
21
+ * threads, and the addresses Collection's addresses.
22
+ */
23
+ export declare const PHI_CUSTOMER_FILE_RESOURCE_KEYS: {
24
+ readonly person: "person";
25
+ readonly addresses: "addresses";
26
+ readonly threads: "threads";
27
+ };
28
+ /** The binding param the addresses Collection reads its member from: `{ params: { userId } }`. */
29
+ export declare const PHI_CUSTOMER_FILE_MEMBER_PARAM = "userId";
30
+ /**
31
+ * The binding param a customer file Page writes its sentence for the reader's own file into, already in the
32
+ * reader's language: Core refuses that file (`403`), and each Table says this where its rows would be.
33
+ */
34
+ export declare const PHI_CUSTOMER_FILE_OWN_FILE_PARAM = "ownFileNotice";
@@ -0,0 +1,35 @@
1
+ import { createPhiSharedRuntimeDataProviderKey } from "./runtime-data-provider-key";
2
+ /**
3
+ * Staff's customer file on one member (phis-server `GET /api/site/members/{userId}/file`) as a Foundation
4
+ * contract, on the terms of `thread-library-provider-keys.ts`: the conversations Module answers the Table
5
+ * Provider (`constants/runtime-module-ownership.ts`), and a Page of another Module binds it by these names
6
+ * without importing the conversations Module -- the Accounting Module's customer file does, and a Module
7
+ * offering its own file over the same Core route (Support's, for a Supporter) does the same. Whether
8
+ * anything answers the key is decided by the installation: the conversations Module must be active in the
9
+ * Area the Page stands in.
10
+ */
11
+ export const PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS = {
12
+ table: createPhiSharedRuntimeDataProviderKey("tables", "threads-customer-file"),
13
+ /**
14
+ * The member's addresses as tiles (a Collection drawn by `PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`), read-only,
15
+ * from the same read: the member arrives as the binding param `userId` (`PHI_CUSTOMER_FILE_MEMBER_PARAM`),
16
+ * which the Conversations Controller forwards from the person Table's choice.
17
+ */
18
+ addresses: createPhiSharedRuntimeDataProviderKey("collections", "threads-customer-file-addresses"),
19
+ };
20
+ /**
21
+ * The resources, each one answer of the same route read for one member: the Table Provider's person and
22
+ * threads, and the addresses Collection's addresses.
23
+ */
24
+ export const PHI_CUSTOMER_FILE_RESOURCE_KEYS = {
25
+ person: "person",
26
+ addresses: "addresses",
27
+ threads: "threads",
28
+ };
29
+ /** The binding param the addresses Collection reads its member from: `{ params: { userId } }`. */
30
+ export const PHI_CUSTOMER_FILE_MEMBER_PARAM = "userId";
31
+ /**
32
+ * The binding param a customer file Page writes its sentence for the reader's own file into, already in the
33
+ * reader's language: Core refuses that file (`403`), and each Table says this where its rows would be.
34
+ */
35
+ export const PHI_CUSTOMER_FILE_OWN_FILE_PARAM = "ownFileNotice";
@@ -4,3 +4,18 @@
4
4
  */
5
5
  export declare const PHI_RECORD_FIELD_KINDS: readonly ["text", "markdown", "picture", "pictures", "list", "tag", "date", "number", "money", "link"];
6
6
  export type PhiRecordFieldKind = (typeof PHI_RECORD_FIELD_KINDS)[number];
7
+ /**
8
+ * The kinds a line of text can show: a text as it is, a number, a date and an amount of money in the
9
+ * page's language (`formatPhiRecordFieldText`, `helpers/record-fields.ts`).
10
+ */
11
+ export declare const PHI_RECORD_TEXT_FIELD_KINDS: readonly ["text", "number", "date", "money"];
12
+ /**
13
+ * Bits of a `markdown` field's `flags` (`PhiRecordMarkdown`). `Translated`: the text already is in the
14
+ * page's language, a person's translation, and is drawn as written; without it the text is source text in
15
+ * its `sourceLocale`, and the Markdown Widget translates it (TRANSLATIONS.md, "The Markdown unit format").
16
+ */
17
+ export declare const PhiRecordMarkdownFlag: {
18
+ readonly Translated: number;
19
+ };
20
+ /** Every bit `PhiRecordMarkdownFlag` names; `flags` with any other bit make no markdown field. */
21
+ export declare const PHI_RECORD_MARKDOWN_KNOWN_FLAGS: number;
@@ -5,3 +5,16 @@
5
5
  export const PHI_RECORD_FIELD_KINDS = [
6
6
  "text", "markdown", "picture", "pictures", "list", "tag", "date", "number", "money", "link",
7
7
  ];
8
+ /**
9
+ * The kinds a line of text can show: a text as it is, a number, a date and an amount of money in the
10
+ * page's language (`formatPhiRecordFieldText`, `helpers/record-fields.ts`).
11
+ */
12
+ export const PHI_RECORD_TEXT_FIELD_KINDS = ["text", "number", "date", "money"];
13
+ /**
14
+ * Bits of a `markdown` field's `flags` (`PhiRecordMarkdown`). `Translated`: the text already is in the
15
+ * page's language, a person's translation, and is drawn as written; without it the text is source text in
16
+ * its `sourceLocale`, and the Markdown Widget translates it (TRANSLATIONS.md, "The Markdown unit format").
17
+ */
18
+ export const PhiRecordMarkdownFlag = { Translated: 1 << 0 };
19
+ /** Every bit `PhiRecordMarkdownFlag` names; `flags` with any other bit make no markdown field. */
20
+ export const PHI_RECORD_MARKDOWN_KNOWN_FLAGS = PhiRecordMarkdownFlag.Translated;
@@ -14,10 +14,13 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
14
14
  "background-patterns/grid": ["core", "grid"],
15
15
  "background-patterns/stripes": ["core", "stripes"],
16
16
  "calendars/gregory": ["core", "gregory"],
17
+ "collections/app-addresses": ["app", "addresses"],
17
18
  "collections/dashboard-cards": ["dashboard", "cards"],
18
19
  "collections/media": ["asset", "media"],
20
+ "collections/threads-customer-file-addresses": ["threads", "customer-file-addresses"],
19
21
  "renderers/dashboard-card": ["dashboard", "card"],
20
22
  "renderers/media-asset": ["asset", "media-asset"],
23
+ "renderers/site-address": ["core", "site-address"],
21
24
  "controller/accounting-base": ["accounting", "base"],
22
25
  "controller/admin": ["admin", "default"],
23
26
  "controller/app-base": ["app", "base"],
@@ -50,6 +53,9 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
50
53
  "form-field/media-asset": ["asset", "media-asset"],
51
54
  "form-field/media-assets": ["asset", "media-assets"],
52
55
  "form-field/money": ["core", "money"],
56
+ "form-field/country": ["core", "country"],
57
+ "form-field/address": ["core", "address"],
58
+ "form-field/flags": ["core", "flags"],
53
59
  "form-field/multi-select": ["core", "multi-select"],
54
60
  "form-field/number": ["core", "number"],
55
61
  "form-field/password": ["core", "password"],
@@ -68,8 +74,10 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
68
74
  "form-field/url": ["core", "url"],
69
75
  "form-handler/admin-settings-general": ["admin", "settings-general"],
70
76
  "form-handler/app-profile-name": ["app", "profile-name"],
77
+ "form-handler/app-profile-phone": ["app", "profile-phone"],
78
+ "form-handler/app-address-create": ["app", "address-create"],
79
+ "form-handler/app-address-edit": ["app", "address-edit"],
71
80
  "form-handler/app-profile-locale": ["app", "profile-locale"],
72
- "form-handler/app-profile-newsletter": ["app", "profile-newsletter"],
73
81
  "form-handler/app-profile-theme": ["app", "profile-theme"],
74
82
  "form-handler/asset-folder-create": ["asset", "folder-create"],
75
83
  "form-handler/asset-media-settings": ["asset", "media-settings"],
@@ -122,8 +130,10 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
122
130
  "form-validation/url": ["core", "url"],
123
131
  "forms/admin/settings-general": ["admin", "settings-general"],
124
132
  "forms/app/profile-name": ["app", "profile-name"],
133
+ "forms/app/profile-phone": ["app", "profile-phone"],
134
+ "forms/app/address-create": ["app", "address-create"],
135
+ "forms/app/address-edit": ["app", "address-edit"],
125
136
  "forms/app/profile-locale": ["app", "profile-locale"],
126
- "forms/app/profile-newsletter": ["app", "profile-newsletter"],
127
137
  "forms/app/profile-theme": ["app", "profile-theme"],
128
138
  "forms/asset/folder-create": ["asset", "folder-create"],
129
139
  "forms/asset/media-settings": ["asset", "media-settings"],
@@ -203,6 +213,7 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
203
213
  "options/theme-presets": ["theme", "presets"],
204
214
  "options/translation-contexts": ["localization", "translation-contexts"],
205
215
  "tables/auth-installations": ["auth", "installations"],
216
+ "tables/threads-customer-file": ["threads", "customer-file"],
206
217
  "signals/auth-workflow-state": ["auth", "workflow-state"],
207
218
  "signals/background-config": ["core", "background-config"],
208
219
  "signals/border-config": ["core", "border-config"],
@@ -213,6 +224,7 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
213
224
  "signals/builder-navigation": ["builder", "navigation"],
214
225
  "signals/builder-node-selection": ["builder", "node-selection"],
215
226
  "signals/collection-action": ["core", "collection-action"],
227
+ "signals/site-address-selection": ["core", "site-address-selection"],
216
228
  "signals/control-options": ["core", "control-options"],
217
229
  "signals/drag-drop": ["core", "drag-drop"],
218
230
  "signals/form-error": ["core", "form-error"],
@@ -276,6 +288,7 @@ const PHI_RUNTIME_MODULE_OWNERSHIP = {
276
288
  "tables/revisions": ["revisions", "revisions"],
277
289
  "tables/thread-inbox": ["core", "thread-inbox"],
278
290
  "tables/user-management": ["user-management", "user-management"],
291
+ "tables/user-management-users-access": ["user-management", "users-access"],
279
292
  "trees/builder-page-source": ["builder", "page-source"],
280
293
  // Video providers the Video Module ships. An add-on contributes its own under its own package.
281
294
  "video-providers/vimeo": ["video", "vimeo"],
@@ -5,6 +5,11 @@ export declare const PhiRuntimeRenderClientType: {
5
5
  readonly AuthWorkflow: "@phis/ui/modules/auth/controller/default#workflow";
6
6
  readonly AccountPreview: `${string}#preview`;
7
7
  readonly BuilderModeSwitch: `${string}#builder-mode`;
8
+ readonly BuilderBrandThemeControls: "@phis/ui/modules/theme/widgets/brand-controls#theme";
9
+ readonly BuilderBrandThemePreview: "@phis/ui/modules/theme/widgets/brand-controls#preview";
10
+ readonly BuilderBrandStyleControls: "@phis/ui/modules/theme/widgets/brand-controls#style";
11
+ readonly BuilderBrandBackgroundControls: "@phis/ui/modules/theme/widgets/brand-controls#background";
12
+ readonly BuilderBrandIdentityControls: "@phis/ui/modules/theme/widgets/brand-controls#identity";
8
13
  readonly SearchStandalone: "@phis/ui/controls/search";
9
14
  readonly SidebarNavigationPreview: `${string}#preview`;
10
15
  readonly BaseLayout: "@phis/ui/modules/core/layouts/base#client";
@@ -7,6 +7,11 @@ export const PhiRuntimeRenderClientType = {
7
7
  AuthWorkflow: "@phis/ui/modules/auth/controller/default#workflow",
8
8
  AccountPreview: `${PhiCmsWidgetType.Account}#preview`,
9
9
  BuilderModeSwitch: `${PhiCmsWidgetType.Switch}#builder-mode`,
10
+ BuilderBrandThemeControls: "@phis/ui/modules/theme/widgets/brand-controls#theme",
11
+ BuilderBrandThemePreview: "@phis/ui/modules/theme/widgets/brand-controls#preview",
12
+ BuilderBrandStyleControls: "@phis/ui/modules/theme/widgets/brand-controls#style",
13
+ BuilderBrandBackgroundControls: "@phis/ui/modules/theme/widgets/brand-controls#background",
14
+ BuilderBrandIdentityControls: "@phis/ui/modules/theme/widgets/brand-controls#identity",
10
15
  SearchStandalone: "@phis/ui/controls/search",
11
16
  SidebarNavigationPreview: `${PhiCmsWidgetType.SidebarNavigation}#preview`,
12
17
  BaseLayout: `${PHI_CMS_LAYOUT_PLUGIN_KEYS.core}/base#client`,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The address tiles: a Collection's items as the addresses of a Site's book (`PhisSiteAddress`), drawn by
3
+ * Core's renderer (COLLECTIONS.md, "The address renderer"). A resource whose items are addresses in the
4
+ * shape `toPhiSiteAddressRow` gives them (`helpers/site-address-row.ts`) names this key as its
5
+ * `itemRendererKey`, and draws no tiles of its own: the account's own addresses on the App profile and
6
+ * staff's customer file both do. The Foundation names it, so a Module cites it without importing Core's
7
+ * Widget.
8
+ */
9
+ export declare const PHI_SITE_ADDRESS_ITEM_RENDERER_KEY: `${string}/${string}`;
@@ -0,0 +1,10 @@
1
+ import { createPhiSharedRuntimeItemRendererKey } from "./runtime-data-provider-key";
2
+ /**
3
+ * The address tiles: a Collection's items as the addresses of a Site's book (`PhisSiteAddress`), drawn by
4
+ * Core's renderer (COLLECTIONS.md, "The address renderer"). A resource whose items are addresses in the
5
+ * shape `toPhiSiteAddressRow` gives them (`helpers/site-address-row.ts`) names this key as its
6
+ * `itemRendererKey`, and draws no tiles of its own: the account's own addresses on the App profile and
7
+ * staff's customer file both do. The Foundation names it, so a Module cites it without importing Core's
8
+ * Widget.
9
+ */
10
+ export const PHI_SITE_ADDRESS_ITEM_RENDERER_KEY = createPhiSharedRuntimeItemRendererKey("site-address");