@phis/ui 0.4.2 → 0.4.4
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 +4 -3
- package/components/cms/phi-cms-page-render-scope.d.ts +4 -5
- package/components/cms/phi-cms-page-render-scope.js +43 -22
- package/components/cms/phi-cms-render-diagnostic-client.js +7 -3
- package/components/cms/phi-cms-render-error-boundary.js +2 -1
- package/components/controls/phi-anchor-nav-control.js +4 -1
- package/components/controls/phi-background-control.js +21 -6
- package/components/controls/phi-bullet-list-control.d.ts +7 -2
- package/components/controls/phi-bullet-list-control.js +35 -5
- package/components/controls/phi-color-control.js +4 -2
- package/components/controls/phi-drawer-control-adapter.js +3 -2
- package/components/controls/phi-inline-text-editor.js +7 -1
- package/components/controls/phi-length-control.js +1 -1
- package/components/controls/phi-ribbon-control.d.ts +38 -0
- package/components/controls/phi-ribbon-control.js +57 -0
- package/components/controls/phi-ribbon-wrap-control.d.ts +26 -0
- package/components/controls/phi-ribbon-wrap-control.js +25 -0
- package/components/controls/phi-select-control.js +5 -2
- package/components/controls/phi-series-chart-control.d.ts +48 -0
- package/components/controls/phi-series-chart-control.js +82 -0
- package/components/controls/phi-table-control.d.ts +3 -0
- package/components/controls/phi-table-control.js +13 -1
- package/components/controls/phi-text-control.js +57 -3
- package/components/controls/phi-tree-control.js +4 -4
- package/components/controls/phi-truncated-hover-text.d.ts +15 -0
- package/components/controls/phi-truncated-hover-text.js +25 -0
- package/components/forms/link-target-form-control.d.ts +1 -1
- package/components/forms/link-target-form-control.js +2 -45
- package/components/forms/phi-form-widget-frame.js +4 -2
- package/components/forms/shared-form-provider-registry.js +1 -4
- package/components/layouts/clients/phi-three-column-layout-client.js +10 -1
- package/components/media/asset-collection-runtime.js +6 -16
- package/components/media/media-font-metrics.d.ts +3 -0
- package/components/media/media-font-metrics.js +43 -0
- package/components/media/phi-area-upload-widget.js +53 -97
- package/components/media/phi-image-preview-data.d.ts +13 -0
- package/components/media/phi-image-preview-data.js +184 -9
- package/components/media/phi-media-picker-binding.js +16 -13
- package/components/media/phi-media-upload.d.ts +15 -8
- package/components/media/phi-media-upload.js +18 -9
- package/components/media/phi-site-font-assets.js +7 -8
- package/components/navigation/phi-link.js +6 -1
- package/components/overlays/phi-overlay-container-client.js +16 -1
- package/components/regions/clients/cms-region-container-client.js +6 -1
- package/components/regions/phi-cms-region-container.js +3 -0
- package/components/regions/phi-cms-region-shell.d.ts +12 -1
- package/components/regions/phi-cms-region-shell.js +81 -19
- package/components/regions/presets/phi-settings-page-shell-tree.js +48 -1
- package/components/root/phi-config-provider.d.ts +13 -0
- package/components/root/phi-config-provider.js +12 -1
- package/components/root/phi-root-background.d.ts +7 -0
- package/components/root/phi-root-background.js +20 -1
- package/components/root/phi-root-theme-resolver.js +3 -0
- package/components/root/phi-shell-chrome-overlay.d.ts +12 -1
- package/components/root/phi-shell-chrome-overlay.js +19 -3
- package/components/runtime/runtime-controller-materialization.js +12 -1
- package/components/shell/phi-antd-icon.d.ts +1 -0
- package/components/shell/phi-antd-icon.js +3 -0
- package/components/shell/use-phi-shell-sticky-top.js +61 -16
- package/components/state/scoped-state-store.js +20 -3
- package/components/surface/phi-surface-tone.d.ts +13 -0
- package/components/surface/phi-surface-tone.js +21 -0
- package/components/tables/client/phi-table-binding.d.ts +2 -1
- package/components/tables/client/phi-table-binding.js +45 -21
- package/components/trees/client/phi-tree-binding.js +19 -11
- package/components/widgets/client/bullet-list-entries-editor.d.ts +26 -0
- package/components/widgets/client/bullet-list-entries-editor.js +109 -0
- package/components/widgets/client/html-editor.js +1 -1
- package/components/widgets/client/shared/use-page-reference-options.d.ts +17 -0
- package/components/widgets/client/shared/use-page-reference-options.js +57 -0
- package/components/widgets/config/background.d.ts +32 -1
- package/components/widgets/config/background.js +41 -2
- package/components/widgets/config/choice-shared.js +12 -13
- package/components/widgets/config/command-buttons.d.ts +5 -1
- package/components/widgets/config/command-buttons.js +38 -81
- package/components/widgets/config/control-signal-config.d.ts +3 -1
- package/components/widgets/config/control-signal-config.js +19 -17
- package/components/widgets/config/image-source-parser.d.ts +1 -0
- package/components/widgets/config/image-source-parser.js +7 -8
- package/components/widgets/config/mask.d.ts +6 -1
- package/components/widgets/config/mask.js +24 -1
- package/components/widgets/config/parser-primitives.js +72 -0
- package/components/widgets/config/stack-tabs.d.ts +1 -1
- package/components/widgets/config/stack-tabs.js +2 -3
- package/components/widgets/config/strict-config-reader.d.ts +40 -0
- package/components/widgets/config/strict-config-reader.js +174 -0
- package/components/widgets/label-sets/background.js +2 -0
- package/components/widgets/label-sets/effects.js +2 -0
- package/components/widgets/label-types/background.d.ts +1 -0
- package/components/widgets/label-types/background.js +1 -0
- package/components/widgets/label-types/effects.d.ts +1 -0
- package/components/widgets/label-types/effects.js +1 -0
- package/components/widgets/navigation-descriptor-resolver.server.js +20 -8
- package/components/widgets/shared/bullet-list-vocabulary.d.ts +27 -1
- package/components/widgets/shared/bullet-list-vocabulary.js +24 -4
- package/components/widgets/shared/card-body-client.d.ts +18 -4
- package/components/widgets/shared/card-body-client.js +126 -26
- package/components/widgets/shared/card-vocabulary.d.ts +31 -4
- package/components/widgets/shared/card-vocabulary.js +35 -2
- package/components/widgets/shared/markdown-body-client.js +39 -10
- package/components/widgets/signals/control-signal-capabilities.d.ts +0 -18
- package/components/widgets/signals/control-signal-capabilities.js +10 -22
- package/components/workspace/catalog-store.d.ts +4 -3
- package/components/workspace/catalog-store.js +6 -5
- package/gateway/dashboard-cards-route.js +1 -0
- package/gateway/internal-references.d.ts +6 -1
- package/gateway/internal-references.js +48 -23
- package/gateway/site-cms-write-validation.d.ts +9 -0
- package/gateway/site-cms-write-validation.js +78 -0
- package/gateway/site-proxy.js +19 -3
- package/helpers/cms-container-chrome.js +6 -1
- package/helpers/locale.d.ts +8 -0
- package/helpers/locale.js +18 -0
- package/helpers/renderable-block-serialization.js +1 -1
- package/helpers/shell-region-style.js +2 -1
- package/helpers/surface-style.d.ts +12 -1
- package/helpers/surface-style.js +28 -2
- package/module-dashboard-cards.d.ts +1 -1
- package/module-dashboard-cards.js +1 -1
- package/next/config.d.mts +3 -0
- package/next/config.mjs +28 -1
- package/package.json +2 -2
- package/plugins/runtime/phi-slot-child-viewport-effects-observer.js +5 -1
- package/plugins/runtime-modules/accounting/presets.d.ts +9 -0
- package/plugins/runtime-modules/accounting/presets.js +37 -0
- package/plugins/runtime-modules/accounting/server.d.ts +1 -4
- package/plugins/runtime-modules/accounting/server.js +4 -7
- package/plugins/runtime-modules/app/presets.d.ts +18 -0
- package/plugins/runtime-modules/app/presets.js +67 -0
- package/plugins/runtime-modules/app/server.d.ts +1 -4
- package/plugins/runtime-modules/app/server.js +4 -7
- package/plugins/runtime-modules/area-definitions.d.ts +0 -42
- package/plugins/runtime-modules/area-definitions.js +3 -8
- package/plugins/runtime-modules/asset/controller/runtime.js +2 -2
- package/plugins/runtime-modules/asset/services/collection.js +9 -1
- package/plugins/runtime-modules/asset/services/options.js +2 -2
- package/plugins/runtime-modules/builder/area-settings-answer.js +2 -1
- package/plugins/runtime-modules/builder/authoring-canvas.js +6 -6
- package/plugins/runtime-modules/builder/cards.js +3 -5
- package/plugins/runtime-modules/builder/clients/builder-region-overrides.js +3 -3
- package/plugins/runtime-modules/builder/clients/canvas-widget.js +15 -54
- package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +25 -35
- package/plugins/runtime-modules/builder/clients/inspector-link-target-field.js +1 -1
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +8 -8
- package/plugins/runtime-modules/builder/clients/inspector-title.js +6 -6
- package/plugins/runtime-modules/builder/clients/layout-inspector.d.ts +1 -1
- package/plugins/runtime-modules/builder/clients/layout-inspector.js +11 -25
- package/plugins/runtime-modules/builder/clients/layout-scaffold-overlays.js +10 -5
- package/plugins/runtime-modules/builder/clients/mode-switch.js +1 -1
- package/plugins/runtime-modules/builder/clients/pages-header.js +11 -11
- package/plugins/runtime-modules/builder/clients/pages-workspace.js +1 -1
- package/plugins/runtime-modules/builder/clients/region-visibility-fields.js +1 -1
- package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +1 -1
- package/plugins/runtime-modules/builder/clients/shells-workspace.js +15 -31
- package/plugins/runtime-modules/builder/clients/structure-canvas.js +1 -1
- package/plugins/runtime-modules/builder/clients/use-region-draft-hydration.d.ts +26 -0
- package/plugins/runtime-modules/builder/clients/use-region-draft-hydration.js +36 -0
- package/plugins/runtime-modules/builder/clients/widget-effects-editor.js +1 -1
- package/plugins/runtime-modules/builder/clients/widget-inspector.js +1 -0
- package/plugins/runtime-modules/builder/clients/workspace-scope-boundary.js +2 -2
- package/plugins/runtime-modules/builder/cms-instance-allocator.js +8 -28
- package/plugins/runtime-modules/builder/controller/client.d.ts +0 -15
- package/plugins/runtime-modules/builder/controller/definition.d.ts +0 -15
- package/plugins/runtime-modules/builder/controller/definition.js +0 -8
- package/plugins/runtime-modules/builder/controller/draft-command-controller.d.ts +1 -2
- package/plugins/runtime-modules/builder/controller/draft-command-controller.js +11 -30
- package/plugins/runtime-modules/builder/controller/draft-status-controller.js +15 -2
- package/plugins/runtime-modules/builder/controller/inspector-controller.d.ts +1 -2
- package/plugins/runtime-modules/builder/controller/inspector-controller.js +4 -7
- package/plugins/runtime-modules/builder/controller/page-controller.d.ts +1 -2
- package/plugins/runtime-modules/builder/controller/page-controller.js +16 -68
- package/plugins/runtime-modules/builder/controller/server-definition.d.ts +0 -15
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.d.ts +2 -5
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +6 -50
- package/plugins/runtime-modules/builder/controller/workspace-controller.d.ts +2 -3
- package/plugins/runtime-modules/builder/controller/workspace-controller.js +89 -153
- package/plugins/runtime-modules/builder/data-providers.d.ts +1 -0
- package/plugins/runtime-modules/builder/data-providers.js +1 -0
- package/plugins/runtime-modules/builder/definition.d.ts +1 -0
- package/plugins/runtime-modules/builder/developer-workspace-store.d.ts +64 -30
- package/plugins/runtime-modules/builder/developer-workspace-store.js +255 -61
- package/plugins/runtime-modules/builder/edit-scaffold-drawer.js +4 -3
- package/plugins/runtime-modules/builder/history.d.ts +3 -1
- package/plugins/runtime-modules/builder/options-providers.js +3 -2
- package/plugins/runtime-modules/builder/page-catalog-client.js +19 -7
- package/plugins/runtime-modules/builder/page-meta-form.js +1 -0
- package/plugins/runtime-modules/builder/page-references-provider.js +1 -1
- package/plugins/runtime-modules/builder/persistence.js +33 -69
- package/plugins/runtime-modules/builder/public-route-collisions.d.ts +2 -2
- package/plugins/runtime-modules/builder/public-route-collisions.js +6 -19
- package/plugins/runtime-modules/builder/render-root-node-preview.server.js +20 -3
- package/plugins/runtime-modules/builder/render-root-node-scaffold.js +28 -18
- package/plugins/runtime-modules/builder/runtime-module-selection.d.ts +2 -12
- package/plugins/runtime-modules/builder/runtime-module-selection.js +16 -42
- package/plugins/runtime-modules/builder/services/navigation-table.js +9 -15
- package/plugins/runtime-modules/builder/services/page-source-tree.js +8 -8
- package/plugins/runtime-modules/builder/services/runtime-modules-table.js +10 -10
- package/plugins/runtime-modules/builder/services/signal-routes-table.js +3 -3
- package/plugins/runtime-modules/builder/signal-route-selection.d.ts +1 -2
- package/plugins/runtime-modules/builder/signal-route-selection.js +2 -2
- package/plugins/runtime-modules/builder/signal-wiring-options.js +3 -2
- package/plugins/runtime-modules/builder/structure-dnd.js +8 -61
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +17 -10
- package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +27 -22
- package/plugins/runtime-modules/builder/workspace-catalog-actions.d.ts +55 -0
- package/plugins/runtime-modules/builder/workspace-catalog-actions.js +142 -0
- package/plugins/runtime-modules/client-authoring-module.d.ts +8 -1
- package/plugins/runtime-modules/client-authoring-module.js +13 -3
- package/plugins/runtime-modules/client-manifests/common.js +1 -1
- package/plugins/runtime-modules/{runtime-calendar-adapters.js → core/calendar-adapters.js} +2 -2
- package/plugins/runtime-modules/{client-calendar-adapters/core.js → core/client-calendar-adapters.js} +1 -1
- package/plugins/runtime-modules/core/content-entries/table.js +1 -1
- package/plugins/runtime-modules/core/data-providers.d.ts +3 -0
- package/plugins/runtime-modules/core/data-providers.js +2 -1
- package/plugins/runtime-modules/core/definition.d.ts +3 -0
- package/plugins/runtime-modules/core/definition.js +1 -1
- package/plugins/runtime-modules/core/messaging/data-providers.d.ts +1 -0
- package/plugins/runtime-modules/core/messaging/data-providers.js +1 -0
- package/plugins/runtime-modules/core/messaging/thread-inbox-table.js +1 -1
- package/plugins/runtime-modules/core/server.js +1 -1
- package/plugins/runtime-modules/core/themes.d.ts +44 -0
- package/plugins/runtime-modules/core/themes.js +12 -0
- package/plugins/runtime-modules/core/widgets/brand/client.d.ts +12 -3
- package/plugins/runtime-modules/core/widgets/brand/client.js +3 -11
- package/plugins/runtime-modules/core/widgets/brand/home.d.ts +15 -0
- package/plugins/runtime-modules/core/widgets/brand/home.js +18 -0
- package/plugins/runtime-modules/core/widgets/brand/plugin.js +3 -2
- package/plugins/runtime-modules/core/widgets/brand/server.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/brand/server.js +2 -2
- package/plugins/runtime-modules/core/widgets/card/collection-view-binding.js +25 -9
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +301 -254
- package/plugins/runtime-modules/core/widgets/card/config.js +68 -3
- package/plugins/runtime-modules/core/widgets/card/editor.js +41 -4
- package/plugins/runtime-modules/core/widgets/card/server.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/card/server.js +32 -3
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +7 -6
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +9 -2
- package/plugins/runtime-modules/core/widgets/description/client.js +3 -3
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +2 -25
- package/plugins/runtime-modules/core/widgets/description/editor.js +7 -63
- package/plugins/runtime-modules/core/widgets/description/server.js +3 -2
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +2 -25
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +2 -25
- package/plugins/runtime-modules/core/widgets/header-navigation/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/html/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/image/config.js +2 -2
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +320 -2
- package/plugins/runtime-modules/core/widgets/markdown/config.js +18 -4
- package/plugins/runtime-modules/core/widgets/markdown/editor.js +11 -4
- package/plugins/runtime-modules/core/widgets/markdown-toc/client.js +6 -1
- package/plugins/runtime-modules/core/widgets/markdown-toc/config.d.ts +14 -0
- package/plugins/runtime-modules/core/widgets/markdown-toc/config.js +14 -2
- package/plugins/runtime-modules/core/widgets/quick-links/authoring.js +7 -2
- package/plugins/runtime-modules/core/widgets/quick-links/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/quick-links/items.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/quick-links/items.js +0 -15
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +5 -25
- package/plugins/runtime-modules/core/widgets/result/config.js +2 -0
- package/plugins/runtime-modules/core/widgets/result/server.js +25 -19
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/client.js +8 -3
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +2 -25
- package/plugins/runtime-modules/core/widgets/simple-text/editor.js +2 -2
- package/plugins/runtime-modules/core/widgets/slot-upload/client.js +11 -2
- package/plugins/runtime-modules/core/widgets/table/client.js +8 -4
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +6 -83
- package/plugins/runtime-modules/core/widgets/table/config.js +302 -452
- package/plugins/runtime-modules/core/widgets/tree/config.js +5 -2
- package/plugins/runtime-modules/dashboard/card-rows.d.ts +7 -0
- package/plugins/runtime-modules/dashboard/card-rows.js +87 -0
- package/plugins/runtime-modules/dashboard/clients/dashboard-card-view.js +32 -12
- package/plugins/runtime-modules/dashboard/services/collection.js +17 -7
- package/plugins/runtime-modules/dashboard/trees/phi-default-builder-dashboard-page-tree.js +5 -40
- package/plugins/runtime-modules/groups/data-providers.d.ts +2 -0
- package/plugins/runtime-modules/groups/data-providers.js +3 -3
- package/plugins/runtime-modules/groups/definition.d.ts +2 -0
- package/plugins/runtime-modules/localization/data-providers.d.ts +3 -0
- package/plugins/runtime-modules/localization/data-providers.js +2 -0
- package/plugins/runtime-modules/localization/definition.d.ts +3 -0
- package/plugins/runtime-modules/localization/services/table.js +3 -7
- package/plugins/runtime-modules/observability/data-providers.d.ts +1 -0
- package/plugins/runtime-modules/observability/data-providers.js +1 -0
- package/plugins/runtime-modules/observability/definition.d.ts +1 -0
- package/plugins/runtime-modules/observability/module.d.ts +1 -0
- package/plugins/runtime-modules/observability/services/table.js +1 -1
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +2 -105
- package/plugins/runtime-modules/public/presets.d.ts +115 -0
- package/plugins/runtime-modules/{area-base-presets.js → public/presets.js} +19 -119
- package/plugins/runtime-modules/public/server.d.ts +1 -4
- package/plugins/runtime-modules/public/server.js +4 -7
- package/plugins/runtime-modules/public/trees/phi-default-pub-error-page-tree.js +7 -8
- package/plugins/runtime-modules/public-base-page-references.d.ts +1 -1
- package/plugins/runtime-modules/public-base-page-references.js +1 -1
- package/plugins/runtime-modules/revisions/controller/client.js +11 -11
- package/plugins/runtime-modules/revisions/services/table.js +3 -3
- package/plugins/runtime-modules/theme/trees/phi-default-builder-theme-page-tree.js +22 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.d.ts +2 -1
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +111 -72
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +2 -1
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +28 -31
- package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +1 -1
- package/plugins/runtime-modules/theme-descriptors.js +1 -1
- package/plugins/runtime-modules/user-management/data-providers.d.ts +2 -0
- package/plugins/runtime-modules/user-management/data-providers.js +1 -0
- package/plugins/runtime-modules/user-management/definition.d.ts +2 -0
- package/server-helpers/cms-link-targets.js +6 -0
- package/styles/control-shape.css +11 -11
- package/styles/controls.css +67 -5
- package/styles/layout.css +61 -9
- package/styles/shell.css +73 -0
- package/theme/phi-antd-token-resolver.js +20 -1
- package/theme/phi-theme-tokens.d.ts +1 -1
- package/theme/phi-theme-tokens.js +1 -0
- package/theme/phi-theme.d.ts +5 -0
- package/theme/phi-theme.js +21 -0
- package/theme/phi-tokens.d.ts +16 -15
- package/theme/phi-tokens.js +16 -15
- package/types/cms-config.js +142 -185
- package/types/cms-plugins.d.ts +6 -11
- package/types/core-widget-placements.d.ts +14 -3
- package/types/dashboard-cards.d.ts +48 -4
- package/types/dashboard-cards.js +6 -0
- package/types/media.d.ts +0 -3
- package/types/renderable-block.d.ts +6 -1
- package/types/site-theme.d.ts +10 -2
- package/types/table-widget.d.ts +9 -0
- package/types/table-widget.js +20 -0
- package/types.d.ts +1 -1
- package/widget-config.d.ts +2 -0
- package/widget-config.js +6 -0
- package/plugins/runtime-modules/area-base-presets.d.ts +0 -139
- /package/plugins/runtime-modules/{runtime-calendar-adapters.d.ts → core/calendar-adapters.d.ts} +0 -0
- /package/plugins/runtime-modules/{client-calendar-adapters/core.d.ts → core/client-calendar-adapters.d.ts} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PhiCmsTreeControllerSettings } from "../../../types/cms";
|
|
2
2
|
import { type PhiSignalRouteReceiverTarget } from "../../../helpers/signal-route-lifecycle";
|
|
3
|
-
import {
|
|
4
|
-
import type { PhiBuilderModuleDeactivationRequest, PhiBuilderPublicRouteCollisionRequest, PhiDeveloperBuilderArea, PhiDeveloperBuilderEffectsRequest, PhiDeveloperBuilderNodeKind, PhiDeveloperBuilderPageMetaDraft, PhiDeveloperBuilderRegionDraft, PhiDeveloperBuilderState, PhiDeveloperBuilderWorkspaceState } from "./developer-workspace-types";
|
|
3
|
+
import type { PhiBuilderModuleDeactivationRequest, PhiBuilderPublicRouteCollisionRequest, PhiDeveloperBuilderArea, PhiDeveloperBuilderDraftAllocation, PhiDeveloperBuilderEffectsRequest, PhiDeveloperBuilderMode, PhiDeveloperBuilderCommandWorkspace, PhiDeveloperBuilderNodeKind, PhiDeveloperBuilderPageMetaDraft, PhiDeveloperBuilderRegionDraft, PhiDeveloperBuilderState, PhiDeveloperBuilderWorkspaceState } from "./developer-workspace-types";
|
|
5
4
|
import type { PhiRenderableBlockEffects } from "../../../types/renderable-block";
|
|
6
5
|
import type { PhiCmsInstanceId } from "../../../types/cms-instance-id";
|
|
7
6
|
import type { PhiAnchorWidgetPlacement } from "../../../components/controls/phi-anchor-control-contract";
|
|
@@ -9,7 +8,7 @@ import { type PhiBuilderHistoryRecording } from "./history";
|
|
|
9
8
|
import type { PhiAreaRootRoute, PhiAreaMeta } from "../../../helpers/cms-area-config";
|
|
10
9
|
export declare function normalizePhiDeveloperBuilderArea(scopeKey: string): PhiDeveloperBuilderArea;
|
|
11
10
|
export declare const builderWorkspaceStore: import("../../../state").PhiPluginStateStore<PhiDeveloperBuilderState>;
|
|
12
|
-
export declare function openPhiDeveloperBuilderEffectsEditor(
|
|
11
|
+
export declare function openPhiDeveloperBuilderEffectsEditor(effects: PhiRenderableBlockEffects, target: PhiDeveloperBuilderEffectsRequest["target"], onCommit: (effects: PhiRenderableBlockEffects) => void): void;
|
|
13
12
|
/**
|
|
14
13
|
* What the open editor shows now, for the canvas to draw while it is being chosen.
|
|
15
14
|
*
|
|
@@ -18,7 +17,7 @@ export declare function openPhiDeveloperBuilderEffectsEditor(scopeKey: PhiDevelo
|
|
|
18
17
|
* checked because the editor that sent this may already be closed -- a late message from a gesture that
|
|
19
18
|
* ended must not put a picture back on a node whose editor is gone.
|
|
20
19
|
*/
|
|
21
|
-
export declare function previewPhiDeveloperBuilderEffects(
|
|
20
|
+
export declare function previewPhiDeveloperBuilderEffects(correlationId: string, preview: PhiRenderableBlockEffects): void;
|
|
22
21
|
/**
|
|
23
22
|
* The effects a node is drawn with while its editor stands open, or nothing where none is.
|
|
24
23
|
*
|
|
@@ -26,7 +25,7 @@ export declare function previewPhiDeveloperBuilderEffects(scopeKey: PhiDeveloper
|
|
|
26
25
|
* node whose toolbar opened it and the selection may have moved on.
|
|
27
26
|
*/
|
|
28
27
|
export declare function readPhiDeveloperBuilderEffectsPreview(state: PhiDeveloperBuilderState, kind: PhiDeveloperBuilderNodeKind, blockId: PhiCmsInstanceId | null): PhiRenderableBlockEffects | null;
|
|
29
|
-
export declare function completePhiDeveloperBuilderEffectsEditor(
|
|
28
|
+
export declare function completePhiDeveloperBuilderEffectsEditor(request: PhiDeveloperBuilderEffectsRequest, effects?: PhiRenderableBlockEffects): void;
|
|
30
29
|
/**
|
|
31
30
|
* The question a Module's switch could not answer on its own.
|
|
32
31
|
*
|
|
@@ -34,21 +33,19 @@ export declare function completePhiDeveloperBuilderEffectsEditor(scopeKey: PhiDe
|
|
|
34
33
|
* which Areas, and which addresses are contested -- and the answer is what enables the Module. A second
|
|
35
34
|
* question replaces the first, because there is only one dialog and only one gesture behind it.
|
|
36
35
|
*/
|
|
37
|
-
export declare function openPhiBuilderPublicRouteCollisionRequest(
|
|
36
|
+
export declare function openPhiBuilderPublicRouteCollisionRequest(request: Omit<PhiBuilderPublicRouteCollisionRequest, "correlationId">): string;
|
|
38
37
|
/** The address being typed for one contested route. */
|
|
39
|
-
export declare function answerPhiBuilderPublicRouteCollision(
|
|
38
|
+
export declare function answerPhiBuilderPublicRouteCollision(presetKey: string, path: string): void;
|
|
40
39
|
/**
|
|
41
40
|
* What switching a Module off takes off the Site, put to the person doing it.
|
|
42
41
|
*
|
|
43
42
|
* Opened only when there is something to say: a Module nothing draws from is switched off without a
|
|
44
43
|
* word, because a dialog that always says "nothing happens" is a dialog nobody reads.
|
|
45
44
|
*/
|
|
46
|
-
export declare function openPhiBuilderModuleDeactivationRequest(
|
|
47
|
-
export declare function closePhiBuilderModuleDeactivationRequest(
|
|
48
|
-
export declare function closePhiBuilderPublicRouteCollisionRequest(
|
|
45
|
+
export declare function openPhiBuilderModuleDeactivationRequest(request: Omit<PhiBuilderModuleDeactivationRequest, "correlationId">): string;
|
|
46
|
+
export declare function closePhiBuilderModuleDeactivationRequest(): void;
|
|
47
|
+
export declare function closePhiBuilderPublicRouteCollisionRequest(): void;
|
|
49
48
|
export type PhiDeveloperBuilderNodeSelection = {
|
|
50
|
-
area?: PhiDeveloperBuilderArea;
|
|
51
|
-
pageKey?: string;
|
|
52
49
|
nodeKey: string;
|
|
53
50
|
nodeId?: PhiCmsInstanceId | null;
|
|
54
51
|
nodeKind: PhiDeveloperBuilderNodeKind;
|
|
@@ -57,21 +54,8 @@ export type PhiDeveloperBuilderNodeSelection = {
|
|
|
57
54
|
selectedLayoutAnchor?: PhiAnchorWidgetPlacement | null;
|
|
58
55
|
openWiring?: boolean;
|
|
59
56
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* the Pages sidebar showing. One answer for every way a Page is opened -- a click in the tree, a route
|
|
63
|
-
* change, a new Page -- which used to be four copies that had drifted apart. `chrome` resets the
|
|
64
|
-
* chrome controls as well, `closePages` folds the Pages panel.
|
|
65
|
-
*/
|
|
66
|
-
export declare function resetPhiBuilderSelectionToPage(current: PhiDeveloperBuilderState, pageKey: string, options?: {
|
|
67
|
-
closePages?: boolean;
|
|
68
|
-
}): PhiDeveloperBuilderState;
|
|
69
|
-
export declare function selectPhiDeveloperBuilderNode(scopeKey: PhiDeveloperBuilderArea, selection: PhiDeveloperBuilderNodeSelection): void;
|
|
70
|
-
export declare function patchPhiDeveloperBuilderState(scopeKey: PhiDeveloperBuilderArea, next: Partial<Pick<PhiDeveloperBuilderState, "pickerWidgetCategoryFilters">>): void;
|
|
71
|
-
export declare function splitWorkspacePatch(next: Partial<PhiDeveloperBuilderWorkspaceState>): {
|
|
72
|
-
catalog: Partial<PhiWorkspaceCatalogState>;
|
|
73
|
-
tool: Partial<PhiDeveloperBuilderState>;
|
|
74
|
-
};
|
|
57
|
+
export declare function selectPhiDeveloperBuilderNode(selection: PhiDeveloperBuilderNodeSelection): void;
|
|
58
|
+
export declare function patchPhiDeveloperBuilderState(next: Partial<Pick<PhiDeveloperBuilderState, "pickerWidgetCategoryFilters">>): void;
|
|
75
59
|
type PhiBuilderRegionDraftMutationOptions = {
|
|
76
60
|
history?: PhiBuilderHistoryRecording | null;
|
|
77
61
|
};
|
|
@@ -174,8 +158,58 @@ export declare function usePhiDeveloperRegionDraft(draftKey: string): PhiDevelop
|
|
|
174
158
|
*/
|
|
175
159
|
export declare function usePhiDeveloperRegionDraftsValue<TSelected>(selector: (drafts: Record<string, PhiDeveloperBuilderRegionDraft>) => TSelected): TSelected;
|
|
176
160
|
/** The whole merged view, for the few places that work with the state as one object. */
|
|
177
|
-
export declare function usePhiDeveloperBuilderWorkspaceState(
|
|
178
|
-
export declare function usePhiDeveloperBuilderStateValue<TSelected>(
|
|
161
|
+
export declare function usePhiDeveloperBuilderWorkspaceState(): PhiDeveloperBuilderWorkspaceState;
|
|
162
|
+
export declare function usePhiDeveloperBuilderStateValue<TSelected>(selector: (state: PhiDeveloperBuilderWorkspaceState) => TSelected): TSelected;
|
|
179
163
|
export declare function getPhiDeveloperRegionDraftsSnapshot(): Record<string, PhiDeveloperBuilderRegionDraft>;
|
|
180
|
-
export declare function getPhiDeveloperBuilderStateSnapshot(
|
|
164
|
+
export declare function getPhiDeveloperBuilderStateSnapshot(): PhiDeveloperBuilderWorkspaceState;
|
|
165
|
+
/** Opens a Page of an Area: the catalog says what is open, the selection starts at the Page itself. */
|
|
166
|
+
export declare function openPhiBuilderPage(area: PhiDeveloperBuilderArea, pageKey: string, options?: {
|
|
167
|
+
closePages?: boolean;
|
|
168
|
+
}): void;
|
|
169
|
+
/** Opens a Page of the Area that is open. */
|
|
170
|
+
export declare function openPhiBuilderPageInOpenArea(pageKey: string, options?: {
|
|
171
|
+
closePages?: boolean;
|
|
172
|
+
}): void;
|
|
173
|
+
/** Points the selection at a Page the catalog opened by itself, leaving the rest of the tool as it is. */
|
|
174
|
+
export declare function selectPhiBuilderPageNode(pageKey: string): void;
|
|
175
|
+
export declare function setPhiBuilderCommandWorkspace(commandWorkspace: PhiDeveloperBuilderCommandWorkspace): void;
|
|
176
|
+
export declare function setPhiBuilderMode(builderMode: PhiDeveloperBuilderMode): void;
|
|
177
|
+
export declare function setPhiBuilderDebugScaffold(debugScaffold: boolean): void;
|
|
178
|
+
export declare function openPhiBuilderPagesPanel(): void;
|
|
179
|
+
export declare function setPhiBuilderInspectorOpen(inspectorOpen: boolean): void;
|
|
180
|
+
export declare function setPhiBuilderSelectedLayoutAnchor(anchor: PhiAnchorWidgetPlacement): void;
|
|
181
|
+
/** A Page's meta as edited, laid over what its draft held. */
|
|
182
|
+
export declare function setPhiBuilderPageMetaDraft(draftKey: string, meta: PhiDeveloperBuilderPageMetaDraft): void;
|
|
183
|
+
/** A Page created in the Builder: its meta, and that it is not deleted. */
|
|
184
|
+
export declare function startPhiBuilderNewPageDrafts(input: {
|
|
185
|
+
metaDraftKey: string;
|
|
186
|
+
meta: PhiDeveloperBuilderPageMetaDraft;
|
|
187
|
+
deleteDraftKey: string;
|
|
188
|
+
}): void;
|
|
189
|
+
/** A Page marked for deletion with the next save. */
|
|
190
|
+
export declare function markPhiBuilderPageDeleted(deleteDraftKey: string): void;
|
|
191
|
+
/**
|
|
192
|
+
* The Areas whose Module selection has unsaved edits, kept as Builder tool state so the Modules
|
|
193
|
+
* workspace commands know which Areas a site-wide save or publish has to reach. Undo does not clear
|
|
194
|
+
* an Area from here -- a save of an unchanged selection is a no-op draft, while a missed Area would
|
|
195
|
+
* silently publish stale state.
|
|
196
|
+
*/
|
|
197
|
+
export declare function markPhiBuilderModuleAreasDirty(areas: readonly PhiDeveloperBuilderArea[]): void;
|
|
198
|
+
export declare function clearPhiBuilderModuleAreasDirty(): void;
|
|
199
|
+
/** What the wiring dialog has chosen so far; a value that moved drops everything chosen below it. */
|
|
200
|
+
export declare function patchPhiBuilderSignalWiringSession(values: Record<string, unknown>): void;
|
|
201
|
+
export declare function resetPhiBuilderSignalWiringSession(): void;
|
|
202
|
+
/**
|
|
203
|
+
* What a save or read answered about the Draft a region stands on. A later answer for the same revision
|
|
204
|
+
* never moves the version or the node sequence back.
|
|
205
|
+
*/
|
|
206
|
+
export declare function storePhiBuilderDraftAllocation(allocationKey: string, saved: PhiDeveloperBuilderDraftAllocation): void;
|
|
207
|
+
export declare function clearPhiBuilderDraftAllocation(allocationKey: string): void;
|
|
208
|
+
/** Takes the next node sequence of a Draft, answering the allocation it was taken from. */
|
|
209
|
+
export declare function takePhiBuilderDraftNodeSequence(allocationKey: string): PhiDeveloperBuilderDraftAllocation;
|
|
210
|
+
/**
|
|
211
|
+
* Puts a workspace snapshot back, each field into the store it lives in: the catalog's into the
|
|
212
|
+
* catalog, the Builder's here. An undo used to patch both stores from the command controller.
|
|
213
|
+
*/
|
|
214
|
+
export declare function restorePhiBuilderWorkspaceState(state: Partial<PhiDeveloperBuilderWorkspaceState>): void;
|
|
181
215
|
export {};
|