data-primals-engine 1.3.4 → 1.4.0

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.
@@ -235,7 +235,7 @@ const ModelCreator = forwardRef(({ initialPrompt = '', onModelGenerated, autoGen
235
235
  break;
236
236
  }
237
237
  case 'number':
238
- otherFields = ['min', 'max', 'step', 'unit'];
238
+ otherFields = ['min', 'max', 'step', 'unit','delay', 'gauge', 'percent'];
239
239
  break;
240
240
  case 'string':
241
241
  case 'string_t':
@@ -660,7 +660,7 @@ const ModelCreator = forwardRef(({ initialPrompt = '', onModelGenerated, autoGen
660
660
  {/* Boutons d'action, visibles si un modèle est affiché ou en mode manuel */}
661
661
  {(showModel || !useAI || initialModel) && (
662
662
  <div className="actions flex">
663
- {!useAI && (
663
+ {initialModel && (
664
664
  <Button type="button" onClick={handleAddField}>
665
665
  <FaPlus /> <Trans i18nKey={"btns.addField"}>Ajouter un champ</Trans>
666
666
  </Button>