@phis/ui 0.8.0 → 0.8.2

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 (304) hide show
  1. package/README.md +9 -2
  2. package/components/cms/phi-cms-layout-renderer.js +15 -7
  3. package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
  4. package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
  5. package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
  6. package/components/cms/phi-cms-render-diagnostic.js +12 -2
  7. package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
  8. package/components/cms/phi-cms-render-error-boundary.js +1 -1
  9. package/components/cms/phi-cms-root-layout.js +3 -1
  10. package/components/controls/phi-media-picker-control.d.ts +9 -0
  11. package/components/controls/phi-media-picker-control.js +1 -1
  12. package/components/controls/phi-popover-control.js +4 -1
  13. package/components/controls/phi-table-control.d.ts +7 -1
  14. package/components/controls/phi-table-control.js +26 -11
  15. package/components/forms/form-descriptor-field-check.d.ts +18 -0
  16. package/components/forms/form-descriptor-field-check.js +41 -0
  17. package/components/forms/form-descriptor-runtime-client.js +11 -10
  18. package/components/forms/form-record-source.d.ts +38 -0
  19. package/components/forms/form-record-source.js +48 -0
  20. package/components/forms/shared-form-descriptors.d.ts +0 -34
  21. package/components/forms/shared-form-descriptors.js +0 -6
  22. package/components/forms/shared-form-ids.d.ts +1 -1
  23. package/components/forms/shared-form-ids.js +1 -1
  24. package/components/media/media-settings-labels.d.ts +1 -0
  25. package/components/media/media-settings-labels.js +2 -0
  26. package/components/media/media-upload-flow.d.ts +62 -5
  27. package/components/media/media-upload-flow.js +62 -24
  28. package/components/media/phi-area-upload-widget.d.ts +44 -1
  29. package/components/media/phi-area-upload-widget.js +32 -7
  30. package/components/media/phi-media-picker-binding.d.ts +41 -33
  31. package/components/media/phi-media-picker-binding.js +2 -1
  32. package/components/media/phi-media-upload.d.ts +10 -3
  33. package/components/media/phi-media-upload.js +11 -8
  34. package/components/media/use-media-library-add-picker.d.ts +33 -32
  35. package/components/overlays/phi-overlay-container-client.js +11 -9
  36. package/components/regions/presets/phi-settings-page-shell-tree.d.ts +7 -0
  37. package/components/regions/presets/phi-settings-page-shell-tree.js +3 -3
  38. package/components/shell/phi-icon-names.d.ts +3 -0
  39. package/components/shell/phi-icon-names.js +3 -0
  40. package/components/shell/phi-icon.d.ts +5 -7
  41. package/components/shell/phi-icon.js +8 -21
  42. package/components/shell/phi-widget-icon.js +1 -0
  43. package/components/tables/client/phi-table-binding-params.d.ts +24 -0
  44. package/components/tables/client/phi-table-binding-params.js +39 -0
  45. package/components/tables/client/phi-table-binding.d.ts +1 -3
  46. package/components/tables/client/phi-table-binding.js +5 -9
  47. package/components/widgets/client/html-editor-link-node.d.ts +12 -0
  48. package/components/widgets/client/html-editor-link-node.js +60 -0
  49. package/components/widgets/client/html-editor.js +10 -6
  50. package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
  51. package/components/widgets/client/shared/phi-button-icons.js +8 -12
  52. package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
  53. package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
  54. package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
  55. package/components/widgets/client/shared/phi-collection-provider.js +5 -0
  56. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  57. package/components/widgets/client/shared/phi-collection-view-binding.js +33 -26
  58. package/components/widgets/client/shared/phi-command-buttons.d.ts +16 -0
  59. package/components/widgets/client/shared/phi-command-buttons.js +9 -1
  60. package/components/widgets/label-sets/admin-users.d.ts +1 -0
  61. package/components/widgets/label-sets/admin-users.js +2 -0
  62. package/components/widgets/label-sets/builder-modules.js +4 -0
  63. package/components/widgets/label-sets/profile.d.ts +0 -16
  64. package/components/widgets/label-sets/profile.js +0 -37
  65. package/components/widgets/label-sets/registration.d.ts +0 -1
  66. package/components/widgets/label-sets/registration.js +0 -2
  67. package/components/widgets/label-sets/revisions.js +2 -0
  68. package/components/widgets/label-sets/signals.js +2 -0
  69. package/components/widgets/label-types/builder-modules.d.ts +4 -0
  70. package/components/widgets/label-types/builder-modules.js +2 -0
  71. package/components/widgets/label-types/revisions.d.ts +2 -0
  72. package/components/widgets/label-types/revisions.js +2 -1
  73. package/components/widgets/label-types/signals.d.ts +2 -0
  74. package/components/widgets/label-types/signals.js +1 -0
  75. package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
  76. package/components/widgets/shared/widget-failure-audience.js +21 -0
  77. package/components/widgets/shared/widget-failure-client.js +5 -2
  78. package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
  79. package/components/widgets/shared/widget-failure-notice-client.js +10 -0
  80. package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
  81. package/components/widgets/shared/widget-failure-notice.js +17 -0
  82. package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
  83. package/components/widgets/shared/widget-failure-staff.js +18 -0
  84. package/components/widgets/shared/widget-failure.d.ts +9 -6
  85. package/components/widgets/shared/widget-failure.js +0 -9
  86. package/components/widgets/shared/widget-failure.server.d.ts +4 -2
  87. package/components/widgets/shared/widget-failure.server.js +8 -3
  88. package/constants/cms-widget-types.d.ts +1 -0
  89. package/constants/cms-widget-types.js +3 -0
  90. package/constants/customer-file.d.ts +12 -3
  91. package/constants/customer-file.js +12 -3
  92. package/constants/runtime-module-ownership.js +5 -3
  93. package/constants/site-address.d.ts +9 -0
  94. package/constants/site-address.js +10 -0
  95. package/constants/table-loading.d.ts +14 -0
  96. package/constants/table-loading.js +14 -0
  97. package/constants.d.ts +2 -1
  98. package/constants.js +3 -1
  99. package/gateway/site-cms-write-validation.js +19 -3
  100. package/gateway/site-proxy.d.ts +12 -0
  101. package/gateway/site-proxy.js +20 -0
  102. package/helpers/announced-action.d.ts +17 -0
  103. package/helpers/announced-action.js +29 -0
  104. package/helpers/phi-metadata.d.ts +0 -8
  105. package/helpers/phi-metadata.js +1 -10
  106. package/helpers/phi-site-description.d.ts +11 -0
  107. package/helpers/phi-site-description.js +13 -0
  108. package/helpers/preset-form-check.d.ts +14 -0
  109. package/helpers/preset-form-check.js +12 -0
  110. package/helpers/preset-table-check.d.ts +19 -15
  111. package/helpers/preset-table-check.js +33 -39
  112. package/helpers/record-widget-binding.d.ts +10 -0
  113. package/helpers/record-widget-binding.js +35 -0
  114. package/helpers/record-widget.d.ts +1 -10
  115. package/helpers/record-widget.js +4 -33
  116. package/helpers/table-widget-binding.d.ts +12 -0
  117. package/helpers/table-widget-binding.js +296 -0
  118. package/helpers/tree-widget-binding.d.ts +19 -0
  119. package/helpers/tree-widget-binding.js +72 -0
  120. package/helpers/typed-confirmation.d.ts +9 -0
  121. package/helpers/typed-confirmation.js +13 -0
  122. package/helpers/widget-binding-check.d.ts +22 -0
  123. package/helpers/widget-binding-check.js +91 -0
  124. package/module-page-check.d.ts +2 -0
  125. package/module-page-check.js +2 -0
  126. package/net/phi-next-proxy.d.ts +7 -0
  127. package/net/phi-next-proxy.js +1 -1
  128. package/next/root-route.js +2 -1
  129. package/package.json +27 -14
  130. package/plugins/runtime-modules/accounting/ids.d.ts +7 -4
  131. package/plugins/runtime-modules/accounting/ids.js +14 -3
  132. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +21 -9
  133. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +29 -15
  134. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +11 -8
  135. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +206 -137
  136. package/plugins/runtime-modules/app/client-data-providers.js +1 -1
  137. package/plugins/runtime-modules/app/data-providers.d.ts +14 -69
  138. package/plugins/runtime-modules/app/data-providers.js +19 -54
  139. package/plugins/runtime-modules/app/definition.d.ts +8 -80
  140. package/plugins/runtime-modules/app/forms.d.ts +1 -16
  141. package/plugins/runtime-modules/app/forms.js +0 -59
  142. package/plugins/runtime-modules/app/ids.d.ts +2 -1
  143. package/plugins/runtime-modules/app/ids.js +3 -2
  144. package/plugins/runtime-modules/app/module.d.ts +8 -80
  145. package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
  146. package/plugins/runtime-modules/app/services/{addresses-table.js → addresses-collection.js} +23 -19
  147. package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +10 -6
  148. package/plugins/runtime-modules/app/trees/account-addresses-panel.js +37 -73
  149. package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +0 -5
  150. package/plugins/runtime-modules/app/trees/addresses-label-set.js +2 -6
  151. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
  152. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +1 -17
  153. package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +0 -2
  154. package/plugins/runtime-modules/app/trees/profile-label-set.js +2 -14
  155. package/plugins/runtime-modules/area-contributions/admin.d.ts +1 -1
  156. package/plugins/runtime-modules/area-contributions/admin.js +2 -0
  157. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
  158. package/plugins/runtime-modules/avatar/addresses.d.ts +1 -1
  159. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
  160. package/plugins/runtime-modules/builder/clients/inspector-image-field.js +3 -1
  161. package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
  162. package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
  163. package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
  164. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +5 -0
  165. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +14 -1
  166. package/plugins/runtime-modules/cdn/authoring-widgets.d.ts +3 -0
  167. package/plugins/runtime-modules/cdn/authoring-widgets.js +7 -0
  168. package/plugins/runtime-modules/cdn/authoring.d.ts +1 -0
  169. package/plugins/runtime-modules/cdn/authoring.js +8 -0
  170. package/plugins/runtime-modules/cdn/bytes.d.ts +5 -0
  171. package/plugins/runtime-modules/cdn/bytes.js +17 -0
  172. package/plugins/runtime-modules/cdn/client-data-providers.d.ts +7 -0
  173. package/plugins/runtime-modules/cdn/client-data-providers.js +9 -0
  174. package/plugins/runtime-modules/cdn/data-providers.d.ts +134 -0
  175. package/plugins/runtime-modules/cdn/data-providers.js +117 -0
  176. package/plugins/runtime-modules/cdn/definition.d.ts +140 -0
  177. package/plugins/runtime-modules/cdn/definition.js +23 -0
  178. package/plugins/runtime-modules/cdn/ids.d.ts +18 -0
  179. package/plugins/runtime-modules/cdn/ids.js +20 -0
  180. package/plugins/runtime-modules/cdn/module.d.ts +131 -0
  181. package/plugins/runtime-modules/cdn/module.js +4 -0
  182. package/plugins/runtime-modules/cdn/platform.d.ts +25 -0
  183. package/plugins/runtime-modules/cdn/platform.js +73 -0
  184. package/plugins/runtime-modules/cdn/presets.d.ts +2 -0
  185. package/plugins/runtime-modules/cdn/presets.js +20 -0
  186. package/plugins/runtime-modules/cdn/server.d.ts +1 -0
  187. package/plugins/runtime-modules/cdn/server.js +14 -0
  188. package/plugins/runtime-modules/cdn/services/table.d.ts +11 -0
  189. package/plugins/runtime-modules/cdn/services/table.js +296 -0
  190. package/plugins/runtime-modules/cdn/services/upload.d.ts +20 -0
  191. package/plugins/runtime-modules/cdn/services/upload.js +146 -0
  192. package/plugins/runtime-modules/cdn/table-params.d.ts +10 -0
  193. package/plugins/runtime-modules/cdn/table-params.js +10 -0
  194. package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.d.ts +95 -0
  195. package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.js +156 -0
  196. package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.d.ts +18 -0
  197. package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.js +479 -0
  198. package/plugins/runtime-modules/cdn/widgets/upload/client.d.ts +12 -0
  199. package/plugins/runtime-modules/cdn/widgets/upload/client.js +138 -0
  200. package/plugins/runtime-modules/cdn/widgets/upload/config.d.ts +29 -0
  201. package/plugins/runtime-modules/cdn/widgets/upload/config.js +43 -0
  202. package/plugins/runtime-modules/cdn/widgets/upload/label-types.d.ts +24 -0
  203. package/plugins/runtime-modules/cdn/widgets/upload/label-types.js +1 -0
  204. package/plugins/runtime-modules/cdn/widgets/upload/labels.d.ts +4 -0
  205. package/plugins/runtime-modules/cdn/widgets/upload/labels.js +72 -0
  206. package/plugins/runtime-modules/cdn/widgets/upload/plugin.d.ts +3 -0
  207. package/plugins/runtime-modules/cdn/widgets/upload/plugin.js +7 -0
  208. package/plugins/runtime-modules/cdn/widgets/upload/server.d.ts +8 -0
  209. package/plugins/runtime-modules/cdn/widgets/upload/server.js +17 -0
  210. package/plugins/runtime-modules/cdn/widgets.d.ts +2 -0
  211. package/plugins/runtime-modules/cdn/widgets.js +13 -0
  212. package/plugins/runtime-modules/client-authoring-providers/admin.d.ts +1 -1
  213. package/plugins/runtime-modules/client-authoring-providers/admin.js +6 -0
  214. package/plugins/runtime-modules/client-manifests/admin.js +11 -1
  215. package/plugins/runtime-modules/client-manifests/common.js +6 -0
  216. package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -1
  217. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +1 -1
  218. package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
  219. package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
  220. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
  221. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +175 -0
  222. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
  223. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
  224. package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +1 -1
  225. package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
  226. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
  227. package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +1 -1
  228. package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
  229. package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
  230. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
  231. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
  232. package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
  233. package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
  234. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
  235. package/plugins/runtime-modules/core/widgets/table/client.js +36 -52
  236. package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
  237. package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
  238. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
  239. package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
  240. package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
  241. package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
  242. package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
  243. package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
  244. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
  245. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
  246. package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +5 -0
  247. package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
  248. package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
  249. package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
  250. package/plugins/runtime-modules/revisions/controller/client.js +74 -50
  251. package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
  252. package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
  253. package/plugins/runtime-modules/revisions/forms.js +1 -1
  254. package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
  255. package/plugins/runtime-modules/revisions/page-ids.js +4 -1
  256. package/plugins/runtime-modules/revisions/services/options.js +14 -4
  257. package/plugins/runtime-modules/revisions/services/table.js +41 -21
  258. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +76 -3
  259. package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
  260. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +39 -13
  261. package/plugins/runtime-modules/threads/client-data-providers.js +5 -0
  262. package/plugins/runtime-modules/threads/controller/client.js +62 -2
  263. package/plugins/runtime-modules/threads/controller/definition.js +48 -0
  264. package/plugins/runtime-modules/threads/data-providers.d.ts +22 -37
  265. package/plugins/runtime-modules/threads/data-providers.js +35 -24
  266. package/plugins/runtime-modules/threads/definition.d.ts +22 -37
  267. package/plugins/runtime-modules/threads/ids.d.ts +2 -0
  268. package/plugins/runtime-modules/threads/ids.js +2 -0
  269. package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
  270. package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
  271. package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
  272. package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
  273. package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +14 -80
  274. package/plugins/runtime-modules/threads/services/customer-file-table.js +27 -112
  275. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +4 -0
  276. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +4 -0
  277. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +15 -0
  278. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +5 -0
  279. package/server-helpers/runtime.js +0 -1
  280. package/styles/controls.css +4 -2
  281. package/styles/layout.css +7 -0
  282. package/theme/phi-antd-token-resolver.d.ts +8 -0
  283. package/theme/phi-antd-token-resolver.js +10 -0
  284. package/theme/phi-theme-color.d.ts +19 -0
  285. package/theme/phi-theme-color.js +42 -0
  286. package/theme/phi-theme-gradients.js +4 -22
  287. package/theme/phi-theme-palette-defaults.d.ts +16 -0
  288. package/theme/phi-theme-palette-defaults.js +103 -0
  289. package/types/cms-plugins.d.ts +6 -1
  290. package/types/collection-provider.d.ts +27 -0
  291. package/types/collection-signal-values.d.ts +2 -0
  292. package/types/collection-signal-values.js +23 -0
  293. package/types/collection-view-widget.d.ts +9 -0
  294. package/types/core-widget-placements.d.ts +6 -0
  295. package/types/signals.d.ts +2 -0
  296. package/types/signals.js +2 -0
  297. package/types/table-widget.d.ts +17 -3
  298. package/types/table-widget.js +0 -282
  299. package/types/tree-widget.d.ts +0 -1
  300. package/types/tree-widget.js +0 -60
  301. package/types/widget-runtime.d.ts +0 -1
  302. package/types.d.ts +1 -1
  303. package/types.js +1 -1
  304. package/plugins/runtime-modules/app/services/addresses-table.d.ts +0 -135
@@ -0,0 +1,95 @@
1
+ import "server-only";
2
+ import { type PhiGlobalTranslatorOptions } from "../../../../gateway/tr";
3
+ export declare function getPhiAdminCdnPageLabels(options: PhiGlobalTranslatorOptions): Promise<{
4
+ pageTitle: string;
5
+ pageDescription: string;
6
+ tableLabel: string;
7
+ columns: {
8
+ name: string;
9
+ version: string;
10
+ file: string;
11
+ size: string;
12
+ storage: string;
13
+ storageHint: string;
14
+ platform: string;
15
+ sha256: string;
16
+ sha256Hint: string;
17
+ state: string;
18
+ origin: string;
19
+ published: string;
20
+ };
21
+ storage: {
22
+ cdn: string;
23
+ link: string;
24
+ };
25
+ states: {
26
+ offered: string;
27
+ withdrawn: string;
28
+ deleted: string;
29
+ };
30
+ origins: {
31
+ cli: string;
32
+ upload: string;
33
+ addon: string;
34
+ };
35
+ filterState: string;
36
+ filterStateAll: string;
37
+ searchPlaceholder: string;
38
+ emptyTitle: string;
39
+ emptyText: string;
40
+ noCdn: string;
41
+ footer: string;
42
+ actions: {
43
+ upload: string;
44
+ check: string;
45
+ view: string;
46
+ copy: string;
47
+ withdraw: string;
48
+ delete: string;
49
+ adopt: string;
50
+ };
51
+ copied: string;
52
+ copyFailed: string;
53
+ confirmCancel: string;
54
+ withdraw: {
55
+ title: string;
56
+ text: string;
57
+ ok: string;
58
+ };
59
+ delete: {
60
+ title: string;
61
+ text: string;
62
+ linkNote: string;
63
+ ok: string;
64
+ };
65
+ uploadTitle: string;
66
+ detail: {
67
+ title: string;
68
+ key: string;
69
+ url: string;
70
+ sourceUrl: string;
71
+ contentType: string;
72
+ sizeBytes: string;
73
+ addon: string;
74
+ actor: string;
75
+ };
76
+ check: {
77
+ title: string;
78
+ tableLabel: string;
79
+ columns: {
80
+ key: string;
81
+ finding: string;
82
+ size: string;
83
+ recorded: string;
84
+ reason: string;
85
+ };
86
+ findings: {
87
+ unrecorded: string;
88
+ missing: string;
89
+ "size-mismatch": string;
90
+ };
91
+ empty: string;
92
+ footer: string;
93
+ footerConsistent: string;
94
+ };
95
+ }>;
@@ -0,0 +1,156 @@
1
+ import "server-only";
2
+ import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../../gateway/tr";
3
+ import { definePhiRuntimeModuleLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../../gateway/label-set";
4
+ import { PHI_CDN_ADMIN_PAGE_PRESET_KEY, PHI_CDN_RUNTIME_MODULE_IDENTITY } from "../ids";
5
+ /** The words of the Admin page `CDN`, in English, the Module's source language. */
6
+ const PHI_ADMIN_CDN_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_CDN_RUNTIME_MODULE_IDENTITY, {
7
+ key: `preset:${PHI_CDN_ADMIN_PAGE_PRESET_KEY}`,
8
+ ctx: PHI_TR_CTX_WEB_UI_LABEL,
9
+ labels: {
10
+ page_title: "CDN",
11
+ page_description: definePhiMessageLabel("Files published once under the Site's name and served from its CDN host."),
12
+ table_label: "CDN files",
13
+ column_name: "Name",
14
+ column_version: "Version",
15
+ column_file: "File",
16
+ column_size: "Size",
17
+ column_storage: "Storage",
18
+ column_storage_hint: definePhiMessageLabel("Copy: the CDN serves the bytes. Link: the source keeps them, and the Site sends visitors there."),
19
+ column_platform: "Platform",
20
+ column_sha256: "SHA-256",
21
+ column_sha256_hint: definePhiMessageLabel("Shortened here; copying the cell copies the whole checksum."),
22
+ column_state: "State",
23
+ column_origin: "Origin",
24
+ column_published: "Published",
25
+ storage_cdn: "Copy",
26
+ storage_link: "Link",
27
+ state_offered: "Offered",
28
+ state_withdrawn: "Withdrawn",
29
+ state_deleted: "Deleted",
30
+ origin_cli: "CLI",
31
+ origin_upload: "Upload",
32
+ origin_addon: "Add-on",
33
+ filter_state: "State",
34
+ filter_state_all: "All",
35
+ search_placeholder: "Search names and files",
36
+ empty_title: definePhiMessageLabel("No files published yet."),
37
+ empty_text: definePhiMessageLabel("Upload a file, or publish one with phis cdn publish."),
38
+ no_cdn: definePhiMessageLabel("This Site has no CDN yet. The operator attaches one on the server with phis cdn attach; then its files are listed here."),
39
+ footer: definePhiMessageLabel("%1 files of %2 total"),
40
+ action_upload: "Upload",
41
+ action_check: "Check",
42
+ action_view: "Details",
43
+ action_copy: "Copy address",
44
+ action_withdraw: "Withdraw",
45
+ action_delete: "Delete",
46
+ copied: definePhiMessageLabel("Address copied."),
47
+ copy_failed: definePhiMessageLabel("The browser did not allow copying the address."),
48
+ confirm_cancel: "Cancel",
49
+ withdraw_title: definePhiMessageLabel("Withdraw this file?"),
50
+ withdraw_text: definePhiMessageLabel("It is no longer offered: download pages stop listing it. The key stays taken, so nothing else can be published under it."),
51
+ withdraw_ok: "Withdraw",
52
+ delete_title: definePhiMessageLabel("Delete this file?"),
53
+ delete_text: definePhiMessageLabel("It is withdrawn and its bytes are removed from the CDN bucket. The key stays taken: no other file can ever be published under it. A cache may still serve the file until its copy expires."),
54
+ delete_link_note: definePhiMessageLabel("For a linked file no bytes are deleted: the source keeps them, and the entry is only withdrawn."),
55
+ delete_ok: "Delete",
56
+ upload_title: "Upload a file",
57
+ detail_title: "File details",
58
+ detail_key: "Key",
59
+ detail_url: "Address",
60
+ detail_source_url: "Source address",
61
+ detail_content_type: "Content type",
62
+ detail_size_bytes: "Size in bytes",
63
+ detail_addon: "Add-on",
64
+ detail_actor: "Uploaded by (user id)",
65
+ check_title: "Check bucket and catalogue",
66
+ check_table_label: "Check findings",
67
+ check_column_key: "Key",
68
+ check_column_finding: "Finding",
69
+ check_column_size: "Size in the bucket",
70
+ check_column_recorded: "Size recorded",
71
+ check_column_reason: "Why it cannot be adopted",
72
+ finding_unrecorded: "Not in the catalogue",
73
+ finding_missing: "Missing from the bucket",
74
+ finding_size_mismatch: "Size differs",
75
+ action_adopt: "Adopt",
76
+ check_empty: definePhiMessageLabel("Nothing to report."),
77
+ check_footer: definePhiMessageLabel("%1 objects in the bucket, %2 copied files in the catalogue."),
78
+ check_footer_consistent: definePhiMessageLabel("Bucket and catalogue agree: %1 objects, %2 copied files."),
79
+ },
80
+ });
81
+ export async function getPhiAdminCdnPageLabels(options) {
82
+ const labels = await getPhiLabelSet(options, PHI_ADMIN_CDN_PAGE_LABEL_SET);
83
+ return {
84
+ pageTitle: labels.page_title,
85
+ pageDescription: labels.page_description,
86
+ tableLabel: labels.table_label,
87
+ columns: {
88
+ name: labels.column_name,
89
+ version: labels.column_version,
90
+ file: labels.column_file,
91
+ size: labels.column_size,
92
+ storage: labels.column_storage,
93
+ storageHint: labels.column_storage_hint,
94
+ platform: labels.column_platform,
95
+ sha256: labels.column_sha256,
96
+ sha256Hint: labels.column_sha256_hint,
97
+ state: labels.column_state,
98
+ origin: labels.column_origin,
99
+ published: labels.column_published,
100
+ },
101
+ storage: { cdn: labels.storage_cdn, link: labels.storage_link },
102
+ states: { offered: labels.state_offered, withdrawn: labels.state_withdrawn, deleted: labels.state_deleted },
103
+ origins: { cli: labels.origin_cli, upload: labels.origin_upload, addon: labels.origin_addon },
104
+ filterState: labels.filter_state,
105
+ filterStateAll: labels.filter_state_all,
106
+ searchPlaceholder: labels.search_placeholder,
107
+ emptyTitle: labels.empty_title,
108
+ emptyText: labels.empty_text,
109
+ noCdn: labels.no_cdn,
110
+ footer: labels.footer,
111
+ actions: {
112
+ upload: labels.action_upload,
113
+ check: labels.action_check,
114
+ view: labels.action_view,
115
+ copy: labels.action_copy,
116
+ withdraw: labels.action_withdraw,
117
+ delete: labels.action_delete,
118
+ adopt: labels.action_adopt,
119
+ },
120
+ copied: labels.copied,
121
+ copyFailed: labels.copy_failed,
122
+ confirmCancel: labels.confirm_cancel,
123
+ withdraw: { title: labels.withdraw_title, text: labels.withdraw_text, ok: labels.withdraw_ok },
124
+ delete: { title: labels.delete_title, text: labels.delete_text, linkNote: labels.delete_link_note, ok: labels.delete_ok },
125
+ uploadTitle: labels.upload_title,
126
+ detail: {
127
+ title: labels.detail_title,
128
+ key: labels.detail_key,
129
+ url: labels.detail_url,
130
+ sourceUrl: labels.detail_source_url,
131
+ contentType: labels.detail_content_type,
132
+ sizeBytes: labels.detail_size_bytes,
133
+ addon: labels.detail_addon,
134
+ actor: labels.detail_actor,
135
+ },
136
+ check: {
137
+ title: labels.check_title,
138
+ tableLabel: labels.check_table_label,
139
+ columns: {
140
+ key: labels.check_column_key,
141
+ finding: labels.check_column_finding,
142
+ size: labels.check_column_size,
143
+ recorded: labels.check_column_recorded,
144
+ reason: labels.check_column_reason,
145
+ },
146
+ findings: {
147
+ unrecorded: labels.finding_unrecorded,
148
+ missing: labels.finding_missing,
149
+ "size-mismatch": labels.finding_size_mismatch,
150
+ },
151
+ empty: labels.check_empty,
152
+ footer: labels.check_footer,
153
+ footerConsistent: labels.check_footer_consistent,
154
+ },
155
+ };
156
+ }
@@ -0,0 +1,18 @@
1
+ import type { PhiCmsPageNode, PhiResolvedCmsPageTree } from "../../../../types/cms";
2
+ import type { PhiBlockRuntime } from "../../../../types";
3
+ /**
4
+ * The Admin page `CDN`: the catalogue as one Table, and three dialogs its actions open.
5
+ *
6
+ * - Upload (toolbar): the Module's upload Widget, which tells the Table to read again once a file is
7
+ * published.
8
+ * - Check (toolbar): a second Table on the same Provider, the `check` resource, which runs the check when
9
+ * the dialog opens (`remount`) and adopts what it can, row by row.
10
+ * - Details (row): the `record` Widget on the row, with the addresses in full.
11
+ *
12
+ * Copy address, Withdraw and Delete are the Provider's row actions; the two that change anything ask
13
+ * first. What any of them may do is Core's to decide, and Core refuses what a reader may not.
14
+ */
15
+ export declare function buildPhiDefaultAdminCdnPageTree({ page, runtime, }: {
16
+ page: PhiCmsPageNode;
17
+ runtime: PhiBlockRuntime;
18
+ }): Promise<PhiResolvedCmsPageTree>;