Skip to content

Commit a88e458

Browse files
committed
🔖(release) bump to version 1.0.0-beta.0
Added - Fix bugs in the library and add setSchema action - Allow customisation of form options - Use a reducer to manage schema - Make translation overridable - Setup @formatjs to extract/compile translations - Add customization of verna render components - Add title and description edition on sections - Add tests on custom error feature - Add title and description edition for fields - Add translations on fields properties - Add uuid generation for component naming - Add language management feature - Rework playground widgets template - Functionality to customize error messages - Functionality to customize widget options - Functionality to drag and drop custom widgets - Functionality to select and display only a section of the schema - Functionality to add or remove widgets and sections Changed - Pin React to version less than 17
1 parent 22e4de0 commit a88e458

13 files changed

Lines changed: 199 additions & 48 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unrealeased]
1010

11+
## [1.0.0-beta.0]
12+
1113
### Added
1214

1315
- Fix bugs in the library and add setSchema action
@@ -33,4 +35,5 @@ Versioning](https://semver.org/spec/v2.0.0.html).
3335

3436
- Pin React to version less than 17
3537

36-
[unreleased]: https://github.com/openfun/verna
38+
[unreleased]: https://github.com/openfun/verna/compare/v1.0.0-beta.0...main
39+
[1.0.0-beta.0]: https://github.com/openfun/verna/compare/c7a5eb3b32a4a626f32fc9257019f297d72b85c7...v1.0.0-beta.0
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"components.App.loading": {
3+
"description": "Message displayed while verna is loading",
4+
"message": "Chargement..."
5+
},
6+
"components.App.save": {
7+
"description": "Label of the custom save button",
8+
"message": "Sauvegarder"
9+
},
10+
"components.App.title": {
11+
"description": "Title of the playground application",
12+
"message": "🧑‍💻 Bac à sable Verna"
13+
},
14+
"components.EditorFieldTemplate.parameters": {
15+
"description": "Label of the button to display the widget properties form",
16+
"message": "Paramètres du champ"
17+
},
18+
"components.FormWrapper.editorOptions": {
19+
"description": "Title of the editor options block",
20+
"message": "Options de l'éditeur"
21+
},
22+
"components.FormWrapper.language": {
23+
"description": "Title of the language selection block",
24+
"message": "Langue"
25+
},
26+
"components.FormWrapper.saveForm": {
27+
"description": "Label of the save button",
28+
"message": "Sauvegarder le formulaire"
29+
},
30+
"components.FormWrapper.sectionName": {
31+
"description": "Label of a the button to select a section",
32+
"message": "Section {name}"
33+
},
34+
"components.FormWrapper.selectSection": {
35+
"description": "Title of the section selection block",
36+
"message": "Sélectionner une section"
37+
},
38+
"components.FormWrapper.turnOffEditorMode": {
39+
"description": "Label of the button to switch to preview mode",
40+
"message": "Basculer en mode prévisualisation"
41+
},
42+
"components.FormWrapper.turnOnEditorMode": {
43+
"description": "Label of the button to switch to editor mode",
44+
"message": "Basculer en mode édition"
45+
},
46+
"components.fields.section.parameters": {
47+
"description": "Label of the button to display the section properties form",
48+
"message": "Paramètres de section"
49+
}
50+
}

examples/playground/i18n/locales/fr-FR.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99
},
1010
"components.App.title": {
1111
"description": "Title of the playground application",
12-
"message": "🧑‍💻 Playground Verna"
12+
"message": "🧑‍💻 Bac à sable Verna"
1313
},
1414
"components.EditorFieldTemplate.parameters": {
1515
"description": "Label of the button to display the widget properties form",
16-
"message": "Paramètres du champs"
16+
"message": "Paramètres du champ"
1717
},
1818
"components.FormWrapper.editorOptions": {
1919
"description": "Title of the editor options block",
20-
"message": "Options d'édition"
20+
"message": "Options de l'éditeur"
2121
},
2222
"components.FormWrapper.language": {
2323
"description": "Title of the language selection block",
2424
"message": "Langue"
2525
},
2626
"components.FormWrapper.saveForm": {
2727
"description": "Label of the save button",
28-
"message": "Soumettre le formulaire"
28+
"message": "Sauvegarder le formulaire"
2929
},
3030
"components.FormWrapper.sectionName": {
31-
"description": "Label of the button to select a section",
31+
"description": "Label of a the button to select a section",
3232
"message": "Section {name}"
3333
},
3434
"components.FormWrapper.selectSection": {
@@ -37,14 +37,14 @@
3737
},
3838
"components.FormWrapper.turnOffEditorMode": {
3939
"description": "Label of the button to switch to preview mode",
40-
"message": "Prévisualiser le formulaire"
40+
"message": "Basculer en mode prévisualisation"
4141
},
4242
"components.FormWrapper.turnOnEditorMode": {
4343
"description": "Label of the button to switch to editor mode",
44-
"message": "Éditer le formulaire"
44+
"message": "Basculer en mode édition"
4545
},
4646
"components.fields.section.parameters": {
4747
"description": "Label of the button to display the section properties form",
48-
"message": "Paramètres de la section"
48+
"message": "Paramètres de section"
4949
}
5050
}

examples/playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "verna-examples-playground",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "1.0.0-beta.0",
55
"scripts": {
66
"build": "tsc && vite build",
77
"verna:build:check": "yarn workspace @openfun/verna build:check",
@@ -14,7 +14,7 @@
1414
"lint": "yarn lint:stylelint && yarn lint:eslint"
1515
},
1616
"dependencies": {
17-
"@openfun/verna": "0.0.0",
17+
"@openfun/verna": "1.0.0-beta.0",
1818
"@rjsf/core": "4.2.3",
1919
"react": "17.0.2",
2020
"react-dom": "17.0.2"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"components.App.loading": "Chargement...",
3+
"components.App.save": "Sauvegarder",
4+
"components.App.title": "🧑‍💻 Bac à sable Verna",
5+
"components.EditorFieldTemplate.parameters": "Paramètres du champ",
6+
"components.FormWrapper.editorOptions": "Options de l'éditeur",
7+
"components.FormWrapper.language": "Langue",
8+
"components.FormWrapper.saveForm": "Sauvegarder le formulaire",
9+
"components.FormWrapper.sectionName": "Section {name}",
10+
"components.FormWrapper.selectSection": "Sélectionner une section",
11+
"components.FormWrapper.turnOffEditorMode": "Basculer en mode prévisualisation",
12+
"components.FormWrapper.turnOnEditorMode": "Basculer en mode édition",
13+
"components.fields.section.parameters": "Paramètres de section"
14+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"components.App.loading": "Chargement...",
33
"components.App.save": "Sauvegarder",
4-
"components.App.title": "🧑‍💻 Playground Verna",
5-
"components.EditorFieldTemplate.parameters": "Paramètres du champs",
6-
"components.FormWrapper.editorOptions": "Options d'édition",
4+
"components.App.title": "🧑‍💻 Bac à sable Verna",
5+
"components.EditorFieldTemplate.parameters": "Paramètres du champ",
6+
"components.FormWrapper.editorOptions": "Options de l'éditeur",
77
"components.FormWrapper.language": "Langue",
8-
"components.FormWrapper.saveForm": "Soumettre le formulaire",
8+
"components.FormWrapper.saveForm": "Sauvegarder le formulaire",
99
"components.FormWrapper.sectionName": "Section {name}",
1010
"components.FormWrapper.selectSection": "Sélectionner une section",
11-
"components.FormWrapper.turnOffEditorMode": "Prévisualiser le formulaire",
12-
"components.FormWrapper.turnOnEditorMode": "Éditer le formulaire",
13-
"components.fields.section.parameters": "Paramètres de la section"
11+
"components.FormWrapper.turnOffEditorMode": "Basculer en mode prévisualisation",
12+
"components.FormWrapper.turnOnEditorMode": "Basculer en mode édition",
13+
"components.fields.section.parameters": "Paramètres de section"
1414
}

lib/i18n/locales/fr-CA.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"components.EditorFieldTemplate.addInput": {
3+
"description": "Label of the button to add an input",
4+
"message": "Ajouter un champ"
5+
},
6+
"components.EditorFieldTemplate.parameters": {
7+
"description": "Label of the button to display the widget properties form",
8+
"message": "Paramètres"
9+
},
10+
"components.SectionPropertiesForm.submitWidgetParameter": {
11+
"description": "Label of submit input",
12+
"message": "Sauvegarder"
13+
},
14+
"components.WidgetPropertiesForm.description": {
15+
"description": "Description of the field",
16+
"message": "description"
17+
},
18+
"components.WidgetPropertiesForm.enum": {
19+
"description": "Fieldset label to add/remove options of a widget using an array of strings",
20+
"message": "Options"
21+
},
22+
"components.WidgetPropertiesForm.items": {
23+
"description": "Fieldset label containing customizable options to add widgets as items",
24+
"message": "Options"
25+
},
26+
"components.WidgetPropertiesForm.maxLength": {
27+
"description": "Label of the maximum length input",
28+
"message": "longueur maximale"
29+
},
30+
"components.WidgetPropertiesForm.maximum": {
31+
"description": "Label of the maximum input",
32+
"message": "maximum"
33+
},
34+
"components.WidgetPropertiesForm.minLength": {
35+
"description": "Label of the minimum length input",
36+
"message": "longueur minimale"
37+
},
38+
"components.WidgetPropertiesForm.minimum": {
39+
"description": "Label of the minimum input",
40+
"message": "minimum"
41+
},
42+
"components.WidgetPropertiesForm.required": {
43+
"description": "Label of the required input",
44+
"message": "requis"
45+
},
46+
"components.WidgetPropertiesForm.submitWidgetParameter": {
47+
"description": "Label of submit input",
48+
"message": "sauvegarder"
49+
},
50+
"components.WidgetPropertiesForm.title": {
51+
"description": "Title of the field",
52+
"message": "titre"
53+
},
54+
"components.fields.section.addSection": {
55+
"description": "Label of the button to add a section",
56+
"message": "Ajouter une section"
57+
},
58+
"components.fields.section.parameters": {
59+
"description": "Label of the button to display the section properties form",
60+
"message": "Paramètres"
61+
},
62+
"templates.defaultSectionTitle": {
63+
"description": "The default name of a newly created section",
64+
"message": "Titre de section par défaut"
65+
},
66+
"templates.defaultWidgetTitle": {
67+
"description": "The default name of a newly created widget",
68+
"message": "Titre du composant par défaut"
69+
}
70+
}

lib/i18n/locales/fr-FR.json

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
11
{
22
"components.EditorFieldTemplate.addInput": {
33
"description": "Label of the button to add an input",
4-
"message": "Ajouter un champs"
5-
},
6-
"components.EditorFieldTemplate.addSection": {
7-
"description": "Label of the button to add a section",
8-
"message": "Ajouter une section"
4+
"message": "Ajouter un champ"
95
},
106
"components.EditorFieldTemplate.parameters": {
117
"description": "Label of the button to display the widget properties form",
128
"message": "Paramètres"
139
},
14-
"components.SectionPropertiesForm.description": {
15-
"description": "Description of the section",
16-
"message": "Description"
17-
},
18-
"components.SectionPropertiesForm.legend": {
19-
"description": "Legend of the section",
20-
"message": "Options"
21-
},
2210
"components.SectionPropertiesForm.submitWidgetParameter": {
2311
"description": "Label of submit input",
2412
"message": "Sauvegarder"
2513
},
26-
"components.SectionPropertiesForm.title": {
27-
"description": "Title of the section",
28-
"message": "Titre"
29-
},
3014
"components.WidgetPropertiesForm.description": {
3115
"description": "Description of the field",
3216
"message": "description"
@@ -41,15 +25,15 @@
4125
},
4226
"components.WidgetPropertiesForm.maxLength": {
4327
"description": "Label of the maximum length input",
44-
"message": "longueur maximum"
28+
"message": "longueur maximale"
4529
},
4630
"components.WidgetPropertiesForm.maximum": {
4731
"description": "Label of the maximum input",
4832
"message": "maximum"
4933
},
5034
"components.WidgetPropertiesForm.minLength": {
5135
"description": "Label of the minimum length input",
52-
"message": "longueur minimum"
36+
"message": "longueur minimale"
5337
},
5438
"components.WidgetPropertiesForm.minimum": {
5539
"description": "Label of the minimum input",
@@ -67,8 +51,20 @@
6751
"description": "Title of the field",
6852
"message": "titre"
6953
},
54+
"components.fields.section.addSection": {
55+
"description": "Label of the button to add a section",
56+
"message": "Ajouter une section"
57+
},
7058
"components.fields.section.parameters": {
7159
"description": "Label of the button to display the section properties form",
7260
"message": "Paramètres"
61+
},
62+
"templates.defaultSectionTitle": {
63+
"description": "The default name of a newly created section",
64+
"message": "Titre de section par défaut"
65+
},
66+
"templates.defaultWidgetTitle": {
67+
"description": "The default name of a newly created widget",
68+
"message": "Titre du composant par défaut"
7369
}
7470
}

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfun/verna",
3-
"version": "0.0.0",
3+
"version": "1.0.0-beta.0",
44
"private": false,
55
"description": "An extensible form builder based on React JSON Schema Form.",
66
"scripts": {

lib/src/translations/fr-CA.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"components.EditorFieldTemplate.addInput": "Ajouter un champ",
3+
"components.EditorFieldTemplate.parameters": "Paramètres",
4+
"components.SectionPropertiesForm.submitWidgetParameter": "Sauvegarder",
5+
"components.WidgetPropertiesForm.description": "description",
6+
"components.WidgetPropertiesForm.enum": "Options",
7+
"components.WidgetPropertiesForm.items": "Options",
8+
"components.WidgetPropertiesForm.maxLength": "longueur maximale",
9+
"components.WidgetPropertiesForm.maximum": "maximum",
10+
"components.WidgetPropertiesForm.minLength": "longueur minimale",
11+
"components.WidgetPropertiesForm.minimum": "minimum",
12+
"components.WidgetPropertiesForm.required": "requis",
13+
"components.WidgetPropertiesForm.submitWidgetParameter": "sauvegarder",
14+
"components.WidgetPropertiesForm.title": "titre",
15+
"components.fields.section.addSection": "Ajouter une section",
16+
"components.fields.section.parameters": "Paramètres",
17+
"templates.defaultSectionTitle": "Titre de section par défaut",
18+
"templates.defaultWidgetTitle": "Titre du composant par défaut"
19+
}

0 commit comments

Comments
 (0)