@sinequa/atomic-angular 1.0.21 → 1.0.22

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/index.d.ts CHANGED
@@ -259,7 +259,7 @@ declare class MetadataComponent {
259
259
  event: Event;
260
260
  }>;
261
261
  class: _angular_core.InputSignal<string | undefined>;
262
- variant: _angular_core.InputSignal<"error" | "default" | "none" | "secondary" | "destructive" | "ai" | "outline" | "accent" | "ghost" | "info" | "success" | "warning" | null | undefined>;
262
+ variant: _angular_core.InputSignal<"error" | "default" | "none" | "secondary" | "destructive" | "ai" | "accent" | "outline" | "ghost" | "info" | "success" | "warning" | null | undefined>;
263
263
  metadata: _angular_core.InputSignal<KeyOf<Article$1> | (string & Record<never, never>)>;
264
264
  article: _angular_core.InputSignal<Partial<Article$1> | (string & Record<never, never>)>;
265
265
  limit: _angular_core.InputSignalWithTransform<number | undefined, string | number | undefined>;
@@ -4348,6 +4348,23 @@ declare function withThemes(app: ApplicationRef, themes: Theme[]): ApplicationRe
4348
4348
  * @returns A promise resolving to a boolean indicating whether the user is authenticated.
4349
4349
  */
4350
4350
  declare function signIn(): Promise<boolean>;
4351
+ /**
4352
+ * Whether a `signIn()` call is currently in flight for this page — kept `true` even after it has
4353
+ * resolved for an oauth/saml redirect that has not unloaded the document yet (see the `.finally()`
4354
+ * above).
4355
+ *
4356
+ * Exposed for `SignInComponent`: `AuthGuard` can mount it while `bootstrapApp()`'s own `signIn()`
4357
+ * is still deciding on, or navigating away for, a provider redirect. Calling `login()` again
4358
+ * directly in that window bypasses this mutex and re-reads the SDK's one-shot redirect guard as a
4359
+ * genuine repeat failure — see the regression this guards against in `sign-in-form.ts`.
4360
+ */
4361
+ declare function isSignInInFlight(): boolean;
4362
+ /**
4363
+ * @internal Test-only hook: forces the concurrent-call mutex back to its initial (unheld) state.
4364
+ * Production code never needs this — the mutex only stays held while a redirect triggered by
4365
+ * `signIn()` is pending, a state a real page unload naturally clears by tearing down the module.
4366
+ */
4367
+ declare function __resetSignInMutexForTests(): void;
4351
4368
 
4352
4369
  /**
4353
4370
  * Bootstraps the application by ensuring the user is authenticated and initializing the application.
@@ -8865,19 +8882,22 @@ declare class SignInComponent {
8865
8882
  autoOAuthProvider: string;
8866
8883
  autoSAMLProvider: string;
8867
8884
  bearerToken: string;
8868
- loginPath: string;
8869
8885
  userOverride: {
8870
8886
  username: string;
8871
8887
  domain: string;
8872
8888
  };
8873
8889
  userOverrideActive: boolean;
8874
8890
  authMode: _sinequa_atomic.AuthMode;
8891
+ auth: _sinequa_atomic.AuthOptions;
8892
+ uiLanguage: string;
8893
+ aggregationCounts: _sinequa_atomic.AggregationCounts;
8875
8894
  useCredentials: boolean;
8876
8895
  useSSO: boolean;
8877
8896
  useSAML: boolean;
8878
8897
  logLevel: _sinequa_atomic.LogLevel;
8898
+ loginPath: string;
8879
8899
  createRoutes: boolean;
8880
- } & Record<string, any>>;
8900
+ }> & Record<string, unknown>;
8881
8901
  /**
8882
8902
  * True when authentication is handled outside the credentials form — i.e. by the
8883
8903
  * browser/proxy (`sso`) or by an auto-configured OAuth/SAML provider. In those modes
@@ -11611,7 +11631,7 @@ declare class FilterButtonComponent {
11611
11631
  position: _angular_core.InputSignal<Placement>;
11612
11632
  offset: _angular_core.InputSignal<number>;
11613
11633
  expandedLevel: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
11614
- protected variant: _angular_core.WritableSignal<"default" | "icon" | "none" | "primary" | "secondary" | "destructive" | "ai" | "outline" | "accent" | "ghost" | "light-accent" | "tertiary" | "link" | null | undefined>;
11634
+ protected variant: _angular_core.WritableSignal<"default" | "icon" | "none" | "secondary" | "destructive" | "ai" | "primary" | "link" | "accent" | "outline" | "ghost" | "light-accent" | "tertiary" | null | undefined>;
11615
11635
  protected filter: _angular_core.WritableSignal<CFilterEx>;
11616
11636
  popoverRef: _angular_core.Signal<PopoverComponent | undefined>;
11617
11637
  protected nativeElement: any;
@@ -15245,5 +15265,5 @@ type AppFeatures = {
15245
15265
  */
15246
15266
  declare const APP_FEATURES: InjectionToken<AppFeatures>;
15247
15267
 
15248
- export { AGGREGATIONS_NAMES, AGGREGATIONS_NAMES_PRESET_DEFAULT, APP_FEATURES, AdvancedFiltersComponent, AdvancedSearch, AdvancedSearchComponent, AggregationComponent, AggregationDateComponent, AggregationDateRangeDialogComponent, AggregationListComponent, AggregationTreeComponent, AggregationsService, AggregationsStore, Alert, AlertDialog, AlertsComponent, AppService, AppStore, ApplicationService, ApplicationStore, ArticleEntities, ArticleExtracts, ArticleLabels, ArticleSimilarDocuments, AsideFiltersComponent, AuditFeedbackType, AuditService, AuthGuard, AuthPageComponent, AutocompleteService, BOOKMARKS_CONFIG, BOOKMARKS_OPTIONS, BackdropComponent, BackdropService, BookmarkButtonComponent, BookmarksComponent, COLLECTIONS_CONFIG, COLLECTIONS_OPTIONS, COMPONENTS_FOR_DOCUMENT_TYPE, ChangePasswordComponent, ChildMarkerDirective, CollectionsComponent, CollectionsDialog, DRAWER_COMPONENT, DRAWER_STACK_MAX_COUNT, DateComponent, DeleteCollectionDialog, DidYouMeanComponent, DocumentLocatorComponent, DrawerAdvancedFiltersComponent, DrawerComponent, DrawerNavbarComponent, DrawerPreviewComponent, DrawerService, DrawerStackComponent, DrawerStackService, DropdownInputComponent, DropdownListComponent, ErrorComponent, ExportDialog, ExportService, FILTERS_BREAKPOINT, FILTER_DATE_ALLOW_CUSTOM_RANGE, FeedbackDialogComponent, FileSizePipe, FilterButtonComponent, FiltersBarComponent, HIGHLIGHTS, HighlightWordPipe, InfinityScrollDirective, InlineWorker, JsonMethodPluginService, KeyboardNavigatorDirective, LabelService, LabelsEditDialog, LoadingComponent, MetadataComponent, MissingTermsComponent, MoreButtonComponent, MoreComponent, MultiSelectLabelsComponent, MultiSelectionToolbarComponent, NON_SEARCHABLE_COLUMNS, NON_SEARCHABLE_DEFAULTS, NavbarTabsComponent, NavigationService, NoResultComponent, OpenArticleOnCtrlEnterDirective, OperatorPipe, OverflowItemDirective, OverflowManagerDirective, OverflowStopDirective, OverrideUserDialogComponent, PREVIEW_CONFIG, PagerComponent, PreviewNavigator, PreviewService, PrincipalService, PrincipalStore, QueryParamsStore, QueryService, RECENT_SEARCHES_CONFIG, RECENT_SEARCHES_OPTIONS, ROUTE_COMPONENTS, RecentSearchesComponent, ResetUserSettingsDialogComponent, SAVED_SEARCHES_CONFIG, SAVED_SEARCHES_OPTIONS, SavedSearchDialog, SavedSearchesComponent, SavedSearchesService, SearchFeedbackComponent, SearchInputFooter, SearchService, SelectArticleDirective, SelectArticleOnClickDirective, SelectionHistoryService, SelectionService, SelectionStore, ShowBookmarkDirective, SignInComponent, SortSelectorComponent, SourceComponent, SourceIconPipe, SponsoredResultsComponent, SyslangPipe, THEMES, TextChunkService, ThemeProviderDirective, ThemeSelectorComponent, ThemeStore, ThemeToggleComponent, TranslocoDateImpurePipe, UserProfileDialog, UserProfileFormComponent, UserProfileService, UserSettingsStore, applyThemeToNativeElement, auditInterceptorFn, authInterceptorFn, bodyInterceptorFn, bootstrapApp, buildQuery, debouncedSignal, errorInterceptorFn, getCurrentPath, getCurrentQueryName, getQueryNameFromRoute, processCssVars, queryNameResolver, signIn, themeColorNameToCssVariable, themeColorsToCssVariables, toastInterceptorFn, withAggregationsFeatures, withAlertsFeatures, withAppFeatures, withApplicationFeatures, withAssistantFeatures, withBasketsFeatures, withBookmarkFeatures, withBootstrapApp, withExtractsFeatures, withFetch, withMultiSelectionFeatures, withPrincipalFeatures, withQueryParamsFeatures, withRecentSearchesFeatures, withSavedSearchesFeatures, withSelectionFeatures, withThemeBodyHook, withThemes, withThemesFeatures, withUserSettingsFeatures };
15268
+ export { AGGREGATIONS_NAMES, AGGREGATIONS_NAMES_PRESET_DEFAULT, APP_FEATURES, AdvancedFiltersComponent, AdvancedSearch, AdvancedSearchComponent, AggregationComponent, AggregationDateComponent, AggregationDateRangeDialogComponent, AggregationListComponent, AggregationTreeComponent, AggregationsService, AggregationsStore, Alert, AlertDialog, AlertsComponent, AppService, AppStore, ApplicationService, ApplicationStore, ArticleEntities, ArticleExtracts, ArticleLabels, ArticleSimilarDocuments, AsideFiltersComponent, AuditFeedbackType, AuditService, AuthGuard, AuthPageComponent, AutocompleteService, BOOKMARKS_CONFIG, BOOKMARKS_OPTIONS, BackdropComponent, BackdropService, BookmarkButtonComponent, BookmarksComponent, COLLECTIONS_CONFIG, COLLECTIONS_OPTIONS, COMPONENTS_FOR_DOCUMENT_TYPE, ChangePasswordComponent, ChildMarkerDirective, CollectionsComponent, CollectionsDialog, DRAWER_COMPONENT, DRAWER_STACK_MAX_COUNT, DateComponent, DeleteCollectionDialog, DidYouMeanComponent, DocumentLocatorComponent, DrawerAdvancedFiltersComponent, DrawerComponent, DrawerNavbarComponent, DrawerPreviewComponent, DrawerService, DrawerStackComponent, DrawerStackService, DropdownInputComponent, DropdownListComponent, ErrorComponent, ExportDialog, ExportService, FILTERS_BREAKPOINT, FILTER_DATE_ALLOW_CUSTOM_RANGE, FeedbackDialogComponent, FileSizePipe, FilterButtonComponent, FiltersBarComponent, HIGHLIGHTS, HighlightWordPipe, InfinityScrollDirective, InlineWorker, JsonMethodPluginService, KeyboardNavigatorDirective, LabelService, LabelsEditDialog, LoadingComponent, MetadataComponent, MissingTermsComponent, MoreButtonComponent, MoreComponent, MultiSelectLabelsComponent, MultiSelectionToolbarComponent, NON_SEARCHABLE_COLUMNS, NON_SEARCHABLE_DEFAULTS, NavbarTabsComponent, NavigationService, NoResultComponent, OpenArticleOnCtrlEnterDirective, OperatorPipe, OverflowItemDirective, OverflowManagerDirective, OverflowStopDirective, OverrideUserDialogComponent, PREVIEW_CONFIG, PagerComponent, PreviewNavigator, PreviewService, PrincipalService, PrincipalStore, QueryParamsStore, QueryService, RECENT_SEARCHES_CONFIG, RECENT_SEARCHES_OPTIONS, ROUTE_COMPONENTS, RecentSearchesComponent, ResetUserSettingsDialogComponent, SAVED_SEARCHES_CONFIG, SAVED_SEARCHES_OPTIONS, SavedSearchDialog, SavedSearchesComponent, SavedSearchesService, SearchFeedbackComponent, SearchInputFooter, SearchService, SelectArticleDirective, SelectArticleOnClickDirective, SelectionHistoryService, SelectionService, SelectionStore, ShowBookmarkDirective, SignInComponent, SortSelectorComponent, SourceComponent, SourceIconPipe, SponsoredResultsComponent, SyslangPipe, THEMES, TextChunkService, ThemeProviderDirective, ThemeSelectorComponent, ThemeStore, ThemeToggleComponent, TranslocoDateImpurePipe, UserProfileDialog, UserProfileFormComponent, UserProfileService, UserSettingsStore, __resetSignInMutexForTests, applyThemeToNativeElement, auditInterceptorFn, authInterceptorFn, bodyInterceptorFn, bootstrapApp, buildQuery, debouncedSignal, errorInterceptorFn, getCurrentPath, getCurrentQueryName, getQueryNameFromRoute, isSignInInFlight, processCssVars, queryNameResolver, signIn, themeColorNameToCssVariable, themeColorsToCssVariables, toastInterceptorFn, withAggregationsFeatures, withAlertsFeatures, withAppFeatures, withApplicationFeatures, withAssistantFeatures, withBasketsFeatures, withBookmarkFeatures, withBootstrapApp, withExtractsFeatures, withFetch, withMultiSelectionFeatures, withPrincipalFeatures, withQueryParamsFeatures, withRecentSearchesFeatures, withSavedSearchesFeatures, withSelectionFeatures, withThemeBodyHook, withThemes, withThemesFeatures, withUserSettingsFeatures };
15249
15269
  export type { AgentUserSettings, AggEx, AggregationEx, AggregationListEx, AggregationListItem, AggregationTitle, AggregationTreeEx, AggregationsState, AppCJson, AppFeatures, ApplicationState, ArticleMetadata, AssistantDetails, Autocomplete, Basket, Bookmark, BookmarksConfig, CAggregation, CAggregationItem, CCAppState, CCWebServiceLabels, CConverter, CFilter, CFilterEx, CFilterItem, CJ, CJson, CJsonMint, CSources, CollectionsConfig, ComponentMapping, CssVars, DateRange, DocumentOffsets, DocumentPages, DocumentTypeMap, DropdownItem, ExportQueryOptions, Extract, FilterDropdown, KeyboardNavigationOnSelectionHandlers, KeyboardNavigatorOptions, LabelsConfig, MultiSelectionState, MultiSelectionToolbarVariants, PageConfiguration, PreviewEvents, PreviewHighlight, PreviewHighlightName, PreviewHighlights, PrincipalState, SearchItem, SearchOptions, SearchesConfig, SelectionHistoryEvent, SelectionState, SelectionStrategy, SideCJson, SortingChoice, Theme, ThemeBodyHookParameters, ThemeScope, ThemeStoreState, UserSettingsState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinequa/atomic-angular",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^20.0.0"
6
6
  },