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.
- package/README.md +2 -0
- 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/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +10 -3
- package/dist/client.d.ts +10 -3
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/codegen-astro.js.map +1 -1
- package/dist/codegen-cli.js.map +1 -1
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.cjs.map +1 -1
- package/dist/codegen.d.cts +1 -16
- package/dist/codegen.d.ts +1 -16
- package/dist/codegen.js +1 -1
- package/dist/codegen.js.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +10 -3
- package/dist/core.d.ts +10 -3
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/doctor-cli.d.ts +1 -1
- package/dist/doctor-cli.js +1 -1
- package/dist/doctor-cli.js.map +1 -1
- package/dist/doctor.d.ts +2 -2
- package/dist/doctor.js +1 -1
- package/dist/doctor.js.map +1 -1
- package/dist/fragment.cjs +1 -1
- package/dist/fragment.cjs.map +1 -1
- package/dist/fragment.d.cts +5 -1
- package/dist/fragment.d.ts +5 -1
- package/dist/fragment.js +1 -1
- package/dist/fragment.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lean.cjs +1 -1
- package/dist/lean.cjs.map +1 -1
- package/dist/lean.js +1 -1
- package/dist/lean.js.map +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.d.cts +5 -1
- package/dist/plugins.d.ts +5 -1
- package/dist/plugins.js +1 -1
- package/dist/plugins.js.map +1 -1
- package/dist/{probe-DX_4wsBu.d.ts → probe-Bzm4fYFL.d.ts} +5 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -158,12 +158,15 @@ interface LivePreviewInspection {
|
|
|
158
158
|
/**
|
|
159
159
|
* The fidelity verdicts as `inspect()` reports them (LP0411). A positive
|
|
160
160
|
* `unfaithful` beside `escalated: 0` is a page that keeps a degraded patch —
|
|
161
|
-
* because `mode` says so, or because
|
|
162
|
-
* `route.handler` is there to escalate to
|
|
161
|
+
* because `mode` says so, or because `canEscalate` is false: neither
|
|
162
|
+
* `fragments.handler` nor `route.handler` is there to escalate to, which the
|
|
163
|
+
* runtime also says once as LP0808 when `mode` is `'escalate'`.
|
|
163
164
|
*/
|
|
164
165
|
interface InspectionFidelity {
|
|
165
166
|
/** `onUnfaithfulPatch` as resolved from both of its names. */
|
|
166
167
|
readonly mode: 'ignore' | 'warn' | 'escalate';
|
|
168
|
+
/** Whether a fragment or route strategy exists for `'escalate'` to hand a patch to. */
|
|
169
|
+
readonly canEscalate: boolean;
|
|
167
170
|
/** Bindings reported unfaithful since start — once per element, like LP0411, and under every mode. */
|
|
168
171
|
readonly unfaithful: number;
|
|
169
172
|
/** Of those, how many were handed to the fragment or route strategy. */
|
|
@@ -302,10 +305,12 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
302
305
|
readonly PluginIncompatible: "LP0103";
|
|
303
306
|
/** The page carries the lean runtime and needs a feature that profile leaves out. */
|
|
304
307
|
readonly ProfileFeatureOmitted: "LP0104";
|
|
305
|
-
/** An update named
|
|
308
|
+
/** An update named an empty field with no binding anchor on the page; an edit to it has nowhere to land. */
|
|
306
309
|
readonly OrphanField: "LP0201";
|
|
307
310
|
/** Owner scoping is on and the update names no document it could belong to. */
|
|
308
311
|
readonly UnattributableUpdate: "LP0202";
|
|
312
|
+
/** An update carried a value for a field the page binds nowhere; editing it changes nothing on this page. */
|
|
313
|
+
readonly UnboundField: "LP0203";
|
|
309
314
|
/** The visibility gate held offscreen writes back until they scroll into view. */
|
|
310
315
|
readonly VisibilityGateDeferred: "LP0301";
|
|
311
316
|
/** A value was refused because the attribute or the value itself is unsafe. */
|
|
@@ -382,6 +387,8 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
382
387
|
readonly FragmentStrategyUnavailable: "LP0806";
|
|
383
388
|
/** A revision changed a field with no binding; `onUnfaithfulPatch` refreshed the route. */
|
|
384
389
|
readonly UnboundChangeRefresh: "LP0807";
|
|
390
|
+
/** `onUnfaithfulPatch: 'escalate'` found no route or fragment strategy to hand an unfaithful patch to; the page keeps it. */
|
|
391
|
+
readonly EscalationUnavailable: "LP0808";
|
|
385
392
|
/** A readiness row is not yet at its 2.0 value; `pll doctor --v2` reports it. */
|
|
386
393
|
readonly V2ReadinessGap: "LP0709";
|
|
387
394
|
/** The preview runtime is served to anonymous visitors, not only inside the admin frame. */
|
package/dist/index.d.ts
CHANGED
|
@@ -158,12 +158,15 @@ interface LivePreviewInspection {
|
|
|
158
158
|
/**
|
|
159
159
|
* The fidelity verdicts as `inspect()` reports them (LP0411). A positive
|
|
160
160
|
* `unfaithful` beside `escalated: 0` is a page that keeps a degraded patch —
|
|
161
|
-
* because `mode` says so, or because
|
|
162
|
-
* `route.handler` is there to escalate to
|
|
161
|
+
* because `mode` says so, or because `canEscalate` is false: neither
|
|
162
|
+
* `fragments.handler` nor `route.handler` is there to escalate to, which the
|
|
163
|
+
* runtime also says once as LP0808 when `mode` is `'escalate'`.
|
|
163
164
|
*/
|
|
164
165
|
interface InspectionFidelity {
|
|
165
166
|
/** `onUnfaithfulPatch` as resolved from both of its names. */
|
|
166
167
|
readonly mode: 'ignore' | 'warn' | 'escalate';
|
|
168
|
+
/** Whether a fragment or route strategy exists for `'escalate'` to hand a patch to. */
|
|
169
|
+
readonly canEscalate: boolean;
|
|
167
170
|
/** Bindings reported unfaithful since start — once per element, like LP0411, and under every mode. */
|
|
168
171
|
readonly unfaithful: number;
|
|
169
172
|
/** Of those, how many were handed to the fragment or route strategy. */
|
|
@@ -302,10 +305,12 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
302
305
|
readonly PluginIncompatible: "LP0103";
|
|
303
306
|
/** The page carries the lean runtime and needs a feature that profile leaves out. */
|
|
304
307
|
readonly ProfileFeatureOmitted: "LP0104";
|
|
305
|
-
/** An update named
|
|
308
|
+
/** An update named an empty field with no binding anchor on the page; an edit to it has nowhere to land. */
|
|
306
309
|
readonly OrphanField: "LP0201";
|
|
307
310
|
/** Owner scoping is on and the update names no document it could belong to. */
|
|
308
311
|
readonly UnattributableUpdate: "LP0202";
|
|
312
|
+
/** An update carried a value for a field the page binds nowhere; editing it changes nothing on this page. */
|
|
313
|
+
readonly UnboundField: "LP0203";
|
|
309
314
|
/** The visibility gate held offscreen writes back until they scroll into view. */
|
|
310
315
|
readonly VisibilityGateDeferred: "LP0301";
|
|
311
316
|
/** A value was refused because the attribute or the value itself is unsafe. */
|
|
@@ -382,6 +387,8 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
382
387
|
readonly FragmentStrategyUnavailable: "LP0806";
|
|
383
388
|
/** A revision changed a field with no binding; `onUnfaithfulPatch` refreshed the route. */
|
|
384
389
|
readonly UnboundChangeRefresh: "LP0807";
|
|
390
|
+
/** `onUnfaithfulPatch: 'escalate'` found no route or fragment strategy to hand an unfaithful patch to; the page keeps it. */
|
|
391
|
+
readonly EscalationUnavailable: "LP0808";
|
|
385
392
|
/** A readiness row is not yet at its 2.0 value; `pll doctor --v2` reports it. */
|
|
386
393
|
readonly V2ReadinessGap: "LP0709";
|
|
387
394
|
/** The preview runtime is served to anonymous visitors, not only inside the admin frame. */
|