@usethrottle/builder-react 0.5.1 → 0.5.3
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/{chunk-G6I4RIXU.js → chunk-HE6MD2RZ.js} +1673 -120
- package/dist/{chunk-UNL4JWZS.cjs → chunk-J2IHOBDX.cjs} +1690 -137
- package/dist/index.cjs +1716 -201
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1672 -157
- package/dist/next.cjs +70 -36
- package/dist/next.d.cts +7 -1
- package/dist/next.d.ts +7 -1
- package/dist/next.js +46 -12
- package/dist/server.cjs +26 -24
- package/dist/server.d.cts +111 -86
- package/dist/server.d.ts +111 -86
- package/dist/server.js +3 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -464,6 +464,10 @@ type AssetImageProps = {
|
|
|
464
464
|
sizes?: string;
|
|
465
465
|
className?: string;
|
|
466
466
|
loading?: 'lazy' | 'eager';
|
|
467
|
+
/** `high` for the page's main (LCP) image. Absent by default, so the markup is unchanged. */
|
|
468
|
+
fetchPriority?: 'high';
|
|
469
|
+
/** False leaves the inline `aspect-ratio` out, for a caller that reserves the space with its own CSS (art direction). Default true. */
|
|
470
|
+
reserveSpace?: boolean;
|
|
467
471
|
style?: CSSProperties;
|
|
468
472
|
};
|
|
469
473
|
/**
|
|
@@ -674,10 +678,12 @@ declare function BuilderSlot({ name, context }: {
|
|
|
674
678
|
* A template document (`product`, `cart`, `not-found`, ...) rendered with the provider's registry, over the loader's
|
|
675
679
|
* `context` (`context.product`, `context.listing`, `context.route`, ...). The layout's header and footer sit around it.
|
|
676
680
|
*/
|
|
677
|
-
declare function BuilderTemplateView({ name, part, context, }: {
|
|
681
|
+
declare function BuilderTemplateView({ name, part, context, frame, }: {
|
|
678
682
|
name: TemplateName;
|
|
679
683
|
part: LoadedPart;
|
|
680
684
|
context?: unknown;
|
|
685
|
+
/** The template's `meta.frame`. `none` hides the layout's Builder header and footer; absent or `site` changes nothing. */
|
|
686
|
+
frame?: 'site' | 'none' | undefined;
|
|
681
687
|
}): ReactNode;
|
|
682
688
|
/**
|
|
683
689
|
* What the route resolver knows about the page it renders and the provider above it (in the layout) cannot: the
|
package/dist/index.d.ts
CHANGED
|
@@ -464,6 +464,10 @@ type AssetImageProps = {
|
|
|
464
464
|
sizes?: string;
|
|
465
465
|
className?: string;
|
|
466
466
|
loading?: 'lazy' | 'eager';
|
|
467
|
+
/** `high` for the page's main (LCP) image. Absent by default, so the markup is unchanged. */
|
|
468
|
+
fetchPriority?: 'high';
|
|
469
|
+
/** False leaves the inline `aspect-ratio` out, for a caller that reserves the space with its own CSS (art direction). Default true. */
|
|
470
|
+
reserveSpace?: boolean;
|
|
467
471
|
style?: CSSProperties;
|
|
468
472
|
};
|
|
469
473
|
/**
|
|
@@ -674,10 +678,12 @@ declare function BuilderSlot({ name, context }: {
|
|
|
674
678
|
* A template document (`product`, `cart`, `not-found`, ...) rendered with the provider's registry, over the loader's
|
|
675
679
|
* `context` (`context.product`, `context.listing`, `context.route`, ...). The layout's header and footer sit around it.
|
|
676
680
|
*/
|
|
677
|
-
declare function BuilderTemplateView({ name, part, context, }: {
|
|
681
|
+
declare function BuilderTemplateView({ name, part, context, frame, }: {
|
|
678
682
|
name: TemplateName;
|
|
679
683
|
part: LoadedPart;
|
|
680
684
|
context?: unknown;
|
|
685
|
+
/** The template's `meta.frame`. `none` hides the layout's Builder header and footer; absent or `site` changes nothing. */
|
|
686
|
+
frame?: 'site' | 'none' | undefined;
|
|
681
687
|
}): ReactNode;
|
|
682
688
|
/**
|
|
683
689
|
* What the route resolver knows about the page it renders and the provider above it (in the layout) cannot: the
|