@phis/ui 0.4.8 → 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 +34 -14
  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
@@ -1,11 +1,9 @@
1
- import { isPhiCmsAreaKey, } from "../../../../../constants/cms-areas";
2
1
  import { PHI_MEDIA_LIBRARY_DATA_PROVIDER_KEYS } from "../../../../../constants/media-library-provider-keys";
3
2
  import { PHI_THEME_SIGNAL_CHANNELS } from "../../../../../plugins/runtime-modules/theme/controller/signals";
4
3
  import { createPhiCmsWidgetDefinition } from "../../../../../components/widgets/config/helpers";
5
4
  import { readString } from "../../../../../components/widgets/config/parser-primitives";
6
5
  import { parsePhiControlSignalConfig, } from "../../../../../components/widgets/config/control-signal-config";
7
6
  function parseBuilderBrandWidgetConfig(config) {
8
- const reviewArea = readString(config.reviewArea);
9
7
  return {
10
8
  /*
11
9
  * The routes are read like any Widget's: the preview mode reaches a panel through the route its tree
@@ -14,7 +12,6 @@ function parseBuilderBrandWidgetConfig(config) {
14
12
  */
15
13
  ...parsePhiControlSignalConfig(config, { key: "brandPreviewThemeMode" }),
16
14
  themeKey: readString(config.themeKey),
17
- reviewArea: isPhiCmsAreaKey(reviewArea) ? reviewArea : undefined,
18
15
  };
19
16
  }
20
17
  /** Every panel that draws in the preview's mode follows the mode switch. */
@@ -39,7 +36,6 @@ export const PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_DEFINITION = createPhiCmsWi
39
36
  runtimeSignals: PHI_BUILDER_BRAND_PREVIEW_MODE_SIGNALS,
40
37
  fields: [
41
38
  { key: "themeKey", type: "string", label: "Theme Key" },
42
- { key: "reviewArea", type: "string", label: "Review Area" },
43
39
  ],
44
40
  parseConfig: parseBuilderBrandWidgetConfig,
45
41
  });
@@ -60,7 +56,6 @@ export const PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_DEFINITION = createPhiCm
60
56
  runtimeSignals: PHI_BUILDER_BRAND_PREVIEW_MODE_SIGNALS,
61
57
  fields: [
62
58
  { key: "themeKey", type: "string", label: "Theme Key" },
63
- { key: "reviewArea", type: "string", label: "Review Area" },
64
59
  ],
65
60
  parseConfig: parseBuilderBrandWidgetConfig,
66
61
  });
@@ -73,7 +68,6 @@ export const PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_DEFINITION = createPhiCmsWi
73
68
  slotSizePolicy: "fill-inline",
74
69
  fields: [
75
70
  { key: "themeKey", type: "string", label: "Theme Key" },
76
- { key: "reviewArea", type: "string", label: "Review Area" },
77
71
  ],
78
72
  parseConfig: parseBuilderBrandWidgetConfig,
79
73
  });
@@ -96,7 +90,6 @@ export const PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_DEFINITION = createPhi
96
90
  runtimeSignals: PHI_BUILDER_BRAND_PREVIEW_MODE_SIGNALS,
97
91
  fields: [
98
92
  { key: "themeKey", type: "string", label: "Theme Key" },
99
- { key: "reviewArea", type: "string", label: "Review Area" },
100
93
  ],
101
94
  parseConfig: parseBuilderBrandWidgetConfig,
102
95
  });
@@ -110,7 +103,6 @@ export const PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_DEFINITION = createPhiCmsWid
110
103
  runtimeSignals: PHI_BUILDER_BRAND_PREVIEW_MODE_SIGNALS,
111
104
  fields: [
112
105
  { key: "themeKey", type: "string", label: "Theme Key" },
113
- { key: "reviewArea", type: "string", label: "Review Area" },
114
106
  ],
115
107
  parseConfig: parseBuilderBrandWidgetConfig,
116
108
  });
@@ -1,38 +1,36 @@
1
1
  import { PHI_THEME_RUNTIME_MODULE_ID } from "./ids";
2
2
  import { PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_DEFINITION, } from "./widgets/brand-controls/config";
3
- function defineFirstPartyWidget(options) {
4
- return options;
5
- }
3
+ import { definePhiFirstPartyWidget } from "../contracts";
6
4
  export const PHI_RUNTIME_MODULE_WIDGETS = [
7
- defineFirstPartyWidget({
5
+ definePhiFirstPartyWidget({
8
6
  definition: PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_DEFINITION,
9
7
  ownerModuleId: PHI_THEME_RUNTIME_MODULE_ID,
10
8
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
11
9
  loadRuntime: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_PLUGIN),
12
10
  loadPreview: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_PLUGIN),
13
11
  }),
14
- defineFirstPartyWidget({
12
+ definePhiFirstPartyWidget({
15
13
  definition: PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_DEFINITION,
16
14
  ownerModuleId: PHI_THEME_RUNTIME_MODULE_ID,
17
15
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
18
16
  loadRuntime: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_PLUGIN),
19
17
  loadPreview: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_PLUGIN),
20
18
  }),
21
- defineFirstPartyWidget({
19
+ definePhiFirstPartyWidget({
22
20
  definition: PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_DEFINITION,
23
21
  ownerModuleId: PHI_THEME_RUNTIME_MODULE_ID,
24
22
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
25
23
  loadRuntime: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_PLUGIN),
26
24
  loadPreview: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_PLUGIN),
27
25
  }),
28
- defineFirstPartyWidget({
26
+ definePhiFirstPartyWidget({
29
27
  definition: PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_DEFINITION,
30
28
  ownerModuleId: PHI_THEME_RUNTIME_MODULE_ID,
31
29
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
32
30
  loadRuntime: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_PLUGIN),
33
31
  loadPreview: () => import("./widgets/brand-controls/plugin").then((module) => module.PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_PLUGIN),
34
32
  }),
35
- defineFirstPartyWidget({
33
+ definePhiFirstPartyWidget({
36
34
  definition: PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_DEFINITION,
37
35
  ownerModuleId: PHI_THEME_RUNTIME_MODULE_ID,
38
36
  renderPolicies: { "runtime": "custom", "preview": "custom", "authoring": "custom" },
@@ -1,79 +1 @@
1
- import { type PhiThreadsControllerConfig } from "./definition";
2
- export declare const PHI_THREADS_RUNTIME_CONTROLLER_PLUGIN: {
3
- renderController: ({ key, address, config }: import("../../../../types").PhiRuntimeControllerRenderArgs<PhiThreadsControllerConfig, unknown>) => import("react").JSX.Element;
4
- kind: "controller";
5
- pluginKey: string;
6
- key: string;
7
- title: string;
8
- description: string;
9
- iconFamily: string;
10
- allowedMountScopes: "page"[];
11
- runtimeSignals: {
12
- emits: ({
13
- id: string;
14
- action: "change";
15
- valueType: "json";
16
- valueSchema: `${string}/signals/${string}`;
17
- } | {
18
- id: string;
19
- action: "activate";
20
- valueType: "none";
21
- valueSchema?: undefined;
22
- } | {
23
- id: string;
24
- action: "reload";
25
- valueType: "json";
26
- valueSchema: `${string}/signals/${string}`;
27
- } | {
28
- id: string;
29
- action: "close";
30
- valueType: "none";
31
- valueSchema?: undefined;
32
- } | {
33
- id: string;
34
- action: "change";
35
- valueType: "boolean";
36
- valueSchema?: undefined;
37
- })[];
38
- listens: ({
39
- id: string;
40
- channel: string;
41
- action: "change";
42
- valueType: "json";
43
- valueSchema: `${string}/signals/${string}`;
44
- } | {
45
- id: string;
46
- channel: string;
47
- action: "activate";
48
- valueType: "json";
49
- valueSchema: `${string}/signals/${string}`;
50
- } | {
51
- id: string;
52
- channel: string;
53
- action: "activate";
54
- valueType: "string";
55
- valueSchema?: undefined;
56
- } | {
57
- id: string;
58
- channel: string;
59
- action: "change";
60
- valueType: "boolean";
61
- valueSchema?: undefined;
62
- } | {
63
- id: string;
64
- channel: string;
65
- action: "close";
66
- valueType: "json";
67
- valueSchema: `${string}/signals/${string}`;
68
- } | {
69
- id: string;
70
- channel: string;
71
- action: "reload";
72
- valueType: "none";
73
- valueSchema?: undefined;
74
- })[];
75
- };
76
- defaultConfig: {};
77
- parseConfig: (raw: Record<string, unknown>) => PhiThreadsControllerConfig;
78
- };
79
1
  export declare const PhiThreadsRuntimeControllerClient: (props: import("../../contracts").PhiRuntimeModuleControllerClientProps) => import("react").JSX.Element;
@@ -195,7 +195,7 @@ function PhiThreadsControllerView({ address, config, }) {
195
195
  });
196
196
  return null;
197
197
  }
198
- export const PHI_THREADS_RUNTIME_CONTROLLER_PLUGIN = {
198
+ const PHI_THREADS_RUNTIME_CONTROLLER_PLUGIN = {
199
199
  ...PHI_THREADS_RUNTIME_CONTROLLER_DEFINITION,
200
200
  renderController: ({ key, address, config }) => _jsx(PhiThreadsControllerView, { address: address, config: config }, key),
201
201
  };
@@ -6,6 +6,7 @@ import { definePhiRuntimeModuleForm } from "../../../components/forms/form-regis
6
6
  import { PHI_CMS_AREA_KEYS } from "../../../constants/cms-areas";
7
7
  import { PhisThreadKind } from "../../../constants/threads";
8
8
  import { PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS, PHI_THREADS_RUNTIME_MODULE_ID } from "./ids";
9
+ import { phiFormLabel as label } from "../../../components/forms/form-descriptor-text";
9
10
  export const PHI_THREADS_FORM_IDS = {
10
11
  newConversation: createPhiFormId(PHI_SHARED_PACKAGE_NAME, "threads/new-conversation"),
11
12
  };
@@ -13,7 +14,6 @@ const PHI_THREADS_FORM_HANDLER_KEYS = {
13
14
  newConversation: "site.threads.create",
14
15
  };
15
16
  const LABEL_SET_KEY = "@phis/ui/modules/threads/labels/forms";
16
- const label = (key, fallback) => ({ kind: "label", key, fallback });
17
17
  /**
18
18
  * Opening a conversation, as a declared Form rather than as a panel.
19
19
  *
@@ -14,6 +14,5 @@ export declare const PHI_THREADS_RUNTIME_MODULE_IDENTITY: {
14
14
  * itself.
15
15
  */
16
16
  export declare const PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS: {
17
- readonly inbox: `${string}/${string}`;
18
17
  readonly candidates: `${string}/${string}`;
19
18
  };
@@ -1,5 +1,4 @@
1
1
  import { PHI_SHARED_PACKAGE_NAME } from "../../../types/signals";
2
- import { PHI_THREAD_LIBRARY_DATA_PROVIDER_KEYS } from "../../../constants/thread-library-provider-keys";
3
2
  import { createPhiSharedRuntimeDataProviderKey } from "../../../constants/runtime-data-provider-key";
4
3
  export const PHI_THREADS_RUNTIME_MODULE_ID = `${PHI_SHARED_PACKAGE_NAME}/modules/threads`;
5
4
  /**
@@ -17,7 +16,6 @@ export const PHI_THREADS_RUNTIME_MODULE_IDENTITY = {
17
16
  * itself.
18
17
  */
19
18
  export const PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS = {
20
- inbox: PHI_THREAD_LIBRARY_DATA_PROVIDER_KEYS.table,
21
19
  // Not a Foundation name: who this viewer may write to is what this Module's own form asks, and a
22
20
  // Module offering its own inbox asks the Core route the same way rather than borrowing this key.
23
21
  candidates: createPhiSharedRuntimeDataProviderKey("options", "thread-candidates"),
@@ -1,74 +1 @@
1
- import { type PhiUserManagementControllerConfig } from "../controller/definition";
2
- export declare const PHI_USER_MANAGEMENT_RUNTIME_CONTROLLER_PLUGIN: {
3
- renderController: ({ key, address, runtime, config }: import("../../../../types").PhiRuntimeControllerRenderArgs<PhiUserManagementControllerConfig, unknown>) => import("react").JSX.Element;
4
- kind: "controller";
5
- pluginKey: string;
6
- key: string;
7
- title: string;
8
- description: string;
9
- iconFamily: string;
10
- allowedMountScopes: "page"[];
11
- runtimeSignals: {
12
- emits: ({
13
- id: string;
14
- action: "close";
15
- valueType: "none";
16
- valueSchema?: undefined;
17
- } | {
18
- id: string;
19
- action: "activate";
20
- valueType: "none";
21
- valueSchema?: undefined;
22
- } | {
23
- id: string;
24
- action: "change";
25
- valueType: "boolean";
26
- valueSchema?: undefined;
27
- } | {
28
- id: string;
29
- action: "change";
30
- valueType: "json";
31
- valueSchema: `${string}/signals/${string}`;
32
- } | {
33
- id: string;
34
- action: "activate";
35
- valueType: "json";
36
- valueSchema: `${string}/signals/${string}`;
37
- })[];
38
- listens: ({
39
- id: string;
40
- channel: string;
41
- action: "activate";
42
- valueType: "json";
43
- valueSchema: `${string}/signals/${string}`;
44
- } | {
45
- id: string;
46
- channel: string;
47
- action: "activate";
48
- valueType: "string";
49
- valueSchema?: undefined;
50
- } | {
51
- id: string;
52
- channel: string;
53
- action: "change";
54
- valueType: "boolean";
55
- valueSchema?: undefined;
56
- } | {
57
- id: string;
58
- channel: string;
59
- action: "close";
60
- valueType: "json";
61
- valueSchema: `${string}/signals/${string}`;
62
- } | {
63
- id: string;
64
- channel: string;
65
- action: "reload";
66
- valueType: "none";
67
- })[];
68
- };
69
- defaultConfig: {
70
- signalRoutes: null;
71
- };
72
- parseConfig: (raw: Record<string, unknown>) => PhiUserManagementControllerConfig;
73
- };
74
1
  export declare const PhiUserManagementRuntimeControllerClient: (props: import("../../contracts").PhiRuntimeModuleControllerClientProps) => import("react").JSX.Element;
@@ -178,7 +178,7 @@ function PhiUserManagementControllerView({ address, runtime, config, }) {
178
178
  }, [emitCapability, workflowState]);
179
179
  return null;
180
180
  }
181
- export const PHI_USER_MANAGEMENT_RUNTIME_CONTROLLER_PLUGIN = {
181
+ const PHI_USER_MANAGEMENT_RUNTIME_CONTROLLER_PLUGIN = {
182
182
  ...PHI_USER_MANAGEMENT_RUNTIME_CONTROLLER_DEFINITION,
183
183
  renderController: ({ key, address, runtime, config }) => (_jsx(PhiUserManagementControllerView, { address: address, runtime: runtime, config: config }, key)),
184
184
  };
@@ -6,6 +6,7 @@ import { PHI_SHARED_PACKAGE_NAME } from "../../../types/signals";
6
6
  import { PHI_FORM_FIELD_PROVIDER_KEYS, PHI_FORM_VALIDATION_PROVIDER_KEYS, createPhiSharedFormProviderKey, } from "../../../components/forms/form-provider-contract";
7
7
  import { definePhiRuntimeModuleForm } from "../../../components/forms/form-registry";
8
8
  import { createPhiUserManagementControllerAddress } from "./controller/address";
9
+ import { phiFormLabel as label, phiFormRequired as required } from "../../../components/forms/form-descriptor-text";
9
10
  export const PHI_USER_MANAGEMENT_FORM_IDS = {
10
11
  create: createPhiFormId(PHI_SHARED_PACKAGE_NAME, "user-management/create"),
11
12
  edit: createPhiFormId(PHI_SHARED_PACKAGE_NAME, "user-management/edit"),
@@ -15,7 +16,6 @@ const PHI_USER_MANAGEMENT_FORM_HANDLER_KEYS = {
15
16
  edit: "site.user-management.edit",
16
17
  };
17
18
  const LABEL_SET_KEY = "@phis/ui/modules/user-management/labels/forms";
18
- const label = (key, fallback) => ({ kind: "label", key, fallback });
19
19
  const controllerAddress = createPhiUserManagementControllerAddress();
20
20
  const readOnlyCondition = {
21
21
  source: "controller",
@@ -38,10 +38,6 @@ const selfEnabledCondition = {
38
38
  operator: "truthy",
39
39
  reason: "Your own account cannot be enabled or disabled here.",
40
40
  };
41
- const required = (key, fallback) => [{
42
- providerKey: PHI_FORM_VALIDATION_PROVIDER_KEYS.required,
43
- message: label(key, fallback),
44
- }];
45
41
  const roleOptions = PHI_BASE_ROLE_OPTIONS.map((option) => ({
46
42
  value: option.value,
47
43
  label: label(`role_${option.value}`, option.label),
@@ -9,17 +9,13 @@ import { createPhiSignalAddress, createPhiSignalSubcontrolAddress, PHI_SIGNAL_VA
9
9
  import { createPhiUserManagementControllerAddress, PHI_USER_MANAGEMENT_CONTROLLER_INSTANCE_KEY, PHI_USER_MANAGEMENT_CONTROLLER_TYPE, } from "../controller/address";
10
10
  import { PHI_USER_MANAGEMENT_FORM_IDS } from "../forms";
11
11
  import { PHI_USER_MANAGEMENT_PAGE_LAYOUT_IDS, PHI_USER_MANAGEMENT_PAGE_OVERLAY_IDS, PHI_USER_MANAGEMENT_PAGE_WIDGET_IDS, } from "../addresses";
12
- import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
13
12
  import { PHI_DIALOG_BODY_CONFIG, PHI_DIALOG_COMMANDS_CONFIG } from "../../../../helpers/cms-dialog";
13
+ import { buildPhiWidgetLabelTranslatorOptions } from "../../../../components/widgets/label-sets/runtime-options";
14
14
  const SYNTHETIC_ADMIN_USERS_REGION_IDS = {
15
15
  regionContent: -431,
16
16
  };
17
17
  export async function buildPhiDefaultAdminUsersPageTree({ page, runtime, }) {
18
- const labelOptions = {
19
- apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
20
- internalToken: readPhiServerApiCredentials().internalToken,
21
- locale: runtime.locale.current,
22
- };
18
+ const labelOptions = buildPhiWidgetLabelTranslatorOptions(runtime);
23
19
  const [labels, widgetLabels] = await Promise.all([
24
20
  getPhiAdminUsersPageLabels(labelOptions),
25
21
  getPhiAdminUsersTableWidgetLabels(labelOptions),
@@ -1,10 +1,8 @@
1
1
  import { PHI_VIDEO_RUNTIME_MODULE_ID } from "./ids";
2
2
  import { PHI_VIDEO_EMBED_WIDGET_DEFINITION } from "./widgets/embed/config";
3
- function defineFirstPartyWidget(options) {
4
- return options;
5
- }
3
+ import { definePhiFirstPartyWidget } from "../contracts";
6
4
  export const PHI_VIDEO_RUNTIME_MODULE_WIDGETS = [
7
- defineFirstPartyWidget({
5
+ definePhiFirstPartyWidget({
8
6
  definition: PHI_VIDEO_EMBED_WIDGET_DEFINITION,
9
7
  ownerModuleId: PHI_VIDEO_RUNTIME_MODULE_ID,
10
8
  renderPolicies: { runtime: "custom", preview: "custom", authoring: "custom" },
@@ -2,6 +2,7 @@ import "server-only";
2
2
  import { type PhiCmsAreaKey } from "../constants/cms-areas";
3
3
  import type { PhiResolvedCmsAreaPresetPayload, PhiResolvedCmsPagePayload } from "../types/cms";
4
4
  import type { PhiResolvedCmsRequest, PhiRuntimeModuleCatalog, PhiRuntimeModuleId } from "../types/cms-plugins";
5
+ import { resolvePhiCmsDescriptorCatalog } from "../plugins/runtime-modules/descriptor-compiler";
5
6
  import type { PhiCapabilitySnapshot } from "../types/server-capabilities";
6
7
  import type { PhiSiteRequestContext } from "../types/site-request-context";
7
8
  type LoadPhiResolvedCmsPage = (path: string, sourcePreset?: {
@@ -41,6 +42,24 @@ export type ResolvePhiCmsRequestArgs = {
41
42
  */
42
43
  purpose?: "render" | "lookup" | "refusal";
43
44
  };
45
+ /**
46
+ * What an Area answers under a preset: the active Module ids and the route table compiled from them.
47
+ *
48
+ * Nine readers -- the page request, the root shell, the dashboard cards, the navigation targets, the
49
+ * page references, the public login, the search index and two more -- each wrote these two steps out,
50
+ * and the two reads of the Area config between them. Stated once, the readers cannot drift in which
51
+ * config they compile from.
52
+ */
53
+ export declare function resolvePhiAreaRouteScope(input: {
54
+ runtimeModuleCatalog: PhiRuntimeModuleCatalog;
55
+ catalog: ReturnType<typeof resolvePhiCmsDescriptorCatalog>;
56
+ area: PhiCmsAreaKey;
57
+ preset: PhiResolvedCmsAreaPresetPayload["preset"] | null;
58
+ serverCapabilities: PhiCapabilitySnapshot | null;
59
+ }): {
60
+ activeModuleIds: Set<`${string}/${string}`>;
61
+ routeTable: import("../types/cms-module-descriptors").PhiCmsActiveRouteTable;
62
+ };
44
63
  export declare function resolveActivePresetModuleKeys(runtimeModuleCatalog: PhiRuntimeModuleCatalog, area: PhiCmsAreaKey, areaPreset: Pick<PhiResolvedCmsAreaPresetPayload, "preset"> | null, serverCapabilities: PhiCapabilitySnapshot | null): Set<`${string}/${string}`>;
45
64
  export declare function resolvePhiCmsRequest({ siteKey, locale, area, path, cookieHeader, apiBaseUrl, internalToken, requestContext, searchParams, loadResolvedCmsPage, loadExactCmsArea, runtimeModuleCatalog, purpose, }: ResolvePhiCmsRequestArgs): Promise<PhiResolvedCmsRequest | null>;
46
65
  export declare const loadPhiResolvedCmsRequest: (siteKey: string, locale: string, area: PhiCmsAreaKey, path: string, cookieHeader: string, apiBaseUrl: string | undefined, internalToken: string | undefined, requestContext: PhiSiteRequestContext | undefined, searchParams: Record<string, string | undefined> | undefined, runtimeModuleCatalog: PhiRuntimeModuleCatalog, purpose?: ResolvePhiCmsRequestArgs["purpose"]) => Promise<PhiResolvedCmsRequest | null>;
@@ -59,6 +59,25 @@ function resolveAreaOwnedStoragePath(path, areaMask) {
59
59
  }
60
60
  return null;
61
61
  }
62
+ /**
63
+ * What an Area answers under a preset: the active Module ids and the route table compiled from them.
64
+ *
65
+ * Nine readers -- the page request, the root shell, the dashboard cards, the navigation targets, the
66
+ * page references, the public login, the search index and two more -- each wrote these two steps out,
67
+ * and the two reads of the Area config between them. Stated once, the readers cannot drift in which
68
+ * config they compile from.
69
+ */
70
+ export function resolvePhiAreaRouteScope(input) {
71
+ const activeModuleIds = resolveActivePresetModuleKeys(input.runtimeModuleCatalog, input.area, input.preset ? { preset: input.preset } : null, input.serverCapabilities);
72
+ const routeTable = compilePhiCmsActiveRouteTable({
73
+ catalog: input.catalog,
74
+ area: input.area,
75
+ activeModuleIds,
76
+ publicRoutePaths: readPhiAreaPublicRoutePaths(input.preset?.preset.config),
77
+ landingSelection: readPhiAreaLandingSelection(input.preset?.preset.config),
78
+ });
79
+ return { activeModuleIds, routeTable };
80
+ }
62
81
  export function resolveActivePresetModuleKeys(runtimeModuleCatalog, area, areaPreset, serverCapabilities) {
63
82
  const platformModuleId = runtimeModuleCatalog.platformModuleId;
64
83
  if (!platformModuleId) {
@@ -178,18 +197,17 @@ export async function resolvePhiCmsRequest({ siteKey, locale, area, path, cookie
178
197
  const effectiveAreaPreset = exactAreaPreset ?? localAreaPreset;
179
198
  const siteId = localAreaPreset?.preset.preset.siteId ?? resolvedRequestContext.site.id;
180
199
  const areaOwnedStoragePath = resolveAreaOwnedStoragePath(path, areaMask);
181
- const activeModuleKeys = resolveActivePresetModuleKeys(runtimeModuleCatalog, requestedAreaKey, effectiveAreaPreset, resolvedRequestContext.serverCapabilities);
200
+ const { activeModuleIds: activeModuleKeys, routeTable } = resolvePhiAreaRouteScope({
201
+ runtimeModuleCatalog,
202
+ catalog,
203
+ area: requestedAreaKey,
204
+ preset: effectiveAreaPreset?.preset ?? null,
205
+ serverCapabilities: resolvedRequestContext.serverCapabilities,
206
+ });
182
207
  const runtimeWithAuthProvider = {
183
208
  ...runtime,
184
209
  authUiProvider: resolvePhiAuthUiRuntimeProjection(runtimeModuleCatalog, activeModuleKeys, requestedAreaKey),
185
210
  };
186
- const routeTable = compilePhiCmsActiveRouteTable({
187
- catalog,
188
- area: requestedAreaKey,
189
- activeModuleIds: activeModuleKeys,
190
- publicRoutePaths: readPhiAreaPublicRoutePaths(effectiveAreaPreset?.preset.preset.config),
191
- landingSelection: readPhiAreaLandingSelection(effectiveAreaPreset?.preset.preset.config),
192
- });
193
211
  if (ownsRequestState) {
194
212
  setPhiRequestRuntime(runtimeWithAuthProvider);
195
213
  setPhiRequestNavigationContext(requestedAreaKey, catalog, activeModuleKeys, routeTable);
@@ -11,10 +11,9 @@ import { getPhiExactSiteArea } from "./cms";
11
11
  import { hasPhiCmsAuthorizedPreviewRead, resolvePhiCmsReviewParams, resolvePhiCmsRevisionFromSearchParams, resolvePhiCmsThemeReviewRequestContext, } from "./cms-review";
12
12
  import { setPhiRequestNavigationContext, setPhiRequestRuntime, } from "./request-runtime";
13
13
  import { buildPhiBlockRuntime, loadPhiSiteRequestContext } from "./runtime";
14
- import { compilePhiCmsActiveRouteTable, composePhiCmsActiveAreaOverlayPresets, resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, } from "../plugins/runtime-modules/descriptor-compiler";
15
- import { readPhiAreaLandingSelection, readPhiAreaPublicRoutePaths, } from "../helpers/cms-area-config";
14
+ import { composePhiCmsActiveAreaOverlayPresets, resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, } from "../plugins/runtime-modules/descriptor-compiler";
16
15
  import { resolvePhiAuthUiRuntimeProjection } from "./auth-ui-provider";
17
- import { resolveActivePresetModuleKeys } from "./cms-request";
16
+ import { resolvePhiAreaRouteScope } from "./cms-request";
18
17
  import { applyPhiBackgroundAssetProjection, resolvePhiBackgroundAssetProjection, } from "../components/widgets/helpers/background-reference-resolver.server";
19
18
  import { PHIS_CLIENT_NAVIGATION_HEADER, PHIS_REQUEST_PATH_HEADER, PHIS_REQUEST_SEARCH_HEADER, } from "../constants/http-headers";
20
19
  import { isPhiStaticCmsSiteBridge } from "./static-render";
@@ -128,17 +127,16 @@ const loadPhiCmsRootScopeCached = cache(async function loadPhiCmsRootScopeCached
128
127
  runtimeModuleCatalog: cmsBridge.runtimeModuleCatalog,
129
128
  });
130
129
  const baseResolvedAreaPreset = exactAreaPreset?.preset ?? localAreaPreset?.preset ?? null;
131
- const activeModuleIds = resolveActivePresetModuleKeys(cmsBridge.runtimeModuleCatalog, resolvedRoute.area, baseResolvedAreaPreset ? { preset: baseResolvedAreaPreset } : null, requestContext.serverCapabilities);
132
130
  /*
133
131
  * The same table the page request compiles, from the same Area config: what the shell's navigation
134
132
  * links has to be what the request answers, assigned Public addresses and the awarded root included.
135
133
  */
136
- const routeTable = compilePhiCmsActiveRouteTable({
134
+ const { activeModuleIds, routeTable } = resolvePhiAreaRouteScope({
135
+ runtimeModuleCatalog: cmsBridge.runtimeModuleCatalog,
137
136
  catalog: descriptorCatalog,
138
137
  area: resolvedRoute.area,
139
- activeModuleIds,
140
- publicRoutePaths: readPhiAreaPublicRoutePaths(baseResolvedAreaPreset?.preset.config),
141
- landingSelection: readPhiAreaLandingSelection(baseResolvedAreaPreset?.preset.config),
138
+ preset: baseResolvedAreaPreset,
139
+ serverCapabilities: requestContext.serverCapabilities,
142
140
  });
143
141
  const composedAreaPreset = baseResolvedAreaPreset
144
142
  ? await composePhiCmsActiveAreaOverlayPresets({
@@ -5,11 +5,10 @@ import { PHI_CANONICAL_SOURCE_LOCALE, localizeAreaPath } from "../helpers/locale
5
5
  import { getPhiExactSiteArea } from "./cms";
6
6
  import { getPhiCapabilitySnapshot } from "../gateway/server-capabilities";
7
7
  import { resolvePhiRequestLocale } from "./request-locale";
8
- import { readPhiAreaLandingSelection, readPhiAreaPublicRoutePaths, } from "../helpers/cms-area-config";
9
- import { compilePhiCmsActiveRouteTable, resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, resolvePhiCmsRoutePresetByPageId, } from "../plugins/runtime-modules/descriptor-compiler";
8
+ import { resolvePhiCmsAreaShellPresetBinding, resolvePhiCmsDescriptorCatalog, resolvePhiCmsRoutePresetByPageId, } from "../plugins/runtime-modules/descriptor-compiler";
10
9
  import { PHI_PUBLIC_LOGIN_ROUTE_IDENTITY } from "../constants/public-login-route";
11
10
  import { createPhiPresetCmsPageId } from "../types/cms-instance-id";
12
- import { resolveActivePresetModuleKeys } from "./cms-request";
11
+ import { resolvePhiAreaRouteScope } from "./cms-request";
13
12
  import { PHIS_REQUEST_PATH_HEADER, PHIS_REQUEST_SEARCH_HEADER } from "../constants/http-headers";
14
13
  import { readPhiServerApiCredentials } from "../helpers/phis-server-credentials";
15
14
  /** The address the Auth Module declares for signing in; what a Site that reassigned it answers is in the table. */
@@ -72,13 +71,12 @@ export const resolvePhiPublicLoginHref = cache(async function resolvePhiPublicLo
72
71
  presetKey: shellBinding.descriptor.presetKey,
73
72
  },
74
73
  });
75
- const activeModuleIds = resolveActivePresetModuleKeys(cmsBridge.runtimeModuleCatalog, "public", areaPreset ? { preset: areaPreset.preset } : null, serverCapabilities ?? null);
76
- const routeTable = compilePhiCmsActiveRouteTable({
74
+ const { routeTable } = resolvePhiAreaRouteScope({
75
+ runtimeModuleCatalog: cmsBridge.runtimeModuleCatalog,
77
76
  catalog,
78
77
  area: "public",
79
- activeModuleIds,
80
- publicRoutePaths: readPhiAreaPublicRoutePaths(areaPreset?.preset.preset.config),
81
- landingSelection: readPhiAreaLandingSelection(areaPreset?.preset.preset.config),
78
+ preset: areaPreset?.preset ?? null,
79
+ serverCapabilities: serverCapabilities ?? null,
82
80
  });
83
81
  const login = resolvePhiCmsRoutePresetByPageId(routeTable, PHI_PUBLIC_LOGIN_PAGE_ID);
84
82
  return login ? localizeAreaPath(locale, "public", login.descriptor.path) : null;
@@ -40,6 +40,7 @@ async function getPhiCmsRuntimeInfo({ apiBaseUrl, internalToken, siteKey, cookie
40
40
  availableLocales: site.availableLocales,
41
41
  defaultLocale: site.defaultLocale,
42
42
  sourceLocale: site.sourceLocale,
43
+ timeZone: site.timeZone,
43
44
  store: site.store,
44
45
  themeRevision: site.themeRevision,
45
46
  /*