@nocode-factory/sanity-kit 2.21.0 → 2.22.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.21.0",
3
+ "version": "2.22.1",
4
4
  "description": "Outils Studio de NoCode Factory : Pages (liste + board), Composants, Historique",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -107,7 +107,10 @@ export function createOverrideInput(config: ResolvedKitConfig): ComponentType<In
107
107
  </Box>
108
108
  )}
109
109
  </Box>
110
- {override && <OverrideDot hasDefault={action.kind !== 'noDefault'} full={describeValue(inherited)} short={shortValue(inherited)} onClick={onClick} />}
110
+ {/* Formulaire en lecture seule (vue « Publié », version planifiée, droits) :
111
+ pas de pastille cliquable, sinon le clic écrirait dans un document que
112
+ Sanity refuse de modifier (« Attempted to patch a read-only document »). */}
113
+ {override && !inputProps.readOnly && <OverrideDot hasDefault={action.kind !== 'noDefault'} full={describeValue(inherited)} short={shortValue(inherited)} onClick={onClick} />}
111
114
  </Flex>
112
115
  )
113
116
  }
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.21.0'
6
+ export const KIT_VERSION = '2.22.1'