@usethrottle/builder-react 0.5.2 → 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/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