@payloadcms/live-preview
Advanced tools
@@ -17,5 +17,5 @@ import type { fieldSchemaToJSON } from 'payload/shared'; | ||
serverURL: string; | ||
}) => Promise<T & { | ||
}) => Promise<{ | ||
_numberOfRequests?: number; | ||
}>; | ||
} & T>; | ||
//# sourceMappingURL=mergeData.d.ts.map |
@@ -31,3 +31,3 @@ import { traverseFields } from './traverseFields.js'; | ||
apiPath: apiRoute || '/api', | ||
endpoint: `${collection}?depth=${depth}&where[id][in]=${Array.from(ids).join(',')}`, | ||
endpoint: encodeURI(`${collection}?depth=${depth}&where[id][in]=${Array.from(ids).join(',')}`), | ||
serverURL | ||
@@ -34,0 +34,0 @@ }).then((res)=>res.json()); |
{ | ||
"name": "@payloadcms/live-preview", | ||
"version": "3.0.0-canary.03427d3", | ||
"version": "3.0.0-canary.0a43514", | ||
"description": "The official live preview JavaScript SDK for Payload", | ||
@@ -17,4 +17,4 @@ "homepage": "https://payloadcms.com", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
@@ -28,4 +28,4 @@ }, | ||
"devDependencies": { | ||
"@payloadcms/eslint-config": "1.1.1", | ||
"payload": "3.0.0-canary.03427d3" | ||
"@payloadcms/eslint-config": "3.0.0-beta.97", | ||
"payload": "3.0.0-canary.0a43514" | ||
}, | ||
@@ -40,4 +40,6 @@ "publishConfig": { | ||
"clean": "rimraf {dist,*.tsbuildinfo}", | ||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/" | ||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
63848
-0.59%