Skip to content

Commit

Permalink
fix seo plp to search pages (#226)
Browse files Browse the repository at this point in the history
* fix seo plp to search pages

* update apps version
  • Loading branch information
guitavano committed Sep 18, 2023
1 parent 6c069e5 commit 457bc5e
Show file tree
Hide file tree
Showing 38 changed files with 73 additions and 51 deletions.
11 changes: 9 additions & 2 deletions components/seo/Metatags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ import Preview from "./components/Preview.tsx";
import type { Props } from "./types.ts";

function Metatags(props: Props) {
const { titleTemplate = "", context, type, themeColor, favicon } = props;
const {
titleTemplate = "",
descriptionTemplate = "",
context,
type,
themeColor,
favicon,
} = props;
const twitterCard = type === "website" ? "summary" : "summary_large_image";

const tags = context?.["@type"] === "ProductDetailsPage"
? tagsFromProduct(context, titleTemplate)
: context?.["@type"] === "ProductListingPage"
? tagsFromListing(context, titleTemplate)
? tagsFromListing(context, titleTemplate, descriptionTemplate)
: null;

const { title, description, image, canonical } = handleSEO(props, tags);
Expand Down
8 changes: 7 additions & 1 deletion components/seo/SEOPLP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ export interface Props {
page: LoaderReturnType<ProductListingPage | null>;
/**
* @title Title template
* @description add a %s whenever you want it to be replaced with the product name
* @description add a %s whenever you want it to be replaced with the product name, category name or search term
* @default %s | Deco.cx
*/
titleTemplate?: string;
/** @title Page Title override */
title?: string;
/**
* @title Description template
* @description add a %s whenever you want it to be replaced with the product name, category name or search term
* @default %s | Deco.cx
*/
descriptionTemplate?: string;
/** @title Metatag description override */
description?: string;
/** @description Recommended: 16 x 16 px */
Expand Down
6 changes: 6 additions & 0 deletions components/seo/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ export interface Props {
*/
titleTemplate?: string;
description?: string;
/**
* @title Title template
* @description add a %s whenever you want it to be replaced with the category name or search term
* @default %s | Deco.cx
*/
descriptionTemplate?: string;
/** @default website */
type?: OGType;
/** @description Recommended: 1200 x 630 px (up to 5MB) */
Expand Down
2 changes: 1 addition & 1 deletion functions/requestToParam.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FunctionContext, LoaderFunction } from "deco/types.ts";
import type { RequestURLParam } from "https://denopkg.com/deco-cx/apps@0.6.7/website/functions/requestToParam.ts";
import type { RequestURLParam } from "https://denopkg.com/deco-cx/apps@0.7.4/website/functions/requestToParam.ts";

export type { RequestURLParam };
export interface Props {
Expand Down
4 changes: 2 additions & 2 deletions loaders/vtex/legacy/suggestions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import type { Props } from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/suggestions.ts";
import _suggestions from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/suggestions.ts";
import type { Props } from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/suggestions.ts";
import _suggestions from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/suggestions.ts";

const loader = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/analytics/sendEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/analytics/sendEvent.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/analytics/sendEvent.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/addItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/addItems.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/addItems.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/getInstallment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/getInstallment.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/getInstallment.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/api/checkout/pub/orderForm/-orderFormId-/installments
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/removeItemAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/removeItemAttachment.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/removeItemAttachment.ts";

const action = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/removeItems.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/removeItems.ts";
import base from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/removeItems.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items/removeAll
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/simulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SimulationOrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/simulation.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/simulation.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForms/simulation
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateAttachment.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateAttachment.ts";

const action = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateCoupons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateCoupons.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateCoupons.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/coupons
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateItemAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateItemAttachment.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateItemAttachment.ts";

const action = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateItemPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateItemPrice.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateItemPrice.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#put-/api/checkout/pub/orderForm/-orderFormId-/items/-itemIndex-/price
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateItems.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateItems.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items/update
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateProfile.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateProfile.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#patch-/api/checkout/pub/orderForm/-orderFormId-/profile
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/cart/updateUser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import type { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/cart/updateUser.ts";
import base from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/cart/updateUser.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/checkout/changeToAnonymousUser/-orderFormId-
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/newletter/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/newsletter/subscribe.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/newsletter/subscribe.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/notifyme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/notifyme.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/notifyme.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/wishlist/addItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { WishlistItem } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/wishlist/addItem.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/wishlist/addItem.ts";

const action = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/actions/wishlist/removeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { WishlistItem } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/actions/wishlist/removeItem.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/actions/wishlist/removeItem.ts";

const action = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/handlers/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import {
default as base,
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/handlers/sitemap.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/handlers/sitemap.ts";

/**
* @title Sitemap Proxy
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/loaders/cart.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { OrderForm } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/cart.ts";
import base from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/cart.ts";

/**
* @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/api/checkout/pub/orderForm
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/intelligentSearch/productDetailsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productDetailsPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productDetailsPage.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productDetailsPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productDetailsPage.ts";

/**
* @title VTEX Intelligent Search - Product Details Page
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/intelligentSearch/productList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productList.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productList.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productList.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productList.ts";

/**
* @title VTEX Intelligent Search - Search Products
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/intelligentSearch/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productListingPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productListingPage.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/productListingPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/productListingPage.ts";

/**
* @title VTEX Intelligent Search - Product Listing page
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/intelligentSearch/suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/suggestions.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/suggestions.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/intelligentSearch/suggestions.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/intelligentSearch/suggestions.ts";

/**
* @title VTEX Intelligent Search - Search Suggestions
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/legacy/productDetailsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productDetailsPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productDetailsPage.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productDetailsPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productDetailsPage.ts";

/**
* @title VTEX Catalog - Product Details Page
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/legacy/productList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productList.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productList.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productList.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productList.ts";

/**
* @title VTEX Catalog - Search Products
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/legacy/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productListingPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productListingPage.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/productListingPage.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/productListingPage.ts";

/**
* @title VTEX Catalog - Product Listing Page
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/loaders/legacy/relatedProductsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/relatedProductsLoader.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/relatedProductsLoader.ts";
export type {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/legacy/relatedProductsLoader.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/legacy/relatedProductsLoader.ts";

/**
* @title VTEX Related Products - Catalog
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/loaders/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/navbar.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/navbar.ts";

const loader = (
props: Props,
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/loaders/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/user.ts";
import base from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/user.ts";

export interface User {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion packs/vtex/loaders/wishlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { WishlistItem } from "deco-sites/std/packs/vtex/types.ts";
import { transform } from "deco-sites/std/packs/vtex/utils/future.ts";
import base, {
Props,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/loaders/wishlist.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/loaders/wishlist.ts";

const loader = (
props: Props,
Expand Down
4 changes: 2 additions & 2 deletions packs/vtex/utils/future.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts";
import type {
AppContext,
} from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/mod.ts";
import App from "https://denopkg.com/deco-cx/apps@0.6.7/vtex/mod.ts";
} from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/mod.ts";
import App from "https://denopkg.com/deco-cx/apps@0.7.4/vtex/mod.ts";

export const transform = (ctx: Context): AppContext =>
({
Expand Down
2 changes: 1 addition & 1 deletion utils/fetch.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fetcher from "https://denopkg.com/deco-cx/apps@0.6.7/utils/fetch.ts";
import * as fetcher from "https://denopkg.com/deco-cx/apps@0.7.4/utils/fetch.ts";

export interface FetchOptions {
withProxyCache?: boolean;
Expand Down
Loading

0 comments on commit 457bc5e

Please sign in to comment.