@sinequa/atomic-angular 1.14.1 → 1.15.1

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,12 +1,40 @@
1
1
  {
2
2
  "name": "@sinequa/atomic-angular",
3
- "version": "1.14.1",
3
+ "version": "1.15.1",
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 };