cloudcommerce 0.22.4 → 0.23.1
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/CHANGELOG.md +43 -0
- package/ecomplus-stores/barra-doce/.eslintrc.cjs +1 -1
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/.eslintrc.cjs +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -4
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopSidenav.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/Home.astro +18 -10
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +4 -1
- package/ecomplus-stores/iluminim/.ecomplus.cd.json +3 -3
- package/ecomplus-stores/iluminim/.eslintrc.cjs +1 -1
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/.eslintrc.cjs +1 -1
- package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductCard.vue +5 -5
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenav.vue +1 -1
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +4 -1
- package/package.json +4 -4
- package/packages/api/package.json +1 -1
- package/packages/api/types/carts.d.ts +8 -0
- package/packages/api/types/orders.d.ts +8 -0
- package/packages/apps/affilate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/lib/build.js +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/build.ts +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +3 -3
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/lib/en_us/i19minus.txt +1 -0
- package/packages/i18n/lib/en_us/i19plus.txt +1 -0
- package/packages/i18n/lib/en_us.d.ts +2 -0
- package/packages/i18n/lib/en_us.js +2 -0
- package/packages/i18n/lib/en_us.js.map +1 -1
- package/packages/i18n/lib/pt_br/i19minus.txt +1 -0
- package/packages/i18n/lib/pt_br/i19plus.txt +1 -0
- package/packages/i18n/lib/pt_br.d.ts +2 -0
- package/packages/i18n/lib/pt_br.js +2 -0
- package/packages/i18n/lib/pt_br.js.map +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/i18n/src/en_us.ts +2 -0
- package/packages/i18n/src/pt_br.ts +2 -0
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/cloudflare/README.md +3 -0
- package/packages/ssr/cloudflare/swr-worker.js +102 -0
- package/packages/ssr/lib/firebase/serve-storefront.js +0 -1
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +6 -4
- package/packages/ssr/src/cloudflare/swr-worker.ts +120 -0
- package/packages/ssr/src/cloudflare/tsconfig.json +8 -0
- package/packages/ssr/src/firebase/serve-storefront.ts +0 -1
- package/packages/ssr/tsconfig.json +2 -1
- package/packages/storefront/config/storefront.cms.js +1 -1
- package/packages/storefront/config/storefront.tailwind.cjs +1 -0
- package/packages/storefront/dist/client/_astro/Carousel.63d511ab.js +1 -0
- package/packages/storefront/dist/client/_astro/{HeroSlider.8a040a33.js → HeroSlider.8d2ea532.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.ab0c501e.js → PitchBar.c2a2ad79.js} +1 -1
- package/packages/storefront/dist/client/_astro/Prices.8572765c.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.4a105932.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.7ecb7597.js +4 -0
- package/packages/storefront/dist/client/_astro/{_...slug_.c13e0486.css → _...slug_.07c1fa58.css} +1 -1
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.48e557ba.js +1 -0
- package/packages/storefront/dist/client/_astro/client.9dbf6b61.js +1 -0
- package/packages/storefront/dist/client/_astro/{img.abbe849f.js → img.7def76a1.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.c0c35ead.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{_...1b951f6c.mjs → _...d3f15170.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{account@_@astro.f6aec583.mjs → account@_@astro.38a725e7.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{astro.b875de26.mjs → astro.6adaff02.mjs} +296 -1146
- package/packages/storefront/dist/server/chunks/{endpoint@_@js.5834ad4e.mjs → endpoint@_@js.a92a4584.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.069ddb54.mjs → fallback@_@astro.4e98328e.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{index@_@astro.37e61ebe.mjs → index@_@astro.2dda826c.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/{index@_@astro.485287a1.mjs → index@_@astro.db07fb09.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.95bf4c3b.mjs → _...slug_.astro.88866aae.mjs} +812 -150
- package/packages/storefront/dist/server/chunks/pages/{account.astro.4b8c2471.mjs → account.astro.53400a42.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{endpoint.js.bd1232b7.mjs → endpoint.js.a11da4ad.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.b52164bc.mjs → fallback.astro.c1fd06ab.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{index.astro.98167846.mjs → index.astro.c45cc893.mjs} +18 -344
- package/packages/storefront/dist/server/entry.mjs +31 -23
- package/packages/storefront/dist/server/renderers.mjs +2 -2
- package/packages/storefront/package.json +10 -10
- package/packages/storefront/src/helpers/sf-utils.ts +12 -0
- package/packages/storefront/src/lib/components/Carousel.vue +17 -8
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/components/CheckoutLink.vue +23 -0
- package/packages/storefront/src/lib/components/Drawer.vue +1 -1
- package/packages/storefront/src/lib/components/QuantitySelector.vue +107 -0
- package/packages/storefront/src/lib/components/QuantitySelectorControl.vue +35 -0
- package/packages/storefront/src/lib/components/SocialNetworkIcon.vue +1 -1
- package/packages/storefront/src/lib/components/SocialNetworkLink.vue +1 -3
- package/packages/storefront/src/lib/composables/use-cart-item.ts +52 -0
- package/packages/storefront/src/lib/composables/use-sticky-header.ts +14 -2
- package/packages/storefront/src/lib/sf-lib.ts +7 -0
- package/packages/storefront/src/lib/state/customer-session.ts +2 -2
- package/packages/storefront/src/lib/state/modules-info.ts +1 -1
- package/packages/storefront/src/lib/state/shopping-cart/parse-product.ts +23 -21
- package/packages/storefront/src/lib/state/shopping-cart.ts +13 -4
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/Carousel.8af656b5.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.6351b57b.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.cfab20c7.js +0 -4
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.4cb7dd76.js +0 -1
- package/packages/storefront/dist/client/_astro/api.4984c5be.js +0 -1
- package/packages/storefront/dist/client/_astro/client.0fb6b44e.js +0 -1
- package/packages/storefront/dist/client/_astro/index.7eac5494.js +0 -1
- package/packages/storefront/src/helpers/idle-callback.ts +0 -9
- package/packages/storefront/src/lib/components/_injection-keys.ts +0 -11
- /package/packages/storefront/src/{lib → helpers}/browser-env.ts +0 -0
- /package/packages/storefront/src/{lib → helpers}/server-data.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.23.1](https://github.com/ecomplus/cloud-commerce/compare/v0.23.0...v0.23.1) (2023-08-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **i18n:** Add `i19minus` and `i19plus` words ([e77b6e8](https://github.com/ecomplus/cloud-commerce/commit/e77b6e83b24947e13c16f3ef491a36d3791511db))
|
|
11
|
+
* **ssr:** New script for Cloudflare Worker as SWR and cache key layer [[#135](https://github.com/ecomplus/cloud-commerce/issues/135)] ([b296ac3](https://github.com/ecomplus/cloud-commerce/commit/b296ac35ccc19cf23ba48d56ace0b73c055ce311))
|
|
12
|
+
* **storefront:** New `.i-threads` brand icon shortcut ([5b1ab0a](https://github.com/ecomplus/cloud-commerce/commit/5b1ab0ad30a86f5c87c4b76698f67d6ab39636b3))
|
|
13
|
+
* **storefront:** New atomi headless <NumberInput> Vue component ([45093e2](https://github.com/ecomplus/cloud-commerce/commit/45093e244acb56fcfd16e2962fd556c942550c56))
|
|
14
|
+
* **storefront:** New basic <CheckoutLink> wrapper component ([2d5c1b7](https://github.com/ecomplus/cloud-commerce/commit/2d5c1b7ed6bb2c9a8b4d6b67590370c5e4c5ccdc))
|
|
15
|
+
* **storefront:** Update Astro to 2.10 ([#208](https://github.com/ecomplus/cloud-commerce/issues/208)) ([5cbdebb](https://github.com/ecomplus/cloud-commerce/commit/5cbdebba4eda157199d6f7e2c84f55f32520e3d6))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **api:** Updating Carts and Orders interfaces ([31bf050](https://github.com/ecomplus/cloud-commerce/commit/31bf05021d51c08c215b8eb60998fbedbfd61519))
|
|
21
|
+
* **deps:** Update non-major dependencies ([#209](https://github.com/ecomplus/cloud-commerce/issues/209)) ([9a1d02a](https://github.com/ecomplus/cloud-commerce/commit/9a1d02a0c8adc8d3f86957454e0f1317844cfe28))
|
|
22
|
+
* **ssr:** Recommended Cloudflare SWR worker must bypass some dynamic pathnames ([3b8a029](https://github.com/ecomplus/cloud-commerce/commit/3b8a029b9a7e706712414b9993e35b72239f6ac4))
|
|
23
|
+
* **ssr:** Recommended Cloudflare SWR worker should bypass API/feeds dynamic pathnames ([982cc1b](https://github.com/ecomplus/cloud-commerce/commit/982cc1b6e2885560223c90eca2096aa9478f04ba))
|
|
24
|
+
* **storefront:** Add `link` to `useCartItem` return ([626b8fe](https://github.com/ecomplus/cloud-commerce/commit/626b8fe206eacb4bdb34094eb33c99615d60f7f7))
|
|
25
|
+
* **storefront:** Fix cart item composable computed `title` ([e7915f9](https://github.com/ecomplus/cloud-commerce/commit/e7915f9af113ce20c7eb5b51bf72d7bcdeec8028))
|
|
26
|
+
* **storefront:** Fix shopping cart `parseProduct` to create strict cart item object ([407360f](https://github.com/ecomplus/cloud-commerce/commit/407360f960f2e27475d5f53b1cc771e33273f35b))
|
|
27
|
+
* **storefront:** Update `useCartItem` using computed to keep reactive object of shopping cart state ([f4aea98](https://github.com/ecomplus/cloud-commerce/commit/f4aea987f0ae4ab396508d3af2485fe7574abd0b))
|
|
28
|
+
* **storefront:** Update Astro to v2.10.2 ([258072e](https://github.com/ecomplus/cloud-commerce/commit/258072eb1f7caab534df6db336a82f8eaac93f21))
|
|
29
|
+
|
|
30
|
+
## [0.23.0](https://github.com/ecomplus/cloud-commerce/compare/v0.22.4...v0.23.0) (2023-08-02)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### ⚠ BREAKING CHANGES
|
|
34
|
+
|
|
35
|
+
* **storefront:** Rootlib `server-data` and `browser-env` files removed in favor of named exports on `/sf-lib` with additional utils
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **storefront:** Add new `useCartItem` composable ([d9da575](https://github.com/ecomplus/cloud-commerce/commit/d9da57555cace183dea11588f8946df2083d9504))
|
|
40
|
+
* **storefront:** New utils `useId` and `requestIdleCallback` from `/sf-lib` ([c53d33b](https://github.com/ecomplus/cloud-commerce/commit/c53d33b72a78beb68644b765c2e1f9023bfcc373))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* **cli:** Fix checking SSR `node_modules` dir before reinstall on dev ([aad3bf4](https://github.com/ecomplus/cloud-commerce/commit/aad3bf40dab5b61774e0ce09aa48fca43737ce80))
|
|
46
|
+
* **storefront:** Ensure config is set up even without content/settings ([dad8532](https://github.com/ecomplus/cloud-commerce/commit/dad853268a33e213139c0fedb7914e77b1c3de22))
|
|
47
|
+
|
|
5
48
|
### [0.22.4](https://github.com/ecomplus/cloud-commerce/compare/v0.22.3...v0.22.4) (2023-08-01)
|
|
6
49
|
|
|
7
50
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/passport": "^0.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.23.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
20
|
+
"@cloudcommerce/passport": "^0.23.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.23.0",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.23.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.
|
|
27
|
-
"@cloudcommerce/types": "^0.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.23.0",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.23.0",
|
|
27
|
+
"@cloudcommerce/types": "^0.23.0",
|
|
28
28
|
"@fontsource/croissant-one": "^5.0.5",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.7"
|
|
30
30
|
}
|
|
@@ -105,10 +105,7 @@ const {
|
|
|
105
105
|
isActive,
|
|
106
106
|
discountPercentage,
|
|
107
107
|
hasVariations,
|
|
108
|
-
} = useProductCard(
|
|
109
|
-
product: props.product,
|
|
110
|
-
productId: props.productId,
|
|
111
|
-
} as UseProductCardProps);
|
|
108
|
+
} = useProductCard(props as UseProductCardProps);
|
|
112
109
|
const card = ref<HTMLElement | null>(null);
|
|
113
110
|
const isHovered = useElementHover(card);
|
|
114
111
|
const wasHoveredOnce = ref(false);
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
<script setup lang="ts">
|
|
42
42
|
import type { CategoryTree } from '@@sf/composables/use-shop-header';
|
|
43
43
|
import { onMounted } from 'vue';
|
|
44
|
+
import { socialNetworks } from '@@sf/sf-lib';
|
|
44
45
|
import {
|
|
45
46
|
customerName,
|
|
46
47
|
initializeFirebaseAuth,
|
|
47
48
|
isLogged,
|
|
48
49
|
logout,
|
|
49
50
|
} from '@@sf/state/customer-session';
|
|
50
|
-
import { socialNetworks } from '@@sf/server-data';
|
|
51
51
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
52
52
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
53
53
|
import ShopSidenavCategory from '~/components/ShopSidenavCategory.vue';
|
|
@@ -12,16 +12,24 @@ const heroSlides = heroSlider.slides;
|
|
|
12
12
|
<main>
|
|
13
13
|
{heroSlider.slides.length &&
|
|
14
14
|
<HeroSlider {...heroSlider} client:load>
|
|
15
|
-
{heroSlides[0] && <BannerPictures
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{heroSlides[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{heroSlides[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{heroSlides[
|
|
15
|
+
{heroSlides[0] && <BannerPictures
|
|
16
|
+
slot="picture-0" {...heroSlides[0]} index={0}
|
|
17
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
18
|
+
{heroSlides[1] && <BannerPictures
|
|
19
|
+
slot="picture-1" {...heroSlides[1]} index={1}
|
|
20
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
21
|
+
{heroSlides[2] && <BannerPictures
|
|
22
|
+
slot="picture-2" {...heroSlides[2]} index={2}
|
|
23
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
24
|
+
{heroSlides[3] && <BannerPictures
|
|
25
|
+
slot="picture-3" {...heroSlides[3]} index={3}
|
|
26
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
27
|
+
{heroSlides[4] && <BannerPictures
|
|
28
|
+
slot="picture-4" {...heroSlides[4]} index={4}
|
|
29
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
30
|
+
{heroSlides[5] && <BannerPictures
|
|
31
|
+
slot="picture-5" {...heroSlides[5]} index={5}
|
|
32
|
+
widths={[856, 1024, 1536]} class="max-w-[360px] sm:max-w-screen-lg" />}
|
|
25
33
|
<!-- https://github.com/withastro/astro/issues/5066#issuecomment-1277998365 -->
|
|
26
34
|
</HeroSlider>
|
|
27
35
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/modules": "^0.
|
|
18
|
+
"@cloudcommerce/events": "^0.23.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
20
|
+
"@cloudcommerce/modules": "^0.23.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"trigger": "
|
|
3
|
-
"resource": "
|
|
4
|
-
"slug": "
|
|
2
|
+
"trigger": "64c290035e60690370759966",
|
|
3
|
+
"resource": "collections",
|
|
4
|
+
"slug": "luminarias-led"
|
|
5
5
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/passport": "^0.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.23.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
20
|
+
"@cloudcommerce/passport": "^0.23.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.23.0",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.23.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.
|
|
27
|
-
"@cloudcommerce/types": "^0.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.23.0",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.23.0",
|
|
27
|
+
"@cloudcommerce/types": "^0.23.0",
|
|
28
28
|
"@fontsource-variable/heebo": "^5.0.5",
|
|
29
29
|
"@iconify-json/carbon": "^1.1.18"
|
|
30
30
|
}
|
|
@@ -71,7 +71,10 @@
|
|
|
71
71
|
opacity-0 group-hover:opacity-100 transition -z-10 group-hover:z-10"
|
|
72
72
|
@click.prevent="addProductToCart(product)"
|
|
73
73
|
>
|
|
74
|
-
<
|
|
74
|
+
<span class="inline-block h-4 w-4 leading-none text-base text-center
|
|
75
|
+
bg-on-primary text-primary opacity-80 rounded-full mr-1">
|
|
76
|
+
+
|
|
77
|
+
</span>
|
|
75
78
|
{{ $t.i19addToCart }}
|
|
76
79
|
</button>
|
|
77
80
|
</div>
|
|
@@ -105,10 +108,7 @@ const {
|
|
|
105
108
|
isActive,
|
|
106
109
|
discountPercentage,
|
|
107
110
|
hasVariations,
|
|
108
|
-
} = useProductCard(
|
|
109
|
-
product: props.product,
|
|
110
|
-
productId: props.productId,
|
|
111
|
-
} as UseProductCardProps);
|
|
111
|
+
} = useProductCard(props as UseProductCardProps);
|
|
112
112
|
const card = ref<HTMLElement | null>(null);
|
|
113
113
|
const isHovered = useElementHover(card);
|
|
114
114
|
const wasHoveredOnce = ref(false);
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
<script setup lang="ts">
|
|
42
42
|
import type { CategoryTree } from '@@sf/composables/use-shop-header';
|
|
43
43
|
import { onMounted } from 'vue';
|
|
44
|
+
import { socialNetworks } from '@@sf/sf-lib';
|
|
44
45
|
import {
|
|
45
46
|
customerName,
|
|
46
47
|
initializeFirebaseAuth,
|
|
47
48
|
isLogged,
|
|
48
49
|
logout,
|
|
49
50
|
} from '@@sf/state/customer-session';
|
|
50
|
-
import { socialNetworks } from '@@sf/server-data';
|
|
51
51
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
52
52
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
53
53
|
import ShopSidenavCategory from '~/components/ShopSidenavCategory.vue';
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/modules": "^0.
|
|
18
|
+
"@cloudcommerce/events": "^0.23.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.23.0",
|
|
20
|
+
"@cloudcommerce/modules": "^0.23.0"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.1",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@commitlint/cli": "^17.6.7",
|
|
20
20
|
"@commitlint/config-conventional": "^17.6.7",
|
|
21
21
|
"@commitlint/rules": "^17.6.7",
|
|
22
|
-
"@types/node": "^18.17.
|
|
22
|
+
"@types/node": "^18.17.3",
|
|
23
23
|
"eslint": "^8.46.0",
|
|
24
24
|
"husky": "^8.0.3",
|
|
25
25
|
"standard-version": "^9.5.0",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"turbo": "^1.10.12",
|
|
28
28
|
"typescript": "~5.0.4",
|
|
29
29
|
"uglify-js": "^3.17.4",
|
|
30
|
-
"vite": "^4.4.
|
|
30
|
+
"vite": "^4.4.9",
|
|
31
31
|
"vitest": "^0.33.0",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "0.
|
|
33
|
+
"@cloudcommerce/eslint": "0.23.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -102,6 +102,10 @@ export interface Carts {
|
|
|
102
102
|
* Product or variation full name, or other label for this cart item
|
|
103
103
|
*/
|
|
104
104
|
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Product slug to complete page URL
|
|
107
|
+
*/
|
|
108
|
+
slug?: string;
|
|
105
109
|
/**
|
|
106
110
|
* Product or variation picture for this cart item
|
|
107
111
|
*/
|
|
@@ -241,6 +245,10 @@ export interface Carts {
|
|
|
241
245
|
* Final item price including additions due to customizations (auto-calculated)
|
|
242
246
|
*/
|
|
243
247
|
final_price?: number;
|
|
248
|
+
/**
|
|
249
|
+
* Item's original price for comparison, without discounts
|
|
250
|
+
*/
|
|
251
|
+
base_price?: number;
|
|
244
252
|
/**
|
|
245
253
|
* Flags to associate additional info
|
|
246
254
|
*
|
|
@@ -1171,6 +1171,10 @@ export interface Orders {
|
|
|
1171
1171
|
* Product or variation full name, or other label for this cart item
|
|
1172
1172
|
*/
|
|
1173
1173
|
name?: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Product slug to complete page URL
|
|
1176
|
+
*/
|
|
1177
|
+
slug?: string;
|
|
1174
1178
|
/**
|
|
1175
1179
|
* Product or variation picture for this cart item
|
|
1176
1180
|
*/
|
|
@@ -1294,6 +1298,10 @@ export interface Orders {
|
|
|
1294
1298
|
* Final item price including additions due to customizations and gift wrap
|
|
1295
1299
|
*/
|
|
1296
1300
|
final_price?: number;
|
|
1301
|
+
/**
|
|
1302
|
+
* Item's original price for comparison, without discounts
|
|
1303
|
+
*/
|
|
1304
|
+
base_price?: number;
|
|
1297
1305
|
/**
|
|
1298
1306
|
* Flags to associate additional info
|
|
1299
1307
|
*
|