cloudcommerce 0.0.105 → 0.0.107

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 (87) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/action.yml +5 -0
  3. package/package.json +1 -1
  4. package/packages/api/package.json +1 -1
  5. package/packages/apps/correios/package.json +1 -1
  6. package/packages/apps/custom-shipping/package.json +1 -1
  7. package/packages/apps/discounts/package.json +1 -1
  8. package/packages/apps/frenet/package.json +1 -1
  9. package/packages/apps/tiny-erp/package.json +1 -1
  10. package/packages/cli/package.json +1 -1
  11. package/packages/config/package.json +1 -1
  12. package/packages/events/package.json +1 -1
  13. package/packages/firebase/lib/config.js +1 -1
  14. package/packages/firebase/package.json +1 -1
  15. package/packages/firebase/src/config.ts +1 -1
  16. package/packages/i18n/CHANGELOG.md +1 -0
  17. package/packages/i18n/README.md +1 -0
  18. package/packages/i18n/lib/all.d.ts +8 -0
  19. package/packages/i18n/lib/all.js +10 -0
  20. package/packages/i18n/lib/all.js.map +1 -0
  21. package/packages/i18n/lib/en_us.d.ts +1133 -0
  22. package/packages/i18n/lib/en_us.js +1135 -0
  23. package/packages/i18n/lib/en_us.js.map +1 -0
  24. package/packages/i18n/lib/pt_br.d.ts +1133 -0
  25. package/packages/i18n/lib/pt_br.js +1135 -0
  26. package/packages/i18n/lib/pt_br.js.map +1 -0
  27. package/packages/i18n/package.json +27 -0
  28. package/packages/i18n/src/all.ts +9 -0
  29. package/packages/{storefront/src/lib/i18n/en-us.ts → i18n/src/en_us.ts} +5 -0
  30. package/packages/{storefront/src/lib/i18n/pt-br.ts → i18n/src/pt_br.ts} +6 -1
  31. package/packages/i18n/tsconfig.json +6 -0
  32. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js +12 -1
  33. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js.map +1 -1
  34. package/packages/modules/lib/firebase/functions-checkout/new-order.js +2 -2
  35. package/packages/modules/lib/firebase/functions-checkout/new-order.js.map +1 -1
  36. package/packages/modules/lib/firebase/handle-module.js +1 -1
  37. package/packages/modules/lib/firebase/handle-module.js.map +1 -1
  38. package/packages/modules/package.json +1 -1
  39. package/packages/modules/src/firebase/functions-checkout/handle-order-transaction.ts +24 -1
  40. package/packages/modules/src/firebase/functions-checkout/new-order.ts +2 -2
  41. package/packages/modules/src/firebase/handle-module.ts +1 -1
  42. package/packages/passport/package.json +1 -1
  43. package/packages/ssr/lib/firebase/serve-storefront.js +18 -23
  44. package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
  45. package/packages/ssr/lib/firebase.js +1 -1
  46. package/packages/ssr/lib/firebase.js.map +1 -1
  47. package/packages/ssr/package.json +1 -2
  48. package/packages/ssr/src/firebase/serve-storefront.ts +19 -24
  49. package/packages/ssr/src/firebase.ts +1 -1
  50. package/packages/storefront/astro.config.mjs +19 -13
  51. package/packages/storefront/dist/client/{LoginOffcanvas.3d5263f0.js → LoginOffcanvas.c2a47936.js} +1 -1
  52. package/packages/storefront/dist/client/assets/_...4826ec44.css +4 -0
  53. package/packages/storefront/dist/client/chunks/{LoginForm.407264cf.js → LoginForm.c86d05cc.js} +93 -93
  54. package/packages/storefront/dist/client/chunks/LoginOffcanvas.794b9840.js +1 -0
  55. package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.4b976197.js +1 -0
  56. package/packages/storefront/dist/client/{client.b552d86a.js → client.6db2fd63.js} +1 -1
  57. package/packages/storefront/dist/client/sw.js +1 -1
  58. package/packages/storefront/dist/server/avif/avif_node_dec.wasm +0 -0
  59. package/packages/storefront/dist/server/avif/avif_node_enc.wasm +0 -0
  60. package/packages/storefront/dist/server/entry.mjs +11529 -374
  61. package/packages/storefront/dist/server/mozjpeg/mozjpeg_node_dec.wasm +0 -0
  62. package/packages/storefront/dist/server/mozjpeg/mozjpeg_node_enc.wasm +0 -0
  63. package/packages/storefront/dist/server/png/squoosh_oxipng_bg.wasm +0 -0
  64. package/packages/storefront/dist/server/png/squoosh_png_bg.wasm +0 -0
  65. package/packages/storefront/dist/server/resize/squoosh_resize_bg.wasm +0 -0
  66. package/packages/storefront/dist/server/rotate/rotate.wasm +0 -0
  67. package/packages/storefront/dist/server/webp/webp_node_dec.wasm +0 -0
  68. package/packages/storefront/dist/server/webp/webp_node_enc.wasm +0 -0
  69. package/packages/storefront/package.json +4 -2
  70. package/packages/storefront/src/assets/pico.css +1 -44
  71. package/packages/storefront/src/lib/components/LoginForm.vue +36 -10
  72. package/packages/storefront/src/lib/components/LoginOffcanvas.vue +1 -1
  73. package/packages/storefront/src/lib/components/TheHeader.vue +1 -1
  74. package/packages/storefront/src/lib/layouts/BaseBody.astro +2 -64
  75. package/packages/storefront/src/lib/layouts/PagesHeader.astro +5 -3
  76. package/packages/storefront/src/lib/ssr/image.ts +29 -16
  77. package/packages/storefront/src/lib/ssr-context.ts +1 -1
  78. package/packages/storefront/src/pages/[...slug].astro +6 -0
  79. package/packages/storefront/storefront.cms.mjs +36 -0
  80. package/packages/storefront/storefront.config.mjs +9 -28
  81. package/packages/storefront/tsconfig.json +1 -1
  82. package/packages/storefront/uno.config.ts +81 -2
  83. package/packages/types/package.json +1 -1
  84. package/packages/storefront/dist/client/assets/_...522e6bf2.css +0 -4
  85. package/packages/storefront/dist/client/assets/_...a48b75c7.css +0 -1
  86. package/packages/storefront/dist/client/chunks/LoginOffcanvas.111b9071.js +0 -1
  87. package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.738639ee.js +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
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.0.107](https://github.com/ecomplus/cloud-commerce/compare/v0.0.106...v0.0.107) (2022-10-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **i18n:** Setup new `@cloudcommerce/i18n` pkg ([bd02d8b](https://github.com/ecomplus/cloud-commerce/commit/bd02d8beaff45597947da2efdfac96dcce878c1e))
11
+ * **storefront:** Basic `LoginForm` component interactions for sign in/up ([eb5b462](https://github.com/ecomplus/cloud-commerce/commit/eb5b462dbbf13840572e531295ab57f18022873e))
12
+ * **storefront:** Supporting SSG (for branch previews) with `BIULD_OUTPUT` env ([4330c0f](https://github.com/ecomplus/cloud-commerce/commit/4330c0f10ee5c8e6d44c970085d9e2a185ad1937))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **modules:** Properly adding order transaction on checkout ([#55](https://github.com/ecomplus/cloud-commerce/issues/55)) ([b27e83d](https://github.com/ecomplus/cloud-commerce/commit/b27e83d19e07c050e50db2fc083e362ae08e67a1))
18
+ * **ssr:** Remove CSL header at all (yet) ([6a68407](https://github.com/ecomplus/cloud-commerce/commit/6a684079803cdd3e2f5903b333696233d4bf7368))
19
+ * **ssr:** Setup feeds function with 512MiB by default ([a55de47](https://github.com/ecomplus/cloud-commerce/commit/a55de4781d92973a3c860ae6e69be43a5f08f5ff))
20
+ * **storefront:** Removing Tailwind incompatible .outline (button) classes from pico.css ([4598955](https://github.com/ecomplus/cloud-commerce/commit/4598955b23dfc2e6f7da1908576654b09771afe0))
21
+
22
+ ### [0.0.106](https://github.com/ecomplus/cloud-commerce/compare/v0.0.105...v0.0.106) (2022-09-29)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **ssr:** Change `Content-Security-Policy` header to `script-src "none"` ([51b8536](https://github.com/ecomplus/cloud-commerce/commit/51b8536cee1a70143df959e2536dd0fe0a1ee985))
28
+
5
29
  ### [0.0.105](https://github.com/ecomplus/cloud-commerce/compare/v0.0.104...v0.0.105) (2022-09-29)
6
30
 
7
31
 
package/action.yml CHANGED
@@ -67,6 +67,11 @@ runs:
67
67
  DEPLOY_RAND=$RANDOM.$RANDOM
68
68
  " > functions/.env
69
69
  GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy
70
+
71
+ - if: github.event_name == 'pull_request'
72
+ shell: bash
73
+ working-directory: functions/ssr
74
+ run: npm run build:static
70
75
 
71
76
  - if: github.event_name == 'pull_request'
72
77
  name: Deploy Firebase Hosting PR preview
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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-correios",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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-shipping",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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-discounts",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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-frenet",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
5
5
  "description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
6
6
  "main": "lib/frenet.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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/cli",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
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": "0.0.105",
4
+ "version": "0.0.107",
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/events",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -16,7 +16,7 @@ const mergeConfig = {
16
16
  },
17
17
  ssrFunctionOptions: {
18
18
  region: SSR_DEPLOY_REGION || 'us-central1',
19
- memory: SSR_DEPLOY_MEMORY || '512MiB',
19
+ memory: SSR_DEPLOY_MEMORY || '256MiB',
20
20
  timeoutSeconds: SSR_DEPLOY_TIMEOUT_SECONDS ? Number(SSR_DEPLOY_TIMEOUT_SECONDS) : 15,
21
21
  minInstances: SSR_DEPLOY_MIN_INSTANCES ? Number(SSR_DEPLOY_MIN_INSTANCES) : 1,
22
22
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.105",
4
+ "version": "0.0.107",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -23,7 +23,7 @@ const mergeConfig = {
23
23
  },
24
24
  ssrFunctionOptions: {
25
25
  region: SSR_DEPLOY_REGION || 'us-central1',
26
- memory: (SSR_DEPLOY_MEMORY as '128MiB' | '256MiB' | '512MiB' | '1GiB') || '512MiB',
26
+ memory: (SSR_DEPLOY_MEMORY as '128MiB' | '256MiB' | '512MiB' | '1GiB') || '256MiB',
27
27
  timeoutSeconds: SSR_DEPLOY_TIMEOUT_SECONDS ? Number(SSR_DEPLOY_TIMEOUT_SECONDS) : 15,
28
28
  minInstances: SSR_DEPLOY_MIN_INSTANCES ? Number(SSR_DEPLOY_MIN_INSTANCES) : 1,
29
29
  },
@@ -0,0 +1 @@
1
+ Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
@@ -0,0 +1 @@
1
+ # `@cloudcommerce/i18n`
@@ -0,0 +1,8 @@
1
+ import * as enUs from './en_us';
2
+ import * as ptBr from './pt_br';
3
+ export { enUs, ptBr };
4
+ declare const _default: {
5
+ en_us: typeof enUs;
6
+ pt_br: typeof ptBr;
7
+ };
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import * as enUs from './en_us.js';
2
+ import * as ptBr from './pt_br.js';
3
+
4
+ export { enUs, ptBr };
5
+
6
+ export default {
7
+ en_us: enUs,
8
+ pt_br: ptBr,
9
+ };
10
+ // # sourceMappingURL=all.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all.js","sourceRoot":"","sources":["../src/all.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEtB,eAAe;IACb,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;CACZ,CAAC"}