react-toolkits 2.13.2 → 2.13.3
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/CHANGELOG.md +6 -0
- package/lib/index.d.ts +5 -4
- package/lib/index.js +378 -315
- package/lib/index.js.map +1 -1
- package/locale/en_GB.js +2 -2
- package/locale/en_GB.js.map +1 -1
- package/locale/index.d.ts +2 -2
- package/locale/ja_JP.js +2 -2
- package/locale/ja_JP.js.map +1 -1
- package/locale/ko_KR.js +2 -2
- package/locale/ko_KR.js.map +1 -1
- package/locale/zh_CN.js +2 -2
- package/locale/zh_CN.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -164,12 +164,13 @@ interface UseFormModalProps<Values extends AnyObject = AnyObject, ExtraValues =
|
|
|
164
164
|
form?: FormInstance<Values>;
|
|
165
165
|
content?: ReactNode | ((extraValues: ExtraValues, operation: UseModalOperation) => ReactNode);
|
|
166
166
|
onConfirm?: (values: Values, extraValues: ExtraValues) => void | Promise<void>;
|
|
167
|
+
onSuccess?: () => void;
|
|
167
168
|
}
|
|
168
169
|
declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues = any>(props: UseFormModalProps<Values, ExtraValues>): {
|
|
169
170
|
id: number;
|
|
170
|
-
show: (
|
|
171
|
+
show: (options?: {
|
|
171
172
|
initialValues?: RecursivePartial<Values>;
|
|
172
|
-
extraValues
|
|
173
|
+
extraValues: ExtraValues;
|
|
173
174
|
}) => void;
|
|
174
175
|
hide: () => void;
|
|
175
176
|
modal: react_jsx_runtime.JSX.Element;
|
|
@@ -315,7 +316,7 @@ type Locale = {
|
|
|
315
316
|
UserWidget: {
|
|
316
317
|
signOutText: string;
|
|
317
318
|
};
|
|
318
|
-
|
|
319
|
+
User: {
|
|
319
320
|
createTitle: string;
|
|
320
321
|
createSuccessfully: string;
|
|
321
322
|
updateTitle: string;
|
|
@@ -324,7 +325,7 @@ type Locale = {
|
|
|
324
325
|
deleteContent: string;
|
|
325
326
|
deleteSuccessfully: string;
|
|
326
327
|
};
|
|
327
|
-
|
|
328
|
+
Role: {
|
|
328
329
|
createTitle: string;
|
|
329
330
|
createSuccessfully: string;
|
|
330
331
|
updateTitle: string;
|