@acvl/frontend-components 0.0.94 → 0.0.95
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/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2988,6 +2988,20 @@ interface DetailFormApi {
|
|
|
2988
2988
|
args?: any;
|
|
2989
2989
|
disable?: boolean;
|
|
2990
2990
|
successMessage?: string | ((response: any) => string);
|
|
2991
|
+
/**
|
|
2992
|
+
* Intercepts a 400 before the engine turns it into field errors and the generic
|
|
2993
|
+
* "validation error" notification. Return `true` when the form has handled it.
|
|
2994
|
+
*
|
|
2995
|
+
* For the rejections that are **a question, not a failure** — the server refusing an
|
|
2996
|
+
* action and telling the user how to insist. The case that asked for it: committing a
|
|
2997
|
+
* trip segment over a colleague's soft hold answers 400 naming who holds it, and the
|
|
2998
|
+
* screen has to offer "take it from them"; swallowed into the generic notification, that
|
|
2999
|
+
* second step disappears and with it the whole point of the soft hold.
|
|
3000
|
+
*
|
|
3001
|
+
* `useMutationHandler` already had the hook — this only passes it through, which is what
|
|
3002
|
+
* kept a form that needs it from using this engine at all.
|
|
3003
|
+
*/
|
|
3004
|
+
onInvalidParams?: (error: any) => boolean;
|
|
2991
3005
|
postAction?: {
|
|
2992
3006
|
after: "create" | "edit" | "both";
|
|
2993
3007
|
type: string;
|
package/package.json
CHANGED