@json-to-office/shared-docx 0.38.1 → 1.1.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.
Files changed (49) hide show
  1. package/dist/{chunk-ZC2I7CTZ.js → chunk-45I2NASU.js} +5 -3
  2. package/dist/{chunk-ZC2I7CTZ.js.map → chunk-45I2NASU.js.map} +1 -1
  3. package/dist/chunk-5KOKA5GY.js +687 -0
  4. package/dist/chunk-5KOKA5GY.js.map +1 -0
  5. package/dist/{chunk-PMZEVOBL.js → chunk-6B3LHADB.js} +2 -2
  6. package/dist/{chunk-XR7ZEDXZ.js → chunk-6HFF6XZN.js} +50 -6
  7. package/dist/chunk-6HFF6XZN.js.map +1 -0
  8. package/dist/{chunk-IU2F2FYO.js → chunk-6YMJWMEC.js} +34 -18
  9. package/dist/chunk-6YMJWMEC.js.map +1 -0
  10. package/dist/{chunk-JF5ZJQNR.js → chunk-A2K66URO.js} +47 -149
  11. package/dist/chunk-A2K66URO.js.map +1 -0
  12. package/dist/{chunk-LATN6QG6.js → chunk-BBFR3RRN.js} +45 -8
  13. package/dist/chunk-BBFR3RRN.js.map +1 -0
  14. package/dist/{chunk-W523ZTYH.js → chunk-LBXOAXMG.js} +6 -6
  15. package/dist/{chunk-E5EWXZWO.js → chunk-MYLVUQCN.js} +2 -2
  16. package/dist/chunk-OP5PCDNN.js +1272 -0
  17. package/dist/chunk-OP5PCDNN.js.map +1 -0
  18. package/dist/{chunk-HPZPUB6J.js → chunk-TODYYVZ4.js} +2 -2
  19. package/dist/chunk-VX2J2KWA.js +465 -0
  20. package/dist/chunk-VX2J2KWA.js.map +1 -0
  21. package/dist/index.d.ts +12 -2
  22. package/dist/index.js +57 -25
  23. package/dist/index.js.map +1 -1
  24. package/dist/schemas/api.js +7 -5
  25. package/dist/schemas/component-defaults.js +2 -1
  26. package/dist/schemas/component-registry.d.ts +10 -2
  27. package/dist/schemas/component-registry.js +5 -3
  28. package/dist/schemas/components.d.ts +1092 -4
  29. package/dist/schemas/components.js +72 -26
  30. package/dist/schemas/document.js +8 -6
  31. package/dist/schemas/export.d.ts +8 -2
  32. package/dist/schemas/export.js +6 -4
  33. package/dist/schemas/generator.js +6 -4
  34. package/dist/schemas/renderer.d.ts +30 -0
  35. package/dist/schemas/renderer.js +17 -0
  36. package/dist/schemas/renderer.js.map +1 -0
  37. package/dist/schemas/theme.js +3 -2
  38. package/dist/validation/unified/index.js +8 -6
  39. package/package.json +2 -2
  40. package/dist/chunk-2YUAD26Q.js +0 -1718
  41. package/dist/chunk-2YUAD26Q.js.map +0 -1
  42. package/dist/chunk-IU2F2FYO.js.map +0 -1
  43. package/dist/chunk-JF5ZJQNR.js.map +0 -1
  44. package/dist/chunk-LATN6QG6.js.map +0 -1
  45. package/dist/chunk-XR7ZEDXZ.js.map +0 -1
  46. /package/dist/{chunk-PMZEVOBL.js.map → chunk-6B3LHADB.js.map} +0 -0
  47. /package/dist/{chunk-W523ZTYH.js.map → chunk-LBXOAXMG.js.map} +0 -0
  48. /package/dist/{chunk-E5EWXZWO.js.map → chunk-MYLVUQCN.js.map} +0 -0
  49. /package/dist/{chunk-HPZPUB6J.js.map → chunk-TODYYVZ4.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/components/common.ts"],"sourcesContent":["/**\n * Common Types and Schemas for Components\n *\n * Shared type definitions used across multiple component schemas.\n */\n\nimport { Type, Static } from '@sinclair/typebox';\nimport { HexColorSchema } from '../font';\n\n// ============================================================================\n// Common Types\n// ============================================================================\n\nexport const AlignmentSchema = Type.Union(\n [Type.Literal('left'), Type.Literal('center'), Type.Literal('right')],\n { description: 'Text alignment options' }\n);\n\nexport const JustifiedAlignmentSchema = Type.Union(\n [\n Type.Literal('left'),\n Type.Literal('center'),\n Type.Literal('right'),\n Type.Literal('justify'),\n ],\n { description: 'Text alignment options including justify' }\n);\n\nexport const HeadingLevelSchema = Type.Union(\n [\n Type.Literal(1),\n Type.Literal(2),\n Type.Literal(3),\n Type.Literal(4),\n Type.Literal(5),\n Type.Literal(6),\n ],\n { description: 'Heading level (1-6)' }\n);\n\nexport const SpacingSchema = Type.Object(\n {\n before: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Spacing before element in points',\n })\n ),\n after: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Spacing after element in points',\n })\n ),\n },\n {\n description: 'Spacing configuration',\n additionalProperties: false,\n }\n);\n\nexport const ListSpacingSchema = Type.Object(\n {\n before: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Spacing before list in points',\n })\n ),\n after: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Spacing after list in points',\n })\n ),\n item: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Spacing between list items in points',\n })\n ),\n },\n {\n description: 'List spacing configuration with item spacing',\n additionalProperties: false,\n }\n);\n\nexport const MarginsSchema = Type.Object(\n {\n top: Type.Optional(Type.Number({ minimum: 0 })),\n bottom: Type.Optional(Type.Number({ minimum: 0 })),\n left: Type.Optional(Type.Number({ minimum: 0 })),\n right: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { description: 'Margin configuration', additionalProperties: false }\n);\n\nexport const BorderSchema = Type.Object(\n {\n style: Type.Optional(\n Type.Union([\n Type.Literal('solid'),\n Type.Literal('dashed'),\n Type.Literal('dotted'),\n Type.Literal('double'),\n Type.Literal('none'),\n ])\n ),\n width: Type.Optional(Type.Number({ minimum: 0 })),\n color: Type.Optional(HexColorSchema),\n },\n { description: 'Border configuration', additionalProperties: false }\n);\n\nexport const LineSpacingSchema = Type.Object(\n {\n type: Type.Union([\n Type.Literal('single'),\n Type.Literal('atLeast'),\n Type.Literal('exactly'),\n Type.Literal('double'),\n Type.Literal('multiple'),\n ]),\n value: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { description: 'Line spacing configuration', additionalProperties: false }\n);\n\nexport const IndentSchema = Type.Object(\n {\n left: Type.Optional(Type.Number({ minimum: 0 })),\n hanging: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { description: 'Indentation configuration', additionalProperties: false }\n);\n\nexport const ParagraphIndentSchema = Type.Object(\n {\n left: Type.Optional(\n Type.Number({\n description: 'Left indentation in twips (1/20 of a point)',\n })\n ),\n right: Type.Optional(\n Type.Number({\n description: 'Right indentation in twips (1/20 of a point)',\n })\n ),\n hanging: Type.Optional(\n Type.Number({\n minimum: 0,\n description:\n 'Hanging indent in twips: first line stays at the left indent, following lines are indented. Mutually exclusive with firstLine.',\n })\n ),\n firstLine: Type.Optional(\n Type.Number({\n minimum: 0,\n description:\n 'First-line indent in twips: only the first line is indented. Mutually exclusive with hanging.',\n })\n ),\n },\n {\n description:\n 'Paragraph indentation (w:ind) in twips. Use either hanging or firstLine, not both.',\n additionalProperties: false,\n }\n);\n\nexport const TabStopTypeSchema = Type.Union(\n [\n Type.Literal('left'),\n Type.Literal('right'),\n Type.Literal('center'),\n Type.Literal('decimal'),\n Type.Literal('bar'),\n ],\n { description: 'Tab stop alignment type' }\n);\n\nexport const TabStopLeaderSchema = Type.Union(\n [\n Type.Literal('dot'),\n Type.Literal('hyphen'),\n Type.Literal('underscore'),\n Type.Literal('middleDot'),\n Type.Literal('none'),\n ],\n { description: 'Leader character filling the space before the tab stop' }\n);\n\nexport const TabStopSchema = Type.Object(\n {\n type: TabStopTypeSchema,\n position: Type.Number({\n minimum: 0,\n description: 'Tab stop position in twips (1/20 of a point)',\n }),\n leader: Type.Optional(TabStopLeaderSchema),\n },\n {\n description: 'Tab stop definition (w:tab in w:tabs)',\n additionalProperties: false,\n }\n);\n\nexport const TabStopsSchema = Type.Array(TabStopSchema, {\n description:\n 'Tab stops for the paragraph. Tab characters (\\\\t) in the text jump to these positions.',\n});\n\n// ============================================================================\n// Floating Positioning Schemas (shared between image, text-box components)\n// ============================================================================\n\nexport const HorizontalPositionRelativeFromSchema = Type.Union(\n [\n Type.Literal('character'),\n Type.Literal('column'),\n Type.Literal('margin'),\n Type.Literal('page'),\n Type.Literal('text'), // VML compatibility for text-box\n ],\n {\n description: 'Horizontal position relative to',\n }\n);\n\nexport const VerticalPositionRelativeFromSchema = Type.Union(\n [\n Type.Literal('margin'),\n Type.Literal('page'),\n Type.Literal('paragraph'),\n Type.Literal('line'),\n Type.Literal('text'), // VML compatibility for text-box\n ],\n {\n description: 'Vertical position relative to',\n }\n);\n\nexport const HorizontalPositionAlignSchema = Type.Union(\n [\n Type.Literal('left'),\n Type.Literal('center'),\n Type.Literal('right'),\n Type.Literal('inside'),\n Type.Literal('outside'),\n ],\n {\n description: 'Horizontal alignment',\n }\n);\n\nexport const VerticalPositionAlignSchema = Type.Union(\n [\n Type.Literal('top'),\n Type.Literal('center'),\n Type.Literal('bottom'),\n Type.Literal('inside'),\n Type.Literal('outside'),\n ],\n {\n description: 'Vertical alignment',\n }\n);\n\nexport const TextWrappingTypeSchema = Type.Union(\n [\n Type.Literal('none'),\n Type.Literal('square'),\n Type.Literal('topAndBottom'),\n Type.Literal('around'), // VML compatibility for text-box\n Type.Literal('tight'), // VML compatibility for text-box\n Type.Literal('through'), // VML compatibility for text-box\n ],\n {\n description: 'Text wrapping type',\n }\n);\n\nexport const TextWrappingSideSchema = Type.Union(\n [\n Type.Literal('bothSides'),\n Type.Literal('left'),\n Type.Literal('right'),\n Type.Literal('largest'),\n ],\n {\n description: 'Text wrapping side',\n }\n);\n\nexport const FloatingPropertiesSchema = Type.Object(\n {\n horizontalPosition: Type.Optional(\n Type.Object(\n {\n relative: Type.Optional(HorizontalPositionRelativeFromSchema),\n align: Type.Optional(HorizontalPositionAlignSchema),\n offset: Type.Optional(\n Type.Union([\n Type.Number({\n description: 'Horizontal offset in twips (1/20 of a point)',\n }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description:\n 'Horizontal offset as percentage (e.g., \"50%\") relative to page or margin width',\n }),\n ])\n ),\n },\n {\n description:\n 'Horizontal positioning (use either align or offset, not both)',\n additionalProperties: false,\n }\n )\n ),\n verticalPosition: Type.Optional(\n Type.Object(\n {\n relative: Type.Optional(VerticalPositionRelativeFromSchema),\n align: Type.Optional(VerticalPositionAlignSchema),\n offset: Type.Optional(\n Type.Union([\n Type.Number({\n description: 'Vertical offset in twips (1/20 of a point)',\n }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description:\n 'Vertical offset as percentage (e.g., \"50%\") relative to page or margin height',\n }),\n ])\n ),\n },\n {\n description:\n 'Vertical positioning (use either align or offset, not both)',\n additionalProperties: false,\n }\n )\n ),\n wrap: Type.Optional(\n Type.Object(\n {\n type: TextWrappingTypeSchema,\n side: Type.Optional(TextWrappingSideSchema),\n margins: Type.Optional(\n Type.Object(\n {\n top: Type.Optional(\n Type.Union([\n Type.Number({ description: 'Top margin in twips' }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description: 'Top margin as percentage of page height',\n }),\n ])\n ),\n bottom: Type.Optional(\n Type.Union([\n Type.Number({ description: 'Bottom margin in twips' }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description: 'Bottom margin as percentage of page height',\n }),\n ])\n ),\n left: Type.Optional(\n Type.Union([\n Type.Number({ description: 'Left margin in twips' }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description: 'Left margin as percentage of page width',\n }),\n ])\n ),\n right: Type.Optional(\n Type.Union([\n Type.Number({ description: 'Right margin in twips' }),\n Type.String({\n pattern: '^\\\\d+(\\\\.\\\\d+)?%$',\n description: 'Right margin as percentage of page width',\n }),\n ])\n ),\n },\n {\n description: 'Distance from text margins',\n additionalProperties: false,\n }\n )\n ),\n },\n {\n description: 'Text wrapping configuration',\n additionalProperties: false,\n }\n )\n ),\n allowOverlap: Type.Optional(\n Type.Boolean({\n description: 'Allow element to overlap with other elements',\n })\n ),\n behindDocument: Type.Optional(\n Type.Boolean({\n description: 'Place element behind document text',\n })\n ),\n lockAnchor: Type.Optional(\n Type.Boolean({\n description: 'Lock the anchor position',\n })\n ),\n layoutInCell: Type.Optional(\n Type.Boolean({\n description: 'Layout element within table cell',\n })\n ),\n zIndex: Type.Optional(\n Type.Number({\n minimum: 0,\n description: 'Z-order for overlapping elements (must be non-negative)',\n })\n ),\n rotation: Type.Optional(\n Type.Number({\n description: 'Rotation angle in degrees',\n })\n ),\n visibility: Type.Optional(\n Type.Union([Type.Literal('hidden'), Type.Literal('inherit')], {\n description: 'Visibility of the floating element',\n })\n ),\n },\n {\n description: 'Floating element properties',\n additionalProperties: false,\n }\n);\n\nexport type HorizontalPositionRelativeFrom = Static<\n typeof HorizontalPositionRelativeFromSchema\n>;\nexport type VerticalPositionRelativeFrom = Static<\n typeof VerticalPositionRelativeFromSchema\n>;\nexport type HorizontalPositionAlign = Static<\n typeof HorizontalPositionAlignSchema\n>;\nexport type VerticalPositionAlign = Static<typeof VerticalPositionAlignSchema>;\nexport type TextWrappingType = Static<typeof TextWrappingTypeSchema>;\nexport type TextWrappingSide = Static<typeof TextWrappingSideSchema>;\nexport type FloatingProperties = Static<typeof FloatingPropertiesSchema>;\n\nexport const NumberingSchema = Type.Object(\n {\n start: Type.Optional(Type.Number({ minimum: 1 })),\n style: Type.Optional(\n Type.Union([\n Type.Literal('decimal'),\n Type.Literal('lowerLetter'),\n Type.Literal('upperLetter'),\n Type.Literal('lowerRoman'),\n Type.Literal('upperRoman'),\n ])\n ),\n separator: Type.Optional(Type.String()),\n },\n {\n description: 'Numbering configuration for lists',\n additionalProperties: false,\n }\n);\n\n// ============================================================================\n// Base Component Props (common fields across all components)\n// ============================================================================\n// Note: BaseComponentFields is currently empty as common properties\n// (className, style, hidden, condition) are not implemented in the rendering engine.\n// These were removed to accurately reflect actual capabilities.\n\nconst BaseComponentFields = {};\n\n// Export BaseComponentPropsSchema\nexport const BaseComponentPropsSchema = Type.Object(BaseComponentFields, {\n description: 'Base component props',\n additionalProperties: true,\n});\n\n// Export BaseComponentFields for use in component definitions\nexport { BaseComponentFields };\n\n// ============================================================================\n// TypeScript Types\n// ============================================================================\n\nexport type Alignment = Static<typeof AlignmentSchema>;\nexport type JustifiedAlignment = Static<typeof JustifiedAlignmentSchema>;\nexport type HeadingLevel = Static<typeof HeadingLevelSchema>;\nexport type Spacing = Static<typeof SpacingSchema>;\nexport type ListSpacing = Static<typeof ListSpacingSchema>;\nexport type LineSpacing = Static<typeof LineSpacingSchema>;\nexport type Indent = Static<typeof IndentSchema>;\nexport type ParagraphIndent = Static<typeof ParagraphIndentSchema>;\nexport type TabStopType = Static<typeof TabStopTypeSchema>;\nexport type TabStopLeader = Static<typeof TabStopLeaderSchema>;\nexport type TabStop = Static<typeof TabStopSchema>;\nexport type TabStops = Static<typeof TabStopsSchema>;\nexport type Numbering = Static<typeof NumberingSchema>;\nexport type Margins = Static<typeof MarginsSchema>;\nexport type Border = Static<typeof BorderSchema>;\nexport type BaseComponentProps = Static<typeof BaseComponentPropsSchema>;\n"],"mappings":";;;;;AAMA,SAAS,YAAoB;AAOtB,IAAM,kBAAkB,KAAK;AAAA,EAClC,CAAC,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,OAAO,CAAC;AAAA,EACpE,EAAE,aAAa,yBAAyB;AAC1C;AAEO,IAAM,2BAA2B,KAAK;AAAA,EAC3C;AAAA,IACE,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,QAAQ;AAAA,IACrB,KAAK,QAAQ,OAAO;AAAA,IACpB,KAAK,QAAQ,SAAS;AAAA,EACxB;AAAA,EACA,EAAE,aAAa,2CAA2C;AAC5D;AAEO,IAAM,qBAAqB,KAAK;AAAA,EACrC;AAAA,IACE,KAAK,QAAQ,CAAC;AAAA,IACd,KAAK,QAAQ,CAAC;AAAA,IACd,KAAK,QAAQ,CAAC;AAAA,IACd,KAAK,QAAQ,CAAC;AAAA,IACd,KAAK,QAAQ,CAAC;AAAA,IACd,KAAK,QAAQ,CAAC;AAAA,EAChB;AAAA,EACA,EAAE,aAAa,sBAAsB;AACvC;AA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entDefinition$1, ComponentDefinitionSchema, ColumnsPropsSchema, ReportPropsSchema, SectionPropsSchema, HeadingPropsSchema, ParagraphPropsSchema, TextBoxPropsSchema, ImagePropsSchema, HighchartsPropsSchema, VisualPropsSchema, StatisticPropsSchema, TablePropsSchema, ListPropsSchema, TocPropsSchema } from './schemas/components.js';
2
- export { Alignment, AlignmentSchema, BaseComponentProps, BaseComponentPropsSchema, BorderSchema, ColumnsProps, Comment, CommentReply, CommentReplySchema, CommentSchema, EndnotesSchema, FootnotesSchema, HeadingLevel, HeadingLevelSchema, HeadingProps, HighchartsProps, ImageProps, Indent, IndentSchema, JustifiedAlignment, JustifiedAlignmentSchema, LineSpacing, LineSpacingSchema, ListMarkerFont, ListMarkerFontSchema, ListProps, MarginsSchema, Note, NoteSchema, Numbering, NumberingSchema, ParagraphIndent, ParagraphIndentSchema, ParagraphProps, ReportProps, Revision, RevisionMark, RevisionMarkSchema, RevisionSchema, RevisionSegmentSchema, SectionProps, Spacing, SpacingSchema, StandardComponentDefinitionSchema, StatisticProps, TabStop, TabStopLeader, TabStopLeaderSchema, TabStopSchema, TabStopType, TabStopTypeSchema, TabStops, TabStopsSchema, TableProps, TextBoxProps, TocProps, VisualCanvas, VisualCanvasBackgroundSchema, VisualCanvasSchema, VisualProps } from './schemas/components.js';
2
+ export { Alignment, AlignmentSchema, BaseComponentProps, BaseComponentPropsSchema, BorderSchema, ColumnsProps, Comment, CommentReply, CommentReplySchema, CommentSchema, EndnotesSchema, FootnotesSchema, HeadingLevel, HeadingLevelSchema, HeadingProps, HighchartsProps, ImageProps, Indent, IndentSchema, JustifiedAlignment, JustifiedAlignmentSchema, LineSpacing, LineSpacingSchema, ListMarkerFont, ListMarkerFontSchema, ListProps, MarginsSchema, NATIVE_RENDER_MODE, NATIVE_VISUAL_ELEMENT_NAMES, NativeVisualCanvas, NativeVisualCanvasSchema, NativeVisualElement, NativeVisualElementName, NativeVisualElementSchema, NativeVisualFill, NativeVisualImageProps, NativeVisualImagePropsSchema, NativeVisualLine, NativeVisualShapeProps, NativeVisualShapePropsSchema, NativeVisualTextProps, NativeVisualTextPropsSchema, NativeVisualTextRun, NativeVisualTextSegment, Note, NoteSchema, Numbering, NumberingSchema, ParagraphIndent, ParagraphIndentSchema, ParagraphProps, ReportProps, Revision, RevisionMark, RevisionMarkSchema, RevisionSchema, RevisionSegmentSchema, SectionProps, Spacing, SpacingSchema, StandardComponentDefinitionSchema, StatisticProps, TabStop, TabStopLeader, TabStopLeaderSchema, TabStopSchema, TabStopType, TabStopTypeSchema, TabStops, TabStopsSchema, TableProps, TextBoxProps, TocProps, VisualCanvas, VisualCanvasBackgroundSchema, VisualCanvasSchema, VisualNativeProps, VisualNativePropsSchema, VisualProps, VisualRasterProps, VisualRasterPropsSchema, isNativeVisualProps } from './schemas/components.js';
3
3
  export { AddWarningFunction, ComponentSchemaConfig, DEFAULT_ERROR_CONFIG, ERROR_EMOJIS, ErrorFormatterConfig, GenerationWarning, ParsedSemver, ComponentDefinition as SharedComponentDefinition, ValidationError, ValidationResult, calculatePosition, clearComponentNamesCache, compareSemver, convertToJsonSchema, createComponentSchema, createErrorConfig, createJsonParseError, exportSchemaToFile, extractStandardComponentNames, fixSchemaReferences, formatErrorMessage, formatErrorSummary, getLiteralValue, getObjectSchemaPropertyNames, getSchemaMetadata, groupErrorsByPath, isLiteralSchema, isObjectSchema, isUnionSchema, isValidSemver, latestVersion, parseSemver, createComponentSchemaObject as sharedCreateComponentSchemaObject, transformValueError, transformValueErrors } from '@json-to-office/shared';
4
4
  import { DocumentValidationResult, ValidationError } from './schemas/document.js';
5
5
  export { JSON_SCHEMA_URLS, JsonComponentDefinitionSchema } from './schemas/document.js';
@@ -11,6 +11,8 @@ import { ValueError } from '@sinclair/typebox/value';
11
11
  export { ERROR_TEMPLATES, collectIndentConflicts, collectNoteRevisionConflicts, collectTextBoxShapeConflicts, componentValidator, comprehensiveValidateDocument, createComponentValidator, createJsonValidator, createThemeValidator, createValidator, deepValidateDocument, getThemeName, getValidationSummary, isColumnsProps, isCustomComponentProps, isHeadingProps, isImageProps, isListProps, isParagraphProps, isReportProps, isSectionProps, isStandardComponentName, isStatisticProps, isTableProps, isThemeConfig, isValidTheme, isValidTheme as isValidThemeJson, isValidationSuccess, strictComponentValidator, strictThemeValidator, themeValidator, transformDocxValueError, transformDocxValueErrors, validate, validateAgainstSchema, validateBatch, validateComponent as validateComponentProps, validateCustomComponentProps, validateJson, validateStrict, validateTheme, validateThemeJson, validateThemeWithEnhancement, validateWithEnhancement } from './validation/unified/index.js';
12
12
  import { TextSpaceAfterPropsSchema } from './schemas/custom-components.js';
13
13
  export { CustomComponentDefinitionSchema, TextSpaceAfterComponentSchema, TextSpaceAfterProps } from './schemas/custom-components.js';
14
+ import { DocxRendererId } from './schemas/renderer.js';
15
+ export { DEFAULT_DOCX_RENDERER_ID, DOCX_RENDERER_IDS, collectDocxRendererErrors, docxComponentDefinitionName } from './schemas/renderer.js';
14
16
  export { STANDARD_COMPONENTS_REGISTRY, getAllStandardComponentNames, getStandardComponent } from './schemas/component-registry.js';
15
17
  export { BASE_SCHEMA_METADATA, COMPONENT_METADATA, ComponentSchemaConfig as DocxComponentSchemaConfig, THEME_SCHEMA_METADATA, convertToJsonSchema as convertDocxToJsonSchema, createComponentSchema as createDocxComponentSchema, exportSchemaToFile as exportDocxSchemaToFile, fixSchemaReferences as fixDocxSchemaReferences } from './schemas/export.js';
16
18
  export { CustomComponentInfo, GenerateDocumentSchemaOptions, generateUnifiedDocumentSchema } from './schemas/generator.js';
@@ -2143,11 +2145,19 @@ declare const formatValidationErrorStrings: typeof formatTypeBoxErrorStrings;
2143
2145
  interface ReportComponent {
2144
2146
  name: 'docx';
2145
2147
  id?: string;
2148
+ /** Renderer backend. Omitted defaults to docxjs. */
2149
+ renderer?: DocxRendererId;
2146
2150
  /** When false, this component is filtered out and not rendered. Defaults to true */
2147
2151
  enabled?: boolean;
2148
2152
  props: Static<typeof ReportPropsSchema>;
2149
2153
  children?: ComponentDefinition[];
2150
2154
  }
2155
+ /** A document explicitly targeted at one renderer profile. */
2156
+ type ReportComponentFor<R extends DocxRendererId> = Omit<ReportComponent, 'renderer'> & (R extends 'docxjs' ? {
2157
+ renderer?: R;
2158
+ } : {
2159
+ renderer: R;
2160
+ });
2151
2161
  /**
2152
2162
  * Section component with literal name discriminator
2153
2163
  */
@@ -2340,4 +2350,4 @@ type ThemeName = 'minimal' | 'verizon' | 'a2a' | 'hitachi';
2340
2350
 
2341
2351
  declare const SHARED_DOCX_VERSION = "1.0.0";
2342
2352
 
2343
- export { type ColumnsComponent, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type CoreValidationResult, type DiffDocumentsOptions, type DiffDocumentsResult, type DiffSegment, type DiffSummary, ValidationError as DocumentValidationError, DocumentValidationResult, type FormattedError, type HeadingComponent, HeadingPropsSchema, type HighchartsComponent, HighchartsPropsSchema, type ImageComponent, ImagePropsSchema, JsonDocumentParser, type JsonNode, JsonParsingError, JsonValidationError, type ListComponent, ListPropsSchema, type ParagraphComponent, ParagraphPropsSchema, type ReportComponent, ReportPropsSchema, RevisionSegment, SHARED_DOCX_VERSION, STANDARD_COMPONENTS, STANDARD_COMPONENTS_SET, type SectionComponent, SectionPropsSchema, type StandardComponentDefinition, type StandardComponentName, type StatisticComponent, StatisticPropsSchema, type TableComponent, TablePropsSchema, type TextBoxComponent, TextBoxPropsSchema, type TextSpaceAfterComponent, TextSpaceAfterPropsSchema, type ThemeName, type TocComponent, TocPropsSchema, type UntrackedChange, type VisualComponent, VisualPropsSchema, createValidatedComponent, diffDocuments, diffWords, formatErrorReport, formatValidationError, formatValidationErrorStrings, formatValidationErrors, getErrorSummary, getValidationContext, getValidationErrors, hasCriticalErrors, isColumnsComponent, isHeadingComponent, isHighchartsComponent, isImageComponent, isListComponent, isParagraphComponent, isReportComponent, isSectionComponent, isStatisticComponent, isTableComponent, isTextBoxComponent, isTextSpaceAfterComponent, isTocComponent, isValidComponent, isVisualComponent, parseJsonComponent, parseJsonWithLineNumbers, safeValidateComponentDefinition, safeValidateComponentProps, stripMarkdown, transformAndValidate, validateComponent, validateComponentDefinition, validateComponents };
2353
+ export { type ColumnsComponent, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type CoreValidationResult, type DiffDocumentsOptions, type DiffDocumentsResult, type DiffSegment, type DiffSummary, ValidationError as DocumentValidationError, DocumentValidationResult, DocxRendererId, type FormattedError, type HeadingComponent, HeadingPropsSchema, type HighchartsComponent, HighchartsPropsSchema, type ImageComponent, ImagePropsSchema, JsonDocumentParser, type JsonNode, JsonParsingError, JsonValidationError, type ListComponent, ListPropsSchema, type ParagraphComponent, ParagraphPropsSchema, type ReportComponent, type ReportComponentFor, ReportPropsSchema, RevisionSegment, SHARED_DOCX_VERSION, STANDARD_COMPONENTS, STANDARD_COMPONENTS_SET, type SectionComponent, SectionPropsSchema, type StandardComponentDefinition, type StandardComponentName, type StatisticComponent, StatisticPropsSchema, type TableComponent, TablePropsSchema, type TextBoxComponent, TextBoxPropsSchema, type TextSpaceAfterComponent, TextSpaceAfterPropsSchema, type ThemeName, type TocComponent, TocPropsSchema, type UntrackedChange, type VisualComponent, VisualPropsSchema, createValidatedComponent, diffDocuments, diffWords, formatErrorReport, formatValidationError, formatValidationErrorStrings, formatValidationErrors, getErrorSummary, getValidationContext, getValidationErrors, hasCriticalErrors, isColumnsComponent, isHeadingComponent, isHighchartsComponent, isImageComponent, isListComponent, isParagraphComponent, isReportComponent, isSectionComponent, isStatisticComponent, isTableComponent, isTextBoxComponent, isTextSpaceAfterComponent, isTocComponent, isValidComponent, isVisualComponent, parseJsonComponent, parseJsonWithLineNumbers, safeValidateComponentDefinition, safeValidateComponentProps, stripMarkdown, transformAndValidate, validateComponent, validateComponentDefinition, validateComponents };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateUnifiedDocumentSchema
3
- } from "./chunk-LATN6QG6.js";
3
+ } from "./chunk-BBFR3RRN.js";
4
4
  import {
5
5
  ERROR_TEMPLATES,
6
6
  componentValidator,
@@ -31,17 +31,17 @@ import {
31
31
  validateTheme,
32
32
  validateThemeJson,
33
33
  validateThemeWithEnhancement
34
- } from "./chunk-W523ZTYH.js";
34
+ } from "./chunk-LBXOAXMG.js";
35
35
  import {
36
36
  GenerateDocumentRequestSchema,
37
37
  GenerateDocumentResponseSchema,
38
38
  ValidateDocumentRequestSchema,
39
39
  ValidateDocumentResponseSchema
40
- } from "./chunk-HPZPUB6J.js";
40
+ } from "./chunk-TODYYVZ4.js";
41
41
  import {
42
42
  JSON_SCHEMA_URLS,
43
43
  JsonComponentDefinitionSchema
44
- } from "./chunk-E5EWXZWO.js";
44
+ } from "./chunk-MYLVUQCN.js";
45
45
  import {
46
46
  collectIndentConflicts,
47
47
  collectNoteRevisionConflicts,
@@ -66,11 +66,11 @@ import {
66
66
  validateJsonComponent,
67
67
  validateJsonDocument,
68
68
  validateWithEnhancement
69
- } from "./chunk-XR7ZEDXZ.js";
69
+ } from "./chunk-6HFF6XZN.js";
70
70
  import {
71
71
  ComponentDefinitionSchema,
72
72
  StandardComponentDefinitionSchema
73
- } from "./chunk-PMZEVOBL.js";
73
+ } from "./chunk-6B3LHADB.js";
74
74
  import {
75
75
  CustomComponentDefinitionSchema,
76
76
  TextSpaceAfterComponentSchema,
@@ -84,58 +84,76 @@ import {
84
84
  createComponentSchema,
85
85
  exportSchemaToFile,
86
86
  fixSchemaReferences
87
- } from "./chunk-IU2F2FYO.js";
87
+ } from "./chunk-6YMJWMEC.js";
88
88
  import {
89
89
  HighchartsPropsSchema,
90
90
  ReportPropsSchema,
91
91
  STANDARD_COMPONENTS_REGISTRY,
92
92
  TextBoxPropsSchema,
93
93
  TocPropsSchema,
94
+ getAllStandardComponentNames,
95
+ getStandardComponent
96
+ } from "./chunk-A2K66URO.js";
97
+ import {
98
+ DEFAULT_DOCX_RENDERER_ID,
99
+ DOCX_RENDERER_IDS,
100
+ NATIVE_RENDER_MODE,
101
+ NATIVE_VISUAL_ELEMENT_NAMES,
102
+ NativeVisualCanvasSchema,
103
+ NativeVisualElementSchema,
104
+ NativeVisualImagePropsSchema,
105
+ NativeVisualShapePropsSchema,
106
+ NativeVisualTextPropsSchema,
94
107
  VisualCanvasBackgroundSchema,
95
108
  VisualCanvasSchema,
109
+ VisualNativePropsSchema,
96
110
  VisualPropsSchema,
97
- getAllStandardComponentNames,
98
- getStandardComponent
99
- } from "./chunk-JF5ZJQNR.js";
111
+ VisualRasterPropsSchema,
112
+ collectDocxRendererErrors,
113
+ docxComponentDefinitionName,
114
+ isNativeVisualProps
115
+ } from "./chunk-5KOKA5GY.js";
100
116
  import {
101
117
  ThemeConfigSchema,
102
118
  createMinimalTheme,
103
119
  isValidThemeConfig
104
- } from "./chunk-ZC2I7CTZ.js";
120
+ } from "./chunk-45I2NASU.js";
105
121
  import {
106
- AlignmentSchema,
107
- BaseComponentPropsSchema,
108
- BorderSchema,
109
122
  ColumnsPropsSchema,
110
123
  CommentReplySchema,
111
124
  CommentSchema,
112
125
  EndnotesSchema,
113
126
  FootnotesSchema,
114
- HeadingLevelSchema,
115
127
  HeadingPropsSchema,
116
128
  ImagePropsSchema,
117
- IndentSchema,
118
- JustifiedAlignmentSchema,
119
- LineSpacingSchema,
120
129
  ListMarkerFontSchema,
121
130
  ListPropsSchema,
122
- MarginsSchema,
123
131
  NoteSchema,
124
- NumberingSchema,
125
- ParagraphIndentSchema,
126
132
  ParagraphPropsSchema,
127
133
  RevisionMarkSchema,
128
134
  RevisionSchema,
129
135
  RevisionSegmentSchema,
130
136
  SectionPropsSchema,
131
- SpacingSchema,
132
137
  StatisticPropsSchema,
138
+ TablePropsSchema
139
+ } from "./chunk-OP5PCDNN.js";
140
+ import {
141
+ AlignmentSchema,
142
+ BaseComponentPropsSchema,
143
+ BorderSchema,
144
+ HeadingLevelSchema,
145
+ IndentSchema,
146
+ JustifiedAlignmentSchema,
147
+ LineSpacingSchema,
148
+ MarginsSchema,
149
+ NumberingSchema,
150
+ ParagraphIndentSchema,
151
+ SpacingSchema,
133
152
  TabStopLeaderSchema,
134
153
  TabStopSchema,
135
154
  TabStopTypeSchema,
136
- TabStopsSchema,
137
- TablePropsSchema
138
- } from "./chunk-2YUAD26Q.js";
155
+ TabStopsSchema
156
+ } from "./chunk-VX2J2KWA.js";
139
157
  import "./chunk-7TTAAYQ5.js";
140
158
 
141
159
  // src/diff/word-diff.ts
@@ -1917,7 +1935,9 @@ export {
1917
1935
  CommentSchema,
1918
1936
  ComponentDefinitionSchema,
1919
1937
  CustomComponentDefinitionSchema,
1938
+ DEFAULT_DOCX_RENDERER_ID,
1920
1939
  DEFAULT_ERROR_CONFIG,
1940
+ DOCX_RENDERER_IDS,
1921
1941
  ERROR_EMOJIS,
1922
1942
  ERROR_TEMPLATES,
1923
1943
  EndnotesSchema,
@@ -1939,6 +1959,13 @@ export {
1939
1959
  ListMarkerFontSchema,
1940
1960
  ListPropsSchema,
1941
1961
  MarginsSchema,
1962
+ NATIVE_RENDER_MODE,
1963
+ NATIVE_VISUAL_ELEMENT_NAMES,
1964
+ NativeVisualCanvasSchema,
1965
+ NativeVisualElementSchema,
1966
+ NativeVisualImagePropsSchema,
1967
+ NativeVisualShapePropsSchema,
1968
+ NativeVisualTextPropsSchema,
1942
1969
  NoteSchema,
1943
1970
  NumberingSchema,
1944
1971
  ParagraphIndentSchema,
@@ -1970,9 +1997,12 @@ export {
1970
1997
  ValidateDocumentResponseSchema,
1971
1998
  VisualCanvasBackgroundSchema,
1972
1999
  VisualCanvasSchema,
2000
+ VisualNativePropsSchema,
1973
2001
  VisualPropsSchema,
2002
+ VisualRasterPropsSchema,
1974
2003
  calculatePosition,
1975
2004
  clearComponentNamesCache,
2005
+ collectDocxRendererErrors,
1976
2006
  collectIndentConflicts,
1977
2007
  collectNoteRevisionConflicts,
1978
2008
  collectTextBoxShapeConflicts,
@@ -1996,6 +2026,7 @@ export {
1996
2026
  diffDocuments,
1997
2027
  diffWords,
1998
2028
  documentValidator,
2029
+ docxComponentDefinitionName,
1999
2030
  exportSchemaToFile as exportDocxSchemaToFile,
2000
2031
  exportSchemaToFile2 as exportSchemaToFile,
2001
2032
  extractStandardComponentNames,
@@ -2031,6 +2062,7 @@ export {
2031
2062
  isListComponent,
2032
2063
  isListProps,
2033
2064
  isLiteralSchema,
2065
+ isNativeVisualProps,
2034
2066
  isObjectSchema,
2035
2067
  isParagraphComponent,
2036
2068
  isParagraphProps,