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 +7 -0
- 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/frenet/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/events/package.json +1 -1
- package/packages/firebase/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/dist/server/entry.mjs +5 -5
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/layouts/meta/Head.astro +2 -2
- package/packages/storefront/src/lib/layouts/meta/Json.astro +2 -2
- package/packages/types/package.json +1 -1
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.
|
|
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>",
|
|
@@ -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
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { PageContext } from '../../ssr-context';
|
|
3
|
-
import
|
|
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 =
|
|
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
|
|
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 =
|
|
35
|
+
apiDoc.price = ecomUtils.price(apiDoc);
|
|
36
36
|
}
|
|
37
37
|
const slimDocRegex = globalThis.storefront_slim_doc_regex
|
|
38
38
|
|| /body|meta|records|description|i18n/;
|