Fix alignment, progress bar, grid safety, and strict typing issues
- Load layout name before reading it in progress bar creation - Load shape dimensions before aligning and align to slide edges/center - Clamp grid spacing/opacity and guard zero spacing before deleting a grid - Use hasText and text-capable shape checks with null-safe property matching - Add info status style and remove dead imports - Enable strict mode and skipLibCheck; add typecheck script
This commit is contained in:
1 parent
16491c00ce
commit
791cbc7b6c
13 files changed
+271
-183
No files matched your search
@@ -16,6 +16,7 @@ import {
|
||||
} from "@fluentui/react-icons";
|
||||
import { useStatusContext } from "./App";
|
||||
import { useCommonStyles } from "./commonStyles";
|
||||
import { getErrorMessage } from "../types/office-types";
|
||||
|
||||
/**
|
||||
* Configuration constants for draft watermarks
|
||||
@@ -101,11 +102,10 @@ export const DraftButtons: React.FC = () => {
|
||||
* @param error - The error object
|
||||
* @param operation - The operation being performed (for logging)
|
||||
*/
|
||||
const handleError = (error: any, operation: string): void => {
|
||||
setStatusMessage(`Error: ${error.message || "Unknown error occurred"}`);
|
||||
const handleError = (error: unknown, operation: string): void => {
|
||||
setStatusMessage(`Error: ${getErrorMessage(error)}`);
|
||||
setStatusType("error");
|
||||
console.error(`${operation} error:`, error);
|
||||
setIsProcessing(false);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user