@phis/ui 0.4.7 → 0.4.10

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 (183) hide show
  1. package/components/cms/phi-cms-runtime-registry.d.ts +2 -1
  2. package/components/cms/phi-cms-runtime-registry.js +1 -1
  3. package/components/controls/phi-color-control.js +2 -1
  4. package/components/controls/phi-drawer-control-adapter.js +2 -3
  5. package/components/controls/phi-drawer-control.js +3 -3
  6. package/components/controls/phi-dropdown-control.js +2 -1
  7. package/components/controls/phi-float-button-control.js +3 -3
  8. package/components/controls/phi-modal-control-adapter.js +2 -2
  9. package/components/controls/phi-modal-control.js +3 -3
  10. package/components/controls/phi-ribbon-wrap-control.js +2 -1
  11. package/components/controls/phi-zoom-image-overlay.js +11 -5
  12. package/components/forms/content-entry-forms.js +1 -5
  13. package/components/forms/form-descriptor-runtime-client.js +2 -1
  14. package/components/forms/form-descriptor-text.d.ts +17 -0
  15. package/components/forms/form-descriptor-text.js +14 -0
  16. package/components/forms/runtime-form-controller-plugin.d.ts +0 -115
  17. package/components/forms/runtime-form-controller-plugin.js +1 -1
  18. package/components/forms/upload-form-control.d.ts +0 -7
  19. package/components/forms/upload-form-control.js +1 -1
  20. package/components/layouts/clients/phi-collapsible-layout-client.js +2 -1
  21. package/components/layouts/clients/phi-sequence-slot-editor.js +2 -1
  22. package/components/layouts/clients/phi-split-card-half.js +2 -1
  23. package/components/layouts/phi-base-layout.js +2 -1
  24. package/components/layouts/phi-layout-surface-box.js +2 -1
  25. package/components/media/phi-media-picker-server.js +3 -11
  26. package/components/navigation/use-phi-protected-mail.js +1 -9
  27. package/components/regions/presets/clients/sider-context.js +4 -2
  28. package/components/root/phi-config-provider.js +2 -1
  29. package/components/root/phi-dayjs-locale.d.ts +4 -1
  30. package/components/root/phi-dayjs-locale.js +2 -2
  31. package/components/root/phi-intl-locale.d.ts +7 -1
  32. package/components/root/phi-intl-locale.js +20 -15
  33. package/components/root/phi-root-layout.js +2 -1
  34. package/components/runtime/core-runtime-controller-plugin.d.ts +0 -84
  35. package/components/runtime/core-runtime-controller-plugin.js +1 -1
  36. package/components/runtime/runtime-signal-bus.js +39 -4
  37. package/components/state/use-phi-hydrated.d.ts +6 -0
  38. package/components/state/use-phi-hydrated.js +11 -0
  39. package/components/widgets/client/shared/phi-rendered-value.js +4 -3
  40. package/components/widgets/config/parser-primitives.d.ts +5 -0
  41. package/components/widgets/config/parser-primitives.js +11 -0
  42. package/components/widgets/label-sets/runtime-options.d.ts +1 -1
  43. package/components/widgets/server/builder-chrome.js +2 -6
  44. package/components/widgets/server/search.js +2 -6
  45. package/gateway/dashboard-cards-route.js +5 -7
  46. package/gateway/navigation-target-route.js +7 -9
  47. package/gateway/page-references-route.js +6 -8
  48. package/gateway/site-config.js +3 -0
  49. package/gateway/site-proxy.js +13 -2
  50. package/helpers/class-names.d.ts +7 -0
  51. package/helpers/class-names.js +10 -0
  52. package/helpers/cms-navigation-catalog.js +4 -2
  53. package/helpers/cms-page-catalog.js +35 -6
  54. package/helpers/cms-region-keys.d.ts +0 -1
  55. package/helpers/cms-region-keys.js +1 -1
  56. package/helpers/format-date-time.d.ts +14 -3
  57. package/helpers/format-date-time.js +27 -11
  58. package/helpers/region-page-scope.d.ts +1 -3
  59. package/helpers/region-page-scope.js +0 -4
  60. package/helpers/translation-format.d.ts +6 -0
  61. package/helpers/translation-format.js +15 -8
  62. package/package.json +2 -2
  63. package/plugins/runtime/phi-slot-child-frame-view.js +2 -1
  64. package/plugins/runtime/phi-slot-child-viewport-effects-observer.js +1 -1
  65. package/plugins/runtime-modules/admin/forms.js +1 -1
  66. package/plugins/runtime-modules/admin/trees/phi-default-admin-settings-page-tree.js +2 -5
  67. package/plugins/runtime-modules/app/forms.js +1 -1
  68. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +2 -6
  69. package/plugins/runtime-modules/asset/metadata-form.js +2 -6
  70. package/plugins/runtime-modules/asset/settings-forms.js +1 -1
  71. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +2 -5
  72. package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +2 -6
  73. package/plugins/runtime-modules/asset/widgets/area-upload/server.js +2 -6
  74. package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.js +1 -3
  75. package/plugins/runtime-modules/asset/widgets/image-inspector/server.js +2 -6
  76. package/plugins/runtime-modules/asset/widgets.js +5 -7
  77. package/plugins/runtime-modules/auth/admin-settings-forms.js +1 -1
  78. package/plugins/runtime-modules/auth/ids.d.ts +7 -7
  79. package/plugins/runtime-modules/auth/ids.js +7 -7
  80. package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +2 -6
  81. package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +2 -5
  82. package/plugins/runtime-modules/auth/widgets.d.ts +1 -2
  83. package/plugins/runtime-modules/auth/widgets.js +5 -7
  84. package/plugins/runtime-modules/avatar/overlay-tree.server.js +2 -6
  85. package/plugins/runtime-modules/avatar/widgets/account-avatar/server.js +2 -6
  86. package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/server.js +2 -6
  87. package/plugins/runtime-modules/avatar/widgets.js +3 -5
  88. package/plugins/runtime-modules/builder/clients/pages-workspace.d.ts +2 -3
  89. package/plugins/runtime-modules/builder/clients/pages-workspace.js +5 -18
  90. package/plugins/runtime-modules/builder/controller/draft-command-controller.js +1 -0
  91. package/plugins/runtime-modules/builder/controller/page-controller.js +1 -1
  92. package/plugins/runtime-modules/builder/controller/server-definition.js +3 -11
  93. package/plugins/runtime-modules/builder/controller/workspace-controller.js +2 -6
  94. package/plugins/runtime-modules/builder/developer-workspace-store.d.ts +2 -8
  95. package/plugins/runtime-modules/builder/developer-workspace-store.js +24 -44
  96. package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +0 -5
  97. package/plugins/runtime-modules/builder/edit-scaffold-drawer.js +2 -1
  98. package/plugins/runtime-modules/builder/inspector-section-widget.js +6 -31
  99. package/plugins/runtime-modules/builder/navigation-persistence.js +12 -3
  100. package/plugins/runtime-modules/builder/page-meta-form.js +4 -12
  101. package/plugins/runtime-modules/builder/page-presets.server.d.ts +0 -1
  102. package/plugins/runtime-modules/builder/page-presets.server.js +0 -24
  103. package/plugins/runtime-modules/builder/pages-workspace.js +6 -16
  104. package/plugins/runtime-modules/builder/persistence.d.ts +6 -4
  105. package/plugins/runtime-modules/builder/persistence.js +6 -7
  106. package/plugins/runtime-modules/builder/shells-workspace.js +3 -11
  107. package/plugins/runtime-modules/builder/signal-wiring-form.js +3 -7
  108. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +2 -6
  109. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +6 -26
  110. package/plugins/runtime-modules/builder/trees/phi-default-builder-settings-page-tree.js +2 -6
  111. package/plugins/runtime-modules/builder/widgets/developer-builder-pages-header/plugin.js +2 -6
  112. package/plugins/runtime-modules/builder/widgets/inspector-header/plugin.js +2 -6
  113. package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +3 -2
  114. package/plugins/runtime-modules/builder/widgets/structure-region/plugin.js +1 -6
  115. package/plugins/runtime-modules/builder/widgets.js +10 -12
  116. package/plugins/runtime-modules/contracts.d.ts +15 -1
  117. package/plugins/runtime-modules/contracts.js +10 -0
  118. package/plugins/runtime-modules/core/messaging/forms.js +1 -1
  119. package/plugins/runtime-modules/core/widgets/description/server.js +12 -9
  120. package/plugins/runtime-modules/core/widgets/dimension/plugin.js +2 -6
  121. package/plugins/runtime-modules/core/widgets/draft-status/plugin.js +2 -6
  122. package/plugins/runtime-modules/core/widgets/entry-list/config.js +2 -9
  123. package/plugins/runtime-modules/core/widgets/entry-list/view.server.js +1 -1
  124. package/plugins/runtime-modules/core/widgets/form-preview/client.js +2 -15
  125. package/plugins/runtime-modules/core/widgets/gallery/server.js +2 -6
  126. package/plugins/runtime-modules/core/widgets/image/server.js +2 -6
  127. package/plugins/runtime-modules/core/widgets/length/plugin.js +2 -6
  128. package/plugins/runtime-modules/core/widgets/markdown-toc/plugin.js +2 -6
  129. package/plugins/runtime-modules/core/widgets/page-title/server.js +2 -6
  130. package/plugins/runtime-modules/core/widgets/pagination/config.js +4 -8
  131. package/plugins/runtime-modules/core/widgets/search-results/config.js +2 -8
  132. package/plugins/runtime-modules/core/widgets/sidebar-navigation/server.d.ts +2 -2
  133. package/plugins/runtime-modules/core/widgets/sidebar-navigation/server.js +8 -13
  134. package/plugins/runtime-modules/core/widgets/theme-mode-switch/server.js +2 -6
  135. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +16 -31
  136. package/plugins/runtime-modules/core/widgets/timeline/client.js +9 -4
  137. package/plugins/runtime-modules/core/widgets/tour-button/server.js +2 -6
  138. package/plugins/runtime-modules/core/widgets.js +59 -61
  139. package/plugins/runtime-modules/dashboard/clients/dashboard-card-view.js +7 -5
  140. package/plugins/runtime-modules/dashboard/trees/phi-default-admin-dashboard-page-tree.js +2 -6
  141. package/plugins/runtime-modules/dashboard/trees/phi-default-area-dashboard-page-tree.js +2 -6
  142. package/plugins/runtime-modules/dashboard/trees/phi-default-builder-dashboard-page-tree.js +2 -6
  143. package/plugins/runtime-modules/descriptor-compiler.js +6 -6
  144. package/plugins/runtime-modules/groups/controller/client.d.ts +0 -56
  145. package/plugins/runtime-modules/groups/controller/client.js +1 -1
  146. package/plugins/runtime-modules/groups/forms.js +1 -5
  147. package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +2 -6
  148. package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +2 -6
  149. package/plugins/runtime-modules/localization/forms.js +2 -6
  150. package/plugins/runtime-modules/localization/services/options.js +19 -9
  151. package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +3 -11
  152. package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +3 -11
  153. package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +3 -11
  154. package/plugins/runtime-modules/revisions/forms.js +1 -1
  155. package/plugins/runtime-modules/revisions/services/table.js +6 -2
  156. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +2 -2
  157. package/plugins/runtime-modules/theme/controller/server-definition.js +2 -6
  158. package/plugins/runtime-modules/theme/trees/phi-default-builder-theme-page-tree.js +2 -6
  159. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +17 -21
  160. package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +0 -2
  161. package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +0 -8
  162. package/plugins/runtime-modules/theme/widgets.js +6 -8
  163. package/plugins/runtime-modules/threads/controller/client.d.ts +0 -78
  164. package/plugins/runtime-modules/threads/controller/client.js +1 -1
  165. package/plugins/runtime-modules/threads/forms.js +1 -1
  166. package/plugins/runtime-modules/threads/ids.d.ts +0 -1
  167. package/plugins/runtime-modules/threads/ids.js +0 -2
  168. package/plugins/runtime-modules/user-management/controller/client.d.ts +0 -73
  169. package/plugins/runtime-modules/user-management/controller/client.js +1 -1
  170. package/plugins/runtime-modules/user-management/forms.js +1 -5
  171. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +2 -6
  172. package/plugins/runtime-modules/video/widgets.js +2 -4
  173. package/server-helpers/cms-request.d.ts +19 -0
  174. package/server-helpers/cms-request.js +26 -8
  175. package/server-helpers/cms-root.js +6 -8
  176. package/server-helpers/public-login-route.js +6 -8
  177. package/server-helpers/runtime.js +1 -0
  178. package/server-helpers/search-index.js +58 -27
  179. package/types/length.js +8 -3
  180. package/types/site-config.d.ts +6 -0
  181. package/types/widget-runtime.d.ts +2 -0
  182. package/types.d.ts +5 -3
  183. package/types.js +3 -0
@@ -57,11 +57,9 @@ import { PHI_THEME_MODE_SWITCH_WIDGET_DEFINITION, } from "./widgets/theme-mode-s
57
57
  import { PHI_TOUR_BUTTON_WIDGET_DEFINITION, } from "./widgets/tour-button/config";
58
58
  import { PHI_TABLE_WIDGET_DEFINITION, } from "./widgets/table/config";
59
59
  import { PHI_TREE_WIDGET_DEFINITION, } from "./widgets/tree/config";
60
- function defineFirstPartyWidget(options) {
61
- return options;
62
- }
60
+ import { definePhiFirstPartyWidget } from "../contracts";
63
61
  export const PHI_RUNTIME_MODULE_WIDGETS = [
64
- defineFirstPartyWidget({
62
+ definePhiFirstPartyWidget({
65
63
  definition: PHI_DATE_INPUT_WIDGET_DEFINITION,
66
64
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
67
65
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -70,189 +68,189 @@ export const PHI_RUNTIME_MODULE_WIDGETS = [
70
68
  loadPreview: () => import("./widgets/date-input/plugin")
71
69
  .then((module) => module.PHI_DATE_INPUT_WIDGET_PLUGIN),
72
70
  }),
73
- defineFirstPartyWidget({
71
+ definePhiFirstPartyWidget({
74
72
  definition: PHI_ACCOUNT_WIDGET_DEFINITION,
75
73
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
76
74
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
77
75
  loadRuntime: () => import("./widgets/account/plugin").then((module) => module.PHI_ACCOUNT_WIDGET_PLUGIN),
78
76
  loadPreview: () => import("./widgets/account/plugin").then((module) => module.PHI_ACCOUNT_WIDGET_PLUGIN),
79
77
  }),
80
- defineFirstPartyWidget({
78
+ definePhiFirstPartyWidget({
81
79
  definition: PHI_BRAND_WIDGET_DEFINITION,
82
80
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
83
81
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
84
82
  loadRuntime: () => import("./widgets/brand/plugin").then((module) => module.PHI_BRAND_WIDGET_PLUGIN),
85
83
  loadPreview: () => import("./widgets/brand/plugin").then((module) => module.PHI_BRAND_WIDGET_PLUGIN),
86
84
  }),
87
- defineFirstPartyWidget({
85
+ definePhiFirstPartyWidget({
88
86
  definition: PHI_BREADCRUMB_WIDGET_DEFINITION,
89
87
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
90
88
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
91
89
  loadRuntime: () => import("./widgets/breadcrumb/plugin").then((module) => module.PHI_BREADCRUMB_WIDGET_PLUGIN),
92
90
  loadPreview: () => import("./widgets/breadcrumb/plugin").then((module) => module.PHI_BREADCRUMB_WIDGET_PLUGIN),
93
91
  }),
94
- defineFirstPartyWidget({
92
+ definePhiFirstPartyWidget({
95
93
  definition: PHI_BUTTON_WIDGET_DEFINITION,
96
94
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
97
95
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
98
96
  loadRuntime: () => import("./widgets/button/plugin").then((module) => module.PHI_BUTTON_WIDGET_PLUGIN),
99
97
  loadPreview: () => import("./widgets/button/plugin").then((module) => module.PHI_BUTTON_WIDGET_PLUGIN),
100
98
  }),
101
- defineFirstPartyWidget({
99
+ definePhiFirstPartyWidget({
102
100
  definition: PHI_CARD_WIDGET_DEFINITION,
103
101
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
104
102
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
105
103
  loadRuntime: () => import("./widgets/card/plugin").then((module) => module.PHI_CARD_WIDGET_PLUGIN),
106
104
  loadPreview: () => import("./widgets/card/plugin").then((module) => module.PHI_CARD_WIDGET_PLUGIN),
107
105
  }),
108
- defineFirstPartyWidget({
106
+ definePhiFirstPartyWidget({
109
107
  definition: PHI_CASCADER_WIDGET_DEFINITION,
110
108
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
111
109
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
112
110
  loadRuntime: () => import("./widgets/cascader/plugin").then((module) => module.PHI_CASCADER_WIDGET_PLUGIN),
113
111
  loadPreview: () => import("./widgets/cascader/plugin").then((module) => module.PHI_CASCADER_WIDGET_PLUGIN),
114
112
  }),
115
- defineFirstPartyWidget({
113
+ definePhiFirstPartyWidget({
116
114
  definition: PHI_COLLECTION_VIEW_WIDGET_DEFINITION,
117
115
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
118
116
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
119
117
  loadRuntime: () => import("./widgets/collection-view/plugin").then((module) => module.PHI_COLLECTION_VIEW_WIDGET_PLUGIN),
120
118
  loadPreview: () => import("./widgets/collection-view/plugin").then((module) => module.PHI_COLLECTION_VIEW_WIDGET_PLUGIN),
121
119
  }),
122
- defineFirstPartyWidget({
120
+ definePhiFirstPartyWidget({
123
121
  definition: PHI_COLOR_WIDGET_DEFINITION,
124
122
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
125
123
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
126
124
  loadRuntime: () => import("./widgets/color/plugin").then((module) => module.PHI_COLOR_WIDGET_PLUGIN),
127
125
  loadPreview: () => import("./widgets/color/plugin").then((module) => module.PHI_COLOR_WIDGET_PLUGIN),
128
126
  }),
129
- defineFirstPartyWidget({
127
+ definePhiFirstPartyWidget({
130
128
  definition: PHI_COMMAND_TOOLBAR_WIDGET_DEFINITION,
131
129
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
132
130
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
133
131
  loadRuntime: () => import("./widgets/command-toolbar/plugin").then((module) => module.PHI_COMMAND_TOOLBAR_WIDGET_PLUGIN),
134
132
  loadPreview: () => import("./widgets/command-toolbar/plugin").then((module) => module.PHI_COMMAND_TOOLBAR_WIDGET_PLUGIN),
135
133
  }),
136
- defineFirstPartyWidget({
134
+ definePhiFirstPartyWidget({
137
135
  definition: PHI_DESCRIPTION_WIDGET_DEFINITION,
138
136
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
139
137
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
140
138
  loadRuntime: () => import("./widgets/description/plugin").then((module) => module.PHI_DESCRIPTION_WIDGET_PLUGIN),
141
139
  loadPreview: () => import("./widgets/description/plugin").then((module) => module.PHI_DESCRIPTION_WIDGET_PLUGIN),
142
140
  }),
143
- defineFirstPartyWidget({
141
+ definePhiFirstPartyWidget({
144
142
  definition: PHI_DRAFT_STATUS_WIDGET_DEFINITION,
145
143
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
146
144
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
147
145
  loadRuntime: () => import("./widgets/draft-status/plugin").then((module) => module.PHI_DRAFT_STATUS_WIDGET_PLUGIN),
148
146
  loadPreview: () => import("./widgets/draft-status/plugin").then((module) => module.PHI_DRAFT_STATUS_WIDGET_PLUGIN),
149
147
  }),
150
- defineFirstPartyWidget({
148
+ definePhiFirstPartyWidget({
151
149
  definition: PHI_DIMENSION_WIDGET_DEFINITION,
152
150
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
153
151
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
154
152
  loadRuntime: () => import("./widgets/dimension/plugin").then((module) => module.PHI_DIMENSION_WIDGET_PLUGIN),
155
153
  loadPreview: () => import("./widgets/dimension/plugin").then((module) => module.PHI_DIMENSION_WIDGET_PLUGIN),
156
154
  }),
157
- defineFirstPartyWidget({
155
+ definePhiFirstPartyWidget({
158
156
  definition: PHI_LENGTH_WIDGET_DEFINITION,
159
157
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
160
158
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
161
159
  loadRuntime: () => import("./widgets/length/plugin").then((module) => module.PHI_LENGTH_WIDGET_PLUGIN),
162
160
  loadPreview: () => import("./widgets/length/plugin").then((module) => module.PHI_LENGTH_WIDGET_PLUGIN),
163
161
  }),
164
- defineFirstPartyWidget({
162
+ definePhiFirstPartyWidget({
165
163
  definition: PHI_FORM_WIDGET_DEFINITION,
166
164
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
167
165
  renderPolicies: { runtime: "custom", preview: "custom", authoring: "custom" },
168
166
  loadRuntime: () => import("./widgets/form/plugin").then((module) => module.PHI_FORM_WIDGET_PLUGIN),
169
167
  loadPreview: () => import("./widgets/form/plugin").then((module) => module.PHI_FORM_WIDGET_PLUGIN),
170
168
  }),
171
- defineFirstPartyWidget({
169
+ definePhiFirstPartyWidget({
172
170
  definition: PHI_FORM_PREVIEW_WIDGET_DEFINITION,
173
171
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
174
172
  renderPolicies: { runtime: "custom", preview: "custom", authoring: "custom" },
175
173
  loadRuntime: () => import("./widgets/form-preview/plugin").then((module) => module.PHI_FORM_PREVIEW_WIDGET_PLUGIN),
176
174
  loadPreview: () => import("./widgets/form-preview/plugin").then((module) => module.PHI_FORM_PREVIEW_WIDGET_PLUGIN),
177
175
  }),
178
- defineFirstPartyWidget({
176
+ definePhiFirstPartyWidget({
179
177
  definition: PHI_HEADER_NAVIGATION_WIDGET_DEFINITION,
180
178
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
181
179
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
182
180
  loadRuntime: () => import("./widgets/header-navigation/plugin").then((module) => module.PHI_HEADER_NAVIGATION_WIDGET_PLUGIN),
183
181
  loadPreview: () => import("./widgets/header-navigation/plugin").then((module) => module.PHI_HEADER_NAVIGATION_WIDGET_PLUGIN),
184
182
  }),
185
- defineFirstPartyWidget({
183
+ definePhiFirstPartyWidget({
186
184
  definition: PHI_HTML_WIDGET_DEFINITION,
187
185
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
188
186
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
189
187
  loadRuntime: () => import("./widgets/html/plugin").then((module) => module.PHI_HTML_WIDGET_PLUGIN),
190
188
  loadPreview: () => import("./widgets/html/plugin").then((module) => module.PHI_HTML_WIDGET_PLUGIN),
191
189
  }),
192
- defineFirstPartyWidget({
190
+ definePhiFirstPartyWidget({
193
191
  definition: PHI_ICON_WIDGET_DEFINITION,
194
192
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
195
193
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
196
194
  loadRuntime: () => import("./widgets/icon/plugin").then((module) => module.PHI_ICON_WIDGET_PLUGIN),
197
195
  loadPreview: () => import("./widgets/icon/plugin").then((module) => module.PHI_ICON_WIDGET_PLUGIN),
198
196
  }),
199
- defineFirstPartyWidget({
197
+ definePhiFirstPartyWidget({
200
198
  definition: PHI_IMAGE_WIDGET_DEFINITION,
201
199
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
202
200
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
203
201
  loadRuntime: () => import("./widgets/image/plugin").then((module) => module.PHI_IMAGE_WIDGET_PLUGIN),
204
202
  loadPreview: () => import("./widgets/image/plugin").then((module) => module.PHI_IMAGE_WIDGET_PLUGIN),
205
203
  }),
206
- defineFirstPartyWidget({
204
+ definePhiFirstPartyWidget({
207
205
  definition: PHI_INPUT_WIDGET_DEFINITION,
208
206
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
209
207
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
210
208
  loadRuntime: () => import("./widgets/input/plugin").then((module) => module.PHI_INPUT_WIDGET_PLUGIN),
211
209
  loadPreview: () => import("./widgets/input/plugin").then((module) => module.PHI_INPUT_WIDGET_PLUGIN),
212
210
  }),
213
- defineFirstPartyWidget({
211
+ definePhiFirstPartyWidget({
214
212
  definition: PHI_OTP_WIDGET_DEFINITION,
215
213
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
216
214
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
217
215
  loadRuntime: () => import("./widgets/otp/plugin").then((module) => module.PHI_OTP_WIDGET_PLUGIN),
218
216
  loadPreview: () => import("./widgets/otp/plugin").then((module) => module.PHI_OTP_WIDGET_PLUGIN),
219
217
  }),
220
- defineFirstPartyWidget({
218
+ definePhiFirstPartyWidget({
221
219
  definition: PHI_NUMBER_INPUT_WIDGET_DEFINITION,
222
220
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
223
221
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
224
222
  loadRuntime: () => import("./widgets/number-input/plugin").then((module) => module.PHI_NUMBER_INPUT_WIDGET_PLUGIN),
225
223
  loadPreview: () => import("./widgets/number-input/plugin").then((module) => module.PHI_NUMBER_INPUT_WIDGET_PLUGIN),
226
224
  }),
227
- defineFirstPartyWidget({
225
+ definePhiFirstPartyWidget({
228
226
  definition: PHI_SLIDER_WIDGET_DEFINITION,
229
227
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
230
228
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
231
229
  loadRuntime: () => import("./widgets/slider/plugin").then((module) => module.PHI_SLIDER_WIDGET_PLUGIN),
232
230
  loadPreview: () => import("./widgets/slider/plugin").then((module) => module.PHI_SLIDER_WIDGET_PLUGIN),
233
231
  }),
234
- defineFirstPartyWidget({
232
+ definePhiFirstPartyWidget({
235
233
  definition: PHI_RATE_WIDGET_DEFINITION,
236
234
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
237
235
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
238
236
  loadRuntime: () => import("./widgets/rate/plugin").then((module) => module.PHI_RATE_WIDGET_PLUGIN),
239
237
  loadPreview: () => import("./widgets/rate/plugin").then((module) => module.PHI_RATE_WIDGET_PLUGIN),
240
238
  }),
241
- defineFirstPartyWidget({
239
+ definePhiFirstPartyWidget({
242
240
  definition: PHI_CHECKBOX_WIDGET_DEFINITION,
243
241
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
244
242
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
245
243
  loadRuntime: () => import("./widgets/checkbox/plugin").then((module) => module.PHI_CHECKBOX_WIDGET_PLUGIN),
246
244
  loadPreview: () => import("./widgets/checkbox/plugin").then((module) => module.PHI_CHECKBOX_WIDGET_PLUGIN),
247
245
  }),
248
- defineFirstPartyWidget({
246
+ definePhiFirstPartyWidget({
249
247
  definition: PHI_CHECKBOX_GROUP_WIDGET_DEFINITION,
250
248
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
251
249
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
252
250
  loadRuntime: () => import("./widgets/checkbox-group/plugin").then((module) => module.PHI_CHECKBOX_GROUP_WIDGET_PLUGIN),
253
251
  loadPreview: () => import("./widgets/checkbox-group/plugin").then((module) => module.PHI_CHECKBOX_GROUP_WIDGET_PLUGIN),
254
252
  }),
255
- defineFirstPartyWidget({
253
+ definePhiFirstPartyWidget({
256
254
  definition: PHI_SLOT_UPLOAD_WIDGET_DEFINITION,
257
255
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
258
256
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -261,112 +259,112 @@ export const PHI_RUNTIME_MODULE_WIDGETS = [
261
259
  loadPreview: () => import("./widgets/slot-upload/plugin")
262
260
  .then((module) => module.PHI_SLOT_UPLOAD_WIDGET_PLUGIN),
263
261
  }),
264
- defineFirstPartyWidget({
262
+ definePhiFirstPartyWidget({
265
263
  definition: PHI_LOCALE_WIDGET_DEFINITION,
266
264
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
267
265
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
268
266
  loadRuntime: () => import("./widgets/locale/plugin").then((module) => module.PHI_LOCALE_WIDGET_PLUGIN),
269
267
  loadPreview: () => import("./widgets/locale/plugin").then((module) => module.PHI_LOCALE_WIDGET_PLUGIN),
270
268
  }),
271
- defineFirstPartyWidget({
269
+ definePhiFirstPartyWidget({
272
270
  definition: PHI_MARKDOWN_TOC_WIDGET_DEFINITION,
273
271
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
274
272
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
275
273
  loadRuntime: () => import("./widgets/markdown-toc/plugin").then((module) => module.PHI_MARKDOWN_TOC_WIDGET_PLUGIN),
276
274
  loadPreview: () => import("./widgets/markdown-toc/plugin").then((module) => module.PHI_MARKDOWN_TOC_WIDGET_PLUGIN),
277
275
  }),
278
- defineFirstPartyWidget({
276
+ definePhiFirstPartyWidget({
279
277
  definition: PHI_MARKDOWN_WIDGET_DEFINITION,
280
278
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
281
279
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
282
280
  loadRuntime: () => import("./widgets/markdown/plugin").then((module) => module.PHI_MARKDOWN_WIDGET_PLUGIN),
283
281
  loadPreview: () => import("./widgets/markdown/plugin").then((module) => module.PHI_MARKDOWN_WIDGET_PLUGIN),
284
282
  }),
285
- defineFirstPartyWidget({
283
+ definePhiFirstPartyWidget({
286
284
  definition: PHI_MULTI_SELECT_WIDGET_DEFINITION,
287
285
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
288
286
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
289
287
  loadRuntime: () => import("./widgets/multi-select/plugin").then((module) => module.PHI_MULTI_SELECT_WIDGET_PLUGIN),
290
288
  loadPreview: () => import("./widgets/multi-select/plugin").then((module) => module.PHI_MULTI_SELECT_WIDGET_PLUGIN),
291
289
  }),
292
- defineFirstPartyWidget({
290
+ definePhiFirstPartyWidget({
293
291
  definition: PHI_PAGE_TITLE_WIDGET_DEFINITION,
294
292
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
295
293
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
296
294
  loadRuntime: () => import("./widgets/page-title/plugin").then((module) => module.PHI_PAGE_TITLE_WIDGET_PLUGIN),
297
295
  loadPreview: () => import("./widgets/page-title/plugin").then((module) => module.PHI_PAGE_TITLE_WIDGET_PLUGIN),
298
296
  }),
299
- defineFirstPartyWidget({
297
+ definePhiFirstPartyWidget({
300
298
  definition: PHI_PAGINATION_WIDGET_DEFINITION,
301
299
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
302
300
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
303
301
  loadRuntime: () => import("./widgets/pagination/plugin").then((module) => module.PHI_PAGINATION_WIDGET_PLUGIN),
304
302
  loadPreview: () => import("./widgets/pagination/plugin").then((module) => module.PHI_PAGINATION_WIDGET_PLUGIN),
305
303
  }),
306
- defineFirstPartyWidget({
304
+ definePhiFirstPartyWidget({
307
305
  definition: PHI_QUICK_LINKS_WIDGET_DEFINITION,
308
306
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
309
307
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
310
308
  loadRuntime: () => import("./widgets/quick-links/plugin").then((module) => module.PHI_QUICK_LINKS_WIDGET_PLUGIN),
311
309
  loadPreview: () => import("./widgets/quick-links/plugin").then((module) => module.PHI_QUICK_LINKS_WIDGET_PLUGIN),
312
310
  }),
313
- defineFirstPartyWidget({
311
+ definePhiFirstPartyWidget({
314
312
  definition: PHI_RECORD_WIDGET_DEFINITION,
315
313
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
316
314
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
317
315
  loadRuntime: () => import("./widgets/record/plugin").then((module) => module.PHI_RECORD_WIDGET_PLUGIN),
318
316
  loadPreview: () => import("./widgets/record/plugin").then((module) => module.PHI_RECORD_WIDGET_PLUGIN),
319
317
  }),
320
- defineFirstPartyWidget({
318
+ definePhiFirstPartyWidget({
321
319
  definition: PHI_RESULT_WIDGET_DEFINITION,
322
320
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
323
321
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
324
322
  loadRuntime: () => import("./widgets/result/plugin").then((module) => module.PHI_RESULT_WIDGET_PLUGIN),
325
323
  loadPreview: () => import("./widgets/result/plugin").then((module) => module.PHI_RESULT_WIDGET_PLUGIN),
326
324
  }),
327
- defineFirstPartyWidget({
325
+ definePhiFirstPartyWidget({
328
326
  definition: PHI_SEGMENTED_WIDGET_DEFINITION,
329
327
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
330
328
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
331
329
  loadRuntime: () => import("./widgets/segmented/plugin").then((module) => module.PHI_SEGMENTED_WIDGET_PLUGIN),
332
330
  loadPreview: () => import("./widgets/segmented/plugin").then((module) => module.PHI_SEGMENTED_WIDGET_PLUGIN),
333
331
  }),
334
- defineFirstPartyWidget({
332
+ definePhiFirstPartyWidget({
335
333
  definition: PHI_SELECT_BOX_WIDGET_DEFINITION,
336
334
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
337
335
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
338
336
  loadRuntime: () => import("./widgets/select-box/plugin").then((module) => module.PHI_SELECT_BOX_WIDGET_PLUGIN),
339
337
  loadPreview: () => import("./widgets/select-box/plugin").then((module) => module.PHI_SELECT_BOX_WIDGET_PLUGIN),
340
338
  }),
341
- defineFirstPartyWidget({
339
+ definePhiFirstPartyWidget({
342
340
  definition: PHI_SIDEBAR_NAVIGATION_WIDGET_DEFINITION,
343
341
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
344
342
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
345
343
  loadRuntime: () => import("./widgets/sidebar-navigation/plugin").then((module) => module.PHI_SIDEBAR_NAVIGATION_WIDGET_PLUGIN),
346
344
  loadPreview: () => import("./widgets/sidebar-navigation/plugin").then((module) => module.PHI_SIDEBAR_NAVIGATION_WIDGET_PLUGIN),
347
345
  }),
348
- defineFirstPartyWidget({
346
+ definePhiFirstPartyWidget({
349
347
  definition: PHI_SIMPLE_TEXT_WIDGET_DEFINITION,
350
348
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
351
349
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
352
350
  loadRuntime: () => import("./widgets/simple-text/plugin").then((module) => module.PHI_SIMPLE_TEXT_WIDGET_PLUGIN),
353
351
  loadPreview: () => import("./widgets/simple-text/plugin").then((module) => module.PHI_SIMPLE_TEXT_WIDGET_PLUGIN),
354
352
  }),
355
- defineFirstPartyWidget({
353
+ definePhiFirstPartyWidget({
356
354
  definition: PHI_GALLERY_WIDGET_DEFINITION,
357
355
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
358
356
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
359
357
  loadRuntime: () => import("./widgets/gallery/plugin").then((module) => module.PHI_GALLERY_WIDGET_PLUGIN),
360
358
  loadPreview: () => import("./widgets/gallery/plugin").then((module) => module.PHI_GALLERY_WIDGET_PLUGIN),
361
359
  }),
362
- defineFirstPartyWidget({
360
+ definePhiFirstPartyWidget({
363
361
  definition: PHI_STEPS_WIDGET_DEFINITION,
364
362
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
365
363
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
366
364
  loadRuntime: () => import("./widgets/steps/plugin").then((module) => module.PHI_STEPS_WIDGET_PLUGIN),
367
365
  loadPreview: () => import("./widgets/steps/plugin").then((module) => module.PHI_STEPS_WIDGET_PLUGIN),
368
366
  }),
369
- defineFirstPartyWidget({
367
+ definePhiFirstPartyWidget({
370
368
  definition: PHI_TIMELINE_WIDGET_DEFINITION,
371
369
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
372
370
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -374,14 +372,14 @@ export const PHI_RUNTIME_MODULE_WIDGETS = [
374
372
  loadPreview: () => import("./widgets/timeline/plugin").then((module) => module.PHI_TIMELINE_WIDGET_PLUGIN),
375
373
  }),
376
374
  // The Site's own search (SEARCH.md): the box a visitor types into and the Page that answers it.
377
- defineFirstPartyWidget({
375
+ definePhiFirstPartyWidget({
378
376
  definition: PHI_SEARCH_BOX_WIDGET_DEFINITION,
379
377
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
380
378
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
381
379
  loadRuntime: () => import("./widgets/search-box/plugin").then((module) => module.PHI_SEARCH_BOX_WIDGET_PLUGIN),
382
380
  loadPreview: () => import("./widgets/search-box/plugin").then((module) => module.PHI_SEARCH_BOX_WIDGET_PLUGIN),
383
381
  }),
384
- defineFirstPartyWidget({
382
+ definePhiFirstPartyWidget({
385
383
  definition: PHI_SEARCH_RESULTS_WIDGET_DEFINITION,
386
384
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
387
385
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -389,21 +387,21 @@ export const PHI_RUNTIME_MODULE_WIDGETS = [
389
387
  loadPreview: () => import("./widgets/search-results/plugin").then((module) => module.PHI_SEARCH_RESULTS_WIDGET_PLUGIN),
390
388
  }),
391
389
  // A content kind's entries and one entry of it, for every kind's Module (`CONTENT_ENTRIES.md`).
392
- defineFirstPartyWidget({
390
+ definePhiFirstPartyWidget({
393
391
  definition: PHI_ENTRY_LIST_WIDGET_DEFINITION,
394
392
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
395
393
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
396
394
  loadRuntime: () => import("./widgets/entry-list/plugin").then((module) => module.PHI_ENTRY_LIST_WIDGET_PLUGIN),
397
395
  loadPreview: () => import("./widgets/entry-list/plugin").then((module) => module.PHI_ENTRY_LIST_WIDGET_PLUGIN),
398
396
  }),
399
- defineFirstPartyWidget({
397
+ definePhiFirstPartyWidget({
400
398
  definition: PHI_ENTRY_DETAIL_WIDGET_DEFINITION,
401
399
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
402
400
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
403
401
  loadRuntime: () => import("./widgets/entry-detail/plugin").then((module) => module.PHI_ENTRY_DETAIL_WIDGET_PLUGIN),
404
402
  loadPreview: () => import("./widgets/entry-detail/plugin").then((module) => module.PHI_ENTRY_DETAIL_WIDGET_PLUGIN),
405
403
  }),
406
- defineFirstPartyWidget({
404
+ definePhiFirstPartyWidget({
407
405
  definition: PHI_ENTRY_HEADER_WIDGET_DEFINITION,
408
406
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
409
407
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -411,63 +409,63 @@ export const PHI_RUNTIME_MODULE_WIDGETS = [
411
409
  loadPreview: () => import("./widgets/entry-header/plugin").then((module) => module.PHI_ENTRY_HEADER_WIDGET_PLUGIN),
412
410
  }),
413
411
  // A conversation, for every Module that runs conversations of its own kind (`messaging/`).
414
- defineFirstPartyWidget({
412
+ definePhiFirstPartyWidget({
415
413
  definition: PHI_THREAD_CONVERSATION_WIDGET_DEFINITION,
416
414
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
417
415
  renderPolicies: { runtime: "custom", preview: "custom", authoring: "custom" },
418
416
  loadRuntime: () => import("./widgets/thread-conversation/plugin").then((module) => module.PHI_THREAD_CONVERSATION_WIDGET_PLUGIN),
419
417
  loadPreview: () => import("./widgets/thread-conversation/plugin").then((module) => module.PHI_THREAD_CONVERSATION_WIDGET_PLUGIN),
420
418
  }),
421
- defineFirstPartyWidget({
419
+ definePhiFirstPartyWidget({
422
420
  definition: PHI_FLOAT_BUTTON_WIDGET_DEFINITION,
423
421
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
424
422
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
425
423
  loadRuntime: () => import("./widgets/float-button/plugin").then((module) => module.PHI_FLOAT_BUTTON_WIDGET_PLUGIN),
426
424
  loadPreview: () => import("./widgets/float-button/plugin").then((module) => module.PHI_FLOAT_BUTTON_WIDGET_PLUGIN),
427
425
  }),
428
- defineFirstPartyWidget({
426
+ definePhiFirstPartyWidget({
429
427
  definition: PHI_SPACER_WIDGET_DEFINITION,
430
428
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
431
429
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
432
430
  loadRuntime: () => import("./widgets/spacer/plugin").then((module) => module.PHI_SPACER_WIDGET_PLUGIN),
433
431
  loadPreview: () => import("./widgets/spacer/plugin").then((module) => module.PHI_SPACER_WIDGET_PLUGIN),
434
432
  }),
435
- defineFirstPartyWidget({
433
+ definePhiFirstPartyWidget({
436
434
  definition: PHI_SWITCH_WIDGET_DEFINITION,
437
435
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
438
436
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
439
437
  loadRuntime: () => import("./widgets/switch/plugin").then((module) => module.PHI_SWITCH_WIDGET_PLUGIN),
440
438
  loadPreview: () => import("./widgets/switch/plugin").then((module) => module.PHI_SWITCH_WIDGET_PLUGIN),
441
439
  }),
442
- defineFirstPartyWidget({
440
+ definePhiFirstPartyWidget({
443
441
  definition: PHI_THEME_MODE_SWITCH_WIDGET_DEFINITION,
444
442
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
445
443
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
446
444
  loadRuntime: () => import("./widgets/theme-mode-switch/plugin").then((module) => module.PHI_THEME_MODE_SWITCH_WIDGET_PLUGIN),
447
445
  loadPreview: () => import("./widgets/theme-mode-switch/plugin").then((module) => module.PHI_THEME_MODE_SWITCH_WIDGET_PLUGIN),
448
446
  }),
449
- defineFirstPartyWidget({
447
+ definePhiFirstPartyWidget({
450
448
  definition: PHI_TOUR_BUTTON_WIDGET_DEFINITION,
451
449
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
452
450
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
453
451
  loadRuntime: () => import("./widgets/tour-button/plugin").then((module) => module.PHI_TOUR_BUTTON_WIDGET_PLUGIN),
454
452
  loadPreview: () => import("./widgets/tour-button/plugin").then((module) => module.PHI_TOUR_BUTTON_WIDGET_PLUGIN),
455
453
  }),
456
- defineFirstPartyWidget({
454
+ definePhiFirstPartyWidget({
457
455
  definition: PHI_TAB_BAR_WIDGET_DEFINITION,
458
456
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
459
457
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
460
458
  loadRuntime: () => import("../../../components/widgets/plugins/stack-tabs-widget-plugin").then((module) => module.PHI_TAB_BAR_WIDGET_PLUGIN),
461
459
  loadPreview: () => import("../../../components/widgets/plugins/stack-tabs-widget-plugin").then((module) => module.PHI_TAB_BAR_WIDGET_PLUGIN),
462
460
  }),
463
- defineFirstPartyWidget({
461
+ definePhiFirstPartyWidget({
464
462
  definition: PHI_TABLE_WIDGET_DEFINITION,
465
463
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
466
464
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
467
465
  loadRuntime: () => import("./widgets/table/plugin").then((module) => module.PHI_TABLE_WIDGET_PLUGIN),
468
466
  loadPreview: () => import("./widgets/table/plugin").then((module) => module.PHI_TABLE_WIDGET_PLUGIN),
469
467
  }),
470
- defineFirstPartyWidget({
468
+ definePhiFirstPartyWidget({
471
469
  definition: PHI_TREE_WIDGET_DEFINITION,
472
470
  ownerModuleId: PHI_CORE_RUNTIME_MODULE_ID,
473
471
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -13,7 +13,7 @@ import { usePhiPathname } from "../../../../components/runtime/use-phi-pathname"
13
13
  import { readPhiDashboardCardPayload, readPhiDashboardCardRows, readPhiDashboardSeriesHeadline, } from "../card-rows";
14
14
  import { PhiTimelineControl } from "../../../../components/controls/phi-timeline-control";
15
15
  import { PhiSeriesChartControl } from "../../../../components/controls/phi-series-chart-control";
16
- import { usePhiIntlLocale } from "../../../../components/root/phi-intl-locale";
16
+ import { usePhiIntlLocale, usePhiIntlRenderedAt, usePhiIntlTimeZone } from "../../../../components/root/phi-intl-locale";
17
17
  import { formatPhiDate, formatPhiRelativeTime } from "../../../../helpers/format-date-time";
18
18
  /**
19
19
  * A Dashboard, drawn.
@@ -53,11 +53,12 @@ const CARD_BODY_BY_FORM = {
53
53
  */
54
54
  function PhiDashboardCardList({ entries }) {
55
55
  const locale = usePhiIntlLocale();
56
+ const renderedAt = usePhiIntlRenderedAt();
56
57
  return (_jsx(PhiTimelineControl, { items: entries.slice(0, PHI_DASHBOARD_CARD_LIST_LIMIT).map((entry) => ({
57
58
  key: entry.key,
58
59
  ...(entry.title ? { title: entry.title } : {}),
59
60
  content: entry.content,
60
- ...(entry.time ?? entry.at ? { time: entry.time ?? formatPhiRelativeTime(entry.at, locale) } : {}),
61
+ ...(entry.time ?? entry.at ? { time: entry.time ?? formatPhiRelativeTime(entry.at, locale, renderedAt) } : {}),
61
62
  ...(entry.icon ? { icon: entry.icon } : {}),
62
63
  ...(entry.tone ? { tone: entry.tone } : {}),
63
64
  ...(entry.pending ? { pending: true } : {}),
@@ -67,10 +68,10 @@ function PhiDashboardCardList({ entries }) {
67
68
  * A point's day as the calendar day it names. An ISO date read by `Date` is midnight in UTC, which is
68
69
  * the day before west of Greenwich; an instant is formatted where the reader is.
69
70
  */
70
- function formatSeriesKey(at, locale) {
71
+ function formatSeriesKey(at, locale, timeZone) {
71
72
  return /^\d{4}-\d{2}-\d{2}$/.test(at)
72
73
  ? new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeZone: "UTC" }).format(new Date(`${at}T00:00:00Z`))
73
- : formatPhiDate(at, locale);
74
+ : formatPhiDate(at, locale, timeZone);
74
75
  }
75
76
  /**
76
77
  * A `series` card's chart: its first few series over every point, each day in the page's locale. Drawn
@@ -78,8 +79,9 @@ function formatSeriesKey(at, locale) {
78
79
  */
79
80
  function PhiDashboardCardSeriesChart({ series, title }) {
80
81
  const locale = usePhiIntlLocale();
82
+ const timeZone = usePhiIntlTimeZone();
81
83
  const labels = series.labels.slice(0, PHI_DASHBOARD_CARD_SERIES_LIMIT);
82
- return (_jsx(PhiSeriesChartControl, { locale: locale, title: title, keys: series.points.map((point) => formatSeriesKey(point.at, locale)), series: labels.map((label, index) => ({ label, values: series.points.map((point) => point.values[index]) })), ...(series.unit ? { unit: series.unit } : {}) }));
84
+ return (_jsx(PhiSeriesChartControl, { locale: locale, title: title, keys: series.points.map((point) => formatSeriesKey(point.at, locale, timeZone)), series: labels.map((label, index) => ({ label, values: series.points.map((point) => point.values[index]) })), ...(series.unit ? { unit: series.unit } : {}) }));
83
85
  }
84
86
  function readRows(binding) {
85
87
  // A Collection holds items of no particular type; the rows are read again, not cast.
@@ -2,7 +2,7 @@ import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-
2
2
  import { PHI_DASHBOARD_RUNTIME_MODULE_ID } from "../ids";
3
3
  import { getPhiAdminDashboardPageLabels } from "./admin-dashboard-label-set";
4
4
  import { buildPhiDashboardCardsPageTree } from "./dashboard-cards-page-tree";
5
- import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
5
+ import { buildPhiWidgetLabelTranslatorOptions } from "../../../../components/widgets/label-sets/runtime-options";
6
6
  /**
7
7
  * The Admin Dashboard: one Widget, and whatever the Area's Modules offer it.
8
8
  *
@@ -25,11 +25,7 @@ const SYNTHETIC_ADMIN_DASHBOARD_WIDGET_IDS = createPhiPresetCmsInstanceIdMap({
25
25
  "widgetCards",
26
26
  ]);
27
27
  export async function buildPhiDefaultAdminDashboardPageTree({ page, runtime, }) {
28
- const labels = await getPhiAdminDashboardPageLabels({
29
- apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
30
- internalToken: readPhiServerApiCredentials().internalToken,
31
- locale: runtime.locale.current,
32
- });
28
+ const labels = await getPhiAdminDashboardPageLabels(buildPhiWidgetLabelTranslatorOptions(runtime));
33
29
  return buildPhiDashboardCardsPageTree({
34
30
  page,
35
31
  area: "admin",
@@ -1,8 +1,8 @@
1
1
  import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-id";
2
2
  import { PHI_DASHBOARD_RUNTIME_MODULE_ID } from "../ids";
3
3
  import { getPhiAreaDashboardPageLabels, } from "./area-dashboard-label-set";
4
- import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
5
4
  import { buildPhiDashboardCardsPageTree } from "./dashboard-cards-page-tree";
5
+ import { buildPhiWidgetLabelTranslatorOptions } from "../../../../components/widgets/label-sets/runtime-options";
6
6
  /**
7
7
  * The Dashboard an Area gets when it has nothing more specific to show.
8
8
  *
@@ -32,11 +32,7 @@ export async function buildPhiDefaultAreaDashboardPageTree({ page, runtime, area
32
32
  if (regionId === undefined) {
33
33
  throw new Error(`Area "${area}" has no generic Dashboard region id.`);
34
34
  }
35
- const labels = await getPhiAreaDashboardPageLabels({
36
- apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
37
- internalToken: readPhiServerApiCredentials().internalToken,
38
- locale: runtime.locale.current,
39
- }, area);
35
+ const labels = await getPhiAreaDashboardPageLabels(buildPhiWidgetLabelTranslatorOptions(runtime), area);
40
36
  return buildPhiDashboardCardsPageTree({
41
37
  page,
42
38
  area,
@@ -4,9 +4,9 @@ import { PhiCmsPageType } from "../../../../constants/phi-cms";
4
4
  import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
5
5
  import { buildPhiBasePageContentScaffold } from "../../../../components/regions/presets/phi-base-page-layout";
6
6
  import { getPhiBuilderChromeWidgetLabels } from "../../../../components/widgets/label-sets/builder-chrome";
7
- import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
8
7
  import { buildPhiDashboardCardsWidget } from "./dashboard-cards-page-tree";
9
8
  import { getPhiDashboardCardsEmptyDescription } from "./area-dashboard-label-set";
9
+ import { buildPhiWidgetLabelTranslatorOptions } from "../../../../components/widgets/label-sets/runtime-options";
10
10
  /*
11
11
  * No Header bottom band: the Dashboard has no commands -- nothing to save, preview or publish -- and the
12
12
  * band stood empty under the title.
@@ -22,11 +22,7 @@ const SYNTHETIC_BUILDER_DASHBOARD_WIDGET_IDS = createPhiPresetCmsInstanceIdMap({
22
22
  "widgetCards",
23
23
  ]);
24
24
  export async function buildPhiDefaultBuilderDashboardPageTree({ page, runtime, }) {
25
- const translatorOptions = {
26
- apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
27
- internalToken: readPhiServerApiCredentials().internalToken,
28
- locale: runtime.locale.current,
29
- };
25
+ const translatorOptions = buildPhiWidgetLabelTranslatorOptions(runtime);
30
26
  const [labels, emptyDescription] = await Promise.all([
31
27
  getPhiBuilderChromeWidgetLabels(translatorOptions),
32
28
  getPhiDashboardCardsEmptyDescription(translatorOptions),
@@ -1471,12 +1471,12 @@ export async function composePhiCmsActiveAreaOverlayPresets({ tree, catalog, act
1471
1471
  const layoutNodes = [...tree.layoutNodes];
1472
1472
  const contentWidgets = [...tree.contentWidgets];
1473
1473
  let controllerSettings = tree.controllerSettings ?? [];
1474
- for (const descriptor of descriptors) {
1475
- const contribution = await descriptor.loadTree({
1476
- page,
1477
- runtime: resolveTargetRuntime(runtime, area),
1478
- catalog,
1479
- });
1474
+ // Loaded side by side -- each contribution is a Core round trip of its own -- and merged in
1475
+ // declaration order, which is what the ids and the controller settings below depend on.
1476
+ const targetRuntime = resolveTargetRuntime(runtime, area);
1477
+ const contributions = await Promise.all(descriptors.map((descriptor) => descriptor.loadTree({ page, runtime: targetRuntime, catalog })));
1478
+ for (const [index, descriptor] of descriptors.entries()) {
1479
+ const contribution = contributions[index];
1480
1480
  assertPhiCmsAreaOverlayTree(descriptor, contribution, page);
1481
1481
  for (const node of [
1482
1482
  ...contribution.overlays,