@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
|
@@ -55,6 +55,7 @@ const PHI_BUILDER_MODULES_PAGE_LABEL_SET = definePhiLabelSet({
|
|
|
55
55
|
usage_sign_in: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.signIn,
|
|
56
56
|
usage_confirm: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.confirm,
|
|
57
57
|
usage_cancel: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.cancel,
|
|
58
|
+
usage_footer: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.usage.footer,
|
|
58
59
|
public_routes_title: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.title,
|
|
59
60
|
public_routes_intro: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.intro,
|
|
60
61
|
public_routes_page: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.page,
|
|
@@ -66,6 +67,7 @@ const PHI_BUILDER_MODULES_PAGE_LABEL_SET = definePhiLabelSet({
|
|
|
66
67
|
public_routes_address: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.address,
|
|
67
68
|
public_routes_assign: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.assign,
|
|
68
69
|
public_routes_cancel: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.cancel,
|
|
70
|
+
public_routes_footer: PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS.publicRoutes.footer,
|
|
69
71
|
},
|
|
70
72
|
});
|
|
71
73
|
export async function getPhiBuilderModulesPageLabels(options) {
|
|
@@ -139,6 +141,7 @@ export async function getPhiBuilderModulesPageLabels(options) {
|
|
|
139
141
|
signIn: labels.usage_sign_in,
|
|
140
142
|
confirm: labels.usage_confirm,
|
|
141
143
|
cancel: labels.usage_cancel,
|
|
144
|
+
footer: labels.usage_footer,
|
|
142
145
|
},
|
|
143
146
|
publicRoutes: {
|
|
144
147
|
title: labels.public_routes_title,
|
|
@@ -152,6 +155,7 @@ export async function getPhiBuilderModulesPageLabels(options) {
|
|
|
152
155
|
address: labels.public_routes_address,
|
|
153
156
|
assign: labels.public_routes_assign,
|
|
154
157
|
cancel: labels.public_routes_cancel,
|
|
158
|
+
footer: labels.public_routes_footer,
|
|
155
159
|
},
|
|
156
160
|
};
|
|
157
161
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "server-only";
|
|
2
2
|
import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../gateway/tr";
|
|
3
|
-
import { definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
|
|
3
|
+
import { definePhiCountLabel, definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
|
|
4
4
|
import { PHI_EFFECTS_WIDGET_DEFAULT_LABELS, } from "../label-types/effects";
|
|
5
5
|
const PHI_EFFECTS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
6
6
|
key: "widget:effects",
|
|
@@ -19,8 +19,7 @@ const PHI_EFFECTS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
19
19
|
description_transitions: definePhiMessageLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.descriptions.transitions),
|
|
20
20
|
description_viewport_effects: definePhiMessageLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.descriptions.viewportEffects),
|
|
21
21
|
status_off: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.off,
|
|
22
|
-
status_configured: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configured,
|
|
23
|
-
status_configured_plural: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configuredPlural,
|
|
22
|
+
status_configured: definePhiCountLabel(PHI_EFFECTS_WIDGET_DEFAULT_LABELS.status.configured),
|
|
24
23
|
field_amount: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.amount,
|
|
25
24
|
field_trigger: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.trigger,
|
|
26
25
|
field_once: PHI_EFFECTS_WIDGET_DEFAULT_LABELS.fields.once,
|
|
@@ -123,7 +122,6 @@ export async function getPhiEffectsWidgetLabels(options) {
|
|
|
123
122
|
status: {
|
|
124
123
|
off: labels.status_off,
|
|
125
124
|
configured: labels.status_configured,
|
|
126
|
-
configuredPlural: labels.status_configured_plural,
|
|
127
125
|
},
|
|
128
126
|
fields: {
|
|
129
127
|
amount: labels.field_amount,
|
|
@@ -32,22 +32,6 @@ export declare function getPhiProfileNameWidgetLabels(options: PhiGlobalTranslat
|
|
|
32
32
|
successText: string;
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
35
|
-
export declare function getPhiProfileOverviewWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
36
|
-
title: string;
|
|
37
|
-
description: string;
|
|
38
|
-
accountLabel: string;
|
|
39
|
-
newsletterLabel: string;
|
|
40
|
-
newsletterDescription: string;
|
|
41
|
-
newsletterOn: string;
|
|
42
|
-
newsletterOff: string;
|
|
43
|
-
feedback: {
|
|
44
|
-
errorTitle: string;
|
|
45
|
-
errorNetwork: string;
|
|
46
|
-
errorGeneric: string;
|
|
47
|
-
successTitle: string;
|
|
48
|
-
successText: string;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
35
|
export declare function getPhiProfileEmailWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
52
36
|
description: string;
|
|
53
37
|
currentLabel: string;
|
|
@@ -127,3 +111,16 @@ export declare function getPhiProfilePasswordFormLabels(options: PhiGlobalTransl
|
|
|
127
111
|
successText: string;
|
|
128
112
|
};
|
|
129
113
|
}>;
|
|
114
|
+
export declare function getPhiProfilePhoneWidgetLabels(options: PhiGlobalTranslatorOptions): Promise<{
|
|
115
|
+
fields: {
|
|
116
|
+
phone: string;
|
|
117
|
+
mobile: string;
|
|
118
|
+
};
|
|
119
|
+
phoneInvalid: string;
|
|
120
|
+
tooLong: string;
|
|
121
|
+
submitLabel: string;
|
|
122
|
+
feedback: {
|
|
123
|
+
successTitle: string;
|
|
124
|
+
successText: string;
|
|
125
|
+
};
|
|
126
|
+
}>;
|
|
@@ -44,22 +44,22 @@ const PHI_PROFILE_NAME_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
44
44
|
success_text: definePhiMessageLabel("Your profile details have been saved."),
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
/*
|
|
48
|
+
* The two numbers beside the name: a business telephone and a mobile, each as the person writes it. Core
|
|
49
|
+
* keeps them on the profile, so they are the same on every Site, and a person without a name yet is
|
|
50
|
+
* asked for one first (409), which is why they stand in the name's panel.
|
|
51
|
+
*/
|
|
52
|
+
const PHI_PROFILE_PHONE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
53
|
+
key: "widget:profile-phone",
|
|
49
54
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
50
55
|
labels: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
error_title: "Newsletter update failed",
|
|
59
|
-
error_network: definePhiMessageLabel("Network error while updating your newsletter preference."),
|
|
60
|
-
error_generic: definePhiMessageLabel("The newsletter preference could not be updated."),
|
|
61
|
-
success_title: "Newsletter updated",
|
|
62
|
-
success_text: definePhiMessageLabel("Your newsletter preference has been saved."),
|
|
56
|
+
phone_label: "Business phone",
|
|
57
|
+
mobile_label: "Mobile",
|
|
58
|
+
phone_invalid: "Enter a telephone number.",
|
|
59
|
+
too_long: "At most 64 characters.",
|
|
60
|
+
submit_label: "Save",
|
|
61
|
+
success_title: "Numbers updated",
|
|
62
|
+
success_text: definePhiMessageLabel("Your telephone numbers have been saved."),
|
|
63
63
|
},
|
|
64
64
|
});
|
|
65
65
|
export async function getPhiProfileLocaleWidgetLabels(options) {
|
|
@@ -103,25 +103,6 @@ export async function getPhiProfileNameWidgetLabels(options) {
|
|
|
103
103
|
},
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
export async function getPhiProfileOverviewWidgetLabels(options) {
|
|
107
|
-
const labels = await getPhiLabelSet(options, PHI_PROFILE_OVERVIEW_WIDGET_LABEL_SET);
|
|
108
|
-
return {
|
|
109
|
-
title: labels.title,
|
|
110
|
-
description: labels.description,
|
|
111
|
-
accountLabel: labels.account_label,
|
|
112
|
-
newsletterLabel: labels.newsletter_label,
|
|
113
|
-
newsletterDescription: labels.newsletter_description,
|
|
114
|
-
newsletterOn: labels.newsletter_on,
|
|
115
|
-
newsletterOff: labels.newsletter_off,
|
|
116
|
-
feedback: {
|
|
117
|
-
errorTitle: labels.error_title,
|
|
118
|
-
errorNetwork: labels.error_network,
|
|
119
|
-
errorGeneric: labels.error_generic,
|
|
120
|
-
successTitle: labels.success_title,
|
|
121
|
-
successText: labels.success_text,
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
106
|
const PHI_PROFILE_EMAIL_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
126
107
|
key: "widget:profile-email",
|
|
127
108
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
@@ -244,3 +225,13 @@ export async function getPhiProfilePasswordFormLabels(options) {
|
|
|
244
225
|
feedback: labels.feedback,
|
|
245
226
|
};
|
|
246
227
|
}
|
|
228
|
+
export async function getPhiProfilePhoneWidgetLabels(options) {
|
|
229
|
+
const labels = await getPhiLabelSet(options, PHI_PROFILE_PHONE_WIDGET_LABEL_SET);
|
|
230
|
+
return {
|
|
231
|
+
fields: { phone: labels.phone_label, mobile: labels.mobile_label },
|
|
232
|
+
phoneInvalid: labels.phone_invalid,
|
|
233
|
+
tooLong: labels.too_long,
|
|
234
|
+
submitLabel: labels.submit_label,
|
|
235
|
+
feedback: { successTitle: labels.success_title, successText: labels.success_text },
|
|
236
|
+
};
|
|
237
|
+
}
|
|
@@ -30,7 +30,6 @@ const PHI_REGISTRATION_FORM_LABEL_SET = definePhiLabelSet({
|
|
|
30
30
|
terms_text: "I agree to the %1",
|
|
31
31
|
terms_link_label: "Terms & Conditions",
|
|
32
32
|
terms_required: definePhiMessageLabel("You must accept the terms to continue."),
|
|
33
|
-
newsletter: definePhiMessageLabel("Send me product and platform updates."),
|
|
34
33
|
notice: definePhiMessageLabel("This form sends a verification email first. The live customer account is created only after confirmation."),
|
|
35
34
|
generic_error: definePhiMessageLabel("The registration request could not be completed."),
|
|
36
35
|
account_exists_error: definePhiMessageLabel("Account already exists."),
|
|
@@ -86,7 +85,6 @@ export async function getPhiRegistrationFormLabels(options) {
|
|
|
86
85
|
termsLinkLabel: labels.terms_link_label,
|
|
87
86
|
terms: labels.terms_text,
|
|
88
87
|
termsRequired: labels.terms_required,
|
|
89
|
-
newsletter: labels.newsletter,
|
|
90
88
|
},
|
|
91
89
|
actions: {
|
|
92
90
|
submitLabel: labels.submit_label,
|
|
@@ -58,6 +58,7 @@ const PHI_BUILDER_REVISIONS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
58
58
|
delete_area_title: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.title,
|
|
59
59
|
delete_area_warning: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.warning),
|
|
60
60
|
delete_area_survives: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.survives),
|
|
61
|
+
delete_area_type_to_confirm: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.typeToConfirm,
|
|
61
62
|
delete_area_field: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.field,
|
|
62
63
|
delete_area_field_required: definePhiMessageLabel(PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.fieldRequired),
|
|
63
64
|
delete_area_confirm: PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS.deleteArea.confirm,
|
|
@@ -136,6 +137,7 @@ export async function getPhiBuilderRevisionsWidgetLabels(options) {
|
|
|
136
137
|
title: labels.delete_area_title,
|
|
137
138
|
warning: labels.delete_area_warning,
|
|
138
139
|
survives: labels.delete_area_survives,
|
|
140
|
+
typeToConfirm: labels.delete_area_type_to_confirm,
|
|
139
141
|
field: labels.delete_area_field,
|
|
140
142
|
fieldRequired: labels.delete_area_field_required,
|
|
141
143
|
confirm: labels.delete_area_confirm,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "server-only";
|
|
2
|
-
import { definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
|
|
2
|
+
import { definePhiCountLabel, definePhiLabelSet, definePhiMessageLabel, getPhiLabelSet } from "../../../gateway/label-set";
|
|
3
3
|
import { PHI_TR_CTX_WEB_UI_LABEL, } from "../../../gateway/tr";
|
|
4
4
|
import { PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS, } from "../label-types/search-results";
|
|
5
5
|
/**
|
|
@@ -11,8 +11,7 @@ const PHI_SEARCH_RESULTS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
11
11
|
ctx: PHI_TR_CTX_WEB_UI_LABEL,
|
|
12
12
|
labels: {
|
|
13
13
|
heading: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.heading,
|
|
14
|
-
count: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.count,
|
|
15
|
-
count_one: PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.countOne,
|
|
14
|
+
count: definePhiCountLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.count),
|
|
16
15
|
empty: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.empty),
|
|
17
16
|
short: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.short),
|
|
18
17
|
idle: definePhiMessageLabel(PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS.idle),
|
|
@@ -25,7 +24,6 @@ export async function getPhiSearchResultsWidgetLabels(options) {
|
|
|
25
24
|
return {
|
|
26
25
|
heading: labels.heading,
|
|
27
26
|
count: labels.count,
|
|
28
|
-
countOne: labels.count_one,
|
|
29
27
|
empty: labels.empty,
|
|
30
28
|
short: labels.short,
|
|
31
29
|
idle: labels.idle,
|
|
@@ -41,6 +41,7 @@ const PHI_SIGNALS_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
41
41
|
routes_update: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.update,
|
|
42
42
|
routes_edit: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.edit,
|
|
43
43
|
routes_delete: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.delete,
|
|
44
|
+
routes_footer: PHI_SIGNALS_WIDGET_DEFAULT_LABELS.routes.footer,
|
|
44
45
|
},
|
|
45
46
|
});
|
|
46
47
|
export async function getPhiSignalsWidgetLabels(options) {
|
|
@@ -84,6 +85,7 @@ export async function getPhiSignalsWidgetLabels(options) {
|
|
|
84
85
|
update: labels.routes_update,
|
|
85
86
|
edit: labels.routes_edit,
|
|
86
87
|
delete: labels.routes_delete,
|
|
88
|
+
footer: labels.routes_footer,
|
|
87
89
|
},
|
|
88
90
|
};
|
|
89
91
|
}
|
|
@@ -26,6 +26,10 @@ const PHI_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
26
26
|
drag_row: "Drag row",
|
|
27
27
|
move_row_up: "Move row up",
|
|
28
28
|
move_row_down: "Move row down",
|
|
29
|
+
// The Dialog that shows an action's value once.
|
|
30
|
+
reveal_copy_and_close: "Copy and close",
|
|
31
|
+
reveal_close: "Close",
|
|
32
|
+
reveal_copy_failed: definePhiMessageLabel("The value could not be copied. Select it and copy it by hand before closing."),
|
|
29
33
|
// The Core `table` form field's words where its config names none (`table-field-labels.ts`).
|
|
30
34
|
form_add: PHI_FORM_TABLE_DEFAULT_LABELS.add,
|
|
31
35
|
form_remove: PHI_FORM_TABLE_DEFAULT_LABELS.remove,
|
|
@@ -57,6 +61,11 @@ export async function getPhiTableWidgetLabels(options) {
|
|
|
57
61
|
moveRowUp: labels.move_row_up,
|
|
58
62
|
moveRowDown: labels.move_row_down,
|
|
59
63
|
interval,
|
|
64
|
+
reveal: {
|
|
65
|
+
copyAndClose: labels.reveal_copy_and_close,
|
|
66
|
+
close: labels.reveal_close,
|
|
67
|
+
copyFailed: labels.reveal_copy_failed,
|
|
68
|
+
},
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
/** The Core `table` form field's add, remove and empty words, which the Form Widget hands to the field. */
|
|
@@ -59,6 +59,8 @@ export type PhiBuilderModulesPageLabels = {
|
|
|
59
59
|
signIn: string;
|
|
60
60
|
confirm: string;
|
|
61
61
|
cancel: string;
|
|
62
|
+
/** The Table's footer; %1 the places listed. */
|
|
63
|
+
footer: string;
|
|
62
64
|
};
|
|
63
65
|
/** The one question enabling a Module can ask: a Public address it wants is taken. */
|
|
64
66
|
publicRoutes: {
|
|
@@ -74,6 +76,8 @@ export type PhiBuilderModulesPageLabels = {
|
|
|
74
76
|
address: string;
|
|
75
77
|
assign: string;
|
|
76
78
|
cancel: string;
|
|
79
|
+
/** The Table's footer; %1 the addresses listed. */
|
|
80
|
+
footer: string;
|
|
77
81
|
};
|
|
78
82
|
};
|
|
79
83
|
export declare const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS: PhiBuilderModulesPageLabels;
|
|
@@ -68,6 +68,7 @@ export const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS = {
|
|
|
68
68
|
"Run phis auth restore-preset --site <site key> on the server to bring it back.",
|
|
69
69
|
confirm: "Switch off anyway",
|
|
70
70
|
cancel: "Keep it on",
|
|
71
|
+
footer: "%1 places draw it",
|
|
71
72
|
},
|
|
72
73
|
publicRoutes: {
|
|
73
74
|
title: "Public addresses are taken",
|
|
@@ -81,5 +82,6 @@ export const PHI_BUILDER_MODULES_PAGE_DEFAULT_LABELS = {
|
|
|
81
82
|
address: "Address",
|
|
82
83
|
assign: "Enable with these addresses",
|
|
83
84
|
cancel: "Cancel",
|
|
85
|
+
footer: "%1 addresses taken",
|
|
84
86
|
},
|
|
85
87
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PhiCountLabel } from "../../../helpers/translation-format";
|
|
1
2
|
export type PhiEffectsWidgetLabels = {
|
|
2
3
|
modalTitle: string;
|
|
3
4
|
openEditor: string;
|
|
@@ -18,8 +19,8 @@ export type PhiEffectsWidgetLabels = {
|
|
|
18
19
|
};
|
|
19
20
|
status: {
|
|
20
21
|
off: string;
|
|
21
|
-
configured
|
|
22
|
-
|
|
22
|
+
/** `%1` is how many are configured. */
|
|
23
|
+
configured: PhiCountLabel;
|
|
23
24
|
};
|
|
24
25
|
fields: {
|
|
25
26
|
amount: string;
|
|
@@ -17,8 +17,7 @@ export const PHI_EFFECTS_WIDGET_DEFAULT_LABELS = {
|
|
|
17
17
|
},
|
|
18
18
|
status: {
|
|
19
19
|
off: "Off",
|
|
20
|
-
configured: "1 configured",
|
|
21
|
-
configuredPlural: "{count} configured",
|
|
20
|
+
configured: { one: "%1 configured", other: "%1 configured" },
|
|
22
21
|
},
|
|
23
22
|
fields: {
|
|
24
23
|
amount: "Amount",
|
|
@@ -68,6 +68,8 @@ export type PhiBuilderRevisionsWidgetLabels = {
|
|
|
68
68
|
/** What is lost, until the Controller names the Area in it when the dialog opens. */
|
|
69
69
|
warning: string;
|
|
70
70
|
survives: string;
|
|
71
|
+
/** Above the Area key the dialog shows to be typed, which the Controller writes in as it opens. */
|
|
72
|
+
typeToConfirm: string;
|
|
71
73
|
field: string;
|
|
72
74
|
fieldRequired: string;
|
|
73
75
|
confirm: string;
|
|
@@ -60,7 +60,8 @@ export const PHI_BUILDER_REVISIONS_WIDGET_DEFAULT_LABELS = {
|
|
|
60
60
|
title: "Clear this Area back to its preset?",
|
|
61
61
|
warning: "The structure this Site stored for the Area is cleared -- its Shell, drafts and published alike. What is live changes at once, the shell's preset takes the Area back, and no revision is left to restore it from. It cannot be undone. The Module selection is kept.",
|
|
62
62
|
survives: "The Area keeps its Module selection, its Pages, its Navigation and its Theme. Only its Shell goes back to the preset.",
|
|
63
|
-
|
|
63
|
+
typeToConfirm: "Type this Area key to confirm:",
|
|
64
|
+
field: "Area key",
|
|
64
65
|
fieldRequired: "Write the Area key out to confirm.",
|
|
65
66
|
confirm: "Clear Area",
|
|
66
67
|
cancel: "Cancel",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { PhiCountLabel } from "../../../helpers/translation-format";
|
|
1
2
|
export type PhiSearchResultsWidgetLabels = {
|
|
2
3
|
/** `%1` is the query. */
|
|
3
4
|
heading: string;
|
|
4
5
|
/** `%1` is how many Pages matched in all. */
|
|
5
|
-
count:
|
|
6
|
-
countOne: string;
|
|
6
|
+
count: PhiCountLabel;
|
|
7
7
|
/** `%1` is the query. */
|
|
8
8
|
empty: string;
|
|
9
9
|
/** `%1` is how many characters a query needs. */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const PHI_SEARCH_RESULTS_WIDGET_DEFAULT_LABELS = {
|
|
2
2
|
heading: "Results for “%1”",
|
|
3
|
-
count: "%1 pages",
|
|
4
|
-
countOne: "1 page",
|
|
3
|
+
count: { one: "%1 page", other: "%1 pages" },
|
|
5
4
|
empty: "Nothing found for “%1”.",
|
|
6
5
|
short: "Type at least %1 characters.",
|
|
7
6
|
idle: "Enter what you are looking for.",
|
|
@@ -37,6 +37,8 @@ export type PhiSignalsWidgetLabels = {
|
|
|
37
37
|
update: string;
|
|
38
38
|
edit: string;
|
|
39
39
|
delete: string;
|
|
40
|
+
/** The routes Table's footer; %1 the routes listed. */
|
|
41
|
+
footer: string;
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
export declare const PHI_SIGNALS_WIDGET_DEFAULT_LABELS: PhiSignalsWidgetLabels;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PhiIntervalLabels } from "./interval";
|
|
2
|
+
import { type PhiRevealOnceDialogLabels } from "../../controls/phi-reveal-once-dialog-labels";
|
|
2
3
|
export type PhiTableWidgetLabels = {
|
|
3
4
|
search: string;
|
|
4
5
|
reset: string;
|
|
@@ -20,6 +21,8 @@ export type PhiTableWidgetLabels = {
|
|
|
20
21
|
moveRowDown: string;
|
|
21
22
|
/** The words of the `interval` renderer, from their own Label Set. */
|
|
22
23
|
interval: PhiIntervalLabels;
|
|
24
|
+
/** The buttons of the Dialog that shows an action's value once (`reveal`). */
|
|
25
|
+
reveal: PhiRevealOnceDialogLabels;
|
|
23
26
|
};
|
|
24
27
|
export declare const PHI_TABLE_WIDGET_DEFAULT_LABELS: PhiTableWidgetLabels;
|
|
25
28
|
export declare function formatPhiTableWidgetLabel(template: string, value: string | number): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PHI_INTERVAL_DEFAULT_LABELS } from "./interval";
|
|
2
|
+
import { PHI_REVEAL_ONCE_DIALOG_DEFAULT_LABELS, } from "../../controls/phi-reveal-once-dialog-labels";
|
|
2
3
|
export const PHI_TABLE_WIDGET_DEFAULT_LABELS = {
|
|
3
4
|
search: "Search",
|
|
4
5
|
reset: "Reset",
|
|
@@ -19,6 +20,7 @@ export const PHI_TABLE_WIDGET_DEFAULT_LABELS = {
|
|
|
19
20
|
moveRowUp: "Move row up",
|
|
20
21
|
moveRowDown: "Move row down",
|
|
21
22
|
interval: PHI_INTERVAL_DEFAULT_LABELS,
|
|
23
|
+
reveal: PHI_REVEAL_ONCE_DIALOG_DEFAULT_LABELS,
|
|
22
24
|
};
|
|
23
25
|
export function formatPhiTableWidgetLabel(template, value) {
|
|
24
26
|
return template.replace("%1", String(value));
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { PhiBlockRuntime } from "../../../types";
|
|
2
|
+
import type { PhiSignalRouteSet } from "../../../types/signals";
|
|
2
3
|
export type PhiBuilderChromeWidgetProps = {
|
|
3
4
|
runtime: Pick<PhiBlockRuntime, "locale">;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare function PhiBuilderModeSwitchWidget({ runtime, disabled, }: PhiBuilderChromeWidgetProps
|
|
7
|
+
export declare function PhiBuilderModeSwitchWidget({ runtime, disabled, signalRoutes, }: PhiBuilderChromeWidgetProps & {
|
|
8
|
+
signalRoutes?: PhiSignalRouteSet | null;
|
|
9
|
+
}): Promise<import("react").JSX.Element>;
|
|
@@ -6,7 +6,7 @@ import { buildPhiWidgetLabelTranslatorOptions } from "../label-sets/runtime-opti
|
|
|
6
6
|
async function getLabels(runtime) {
|
|
7
7
|
return getPhiBuilderChromeWidgetLabels(buildPhiWidgetLabelTranslatorOptions(runtime));
|
|
8
8
|
}
|
|
9
|
-
export async function PhiBuilderModeSwitchWidget({ runtime, disabled, }) {
|
|
9
|
+
export async function PhiBuilderModeSwitchWidget({ runtime, disabled, signalRoutes, }) {
|
|
10
10
|
const labels = await getLabels(runtime);
|
|
11
|
-
return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiRuntimeRenderClientType.BuilderModeSwitch, componentProps: { disabled, labels } }));
|
|
11
|
+
return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiRuntimeRenderClientType.BuilderModeSwitch, componentProps: { disabled, labels, signalRoutes: signalRoutes ?? null } }));
|
|
12
12
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
1
2
|
import type { PhiClientBlockBaseProps } from "../../../types";
|
|
2
3
|
import type { PhiCodeToken } from "./markdown-code-tokens";
|
|
3
4
|
import type { PhiMarkdownImageFloat, PhiMarkdownTextAlign } from "../../../types/core-widget-placements";
|
|
4
5
|
import { type PhiSpacingScaleKey } from "../config/spacing-options";
|
|
5
6
|
import type { PhiMarkdownTocHeading } from "../../../types/markdown";
|
|
7
|
+
import type { PhiTableWidgetConfig } from "../../../types/table-widget";
|
|
8
|
+
import type { PhiTableWidgetLabels } from "../label-types/table";
|
|
9
|
+
import type { PhiRenderableBlockRenderMode } from "../../../types/renderable-block";
|
|
6
10
|
import { type PhiMarkdownFoldSections } from "./markdown-sections";
|
|
7
11
|
import type { PhiImagePresentation } from "../../media/image-presentation";
|
|
8
12
|
import { type PhiMarkdownFigureFloat, type PhiMarkdownImageFloatWidth } from "./markdown-image-vocabulary";
|
|
@@ -101,6 +105,24 @@ export type PhiMarkdownBlock = {
|
|
|
101
105
|
} | {
|
|
102
106
|
kind: "image";
|
|
103
107
|
image: PhiMarkdownFigure;
|
|
108
|
+
} | ({
|
|
109
|
+
kind: "table_embed";
|
|
110
|
+
} & PhiMarkdownTableEmbed);
|
|
111
|
+
/**
|
|
112
|
+
* A Table a Module offers, standing on its own in the text (``), resolved on
|
|
113
|
+
* the server (TABLES.md, "Tables in Markdown"): the Table Widget's config and words, or nothing where the
|
|
114
|
+
* embed was refused.
|
|
115
|
+
*/
|
|
116
|
+
export type PhiMarkdownTableEmbed = {
|
|
117
|
+
/** The picture's alt text, translated as the text is: the Table's title when it is drawn. */
|
|
118
|
+
caption: string;
|
|
119
|
+
table: {
|
|
120
|
+
config: PhiTableWidgetConfig;
|
|
121
|
+
labels: PhiTableWidgetLabels;
|
|
122
|
+
renderMode: PhiRenderableBlockRenderMode;
|
|
123
|
+
} | null;
|
|
124
|
+
/** Why it was refused, for the author; set only where the text is authored, never live. */
|
|
125
|
+
notice: string | null;
|
|
104
126
|
};
|
|
105
127
|
export type PhiMarkdownWidgetClientProps = PhiClientBlockBaseProps<
|
|
106
128
|
/** The label above the text, translated on the server. */
|
|
@@ -127,3 +149,7 @@ export type PhiMarkdownWidgetClientProps = PhiClientBlockBaseProps<
|
|
|
127
149
|
headingOffset?: number;
|
|
128
150
|
}>;
|
|
129
151
|
export declare function PhiMarkdownWidgetClient({ config, labels }: PhiMarkdownWidgetClientProps): import("react").JSX.Element | null;
|
|
152
|
+
export declare function PhiMarkdownTableEmbedBlock({ embed, spacing, }: {
|
|
153
|
+
embed: PhiMarkdownTableEmbed;
|
|
154
|
+
spacing: Pick<CSSProperties, "marginBlockStart" | "marginBlockEnd">;
|
|
155
|
+
}): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import dynamic from "next/dynamic";
|
|
5
5
|
import { PhiProtectedMailText } from "../../navigation/use-phi-protected-mail";
|
|
@@ -14,6 +14,9 @@ import { PhiPlainTable } from "../../tables/phi-plain-table";
|
|
|
14
14
|
import { PhiTypographyControl } from "../../controls/phi-typography-control";
|
|
15
15
|
import { PhiDividerControl } from "../../controls/phi-divider-control";
|
|
16
16
|
import { PhiBulletListControl } from "../../controls/phi-bullet-list-control";
|
|
17
|
+
import { PhiRuntimeModuleRenderClientHost } from "../../runtime/runtime-module-render-client-manifest";
|
|
18
|
+
import { PhiCmsWidgetType } from "../../../constants/cms-widget-types";
|
|
19
|
+
import { PHI_TABLE_PROVIDER_REFUSED_CODE } from "../client/shared/phi-table-provider-refusal";
|
|
17
20
|
import { resolvePhiMarkdownFoldLevel, splitPhiMarkdownSegments, } from "./markdown-sections";
|
|
18
21
|
import { resolvePhiMarkdownFigureSizes, } from "./markdown-image-vocabulary";
|
|
19
22
|
import { resolvePhiBulletListStyle, } from "./bullet-list-vocabulary";
|
|
@@ -144,6 +147,8 @@ function renderBlocks(blocks, token, paragraphStyle, headingStyle, lists, atStar
|
|
|
144
147
|
}) }) }, key));
|
|
145
148
|
case "divider":
|
|
146
149
|
return _jsx(PhiDividerControl, { style: { margin: 0 } }, key);
|
|
150
|
+
case "table_embed":
|
|
151
|
+
return (_jsx(PhiMarkdownTableEmbedBlock, { embed: block, spacing: { marginBlockStart: paragraphBlockStyle.marginBlockStart, marginBlockEnd: paragraphBlockStyle.marginBlockEnd } }, key));
|
|
147
152
|
case "table":
|
|
148
153
|
/*
|
|
149
154
|
* A plain table, not the Table Control: Markdown only shows rows, and the Control's editors,
|
|
@@ -275,3 +280,28 @@ function PhiMarkdownFigureBlock({ figure }) {
|
|
|
275
280
|
const ownRatio = presentation.width && presentation.height ? `${presentation.width} / ${presentation.height}` : undefined;
|
|
276
281
|
return (_jsx("figure", { className: `phi-markdown-figure phi-markdown-figure--float-${figure.float} phi-markdown-figure--width-${figure.floatWidth}`, children: _jsx("div", { className: "phi-markdown-figure__frame", style: { aspectRatio: figure.aspectRatio ?? ownRatio }, children: _jsx(PhiImageControl, { presentation: presentation, source: "asset", alt: figure.alt, title: figure.title, blurDataUrl: figure.blurDataUrl, optimizable: figure.optimizable, sizes: resolvePhiMarkdownFigureSizes(figure.float, figure.floatWidth), style: { width: "100%", height: "100%" }, imageStyle: { width: "100%", height: "100%" } }) }) }));
|
|
277
282
|
}
|
|
283
|
+
/*
|
|
284
|
+
* An embedded Table: the Table Widget's own Render Client, by its type in the Area's manifest, which loads it
|
|
285
|
+
* with `next/dynamic` where one is drawn -- the Table's code is in no chunk of the Markdown Widget, and a
|
|
286
|
+
* text without an embed never asks for it. Refused, the caption stands as a paragraph, with the reason
|
|
287
|
+
* beneath it where the text is authored.
|
|
288
|
+
*/
|
|
289
|
+
export function PhiMarkdownTableEmbedBlock({ embed, spacing, }) {
|
|
290
|
+
/*
|
|
291
|
+
* The caption is the Table's title, so a Table that cannot draw takes it along: live, a failed read --
|
|
292
|
+
* a viewer the Provider refuses -- draws nothing at all. The Table says so in its state, and the caption
|
|
293
|
+
* then stands as the paragraph it is everywhere else. A refused read the Provider explains is no such
|
|
294
|
+
* failure: that Table draws itself, title and all.
|
|
295
|
+
*/
|
|
296
|
+
const [tableFailed, setTableFailed] = useState(false);
|
|
297
|
+
const componentProps = useMemo(() => embed.table
|
|
298
|
+
? {
|
|
299
|
+
...embed.table,
|
|
300
|
+
onStateChange: (state) => setTableFailed(state.errorCode != null && state.errorCode !== PHI_TABLE_PROVIDER_REFUSED_CODE),
|
|
301
|
+
}
|
|
302
|
+
: null, [embed.table]);
|
|
303
|
+
if (componentProps) {
|
|
304
|
+
return (_jsxs("figure", { className: "phi-markdown-table-embed", style: { margin: 0, minWidth: 0, ...spacing }, children: [tableFailed && embed.caption ? (_jsx(PhiTypographyControl, { presentation: "paragraph", style: { margin: 0 }, children: embed.caption })) : null, _jsx(PhiRuntimeModuleRenderClientHost, { type: PhiCmsWidgetType.Table, componentProps: componentProps })] }));
|
|
305
|
+
}
|
|
306
|
+
return (_jsxs(_Fragment, { children: [embed.caption ? (_jsx(PhiTypographyControl, { presentation: "paragraph", style: { margin: 0, ...spacing }, children: embed.caption })) : null, embed.notice ? (_jsx(PhiTypographyControl, { presentation: "paragraph", type: "warning", style: { margin: 0, ...spacing }, children: embed.notice })) : null] }));
|
|
307
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { PhiBlockRuntime, PhiRenderableBlockRenderMode } from "../../../types";
|
|
2
2
|
import type { PhiCmsResolvedContent } from "../../../types/cms";
|
|
3
3
|
import type { PhiMarkdownTocHeading } from "../../../types/markdown";
|
|
4
|
-
import type { PhiMarkdownBlock } from "./markdown-body-client";
|
|
4
|
+
import type { PhiMarkdownBlock, PhiMarkdownTableEmbed } from "./markdown-body-client";
|
|
5
5
|
import type { PhiMarkdownImageFloat } from "../../../types/core-widget-placements";
|
|
6
6
|
import { type PhiMarkdownImageAspectRatio, type PhiMarkdownImageFloatWidth } from "./markdown-image-vocabulary";
|
|
7
|
+
import type { PhiTableEmbedReference } from "../../../types/table-embed";
|
|
7
8
|
/**
|
|
8
9
|
* Where Markdown comes from and how it is turned into blocks: inline text, a stored content field, or a
|
|
9
10
|
* document fetched by URL, translated or not, with heading ids under a prefix of its own.
|
|
@@ -39,6 +40,11 @@ export type PhiMarkdownSourceConfig = {
|
|
|
39
40
|
imageFloat?: PhiMarkdownImageFloat;
|
|
40
41
|
imageFloatWidth?: PhiMarkdownImageFloatWidth;
|
|
41
42
|
};
|
|
43
|
+
/** Who draws a text's Table embeds (TABLES.md); absent, each is its caption. */
|
|
44
|
+
export type PhiMarkdownTableEmbedResolver = (embeds: readonly {
|
|
45
|
+
caption: string;
|
|
46
|
+
reference: PhiTableEmbedReference;
|
|
47
|
+
}[]) => Promise<readonly PhiMarkdownTableEmbed[]>;
|
|
42
48
|
export type MarkdownRenderData = {
|
|
43
49
|
blocks: PhiMarkdownBlock[];
|
|
44
50
|
headings: PhiMarkdownTocHeading[];
|
|
@@ -51,7 +57,9 @@ type ResolvedMarkdownSource = {
|
|
|
51
57
|
message: string;
|
|
52
58
|
};
|
|
53
59
|
export declare function resolveMarkdownSource(config: PhiMarkdownSourceConfig | undefined, publicUrl: string | null | undefined): Promise<ResolvedMarkdownSource>;
|
|
54
|
-
export declare function resolveMarkdownRenderData(config: PhiMarkdownSourceConfig | undefined, runtime?: Pick<PhiBlockRuntime, "site" | "locale" | "area" | "viewer"
|
|
60
|
+
export declare function resolveMarkdownRenderData(config: PhiMarkdownSourceConfig | undefined, runtime?: Pick<PhiBlockRuntime, "site" | "locale" | "area" | "viewer">, options?: {
|
|
61
|
+
tableEmbeds?: PhiMarkdownTableEmbedResolver;
|
|
62
|
+
}): Promise<MarkdownRenderData | {
|
|
55
63
|
error: string;
|
|
56
64
|
}>;
|
|
57
65
|
export {};
|