cloudcommerce 0.24.0 → 0.25.0
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.
- package/CHANGELOG.md +30 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +7 -7
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +31 -5
- package/ecomplus-stores/barra-doce/functions/ssr/src/main/Home.astro +6 -6
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/ecomplus-stores/iluminim/.ecomplus.cd.json +3 -3
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/package.json +7 -7
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +31 -5
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +2 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +1 -1
- package/package.json +4 -4
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/lib/cli.js +5 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/cli.ts +5 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +4 -4
- package/packages/eslint/storefront.eslintrc.cjs +1 -0
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +25 -21
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +5 -5
- package/packages/ssr/src/firebase/serve-storefront.ts +27 -22
- package/packages/storefront/config/storefront.config.mjs +8 -2
- package/packages/storefront/config/storefront.unocss.cjs +1 -1
- package/packages/storefront/package.json +7 -7
- package/packages/storefront/src/helpers/server-data.ts +14 -17
- package/packages/storefront/src/images/use-ssr-picture.ts +18 -3
- package/packages/storefront/src/lib/components/BannerPictures.astro +4 -4
- package/packages/storefront/src/lib/components/PaymentMethodFlag.vue +2 -2
- package/packages/storefront/src/lib/components/globals/Skeleton.vue +29 -0
- package/packages/storefront/src/lib/pages/_vue.ts +2 -0
- package/packages/storefront/src/lib/ssr-context.ts +1 -1
- package/packages/storefront/src/vue-globals.d.ts +1 -0
- package/packages/types/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
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.25.0](https://github.com/ecomplus/cloud-commerce/compare/v0.24.1...v0.25.0) (2023-08-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **cli:** Host is now exposed by default on dev (default) CLI command, SSR function dev script should not contain --host and --port options
|
|
11
|
+
* **storefront:** Stop exporing non-reactive globals `settings` and `apiContext` from `@@sf/sf-lib`
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **cli:** Update `cloudcommerce [dev]` command to bypass --host and --port args ([e55e438](https://github.com/ecomplus/cloud-commerce/commit/e55e4383a8de2a9ff1d65b0af766c3e8980b1121))
|
|
16
|
+
* **deps:** Update non-major dependencies ([#216](https://github.com/ecomplus/cloud-commerce/issues/216)) ([377e4b0](https://github.com/ecomplus/cloud-commerce/commit/377e4b0533cb41d839afff1cfc4f8c44caeffa0f))
|
|
17
|
+
* **firebase:** Update dependency @google-cloud/pubsub to v4 ([#217](https://github.com/ecomplus/cloud-commerce/issues/217)) ([d5e98b8](https://github.com/ecomplus/cloud-commerce/commit/d5e98b84937a5be3062972e49480fc98bc9ffe70))
|
|
18
|
+
* **ssr:** Redirect not found .css files to unique CSS filepath ([d2dcaf9](https://github.com/ecomplus/cloud-commerce/commit/d2dcaf99551e2581027f07c62a1beddec46ec896))
|
|
19
|
+
* **storefront:** Prevent undefined `import.meta.env` error on config ([83c26f6](https://github.com/ecomplus/cloud-commerce/commit/83c26f660c307e366c139c489e75f8bc2450dc1b))
|
|
20
|
+
* **storefront:** Set `socialNetworks` after route load on SSR ([9d2be60](https://github.com/ecomplus/cloud-commerce/commit/9d2be602937f4d61ca0c96cdc6170a717ff5b3f0))
|
|
21
|
+
* **storefront:** Update Astro to v2.10.12 ([#215](https://github.com/ecomplus/cloud-commerce/issues/215)) ([4ae833f](https://github.com/ecomplus/cloud-commerce/commit/4ae833f25438626e268019e7ea9032a14aa1abf8))
|
|
22
|
+
|
|
23
|
+
### [0.24.1](https://github.com/ecomplus/cloud-commerce/compare/v0.24.0...v0.24.1) (2023-08-19)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **storefront:** Add new global <Skeleton> component ([83c42b1](https://github.com/ecomplus/cloud-commerce/commit/83c42b113200c28dd56b77f80df393f911194957))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **storefront:** Fix regression with icons aliases selectors on UnoCSS config ([37f7c8e](https://github.com/ecomplus/cloud-commerce/commit/37f7c8efaa63273cf3c0eb575d174cb9e2358fdc))
|
|
34
|
+
|
|
5
35
|
## [0.24.0](https://github.com/ecomplus/cloud-commerce/compare/v0.23.3...v0.24.0) (2023-08-18)
|
|
6
36
|
|
|
7
37
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/passport": "^0.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.24.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
20
|
+
"@cloudcommerce/passport": "^0.24.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "astro dev
|
|
6
|
+
"dev": "astro dev",
|
|
7
7
|
"build": "bash scripts/build.sh",
|
|
8
8
|
"build:static": "BUILD_OUTPUT=static astro build",
|
|
9
9
|
"serve": "firebase emulators:start --only functions",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.24.1",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.24.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.
|
|
27
|
-
"@cloudcommerce/types": "^0.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.24.1",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.24.1",
|
|
27
|
+
"@cloudcommerce/types": "^0.24.1",
|
|
28
28
|
"@fontsource/croissant-one": "^5.0.5",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.7"
|
|
30
30
|
}
|
|
@@ -114,7 +114,14 @@
|
|
|
114
114
|
:has-close-button="false"
|
|
115
115
|
placement="top"
|
|
116
116
|
>
|
|
117
|
-
<
|
|
117
|
+
<Suspense>
|
|
118
|
+
<SearchModal v-if="isSearchOpenOnce" />
|
|
119
|
+
<template #fallback>
|
|
120
|
+
<div class="container mx-auto">
|
|
121
|
+
<Skeleton class="p-6" is-large />
|
|
122
|
+
</div>
|
|
123
|
+
</template>
|
|
124
|
+
</Suspense>
|
|
118
125
|
</Drawer>
|
|
119
126
|
<Teleport v-if="isMounted" to="#teleported-overlap">
|
|
120
127
|
<Drawer
|
|
@@ -122,14 +129,25 @@
|
|
|
122
129
|
placement="end"
|
|
123
130
|
backdrop-target="#teleported-overlap"
|
|
124
131
|
>
|
|
125
|
-
<
|
|
132
|
+
<Suspense>
|
|
133
|
+
<CartSidebar v-if="isCartOpenOnce" @close="isCartOpen = false" />
|
|
134
|
+
<template #fallback>
|
|
135
|
+
<Skeleton class="pt-16 px-6" is-bold />
|
|
136
|
+
</template>
|
|
137
|
+
</Suspense>
|
|
126
138
|
</Drawer>
|
|
127
139
|
</Teleport>
|
|
128
140
|
</header>
|
|
129
141
|
</template>
|
|
130
142
|
|
|
131
143
|
<script setup lang="ts">
|
|
132
|
-
import {
|
|
144
|
+
import {
|
|
145
|
+
ref,
|
|
146
|
+
watch,
|
|
147
|
+
onMounted,
|
|
148
|
+
defineAsyncComponent,
|
|
149
|
+
} from 'vue';
|
|
150
|
+
import { watchOnce } from '@vueuse/core';
|
|
133
151
|
import { totalItems } from '@@sf/state/shopping-cart';
|
|
134
152
|
import {
|
|
135
153
|
type Props as UseShopHeaderProps,
|
|
@@ -138,12 +156,12 @@ import {
|
|
|
138
156
|
import Drawer from '@@sf/components/Drawer.vue';
|
|
139
157
|
import ShopSidenav from '~/components/ShopSidenav.vue';
|
|
140
158
|
import ShopHeaderMenu from '~/components/ShopHeaderMenu.vue';
|
|
141
|
-
import SearchModal from '~/components/SearchModal.vue';
|
|
142
159
|
import AccountMenu from '~/components/AccountMenu.vue';
|
|
143
|
-
import CartSidebar from '~/components/CartSidebar.vue';
|
|
144
160
|
|
|
145
161
|
export interface Props extends Omit<UseShopHeaderProps, 'header'> {}
|
|
146
162
|
|
|
163
|
+
const SearchModal = defineAsyncComponent(() => import('~/components/SearchModal.vue'));
|
|
164
|
+
const CartSidebar = defineAsyncComponent(() => import('~/components/CartSidebar.vue'));
|
|
147
165
|
const props = defineProps<Props>();
|
|
148
166
|
const header = ref<HTMLElement | null>(null);
|
|
149
167
|
const {
|
|
@@ -154,7 +172,15 @@ const {
|
|
|
154
172
|
} = useShopHeader({ ...props, header });
|
|
155
173
|
const isSidenavOpen = ref(false);
|
|
156
174
|
const isSearchOpen = ref(false);
|
|
175
|
+
const isSearchOpenOnce = ref(false);
|
|
176
|
+
watchOnce(isSearchOpen, () => {
|
|
177
|
+
isSearchOpenOnce.value = true;
|
|
178
|
+
});
|
|
157
179
|
const isCartOpen = ref(false);
|
|
180
|
+
const isCartOpenOnce = ref(false);
|
|
181
|
+
watchOnce(isCartOpen, () => {
|
|
182
|
+
isCartOpenOnce.value = true;
|
|
183
|
+
});
|
|
158
184
|
const isMounted = ref(false);
|
|
159
185
|
const delayedTotalItems = ref(0);
|
|
160
186
|
const searchTerm = ref('');
|
|
@@ -14,22 +14,22 @@ const heroSlides = heroSlider.slides;
|
|
|
14
14
|
<HeroSlider {...heroSlider} client:load>
|
|
15
15
|
{heroSlides[0] && <BannerPictures
|
|
16
16
|
slot="picture-0" {...heroSlides[0]} index={0}
|
|
17
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
17
|
+
widths={[640, 856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
18
18
|
{heroSlides[1] && <BannerPictures
|
|
19
19
|
slot="picture-1" {...heroSlides[1]} index={1}
|
|
20
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
20
|
+
widths={[856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
21
21
|
{heroSlides[2] && <BannerPictures
|
|
22
22
|
slot="picture-2" {...heroSlides[2]} index={2}
|
|
23
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
23
|
+
widths={[856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
24
24
|
{heroSlides[3] && <BannerPictures
|
|
25
25
|
slot="picture-3" {...heroSlides[3]} index={3}
|
|
26
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
26
|
+
widths={[856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
27
27
|
{heroSlides[4] && <BannerPictures
|
|
28
28
|
slot="picture-4" {...heroSlides[4]} index={4}
|
|
29
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
29
|
+
widths={[856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
30
30
|
{heroSlides[5] && <BannerPictures
|
|
31
31
|
slot="picture-5" {...heroSlides[5]} index={5}
|
|
32
|
-
widths={[856, 1024, 1536]} class="max-w-
|
|
32
|
+
widths={[856, 1024, 1536]} class="max-w-screen-sm sm:max-w-screen-lg" />}
|
|
33
33
|
<!-- https://github.com/withastro/astro/issues/5066#issuecomment-1277998365 -->
|
|
34
34
|
</HeroSlider>
|
|
35
35
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/modules": "^0.
|
|
18
|
+
"@cloudcommerce/events": "^0.24.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
20
|
+
"@cloudcommerce/modules": "^0.24.1"
|
|
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": "^0.
|
|
26
|
+
"@cloudcommerce/cli": "^0.24.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^0.
|
|
29
|
+
"@cloudcommerce/eslint": "^0.24.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"trigger": "
|
|
3
|
-
"resource": "
|
|
4
|
-
"slug": "
|
|
2
|
+
"trigger": "64dd2f382cd6b659591a3cfc",
|
|
3
|
+
"resource": "products",
|
|
4
|
+
"slug": "refletor-holofote-microled-slim-100w-branco-frio,refletor-holofote-microled-slim-200w-branco-frio"
|
|
5
5
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/passport": "^0.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.24.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
20
|
+
"@cloudcommerce/passport": "^0.24.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"dev": "astro dev
|
|
6
|
+
"dev": "astro dev",
|
|
7
7
|
"build": "bash scripts/build.sh",
|
|
8
8
|
"build:static": "BUILD_OUTPUT=static astro build",
|
|
9
9
|
"serve": "firebase emulators:start --only functions",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.24.1",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.24.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.
|
|
27
|
-
"@cloudcommerce/types": "^0.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.24.1",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.24.1",
|
|
27
|
+
"@cloudcommerce/types": "^0.24.1",
|
|
28
28
|
"@fontsource-variable/heebo": "^5.0.5",
|
|
29
29
|
"@iconify-json/carbon": "^1.1.18"
|
|
30
30
|
}
|
|
@@ -73,7 +73,14 @@
|
|
|
73
73
|
:has-close-button="false"
|
|
74
74
|
placement="top"
|
|
75
75
|
>
|
|
76
|
-
<
|
|
76
|
+
<Suspense>
|
|
77
|
+
<SearchModal v-if="isSearchOpenOnce" />
|
|
78
|
+
<template #fallback>
|
|
79
|
+
<div class="container mx-auto">
|
|
80
|
+
<Skeleton class="p-6" is-large />
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
</Suspense>
|
|
77
84
|
</Drawer>
|
|
78
85
|
<Teleport v-if="isMounted" to="#teleported-overlap">
|
|
79
86
|
<Drawer
|
|
@@ -81,14 +88,25 @@
|
|
|
81
88
|
placement="end"
|
|
82
89
|
backdrop-target="#teleported-overlap"
|
|
83
90
|
>
|
|
84
|
-
<
|
|
91
|
+
<Suspense>
|
|
92
|
+
<CartSidebar v-if="isCartOpenOnce" @close="isCartOpen = false" />
|
|
93
|
+
<template #fallback>
|
|
94
|
+
<Skeleton class="pt-16 px-6" is-bold />
|
|
95
|
+
</template>
|
|
96
|
+
</Suspense>
|
|
85
97
|
</Drawer>
|
|
86
98
|
</Teleport>
|
|
87
99
|
</header>
|
|
88
100
|
</template>
|
|
89
101
|
|
|
90
102
|
<script setup lang="ts">
|
|
91
|
-
import {
|
|
103
|
+
import {
|
|
104
|
+
ref,
|
|
105
|
+
watch,
|
|
106
|
+
onMounted,
|
|
107
|
+
defineAsyncComponent,
|
|
108
|
+
} from 'vue';
|
|
109
|
+
import { watchOnce } from '@vueuse/core';
|
|
92
110
|
import { totalItems } from '@@sf/state/shopping-cart';
|
|
93
111
|
import {
|
|
94
112
|
type Props as UseShopHeaderProps,
|
|
@@ -97,12 +115,12 @@ import {
|
|
|
97
115
|
import Drawer from '@@sf/components/Drawer.vue';
|
|
98
116
|
import ShopSidenav from '~/components/ShopSidenav.vue';
|
|
99
117
|
import ShopHeaderMenu from '~/components/ShopHeaderMenu.vue';
|
|
100
|
-
import SearchModal from '~/components/SearchModal.vue';
|
|
101
118
|
import AccountMenu from '~/components/AccountMenu.vue';
|
|
102
|
-
import CartSidebar from '~/components/CartSidebar.vue';
|
|
103
119
|
|
|
104
120
|
export interface Props extends Omit<UseShopHeaderProps, 'header'> {}
|
|
105
121
|
|
|
122
|
+
const SearchModal = defineAsyncComponent(() => import('~/components/SearchModal.vue'));
|
|
123
|
+
const CartSidebar = defineAsyncComponent(() => import('~/components/CartSidebar.vue'));
|
|
106
124
|
const props = defineProps<Props>();
|
|
107
125
|
const header = ref<HTMLElement | null>(null);
|
|
108
126
|
const {
|
|
@@ -113,7 +131,15 @@ const {
|
|
|
113
131
|
} = useShopHeader({ ...props, header });
|
|
114
132
|
const isSidenavOpen = ref(false);
|
|
115
133
|
const isSearchOpen = ref(false);
|
|
134
|
+
const isSearchOpenOnce = ref(false);
|
|
135
|
+
watchOnce(isSearchOpen, () => {
|
|
136
|
+
isSearchOpenOnce.value = true;
|
|
137
|
+
});
|
|
116
138
|
const isCartOpen = ref(false);
|
|
139
|
+
const isCartOpenOnce = ref(false);
|
|
140
|
+
watchOnce(isCartOpen, () => {
|
|
141
|
+
isCartOpenOnce.value = true;
|
|
142
|
+
});
|
|
117
143
|
const isMounted = ref(false);
|
|
118
144
|
const delayedTotalItems = ref(0);
|
|
119
145
|
onMounted(() => {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
20
|
-
"@cloudcommerce/modules": "^0.
|
|
18
|
+
"@cloudcommerce/events": "^0.24.1",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.24.1",
|
|
20
|
+
"@cloudcommerce/modules": "^0.24.1"
|
|
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": "^0.
|
|
26
|
+
"@cloudcommerce/cli": "^0.24.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/eslint": "^0.
|
|
29
|
+
"@cloudcommerce/eslint": "^0.24.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.0",
|
|
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>",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@commitlint/cli": "^17.7.1",
|
|
20
20
|
"@commitlint/config-conventional": "^17.7.0",
|
|
21
21
|
"@commitlint/rules": "^17.7.0",
|
|
22
|
-
"@types/node": "^18.17.
|
|
22
|
+
"@types/node": "^18.17.6",
|
|
23
23
|
"eslint": "^8.47.0",
|
|
24
24
|
"husky": "^8.0.3",
|
|
25
25
|
"standard-version": "^9.5.0",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"typescript": "~5.0.4",
|
|
29
29
|
"uglify-js": "^3.17.4",
|
|
30
30
|
"vite": "^4.4.9",
|
|
31
|
-
"vitest": "^0.34.
|
|
31
|
+
"vitest": "^0.34.2",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "0.
|
|
33
|
+
"@cloudcommerce/eslint": "0.25.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-fb-conversions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.0",
|
|
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": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"facebook-nodejs-business-sdk": "^17.0.
|
|
24
|
+
"facebook-nodejs-business-sdk": "^17.0.3",
|
|
25
25
|
"firebase-admin": "^11.10.1",
|
|
26
26
|
"firebase-functions": "^4.4.1"
|
|
27
27
|
},
|