Kaizen
Browse modulesReportsSchemas and constants

Variable: DOCX\_WARNINGS

const DOCX_WARNINGS: {
  BOX_UNSUPPORTED: {
     code: "box-unsupported";
     message: "layout approximation — box rendered transparently (container-level borders/background not supported in docx)";
  };
  GRID_APPROXIMATION: {
     code: "grid-approximation";
     message: "layout approximation — grid rendered as table (gap/rowSpan not supported in docx)";
  };
  HSTACK_APPROXIMATION: {
     code: "hstack-approximation";
     message: "layout approximation — hstack rendered as single-row borderless table (gap/alignment not fully supported in docx)";
  };
  LIST_ITEM_NON_TEXT: {
     code: "list-item-non-text";
     message: "non-text content approximated as separate block in docx";
  };
  VSTACK_APPROXIMATION: {
     code: "vstack-approximation";
     message: "layout approximation — vstack rendered as sequential paragraphs (gap/alignment approximated via paragraph spacing)";
  };
};

Defined in: server/reports/compilers/docx.ts:40

Well-known warnings emitted by the DOCX compiler when it encounters features that cannot be represented faithfully. Consumers can match on the code to handle specific degradations programmatically.

Type Declaration

BOX_UNSUPPORTED

readonly BOX_UNSUPPORTED: {
  code: "box-unsupported";
  message: "layout approximation — box rendered transparently (container-level borders/background not supported in docx)";
};

BOX_UNSUPPORTED.code

readonly code: "box-unsupported" = "box-unsupported";

BOX_UNSUPPORTED.message

readonly message: "layout approximation — box rendered transparently (container-level borders/background not supported in docx)" = "layout approximation — box rendered transparently (container-level borders/background not supported in docx)";

GRID_APPROXIMATION

readonly GRID_APPROXIMATION: {
  code: "grid-approximation";
  message: "layout approximation — grid rendered as table (gap/rowSpan not supported in docx)";
};

GRID_APPROXIMATION.code

readonly code: "grid-approximation" = "grid-approximation";

GRID_APPROXIMATION.message

readonly message: "layout approximation — grid rendered as table (gap/rowSpan not supported in docx)" = "layout approximation — grid rendered as table (gap/rowSpan not supported in docx)";

HSTACK_APPROXIMATION

readonly HSTACK_APPROXIMATION: {
  code: "hstack-approximation";
  message: "layout approximation — hstack rendered as single-row borderless table (gap/alignment not fully supported in docx)";
};

HSTACK_APPROXIMATION.code

readonly code: "hstack-approximation" = "hstack-approximation";

HSTACK_APPROXIMATION.message

readonly message: "layout approximation — hstack rendered as single-row borderless table (gap/alignment not fully supported in docx)" = "layout approximation — hstack rendered as single-row borderless table (gap/alignment not fully supported in docx)";

LIST_ITEM_NON_TEXT

readonly LIST_ITEM_NON_TEXT: {
  code: "list-item-non-text";
  message: "non-text content approximated as separate block in docx";
};

LIST_ITEM_NON_TEXT.code

readonly code: "list-item-non-text" = "list-item-non-text";

LIST_ITEM_NON_TEXT.message

readonly message: "non-text content approximated as separate block in docx" = "non-text content approximated as separate block in docx";

VSTACK_APPROXIMATION

readonly VSTACK_APPROXIMATION: {
  code: "vstack-approximation";
  message: "layout approximation — vstack rendered as sequential paragraphs (gap/alignment approximated via paragraph spacing)";
};

VSTACK_APPROXIMATION.code

readonly code: "vstack-approximation" = "vstack-approximation";

VSTACK_APPROXIMATION.message

readonly message: "layout approximation — vstack rendered as sequential paragraphs (gap/alignment approximated via paragraph spacing)" = "layout approximation — vstack rendered as sequential paragraphs (gap/alignment approximated via paragraph spacing)";

On this page