mesauth-angular 1.19.0 → 1.20.0
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": "mesauth-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, EnvironmentProviders, AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
|
|
2
|
+
import { InjectionToken, EnvironmentProviders, AfterViewInit, OnDestroy, ElementRef, PipeTransform } from '@angular/core';
|
|
3
3
|
import { HttpClient, HttpInterceptorFn, HttpResponse, HttpParams } from '@angular/common/http';
|
|
4
4
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
@@ -712,6 +712,9 @@ declare class MaAiChatPanelComponent implements AfterViewInit {
|
|
|
712
712
|
readonly ai: MaAiService;
|
|
713
713
|
private readonly router;
|
|
714
714
|
private readonly themeService;
|
|
715
|
+
private readonly uiConfig;
|
|
716
|
+
/** Suggested prompts shown in the empty state — manifest overridable. */
|
|
717
|
+
readonly quickPrompts: _angular_core.Signal<string[]>;
|
|
715
718
|
private readonly scrollContainer;
|
|
716
719
|
private readonly textArea;
|
|
717
720
|
get themeClass(): string;
|
|
@@ -1044,6 +1047,8 @@ interface MaUiManifest {
|
|
|
1044
1047
|
labels?: Record<string, string>;
|
|
1045
1048
|
/** Feature flags read by components at runtime. */
|
|
1046
1049
|
features?: Record<string, boolean>;
|
|
1050
|
+
/** Suggested prompts shown in the AI panel empty state. Overrides the library default. */
|
|
1051
|
+
quickPrompts?: string[];
|
|
1047
1052
|
}
|
|
1048
1053
|
/** Current installed package version — keep in sync with package.json. */
|
|
1049
1054
|
declare const PACKAGE_VERSION = "1.19.0";
|
|
@@ -1058,6 +1063,7 @@ declare class MaUiConfigService {
|
|
|
1058
1063
|
private _features;
|
|
1059
1064
|
private _updateRequired;
|
|
1060
1065
|
private _manifestVersion;
|
|
1066
|
+
private _quickPrompts;
|
|
1061
1067
|
/** Reactive map of UI string overrides from the server manifest. */
|
|
1062
1068
|
readonly labels: _angular_core.Signal<Record<string, string>>;
|
|
1063
1069
|
/** Reactive map of feature flags from the server manifest. */
|
|
@@ -1066,6 +1072,8 @@ declare class MaUiConfigService {
|
|
|
1066
1072
|
readonly updateRequired: _angular_core.Signal<boolean>;
|
|
1067
1073
|
/** The manifest version string loaded from the server, or null if not yet loaded. */
|
|
1068
1074
|
readonly manifestVersion: _angular_core.Signal<string>;
|
|
1075
|
+
/** AI panel "quick prompts" — populated from the manifest if provided, else empty. */
|
|
1076
|
+
readonly quickPrompts: _angular_core.Signal<string[]>;
|
|
1069
1077
|
/**
|
|
1070
1078
|
* Returns a label by key, falling back to `defaultValue` when the server
|
|
1071
1079
|
* manifest has not provided an override.
|
|
@@ -1255,5 +1263,27 @@ declare class MaAiButtonComponent {
|
|
|
1255
1263
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaAiButtonComponent, "ma-ai-button", never, {}, { "clicked": "clicked"; }, never, never, true, never>;
|
|
1256
1264
|
}
|
|
1257
1265
|
|
|
1258
|
-
|
|
1266
|
+
/**
|
|
1267
|
+
* Tiny hand-rolled GitHub-flavoured Markdown renderer for AI chat bubbles.
|
|
1268
|
+
*
|
|
1269
|
+
* Supports: headings, paragraphs (with single-newline → <br>), pipe tables,
|
|
1270
|
+
* fenced + inline code, bullet/ordered lists (flat), blockquotes, bold, italic,
|
|
1271
|
+
* autolinks via [text](url). All input is HTML-escaped before any markup
|
|
1272
|
+
* is added, so the only HTML that reaches the DOM is what this pipe emits.
|
|
1273
|
+
* Wrapped in `bypassSecurityTrustHtml` so [innerHTML] doesn't re-sanitize and
|
|
1274
|
+
* strip the markup we explicitly want.
|
|
1275
|
+
*
|
|
1276
|
+
* Not supported (intentionally — keeps the renderer tiny and safe):
|
|
1277
|
+
* nested lists, images, raw HTML, strikethrough, task lists, footnotes.
|
|
1278
|
+
* If the model emits any of those, they appear as literal text.
|
|
1279
|
+
*/
|
|
1280
|
+
declare class MaAiMarkdownPipe implements PipeTransform {
|
|
1281
|
+
private readonly sanitizer;
|
|
1282
|
+
transform(value: string | null | undefined): SafeHtml;
|
|
1283
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaAiMarkdownPipe, never>;
|
|
1284
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<MaAiMarkdownPipe, "maAiMarkdown", true>;
|
|
1285
|
+
}
|
|
1286
|
+
declare function renderMarkdown(src: string): string;
|
|
1287
|
+
|
|
1288
|
+
export { ALL_ACTIONS, AVATAR_FRAMES, ApprovalActionType, ApprovalDocumentStatus, ApprovalStepMode, ApprovalStepStatus, DEFAULT_AI_CONFIG, MES_AUTH_AI_CONFIG, MES_AUTH_CONFIG, MaAiButtonComponent, MaAiChatPanelComponent, MaAiMarkdownPipe, MaAiService, MaAiToolsRegistry, MaApprovalPanelComponent, MaApprovalService, MaArvContainerComponent, MaAvatarComponent, MaIconComponent, MaThemeDirective, MaUiConfigService, MaUserComponent, MaUserMenuColor, MaUserMenuComponent, MaUserXComponent, MesAuthModule, MesAuthService, NotificationBadgeComponent, NotificationPanelComponent, NotificationType, PACKAGE_VERSION, ThemeService, ToastContainerComponent, ToastService, UserProfileComponent, extractXMaPerm, mesAuthInterceptor, provideMesAuth, provideMesAuthAi, renderMarkdown, runReturnViaPostMessageIfRequested, runSsoCheckHandshake, withXMaPerm, xMaResource };
|
|
1259
1289
|
export type { AiSseEvent, ApprovalDashboardDto, ApprovalDocumentDto, ApprovalDocumentSummaryDto, ApprovalHistoryDto, ApprovalReferenceDto, ApprovalStepDto, ApprovalStepRequest, ApprovalSubmitResult, ApprovalTemplateDto, ApprovalTemplateStepDto, ApprovalTemplateSummaryDto, ApproveRejectRequest, AvatarFrameDef, AvatarShape, AvatarSize, ChatBubble, ChatToolEvent, ClientTool, ClientToolSchema, CreateApprovalRequest, CreateApprovalResponseDto, CreateApprovalTemplateRequest, DelegateRequest, FrontEndRoute, IUser, MaUiManifest, MesAuthAiConfig, MesAuthConfig, NotificationDto, PagedList, PendingApproval, PermissionHeader, RealTimeNotificationDto, RequestConfig, RolePreviewUserDto, StepRoleDto, Theme, Toast, UpdateApprovalTemplateRequest, UserFrontEndRoutesGrouped };
|