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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 2.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 8601f12: feat: change permission display
8
+
3
9
  ## 2.13.2
4
10
 
5
11
  ### Patch Changes
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: ({ initialValues, extraValues, }?: {
171
+ show: (options?: {
171
172
  initialValues?: RecursivePartial<Values>;
172
- extraValues?: 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
- UserList: {
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
- RoleList: {
328
+ Role: {
328
329
  createTitle: string;
329
330
  createSuccessfully: string;
330
331
  updateTitle: string;