cloudcommerce 0.8.5 → 0.8.7
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 +15 -0
- package/ecomplus-stores/monocard/functions/core/package.json +1 -1
- package/ecomplus-stores/monocard/functions/events/package.json +2 -2
- package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
- package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +7 -8
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/mockup-editar.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/scripts/build.sh +2 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.astro +7 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.vue +74 -20
- package/ecomplus-stores/monocard/package.json +1 -1
- package/package.json +1 -1
- package/packages/api/package.json +2 -2
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +2 -2
- package/packages/apps/custom-shipping/package.json +2 -2
- package/packages/apps/datafrete/package.json +2 -2
- package/packages/apps/discounts/package.json +2 -2
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/galaxpay/scripts/build.sh +1 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/infinitepay/package.json +2 -2
- package/packages/apps/infinitepay/scripts/build.sh +1 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +2 -2
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/mercadopago/scripts/build.sh +1 -2
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/pagarme/scripts/build.sh +1 -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 +2 -2
- package/packages/config/package.json +2 -2
- package/packages/emails/package.json +2 -2
- package/packages/events/package.json +2 -2
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +2 -2
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +2 -2
- package/packages/ssr/package.json +2 -2
- package/packages/storefront/dist/client/_astro/{_...slug_.3beb11c8.css → _...slug_.45f0edaf.css} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/pages/{all.857ce59d.mjs → all.b355675e.mjs} +12 -6
- package/packages/storefront/dist/server/entry.mjs +2 -2
- package/packages/storefront/package.json +3 -3
- package/packages/storefront/src/images/use-ssr-picture.ts +1 -0
- package/packages/storefront/src/lib/components/Picture.astro +12 -9
- package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -1
- package/packages/types/package.json +1 -1
- package/store.renovate.json +27 -11
|
@@ -6,11 +6,13 @@ import { type PictureProps, useSSRPicture } from '../../images/use-ssr-picture';
|
|
|
6
6
|
|
|
7
7
|
export type Props = PictureProps;
|
|
8
8
|
|
|
9
|
-
const deployRand =
|
|
9
|
+
const deployRand = import.meta.env.DEPLOY_RAND;
|
|
10
|
+
const versionSuffix = import.meta.env.BUILD_OUTPUT !== 'static' && deployRand
|
|
11
|
+
? `&V=${deployRand}`
|
|
12
|
+
: '';
|
|
10
13
|
|
|
11
14
|
const getImageFilepath = (src: string) => {
|
|
12
|
-
|
|
13
|
-
return resolvePath(STOREFRONT_BASE_DIR, `public${src}`);
|
|
15
|
+
return resolvePath(import.meta.env.STOREFRONT_BASE_DIR, `public${src}`);
|
|
14
16
|
};
|
|
15
17
|
const tryImageSize = (src: string) => {
|
|
16
18
|
let dimensions: { width?: number, height?: number } = {};
|
|
@@ -35,15 +37,16 @@ const {
|
|
|
35
37
|
getPicture,
|
|
36
38
|
});
|
|
37
39
|
if (imgAttrs) {
|
|
38
|
-
imgAttrs.src +=
|
|
40
|
+
imgAttrs.src += versionSuffix;
|
|
39
41
|
}
|
|
40
42
|
---
|
|
41
43
|
|
|
42
44
|
<picture {...pictureAttrs}>
|
|
43
|
-
{sources.map((attrs) =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
{sources.map((attrs) => {
|
|
46
|
+
if (versionSuffix) {
|
|
47
|
+
attrs.srcset = attrs.srcset.replace(/\s(\w+)$/, `${versionSuffix} $1`);
|
|
48
|
+
}
|
|
49
|
+
return <source {...attrs} sizes={sizes} />
|
|
50
|
+
})}
|
|
48
51
|
{imgAttrs && <img {...imgAttrs} />}
|
|
49
52
|
</picture>
|
|
@@ -8,7 +8,7 @@ export interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const deployRand =
|
|
11
|
+
const deployRand = import.meta.env.DEPLOY_RAND || '_';
|
|
12
12
|
const getIconUrl = (size: number) => {
|
|
13
13
|
return `/_image?f=png&w=${size}&h=${size}`
|
|
14
14
|
+ `&href=${encodeURIComponent(settings.icon)}&V=${deployRand}`;
|
package/store.renovate.json
CHANGED
|
@@ -11,20 +11,29 @@
|
|
|
11
11
|
"rangeStrategy": "bump",
|
|
12
12
|
"packageRules": [
|
|
13
13
|
{
|
|
14
|
+
"groupName": "Many non-major",
|
|
15
|
+
"matchPackagePatterns": [
|
|
16
|
+
"*"
|
|
17
|
+
],
|
|
14
18
|
"excludePackagePrefixes": [
|
|
15
|
-
"@ecomplus",
|
|
16
|
-
"@cloudcommerce"
|
|
19
|
+
"@ecomplus/",
|
|
20
|
+
"@cloudcommerce/",
|
|
21
|
+
"@astrojs/"
|
|
22
|
+
],
|
|
23
|
+
"excludePackageNames": [
|
|
24
|
+
"astro"
|
|
17
25
|
],
|
|
18
26
|
"matchUpdateTypes": [
|
|
19
27
|
"minor",
|
|
20
28
|
"patch",
|
|
21
29
|
"lockFileMaintenance"
|
|
22
|
-
]
|
|
23
|
-
"groupName": "Many non-major"
|
|
30
|
+
]
|
|
24
31
|
},
|
|
25
32
|
{
|
|
33
|
+
"groupName": "Cloud Commerce bump non-major",
|
|
34
|
+
"automerge": true,
|
|
26
35
|
"matchPackagePrefixes": [
|
|
27
|
-
"@cloudcommerce"
|
|
36
|
+
"@cloudcommerce/"
|
|
28
37
|
],
|
|
29
38
|
"matchUpdateTypes": [
|
|
30
39
|
"minor",
|
|
@@ -33,13 +42,12 @@
|
|
|
33
42
|
"schedule": [
|
|
34
43
|
"after 11am and before 4pm every weekday"
|
|
35
44
|
],
|
|
36
|
-
"semanticCommitType": "fix"
|
|
37
|
-
"automerge": true,
|
|
38
|
-
"groupName": "Cloud Commerce bump non-major"
|
|
45
|
+
"semanticCommitType": "fix"
|
|
39
46
|
},
|
|
40
47
|
{
|
|
48
|
+
"groupName": "@ecomplus non-major",
|
|
41
49
|
"matchPackagePrefixes": [
|
|
42
|
-
"@ecomplus"
|
|
50
|
+
"@ecomplus/"
|
|
43
51
|
],
|
|
44
52
|
"matchUpdateTypes": [
|
|
45
53
|
"minor",
|
|
@@ -48,8 +56,16 @@
|
|
|
48
56
|
"schedule": [
|
|
49
57
|
"after 11am and before 4pm every weekday"
|
|
50
58
|
],
|
|
51
|
-
"semanticCommitType": "fix"
|
|
52
|
-
|
|
59
|
+
"semanticCommitType": "fix"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"groupName": "Astro",
|
|
63
|
+
"matchPackageNames": [
|
|
64
|
+
"astro"
|
|
65
|
+
],
|
|
66
|
+
"matchPackagePrefixes": [
|
|
67
|
+
"@astrojs/"
|
|
68
|
+
]
|
|
53
69
|
}
|
|
54
70
|
],
|
|
55
71
|
"ignoreDeps": ["node", "@astrojs/image", "@astrojs/node"]
|