@posiwise/shared-components 0.0.161 → 0.0.164

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.161",
3
+ "version": "0.0.164",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { TemplateRef, EventEmitter, Injector, ChangeDetectorRef, OnInit, OnDestroy, AfterViewInit, OnChanges, ElementRef, SimpleChanges, Type, ViewContainerRef, AfterContentInit } from '@angular/core';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
- import * as i25 from '@ng-bootstrap/ng-bootstrap';
4
+ import * as i31 from '@ng-bootstrap/ng-bootstrap';
5
5
  import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
6
6
  import { MenuItem } from 'primeng/api';
7
7
  import moment from 'moment';
8
- import * as i35 from 'ngx-daterangepicker-material';
8
+ import * as i41 from 'ngx-daterangepicker-material';
9
9
  import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
10
10
  import { DomSanitizer } from '@angular/platform-browser';
11
11
  import { AdminService } from '@posiwise/admin-module-utils';
12
12
  import { User, Subscription } from '@posiwise/common-utilities';
13
13
  import { AppConfigService } from '@posiwise/app-config-service';
14
- import { AuthService, MCPFieldDiff, MCPOrchestratorService, LocalStorage, GroupService, SubscriptionService, DataService, NumberPickerService, UserService, PermissionService } from '@posiwise/common-services';
14
+ import { AuthService, MCPFieldDiff, MCPOrchestratorService, LocalStorage, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
15
15
  import * as rxjs from 'rxjs';
16
16
  import { Observable } from 'rxjs';
17
- import * as i24 from '@angular/router';
17
+ import * as i30 from '@angular/router';
18
18
  import { Router } from '@angular/router';
19
19
  import { AppState } from '@posiwise/app-store';
20
20
  import { Store } from '@ngrx/store';
@@ -23,17 +23,17 @@ import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ControlContainer
23
23
  import * as i6 from '@posiwise/app-loader';
24
24
  import * as i8 from '@posiwise/directives';
25
25
  import * as i7 from '@posiwise/core-transloco';
26
- import * as i26 from 'primeng/table';
27
- import * as i27 from 'primeng/tabs';
26
+ import * as i32 from 'primeng/table';
27
+ import * as i33 from 'primeng/tabs';
28
28
  import * as i9 from 'primeng/button';
29
- import * as i29 from 'primeng/select';
30
- import * as i30 from 'primeng/multiselect';
29
+ import * as i35 from 'primeng/select';
30
+ import * as i36 from 'primeng/multiselect';
31
31
  import * as i12 from 'primeng/progressspinner';
32
32
  import * as i13 from 'primeng/autocomplete';
33
- import * as i33 from 'ngx-image-cropper';
34
- import * as i34 from 'ngx-ui-switch';
35
- import * as i36 from '@posiwise/pipes';
36
- import * as i37 from '@angular/common';
33
+ import * as i39 from 'ngx-image-cropper';
34
+ import * as i40 from 'ngx-ui-switch';
35
+ import * as i42 from '@posiwise/pipes';
36
+ import * as i43 from '@angular/common';
37
37
  import * as i15 from '@posiwise/utils';
38
38
  import * as i11 from 'primeng/tooltip';
39
39
  import * as i14 from '@angular/cdk/drag-drop';
@@ -339,6 +339,7 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
339
339
  private readonly sidebarService;
340
340
  private readonly injector;
341
341
  private readonly cdr;
342
+ private readonly appConfigService?;
342
343
  contentContainer: ViewContainerRef;
343
344
  /**
344
345
  * When true, the drawer is a flex sibling of the page: main content shrinks (GitLab issue-board style).
@@ -354,10 +355,12 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
354
355
  currentContent: SidebarContent | null;
355
356
  private componentRef;
356
357
  private readonly destroy$;
357
- constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef);
358
+ constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef, appConfigService?: AppConfigService);
358
359
  ngOnInit(): void;
359
360
  ngAfterViewInit(): void;
360
361
  ngOnDestroy(): void;
362
+ /** Register (idempotently) the Brain panel under the given brand. */
363
+ private registerBrainPanel;
361
364
  /**
362
365
  * Load and render dynamic component based on sidebar content
363
366
  */
@@ -374,24 +377,39 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
374
377
  * Toggle sidebar expanded/collapsed state
375
378
  */
376
379
  toggleSidebar(): void;
377
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, never>;
380
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, [null, null, null, { optional: true; }]>;
378
381
  static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleSidebarComponent, "pw-collapsible-sidebar", never, { "embedInLayout": { "alias": "embedInLayout"; "required": false; }; }, {}, never, never, false, never>;
379
382
  static ngAcceptInputType_embedInLayout: unknown;
380
383
  }
381
384
 
382
- interface DiffRow {
383
- field: string;
384
- before: string;
385
- after: string;
385
+ /**
386
+ * Identity of the Conversational UI Builder dynamic page the user is
387
+ * currently viewing (#933 — page-aware Brain). The dynamic-page host sets
388
+ * this on load and clears it on destroy; the PosiWise Brain chat widget
389
+ * reads it so Bedrock knows which page "this page" / "the current page"
390
+ * refers to and can target `ui_update_layout` with the exact page_key +
391
+ * subscription_id instead of guessing the landing-page tools.
392
+ *
393
+ * `null` whenever no dynamic page is mounted.
394
+ */
395
+ interface DynamicPageContext {
396
+ pageKey: string;
397
+ subscriptionId: number;
398
+ }
399
+ declare class DynamicPageContextService {
400
+ private _current;
401
+ set(ctx: DynamicPageContext): void;
402
+ clear(): void;
403
+ get current(): DynamicPageContext | null;
404
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPageContextService, never>;
405
+ static ɵprov: i0.ɵɵInjectableDeclaration<DynamicPageContextService>;
386
406
  }
387
- declare function diffRowsFrom(diff?: MCPFieldDiff | null): DiffRow[];
388
407
 
389
408
  /**
390
- * PosiWise Brain chat panel. Posts user text to brain-api's MCP
391
- * orchestrator (/v1/mcp/execute, /confirm). Ticket #4167: thread +
392
- * `conversation_id` are persisted per-user in localStorage so closing
393
- * and reopening restores the conversation. Stale confirmation cards are
394
- * stripped on hydrate (server tokens are TTL-bound).
409
+ * Shared shapes for the PosiWise Brain chat panel. Extracted from
410
+ * `pw-brain-chat.component.ts` so the component stays under the C1
411
+ * line cap while the scroll/confirmation helpers can reuse the types.
412
+ * Re-exported from the component to preserve the public API surface.
395
413
  */
396
414
  type ChatMessageRole = 'user' | 'assistant';
397
415
  interface PendingConfirmation {
@@ -407,20 +425,32 @@ interface ChatMessage {
407
425
  text: string;
408
426
  pending?: PendingConfirmation;
409
427
  }
428
+
429
+ interface DiffRow {
430
+ field: string;
431
+ before: string;
432
+ after: string;
433
+ }
434
+ declare function diffRowsFrom(diff?: MCPFieldDiff | null): DiffRow[];
435
+
410
436
  declare class PwBrainChatComponent implements OnInit, OnDestroy {
411
437
  private readonly orchestrator;
412
438
  private readonly localStorage;
413
439
  private readonly router;
414
440
  private readonly cdr;
415
441
  private readonly store;
442
+ private readonly dynamicPageCtx;
443
+ private readonly appConfigService?;
416
444
  messages: ChatMessage[];
417
445
  draft: string;
418
446
  loading: boolean;
447
+ brandName: string;
419
448
  private conversationId;
420
449
  private storage;
421
450
  private readonly destroy$;
422
451
  readonly diffRows: typeof diffRowsFrom;
423
- constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>);
452
+ private readonly threadRef?;
453
+ constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService, appConfigService?: AppConfigService);
424
454
  ngOnInit(): void;
425
455
  ngOnDestroy(): void;
426
456
  send(): void;
@@ -432,7 +462,8 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
432
462
  private handleError;
433
463
  private persistConversationId;
434
464
  private pushAssistant;
435
- static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, never>;
465
+ private stick;
466
+ static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, [null, null, null, null, null, null, { optional: true; }]>;
436
467
  static ɵcmp: i0.ɵɵComponentDeclaration<PwBrainChatComponent, "pw-brain-chat", never, {}, {}, never, never, false, never>;
437
468
  }
438
469
 
@@ -683,6 +714,125 @@ declare class LandingPageFooterBComponent implements OnInit {
683
714
  static ɵcmp: i0.ɵɵComponentDeclaration<LandingPageFooterBComponent, "pw-landing-page-footer-b", never, {}, {}, never, never, false, never>;
684
715
  }
685
716
 
717
+ interface UiGrid {
718
+ x: number;
719
+ y: number;
720
+ w: number;
721
+ h: number;
722
+ }
723
+ interface UiBinding {
724
+ source: string;
725
+ params?: Record<string, string | number | boolean>;
726
+ filter?: Record<string, string | number | boolean>;
727
+ }
728
+ /** A resolved binding as returned by GET /main-api/v1/ui_layouts. */
729
+ interface ResolvedBinding {
730
+ state: 'ok' | 'forbidden' | 'deferred' | 'unavailable' | 'unknown_source' | 'error';
731
+ value?: Record<string, unknown>;
732
+ reason?: string;
733
+ }
734
+ interface UiBlock {
735
+ id: string;
736
+ type: string;
737
+ grid: UiGrid;
738
+ props?: Record<string, unknown>;
739
+ /** Server replaces the request `binding` with a ResolvedBinding (or null). */
740
+ binding?: ResolvedBinding | null;
741
+ }
742
+ interface UiLayoutConfig {
743
+ schema_version: number;
744
+ version: number;
745
+ page_key: string;
746
+ blocks: UiBlock[];
747
+ }
748
+ /** Envelope of GET /main-api/v1/ui_layouts. */
749
+ interface UiLayoutResponse {
750
+ data: {
751
+ layout: {
752
+ page_key: string;
753
+ version: number;
754
+ schema_version: number;
755
+ blocks: UiBlock[];
756
+ };
757
+ };
758
+ }
759
+
760
+ declare const UI_BUILDER_FLAG = "conversational_ui_builder";
761
+ declare class PwDynamicPageComponent implements AfterViewInit, OnDestroy {
762
+ private readonly injector;
763
+ private readonly cdr;
764
+ private readonly featureFlags;
765
+ private readonly userService?;
766
+ private readonly sidebarService?;
767
+ private readonly appConfigService?;
768
+ host: ViewContainerRef;
769
+ private _config;
770
+ private viewReady;
771
+ private configResolved;
772
+ set config(value: UiLayoutConfig | null);
773
+ get config(): UiLayoutConfig | null;
774
+ private refs;
775
+ private userResolved;
776
+ private resolving;
777
+ constructor(injector: Injector, cdr: ChangeDetectorRef, featureFlags: FeatureFlagService, userService?: UserService, sidebarService?: CollapsibleSidebarService, appConfigService?: AppConfigService);
778
+ brandName: string;
779
+ get enabled(): boolean;
780
+ get showEmpty(): boolean;
781
+ openBuilder(): void;
782
+ ngAfterViewInit(): void;
783
+ ngOnDestroy(): void;
784
+ private render;
785
+ private ensureUser;
786
+ private doRender;
787
+ private mount;
788
+ private clear;
789
+ static ɵfac: i0.ɵɵFactoryDeclaration<PwDynamicPageComponent, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
790
+ static ɵcmp: i0.ɵɵComponentDeclaration<PwDynamicPageComponent, "pw-dynamic-page", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
791
+ }
792
+
793
+ declare class SectionHeadingBlockComponent {
794
+ props: Record<string, unknown>;
795
+ get text(): string;
796
+ get level(): number;
797
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionHeadingBlockComponent, never>;
798
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionHeadingBlockComponent, "pw-section-heading-block", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
799
+ }
800
+
801
+ declare class DividerBlockComponent {
802
+ props: Record<string, unknown>;
803
+ get spacing(): number;
804
+ static ɵfac: i0.ɵɵFactoryDeclaration<DividerBlockComponent, never>;
805
+ static ɵcmp: i0.ɵɵComponentDeclaration<DividerBlockComponent, "pw-divider-block", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, false, never>;
806
+ }
807
+
808
+ declare class StatCardBlockComponent {
809
+ props: Record<string, unknown>;
810
+ binding: ResolvedBinding | null;
811
+ get title(): string;
812
+ get metricValue(): string;
813
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatCardBlockComponent, never>;
814
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatCardBlockComponent, "pw-stat-card-block", never, { "props": { "alias": "props"; "required": false; }; "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, false, never>;
815
+ }
816
+
817
+ declare class DataTableBlockComponent {
818
+ props: Record<string, unknown>;
819
+ binding: ResolvedBinding | null;
820
+ get columns(): string[];
821
+ get rows(): Array<Record<string, unknown>>;
822
+ get stateKey(): string;
823
+ cell(row: Record<string, unknown>, col: string): string;
824
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataTableBlockComponent, never>;
825
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableBlockComponent, "pw-data-table-block", never, { "props": { "alias": "props"; "required": false; }; "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, false, never>;
826
+ }
827
+
828
+ declare class ChartBlockComponent {
829
+ props: Record<string, unknown>;
830
+ binding: ResolvedBinding | null;
831
+ get title(): string;
832
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartBlockComponent, never>;
833
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartBlockComponent, "pw-chart-block", never, { "props": { "alias": "props"; "required": false; }; "binding": { "alias": "binding"; "required": false; }; }, {}, never, never, false, never>;
834
+ }
835
+
686
836
  declare class NoDataComponent implements AfterContentInit {
687
837
  content: {
688
838
  nativeElement: {
@@ -765,7 +915,7 @@ declare class CompletionBarComponent {
765
915
 
766
916
  declare class ResourceSharedComponentsModule {
767
917
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
768
- static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent], [typeof i37.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.AppLoaderModule, typeof i7.CoreTranslocoModule, typeof i8.DirectivesModule, typeof i9.ButtonModule, typeof i25.NgbTooltipModule, typeof i11.TooltipModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i14.DragDropModule, typeof i15.FieldErrorDisplayModule, typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule], [typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof i9.ButtonModule, typeof i14.DragDropModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i11.TooltipModule, typeof i15.FieldErrorDisplayModule]>;
918
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent], [typeof i43.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.AppLoaderModule, typeof i7.CoreTranslocoModule, typeof i8.DirectivesModule, typeof i9.ButtonModule, typeof i31.NgbTooltipModule, typeof i11.TooltipModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i14.DragDropModule, typeof i15.FieldErrorDisplayModule, typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule], [typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof i9.ButtonModule, typeof i14.DragDropModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i11.TooltipModule, typeof i15.FieldErrorDisplayModule]>;
769
919
  static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
770
920
  }
771
921
 
@@ -803,7 +953,7 @@ declare class CollapsibleSidebarTriggerDirective {
803
953
 
804
954
  declare class SharedComponentsModule {
805
955
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
806
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent], [typeof i5.FormsModule, typeof i6.AppLoaderModule, typeof i5.ReactiveFormsModule, typeof i8.DirectivesModule, typeof i7.CoreTranslocoModule, typeof i24.RouterModule, typeof i25.NgbTooltipModule, typeof i25.NgbNavModule, typeof i25.NgbModalModule, typeof i26.TableModule, typeof i27.TabsModule, typeof i9.ButtonModule, typeof i29.SelectModule, typeof i30.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i33.ImageCropperModule, typeof i34.UiSwitchModule, typeof i35.NgxDaterangepickerMd, typeof i36.PipesModule, typeof i37.CommonModule, typeof i37.NgIf, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i25.NgbTooltipModule, typeof i25.NgbNavModule, typeof i25.NgbModalModule, typeof i26.TableModule, typeof i27.TabsModule, typeof i9.ButtonModule, typeof i29.SelectModule, typeof i30.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i33.ImageCropperModule, typeof i34.UiSwitchModule, typeof i35.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
956
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i5.FormsModule, typeof i6.AppLoaderModule, typeof i5.ReactiveFormsModule, typeof i8.DirectivesModule, typeof i7.CoreTranslocoModule, typeof i30.RouterModule, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i9.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.NgxDaterangepickerMd, typeof i42.PipesModule, typeof i43.CommonModule, typeof i43.NgIf, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i9.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
807
957
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
808
958
  }
809
959
 
@@ -846,5 +996,17 @@ declare class CollapsibleSidebarSuperAdminGuard {
846
996
  static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarSuperAdminGuard>;
847
997
  }
848
998
 
849
- export { AuthenticatorComponent, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, DateRangePickerComponent, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwTabsComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent };
850
- export type { CompletionTier, SidebarContent };
999
+ declare class UiLayoutService {
1000
+ private readonly api;
1001
+ constructor(api: MainApiHttpService);
1002
+ getLayout(subscriptionId: number, pageKey: string): Observable<UiLayoutResponse>;
1003
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiLayoutService, never>;
1004
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiLayoutService>;
1005
+ }
1006
+
1007
+ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
1008
+ declare function registeredType(type: string): Type<unknown> | null;
1009
+ declare function registeredTypeNames(): string[];
1010
+
1011
+ export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwDynamicPageComponent, PwTabsComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
1012
+ export type { ChatMessage, ChatMessageRole, CompletionTier, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };