treege 3.0.0-beta.43 → 3.0.0-beta.45

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.
Files changed (59) hide show
  1. package/README.md +16 -9
  2. package/dist/DefaultInputs-DYKtphqY.js +1701 -0
  3. package/dist/ThemeContext-O482h1XZ.js +1397 -0
  4. package/dist/editor/components/styles/EditorStyles.d.ts +2 -0
  5. package/dist/editor/context/OpenApiContext.d.ts +79 -0
  6. package/dist/editor/context/TreegeEditorContext.d.ts +7 -0
  7. package/dist/editor/features/TreegeEditor/TreegeEditor.d.ts +1 -1
  8. package/dist/editor/features/TreegeEditor/dialogs/AuthorizeDialog.d.ts +20 -0
  9. package/dist/editor/features/TreegeEditor/dialogs/HeadersDialog.d.ts +19 -0
  10. package/dist/editor/features/TreegeEditor/dialogs/OpenApiDialog.d.ts +6 -0
  11. package/dist/editor/features/TreegeEditor/forms/OptionsSourceForm.d.ts +7 -0
  12. package/dist/editor/features/TreegeEditor/inputs/ApiUrlCombobox.d.ts +30 -0
  13. package/dist/editor/features/TreegeEditor/nodes/TreegeNode.d.ts +0 -1
  14. package/dist/editor/features/TreegeEditor/nodes/components/NodeImage.d.ts +5 -0
  15. package/dist/editor/features/TreegeEditor/nodes/components/NodeImageButton.d.ts +6 -0
  16. package/dist/editor/features/TreegeEditor/nodes/components/NodeOptions.d.ts +12 -0
  17. package/dist/editor/features/TreegeEditor/nodes/components/NodeRequiredButton.d.ts +6 -0
  18. package/dist/editor/features/TreegeEditor/panel/ActionsPanel.d.ts +5 -2
  19. package/dist/editor/types/editor.d.ts +39 -1
  20. package/dist/editor/types/openapi.d.ts +81 -0
  21. package/dist/editor/utils/openapi.d.ts +35 -0
  22. package/dist/editor-DBCMmZtt.js +5147 -0
  23. package/dist/editor.js +2 -3
  24. package/dist/main.js +4 -5
  25. package/dist/renderer/context/TreegeConfigContext.d.ts +3 -27
  26. package/dist/renderer/context/TreegeRendererContext.d.ts +99 -2
  27. package/dist/renderer/features/TreegeRenderer/native/components/DefaultInputWrapper.d.ts +9 -0
  28. package/dist/renderer/features/TreegeRenderer/useTreegeRenderer.d.ts +3 -2
  29. package/dist/renderer/features/TreegeRenderer/web/TreegeRenderer.d.ts +1 -1
  30. package/dist/renderer/features/TreegeRenderer/web/components/DefaultFormWrapper.d.ts +1 -1
  31. package/dist/renderer/features/TreegeRenderer/web/components/DefaultInputWrapper.d.ts +9 -0
  32. package/dist/renderer/features/TreegeRenderer/web/components/styles/RendererStyles.d.ts +2 -0
  33. package/dist/renderer/hooks/useInputOptions.d.ts +28 -0
  34. package/dist/renderer/hooks/useRenderNode.d.ts +7 -3
  35. package/dist/renderer/hooks/useSubmitHandler.d.ts +3 -2
  36. package/dist/renderer/types/renderer.d.ts +13 -25
  37. package/dist/renderer/utils/http.d.ts +29 -1
  38. package/dist/renderer/utils/submit.d.ts +3 -2
  39. package/dist/renderer-native.js +794 -782
  40. package/dist/renderer.js +3 -4
  41. package/dist/shared/components/ui/button.d.ts +1 -1
  42. package/dist/shared/components/ui/field.d.ts +24 -0
  43. package/dist/shared/components/ui/toggle-group.d.ts +7 -0
  44. package/dist/shared/components/ui/toggle.d.ts +9 -0
  45. package/dist/shared/locales/ar.json.d.ts +80 -0
  46. package/dist/shared/locales/de.json.d.ts +80 -0
  47. package/dist/shared/locales/en.json.d.ts +80 -0
  48. package/dist/shared/locales/es.json.d.ts +80 -0
  49. package/dist/shared/locales/fr.json.d.ts +80 -0
  50. package/dist/shared/locales/it.json.d.ts +80 -0
  51. package/dist/shared/locales/pt.json.d.ts +80 -0
  52. package/dist/shared/types/node.d.ts +44 -0
  53. package/package.json +3 -2
  54. package/dist/DefaultInputs-Cr6wTVNE.js +0 -1558
  55. package/dist/ThemeContext-CUHjGVUf.js +0 -1602
  56. package/dist/editor/features/TreegeEditor/nodes/components/OptionsEditor.d.ts +0 -7
  57. package/dist/editor/features/TreegeEditor/nodes/components/RequiredBadge.d.ts +0 -6
  58. package/dist/editor-CE8g1o72.js +0 -4037
  59. /package/dist/editor/components/{data-display/logo.d.ts → branding/Logo.d.ts} +0 -0
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  "editor": {
16
16
  "actionsPanel": {
17
17
  "addNode": "Add Element",
18
+ "authorize": "Authorize",
18
19
  "clear": "Clear",
19
20
  "clearSuccess": "Flow cleared!",
20
21
  "clearSuccessDesc": "All nodes and edges have been removed.",
@@ -22,12 +23,14 @@ declare const _default: {
22
23
  "downloadSuccess": "Download successfully.",
23
24
  "downloadSuccessDesc": "The flow has been exported successfully.",
24
25
  "exportJson": "Export JSON",
26
+ "globalHeaders": "Global headers",
25
27
  "idCopied": "Flow ID copied!",
26
28
  "importJson": "Import JSON",
27
29
  "importSuccess": "Import successful!",
28
30
  "importSuccessDesc": "The flow has been imported successfully.",
29
31
  "invalidJson": "Invalid JSON file.",
30
32
  "invalidJsonDesc": "The file must contain nodes and edges arrays.",
33
+ "openApi": "OpenAPI",
31
34
  "parseError": "Error parsing JSON file.",
32
35
  "parseErrorDesc": "Try to fix the file and import it again."
33
36
  },
@@ -51,6 +54,24 @@ declare const _default: {
51
54
  "titleDescription": "Describe the form or decision tree you want to create, and AI will generate it for you.",
52
55
  "unknownError": "Unknown error occurred"
53
56
  },
57
+ "apiUrlCombobox": {
58
+ "browseRoutes": "Browse OpenAPI routes",
59
+ "noRoutes": "No matching route",
60
+ "searchRoutes": "Search by method, path, or summary"
61
+ },
62
+ "authorizeDialog": {
63
+ "apiKeyLabel": "API key",
64
+ "apply": "Apply",
65
+ "bearerLabel": "Bearer token",
66
+ "clear": "Clear",
67
+ "description": "Authenticate against the API to forward credentials to every request issued by the form.",
68
+ "exchangeFailed": "Failed to fetch access token",
69
+ "noSchemes": "No supported security schemes are declared in this OpenAPI document.",
70
+ "oauth2PasswordLabel": "OAuth2 password",
71
+ "passwordPlaceholder": "Password",
72
+ "title": "Authorize",
73
+ "usernamePlaceholder": "Username"
74
+ },
54
75
  "changeNodeTypeDialog": {
55
76
  "description": "This node has several outgoing branches. The new type only supports one. Choose which branch to keep; the others will be removed.",
56
77
  "keepBranch": "Keep this branch",
@@ -101,6 +122,15 @@ declare const _default: {
101
122
  "groupNodeForm": {
102
123
  "label": "Label"
103
124
  },
125
+ "headersDialog": {
126
+ "addHeader": "Add header",
127
+ "description": "These headers are forwarded to every HTTP request issued by the form (HTTP inputs, submit, options sources). Field-level headers with the same key override these.",
128
+ "empty": "No headers yet.",
129
+ "keyPlaceholder": "Authorization",
130
+ "removeHeader": "Remove header",
131
+ "title": "Global headers",
132
+ "valuePlaceholder": "Bearer ..."
133
+ },
104
134
  "httpConfigForm": {
105
135
  "addHeader": "Add header",
106
136
  "apiUrl": "API URL",
@@ -153,7 +183,9 @@ declare const _default: {
153
183
  "defaultValueTypeNone": "None",
154
184
  "defaultValueTypeReference": "Reference Field",
155
185
  "defaultValueTypeStatic": "Static Value",
186
+ "deleteOption": "Delete option",
156
187
  "disablePast": "Disable past dates",
188
+ "editOption": "Edit option",
157
189
  "errorMessage": "Error message",
158
190
  "helperText": "Helper text",
159
191
  "httpConfiguration": "HTTP Configuration",
@@ -209,6 +241,48 @@ declare const _default: {
209
241
  "deleteNodeSuccess": "Node deleted successfully",
210
242
  "editNode": "Edit node"
211
243
  },
244
+ "openApiDialog": {
245
+ "baseUrlHint": "Optional. Overrides the document's first server URL — useful when the spec points at a different environment.",
246
+ "baseUrlLabel": "Base URL override",
247
+ "clear": "Clear",
248
+ "cleared": "OpenAPI cleared.",
249
+ "description": "Provide an OpenAPI 3.x document to power URL suggestions and Authorize.",
250
+ "emptyInput": "Please provide a URL or paste a JSON document.",
251
+ "jsonLabel": "Paste your OpenAPI JSON",
252
+ "load": "Load",
253
+ "loadFailed": "Failed to load OpenAPI document",
254
+ "loadSuccess": "OpenAPI loaded.",
255
+ "modeJson": "Paste JSON",
256
+ "modeUrl": "From URL",
257
+ "title": "OpenAPI source",
258
+ "urlLabel": "OpenAPI document URL"
259
+ },
260
+ "optionsSourceForm": {
261
+ "descriptionField": "Description",
262
+ "descriptionFieldPlaceholder": "Path to description (optional)",
263
+ "detect": "Detect fields",
264
+ "detectFailed": "Failed to fetch the API.",
265
+ "detectSuccess": "Fields detected.",
266
+ "disable": "Use static options",
267
+ "dynamicHint": "Options are fetched from this API at runtime.",
268
+ "enable": "Fetch from API",
269
+ "imageField": "Image",
270
+ "imageFieldPlaceholder": "Path to image URL (optional)",
271
+ "labelField": "Label",
272
+ "labelFieldPlaceholder": "Path to label (e.g., name)",
273
+ "noFieldsDetected": "No fields detected — check the URL or response path.",
274
+ "none": "— None —",
275
+ "previewCount": "{count} options detected",
276
+ "responsePath": "Response path",
277
+ "responsePathHint": "Optional. Use a path like \"data.users\" if the array is nested.",
278
+ "responsePathPlaceholder": "e.g., data.users",
279
+ "staticOptions": "Static options",
280
+ "staticOptionsHint": "Options are defined manually in the editor.",
281
+ "title": "Options source",
282
+ "urlRequired": "URL is required.",
283
+ "valueField": "Value",
284
+ "valueFieldPlaceholder": "Path to value (e.g., id)"
285
+ },
212
286
  "selectInputType": {
213
287
  "type": "Type"
214
288
  },
@@ -290,6 +364,9 @@ declare const _default: {
290
364
  "search": "Search...",
291
365
  "selectOption": "Select an option"
292
366
  },
367
+ "defaultCheckboxInput": {
368
+ "loadingOptions": "Loading options..."
369
+ },
293
370
  "defaultHttpInput": {
294
371
  "fetchFailed": "Failed to fetch data. Please check your network connection.",
295
372
  "httpError": "HTTP Error {status}: {statusText}",
@@ -318,6 +395,9 @@ declare const _default: {
318
395
  "startDate": "Start date",
319
396
  "startTime": "Start time"
320
397
  },
398
+ "defaultRadioInput": {
399
+ "loadingOptions": "Loading options..."
400
+ },
321
401
  "defaultSelectInput": {
322
402
  "selectOption": "Select an option"
323
403
  },
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  "editor": {
16
16
  "actionsPanel": {
17
17
  "addNode": "Agregar elemento",
18
+ "authorize": "Authorize",
18
19
  "clear": "Limpiar",
19
20
  "clearSuccess": "¡Flujo limpiado!",
20
21
  "clearSuccessDesc": "Todos los nodos y aristas han sido eliminados.",
@@ -22,12 +23,14 @@ declare const _default: {
22
23
  "downloadSuccess": "Descarga exitosa.",
23
24
  "downloadSuccessDesc": "El flujo se ha exportado correctamente.",
24
25
  "exportJson": "Exportar JSON",
26
+ "globalHeaders": "Global headers",
25
27
  "idCopied": "ID del flujo copiado!",
26
28
  "importJson": "Importar JSON",
27
29
  "importSuccess": "¡Importación exitosa!",
28
30
  "importSuccessDesc": "El flujo se ha importado correctamente.",
29
31
  "invalidJson": "Archivo JSON inválido.",
30
32
  "invalidJsonDesc": "El archivo debe contener matrices de nodos y aristas.",
33
+ "openApi": "OpenAPI",
31
34
  "parseError": "Error al analizar el archivo JSON.",
32
35
  "parseErrorDesc": "Intenta corregir el archivo e importarlo nuevamente."
33
36
  },
@@ -51,6 +54,24 @@ declare const _default: {
51
54
  "titleDescription": "Describa el formulario o árbol de decisión que desea crear, y la IA lo generará por usted.",
52
55
  "unknownError": "Error desconocido"
53
56
  },
57
+ "apiUrlCombobox": {
58
+ "browseRoutes": "Browse OpenAPI routes",
59
+ "noRoutes": "No matching route",
60
+ "searchRoutes": "Search by method, path, or summary"
61
+ },
62
+ "authorizeDialog": {
63
+ "apiKeyLabel": "API key",
64
+ "apply": "Apply",
65
+ "bearerLabel": "Bearer token",
66
+ "clear": "Clear",
67
+ "description": "Authenticate against the API to forward credentials to every request issued by the form.",
68
+ "exchangeFailed": "Failed to fetch access token",
69
+ "noSchemes": "No supported security schemes are declared in this OpenAPI document.",
70
+ "oauth2PasswordLabel": "OAuth2 password",
71
+ "passwordPlaceholder": "Password",
72
+ "title": "Authorize",
73
+ "usernamePlaceholder": "Username"
74
+ },
54
75
  "changeNodeTypeDialog": {
55
76
  "description": "Este nodo tiene varias ramas salientes. El nuevo tipo solo admite una. Elige qué rama conservar; las demás serán eliminadas.",
56
77
  "keepBranch": "Conservar esta rama",
@@ -101,6 +122,15 @@ declare const _default: {
101
122
  "groupNodeForm": {
102
123
  "label": "Etiqueta"
103
124
  },
125
+ "headersDialog": {
126
+ "addHeader": "Add header",
127
+ "description": "These headers are forwarded to every HTTP request issued by the form (HTTP inputs, submit, options sources). Field-level headers with the same key override these.",
128
+ "empty": "No headers yet.",
129
+ "keyPlaceholder": "Authorization",
130
+ "removeHeader": "Remove header",
131
+ "title": "Global headers",
132
+ "valuePlaceholder": "Bearer ..."
133
+ },
104
134
  "httpConfigForm": {
105
135
  "addHeader": "Agregar encabezado",
106
136
  "apiUrl": "URL de la API",
@@ -153,7 +183,9 @@ declare const _default: {
153
183
  "defaultValueTypeNone": "Ninguno",
154
184
  "defaultValueTypeReference": "Campo de referencia",
155
185
  "defaultValueTypeStatic": "Valor estático",
186
+ "deleteOption": "Eliminar opción",
156
187
  "disablePast": "Desactivar fechas pasadas",
188
+ "editOption": "Editar opción",
157
189
  "errorMessage": "Mensaje de error",
158
190
  "helperText": "Texto de ayuda",
159
191
  "httpConfiguration": "Configuración HTTP",
@@ -209,6 +241,48 @@ declare const _default: {
209
241
  "deleteNodeSuccess": "Nodo eliminado exitosamente",
210
242
  "editNode": "Editar nodo"
211
243
  },
244
+ "openApiDialog": {
245
+ "baseUrlHint": "Optional. Overrides the document's first server URL — useful when the spec points at a different environment.",
246
+ "baseUrlLabel": "Base URL override",
247
+ "clear": "Clear",
248
+ "cleared": "OpenAPI cleared.",
249
+ "description": "Provide an OpenAPI 3.x document to power URL suggestions and Authorize.",
250
+ "emptyInput": "Please provide a URL or paste a JSON document.",
251
+ "jsonLabel": "Paste your OpenAPI JSON",
252
+ "load": "Load",
253
+ "loadFailed": "Failed to load OpenAPI document",
254
+ "loadSuccess": "OpenAPI loaded.",
255
+ "modeJson": "Paste JSON",
256
+ "modeUrl": "From URL",
257
+ "title": "OpenAPI source",
258
+ "urlLabel": "OpenAPI document URL"
259
+ },
260
+ "optionsSourceForm": {
261
+ "descriptionField": "Description",
262
+ "descriptionFieldPlaceholder": "Path to description (optional)",
263
+ "detect": "Detect fields",
264
+ "detectFailed": "Failed to fetch the API.",
265
+ "detectSuccess": "Fields detected.",
266
+ "disable": "Use static options",
267
+ "dynamicHint": "Options are fetched from this API at runtime.",
268
+ "enable": "Fetch from API",
269
+ "imageField": "Image",
270
+ "imageFieldPlaceholder": "Path to image URL (optional)",
271
+ "labelField": "Label",
272
+ "labelFieldPlaceholder": "Path to label (e.g., name)",
273
+ "noFieldsDetected": "No fields detected — check the URL or response path.",
274
+ "none": "— None —",
275
+ "previewCount": "{count} options detected",
276
+ "responsePath": "Response path",
277
+ "responsePathHint": "Optional. Use a path like \"data.users\" if the array is nested.",
278
+ "responsePathPlaceholder": "e.g., data.users",
279
+ "staticOptions": "Static options",
280
+ "staticOptionsHint": "Options are defined manually in the editor.",
281
+ "title": "Options source",
282
+ "urlRequired": "URL is required.",
283
+ "valueField": "Value",
284
+ "valueFieldPlaceholder": "Path to value (e.g., id)"
285
+ },
212
286
  "selectInputType": {
213
287
  "type": "Tipo"
214
288
  },
@@ -290,6 +364,9 @@ declare const _default: {
290
364
  "search": "Buscar...",
291
365
  "selectOption": "Seleccionar una opción"
292
366
  },
367
+ "defaultCheckboxInput": {
368
+ "loadingOptions": "Cargando opciones..."
369
+ },
293
370
  "defaultHttpInput": {
294
371
  "fetchFailed": "Error al obtener los datos. Por favor, verifique su conexión de red.",
295
372
  "httpError": "Error HTTP {status}: {statusText}",
@@ -318,6 +395,9 @@ declare const _default: {
318
395
  "startDate": "Fecha de inicio",
319
396
  "startTime": "Hora de inicio"
320
397
  },
398
+ "defaultRadioInput": {
399
+ "loadingOptions": "Cargando opciones..."
400
+ },
321
401
  "defaultSelectInput": {
322
402
  "selectOption": "Seleccionar una opción"
323
403
  },
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  "editor": {
16
16
  "actionsPanel": {
17
17
  "addNode": "Ajouter un élément",
18
+ "authorize": "Autoriser",
18
19
  "clear": "Supprimer",
19
20
  "clearSuccess": "Flux vidé !",
20
21
  "clearSuccessDesc": "Tous les nœuds et arêtes ont été supprimés.",
@@ -22,12 +23,14 @@ declare const _default: {
22
23
  "downloadSuccess": "Téléchargement réussi.",
23
24
  "downloadSuccessDesc": "Le flux a été exporté avec succès.",
24
25
  "exportJson": "Exporter JSON",
26
+ "globalHeaders": "Headers globaux",
25
27
  "idCopied": "ID du flux copié !",
26
28
  "importJson": "Importer JSON",
27
29
  "importSuccess": "Importation réussie !",
28
30
  "importSuccessDesc": "Le flux a été importé avec succès.",
29
31
  "invalidJson": "Fichier JSON invalide.",
30
32
  "invalidJsonDesc": "Le fichier doit contenir des tableaux de nœuds et d'arêtes.",
33
+ "openApi": "OpenAPI",
31
34
  "parseError": "Erreur d'analyse du fichier JSON.",
32
35
  "parseErrorDesc": "Essayez de corriger le fichier et de l'importer à nouveau."
33
36
  },
@@ -51,6 +54,24 @@ declare const _default: {
51
54
  "titleDescription": "Décrivez le formulaire ou l'arbre de décision que vous souhaitez créer, et l'IA le générera pour vous.",
52
55
  "unknownError": "Erreur inconnue"
53
56
  },
57
+ "apiUrlCombobox": {
58
+ "browseRoutes": "Parcourir les routes OpenAPI",
59
+ "noRoutes": "Aucune route correspondante",
60
+ "searchRoutes": "Rechercher par méthode, chemin ou résumé"
61
+ },
62
+ "authorizeDialog": {
63
+ "apiKeyLabel": "Clé d'API",
64
+ "apply": "Appliquer",
65
+ "bearerLabel": "Jeton Bearer",
66
+ "clear": "Effacer",
67
+ "description": "Authentifiez-vous auprès de l'API pour transmettre les identifiants à chaque requête émise par le formulaire.",
68
+ "exchangeFailed": "Échec de l'obtention du token d'accès",
69
+ "noSchemes": "Aucun schéma de sécurité supporté n'est déclaré dans ce document OpenAPI.",
70
+ "oauth2PasswordLabel": "OAuth2 mot de passe",
71
+ "passwordPlaceholder": "Mot de passe",
72
+ "title": "Autoriser",
73
+ "usernamePlaceholder": "Nom d'utilisateur"
74
+ },
54
75
  "changeNodeTypeDialog": {
55
76
  "description": "Ce nœud possède plusieurs branches sortantes. Le nouveau type n'en supporte qu'une seule. Choisissez la branche à conserver ; les autres seront supprimées.",
56
77
  "keepBranch": "Conserver cette branche",
@@ -101,6 +122,15 @@ declare const _default: {
101
122
  "groupNodeForm": {
102
123
  "label": "Libellé"
103
124
  },
125
+ "headersDialog": {
126
+ "addHeader": "Ajouter un header",
127
+ "description": "Ces headers sont transmis à chaque requête HTTP émise par le formulaire (inputs HTTP, submit, sources d'options). Les headers field-level avec la même clé prennent le dessus.",
128
+ "empty": "Aucun header pour l'instant.",
129
+ "keyPlaceholder": "Authorization",
130
+ "removeHeader": "Supprimer le header",
131
+ "title": "Headers globaux",
132
+ "valuePlaceholder": "Bearer ..."
133
+ },
104
134
  "httpConfigForm": {
105
135
  "addHeader": "Ajouter un en-tête",
106
136
  "apiUrl": "URL de l'API",
@@ -153,7 +183,9 @@ declare const _default: {
153
183
  "defaultValueTypeNone": "Aucun",
154
184
  "defaultValueTypeReference": "Champ de référence",
155
185
  "defaultValueTypeStatic": "Valeur statique",
186
+ "deleteOption": "Supprimer l'option",
156
187
  "disablePast": "Désactiver les dates passées",
188
+ "editOption": "Modifier l'option",
157
189
  "errorMessage": "Message d'erreur",
158
190
  "helperText": "Texte d'aide",
159
191
  "httpConfiguration": "Configuration HTTP",
@@ -209,6 +241,48 @@ declare const _default: {
209
241
  "deleteNodeSuccess": "Nœud supprimé avec succès",
210
242
  "editNode": "Modifier le nœud"
211
243
  },
244
+ "openApiDialog": {
245
+ "baseUrlHint": "Optionnel. Remplace l'URL du premier serveur du document — utile quand la spec pointe vers un autre environnement.",
246
+ "baseUrlLabel": "Override de l'URL de base",
247
+ "clear": "Effacer",
248
+ "cleared": "OpenAPI effacé.",
249
+ "description": "Fournissez un document OpenAPI 3.x pour activer les suggestions d'URL et l'autorisation.",
250
+ "emptyInput": "Veuillez fournir une URL ou coller un document JSON.",
251
+ "jsonLabel": "Collez votre OpenAPI JSON",
252
+ "load": "Charger",
253
+ "loadFailed": "Échec du chargement du document OpenAPI",
254
+ "loadSuccess": "OpenAPI chargé.",
255
+ "modeJson": "Coller JSON",
256
+ "modeUrl": "Depuis URL",
257
+ "title": "Source OpenAPI",
258
+ "urlLabel": "URL du document OpenAPI"
259
+ },
260
+ "optionsSourceForm": {
261
+ "descriptionField": "Description",
262
+ "descriptionFieldPlaceholder": "Chemin vers la description (optionnel)",
263
+ "detect": "Détecter les champs",
264
+ "detectFailed": "Échec de la requête.",
265
+ "detectSuccess": "Champs détectés.",
266
+ "disable": "Utiliser des options statiques",
267
+ "dynamicHint": "Les options sont récupérées depuis cette API au runtime.",
268
+ "enable": "Récupérer depuis une API",
269
+ "imageField": "Image",
270
+ "imageFieldPlaceholder": "Chemin vers l'URL de l'image (optionnel)",
271
+ "labelField": "Label",
272
+ "labelFieldPlaceholder": "Chemin vers le label (ex. name)",
273
+ "noFieldsDetected": "Aucun champ détecté — vérifiez l'URL ou le chemin de réponse.",
274
+ "none": "— Aucun —",
275
+ "previewCount": "{count} options détectées",
276
+ "responsePath": "Chemin de réponse",
277
+ "responsePathHint": "Optionnel. Utilisez un chemin comme \"data.users\" si le tableau est imbriqué.",
278
+ "responsePathPlaceholder": "ex. data.users",
279
+ "staticOptions": "Options statiques",
280
+ "staticOptionsHint": "Les options sont définies manuellement dans l'éditeur.",
281
+ "title": "Source des options",
282
+ "urlRequired": "L'URL est requise.",
283
+ "valueField": "Valeur",
284
+ "valueFieldPlaceholder": "Chemin vers la valeur (ex. id)"
285
+ },
212
286
  "selectInputType": {
213
287
  "type": "Type"
214
288
  },
@@ -290,6 +364,9 @@ declare const _default: {
290
364
  "search": "Recherche...",
291
365
  "selectOption": "Sélectionner une option"
292
366
  },
367
+ "defaultCheckboxInput": {
368
+ "loadingOptions": "Chargement des options..."
369
+ },
293
370
  "defaultHttpInput": {
294
371
  "fetchFailed": "Échec de la récupération des données. Veuillez vérifier votre connexion réseau.",
295
372
  "httpError": "Erreur HTTP {status} : {statusText}",
@@ -318,6 +395,9 @@ declare const _default: {
318
395
  "startDate": "Date de début",
319
396
  "startTime": "Heure de début"
320
397
  },
398
+ "defaultRadioInput": {
399
+ "loadingOptions": "Chargement des options..."
400
+ },
321
401
  "defaultSelectInput": {
322
402
  "selectOption": "Sélectionner une option"
323
403
  },
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  "editor": {
16
16
  "actionsPanel": {
17
17
  "addNode": "Aggiungi elemento",
18
+ "authorize": "Authorize",
18
19
  "clear": "Pulisci",
19
20
  "clearSuccess": "Flusso pulito!",
20
21
  "clearSuccessDesc": "Tutti i nodi e gli archi sono stati rimossi.",
@@ -22,12 +23,14 @@ declare const _default: {
22
23
  "downloadSuccess": "Download riuscito.",
23
24
  "downloadSuccessDesc": "Il flusso è stato esportato con successo.",
24
25
  "exportJson": "Esporta JSON",
26
+ "globalHeaders": "Global headers",
25
27
  "idCopied": "ID del flusso copiato!",
26
28
  "importJson": "Importa JSON",
27
29
  "importSuccess": "Importazione riuscita!",
28
30
  "importSuccessDesc": "Il flusso è stato importato con successo.",
29
31
  "invalidJson": "File JSON non valido.",
30
32
  "invalidJsonDesc": "Il file deve contenere array di nodi e archi.",
33
+ "openApi": "OpenAPI",
31
34
  "parseError": "Errore nell'analisi del file JSON.",
32
35
  "parseErrorDesc": "Prova a correggere il file e importarlo di nuovo."
33
36
  },
@@ -51,6 +54,24 @@ declare const _default: {
51
54
  "titleDescription": "Descrivi il modulo o l'albero decisionale che vuoi creare, e l'IA lo genererà per te.",
52
55
  "unknownError": "Errore sconosciuto"
53
56
  },
57
+ "apiUrlCombobox": {
58
+ "browseRoutes": "Browse OpenAPI routes",
59
+ "noRoutes": "No matching route",
60
+ "searchRoutes": "Search by method, path, or summary"
61
+ },
62
+ "authorizeDialog": {
63
+ "apiKeyLabel": "API key",
64
+ "apply": "Apply",
65
+ "bearerLabel": "Bearer token",
66
+ "clear": "Clear",
67
+ "description": "Authenticate against the API to forward credentials to every request issued by the form.",
68
+ "exchangeFailed": "Failed to fetch access token",
69
+ "noSchemes": "No supported security schemes are declared in this OpenAPI document.",
70
+ "oauth2PasswordLabel": "OAuth2 password",
71
+ "passwordPlaceholder": "Password",
72
+ "title": "Authorize",
73
+ "usernamePlaceholder": "Username"
74
+ },
54
75
  "changeNodeTypeDialog": {
55
76
  "description": "Questo nodo ha più rami in uscita. Il nuovo tipo ne supporta solo uno. Scegli quale ramo mantenere; gli altri verranno rimossi.",
56
77
  "keepBranch": "Mantieni questo ramo",
@@ -101,6 +122,15 @@ declare const _default: {
101
122
  "groupNodeForm": {
102
123
  "label": "Etichetta"
103
124
  },
125
+ "headersDialog": {
126
+ "addHeader": "Add header",
127
+ "description": "These headers are forwarded to every HTTP request issued by the form (HTTP inputs, submit, options sources). Field-level headers with the same key override these.",
128
+ "empty": "No headers yet.",
129
+ "keyPlaceholder": "Authorization",
130
+ "removeHeader": "Remove header",
131
+ "title": "Global headers",
132
+ "valuePlaceholder": "Bearer ..."
133
+ },
104
134
  "httpConfigForm": {
105
135
  "addHeader": "Aggiungi intestazione",
106
136
  "apiUrl": "URL API",
@@ -153,7 +183,9 @@ declare const _default: {
153
183
  "defaultValueTypeNone": "Nessuno",
154
184
  "defaultValueTypeReference": "Campo di riferimento",
155
185
  "defaultValueTypeStatic": "Valore statico",
186
+ "deleteOption": "Elimina opzione",
156
187
  "disablePast": "Disabilita date passate",
188
+ "editOption": "Modifica opzione",
157
189
  "errorMessage": "Messaggio di errore",
158
190
  "helperText": "Testo di aiuto",
159
191
  "httpConfiguration": "Configurazione HTTP",
@@ -209,6 +241,48 @@ declare const _default: {
209
241
  "deleteNodeSuccess": "Nodo eliminato con successo",
210
242
  "editNode": "Modifica nodo"
211
243
  },
244
+ "openApiDialog": {
245
+ "baseUrlHint": "Optional. Overrides the document's first server URL — useful when the spec points at a different environment.",
246
+ "baseUrlLabel": "Base URL override",
247
+ "clear": "Clear",
248
+ "cleared": "OpenAPI cleared.",
249
+ "description": "Provide an OpenAPI 3.x document to power URL suggestions and Authorize.",
250
+ "emptyInput": "Please provide a URL or paste a JSON document.",
251
+ "jsonLabel": "Paste your OpenAPI JSON",
252
+ "load": "Load",
253
+ "loadFailed": "Failed to load OpenAPI document",
254
+ "loadSuccess": "OpenAPI loaded.",
255
+ "modeJson": "Paste JSON",
256
+ "modeUrl": "From URL",
257
+ "title": "OpenAPI source",
258
+ "urlLabel": "OpenAPI document URL"
259
+ },
260
+ "optionsSourceForm": {
261
+ "descriptionField": "Description",
262
+ "descriptionFieldPlaceholder": "Path to description (optional)",
263
+ "detect": "Detect fields",
264
+ "detectFailed": "Failed to fetch the API.",
265
+ "detectSuccess": "Fields detected.",
266
+ "disable": "Use static options",
267
+ "dynamicHint": "Options are fetched from this API at runtime.",
268
+ "enable": "Fetch from API",
269
+ "imageField": "Image",
270
+ "imageFieldPlaceholder": "Path to image URL (optional)",
271
+ "labelField": "Label",
272
+ "labelFieldPlaceholder": "Path to label (e.g., name)",
273
+ "noFieldsDetected": "No fields detected — check the URL or response path.",
274
+ "none": "— None —",
275
+ "previewCount": "{count} options detected",
276
+ "responsePath": "Response path",
277
+ "responsePathHint": "Optional. Use a path like \"data.users\" if the array is nested.",
278
+ "responsePathPlaceholder": "e.g., data.users",
279
+ "staticOptions": "Static options",
280
+ "staticOptionsHint": "Options are defined manually in the editor.",
281
+ "title": "Options source",
282
+ "urlRequired": "URL is required.",
283
+ "valueField": "Value",
284
+ "valueFieldPlaceholder": "Path to value (e.g., id)"
285
+ },
212
286
  "selectInputType": {
213
287
  "type": "Tipo"
214
288
  },
@@ -290,6 +364,9 @@ declare const _default: {
290
364
  "search": "Cerca...",
291
365
  "selectOption": "Seleziona un'opzione"
292
366
  },
367
+ "defaultCheckboxInput": {
368
+ "loadingOptions": "Caricamento opzioni..."
369
+ },
293
370
  "defaultHttpInput": {
294
371
  "fetchFailed": "Impossibile recuperare i dati. Controlla la tua connessione di rete.",
295
372
  "httpError": "Errore HTTP {status}: {statusText}",
@@ -318,6 +395,9 @@ declare const _default: {
318
395
  "startDate": "Data di inizio",
319
396
  "startTime": "Ora di inizio"
320
397
  },
398
+ "defaultRadioInput": {
399
+ "loadingOptions": "Caricamento opzioni..."
400
+ },
321
401
  "defaultSelectInput": {
322
402
  "selectOption": "Seleziona un'opzione"
323
403
  },