@linagora/linid-im-front-corelib 0.0.55 → 0.0.56
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/core-lib.es.js +533 -533
- package/dist/core-lib.umd.js +11 -11
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useFieldValidation.d.ts +3 -4
- package/dist/types/src/composables/useQuasarFieldValidation.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Composable for field validation. It exposes various validation methods
|
|
3
3
|
* that can be used to validate form fields.
|
|
4
|
-
* @param
|
|
5
|
-
* @param fieldName The name of the field to validate.
|
|
4
|
+
* @param i18nScope - I18n scope for localizing the validators.
|
|
6
5
|
* @returns An object containing validation methods.
|
|
7
6
|
*/
|
|
8
|
-
export declare function useFieldValidation(
|
|
9
|
-
validateFromApi: (value: unknown) => Promise<true | string>;
|
|
7
|
+
export declare function useFieldValidation(i18nScope: string): {
|
|
8
|
+
validateFromApi: (instanceId: string, fieldName: string, value: unknown) => Promise<true | string>;
|
|
10
9
|
required: (value: unknown) => true | string;
|
|
11
10
|
email: (value: unknown) => true | string;
|
|
12
11
|
minLength: (value: string | null | undefined, minValue: number) => true | string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @returns An object containing validation methods formatted for Quasar.
|
|
6
6
|
*/
|
|
7
7
|
export declare function useQuasarFieldValidation(instanceId: string, fieldName: string): {
|
|
8
|
-
validateFromApi: (value:
|
|
8
|
+
validateFromApi: (value: string) => Promise<string | true>;
|
|
9
9
|
required: (value: unknown) => true | string;
|
|
10
10
|
email: (value: unknown) => true | string;
|
|
11
11
|
min: (minValue: number) => (value: string | number) => string | true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linagora/linid-im-front-corelib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"description": "Core library of the LinID Identity Manager project. Provides shared types, services, components, and utilities for front-end and plugin, enabling consistent integration across the LinID ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|