1.5.2 • Published 5 years ago

a11y-doc-preview v1.5.2

Weekly downloads
9
License
ISC
Repository
github
Last release
5 years ago

A11y-Doc-Preview

A1y-Doc-Preview is an accessible document preview solution written in Typescript for the Kofile ecosystem.

Starting The Dev Server

  • yarn
  • yarn preview
  • Visit localhost:1234

Props

NameTypeRequiredDescription
docDocObject with information about the document.
navigationNavigationObject with navigation functions.
applyCertificationfunction⭕️Function to call to apply certification.
isSecurebooleanWhether or not to show the document as secured.
isMarginalReferencebooleanWhether or not to render as marginal reference.
disablePanbooleanWhether or not to disable image panning.
cartCartObject with cart related functions.

Doc

NameTypeRequiredDescription
idnumberId of the document.
summarySummaryObject containing the document summary
imageUrlsArrayArray of image urls
attachmentsArray<Array>Array of array of attachment urls
attachmentThumbnailsArray<Array>Array of array of attachment thumbnail urls
thumbnailUrlsArrayArray of thumbnail urls

Navigation

NameTypeRequiredDescription
onNextfunctionFunction to call when navigating to next document
onPrevfunctionFunction to call when navigating to prev document
onReturnToPrevDocfunctionFunction to call on navigation for marginal reference mode
1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago