@nocode-factory/sanity-kit 2.51.0 → 2.51.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocode-factory/sanity-kit",
3
- "version": "2.51.0",
3
+ "version": "2.51.1",
4
4
  "description": "Outils Studio de NoCode Factory : Pages (liste + board), Composants, Historique",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -237,7 +237,12 @@ function ComponentsToolInner() {
237
237
  value={groupDialog.name}
238
238
  autoFocus
239
239
  placeholder="Nom du groupe"
240
- onChange={(event) => setGroupDialog((d) => (d ? {...d, name: event.currentTarget.value} : d))}
240
+ onChange={(event) => {
241
+ // `currentTarget` n'est lisible que pendant l'événement : on capture
242
+ // la valeur AVANT l'updater d'état (sinon il vaut null → crash).
243
+ const value = event.currentTarget.value
244
+ setGroupDialog((d) => (d ? {...d, name: value} : d))
245
+ }}
241
246
  onKeyDown={(event) => {
242
247
  if (event.key === 'Enter' && groupDialog.name.trim()) {
243
248
  if (groupDialog.mode === 'rename' && groupDialog.id) meta.renameGroup(groupDialog.id, groupDialog.name)
package/src/version.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
4
4
  * le vérifie.
5
5
  */
6
- export const KIT_VERSION = '2.51.0'
6
+ export const KIT_VERSION = '2.51.1'