@sanity/language-filter 2.32.1-performance-opts.30 → 2.32.1-performance-opts.21

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SelectLanguageProvider.d.ts","sourceRoot":"","sources":["../../src/SelectLanguageProvider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAMxC,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB;AAED,QAAA,MAAM,sBAAsB,mBAAkB,KAAK,uBAoDlD,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"SelectLanguageProvider.d.ts","sourceRoot":"","sources":["../../src/SelectLanguageProvider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AAMxC,UAAU,KAAK;IACb,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB;AAED,QAAA,MAAM,sBAAsB,mBAAkB,KAAK,uBAuDlD,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -86,6 +86,9 @@ var SelectLanguageProvider = _ref => {
86
86
  }
87
87
 
88
88
  if (FallbackImplementation) {
89
+ // This is happening only inside the mono repo because Lerna is hoisting it incorrectly.
90
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
91
+ // @ts-expect-error
89
92
  return /*#__PURE__*/_react.default.createElement(FallbackImplementation, {
90
93
  schemaType: schemaType
91
94
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/language-filter",
3
- "version": "2.32.1-performance-opts.30+bad78c1b72",
3
+ "version": "2.32.1-performance-opts.21+e6a4b4085a",
4
4
  "description": "A Sanity plugin that supports filtering localized fields by language",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@sanity/icons": "^1.3.4",
19
- "@sanity/types": "2.32.1-performance-opts.30+bad78c1b72",
19
+ "@sanity/types": "2.32.1-performance-opts.21+e6a4b4085a",
20
20
  "@sanity/ui": "^0.37.21",
21
21
  "lodash": "^4.17.15",
22
22
  "rxjs": "^6.5.3"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "bad78c1b72c589b6b9a05d3df563c24103463415"
42
+ "gitHead": "e6a4b4085af2eeac1e12cdefdba03bd2c0ab1fef"
43
43
  }
@@ -61,7 +61,10 @@ const SelectLanguageProvider = ({schemaType}: Props) => {
61
61
  }
62
62
 
63
63
  if (FallbackImplementation) {
64
- return <FallbackImplementation schemaType={schemaType as any} />
64
+ // This is happening only inside the mono repo because Lerna is hoisting it incorrectly.
65
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
66
+ // @ts-expect-error
67
+ return <FallbackImplementation schemaType={schemaType} />
65
68
  }
66
69
 
67
70
  return null