cloudcommerce 2.0.1 → 2.0.2
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 +9 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/content/pages/home.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +7 -7
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +3 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/layouts/Base.astro +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/Main.astro +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/content/Sections.astro +5 -5
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/package.json +9 -9
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +2 -2
- 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 +3 -3
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +3 -3
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/pagarme-v5/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- 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/package.json +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +3 -3
- package/packages/storefront/package.json +6 -6
- package/packages/storefront/src/lib/composables/use-sku-selector.ts +11 -7
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [2.0.2](https://github.com/ecomplus/cloud-commerce/compare/v2.0.1...v2.0.2) (2024-01-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** Update non-major dependencies ([#304](https://github.com/ecomplus/cloud-commerce/issues/304)) ([63b63f4](https://github.com/ecomplus/cloud-commerce/commit/63b63f4021dd26c230f3caba6ec6d1b5b43d9fed))
|
|
11
|
+
* **storefront:** Update Astro to v4.1.1 ([#305](https://github.com/ecomplus/cloud-commerce/issues/305)) ([f03756f](https://github.com/ecomplus/cloud-commerce/commit/f03756ff9b731429a45f53c089cb590a01c1302c))
|
|
12
|
+
* **storefront:** Watching shared `data:grids` event on SKU selector composable ([3f9a0c3](https://github.com/ecomplus/cloud-commerce/commit/3f9a0c3a834186558814301ab9d73f32b1036459))
|
|
13
|
+
|
|
5
14
|
### [2.0.1](https://github.com/ecomplus/cloud-commerce/compare/v2.0.0...v2.0.1) (2024-01-08)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.0.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
20
|
-
"@cloudcommerce/passport": "^2.0.
|
|
18
|
+
"@cloudcommerce/feeds": "^2.0.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.1",
|
|
20
|
+
"@cloudcommerce/passport": "^2.0.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"title": "",
|
|
27
27
|
"isHeadless": false,
|
|
28
28
|
"isShuffle": false,
|
|
29
|
-
"limit":
|
|
29
|
+
"limit": 8,
|
|
30
30
|
"page": 1
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"title": "Ingredientes que fazem a diferença",
|
|
37
37
|
"isHeadless": false,
|
|
38
38
|
"isShuffle": false,
|
|
39
|
-
"limit":
|
|
39
|
+
"limit": 8,
|
|
40
40
|
"page": 3
|
|
41
41
|
},
|
|
42
42
|
{
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"title": "Fitas de Natal",
|
|
47
47
|
"isHeadless": false,
|
|
48
48
|
"isShuffle": false,
|
|
49
|
-
"limit":
|
|
49
|
+
"limit": 8,
|
|
50
50
|
"page": 3
|
|
51
51
|
}
|
|
52
52
|
]
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^2.0.
|
|
21
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
22
|
-
"@cloudcommerce/ssr": "^2.0.
|
|
20
|
+
"@cloudcommerce/api": "^2.0.1",
|
|
21
|
+
"@cloudcommerce/firebase": "^2.0.1",
|
|
22
|
+
"@cloudcommerce/ssr": "^2.0.1",
|
|
23
23
|
"@headlessui/vue": "^1.7.16"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cloudcommerce/i18n": "^2.0.
|
|
27
|
-
"@cloudcommerce/storefront": "^2.0.
|
|
28
|
-
"@cloudcommerce/types": "^2.0.
|
|
29
|
-
"@fontsource/
|
|
26
|
+
"@cloudcommerce/i18n": "^2.0.1",
|
|
27
|
+
"@cloudcommerce/storefront": "^2.0.1",
|
|
28
|
+
"@cloudcommerce/types": "^2.0.1",
|
|
29
|
+
"@fontsource/league-spartan": "^5.0.18",
|
|
30
30
|
"@iconify-json/mingcute": "^1.1.15",
|
|
31
31
|
"fontaine": "^0.4.1",
|
|
32
32
|
"photoswipe": "^5.4.3"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--font-brand: "
|
|
2
|
+
--font-brand: "League Spartan", "League Spartan fallback";
|
|
3
3
|
}
|
|
4
4
|
html {
|
|
5
5
|
scroll-behavior: smooth;
|
|
@@ -54,7 +54,7 @@ a, button, button > *, [role=button], [role=button] > * {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ui-text-brand, .ui-title {
|
|
57
|
-
@apply font-brand font-
|
|
57
|
+
@apply font-brand font-bold not-italic;
|
|
58
58
|
}
|
|
59
59
|
.ui-title {
|
|
60
60
|
@apply text-3xl xl:text-5xl;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</button>
|
|
75
75
|
</span>
|
|
76
76
|
</form>
|
|
77
|
-
<AccountMenu class="hidden sm:block">
|
|
77
|
+
<AccountMenu v-if="!isMobile" class="hidden sm:block">
|
|
78
78
|
<template #button="{ open }">
|
|
79
79
|
<i
|
|
80
80
|
class="i-user-2-line text-base-600 hover:text-primary
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
<ShopHeaderMenu
|
|
105
|
+
v-if="!isMobile"
|
|
105
106
|
v-show="!isSticky"
|
|
106
107
|
v-bind="{ inlineMenuTrees }"
|
|
107
108
|
class="mt-3 hidden px-3 lg:block 2xl:px-8"
|
|
@@ -165,6 +166,7 @@ import {
|
|
|
165
166
|
type Props as UseShopHeaderProps,
|
|
166
167
|
useShopHeader,
|
|
167
168
|
} from '@@sf/composables/use-shop-header';
|
|
169
|
+
import { isMobile } from '@@sf/sf-lib';
|
|
168
170
|
import Drawer from '@@sf/components/Drawer.vue';
|
|
169
171
|
import ShopSidenav from '~/components/ShopSidenav.vue';
|
|
170
172
|
import ShopHeaderMenu from '~/components/ShopHeaderMenu.vue';
|
|
@@ -3,7 +3,7 @@ import SfBase from '@@sf/layouts/Base.astro';
|
|
|
3
3
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
4
4
|
import '~/assets/style.css';
|
|
5
5
|
import 'uno.css';
|
|
6
|
-
import '@fontsource/
|
|
6
|
+
import '@fontsource/league-spartan/700.css';
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
<SfBase>
|
|
@@ -5,9 +5,9 @@ import Hero from '~/main/content/Hero.astro';
|
|
|
5
5
|
import Sections from '~/main/content/Sections.astro';
|
|
6
6
|
|
|
7
7
|
const { routeContext } = Astro.locals;
|
|
8
|
-
const { fetchingApiContext } = routeContext;
|
|
8
|
+
const { isSearchPage, fetchingApiContext } = routeContext;
|
|
9
9
|
const sharedData: Record<string, any> = {};
|
|
10
|
-
if (fetchingApiContext) {
|
|
10
|
+
if (isSearchPage || fetchingApiContext) {
|
|
11
11
|
const [
|
|
12
12
|
{ data: { result: grids } },
|
|
13
13
|
] = await Promise.all([
|
|
@@ -20,16 +20,16 @@ const { sections } = await usePageSections({
|
|
|
20
20
|
return { props: content };
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
|
-
const {
|
|
23
|
+
const { cmsContent } = routeContext;
|
|
24
24
|
/* `apiContext` is surelly set here (from Main.astro)
|
|
25
25
|
cause route resource is required to define sections from content. */
|
|
26
26
|
---
|
|
27
27
|
|
|
28
28
|
<article class="mb-9 mt-6 md:mb-12 md:mt-8">
|
|
29
|
-
{sections.map(async ({ type, props }) => {
|
|
29
|
+
{sections.map(async ({ type, props }, index) => {
|
|
30
30
|
switch (type) {
|
|
31
31
|
case 'product-shelf':
|
|
32
|
-
return
|
|
32
|
+
return index === 0 || (index < 2 && !cmsContent?.hero?.slides.length)
|
|
33
33
|
? <ProductShelf {...props} client:idle />
|
|
34
34
|
: <ProductShelf {...props} client:visible />
|
|
35
35
|
case 'related-products':
|
|
@@ -46,7 +46,7 @@ cause route resource is required to define sections from content. */
|
|
|
46
46
|
case 'product-details':
|
|
47
47
|
const { hasDescription, hasSpecifications, ...detailsProps } = props;
|
|
48
48
|
return <>
|
|
49
|
-
<ProductDetails {...detailsProps} client:context
|
|
49
|
+
<ProductDetails {...detailsProps} client:context>
|
|
50
50
|
<Fragment slot="description">
|
|
51
51
|
{hasDescription && <DocDescription />}
|
|
52
52
|
{hasSpecifications && <ProductSpecifications />}
|
|
@@ -57,7 +57,7 @@ cause route resource is required to define sections from content. */
|
|
|
57
57
|
case 'context-showcase':
|
|
58
58
|
return <>
|
|
59
59
|
<article class="min-h-[500px]">
|
|
60
|
-
<SearchShowcase {...props} client:context
|
|
60
|
+
<SearchShowcase {...props} client:context />
|
|
61
61
|
</article>
|
|
62
62
|
</>
|
|
63
63
|
case 'page-title':
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.0.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.0.
|
|
20
|
-
"@cloudcommerce/modules": "^2.0.
|
|
18
|
+
"@cloudcommerce/events": "^2.0.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.1",
|
|
20
|
+
"@cloudcommerce/modules": "^2.0.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cloudcommerce/cli": "^2.0.
|
|
26
|
+
"@cloudcommerce/cli": "^2.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^2.0.
|
|
29
|
+
"@cloudcommerce/eslint": "^2.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
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>",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^18.4.
|
|
20
|
-
"@commitlint/config-conventional": "^18.4.
|
|
21
|
-
"@commitlint/rules": "^18.4.
|
|
22
|
-
"@types/node": "^18.19.
|
|
19
|
+
"@commitlint/cli": "^18.4.4",
|
|
20
|
+
"@commitlint/config-conventional": "^18.4.4",
|
|
21
|
+
"@commitlint/rules": "^18.4.4",
|
|
22
|
+
"@types/node": "^18.19.5",
|
|
23
23
|
"eslint": "^8.56.0",
|
|
24
24
|
"husky": "^8.0.3",
|
|
25
25
|
"standard-version": "^9.5.0",
|
|
26
26
|
"ts-node": "^10.9.2",
|
|
27
|
-
"turbo": "^1.11.
|
|
27
|
+
"turbo": "^1.11.3",
|
|
28
28
|
"typescript": "~5.2.2",
|
|
29
29
|
"uglify-js": "^3.17.4",
|
|
30
|
-
"vite": "^5.0.
|
|
31
|
-
"vitest": "^1.1.
|
|
30
|
+
"vite": "^5.0.11",
|
|
31
|
+
"vitest": "^1.1.3",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "2.0.
|
|
33
|
+
"@cloudcommerce/eslint": "2.0.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
29
|
"@google-cloud/pubsub": "^4.1.0",
|
|
30
|
-
"axios": "^1.6.
|
|
30
|
+
"axios": "^1.6.5",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
32
|
"firebase-functions": "^4.6.0"
|
|
33
33
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
29
|
-
"axios": "^1.6.
|
|
29
|
+
"axios": "^1.6.5",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
31
|
"firebase-functions": "^4.6.0"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-flash-courier",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Flash Courier",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
29
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
|
+
"firebase-functions": "^4.6.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
|
-
"axios": "^1.6.
|
|
29
|
+
"axios": "^1.6.5",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
31
|
"firebase-functions": "^4.6.0"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
|
|
6
6
|
"main": "lib/galaxpay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to send carts/orders events to GA Measurement Protocol",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.6.
|
|
24
|
+
"axios": "^1.6.5",
|
|
25
25
|
"firebase-admin": "^12.0.0",
|
|
26
26
|
"firebase-functions": "^4.6.0"
|
|
27
27
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-jadlog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.6.
|
|
23
|
+
"axios": "^1.6.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mandae",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Mandaê shipping intermediator",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
24
|
-
"axios": "^1.6.
|
|
25
|
-
"firebase-functions": "^4.
|
|
24
|
+
"axios": "^1.6.5",
|
|
25
|
+
"firebase-functions": "^4.6.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@cloudcommerce/test-base": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-melhor-envio",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mercadopago",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
|
|
6
6
|
"main": "lib/mercadopago.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
|
-
"axios": "^1.6.
|
|
29
|
+
"axios": "^1.6.5",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
31
|
"firebase-functions": "^4.6.0"
|
|
32
32
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pagarme",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
|
|
6
6
|
"main": "lib/pagarme.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0",
|
|
31
31
|
"pagarme": "^4.33.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pagarme-v5",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Pagar.me API v5 with recurring payments",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@cloudcommerce/api": "workspace:*",
|
|
28
28
|
"@cloudcommerce/firebase": "workspace:*",
|
|
29
29
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
30
|
-
"axios": "^1.6.
|
|
30
|
+
"axios": "^1.6.5",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
32
|
"firebase-functions": "^4.6.0"
|
|
33
33
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-paghiper",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
|
|
6
6
|
"main": "lib/paghiper.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pix",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Pix API (Bacen)",
|
|
6
6
|
"main": "lib/pix.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.6.
|
|
28
|
+
"axios": "^1.6.5",
|
|
29
29
|
"firebase-admin": "^12.0.0",
|
|
30
30
|
"firebase-functions": "^4.6.0"
|
|
31
31
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-tiny-erp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Tiny ERP",
|
|
6
6
|
"main": "lib/tiny-erp.js",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
24
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
25
|
-
"axios": "^1.6.
|
|
25
|
+
"axios": "^1.6.5",
|
|
26
26
|
"firebase-admin": "^12.0.0",
|
|
27
27
|
"firebase-functions": "^4.6.0",
|
|
28
28
|
"form-data": "4.0.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-webhooks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for general order webhooks",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.6.
|
|
24
|
+
"axios": "^1.6.5",
|
|
25
25
|
"firebase-admin": "^12.0.0",
|
|
26
26
|
"firebase-functions": "^4.6.0"
|
|
27
27
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/emails",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce email sender",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@cloudcommerce/firebase": "workspace:*",
|
|
26
|
-
"axios": "^1.6.
|
|
26
|
+
"axios": "^1.6.5",
|
|
27
27
|
"ejs": "^3.1.9",
|
|
28
28
|
"nodemailer": "^6.9.8"
|
|
29
29
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce ESLint config",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"build": "echo '@ecomplus/eslint'"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
23
|
-
"@typescript-eslint/parser": "^6.
|
|
22
|
+
"@typescript-eslint/eslint-plugin": "^6.18.0",
|
|
23
|
+
"@typescript-eslint/parser": "^6.18.0",
|
|
24
24
|
"eslint": "^8.56.0",
|
|
25
25
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
26
26
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/modules",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce modules API",
|
|
6
6
|
"main": "lib/index.cjs",
|
|
7
7
|
"exports": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
48
48
|
"ajv": "^8.12.0",
|
|
49
49
|
"ajv-formats": "^2.1.1",
|
|
50
|
-
"axios": "^1.6.
|
|
50
|
+
"axios": "^1.6.5",
|
|
51
51
|
"firebase-admin": "^12.0.0",
|
|
52
52
|
"firebase-functions": "^4.6.0",
|
|
53
53
|
"source-map-support": "^0.5.21"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/ssr",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront SSR",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@cloudcommerce/i18n": "workspace:*",
|
|
33
33
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
34
34
|
"@vueuse/core": "10.7.1",
|
|
35
|
-
"astro": "4.1.
|
|
35
|
+
"astro": "4.1.1",
|
|
36
36
|
"astro-capo": "^0.0.1",
|
|
37
|
-
"axios": "^1.6.
|
|
37
|
+
"axios": "^1.6.5",
|
|
38
38
|
"firebase-admin": "^12.0.0",
|
|
39
39
|
"firebase-functions": "^4.6.0",
|
|
40
40
|
"mitt": "^3.0.1",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/storefront",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront with Astro",
|
|
6
6
|
"bin": {
|
|
7
7
|
"storefront": "./scripts/build-prod.sh"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@astrojs/node": "7.0.4",
|
|
33
|
-
"@astrojs/vue": "4.0.
|
|
33
|
+
"@astrojs/vue": "4.0.8",
|
|
34
34
|
"@cloudcommerce/api": "workspace:*",
|
|
35
35
|
"@cloudcommerce/config": "workspace:*",
|
|
36
36
|
"@cloudcommerce/i18n": "workspace:*",
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"@types/gtag.js": "^0.0.18",
|
|
43
43
|
"@vite-pwa/astro": "^0.2.0",
|
|
44
44
|
"@vueuse/core": "10.7.1",
|
|
45
|
-
"astro": "4.1.
|
|
45
|
+
"astro": "4.1.1",
|
|
46
46
|
"astro-capo": "^0.0.1",
|
|
47
47
|
"chroma-js": "^2.4.2",
|
|
48
48
|
"dotenv": "^16.3.1",
|
|
49
49
|
"firebase": "^10.7.1",
|
|
50
|
-
"image-size": "^1.1.
|
|
50
|
+
"image-size": "^1.1.1",
|
|
51
51
|
"mime": "^3.0.0",
|
|
52
52
|
"mitt": "^3.0.1",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"sharp": "^0.33.1",
|
|
55
|
-
"tailwindcss": "^3.4.
|
|
55
|
+
"tailwindcss": "^3.4.1",
|
|
56
56
|
"unocss": "^0.58.3",
|
|
57
57
|
"unplugin-auto-import": "^0.17.3",
|
|
58
|
-
"vite": "^5.0.
|
|
58
|
+
"vite": "^5.0.11",
|
|
59
59
|
"vite-plugin-pwa": "^0.17.4",
|
|
60
60
|
"vue": "^3.4.5",
|
|
61
61
|
"wade": "0.3.3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResourceId, Products } from '@cloudcommerce/api/types';
|
|
1
|
+
import type { ResourceId, Products, Grids } from '@cloudcommerce/api/types';
|
|
2
2
|
import {
|
|
3
3
|
ref,
|
|
4
4
|
computed,
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
watch,
|
|
8
8
|
toRef,
|
|
9
9
|
} from 'vue';
|
|
10
|
-
import api from '@cloudcommerce/api';
|
|
11
10
|
import {
|
|
12
11
|
specValueByText as getSpecValueByText,
|
|
13
12
|
specTextValue as getSpecTextValue,
|
|
@@ -18,14 +17,19 @@ import {
|
|
|
18
17
|
export interface Props {
|
|
19
18
|
variations: Exclude<Products['variations'], undefined>;
|
|
20
19
|
variationId?: ResourceId | null;
|
|
20
|
+
grids?: Array<Partial<Grids>>;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const useSkuSelector = (props: Props) => {
|
|
24
|
-
const grids = shallowReactive(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
const grids = shallowReactive(
|
|
25
|
+
props.grids
|
|
26
|
+
|| globalThis.$storefront.data.grids
|
|
27
|
+
|| [],
|
|
28
|
+
);
|
|
29
|
+
if (!grids.length && !import.meta.env.SSR) {
|
|
30
|
+
window.addEventListener('storefront:data:data', () => {
|
|
31
|
+
globalThis.$storefront.data.grids?.forEach((grid) => grids.push(grid));
|
|
32
|
+
}, { once: true });
|
|
29
33
|
}
|
|
30
34
|
const variationsGrids = reactive<Record<string, string[]>>({});
|
|
31
35
|
const activeVariationsGrids = reactive<Record<string, string[]>>({});
|