@dartcom/ui-kit 10.3.0 → 10.3.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/dist/index.cjs +127 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/hooks/useGetUser.d.ts +1 -0
- package/dist/lib/hooks/useGetUser.d.ts.map +1 -1
- package/dist/lib/hooks/useSignIn.d.ts +1 -0
- package/dist/lib/hooks/useSignIn.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +4 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/pages/auth/schema.d.ts +1 -1
- package/dist/pages/auth/types.d.ts +2 -5
- package/dist/pages/auth/types.d.ts.map +1 -1
- package/dist/providers/mobx/store.d.ts +3 -3
- package/dist/providers/mobx/store.d.ts.map +1 -1
- package/dist/providers/mobx/stores/auth.d.ts.map +1 -1
- package/dist/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { User } from '../types';
|
|
2
2
|
export declare const useGetUser: () => import("@tanstack/react-query").UseQueryResult<User, Error>;
|
|
3
|
+
export declare const useLazyGetUser: () => import("@tanstack/react-query").UseMutationResult<User, Error, void, unknown>;
|
|
3
4
|
//# sourceMappingURL=useGetUser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetUser.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useGetUser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"useGetUser.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useGetUser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,eAAO,MAAM,UAAU,mEAatB,CAAC;AAEF,eAAO,MAAM,cAAc,qFAa1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSignIn.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useSignIn.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"useSignIn.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useSignIn.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,SAAS,gHAiCrB,CAAC"}
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StringOrNumber } from './types';
|
|
1
|
+
import { Nullable, StringOrNumber } from './types';
|
|
2
2
|
import { Coordinate } from './types';
|
|
3
3
|
import { LatLng } from 'leaflet';
|
|
4
4
|
import { SnackbarMessage, VariantType } from 'notistack';
|
|
@@ -18,4 +18,7 @@ export declare const getEntityNames: <T extends string, B extends string>({ enti
|
|
|
18
18
|
names: B[];
|
|
19
19
|
}) => { [K in B]: `${T}_${K}`; };
|
|
20
20
|
export declare const getImageSrc: (path: string) => string;
|
|
21
|
+
export declare const loadState: <T>(name: string) => Nullable<T>;
|
|
22
|
+
export declare const saveState: <T>(name: string, state: T) => void;
|
|
23
|
+
export declare const removeState: (name: string) => void;
|
|
21
24
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAmB,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE1E,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,WAgB1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,WAMrE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,uBAG1B;IACD,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,eAAe,CAAC;CAC1B,SAWA,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,CAAC,EAAE,MAAM,CAAC,qBAgB/C,CAAC;AAEF,eAAO,MAAM,YAAY,cAIxB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,aAAa,MAAM,WAO3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,eASnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,YAAY,UAAU,WAM3D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,oBAGhE;IACD,MAAM,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ,QAEI,CAAC,sBAQL,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAIvC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,MAAM,MAAM,KAAG,QAAQ,CAAC,CAAC,CAQrD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,MAAM,MAAM,EAAE,OAAO,CAAC,SAQlD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,SAEvC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { SignInUserResponse } from '../../lib';
|
|
1
|
+
import { SignInUserRequest, SignInUserResponse } from '../../lib';
|
|
2
2
|
export type AuthPageProps = {
|
|
3
3
|
onSuccess: (response: SignInUserResponse) => void;
|
|
4
4
|
onError: (error: Error) => void;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
username: string;
|
|
8
|
-
password: string;
|
|
9
|
-
}
|
|
6
|
+
export type FormValues = SignInUserRequest['body'];
|
|
10
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pages/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/pages/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class RootStore {
|
|
2
|
-
authStore: import("
|
|
3
|
-
modalStore: import("
|
|
4
|
-
alertStore: import("
|
|
2
|
+
authStore: import("..").AuthStore;
|
|
3
|
+
modalStore: import("..").ModalStore;
|
|
4
|
+
alertStore: import("..").AlertStore;
|
|
5
5
|
}
|
|
6
6
|
export declare const rootStore: RootStore;
|
|
7
7
|
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/providers/mobx/store.tsx"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,SAAS
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/providers/mobx/store.tsx"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACpB,SAAS,yBAAa;IAEtB,UAAU,0BAAc;IAExB,UAAU,0BAAc;CACzB;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/providers/mobx/stores/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/providers/mobx/stores/auth.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;;IAepB,OAAO,CAAC,eAAe,CAAS;IAEhC,IAAW,cAAc,YAExB;IACD,IAAW,cAAc,CAAC,KAAK,SAAA,EAE9B;CACF;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/services/api/api.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACT,MAAM,SAAS,CAAC;AAIjB,qBAAa,UAAU;IAGT,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAEV,MAAM,CAAC,EAAE,SAAS,YAAA;IAa/C,OAAO,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/services/api/api.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACT,MAAM,SAAS,CAAC;AAIjB,qBAAa,UAAU;IAGT,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAEV,MAAM,CAAC,EAAE,SAAS,YAAA;IAa/C,OAAO,CAAC,iBAAiB;IAkDnB,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,QAAQ;IAMhC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;IAM9C,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IAM5C,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;IAMhD,MAAM,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,WAAW;CAK7C"}
|