cloudcommerce 0.6.10 → 0.6.12

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 (70) hide show
  1. package/CHANGELOG.md +10 -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 +6 -6
  7. package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/devices.jpg +0 -0
  8. package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/edit-suit.jpg +0 -0
  9. package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +1 -1
  10. package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeaderMenu.vue +1 -1
  11. package/ecomplus-stores/monocard/functions/ssr/src/components/UsageSteps.astro +21 -0
  12. package/ecomplus-stores/monocard/functions/ssr/src/components/UsageSteps.vue +155 -0
  13. package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +3 -3
  14. package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +19 -3
  15. package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +0 -1
  16. package/ecomplus-stores/monocard/package.json +1 -1
  17. package/package.json +4 -4
  18. package/packages/api/package.json +1 -1
  19. package/packages/apps/correios/package.json +1 -1
  20. package/packages/apps/custom-payment/package.json +1 -1
  21. package/packages/apps/custom-shipping/package.json +1 -1
  22. package/packages/apps/datafrete/package.json +1 -1
  23. package/packages/apps/discounts/package.json +1 -1
  24. package/packages/apps/emails/package.json +1 -1
  25. package/packages/apps/fb-conversions/package.json +1 -1
  26. package/packages/apps/frenet/package.json +1 -1
  27. package/packages/apps/galaxpay/package.json +1 -1
  28. package/packages/apps/google-analytics/package.json +1 -1
  29. package/packages/apps/infinitepay/package.json +1 -1
  30. package/packages/apps/jadlog/package.json +1 -1
  31. package/packages/apps/loyalty-points/package.json +1 -1
  32. package/packages/apps/melhor-envio/package.json +1 -1
  33. package/packages/apps/mercadopago/package.json +1 -1
  34. package/packages/apps/pagarme/package.json +2 -2
  35. package/packages/apps/paghiper/package.json +1 -1
  36. package/packages/apps/pix/package.json +1 -1
  37. package/packages/apps/tiny-erp/package.json +1 -1
  38. package/packages/apps/webhooks/package.json +1 -1
  39. package/packages/cli/config/firebase.json +1 -1
  40. package/packages/cli/lib/build.js +11 -2
  41. package/packages/cli/lib/cli.js +5 -3
  42. package/packages/cli/package.json +1 -1
  43. package/packages/cli/src/build.ts +12 -2
  44. package/packages/cli/src/cli.ts +5 -3
  45. package/packages/config/package.json +1 -1
  46. package/packages/emails/package.json +1 -1
  47. package/packages/events/package.json +1 -1
  48. package/packages/firebase/package.json +1 -1
  49. package/packages/i18n/package.json +1 -1
  50. package/packages/modules/package.json +1 -1
  51. package/packages/passport/package.json +1 -1
  52. package/packages/ssr/package.json +2 -3
  53. package/packages/storefront/astro.config.mjs +2 -4
  54. package/packages/storefront/dist/client/sw.js +1 -1
  55. package/packages/storefront/dist/server/chunks/avif/avif_node_dec.wasm +0 -0
  56. package/packages/storefront/dist/server/chunks/avif/avif_node_enc.wasm +0 -0
  57. package/packages/storefront/dist/server/chunks/image-pool.78b6d784.mjs +10645 -0
  58. package/packages/storefront/dist/server/chunks/mozjpeg/mozjpeg_node_dec.wasm +0 -0
  59. package/packages/storefront/dist/server/chunks/mozjpeg/mozjpeg_node_enc.wasm +0 -0
  60. package/packages/storefront/dist/server/chunks/pages/{all.726ca7f4.mjs → all.f49a350f.mjs} +172 -58
  61. package/packages/storefront/dist/server/chunks/png/squoosh_oxipng_bg.wasm +0 -0
  62. package/packages/storefront/dist/server/chunks/png/squoosh_png_bg.wasm +0 -0
  63. package/packages/storefront/dist/server/chunks/resize/squoosh_resize_bg.wasm +0 -0
  64. package/packages/storefront/dist/server/chunks/rotate/rotate.wasm +0 -0
  65. package/packages/storefront/dist/server/chunks/webp/webp_node_dec.wasm +0 -0
  66. package/packages/storefront/dist/server/chunks/webp/webp_node_enc.wasm +0 -0
  67. package/packages/storefront/dist/server/entry.mjs +5 -6
  68. package/packages/storefront/package.json +2 -3
  69. package/packages/types/package.json +1 -1
  70. package/ecomplus-stores/monocard/functions/ssr/src/components/MotionFade.vue +0 -17
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
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.6.12](https://github.com/ecomplus/cloud-commerce/compare/v0.6.11...v0.6.12) (2023-03-02)
6
+
7
+ ### [0.6.11](https://github.com/ecomplus/cloud-commerce/compare/v0.6.10...v0.6.11) (2023-03-01)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **cli:** Prevent breaking Firebase deploy on SSR warnings ([91dd0cb](https://github.com/ecomplus/cloud-commerce/commit/91dd0cb3adff8886260a0eb9ba31e077e9bb54ca))
13
+ * **ssr:** Fixing `@vueuse/core` dependency semver ([a6351f9](https://github.com/ecomplus/cloud-commerce/commit/a6351f9c376c1eda16ada092595a88ad1e1fe882))
14
+
5
15
  ### [0.6.10](https://github.com/ecomplus/cloud-commerce/compare/v0.6.9...v0.6.10) (2023-03-01)
6
16
 
7
17
  ### [0.6.9](https://github.com/ecomplus/cloud-commerce/compare/v0.6.8...v0.6.9) (2023-03-01)
@@ -15,6 +15,6 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.6.7"
18
+ "@cloudcommerce/firebase": "^0.6.11"
19
19
  }
20
20
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/events": "^0.6.7",
19
- "@cloudcommerce/firebase": "^0.6.7"
18
+ "@cloudcommerce/events": "^0.6.11",
19
+ "@cloudcommerce/firebase": "^0.6.11"
20
20
  }
21
21
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.6.7",
19
- "@cloudcommerce/modules": "^0.6.7"
18
+ "@cloudcommerce/firebase": "^0.6.11",
19
+ "@cloudcommerce/modules": "^0.6.11"
20
20
  }
21
21
  }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "main": "index.js",
17
17
  "dependencies": {
18
- "@cloudcommerce/firebase": "^0.6.7",
19
- "@cloudcommerce/passport": "^0.6.7"
18
+ "@cloudcommerce/firebase": "^0.6.11",
19
+ "@cloudcommerce/passport": "^0.6.11"
20
20
  }
21
21
  }
@@ -19,15 +19,15 @@
19
19
  "dependencies": {
20
20
  "@astrojs/image": "^0.15.1",
21
21
  "@astrojs/node": "^5.0.4",
22
- "@cloudcommerce/api": "^0.6.7",
23
- "@cloudcommerce/firebase": "^0.6.7",
24
- "@cloudcommerce/ssr": "^0.6.7",
22
+ "@cloudcommerce/api": "^0.6.11",
23
+ "@cloudcommerce/firebase": "^0.6.11",
24
+ "@cloudcommerce/ssr": "^0.6.11",
25
25
  "@vueuse/motion": "2.0.0-beta.22"
26
26
  },
27
27
  "devDependencies": {
28
- "@cloudcommerce/i18n": "^0.6.7",
29
- "@cloudcommerce/storefront": "^0.6.7",
30
- "@cloudcommerce/types": "^0.6.7",
28
+ "@cloudcommerce/i18n": "^0.6.11",
29
+ "@cloudcommerce/storefront": "^0.6.11",
30
+ "@cloudcommerce/types": "^0.6.11",
31
31
  "@fontsource/inter": "^4.5.15",
32
32
  "@iconify-json/ri": "^1.1.5",
33
33
  "@iconify-json/wpf": "^1.1.4",
@@ -15,5 +15,5 @@ onMounted(() => {
15
15
  </script>
16
16
 
17
17
  <template>
18
- <div ref="container" v-motion-fade-visible-once></div>
18
+ <div ref="container" v-motion-fade></div>
19
19
  </template>
@@ -6,7 +6,7 @@
6
6
  :href="supportUrl"
7
7
  class="hover:text-white hover:underline decoration-2 underline-offset-4"
8
8
  >
9
- {{ $t.i19support }}
9
+ {{ $t.i19help }}
10
10
  </ALink>
11
11
  </li>
12
12
  <li>
@@ -0,0 +1,21 @@
1
+ ---
2
+ import Picture from '@@sf/ssr/Picture.astro';
3
+ import UsageSteps from '~/components/UsageSteps.vue';
4
+ ---
5
+
6
+ <UsageSteps client:visible>
7
+ <Picture
8
+ slot="picture-devices"
9
+ src={'/img/uploads/devices.jpg'}
10
+ alt="Produtos Monocard: clássico, personalizado e Monodot."
11
+ widths={[400, 600]}
12
+ sizes="(max-width: 500px) 200px, 300px"
13
+ />
14
+ <Picture
15
+ slot="picture-edit"
16
+ src={'/img/uploads/edit-suit.jpg'}
17
+ alt="Configure seu perfil e Monolink com facilidade."
18
+ widths={[400, 600]}
19
+ sizes="(max-width: 500px) 200px, 300px"
20
+ />
21
+ </UsageSteps>
@@ -0,0 +1,155 @@
1
+ <template>
2
+ <article class="container px-8 my-4 mx-auto text-center">
3
+ <h3
4
+ ref="title"
5
+ class="text-xl lg:text-2xl font-semibold text-base-700
6
+ inline-block lg:text-left"
7
+ :style="{ minWidth: titleMinWidth, minHeight: titleMinHeight }"
8
+ >
9
+ <span class="block lg:inline">
10
+ Uma ferramenta poderosa para
11
+ </span>
12
+ <Fade>
13
+ <span
14
+ v-if="copyKeyword"
15
+ class="text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-tr
16
+ from-secondary-600 to-secondary-900"
17
+ >
18
+ {{ copyKeyword }}
19
+ </span>
20
+ </Fade>
21
+ </h3>
22
+ <TabGroup as="div" class="max-w-3xl mx-auto">
23
+ <TabList class="flex space-x-1 rounded-md bg-base-100/70 p-1 mt-8">
24
+ <Tab
25
+ as="template"
26
+ v-for="([step, icon], i) in [
27
+ ['Escolha o seu Mono', 'i-qr-code-line'],
28
+ ['Configure seu perfil', 'i-paint-brush-fill'],
29
+ ['Compartilhe onde quiser', 'i-share-forward-2-fill'],
30
+ ]"
31
+ :key="i"
32
+ v-slot="{ selected }"
33
+ >
34
+ <button
35
+ class="w-full rounded-sm p-2.5 text-sm md:text-base
36
+ font-medium leading-5 text-base-900
37
+ ring-primary-100 ring-opacity-60 ring-offset-2 ring-offset-primary-400
38
+ focus:outline-none focus:ring-2 block relative"
39
+ :class="selected ? 'bg-primary-100/30 text-black' : null"
40
+ >
41
+ <i
42
+ :class="[
43
+ icon,
44
+ selected ? 'bg-primary-400/70' : 'bg-base-300/70 md:bg-base-400/70',
45
+ ]"
46
+ class="w-8 h-8 absolute left-2 top-1/2 -mt-4"
47
+ ></i>
48
+ <span class="z-10 relative">{{ step }}</span>
49
+ </button>
50
+ </Tab>
51
+ </TabList>
52
+ <TabPanels class="text-left w-64 mx-auto sm:w-auto sm:px-5 mt-4">
53
+ <TabPanel
54
+ class="flex flex-wrap md:flex-nowrap items-start justify-between"
55
+ v-motion-fade-visible
56
+ >
57
+ <div class="md:order-last rounded-xl overflow-hidden shadow-lg
58
+ mt-4 md:mt-5 mb-2 md:mb-0 mx-auto md:mx-0 h-44 md:h-auto">
59
+ <slot name="picture-devices" />
60
+ </div>
61
+ <div class="md:basis-1/2 prose">
62
+ <h4>Cartão clássico, personalizado ou dot</h4>
63
+ <p>
64
+ No momento da compra você decide o dispositivo que
65
+ mais combina com você ou sua empresa.
66
+ Opte pelo Monocard clássico, personalizado com seu logo ou Monodot.
67
+ </p>
68
+ <p class="bg-base-200 px-4 py-2 rounded">
69
+ <a :href="`/${$settings.metafields.monocardSlug}`">Monocard</a>
70
+ conecta por aproximação com
71
+ <span class="inline-block">NFC <i class="i-signal-tower-fill mr-1"></i></span>,
72
+ escaneamento de
73
+ <span class="inline-block">QR Code <i class="i-qr-code-line"></i></span>
74
+ e Monolink (URL do seu perfil).
75
+ </p>
76
+ <p class="bg-base-200/70 px-4 py-2 rounded">
77
+ <a :href="`/${$settings.metafields.monodotSlug}`">Monodot</a>
78
+ pode ser colado no smartphone e conecta por
79
+ <span class="inline-block">QR Code <i class="i-qr-code-line"></i></span>
80
+ e Monolink.
81
+ </p>
82
+ </div>
83
+ </TabPanel>
84
+ <TabPanel
85
+ class="flex flex-wrap md:flex-nowrap items-start justify-between"
86
+ v-motion-fade-visible
87
+ >
88
+ <div class="md:order-last rounded-xl overflow-hidden shadow-lg
89
+ mt-4 md:mt-5 mb-2 md:mb-0 mx-auto md:mx-0 h-44 md:h-auto">
90
+ <slot name="picture-edit" />
91
+ </div>
92
+ <div class="md:basis-1/2 prose">
93
+ <h4>Editar o perfil é rápido e fácil</h4>
94
+ <p>
95
+ Adicione sua foto ou o logo de sua empresa em seu perfil.
96
+ Disponibilize todos os contatos que desejar, WhatsApp,
97
+ LinkedIn, Instagram, TikTok, Twitter, loja, website
98
+ e até mesmo Pix.
99
+ </p>
100
+ <p class="font-medium">
101
+ Tudo em um único link para bio,
102
+ apontado diretamente pelo seu cartão de visitas inteligente.
103
+ </p>
104
+ </div>
105
+ </TabPanel>
106
+ <TabPanel v-motion-fade-visible>Content 3</TabPanel>
107
+ </TabPanels>
108
+ </TabGroup>
109
+ </article>
110
+ </template>
111
+
112
+ <script setup lang="ts">
113
+ import {
114
+ ref,
115
+ nextTick,
116
+ onMounted,
117
+ onBeforeUnmount,
118
+ } from 'vue';
119
+ import { useDebounceFn } from '@vueuse/core';
120
+ import {
121
+ TabGroup,
122
+ TabList,
123
+ Tab,
124
+ TabPanels,
125
+ TabPanel,
126
+ } from '@headlessui/vue';
127
+
128
+ const title = ref<null | HTMLHeadingElement>(null);
129
+ const titleMinWidth = ref<null | string>(null);
130
+ const titleMinHeight = ref<null | string>(null);
131
+ const fixTitleSize = () => {
132
+ titleMinWidth.value = `${title.value.offsetWidth}px`;
133
+ titleMinHeight.value = `${title.value.offsetHeight}px`;
134
+ };
135
+ const onResize = useDebounceFn(() => fixTitleSize(), 400);
136
+ const copyKeyword = ref<null | string>('networking');
137
+ let keywordInterval: null | ReturnType<typeof setInterval> = null;
138
+ onMounted(() => {
139
+ keywordInterval = setInterval(() => {
140
+ fixTitleSize();
141
+ const oldValue = copyKeyword.value;
142
+ nextTick(() => {
143
+ copyKeyword.value = null;
144
+ setTimeout(() => {
145
+ copyKeyword.value = oldValue === 'networking' ? 'negócios' : 'networking';
146
+ }, 300);
147
+ });
148
+ }, 3000);
149
+ window.addEventListener('resize', onResize);
150
+ });
151
+ onBeforeUnmount(() => {
152
+ clearInterval(keywordInterval);
153
+ window.removeEventListener('resize', onResize);
154
+ });
155
+ </script>
@@ -16,12 +16,12 @@ const { settings } = pageContext;
16
16
  <Base pageContext={pageContext} title={title}>
17
17
  <slot name="header">
18
18
  <Header pageContext={pageContext}>
19
- <Picture
19
+ <img
20
20
  slot="logo-picture"
21
21
  src={settings.logo}
22
22
  alt={settings.name}
23
- widths={[300]}
24
- sizes="150px"
23
+ width="150"
24
+ height="24.5"
25
25
  fetchpriority="high"
26
26
  loading="eager"
27
27
  class="hover:drop-shadow-sm"
@@ -3,6 +3,7 @@ import type { PageContext } from '@@sf/ssr-context';
3
3
  import api from '@cloudcommerce/api';
4
4
  import LottiePhoneNFC from '~/components/LottiePhoneNFC.vue';
5
5
  import CasesGrid from '~/components/CasesGrid.astro';
6
+ import UsageSteps from '~/components/UsageSteps.astro';
6
7
 
7
8
  export interface Props {
8
9
  pageContext: PageContext;
@@ -74,11 +75,26 @@ const products = (await api.get('products')).data.result;
74
75
  </div>
75
76
  </article>
76
77
  </section>
77
- <section class="bg-white pb-9">
78
+ <section id="cases" class="bg-white pb-9">
78
79
  <CasesGrid />
80
+ <div class="max-w-lg mx-auto mt-7">
81
+ <a href="/#avaliacoes" class="text-lg text-primary-600 hover:text-primary-800
82
+ font-brand lowercase flex gap-1 sm:gap-2 items-center justify-center">
83
+ <i class="i-chevron-down text-3xl animate-bounce -mb-1.5"></i>
84
+ <span class="underline underline-offset-4 decoration-primary">
85
+ O que profissionais e times dizem</span>
86
+ <div class="hidden sm:flex gap-0.5 text-xs text-yellow-400">
87
+ <i class="i-star-fill"></i>
88
+ <i class="i-star-fill"></i>
89
+ <i class="i-star-fill"></i>
90
+ <i class="i-star-fill"></i>
91
+ <i class="i-star-fill"></i>
92
+ </div>
93
+ </a>
94
+ </div>
79
95
  </section>
80
- <section class="bg-gradient-to-br from-base-50 to-base-200 h-96">
81
-
96
+ <section class="bg-gradient-to-br from-white to-base-100 py-9">
97
+ <UsageSteps />
82
98
  </section>
83
99
  <section id="produtos"></section>
84
100
  </main>
@@ -32,7 +32,6 @@ window.monocardWithLogo = ${JSON.stringify(monocardWithLogo)};`;
32
32
  <a id="como-funciona"></a>
33
33
  <DemoVideo width="900" />
34
34
  <a href="#comprar" role="button" class="text-xl mt-10">
35
- <i class="i-arrow-up-circle mr-1"></i>
36
35
  Crie seu Monocard
37
36
  </a>
38
37
  </div>
@@ -23,6 +23,6 @@
23
23
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@cloudcommerce/cli": "^0.6.7"
26
+ "@cloudcommerce/cli": "^0.6.11"
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.6.10",
4
+ "version": "0.6.12",
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>",
@@ -20,8 +20,8 @@
20
20
  "@commitlint/config-conventional": "^17.4.4",
21
21
  "@commitlint/rules": "^17.4.4",
22
22
  "@types/node": "^18.14.2",
23
- "@typescript-eslint/eslint-plugin": "^5.53.0",
24
- "@typescript-eslint/parser": "^5.53.0",
23
+ "@typescript-eslint/eslint-plugin": "^5.54.0",
24
+ "@typescript-eslint/parser": "^5.54.0",
25
25
  "esbuild": "^0.17.10",
26
26
  "eslint": "^8.35.0",
27
27
  "eslint-config-airbnb-base": "^15.0.0",
@@ -34,7 +34,7 @@
34
34
  "typescript": "^4.9.5",
35
35
  "uglify-js": "^3.17.4",
36
36
  "vite": "^4.1.4",
37
- "vitest": "^0.29.1",
37
+ "vitest": "^0.29.2",
38
38
  "zx": "^7.2.0"
39
39
  },
40
40
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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": "0.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
6
6
  "main": "lib/pagarme.js",
7
7
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "axios": "^1.3.4",
29
29
  "firebase-admin": "^11.5.0",
30
30
  "firebase-functions": "^4.2.1",
31
- "pagarme": "^4.30.0",
31
+ "pagarme": "^4.31.0",
32
32
  "qs": "^6.11.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "0.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
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.6.10",
4
+ "version": "0.6.12",
5
5
  "description": "E-Com Plus Cloud Commerce app for general order webhooks",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "codebase": "passport"
26
26
  },
27
27
  {
28
- "predeploy": "npm --prefix \"$RESOURCE_DIR\" run build && npm run build -- --codebase ssr",
28
+ "predeploy": "npm run build -- --codebase ssr",
29
29
  "source": "functions/ssr",
30
30
  "codebase": "ssr"
31
31
  }
@@ -1,5 +1,5 @@
1
1
  import { join as joinPath } from 'node:path';
2
- import { fs } from 'zx';
2
+ import { $, fs } from 'zx';
3
3
 
4
4
  const copyFunctionsConfig = async () => {
5
5
  const functionsDir = joinPath(process.cwd(), 'functions');
@@ -24,5 +24,14 @@ const copyFunctionsConfig = async () => {
24
24
  }
25
25
  }
26
26
  };
27
+ const buildCodebase = async (codebase) => {
28
+ copyFunctionsConfig();
29
+ if (codebase === 'ssr') {
30
+ await $`npm --prefix "functions/ssr" run build 2>ssr-build-warns.log &&
31
+ printf '\n--- // ---\n' && cat ssr-build-warns.log`;
32
+ }
33
+ };
34
+
35
+ export default buildCodebase;
27
36
 
28
- export default copyFunctionsConfig;
37
+ export { buildCodebase, copyFunctionsConfig };