@posiwise/shared-components 0.0.166 → 0.0.168

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.166",
3
+ "version": "0.0.168",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -11,7 +11,7 @@ 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, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
14
+ import { AuthService, MCPFieldDiff, MCPOrchestratorService, LocalStorage, BrainSocketService, 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
17
  import * as i30 from '@angular/router';
@@ -157,10 +157,51 @@ declare class PrivacyAndTosComponent extends AppBaseComponent implements OnInit
157
157
  }[];
158
158
  product: string;
159
159
  productName: string;
160
+ privacyServiceId: number;
161
+ readonly routers: {
162
+ globalConfigDetails: string;
163
+ adminCredentialsDetails: string;
164
+ subscriptionCredentialDetails: string;
165
+ newsletter: string;
166
+ mailerDetails: string;
167
+ newsletterItemDetails: string;
168
+ newsletterItemView: string;
169
+ newslettersUserList: string;
170
+ newsletterDetails: string;
171
+ permissionsList: string;
172
+ permissionsDetails: string;
173
+ rolesDetails: string;
174
+ productDetails: string;
175
+ productsUserList: string;
176
+ feedbackQuestions: string;
177
+ feedbackQuestionsDetails: string;
178
+ subscriptionDetails: string;
179
+ subscriptionProductDetails: string;
180
+ tipsDetails: string;
181
+ tosAndPrivacyDetails: string;
182
+ tosAndPrivacyView: string;
183
+ usersDetails: string;
184
+ domainConfig: string;
185
+ domainConfigDetails: string;
186
+ loginNotifications: string;
187
+ incidentConfig: string;
188
+ incidentDetails: string;
189
+ faqConfig: string;
190
+ faqDetails: string;
191
+ inviteUsers: string;
192
+ subscriptionList: string;
193
+ createResource: string;
194
+ createTag: string;
195
+ tags: string;
196
+ posts: string;
197
+ resourcesList: string;
198
+ };
160
199
  tabId: string;
161
200
  isPublic: boolean;
162
201
  isLoaded: boolean;
163
202
  constructor(adminService: AdminService, injector: Injector, document: Document, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
203
+ /** Edit affordance is restricted to (Master) Subscription Admins who can reach /admin/tos. */
204
+ get canEditPolicy(): boolean;
164
205
  ngOnInit(): void;
165
206
  private getSubscribedProduct;
166
207
  fetchUserSubscriptions(userId: any, id?: any): void;
@@ -211,14 +252,33 @@ declare class AuthenticatorComponent extends AppBaseComponent implements OnInit
211
252
  static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticatorComponent, "pw-authenticator", never, {}, {}, never, never, false, never>;
212
253
  }
213
254
 
255
+ interface MonogramTint {
256
+ bg: string;
257
+ fg: string;
258
+ }
214
259
  declare class ClearBitIconComponent implements OnChanges {
215
- src: any;
260
+ src: string | null;
216
261
  altText: string;
217
- dummyPath: string;
218
- clearBitSrc: any;
219
- ngOnChanges(simple: SimpleChanges): void;
262
+ /** Company name — drives the initials shown when no real logo resolves. */
263
+ name: string;
264
+ /** Square edge length in px — applied to both the logo image and the monogram tile. */
265
+ size: number;
266
+ /** Layout/margin classes for the rendered icon — override for centred contexts. */
267
+ iconClass: string;
268
+ logoSrc: string | null;
269
+ showFallback: boolean;
270
+ initials: string;
271
+ tint: MonogramTint;
272
+ get tileRadius(): number;
273
+ get tileFontSize(): number;
274
+ ngOnChanges(): void;
275
+ /** Called when a resolved logo URL fails to load — degrade to the monogram. */
276
+ onLogoError(): void;
277
+ private buildMonogram;
278
+ private static deriveInitials;
279
+ private static hash;
220
280
  static ɵfac: i0.ɵɵFactoryDeclaration<ClearBitIconComponent, never>;
221
- static ɵcmp: i0.ɵɵComponentDeclaration<ClearBitIconComponent, "pw-clearbit-icon", never, { "src": { "alias": "src"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; "dummyPath": { "alias": "dummyPath"; "required": false; }; }, {}, never, never, false, never>;
281
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClearBitIconComponent, "pw-clearbit-icon", never, { "src": { "alias": "src"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; }, {}, never, never, false, never>;
222
282
  }
223
283
 
224
284
  declare class ComingSoonComponent {
@@ -441,6 +501,7 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
441
501
  private readonly store;
442
502
  private readonly dynamicPageCtx;
443
503
  private readonly appConfigService?;
504
+ private readonly brainSocket?;
444
505
  messages: ChatMessage[];
445
506
  draft: string;
446
507
  loading: boolean;
@@ -450,8 +511,15 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
450
511
  private readonly destroy$;
451
512
  readonly diffRows: typeof diffRowsFrom;
452
513
  private readonly threadRef?;
453
- constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService, appConfigService?: AppConfigService);
514
+ constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService, appConfigService?: AppConfigService, brainSocket?: BrainSocketService);
454
515
  ngOnInit(): void;
516
+ /**
517
+ * Subscribe to brain-api's server→client push channel (#45). Each pushed
518
+ * message is rendered as an assistant bubble, mirroring `pushAssistant`.
519
+ * Subscribed only after the user is hydrated (storage is set, creds exist);
520
+ * `takeUntil(destroy$)` tears the socket down with the panel.
521
+ */
522
+ private subscribeToServerPush;
455
523
  ngOnDestroy(): void;
456
524
  send(): void;
457
525
  approve(message: ChatMessage): void;
@@ -463,7 +531,7 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
463
531
  private persistConversationId;
464
532
  private pushAssistant;
465
533
  private stick;
466
- static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, [null, null, null, null, null, null, { optional: true; }]>;
534
+ static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
467
535
  static ɵcmp: i0.ɵɵComponentDeclaration<PwBrainChatComponent, "pw-brain-chat", never, {}, {}, never, never, false, never>;
468
536
  }
469
537