@vritti/quantum-ui 0.2.0 → 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/axios.js +28 -7
- package/dist/axios.js.map +1 -1
- package/dist/index.d.ts +10 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
18
18
|
export declare interface AuthConfig {
|
|
19
19
|
tokenHeaderName: string;
|
|
20
20
|
tokenPrefix: string;
|
|
21
|
+
tokenEndpoint: string;
|
|
22
|
+
refreshEndpoint: string;
|
|
23
|
+
sessionRecoveryEnabled: boolean;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
export declare const axios: AxiosInstance;
|
|
@@ -172,12 +175,6 @@ export declare interface CsrfConfig {
|
|
|
172
175
|
headerName: string;
|
|
173
176
|
}
|
|
174
177
|
|
|
175
|
-
declare let currentConfig: {
|
|
176
|
-
csrf: CsrfConfig;
|
|
177
|
-
axios: AxiosConfig;
|
|
178
|
-
auth: AuthConfig;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
178
|
export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
182
179
|
|
|
183
180
|
export declare interface DatePickerProps {
|
|
@@ -194,6 +191,12 @@ export declare interface DatePickerProps {
|
|
|
194
191
|
id?: string;
|
|
195
192
|
}
|
|
196
193
|
|
|
194
|
+
declare const defaultConfig: Required<{
|
|
195
|
+
csrf: CsrfConfig;
|
|
196
|
+
axios: AxiosConfig;
|
|
197
|
+
auth: AuthConfig;
|
|
198
|
+
}>;
|
|
199
|
+
|
|
197
200
|
export declare function defineConfig(config: QuantumUIConfig): QuantumUIConfig;
|
|
198
201
|
|
|
199
202
|
export declare function Field({
|
|
@@ -421,7 +424,7 @@ export declare interface FormProps<TFieldValues extends FieldValues = FieldValue
|
|
|
421
424
|
transformSubmit?: (data: TTransformedValues extends undefined ? TFieldValues : TTransformedValues) => TMutationVariables;
|
|
422
425
|
}
|
|
423
426
|
|
|
424
|
-
export declare function getConfig(): typeof
|
|
427
|
+
export declare function getConfig(): typeof defaultConfig;
|
|
425
428
|
|
|
426
429
|
export declare const getCsrfToken: () => string | null;
|
|
427
430
|
|