@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
@@ -55,6 +55,7 @@ const PHI_BUILDER_MODULES_PAGE_LABEL_SET = definePhiLabelSet({
55
55
  usage_sign_in: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.signIn,
56
56
  usage_confirm: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.confirm,
57
57
  usage_cancel: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.cancel,
58
+ usage_footer: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.footer,
58
59
  public_routes_title: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.title,
59
60
  public_routes_intro: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.intro,
60
61
  public_routes_page: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.page,
@@ -66,6 +67,7 @@ const PHI_BUILDER_MODULES_PAGE_LABEL_SET = definePhiLabelSet({
66
67
  public_routes_address: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.address,
67
68
  public_routes_assign: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.assign,
68
69
  public_routes_cancel: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.cancel,
70
+ public_routes_footer: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.footer,
69
71
  },
70
72
  });
71
73
  export async function getPhiBuilderModulesPageLabels(options) {
@@ -139,6 +141,7 @@ export async function getPhiBuilderModulesPageLabels(options) {
139
141
  signIn: labels.usage_sign_in,
140
142
  confirm: labels.usage_confirm,
141
143
  cancel: labels.usage_cancel,
144
+ footer: labels.usage_footer,
142
145
  },
143
146
  publicRoutes: {
144
147
  title: labels.public_routes_title,
@@ -152,6 +155,7 @@ export async function getPhiBuilderModulesPageLabels(options) {
152
155
  address: labels.public_routes_address,
153
156
  assign: labels.public_routes_assign,
154
157
  cancel: labels.public_routes_cancel,
158
+ footer: labels.public_routes_footer,
155
159
  },
156
160
  };
157
161
  }
@@ -1,6 +1,6 @@
1
1
  import "server-only";
2
2
  import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../gateway/tr";
3
- import { definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
3
+ import { definePhiCountLabel, definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
4
4
  import { PHI_EFFECTS_WIDGET_DEFAULT_LABELS, } from "../label-types/effects";
5
5
  const PHI_EFFECTS_WIDGET_LABEL_SET = definePhiLabelSet({
6
6
  key: "widget:effects",
@@ -19,8 +19,7 @@ const PHI_EFFECTS_WIDGET_LABEL_SET = definePhiLabelSet({
19
19
  description_transitions: definePhiMessageLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.descriptions.transitions),
20
20
  description_viewport_effects: definePhiMessageLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.descriptions.viewportEffects),
21
21
  status_off: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.off,
22
- status_configured: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configured,
23
- status_configured_plural: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configuredPlural,
22
+ status_configured: definePhiCountLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configured),
24
23
  field_amount: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.amount,
25
24
  field_trigger: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.trigger,
26
25
  field_once: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.once,
@@ -123,7 +122,6 @@ export async function getPhiEffectsWidgetLabels(options) {
123
122
  status: {
124
123
  off: labels.status_off,
125
124
  configured: labels.status_configured,
126
- configuredPlural: labels.status_configured_plural,
127
125
  },
128
126
  fields: {
129
127
  amount: labels.field_amount,
@@ -32,22 +32,6 @@ export declare function getPhiProfileNameWidgetLabels(options: PhiGlobalTranslat
32
32
  successText: string;
33
33
  };
34
34
  }>;
35
- export declare function getPhiProfileOverviewWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
36
- title: string;
37
- description: string;
38
- accountLabel: string;
39
- newsletterLabel: string;
40
- newsletterDescription: string;
41
- newsletterOn: string;
42
- newsletterOff: string;
43
- feedback: {
44
- errorTitle: string;
45
- errorNetwork: string;
46
- errorGeneric: string;
47
- successTitle: string;
48
- successText: string;
49
- };
50
- }>;
51
35
  export declare function getPhiProfileEmailWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
52
36
  description: string;
53
37
  currentLabel: string;
@@ -127,3 +111,16 @@ export declare function getPhiProfilePasswordFormLabels(options: PhiGlobalTransl
127
111
  successText: string;
128
112
  };
129
113
  }>;
114
+ export declare function getPhiProfilePhoneWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
115
+ fields: {
116
+ phone: string;
117
+ mobile: string;
118
+ };
119
+ phoneInvalid: string;
120
+ tooLong: string;
121
+ submitLabel: string;
122
+ feedback: {
123
+ successTitle: string;
124
+ successText: string;
125
+ };
126
+ }>;
@@ -44,22 +44,22 @@ const PHI_PROFILE_NAME_WIDGET_LABEL_SET = definePhiLabelSet({
44
44
  success_text: definePhiMessageLabel("Your profile details have been saved."),
45
45
  },
46
46
  });
47
- const PHI_PROFILE_OVERVIEW_WIDGET_LABEL_SET = definePhiLabelSet({
48
- key: "widget:profile-overview",
47
+ /*
48
+ * The two numbers beside the name: a business telephone and a mobile, each as the person writes it. Core
49
+ * keeps them on the profile, so they are the same on every Site, and a person without a name yet is
50
+ * asked for one first (409), which is why they stand in the name's panel.
51
+ */
52
+ const PHI_PROFILE_PHONE_WIDGET_LABEL_SET = definePhiLabelSet({
53
+ key: "widget:profile-phone",
49
54
  ctx: PHI_TR_CTX_WEB_UI_LABEL,
50
55
  labels: {
51
- title: "Overview",
52
- description: definePhiMessageLabel("Manage your account details and site preferences from one place."),
53
- account_label: "Account",
54
- newsletter_label: "Newsletter",
55
- newsletter_description: definePhiMessageLabel("Receive product and platform updates for this site."),
56
- newsletter_on: "Enabled",
57
- newsletter_off: "Disabled",
58
- error_title: "Newsletter update failed",
59
- error_network: definePhiMessageLabel("Network error while updating your newsletter preference."),
60
- error_generic: definePhiMessageLabel("The newsletter preference could not be updated."),
61
- success_title: "Newsletter updated",
62
- success_text: definePhiMessageLabel("Your newsletter preference has been saved."),
56
+ phone_label: "Business phone",
57
+ mobile_label: "Mobile",
58
+ phone_invalid: "Enter a telephone number.",
59
+ too_long: "At most 64 characters.",
60
+ submit_label: "Save",
61
+ success_title: "Numbers updated",
62
+ success_text: definePhiMessageLabel("Your telephone numbers have been saved."),
63
63
  },
64
64
  });
65
65
  export async function getPhiProfileLocaleWidgetLabels(options) {
@@ -103,25 +103,6 @@ export async function getPhiProfileNameWidgetLabels(options) {
103
103
  },
104
104
  };
105
105
  }
106
- export async function getPhiProfileOverviewWidgetLabels(options) {
107
- const labels = await getPhiLabelSet(options, PHI_PROFILE_OVERVIEW_WIDGET_LABEL_SET);
108
- return {
109
- title: labels.title,
110
- description: labels.description,
111
- accountLabel: labels.account_label,
112
- newsletterLabel: labels.newsletter_label,
113
- newsletterDescription: labels.newsletter_description,
114
- newsletterOn: labels.newsletter_on,
115
- newsletterOff: labels.newsletter_off,
116
- feedback: {
117
- errorTitle: labels.error_title,
118
- errorNetwork: labels.error_network,
119
- errorGeneric: labels.error_generic,
120
- successTitle: labels.success_title,
121
- successText: labels.success_text,
122
- },
123
- };
124
- }
125
106
  const PHI_PROFILE_EMAIL_WIDGET_LABEL_SET = definePhiLabelSet({
126
107
  key: "widget:profile-email",
127
108
  ctx: PHI_TR_CTX_WEB_UI_LABEL,
@@ -244,3 +225,13 @@ export async function getPhiProfilePasswordFormLabels(options) {
244
225
  feedback: labels.feedback,
245
226
  };
246
227
  }
228
+ export async function getPhiProfilePhoneWidgetLabels(options) {
229
+ const labels = await getPhiLabelSet(options, PHI_PROFILE_PHONE_WIDGET_LABEL_SET);
230
+ return {
231
+ fields: { phone: labels.phone_label, mobile: labels.mobile_label },
232
+ phoneInvalid: labels.phone_invalid,
233
+ tooLong: labels.too_long,
234
+ submitLabel: labels.submit_label,
235
+ feedback: { successTitle: labels.success_title, successText: labels.success_text },
236
+ };
237
+ }
@@ -42,7 +42,6 @@ export declare function getPhiRegistrationFormLabels(options: PhiGlobalTranslato
42
42
  termsLinkLabel: string;
43
43
  terms: string;
44
44
  termsRequired: string;
45
- newsletter: string;
46
45
  };
47
46
  actions: {
48
47
  submitLabel: string;
@@ -30,7 +30,6 @@ const PHI_REGISTRATION_FORM_LABEL_SET = definePhiLabelSet({
30
30
  terms_text: "I agree to the %1",
31
31
  terms_link_label: "Terms & Conditions",
32
32
  terms_required: definePhiMessageLabel("You must accept the terms to continue."),
33
- newsletter: definePhiMessageLabel("Send me product and platform updates."),
34
33
  notice: definePhiMessageLabel("This form sends a verification email first. The live customer account is created only after confirmation."),
35
34
  generic_error: definePhiMessageLabel("The registration request could not be completed."),
36
35
  account_exists_error: definePhiMessageLabel("Account already exists."),
@@ -86,7 +85,6 @@ export async function getPhiRegistrationFormLabels(options) {
86
85
  termsLinkLabel: labels.terms_link_label,
87
86
  terms: labels.terms_text,
88
87
  termsRequired: labels.terms_required,
89
- newsletter: labels.newsletter,
90
88
  },
91
89
  actions: {
92
90
  submitLabel: labels.submit_label,
@@ -58,6 +58,7 @@ const PHI_BUILDER_REVISIONS_WIDGET_LABEL_SET = definePhiLabelSet({
58
58
  delete_area_title: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.title,
59
59
  delete_area_warning: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.warning),
60
60
  delete_area_survives: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.survives),
61
+ delete_area_type_to_confirm: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.typeToConfirm,
61
62
  delete_area_field: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.field,
62
63
  delete_area_field_required: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.fieldRequired),
63
64
  delete_area_confirm: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.confirm,
@@ -136,6 +137,7 @@ export async function getPhiBuilderRevisionsWidgetLabels(options) {
136
137
  title: labels.delete_area_title,
137
138
  warning: labels.delete_area_warning,
138
139
  survives: labels.delete_area_survives,
140
+ typeToConfirm: labels.delete_area_type_to_confirm,
139
141
  field: labels.delete_area_field,
140
142
  fieldRequired: labels.delete_area_field_required,
141
143
  confirm: labels.delete_area_confirm,
@@ -1,5 +1,5 @@
1
1
  import "server-only";
2
- import { definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
2
+ import { definePhiCountLabel, definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
3
3
  import { PHI_TR_CTX_WEB_UI_LABEL, } from "../../../gateway/tr";
4
4
  import { PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS, } from "../label-types/search-results";
5
5
  /**
@@ -11,8 +11,7 @@ const PHI_SEARCH_RESULTS_WIDGET_LABEL_SET = definePhiLabelSet({
11
11
  ctx: PHI_TR_CTX_WEB_UI_LABEL,
12
12
  labels: {
13
13
  heading: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.heading,
14
- count: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.count,
15
- count_one: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.countOne,
14
+ count: definePhiCountLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.count),
16
15
  empty: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.empty),
17
16
  short: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.short),
18
17
  idle: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.idle),
@@ -25,7 +24,6 @@ export async function getPhiSearchResultsWidgetLabels(options) {
25
24
  return {
26
25
  heading: labels.heading,
27
26
  count: labels.count,
28
- countOne: labels.count_one,
29
27
  empty: labels.empty,
30
28
  short: labels.short,
31
29
  idle: labels.idle,
@@ -41,6 +41,7 @@ const PHI_SIGNALS_WIDGET_LABEL_SET = definePhiLabelSet({
41
41
  routes_update: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.update,
42
42
  routes_edit: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.edit,
43
43
  routes_delete: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.delete,
44
+ routes_footer: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.footer,
44
45
  },
45
46
  });
46
47
  export async function getPhiSignalsWidgetLabels(options) {
@@ -84,6 +85,7 @@ export async function getPhiSignalsWidgetLabels(options) {
84
85
  update: labels.routes_update,
85
86
  edit: labels.routes_edit,
86
87
  delete: labels.routes_delete,
88
+ footer: labels.routes_footer,
87
89
  },
88
90
  };
89
91
  }
@@ -26,6 +26,10 @@ const PHI_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
26
26
  drag_row: "Drag row",
27
27
  move_row_up: "Move row up",
28
28
  move_row_down: "Move row down",
29
+ // The Dialog that shows an action's value once.
30
+ reveal_copy_and_close: "Copy and close",
31
+ reveal_close: "Close",
32
+ reveal_copy_failed: definePhiMessageLabel("The value could not be copied. Select it and copy it by hand before closing."),
29
33
  // The Core `table` form field's words where its config names none (`table-field-labels.ts`).
30
34
  form_add: PHI_FORM_TABLE_DEFAULT_LABELS.add,
31
35
  form_remove: PHI_FORM_TABLE_DEFAULT_LABELS.remove,
@@ -57,6 +61,11 @@ export async function getPhiTableWidgetLabels(options) {
57
61
  moveRowUp: labels.move_row_up,
58
62
  moveRowDown: labels.move_row_down,
59
63
  interval,
64
+ reveal: {
65
+ copyAndClose: labels.reveal_copy_and_close,
66
+ close: labels.reveal_close,
67
+ copyFailed: labels.reveal_copy_failed,
68
+ },
60
69
  };
61
70
  }
62
71
  /** The Core `table` form field's add, remove and empty words, which the Form Widget hands to the field. */
@@ -59,6 +59,8 @@ export type PhiBuilderModulesPageLabels = {
59
59
  signIn: string;
60
60
  confirm: string;
61
61
  cancel: string;
62
+ /** The Table's footer; %1 the places listed. */
63
+ footer: string;
62
64
  };
63
65
  /** The one question enabling a Module can ask: a Public address it wants is taken. */
64
66
  publicRoutes: {
@@ -74,6 +76,8 @@ export type PhiBuilderModulesPageLabels = {
74
76
  address: string;
75
77
  assign: string;
76
78
  cancel: string;
79
+ /** The Table's footer; %1 the addresses listed. */
80
+ footer: string;
77
81
  };
78
82
  };
79
83
  export declare const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS: PhiBuilderModulesPageLabels;
@@ -68,6 +68,7 @@ export const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS = {
68
68
  "Run phis auth restore-preset --site <site key> on the server to bring it back.",
69
69
  confirm: "Switch off anyway",
70
70
  cancel: "Keep it on",
71
+ footer: "%1 places draw it",
71
72
  },
72
73
  publicRoutes: {
73
74
  title: "Public addresses are taken",
@@ -81,5 +82,6 @@ export const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS = {
81
82
  address: "Address",
82
83
  assign: "Enable with these addresses",
83
84
  cancel: "Cancel",
85
+ footer: "%1 addresses taken",
84
86
  },
85
87
  };
@@ -1,3 +1,4 @@
1
+ import type { PhiCountLabel } from "../../../helpers/translation-format";
1
2
  export type PhiEffectsWidgetLabels = {
2
3
  modalTitle: string;
3
4
  openEditor: string;
@@ -18,8 +19,8 @@ export type PhiEffectsWidgetLabels = {
18
19
  };
19
20
  status: {
20
21
  off: string;
21
- configured: string;
22
- configuredPlural: string;
22
+ /** `%1` is how many are configured. */
23
+ configured: PhiCountLabel;
23
24
  };
24
25
  fields: {
25
26
  amount: string;
@@ -17,8 +17,7 @@ export const PHI_EFFECTS_WIDGET_DEFAULT_LABELS = {
17
17
  },
18
18
  status: {
19
19
  off: "Off",
20
- configured: "1 configured",
21
- configuredPlural: "{count} configured",
20
+ configured: { one: "%1 configured", other: "%1 configured" },
22
21
  },
23
22
  fields: {
24
23
  amount: "Amount",
@@ -68,6 +68,8 @@ export type PhiBuilderRevisionsWidgetLabels = {
68
68
  /** What is lost, until the Controller names the Area in it when the dialog opens. */
69
69
  warning: string;
70
70
  survives: string;
71
+ /** Above the Area key the dialog shows to be typed, which the Controller writes in as it opens. */
72
+ typeToConfirm: string;
71
73
  field: string;
72
74
  fieldRequired: string;
73
75
  confirm: string;
@@ -60,7 +60,8 @@ export const PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS = {
60
60
  title: "Clear this Area back to its preset?",
61
61
  warning: "The structure this Site stored for the Area is cleared -- its Shell, drafts and published alike. What is live changes at once, the shell's preset takes the Area back, and no revision is left to restore it from. It cannot be undone. The Module selection is kept.",
62
62
  survives: "The Area keeps its Module selection, its Pages, its Navigation and its Theme. Only its Shell goes back to the preset.",
63
- field: "Type the Area key to confirm",
63
+ typeToConfirm: "Type this Area key to confirm:",
64
+ field: "Area key",
64
65
  fieldRequired: "Write the Area key out to confirm.",
65
66
  confirm: "Clear Area",
66
67
  cancel: "Cancel",
@@ -1,9 +1,9 @@
1
+ import type { PhiCountLabel } from "../../../helpers/translation-format";
1
2
  export type PhiSearchResultsWidgetLabels = {
2
3
  /** `%1` is the query. */
3
4
  heading: string;
4
5
  /** `%1` is how many Pages matched in all. */
5
- count: string;
6
- countOne: string;
6
+ count: PhiCountLabel;
7
7
  /** `%1` is the query. */
8
8
  empty: string;
9
9
  /** `%1` is how many characters a query needs. */
@@ -1,7 +1,6 @@
1
1
  export const PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS = {
2
2
  heading: "Results for “%1”",
3
- count: "%1 pages",
4
- countOne: "1 page",
3
+ count: { one: "%1 page", other: "%1 pages" },
5
4
  empty: "Nothing found for “%1”.",
6
5
  short: "Type at least %1 characters.",
7
6
  idle: "Enter what you are looking for.",
@@ -37,6 +37,8 @@ export type PhiSignalsWidgetLabels = {
37
37
  update: string;
38
38
  edit: string;
39
39
  delete: string;
40
+ /** The routes Table's footer; %1 the routes listed. */
41
+ footer: string;
40
42
  };
41
43
  };
42
44
  export declare const PHI_SIGNALS_WIDGET_DEFAULT_LABELS: PhiSignalsWidgetLabels;
@@ -37,5 +37,6 @@ export const PHI_SIGNALS_WIDGET_DEFAULT_LABELS = {
37
37
  update: "Update route",
38
38
  edit: "Edit",
39
39
  delete: "Delete",
40
+ footer: "%1 routes",
40
41
  },
41
42
  };
@@ -1,4 +1,5 @@
1
1
  import { type PhiIntervalLabels } from "./interval";
2
+ import { type PhiRevealOnceDialogLabels } from "../../controls/phi-reveal-once-dialog-labels";
2
3
  export type PhiTableWidgetLabels = {
3
4
  search: string;
4
5
  reset: string;
@@ -20,6 +21,8 @@ export type PhiTableWidgetLabels = {
20
21
  moveRowDown: string;
21
22
  /** The words of the `interval` renderer, from their own Label Set. */
22
23
  interval: PhiIntervalLabels;
24
+ /** The buttons of the Dialog that shows an action's value once (`reveal`). */
25
+ reveal: PhiRevealOnceDialogLabels;
23
26
  };
24
27
  export declare const PHI_TABLE_WIDGET_DEFAULT_LABELS: PhiTableWidgetLabels;
25
28
  export declare function formatPhiTableWidgetLabel(template: string, value: string | number): string;
@@ -1,4 +1,5 @@
1
1
  import { PHI_INTERVAL_DEFAULT_LABELS } from "./interval";
2
+ import { PHI_REVEAL_ONCE_DIALOG_DEFAULT_LABELS, } from "../../controls/phi-reveal-once-dialog-labels";
2
3
  export const PHI_TABLE_WIDGET_DEFAULT_LABELS = {
3
4
  search: "Search",
4
5
  reset: "Reset",
@@ -19,6 +20,7 @@ export const PHI_TABLE_WIDGET_DEFAULT_LABELS = {
19
20
  moveRowUp: "Move row up",
20
21
  moveRowDown: "Move row down",
21
22
  interval: PHI_INTERVAL_DEFAULT_LABELS,
23
+ reveal: PHI_REVEAL_ONCE_DIALOG_DEFAULT_LABELS,
22
24
  };
23
25
  export function formatPhiTableWidgetLabel(template, value) {
24
26
  return template.replace("%1", String(value));
@@ -1,6 +1,9 @@
1
1
  import type { PhiBlockRuntime } from "../../../types";
2
+ import type { PhiSignalRouteSet } from "../../../types/signals";
2
3
  export type PhiBuilderChromeWidgetProps = {
3
4
  runtime: Pick<PhiBlockRuntime, "locale">;
4
5
  disabled?: boolean;
5
6
  };
6
- export declare function PhiBuilderModeSwitchWidget({ runtime, disabled, }: PhiBuilderChromeWidgetProps): Promise<import("react").JSX.Element>;
7
+ export declare function PhiBuilderModeSwitchWidget({ runtime, disabled, signalRoutes, }: PhiBuilderChromeWidgetProps & {
8
+ signalRoutes?: PhiSignalRouteSet | null;
9
+ }): Promise<import("react").JSX.Element>;
@@ -6,7 +6,7 @@ import { buildPhiWidgetLabelTranslatorOptions } from "../label-sets/runtime-opti
6
6
  async function getLabels(runtime) {
7
7
  return getPhiBuilderChromeWidgetLabels(buildPhiWidgetLabelTranslatorOptions(runtime));
8
8
  }
9
- export async function PhiBuilderModeSwitchWidget({ runtime, disabled, }) {
9
+ export async function PhiBuilderModeSwitchWidget({ runtime, disabled, signalRoutes, }) {
10
10
  const labels = await getLabels(runtime);
11
- return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiRuntimeRenderClientType.BuilderModeSwitch, componentProps: { disabled, labels } }));
11
+ return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiRuntimeRenderClientType.BuilderModeSwitch, componentProps: { disabled, labels, signalRoutes: signalRoutes ?? null } }));
12
12
  }
@@ -1,8 +1,12 @@
1
+ import { type CSSProperties } from "react";
1
2
  import type { PhiClientBlockBaseProps } from "../../../types";
2
3
  import type { PhiCodeToken } from "./markdown-code-tokens";
3
4
  import type { PhiMarkdownImageFloat, PhiMarkdownTextAlign } from "../../../types/core-widget-placements";
4
5
  import { type PhiSpacingScaleKey } from "../config/spacing-options";
5
6
  import type { PhiMarkdownTocHeading } from "../../../types/markdown";
7
+ import type { PhiTableWidgetConfig } from "../../../types/table-widget";
8
+ import type { PhiTableWidgetLabels } from "../label-types/table";
9
+ import type { PhiRenderableBlockRenderMode } from "../../../types/renderable-block";
6
10
  import { type PhiMarkdownFoldSections } from "./markdown-sections";
7
11
  import type { PhiImagePresentation } from "../../media/image-presentation";
8
12
  import { type PhiMarkdownFigureFloat, type PhiMarkdownImageFloatWidth } from "./markdown-image-vocabulary";
@@ -101,6 +105,24 @@ export type PhiMarkdownBlock = {
101
105
  } | {
102
106
  kind: "image";
103
107
  image: PhiMarkdownFigure;
108
+ } | ({
109
+ kind: "table_embed";
110
+ } & PhiMarkdownTableEmbed);
111
+ /**
112
+ * A Table a Module offers, standing on its own in the text (`![Caption](phis:table/<key>?...)`), resolved on
113
+ * the server (TABLES.md, "Tables in Markdown"): the Table Widget's config and words, or nothing where the
114
+ * embed was refused.
115
+ */
116
+ export type PhiMarkdownTableEmbed = {
117
+ /** The picture's alt text, translated as the text is: the Table's title when it is drawn. */
118
+ caption: string;
119
+ table: {
120
+ config: PhiTableWidgetConfig;
121
+ labels: PhiTableWidgetLabels;
122
+ renderMode: PhiRenderableBlockRenderMode;
123
+ } | null;
124
+ /** Why it was refused, for the author; set only where the text is authored, never live. */
125
+ notice: string | null;
104
126
  };
105
127
  export type PhiMarkdownWidgetClientProps = PhiClientBlockBaseProps<
106
128
  /** The label above the text, translated on the server. */
@@ -127,3 +149,7 @@ export type PhiMarkdownWidgetClientProps = PhiClientBlockBaseProps<
127
149
  headingOffset?: number;
128
150
  }>;
129
151
  export declare function PhiMarkdownWidgetClient({ config, labels }: PhiMarkdownWidgetClientProps): import("react").JSX.Element | null;
152
+ export declare function PhiMarkdownTableEmbedBlock({ embed, spacing, }: {
153
+ embed: PhiMarkdownTableEmbed;
154
+ spacing: Pick<CSSProperties, "marginBlockStart" | "marginBlockEnd">;
155
+ }): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { Fragment, useEffect, useMemo, useState } from "react";
4
4
  import dynamic from "next/dynamic";
5
5
  import { PhiProtectedMailText } from "../../navigation/use-phi-protected-mail";
@@ -14,6 +14,9 @@ import { PhiPlainTable } from "../../tables/phi-plain-table";
14
14
  import { PhiTypographyControl } from "../../controls/phi-typography-control";
15
15
  import { PhiDividerControl } from "../../controls/phi-divider-control";
16
16
  import { PhiBulletListControl } from "../../controls/phi-bullet-list-control";
17
+ import { PhiRuntimeModuleRenderClientHost } from "../../runtime/runtime-module-render-client-manifest";
18
+ import { PhiCmsWidgetType } from "../../../constants/cms-widget-types";
19
+ import { PHI_TABLE_PROVIDER_REFUSED_CODE } from "../client/shared/phi-table-provider-refusal";
17
20
  import { resolvePhiMarkdownFoldLevel, splitPhiMarkdownSegments, } from "./markdown-sections";
18
21
  import { resolvePhiMarkdownFigureSizes, } from "./markdown-image-vocabulary";
19
22
  import { resolvePhiBulletListStyle, } from "./bullet-list-vocabulary";
@@ -144,6 +147,8 @@ function renderBlocks(blocks, token, paragraphStyle, headingStyle, lists, atStar
144
147
  }) }) }, key));
145
148
  case "divider":
146
149
  return _jsx(PhiDividerControl, { style: { margin: 0 } }, key);
150
+ case "table_embed":
151
+ return (_jsx(PhiMarkdownTableEmbedBlock, { embed: block, spacing: { marginBlockStart: paragraphBlockStyle.marginBlockStart, marginBlockEnd: paragraphBlockStyle.marginBlockEnd } }, key));
147
152
  case "table":
148
153
  /*
149
154
  * A plain table, not the Table Control: Markdown only shows rows, and the Control's editors,
@@ -275,3 +280,28 @@ function PhiMarkdownFigureBlock({ figure }) {
275
280
  const ownRatio = presentation.width && presentation.height ? `${presentation.width} / ${presentation.height}` : undefined;
276
281
  return (_jsx("figure", { className: `phi-markdown-figure phi-markdown-figure--float-${figure.float} phi-markdown-figure--width-${figure.floatWidth}`, children: _jsx("div", { className: "phi-markdown-figure__frame", style: { aspectRatio: figure.aspectRatio ?? ownRatio }, children: _jsx(PhiImageControl, { presentation: presentation, source: "asset", alt: figure.alt, title: figure.title, blurDataUrl: figure.blurDataUrl, optimizable: figure.optimizable, sizes: resolvePhiMarkdownFigureSizes(figure.float, figure.floatWidth), style: { width: "100%", height: "100%" }, imageStyle: { width: "100%", height: "100%" } }) }) }));
277
282
  }
283
+ /*
284
+ * An embedded Table: the Table Widget's own Render Client, by its type in the Area's manifest, which loads it
285
+ * with `next/dynamic` where one is drawn -- the Table's code is in no chunk of the Markdown Widget, and a
286
+ * text without an embed never asks for it. Refused, the caption stands as a paragraph, with the reason
287
+ * beneath it where the text is authored.
288
+ */
289
+ export function PhiMarkdownTableEmbedBlock({ embed, spacing, }) {
290
+ /*
291
+ * The caption is the Table's title, so a Table that cannot draw takes it along: live, a failed read --
292
+ * a viewer the Provider refuses -- draws nothing at all. The Table says so in its state, and the caption
293
+ * then stands as the paragraph it is everywhere else. A refused read the Provider explains is no such
294
+ * failure: that Table draws itself, title and all.
295
+ */
296
+ const [tableFailed, setTableFailed] = useState(false);
297
+ const componentProps = useMemo(() => embed.table
298
+ ? {
299
+ ...embed.table,
300
+ onStateChange: (state) => setTableFailed(state.errorCode != null && state.errorCode !== PHI_TABLE_PROVIDER_REFUSED_CODE),
301
+ }
302
+ : null, [embed.table]);
303
+ if (componentProps) {
304
+ return (_jsxs("figure", { className: "phi-markdown-table-embed", style: { margin: 0, minWidth: 0, ...spacing }, children: [tableFailed && embed.caption ? (_jsx(PhiTypographyControl, { presentation: "paragraph", style: { margin: 0 }, children: embed.caption })) : null, _jsx(PhiRuntimeModuleRenderClientHost, { type: PhiCmsWidgetType.Table, componentProps: componentProps })] }));
305
+ }
306
+ return (_jsxs(_Fragment, { children: [embed.caption ? (_jsx(PhiTypographyControl, { presentation: "paragraph", style: { margin: 0, ...spacing }, children: embed.caption })) : null, embed.notice ? (_jsx(PhiTypographyControl, { presentation: "paragraph", type: "warning", style: { margin: 0, ...spacing }, children: embed.notice })) : null] }));
307
+ }
@@ -1,9 +1,10 @@
1
1
  import type { PhiBlockRuntime, PhiRenderableBlockRenderMode } from "../../../types";
2
2
  import type { PhiCmsResolvedContent } from "../../../types/cms";
3
3
  import type { PhiMarkdownTocHeading } from "../../../types/markdown";
4
- import type { PhiMarkdownBlock } from "./markdown-body-client";
4
+ import type { PhiMarkdownBlock, PhiMarkdownTableEmbed } from "./markdown-body-client";
5
5
  import type { PhiMarkdownImageFloat } from "../../../types/core-widget-placements";
6
6
  import { type PhiMarkdownImageAspectRatio, type PhiMarkdownImageFloatWidth } from "./markdown-image-vocabulary";
7
+ import type { PhiTableEmbedReference } from "../../../types/table-embed";
7
8
  /**
8
9
  * Where Markdown comes from and how it is turned into blocks: inline text, a stored content field, or a
9
10
  * document fetched by URL, translated or not, with heading ids under a prefix of its own.
@@ -39,6 +40,11 @@ export type PhiMarkdownSourceConfig = {
39
40
  imageFloat?: PhiMarkdownImageFloat;
40
41
  imageFloatWidth?: PhiMarkdownImageFloatWidth;
41
42
  };
43
+ /** Who draws a text's Table embeds (TABLES.md); absent, each is its caption. */
44
+ export type PhiMarkdownTableEmbedResolver = (embeds: readonly {
45
+ caption: string;
46
+ reference: PhiTableEmbedReference;
47
+ }[]) => Promise<readonly PhiMarkdownTableEmbed[]>;
42
48
  export type MarkdownRenderData = {
43
49
  blocks: PhiMarkdownBlock[];
44
50
  headings: PhiMarkdownTocHeading[];
@@ -51,7 +57,9 @@ type ResolvedMarkdownSource = {
51
57
  message: string;
52
58
  };
53
59
  export declare function resolveMarkdownSource(config: PhiMarkdownSourceConfig | undefined, publicUrl: string | null | undefined): Promise<ResolvedMarkdownSource>;
54
- export declare function resolveMarkdownRenderData(config: PhiMarkdownSourceConfig | undefined, runtime?: Pick<PhiBlockRuntime, "site" | "locale" | "area" | "viewer">): Promise<MarkdownRenderData | {
60
+ export declare function resolveMarkdownRenderData(config: PhiMarkdownSourceConfig | undefined, runtime?: Pick<PhiBlockRuntime, "site" | "locale" | "area" | "viewer">, options?: {
61
+ tableEmbeds?: PhiMarkdownTableEmbedResolver;
62
+ }): Promise<MarkdownRenderData | {
55
63
  error: string;
56
64
  }>;
57
65
  export {};