Skip to content

Commit ef96559

Browse files
committed
chore: update server dependency
1 parent 8f4e6de commit ef96559

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

frontend/src/types/OptionsFormDefinition.generated.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export type LeafFormElement =
1616
| StaticTextElement
1717
| TextInputElement
1818
| TextAreaElement
19+
| WysiwygEditorElement
20+
| FileUploadElement
1921
export type Condition = IsChecked | IsNotChecked | Equals | DoesNotEqual | In
2022
export type ContainerFormElement = GroupElement | RadioGroupElement | RepetitionElement
2123
export type Elements = (LeafFormElement | RadioGroupElement | GroupElement)[]
@@ -133,6 +135,32 @@ export interface TextAreaElement {
133135
default: string | null
134136
placeholder: string | null
135137
}
138+
export interface WysiwygEditorElement {
139+
help: string | null
140+
label: string
141+
kind: 'wysiwyg_editor'
142+
name: string
143+
file_uploads: FileUploadOptions | null
144+
}
145+
/**
146+
* Options for elements that can upload files.
147+
*/
148+
export interface FileUploadOptions {
149+
min_files: number
150+
max_files: number | null
151+
max_bytes_per_file: number | null
152+
max_bytes_total: number | null
153+
}
154+
export interface FileUploadElement {
155+
min_files: number
156+
max_files: number | null
157+
max_bytes_per_file: number | null
158+
max_bytes_total: number | null
159+
help: string | null
160+
label: string
161+
kind: 'file_upload'
162+
name: string
163+
}
136164
/**
137165
* Groups multiple elements horizontally with a common label.
138166
*/

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"aiohttp >=3.11.18, <4.0.0",
1919
"pydantic >=2.11.4, <3.0.0",
2020
"PyYAML >=6.0.2, <7.0.0",
21-
"questionpy-server @ git+https://github.com/questionpy-org/questionpy-server.git@0ae8f6e61d6f170eb429f6edd7d648afcd9e5ced",
21+
"questionpy-server @ git+https://github.com/questionpy-org/questionpy-server.git@1588f5494f58aacc1ff233eb22b7539b77937cde",
2222
"jinja2 >=3.1.6, <4.0.0",
2323
"aiohttp-jinja2 >=1.6, <2.0",
2424
"lxml[html-clean] >=5.4.0, <5.5.0",

0 commit comments

Comments
 (0)