@nocode-factory/sanity-kit 2.22.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/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/form/OverrideInput.tsx +4 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -107,7 +107,10 @@ export function createOverrideInput(config: ResolvedKitConfig): ComponentType<In
|
|
|
107
107
|
</Box>
|
|
108
108
|
)}
|
|
109
109
|
</Box>
|
|
110
|
-
{
|
|
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