payload-live-preview 1.8.0 → 1.8.2
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.
- package/dist/adapters/astro/index.js +1 -1
- package/dist/adapters/astro/index.js.map +1 -1
- package/dist/adapters/astro/middleware-entry.js +1 -1
- package/dist/adapters/astro/middleware-entry.js.map +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/adapters/nextjs/index.js.map +1 -1
- package/dist/adapters/nuxt/index.js +1 -1
- package/dist/adapters/nuxt/index.js.map +1 -1
- package/dist/adapters/sveltekit/index.js +1 -1
- package/dist/adapters/sveltekit/index.js.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +3 -2
- package/dist/core.d.ts +3 -2
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -1213,7 +1213,7 @@ interface SanitizerDocument {
|
|
|
1213
1213
|
* libraries:
|
|
1214
1214
|
*
|
|
1215
1215
|
* ```ts
|
|
1216
|
-
* // linkedom —
|
|
1216
|
+
* // linkedom — 1.8.2 or later; up to 1.8.1 its output was the input, unsanitised
|
|
1217
1217
|
* import { parseHTML } from 'linkedom';
|
|
1218
1218
|
* import { setSanitizerDocument } from 'payload-live-preview';
|
|
1219
1219
|
* const { document } = parseHTML('<!doctype html><html><body></body></html>');
|
|
@@ -1236,7 +1236,8 @@ declare function setSanitizerDocument(doc: SanitizerDocument | null): void;
|
|
|
1236
1236
|
* browser parser silently recovers and the sanitizer continues from
|
|
1237
1237
|
* the recovered tree.
|
|
1238
1238
|
*
|
|
1239
|
-
* @throws {SanitizerEnvironmentError} when no DOM is available
|
|
1239
|
+
* @throws {SanitizerEnvironmentError} when no DOM is available, or when its
|
|
1240
|
+
* document cannot write the cleaned nodes.
|
|
1240
1241
|
*/
|
|
1241
1242
|
declare function sanitizeHtml(html: string, options?: SanitizeOptions): string;
|
|
1242
1243
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1213,7 +1213,7 @@ interface SanitizerDocument {
|
|
|
1213
1213
|
* libraries:
|
|
1214
1214
|
*
|
|
1215
1215
|
* ```ts
|
|
1216
|
-
* // linkedom —
|
|
1216
|
+
* // linkedom — 1.8.2 or later; up to 1.8.1 its output was the input, unsanitised
|
|
1217
1217
|
* import { parseHTML } from 'linkedom';
|
|
1218
1218
|
* import { setSanitizerDocument } from 'payload-live-preview';
|
|
1219
1219
|
* const { document } = parseHTML('<!doctype html><html><body></body></html>');
|
|
@@ -1236,7 +1236,8 @@ declare function setSanitizerDocument(doc: SanitizerDocument | null): void;
|
|
|
1236
1236
|
* browser parser silently recovers and the sanitizer continues from
|
|
1237
1237
|
* the recovered tree.
|
|
1238
1238
|
*
|
|
1239
|
-
* @throws {SanitizerEnvironmentError} when no DOM is available
|
|
1239
|
+
* @throws {SanitizerEnvironmentError} when no DOM is available, or when its
|
|
1240
|
+
* document cannot write the cleaned nodes.
|
|
1240
1241
|
*/
|
|
1241
1242
|
declare function sanitizeHtml(html: string, options?: SanitizeOptions): string;
|
|
1242
1243
|
|