cloudcommerce 2.0.5 → 2.0.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 (54) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/action.yml +9 -6
  4. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  5. package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
  6. package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
  7. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -1
  8. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  9. package/ecomplus-stores/barra-doce/package.json +2 -2
  10. package/package.json +2 -2
  11. package/packages/api/package.json +1 -1
  12. package/packages/apps/affiliate-program/package.json +1 -1
  13. package/packages/apps/correios/package.json +1 -1
  14. package/packages/apps/custom-payment/package.json +1 -1
  15. package/packages/apps/custom-shipping/package.json +1 -1
  16. package/packages/apps/datafrete/package.json +1 -1
  17. package/packages/apps/discounts/package.json +1 -1
  18. package/packages/apps/emails/package.json +1 -1
  19. package/packages/apps/fb-conversions/package.json +1 -1
  20. package/packages/apps/flash-courier/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/jadlog/package.json +1 -1
  25. package/packages/apps/loyalty-points/package.json +1 -1
  26. package/packages/apps/mandae/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/pagarme-v5/package.json +1 -1
  31. package/packages/apps/paghiper/package.json +1 -1
  32. package/packages/apps/pix/package.json +1 -1
  33. package/packages/apps/tiny-erp/package.json +1 -1
  34. package/packages/apps/webhooks/package.json +1 -1
  35. package/packages/cli/package.json +1 -1
  36. package/packages/config/package.json +1 -1
  37. package/packages/emails/package.json +1 -1
  38. package/packages/eslint/package.json +1 -1
  39. package/packages/events/package.json +1 -1
  40. package/packages/feeds/package.json +1 -1
  41. package/packages/firebase/lib/config.js +8 -0
  42. package/packages/firebase/lib/config.js.map +1 -1
  43. package/packages/firebase/package.json +2 -1
  44. package/packages/firebase/src/config.ts +11 -0
  45. package/packages/i18n/package.json +1 -1
  46. package/packages/modules/package.json +1 -1
  47. package/packages/passport/package.json +1 -1
  48. package/packages/ssr/package.json +3 -3
  49. package/packages/storefront/config/storefront.tailwind.cjs +10 -1
  50. package/packages/storefront/config/storefront.unocss.cjs +1 -1
  51. package/packages/storefront/package.json +4 -4
  52. package/packages/storefront/src/lib/components/globals/ALink.vue +1 -0
  53. package/packages/test-base/package.json +1 -1
  54. package/packages/types/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
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.7](https://github.com/ecomplus/cloud-commerce/compare/v2.0.6...v2.0.7) (2024-01-12)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **firebase:** Use `dotenv` on `firebase/lib/config` to ensure vars on deployment ([9e7b8d4](https://github.com/ecomplus/cloud-commerce/commit/9e7b8d404690f8148349c07c4679ba8265786ed1))
11
+ * **storefront:** Bump Vie to latest v.3.4.11 ([f9ad320](https://github.com/ecomplus/cloud-commerce/commit/f9ad320f50d05b5f360d539511560d740c0014c2))
12
+
13
+ ### [2.0.6](https://github.com/ecomplus/cloud-commerce/compare/v2.0.5...v2.0.6) (2024-01-11)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **storefront:** Bump Astro to v4.1.12 ([d6eb8bc](https://github.com/ecomplus/cloud-commerce/commit/d6eb8bc8ff986878ecdfca537bc4053da52829f6))
19
+ * **storefront:** Edit global `<ALink>` to properly set target blank for external links ([f1cde20](https://github.com/ecomplus/cloud-commerce/commit/f1cde2019eb047dbbce6e0685de9d4d007bd2b7c))
20
+ * **storefront:** Properly add all available `.i-<iconset>-<icon>` to Tailwind config ([3907943](https://github.com/ecomplus/cloud-commerce/commit/3907943b3d2e841b78b0d37ba100a189333a4db1))
21
+
5
22
  ### [2.0.5](https://github.com/ecomplus/cloud-commerce/compare/v2.0.4...v2.0.5) (2024-01-10)
6
23
 
7
24
 
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/) PWA & Jamstack storefront;
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
@@ -315,14 +315,17 @@ runs:
315
315
  TIKTOK_PIXEL_ID=$TIKTOK_PIXEL_ID
316
316
  " > functions/.env
317
317
  if [ -z "$DEPLOY_CODEBASE" ]; then
318
- GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy
318
+ BUNNYNET_API_KEY=$BUNNYNET_API_KEY \
319
+ GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME \
320
+ npm run deploy
319
321
  else
320
322
  if [ $DEPLOY_CODEBASE == "ssr" ]; then
321
- GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy -- \
322
- --only functions:$DEPLOY_CODEBASE,hosting
323
+ BUNNYNET_API_KEY=$BUNNYNET_API_KEY \
324
+ GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME \
325
+ npm run deploy -- --only functions:$DEPLOY_CODEBASE,hosting
323
326
  else
324
- GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy -- \
325
- --only functions:$DEPLOY_CODEBASE
327
+ GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME \
328
+ npm run deploy -- --only functions:$DEPLOY_CODEBASE
326
329
  fi
327
330
  fi
328
331
 
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/feeds": "^2.0.4",
19
- "@cloudcommerce/firebase": "^2.0.4",
20
- "@cloudcommerce/passport": "^2.0.4"
18
+ "@cloudcommerce/feeds": "^2.0.6",
19
+ "@cloudcommerce/firebase": "^2.0.6",
20
+ "@cloudcommerce/passport": "^2.0.6"
21
21
  }
22
22
  }
@@ -17,15 +17,15 @@
17
17
  },
18
18
  "main": "index.js",
19
19
  "dependencies": {
20
- "@cloudcommerce/api": "^2.0.4",
21
- "@cloudcommerce/firebase": "^2.0.4",
22
- "@cloudcommerce/ssr": "^2.0.4",
20
+ "@cloudcommerce/api": "^2.0.6",
21
+ "@cloudcommerce/firebase": "^2.0.6",
22
+ "@cloudcommerce/ssr": "^2.0.6",
23
23
  "@headlessui/vue": "^1.7.16"
24
24
  },
25
25
  "devDependencies": {
26
- "@cloudcommerce/i18n": "^2.0.4",
27
- "@cloudcommerce/storefront": "^2.0.4",
28
- "@cloudcommerce/types": "^2.0.4",
26
+ "@cloudcommerce/i18n": "^2.0.6",
27
+ "@cloudcommerce/storefront": "^2.0.6",
28
+ "@cloudcommerce/types": "^2.0.6",
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 my-6 md:my-8;
80
+ @apply container 2xl:max-w-7xl mx-auto px-4 sm:px-2;
81
81
  }
82
82
  .ui-section {
83
- @apply sm:px-2 my-6 md:my-8;
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.4",
19
- "@cloudcommerce/firebase": "^2.0.4",
20
- "@cloudcommerce/modules": "^2.0.4"
18
+ "@cloudcommerce/events": "^2.0.6",
19
+ "@cloudcommerce/firebase": "^2.0.6",
20
+ "@cloudcommerce/modules": "^2.0.6"
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.4"
26
+ "@cloudcommerce/cli": "^2.0.6"
27
27
  },
28
28
  "devDependencies": {
29
- "@cloudcommerce/eslint": "^2.0.4"
29
+ "@cloudcommerce/eslint": "^2.0.6"
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.5",
4
+ "version": "2.0.7",
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.5"
34
+ "@cloudcommerce/eslint": "2.0.7"
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/api",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-affiliate-program",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce app for simple affiliate program",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-payment",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce default transactional email app",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-fb-conversions",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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-flash-courier",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Flash Courier",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-frenet",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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-jadlog",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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-mandae",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mandaê shipping intermediator",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-melhor-envio",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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-pagarme-v5",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/config",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce email sender",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/eslint",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce ESLint config",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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/feeds",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce catalog feeds",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,15 @@
1
1
  import { join as joinPath } from 'node:path';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
+ import * as dotenv from 'dotenv';
3
4
  import config from '@cloudcommerce/config';
4
5
 
6
+ if (!process.env.DEPLOY_REGION
7
+ && !process.env.DEPLOY_REGION
8
+ && !process.env.ECOM_STORE_ID) {
9
+ const pwd = process.cwd();
10
+ dotenv.config();
11
+ dotenv.config({ path: joinPath(pwd, 'functions/.env') });
12
+ }
5
13
  const tinyErpEvents = [
6
14
  'orders-anyStatusSet',
7
15
  'products-new',
@@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iBAAiB;SAC1B;QACD,WAAW,EAAE;YACX,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,iBAAiB;SAC1B;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,sBAAsB;SAC/B;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM;SACd;QACD,MAAM,EAAE;YACN,KAAK,EAAE,MAAM;SACd;QACD,SAAS,EAAE;YACT,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,eAAe;SACxB;KACF;IACD,eAAe;IACf,UAAU,EAAE,EAAE;CACf,CAAC;AACF,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAExB,eAAe,MAId,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -33,6 +33,7 @@
33
33
  "@cloudcommerce/api": "workspace:*",
34
34
  "@cloudcommerce/config": "workspace:*",
35
35
  "@google-cloud/pubsub": "^4.1.0",
36
+ "dotenv": "^16.3.1",
36
37
  "firebase-admin": "^12.0.0",
37
38
  "firebase-functions": "^4.6.0",
38
39
  "source-map-support": "^0.5.21"
@@ -1,8 +1,19 @@
1
1
  import type { ApiEventName, SettingsContent } from '@cloudcommerce/types';
2
2
  import { join as joinPath } from 'node:path';
3
3
  import { existsSync, readFileSync } from 'node:fs';
4
+ import * as dotenv from 'dotenv';
4
5
  import config, { BaseConfig } from '@cloudcommerce/config';
5
6
 
7
+ if (
8
+ !process.env.DEPLOY_REGION
9
+ && !process.env.DEPLOY_REGION
10
+ && !process.env.ECOM_STORE_ID
11
+ ) {
12
+ const pwd = process.cwd();
13
+ dotenv.config();
14
+ dotenv.config({ path: joinPath(pwd, 'functions/.env') });
15
+ }
16
+
6
17
  const tinyErpEvents: ApiEventName[] = [
7
18
  'orders-anyStatusSet',
8
19
  'products-new',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/i18n",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
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": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -32,13 +32,13 @@
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.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",
39
39
  "firebase-functions": "^4.6.0",
40
40
  "mitt": "^3.0.1",
41
- "vue": "^3.4.5",
41
+ "vue": "^3.4.11",
42
42
  "yaml": "^2.3.4"
43
43
  },
44
44
  "devDependencies": {
@@ -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}:${icon}` });
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.5",
4
+ "version": "2.0.7",
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.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,13 +51,13 @@
51
51
  "mime": "^3.0.0",
52
52
  "mitt": "^3.0.1",
53
53
  "semver": "^7.5.4",
54
- "sharp": "^0.33.1",
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",
58
58
  "vite": "^5.0.11",
59
59
  "vite-plugin-pwa": "^0.17.4",
60
- "vue": "^3.4.5",
60
+ "vue": "^3.4.11",
61
61
  "wade": "0.3.3",
62
62
  "yaml": "^2.3.4"
63
63
  },
@@ -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
  });
@@ -2,7 +2,7 @@
2
2
  "name": "@cloudcommerce/test-base",
3
3
  "private": true,
4
4
  "type": "module",
5
- "version": "2.0.5",
5
+ "version": "2.0.7",
6
6
  "description": "E-Com Plus Cloud Commerce basic setup for testing",
7
7
  "main": "lib/index.js",
8
8
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {