cloudcommerce 2.0.5 → 2.0.6
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/README.md +1 -1
- package/action.yml +1 -1
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-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/mandae/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/pagarme-v5/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/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- 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 +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/storefront/config/storefront.tailwind.cjs +10 -1
- package/packages/storefront/config/storefront.unocss.cjs +1 -1
- package/packages/storefront/package.json +3 -3
- package/packages/storefront/src/lib/components/globals/ALink.vue +1 -0
- 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.6](https://github.com/ecomplus/cloud-commerce/compare/v2.0.5...v2.0.6) (2024-01-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **storefront:** Bump Astro to v4.1.12 ([d6eb8bc](https://github.com/ecomplus/cloud-commerce/commit/d6eb8bc8ff986878ecdfca537bc4053da52829f6))
|
|
11
|
+
* **storefront:** Edit global `<ALink>` to properly set target blank for external links ([f1cde20](https://github.com/ecomplus/cloud-commerce/commit/f1cde2019eb047dbbce6e0685de9d4d007bd2b7c))
|
|
12
|
+
* **storefront:** Properly add all available `.i-<iconset>-<icon>` to Tailwind config ([3907943](https://github.com/ecomplus/cloud-commerce/commit/3907943b3d2e841b78b0d37ba100a189333a4db1))
|
|
13
|
+
|
|
5
14
|
### [2.0.5](https://github.com/ecomplus/cloud-commerce/compare/v2.0.4...v2.0.5) (2024-01-10)
|
|
6
15
|
|
|
7
16
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# E-Com Plus Open Cloud Commerce
|
|
2
2
|
|
|
3
3
|
Open fair-code eCommerce platform to use on top of headless commerce APIs, it includes:
|
|
4
|
-
- High performant [Astro](https://astro.build/) + [Vue](https://vuejs.org/)
|
|
4
|
+
- High performant and fully customizable [Astro](https://astro.build/) + [Vue](https://vuejs.org/) storefront;
|
|
5
5
|
- Storefront CMS and page builder;
|
|
6
6
|
- Analytics and A/B testing;
|
|
7
7
|
- Integrations for payments, shipping, ERPs, CRMs and others.
|
package/action.yml
CHANGED
|
@@ -167,7 +167,7 @@ runs:
|
|
|
167
167
|
name: Install codebase "ssr" dependencies
|
|
168
168
|
shell: bash
|
|
169
169
|
working-directory: functions/ssr
|
|
170
|
-
run: npm ci
|
|
170
|
+
run: npm ci --omit=optional
|
|
171
171
|
|
|
172
172
|
- if: steps.npm-cache-with-apps.outputs.cache-hit != 'true'
|
|
173
173
|
name: Install codebase "with-apps" dependencies
|
|
@@ -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.5",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.5",
|
|
20
|
+
"@cloudcommerce/passport": "^2.0.5"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,15 +17,15 @@
|
|
|
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.5",
|
|
21
|
+
"@cloudcommerce/firebase": "^2.0.5",
|
|
22
|
+
"@cloudcommerce/ssr": "^2.0.5",
|
|
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.
|
|
26
|
+
"@cloudcommerce/i18n": "^2.0.5",
|
|
27
|
+
"@cloudcommerce/storefront": "^2.0.5",
|
|
28
|
+
"@cloudcommerce/types": "^2.0.5",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.15",
|
|
30
30
|
"photoswipe": "^5.4.3"
|
|
31
31
|
}
|
|
@@ -77,10 +77,10 @@ a, button, button > *, [role=button], [role=button] > * {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
[class*=ui-section] {
|
|
80
|
-
@apply container 2xl:max-w-7xl mx-auto px-4 sm:px-2
|
|
80
|
+
@apply container 2xl:max-w-7xl mx-auto px-4 sm:px-2;
|
|
81
81
|
}
|
|
82
82
|
.ui-section {
|
|
83
|
-
@apply
|
|
83
|
+
@apply my-6 md:my-8;
|
|
84
84
|
}
|
|
85
85
|
.ui-section-slim {
|
|
86
86
|
@apply my-3;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
class="lg:-top-13 primary absolute -top-12 left-1/2 z-10 -ml-7 h-14 w-14
|
|
69
69
|
rounded-full p-2 text-3xl
|
|
70
70
|
leading-none opacity-75 hover:opacity-100 lg:left-4 lg:ml-0"
|
|
71
|
-
@click.prevent="addProductToCart(product)"
|
|
71
|
+
@click.stop.prevent="addProductToCart(product)"
|
|
72
72
|
:aria-label="$t.i19addToCart"
|
|
73
73
|
>
|
|
74
74
|
<i class="i-shopping-bag-3-line"></i>
|
|
@@ -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.5",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.0.5",
|
|
20
|
+
"@cloudcommerce/modules": "^2.0.5"
|
|
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.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^2.0.
|
|
29
|
+
"@cloudcommerce/eslint": "^2.0.5"
|
|
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.6",
|
|
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>",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vite": "^5.0.11",
|
|
32
32
|
"vitest": "^1.1.3",
|
|
33
33
|
"zx": "^7.2.3",
|
|
34
|
-
"@cloudcommerce/eslint": "2.0.
|
|
34
|
+
"@cloudcommerce/eslint": "2.0.6"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/ssr",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront SSR",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
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.2",
|
|
36
36
|
"astro-capo": "^0.0.1",
|
|
37
37
|
"axios": "^1.6.5",
|
|
38
38
|
"firebase-admin": "^12.0.0",
|
|
@@ -178,8 +178,8 @@ const genTailwindConfig = (themeOptions = {}) => {
|
|
|
178
178
|
})),
|
|
179
179
|
].reduce((utilities, { iconset, shortcuts }) => {
|
|
180
180
|
if (iconset) {
|
|
181
|
+
const { icons } = require(`@iconify-json/${iconset}`);
|
|
181
182
|
if (!shortcuts) {
|
|
182
|
-
const { icons } = require(`@iconify-json/${iconset}`);
|
|
183
183
|
shortcuts = Object.keys(icons.icons);
|
|
184
184
|
Object.keys(iconAliases).forEach((alias) => {
|
|
185
185
|
if (alias !== iconAliases[alias]) {
|
|
@@ -207,6 +207,15 @@ const genTailwindConfig = (themeOptions = {}) => {
|
|
|
207
207
|
'--view': `"https://icones.js.org/collection/${iconset}?s=${icon}"`,
|
|
208
208
|
};
|
|
209
209
|
});
|
|
210
|
+
Object.keys(icons.icons).forEach((icon) => {
|
|
211
|
+
const selector = `.i-${iconset}-${icon}`;
|
|
212
|
+
if (utilities[selector]) return;
|
|
213
|
+
utilities[selector] = {
|
|
214
|
+
'--collection': iconset,
|
|
215
|
+
'--icon': icon,
|
|
216
|
+
'--view': `"https://icones.js.org/collection/${iconset}?s=${icon}"`,
|
|
217
|
+
};
|
|
218
|
+
});
|
|
210
219
|
}
|
|
211
220
|
return utilities;
|
|
212
221
|
}, {}),
|
|
@@ -70,7 +70,7 @@ const genUnoCSSConfig = (_tailwindConfig) => {
|
|
|
70
70
|
'--collection': iconset,
|
|
71
71
|
'--icon': icon,
|
|
72
72
|
} = utilities[s];
|
|
73
|
-
shortcuts.push({ [s.replace('.', '')]: `i-${iconset}
|
|
73
|
+
shortcuts.push({ [s.replace('.', '')]: `i-${iconset}-${icon}` });
|
|
74
74
|
} else if (!s.startsWith('.ui-') && !s.includes('prose')) {
|
|
75
75
|
rules.push([s.replace('.', ''), utilities[s]]);
|
|
76
76
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/storefront",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront with Astro",
|
|
6
6
|
"bin": {
|
|
7
7
|
"storefront": "./scripts/build-prod.sh"
|
|
@@ -42,7 +42,7 @@
|
|
|
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.2",
|
|
46
46
|
"astro-capo": "^0.0.1",
|
|
47
47
|
"chroma-js": "^2.4.2",
|
|
48
48
|
"dotenv": "^16.3.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"mime": "^3.0.0",
|
|
52
52
|
"mitt": "^3.0.1",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
|
-
"sharp": "^0.
|
|
54
|
+
"sharp": "^0.32.6",
|
|
55
55
|
"tailwindcss": "^3.4.1",
|
|
56
56
|
"unocss": "^0.58.3",
|
|
57
57
|
"unplugin-auto-import": "^0.17.3",
|
|
@@ -13,6 +13,7 @@ const linkTarget = computed(() => {
|
|
|
13
13
|
if (props.href.startsWith('http')) {
|
|
14
14
|
const domain = globalThis.$storefront.settings.domain || window.location.host;
|
|
15
15
|
if (props.href.startsWith(`https://${domain}`)) return undefined;
|
|
16
|
+
return '_blank';
|
|
16
17
|
}
|
|
17
18
|
return undefined;
|
|
18
19
|
});
|