@vritti/quantum-ui 0.2.1 → 0.2.2

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.d.ts CHANGED
@@ -175,12 +175,6 @@ export declare interface CsrfConfig {
175
175
  headerName: string;
176
176
  }
177
177
 
178
- declare let currentConfig: {
179
- csrf: CsrfConfig;
180
- axios: AxiosConfig;
181
- auth: AuthConfig;
182
- };
183
-
184
178
  export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
185
179
 
186
180
  export declare interface DatePickerProps {
@@ -197,6 +191,12 @@ export declare interface DatePickerProps {
197
191
  id?: string;
198
192
  }
199
193
 
194
+ declare const defaultConfig: Required<{
195
+ csrf: CsrfConfig;
196
+ axios: AxiosConfig;
197
+ auth: AuthConfig;
198
+ }>;
199
+
200
200
  export declare function defineConfig(config: QuantumUIConfig): QuantumUIConfig;
201
201
 
202
202
  export declare function Field({
@@ -424,7 +424,7 @@ export declare interface FormProps<TFieldValues extends FieldValues = FieldValue
424
424
  transformSubmit?: (data: TTransformedValues extends undefined ? TFieldValues : TTransformedValues) => TMutationVariables;
425
425
  }
426
426
 
427
- export declare function getConfig(): typeof currentConfig;
427
+ export declare function getConfig(): typeof defaultConfig;
428
428
 
429
429
  export declare const getCsrfToken: () => string | null;
430
430
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.1",
8
+ "version": "0.2.2",
9
9
  "type": "module",
10
10
  "sideEffects": false,
11
11
  "repository": {