0.7.7 • Published 9 days ago

@roqua/quby-frontend v0.7.7

Weekly downloads
9
License
MIT
Repository
gitlab
Last release
9 days ago

usage

Important to give a unique key for each response if there is a chance the component will be reused, as it's an uncontrolled component.

<Quby
  key=`quby_${questionnaire.key}_${response.id}`
  questionnaireJson={questionnaire}
  responseJson={response}
  displayMode={"paged"}
  onSave={(response: Response) => ()}
  unsavedResponseWarning="Unsaved changes, are you sure you want to leave the page?" />

assumptions

  • All questions are always validated (on load and on every change), errors are just ignored when an answer has not been touched or is hidden.
  • Response values are treated as immutable (setValue is always passed a new object)

pnpm build

Generates the new compiled JS files.

pnpm test

This runs the unit tests via Jest.

pnpm storybook

Storybooks are the primary way to try out the interface in a browser.

pnpm publish --access public --no-git-checks

This bumps the version number and uploads a new release to NPM. Make sure to run rm -rf dist; pnpm build first.

0.7.6

9 days ago

0.7.7

9 days ago

0.7.5

12 days ago

0.7.4

6 months ago

0.7.2

8 months ago

0.7.1

9 months ago

0.6.2

11 months ago

0.7.3

7 months ago

0.7.0

10 months ago

0.6.1

12 months ago

0.6.0

12 months ago

0.5.2

1 year ago

0.5.0

1 year ago

0.5.1

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago