@sumaris-net/ngx-components 18.5.0-alpha2 → 18.5.0-rc1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.5.0-alpha2",
4
+ "version": "18.5.0-rc1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -16,9 +16,9 @@
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
- "@maskito/angular": "^3.2.1",
20
- "@maskito/core": "^3.2.1",
21
- "@maskito/kit": "^3.2.1",
19
+ "@maskito/angular": "~3.2.1",
20
+ "@maskito/core": "~3.2.1",
21
+ "@maskito/kit": "~3.2.1",
22
22
  "@noble/ed25519": "^1.7.3",
23
23
  "@polkadot/util": "~12.6.2",
24
24
  "@polkadot/util-crypto": "~12.6.2",
@@ -29,7 +29,7 @@
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@apollo/client": "^3.12.4",
32
+ "@apollo/client": "~3.12.4",
33
33
  "@ionic/storage": "~4.0.0",
34
34
  "d3": "~7.6.1",
35
35
  "localforage": "~1.10.0",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "optionalDependencies": {
40
40
  "@capacitor-community/native-audio": "~6.0.0",
41
- "@capacitor/android": "6.2.0",
41
+ "@capacitor/android": "~6.2.0",
42
42
  "@capacitor/app": "~6.0.2",
43
43
  "@capacitor/browser": "~6.0.4",
44
44
  "@capacitor/camera": "~6.1.2",
@@ -47,7 +47,7 @@
47
47
  "@capacitor/geolocation": "~6.1.0",
48
48
  "@capacitor/haptics": "~6.0.2",
49
49
  "@capacitor/keyboard": "~6.0.3",
50
- "@capacitor/network": "^6.0.3",
50
+ "@capacitor/network": "~6.0.3",
51
51
  "@capacitor/splash-screen": "~6.0.3",
52
52
  "@capacitor/status-bar": "~6.0.2",
53
53
  "@e-is/cordova-plugin-audiomanagement": "^1.0.3",
@@ -1,13 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Apollo, ExtraSubscriptionOptions, QueryRef } from 'apollo-angular';
3
- import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFn, MutationUpdaterFunction, OperationVariables, TypePolicies, Unmasked, WatchQueryFetchPolicy } from '@apollo/client/core';
3
+ import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFunction, OperationVariables, TypePolicies, Unmasked, WatchQueryFetchPolicy } from '@apollo/client/core';
4
4
  import { ServiceError } from '../services/errors';
5
5
  import { InjectionToken } from '@angular/core';
6
6
  import { NetworkService } from '../services/network.service';
7
7
  import { EmptyObject } from './graphql.utils';
8
8
  import { Platform } from '@ionic/angular';
9
9
  import { IEntity } from '../services/model/entity.model';
10
- import { type DefaultContext, Resolvers } from '@apollo/client/core/types';
10
+ import { Resolvers } from '@apollo/client/core/types';
11
11
  import { HttpLink } from 'apollo-angular/http';
12
12
  import { ErrorPolicy, MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
13
13
  import { Cache } from '@apollo/client/cache/core/types/Cache';
@@ -16,7 +16,6 @@ import { PropertyMap } from '../../shared/types';
16
16
  import { StartableService } from '../../shared/services/startable-service.class';
17
17
  import { StorageService } from '../../shared/storage/storage.service';
18
18
  import { DocumentNode } from 'graphql';
19
- import type { MaybeMasked } from '@apollo/client/masking';
20
19
  import * as i0 from "@angular/core";
21
20
  export interface WatchQueryOptions<V> {
22
21
  query: any;
@@ -24,18 +23,19 @@ export interface WatchQueryOptions<V> {
24
23
  error?: ServiceError;
25
24
  fetchPolicy?: WatchQueryFetchPolicy;
26
25
  }
27
- export interface MutateQueryOptions<TData, TVariables = OperationVariables, TContext = DefaultContext, TCache extends ApolloCache<any> = ApolloCache<any>> extends MutationBaseOptions<TData, TVariables, TContext, TCache> {
26
+ export interface TrackedMutationContext extends Record<string, any> {
27
+ serializationKey?: string;
28
+ tracked?: boolean;
29
+ timeout?: number;
30
+ }
31
+ export interface MutateQueryOptions<TData, TVariables = OperationVariables, TContext extends TrackedMutationContext = TrackedMutationContext, TCache extends ApolloCache<any> = ApolloCache<any>> extends MutationBaseOptions<TData, TVariables, TContext, TCache> {
28
32
  mutation: any;
29
33
  variables?: TVariables;
30
34
  error?: ServiceError;
31
- context?: {
32
- serializationKey?: string;
33
- tracked?: boolean;
34
- timeout?: number;
35
- };
35
+ context?: TContext;
36
36
  optimisticResponse?: Unmasked<NoInfer<TData>>;
37
- offlineResponse?: TData | ((context: any) => Promise<TData>);
38
- update?: MutationUpdaterFn<TData> | MutationUpdaterFunction<TData, TVariables, TContext, TCache>;
37
+ offlineResponse?: TData | ((context: TContext) => Promise<TData>);
38
+ update?: MutationUpdaterFunction<TData, TVariables, TContext, TCache>;
39
39
  forceOffline?: boolean;
40
40
  }
41
41
  export declare const APP_GRAPHQL_TYPE_POLICIES: InjectionToken<TypePolicies>;
@@ -79,7 +79,7 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
79
79
  variables?: V;
80
80
  error?: ServiceError;
81
81
  fetchPolicy?: FetchPolicy;
82
- }): Promise<MaybeMasked<T>>;
82
+ }): Promise<T>;
83
83
  watchQueryRef<T, V = EmptyObject>(opts: WatchQueryOptions<V>): QueryRef<T, V>;
84
84
  queryRefValuesChanges<T, V = EmptyObject>(queryRef: QueryRef<T, V>, opts: WatchQueryOptions<V>): Observable<T>;
85
85
  watchQuery<T, V = EmptyObject>(opts: WatchQueryOptions<V>): Observable<T>;
@@ -21,7 +21,6 @@ export declare const PEER_URL_REGEXP: RegExp;
21
21
  export declare const NETWORK_DEFAULT_CONNECTION_TIMEOUT = 10000;
22
22
  export declare class NetworkService extends StartableObservableService<Peer, Peer> {
23
23
  private _document;
24
- private platform;
25
24
  private modalCtrl;
26
25
  private storage;
27
26
  private settings;