cloudcommerce 2.4.2 → 2.4.3
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 +9 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/pages/admin/index.astro +23 -0
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-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/mandae/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/pagarme-v5/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/ci/bunny-config-base.sh +2 -0
- package/packages/cli/package.json +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/package.json +1 -1
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/decap-cms/gen-preview-container.ts +2 -2
- package/packages/storefront/src/decap-cms/preview/ssr-package.ts +14160 -0
- package/packages/storefront/src/decap-cms/preview/webcontainer.ts +7 -3
- package/packages/storefront/src/lib/layouts/BaseBody.astro +13 -0
- package/packages/storefront/src/lib/pages/admin.astro +0 -0
- package/packages/storefront/src/lib/scripts/decap-cms.ts +1 -1
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
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
|
+
### [2.4.3](https://github.com/ecomplus/cloud-commerce/compare/v2.4.2...v2.4.3) (2024-02-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **cli:** Add `*/admin/` pattern to "APIs" cache bypass on bunny.net edge rules ([bdbf89e](https://github.com/ecomplus/cloud-commerce/commit/bdbf89ec49f6f774f993980593fdba985428e591))
|
|
11
|
+
* **storefront:** Fixing route to GH installations for GH token ([4f127dd](https://github.com/ecomplus/cloud-commerce/commit/4f127dda01b635c79e0838b37c02e7c94a2eed05))
|
|
12
|
+
* **storefront:** Using frozen lock file for CMS preview on WebContainer [[#320](https://github.com/ecomplus/cloud-commerce/issues/320)] ([476d256](https://github.com/ecomplus/cloud-commerce/commit/476d2568ef49e3ef1f6ee85a68480b69581a49f6))
|
|
13
|
+
|
|
5
14
|
### [2.4.2](https://github.com/ecomplus/cloud-commerce/compare/v2.4.1...v2.4.2) (2024-02-12)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.4.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.4.
|
|
20
|
-
"@cloudcommerce/passport": "^2.4.
|
|
18
|
+
"@cloudcommerce/feeds": "^2.4.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.4.2",
|
|
20
|
+
"@cloudcommerce/passport": "^2.4.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@cloudcommerce/api": "^2.4.
|
|
22
|
-
"@cloudcommerce/firebase": "^2.4.
|
|
23
|
-
"@cloudcommerce/ssr": "^2.4.
|
|
21
|
+
"@cloudcommerce/api": "^2.4.2",
|
|
22
|
+
"@cloudcommerce/firebase": "^2.4.2",
|
|
23
|
+
"@cloudcommerce/ssr": "^2.4.2",
|
|
24
24
|
"@headlessui/vue": "^1.7.18"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@cloudcommerce/i18n": "^2.4.
|
|
28
|
-
"@cloudcommerce/storefront": "^2.4.
|
|
29
|
-
"@cloudcommerce/types": "^2.4.
|
|
27
|
+
"@cloudcommerce/i18n": "^2.4.2",
|
|
28
|
+
"@cloudcommerce/storefront": "^2.4.2",
|
|
29
|
+
"@cloudcommerce/types": "^2.4.2",
|
|
30
30
|
"@iconify-json/mingcute": "^1.1.16",
|
|
31
31
|
"photoswipe": "^5.4.3"
|
|
32
32
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { type RouteContext, loadRouteContext } from '@@sf/ssr-context';
|
|
3
|
+
import BaseHead from '@@sf/layouts/BaseHead.astro';
|
|
4
|
+
import Base from '~/layouts/Base.astro';
|
|
5
|
+
|
|
6
|
+
let routeContext: RouteContext;
|
|
7
|
+
try {
|
|
8
|
+
routeContext = await loadRouteContext(Astro);
|
|
9
|
+
} catch (err: any) {
|
|
10
|
+
return err.astroResponse;
|
|
11
|
+
}
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang={routeContext.lang.replace('_', '-')}>
|
|
16
|
+
<Base>
|
|
17
|
+
<Fragment slot="base-head">
|
|
18
|
+
<BaseHead />
|
|
19
|
+
<title>CMS</title>
|
|
20
|
+
</Fragment>
|
|
21
|
+
<script src="@@sf/scripts/decap-cms"></script>
|
|
22
|
+
</Base>
|
|
23
|
+
</html>
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.4.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.4.
|
|
20
|
-
"@cloudcommerce/modules": "^2.4.
|
|
18
|
+
"@cloudcommerce/events": "^2.4.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.4.2",
|
|
20
|
+
"@cloudcommerce/modules": "^2.4.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudcommerce/cli": "^2.4.
|
|
29
|
+
"@cloudcommerce/cli": "^2.4.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@cloudcommerce/eslint": "^2.4.
|
|
32
|
+
"@cloudcommerce/eslint": "^2.4.2",
|
|
33
33
|
"husky": "^9.0.10",
|
|
34
34
|
"lint-staged": "^15.2.2"
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.3",
|
|
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>",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite": "^5.0.11",
|
|
37
37
|
"vitest": "^1.2.2",
|
|
38
38
|
"zx": "^7.2.3",
|
|
39
|
-
"@cloudcommerce/eslint": "2.4.
|
|
39
|
+
"@cloudcommerce/eslint": "2.4.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
@@ -156,6 +156,7 @@ configure_edge_rule "APIs bypass CDN cache" '
|
|
|
156
156
|
"*/_feeds/*",
|
|
157
157
|
"*/.*/git/*",
|
|
158
158
|
"*/_analytics",
|
|
159
|
+
"*/admin/",
|
|
159
160
|
"*/~*"
|
|
160
161
|
],
|
|
161
162
|
"PatternMatchingType": 0,
|
|
@@ -181,6 +182,7 @@ configure_edge_rule "APIs bypass perma-cache" '
|
|
|
181
182
|
"*/_feeds/*",
|
|
182
183
|
"*/.*/git/*",
|
|
183
184
|
"*/_analytics",
|
|
185
|
+
"*/admin/",
|
|
184
186
|
"*/~*"
|
|
185
187
|
],
|
|
186
188
|
"PatternMatchingType": 0,
|
|
@@ -19,7 +19,7 @@ export const genPreviewContainer = ({ React, cmsConfig, ghToken }: {
|
|
|
19
19
|
const html = `
|
|
20
20
|
<textarea id="${cliTextareaId}"></textarea>
|
|
21
21
|
<iframe
|
|
22
|
-
|
|
22
|
+
id="${serverIframeId}"
|
|
23
23
|
data-url="${urlPath}"
|
|
24
24
|
border="0"
|
|
25
25
|
width="100%"
|
|
@@ -40,7 +40,7 @@ export const genPreviewContainer = ({ React, cmsConfig, ghToken }: {
|
|
|
40
40
|
.then(({ webcontainerInstance, startDevServer }) => {
|
|
41
41
|
webcontainerInstance.on('server-ready', (port, url) => {
|
|
42
42
|
console.log({ port, url });
|
|
43
|
-
previewIframe.src =
|
|
43
|
+
previewIframe.src = url;
|
|
44
44
|
});
|
|
45
45
|
startDevServer();
|
|
46
46
|
});
|