@cuby-ui/core 0.0.419 → 0.0.421

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@cuby-ui/core",
3
- "version": "0.0.419",
3
+ "version": "0.0.421",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
7
  "@angular/elements": ">=18.0.0",
8
8
  "@angular/forms": ">=18.0.0",
9
- "@cuby-ui/api": "^0.0.419",
10
- "@cuby-ui/cdk": "^0.0.419",
11
- "@cuby-ui/icons": "^0.0.419",
9
+ "@cuby-ui/api": "^0.0.421",
10
+ "@cuby-ui/cdk": "^0.0.421",
11
+ "@cuby-ui/icons": "^0.0.421",
12
12
  "@editorjs/editorjs": "2.29.1",
13
13
  "@editorjs/header": "^2.8.1",
14
14
  "@editorjs/list": "^1.9.0",
@@ -1,10 +1,14 @@
1
+ import { Signal } from '@angular/core';
1
2
  import type { CuiUserCompany } from '@cuby-ui/api';
2
3
  import { CuiActivityService } from '../user-action-context.option';
4
+ import { CuiUserCompanyActivity } from "@cuby-ui/api/platform/models/user-company-api.options";
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class CuiActivityBaseService implements CuiActivityService {
5
7
  private readonly userCompanyApiService;
6
8
  private readonly companiesSignal;
7
- readonly companies: import("@angular/core").Signal<CuiUserCompany[]>;
9
+ readonly companies: Signal<CuiUserCompany[]>;
10
+ readonly currentActivity: Signal<CuiUserCompanyActivity | null>;
11
+ readonly currentCompany: Signal<CuiUserCompany | null>;
8
12
  initActivityData(): void;
9
13
  checkIsCurrentActivity(activityId: string): boolean;
10
14
  checkIsCurrentCompany(companyId: string): boolean;
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
4
4
  export declare class CuiActivityImplService extends CuiActivityBaseService implements CuiActivityService {
5
5
  private readonly cuiAuthService;
6
6
  private readonly authData;
7
- readonly currentActivity: import("@angular/core").Signal<import("@cuby-ui/api").CuiUserCompanyActivity | undefined>;
8
- readonly currentCompany: import("@angular/core").Signal<import("@cuby-ui/api").CuiUserCompany | undefined>;
7
+ readonly currentActivity: import("@angular/core").Signal<import("@cuby-ui/api").CuiUserCompanyActivity | null>;
8
+ readonly currentCompany: import("@angular/core").Signal<import("@cuby-ui/api").CuiUserCompany | null>;
9
9
  private isCheckActivity;
10
10
  checkIsCurrentActivity(activityId: string): boolean;
11
11
  checkIsCurrentCompany(companyId: string): boolean;
@@ -1,7 +1,10 @@
1
1
  import { InjectionToken, Signal } from '@angular/core';
2
2
  import { CuiUserCompany } from '@cuby-ui/api';
3
+ import { CuiUserCompanyActivity } from "@cuby-ui/api/platform/models/user-company-api.options";
3
4
  export declare const CUI_ACTIVITY_SERVICE_TOKEN: InjectionToken<CuiActivityService>;
4
5
  export interface CuiActivityData {
6
+ readonly currentActivity: Signal<CuiUserCompanyActivity | null>;
7
+ readonly currentCompany: Signal<CuiUserCompany | null>;
5
8
  readonly companies: Signal<CuiUserCompany[]>;
6
9
  }
7
10
  export interface CuiActivityService extends CuiActivityData {