@regle/schemas 1.8.3 → 1.8.5
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/README.md +2 -0
- package/dist/regle-schemas.d.ts +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/victorgarciaesgi/regle/master/.github/images/regle-github-banner.png" alt="regle cover">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
+
<a href="https://www.buymeacoffee.com/victorgarco" target="_blank"><img height="40" width="150" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>
|
|
6
|
+
|
|
5
7
|
# Regle
|
|
6
8
|
|
|
7
9
|
|
package/dist/regle-schemas.d.ts
CHANGED
|
@@ -1099,7 +1099,7 @@ interface LocalRegleBehaviourOptions<TState extends Record<string, any>, TRules
|
|
|
1099
1099
|
externalErrors?: Ref<RegleExternalErrorTree<Unwrap<TState>> | Record<string, string[]>>;
|
|
1100
1100
|
validationGroups?: (fields: RegleStatus<TState, TRules>['$fields']) => TValidationGroups;
|
|
1101
1101
|
}
|
|
1102
|
-
type RegleValidationGroupEntry = RegleFieldStatus<any, any
|
|
1102
|
+
type RegleValidationGroupEntry = RegleFieldStatus<any, any> | undefined;
|
|
1103
1103
|
interface RegleValidationGroupOutput {
|
|
1104
1104
|
$invalid: boolean;
|
|
1105
1105
|
$error: boolean;
|
|
@@ -2053,7 +2053,9 @@ type CreateScopedUseRegleOptions<TCustomRegle extends useRegleFn<any, any>, TAsR
|
|
|
2053
2053
|
*/
|
|
2054
2054
|
customStore?: Ref<ScopedInstancesRecordLike>;
|
|
2055
2055
|
/**
|
|
2056
|
-
*
|
|
2056
|
+
* Collect instances in a Record instead of an array
|
|
2057
|
+
*
|
|
2058
|
+
* ⚠️ Each nested `useScopedRegle` must provide a parameter `scopeKey` to be collected.
|
|
2057
2059
|
*/
|
|
2058
2060
|
asRecord?: TAsRecord;
|
|
2059
2061
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regle/schemas",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"description": "Schemas adapter for Regle",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@standard-schema/spec": "1.0.0",
|
|
7
|
-
"@regle/core": "1.8.
|
|
8
|
-
"@regle/rules": "1.8.
|
|
7
|
+
"@regle/core": "1.8.5",
|
|
8
|
+
"@regle/rules": "1.8.5"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"valibot": "^1.0.0",
|