@tilde-nlp/ngx-common 6.1.71 → 6.1.73

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.
@@ -1,12 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatSelectChange } from '@angular/material/select';
3
+ import { LLMRephraseUseCase, LLMService, LLMSummaryUseCase } from '@tilde-nlp/ngx-services';
3
4
  import { Subscription } from 'rxjs';
4
5
  import { NotificationMessage } from '../../../notification-message';
5
6
  import { LLMActions } from '../../models/llm-actions.enum';
6
7
  import { LLMData } from '../../models/llm-data.model';
7
8
  import { LLMWritingStyle } from '../../models/llm-writing-style.enum';
8
9
  import { LLMHelperService } from '../../services/llm-helper.service';
9
- import { LLMService, LLMUseCase } from '@tilde-nlp/ngx-services';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class LLMTextareaWithActionsComponent implements OnInit {
12
12
  private readonly llmService;
@@ -31,11 +31,11 @@ export declare class LLMTextareaWithActionsComponent implements OnInit {
31
31
  manuallyEditedText: string;
32
32
  localizationKey: string;
33
33
  llmActionType: LLMActions;
34
- selectedUseCase: LLMUseCase;
34
+ selectedUseCase: LLMSummaryUseCase | LLMRephraseUseCase;
35
35
  private savedRephrasings;
36
36
  readonly llmActions: typeof LLMActions;
37
37
  readonly writingStyles: LLMWritingStyle[];
38
- readonly useCases: LLMUseCase[];
38
+ useCases: LLMSummaryUseCase[] | LLMRephraseUseCase[];
39
39
  readonly messages: NotificationMessage[];
40
40
  showUseCase: boolean;
41
41
  get isDisabled(): boolean;
@@ -1,11 +1,11 @@
1
1
  import { Observable } from "rxjs";
2
2
  import { LLMActions } from "./llm-actions.enum";
3
- import { LLMUseCase } from "@tilde-nlp/ngx-services";
3
+ import { LLMRephraseUseCase, LLMSummaryUseCase } from "@tilde-nlp/ngx-services";
4
4
  export interface LLMData {
5
5
  text: Observable<string>;
6
6
  language: string;
7
7
  action: LLMActions;
8
8
  showUseCaseSummary: boolean;
9
9
  showUseCaseRephrase: boolean;
10
- defaultUseCase?: LLMUseCase;
10
+ defaultUseCase?: LLMSummaryUseCase | LLMRephraseUseCase;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "6.1.71",
3
+ "version": "6.1.73",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",
@@ -448,6 +448,11 @@ Package: @ngbracket/ngx-layout
448
448
  License: "MIT"
449
449
 
450
450
 
451
+ --------------------------------------------------------------------------------
452
+ Package: @tilde-nlp/ngx-services
453
+ License: undefined
454
+
455
+
451
456
  --------------------------------------------------------------------------------
452
457
  Package: @angular/router
453
458
  License: "MIT"
@@ -474,11 +479,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
474
479
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
475
480
  THE SOFTWARE.
476
481
 
477
- --------------------------------------------------------------------------------
478
- Package: @tilde-nlp/ngx-services
479
- License: undefined
480
-
481
-
482
482
  --------------------------------------------------------------------------------
483
483
  Package: zone.js
484
484
  License: "MIT"