Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sanity/default-layout

Package Overview
Dependencies
Maintainers
6
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/default-layout - npm Package Compare versions

Comparing version 0.101.7-next to 0.101.7

1

lib/components/MobileNavigation.js

@@ -101,2 +101,3 @@ 'use strict';

}),
_react2.default.createElement('div', { className: _MobileNavigation2.default.headerBackground }),
_react2.default.createElement(

@@ -103,0 +104,0 @@ 'div',

10

lib/components/Search.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc