payload-live-preview 2.2.1 → 2.2.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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/dist/adapters/astro/index.d.ts +2 -2
  3. package/dist/adapters/astro/index.js +1 -1
  4. package/dist/adapters/astro/index.js.map +1 -1
  5. package/dist/adapters/astro/middleware-entry.js +1 -1
  6. package/dist/adapters/astro/middleware-entry.js.map +1 -1
  7. package/dist/adapters/nextjs/index.d.ts +1 -1
  8. package/dist/adapters/nextjs/index.js +1 -1
  9. package/dist/adapters/nextjs/index.js.map +1 -1
  10. package/dist/adapters/nuxt/index.d.ts +2 -2
  11. package/dist/adapters/nuxt/index.js +1 -1
  12. package/dist/adapters/nuxt/index.js.map +1 -1
  13. package/dist/adapters/sveltekit/index.d.ts +2 -2
  14. package/dist/adapters/sveltekit/index.js +1 -1
  15. package/dist/adapters/sveltekit/index.js.map +1 -1
  16. package/dist/client.cjs +1 -1
  17. package/dist/client.cjs.map +1 -1
  18. package/dist/client.js +1 -1
  19. package/dist/client.js.map +1 -1
  20. package/dist/core.cjs +1 -1
  21. package/dist/core.cjs.map +1 -1
  22. package/dist/core.d.cts +2 -2
  23. package/dist/core.d.ts +2 -2
  24. package/dist/core.js +1 -1
  25. package/dist/core.js.map +1 -1
  26. package/dist/{fragment-endpoint-DGGLIijM.d.ts → fragment-endpoint-CLRpNQ3n.d.ts} +4 -2
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +6 -4
  30. package/dist/index.d.ts +6 -4
  31. package/dist/index.js +1 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/lean.cjs +1 -1
  34. package/dist/lean.cjs.map +1 -1
  35. package/dist/lean.js +1 -1
  36. package/dist/lean.js.map +1 -1
  37. package/dist/lexical.cjs +1 -1
  38. package/dist/lexical.cjs.map +1 -1
  39. package/dist/lexical.js +1 -1
  40. package/dist/lexical.js.map +1 -1
  41. package/dist/plugins.cjs +1 -1
  42. package/dist/plugins.cjs.map +1 -1
  43. package/dist/plugins.js +1 -1
  44. package/dist/plugins.js.map +1 -1
  45. package/dist/server.cjs +1 -1
  46. package/dist/server.cjs.map +1 -1
  47. package/dist/server.d.cts +4 -2
  48. package/dist/server.d.ts +4 -2
  49. package/dist/server.js +1 -1
  50. package/dist/server.js.map +1 -1
  51. package/dist/structural.cjs +2 -2
  52. package/dist/structural.cjs.map +1 -1
  53. package/dist/structural.js +1 -1
  54. package/dist/structural.js.map +1 -1
  55. package/package.json +6 -4
package/README.md CHANGED
@@ -59,6 +59,8 @@ What differs between Payload 2, 3 and 4:
59
59
 
60
60
  Node >=20.19.0; the unit and integration suites run on Node 20, 22, 24, 26. Every version in the table is what the fixture lockfile or the matrix job installs, checked by `npm run compat:check`.
61
61
 
62
+ Of the 50 feature rows of `quality/compat-matrix.json`, 47 passed in the CI run the last Version PR recorded (commit `83f66e9`, 2026-10-30, `quality/compat-results.json`); the other 3 have no recorded result.
63
+
62
64
  Vite 5 through 8: that is what the supported framework majors install (Astro 7 → 8, Astro 6 → 7, Astro 5 → 6, Astro 4 → 5, SvelteKit 2 → 5/6/7/8, Nuxt 3 → 7), measured 2026-09-06. `npm run compat:check` keeps the devDependency and the fixture lockfiles inside that span; `npm run compat:refresh` re-reads it from the registry.
63
65
 
64
66
  The framework hooks and fragment renderers run twice on every push: at the floor of each peer range, as unit tests in jsdom that the `hook-matrix` job runs after installing the floors over the lockfile (React 18.0.0, Vue 3.3.0, Svelte 5.0.0), and at what the lockfile installs (React 19.3.1, Vue 3.5.44, Svelte 5.57.3), in the unit tests and the browser suites; the SvelteKit renderer is measured against a component compiled by `svelte/compiler` and rendered by the real `svelte/server`.
@@ -76,9 +78,7 @@ The framework hooks and fragment renderers run twice on every push: at the floor
76
78
 
77
79
  <!-- compat-matrix:end -->
78
80
 
79
- Nuxt 4 has no row because no CI job installs it. A copy of the Nuxt example in Nuxt 4.5.2's `app/` layout passed the production suite against the mock admin on 2026-10-02 (54 of 54 cases), and a Nuxt 4.5.2 site installed from the 2.1.0 release candidate built and served its pages on 2026-10-18; neither was a real-admin run.
80
-
81
- SvelteKit 3 has no row either: no CI job installs it. A copy of the SvelteKit example, moved to SvelteKit 3.1.0 with `npx sv migrate sveltekit-3`, built with adapter-node 6 and passed the 32 SvelteKit cases of the browser suite against the mock admin in Chromium, Firefox and WebKit on 2026-10-26; it was not a real-admin run. The example needed the migration's changes ([docs/sveltekit.md](docs/sveltekit.md)); the package needed none.
81
+ Nuxt 4 and SvelteKit 3 have no row yet; each gets one with the release that declares it supported. Since 2026-10-30 CI runs both on every push. The `nuxt4` job runs the Nuxt example in Nuxt 4.6.3's `app/` layout, and the `sveltekit3` job runs the SvelteKit example migrated to SvelteKit 3.1.1 with `npx sv migrate sveltekit-3`. Both run against the mock admin in Chromium, Firefox and WebKit, and `real-payload-surfaces` drives both from the real admin in the same three engines. The SvelteKit example needed the migration's changes ([docs/sveltekit.md](docs/sveltekit.md)); the package needed no change for either.
82
82
 
83
83
  **A client-rendered app takes a hook.** `useLivePreviewDocument()` from `payload-live-preview/react` or `payload-live-preview/vue` returns the merged document and re-renders your tree. Payload 3 updates use the method-override merge request; Payload 2 scalar updates settle locally and raw relationships use schema-based collection GETs. A newer update aborts any request in flight; an HTTP error is refused instead of becoming the document; each hook keeps its own state, requests and errors, and every hook on the page follows the document the admin sends, whichever one it started from ([docs/react.md](docs/react.md), [docs/vue.md](docs/vue.md)). The official [`@payloadcms/live-preview-react`](https://payloadcms.com/docs/live-preview/client) / `-vue` hooks ship in lockstep with Payload and remain the safe default if that matters more to you; running either alongside the DOM runtime on one page: [docs/interop.md](docs/interop.md).
84
84
 
@@ -2,8 +2,8 @@ import { L as LivePreviewAstroOptions } from '../../middleware-CI-UTf6R.js';
2
2
  export { a as LivePreviewMiddleware, c as createLivePreviewMiddleware } from '../../middleware-CI-UTf6R.js';
3
3
  import { h as hasPreviewIntent } from '../../options-CnYybG51.js';
4
4
  export { P as PreviewAdapterOptions, a as PreviewRequestLike, b as PreviewRequestOptions, c as PreviewSignal } from '../../options-CnYybG51.js';
5
- import { F as FragmentEndpointOptions$1, a as FragmentRegistry$1, b as FragmentRegistryEntry$1, c as FragmentRenderer$1 } from '../../fragment-endpoint-DGGLIijM.js';
6
- export { d as FragmentRenderInput } from '../../fragment-endpoint-DGGLIijM.js';
5
+ import { F as FragmentEndpointOptions$1, a as FragmentRegistry$1, b as FragmentRegistryEntry$1, c as FragmentRenderer$1 } from '../../fragment-endpoint-CLRpNQ3n.js';
6
+ export { d as FragmentRenderInput } from '../../fragment-endpoint-CLRpNQ3n.js';
7
7
  export { A as AUTHORIZATION_LOCALS_KEY, a as AUTHORIZATION_OUTCOME_LOCALS_KEY, L as LivePreviewLocals, N as NONCE_LOCALS_KEY } from '../../locals-zz2gi9dj.js';
8
8
 
9
9
  /**