@dartcom/ui-kit 10.2.15 → 10.2.17
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/components/layers/leaflet/layers/index.d.ts +1 -0
- package/dist/components/layers/leaflet/layers/index.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/lane-marking-arrow/index.d.ts +2 -0
- package/dist/components/layers/leaflet/layers/lane-marking-arrow/index.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/lane-marking-arrow/utils.d.ts +3 -0
- package/dist/components/layers/leaflet/layers/lane-marking-arrow/utils.d.ts.map +1 -0
- package/dist/components/layers/leaflet/layers/lane-marking-poly/utils.d.ts.map +1 -1
- package/dist/components/layers/leaflet/layers/link/utils.d.ts.map +1 -1
- package/dist/components/layers/leaflet/leaflet.stories.d.ts +1 -0
- package/dist/components/layers/leaflet/leaflet.stories.d.ts.map +1 -1
- package/dist/components/layers/leaflet/lib/types.d.ts +6 -4
- package/dist/components/layers/leaflet/lib/types.d.ts.map +1 -1
- package/dist/components/layers/leaflet/lib/utils.d.ts.map +1 -1
- package/dist/configs/global/global.d.ts +6 -7
- package/dist/configs/global/global.d.ts.map +1 -1
- package/dist/index.cjs +206 -134
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/services/api/api.d.ts +9 -8
- package/dist/services/api/api.d.ts.map +1 -1
- package/dist/services/api/index.d.ts +0 -1
- package/dist/services/api/index.d.ts.map +1 -1
- package/dist/services/api/types.d.ts +8 -3
- package/dist/services/api/types.d.ts.map +1 -1
- package/dist/services/storybook/decorators.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { DeleteProps, GetProps, PatchProps, PostProps, PutProps } from './types';
|
|
1
|
+
import { ApiConfig, DeleteProps, GetProps, PatchProps, PostProps, PutProps } from './types';
|
|
2
2
|
export declare class ApiService {
|
|
3
|
-
private
|
|
4
|
-
|
|
3
|
+
private readonly config?;
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(config?: ApiConfig | undefined);
|
|
5
6
|
private setupInterceptors;
|
|
6
|
-
get<T
|
|
7
|
-
post<R
|
|
8
|
-
put<R
|
|
9
|
-
patch<R
|
|
10
|
-
delete<R
|
|
7
|
+
get<T>({ url, config }: GetProps): Promise<T>;
|
|
8
|
+
post<R, B>({ url, body, config }: PostProps<B>): Promise<R>;
|
|
9
|
+
put<R, B>({ url, body, config }: PutProps<B>): Promise<R>;
|
|
10
|
+
patch<R, B>({ url, body, config }: PatchProps<B>): Promise<R>;
|
|
11
|
+
delete<R>({ url, config }: DeleteProps): Promise<R>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/services/api/api.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACT,MAAM,SAAS,CAAC;AAIjB,qBAAa,UAAU;
|
|
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;IA4CnB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,cAAc,OAAO,CAAC"}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
export type ApiConfig = {
|
|
3
|
+
baseURL: string;
|
|
4
|
+
withCredentials?: boolean;
|
|
5
|
+
getHeaders?: () => AxiosRequestConfig['headers'];
|
|
6
|
+
};
|
|
2
7
|
export type GetProps = {
|
|
3
8
|
url: string;
|
|
4
9
|
config?: AxiosRequestConfig;
|
|
5
10
|
};
|
|
6
|
-
export type PostProps<B
|
|
11
|
+
export type PostProps<B> = {
|
|
7
12
|
url: string;
|
|
8
13
|
body?: B;
|
|
9
14
|
config?: AxiosRequestConfig<B>;
|
|
10
15
|
};
|
|
11
|
-
export type PutProps<B
|
|
16
|
+
export type PutProps<B> = {
|
|
12
17
|
url: string;
|
|
13
18
|
body?: B;
|
|
14
19
|
config?: AxiosRequestConfig<B>;
|
|
15
20
|
};
|
|
16
|
-
export type PatchProps<B
|
|
21
|
+
export type PatchProps<B> = {
|
|
17
22
|
url: string;
|
|
18
23
|
body?: B;
|
|
19
24
|
config?: AxiosRequestConfig<B>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,kBAAkB,CAAC,SAAS,CAAC,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/services/storybook/decorators.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,0BAA0B,CAAC;AASlC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/services/storybook/decorators.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,0BAA0B,CAAC;AASlC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,YAAY,CAsB5C,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAC9C,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,2CAOzB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,EAC7C,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,2CAkBzB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAC9C,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,2CAOzB;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,SAAS,WAAW,EACrE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,2CAOzB"}
|