@sanity/default-layout
Advanced tools
Comparing version 0.101.7-next to 0.101.7
@@ -101,2 +101,3 @@ 'use strict'; | ||
}), | ||
_react2.default.createElement('div', { className: _MobileNavigation2.default.headerBackground }), | ||
_react2.default.createElement( | ||
@@ -103,0 +104,0 @@ 'div', |
@@ -90,3 +90,3 @@ 'use strict'; | ||
var query = '*[[' + (0, _lodash.union)(searchableFields).join(', ') + '] match "' + q + '"][0...10]'; | ||
var query = '* [(' + (0, _lodash.union)(searchableFields).join(', ') + ') match "' + q + '", limit: 10]'; | ||
@@ -117,7 +117,5 @@ _this.setState({ | ||
// TODO hack until gradient supports 'schemaName.*' | ||
var prefixedTypeNames = _schema2.default.getTypeNames().map(prefixTypeName).map(function (str) { | ||
return '"' + str + '"'; | ||
}); | ||
var prefixedTypeNames = _schema2.default.getTypeNames().map(prefixTypeName); | ||
var query = '*[is [' + prefixedTypeNames.join(', ') + '] | order(_updatedAt desc) [0...3]'; | ||
var query = '(' + prefixedTypeNames.join(', ') + ') [order: _updatedAt desc, limit: 3]'; | ||
@@ -147,3 +145,3 @@ _client2.default.fetch(query, {}).then(function (response) { | ||
var unprefixedType = unprefixTypeName(item._type); | ||
var id = item._id; | ||
var id = item._id.split('/').join('.'); | ||
var url = ['/desk', unprefixedType, 'edit', id].join('/'); | ||
@@ -150,0 +148,0 @@ |
{ | ||
"name": "@sanity/default-layout", | ||
"version": "0.101.7-next", | ||
"version": "0.101.7", | ||
"description": "The default layout components for Sanity", | ||
@@ -31,8 +31,8 @@ "main": "lib/default-layout.js", | ||
"devDependencies": { | ||
"@sanity/base": "^0.101.7-next", | ||
"@sanity/base": "^0.101.7", | ||
"@sanity/check": "^0.99.0", | ||
"@sanity/cli": "^0.101.7-next", | ||
"@sanity/components": "^0.101.7-next", | ||
"@sanity/core": "^0.101.7-next", | ||
"@sanity/form-builder": "^0.101.7-next", | ||
"@sanity/cli": "^0.101.3", | ||
"@sanity/components": "^0.101.7", | ||
"@sanity/core": "^0.101.3", | ||
"@sanity/form-builder": "^0.101.7", | ||
"chai": "^3.5.0", | ||
@@ -39,0 +39,0 @@ "chai-as-promised": "^6.0.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
320073
45
1530