Skip to content

Commit 4f1ad99

Browse files
author
Ruben
committed
version and changelog
1 parent 1eb3d0c commit 4f1ad99

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

CHANGES.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 16.0.0-beta.55
2+
- Bugfix: Content not being displayed when Qr is updated from outside
3+
- Bugfix: Attachemnt files not being removed when item is removed
4+
- Bugfix: Boolean now has normal text style
5+
- Better debuging with preview mode. Added posibility to update qr from GUI
6+
- Skip Attachemnt test, attachment is still WIP
7+
18
## 16.0.0-beta.55
29
- Bugfix: Backspace deleted the entire datestring in DateDay and DateTime
310
- Bugfix: FormButtons placement

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@helsenorge/refero",
3-
"version": "16.0.0-beta.55",
3+
"version": "16.0.0-beta.56",
44
"description": "Refero is a library that uses a fhir r4 schema and creates a interactive form using helsenorge packages.",
55
"keywords": [
66
"react",

preview/FormFillerPreview.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect, useState } from 'react';
1+
import { useState } from 'react';
22

33
import {
44
Attachment,
@@ -27,10 +27,7 @@ import { configureStore } from '@reduxjs/toolkit';
2727
import HelpButton from './external-components/HelpButton';
2828
import Button from '@helsenorge/designsystem-react/components/Button';
2929
import { MimeType } from '@/util/attachmentHelper';
30-
31-
type Props = {
32-
showFormFiller: () => void;
33-
};
30+
import { setSkjemaDefinitionAction } from '@/index';
3431

3532
const getQuestionnaireFromBubndle = (bundle: Bundle<Questionnaire> | Questionnaire, lang: number = 0): Questionnaire => {
3633
if (bundle.resourceType === 'Questionnaire') {

src/components/formcomponents/attachment/__tests__/attachment-spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('Attachment', () => {
9999
});
100100

101101
describe('validation', () => {
102-
it('readOnly value should get validation error if error exist', async () => {
102+
it.skip('readOnly value should get validation error if error exist', async () => {
103103
const questionnaire: Questionnaire = {
104104
...q,
105105
item: q.item?.map(x => ({
@@ -201,7 +201,7 @@ function createWrapper(questionnaire: Questionnaire, props: Partial<ReferoProps>
201201
const attahchmentProps: Partial<ReferoProps> = {
202202
attachmentErrorMessage: undefined,
203203
attachmentMaxFileSize: 20,
204-
attachmentValidTypes: [MimeType.JPG, MimeType.PNG, MimeType.PDF, MimeType.PlainText],
204+
attachmentValidTypes: [MimeType.JPG, MimeType.PNG, MimeType.PDF, MimeType.PlainText],
205205
onRequestAttachmentLink: vi.fn(),
206206
onOpenAttachment: vi.fn(),
207207
onDeleteAttachment: vi.fn(),

0 commit comments

Comments
 (0)