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.
Files changed (56) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/ecomplus-stores/monocard/functions/core/package.json +1 -1
  3. package/ecomplus-stores/monocard/functions/events/package.json +2 -2
  4. package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
  5. package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
  6. package/ecomplus-stores/monocard/functions/ssr/package.json +7 -8
  7. package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/mockup-editar.png +0 -0
  8. package/ecomplus-stores/monocard/functions/ssr/scripts/build.sh +2 -0
  9. package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.astro +7 -0
  10. package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.vue +74 -20
  11. package/ecomplus-stores/monocard/package.json +1 -1
  12. package/package.json +1 -1
  13. package/packages/api/package.json +2 -2
  14. package/packages/apps/correios/package.json +2 -2
  15. package/packages/apps/custom-payment/package.json +2 -2
  16. package/packages/apps/custom-shipping/package.json +2 -2
  17. package/packages/apps/datafrete/package.json +2 -2
  18. package/packages/apps/discounts/package.json +2 -2
  19. package/packages/apps/emails/package.json +2 -2
  20. package/packages/apps/fb-conversions/package.json +2 -2
  21. package/packages/apps/frenet/package.json +2 -2
  22. package/packages/apps/galaxpay/package.json +2 -2
  23. package/packages/apps/galaxpay/scripts/build.sh +1 -2
  24. package/packages/apps/google-analytics/package.json +2 -2
  25. package/packages/apps/infinitepay/package.json +2 -2
  26. package/packages/apps/infinitepay/scripts/build.sh +1 -2
  27. package/packages/apps/jadlog/package.json +2 -2
  28. package/packages/apps/loyalty-points/package.json +2 -2
  29. package/packages/apps/melhor-envio/package.json +2 -2
  30. package/packages/apps/mercadopago/package.json +2 -2
  31. package/packages/apps/mercadopago/scripts/build.sh +1 -2
  32. package/packages/apps/pagarme/package.json +2 -2
  33. package/packages/apps/pagarme/scripts/build.sh +1 -2
  34. package/packages/apps/paghiper/package.json +2 -2
  35. package/packages/apps/pix/package.json +2 -2
  36. package/packages/apps/tiny-erp/package.json +2 -2
  37. package/packages/apps/webhooks/package.json +2 -2
  38. package/packages/cli/package.json +2 -2
  39. package/packages/config/package.json +2 -2
  40. package/packages/emails/package.json +2 -2
  41. package/packages/events/package.json +2 -2
  42. package/packages/firebase/package.json +2 -2
  43. package/packages/i18n/package.json +2 -2
  44. package/packages/modules/package.json +3 -3
  45. package/packages/passport/package.json +2 -2
  46. package/packages/ssr/package.json +2 -2
  47. package/packages/storefront/dist/client/_astro/{_...slug_.3beb11c8.css → _...slug_.45f0edaf.css} +1 -1
  48. package/packages/storefront/dist/client/sw.js +1 -1
  49. package/packages/storefront/dist/server/chunks/pages/{all.857ce59d.mjs → all.b355675e.mjs} +12 -6
  50. package/packages/storefront/dist/server/entry.mjs +2 -2
  51. package/packages/storefront/package.json +3 -3
  52. package/packages/storefront/src/images/use-ssr-picture.ts +1 -0
  53. package/packages/storefront/src/lib/components/Picture.astro +12 -9
  54. package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -1
  55. package/packages/types/package.json +1 -1
  56. 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 = process.env.DEPLOY_RAND || '_';
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
- const { STOREFRONT_BASE_DIR } = import.meta.env;
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 += `&V=${deployRand}`;
40
+ imgAttrs.src += versionSuffix;
39
41
  }
40
42
  ---
41
43
 
42
44
  <picture {...pictureAttrs}>
43
- {sources.map((attrs) => <source
44
- type={attrs.type}
45
- srcset={attrs.srcset.replace(/\s(\w+)$/, `&V=${deployRand} $1`)}
46
- sizes={sizes}
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 = process.env.DEPLOY_RAND || '_';
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}`;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.8.5",
4
+ "version": "0.8.7",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -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
- "groupName": "@ecomplus non-major"
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"]