cloudcommerce 0.22.4 → 0.23.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 +18 -0
- package/ecomplus-stores/barra-doce/.eslintrc.cjs +1 -1
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/.eslintrc.cjs +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -4
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopSidenav.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +5 -1
- package/ecomplus-stores/iluminim/.ecomplus.cd.json +3 -3
- package/ecomplus-stores/iluminim/.eslintrc.cjs +1 -1
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/.eslintrc.cjs +1 -1
- package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/AccountMenu.vue +1 -1
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ProductCard.vue +5 -5
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopSidenav.vue +1 -1
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +5 -1
- package/package.json +2 -2
- 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 +1 -1
- 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/build.js +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/build.ts +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- 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 +0 -1
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/ssr/src/firebase/serve-storefront.ts +0 -1
- package/packages/storefront/config/storefront.cms.js +1 -1
- package/packages/storefront/dist/client/_astro/Carousel.6824b5e2.js +1 -0
- package/packages/storefront/dist/client/_astro/{HeroSlider.8a040a33.js → HeroSlider.794b113c.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.ab0c501e.js → PitchBar.a0503ba1.js} +1 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.7fca4465.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.fe08e043.js +4 -0
- package/packages/storefront/dist/client/_astro/{_...slug_.c13e0486.css → _...slug_.caa8cb90.css} +1 -1
- package/packages/storefront/dist/client/_astro/index.c723d38d.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{_...1b951f6c.mjs → _...e1758019.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{account@_@astro.f6aec583.mjs → account@_@astro.f568e384.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{endpoint@_@js.5834ad4e.mjs → endpoint@_@js.32b9ab50.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{fallback@_@astro.069ddb54.mjs → fallback@_@astro.4d902266.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{index@_@astro.485287a1.mjs → index@_@astro.2072e1c3.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{index@_@astro.37e61ebe.mjs → index@_@astro.a80337aa.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{_...slug_.astro.95bf4c3b.mjs → _...slug_.astro.7c69d6fe.mjs} +39 -36
- package/packages/storefront/dist/server/chunks/pages/{endpoint.js.bd1232b7.mjs → endpoint.js.64061d33.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{fallback.astro.b52164bc.mjs → fallback.astro.f225bb85.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{index.astro.98167846.mjs → index.astro.a972914a.mjs} +4 -7
- package/packages/storefront/dist/server/entry.mjs +8 -8
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/helpers/sf-utils.ts +12 -0
- package/packages/storefront/src/lib/components/Carousel.vue +17 -5
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/components/SocialNetworkIcon.vue +1 -1
- package/packages/storefront/src/lib/components/SocialNetworkLink.vue +1 -3
- package/packages/storefront/src/lib/composables/use-cart-item.ts +46 -0
- package/packages/storefront/src/lib/sf-lib.ts +7 -0
- package/packages/storefront/src/lib/state/customer-session.ts +1 -1
- package/packages/storefront/src/lib/state/modules-info.ts +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/Carousel.8af656b5.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.6351b57b.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.cfab20c7.js +0 -4
- package/packages/storefront/dist/client/_astro/index.7eac5494.js +0 -1
- package/packages/storefront/src/helpers/idle-callback.ts +0 -9
- package/packages/storefront/src/lib/components/_injection-keys.ts +0 -11
- /package/packages/storefront/src/{lib → helpers}/browser-env.ts +0 -0
- /package/packages/storefront/src/{lib → helpers}/server-data.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.23.0](https://github.com/ecomplus/cloud-commerce/compare/v0.22.4...v0.23.0) (2023-08-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **storefront:** Rootlib `server-data` and `browser-env` files removed in favor of named exports on `/sf-lib` with additional utils
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **storefront:** Add new `useCartItem` composable ([d9da575](https://github.com/ecomplus/cloud-commerce/commit/d9da57555cace183dea11588f8946df2083d9504))
|
|
15
|
+
* **storefront:** New utils `useId` and `requestIdleCallback` from `/sf-lib` ([c53d33b](https://github.com/ecomplus/cloud-commerce/commit/c53d33b72a78beb68644b765c2e1f9023bfcc373))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **cli:** Fix checking SSR `node_modules` dir before reinstall on dev ([aad3bf4](https://github.com/ecomplus/cloud-commerce/commit/aad3bf40dab5b61774e0ce09aa48fca43737ce80))
|
|
21
|
+
* **storefront:** Ensure config is set up even without content/settings ([dad8532](https://github.com/ecomplus/cloud-commerce/commit/dad853268a33e213139c0fedb7914e77b1c3de22))
|
|
22
|
+
|
|
5
23
|
### [0.22.4](https://github.com/ecomplus/cloud-commerce/compare/v0.22.3...v0.22.4) (2023-08-01)
|
|
6
24
|
|
|
7
25
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.22.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
20
|
-
"@cloudcommerce/passport": "^0.22.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.22.4",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
20
|
+
"@cloudcommerce/passport": "^0.22.4"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.22.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.22.
|
|
20
|
+
"@cloudcommerce/api": "^0.22.4",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.22.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.22.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.22.
|
|
27
|
-
"@cloudcommerce/types": "^0.22.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.22.4",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.22.4",
|
|
27
|
+
"@cloudcommerce/types": "^0.22.4",
|
|
28
28
|
"@fontsource/croissant-one": "^5.0.5",
|
|
29
29
|
"@iconify-json/mingcute": "^1.1.7"
|
|
30
30
|
}
|
|
@@ -105,10 +105,7 @@ const {
|
|
|
105
105
|
isActive,
|
|
106
106
|
discountPercentage,
|
|
107
107
|
hasVariations,
|
|
108
|
-
} = useProductCard(
|
|
109
|
-
product: props.product,
|
|
110
|
-
productId: props.productId,
|
|
111
|
-
} as UseProductCardProps);
|
|
108
|
+
} = useProductCard(props as UseProductCardProps);
|
|
112
109
|
const card = ref<HTMLElement | null>(null);
|
|
113
110
|
const isHovered = useElementHover(card);
|
|
114
111
|
const wasHoveredOnce = ref(false);
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
<script setup lang="ts">
|
|
42
42
|
import type { CategoryTree } from '@@sf/composables/use-shop-header';
|
|
43
43
|
import { onMounted } from 'vue';
|
|
44
|
+
import { socialNetworks } from '@@sf/sf-lib';
|
|
44
45
|
import {
|
|
45
46
|
customerName,
|
|
46
47
|
initializeFirebaseAuth,
|
|
47
48
|
isLogged,
|
|
48
49
|
logout,
|
|
49
50
|
} from '@@sf/state/customer-session';
|
|
50
|
-
import { socialNetworks } from '@@sf/server-data';
|
|
51
51
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
52
52
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
53
53
|
import ShopSidenavCategory from '~/components/ShopSidenavCategory.vue';
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.22.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
20
|
-
"@cloudcommerce/modules": "^0.22.
|
|
18
|
+
"@cloudcommerce/events": "^0.22.4",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
20
|
+
"@cloudcommerce/modules": "^0.22.4"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cloudcommerce/cli": "^0.22.
|
|
26
|
+
"@cloudcommerce/cli": "^0.22.4"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@cloudcommerce/eslint": "^0.22.4",
|
|
30
|
+
"eslint": "^8.46.0"
|
|
27
31
|
}
|
|
28
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"trigger": "
|
|
3
|
-
"resource": "
|
|
4
|
-
"slug": "
|
|
2
|
+
"trigger": "64c290035e60690370759966",
|
|
3
|
+
"resource": "collections",
|
|
4
|
+
"slug": "luminarias-led"
|
|
5
5
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^0.22.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
20
|
-
"@cloudcommerce/passport": "^0.22.
|
|
18
|
+
"@cloudcommerce/feeds": "^0.22.4",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
20
|
+
"@cloudcommerce/passport": "^0.22.4"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.22.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.22.
|
|
20
|
+
"@cloudcommerce/api": "^0.22.4",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.22.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudcommerce/i18n": "^0.22.
|
|
26
|
-
"@cloudcommerce/storefront": "^0.22.
|
|
27
|
-
"@cloudcommerce/types": "^0.22.
|
|
25
|
+
"@cloudcommerce/i18n": "^0.22.4",
|
|
26
|
+
"@cloudcommerce/storefront": "^0.22.4",
|
|
27
|
+
"@cloudcommerce/types": "^0.22.4",
|
|
28
28
|
"@fontsource-variable/heebo": "^5.0.5",
|
|
29
29
|
"@iconify-json/carbon": "^1.1.18"
|
|
30
30
|
}
|
|
@@ -71,7 +71,10 @@
|
|
|
71
71
|
opacity-0 group-hover:opacity-100 transition -z-10 group-hover:z-10"
|
|
72
72
|
@click.prevent="addProductToCart(product)"
|
|
73
73
|
>
|
|
74
|
-
<
|
|
74
|
+
<span class="inline-block h-4 w-4 leading-none text-base text-center
|
|
75
|
+
bg-on-primary text-primary opacity-80 rounded-full mr-1">
|
|
76
|
+
+
|
|
77
|
+
</span>
|
|
75
78
|
{{ $t.i19addToCart }}
|
|
76
79
|
</button>
|
|
77
80
|
</div>
|
|
@@ -105,10 +108,7 @@ const {
|
|
|
105
108
|
isActive,
|
|
106
109
|
discountPercentage,
|
|
107
110
|
hasVariations,
|
|
108
|
-
} = useProductCard(
|
|
109
|
-
product: props.product,
|
|
110
|
-
productId: props.productId,
|
|
111
|
-
} as UseProductCardProps);
|
|
111
|
+
} = useProductCard(props as UseProductCardProps);
|
|
112
112
|
const card = ref<HTMLElement | null>(null);
|
|
113
113
|
const isHovered = useElementHover(card);
|
|
114
114
|
const wasHoveredOnce = ref(false);
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
<script setup lang="ts">
|
|
42
42
|
import type { CategoryTree } from '@@sf/composables/use-shop-header';
|
|
43
43
|
import { onMounted } from 'vue';
|
|
44
|
+
import { socialNetworks } from '@@sf/sf-lib';
|
|
44
45
|
import {
|
|
45
46
|
customerName,
|
|
46
47
|
initializeFirebaseAuth,
|
|
47
48
|
isLogged,
|
|
48
49
|
logout,
|
|
49
50
|
} from '@@sf/state/customer-session';
|
|
50
|
-
import { socialNetworks } from '@@sf/server-data';
|
|
51
51
|
import AccountLink from '@@sf/components/AccountLink.vue';
|
|
52
52
|
import SocialNetworkLink from '@@sf/components/SocialNetworkLink.vue';
|
|
53
53
|
import ShopSidenavCategory from '~/components/ShopSidenavCategory.vue';
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.22.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.22.
|
|
20
|
-
"@cloudcommerce/modules": "^0.22.
|
|
18
|
+
"@cloudcommerce/events": "^0.22.4",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.22.4",
|
|
20
|
+
"@cloudcommerce/modules": "^0.22.4"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cloudcommerce/cli": "^0.22.
|
|
26
|
+
"@cloudcommerce/cli": "^0.22.4"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@cloudcommerce/eslint": "^0.22.4",
|
|
30
|
+
"eslint": "^8.46.0"
|
|
27
31
|
}
|
|
28
32
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.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>",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vite": "^4.4.7",
|
|
31
31
|
"vitest": "^0.33.0",
|
|
32
32
|
"zx": "^7.2.3",
|
|
33
|
-
"@cloudcommerce/eslint": "0.
|
|
33
|
+
"@cloudcommerce/eslint": "0.23.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -20,7 +20,7 @@ const copyFunctionsConfig = async (isDev = false) => {
|
|
|
20
20
|
const codebaseDir = joinPath(functionsDir, codebase);
|
|
21
21
|
const isSSR = codebase === 'ssr';
|
|
22
22
|
await fs.ensureDir(joinPath(codebaseDir, 'content'));
|
|
23
|
-
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'node_modules'))) {
|
|
23
|
+
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'ssr', 'node_modules'))) {
|
|
24
24
|
await $`npm --prefix "functions/ssr" i`;
|
|
25
25
|
}
|
|
26
26
|
for (let ii = 0; ii < filesToCopy.length; ii++) {
|
|
@@ -22,7 +22,7 @@ const copyFunctionsConfig = async (isDev = false) => {
|
|
|
22
22
|
const codebaseDir = joinPath(functionsDir, codebase);
|
|
23
23
|
const isSSR = codebase === 'ssr';
|
|
24
24
|
await fs.ensureDir(joinPath(codebaseDir, 'content'));
|
|
25
|
-
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'node_modules'))) {
|
|
25
|
+
if (isDev && isSSR && !fs.existsSync(joinPath(functionsDir, 'ssr', 'node_modules'))) {
|
|
26
26
|
await $`npm --prefix "functions/ssr" i`;
|
|
27
27
|
}
|
|
28
28
|
for (let ii = 0; ii < filesToCopy.length; ii++) {
|