sanity-plugin-internationalized-array 1.10.7 → 1.10.8

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": "sanity-plugin-internationalized-array",
3
- "version": "1.10.7",
3
+ "version": "1.10.8",
4
4
  "description": "Store localized fields in an array to save on attributes",
5
5
  "keywords": [
6
6
  "sanity",
package/src/plugin.tsx CHANGED
@@ -36,11 +36,11 @@ export const internationalizedArray = definePlugin<PluginConfig>((config) => {
36
36
  },
37
37
  },
38
38
  // Optional: render "add language" buttons as field actions
39
- // document: {
40
- // unstable_fieldActions: buttonLocations.includes('unstable__fieldAction')
41
- // ? (prev) => [...prev, internationalizedArrayFieldAction]
42
- // : undefined,
43
- // },
39
+ document: {
40
+ unstable_fieldActions: buttonLocations.includes('unstable__fieldAction')
41
+ ? (prev) => [...prev, internationalizedArrayFieldAction]
42
+ : undefined,
43
+ },
44
44
  // Wrap document editor with a language provider
45
45
  form: {
46
46
  components: {