@sanity/language-filter 2.23.5-fix-search-issue.1 → 2.23.5-next.19

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":"datastore.d.ts","sourceRoot":"","sources":["../../src/datastore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,UAAU,EAAU,MAAM,MAAM,CAAA;AAIxC,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,eAAe,CAAA;AAErD,oBAAY,iBAAiB,GAAG,MAAM,EAAE,CAAA;AAUxC,eAAO,MAAM,QAAQ,wCAA8D,CAAA;AAqBnF,eAAO,MAAM,kBAAkB,sBAa9B,CAAA;AAUD,eAAO,MAAM,SAAS,6BAEK,UAAU,SAAS,WAAW,aAGxD,CAAA"}
1
+ {"version":3,"file":"datastore.d.ts","sourceRoot":"","sources":["../../src/datastore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,UAAU,EAAU,MAAM,MAAM,CAAA;AAIxC,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,eAAe,CAAA;AAErD,oBAAY,iBAAiB,GAAG,MAAM,EAAE,CAAA;AAUxC,eAAO,MAAM,QAAQ,wCAA8D,CAAA;AAqBnF,eAAO,MAAM,kBAAkB,sBAa9B,CAAA;AAUD,eAAO,MAAM,SAAS,6BAEK,UAAU,SAAS,WAAW,aAIxD,CAAA"}
package/lib/datastore.js CHANGED
@@ -55,6 +55,8 @@ var defaultFilterField = (enclosingType, field, selectedLanguages) => !enclosing
55
55
 
56
56
  var filterField = _config.default.filterField || defaultFilterField;
57
57
  var filterFn$ = selectedLanguages$.pipe((0, _operators.map)(langs => {
58
- return (enclosingType, field) => filterField(enclosingType, field, langs);
58
+ return (enclosingType, field) => {
59
+ return filterField(enclosingType, field, langs);
60
+ };
59
61
  }));
60
62
  exports.filterFn$ = filterFn$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/language-filter",
3
- "version": "2.23.5-fix-search-issue.1+d6b6c2e587",
3
+ "version": "2.23.5-next.19+012b5a6047",
4
4
  "description": "A Sanity plugin that supports filtering localized fields by language",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@sanity/icons": "^1.2.1",
19
- "@sanity/types": "2.23.5-fix-search-issue.1+d6b6c2e587",
20
- "@sanity/ui": "^0.36.17",
19
+ "@sanity/types": "2.23.5-next.19+012b5a6047",
20
+ "@sanity/ui": "^0.37.1",
21
21
  "lodash": "^4.17.15",
22
22
  "rxjs": "^6.5.3"
23
23
  },
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "d6b6c2e5870a52cac70c63916737c94de4b2d135"
42
+ "gitHead": "012b5a6047e8e9dbabd784bc961ed05857b9a8fc"
43
43
  }
package/src/datastore.ts CHANGED
@@ -63,7 +63,8 @@ const filterField = config.filterField || defaultFilterField
63
63
 
64
64
  export const filterFn$ = selectedLanguages$.pipe(
65
65
  map((langs) => {
66
- return (enclosingType: SchemaType, field: ObjectField) =>
67
- filterField(enclosingType, field, langs)
66
+ return (enclosingType: SchemaType, field: ObjectField) => {
67
+ return filterField(enclosingType, field, langs)
68
+ }
68
69
  })
69
70
  )