@sanity/vercel-protection-bypass

5.0.135.0.14
~

Modified (4 files)

Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -25,9 +25,9 @@
 				media: enabled ? CheckmarkCircleIcon : CloseCircleIcon
 			};
 		}
 	}
-}), VercelProtectionBypassTool = lazy(() => import("./VercelProtectionBypassTool.js")), vercelProtectionBypassTool = definePlugin((options) => {
+}), VercelProtectionBypassTool = lazy(() => import("./_chunks-es/VercelProtectionBypassTool.js")), vercelProtectionBypassTool = definePlugin((options) => {
 	let { name = "vercel-protection-bypass", title = "Vercel Protection Bypass", icon = LockIcon, ...config } = options || {};
 	return {
 		name: `@sanity/preview-url-secret/${id}`,
 		tools: [{
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@sanity/vercel-protection-bypass",
-  "version": "5.0.13",
+  "version": "5.0.14",
   "keywords": [
     "sanity",
     "sanity-plugin",
     "studio",
@@ -28,22 +28,22 @@
     "./package.json": "./package.json"
   },
   "dependencies": {
     "@sanity/icons": "^5.0.0",
-    "@sanity/preview-url-secret": "^4.0.7",
-    "@sanity/ui": "^3.3.0"
+    "@sanity/preview-url-secret": "^4.0.8",
+    "@sanity/ui": "^3.3.5"
   },
   "devDependencies": {
     "@sanity/client": "^7.23.0",
     "@sanity/tsconfig": "^2.2.0",
-    "@sanity/tsdown-config": "^0.11.0",
-    "@types/node": "^24.13.2",
+    "@sanity/tsdown-config": "^0.13.1",
+    "@types/node": "^24.13.3",
     "@types/react": "^19.2.17",
     "babel-plugin-react-compiler": "^1.0.0",
     "react": "^19.2.7",
     "sanity": "^6.3.0",
     "styled-components": "^6.4.3",
-    "tsdown": "^0.22.3"
+    "tsdown": "^0.22.5"
   },
   "peerDependencies": {
     "react": "^19.2",
     "sanity": "^5 || ^6.0.0-0"
Index: package/dist/index.d.ts.map
===================================================================
--- package/dist/index.d.ts.map
+++ package/dist/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";UAYiB,4BAAA;EACf,IAAA;EACA,KAAA;EACA,IAAA,GAAO,KAAA,CAAM,aAAa;AAAA;AAAA,cAkCf,0BAAA,EAA4B,MAAM,CAAC,4BAAA"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";UAYiB;EACf;EACA;EACA,OAAO,MAAM;;cAkCF,4BAA4B,OAAO"}
\ No newline at end of file
Index: package/dist/index.js.map
===================================================================
--- package/dist/index.js.map
+++ package/dist/index.js.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.js","names":["CheckmarkCircleIcon","CloseCircleIcon","LockIcon","vercelProtectionBypassSchemaId","_id","vercelProtectionBypassSchemaType","type","lazy","definePlugin","defineType","Plugin","id","VercelProtectionBypassConfig","name","title","icon","React","ComponentType","defaultTitle","schema","readOnly","fields","preview","select","secret","prepare","data","enabled","subtitle","media","VercelProtectionBypassTool","vercelProtectionBypassTool","options","config","tools","component","__internalApplicationType","document","actions","prev","context","schemaType","types"],"sources":["../src/index.ts"],"sourcesContent":["import {CheckmarkCircleIcon} from '@sanity/icons/CheckmarkCircle'\nimport {CloseCircleIcon} from '@sanity/icons/CloseCircle'\nimport {LockIcon} from '@sanity/icons/Lock'\nimport {\n  vercelProtectionBypassSchemaId as _id,\n  vercelProtectionBypassSchemaType as type,\n} from '@sanity/preview-url-secret/constants'\nimport {lazy} from 'react'\nimport {definePlugin, defineType, type Plugin} from 'sanity'\n\nconst id = 'vercel-protection-bypass'\n\nexport interface VercelProtectionBypassConfig {\n  name?: string\n  title?: string\n  icon?: React.ComponentType\n}\n\nconst defaultTitle = 'Vercel Protection Bypass'\nconst schema = defineType({\n  type: 'document',\n  icon: LockIcon,\n  name: type,\n  title: defaultTitle,\n  readOnly: true,\n  fields: [\n    {\n      type: 'string',\n      name: 'secret',\n      title: 'Secret',\n    },\n  ],\n  preview: {\n    select: {\n      secret: 'secret',\n    },\n    prepare(data) {\n      const enabled = data.secret !== null\n      return {\n        title: enabled ? 'Enabled' : 'Disabled',\n        subtitle: defaultTitle,\n        media: enabled ? CheckmarkCircleIcon : CloseCircleIcon,\n      }\n    },\n  },\n})\n\nconst VercelProtectionBypassTool = lazy(() => import('./VercelProtectionBypassTool'))\n\nexport const vercelProtectionBypassTool: Plugin<VercelProtectionBypassConfig | void> = definePlugin(\n  (options) => {\n    const {\n      name = 'vercel-protection-bypass',\n      title = 'Vercel Protection Bypass',\n      icon = LockIcon,\n      ...config\n    } = options || {}\n    return {\n      name: `@sanity/preview-url-secret/${id}`,\n      tools: [\n        {\n          name,\n          title,\n          icon: icon,\n          component: VercelProtectionBypassTool,\n          options: config,\n          __internalApplicationType: `sanity/${id}`,\n        },\n      ],\n      document: {\n        actions: (prev, context) => {\n          if (context.schemaType !== type) {\n            return prev\n          }\n          return []\n        },\n      },\n      schema: {types: [schema]},\n    }\n  },\n)\n"],"mappings":";;;;;;AAUA,MAAMW,KAAK,4BAQLO,eAAe,4BACfC,SAASV,WAAW;CACxBH,MAAM;CACNS,MAAMb;CACNW,MAAMP;CACNQ,OAAOI;CACPE,UAAU;CACVC,QAAQ,CACN;EACEf,MAAM;EACNO,MAAM;EACNC,OAAO;CACT,CAAC;CAEHQ,SAAS;EACPC,QAAQ,EACNC,QAAQ,SACV;EACAC,QAAQC,MAAM;GACZ,IAAMC,UAAUD,KAAKF,WAAW;GAChC,OAAO;IACLV,OAAOa,UAAU,YAAY;IAC7BC,UAAUV;IACVW,OAAOF,UAAU3B,sBAAsBC;GACzC;EACF;CACF;AACF,CAAC,GAEK6B,6BAA6BvB,WAAW,OAAO,kCAA+B,GAEvEwB,6BAA0EvB,cACpFwB,YAAY;CACX,IAAM,EACJnB,OAAO,4BACPC,QAAQ,4BACRC,OAAOb,UACP,GAAG+B,WACDD,WAAW,CAAC;CAChB,OAAO;EACLnB,MAAM,8BAA8BF;EACpCuB,OAAO,CACL;GACErB;GACAC;GACMC;GACNoB,WAAWL;GACXE,SAASC;GACTG,2BAA2B,UAAUzB;EACvC,CAAC;EAEH0B,UAAU,EACRC,UAAUC,MAAMC,YACVA,QAAQC,eAAenC,mCAGpB,CAAA,IAFEiC,KAIb;EACApB,QAAQ,EAACuB,OAAO,CAACvB,MAAM,EAAC;CAC1B;AACF,CACF"}
\ No newline at end of file
+{"version":3,"file":"index.js","names":["CheckmarkCircleIcon","CloseCircleIcon","LockIcon","vercelProtectionBypassSchemaId","_id","vercelProtectionBypassSchemaType","type","lazy","definePlugin","defineType","Plugin","id","VercelProtectionBypassConfig","name","title","icon","React","ComponentType","defaultTitle","schema","readOnly","fields","preview","select","secret","prepare","data","enabled","subtitle","media","VercelProtectionBypassTool","vercelProtectionBypassTool","options","config","tools","component","__internalApplicationType","document","actions","prev","context","schemaType","types"],"sources":["../src/index.ts"],"sourcesContent":["import {CheckmarkCircleIcon} from '@sanity/icons/CheckmarkCircle'\nimport {CloseCircleIcon} from '@sanity/icons/CloseCircle'\nimport {LockIcon} from '@sanity/icons/Lock'\nimport {\n  vercelProtectionBypassSchemaId as _id,\n  vercelProtectionBypassSchemaType as type,\n} from '@sanity/preview-url-secret/constants'\nimport {lazy} from 'react'\nimport {definePlugin, defineType, type Plugin} from 'sanity'\n\nconst id = 'vercel-protection-bypass'\n\nexport interface VercelProtectionBypassConfig {\n  name?: string\n  title?: string\n  icon?: React.ComponentType\n}\n\nconst defaultTitle = 'Vercel Protection Bypass'\nconst schema = defineType({\n  type: 'document',\n  icon: LockIcon,\n  name: type,\n  title: defaultTitle,\n  readOnly: true,\n  fields: [\n    {\n      type: 'string',\n      name: 'secret',\n      title: 'Secret',\n    },\n  ],\n  preview: {\n    select: {\n      secret: 'secret',\n    },\n    prepare(data) {\n      const enabled = data.secret !== null\n      return {\n        title: enabled ? 'Enabled' : 'Disabled',\n        subtitle: defaultTitle,\n        media: enabled ? CheckmarkCircleIcon : CloseCircleIcon,\n      }\n    },\n  },\n})\n\nconst VercelProtectionBypassTool = lazy(() => import('./VercelProtectionBypassTool'))\n\nexport const vercelProtectionBypassTool: Plugin<VercelProtectionBypassConfig | void> = definePlugin(\n  (options) => {\n    const {\n      name = 'vercel-protection-bypass',\n      title = 'Vercel Protection Bypass',\n      icon = LockIcon,\n      ...config\n    } = options || {}\n    return {\n      name: `@sanity/preview-url-secret/${id}`,\n      tools: [\n        {\n          name,\n          title,\n          icon: icon,\n          component: VercelProtectionBypassTool,\n          options: config,\n          __internalApplicationType: `sanity/${id}`,\n        },\n      ],\n      document: {\n        actions: (prev, context) => {\n          if (context.schemaType !== type) {\n            return prev\n          }\n          return []\n        },\n      },\n      schema: {types: [schema]},\n    }\n  },\n)\n"],"mappings":";;;;;;AAUA,MAAMW,KAAK,4BAQLO,eAAe,4BACfC,SAASV,WAAW;CACxBH,MAAM;CACNS,MAAMb;CACNW,MAAMP;CACNQ,OAAOI;CACPE,UAAU;CACVC,QAAQ,CACN;EACEf,MAAM;EACNO,MAAM;EACNC,OAAO;CACT,CAAC;CAEHQ,SAAS;EACPC,QAAQ,EACNC,QAAQ,SACV;EACAC,QAAQC,MAAM;GACZ,IAAMC,UAAUD,KAAKF,WAAW;GAChC,OAAO;IACLV,OAAOa,UAAU,YAAY;IAC7BC,UAAUV;IACVW,OAAOF,UAAU3B,sBAAsBC;GACzC;EACF;CACF;AACF,CAAC,GAEK6B,6BAA6BvB,WAAW,OAAO,6CAA+B,GAEvEwB,6BAA0EvB,cACpFwB,YAAY;CACX,IAAM,EACJnB,OAAO,4BACPC,QAAQ,4BACRC,OAAOb,UACP,GAAG+B,WACDD,WAAW,CAAC;CAChB,OAAO;EACLnB,MAAM,8BAA8BF;EACpCuB,OAAO,CACL;GACErB;GACAC;GACMC;GACNoB,WAAWL;GACXE,SAASC;GACTG,2BAA2B,UAAUzB;EACvC,CAAC;EAEH0B,UAAU,EACRC,UAAUC,MAAMC,YACVA,QAAQC,eAAenC,mCAGpB,CAAA,IAFEiC,KAIb;EACApB,QAAQ,EAACuB,OAAO,CAACvB,MAAM,EAAC;CAC1B;AACF,CACF"}
\ No newline at end of file