@xyo-network/react-form-group 4.4.5 → 4.4.7
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/browser/index.d.ts +4 -15
- package/package.json +13 -13
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ import * as react from 'react';
|
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
4
4
|
import { ContextExState } from '@xyo-network/react-shared';
|
|
5
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
6
|
-
import { BaseParams, EmptyObject } from '@xylabs/object';
|
|
7
5
|
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
8
6
|
import { Payload } from '@xyo-network/payload-model';
|
|
7
|
+
import { BaseParams, EmptyObject } from '@xylabs/object';
|
|
9
8
|
import { BaseEmitter } from '@xyo-network/module-event-emitter';
|
|
10
9
|
import { Promisable } from '@xylabs/promise';
|
|
11
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -160,9 +159,7 @@ declare class ArchivistFormGroupStorage implements FormGroupStorage {
|
|
|
160
159
|
private archivist;
|
|
161
160
|
constructor(archivist: ArchivistInstance);
|
|
162
161
|
clear(): Promise<void>;
|
|
163
|
-
get(): Promise<_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.WithStorageMeta<
|
|
164
|
-
schema: _xyo_network_payload_model.Schema;
|
|
165
|
-
}>>> | undefined>;
|
|
162
|
+
get(): Promise<_xyo_network_payload_model.WithStorageMeta<_xyo_network_payload_model.WithStorageMeta<Payload>> | undefined>;
|
|
166
163
|
insert(value: Payload): Promise<void>;
|
|
167
164
|
}
|
|
168
165
|
|
|
@@ -209,21 +206,13 @@ interface FormGroupContextWithPayloadState<TValue extends Payload = Payload, TSt
|
|
|
209
206
|
formGroup?: FormGroup<TValue, TStorageValue>;
|
|
210
207
|
}
|
|
211
208
|
|
|
212
|
-
declare const FormGroupBaseContext: react.Context<FormGroupContextWithPayloadState<
|
|
213
|
-
schema: _xyo_network_payload_model.Schema;
|
|
214
|
-
}>, _xylabs_object.DeepRestrictToStringKeys<{
|
|
215
|
-
schema: _xyo_network_payload_model.Schema;
|
|
216
|
-
}>> & _xyo_network_react_shared.ContextExState>;
|
|
209
|
+
declare const FormGroupBaseContext: react.Context<FormGroupContextWithPayloadState<_xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload> & _xyo_network_react_shared.ContextExState>;
|
|
217
210
|
|
|
218
211
|
interface FormGroupPayloadProviderProps<TStorage extends Payload = Payload> extends PropsWithChildren {
|
|
219
212
|
params?: FormGroupParams<TStorage>;
|
|
220
213
|
}
|
|
221
214
|
declare const FormGroupPayloadProvider: ({ children, params, ...props }: FormGroupPayloadProviderProps) => react_jsx_runtime.JSX.Element;
|
|
222
215
|
|
|
223
|
-
declare const useFormGroup: (required?: boolean) => Omit<FormGroupContextWithPayloadState<
|
|
224
|
-
schema: _xyo_network_payload_model.Schema;
|
|
225
|
-
}>, _xylabs_object.DeepRestrictToStringKeys<{
|
|
226
|
-
schema: _xyo_network_payload_model.Schema;
|
|
227
|
-
}>> & _xyo_network_react_shared.ContextExState, "provided">;
|
|
216
|
+
declare const useFormGroup: (required?: boolean) => Omit<FormGroupContextWithPayloadState<_xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload> & _xyo_network_react_shared.ContextExState, "provided">;
|
|
228
217
|
|
|
229
218
|
export { AbstractControl, type AbstractControlEvents, ArchivistFormGroupStorage, type ControlSerializeSettings, type ControlValueAccessor, ControlValueAccessorBase, type ControlValueAccessorBaseConfig, type ControlValueAccessorBaseEvents, type CursorPosition, DISABLED, DefaultSetOptions, type ErrorSummary, type FormControl, FormControlBase, type FormControlMask, type FormControlStatus, type FormControlValidator, FormGroup, FormGroupBaseContext, type FormGroupContextWithPayloadState, type FormGroupParams, FormGroupPayloadProvider, type FormGroupPayloadProviderProps, type FormGroupStorage, INVALID, type KeyOfString, PENDING, type PayloadWithTimestamp, type SetOptions, VALID, type ValidControlValue, useFormGroup };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-form-group",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.7",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@mui/icons-material": "^6.4.
|
|
46
|
+
"@mui/icons-material": "^6.4.6",
|
|
47
47
|
"@xylabs/forget": "^4.5.1",
|
|
48
48
|
"@xylabs/object": "^4.5.1",
|
|
49
49
|
"@xylabs/promise": "^4.5.1",
|
|
50
|
-
"@xyo-network/archivist-model": "^3.9.
|
|
51
|
-
"@xyo-network/module-event-emitter": "^3.9.
|
|
52
|
-
"@xyo-network/module-events": "^3.9.
|
|
53
|
-
"@xyo-network/payload-model": "^3.9.
|
|
54
|
-
"@xyo-network/react-shared": "^4.4.
|
|
50
|
+
"@xyo-network/archivist-model": "^3.9.17",
|
|
51
|
+
"@xyo-network/module-event-emitter": "^3.9.17",
|
|
52
|
+
"@xyo-network/module-events": "^3.9.17",
|
|
53
|
+
"@xyo-network/payload-model": "^3.9.17",
|
|
54
|
+
"@xyo-network/react-shared": "^4.4.7"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@mui/material": "^6.4.
|
|
58
|
-
"@mui/styles": "^6.4.
|
|
59
|
-
"@storybook/react": "^8.
|
|
60
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
61
|
-
"@xylabs/tsconfig-react": "^5.0.
|
|
57
|
+
"@mui/material": "^6.4.6",
|
|
58
|
+
"@mui/styles": "^6.4.6",
|
|
59
|
+
"@storybook/react": "^8.6.2",
|
|
60
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.25",
|
|
61
|
+
"@xylabs/tsconfig-react": "^5.0.25",
|
|
62
62
|
"react": "^18.3.1",
|
|
63
63
|
"react-dom": "^18.3.1",
|
|
64
|
-
"storybook": "^8.
|
|
64
|
+
"storybook": "^8.6.2",
|
|
65
65
|
"typescript": "^5.7.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|