@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
@@ -0,0 +1,103 @@
1
+ import { readPhiAntdDefaultSeedToken, resolvePhiAntdAliasTokens } from "./phi-antd-token-resolver";
2
+ import { isSamePhiThemeColor } from "./phi-theme-color";
3
+ import { resolvePhiThemeColorTokens, } from "./phi-theme-presets";
4
+ const PHI_THEME_MODES = ["light", "dark"];
5
+ function listPhiThemePaletteEntries(palette) {
6
+ return [
7
+ ...Object.keys(palette.seed ?? {}).map((key) => ({ level: "seed", key })),
8
+ ...PHI_THEME_MODES.flatMap((mode) => [
9
+ ...Object.keys(palette.modes?.[mode]?.seed ?? {})
10
+ .map((key) => ({ level: "modeSeed", mode, key })),
11
+ ...Object.keys(palette.modes?.[mode]?.overrides ?? {})
12
+ .map((key) => ({ level: "modeOverride", mode, key })),
13
+ ]),
14
+ ];
15
+ }
16
+ function readPhiThemePaletteEntry(palette, entry) {
17
+ if (entry.level === "seed")
18
+ return palette.seed?.[entry.key];
19
+ const mode = palette.modes?.[entry.mode];
20
+ return entry.level === "modeSeed" ? mode?.seed?.[entry.key] : mode?.overrides?.[entry.key];
21
+ }
22
+ /** The palette without the one entry; an emptied record or mode goes with it. */
23
+ function omitPhiThemePaletteEntry(palette, entry) {
24
+ const without = (record) => {
25
+ const next = Object.fromEntries(Object.entries(record ?? {}).filter(([key]) => key !== entry.key));
26
+ return Object.keys(next).length > 0 ? next : undefined;
27
+ };
28
+ if (entry.level === "seed") {
29
+ const seed = without(palette.seed);
30
+ const { seed: _seed, ...rest } = palette;
31
+ return seed ? { ...rest, seed } : rest;
32
+ }
33
+ const current = palette.modes?.[entry.mode] ?? {};
34
+ const part = entry.level === "modeSeed" ? "seed" : "overrides";
35
+ const nextMode = { ...current, [part]: without(current[part]) };
36
+ if (nextMode[part] === undefined)
37
+ delete nextMode[part];
38
+ const modes = { ...(palette.modes ?? {}), [entry.mode]: nextMode };
39
+ if (Object.keys(nextMode).length === 0)
40
+ delete modes[entry.mode];
41
+ const { modes: _modes, ...rest } = palette;
42
+ return Object.keys(modes).length > 0 ? { ...rest, modes } : rest;
43
+ }
44
+ function isSamePhiThemeTokenInput(left, right) {
45
+ const keys = new Set([...Object.keys(left), ...Object.keys(right)]);
46
+ return [...keys].every((key) => isSamePhiThemeColor(left[key], right[key]));
47
+ }
48
+ /**
49
+ * Whether the palette renders the same in this mode without the entry.
50
+ *
51
+ * First on the token input, which is what decides the render and costs nothing to compare: a value the
52
+ * block below states the same way, a Module palette taken over on save above all. Where the entry is the
53
+ * only one to state its key, the input differs by that key alone, and the entry changes nothing if it is
54
+ * what Ant Design derives in its place -- a seed equal to the default seed, a hover equal to the hover
55
+ * the seed yields. A seed that releases derived colours the block states outright changes the input in
56
+ * more keys than its own and stays.
57
+ */
58
+ function phiThemePaletteEntryChangesNothing(preset, palette, candidate, entry, mode, baseTokens) {
59
+ const stated = resolvePhiThemeColorTokens(preset, palette, mode);
60
+ const left = resolvePhiThemeColorTokens(preset, candidate, mode);
61
+ if (isSamePhiThemeTokenInput(stated, left))
62
+ return true;
63
+ const differing = [...new Set([...Object.keys(stated), ...Object.keys(left)])]
64
+ .filter((key) => !isSamePhiThemeColor(stated[key], left[key]));
65
+ if (differing.length !== 1 || differing[0] !== entry.key || entry.key in left)
66
+ return false;
67
+ /*
68
+ * A seed goes into the derivation as Ant Design's default seed, which is what to compare with: the
69
+ * alias token of the same name is a colour derived from it, and in the dark mode not the seed itself.
70
+ */
71
+ const defaultSeed = readPhiAntdDefaultSeedToken(entry.key);
72
+ const inPlace = defaultSeed
73
+ ? defaultSeed.value
74
+ : resolvePhiAntdAliasTokens(mode, { ...baseTokens, ...left })[entry.key];
75
+ return isSamePhiThemeColor(stated[entry.key], inPlace);
76
+ }
77
+ /**
78
+ * A Site's palette without the colours that change nothing over the palette block it follows.
79
+ *
80
+ * A palette entry is what an author decided differently from the Theme, and the Theme workspace offers
81
+ * to hand it back ("Reset to Theme", "Reset override"). An entry with the very colour the Theme gives
82
+ * anyway is no decision: the workspace showed a reset for it all the same, and every Site that saved a
83
+ * Module's Theme had one under every seed, because the save takes the Module's palette over
84
+ * (`adoptPhiThemeModulePalette`). The workspace reads ownership off this, and the save stores this, ahead
85
+ * of the takeover, so a Module's palette is still copied in whole and a core palette is simply followed.
86
+ *
87
+ * Entries are taken out one by one, each against what is left, so two entries that only together equal
88
+ * the Theme are both dropped and one that matters keeps the other where it is needed. Custom colours and
89
+ * gradient slots are not looked at here. `baseTokens` are the non-colour tokens the render derives with.
90
+ */
91
+ export function omitPhiThemePaletteDefaults(preset, palette, baseTokens = {}) {
92
+ let current = palette ?? {};
93
+ for (const entry of listPhiThemePaletteEntries(current)) {
94
+ if (readPhiThemePaletteEntry(current, entry) === undefined)
95
+ continue;
96
+ const candidate = omitPhiThemePaletteEntry(current, entry);
97
+ const modes = entry.level === "seed" ? PHI_THEME_MODES : [entry.mode];
98
+ if (modes.every((mode) => phiThemePaletteEntryChangesNothing(preset, current, candidate, entry, mode, baseTokens))) {
99
+ current = candidate;
100
+ }
101
+ }
102
+ return current;
103
+ }
@@ -45,8 +45,9 @@ export declare const PHI_THEME_TOKEN_KEYS: readonly ["colorBgContainer", "colorB
45
45
  * palette's custom colours, laid over the same way (theme/phi-theme-palette.ts). `linkExternalMark` is
46
46
  * the `display` of the mark behind a link that leaves the Site (theme/phi-link-mark.ts). The
47
47
  * `surfaceShadow*` names are what a Surface's `soft` and `strong` steps draw (theme/phi-surface-shadow.ts).
48
+ * `inverseGround` is what a Surface toned `inverse` stands on (theme/phi-theme-inverse-ground.ts).
48
49
  */
49
- export declare const PHI_THEME_OWN_TOKEN_KEYS: readonly ["paddingXXL", "pageMax", "pagePaddingTopPhone", "pagePaddingRightPhone", "pagePaddingBottomPhone", "pagePaddingLeftPhone", "pagePaddingTopTablet", "pagePaddingRightTablet", "pagePaddingBottomTablet", "pagePaddingLeftTablet", "pagePaddingTopDesktop", "pagePaddingRightDesktop", "pagePaddingBottomDesktop", "pagePaddingLeftDesktop", "signedInPagePaddingTopPhone", "signedInPagePaddingRightPhone", "signedInPagePaddingBottomPhone", "signedInPagePaddingLeftPhone", "signedInPagePaddingTopTablet", "signedInPagePaddingRightTablet", "signedInPagePaddingBottomTablet", "signedInPagePaddingLeftTablet", "signedInPagePaddingTopDesktop", "signedInPagePaddingRightDesktop", "signedInPagePaddingBottomDesktop", "signedInPagePaddingLeftDesktop", "layoutGap", "gradient1", "gradient1Text", "gradient2", "gradient2Text", "gradient3", "gradient3Text", "primaryButtonGradient", "primaryButtonGradientHover", "primaryButtonGradientActive", "primaryButtonGradientText", "linkExternalMark", "surfaceShadowSoft", "surfaceShadowStrong", "custom1", "custom2", "custom3", "custom4", "custom5", "custom6", "custom7", "custom8", "custom9", "custom10"];
50
+ export declare const PHI_THEME_OWN_TOKEN_KEYS: readonly ["paddingXXL", "pageMax", "pagePaddingTopPhone", "pagePaddingRightPhone", "pagePaddingBottomPhone", "pagePaddingLeftPhone", "pagePaddingTopTablet", "pagePaddingRightTablet", "pagePaddingBottomTablet", "pagePaddingLeftTablet", "pagePaddingTopDesktop", "pagePaddingRightDesktop", "pagePaddingBottomDesktop", "pagePaddingLeftDesktop", "signedInPagePaddingTopPhone", "signedInPagePaddingRightPhone", "signedInPagePaddingBottomPhone", "signedInPagePaddingLeftPhone", "signedInPagePaddingTopTablet", "signedInPagePaddingRightTablet", "signedInPagePaddingBottomTablet", "signedInPagePaddingLeftTablet", "signedInPagePaddingTopDesktop", "signedInPagePaddingRightDesktop", "signedInPagePaddingBottomDesktop", "signedInPagePaddingLeftDesktop", "layoutGap", "gradient1", "gradient1Text", "gradient2", "gradient2Text", "gradient3", "gradient3Text", "primaryButtonGradient", "primaryButtonGradientHover", "primaryButtonGradientActive", "primaryButtonGradientText", "linkExternalMark", "surfaceShadowSoft", "surfaceShadowStrong", "inverseGround", "custom1", "custom2", "custom3", "custom4", "custom5", "custom6", "custom7", "custom8", "custom9", "custom10"];
50
51
  /** The Page inset's names, per band and side (`PHI_LAYOUT.pagePadding`, `PHI_PAGE.padding`). */
51
52
  export declare const PHI_THEME_PAGE_PADDING_BANDS: readonly ["Phone", "Tablet", "Desktop"];
52
53
  export declare const PHI_THEME_PAGE_PADDING_SIDES: readonly ["Top", "Right", "Bottom", "Left"];
@@ -177,6 +177,7 @@ export const PHI_THEME_TOKEN_KEYS = [
177
177
  * palette's custom colours, laid over the same way (theme/phi-theme-palette.ts). `linkExternalMark` is
178
178
  * the `display` of the mark behind a link that leaves the Site (theme/phi-link-mark.ts). The
179
179
  * `surfaceShadow*` names are what a Surface's `soft` and `strong` steps draw (theme/phi-surface-shadow.ts).
180
+ * `inverseGround` is what a Surface toned `inverse` stands on (theme/phi-theme-inverse-ground.ts).
180
181
  */
181
182
  export const PHI_THEME_OWN_TOKEN_KEYS = [
182
183
  "paddingXXL",
@@ -219,6 +220,7 @@ export const PHI_THEME_OWN_TOKEN_KEYS = [
219
220
  "linkExternalMark",
220
221
  "surfaceShadowSoft",
221
222
  "surfaceShadowStrong",
223
+ "inverseGround",
222
224
  "custom1",
223
225
  "custom2",
224
226
  "custom3",
@@ -87,6 +87,20 @@ export type PhiCmsRoutePresetDescriptor = PhiCmsPresetIdentity & {
87
87
  */
88
88
  landingPage?: true;
89
89
  title: string;
90
+ /**
91
+ * The Page's description where the tree's `pageMeta` names none: what the document head and a link
92
+ * preview say of it, translated through the Site-scoped path as `title` is.
93
+ */
94
+ description?: string;
95
+ /**
96
+ * The picture a link to the Page shows, by the key of one of the package's own pictures (`phis.media`,
97
+ * THIRD_PARTY_MODULES.md "Pictures a Module ships"). Written into the Page's config as its `shareImage`
98
+ * where the tree states none; a key the Site has not imported states nothing. The Asset's alt text is
99
+ * what the picture says.
100
+ */
101
+ shareImage?: {
102
+ asset: string;
103
+ };
90
104
  /**
91
105
  * The `PhiCmsFlags` a Page of this route starts out with.
92
106
  *
@@ -1,7 +1,7 @@
1
1
  import type { PhiCmsContainerChromeConfig } from "./cms-container";
2
2
  import { type PhiSignalRouteSet } from "./signals";
3
3
  import { type PhiCmsMountPolicy } from "./cms-mount-policy";
4
- import type { PhiResponsiveValue } from "./responsive";
4
+ import type { PhiRenderableBlockSize } from "./renderable-block";
5
5
  import { type PhiControlSize } from "./control";
6
6
  export declare const PHI_CMS_OVERLAY_TYPES: readonly ["modal", "drawer"];
7
7
  export type PhiCmsOverlayType = (typeof PHI_CMS_OVERLAY_TYPES)[number];
@@ -26,9 +26,8 @@ export type PhiOverlayMaskBehaviour = PhiCmsOverlayMaskConfig & {
26
26
  export type PhiOverlayPushBehaviour = boolean | {
27
27
  distance: PhiCmsOverlaySize;
28
28
  };
29
+ /** One length, a bare number in pixels: how far a pushing Drawer moves the one beneath. */
29
30
  export type PhiCmsOverlaySize = string | number;
30
- /** A Modal width per responsive mode; unset modes cascade from the nearest smaller one that is set. */
31
- export type PhiCmsOverlayResponsiveSize = PhiResponsiveValue<PhiCmsOverlaySize>;
32
31
  export declare const PHI_OVERLAY_CLOSE_SOURCES: readonly ["close-button", "mask", "escape"];
33
32
  export type PhiOverlayCloseSource = (typeof PHI_OVERLAY_CLOSE_SOURCES)[number];
34
33
  export type PhiOverlayCloseRequest = {
@@ -46,10 +45,18 @@ export type PhiCmsOverlayConfig = PhiOverlayChromeConfig & {
46
45
  flags: number;
47
46
  mountPolicy: PhiCmsMountPolicy;
48
47
  mask: PhiCmsOverlayMaskConfig;
49
- width?: PhiCmsOverlaySize | PhiCmsOverlayResponsiveSize;
50
- size?: PhiCmsOverlaySize;
48
+ /**
49
+ * The Overlay's geometry, stated as a block states it (`size`, `minSize`, `maxSize`, each a
50
+ * `{ width?, height? }` pair read by `normalizePhiRenderableBlockSize`) and drawn through
51
+ * `resolvePhiRenderableBlockGeometry`. One value per axis, as a Region's own geometry: the room an
52
+ * Overlay is offered is the viewport, and a Modal that hangs on the window says so with a `maxSize` in
53
+ * `vw`, not with a profile. A Modal reads both axes; a Drawer the one it opens along -- `width` at
54
+ * `left`/`right`, `height` at `top`/`bottom` (OVERLAYS.md, "Presentation config").
55
+ */
56
+ size?: PhiRenderableBlockSize;
57
+ minSize?: PhiRenderableBlockSize;
58
+ maxSize?: PhiRenderableBlockSize;
51
59
  placement: "top" | "right" | "bottom" | "left";
52
- maxSize?: number;
53
60
  /** How far a pushing Drawer (`Push`) moves the one beneath; unset leaves it the Control's distance. */
54
61
  pushDistance?: PhiCmsOverlaySize;
55
62
  closeMode: "immediate" | "request";
@@ -2,6 +2,7 @@ import { isPhiRecord } from "../helpers/is-record";
2
2
  import { readPhiSurface } from "./surface";
3
3
  import { readPhiSignalRouteSet } from "./signals";
4
4
  import { readPhiCmsMountPolicy, } from "./cms-mount-policy";
5
+ import { normalizePhiRenderableBlockSize } from "../helpers/renderable-block-normalizers";
5
6
  import { readPhiControlSize } from "./control";
6
7
  import { PhiCmsFlags } from "@phis/contracts/cms";
7
8
  import { hasPhiFlag, readPhiFlags } from "../helpers/flags";
@@ -16,19 +17,6 @@ function readSize(value) {
16
17
  ? value.trim()
17
18
  : undefined;
18
19
  }
19
- function readResponsiveSize(value) {
20
- if (!isPhiRecord(value))
21
- return undefined;
22
- const record = value;
23
- const size = {
24
- compact: readSize(record.compact),
25
- medium: readSize(record.medium),
26
- wide: readSize(record.wide),
27
- };
28
- return size.compact === undefined && size.medium === undefined && size.wide === undefined
29
- ? undefined
30
- : size;
31
- }
32
20
  function readMask(value) {
33
21
  const record = isPhiRecord(value)
34
22
  ? value
@@ -78,24 +66,20 @@ export function readPhiOverlayCloseRequest(value) {
78
66
  }
79
67
  export function parsePhiCmsOverlayConfig(rawConfig, overlayType = "modal") {
80
68
  const placement = rawConfig.placement;
81
- const maxSize = typeof rawConfig.maxSize === "number" && Number.isFinite(rawConfig.maxSize)
82
- ? rawConfig.maxSize
83
- : undefined;
84
69
  return {
85
70
  title: typeof rawConfig.title === "string" && rawConfig.title.trim() ? rawConfig.title.trim() : null,
86
- controlSize: readPhiControlSize(rawConfig.controlSize),
71
+ // The Modal's width step; a Drawer is sized by `size` alone.
72
+ controlSize: overlayType === "modal" ? readPhiControlSize(rawConfig.controlSize) : undefined,
87
73
  flags: readPhiFlags(rawConfig.flags),
88
74
  // An Overlay is shut far more often than it is open, so the cheap end is the right default.
89
75
  mountPolicy: readPhiCmsMountPolicy(rawConfig.mountPolicy, "remount"),
90
76
  mask: readMask(rawConfig.mask),
91
- width: overlayType === "modal"
92
- ? readSize(rawConfig.width) ?? readResponsiveSize(rawConfig.width)
93
- : undefined,
94
- size: overlayType === "drawer" ? readSize(rawConfig.size) : undefined,
77
+ size: normalizePhiRenderableBlockSize(rawConfig.size),
78
+ minSize: normalizePhiRenderableBlockSize(rawConfig.minSize),
79
+ maxSize: normalizePhiRenderableBlockSize(rawConfig.maxSize),
95
80
  placement: placement === "top" || placement === "bottom" || placement === "left" || placement === "right"
96
81
  ? placement
97
82
  : "right",
98
- maxSize,
99
83
  pushDistance: readSize(rawConfig.pushDistance),
100
84
  closeMode: rawConfig.closeMode === "request" ? "request" : "immediate",
101
85
  openActionKey: typeof rawConfig.openActionKey === "string" && rawConfig.openActionKey.trim()
@@ -147,7 +147,12 @@ export type PhiCmsConfigField = (PhiCmsConfigFieldBase & {
147
147
  type: "readonly";
148
148
  }) | (PhiCmsConfigFieldBase & {
149
149
  type: "data-provider";
150
- providerKind?: PhiRuntimeDataProviderKind;
150
+ /**
151
+ * Which kind of Provider the binding names, or the kinds it takes: a record-bound Form reads a Table
152
+ * resource's row or a Collection resource's item, whichever declares `recordRead`. The resource is
153
+ * chosen the way the chosen Provider's kind chooses one.
154
+ */
155
+ providerKind?: PhiRuntimeDataProviderKind | readonly PhiRuntimeDataProviderKind[];
151
156
  /**
152
157
  * The one record Provider this binding names, for a Widget that can only read one: a Gallery
153
158
  * reads a Folder, an entry header an entry. The Inspector then offers no choice of Provider -- a list
@@ -217,8 +222,9 @@ export type PhiCmsConfigField = (PhiCmsConfigFieldBase & {
217
222
  }) | (PhiCmsConfigFieldBase & {
218
223
  /**
219
224
  * A picture: an Asset from the media library in a chosen rendition, or an address, with its alt
220
- * text. Writes the image source keys (`sourceKind`, `assetId`, `variantKey`, `variantVersion`,
221
- * `sourceUrl`) and `alt`, not a key of its own; `key` only names the field.
225
+ * text. Writes the image source keys (`sourceKind`, `assetId`, `variantKey`, `sourceUrl`) and `alt`,
226
+ * not a key of its own; `key` only names the field. No `variantVersion`: the Widget draws the
227
+ * resolved Asset's own.
222
228
  */
223
229
  type: "image";
224
230
  }) | (PhiCmsConfigFieldBase & {
@@ -908,6 +914,17 @@ export type PhiRuntimeModuleDefinition = {
908
914
  category: PhiRuntimeModuleCategory;
909
915
  controllerMountPolicy?: PhiRuntimeModuleControllerMountPolicy;
910
916
  dataProviders?: readonly PhiRuntimeModuleDataProviderDescriptor[];
917
+ /**
918
+ * Tables this Module offers to Markdown: `![Caption](phis:table/<key>?<param>=<value>)` in a paragraph of
919
+ * its own draws one (TABLES.md, "Tables in Markdown").
920
+ *
921
+ * Each reads a `table` Provider this Module declares in `dataProviders`; the catalog refuses a key,
922
+ * Provider or resource that is not the Module's, and `checkPhiEmbeddableTables` (`@phis/ui/module/page-check`)
923
+ * checks the columns and parameters where a Preset's Tables are checked. Markdown sets the caption and the
924
+ * declared `params` and nothing more; the key is the Module's (`<package>[/modules/<module>]/table-embeds/
925
+ * <name>`), and an Area where the Module is not active draws the caption alone.
926
+ */
927
+ embeddableTables?: readonly import("./table-embed").PhiEmbeddableTableDescriptor[];
911
928
  /**
912
929
  * The Media Spaces this Module needs, and what it needs to put in them.
913
930
  *
package/types/cms.d.ts CHANGED
@@ -91,6 +91,16 @@ export type PhiCmsResolvedPageMetaField = {
91
91
  export type PhiCmsResolvedPageMeta = {
92
92
  title: PhiCmsResolvedPageMetaField | null;
93
93
  description: PhiCmsResolvedPageMetaField | null;
94
+ /**
95
+ * What a link to a Page about a record shows of that record, from the fields its Provider marks
96
+ * (`record.share`, NEXT_INTEGRATION.md "Link previews"). Set by the render, never stored: absent on a
97
+ * Page about no record.
98
+ */
99
+ preview?: {
100
+ title: string | null;
101
+ description: string | null;
102
+ image: import("./record-provider").PhiRecordPicture | null;
103
+ } | null;
94
104
  };
95
105
  export type PhiCmsResolvedContent = {
96
106
  id: number;
@@ -1,4 +1,5 @@
1
1
  import type { PhiSignalValueSchema } from "./signals";
2
+ import type { PhiTableProviderRecordRequest } from "./table-widget";
2
3
  /**
3
4
  * A renderer a Module offers for Collection items, its own or somebody else's.
4
5
  *
@@ -51,6 +52,13 @@ export type PhiCollectionProviderResourceDescriptor = {
51
52
  * Absent means this resource announces no selection, and the Builder offers no route for one.
52
53
  */
53
54
  selectionValueSchema?: PhiSignalValueSchema;
55
+ /**
56
+ * Whether one item can be read on its own, by its key, as a Table resource's `recordRead` says it of a
57
+ * row: the Provider Client then has `readRecord`, and a record-bound Form opened from one of the
58
+ * View's items reads the item through it (FORMS.md, "A record opened from a Collection View"). Absent
59
+ * is no record read, and a Form bound to the resource fails with the reason rather than open empty.
60
+ */
61
+ recordRead?: boolean;
54
62
  defaultForWidget?: boolean;
55
63
  query: {
56
64
  search?: boolean;
@@ -107,6 +115,25 @@ export type PhiCollectionProviderActionRequest = {
107
115
  params?: Record<string, unknown>;
108
116
  signal: AbortSignal;
109
117
  };
118
+ /**
119
+ * One item read on its own (`readRecord` on the Provider Client), the shape a Table Provider's record
120
+ * read already has: the resource, the item's key as `rowIdentity`, the binding's params, the reader's
121
+ * language and the Site's time zone, and the abort. One shape for both kinds, so a record-bound Form
122
+ * asks either the same way and a Provider that serves both writes one function.
123
+ */
124
+ export type PhiCollectionProviderRecordRequest = PhiTableProviderRecordRequest;
125
+ /**
126
+ * What a Collection View announces on its `actionActivate` output (`collection-action`): which action,
127
+ * and for an item action the item's key, as the resource's `itemIdentityPath` reads it. A toolbar action
128
+ * names no item. `query` is the View's query as it stood, for a Controller that acts in its context (the
129
+ * Media library's new Folder in the open one). Read with `readPhiCollectionActionSignalValue`
130
+ * (`types/collection-signal-values.ts`).
131
+ */
132
+ export type PhiCollectionActionSignalValue = {
133
+ actionKey: string;
134
+ itemKey?: string | number | null;
135
+ query?: PhiCollectionProviderQuery;
136
+ };
110
137
  export type PhiCollectionViewBindingModel = {
111
138
  query: PhiCollectionProviderQuery;
112
139
  data: PhiCollectionProviderData | null;
@@ -0,0 +1,2 @@
1
+ import type { PhiCollectionActionSignalValue } from "./collection-provider";
2
+ export declare function readPhiCollectionActionSignalValue(value: unknown): PhiCollectionActionSignalValue | null;
@@ -0,0 +1,23 @@
1
+ import { isPhiRecord } from "../helpers/is-record";
2
+ /*
3
+ * What a Collection View says on its `actionActivate` output, read by whoever listens: a record-bound
4
+ * Form, the Overlay container (which opens on an action) and Module Controllers. The Overlay container is
5
+ * on every page, so the reader lives apart from the Collection Provider's contract and imports nothing
6
+ * else, as the Table's readers do (`table-signal-values.ts`).
7
+ */
8
+ export function readPhiCollectionActionSignalValue(value) {
9
+ if (!isPhiRecord(value) || typeof value.actionKey !== "string" || !value.actionKey.trim()) {
10
+ return null;
11
+ }
12
+ const itemKey = value.itemKey;
13
+ if (itemKey !== undefined && itemKey !== null &&
14
+ !(typeof itemKey === "string" && itemKey.trim()) &&
15
+ !(typeof itemKey === "number" && Number.isFinite(itemKey))) {
16
+ return null;
17
+ }
18
+ return {
19
+ actionKey: value.actionKey.trim(),
20
+ ...(itemKey == null ? {} : { itemKey: itemKey }),
21
+ ...(isPhiRecord(value.query) ? { query: value.query } : {}),
22
+ };
23
+ }
@@ -71,6 +71,15 @@ export type PhiCmsCollectionViewWidgetConfig = PhiCmsWidgetConfigBase & {
71
71
  /** The one kind the upload takes and the picker lists. Absent: the upload takes every kind, the picker lists images. */
72
72
  mediaType?: PhiMediaKindValue;
73
73
  };
74
+ /**
75
+ * Choosing an item, prepared for the Shop's checkout (an address to deliver to) and read by the address
76
+ * renderer (`PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`) only: `single` lets one tile be chosen, and the choice
77
+ * goes out on the Widget's `selection` output as `{ addressId }` (`site-address-selection`, the
78
+ * resource's `selectionValueSchema`). Absent: nothing is chosen. Nothing reads the choice yet.
79
+ */
80
+ selection?: {
81
+ mode: "single";
82
+ };
74
83
  pagination?: {
75
84
  enabled: boolean;
76
85
  pageSize?: number;
@@ -449,10 +449,10 @@ export type PhiCommandButtonConfig = PhiControlBadgeConfig & {
449
449
  variant?: PhiButtonVariant;
450
450
  };
451
451
  /**
452
- * Without the Control's own Read only and Disabled: each button has its own, and the whole toolbar is
453
- * switched by `enabled/change`, which every renderable block receives.
452
+ * The Control's own Read only and Disabled hold for every button, beside each button's own; the whole
453
+ * toolbar is also switched by `enabled/change`, which every renderable block receives.
454
454
  */
455
- export type PhiCommandToolbarWidgetPlacement = PhiWidgetPlacementBase & Omit<PhiControlPlacement, "readOnly" | "disabled"> & {
455
+ export type PhiCommandToolbarWidgetPlacement = PhiWidgetPlacementBase & PhiControlPlacement & {
456
456
  compact?: boolean;
457
457
  wrap?: boolean;
458
458
  showLabels?: boolean;
@@ -466,6 +466,12 @@ export type PhiCommandToolbarWidgetPlacement = PhiWidgetPlacementBase & Omit<Phi
466
466
  */
467
467
  export type PhiThreadConversationWidgetPlacement = PhiWidgetPlacementBase & {
468
468
  reply?: boolean;
469
+ /** The heading in place of the conversation's subject, for a placement that shows one kind and names it. */
470
+ title?: string;
471
+ /** What the Reply says where the placement offers it as something else ("Add note"). */
472
+ replyLabel?: string;
473
+ /** The sentence while no conversation is chosen, in place of the Widget's own. */
474
+ emptyDescription?: string;
469
475
  padding?: number | string;
470
476
  };
471
477
  export type PhiThemeModeSwitchSize = "small" | "medium";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The picture of a link preview: a Media Asset of the Site's own Space, by id, and what it shows.
3
+ *
4
+ * One shape wherever a preview picture is stated -- a Page's config (`page.layoutConfig.shareImage`) and
5
+ * the Theme's Brand (`brand.shareImage`). The id sits under `assetId`, which is how persisted config names
6
+ * an Asset, so phi-server indexes it and refuses to delete the picture while it is stated. `alt` falls
7
+ * back to the Asset's own alt text. Only a publicly delivered image is ever shown: any other answers as no
8
+ * picture.
9
+ */
10
+ export type PhiShareImage = {
11
+ assetId: number;
12
+ alt?: string | null;
13
+ };
14
+ /** `value` as a share image, or `null` where it is none: a live page leaves out what it cannot read. */
15
+ export declare function readPhiShareImage(value: unknown): PhiShareImage | null;
16
+ /** The key of a Page's config the share image is stated under. */
17
+ export declare const PHI_PAGE_SHARE_IMAGE_CONFIG_KEY = "shareImage";
18
+ /** `value` where it is an X account name, `@` included (`@phisys`); anything else is no account. */
19
+ export declare function readPhiXAccount(value: string | null | undefined): string | null;
@@ -0,0 +1,19 @@
1
+ import { isPhiRecord } from "../helpers/is-record";
2
+ /** `value` as a share image, or `null` where it is none: a live page leaves out what it cannot read. */
3
+ export function readPhiShareImage(value) {
4
+ if (!isPhiRecord(value))
5
+ return null;
6
+ const { assetId, alt } = value;
7
+ if (typeof assetId !== "number" || !Number.isSafeInteger(assetId) || assetId <= 0)
8
+ return null;
9
+ const text = typeof alt === "string" ? alt.trim() : "";
10
+ return text ? { assetId, alt: text } : { assetId };
11
+ }
12
+ /** The key of a Page's config the share image is stated under. */
13
+ export const PHI_PAGE_SHARE_IMAGE_CONFIG_KEY = "shareImage";
14
+ const PHI_X_ACCOUNT_PATTERN = /^@[A-Za-z0-9_]{1,15}$/u;
15
+ /** `value` where it is an X account name, `@` included (`@phisys`); anything else is no account. */
16
+ export function readPhiXAccount(value) {
17
+ const trimmed = value?.trim() ?? "";
18
+ return PHI_X_ACCOUNT_PATTERN.test(trimmed) ? trimmed : null;
19
+ }
@@ -51,6 +51,15 @@ export type PhiRecordTag = {
51
51
  label: string;
52
52
  tone?: "default" | "success" | "warning" | "error";
53
53
  };
54
+ /**
55
+ * A Markdown field as a record answers it: the text, the language it is written in (a locale key, `fr`,
56
+ * `pt-BR`), and what it is (`PhiRecordMarkdownFlag` bits, `constants/record-field-kinds.ts`).
57
+ */
58
+ export type PhiRecordMarkdown = {
59
+ text: string;
60
+ sourceLocale: string;
61
+ flags: number;
62
+ };
54
63
  /** Somewhere a record leads: an address, Site-relative or absolute, and the words for it. */
55
64
  export type PhiRecordLink = {
56
65
  href: string;
@@ -64,7 +73,7 @@ export type PhiRecordLink = {
64
73
  */
65
74
  export type PhiRecordFieldValueByKind = {
66
75
  text: string;
67
- markdown: string;
76
+ markdown: PhiRecordMarkdown;
68
77
  picture: PhiRecordPicture;
69
78
  pictures: readonly PhiRecordPicture[];
70
79
  list: readonly string[];
@@ -87,10 +96,22 @@ export type PhiRecordFieldDescriptor = {
87
96
  * `viewer` is the signed-in account's own and is read for each request.
88
97
  */
89
98
  export type PhiRecordAudience = "public" | "viewer";
99
+ /**
100
+ * Which declared fields a link to a Page about the record shows (NEXT_INTEGRATION.md, "Link previews"):
101
+ * `titleField` and `descriptionField` name `text` fields, `imageField` a `picture`. Each is optional, and
102
+ * a field the record lacks leaves the Page's own answer standing. The picture is shown only where it is a
103
+ * publicly delivered image of the Site Space (`/api/site/media/<id>/...`), as its share variant.
104
+ */
105
+ export type PhiRecordShareDeclaration = {
106
+ titleField?: string;
107
+ descriptionField?: string;
108
+ imageField?: string;
109
+ };
90
110
  /** What a `record` descriptor declares about its record. */
91
111
  export type PhiRecordDeclaration = {
92
112
  audience: PhiRecordAudience;
93
113
  fields: readonly PhiRecordFieldDescriptor[];
114
+ share?: PhiRecordShareDeclaration;
94
115
  };
95
116
  /**
96
117
  * From the record a resolver answered to its declared fields' values, by field key. A field the record
@@ -47,6 +47,8 @@ export declare const PHI_SIGNAL_VALUE_SCHEMAS: {
47
47
  readonly runtimeConditionState: `${string}/signals/${string}`;
48
48
  readonly runtimeNavigation: `${string}/signals/${string}`;
49
49
  readonly runtimeTheme: `${string}/signals/${string}`;
50
+ /** One address of a Site's book chosen among the address tiles: `{ addressId }` (COLLECTIONS.md, "The address renderer"). */
51
+ readonly siteAddressSelection: `${string}/signals/${string}`;
50
52
  readonly authWorkflowState: `${string}/signals/${string}`;
51
53
  readonly stackMeta: `${string}/signals/${string}`;
52
54
  readonly tableAction: `${string}/signals/${string}`;
package/types/signals.js CHANGED
@@ -64,6 +64,8 @@ export const PHI_SIGNAL_VALUE_SCHEMAS = {
64
64
  runtimeConditionState: createPhiSharedSignalValueSchema("runtime-condition-state"),
65
65
  runtimeNavigation: createPhiSharedSignalValueSchema("runtime-navigation"),
66
66
  runtimeTheme: createPhiSharedSignalValueSchema("runtime-theme"),
67
+ /** One address of a Site's book chosen among the address tiles: `{ addressId }` (COLLECTIONS.md, "The address renderer"). */
68
+ siteAddressSelection: createPhiSharedSignalValueSchema("site-address-selection"),
67
69
  authWorkflowState: createPhiSharedSignalValueSchema("auth-workflow-state"),
68
70
  stackMeta: createPhiSharedSignalValueSchema("stack-meta"),
69
71
  tableAction: createPhiSharedSignalValueSchema("table-action"),
@@ -40,6 +40,22 @@ export type PhiSiteThemeRoot = {
40
40
  footer?: PhiShadow | null;
41
41
  } | null;
42
42
  } | null;
43
+ /**
44
+ * The Inverse Ground (THEME.md "Ground", LAYOUTING.md "Surface tone"): what a Surface toned `inverse`
45
+ * stands on, one opaque colour per mode the inverse box is drawn in -- `dark` is the ground of an
46
+ * inverse box on a light page, `light` the one on a dark page.
47
+ *
48
+ * A ground of its own because the Chrome Overlay it read before is the frame's, and a frame may be
49
+ * glass: a 55 % ink pane over a light page gave light words a near-white ground. A mode that states
50
+ * none stands on that mode's container ground (`colorBgContainer`), derived per mode
51
+ * (`theme/phi-theme-inverse-ground.ts`), so a Theme that never states it is unchanged.
52
+ */
53
+ inverse?: PhiSiteThemeInverseGround | null;
54
+ };
55
+ /** One opaque colour per mode for the Inverse Ground. A colour with any transparency is refused. */
56
+ export type PhiSiteThemeInverseGround = {
57
+ light?: string | null;
58
+ dark?: string | null;
43
59
  };
44
60
  /**
45
61
  * One piece of the Wordmark.
@@ -177,6 +193,17 @@ export type PhiSiteThemeBrand = {
177
193
  slogan?: PhiSiteThemeBrandLine | null;
178
194
  location?: PhiSiteThemeBrandLine | null;
179
195
  wordmark?: PhiSiteThemeWordmark | null;
196
+ /**
197
+ * The picture a link to this Site shows where the Page says nothing of its own (NEXT_INTEGRATION.md,
198
+ * "Link previews"): a publicly delivered image of the Site Space, drawn as its 1200 x 630 share variant.
199
+ * Absent is no picture.
200
+ */
201
+ shareImage?: import("./link-preview").PhiShareImage | null;
202
+ /**
203
+ * The Site's account on X, `@` and the name (`@phisys`), stated as `twitter:site` beside every link
204
+ * preview. Absent, or not an X account name, states nothing.
205
+ */
206
+ xAccount?: string | null;
180
207
  };
181
208
  export type PhiWidgetFontFamilyKey = "inherit" | "system" | "body" | "mono" | "serif" | "accent" | "display";
182
209
  export type PhiWidgetFontSizeKey = "inherit" | "xs" | "sm" | "base" | "lg" | "xl" | "xxl";
@@ -0,0 +1,48 @@
1
+ import type { PhiViewerAccessPolicy } from "./access";
2
+ import type { PhiProviderResourceSource } from "./runtime-data-provider";
3
+ import type { PhiTableQueryValue, PhiTableSortingConfig, PhiTableWidgetPresentation } from "./table-widget";
4
+ /**
5
+ * A Table a Module offers to Markdown (TABLES.md, "Tables in Markdown").
6
+ *
7
+ * Markdown names it in a paragraph of its own -- `![Caption](phis:table/<key>?<param>=<value>)` -- and sets
8
+ * nothing but the caption and the parameters declared here. Everything else is the Module's: the Provider
9
+ * resource, the columns, the order, the filters that make it the table it is. It is drawn by the Table
10
+ * Widget's own path, read-only.
11
+ *
12
+ * Types only, so that what declares or names one carries none of the code that reads it
13
+ * (`helpers/table-embed.ts`; the Markdown Widget's `table-embeds.server.ts`).
14
+ */
15
+ export type PhiEmbeddableTableDescriptor = {
16
+ /** `<package>[/modules/<module>]/table-embeds/<name>`, under the declaring Module's own id or package. */
17
+ key: PhiTableEmbedKey;
18
+ /** What the Table is, for an author; not drawn. The caption is what a reader sees above it. */
19
+ title: string;
20
+ /** A `table` Provider this Module declares, and one of its resources; `params` are fixed binding values. */
21
+ source: PhiProviderResourceSource;
22
+ /** The Table Widget's own presentation; its words are the Module's, translated as a Preset's. */
23
+ presentation: PhiTableWidgetPresentation;
24
+ sorting?: PhiTableSortingConfig;
25
+ /** Filters the Module pins, as the Table Widget's `fixedFilters`. */
26
+ fixedFilters?: Readonly<Record<string, PhiTableQueryValue>>;
27
+ /** The parameters Markdown may set, by the name it writes them under. */
28
+ params?: Readonly<Record<string, PhiTableEmbedParam>>;
29
+ /** The rows drawn at most: one page of this size, no pager. Absent, the Table pages as it does. */
30
+ maxRows?: number;
31
+ /** Who may see it, owned like a node's `accessPolicy`; the Table Widget's own policy applies as well. */
32
+ accessPolicy?: PhiViewerAccessPolicy;
33
+ };
34
+ export type PhiTableEmbedKey = `${string}/table-embeds/${string}`;
35
+ /**
36
+ * What one parameter sets: a binding field the resource declares (`bindingFields`), or a filter it can be
37
+ * asked by (`query.filterFields`), held like a `fixedFilters` entry. Nothing else is settable.
38
+ */
39
+ export type PhiTableEmbedParam = {
40
+ readonly binding: string;
41
+ } | {
42
+ readonly filter: string;
43
+ };
44
+ /** An embed as Markdown wrote it: the key, and the parameters in order, as text. */
45
+ export type PhiTableEmbedReference = {
46
+ embedKey: string;
47
+ params: readonly (readonly [name: string, value: string])[];
48
+ };
@@ -0,0 +1 @@
1
+ export {};