Skip to content

Version 1.1.0

Latest
Compare
Choose a tag to compare
@humphreyja humphreyja released this 02 Sep 23:09
· 9 commits to master since this release
99a2cc0

Additions

  • documentTheme property. This can be either a static property or a function (passes props as its only argument). This allows you to provide all the classes/styles, fonts, images, and settings. This also gets validated and will log a warning if you pass it an invalid property. It will also log all the available options.
  • Document => ClientDocument: You can still use the Document import but it may be removed in the future.
  • ClientDocument: The client side document. Creating using this method will expose the open, download, and a new toFile functions.
  • ServerDocument: The server side document. Creating using this method will expose the saveTo(directory) method. This also uses a slightly different import and API than the client side and is still in beta.
  • Allows setting width, colSpan, height as a string prop
  • Allows setting the table layout via a layout props. Defaults to the default tableLayout defined in the documentTheme.

Deprecations

  • styleSheet function: Use the css property in the documentTheme
  • tableLayouts function: Use the tableLayouts property in the documentTheme
  • documentSettings function: Pass the properties to the documentTheme