@dskripchenko/laravel-admin 1.44.1 → 1.45.0

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.
@@ -73,6 +73,12 @@ export declare function modalSizeOf(raw: unknown): ModalSize;
73
73
  * null when it has to be a full navigation.
74
74
  */
75
75
  export declare function toRouterPath(router: Router | undefined, href: string): string | null;
76
+ /**
77
+ * The server's reason for refusing an action, or the generic "could not run"
78
+ * text for it when the server gave none. Every page that runs actions reports
79
+ * failures with it, so a refusal reads the same everywhere.
80
+ */
81
+ export declare function actionErrorMessage(action: Pick<AdminAction, 'label'>, err: unknown): string;
76
82
  export declare function useActionRunner(executor: ActionExecutor): {
77
83
  run: (action: AdminAction, options?: ActionRunOptions) => Promise<boolean>;
78
84
  running: import("vue").Ref<boolean, boolean>;