From 5183f8f3790b8e5aad0716247f7fcdf02e849c79 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Mon, 4 Sep 2023 12:25:32 -0300 Subject: [PATCH] Remove all live occurrences (#220) Signed-off-by: Marcos Candeia --- commerce/butterCMS/client.ts | 2 +- commerce/butterCMS/types.ts | 2 +- commerce/nuvemShop/types.ts | 2 +- commerce/occ/client.ts | 2 +- commerce/shopify/client.ts | 2 +- commerce/vtex/withISFallback.ts | 2 +- commerce/yourViews/withYourViews.ts | 2 +- components/Analytics.tsx | 6 +- components/Markdown.tsx | 2 +- components/seo/SEOPDP.tsx | 2 +- components/seo/SEOPLP.tsx | 2 +- components/seo/types.ts | 2 +- dev.ts | 4 +- functions/butterCMSAds.ts | 2 +- functions/butterCMSBrands.ts | 2 +- functions/butterCMSCategories.ts | 2 +- functions/butterCMSFeaturedPosts.ts | 2 +- functions/butterCMSPage.ts | 2 +- functions/butterCMSPlaces.ts | 2 +- functions/butterCMSPostDetail.ts | 2 +- functions/butterCMSPosts.ts | 2 +- functions/butterCMSRelatedPosts.ts | 2 +- functions/occProductDetailsPage.ts | 5 +- functions/requestToParam.ts | 2 +- functions/shopifyProductDetailsPage.ts | 5 +- functions/shopifyProductList.ts | 5 +- functions/shopifyProductListingPage.ts | 5 +- functions/vndaProductList.ts | 6 +- functions/vndaProductListingPage.ts | 6 +- functions/vtexLegacyProductDetailsPage.ts | 4 +- functions/vtexLegacyProductList.ts | 4 +- functions/vtexLegacyProductListingPage.ts | 4 +- functions/vtexLegacyRelatedProductsLoader.ts | 2 +- functions/vtexNavbar.ts | 4 +- functions/vtexProductDetailsPage.ts | 4 +- functions/vtexProductList.ts | 2 +- functions/vtexProductListingPage.ts | 6 +- functions/vtexSuggestions.ts | 4 +- functions/vtexWishlist.ts | 6 +- handlers/sitemap.ts | 8 +- import_map.json | 2 +- live.gen.ts | 81 +------------------ loaders/vnda/proxy.ts | 2 +- loaders/vtex/legacy/suggestions.ts | 4 +- loaders/vtex/proxy.ts | 2 +- loaders/x/redirects.ts | 2 +- loaders/x/redirectsFromCsv.ts | 2 +- main.ts | 2 +- packs/linxImpulse/accounts/linxImpulse.ts | 4 +- packs/vnda/accounts/vnda.ts | 4 +- packs/vtex/accounts/vtex.ts | 4 +- packs/vtex/actions/analytics/sendEvent.ts | 2 +- packs/vtex/actions/cart/addItems.ts | 2 +- packs/vtex/actions/cart/getInstallment.ts | 2 +- .../vtex/actions/cart/removeItemAttachment.ts | 2 +- packs/vtex/actions/cart/removeItems.ts | 2 +- packs/vtex/actions/cart/simulation.ts | 2 +- packs/vtex/actions/cart/updateAttachment.ts | 2 +- packs/vtex/actions/cart/updateCoupons.ts | 2 +- .../vtex/actions/cart/updateItemAttachment.ts | 2 +- packs/vtex/actions/cart/updateItemPrice.ts | 2 +- packs/vtex/actions/cart/updateItems.ts | 2 +- packs/vtex/actions/cart/updateProfile.ts | 2 +- packs/vtex/actions/cart/updateUser.ts | 2 +- packs/vtex/actions/newletter/subscribe.ts | 2 +- packs/vtex/actions/notifyme.ts | 2 +- packs/vtex/actions/wishlist/addItem.ts | 2 +- packs/vtex/actions/wishlist/removeItem.ts | 2 +- packs/vtex/handlers/sitemap.ts | 2 +- packs/vtex/loaders/cart.ts | 2 +- .../intelligentSearch/productDetailsPage.ts | 4 +- .../loaders/intelligentSearch/productList.ts | 4 +- .../intelligentSearch/productListingPage.ts | 4 +- .../loaders/intelligentSearch/suggestions.ts | 4 +- .../vtex/loaders/legacy/productDetailsPage.ts | 4 +- packs/vtex/loaders/legacy/productList.ts | 4 +- .../vtex/loaders/legacy/productListingPage.ts | 4 +- .../loaders/legacy/relatedProductsLoader.ts | 4 +- packs/vtex/loaders/navbar.ts | 2 +- packs/vtex/loaders/user.ts | 2 +- packs/vtex/loaders/wishlist.ts | 2 +- packs/vtex/types.ts | 2 +- packs/vtex/utils/future.ts | 4 +- plugins/mod.ts | 4 +- plugins/tailwind/mod.ts | 2 +- runtime.ts | 2 +- utils/fetch.server.ts | 2 +- 87 files changed, 124 insertions(+), 209 deletions(-) diff --git a/commerce/butterCMS/client.ts b/commerce/butterCMS/client.ts index 535725ad..a8ee310f 100644 --- a/commerce/butterCMS/client.ts +++ b/commerce/butterCMS/client.ts @@ -1,4 +1,4 @@ -import { Account } from "$live/blocks/account.ts"; +import { Account } from "deco/blocks/account.ts"; import { fetchAPI } from "../../utils/fetch.server.ts"; import { CategoriesData, Page, PostData, PostsData } from "./types.ts"; diff --git a/commerce/butterCMS/types.ts b/commerce/butterCMS/types.ts index 126af5ec..9b3f8bd1 100644 --- a/commerce/butterCMS/types.ts +++ b/commerce/butterCMS/types.ts @@ -1,4 +1,4 @@ -import { LiveState } from "$live/types.ts"; +import { LiveState } from "deco/types.ts"; import { ConfigButterCMS } from "./client.ts"; export type StateButterCMS = LiveState<{ configButterCMS?: ConfigButterCMS }>; diff --git a/commerce/nuvemShop/types.ts b/commerce/nuvemShop/types.ts index 20620c0c..9eddb488 100644 --- a/commerce/nuvemShop/types.ts +++ b/commerce/nuvemShop/types.ts @@ -1,4 +1,4 @@ -import type { FnContext } from "$live/types.ts"; +import type { FnContext } from "deco/types.ts"; export interface Account { /** diff --git a/commerce/occ/client.ts b/commerce/occ/client.ts index 65139448..b69cb0ee 100644 --- a/commerce/occ/client.ts +++ b/commerce/occ/client.ts @@ -1,5 +1,5 @@ -import { Account } from "$live/blocks/account.ts"; import { fetchAPI } from "deco-sites/std/utils/fetch.server.ts"; +import { Account } from "deco/blocks/account.ts"; import { CategorySearchResult, OccProductPage, diff --git a/commerce/shopify/client.ts b/commerce/shopify/client.ts index bcd21033..fd4c94c6 100644 --- a/commerce/shopify/client.ts +++ b/commerce/shopify/client.ts @@ -1,5 +1,5 @@ -import { Account } from "$live/blocks/account.ts"; import { fetchAPI } from "deco-sites/std/utils/fetch.server.ts"; +import { Account } from "deco/blocks/account.ts"; import { Product } from "./types.ts"; const gql = (x: TemplateStringsArray) => x.toString().trim(); diff --git a/commerce/vtex/withISFallback.ts b/commerce/vtex/withISFallback.ts index cddecde4..35a11955 100644 --- a/commerce/vtex/withISFallback.ts +++ b/commerce/vtex/withISFallback.ts @@ -1,4 +1,4 @@ -import { LoaderFunction } from "$live/types.ts"; +import { LoaderFunction } from "deco/types.ts"; import { HttpError } from "../../utils/HttpError.ts"; const message = ` diff --git a/commerce/yourViews/withYourViews.ts b/commerce/yourViews/withYourViews.ts index c64ffe84..9f376f8f 100644 --- a/commerce/yourViews/withYourViews.ts +++ b/commerce/yourViews/withYourViews.ts @@ -1,4 +1,4 @@ -import type { LiveState, LoaderFunction } from "$live/types.ts"; +import type { LiveState, LoaderFunction } from "deco/types.ts"; import type { Product, ProductDetailsPage, diff --git a/components/Analytics.tsx b/components/Analytics.tsx index 11864314..d0c6d601 100644 --- a/components/Analytics.tsx +++ b/components/Analytics.tsx @@ -1,7 +1,7 @@ -import { context } from "$live/live.ts"; -import GoogleTagManager from "partytown/integrations/GTM.tsx"; -import GoogleTagScript from "partytown/integrations/GTAG.tsx"; +import { context } from "deco/live.ts"; import Script from "partytown/Script.tsx"; +import GoogleTagScript from "partytown/integrations/GTAG.tsx"; +import GoogleTagManager from "partytown/integrations/GTM.tsx"; import { sendAnalyticsEvent } from "../commerce/sdk/sendAnalyticsEvent.ts"; export interface Props { diff --git a/components/Markdown.tsx b/components/Markdown.tsx index 021cc74e..79b29f80 100644 --- a/components/Markdown.tsx +++ b/components/Markdown.tsx @@ -1,5 +1,5 @@ +import { LoaderReturnType } from "deco/types.ts"; import { marky } from "https://deno.land/x/marky@v1.1.6/mod.ts"; -import { LoaderReturnType } from "$live/types.ts"; export type Props = { text: LoaderReturnType; diff --git a/components/seo/SEOPDP.tsx b/components/seo/SEOPDP.tsx index 65e12d50..9a9a58e5 100644 --- a/components/seo/SEOPDP.tsx +++ b/components/seo/SEOPDP.tsx @@ -1,6 +1,6 @@ -import type { LoaderReturnType } from "$live/types.ts"; import { DEFAULT_CATEGORY_SEPARATOR } from "deco-sites/std/commerce/utils.ts"; import type { Image as LiveImage } from "deco-sites/std/components/types.ts"; +import type { LoaderReturnType } from "deco/types.ts"; import type { ProductDetailsPage } from "../../commerce/types.ts"; import Metatags from "./Metatags.tsx"; diff --git a/components/seo/SEOPLP.tsx b/components/seo/SEOPLP.tsx index 085e849a..8414aef4 100644 --- a/components/seo/SEOPLP.tsx +++ b/components/seo/SEOPLP.tsx @@ -1,5 +1,5 @@ -import type { LoaderReturnType } from "$live/types.ts"; import type { Image as LiveImage } from "deco-sites/std/components/types.ts"; +import type { LoaderReturnType } from "deco/types.ts"; import type { ProductListingPage } from "../../commerce/types.ts"; import Metatags from "./Metatags.tsx"; diff --git a/components/seo/types.ts b/components/seo/types.ts index 8a655903..c132ce17 100644 --- a/components/seo/types.ts +++ b/components/seo/types.ts @@ -1,5 +1,5 @@ import type { Image as LiveImage } from "deco-sites/std/components/types.ts"; -import type { LoaderReturnType } from "$live/types.ts"; +import type { LoaderReturnType } from "deco/types.ts"; import type { ProductDetailsPage, ProductListingPage, diff --git a/dev.ts b/dev.ts index a03fc8cf..31c23a67 100755 --- a/dev.ts +++ b/dev.ts @@ -7,10 +7,8 @@ */ import "./plugins/tailwind/bundler.ts"; -import dev from "$live/dev.ts"; -import liveManifest from "$live/live.gen.ts"; +import dev from "deco/dev.ts"; await dev(import.meta.url, "./main.ts", { - imports: [liveManifest], injectRoutes: false, }); diff --git a/functions/butterCMSAds.ts b/functions/butterCMSAds.ts index 50af8988..f4086063 100644 --- a/functions/butterCMSAds.ts +++ b/functions/butterCMSAds.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toFeaturedAds } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/butterCMSBrands.ts b/functions/butterCMSBrands.ts index f06df7d4..224d40d2 100644 --- a/functions/butterCMSBrands.ts +++ b/functions/butterCMSBrands.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toFeaturedPlaces } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/butterCMSCategories.ts b/functions/butterCMSCategories.ts index ce7f41d6..0470ba5f 100644 --- a/functions/butterCMSCategories.ts +++ b/functions/butterCMSCategories.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import type { Category, StateButterCMS } from "../commerce/butterCMS/types.ts"; diff --git a/functions/butterCMSFeaturedPosts.ts b/functions/butterCMSFeaturedPosts.ts index db1ec2b0..b700db8d 100644 --- a/functions/butterCMSFeaturedPosts.ts +++ b/functions/butterCMSFeaturedPosts.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toFeaturedPosts } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/butterCMSPage.ts b/functions/butterCMSPage.ts index 5ccacdab..365675fe 100644 --- a/functions/butterCMSPage.ts +++ b/functions/butterCMSPage.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import type { BlogPage, StateButterCMS } from "../commerce/butterCMS/types.ts"; diff --git a/functions/butterCMSPlaces.ts b/functions/butterCMSPlaces.ts index a14e43f1..44dfde08 100644 --- a/functions/butterCMSPlaces.ts +++ b/functions/butterCMSPlaces.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toFeaturedPlaces } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/butterCMSPostDetail.ts b/functions/butterCMSPostDetail.ts index 3c30aefd..b32dd2b6 100644 --- a/functions/butterCMSPostDetail.ts +++ b/functions/butterCMSPostDetail.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toBlogPost } from "../commerce/butterCMS/transform.ts"; import type { BlogPost, StateButterCMS } from "../commerce/butterCMS/types.ts"; diff --git a/functions/butterCMSPosts.ts b/functions/butterCMSPosts.ts index 21e409f0..e7a2e5cb 100644 --- a/functions/butterCMSPosts.ts +++ b/functions/butterCMSPosts.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toPostsPreview } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/butterCMSRelatedPosts.ts b/functions/butterCMSRelatedPosts.ts index cde39f82..7e694a10 100644 --- a/functions/butterCMSRelatedPosts.ts +++ b/functions/butterCMSRelatedPosts.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { createClient } from "../commerce/butterCMS/client.ts"; import { toPostsPreview } from "../commerce/butterCMS/transform.ts"; import type { diff --git a/functions/occProductDetailsPage.ts b/functions/occProductDetailsPage.ts index 400eb203..506de18e 100644 --- a/functions/occProductDetailsPage.ts +++ b/functions/occProductDetailsPage.ts @@ -1,8 +1,7 @@ -import type { LoaderFunction } from "$live/types.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState, LoaderFunction } from "deco/types.ts"; -import { toProductPage } from "../commerce/occ/transform.ts"; import { ConfigOCC, createClient } from "../commerce/occ/client.ts"; +import { toProductPage } from "../commerce/occ/transform.ts"; import type { ProductDetailsPage } from "../commerce/types.ts"; /** diff --git a/functions/requestToParam.ts b/functions/requestToParam.ts index b7a0adda..e89476d7 100644 --- a/functions/requestToParam.ts +++ b/functions/requestToParam.ts @@ -1,4 +1,4 @@ -import type { FunctionContext, LoaderFunction } from "$live/types.ts"; +import type { FunctionContext, LoaderFunction } from "deco/types.ts"; export type RequestURLParam = string; diff --git a/functions/shopifyProductDetailsPage.ts b/functions/shopifyProductDetailsPage.ts index a0ddbb5a..015e8132 100644 --- a/functions/shopifyProductDetailsPage.ts +++ b/functions/shopifyProductDetailsPage.ts @@ -1,8 +1,7 @@ -import type { LoaderFunction } from "$live/types.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState, LoaderFunction } from "deco/types.ts"; -import { toProductPage } from "../commerce/shopify/transform.ts"; import { ConfigShopify, createClient } from "../commerce/shopify/client.ts"; +import { toProductPage } from "../commerce/shopify/transform.ts"; import type { ProductDetailsPage } from "../commerce/types.ts"; /** diff --git a/functions/shopifyProductList.ts b/functions/shopifyProductList.ts index 1142b584..22c069c5 100644 --- a/functions/shopifyProductList.ts +++ b/functions/shopifyProductList.ts @@ -1,8 +1,7 @@ -import type { LoaderFunction } from "$live/types.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState, LoaderFunction } from "deco/types.ts"; -import { toProduct } from "../commerce/shopify/transform.ts"; import { ConfigShopify, createClient } from "../commerce/shopify/client.ts"; +import { toProduct } from "../commerce/shopify/transform.ts"; import type { Product } from "../commerce/types.ts"; export interface Props { diff --git a/functions/shopifyProductListingPage.ts b/functions/shopifyProductListingPage.ts index c8073237..722d5fcf 100644 --- a/functions/shopifyProductListingPage.ts +++ b/functions/shopifyProductListingPage.ts @@ -1,8 +1,7 @@ -import type { LoaderFunction } from "$live/types.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState, LoaderFunction } from "deco/types.ts"; -import { toProduct } from "../commerce/shopify/transform.ts"; import { ConfigShopify, createClient } from "../commerce/shopify/client.ts"; +import { toProduct } from "../commerce/shopify/transform.ts"; import type { ProductListingPage } from "../commerce/types.ts"; export interface Props { diff --git a/functions/vndaProductList.ts b/functions/vndaProductList.ts index ddb4ce17..f4284a62 100644 --- a/functions/vndaProductList.ts +++ b/functions/vndaProductList.ts @@ -1,9 +1,9 @@ +import { Product } from "deco-sites/std/commerce/types.ts"; +import { StateVNDA } from "deco-sites/std/packs/vnda/accounts/vnda.ts"; import productListLoader, { Props, } from "deco-sites/std/packs/vnda/loaders/productList.ts"; -import type { LoaderFunction } from "$live/types.ts"; -import { Product } from "deco-sites/std/commerce/types.ts"; -import { StateVNDA } from "deco-sites/std/packs/vnda/accounts/vnda.ts"; +import type { LoaderFunction } from "deco/types.ts"; const productList: LoaderFunction< Props, diff --git a/functions/vndaProductListingPage.ts b/functions/vndaProductListingPage.ts index 3ec10311..aa7bca86 100644 --- a/functions/vndaProductListingPage.ts +++ b/functions/vndaProductListingPage.ts @@ -1,9 +1,9 @@ +import { ProductListingPage } from "deco-sites/std/commerce/types.ts"; +import { StateVNDA } from "deco-sites/std/packs/vnda/accounts/vnda.ts"; import productListingPageLoader, { Props, } from "deco-sites/std/packs/vnda/loaders/productListingPage.ts"; -import type { LoaderFunction } from "$live/types.ts"; -import { ProductListingPage } from "deco-sites/std/commerce/types.ts"; -import { StateVNDA } from "deco-sites/std/packs/vnda/accounts/vnda.ts"; +import type { LoaderFunction } from "deco/types.ts"; const productListingPage: LoaderFunction< Props, diff --git a/functions/vtexLegacyProductDetailsPage.ts b/functions/vtexLegacyProductDetailsPage.ts index 1cbef41f..30bf0a39 100644 --- a/functions/vtexLegacyProductDetailsPage.ts +++ b/functions/vtexLegacyProductDetailsPage.ts @@ -1,7 +1,7 @@ import loader from "deco-sites/std/packs/vtex/loaders/legacy/productDetailsPage.ts"; -import type { ProductDetailsPage } from "../commerce/types.ts"; -import type { LoaderFunction } from "$live/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; +import type { ProductDetailsPage } from "../commerce/types.ts"; /** * @title VTEX Catalog - Product Details Page (deprecated) diff --git a/functions/vtexLegacyProductList.ts b/functions/vtexLegacyProductList.ts index 3659cebd..2f8ee4f1 100644 --- a/functions/vtexLegacyProductList.ts +++ b/functions/vtexLegacyProductList.ts @@ -1,7 +1,7 @@ import loader from "deco-sites/std/packs/vtex/loaders/legacy/productList.ts"; -import type { Product } from "../commerce/types.ts"; -import type { LoaderFunction } from "$live/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; +import type { Product } from "../commerce/types.ts"; export interface Props { /** @description total number of items to display */ diff --git a/functions/vtexLegacyProductListingPage.ts b/functions/vtexLegacyProductListingPage.ts index f887ead7..268cb61c 100644 --- a/functions/vtexLegacyProductListingPage.ts +++ b/functions/vtexLegacyProductListingPage.ts @@ -1,9 +1,9 @@ import loader, { Props, } from "deco-sites/std/packs/vtex/loaders/legacy/productListingPage.ts"; -import type { LoaderFunction } from "$live/types.ts"; -import type { ProductListingPage } from "../commerce/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; +import type { ProductListingPage } from "../commerce/types.ts"; /** * @title VTEX Catalog - Product Listing Page (deprecated) diff --git a/functions/vtexLegacyRelatedProductsLoader.ts b/functions/vtexLegacyRelatedProductsLoader.ts index bbed6d05..96655a4e 100644 --- a/functions/vtexLegacyRelatedProductsLoader.ts +++ b/functions/vtexLegacyRelatedProductsLoader.ts @@ -1,5 +1,5 @@ import loader from "deco-sites/std/packs/vtex/loaders/legacy/relatedProductsLoader.ts"; -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import type { Product } from "../commerce/types.ts"; import type { CrossSellingType, diff --git a/functions/vtexNavbar.ts b/functions/vtexNavbar.ts index 16cf2701..5fa502e5 100644 --- a/functions/vtexNavbar.ts +++ b/functions/vtexNavbar.ts @@ -1,7 +1,7 @@ import loader from "deco-sites/std/packs/vtex/loaders/navbar.ts"; -import type { Navbar } from "../commerce/types.ts"; -import type { LoaderFunction } from "$live/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; +import type { Navbar } from "../commerce/types.ts"; export interface Props { /** diff --git a/functions/vtexProductDetailsPage.ts b/functions/vtexProductDetailsPage.ts index 25fccfec..334484e1 100644 --- a/functions/vtexProductDetailsPage.ts +++ b/functions/vtexProductDetailsPage.ts @@ -1,8 +1,8 @@ import loader from "deco-sites/std/packs/vtex/loaders/intelligentSearch/productDetailsPage.ts"; -import { withISFallback } from "../commerce/vtex/withISFallback.ts"; -import type { LoaderFunction } from "$live/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import type { ProductDetailsPage } from "../commerce/types.ts"; +import { withISFallback } from "../commerce/vtex/withISFallback.ts"; /** * @title VTEX Intelligent Search - Product Details Page (deprecated) diff --git a/functions/vtexProductList.ts b/functions/vtexProductList.ts index 24881634..884b7195 100644 --- a/functions/vtexProductList.ts +++ b/functions/vtexProductList.ts @@ -1,6 +1,6 @@ -import type { LoaderFunction } from "$live/types.ts"; import loader from "deco-sites/std/packs/vtex/loaders/intelligentSearch/productList.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import type { Product } from "../commerce/types.ts"; import { withISFallback } from "../commerce/vtex/withISFallback.ts"; diff --git a/functions/vtexProductListingPage.ts b/functions/vtexProductListingPage.ts index f4284220..4ebd70a2 100644 --- a/functions/vtexProductListingPage.ts +++ b/functions/vtexProductListingPage.ts @@ -1,10 +1,10 @@ import loader, { Props, } from "deco-sites/std/packs/vtex/loaders/intelligentSearch/productListingPage.ts"; -import { withISFallback } from "../commerce/vtex/withISFallback.ts"; -import type { LoaderFunction } from "$live/types.ts"; -import type { ProductListingPage } from "../commerce/types.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; +import type { ProductListingPage } from "../commerce/types.ts"; +import { withISFallback } from "../commerce/vtex/withISFallback.ts"; /** * @title VTEX Intelligent Search - Product Listing page (deprecated) diff --git a/functions/vtexSuggestions.ts b/functions/vtexSuggestions.ts index 2aa56a18..d129a9ab 100644 --- a/functions/vtexSuggestions.ts +++ b/functions/vtexSuggestions.ts @@ -1,8 +1,8 @@ import loader from "deco-sites/std/packs/vtex/loaders/intelligentSearch/suggestions.ts"; -import { LoaderFunction } from "$live/types.ts"; +import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import { LoaderFunction } from "deco/types.ts"; import { Suggestion } from "../commerce/types.ts"; import { withISFallback } from "../commerce/vtex/withISFallback.ts"; -import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; export interface Props { query?: string; diff --git a/functions/vtexWishlist.ts b/functions/vtexWishlist.ts index bb70fb21..18d2999f 100644 --- a/functions/vtexWishlist.ts +++ b/functions/vtexWishlist.ts @@ -1,9 +1,9 @@ -import wishlistLoader from "deco-sites/std/packs/vtex/loaders/wishlist.ts"; import productsLoader from "deco-sites/std/packs/vtex/loaders/intelligentSearch/productListingPage.ts"; -import { withISFallback } from "../commerce/vtex/withISFallback.ts"; -import type { LoaderFunction } from "$live/types.ts"; +import wishlistLoader from "deco-sites/std/packs/vtex/loaders/wishlist.ts"; import type { StateVTEX } from "deco-sites/std/packs/vtex/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import type { ProductListingPage } from "../commerce/types.ts"; +import { withISFallback } from "../commerce/vtex/withISFallback.ts"; export interface Props { /** diff --git a/handlers/sitemap.ts b/handlers/sitemap.ts index 54e59bf8..1ed9fe83 100644 --- a/handlers/sitemap.ts +++ b/handlers/sitemap.ts @@ -1,7 +1,7 @@ -import type { Handler } from "$live/blocks/handler.ts"; -import type { Resolvable } from "$live/engine/core/resolver.ts"; -import { isResolvable } from "$live/engine/core/resolver.ts"; -import { Route } from "$live/flags/audience.ts"; +import type { Handler } from "deco/blocks/handler.ts"; +import type { Resolvable } from "deco/engine/core/resolver.ts"; +import { isResolvable } from "deco/engine/core/resolver.ts"; +import { Route } from "deco/flags/audience.ts"; import { ConnInfo } from "std/http/server.ts"; const isPage = (handler: Resolvable) => diff --git a/import_map.json b/import_map.json index 14581f7e..4eec8367 100644 --- a/import_map.json +++ b/import_map.json @@ -1,7 +1,7 @@ { "imports": { "deco-sites/std/": "./", - "$live/": "https://denopkg.com/deco-cx/live@1.31.12/", + "deco/": "https://denopkg.com/deco-cx/deco@1.34.6/", "partytown/": "https://deno.land/x/partytown@0.3.4/", "$fresh/": "https://denopkg.com/deco-cx/fresh@1.3.3/", "preact": "https://esm.sh/preact@10.15.1", diff --git a/live.gen.ts b/live.gen.ts index a515e30e..b3951cee 100644 --- a/live.gen.ts +++ b/live.gen.ts @@ -105,43 +105,6 @@ import * as $$$$$$$$$$$17 from "./actions/vnda/cart/updateItem.ts"; import * as $$$$$$$$$$$18 from "./actions/vnda/cart/setShippingAddress.ts"; import * as $$$$$$$$$$$19 from "./actions/vnda/cart/addItem.ts"; import * as $$$$$$$$$$$20 from "./actions/vnda/cart/updateCoupon.ts"; -import { DecoManifest } from "$live/types.ts"; -import * as i1$0 from "$live/loaders/secret.ts"; -import * as i1$1 from "$live/loaders/state.ts"; -import * as i1$2 from "$live/loaders/workflows/events.ts"; -import * as i1$3 from "$live/loaders/workflows/get.ts"; -import * as i1$$0 from "$live/handlers/devPage.ts"; -import * as i1$$1 from "$live/handlers/fresh.ts"; -import * as i1$$2 from "$live/handlers/proxy.ts"; -import * as i1$$3 from "$live/handlers/redirect.ts"; -import * as i1$$4 from "$live/handlers/router.ts"; -import * as i1$$5 from "$live/handlers/routesSelection.ts"; -import * as i1$$6 from "$live/handlers/workflowRunner.ts"; -import * as i1$$$0 from "$live/pages/LivePage.tsx"; -import * as i1$$$$0 from "$live/sections/Conditional_Beta.tsx"; -import * as i1$$$$1 from "$live/sections/EmptySection.tsx"; -import * as i1$$$$2 from "$live/sections/PageInclude.tsx"; -import * as i1$$$$3 from "$live/sections/Slot.tsx"; -import * as i1$$$$4 from "$live/sections/UseSlot.tsx"; -import * as i1$$$$$0 from "$live/matchers/MatchAlways.ts"; -import * as i1$$$$$1 from "$live/matchers/MatchCron.ts"; -import * as i1$$$$$2 from "$live/matchers/MatchDate.ts"; -import * as i1$$$$$3 from "$live/matchers/MatchDevice.ts"; -import * as i1$$$$$4 from "$live/matchers/MatchEnvironment.ts"; -import * as i1$$$$$5 from "$live/matchers/MatchHost.ts"; -import * as i1$$$$$6 from "$live/matchers/MatchLocation.ts"; -import * as i1$$$$$7 from "$live/matchers/MatchMulti.ts"; -import * as i1$$$$$8 from "$live/matchers/MatchRandom.ts"; -import * as i1$$$$$9 from "$live/matchers/MatchSite.ts"; -import * as i1$$$$$10 from "$live/matchers/MatchUserAgent.ts"; -import * as i1$$$$$$0 from "$live/flags/audience.ts"; -import * as i1$$$$$$1 from "$live/flags/everyone.ts"; -import * as i1$$$$$$2 from "$live/flags/flag.ts"; -import * as i1$$$$$$3 from "$live/flags/multivariate.ts"; -import * as i1$$$$$$$0 from "$live/actions/secrets/encrypt.ts"; -import * as i1$$$$$$$1 from "$live/actions/workflows/cancel.ts"; -import * as i1$$$$$$$2 from "$live/actions/workflows/signal.ts"; -import * as i1$$$$$$$3 from "$live/actions/workflows/start.ts"; const manifest = { "functions": { @@ -183,10 +146,6 @@ const manifest = { "deco-sites/std/accounts/yourViews.ts": $$4, }, "loaders": { - "$live/loaders/secret.ts": i1$0, - "$live/loaders/state.ts": i1$1, - "$live/loaders/workflows/events.ts": i1$2, - "$live/loaders/workflows/get.ts": i1$3, "deco-sites/std/loaders/linxImpulse/autocompletes/popular.ts": $$$2, "deco-sites/std/loaders/linxImpulse/autocompletes/suggestions.ts": $$$3, "deco-sites/std/loaders/linxImpulse/pages/recommendations.ts": $$$4, @@ -227,22 +186,10 @@ const manifest = { "./routes/styles.css.ts": $$$$1, }, "handlers": { - "$live/handlers/devPage.ts": i1$$0, - "$live/handlers/fresh.ts": i1$$1, - "$live/handlers/proxy.ts": i1$$2, - "$live/handlers/redirect.ts": i1$$3, - "$live/handlers/router.ts": i1$$4, - "$live/handlers/routesSelection.ts": i1$$5, - "$live/handlers/workflowRunner.ts": i1$$6, "deco-sites/std/handlers/sitemap.ts": $$$$$$1, "deco-sites/std/handlers/vtex/sitemap.ts": $$$$$$0, }, "sections": { - "$live/sections/Conditional_Beta.tsx": i1$$$$0, - "$live/sections/EmptySection.tsx": i1$$$$1, - "$live/sections/PageInclude.tsx": i1$$$$2, - "$live/sections/Slot.tsx": i1$$$$3, - "$live/sections/UseSlot.tsx": i1$$$$4, "deco-sites/std/sections/Analytics.tsx": $$$$$$$$7, "deco-sites/std/sections/configButterCMS.global.tsx": $$$$$$$$1, "deco-sites/std/sections/configLinxImpulse.global.tsx": $$$$$$$$4, @@ -257,10 +204,6 @@ const manifest = { "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx": $$$$$$$$9, }, "actions": { - "$live/actions/secrets/encrypt.ts": i1$$$$$$$0, - "$live/actions/workflows/cancel.ts": i1$$$$$$$1, - "$live/actions/workflows/signal.ts": i1$$$$$$$2, - "$live/actions/workflows/start.ts": i1$$$$$$$3, "deco-sites/std/actions/vnda/cart/addItem.ts": $$$$$$$$$$$19, "deco-sites/std/actions/vnda/cart/setShippingAddress.ts": $$$$$$$$$$$18, "deco-sites/std/actions/vnda/cart/updateCoupon.ts": $$$$$$$$$$$20, @@ -284,32 +227,10 @@ const manifest = { "deco-sites/std/actions/vtex/wishlist/removeItem.ts": $$$$$$$$$$$14, }, "name": "deco-sites/std", - "pages": { - "$live/pages/LivePage.tsx": i1$$$0, - }, - "matchers": { - "$live/matchers/MatchAlways.ts": i1$$$$$0, - "$live/matchers/MatchCron.ts": i1$$$$$1, - "$live/matchers/MatchDate.ts": i1$$$$$2, - "$live/matchers/MatchDevice.ts": i1$$$$$3, - "$live/matchers/MatchEnvironment.ts": i1$$$$$4, - "$live/matchers/MatchHost.ts": i1$$$$$5, - "$live/matchers/MatchLocation.ts": i1$$$$$6, - "$live/matchers/MatchMulti.ts": i1$$$$$7, - "$live/matchers/MatchRandom.ts": i1$$$$$8, - "$live/matchers/MatchSite.ts": i1$$$$$9, - "$live/matchers/MatchUserAgent.ts": i1$$$$$10, - }, - "flags": { - "$live/flags/audience.ts": i1$$$$$$0, - "$live/flags/everyone.ts": i1$$$$$$1, - "$live/flags/flag.ts": i1$$$$$$2, - "$live/flags/multivariate.ts": i1$$$$$$3, - }, "islands": {}, "baseUrl": import.meta.url, }; export type Manifest = typeof manifest; -export default manifest satisfies DecoManifest; +export default manifest; diff --git a/loaders/vnda/proxy.ts b/loaders/vnda/proxy.ts index 7a23ce3b..e9a83036 100644 --- a/loaders/vnda/proxy.ts +++ b/loaders/vnda/proxy.ts @@ -1,5 +1,5 @@ -import { Route } from "$live/flags/audience.ts"; import type { Context } from "deco-sites/std/packs/vnda/accounts/vnda.ts"; +import { Route } from "deco/flags/audience.ts"; const PAGE_PATHS = [ "/admin", diff --git a/loaders/vtex/legacy/suggestions.ts b/loaders/vtex/legacy/suggestions.ts index b57b03a4..1b2856a2 100644 --- a/loaders/vtex/legacy/suggestions.ts +++ b/loaders/vtex/legacy/suggestions.ts @@ -1,6 +1,6 @@ -import _suggestions from "https://denopkg.com/deco-cx/apps@0.1.1/vtex/loaders/legacy/suggestions.ts"; -import type { Props } from "https://denopkg.com/deco-cx/apps@0.1.1/vtex/loaders/legacy/suggestions.ts"; import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts"; +import type { Props } from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/suggestions.ts"; +import _suggestions from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/suggestions.ts"; const loader = ( props: Props, diff --git a/loaders/vtex/proxy.ts b/loaders/vtex/proxy.ts index 443f8ab8..3ec5f5de 100644 --- a/loaders/vtex/proxy.ts +++ b/loaders/vtex/proxy.ts @@ -1,5 +1,5 @@ -import { Route } from "$live/flags/audience.ts"; import type { Context } from "deco-sites/std/packs/vtex/accounts/vtex.ts"; +import { Route } from "deco/flags/audience.ts"; const PATHS_TO_PROXY = [ "/account", diff --git a/loaders/x/redirects.ts b/loaders/x/redirects.ts index 96f3750a..4cef79a2 100644 --- a/loaders/x/redirects.ts +++ b/loaders/x/redirects.ts @@ -1,4 +1,4 @@ -import { Route } from "$live/flags/audience.ts"; +import { Route } from "deco/flags/audience.ts"; /** @titleBy from */ export interface Redirect { diff --git a/loaders/x/redirectsFromCsv.ts b/loaders/x/redirectsFromCsv.ts index a6f13f16..9b0b6c36 100644 --- a/loaders/x/redirectsFromCsv.ts +++ b/loaders/x/redirectsFromCsv.ts @@ -1,4 +1,4 @@ -import { Route } from "$live/flags/audience.ts"; +import { Route } from "deco/flags/audience.ts"; import { join } from "std/path/mod.ts"; /** @titleBy from */ diff --git a/main.ts b/main.ts index a2441d37..6ef906d2 100644 --- a/main.ts +++ b/main.ts @@ -4,7 +4,7 @@ /// import { start } from "$fresh/server.ts"; -import { $live } from "$live/mod.ts"; +import { $live } from "deco/mod.ts"; import partytownPlugin from "partytown/mod.ts"; import manifest from "./live.gen.ts"; import plugins from "./plugins/mod.ts"; diff --git a/packs/linxImpulse/accounts/linxImpulse.ts b/packs/linxImpulse/accounts/linxImpulse.ts index 31ba194d..cfda9e38 100644 --- a/packs/linxImpulse/accounts/linxImpulse.ts +++ b/packs/linxImpulse/accounts/linxImpulse.ts @@ -1,5 +1,5 @@ -import type { FnContext } from "$live/types.ts"; -import type { Account as AccountBlock } from "$live/blocks/account.ts"; +import type { Account as AccountBlock } from "deco/blocks/account.ts"; +import type { FnContext } from "deco/types.ts"; export interface Account extends AccountBlock { /** diff --git a/packs/vnda/accounts/vnda.ts b/packs/vnda/accounts/vnda.ts index c79eef4e..a763e27f 100644 --- a/packs/vnda/accounts/vnda.ts +++ b/packs/vnda/accounts/vnda.ts @@ -1,6 +1,6 @@ -import type { FnContext } from "$live/types.ts"; -import type { Account as AccountBlock } from "$live/blocks/account.ts"; import type { Manifest } from "deco-sites/std/live.gen.ts"; +import type { Account as AccountBlock } from "deco/blocks/account.ts"; +import type { FnContext } from "deco/types.ts"; export interface Account extends AccountBlock { /** diff --git a/packs/vtex/accounts/vtex.ts b/packs/vtex/accounts/vtex.ts index b0dd9848..27d6ee1c 100644 --- a/packs/vtex/accounts/vtex.ts +++ b/packs/vtex/accounts/vtex.ts @@ -1,6 +1,6 @@ -import type { Account as AccountBlock } from "$live/blocks/account.ts"; -import type { FnContext } from "$live/types.ts"; import type { Manifest } from "deco-sites/std/live.gen.ts"; +import type { Account as AccountBlock } from "deco/blocks/account.ts"; +import type { FnContext } from "deco/types.ts"; export interface Account extends AccountBlock { /** diff --git a/packs/vtex/actions/analytics/sendEvent.ts b/packs/vtex/actions/analytics/sendEvent.ts index 886a8efb..0c1fe144 100644 --- a/packs/vtex/actions/analytics/sendEvent.ts +++ b/packs/vtex/actions/analytics/sendEvent.ts @@ -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.2.8/vtex/actions/analytics/sendEvent.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/analytics/sendEvent.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items diff --git a/packs/vtex/actions/cart/addItems.ts b/packs/vtex/actions/cart/addItems.ts index f2d322e9..3a36a884 100644 --- a/packs/vtex/actions/cart/addItems.ts +++ b/packs/vtex/actions/cart/addItems.ts @@ -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.2.8/vtex/actions/cart/addItems.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/addItems.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items diff --git a/packs/vtex/actions/cart/getInstallment.ts b/packs/vtex/actions/cart/getInstallment.ts index 1d8de318..f90018a3 100644 --- a/packs/vtex/actions/cart/getInstallment.ts +++ b/packs/vtex/actions/cart/getInstallment.ts @@ -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.2.8/vtex/actions/cart/getInstallment.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/getInstallment.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/api/checkout/pub/orderForm/-orderFormId-/installments diff --git a/packs/vtex/actions/cart/removeItemAttachment.ts b/packs/vtex/actions/cart/removeItemAttachment.ts index 14900602..7f828526 100644 --- a/packs/vtex/actions/cart/removeItemAttachment.ts +++ b/packs/vtex/actions/cart/removeItemAttachment.ts @@ -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.2.8/vtex/actions/cart/removeItemAttachment.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/removeItemAttachment.ts"; const action = ( props: Props, diff --git a/packs/vtex/actions/cart/removeItems.ts b/packs/vtex/actions/cart/removeItems.ts index 74361dd9..4762f7d6 100644 --- a/packs/vtex/actions/cart/removeItems.ts +++ b/packs/vtex/actions/cart/removeItems.ts @@ -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.2.8/vtex/actions/cart/removeItems.ts"; +import base from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/removeItems.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items/removeAll diff --git a/packs/vtex/actions/cart/simulation.ts b/packs/vtex/actions/cart/simulation.ts index 5a6f16cd..da81a4bf 100644 --- a/packs/vtex/actions/cart/simulation.ts +++ b/packs/vtex/actions/cart/simulation.ts @@ -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.2.8/vtex/actions/cart/simulation.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/simulation.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForms/simulation diff --git a/packs/vtex/actions/cart/updateAttachment.ts b/packs/vtex/actions/cart/updateAttachment.ts index 30baf5e8..76adf69e 100644 --- a/packs/vtex/actions/cart/updateAttachment.ts +++ b/packs/vtex/actions/cart/updateAttachment.ts @@ -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.2.8/vtex/actions/cart/updateAttachment.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateAttachment.ts"; const action = ( props: Props, diff --git a/packs/vtex/actions/cart/updateCoupons.ts b/packs/vtex/actions/cart/updateCoupons.ts index e68f4f9e..1158a92d 100644 --- a/packs/vtex/actions/cart/updateCoupons.ts +++ b/packs/vtex/actions/cart/updateCoupons.ts @@ -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.2.8/vtex/actions/cart/updateCoupons.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateCoupons.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/coupons diff --git a/packs/vtex/actions/cart/updateItemAttachment.ts b/packs/vtex/actions/cart/updateItemAttachment.ts index dfd6dac9..c3211496 100644 --- a/packs/vtex/actions/cart/updateItemAttachment.ts +++ b/packs/vtex/actions/cart/updateItemAttachment.ts @@ -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.2.8/vtex/actions/cart/updateItemAttachment.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateItemAttachment.ts"; const action = ( props: Props, diff --git a/packs/vtex/actions/cart/updateItemPrice.ts b/packs/vtex/actions/cart/updateItemPrice.ts index ba0d1a9a..67cbeeb3 100644 --- a/packs/vtex/actions/cart/updateItemPrice.ts +++ b/packs/vtex/actions/cart/updateItemPrice.ts @@ -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.2.8/vtex/actions/cart/updateItemPrice.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateItemPrice.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#put-/api/checkout/pub/orderForm/-orderFormId-/items/-itemIndex-/price diff --git a/packs/vtex/actions/cart/updateItems.ts b/packs/vtex/actions/cart/updateItems.ts index 6a596042..18457a3d 100644 --- a/packs/vtex/actions/cart/updateItems.ts +++ b/packs/vtex/actions/cart/updateItems.ts @@ -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.2.8/vtex/actions/cart/updateItems.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateItems.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items/update diff --git a/packs/vtex/actions/cart/updateProfile.ts b/packs/vtex/actions/cart/updateProfile.ts index ea197e82..f18cfa91 100644 --- a/packs/vtex/actions/cart/updateProfile.ts +++ b/packs/vtex/actions/cart/updateProfile.ts @@ -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.2.8/vtex/actions/cart/updateProfile.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateProfile.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#patch-/api/checkout/pub/orderForm/-orderFormId-/profile diff --git a/packs/vtex/actions/cart/updateUser.ts b/packs/vtex/actions/cart/updateUser.ts index a7d78484..74340fa7 100644 --- a/packs/vtex/actions/cart/updateUser.ts +++ b/packs/vtex/actions/cart/updateUser.ts @@ -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.2.8/vtex/actions/cart/updateUser.ts"; +import base from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/cart/updateUser.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/checkout/changeToAnonymousUser/-orderFormId- diff --git a/packs/vtex/actions/newletter/subscribe.ts b/packs/vtex/actions/newletter/subscribe.ts index b3a16993..a5d89f8c 100644 --- a/packs/vtex/actions/newletter/subscribe.ts +++ b/packs/vtex/actions/newletter/subscribe.ts @@ -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.2.8/vtex/actions/newsletter/subscribe.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/newsletter/subscribe.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items diff --git a/packs/vtex/actions/notifyme.ts b/packs/vtex/actions/notifyme.ts index 9f1e233a..f636ece5 100644 --- a/packs/vtex/actions/notifyme.ts +++ b/packs/vtex/actions/notifyme.ts @@ -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.2.8/vtex/actions/notifyme.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/notifyme.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#post-/api/checkout/pub/orderForm/-orderFormId-/items diff --git a/packs/vtex/actions/wishlist/addItem.ts b/packs/vtex/actions/wishlist/addItem.ts index b388272e..af04566c 100644 --- a/packs/vtex/actions/wishlist/addItem.ts +++ b/packs/vtex/actions/wishlist/addItem.ts @@ -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.2.8/vtex/actions/wishlist/addItem.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/wishlist/addItem.ts"; const action = ( props: Props, diff --git a/packs/vtex/actions/wishlist/removeItem.ts b/packs/vtex/actions/wishlist/removeItem.ts index f22608b4..4d21623b 100644 --- a/packs/vtex/actions/wishlist/removeItem.ts +++ b/packs/vtex/actions/wishlist/removeItem.ts @@ -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.2.8/vtex/actions/wishlist/removeItem.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/actions/wishlist/removeItem.ts"; const action = ( props: Props, diff --git a/packs/vtex/handlers/sitemap.ts b/packs/vtex/handlers/sitemap.ts index 5f51cbdc..c523861a 100644 --- a/packs/vtex/handlers/sitemap.ts +++ b/packs/vtex/handlers/sitemap.ts @@ -1,4 +1,4 @@ -import base from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/handlers/sitemap.ts"; +import base from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/handlers/sitemap.ts"; /** * @title Sitemap Proxy diff --git a/packs/vtex/loaders/cart.ts b/packs/vtex/loaders/cart.ts index fe986558..e5ecf699 100644 --- a/packs/vtex/loaders/cart.ts +++ b/packs/vtex/loaders/cart.ts @@ -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.2.8/vtex/loaders/cart.ts"; +import base from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/cart.ts"; /** * @docs https://developers.vtex.com/docs/api-reference/checkout-api#get-/api/checkout/pub/orderForm diff --git a/packs/vtex/loaders/intelligentSearch/productDetailsPage.ts b/packs/vtex/loaders/intelligentSearch/productDetailsPage.ts index 6d19af1b..6266924e 100644 --- a/packs/vtex/loaders/intelligentSearch/productDetailsPage.ts +++ b/packs/vtex/loaders/intelligentSearch/productDetailsPage.ts @@ -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.2.8/vtex/loaders/intelligentSearch/productDetailsPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productDetailsPage.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/intelligentSearch/productDetailsPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productDetailsPage.ts"; /** * @title VTEX Intelligent Search - Product Details Page diff --git a/packs/vtex/loaders/intelligentSearch/productList.ts b/packs/vtex/loaders/intelligentSearch/productList.ts index 1c92c492..b77bc02e 100644 --- a/packs/vtex/loaders/intelligentSearch/productList.ts +++ b/packs/vtex/loaders/intelligentSearch/productList.ts @@ -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.2.8/vtex/loaders/intelligentSearch/productList.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productList.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/intelligentSearch/productList.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productList.ts"; /** * @title VTEX Intelligent Search - Search Products diff --git a/packs/vtex/loaders/intelligentSearch/productListingPage.ts b/packs/vtex/loaders/intelligentSearch/productListingPage.ts index 18f6be50..9eac7405 100644 --- a/packs/vtex/loaders/intelligentSearch/productListingPage.ts +++ b/packs/vtex/loaders/intelligentSearch/productListingPage.ts @@ -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.2.8/vtex/loaders/intelligentSearch/productListingPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productListingPage.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/intelligentSearch/productListingPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/productListingPage.ts"; /** * @title VTEX Intelligent Search - Product Listing page diff --git a/packs/vtex/loaders/intelligentSearch/suggestions.ts b/packs/vtex/loaders/intelligentSearch/suggestions.ts index 2825b1cd..9299a9d8 100644 --- a/packs/vtex/loaders/intelligentSearch/suggestions.ts +++ b/packs/vtex/loaders/intelligentSearch/suggestions.ts @@ -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.2.8/vtex/loaders/intelligentSearch/suggestions.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/suggestions.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/intelligentSearch/suggestions.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/intelligentSearch/suggestions.ts"; /** * @title VTEX Intelligent Search - Search Suggestions diff --git a/packs/vtex/loaders/legacy/productDetailsPage.ts b/packs/vtex/loaders/legacy/productDetailsPage.ts index a08e905e..76de1b7c 100644 --- a/packs/vtex/loaders/legacy/productDetailsPage.ts +++ b/packs/vtex/loaders/legacy/productDetailsPage.ts @@ -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.2.8/vtex/loaders/legacy/productDetailsPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productDetailsPage.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/legacy/productDetailsPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productDetailsPage.ts"; /** * @title VTEX Catalog - Product Details Page diff --git a/packs/vtex/loaders/legacy/productList.ts b/packs/vtex/loaders/legacy/productList.ts index 459a2b88..cafcef3b 100644 --- a/packs/vtex/loaders/legacy/productList.ts +++ b/packs/vtex/loaders/legacy/productList.ts @@ -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.2.8/vtex/loaders/legacy/productList.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productList.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/legacy/productList.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productList.ts"; /** * @title VTEX Catalog - Search Products diff --git a/packs/vtex/loaders/legacy/productListingPage.ts b/packs/vtex/loaders/legacy/productListingPage.ts index 25c527f5..a3e0bae8 100644 --- a/packs/vtex/loaders/legacy/productListingPage.ts +++ b/packs/vtex/loaders/legacy/productListingPage.ts @@ -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.2.8/vtex/loaders/legacy/productListingPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productListingPage.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/legacy/productListingPage.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/productListingPage.ts"; /** * @title VTEX Catalog - Product Listing Page diff --git a/packs/vtex/loaders/legacy/relatedProductsLoader.ts b/packs/vtex/loaders/legacy/relatedProductsLoader.ts index 6d8410f0..89916443 100644 --- a/packs/vtex/loaders/legacy/relatedProductsLoader.ts +++ b/packs/vtex/loaders/legacy/relatedProductsLoader.ts @@ -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.2.8/vtex/loaders/legacy/relatedProductsLoader.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/relatedProductsLoader.ts"; export type { Props, -} from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/loaders/legacy/relatedProductsLoader.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/legacy/relatedProductsLoader.ts"; /** * @title VTEX Related Products - Catalog diff --git a/packs/vtex/loaders/navbar.ts b/packs/vtex/loaders/navbar.ts index 53116be5..c2491c0e 100644 --- a/packs/vtex/loaders/navbar.ts +++ b/packs/vtex/loaders/navbar.ts @@ -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.2.8/vtex/loaders/navbar.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/navbar.ts"; const loader = ( props: Props, diff --git a/packs/vtex/loaders/user.ts b/packs/vtex/loaders/user.ts index 685f9be8..6181fc7c 100644 --- a/packs/vtex/loaders/user.ts +++ b/packs/vtex/loaders/user.ts @@ -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.2.8/vtex/loaders/user.ts"; +import base from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/user.ts"; export interface User { id: string; diff --git a/packs/vtex/loaders/wishlist.ts b/packs/vtex/loaders/wishlist.ts index b3b7e2fa..6d2f6428 100644 --- a/packs/vtex/loaders/wishlist.ts +++ b/packs/vtex/loaders/wishlist.ts @@ -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.2.8/vtex/loaders/wishlist.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/loaders/wishlist.ts"; const loader = ( props: Props, diff --git a/packs/vtex/types.ts b/packs/vtex/types.ts index b37b5395..8ded06f1 100644 --- a/packs/vtex/types.ts +++ b/packs/vtex/types.ts @@ -1,5 +1,5 @@ import type { Account } from "deco-sites/std/packs/vtex/accounts/vtex.ts"; -import type { FnContext } from "$live/types.ts"; +import type { FnContext } from "deco/types.ts"; import type { Manifest } from "../../live.gen.ts"; /** @description Equivalent to sku ID in VTEX platform */ diff --git a/packs/vtex/utils/future.ts b/packs/vtex/utils/future.ts index 842c5077..af300cd4 100644 --- a/packs/vtex/utils/future.ts +++ b/packs/vtex/utils/future.ts @@ -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.2.8/vtex/mod.ts"; -import App from "https://denopkg.com/deco-cx/apps@0.2.8/vtex/mod.ts"; +} from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/mod.ts"; +import App from "https://denopkg.com/deco-cx/apps@0.2.21/vtex/mod.ts"; export const transform = (ctx: Context): AppContext => ({ diff --git a/plugins/mod.ts b/plugins/mod.ts index e3b548b9..fadaa786 100644 --- a/plugins/mod.ts +++ b/plugins/mod.ts @@ -1,6 +1,6 @@ import type { Plugin } from "$fresh/server.ts"; -import { AppManifest } from "$live/mod.ts"; -import decoPlugin, { Options } from "$live/plugins/deco.ts"; +import { AppManifest } from "deco/mod.ts"; +import decoPlugin, { Options } from "deco/plugins/deco.ts"; import * as colors from "std/fmt/colors.ts"; import { plugin as tailwindPlugin } from "./tailwind/mod.ts"; diff --git a/plugins/tailwind/mod.ts b/plugins/tailwind/mod.ts index 29c6afec..f0bb1087 100644 --- a/plugins/tailwind/mod.ts +++ b/plugins/tailwind/mod.ts @@ -1,5 +1,5 @@ import type { Handlers, Plugin } from "$fresh/server.ts"; -import { context } from "$live/live.ts"; +import { context } from "deco/live.ts"; import { createWorker } from "../../utils/worker.ts"; export const TO = "./static/tailwind.css"; diff --git a/runtime.ts b/runtime.ts index 0448b343..11e8bc3d 100644 --- a/runtime.ts +++ b/runtime.ts @@ -1,4 +1,4 @@ -import { withManifest } from "$live/clients/withManifest.ts"; +import { withManifest } from "deco/clients/withManifest.ts"; import type { Manifest } from "deco-sites/std/live.gen.ts"; export const Runtime = withManifest(); diff --git a/utils/fetch.server.ts b/utils/fetch.server.ts index ca4a108f..eb291f04 100644 --- a/utils/fetch.server.ts +++ b/utils/fetch.server.ts @@ -1,4 +1,4 @@ -import * as fetcher from "https://denopkg.com/deco-cx/apps@0.2.8/utils/fetch.ts"; +import * as fetcher from "https://denopkg.com/deco-cx/apps@0.2.21/utils/fetch.ts"; export interface FetchOptions { withProxyCache?: boolean;