payload-live-preview 2.0.2 → 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 +13 -8
- 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 +13 -5
- package/dist/core.d.ts +13 -5
- 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 +13 -5
- package/dist/index.d.ts +13 -5
- 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/lexical.cjs +1 -1
- package/dist/lexical.cjs.map +1 -1
- package/dist/lexical.js +1 -1
- package/dist/lexical.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-DqaItcwX.d.ts → probe-Bzm4fYFL.d.ts} +11 -1
- package/dist/server.cjs +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/structural.cjs +2 -2
- package/dist/structural.cjs.map +1 -1
- package/dist/structural.js +2 -2
- package/dist/structural.js.map +1 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -154,12 +154,15 @@ interface LivePreviewInspection {
|
|
|
154
154
|
/**
|
|
155
155
|
* The fidelity verdicts as `inspect()` reports them (LP0411). A positive
|
|
156
156
|
* `unfaithful` beside `escalated: 0` is a page that keeps a degraded patch —
|
|
157
|
-
* because `mode` says so, or because
|
|
158
|
-
* `route.handler` is there to escalate to
|
|
157
|
+
* because `mode` says so, or because `canEscalate` is false: neither
|
|
158
|
+
* `fragments.handler` nor `route.handler` is there to escalate to, which the
|
|
159
|
+
* runtime also says once as LP0808 when `mode` is `'escalate'`.
|
|
159
160
|
*/
|
|
160
161
|
interface InspectionFidelity {
|
|
161
162
|
/** `onUnfaithfulPatch` as resolved from both of its names. */
|
|
162
163
|
readonly mode: 'ignore' | 'warn' | 'escalate';
|
|
164
|
+
/** Whether a fragment or route strategy exists for `'escalate'` to hand a patch to. */
|
|
165
|
+
readonly canEscalate: boolean;
|
|
163
166
|
/** Bindings reported unfaithful since start — once per element, like LP0411, and under every mode. */
|
|
164
167
|
readonly unfaithful: number;
|
|
165
168
|
/** Of those, how many were handed to the fragment or route strategy. */
|
|
@@ -277,10 +280,12 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
277
280
|
readonly PluginIncompatible: "LP0103";
|
|
278
281
|
/** The page carries the lean runtime and needs a feature that profile leaves out. */
|
|
279
282
|
readonly ProfileFeatureOmitted: "LP0104";
|
|
280
|
-
/** An update named
|
|
283
|
+
/** An update named an empty field with no binding anchor on the page; an edit to it has nowhere to land. */
|
|
281
284
|
readonly OrphanField: "LP0201";
|
|
282
285
|
/** Owner scoping is on and the update names no document it could belong to. */
|
|
283
286
|
readonly UnattributableUpdate: "LP0202";
|
|
287
|
+
/** An update carried a value for a field the page binds nowhere; editing it changes nothing on this page. */
|
|
288
|
+
readonly UnboundField: "LP0203";
|
|
284
289
|
/** The visibility gate held offscreen writes back until they scroll into view. */
|
|
285
290
|
readonly VisibilityGateDeferred: "LP0301";
|
|
286
291
|
/** A value was refused because the attribute or the value itself is unsafe. */
|
|
@@ -357,6 +362,8 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
357
362
|
readonly FragmentStrategyUnavailable: "LP0806";
|
|
358
363
|
/** A revision changed a field with no binding; `onUnfaithfulPatch` refreshed the route. */
|
|
359
364
|
readonly UnboundChangeRefresh: "LP0807";
|
|
365
|
+
/** `onUnfaithfulPatch: 'escalate'` found no route or fragment strategy to hand an unfaithful patch to; the page keeps it. */
|
|
366
|
+
readonly EscalationUnavailable: "LP0808";
|
|
360
367
|
/** A readiness row is not yet at its 2.0 value; `pll doctor --v2` reports it. */
|
|
361
368
|
readonly V2ReadinessGap: "LP0709";
|
|
362
369
|
/** The preview runtime is served to anonymous visitors, not only inside the admin frame. */
|
package/dist/client.d.ts
CHANGED
|
@@ -154,12 +154,15 @@ interface LivePreviewInspection {
|
|
|
154
154
|
/**
|
|
155
155
|
* The fidelity verdicts as `inspect()` reports them (LP0411). A positive
|
|
156
156
|
* `unfaithful` beside `escalated: 0` is a page that keeps a degraded patch —
|
|
157
|
-
* because `mode` says so, or because
|
|
158
|
-
* `route.handler` is there to escalate to
|
|
157
|
+
* because `mode` says so, or because `canEscalate` is false: neither
|
|
158
|
+
* `fragments.handler` nor `route.handler` is there to escalate to, which the
|
|
159
|
+
* runtime also says once as LP0808 when `mode` is `'escalate'`.
|
|
159
160
|
*/
|
|
160
161
|
interface InspectionFidelity {
|
|
161
162
|
/** `onUnfaithfulPatch` as resolved from both of its names. */
|
|
162
163
|
readonly mode: 'ignore' | 'warn' | 'escalate';
|
|
164
|
+
/** Whether a fragment or route strategy exists for `'escalate'` to hand a patch to. */
|
|
165
|
+
readonly canEscalate: boolean;
|
|
163
166
|
/** Bindings reported unfaithful since start — once per element, like LP0411, and under every mode. */
|
|
164
167
|
readonly unfaithful: number;
|
|
165
168
|
/** Of those, how many were handed to the fragment or route strategy. */
|
|
@@ -277,10 +280,12 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
277
280
|
readonly PluginIncompatible: "LP0103";
|
|
278
281
|
/** The page carries the lean runtime and needs a feature that profile leaves out. */
|
|
279
282
|
readonly ProfileFeatureOmitted: "LP0104";
|
|
280
|
-
/** An update named
|
|
283
|
+
/** An update named an empty field with no binding anchor on the page; an edit to it has nowhere to land. */
|
|
281
284
|
readonly OrphanField: "LP0201";
|
|
282
285
|
/** Owner scoping is on and the update names no document it could belong to. */
|
|
283
286
|
readonly UnattributableUpdate: "LP0202";
|
|
287
|
+
/** An update carried a value for a field the page binds nowhere; editing it changes nothing on this page. */
|
|
288
|
+
readonly UnboundField: "LP0203";
|
|
284
289
|
/** The visibility gate held offscreen writes back until they scroll into view. */
|
|
285
290
|
readonly VisibilityGateDeferred: "LP0301";
|
|
286
291
|
/** A value was refused because the attribute or the value itself is unsafe. */
|
|
@@ -357,6 +362,8 @@ declare const DIAGNOSTIC_CODES: Readonly<{
|
|
|
357
362
|
readonly FragmentStrategyUnavailable: "LP0806";
|
|
358
363
|
/** A revision changed a field with no binding; `onUnfaithfulPatch` refreshed the route. */
|
|
359
364
|
readonly UnboundChangeRefresh: "LP0807";
|
|
365
|
+
/** `onUnfaithfulPatch: 'escalate'` found no route or fragment strategy to hand an unfaithful patch to; the page keeps it. */
|
|
366
|
+
readonly EscalationUnavailable: "LP0808";
|
|
360
367
|
/** A readiness row is not yet at its 2.0 value; `pll doctor --v2` reports it. */
|
|
361
368
|
readonly V2ReadinessGap: "LP0709";
|
|
362
369
|
/** The preview runtime is served to anonymous visitors, not only inside the admin frame. */
|