payload-live-preview 2.0.3 → 2.0.4

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 (61) hide show
  1. package/README.md +2 -0
  2. package/dist/adapters/astro/index.js +1 -1
  3. package/dist/adapters/astro/index.js.map +1 -1
  4. package/dist/adapters/astro/middleware-entry.js +1 -1
  5. package/dist/adapters/astro/middleware-entry.js.map +1 -1
  6. package/dist/adapters/nextjs/index.js +1 -1
  7. package/dist/adapters/nextjs/index.js.map +1 -1
  8. package/dist/adapters/nuxt/index.js +1 -1
  9. package/dist/adapters/nuxt/index.js.map +1 -1
  10. package/dist/adapters/sveltekit/index.js +1 -1
  11. package/dist/adapters/sveltekit/index.js.map +1 -1
  12. package/dist/client.cjs +1 -1
  13. package/dist/client.cjs.map +1 -1
  14. package/dist/client.d.cts +10 -3
  15. package/dist/client.d.ts +10 -3
  16. package/dist/client.js +1 -1
  17. package/dist/client.js.map +1 -1
  18. package/dist/codegen-astro.js.map +1 -1
  19. package/dist/codegen-cli.js.map +1 -1
  20. package/dist/codegen.cjs +1 -1
  21. package/dist/codegen.cjs.map +1 -1
  22. package/dist/codegen.d.cts +1 -16
  23. package/dist/codegen.d.ts +1 -16
  24. package/dist/codegen.js +1 -1
  25. package/dist/codegen.js.map +1 -1
  26. package/dist/core.cjs +1 -1
  27. package/dist/core.cjs.map +1 -1
  28. package/dist/core.d.cts +10 -3
  29. package/dist/core.d.ts +10 -3
  30. package/dist/core.js +1 -1
  31. package/dist/core.js.map +1 -1
  32. package/dist/doctor-cli.d.ts +1 -1
  33. package/dist/doctor-cli.js +1 -1
  34. package/dist/doctor-cli.js.map +1 -1
  35. package/dist/doctor.d.ts +2 -2
  36. package/dist/doctor.js +1 -1
  37. package/dist/doctor.js.map +1 -1
  38. package/dist/fragment.cjs +1 -1
  39. package/dist/fragment.cjs.map +1 -1
  40. package/dist/fragment.d.cts +5 -1
  41. package/dist/fragment.d.ts +5 -1
  42. package/dist/fragment.js +1 -1
  43. package/dist/fragment.js.map +1 -1
  44. package/dist/index.cjs +1 -1
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +10 -3
  47. package/dist/index.d.ts +10 -3
  48. package/dist/index.js +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/lean.cjs +1 -1
  51. package/dist/lean.cjs.map +1 -1
  52. package/dist/lean.js +1 -1
  53. package/dist/lean.js.map +1 -1
  54. package/dist/plugins.cjs +1 -1
  55. package/dist/plugins.cjs.map +1 -1
  56. package/dist/plugins.d.cts +5 -1
  57. package/dist/plugins.d.ts +5 -1
  58. package/dist/plugins.js +1 -1
  59. package/dist/plugins.js.map +1 -1
  60. package/dist/{probe-DX_4wsBu.d.ts → probe-Bzm4fYFL.d.ts} +5 -1
  61. package/package.json +1 -1
@@ -27,10 +27,12 @@ declare const DIAGNOSTIC_CODES: Readonly<{
27
27
  readonly PluginIncompatible: "LP0103";
28
28
  /** The page carries the lean runtime and needs a feature that profile leaves out. */
29
29
  readonly ProfileFeatureOmitted: "LP0104";
30
- /** An update named a field with no binding anchor on the page. */
30
+ /** An update named an empty field with no binding anchor on the page; an edit to it has nowhere to land. */
31
31
  readonly OrphanField: "LP0201";
32
32
  /** Owner scoping is on and the update names no document it could belong to. */
33
33
  readonly UnattributableUpdate: "LP0202";
34
+ /** An update carried a value for a field the page binds nowhere; editing it changes nothing on this page. */
35
+ readonly UnboundField: "LP0203";
34
36
  /** The visibility gate held offscreen writes back until they scroll into view. */
35
37
  readonly VisibilityGateDeferred: "LP0301";
36
38
  /** A value was refused because the attribute or the value itself is unsafe. */
@@ -107,6 +109,8 @@ declare const DIAGNOSTIC_CODES: Readonly<{
107
109
  readonly FragmentStrategyUnavailable: "LP0806";
108
110
  /** A revision changed a field with no binding; `onUnfaithfulPatch` refreshed the route. */
109
111
  readonly UnboundChangeRefresh: "LP0807";
112
+ /** `onUnfaithfulPatch: 'escalate'` found no route or fragment strategy to hand an unfaithful patch to; the page keeps it. */
113
+ readonly EscalationUnavailable: "LP0808";
110
114
  /** A readiness row is not yet at its 2.0 value; `pll doctor --v2` reports it. */
111
115
  readonly V2ReadinessGap: "LP0709";
112
116
  /** The preview runtime is served to anonymous visitors, not only inside the admin frame. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-live-preview",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Live preview for Payload CMS on server-rendered and static frontends (Astro, Next.js, SvelteKit, Nuxt, plain HTML): DOM patches, server-rendered fragments, React and Vue hooks. Strict by default, zero dependencies.",
5
5
  "author": "relative23",
6
6
  "license": "MIT",