Skip to content

Commit

Permalink
Merge pull request #804 from aehrc/issue/692
Browse files Browse the repository at this point in the history
Issue/692
  • Loading branch information
fongsean authored May 22, 2024
2 parents 37f2a5c + b57aefd commit 391e562
Show file tree
Hide file tree
Showing 64 changed files with 1,674 additions and 1,106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import type {
RendererPropsActions,
RendererPropsState
} from '../interfaces/standalone.interface.ts';
import { SmartFormsRenderer } from '@aehrc/smart-forms-renderer';
import { rendererPropsList } from '../utils/standaloneList.ts';
import StandaloneQuestionnairePicker from './StandaloneQuestionnairePicker.tsx';
import StandalonePropsPicker from './StandalonePropsPicker.tsx';
import StandaloneResourceViewer from './StandaloneResourceViewer.tsx';
import { InitialiseFormWrapperForStorybook } from '@aehrc/smart-forms-renderer';

const rendererPropsReducer = (state: RendererPropsState, action: RendererPropsActions) => {
switch (action.type) {
Expand Down Expand Up @@ -86,7 +86,7 @@ function Standalone() {
resourcesShown={resourcesShown}
onShowResources={() => setResourcesShown(!resourcesShown)}
/>
<SmartFormsRenderer
<InitialiseFormWrapperForStorybook
questionnaire={state.questionnaire}
questionnaireResponse={state.response ?? undefined}
additionalVariables={state.additionalVars ?? undefined}
Expand Down
12 changes: 11 additions & 1 deletion documentation/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,17 @@ const config: Config = {
}
};
}
})
}),
[
'docusaurus-plugin-typedoc',
// Options
{
excludeTags: ['@author'],
entryPoints: ['../packages/smart-forms-renderer/src/index.ts'],
tsconfig: '../packages/smart-forms-renderer/tsconfig.json',
out: 'docs/devUsage/api'
}
]
]
};

Expand Down
3 changes: 3 additions & 0 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"@docusaurus/module-type-aliases": "3.3.2",
"@docusaurus/tsconfig": "3.3.2",
"@docusaurus/types": "3.3.2",
"docusaurus-plugin-typedoc": "^1.0.1",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^4.0.2",
"typescript": "~5.2.2"
},
"browserslist": {
Expand Down
10 changes: 10 additions & 0 deletions documentation/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["typedoc/tsdoc.json"],
"tagDefinitions": [
{
"tagName": "@author",
"syntaxKind": "block"
}
]
}
Loading

0 comments on commit 391e562

Please sign in to comment.