@dartcom/ui-kit 3.1.0 → 3.2.0

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 +1 @@
1
- {"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB,qCAsB9B,CAAC"}
1
+ {"version":3,"file":"useGetLeafletLayer.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/layers/leaflet/hooks/useGetLeafletLayer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB,qCA8B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"leaflet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/leaflet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAkBzB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"leaflet.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layers/leaflet/leaflet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAgBzB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,7 @@
1
+ import { ResponseData } from './types';
1
2
  export interface ConfigOptions {
2
3
  apiKey: string;
4
+ onCheck?: (data: ResponseData) => void;
3
5
  }
4
6
  export declare class GlobalConfig {
5
7
  private static _instance;
@@ -8,8 +10,9 @@ export declare class GlobalConfig {
8
10
  static get instance(): GlobalConfig;
9
11
  private constructor();
10
12
  private _apiKey;
11
- get apiKey(): string;
12
- set apiKey(value: string);
13
- getIsValidKey(): Promise<boolean>;
13
+ private _isValidApiKey;
14
+ get isValidApiKey(): boolean;
15
+ set isValidApiKey(value: boolean);
16
+ _getCheckKeyData(): Promise<ResponseData | undefined>;
14
17
  }
15
18
  //# sourceMappingURL=global.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/configs/global/global.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgC;WAE1C,UAAU,CAAC,OAAO,EAAE,aAAa;WAMjC,UAAU;IAIxB,WAAkB,QAAQ,iBAQzB;IAED,OAAO;IAIP,OAAO,CAAC,OAAO,CAAM;IACrB,IAAW,MAAM,WAEhB;IACD,IAAW,MAAM,CAAC,KAAK,QAAA,EAEtB;IAEY,aAAa;CA6C3B"}
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/configs/global/global.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CACxC;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAgC;WAE1C,UAAU,CAAC,OAAO,EAAE,aAAa;WAMjC,UAAU;IAIxB,WAAkB,QAAQ,iBAQzB;IAED,OAAO;IAgBP,OAAO,CAAC,OAAO,CAAM;IAErB,OAAO,CAAC,cAAc,CAAS;IAC/B,IAAW,aAAa,YAEvB;IACD,IAAW,aAAa,CAAC,KAAK,SAAA,EAE7B;IAEY,gBAAgB;CA6B9B"}
@@ -0,0 +1,5 @@
1
+ export type ResponseData = {
2
+ valid: boolean;
3
+ reason: string;
4
+ };
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/configs/global/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartcom/ui-kit",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Кастомная библиотека комопнентов Dartcom",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -84,7 +84,6 @@
84
84
  "react": "^19.2.0",
85
85
  "react-dom": "^19.2.0",
86
86
  "rollup": "^4.52.5",
87
- "rollup-plugin-flat-dts": "^2.9.0",
88
87
  "rollup-plugin-peer-deps-external": "^2.2.4",
89
88
  "rollup-plugin-postcss": "^4.0.2",
90
89
  "rollup-plugin-preserve-directives": "^0.4.0",
@@ -117,6 +116,7 @@
117
116
  "@mui/material": "^7.3.4",
118
117
  "axios": "^1.12.2",
119
118
  "leaflet": "^1.9.4",
119
+ "mobx": "^6.15.0",
120
120
  "react-hook-form": "^7.65.0",
121
121
  "react-leaflet": "^5.0.0",
122
122
  "tangram": "^0.22.0"