@linagora/linid-im-front-corelib 0.0.50 → 0.0.52

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.
@@ -13,4 +13,5 @@ export declare function useFieldValidation(instanceId: string, fieldName: string
13
13
  min: (value: number, minValue: number) => true | string;
14
14
  max: (value: number, maxValue: number) => true | string;
15
15
  pattern: (value: string, pattern: string) => true | string;
16
+ unique: (value: unknown, items: unknown[]) => true | string;
16
17
  };
@@ -12,4 +12,5 @@ export declare function useQuasarFieldValidation(instanceId: string, fieldName:
12
12
  minLength: (minValue: number) => (value: string) => string | true;
13
13
  maxLength: (maxValue: number) => (value: string) => string | true;
14
14
  pattern: (patternValue: string) => (value: string) => string | true;
15
+ unique: (items: unknown[]) => (value: unknown) => string | true;
15
16
  };
@@ -17,7 +17,7 @@ export { getApiEndpointsConfiguration, getEntitiesConfiguration, getEntityConfig
17
17
  export { deleteEntityById, getEntities, getEntityById, saveEntity, updateEntity, } from './services/linidEntityService';
18
18
  export { getModuleHostConfiguration, registerModuleHostConfiguration, } from './services/linidModuleConfigurationService';
19
19
  export { getNunjucksEnv, setNunjucksEnv } from './services/nunjucksService';
20
- export { deepEqual, fromDot, isObject, merge, renameKeys, } from './services/objectService';
20
+ export { deepEqual, deepEqualUnordered, fromDot, isObject, merge, renameKeys, } from './services/objectService';
21
21
  export { getPiniaStore, setPiniaStore } from './services/piniaStoreService';
22
22
  export { getUiDesign, setUiDesign } from './services/uiDesignService';
23
23
  export { uiEventSubject } from './services/uiEventService';
@@ -67,4 +67,15 @@ export declare function renameKeys(obj: object, keyModifier: (key: string) => st
67
67
  * @returns `true` if the values are deeply equal, otherwise `false`.
68
68
  */
69
69
  export declare function deepEqual(a: unknown, b: unknown): boolean;
70
+ /**
71
+ * Performs a deep equality check between two values, ignoring the order of array elements.
72
+ *
73
+ * - For arrays, checks that both contain the same elements regardless of order.
74
+ * - For plain objects, recursively compares properties (also ignoring array order).
75
+ * - For primitives, uses strict equality.
76
+ * @param a The first value to compare.
77
+ * @param b The second value to compare.
78
+ * @returns `true` if the values are deeply equal (ignoring array order), otherwise `false`.
79
+ */
80
+ export declare function deepEqualUnordered(a: unknown, b: unknown): boolean;
70
81
  export {};
@@ -3,4 +3,4 @@
3
3
  * These validators read their parameters from the `inputSettings` property
4
4
  * of `LinidAttributeConfiguration`.
5
5
  */
6
- export type ValidatorName = 'min' | 'max' | 'minLength' | 'maxLength' | 'pattern';
6
+ export type ValidatorName = 'min' | 'max' | 'minLength' | 'maxLength' | 'pattern' | 'unique';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linagora/linid-im-front-corelib",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
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": [
@@ -42,35 +42,35 @@
42
42
  },
43
43
  "homepage": "https://github.com/linagora/linid-im-front-corelib#readme",
44
44
  "peerDependencies": {
45
- "@module-federation/enhanced": "0.21.6",
46
- "axios": "1.13.2",
45
+ "@module-federation/enhanced": "2.1.0",
46
+ "axios": "1.13.6",
47
47
  "pinia": "3.0.4",
48
48
  "quasar": "2.18.6",
49
49
  "rxjs": "7.8.2",
50
- "vue": "3.5.25",
51
- "vue-i18n": "11.2.2"
50
+ "vue": "3.5.30",
51
+ "vue-i18n": "11.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@eslint/js": "9.39.1",
55
- "@types/node": "25.0.0",
54
+ "@eslint/js": "10.0.1",
55
+ "@types/node": "25.4.0",
56
56
  "@types/nunjucks": "3.2.6",
57
- "@vitejs/plugin-vue": "6.0.2",
58
- "@vitest/coverage-v8": "4.0.15",
57
+ "@vitejs/plugin-vue": "6.0.4",
58
+ "@vitest/coverage-v8": "4.0.18",
59
59
  "@vue/eslint-config-prettier": "10.2.0",
60
- "@vue/eslint-config-typescript": "14.6.0",
60
+ "@vue/eslint-config-typescript": "14.7.0",
61
61
  "@vue/test-utils": "2.4.6",
62
- "eslint": "9.39.1",
63
- "eslint-plugin-headers": "1.3.3",
62
+ "eslint": "10.0.3",
63
+ "eslint-plugin-headers": "1.3.4",
64
64
  "eslint-plugin-import": "2.32.0",
65
- "eslint-plugin-jsdoc": "61.5.0",
66
- "eslint-plugin-vue": "10.6.2",
67
- "happy-dom": "20.0.11",
68
- "prettier": "3.7.4",
65
+ "eslint-plugin-jsdoc": "62.8.0",
66
+ "eslint-plugin-vue": "10.8.0",
67
+ "happy-dom": "20.8.3",
68
+ "prettier": "3.8.1",
69
69
  "typescript": "5.9.3",
70
- "vite": "7.2.7",
71
- "vite-tsconfig-paths": "5.1.4",
72
- "vitest": "4.0.15",
73
- "vue-tsc": "3.1.8"
70
+ "vite": "7.3.1",
71
+ "vite-tsconfig-paths": "6.1.1",
72
+ "vitest": "4.0.18",
73
+ "vue-tsc": "3.2.5"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "vite build && vue-tsc --declaration --emitDeclarationOnly -p tsconfig.lib.json",