@sinequa/atomic-angular 1.14.1 → 1.15.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/index.d.ts CHANGED
@@ -1178,7 +1178,7 @@ declare class NavbarTabsComponent {
1178
1178
  */
1179
1179
  protected tabMinWidth(hasIcon: boolean): string | undefined;
1180
1180
  readonly persistFiltersAcrossTabs: _angular_core.Signal<boolean>;
1181
- getQueryParamsHandling(): 'merge' | 'replace';
1181
+ getQueryParamsHandling(): "merge" | "replace";
1182
1182
  getQueryParams(tab: NavTab): Params | null | undefined;
1183
1183
  protected isTabDisabled(tab: NavTab): boolean;
1184
1184
  protected onOverflowItemClick(event: MouseEvent, tab: NavTab): void;
@@ -2739,20 +2739,20 @@ declare class QueryService {
2739
2739
  */
2740
2740
  gotoPage(page: number): void;
2741
2741
  /**
2742
- * Get the pages associated to some text locations.
2743
- *
2744
- * @param docs - all documents offsets we want to get the pages from.
2745
- * @returns An Observable that emits the found pages.
2746
- */
2742
+ * Get the pages associated to some text locations.
2743
+ *
2744
+ * @param docs - all documents offsets we want to get the pages from.
2745
+ * @returns An Observable that emits the found pages.
2746
+ */
2747
2747
  getDocPages(docs: DocumentOffsets[]): Observable<DocumentPages[]>;
2748
2748
  /**
2749
- * Get the page associated to a single text location.
2750
- *
2751
- * @param id - the document id.
2752
- * @param offset - offset from the passage location.
2753
- * @param length - length from the passage location.
2754
- * @returns An Observable that emits the found page.
2755
- */
2749
+ * Get the page associated to a single text location.
2750
+ *
2751
+ * @param id - the document id.
2752
+ * @param offset - offset from the passage location.
2753
+ * @param length - length from the passage location.
2754
+ * @returns An Observable that emits the found page.
2755
+ */
2756
2756
  getDocPage(id: string, offset: number, length: number): Observable<number>;
2757
2757
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<QueryService, never>;
2758
2758
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<QueryService>;
@@ -9137,6 +9137,7 @@ declare const COLLECTIONS_CONFIG: InjectionToken<CollectionsConfig>;
9137
9137
  declare class CollectionsComponent {
9138
9138
  floating: PopoverComponent | null;
9139
9139
  private readonly userSettingsStore;
9140
+ private readonly queryParamsStore;
9140
9141
  private readonly drawerStack;
9141
9142
  private readonly router;
9142
9143
  options: _angular_core.InputSignal<CollectionsConfig | undefined>;
package/package.json CHANGED
@@ -1,12 +1,40 @@
1
1
  {
2
2
  "name": "@sinequa/atomic-angular",
3
- "version": "1.14.1",
3
+ "version": "1.15.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
+ "exports": {
8
+ "./workspace-elements/styles/lexiq-workspaces.css": "./workspace-elements/styles/lexiq-workspaces.css",
9
+ "./package.json": {
10
+ "default": "./package.json"
11
+ },
12
+ ".": {
13
+ "types": "./index.d.ts",
14
+ "default": "./fesm2022/sinequa-atomic-angular.mjs"
15
+ },
16
+ "./document-workspaces": {
17
+ "types": "./document-workspaces/index.d.ts",
18
+ "default": "./fesm2022/sinequa-atomic-angular-document-workspaces.mjs"
19
+ },
20
+ "./elements": {
21
+ "types": "./elements/index.d.ts",
22
+ "default": "./fesm2022/sinequa-atomic-angular-elements.mjs"
23
+ },
24
+ "./workspace-elements": {
25
+ "types": "./workspace-elements/index.d.ts",
26
+ "default": "./fesm2022/sinequa-atomic-angular-workspace-elements.mjs"
27
+ }
28
+ },
7
29
  "peerDependencies": {
8
30
  "@angular/core": "^20.0.0",
9
- "@sinequa/atomic": ">=2.2.0"
31
+ "@angular/elements": "^20.0.0",
32
+ "@sinequa/atomic": ">=2.7.0"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "@angular/elements": {
36
+ "optional": true
37
+ }
10
38
  },
11
39
  "dependencies": {
12
40
  "@angular-architects/ngrx-toolkit": "^20.0.0",
@@ -14,8 +42,10 @@
14
42
  "@jsverse/transloco": "^7.6.1",
15
43
  "@ngrx/signals": "^20.1.0",
16
44
  "@ngrx/store": "^20.1.0",
45
+ "@tanstack/angular-virtual": "^6.0.3",
17
46
  "class-variance-authority": "^0.7.1",
18
47
  "highlight-words": "2.0.0",
48
+ "temporal-polyfill": "^1.0.5",
19
49
  "tus-js-client": "^4.3.1",
20
50
  "tslib": "^2.3.0"
21
51
  },
@@ -91,22 +121,13 @@
91
121
  {
92
122
  "scope": "navbar-tabs",
93
123
  "path": "components/navbar-tabs/i18n"
124
+ },
125
+ {
126
+ "scope": "document-workspaces",
127
+ "path": "document-workspaces/i18n"
94
128
  }
95
129
  ],
96
130
  "sideEffects": false,
97
131
  "module": "fesm2022/sinequa-atomic-angular.mjs",
98
- "typings": "index.d.ts",
99
- "exports": {
100
- "./package.json": {
101
- "default": "./package.json"
102
- },
103
- ".": {
104
- "types": "./index.d.ts",
105
- "default": "./fesm2022/sinequa-atomic-angular.mjs"
106
- },
107
- "./elements": {
108
- "types": "./elements/index.d.ts",
109
- "default": "./fesm2022/sinequa-atomic-angular-elements.mjs"
110
- }
111
- }
132
+ "typings": "index.d.ts"
112
133
  }
@@ -0,0 +1,37 @@
1
+ import { ApplicationConfig, ApplicationRef, Injector, EnvironmentProviders } from '@angular/core';
2
+ export { AskFollowUp, MentionSelection, Workspace, WorkspaceDocument } from '@sinequa/atomic-angular/document-workspaces';
3
+
4
+ declare function defineLexiqWorkspaces(injector: Injector, tagName?: string): void;
5
+ declare function defineLexiqWorkspacePicker(injector: Injector, tagName?: string): void;
6
+ declare function defineLexiqWorkspaceMentionList(injector: Injector, tagName?: string): void;
7
+ declare function registerLexiqWorkspacesElements(injector: Injector): void;
8
+ /**
9
+ * For a page that is not an Angular application: starts one — zoneless, with the
10
+ * providers the page gives it (Transloco and the `@sinequa/atomic` configuration are the page's
11
+ * to provide) — and registers the three elements on it.
12
+ *
13
+ * ```ts
14
+ * await bootstrapLexiqWorkspacesElements({ providers: [provideTransloco({ … })] });
15
+ * ```
16
+ */
17
+ declare function bootstrapLexiqWorkspacesElements(config?: Partial<ApplicationConfig>): Promise<ApplicationRef>;
18
+
19
+ /**
20
+ * Registers the `lexiq-workspaces`, `lexiq-workspace-picker` and
21
+ * `lexiq-workspace-mention-list` custom elements when the application starts. Add it to
22
+ * the `providers` of the app (or of a route):
23
+ *
24
+ * ```ts
25
+ * export const appConfig: ApplicationConfig = {
26
+ * providers: [provideTransloco({ … }), provideLexiqWorkspacesElements()]
27
+ * };
28
+ * ```
29
+ *
30
+ * The elements render through this application's injector, so they share its Transloco
31
+ * configuration, its `@sinequa/atomic` setup and its `WorkspacesStore` with the rest of the app.
32
+ * A component that uses the tags in a template needs `schemas: [CUSTOM_ELEMENTS_SCHEMA]` — or,
33
+ * in Angular, the components themselves (`WorkspacesShell`…).
34
+ */
35
+ declare function provideLexiqWorkspacesElements(): EnvironmentProviders;
36
+
37
+ export { bootstrapLexiqWorkspacesElements, defineLexiqWorkspaceMentionList, defineLexiqWorkspacePicker, defineLexiqWorkspaces, provideLexiqWorkspacesElements, registerLexiqWorkspacesElements };