cloudcommerce 0.0.130 → 0.0.131
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 +7 -0
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/PagesHeader.astro +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/main/Fallback.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/main/Wildcard.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/tsconfig.json +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/components/TopBar.vue +2 -2
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +2 -2
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/PagesHeader.astro +4 -4
- package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Fallback.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Wildcard.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/[...slug].astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/fallback.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/index.astro +1 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/tsconfig.json +1 -1
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/infinitepay/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/lib/helpers/pubsub.js +1 -1
- package/packages/firebase/lib/helpers/pubsub.js.map +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/firebase/src/helpers/pubsub.ts +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/package.json +1 -1
- package/packages/storefront/astro.config.mjs +2 -2
- package/packages/storefront/components.d.ts +0 -1
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/components/LoginForm.vue +1 -1
- package/packages/storefront/src/lib/layouts/Base.astro +5 -5
- package/packages/storefront/src/lib/layouts/BaseBody.astro +4 -4
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -3
- package/packages/storefront/src/lib/layouts/BaseStateJson.astro +1 -1
- package/packages/storefront/tsconfig.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/src/lib/components/atoms/ALink.vue +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.131](https://github.com/ecomplus/cloud-commerce/compare/v0.0.130...v0.0.131) (2022-12-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **firebase:** PubSub function handler should return promise ([44edda5](https://github.com/ecomplus/cloud-commerce/commit/44edda5c9d29cb7680a9758c8453f9a719e1df7c))
|
|
11
|
+
|
|
5
12
|
### [0.0.130](https://github.com/ecomplus/cloud-commerce/compare/v0.0.129...v0.0.130) (2022-12-06)
|
|
6
13
|
|
|
7
14
|
### [0.0.129](https://github.com/ecomplus/cloud-commerce/compare/v0.0.128...v0.0.129) (2022-12-06)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { PageContext } from '@@
|
|
3
|
-
import Base from '@@
|
|
2
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
3
|
+
import Base from '@@sf/layouts/Base.astro';
|
|
4
4
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
5
5
|
|
|
6
6
|
export interface Props {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { PageContext } from '@@
|
|
3
|
-
import { getImage } from '@@
|
|
2
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
3
|
+
import { getImage } from '@@sf/ssr/image';
|
|
4
4
|
import TopBar from '@@components/TopBar.vue';
|
|
5
5
|
import TheHeader from '@@components/TheHeader.vue';
|
|
6
6
|
import HeaderNav from '@@components/header/HeaderNav.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { PageContext } from '@@
|
|
2
|
+
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 HowItWorksAccordion from '~/components/HowItWorksAccordion.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import loadPageContext, { PageContext } from '@@
|
|
2
|
+
import loadPageContext, { PageContext } from '@@sf/ssr-context';
|
|
3
3
|
import PagesLayout from '~/layouts/Pages.astro';
|
|
4
4
|
import MonocardCustomizer from '~/components/MonocardCustomizer.vue';
|
|
5
5
|
import HowItWorksAccordion from '~/components/HowItWorksAccordion.vue';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"baseUrl": ".",
|
|
5
5
|
"paths": {
|
|
6
6
|
"@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
|
|
7
|
-
"@@
|
|
7
|
+
"@@sf/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
|
|
8
8
|
"@@components/*": [
|
|
9
9
|
"./src/components/*",
|
|
10
10
|
"./node_modules/@cloudcommerce/storefront/src/lib/components/*",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import type CmsHeader from '@@
|
|
3
|
-
import type CmsContacts from '@@
|
|
2
|
+
import type CmsHeader from '@@sf/types/cms-header';
|
|
3
|
+
import type CmsContacts from '@@sf/types/cms-contacts';
|
|
4
4
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
marketingStripe: CmsHeader['marketing_stripe'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { PageContext } from '@@
|
|
3
|
-
import Base from '@@
|
|
2
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
3
|
+
import Base from '@@sf/layouts/Base.astro';
|
|
4
4
|
import InlineScripts from '~/scripts/InlineScripts.astro';
|
|
5
5
|
|
|
6
6
|
export interface Props {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { Categories } from '@cloudcommerce/api/types';
|
|
3
|
-
import type CmsHeader from '@@
|
|
4
|
-
import type CmsContacts from '@@
|
|
5
|
-
import type { PageContext } from '@@
|
|
3
|
+
import type CmsHeader from '@@sf/types/cms-header';
|
|
4
|
+
import type CmsContacts from '@@sf/types/cms-contacts';
|
|
5
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
6
6
|
import { i19buyOnWhatsApp } from '@@i18n';
|
|
7
|
-
import { getImage } from '@@
|
|
7
|
+
import { getImage } from '@@sf/ssr/image';
|
|
8
8
|
import TopBar, { Props as TopBarProps } from '@@components/TopBar.vue';
|
|
9
9
|
import TheHeader, { Props as TheHeaderProps } from '@@components/TheHeader.vue';
|
|
10
10
|
import HeaderNav from '@@components/header/HeaderNav.vue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import api from '@cloudcommerce/api';
|
|
3
|
-
import loadPageContext, { PageContext } from '@@
|
|
3
|
+
import loadPageContext, { PageContext } from '@@sf/ssr-context';
|
|
4
4
|
import PagesLayout from '~/layouts/Pages.astro';
|
|
5
5
|
import WildcardMain from '~/main/Wildcard.astro';
|
|
6
6
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"baseUrl": ".",
|
|
5
5
|
"paths": {
|
|
6
6
|
"@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
|
|
7
|
-
"@@
|
|
7
|
+
"@@sf/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
|
|
8
8
|
"@@components/*": [
|
|
9
9
|
"./src/components/*",
|
|
10
10
|
"./node_modules/@cloudcommerce/storefront/src/lib/components/*",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.131",
|
|
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>",
|
|
@@ -13,7 +13,7 @@ const createPubSubFunction = (pubSubTopic, fn, eventMaxAgeMs = 60000) => {
|
|
|
13
13
|
if (eventAgeMs > eventMaxAgeMs) {
|
|
14
14
|
logger.warn(`Dropping event ${context.eventId} with age[ms]: ${eventAgeMs}`);
|
|
15
15
|
}
|
|
16
|
-
fn(message.json, context, message);
|
|
16
|
+
return fn(message.json, context, message);
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
const createAppEventsFunction = (appNameOrId, fn, eventMaxAgeMs = 60000) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../src/helpers/pubsub.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;AAS7B,kCAAkC;AAElC,MAAM,oBAAoB,GAAG,CAC3B,WAAmB,EACnB,EAAsB,EACtB,aAAa,GAAG,KAAK,EACrB,EAAE;IACF,MAAM,EAAE,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IAC1D,OAAO,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;SAC5B,OAAO,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;SAChC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC9D,IAAI,UAAU,GAAG,aAAa,EAAE;YAC9B,MAAM,CAAC,IAAI,CAAC,kBAAkB,OAAO,CAAC,OAAO,kBAAkB,UAAU,EAAE,CAAC,CAAC;SAC9E;QACD,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../../src/helpers/pubsub.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,U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Ae,oBAAoB,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -144,7 +144,7 @@ const _vitePWAOptions = {
|
|
|
144
144
|
},
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
// @@components tries ~/components with fallback to @@
|
|
147
|
+
// @@components tries ~/components with fallback to @@sf/components
|
|
148
148
|
const localComponentsDir = joinPath(process.cwd(), 'src/components');
|
|
149
149
|
const libComponentsDir = joinPath(__dirname, 'src/lib/components');
|
|
150
150
|
|
|
@@ -211,7 +211,7 @@ const genAstroConfig = ({
|
|
|
211
211
|
preserveSymlinks: lstatSync(localComponentsDir).isSymbolicLink(),
|
|
212
212
|
alias: [
|
|
213
213
|
{ find: '@@i18n', replacement: `@cloudcommerce/i18n/src/${lang}.ts` },
|
|
214
|
-
{ find: '@@
|
|
214
|
+
{ find: '@@sf', replacement: joinPath(__dirname, 'src/lib') },
|
|
215
215
|
{ find: '~', replacement: joinPath(process.cwd(), 'src') },
|
|
216
216
|
{ find: 'content', replacement: joinPath(process.cwd(), 'content') },
|
|
217
217
|
{
|
|
@@ -8,7 +8,6 @@ export {}
|
|
|
8
8
|
declare module '@vue/runtime-core' {
|
|
9
9
|
export interface GlobalComponents {
|
|
10
10
|
ADrawer: typeof import('./src/lib/components/ADrawer.vue')['default']
|
|
11
|
-
ALink: typeof import('./src/lib/components/atoms/ALink.vue')['default']
|
|
12
11
|
HeaderButtonLink: typeof import('./src/components/header/HeaderButtonLink.vue')['default']
|
|
13
12
|
HeaderButtons: typeof import('./src/components/header/HeaderButtons.vue')['default']
|
|
14
13
|
HeaderNav: typeof import('./src/components/header/HeaderNav.vue')['default']
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type CmsCode from '@@
|
|
3
|
-
import type { PageContext } from '@@
|
|
4
|
-
import BaseHead from '@@
|
|
5
|
-
import BaseStateJson from '@@
|
|
6
|
-
import BaseBody from '@@
|
|
2
|
+
import type CmsCode from '@@sf/types/cms-code';
|
|
3
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
4
|
+
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
5
|
+
import BaseStateJson from '@@sf/layouts/BaseStateJson.astro';
|
|
6
|
+
import BaseBody from '@@sf/layouts/BaseBody.astro';
|
|
7
7
|
|
|
8
8
|
export interface Props {
|
|
9
9
|
pageContext: PageContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { PageContext } from '@@
|
|
3
|
-
import '@@
|
|
4
|
-
import '@@
|
|
5
|
-
import '@@
|
|
2
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
3
|
+
import '@@sf/assets/preflight.css';
|
|
4
|
+
import '@@sf/assets/base.css';
|
|
5
|
+
import '@@sf/assets/forms.css';
|
|
6
6
|
import 'uno.css';
|
|
7
7
|
|
|
8
8
|
export interface Props {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type CmsSocial from '@@
|
|
2
|
+
import type CmsSocial from '@@sf/types/cms-social';
|
|
3
3
|
import { img as getImg } from '@ecomplus/utils';
|
|
4
|
-
import type { PageContext } from '@@
|
|
5
|
-
import { getImage as transformImage } from '@@
|
|
4
|
+
import type { PageContext } from '@@sf/ssr-context';
|
|
5
|
+
import { getImage as transformImage } from '@@sf/ssr/image';
|
|
6
6
|
|
|
7
7
|
export interface Props {
|
|
8
8
|
pageContext: PageContext;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"baseUrl": ".",
|
|
6
6
|
"paths": {
|
|
7
7
|
"@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
|
|
8
|
-
"@@
|
|
8
|
+
"@@sf/*": ["./src/lib/*"],
|
|
9
9
|
"@@components/*": ["./src/components/*", "./src/lib/components/*"],
|
|
10
10
|
"~/*": ["./src/*"],
|
|
11
11
|
"content/*": ["./content/*"],
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
export interface Props {
|
|
3
|
-
href: String;
|
|
4
|
-
to: [String, Object];
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
const props = defineProps<Props>();
|
|
8
|
-
const isRouter = computed(() => {
|
|
9
|
-
if (this.$router) {
|
|
10
|
-
return !props.href
|
|
11
|
-
? true
|
|
12
|
-
: Boolean(this.$router.options.routes.find(({ path }) => path === props.href));
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
});
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<template>
|
|
19
|
-
<component
|
|
20
|
-
:is="isRouter ? 'router-link' : 'a'"
|
|
21
|
-
:href="isRouter ? null : href"
|
|
22
|
-
:to="isRouter ? (to || href) : null"
|
|
23
|
-
>
|
|
24
|
-
<slot/>
|
|
25
|
-
</component>
|
|
26
|
-
</template>
|