cloudcommerce 0.8.4 → 0.8.5

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 (65) 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 -7
  7. package/ecomplus-stores/monocard/functions/ssr/scripts/build.sh +12 -0
  8. package/ecomplus-stores/monocard/functions/ssr/src/components/CasesGrid.astro +1 -1
  9. package/ecomplus-stores/monocard/functions/ssr/src/components/FeatureTabs.astro +2 -4
  10. package/ecomplus-stores/monocard/package.json +1 -1
  11. package/package.json +9 -9
  12. package/packages/api/package.json +1 -1
  13. package/packages/apps/correios/lib-mjs/calculate-correios.mjs +3 -3
  14. package/packages/apps/correios/package.json +1 -1
  15. package/packages/apps/custom-payment/package.json +1 -1
  16. package/packages/apps/custom-shipping/package.json +1 -1
  17. package/packages/apps/datafrete/package.json +1 -1
  18. package/packages/apps/discounts/package.json +1 -1
  19. package/packages/apps/emails/package.json +2 -2
  20. package/packages/apps/fb-conversions/package.json +1 -1
  21. package/packages/apps/frenet/package.json +1 -1
  22. package/packages/apps/galaxpay/package.json +1 -1
  23. package/packages/apps/google-analytics/package.json +1 -1
  24. package/packages/apps/infinitepay/package.json +1 -1
  25. package/packages/apps/jadlog/package.json +1 -1
  26. package/packages/apps/loyalty-points/package.json +1 -1
  27. package/packages/apps/melhor-envio/package.json +1 -1
  28. package/packages/apps/mercadopago/package.json +1 -1
  29. package/packages/apps/pagarme/package.json +1 -1
  30. package/packages/apps/paghiper/package.json +1 -1
  31. package/packages/apps/pix/package.json +1 -1
  32. package/packages/apps/tiny-erp/package.json +1 -1
  33. package/packages/apps/webhooks/package.json +1 -1
  34. package/packages/cli/package.json +2 -2
  35. package/packages/config/package.json +1 -1
  36. package/packages/emails/package.json +1 -1
  37. package/packages/events/package.json +1 -1
  38. package/packages/firebase/package.json +1 -1
  39. package/packages/i18n/package.json +1 -1
  40. package/packages/modules/package.json +1 -1
  41. package/packages/passport/package.json +1 -1
  42. package/packages/ssr/package.json +1 -1
  43. package/packages/storefront/astro.config.mjs +1 -1
  44. package/packages/storefront/dist/client/_astro/{PitchBar.db7cd775.js → PitchBar.5d55c359.js} +1 -1
  45. package/packages/storefront/dist/client/_astro/{ShopHeader.e93c8274.js → ShopHeader.6bbe1a17.js} +1 -1
  46. package/packages/storefront/dist/client/_astro/_...slug_.3beb11c8.css +1 -0
  47. package/packages/storefront/dist/client/_astro/{firebase-app.72e91a3e.js → firebase-app.d090c84e.js} +5 -5
  48. package/packages/storefront/dist/client/_astro/{hoisted.721ad75d.js → hoisted.541b5c05.js} +1 -1
  49. package/packages/storefront/dist/client/_astro/index.ff4f0b30.js +1 -0
  50. package/packages/storefront/dist/client/_astro/{workbox-window.prod.es5.295a6886.js → workbox-window.prod.es5.dc90f814.js} +1 -1
  51. package/packages/storefront/dist/client/sw.js +1 -1
  52. package/packages/storefront/dist/server/chunks/pages/{all.090434f8.mjs → all.857ce59d.mjs} +108 -37
  53. package/packages/storefront/dist/server/entry.mjs +2 -2
  54. package/packages/storefront/package.json +6 -6
  55. package/packages/storefront/scripts/build-prod.sh +18 -6
  56. package/packages/storefront/src/images/Picture.runtime.astro +52 -0
  57. package/packages/storefront/src/{serverless/get-image.ts → images/get-built-image.ts} +3 -3
  58. package/packages/storefront/src/{serverless/get-picture.ts → images/get-built-picture.ts} +3 -3
  59. package/packages/storefront/src/images/use-ssr-picture.ts +138 -0
  60. package/packages/storefront/src/lib/assets/base.css +0 -5
  61. package/packages/storefront/src/lib/components/Picture.astro +21 -73
  62. package/packages/types/package.json +1 -1
  63. package/packages/storefront/dist/client/_astro/_...slug_.0607a6ef.css +0 -1
  64. package/packages/storefront/dist/client/_astro/index.16f33784.js +0 -1
  65. package/packages/storefront/src/serverless/Picture.runtime.astro +0 -102
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
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.8.5](https://github.com/ecomplus/cloud-commerce/compare/v0.8.4...v0.8.5) (2023-03-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * **storefront:** Make <Picture> `sizes` optional and parse it from `.max-w-[]` classes or `widths` ([cf1eb58](https://github.com/ecomplus/cloud-commerce/commit/cf1eb5825e8074f0099eb8725cb507f9ac90d934))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deps:** Update non-major dependencies ([#133](https://github.com/ecomplus/cloud-commerce/issues/133)) ([97d058b](https://github.com/ecomplus/cloud-commerce/commit/97d058b57c017a980ecc8599bd11fc7d8d6d938c))
16
+ * **emails:** Bump `@ecomplus/transactional-mails` to v2 ([ad920af](https://github.com/ecomplus/cloud-commerce/commit/ad920afe5ff76310f6ecd7365ca60ad4dcf10809))
17
+ * **storefront:** Prefer setting <Picture> sources sizes by max-width media queries ([8e377bb](https://github.com/ecomplus/cloud-commerce/commit/8e377bb6ac438397930a17f8e88e60198c1c03cd))
18
+ * **storefront:** Remove `width: auto;` on <Picture> images to fix CLS errors ([4df40be](https://github.com/ecomplus/cloud-commerce/commit/4df40be5e47b897b21988346a07086ca457dec16))
19
+
5
20
  ### [0.8.4](https://github.com/ecomplus/cloud-commerce/compare/v0.8.3...v0.8.4) (2023-03-18)
6
21
 
7
22
 
@@ -15,6 +15,6 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.8.3"
18
+ "@cloudcommerce/firebase": "^0.8.4"
19
19
  }
20
20
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/events": "^0.8.3",
19
- "@cloudcommerce/firebase": "^0.8.3"
18
+ "@cloudcommerce/events": "^0.8.4",
19
+ "@cloudcommerce/firebase": "^0.8.4"
20
20
  }
21
21
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.8.3",
19
- "@cloudcommerce/modules": "^0.8.3"
18
+ "@cloudcommerce/firebase": "^0.8.4",
19
+ "@cloudcommerce/modules": "^0.8.4"
20
20
  }
21
21
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.8.3",
19
- "@cloudcommerce/passport": "^0.8.3"
18
+ "@cloudcommerce/firebase": "^0.8.4",
19
+ "@cloudcommerce/passport": "^0.8.4"
20
20
  }
21
21
  }
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "astro dev --host",
7
- "build": "npx storefront build",
7
+ "build": "sh scripts/build.sh",
8
8
  "build:static": "BUILD_OUTPUT=static astro build",
9
9
  "serve": "firebase emulators:start --only functions",
10
10
  "shell": "firebase functions:shell",
@@ -18,15 +18,15 @@
18
18
  "main": "index.js",
19
19
  "dependencies": {
20
20
  "@astrojs/node": "5.1.0",
21
- "@cloudcommerce/api": "^0.8.3",
22
- "@cloudcommerce/firebase": "^0.8.3",
23
- "@cloudcommerce/ssr": "^0.8.3",
21
+ "@cloudcommerce/api": "^0.8.4",
22
+ "@cloudcommerce/firebase": "^0.8.4",
23
+ "@cloudcommerce/ssr": "^0.8.4",
24
24
  "@vueuse/motion": "2.0.0-beta.22"
25
25
  },
26
26
  "devDependencies": {
27
- "@cloudcommerce/i18n": "^0.8.3",
28
- "@cloudcommerce/storefront": "^0.8.3",
29
- "@cloudcommerce/types": "^0.8.3",
27
+ "@cloudcommerce/i18n": "^0.8.4",
28
+ "@cloudcommerce/storefront": "^0.8.4",
29
+ "@cloudcommerce/types": "^0.8.4",
30
30
  "@fontsource/inter": "^4.5.15",
31
31
  "@iconify-json/ri": "^1.1.5",
32
32
  "@iconify-json/wpf": "^1.1.4",
@@ -0,0 +1,12 @@
1
+ #!/bin/bash
2
+
3
+ # workaround for cloudcommerce pnpm monorepo
4
+ filename="../../../packages/storefront/scripts/build-prod.sh"
5
+ if [[ -f $filename ]]; then
6
+ sh $filename
7
+ elif [[ -f "../$filename" ]]; then
8
+ sh "../$filename"
9
+ else
10
+ echo '> npx storefront build'
11
+ npx storefront build
12
+ fi
@@ -41,7 +41,7 @@ const logos = [{
41
41
  src={`/img/uploads/${filename}`}
42
42
  alt={name}
43
43
  widths={[180, 300]}
44
- sizes="(max-width: 500px) 90px, 150px"
44
+ class="max-w-[90px] sm:max-w-[150px]"
45
45
  />
46
46
  </div>
47
47
  )}
@@ -9,15 +9,13 @@ import FeatureTabs from '~/components/FeatureTabs.vue';
9
9
  src={'/img/uploads/card-phone.png'}
10
10
  alt="Monocard com tecnologia NFC: aproxime o smartphone para compartilhar"
11
11
  widths={[494, 588]}
12
- sizes="(max-width: 500px) 247px, 294px"
13
- class="sm:h-72 mx-auto"
12
+ class="sm:h-72 mx-auto max-w-[247px] sm:max-w-[294px]"
14
13
  />
15
14
  <Picture
16
15
  slot="picture-qrcode"
17
16
  src={'/img/uploads/qrcode-camera.png'}
18
17
  alt="Monocard com QR Code: basta escanear o código QR para conectar"
19
18
  widths={[220, 262]}
20
- sizes="(max-width: 500px) 110px, 131px"
21
- class="sm:h-72 pb-3 sm:pt-3 mx-auto"
19
+ class="sm:h-72 pb-3 sm:pt-3 mx-auto max-w-[110px] sm:max-w-[131px]"
22
20
  />
23
21
  </FeatureTabs>
@@ -23,6 +23,6 @@
23
23
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@cloudcommerce/cli": "^0.8.3"
26
+ "@cloudcommerce/cli": "^0.8.4"
27
27
  }
28
28
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
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,13 +16,13 @@
16
16
  }
17
17
  },
18
18
  "devDependencies": {
19
- "@commitlint/cli": "^17.4.4",
19
+ "@commitlint/cli": "^17.5.0",
20
20
  "@commitlint/config-conventional": "^17.4.4",
21
21
  "@commitlint/rules": "^17.4.4",
22
- "@types/node": "^18.15.1",
23
- "@typescript-eslint/eslint-plugin": "^5.54.1",
24
- "@typescript-eslint/parser": "^5.54.1",
25
- "esbuild": "^0.17.11",
22
+ "@types/node": "^18.15.5",
23
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
24
+ "@typescript-eslint/parser": "^5.56.0",
25
+ "esbuild": "^0.17.12",
26
26
  "eslint": "^8.36.0",
27
27
  "eslint-config-airbnb-base": "^15.0.0",
28
28
  "eslint-plugin-import": "^2.27.5",
@@ -33,9 +33,9 @@
33
33
  "turbo": "1.6.3",
34
34
  "typescript": "^4.9.5",
35
35
  "uglify-js": "^3.17.4",
36
- "vite": "^4.1.4",
37
- "vitest": "^0.29.2",
38
- "zx": "^7.2.0"
36
+ "vite": "^4.2.1",
37
+ "vitest": "^0.29.7",
38
+ "zx": "^7.2.1"
39
39
  },
40
40
  "scripts": {
41
41
  "fix-install": "bash scripts/pre-install.sh && pnpm i",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
@@ -303,9 +303,9 @@ export default async ({ params, application }) => {
303
303
  let label = serviceName || `Correios ${Codigo}`;
304
304
  if (Array.isArray(config.services)) {
305
305
  for (let i = 0; i < config.services.length; i++) {
306
- const service = config.services[i];
307
- if (service && service.service_code === Codigo && service.label) {
308
- label = service.label;
306
+ const _service = config.services[i];
307
+ if (_service && _service.service_code === Codigo && _service.label) {
308
+ label = _service.label;
309
309
  }
310
310
  }
311
311
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/correios.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-payment",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for simple custom payment methods",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-shipping",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for custom shipping methods",
6
6
  "main": "lib/custom-shipping.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-datafrete",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
6
6
  "main": "lib/datafrete.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-emails",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce default transactional email app",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "@cloudcommerce/api": "workspace:*",
23
23
  "@cloudcommerce/emails": "workspace:*",
24
24
  "@cloudcommerce/firebase": "workspace:*",
25
- "@ecomplus/transactional-mails": "^1.11.1",
25
+ "@ecomplus/transactional-mails": "^2.0.0",
26
26
  "firebase-admin": "^11.5.0",
27
27
  "firebase-functions": "^3.24.1"
28
28
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-fb-conversions",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to send carts/orders to Facebook Conversions API",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-frenet",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
6
6
  "main": "lib/frenet.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-galaxpay",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
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": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-google-analytics",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
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": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-infinitepay",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
6
6
  "main": "lib/infinitepay.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-jadlog",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-loyalty-points",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to handle simple loyalty points programs",
6
6
  "main": "lib/loyalty-points.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-melhor-envio",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-mercadopago",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
6
6
  "main": "lib/mercadopago.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pagarme",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
6
6
  "main": "lib/pagarme.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
6
6
  "main": "lib/paghiper.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pix",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pix API (Bacen)",
6
6
  "main": "lib/pix.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-webhooks",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app for general order webhooks",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -29,6 +29,6 @@
29
29
  "@cloudcommerce/api": "workspace:*",
30
30
  "libsodium-wrappers": "^0.7.11",
31
31
  "md5": "^2.3.0",
32
- "zx": "^7.2.0"
32
+ "zx": "^7.2.1"
33
33
  }
34
34
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/config",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce base config",
6
6
  "main": "lib/config.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/emails",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/i18n",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce i18n",
6
6
  "main": "lib/all.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce modules API",
6
6
  "main": "lib/index.cjs",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/passport",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/ssr",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -140,7 +140,7 @@ const viteAlias = [];
140
140
  if (isToServerless) {
141
141
  viteAlias.push({
142
142
  find: '@@sf/components/Picture.astro',
143
- replacement: joinPath(__dirname, 'src/serverless/Picture.runtime.astro'),
143
+ replacement: joinPath(__dirname, 'src/images/Picture.runtime.astro'),
144
144
  });
145
145
  }
146
146
  viteAlias.push(
@@ -1 +1 @@
1
- import{v as G}from"./runtime-dom.esm-bundler.d2f39f33.js";import{p as J}from"./modules-info.06ac0727.js";import{f as C,d as R,_ as A,k as Q,o as u,g as p,l as x,i as I,n as z,r as d,m as g,p as D,q as X,s as Y,u as Z,v as ee,c as $,w as v,a as q,b,x as te,y as ae,z as oe,F as re,A as se,h as ne}from"./_plugin-vue_export-helper.77ed7c18.js";import{u as le,a as ie,b as ue}from"./index.16f33784.js";/* empty css */import"./session-utm.72684b84.js";import"./idle-callback.889bf0ea.js";import"./format-money.ab6b71eb.js";const ce=r=>{const s=C(()=>r.slides.map(({html:e})=>J(e).value)),a=C(()=>s.value.filter(e=>e).length);return{parsedContents:s,countValidSlides:a}},K=Symbol("carousel"),de=R({__name:"CarouselControl",props:{direction:{default:1}},setup(r,{expose:s}){s();const{changeSlide:a}=Q(K),e={changeSlide:a};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),fe=["aria-label","data-carousel-control"];function pe(r,s,a,e,n,o){return u(),p("button",{type:"button","aria-label":a.direction>0?"Próximo":"Anterior",onClick:s[0]||(s[0]=i=>e.changeSlide(a.direction)),class:z(["group absolute top-0",a.direction>0?"right-0":"left-0"]),"data-carousel-control":a.direction>0?"next":"previous"},[x(r.$slots,"default",{},()=>[I("i",{class:z(["m-0",a.direction>0?"i-chevron-right group-active:translate-x-1":"i-chevron-left group-active:-translate-x-1"])},null,2)])],10,fe)}const U=A(de,[["render",pe]]),ve=R({__name:"Carousel",props:{as:{default:"ul"},modelValue:{default:1},autoplay:null},emits:["update:modelValue"],setup(r,{expose:s,emit:a}){s();const e=r,n=d(e.modelValue-1);g(D(e,"modelValue"),t=>{n.value=t-1}),g(n,(t,l)=>{t!==l&&a("update:modelValue",t+1)});const o=d(null),{x:i,isScrolling:f,arrivedState:S}=le(o),y=C(()=>S.left),w=C(()=>S.right),h=d([]),B=d(0),L=d(0),P=d(0),E=()=>{B.value=o.value.scrollWidth,L.value=o.value.offsetWidth},N=()=>{const t=[...o.value.children];h.value=t.map(l=>({offsetLeft:l.offsetLeft,width:l.offsetWidth}))},j=t=>{const l=t>0?n.value:n.value+t,O=h.value[l]?.width||0;return O?O*t:0},V=()=>{const t=h.value.findIndex(l=>Math.abs(l.offsetLeft-i.value)<=5);t>-1&&(n.value=t||0)},k=()=>{const t=B.value-L.value;P.value=h.value.findIndex(({offsetLeft:l})=>l>=t-5)};let c=null;const m=()=>{e.autoplay&&(clearTimeout(c),c=setTimeout(()=>{_(1)},e.autoplay))},_=t=>{if(t<0){if(y.value){k(),n.value=P.value-1,_(1);return}}else if(w.value){n.value=1,_(-1);return}const l=j(t);l&&(o.value.scrollBy({left:l,behavior:"smooth"}),m())};g(f,t=>{t?clearTimeout(c):(V(),m())});const F=d(null),H=ie(F);g(H,t=>{t?clearTimeout(c):m()});const T=()=>{o.value&&(E(),N(),V(),k())},W=ue(()=>{o.value.scrollLeft=0,T()},400);X(()=>{T(),Y(()=>{[...o.value.children].forEach(t=>{t.setAttribute("tabindex","0")})}),m(),window.addEventListener("resize",W)}),Z(()=>{window.removeEventListener("resize",W),clearTimeout(c)}),ee(K,{autoplay:D(e,"autoplay"),changeSlide:_,isBoundLeft:y,isBoundRight:w});const M={props:e,emit:a,currentIndex:n,wrapper:o,currentPos:i,isScrolling:f,arrivedState:S,isBoundLeft:y,isBoundRight:w,slidesWidth:h,wrapperScrollWidth:B,wrapperVisibleWidth:L,indexCount:P,calcWrapperWidth:E,calcSlidesWidth:N,calcNextWidth:j,calcCurrentIndex:V,calcIndexCount:k,get autoplayTimer(){return c},set autoplayTimer(t){c=t},restartAutoplay:m,changeSlide:_,carousel:F,isHovered:H,calcOnInit:T,onResize:W,CarouselControl:U};return Object.defineProperty(M,"__isScriptSetup",{enumerable:!1,value:!0}),M}}),he={ref:"carousel",class:"relative","data-carousel":""};function me(r,s,a,e,n,o){return u(),p("div",he,[(u(),$(q(a.as),{ref:"wrapper",class:"flex overflow-x-scroll overflow-y-hidden list-none m-0 p-0","data-carousel-wrapper":""},{default:v(()=>[x(r.$slots,"default")]),_:3},512)),x(r.$slots,"controls",te(ae({changeSlide:e.changeSlide,isBoundLeft:e.isBoundLeft,isBoundRight:e.isBoundRight,currentPage:e.currentIndex+1,pageCount:e.indexCount+1})),()=>[b(e.CarouselControl,{direction:-1},{default:v(()=>[x(r.$slots,"previous")]),_:3}),b(e.CarouselControl,null,{default:v(()=>[x(r.$slots,"next")]),_:3})])],512)}const _e=A(ve,[["render",me]]),xe=R({__name:"PitchBar",props:{slides:null},setup(r,{expose:s}){s();const a=r,{parsedContents:e,countValidSlides:n}=ce(a),o={props:a,parsedContents:e,countValidSlides:n,Carousel:_e,CarouselControl:U};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),be={class:"bg-base-100 relative z-1"},ge={class:"container md:w-2/3 mx-auto px-3 py-1"},Ce=["innerHTML"],Se={class:"text-xl leading-none text-base-400"};function ye(r,s,a,e,n,o){return u(),p("div",be,[I("div",ge,[b(e.Carousel,{autoplay:e.countValidSlides>1?7e3:null},{controls:v(()=>[oe(I("div",Se,[b(e.CarouselControl,{direction:-1,class:"pr-2 bg-base-100 hover:text-base-700"}),b(e.CarouselControl,{class:"pl-2 bg-base-100 hover:text-base-700"})],512),[[G,e.countValidSlides>1]])]),default:v(()=>[(u(!0),p(re,null,se(a.slides,(i,f)=>(u(),p("li",{key:f,class:"shrink-0 basis-full h-full text-center"},[(u(),$(q(i.href?"ALink":"span"),{href:i.href,target:i.target,class:z(["inline-block px-8",i.href?"hover:underline":null])},{default:v(()=>[e.parsedContents[f]?(u(),p("span",{key:0,innerHTML:e.parsedContents[f],class:"prose text-sm text-base-800"},null,8,Ce)):ne("",!0)]),_:2},1032,["href","target","class"]))]))),128))]),_:1},8,["autoplay"])])])}const Ie=A(xe,[["render",ye]]);export{Ie as default};
1
+ import{v as G}from"./runtime-dom.esm-bundler.d2f39f33.js";import{p as J}from"./modules-info.06ac0727.js";import{f as C,d as R,_ as A,k as Q,o as u,g as p,l as x,i as I,n as z,r as d,m as g,p as D,q as X,s as Y,u as Z,v as ee,c as $,w as v,a as q,b,x as te,y as ae,z as oe,F as re,A as se,h as ne}from"./_plugin-vue_export-helper.77ed7c18.js";import{u as le,a as ie,b as ue}from"./index.ff4f0b30.js";/* empty css */import"./session-utm.72684b84.js";import"./idle-callback.889bf0ea.js";import"./format-money.ab6b71eb.js";const ce=r=>{const s=C(()=>r.slides.map(({html:e})=>J(e).value)),a=C(()=>s.value.filter(e=>e).length);return{parsedContents:s,countValidSlides:a}},K=Symbol("carousel"),de=R({__name:"CarouselControl",props:{direction:{default:1}},setup(r,{expose:s}){s();const{changeSlide:a}=Q(K),e={changeSlide:a};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}}),fe=["aria-label","data-carousel-control"];function pe(r,s,a,e,n,o){return u(),p("button",{type:"button","aria-label":a.direction>0?"Próximo":"Anterior",onClick:s[0]||(s[0]=i=>e.changeSlide(a.direction)),class:z(["group absolute top-0",a.direction>0?"right-0":"left-0"]),"data-carousel-control":a.direction>0?"next":"previous"},[x(r.$slots,"default",{},()=>[I("i",{class:z(["m-0",a.direction>0?"i-chevron-right group-active:translate-x-1":"i-chevron-left group-active:-translate-x-1"])},null,2)])],10,fe)}const U=A(de,[["render",pe]]),ve=R({__name:"Carousel",props:{as:{default:"ul"},modelValue:{default:1},autoplay:null},emits:["update:modelValue"],setup(r,{expose:s,emit:a}){s();const e=r,n=d(e.modelValue-1);g(D(e,"modelValue"),t=>{n.value=t-1}),g(n,(t,l)=>{t!==l&&a("update:modelValue",t+1)});const o=d(null),{x:i,isScrolling:f,arrivedState:S}=le(o),y=C(()=>S.left),w=C(()=>S.right),h=d([]),B=d(0),L=d(0),P=d(0),E=()=>{B.value=o.value.scrollWidth,L.value=o.value.offsetWidth},N=()=>{const t=[...o.value.children];h.value=t.map(l=>({offsetLeft:l.offsetLeft,width:l.offsetWidth}))},j=t=>{const l=t>0?n.value:n.value+t,O=h.value[l]?.width||0;return O?O*t:0},V=()=>{const t=h.value.findIndex(l=>Math.abs(l.offsetLeft-i.value)<=5);t>-1&&(n.value=t||0)},k=()=>{const t=B.value-L.value;P.value=h.value.findIndex(({offsetLeft:l})=>l>=t-5)};let c=null;const m=()=>{e.autoplay&&(clearTimeout(c),c=setTimeout(()=>{_(1)},e.autoplay))},_=t=>{if(t<0){if(y.value){k(),n.value=P.value-1,_(1);return}}else if(w.value){n.value=1,_(-1);return}const l=j(t);l&&(o.value.scrollBy({left:l,behavior:"smooth"}),m())};g(f,t=>{t?clearTimeout(c):(V(),m())});const F=d(null),H=ie(F);g(H,t=>{t?clearTimeout(c):m()});const T=()=>{o.value&&(E(),N(),V(),k())},W=ue(()=>{o.value.scrollLeft=0,T()},400);X(()=>{T(),Y(()=>{[...o.value.children].forEach(t=>{t.setAttribute("tabindex","0")})}),m(),window.addEventListener("resize",W)}),Z(()=>{window.removeEventListener("resize",W),clearTimeout(c)}),ee(K,{autoplay:D(e,"autoplay"),changeSlide:_,isBoundLeft:y,isBoundRight:w});const M={props:e,emit:a,currentIndex:n,wrapper:o,currentPos:i,isScrolling:f,arrivedState:S,isBoundLeft:y,isBoundRight:w,slidesWidth:h,wrapperScrollWidth:B,wrapperVisibleWidth:L,indexCount:P,calcWrapperWidth:E,calcSlidesWidth:N,calcNextWidth:j,calcCurrentIndex:V,calcIndexCount:k,get autoplayTimer(){return c},set autoplayTimer(t){c=t},restartAutoplay:m,changeSlide:_,carousel:F,isHovered:H,calcOnInit:T,onResize:W,CarouselControl:U};return Object.defineProperty(M,"__isScriptSetup",{enumerable:!1,value:!0}),M}}),he={ref:"carousel",class:"relative","data-carousel":""};function me(r,s,a,e,n,o){return u(),p("div",he,[(u(),$(q(a.as),{ref:"wrapper",class:"flex overflow-x-scroll overflow-y-hidden list-none m-0 p-0","data-carousel-wrapper":""},{default:v(()=>[x(r.$slots,"default")]),_:3},512)),x(r.$slots,"controls",te(ae({changeSlide:e.changeSlide,isBoundLeft:e.isBoundLeft,isBoundRight:e.isBoundRight,currentPage:e.currentIndex+1,pageCount:e.indexCount+1})),()=>[b(e.CarouselControl,{direction:-1},{default:v(()=>[x(r.$slots,"previous")]),_:3}),b(e.CarouselControl,null,{default:v(()=>[x(r.$slots,"next")]),_:3})])],512)}const _e=A(ve,[["render",me]]),xe=R({__name:"PitchBar",props:{slides:null},setup(r,{expose:s}){s();const a=r,{parsedContents:e,countValidSlides:n}=ce(a),o={props:a,parsedContents:e,countValidSlides:n,Carousel:_e,CarouselControl:U};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),be={class:"bg-base-100 relative z-1"},ge={class:"container md:w-2/3 mx-auto px-3 py-1"},Ce=["innerHTML"],Se={class:"text-xl leading-none text-base-400"};function ye(r,s,a,e,n,o){return u(),p("div",be,[I("div",ge,[b(e.Carousel,{autoplay:e.countValidSlides>1?7e3:null},{controls:v(()=>[oe(I("div",Se,[b(e.CarouselControl,{direction:-1,class:"pr-2 bg-base-100 hover:text-base-700"}),b(e.CarouselControl,{class:"pl-2 bg-base-100 hover:text-base-700"})],512),[[G,e.countValidSlides>1]])]),default:v(()=>[(u(!0),p(re,null,se(a.slides,(i,f)=>(u(),p("li",{key:f,class:"shrink-0 basis-full h-full text-center"},[(u(),$(q(i.href?"ALink":"span"),{href:i.href,target:i.target,class:z(["inline-block px-8",i.href?"hover:underline":null])},{default:v(()=>[e.parsedContents[f]?(u(),p("span",{key:0,innerHTML:e.parsedContents[f],class:"prose text-sm text-base-800"},null,8,Ce)):ne("",!0)]),_:2},1032,["href","target","class"]))]))),128))]),_:1},8,["autoplay"])])])}const Ie=A(xe,[["render",ye]]);export{Ie as default};