@phis/ui 0.7.8 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/cms/phi-cms-layout-renderer.js +15 -7
- package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
- package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
- package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
- package/components/cms/phi-cms-render-diagnostic.js +12 -2
- package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
- package/components/cms/phi-cms-render-error-boundary.js +1 -1
- package/components/cms/phi-cms-root-layout.js +3 -1
- package/components/controls/phi-address-control.d.ts +23 -0
- package/components/controls/phi-address-control.js +43 -0
- package/components/controls/phi-color-control.d.ts +3 -1
- package/components/controls/phi-color-control.js +2 -2
- package/components/controls/phi-country-select-control.d.ts +22 -0
- package/components/controls/phi-country-select-control.js +16 -0
- package/components/controls/phi-dialog-control.d.ts +1 -1
- package/components/controls/phi-drawer-control-adapter.d.ts +1 -1
- package/components/controls/phi-drawer-control-adapter.js +5 -3
- package/components/controls/phi-drawer-control.d.ts +7 -5
- package/components/controls/phi-float-button-control.d.ts +8 -1
- package/components/controls/phi-float-button-control.js +19 -3
- package/components/controls/phi-form-control.js +52 -8
- package/components/controls/phi-media-picker-control.d.ts +9 -0
- package/components/controls/phi-media-picker-control.js +1 -1
- package/components/controls/phi-modal-control-adapter.d.ts +1 -1
- package/components/controls/phi-modal-control-adapter.js +14 -37
- package/components/controls/phi-modal-control.d.ts +5 -5
- package/components/controls/phi-options-provider.d.ts +1 -0
- package/components/controls/phi-options-provider.js +1 -0
- package/components/controls/phi-overlay-control-contract.d.ts +52 -17
- package/components/controls/phi-overlay-control-contract.js +55 -30
- package/components/controls/phi-popover-control.js +4 -1
- package/components/controls/phi-reveal-once-dialog-control.d.ts +21 -0
- package/components/controls/phi-reveal-once-dialog-control.js +52 -0
- package/components/controls/phi-reveal-once-dialog-labels.d.ts +10 -0
- package/components/controls/phi-reveal-once-dialog-labels.js +5 -0
- package/components/controls/phi-table-control.d.ts +7 -1
- package/components/controls/phi-table-control.js +23 -8
- package/components/forms/flags-field.d.ts +22 -0
- package/components/forms/flags-field.js +58 -0
- package/components/forms/form-descriptor-field-check.d.ts +18 -0
- package/components/forms/form-descriptor-field-check.js +41 -0
- package/components/forms/form-descriptor-runtime-client.js +11 -10
- package/components/forms/form-option-flags.d.ts +20 -0
- package/components/forms/form-option-flags.js +38 -0
- package/components/forms/form-provider-contract.d.ts +23 -0
- package/components/forms/form-provider-contract.js +36 -0
- package/components/forms/form-provider-registry.d.ts +5 -1
- package/components/forms/form-record-source.d.ts +38 -0
- package/components/forms/form-record-source.js +48 -0
- package/components/forms/shared-form-descriptors.d.ts +0 -34
- package/components/forms/shared-form-descriptors.js +0 -6
- package/components/forms/shared-form-ids.d.ts +1 -1
- package/components/forms/shared-form-ids.js +1 -1
- package/components/forms/shared-form-provider-registry.js +13 -0
- package/components/forms/structured-field-labels.d.ts +24 -0
- package/components/forms/structured-field-labels.js +43 -0
- package/components/forms/structured-form-field-controls.d.ts +12 -0
- package/components/forms/structured-form-field-controls.js +65 -0
- package/components/media/media-settings-labels.d.ts +1 -0
- package/components/media/media-settings-labels.js +2 -0
- package/components/media/phi-media-picker-binding.d.ts +41 -33
- package/components/media/phi-media-picker-binding.js +2 -1
- package/components/media/use-media-library-add-picker.d.ts +33 -32
- package/components/overlays/phi-overlay-container-client.js +13 -11
- package/components/regions/phi-cms-region-shell.js +2 -2
- package/components/regions/presets/content-entry-editor-page-tree.js +12 -3
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +13 -2
- package/components/regions/presets/phi-settings-page-shell-tree.js +4 -4
- package/components/root/phi-root-theme-resolver.js +3 -0
- package/components/shell/phi-antd-icon.d.ts +1 -8
- package/components/shell/phi-antd-icon.js +1 -227
- package/components/shell/phi-icon-names.d.ts +22 -0
- package/components/shell/phi-icon-names.js +267 -0
- package/components/shell/phi-icon.d.ts +4 -15
- package/components/shell/phi-icon.js +9 -50
- package/components/tables/client/phi-table-binding-params.d.ts +24 -0
- package/components/tables/client/phi-table-binding-params.js +39 -0
- package/components/tables/client/phi-table-binding.d.ts +1 -3
- package/components/tables/client/phi-table-binding.js +5 -9
- package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
- package/components/widgets/client/shared/phi-button-icons.js +8 -12
- package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
- package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
- package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
- package/components/widgets/client/shared/phi-collection-provider.js +5 -0
- package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
- package/components/widgets/client/shared/phi-command-buttons.d.ts +29 -2
- package/components/widgets/client/shared/phi-command-buttons.js +19 -5
- package/components/widgets/client/shared/phi-rendered-value.js +27 -3
- package/components/widgets/client/shared/phi-table-provider-refusal.d.ts +13 -0
- package/components/widgets/client/shared/phi-table-provider-refusal.js +13 -0
- package/components/widgets/config/background.d.ts +3 -2
- package/components/widgets/config/choice-shared.d.ts +10 -1
- package/components/widgets/config/choice-shared.js +8 -2
- package/components/widgets/label-sets/admin-locales.js +1 -1
- package/components/widgets/label-sets/admin-users.d.ts +3 -5
- package/components/widgets/label-sets/admin-users.js +6 -10
- package/components/widgets/label-sets/builder-modules.js +4 -0
- package/components/widgets/label-sets/effects.js +2 -4
- package/components/widgets/label-sets/profile.d.ts +13 -16
- package/components/widgets/label-sets/profile.js +24 -33
- package/components/widgets/label-sets/registration.d.ts +0 -1
- package/components/widgets/label-sets/registration.js +0 -2
- package/components/widgets/label-sets/revisions.js +2 -0
- package/components/widgets/label-sets/search-results.js +2 -4
- package/components/widgets/label-sets/signals.js +2 -0
- package/components/widgets/label-sets/table.js +9 -0
- package/components/widgets/label-types/builder-modules.d.ts +4 -0
- package/components/widgets/label-types/builder-modules.js +2 -0
- package/components/widgets/label-types/effects.d.ts +3 -2
- package/components/widgets/label-types/effects.js +1 -2
- package/components/widgets/label-types/revisions.d.ts +2 -0
- package/components/widgets/label-types/revisions.js +2 -1
- package/components/widgets/label-types/search-results.d.ts +2 -2
- package/components/widgets/label-types/search-results.js +1 -2
- package/components/widgets/label-types/signals.d.ts +2 -0
- package/components/widgets/label-types/signals.js +1 -0
- package/components/widgets/label-types/table.d.ts +3 -0
- package/components/widgets/label-types/table.js +2 -0
- package/components/widgets/server/builder-chrome.d.ts +4 -1
- package/components/widgets/server/builder-chrome.js +2 -2
- package/components/widgets/shared/markdown-body-client.d.ts +26 -0
- package/components/widgets/shared/markdown-body-client.js +31 -1
- package/components/widgets/shared/markdown-render.d.ts +10 -2
- package/components/widgets/shared/markdown-render.js +35 -13
- package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
- package/components/widgets/shared/widget-failure-audience.js +21 -0
- package/components/widgets/shared/widget-failure-client.js +5 -2
- package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice-client.js +10 -0
- package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice.js +17 -0
- package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
- package/components/widgets/shared/widget-failure-staff.js +18 -0
- package/components/widgets/shared/widget-failure.d.ts +9 -6
- package/components/widgets/shared/widget-failure.js +0 -9
- package/components/widgets/shared/widget-failure.server.d.ts +4 -2
- package/components/widgets/shared/widget-failure.server.js +8 -3
- package/constants/countries.d.ts +9 -0
- package/constants/countries.js +28 -0
- package/constants/customer-file.d.ts +34 -0
- package/constants/customer-file.js +35 -0
- package/constants/record-field-kinds.d.ts +15 -0
- package/constants/record-field-kinds.js +13 -0
- package/constants/runtime-module-ownership.js +15 -2
- package/constants/runtime-render-client-types.d.ts +5 -0
- package/constants/runtime-render-client-types.js +5 -0
- package/constants/site-address.d.ts +9 -0
- package/constants/site-address.js +10 -0
- package/constants/table-loading.d.ts +14 -0
- package/constants/table-loading.js +14 -0
- package/{plugins/runtime-modules/threads/controller/address.js → constants/threads-controller-address.js} +1 -1
- package/constants.d.ts +2 -0
- package/constants.js +4 -0
- package/gateway/form-handler-request.d.ts +22 -0
- package/gateway/form-handler-request.js +40 -0
- package/gateway/label-set.d.ts +15 -2
- package/gateway/label-set.js +60 -22
- package/gateway/site-cms-write-validation.js +19 -3
- package/gateway/site-form-route.js +11 -2
- package/helpers/address-field.d.ts +43 -0
- package/helpers/address-field.js +68 -0
- package/helpers/announced-action.d.ts +17 -0
- package/helpers/announced-action.js +29 -0
- package/helpers/cms-dialog.d.ts +5 -20
- package/helpers/cms-dialog.js +8 -13
- package/helpers/cms-page-catalog.d.ts +10 -0
- package/helpers/cms-page-catalog.js +19 -0
- package/helpers/cms-preset-nodes.d.ts +4 -4
- package/helpers/cms-preset-nodes.js +1 -1
- package/helpers/cms-region-keys.d.ts +1 -1
- package/helpers/country-names.d.ts +12 -0
- package/helpers/country-names.js +14 -0
- package/helpers/phi-metadata.d.ts +25 -1
- package/helpers/phi-metadata.js +53 -1
- package/helpers/phi-site-description.d.ts +11 -0
- package/helpers/phi-site-description.js +13 -0
- package/helpers/preset-form-check.d.ts +14 -0
- package/helpers/preset-form-check.js +12 -0
- package/helpers/preset-table-check.d.ts +38 -0
- package/helpers/preset-table-check.js +118 -0
- package/helpers/preset-text-source-check.d.ts +4 -1
- package/helpers/preset-text-source-check.js +6 -1
- package/helpers/preset-tree-contract-check.d.ts +3 -2
- package/helpers/preset-tree-contract-check.js +30 -5
- package/helpers/public-route-claims.d.ts +9 -1
- package/helpers/public-route-claims.js +23 -3
- package/helpers/record-fields.d.ts +1 -5
- package/helpers/record-fields.js +15 -6
- package/helpers/record-widget-binding.d.ts +10 -0
- package/helpers/record-widget-binding.js +35 -0
- package/helpers/record-widget.d.ts +1 -10
- package/helpers/record-widget.js +4 -33
- package/helpers/route-address-check.d.ts +22 -2
- package/helpers/route-address-check.js +29 -8
- package/helpers/site-address-row.d.ts +23 -0
- package/helpers/site-address-row.js +36 -0
- package/helpers/surface-style.d.ts +8 -1
- package/helpers/surface-style.js +12 -2
- package/helpers/table-widget-binding.d.ts +12 -0
- package/helpers/table-widget-binding.js +296 -0
- package/helpers/thread-inbox-row.d.ts +20 -0
- package/helpers/thread-inbox-row.js +26 -0
- package/helpers/translation-format.d.ts +26 -0
- package/helpers/translation-format.js +31 -0
- package/helpers/tree-widget-binding.d.ts +19 -0
- package/helpers/tree-widget-binding.js +72 -0
- package/helpers/typed-confirmation.d.ts +9 -0
- package/helpers/typed-confirmation.js +13 -0
- package/helpers/widget-binding-check.d.ts +22 -0
- package/helpers/widget-binding-check.js +91 -0
- package/module-labels.d.ts +1 -1
- package/module-labels.js +1 -1
- package/module-page-check.d.ts +3 -0
- package/module-page-check.js +3 -0
- package/module-records.d.ts +2 -2
- package/module-records.js +1 -0
- package/next/area-route.js +34 -1
- package/next/root-route.js +4 -4
- package/package.json +2 -2
- package/plugins/runtime-modules/accounting/customer-file-access.d.ts +11 -0
- package/plugins/runtime-modules/accounting/customer-file-access.js +12 -0
- package/plugins/runtime-modules/accounting/data-providers.js +1 -1
- package/plugins/runtime-modules/accounting/ids.d.ts +14 -0
- package/plugins/runtime-modules/accounting/ids.js +34 -0
- package/plugins/runtime-modules/accounting/presets.js +32 -5
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +78 -0
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +136 -0
- package/plugins/runtime-modules/accounting/trees/accounting-products-label-set.js +2 -2
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +29 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +450 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-products-page-tree.js +4 -0
- package/plugins/runtime-modules/app/client-data-providers.d.ts +7 -0
- package/plugins/runtime-modules/app/client-data-providers.js +9 -0
- package/plugins/runtime-modules/app/data-providers.d.ts +43 -0
- package/plugins/runtime-modules/app/data-providers.js +45 -0
- package/plugins/runtime-modules/app/definition.d.ts +60 -1
- package/plugins/runtime-modules/app/definition.js +2 -0
- package/plugins/runtime-modules/app/forms.d.ts +33 -3
- package/plugins/runtime-modules/app/forms.js +166 -31
- package/plugins/runtime-modules/app/ids.d.ts +8 -0
- package/plugins/runtime-modules/app/ids.js +9 -0
- package/plugins/runtime-modules/app/module.d.ts +60 -1
- package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
- package/plugins/runtime-modules/app/services/addresses-collection.js +105 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +21 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.js +143 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +57 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.js +104 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +28 -19
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/profile-label-set.js +5 -14
- package/plugins/runtime-modules/asset/presets.d.ts +4 -0
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +4 -2
- package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +4 -2
- package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +2 -2
- package/plugins/runtime-modules/auth/widgets/logout/client.d.ts +1 -1
- package/plugins/runtime-modules/auth/widgets/logout/client.js +2 -2
- package/plugins/runtime-modules/auth/widgets/security/client.d.ts +5 -1
- package/plugins/runtime-modules/auth/widgets/security/client.js +12 -10
- package/plugins/runtime-modules/avatar/overlay-tree.server.js +1 -1
- package/plugins/runtime-modules/blog/presets.d.ts +4 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
- package/plugins/runtime-modules/builder/clients/inspector-image-field.d.ts +2 -1
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +6 -3
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
- package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.d.ts +23 -0
- package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.js +38 -0
- package/plugins/runtime-modules/builder/clients/mode-switch.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/mode-switch.js +2 -15
- package/plugins/runtime-modules/builder/clients/pages-workspace.js +2 -0
- package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +2 -1
- package/plugins/runtime-modules/builder/controller/draft-status-controller.js +28 -1
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
- package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +5 -0
- package/plugins/runtime-modules/builder/page-presets.server.d.ts +7 -0
- package/plugins/runtime-modules/builder/page-presets.server.js +10 -1
- package/plugins/runtime-modules/builder/persistence.js +4 -0
- package/plugins/runtime-modules/builder/public-route-collisions.js +8 -3
- package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +8 -1
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +47 -7
- package/plugins/runtime-modules/builder/widgets/chrome/config.d.ts +6 -4
- package/plugins/runtime-modules/builder/widgets/chrome/config.js +11 -1
- package/plugins/runtime-modules/builder/widgets/inspector-header/authoring.d.ts +2 -2
- package/plugins/runtime-modules/builder/widgets/inspector-header/plugin.d.ts +2 -2
- package/plugins/runtime-modules/builder/widgets/mode-switch/plugin.js +1 -1
- package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +2 -2
- package/plugins/runtime-modules/client-manifests/app.js +3 -0
- package/plugins/runtime-modules/client-manifests/builder.js +10 -0
- package/plugins/runtime-modules/client-manifests/common.js +6 -0
- package/plugins/runtime-modules/content-entry-routes.d.ts +4 -0
- package/plugins/runtime-modules/contracts.js +31 -1
- package/plugins/runtime-modules/core/definition.d.ts +23 -0
- package/plugins/runtime-modules/core/form-providers.d.ts +23 -0
- package/plugins/runtime-modules/core/messaging/thread-inbox-table.d.ts +0 -17
- package/plugins/runtime-modules/core/messaging/thread-inbox-table.js +2 -23
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/card/config.js +0 -1
- package/plugins/runtime-modules/core/widgets/card/editor.js +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/client.js +3 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +316 -1
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.js +4 -4
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/dimension/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/float-button/client.js +4 -1
- package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +326 -3
- package/plugins/runtime-modules/core/widgets/float-button/config.js +5 -2
- package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/header-navigation/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/length/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
- package/plugins/runtime-modules/core/widgets/markdown/server.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/markdown/server.js +2 -2
- package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.d.ts +12 -0
- package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.js +68 -0
- package/plugins/runtime-modules/core/widgets/number-input/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +2 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +48 -51
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
- package/plugins/runtime-modules/core/widgets/table/config.js +9 -0
- package/plugins/runtime-modules/core/widgets/table/reader-query.d.ts +17 -0
- package/plugins/runtime-modules/core/widgets/table/reader-query.js +33 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
- package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
- package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
- package/plugins/runtime-modules/dashboard/trees/dashboard-cards-page-tree.js +3 -1
- package/plugins/runtime-modules/descriptor-compiler.d.ts +19 -3
- package/plugins/runtime-modules/descriptor-compiler.js +44 -16
- package/plugins/runtime-modules/editor/presets.d.ts +4 -0
- package/plugins/runtime-modules/editor/trees/phi-default-editor-releases-page-tree.js +3 -1
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +5 -1
- package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +5 -1
- package/plugins/runtime-modules/localization/presets.d.ts +4 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
- package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +3 -1
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +9 -2
- package/plugins/runtime-modules/news/presets.d.ts +4 -0
- package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +6 -2
- package/plugins/runtime-modules/resolver.js +17 -0
- package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
- package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
- package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/client.js +86 -60
- package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
- package/plugins/runtime-modules/revisions/controller/draft-context-target.d.ts +25 -0
- package/plugins/runtime-modules/revisions/controller/draft-context-target.js +33 -0
- package/plugins/runtime-modules/revisions/forms.js +1 -1
- package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
- package/plugins/runtime-modules/revisions/page-ids.js +4 -1
- package/plugins/runtime-modules/revisions/presets.d.ts +4 -0
- package/plugins/runtime-modules/revisions/services/options.js +14 -4
- package/plugins/runtime-modules/revisions/services/table.js +54 -25
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +79 -4
- package/plugins/runtime-modules/search/widgets/search-results/client.js +4 -2
- package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
- package/plugins/runtime-modules/theme/presets.d.ts +4 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +105 -7
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +3 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +2 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +19 -7
- package/plugins/runtime-modules/threads/client-data-providers.js +10 -0
- package/plugins/runtime-modules/threads/controller/client.js +62 -2
- package/plugins/runtime-modules/threads/controller/definition.js +49 -1
- package/plugins/runtime-modules/threads/data-providers.d.ts +100 -2
- package/plugins/runtime-modules/threads/data-providers.js +96 -0
- package/plugins/runtime-modules/threads/definition.d.ts +100 -2
- package/plugins/runtime-modules/threads/definition.js +1 -1
- package/plugins/runtime-modules/threads/ids.d.ts +4 -0
- package/plugins/runtime-modules/threads/ids.js +5 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +126 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.js +79 -0
- package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +5 -3
- package/plugins/runtime-modules/user-management/client-data-providers.js +5 -0
- package/plugins/runtime-modules/user-management/data-providers.d.ts +159 -0
- package/plugins/runtime-modules/user-management/data-providers.js +101 -3
- package/plugins/runtime-modules/user-management/definition.d.ts +159 -0
- package/plugins/runtime-modules/user-management/ids.d.ts +9 -0
- package/plugins/runtime-modules/user-management/ids.js +9 -0
- package/plugins/runtime-modules/user-management/presets.js +17 -1
- package/plugins/runtime-modules/user-management/services/users-access-table.d.ts +378 -0
- package/plugins/runtime-modules/user-management/services/users-access-table.js +132 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +90 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +122 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.d.ts +20 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +181 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +24 -18
- package/server-helpers/cms-page-record.d.ts +9 -1
- package/server-helpers/cms-page-record.js +11 -1
- package/server-helpers/cms-request.js +8 -5
- package/server-helpers/link-preview-image.d.ts +30 -0
- package/server-helpers/link-preview-image.js +57 -0
- package/server-helpers/runtime.js +0 -1
- package/server-helpers/search-text.js +3 -0
- package/server-helpers.d.ts +1 -1
- package/server-helpers.js +1 -1
- package/styles/controls.css +4 -2
- package/styles/layout.css +7 -0
- package/styles/shell.css +30 -6
- package/theme/phi-antd-token-resolver.d.ts +8 -0
- package/theme/phi-antd-token-resolver.js +10 -0
- package/theme/phi-theme-color.d.ts +19 -0
- package/theme/phi-theme-color.js +42 -0
- package/theme/phi-theme-composition.js +9 -0
- package/theme/phi-theme-gradients.js +4 -22
- package/theme/phi-theme-inverse-ground.d.ts +39 -0
- package/theme/phi-theme-inverse-ground.js +103 -0
- package/theme/phi-theme-palette-defaults.d.ts +16 -0
- package/theme/phi-theme-palette-defaults.js +103 -0
- package/theme/phi-theme-tokens.d.ts +2 -1
- package/theme/phi-theme-tokens.js +2 -0
- package/types/cms-module-descriptors.d.ts +14 -0
- package/types/cms-overlay.d.ts +13 -6
- package/types/cms-overlay.js +6 -22
- package/types/cms-plugins.d.ts +20 -3
- package/types/cms.d.ts +10 -0
- package/types/collection-provider.d.ts +27 -0
- package/types/collection-signal-values.d.ts +2 -0
- package/types/collection-signal-values.js +23 -0
- package/types/collection-view-widget.d.ts +9 -0
- package/types/core-widget-placements.d.ts +9 -3
- package/types/link-preview.d.ts +19 -0
- package/types/link-preview.js +19 -0
- package/types/record-provider.d.ts +22 -1
- package/types/signals.d.ts +2 -0
- package/types/signals.js +2 -0
- package/types/site-theme.d.ts +27 -0
- package/types/table-embed.d.ts +48 -0
- package/types/table-embed.js +1 -0
- package/types/table-widget.d.ts +29 -1
- package/types/table-widget.js +0 -282
- package/types/tree-widget.d.ts +0 -1
- package/types/tree-widget.js +0 -60
- package/types/widget-runtime.d.ts +3 -1
- package/types.d.ts +2 -1
- package/types.js +1 -1
- /package/{plugins/runtime-modules/threads/controller/address.d.ts → constants/threads-controller-address.d.ts} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { PHI_APP_ADDRESSES_DATA_PROVIDER_KEY, PHI_APP_ADDRESSES_RESOURCE_KEY, PHI_APP_RUNTIME_MODULE_ID } from "../ids";
|
|
2
|
+
import { PHI_APP_FORM_IDS } from "../forms";
|
|
3
|
+
import { createPhiPresetCmsInstanceIdMap } from "../../../../types/cms-instance-id";
|
|
4
|
+
import { PHI_SIGNAL_VALUE_SCHEMAS, createPhiSignalAddress } from "../../../../types/signals";
|
|
5
|
+
import { PHI_DIALOG_WIDTH_SINGLE_COLUMN } from "../../../../helpers/cms-dialog";
|
|
6
|
+
/**
|
|
7
|
+
* The account's addresses on the Profile page: one panel holding the address tiles, and the two dialogs
|
|
8
|
+
* they open.
|
|
9
|
+
*
|
|
10
|
+
* A Collection View drawn by Core's address renderer (`PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`, COLLECTIONS.md
|
|
11
|
+
* "The address renderer"), arranged as the Admin's provider installations are (the Settings shell's
|
|
12
|
+
* overlays): `+` in its toolbar announces `create` and opens the add dialog, a tile's pencil announces
|
|
13
|
+
* `edit` with the address id and opens the change dialog, whose Form reads that address through the same
|
|
14
|
+
* Provider (`recordOpen` on `collection-action`, FORMS.md "A record opened from a Collection View"); either
|
|
15
|
+
* Form's success reads the tiles again. Removing (after its confirmation) and the two defaults are the
|
|
16
|
+
* Provider's actions, each answered by the list as it now stands. An address is an item of a list somebody
|
|
17
|
+
* keeps, not a part of the page, so a panel per Form would describe things nobody is looking at.
|
|
18
|
+
*/
|
|
19
|
+
export function buildPhiAccountAddressesPanel(labels, presetKey) {
|
|
20
|
+
// The shell derives the instance ids from the node keys; the same derivation gives the addresses here.
|
|
21
|
+
const ids = createPhiPresetCmsInstanceIdMap({ domain: "page", ownerModuleId: PHI_APP_RUNTIME_MODULE_ID, presetKey }, ["widgetAddresses", "overlayAddressCreate", "overlayAddressEdit", "overlayAddressEditForm"]);
|
|
22
|
+
const viewAddress = createPhiSignalAddress("cms", ids.widgetAddresses);
|
|
23
|
+
const editFormAddress = createPhiSignalAddress("cms", ids.overlayAddressEditForm);
|
|
24
|
+
const source = { providerKey: PHI_APP_ADDRESSES_DATA_PROVIDER_KEY, resourceKey: PHI_APP_ADDRESSES_RESOURCE_KEY };
|
|
25
|
+
const actionTo = (routeKey, receiver) => ({
|
|
26
|
+
routeKey,
|
|
27
|
+
capabilityId: "actionActivate",
|
|
28
|
+
scope: "page",
|
|
29
|
+
channel: "action",
|
|
30
|
+
action: "activate",
|
|
31
|
+
valueType: "json",
|
|
32
|
+
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
|
|
33
|
+
receiver,
|
|
34
|
+
});
|
|
35
|
+
// The View's reload takes no value, and a listener matches on the value type too.
|
|
36
|
+
const reloadView = (routeKey) => ({
|
|
37
|
+
routeKey,
|
|
38
|
+
capabilityId: "submitSuccess",
|
|
39
|
+
scope: "page",
|
|
40
|
+
channel: "reload",
|
|
41
|
+
action: "activate",
|
|
42
|
+
valueType: "none",
|
|
43
|
+
receiver: viewAddress,
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
panel: {
|
|
47
|
+
nodeKey: "panelAddresses",
|
|
48
|
+
title: labels.panel.title,
|
|
49
|
+
description: labels.panel.description,
|
|
50
|
+
sections: [{
|
|
51
|
+
nodeKey: "widgetAddresses",
|
|
52
|
+
typeKey: "collection-view",
|
|
53
|
+
label: labels.tableLabel,
|
|
54
|
+
config: {
|
|
55
|
+
source,
|
|
56
|
+
presentation: {
|
|
57
|
+
mode: "grid",
|
|
58
|
+
controlSize: "small",
|
|
59
|
+
emptyDescription: `${labels.empty.title} ${labels.empty.text}`,
|
|
60
|
+
// The tiles' words, from the Module's Label Set (the renderer's English under them).
|
|
61
|
+
labels: {
|
|
62
|
+
purposes: labels.purposes,
|
|
63
|
+
actions: {
|
|
64
|
+
edit: labels.actions.edit,
|
|
65
|
+
remove: labels.actions.remove,
|
|
66
|
+
defaultBilling: labels.actions.defaultBilling,
|
|
67
|
+
defaultShipping: labels.actions.defaultShipping,
|
|
68
|
+
},
|
|
69
|
+
remove: { title: labels.remove.title, text: labels.remove.text, ok: labels.remove.ok, cancel: labels.cancel },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
features: {
|
|
73
|
+
tools: { mode: "self-contained", reset: false, reload: false },
|
|
74
|
+
actions: {
|
|
75
|
+
toolbar: [{ key: "create", label: labels.actions.add, icon: "plus", display: "icon", mode: "primary" }],
|
|
76
|
+
},
|
|
77
|
+
pagination: { enabled: false },
|
|
78
|
+
},
|
|
79
|
+
signalRoutes: {
|
|
80
|
+
// One announcement, three listeners; each decides by the action key whether it was meant.
|
|
81
|
+
emits: [
|
|
82
|
+
actionTo("app-addresses-action-edit-form", editFormAddress),
|
|
83
|
+
actionTo("app-addresses-action-create-dialog", createPhiSignalAddress("cms", ids.overlayAddressCreate)),
|
|
84
|
+
actionTo("app-addresses-action-edit-dialog", createPhiSignalAddress("cms", ids.overlayAddressEdit)),
|
|
85
|
+
],
|
|
86
|
+
listens: [{
|
|
87
|
+
routeKey: "app-addresses-reload",
|
|
88
|
+
capabilityId: "reload",
|
|
89
|
+
scope: "page",
|
|
90
|
+
channel: "reload",
|
|
91
|
+
action: "activate",
|
|
92
|
+
valueType: "none",
|
|
93
|
+
receiver: viewAddress,
|
|
94
|
+
}],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
}],
|
|
98
|
+
},
|
|
99
|
+
overlays: [
|
|
100
|
+
{
|
|
101
|
+
nodeKey: "overlayAddressCreate",
|
|
102
|
+
title: labels.addTitle,
|
|
103
|
+
openActionKey: "create",
|
|
104
|
+
openValueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
|
|
105
|
+
formId: PHI_APP_FORM_IDS.addressCreate,
|
|
106
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
107
|
+
label: labels.addTitle,
|
|
108
|
+
submitLabel: labels.save,
|
|
109
|
+
cancelLabel: labels.cancel,
|
|
110
|
+
configOverrides: { signalRoutes: { emits: [reloadView("app-address-create-success")] } },
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
nodeKey: "overlayAddressEdit",
|
|
114
|
+
title: labels.editTitle,
|
|
115
|
+
openActionKey: "edit",
|
|
116
|
+
openValueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
|
|
117
|
+
formId: PHI_APP_FORM_IDS.addressEdit,
|
|
118
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
119
|
+
label: labels.editTitle,
|
|
120
|
+
submitLabel: labels.save,
|
|
121
|
+
cancelLabel: labels.cancel,
|
|
122
|
+
configOverrides: {
|
|
123
|
+
// The Form reads the address the same action opened the dialog with; both filter on this key.
|
|
124
|
+
source,
|
|
125
|
+
openActionKey: "edit",
|
|
126
|
+
signalRoutes: {
|
|
127
|
+
emits: [reloadView("app-address-edit-success")],
|
|
128
|
+
listens: [{
|
|
129
|
+
routeKey: "app-address-edit-open",
|
|
130
|
+
capabilityId: "recordOpen",
|
|
131
|
+
scope: "page",
|
|
132
|
+
channel: "action",
|
|
133
|
+
action: "activate",
|
|
134
|
+
valueType: "json",
|
|
135
|
+
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
|
|
136
|
+
receiver: editFormAddress,
|
|
137
|
+
}],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { type PhiGlobalTranslatorOptions } from "../../../../gateway/tr";
|
|
3
|
+
export declare function getPhiAppAddressesLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
4
|
+
panel: {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
tableLabel: string;
|
|
9
|
+
purposes: {
|
|
10
|
+
billing: string;
|
|
11
|
+
shipping: string;
|
|
12
|
+
defaultBilling: string;
|
|
13
|
+
defaultShipping: string;
|
|
14
|
+
};
|
|
15
|
+
empty: {
|
|
16
|
+
title: string;
|
|
17
|
+
text: string;
|
|
18
|
+
};
|
|
19
|
+
actions: {
|
|
20
|
+
add: string;
|
|
21
|
+
edit: string;
|
|
22
|
+
defaultBilling: string;
|
|
23
|
+
defaultShipping: string;
|
|
24
|
+
remove: string;
|
|
25
|
+
};
|
|
26
|
+
remove: {
|
|
27
|
+
title: string;
|
|
28
|
+
text: string;
|
|
29
|
+
ok: string;
|
|
30
|
+
};
|
|
31
|
+
cancel: string;
|
|
32
|
+
save: string;
|
|
33
|
+
addTitle: string;
|
|
34
|
+
editTitle: string;
|
|
35
|
+
form: {
|
|
36
|
+
addressName: string;
|
|
37
|
+
addressNameRequired: string;
|
|
38
|
+
addressCompanyName: string;
|
|
39
|
+
addressLine1: string;
|
|
40
|
+
addressLine1Required: string;
|
|
41
|
+
addressLine2: string;
|
|
42
|
+
addressPostalCode: string;
|
|
43
|
+
addressCity: string;
|
|
44
|
+
addressCityRequired: string;
|
|
45
|
+
addressRegion: string;
|
|
46
|
+
addressCountry: string;
|
|
47
|
+
addressCountryRequired: string;
|
|
48
|
+
addressTooLong: string;
|
|
49
|
+
purposes: string;
|
|
50
|
+
billing: string;
|
|
51
|
+
shipping: string;
|
|
52
|
+
defaultBilling: string;
|
|
53
|
+
defaultShipping: string;
|
|
54
|
+
successTitle: string;
|
|
55
|
+
successText: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import "server-only";
|
|
2
|
+
import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../../gateway/tr";
|
|
3
|
+
import { definePhiMessageLabel, definePhiRuntimeModuleLabelSet, getPhiLabelSet } from "../../../../gateway/label-set";
|
|
4
|
+
import { PHI_APP_RUNTIME_MODULE_IDENTITY } from "../ids";
|
|
5
|
+
/**
|
|
6
|
+
* What the account's addresses say: the panel, the tiles' marks and acts, and the two dialogs that add an
|
|
7
|
+
* address and change one. One set for all of it, because the Forms and the tiles name the same parts.
|
|
8
|
+
*/
|
|
9
|
+
const PHI_APP_ADDRESSES_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_APP_RUNTIME_MODULE_IDENTITY, {
|
|
10
|
+
key: "preset:account-addresses",
|
|
11
|
+
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
12
|
+
labels: {
|
|
13
|
+
panel_title: "Addresses",
|
|
14
|
+
panel_description: definePhiMessageLabel("Where invoices are made out to and orders are sent on this site."),
|
|
15
|
+
table_label: "addresses",
|
|
16
|
+
purpose_billing: "Billing",
|
|
17
|
+
purpose_shipping: "Shipping",
|
|
18
|
+
purpose_default_billing: "Default billing",
|
|
19
|
+
purpose_default_shipping: "Default shipping",
|
|
20
|
+
empty_title: definePhiMessageLabel("No address yet."),
|
|
21
|
+
empty_text: definePhiMessageLabel("Add one for invoices or deliveries; it is kept for this site only."),
|
|
22
|
+
action_add: "Add address",
|
|
23
|
+
action_edit: "Change",
|
|
24
|
+
action_default_billing: "Use for billing by default",
|
|
25
|
+
action_default_shipping: "Use for shipping by default",
|
|
26
|
+
action_remove: "Remove",
|
|
27
|
+
remove_title: "Remove this address?",
|
|
28
|
+
remove_text: definePhiMessageLabel("It is gone from your account. An order or invoice made out to it keeps it."),
|
|
29
|
+
confirm_ok: "Remove",
|
|
30
|
+
cancel: "Cancel",
|
|
31
|
+
save: "Save",
|
|
32
|
+
add_title: "Add address",
|
|
33
|
+
edit_title: "Change address",
|
|
34
|
+
field_name: "Name",
|
|
35
|
+
field_name_required: "Enter the name the address is made out to.",
|
|
36
|
+
field_company: "Company",
|
|
37
|
+
field_line1: "Street and number",
|
|
38
|
+
field_line1_required: "Enter the street and number.",
|
|
39
|
+
field_line2: "Address line 2",
|
|
40
|
+
field_postal_code: "Postal code",
|
|
41
|
+
field_city: "City",
|
|
42
|
+
field_city_required: "Enter the city.",
|
|
43
|
+
field_region: "Region",
|
|
44
|
+
field_country: "Country",
|
|
45
|
+
field_country_required: "Choose the country.",
|
|
46
|
+
field_too_long: definePhiMessageLabel("%1 takes at most %2 characters."),
|
|
47
|
+
field_purposes: "Used for",
|
|
48
|
+
field_billing: "Billing address",
|
|
49
|
+
field_shipping: "Shipping address",
|
|
50
|
+
field_default_billing: "Default for billing",
|
|
51
|
+
field_default_shipping: "Default for shipping",
|
|
52
|
+
success_title: "Address saved",
|
|
53
|
+
success_text: definePhiMessageLabel("Your address has been saved."),
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
export async function getPhiAppAddressesLabels(options) {
|
|
57
|
+
const labels = await getPhiLabelSet(options, PHI_APP_ADDRESSES_LABEL_SET);
|
|
58
|
+
return {
|
|
59
|
+
panel: { title: labels.panel_title, description: labels.panel_description },
|
|
60
|
+
tableLabel: labels.table_label,
|
|
61
|
+
purposes: {
|
|
62
|
+
billing: labels.purpose_billing,
|
|
63
|
+
shipping: labels.purpose_shipping,
|
|
64
|
+
defaultBilling: labels.purpose_default_billing,
|
|
65
|
+
defaultShipping: labels.purpose_default_shipping,
|
|
66
|
+
},
|
|
67
|
+
empty: { title: labels.empty_title, text: labels.empty_text },
|
|
68
|
+
actions: {
|
|
69
|
+
add: labels.action_add,
|
|
70
|
+
edit: labels.action_edit,
|
|
71
|
+
defaultBilling: labels.action_default_billing,
|
|
72
|
+
defaultShipping: labels.action_default_shipping,
|
|
73
|
+
remove: labels.action_remove,
|
|
74
|
+
},
|
|
75
|
+
remove: { title: labels.remove_title, text: labels.remove_text, ok: labels.confirm_ok },
|
|
76
|
+
cancel: labels.cancel,
|
|
77
|
+
save: labels.save,
|
|
78
|
+
addTitle: labels.add_title,
|
|
79
|
+
editTitle: labels.edit_title,
|
|
80
|
+
// The address field's words under its own keys (PHI_FORM_ADDRESS_LABEL_KEYS), the purposes' beside them.
|
|
81
|
+
form: {
|
|
82
|
+
addressName: labels.field_name,
|
|
83
|
+
addressNameRequired: labels.field_name_required,
|
|
84
|
+
addressCompanyName: labels.field_company,
|
|
85
|
+
addressLine1: labels.field_line1,
|
|
86
|
+
addressLine1Required: labels.field_line1_required,
|
|
87
|
+
addressLine2: labels.field_line2,
|
|
88
|
+
addressPostalCode: labels.field_postal_code,
|
|
89
|
+
addressCity: labels.field_city,
|
|
90
|
+
addressCityRequired: labels.field_city_required,
|
|
91
|
+
addressRegion: labels.field_region,
|
|
92
|
+
addressCountry: labels.field_country,
|
|
93
|
+
addressCountryRequired: labels.field_country_required,
|
|
94
|
+
addressTooLong: labels.field_too_long,
|
|
95
|
+
purposes: labels.field_purposes,
|
|
96
|
+
billing: labels.field_billing,
|
|
97
|
+
shipping: labels.field_shipping,
|
|
98
|
+
defaultBilling: labels.field_default_billing,
|
|
99
|
+
defaultShipping: labels.field_default_shipping,
|
|
100
|
+
successTitle: labels.success_title,
|
|
101
|
+
successText: labels.success_text,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -5,8 +5,7 @@ import type { PhiCmsPageNode, PhiResolvedCmsPageTree } from "../../../../types/c
|
|
|
5
5
|
*
|
|
6
6
|
* It is a mounted Settings page like any other now (SETTINGS.md section 4), so it is built from the
|
|
7
7
|
* one shared shell: a Collapsible whose panels open one at a time, each panel one coherent thing to
|
|
8
|
-
* decide.
|
|
9
|
-
* a newsletter switch that now has a panel of its own.
|
|
8
|
+
* decide.
|
|
10
9
|
*
|
|
11
10
|
* Every panel is a registered Form reaching the server through its handler Provider. Language carries
|
|
12
11
|
* the Site's locales in its placement config, because a registered Form is the same on every Site and
|
|
@@ -2,18 +2,20 @@ import { PHI_APP_RUNTIME_MODULE_ID } from "../ids";
|
|
|
2
2
|
import { PHI_APP_FORM_IDS } from "../forms";
|
|
3
3
|
import { buildPhiSettingsPageShellTree } from "../../../../components/regions/presets/phi-settings-page-shell-tree";
|
|
4
4
|
import { getPhiProfilePageLabels } from "./profile-label-set";
|
|
5
|
+
import { getPhiAppAddressesLabels } from "./addresses-label-set";
|
|
6
|
+
import { buildPhiAccountAddressesPanel } from "./account-addresses-panel";
|
|
5
7
|
import { getPhiProfileLocaleWidgetLabels, getPhiProfileThemeWidgetLabels, } from "../../../../components/widgets/label-sets/profile";
|
|
6
8
|
import { PHI_SITE_LOCALES_CONFIG_KEY } from "../../../../components/forms/site-locales-config";
|
|
7
9
|
import { createPhiCoreRuntimeControllerAddress } from "../../../../components/runtime/core-runtime-controller-address";
|
|
8
10
|
import { buildPhiWidgetLabelTranslatorOptions } from "../../../../components/widgets/label-sets/runtime-options";
|
|
9
11
|
const REGION_CONTENT_ID = -286;
|
|
12
|
+
const PROFILE_PRESET_KEY = "app-profile-page";
|
|
10
13
|
/**
|
|
11
14
|
* What the account says about itself, as Settings panels rather than as a page of Widgets.
|
|
12
15
|
*
|
|
13
16
|
* It is a mounted Settings page like any other now (SETTINGS.md section 4), so it is built from the
|
|
14
17
|
* one shared shell: a Collapsible whose panels open one at a time, each panel one coherent thing to
|
|
15
|
-
* decide.
|
|
16
|
-
* a newsletter switch that now has a panel of its own.
|
|
18
|
+
* decide.
|
|
17
19
|
*
|
|
18
20
|
* Every panel is a registered Form reaching the server through its handler Provider. Language carries
|
|
19
21
|
* the Site's locales in its placement config, because a registered Form is the same on every Site and
|
|
@@ -25,11 +27,13 @@ const REGION_CONTENT_ID = -286;
|
|
|
25
27
|
*/
|
|
26
28
|
export async function buildPhiDefaultAppProfilePageTree({ page, runtime, }) {
|
|
27
29
|
const labelOptions = buildPhiWidgetLabelTranslatorOptions(runtime);
|
|
28
|
-
const [labels, localeLabels, themeLabels] = await Promise.all([
|
|
30
|
+
const [labels, localeLabels, themeLabels, addressLabels] = await Promise.all([
|
|
29
31
|
getPhiProfilePageLabels(labelOptions),
|
|
30
32
|
getPhiProfileLocaleWidgetLabels(labelOptions),
|
|
31
33
|
getPhiProfileThemeWidgetLabels(labelOptions),
|
|
34
|
+
getPhiAppAddressesLabels(labelOptions),
|
|
32
35
|
]);
|
|
36
|
+
const addresses = buildPhiAccountAddressesPanel(addressLabels, PROFILE_PRESET_KEY);
|
|
33
37
|
const availableLocales = runtime.site.availableLocales.map((option) => ({ code: option.code, label: option.label }));
|
|
34
38
|
/*
|
|
35
39
|
* What the account reads in today: its own preference where it has one, and otherwise the language
|
|
@@ -39,7 +43,7 @@ export async function buildPhiDefaultAppProfilePageTree({ page, runtime, }) {
|
|
|
39
43
|
const tree = buildPhiSettingsPageShellTree({
|
|
40
44
|
page,
|
|
41
45
|
ownerModuleId: PHI_APP_RUNTIME_MODULE_ID,
|
|
42
|
-
presetKey:
|
|
46
|
+
presetKey: PROFILE_PRESET_KEY,
|
|
43
47
|
regionId: REGION_CONTENT_ID,
|
|
44
48
|
label: labels.page,
|
|
45
49
|
panels: [
|
|
@@ -62,8 +66,27 @@ export async function buildPhiDefaultAppProfilePageTree({ page, runtime, }) {
|
|
|
62
66
|
displayName: runtime.viewer.profile?.displayName ?? "",
|
|
63
67
|
companyName: runtime.viewer.profile?.companyName ?? "",
|
|
64
68
|
},
|
|
69
|
+
}, {
|
|
70
|
+
/*
|
|
71
|
+
* The numbers beside the name, as their own Form because Core writes them on their own route.
|
|
72
|
+
* Both start as strings, never absent: the route takes both at once, and an empty one is
|
|
73
|
+
* cleared rather than left out.
|
|
74
|
+
*/
|
|
75
|
+
kind: "form",
|
|
76
|
+
nodeKey: "widgetPhone",
|
|
77
|
+
formId: PHI_APP_FORM_IDS.profilePhone,
|
|
78
|
+
label: labels.phone,
|
|
79
|
+
initialValues: {
|
|
80
|
+
phone: runtime.viewer.profile?.phone ?? "",
|
|
81
|
+
mobile: runtime.viewer.profile?.mobile ?? "",
|
|
82
|
+
},
|
|
65
83
|
}],
|
|
66
84
|
},
|
|
85
|
+
/*
|
|
86
|
+
* The account's addresses on this Site, after the name and numbers they are made out to: the
|
|
87
|
+
* address book is the Site's, so another Site lists its own.
|
|
88
|
+
*/
|
|
89
|
+
addresses.panel,
|
|
67
90
|
{
|
|
68
91
|
nodeKey: "panelLanguage",
|
|
69
92
|
title: labels.language,
|
|
@@ -145,22 +168,8 @@ export async function buildPhiDefaultAppProfilePageTree({ page, runtime, }) {
|
|
|
145
168
|
},
|
|
146
169
|
}],
|
|
147
170
|
},
|
|
148
|
-
{
|
|
149
|
-
nodeKey: "panelNewsletter",
|
|
150
|
-
title: labels.subscriptions,
|
|
151
|
-
sections: [{
|
|
152
|
-
kind: "form",
|
|
153
|
-
nodeKey: "widgetNewsletter",
|
|
154
|
-
formId: PHI_APP_FORM_IDS.profileNewsletter,
|
|
155
|
-
label: labels.newsletter,
|
|
156
|
-
submitOnChange: true,
|
|
157
|
-
savedMessage: labels.saved,
|
|
158
|
-
initialValues: {
|
|
159
|
-
newsletterOptIn: Boolean(runtime.viewer.newsletterOptIn),
|
|
160
|
-
},
|
|
161
|
-
}],
|
|
162
|
-
},
|
|
163
171
|
],
|
|
172
|
+
overlays: addresses.overlays,
|
|
164
173
|
});
|
|
165
174
|
return {
|
|
166
175
|
...tree,
|
|
@@ -3,9 +3,8 @@ import { type PhiGlobalTranslatorOptions } from "../../../../gateway/tr";
|
|
|
3
3
|
export declare function getPhiProfilePageLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
4
4
|
page: string;
|
|
5
5
|
name: string;
|
|
6
|
+
phone: string;
|
|
6
7
|
language: string;
|
|
7
8
|
appearance: string;
|
|
8
|
-
subscriptions: string;
|
|
9
|
-
newsletter: string;
|
|
10
9
|
saved: string;
|
|
11
10
|
}>;
|
|
@@ -8,21 +8,13 @@ const PHI_PROFILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_APP_RUNTIM
|
|
|
8
8
|
labels: {
|
|
9
9
|
page: "Profile",
|
|
10
10
|
name: "Name",
|
|
11
|
+
/** The authoring name of the Form beside the name that holds the two telephone numbers. */
|
|
12
|
+
phone: "Telephone numbers",
|
|
11
13
|
language: "Language",
|
|
12
14
|
appearance: "Appearance",
|
|
13
15
|
/*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* nothing else; named for the subject, a second thing somebody can subscribe to moves in beside
|
|
17
|
-
* the first without renaming anything.
|
|
18
|
-
*/
|
|
19
|
-
subscriptions: "Subscriptions",
|
|
20
|
-
/** The switch's own subject, and the authoring name of the Form that holds it. */
|
|
21
|
-
newsletter: "Newsletter",
|
|
22
|
-
/*
|
|
23
|
-
* What a panel says when it saved and its Form has no wording of its own -- the language select
|
|
24
|
-
* and the newsletter switch, which say nothing in place because there is nothing in place to say
|
|
25
|
-
* it in.
|
|
16
|
+
* What a panel says when it saved and its Form has no wording of its own -- the language select,
|
|
17
|
+
* which says nothing in place because there is nothing in place to say it in.
|
|
26
18
|
*/
|
|
27
19
|
saved: "Saved",
|
|
28
20
|
},
|
|
@@ -32,10 +24,9 @@ export async function getPhiProfilePageLabels(options) {
|
|
|
32
24
|
return {
|
|
33
25
|
page: labels.page,
|
|
34
26
|
name: labels.name,
|
|
27
|
+
phone: labels.phone,
|
|
35
28
|
language: labels.language,
|
|
36
29
|
appearance: labels.appearance,
|
|
37
|
-
subscriptions: labels.subscriptions,
|
|
38
|
-
newsletter: labels.newsletter,
|
|
39
30
|
saved: labels.saved,
|
|
40
31
|
};
|
|
41
32
|
}
|
|
@@ -45,6 +45,10 @@ export declare const PHI_ASSET_RUNTIME_MODULE_ROUTES: (PhiCmsRoutePresetDescript
|
|
|
45
45
|
path: string;
|
|
46
46
|
landingPage?: true;
|
|
47
47
|
title: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
shareImage?: {
|
|
50
|
+
asset: string;
|
|
51
|
+
};
|
|
48
52
|
defaultPageFlags?: number;
|
|
49
53
|
loadTree: (context: import("../../../types").PhiCmsDescriptorBuildContext & {
|
|
50
54
|
activeModuleIds: ReadonlySet<import("../contracts").PhiRuntimeModuleId>;
|
|
@@ -71,6 +71,11 @@ export async function buildPhiDefaultAdminMediaSettingsPageTree({ page, runtime,
|
|
|
71
71
|
{ key: "usedMegabytes", fieldKey: "usedMegabytes", title: labels.spaces.used, sizing: { mode: "content" }, align: "right" },
|
|
72
72
|
],
|
|
73
73
|
emptyState: { title: labels.spaces.empty },
|
|
74
|
+
footer: {
|
|
75
|
+
template: labels.spaces.footer,
|
|
76
|
+
values: [{ key: "spaces", value: { source: "core", fieldKey: "totalRows" } }],
|
|
77
|
+
align: "start",
|
|
78
|
+
},
|
|
74
79
|
},
|
|
75
80
|
features: {
|
|
76
81
|
search: { enabled: true, placeholder: labels.spaces.search, debounceMs: 250 },
|
|
@@ -133,7 +133,7 @@ export async function buildPhiDefaultBuilderMediaPageTree({ page, runtime, }) {
|
|
|
133
133
|
config: {
|
|
134
134
|
title: assetLabels.inspector.inspectorTitle ?? "Asset inspector",
|
|
135
135
|
placement: "right",
|
|
136
|
-
size: 377,
|
|
136
|
+
size: { width: 377 },
|
|
137
137
|
mountPolicy: "lazy-keep",
|
|
138
138
|
// A clear pane: the Canvas shows through, frosted.
|
|
139
139
|
surface: { background: { base: { kind: "color", color: "transparent" }, filter: "glass" } },
|
|
@@ -212,7 +212,7 @@ export async function buildPhiDefaultBuilderMediaPageTree({ page, runtime, }) {
|
|
|
212
212
|
config: {
|
|
213
213
|
title: assetLabels.editor.createFolderTitle ?? "Create folder",
|
|
214
214
|
controlSize: "medium",
|
|
215
|
-
width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
|
|
215
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
216
216
|
flags: PhiCmsFlags.Centered,
|
|
217
217
|
mountPolicy: "remount",
|
|
218
218
|
closeMode: "immediate",
|
|
@@ -397,6 +397,8 @@ export async function buildPhiDefaultBuilderMediaPageTree({ page, runtime, }) {
|
|
|
397
397
|
id: PHI_ASSET_MEDIA_PAGE_WIDGET_IDS.widgetMediaPreview,
|
|
398
398
|
parentLayoutNodeId: PHI_ASSET_MEDIA_PAGE_LAYOUT_IDS.layoutContent,
|
|
399
399
|
slotIndex: 0,
|
|
400
|
+
// The Media label set's words, translated already.
|
|
401
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
400
402
|
label: "dev media preview",
|
|
401
403
|
config: {
|
|
402
404
|
presentation: {
|
|
@@ -67,9 +67,11 @@ export async function buildPhiAuthAreaLoginOverlayTree({ page, runtime, area, })
|
|
|
67
67
|
* A login asks for two short lines and is not a page. The width has a floor rather than a
|
|
68
68
|
* preference, though: the form inside decides its own columns from its own measured width, and
|
|
69
69
|
* under 360px it puts every label back above its input. What is left over for chrome is about
|
|
70
|
-
* a dozen pixels, so 400 keeps the two columns with room to spare
|
|
70
|
+
* a dozen pixels, so 400 keeps the two columns with room to spare -- the floor is `minSize`,
|
|
71
|
+
* and the Modal still gives way to a phone narrower than it (OVERLAYS.md, "Presentation config").
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
|
+
size: { width: 420 },
|
|
74
|
+
minSize: { width: 400 },
|
|
73
75
|
mountPolicy: "lazy-keep",
|
|
74
76
|
closeMode: "request",
|
|
75
77
|
signalRoutes: {
|
|
@@ -273,7 +273,7 @@ export async function buildPhiDefaultAdminAuthSettingsPageTree({ page, runtime,
|
|
|
273
273
|
title: labels.installations.createTitle,
|
|
274
274
|
openActionKey: "create",
|
|
275
275
|
formId: PHI_AUTH_ADMIN_SETTINGS_FORM_IDS.installationCreate,
|
|
276
|
-
width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
|
|
276
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
277
277
|
label: labels.installations.createTitle,
|
|
278
278
|
submitLabel: labels.submitLabel,
|
|
279
279
|
cancelLabel: labels.installations.confirmCancel,
|
|
@@ -298,7 +298,7 @@ export async function buildPhiDefaultAdminAuthSettingsPageTree({ page, runtime,
|
|
|
298
298
|
title: labels.installations.editTitle,
|
|
299
299
|
openActionKey: "edit",
|
|
300
300
|
formId: PHI_AUTH_ADMIN_SETTINGS_FORM_IDS.installationEdit,
|
|
301
|
-
width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
|
|
301
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
302
302
|
label: labels.installations.editTitle,
|
|
303
303
|
submitLabel: labels.submitLabel,
|
|
304
304
|
cancelLabel: labels.installations.confirmCancel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PhiBlockRuntime, PhiClientBlockBaseProps } from "../../../../../types";
|
|
2
2
|
import type { PhiAuthLogoutWidgetLabels } from "../../../../../components/widgets/label-types/logout";
|
|
3
|
-
export declare function PhiAuthLogoutWidgetClient({ runtime, labels, }: PhiClientBlockBaseProps<PhiAuthLogoutWidgetLabels, {
|
|
3
|
+
export declare function PhiAuthLogoutWidgetClient({ runtime, labels, config, }: PhiClientBlockBaseProps<PhiAuthLogoutWidgetLabels, {
|
|
4
4
|
padding?: number | string;
|
|
5
5
|
}, Pick<PhiBlockRuntime, "site" | "locale">> & {
|
|
6
6
|
runtime: Pick<PhiBlockRuntime, "site" | "locale">;
|
|
@@ -8,7 +8,7 @@ import { localizePath } from "../../../../../helpers/locale";
|
|
|
8
8
|
import { PhiFlexControl } from "../../../../../components/controls/phi-flex-control";
|
|
9
9
|
import { PhiTypographyControl } from "../../../../../components/controls/phi-typography-control";
|
|
10
10
|
import { PhiSpinControl } from "../../../../../components/controls/phi-spin-control";
|
|
11
|
-
export function PhiAuthLogoutWidgetClient({ runtime, labels, }) {
|
|
11
|
+
export function PhiAuthLogoutWidgetClient({ runtime, labels, config, }) {
|
|
12
12
|
const [error, setError] = useState(null);
|
|
13
13
|
const locale = runtime.locale.current;
|
|
14
14
|
const siteKey = runtime.site.key;
|
|
@@ -33,5 +33,5 @@ export function PhiAuthLogoutWidgetClient({ runtime, labels, }) {
|
|
|
33
33
|
void logout();
|
|
34
34
|
return () => controller.abort();
|
|
35
35
|
}, [failedLabel, locale, siteKey]);
|
|
36
|
-
return (_jsx(PhiFlexControl, { vertical: true, align: "center", gap: "middle", children: error ? (_jsxs(_Fragment, { children: [_jsx(PhiAlertControl, { level: "error", showIcon: true, title: error }), _jsx(PhiButtonControl, { onClick: () => window.location.reload(), label: labels.retry })] })) : (_jsxs(_Fragment, { children: [_jsx(PhiSpinControl, {}), _jsx(PhiTypographyControl, { type: "secondary", children: labels.signingOut })] })) }));
|
|
36
|
+
return (_jsx(PhiFlexControl, { vertical: true, align: "center", gap: "middle", style: { padding: config?.padding }, children: error ? (_jsxs(_Fragment, { children: [_jsx(PhiAlertControl, { level: "error", showIcon: true, title: error }), _jsx(PhiButtonControl, { onClick: () => window.location.reload(), label: labels.retry })] })) : (_jsxs(_Fragment, { children: [_jsx(PhiSpinControl, {}), _jsx(PhiTypographyControl, { type: "secondary", children: labels.signingOut })] })) }));
|
|
37
37
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { PhiBlockRuntime } from "../../../../../types";
|
|
2
2
|
import type { PhiAuthWorkflowBodyLabels } from "../../../../../components/widgets/label-types/auth-workflow";
|
|
3
3
|
import { type PhiAuthSecurityWidgetLabels } from "../../../../../components/widgets/label-types/security";
|
|
4
|
-
export declare function PhiAuthSecurityWidgetClient({ apiPath, runtime, labels, workflowLabels, }: {
|
|
4
|
+
export declare function PhiAuthSecurityWidgetClient({ apiPath, runtime, labels, workflowLabels, config, }: {
|
|
5
5
|
apiPath?: string;
|
|
6
|
+
/** The Widget's padding, as the account avatar applies it, around every state it draws. */
|
|
7
|
+
config?: {
|
|
8
|
+
padding?: number | string;
|
|
9
|
+
};
|
|
6
10
|
/** The page's locale, which dates are written in; the browser's own language is not the Site's. */
|
|
7
11
|
runtime: Pick<PhiBlockRuntime, "locale">;
|
|
8
12
|
labels: PhiAuthSecurityWidgetLabels;
|
|
@@ -15,7 +15,7 @@ import { formatPhiAuthSecurityWidgetLabel, } from "../../../../../components/wid
|
|
|
15
15
|
import { usePhiPathname } from "../../../../../components/runtime/use-phi-pathname";
|
|
16
16
|
const PhiAuthWorkflowBody = lazy(() => import("../../../../../components/widgets/client/auth-workflow-body")
|
|
17
17
|
.then((module) => ({ default: module.PhiAuthWorkflowBody })));
|
|
18
|
-
export function PhiAuthSecurityWidgetClient({ apiPath = "/api/auth/account/security", runtime, labels, workflowLabels, }) {
|
|
18
|
+
export function PhiAuthSecurityWidgetClient({ apiPath = "/api/auth/account/security", runtime, labels, workflowLabels, config, }) {
|
|
19
19
|
const [payload, setPayload] = useState(null);
|
|
20
20
|
const [loading, setLoading] = useState(true);
|
|
21
21
|
const [error, setError] = useState(null);
|
|
@@ -76,17 +76,19 @@ export function PhiAuthSecurityWidgetClient({ apiPath = "/api/auth/account/secur
|
|
|
76
76
|
function revokeSession(sessionId) {
|
|
77
77
|
return removeAndReload(`/api/auth/account/sessions/${encodeURIComponent(sessionId)}`, labels.errors.sessionRevokeFailed);
|
|
78
78
|
}
|
|
79
|
+
const padding = config?.padding;
|
|
79
80
|
if (enrolling) {
|
|
80
|
-
return (_jsx(Suspense, { fallback: _jsx(PhiSkeletonControl, { lines: 4 }), children: _jsx(PhiAuthWorkflowBody, { mode: "enroll", next: pathname, labels: workflowLabels, onComplete: async () => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
return (_jsx(PhiFlexControl, { vertical: true, style: { padding }, children: _jsx(Suspense, { fallback: _jsx(PhiSkeletonControl, { lines: 4 }), children: _jsx(PhiAuthWorkflowBody, { mode: "enroll", next: pathname, labels: workflowLabels, onComplete: async () => {
|
|
82
|
+
setEnrolling(false);
|
|
83
|
+
await load();
|
|
84
|
+
} }) }) }));
|
|
84
85
|
}
|
|
85
|
-
if (loading)
|
|
86
|
-
return _jsx(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
if (loading || !payload) {
|
|
87
|
+
return (_jsx(PhiFlexControl, { vertical: true, style: { padding }, children: loading
|
|
88
|
+
? _jsx(PhiSkeletonControl, { lines: 8, withTitle: true })
|
|
89
|
+
: _jsx(PhiAlertControl, { level: "error", showIcon: true, title: error ?? labels.errors.unavailable }) }));
|
|
90
|
+
}
|
|
91
|
+
return (_jsxs(PhiFlexControl, { vertical: true, gap: "large", style: { padding }, children: [_jsx(PhiTypographyControl, { presentation: "paragraph", type: "secondary", children: labels.intro }), error ? _jsx(PhiAlertControl, { level: "error", showIcon: true, title: error, dismissible: true, onDismiss: () => setError(null) }) : null, _jsx(PhiCardControl, { title: labels.authenticators.title, toolbar: _jsx(PhiButtonControl, { type: "primary", onClick: () => setEnrolling(true), label: labels.authenticators.add }), children: _jsx(PhiEntryListControl, { emptyDescription: labels.authenticators.empty, entries: payload.factors
|
|
90
92
|
.filter((factor) => factor.type === 2 && factor.confirmedAt)
|
|
91
93
|
.map((factor) => ({
|
|
92
94
|
key: String(factor.id),
|
|
@@ -29,7 +29,7 @@ export async function buildPhiAvatarAreaPickerOverlayTree({ page, runtime, }) {
|
|
|
29
29
|
config: {
|
|
30
30
|
title: labels.overlayTitle,
|
|
31
31
|
controlSize: "medium",
|
|
32
|
-
|
|
32
|
+
size: { width: 520 },
|
|
33
33
|
/*
|
|
34
34
|
* `immediate`, not `request`. Request mode keeps the Overlay open and emits a `closeRequest`
|
|
35
35
|
* for a Controller to answer -- and this Module has no Controller, so the X and the mask were
|