cloudcommerce 0.0.77 → 0.0.78

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 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.78](https://github.com/ecomplus/cloud-commerce/compare/v0.0.77...v0.0.78) (2022-09-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **storefront:** Cant use named imports from `@ecomplus/utils` yet ([d35a839](https://github.com/ecomplus/cloud-commerce/commit/d35a839cf7a881f8f7bdf71b64ce51154bd1be24))
11
+
5
12
  ### [0.0.77](https://github.com/ecomplus/cloud-commerce/compare/v0.0.76...v0.0.77) (2022-09-15)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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-frenet",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
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-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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/events",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
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.77",
4
+ "version": "0.0.78",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -9,9 +9,9 @@ import fs from 'fs';
9
9
  import { resolve } from 'path';
10
10
  import Deepmerge from '@fastify/deepmerge';
11
11
  /* empty css */import * as $$module1$6 from 'color';
12
- import $$module1__default from 'color';
12
+ import $$module1__default$1 from 'color';
13
13
  import * as $$module1$5 from '@ecomplus/utils';
14
- import { img, price } from '@ecomplus/utils';
14
+ import $$module1__default from '@ecomplus/utils';
15
15
  /* empty css *//* empty css *//* empty css *//* empty css */import 'kleur/colors';
16
16
  import 'string-width';
17
17
  import 'path-browserify';
@@ -1873,7 +1873,7 @@ const $$Head = createComponent(async ($$result, $$props, $$slots) => {
1873
1873
  const ogLocale = lang.length === 2 ? lang : lang.substring(0, 2) + lang.slice(3).toUpperCase();
1874
1874
  let ogImage;
1875
1875
  if (apiDoc) {
1876
- const picture = img(state, null, "zoom");
1876
+ const picture = $$module1__default.img(state, null, "zoom");
1877
1877
  ogImage = picture && picture.url;
1878
1878
  }
1879
1879
  if (!ogImage) {
@@ -1958,7 +1958,7 @@ window.storefront = ${JSON.stringify({
1958
1958
  })};`;
1959
1959
  if (apiDoc) {
1960
1960
  if (typeof apiDoc.price === "number") {
1961
- apiDoc.price = price(apiDoc);
1961
+ apiDoc.price = $$module1__default.price(apiDoc);
1962
1962
  }
1963
1963
  const slimDocRegex = globalThis.storefront_slim_doc_regex || /body|meta|records|description|i18n/;
1964
1964
  const minifyApiDoc = (nestedDoc) => {
@@ -2053,7 +2053,7 @@ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2053
2053
  };
2054
2054
  const colorCSSVars = {};
2055
2055
  Object.keys(brandColors).forEach((colorName) => {
2056
- const color = $$module1__default(brandColors[colorName]);
2056
+ const color = $$module1__default$1(brandColors[colorName]);
2057
2057
  Object.keys(colorVariants).forEach((colorVariant) => {
2058
2058
  const colorShift = colorVariants[colorVariant];
2059
2059
  const colorLabel = `${colorName}-${colorVariant}`;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import type { PageContext } from '../../ssr-context';
3
- import { img as getImg } from '@ecomplus/utils';
3
+ import ecomUtils from '@ecomplus/utils';
4
4
 
5
5
  export interface Props {
6
6
  pageContext: PageContext;
@@ -26,7 +26,7 @@ const cmsSocial = cms('social') as typeof import('../../../../content/social.jso
26
26
  const ogLocale = lang.length === 2 ? lang : lang.substring(0, 2) + lang.slice(3).toUpperCase();
27
27
  let ogImage: string | undefined;
28
28
  if (apiDoc) {
29
- const picture = getImg(state, null, 'zoom');
29
+ const picture = ecomUtils.img(state, null, 'zoom');
30
30
  ogImage = picture && picture.url;
31
31
  }
32
32
  if (!ogImage) {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import type { PageContext } from '../../ssr-context';
3
- import { price as fixPrice } from '@ecomplus/utils';
3
+ import ecomUtils from '@ecomplus/utils';
4
4
 
5
5
  export interface Props {
6
6
  pageContext: PageContext;
@@ -32,7 +32,7 @@ window.storefront = ${JSON.stringify({
32
32
  })};`;
33
33
  if (apiDoc) {
34
34
  if (typeof apiDoc.price === 'number') {
35
- apiDoc.price = fixPrice(apiDoc);
35
+ apiDoc.price = ecomUtils.price(apiDoc);
36
36
  }
37
37
  const slimDocRegex = globalThis.storefront_slim_doc_regex
38
38
  || /body|meta|records|description|i18n/;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {