@ah-oh/ao-workspaces-design-system 0.0.52 → 0.0.54

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": "@ah-oh/ao-workspaces-design-system",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ah-oh/ao-workspaces.git",
@@ -1375,7 +1375,8 @@ declare class WorkspaceNavbarService {
1375
1375
  private readonly companies;
1376
1376
  readonly companies$: Observable<ICompanyOverview[]>;
1377
1377
  readonly companiesSignal: _angular_core.Signal<ICompanyOverview[]>;
1378
- private activeAppId?;
1378
+ private readonly activeAppId;
1379
+ readonly activeAppIdSignal: _angular_core.Signal<string>;
1379
1380
  private loginUrl;
1380
1381
  private production;
1381
1382
  private preserveRedirectUrl;
@@ -1411,6 +1412,11 @@ declare class WorkspaceNavbarService {
1411
1412
  * @deprecated Use testingUrl from WorkspaceApp instead
1412
1413
  */
1413
1414
  private getLegacyDevUrl;
1415
+ private normalizeWorkspaceAppsResponse;
1416
+ private withRuntimeBaseUrl;
1417
+ private getRuntimeBaseUrl;
1418
+ private buildJwtRedirectUrl;
1419
+ private buildLoginPathUrl;
1414
1420
  getEnabledApps(): string[];
1415
1421
  /**
1416
1422
  * @deprecated Use session.enabledApps instead
@@ -1823,6 +1829,7 @@ declare class WorkspaceNavbarComponent implements AfterViewInit {
1823
1829
  protected readonly activeTopNavItemId: _angular_core.Signal<string>;
1824
1830
  protected readonly activeSubTopNavItems: _angular_core.Signal<NavItem[]>;
1825
1831
  protected readonly activeSubTopNavItemId: _angular_core.Signal<string>;
1832
+ protected readonly activeWorkspaceAppId: _angular_core.Signal<string>;
1826
1833
  protected readonly signOutIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\" fill=\"currentColor\"><path d=\"M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z\"></path></svg>";
1827
1834
  protected readonly plusIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\" fill=\"currentColor\"><path d=\"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z\"></path></svg>";
1828
1835
  protected readonly chatIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\" fill=\"currentColor\"><path d=\"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z\"></path></svg>";
@@ -1856,6 +1863,7 @@ declare class WorkspaceNavbarComponent implements AfterViewInit {
1856
1863
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkspaceNavbarComponent, "ao-workspace-navbar", never, { "appId": { "alias": "appId"; "required": true; "isSignal": true; }; "production": { "alias": "production"; "required": false; "isSignal": true; }; "topNavItems": { "alias": "topNavItems"; "required": false; "isSignal": true; }; "showSearch": { "alias": "showSearch"; "required": false; "isSignal": true; }; "showNotifications": { "alias": "showNotifications"; "required": false; "isSignal": true; }; "notificationCount": { "alias": "notificationCount"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "recommendedFilters": { "alias": "recommendedFilters"; "required": false; "isSignal": true; }; "activeFilter": { "alias": "activeFilter"; "required": false; "isSignal": true; }; "resultGroups": { "alias": "resultGroups"; "required": false; "isSignal": true; }; "pageSuggestion": { "alias": "pageSuggestion"; "required": false; "isSignal": true; }; "aiSuggestions": { "alias": "aiSuggestions"; "required": false; "isSignal": true; }; "searchLoading": { "alias": "searchLoading"; "required": false; "isSignal": true; }; "searchError": { "alias": "searchError"; "required": false; "isSignal": true; }; }, { "activeFilter": "activeFilterChange"; "topNavItemClick": "topNavItemClick"; "topNavItemChange": "topNavItemChange"; "subTopNavItemClick": "subTopNavItemClick"; "subTopNavItemChange": "subTopNavItemChange"; "appSwitched": "appSwitched"; "searchSubmit": "searchSubmit"; "searchQueryChange": "searchQueryChange"; "searchViewAll": "searchViewAll"; "searchResultSelect": "searchResultSelect"; "searchAiSuggestionSelect": "searchAiSuggestionSelect"; "searchPageSuggestionSelect": "searchPageSuggestionSelect"; "searchFilterSelect": "searchFilterSelect"; "searchFilterClear": "searchFilterClear"; "notificationClick": "notificationClick"; }, never, ["*"], true, never>;
1857
1864
  }
1858
1865
 
1866
+ type ChatHandbookType = 'szales' | 'sethub' | 'admin';
1859
1867
  type ChatProduct = 'szales' | 'sethub' | 'admin';
1860
1868
  interface A2uiSurfaceEnvelope {
1861
1869
  surfaceId: string;
@@ -1881,6 +1889,13 @@ interface ChatResponse {
1881
1889
  threadId: string;
1882
1890
  parts: ChatPart[];
1883
1891
  }
1892
+ interface ChatMessageRequest {
1893
+ question: string;
1894
+ threadId?: string;
1895
+ product: ChatProduct;
1896
+ handbookType?: ChatHandbookType;
1897
+ type?: SearchEntityType | null;
1898
+ }
1884
1899
  interface ChatActionRequest {
1885
1900
  threadId: string;
1886
1901
  surfaceId: string;
@@ -1901,11 +1916,7 @@ interface ChatThreadOverview {
1901
1916
  declare class RobinChatService {
1902
1917
  private readonly http;
1903
1918
  private readonly baseUrl;
1904
- sendMessage(req: {
1905
- question: string;
1906
- threadId?: string;
1907
- product: ChatProduct;
1908
- }): Promise<ChatResponse>;
1919
+ sendMessage(req: ChatMessageRequest): Promise<ChatResponse>;
1909
1920
  sendAction(req: ChatActionRequest): Promise<ChatResponse>;
1910
1921
  listThreads(product: ChatProduct): Promise<ChatThreadOverview[]>;
1911
1922
  loadHistory(threadId: string): Promise<ChatTurn[]>;
@@ -1970,4 +1981,4 @@ declare class AoCatalog extends BasicCatalogBase {
1970
1981
  declare function provideRobinA2ui(): EnvironmentProviders;
1971
1982
 
1972
1983
  export { AO_CATALOG_ID, AiSearchComponent, AoCatalog, AuthService, ButtonComponent, CheckboxComponent, ChipsInputComponent, DEFAULT_TOOLBAR, DIALOG_DATA, DateInputComponent, DesignSystem, DialogComponent, DialogRef, DialogService, EditableTextComponent, IconButtonComponent, IconComponent, InputComponent, LogoMenuComponent, MarkdownEditorComponent, MenuComponent, MenuItemComponent, MultiselectComponent, NavToolsComponent, NotificationButtonComponent, ROBIN_API_BASE_URL, ROBIN_SEARCH_APP_NAME, RobinChatActionDispatcher, RobinChatService, RobinSearchService, SearchResultsPageComponent, SelectComponent, SideNavComponent, SlideToggleComponent, SubNavActionsService, SubTopNavComponent, TabPanelComponent, TableCellDefDirective, TableCheckboxComponent, TableComponent, TableDatePickerComponent, TableFilterComponent, TableInputComponent, TablePaginationComponent, TableRowActionsComponent, TableSelectComponent, TabsComponent, TooltipDirective, TopNavComponent, WorkspaceNavbarComponent, WorkspaceNavbarService, authInterceptor, provideAuth, provideRobinA2ui, withAuthInterceptor };
1973
- export type { A2uiSurfaceEnvelope, ButtonVariant, ChatActionRequest, ChatPart, ChatProduct, ChatResponse, ChatThreadOverview, ChatTurn, CheckboxState, CompanyMenuItem, DialogConfig, DialogInternalConfig, DialogSize, EditableTextSize, IconButtonSize, IconSize, LogoMenuItem, MarkdownEditorConfig, MarkdownEditorToolbarAction, NavItem, NavItemChangeEvent, PageSuggestion, RecommendedFilter, SearchEntityType, SearchPayload, SearchResult, SearchResultGroup, SearchResultsTypeOption, SearchSubmitEvent, SelectOption, SortDirection, SubNavActionEvent, SubNavActionsConfig, SubNavActionsHandle, SubNavActionsLabels, TabChangeEvent, TableCellDefContext, TableColumn, TableColumnFilter, TableFilterState, TableFilterType, TablePageChangeEvent, TablePageState, TableRowAction, TableRowActionEvent, TableSelectionMode, TableSortState, UserSession, WorkspaceNavbarConfig };
1984
+ export type { A2uiSurfaceEnvelope, ButtonVariant, ChatActionRequest, ChatHandbookType, ChatMessageRequest, ChatPart, ChatProduct, ChatResponse, ChatThreadOverview, ChatTurn, CheckboxState, CompanyMenuItem, DialogConfig, DialogInternalConfig, DialogSize, EditableTextSize, IconButtonSize, IconSize, LogoMenuItem, MarkdownEditorConfig, MarkdownEditorToolbarAction, NavItem, NavItemChangeEvent, PageSuggestion, RecommendedFilter, SearchEntityType, SearchPayload, SearchResult, SearchResultGroup, SearchResultsTypeOption, SearchSubmitEvent, SelectOption, SortDirection, SubNavActionEvent, SubNavActionsConfig, SubNavActionsHandle, SubNavActionsLabels, TabChangeEvent, TableCellDefContext, TableColumn, TableColumnFilter, TableFilterState, TableFilterType, TablePageChangeEvent, TablePageState, TableRowAction, TableRowActionEvent, TableSelectionMode, TableSortState, UserSession, WorkspaceNavbarConfig };