@roqua/quby-frontend 0.11.2 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AnswerPage.d.ts +1 -2
- package/dist/components/Footer.d.ts +1 -0
- package/dist/components/QuestionDescription.d.ts +3 -4
- package/dist/components/TranslationCurlies.d.ts +8 -0
- package/dist/core/calculations.d.ts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/quby_context.d.ts +2 -1
- package/dist/core/questionnaire.d.ts +9 -3
- package/dist/core/questionnaire_json.d.ts +9 -22
- package/dist/core/questionnaire_translations_curlies.d.ts +21 -0
- package/dist/core/response.d.ts +9 -1
- package/dist/logic/index.d.ts +1 -0
- package/dist/logic/use_translation_curlies_for.d.ts +2 -0
- package/dist/quby-frontend.es.js +390 -368
- package/dist/stories/_helpers.d.ts +8 -2
- package/package.json +2 -1
- package/dist/components/questions/OldSliderQuestion.d.ts +0 -9
- package/dist/core/curlies_interpolator.d.ts +0 -9
|
@@ -8,13 +8,19 @@ interface Arguments {
|
|
|
8
8
|
export declare const qubyMeta: Meta<typeof Quby>;
|
|
9
9
|
type Story = StoryObj<typeof Quby>;
|
|
10
10
|
export declare function renderFor(questionnaireJson: IQuestionnaire, { responseJson, unsavedResponseWarning }?: Arguments): Story;
|
|
11
|
-
export declare function questionAsQuestionnaire({ question }: {
|
|
11
|
+
export declare function questionAsQuestionnaire({ question, nl }: {
|
|
12
12
|
question: Partial<IQuestion>;
|
|
13
|
+
nl?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
13
16
|
}): IQuestionnaire;
|
|
14
|
-
export declare function itemsAsQuestionnaire({ items, questions }: {
|
|
17
|
+
export declare function itemsAsQuestionnaire({ items, questions, nl }: {
|
|
15
18
|
items: IPanelItem[];
|
|
16
19
|
questions: {
|
|
17
20
|
[key: string]: IQuestion;
|
|
18
21
|
};
|
|
22
|
+
nl: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
19
25
|
}): IQuestionnaire;
|
|
20
26
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roqua/quby-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"main": "./dist/quby-frontend.umd.js",
|
|
5
5
|
"module": "./dist/quby-frontend.es.js",
|
|
6
6
|
"type": "module",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"storybook": "storybook dev -p 6006",
|
|
73
73
|
"build-storybook": "storybook build",
|
|
74
74
|
"test": "jest",
|
|
75
|
+
"test:watch": "jest --watch",
|
|
75
76
|
"typecheck": "tsc --noEmit",
|
|
76
77
|
"cleanup": "pnpm -r exec rm -rf dist"
|
|
77
78
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IFieldState, ISliderQuestion, SetQuestionRef } from '../../core';
|
|
3
|
-
interface Props {
|
|
4
|
-
question: ISliderQuestion;
|
|
5
|
-
fieldState: IFieldState<number>;
|
|
6
|
-
setQuestionRef: SetQuestionRef;
|
|
7
|
-
}
|
|
8
|
-
export declare const OldSliderQuestion: React.FunctionComponent<Props>;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Questionnaire } from './questionnaire';
|
|
2
|
-
import { Response } from './response';
|
|
3
|
-
export declare class CurliesInterpolator {
|
|
4
|
-
response: Response;
|
|
5
|
-
questionnaire: Questionnaire;
|
|
6
|
-
stringToVariables: Map<string, string[]>;
|
|
7
|
-
constructor(response: Response, questionnaire: Questionnaire);
|
|
8
|
-
interpolateCurlies(str: string): string;
|
|
9
|
-
}
|