@posiwise/shared-components 0.0.183 → 0.0.185
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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ElementRef, EventEmitter, Injector, ChangeDetectorRef, OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, Type, ViewContainerRef, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { TemplateRef, ElementRef, EventEmitter, Injector, ChangeDetectorRef, OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, Type, ViewContainerRef, AfterContentInit, PipeTransform } from '@angular/core';
|
|
3
3
|
import * as i32 from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
@@ -437,6 +437,18 @@ declare class CollapsibleSidebarService {
|
|
|
437
437
|
static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarService>;
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Listens for Ctrl+Shift+A globally and toggles the PosiWise Assistant chat panel.
|
|
442
|
+
* Applied via hostDirectives on CollapsibleSidebarComponent.
|
|
443
|
+
*/
|
|
444
|
+
declare class CollapsibleSidebarKeyboardShortcutDirective {
|
|
445
|
+
private readonly sidebarService;
|
|
446
|
+
constructor(sidebarService: CollapsibleSidebarService);
|
|
447
|
+
onKeydown(event: KeyboardEvent): void;
|
|
448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarKeyboardShortcutDirective, never>;
|
|
449
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapsibleSidebarKeyboardShortcutDirective, "[pwCollapsibleSidebarKeyboardShortcut]", never, {}, {}, never, never, true, never>;
|
|
450
|
+
}
|
|
451
|
+
|
|
440
452
|
declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
441
453
|
private readonly sidebarService;
|
|
442
454
|
private readonly injector;
|
|
@@ -473,7 +485,7 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
|
|
|
473
485
|
closeSidebar(): void;
|
|
474
486
|
toggleSidebar(): void;
|
|
475
487
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, [null, null, null, null, { optional: true; }]>;
|
|
476
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleSidebarComponent, "pw-collapsible-sidebar", never, { "embedInLayout": { "alias": "embedInLayout"; "required": false; }; }, {}, never, never, false,
|
|
488
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleSidebarComponent, "pw-collapsible-sidebar", never, { "embedInLayout": { "alias": "embedInLayout"; "required": false; }; }, {}, never, never, false, [{ directive: typeof CollapsibleSidebarKeyboardShortcutDirective; inputs: {}; outputs: {}; }]>;
|
|
477
489
|
static ngAcceptInputType_embedInLayout: unknown;
|
|
478
490
|
}
|
|
479
491
|
|
|
@@ -519,6 +531,10 @@ interface ChatMessage {
|
|
|
519
531
|
role: ChatMessageRole;
|
|
520
532
|
text: string;
|
|
521
533
|
pending?: PendingConfirmation;
|
|
534
|
+
/** Set to true only on messages produced by the prose summariser (mcp_prose_summariser.py).
|
|
535
|
+
* Controls whether the bubble renders via safeMarkdown pipe ([innerHTML]) or as plain text (<pre>).
|
|
536
|
+
* Error messages, confirmation summaries, and navigation notices stay plain. */
|
|
537
|
+
markdownEnabled?: boolean;
|
|
522
538
|
}
|
|
523
539
|
|
|
524
540
|
interface DiffRow {
|
|
@@ -540,6 +556,7 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
|
|
|
540
556
|
messages: ChatMessage[];
|
|
541
557
|
draft: string;
|
|
542
558
|
loading: boolean;
|
|
559
|
+
streamingStage: string | null;
|
|
543
560
|
brandName: string;
|
|
544
561
|
private conversationId;
|
|
545
562
|
private storage;
|
|
@@ -1133,9 +1150,44 @@ declare class PwCookieBannerComponent implements OnInit {
|
|
|
1133
1150
|
static ɵcmp: i0.ɵɵComponentDeclaration<PwCookieBannerComponent, "pw-cookie-banner", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "privacyLinkLabel": { "alias": "privacyLinkLabel"; "required": false; }; "privacyLinkUrl": { "alias": "privacyLinkUrl"; "required": false; }; "tosId": { "alias": "tosId"; "required": false; }; "privacyFallbackUrl": { "alias": "privacyFallbackUrl"; "required": false; }; "cookieKey": { "alias": "cookieKey"; "required": false; }; "cookieTtlDays": { "alias": "cookieTtlDays"; "required": false; }; }, {}, never, never, true, never>;
|
|
1134
1151
|
}
|
|
1135
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* Converts a Brain assistant message string (containing a safe subset of
|
|
1155
|
+
* Markdown) into a `SafeHtml` value suitable for `[innerHTML]` binding.
|
|
1156
|
+
*
|
|
1157
|
+
* All user-sourced text is HTML-escaped by `renderMarkdown` before reaching
|
|
1158
|
+
* DomSanitizer, so `bypassSecurityTrustHtml` is safe here — we are trusting
|
|
1159
|
+
* our own sanitized output, not arbitrary user input.
|
|
1160
|
+
*
|
|
1161
|
+
* Applied only to assistant bubbles; user bubbles keep plain-text rendering.
|
|
1162
|
+
*/
|
|
1163
|
+
declare class SafeMarkdownPipe implements PipeTransform {
|
|
1164
|
+
private readonly sanitizer;
|
|
1165
|
+
constructor(sanitizer: DomSanitizer);
|
|
1166
|
+
transform(text: string): SafeHtml;
|
|
1167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeMarkdownPipe, never>;
|
|
1168
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeMarkdownPipe, "safeMarkdown", true>;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Intercepts clicks on `<a>` elements rendered inside assistant markdown
|
|
1173
|
+
* bubbles. Internal paths (e.g. /account/details) are routed via Angular's
|
|
1174
|
+
* Router so the SPA does not do a full-page reload. External URLs fall
|
|
1175
|
+
* through to the browser's default behaviour (target=_blank already set by
|
|
1176
|
+
* SafeMarkdownPipe / renderMarkdown for external links).
|
|
1177
|
+
*
|
|
1178
|
+
* Applied via the `pwBrainChatThread` attribute on the chat thread div.
|
|
1179
|
+
*/
|
|
1180
|
+
declare class PwBrainChatThreadDirective {
|
|
1181
|
+
private readonly router;
|
|
1182
|
+
constructor(router: Router);
|
|
1183
|
+
onClick(event: MouseEvent): void;
|
|
1184
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatThreadDirective, never>;
|
|
1185
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PwBrainChatThreadDirective, "[pwBrainChatThread]", never, {}, {}, never, never, true, never>;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1136
1188
|
declare class SharedComponentsModule {
|
|
1137
1189
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
1138
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, 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 i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i31.RouterModule, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof i43.PipesModule, typeof i44.CommonModule, typeof i44.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent], [typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.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 i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
1190
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, 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 i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i31.RouterModule, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof i43.PipesModule, typeof i44.CommonModule, typeof i44.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent, typeof SafeMarkdownPipe, typeof PwBrainChatThreadDirective], [typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.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 i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
1139
1191
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
1140
1192
|
}
|
|
1141
1193
|
|
|
@@ -1190,5 +1242,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
|
|
|
1190
1242
|
declare function registeredType(type: string): Type<unknown> | null;
|
|
1191
1243
|
declare function registeredTypeNames(): string[];
|
|
1192
1244
|
|
|
1193
|
-
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
1245
|
+
export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarKeyboardShortcutDirective, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
|
|
1194
1246
|
export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };
|