cloudcommerce 0.0.129 → 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.
Files changed (56) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +2 -2
  3. package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +1 -1
  4. package/ecomplus-stores/monocard/functions/ssr/src/layouts/PagesHeader.astro +2 -2
  5. package/ecomplus-stores/monocard/functions/ssr/src/main/Fallback.astro +1 -1
  6. package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +1 -1
  7. package/ecomplus-stores/monocard/functions/ssr/src/main/Wildcard.astro +1 -1
  8. package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +1 -1
  9. package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +1 -1
  10. package/ecomplus-stores/monocard/functions/ssr/tsconfig.json +1 -1
  11. package/ecomplus-stores/tia-sonia/functions/ssr/src/components/TopBar.vue +2 -2
  12. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Base.astro +2 -2
  13. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/Pages.astro +1 -1
  14. package/ecomplus-stores/tia-sonia/functions/ssr/src/layouts/PagesHeader.astro +4 -4
  15. package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Fallback.astro +1 -1
  16. package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Home.astro +1 -1
  17. package/ecomplus-stores/tia-sonia/functions/ssr/src/main/Wildcard.astro +1 -1
  18. package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/[...slug].astro +1 -1
  19. package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/fallback.astro +1 -1
  20. package/ecomplus-stores/tia-sonia/functions/ssr/src/pages/index.astro +1 -1
  21. package/ecomplus-stores/tia-sonia/functions/ssr/tsconfig.json +1 -1
  22. package/package.json +1 -1
  23. package/packages/api/package.json +1 -1
  24. package/packages/apps/correios/package.json +1 -1
  25. package/packages/apps/custom-shipping/package.json +1 -1
  26. package/packages/apps/discounts/package.json +1 -1
  27. package/packages/apps/emails/package.json +1 -1
  28. package/packages/apps/frenet/package.json +1 -1
  29. package/packages/apps/infinitepay/package.json +1 -1
  30. package/packages/apps/mercadopago/package.json +1 -1
  31. package/packages/apps/pagarme/package.json +1 -1
  32. package/packages/apps/pix/package.json +1 -1
  33. package/packages/apps/tiny-erp/package.json +1 -1
  34. package/packages/cli/package.json +1 -1
  35. package/packages/config/package.json +1 -1
  36. package/packages/emails/package.json +1 -1
  37. package/packages/events/package.json +1 -1
  38. package/packages/firebase/lib/helpers/pubsub.js +1 -1
  39. package/packages/firebase/lib/helpers/pubsub.js.map +1 -1
  40. package/packages/firebase/package.json +1 -1
  41. package/packages/firebase/src/helpers/pubsub.ts +1 -1
  42. package/packages/i18n/package.json +1 -1
  43. package/packages/modules/package.json +1 -1
  44. package/packages/passport/package.json +1 -1
  45. package/packages/ssr/package.json +1 -1
  46. package/packages/storefront/astro.config.mjs +2 -2
  47. package/packages/storefront/components.d.ts +0 -1
  48. package/packages/storefront/package.json +1 -1
  49. package/packages/storefront/src/lib/components/LoginForm.vue +1 -1
  50. package/packages/storefront/src/lib/layouts/Base.astro +5 -5
  51. package/packages/storefront/src/lib/layouts/BaseBody.astro +4 -4
  52. package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -3
  53. package/packages/storefront/src/lib/layouts/BaseStateJson.astro +1 -1
  54. package/packages/storefront/tsconfig.json +1 -1
  55. package/packages/types/package.json +1 -1
  56. package/packages/storefront/src/lib/components/atoms/ALink.vue +0 -26
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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
+
12
+ ### [0.0.130](https://github.com/ecomplus/cloud-commerce/compare/v0.0.129...v0.0.130) (2022-12-06)
13
+
5
14
  ### [0.0.129](https://github.com/ecomplus/cloud-commerce/compare/v0.0.128...v0.0.129) (2022-12-06)
6
15
 
7
16
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
3
- import Base from '@@storefront/layouts/Base.astro';
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,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
  import Base from '~/layouts/Base.astro';
4
4
  import Header from '~/layouts/PagesHeader.astro';
5
5
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
3
- import { getImage } from '@@storefront/ssr/image';
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 '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
 
4
4
  export interface Props {
5
5
  pageContext?: PageContext;
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
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 type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
 
4
4
  export interface Props {
5
5
  pageContext: PageContext;
@@ -1,5 +1,5 @@
1
1
  ---
2
- import loadPageContext, { PageContext } from '@@storefront/ssr-context';
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';
@@ -1,5 +1,5 @@
1
1
  ---
2
- import loadPageContext, { PageContext } from '@@storefront/ssr-context';
2
+ import loadPageContext, { PageContext } from '@@sf/ssr-context';
3
3
  import HomeMain from '~/main/Home.astro';
4
4
  import PagesLayout from '~/layouts/Pages.astro';
5
5
 
@@ -4,7 +4,7 @@
4
4
  "baseUrl": ".",
5
5
  "paths": {
6
6
  "@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
7
- "@@storefront/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
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 '@@storefront/types/cms-header';
3
- import type CmsContacts from '@@storefront/types/cms-contacts';
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 '@@storefront/ssr-context';
3
- import Base from '@@storefront/layouts/Base.astro';
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,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
  import Base from '~/layouts/Base.astro';
4
4
  import Header from '~/layouts/PagesHeader.astro';
5
5
 
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  import type { Categories } from '@cloudcommerce/api/types';
3
- import type CmsHeader from '@@storefront/types/cms-header';
4
- import type CmsContacts from '@@storefront/types/cms-contacts';
5
- import type { PageContext } from '@@storefront/ssr-context';
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 '@@storefront/ssr/image';
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,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
 
4
4
  export interface Props {
5
5
  pageContext?: PageContext;
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
  import api from '@cloudcommerce/api';
4
4
 
5
5
  export interface Props {
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
 
4
4
  export interface Props {
5
5
  pageContext: PageContext;
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import api from '@cloudcommerce/api';
3
- import loadPageContext, { PageContext } from '@@storefront/ssr-context';
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
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- import loadPageContext, { PageContext } from '@@storefront/ssr-context';
2
+ import loadPageContext, { PageContext } from '@@sf/ssr-context';
3
3
  import PagesLayout from '~/layouts/Pages.astro';
4
4
  import FallbackMain from '~/main/Fallback.astro';
5
5
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- import loadPageContext, { PageContext } from '@@storefront/ssr-context';
2
+ import loadPageContext, { PageContext } from '@@sf/ssr-context';
3
3
  import PagesLayout from '~/layouts/Pages.astro';
4
4
  import HomeMain from '~/main/Home.astro';
5
5
 
@@ -4,7 +4,7 @@
4
4
  "baseUrl": ".",
5
5
  "paths": {
6
6
  "@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
7
- "@@storefront/*": ["./node_modules/@cloudcommerce/storefront/src/lib/*"],
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.129",
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>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
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.129",
4
+ "version": "0.0.131",
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.129",
4
+ "version": "0.0.131",
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.129",
4
+ "version": "0.0.131",
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.0.129",
4
+ "version": "0.0.131",
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-frenet",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
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-infinitepay",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
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-mercadopago",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
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.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
6
6
  "main": "lib/pagarme.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pix",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
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.0.129",
4
+ "version": "0.0.131",
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.129",
4
+ "version": "0.0.131",
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.129",
4
+ "version": "0.0.131",
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/emails",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -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;IACrC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC9B,WAA4B,EAC5B,EAAmB,EACnB,aAAa,GAAG,KAAK,EACrB,EAAE;IACF,IAAI,KAAa,CAAC;IAClB,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;QACnC,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;KAC9C;SAAM;QACL,KAAK,GAAG,WAAW,CAAC;KACrB;IACD,OAAO,oBAAoB,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,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,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,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC9B,WAA4B,EAC5B,EAAmB,EACnB,aAAa,GAAG,KAAK,EACrB,EAAE;IACF,IAAI,KAAa,CAAC;IAClB,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;QACnC,KAAK,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;KAC9C;SAAM;QACL,KAAK,GAAG,WAAW,CAAC;KACrB;IACD,OAAO,oBAAoB,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -27,7 +27,7 @@ const createPubSubFunction = (
27
27
  if (eventAgeMs > eventMaxAgeMs) {
28
28
  logger.warn(`Dropping event ${context.eventId} with age[ms]: ${eventAgeMs}`);
29
29
  }
30
- fn(message.json, context, message);
30
+ return fn(message.json, context, message);
31
31
  });
32
32
  };
33
33
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/i18n",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce i18n",
6
6
  "main": "lib/all.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce modules API",
6
6
  "main": "lib/index.cjs",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/passport",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/ssr",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -144,7 +144,7 @@ const _vitePWAOptions = {
144
144
  },
145
145
  };
146
146
 
147
- // @@components tries ~/components with fallback to @@storefront/components
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: '@@storefront', replacement: joinPath(__dirname, 'src/lib') },
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -20,7 +20,7 @@ import {
20
20
  customerName,
21
21
  customerEmail as email,
22
22
  isLogged,
23
- } from '@@storefront/state/customer-session';
23
+ } from '@@sf/state/customer-session';
24
24
 
25
25
  const emit = defineEmits(['login', 'logout']);
26
26
  watch(isLogged, (_isLogged) => {
@@ -1,9 +1,9 @@
1
1
  ---
2
- import type CmsCode from '@@storefront/types/cms-code';
3
- import type { PageContext } from '@@storefront/ssr-context';
4
- import BaseHead from '@@storefront/layouts/BaseHead.astro';
5
- import BaseStateJson from '@@storefront/layouts/BaseStateJson.astro';
6
- import BaseBody from '@@storefront/layouts/BaseBody.astro';
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 '@@storefront/ssr-context';
3
- import '@@storefront/assets/preflight.css';
4
- import '@@storefront/assets/base.css';
5
- import '@@storefront/assets/forms.css';
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 '@@storefront/types/cms-social';
2
+ import type CmsSocial from '@@sf/types/cms-social';
3
3
  import { img as getImg } from '@ecomplus/utils';
4
- import type { PageContext } from '@@storefront/ssr-context';
5
- import { getImage as transformImage } from '@@storefront/ssr/image';
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;
@@ -1,5 +1,5 @@
1
1
  ---
2
- import type { PageContext } from '@@storefront/ssr-context';
2
+ import type { PageContext } from '@@sf/ssr-context';
3
3
  import { price as getPrice } from '@ecomplus/utils';
4
4
 
5
5
  export interface Props {
@@ -5,7 +5,7 @@
5
5
  "baseUrl": ".",
6
6
  "paths": {
7
7
  "@@i18n": ["./node_modules/@cloudcommerce/i18n/src/pt_br.ts"],
8
- "@@storefront/*": ["./src/lib/*"],
8
+ "@@sf/*": ["./src/lib/*"],
9
9
  "@@components/*": ["./src/components/*", "./src/lib/components/*"],
10
10
  "~/*": ["./src/*"],
11
11
  "content/*": ["./content/*"],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.0.129",
4
+ "version": "0.0.131",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
@@ -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>