cloudcommerce 0.26.1 → 0.26.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 +20 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +8 -8
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartItem.vue +64 -0
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartSidebar.vue +38 -7
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/Prices.vue +2 -3
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +8 -4
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/package.json +8 -8
- package/ecomplus-stores/iluminim/functions/ssr/src/components/CartItem.vue +64 -0
- package/ecomplus-stores/iluminim/functions/ssr/src/components/CartSidebar.vue +37 -6
- package/ecomplus-stores/iluminim/functions/ssr/src/components/Prices.vue +2 -3
- package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +6 -2
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +2 -2
- package/package.json +3 -3
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-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 +2 -2
- 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/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/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/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +3 -3
- 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/lib/firebase/functions-checkout/request-to-module.js +2 -2
- package/packages/modules/lib/firebase/functions-checkout/request-to-module.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/utils.js +21 -9
- package/packages/modules/lib/firebase/functions-checkout/utils.js.map +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/modules/schemas/@checkout.cjs +0 -1
- package/packages/modules/src/firebase/functions-checkout/request-to-module.ts +2 -2
- package/packages/modules/src/firebase/functions-checkout/utils.ts +23 -9
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +10 -10
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/ssr/src/firebase/serve-storefront.ts +10 -14
- package/packages/storefront/dist/client/_astro/{Carousel.926668f2.js → Carousel.0b24e2cb.js} +1 -1
- package/packages/storefront/dist/client/_astro/CartSidebar.2731d333.js +1 -0
- package/packages/storefront/dist/client/_astro/{HeroSlider.1f0524aa.js → HeroSlider.a70b2582.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.7407eeaf.js → PitchBar.13991988.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.562a32ab.js → Prices.cdfa346a.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.763cd2ca.js → ProductShelf.619c56a5.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchModal.117a477d.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.126900a6.js → ShopHeader.2c2fded7.js} +2 -2
- package/packages/storefront/dist/client/_astro/_...slug_.b693913e.css +1 -0
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.ee681fa8.js → _plugin-vue_export-helper.fc5e2f5b.js} +1 -1
- package/packages/storefront/dist/client/_astro/{api.a2eda23e.js → api.39f40cd8.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.a5d2898b.js +1 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.93857bfb.js → firebase-app.8c541cce.js} +3 -3
- package/packages/storefront/dist/client/_astro/{format-money.923559cc.js → format-money.86f14860.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.d90361ee.js +1 -0
- package/packages/storefront/dist/client/_astro/{img.ec6ba316.js → img.d4891d80.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.33801818.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.48980668.js → modules-info.ec412b24.js} +1 -1
- package/packages/storefront/dist/client/_empty-middleware.mjs +3 -0
- package/packages/storefront/dist/client/chunks/CartSidebar.0ce1e999.mjs +382 -0
- package/packages/storefront/dist/client/chunks/SearchModal.f603145b.mjs +32 -0
- package/packages/storefront/dist/client/chunks/astro.11be33ee.mjs +1424 -0
- package/packages/storefront/dist/{server/chunks/pages/_...slug_.astro.fd8a229f.mjs → client/chunks/pages/_...slug_.astro.ec6517ba.mjs} +360 -274
- package/packages/storefront/dist/{server/chunks/pages/account.astro.3b21bff8.mjs → client/chunks/pages/account.astro.3d2605e6.mjs} +2 -10
- package/packages/storefront/dist/{server/chunks/pages/index.astro.dab642f5.mjs → client/chunks/pages/index.astro.8ad03206.mjs} +167 -17
- package/packages/storefront/dist/{server/chunks/pages/~fallback.astro.7630c0d6.mjs → client/chunks/pages/~fallback.astro.d31d20b4.mjs} +8 -20
- package/packages/storefront/dist/client/chunks/sharp.3f154e38.mjs +74 -0
- package/packages/storefront/dist/client/manifest.e39eb543.mjs +79 -0
- package/packages/storefront/dist/client/pages/_---slug_.astro.mjs +23 -0
- package/packages/storefront/dist/client/pages/app/account.astro.mjs +23 -0
- package/packages/storefront/dist/client/pages/app.astro.mjs +23 -0
- package/packages/storefront/dist/client/pages/index.astro.mjs +23 -0
- package/packages/storefront/dist/client/pages/~fallback.astro.mjs +23 -0
- package/packages/storefront/dist/client/registerSW.js +1 -0
- package/packages/storefront/dist/client/renderers.mjs +369 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{CartSidebar.2b555408.mjs → CartSidebar.cca9fdd3.mjs} +14 -24
- package/packages/storefront/dist/server/chunks/{SearchModal.f418e188.mjs → SearchModal.a680efae.mjs} +8 -19
- package/packages/storefront/dist/server/chunks/_...f7cdc954.mjs +24 -0
- package/packages/storefront/dist/server/chunks/account@_@astro.fa8b921b.mjs +24 -0
- package/packages/storefront/dist/server/chunks/{astro.bb5b7191.mjs → astro.440a2e08.mjs} +149 -1859
- package/packages/storefront/dist/server/chunks/image-endpoint@_@js.802bf648.mjs +24 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.a122f091.mjs +24 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.da98dcbe.mjs +24 -0
- package/packages/storefront/dist/server/chunks/pages/_...slug_.astro.08ba5973.mjs +3930 -0
- package/packages/storefront/dist/server/chunks/pages/account.astro.f11f26f3.mjs +15 -0
- package/packages/storefront/dist/server/chunks/pages/image-endpoint.js.a9374d3e.mjs +238 -0
- package/packages/storefront/dist/server/chunks/pages/index.astro.079f316a.mjs +1650 -0
- package/packages/storefront/dist/server/chunks/pages/~fallback.astro.01594623.mjs +55 -0
- package/packages/storefront/dist/server/chunks/sharp.52841bb4.mjs +75 -0
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.876a97c5.mjs +24 -0
- package/packages/storefront/dist/server/entry.mjs +1167 -2360
- package/packages/storefront/dist/server/manifest.12e7a10c.mjs +561 -0
- package/packages/storefront/dist/server/renderers.mjs +10 -21
- package/packages/storefront/package.json +6 -6
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -2
- package/packages/test-base/package.json +1 -1
- package/packages/types/modules/@checkout:params.d.ts +1 -1
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/iluminim/.ecomplus.cd.json +0 -5
- package/packages/storefront/dist/client/_astro/CartSidebar.eadba34f.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchModal.cffd4c2d.js +0 -1
- package/packages/storefront/dist/client/_astro/_...slug_.36cd433d.css +0 -1
- package/packages/storefront/dist/client/_astro/client.e6d9439a.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.572313d6.js +0 -1
- package/packages/storefront/dist/client/_astro/index.709ac149.js +0 -1
- package/packages/storefront/dist/server/chunks/_...d32bcc0c.mjs +0 -35
- package/packages/storefront/dist/server/chunks/account@_@astro.0106855f.mjs +0 -35
- package/packages/storefront/dist/server/chunks/endpoint@_@js.35807882.mjs +0 -35
- package/packages/storefront/dist/server/chunks/index@_@astro.477f5af1.mjs +0 -35
- package/packages/storefront/dist/server/chunks/index@_@astro.e5a61d6e.mjs +0 -35
- package/packages/storefront/dist/server/chunks/pages/endpoint.js.247079ba.mjs +0 -119
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.65227dd7.mjs +0 -35
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { c as createAstro, b as createComponent, r as renderTemplate, m as maybeRenderHead, e as addAttribute, f as renderComponent } from '../astro.440a2e08.mjs';
|
|
2
|
+
import { g as loadRouteContext, h as $$BaseHead, j as $$PageHeader, k as $$Base } from './_...slug_.astro.08ba5973.mjs';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
import 'html-escaper';
|
|
5
|
+
import '@astrojs/internal-helpers/path';
|
|
6
|
+
import '@cloudcommerce/api';
|
|
7
|
+
import 'node:events';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:path';
|
|
10
|
+
import '@cloudcommerce/config';
|
|
11
|
+
import '@ecomplus/utils';
|
|
12
|
+
import 'ultrahtml';
|
|
13
|
+
/* empty css */import 'image-size';
|
|
14
|
+
import 'mime';
|
|
15
|
+
import 'vue';
|
|
16
|
+
import '@vueuse/core';
|
|
17
|
+
import 'vue/server-renderer';
|
|
18
|
+
import '@headlessui/vue';
|
|
19
|
+
|
|
20
|
+
const $$Astro$1 = createAstro("https://ecom2-demo.web.app");
|
|
21
|
+
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
22
|
+
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
23
|
+
Astro2.self = $$Fallback;
|
|
24
|
+
return renderTemplate`${maybeRenderHead()}<main>
|
|
25
|
+
<h1>Error :/</h1>
|
|
26
|
+
<p class="instructions">
|
|
27
|
+
Check out the <code>src/pages</code> directory to get started.<br>
|
|
28
|
+
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
29
|
+
</p>
|
|
30
|
+
</main>`;
|
|
31
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro", void 0);
|
|
32
|
+
|
|
33
|
+
const $$Astro = createAstro("https://ecom2-demo.web.app");
|
|
34
|
+
const $$fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
35
|
+
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
36
|
+
Astro2.self = $$fallback;
|
|
37
|
+
let routeContext;
|
|
38
|
+
try {
|
|
39
|
+
routeContext = await loadRouteContext(Astro2);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
return err.astroResponse;
|
|
42
|
+
}
|
|
43
|
+
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
44
|
+
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
45
|
+
|
|
46
|
+
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
47
|
+
${renderComponent($$result2, "FallbackMain", $$Fallback, {})}
|
|
48
|
+
` })}
|
|
49
|
+
</html>`;
|
|
50
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro", void 0);
|
|
51
|
+
|
|
52
|
+
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro";
|
|
53
|
+
const $$url = "/~fallback";
|
|
54
|
+
|
|
55
|
+
export { $$fallback as default, $$file as file, $$url as url };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { A as AstroError, J as MissingSharp } from './astro.440a2e08.mjs';
|
|
2
|
+
import { m as baseService, n as parseQuality } from './pages/_...slug_.astro.08ba5973.mjs';
|
|
3
|
+
import 'clsx';
|
|
4
|
+
import 'html-escaper';
|
|
5
|
+
import '@astrojs/internal-helpers/path';
|
|
6
|
+
import '@cloudcommerce/api';
|
|
7
|
+
import 'node:events';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:path';
|
|
10
|
+
import '@cloudcommerce/config';
|
|
11
|
+
import '@ecomplus/utils';
|
|
12
|
+
import 'ultrahtml';
|
|
13
|
+
/* empty css */import 'image-size';
|
|
14
|
+
import 'mime';
|
|
15
|
+
import 'vue';
|
|
16
|
+
import '@vueuse/core';
|
|
17
|
+
import 'vue/server-renderer';
|
|
18
|
+
import '@headlessui/vue';
|
|
19
|
+
|
|
20
|
+
let sharp;
|
|
21
|
+
const qualityTable = {
|
|
22
|
+
low: 25,
|
|
23
|
+
mid: 50,
|
|
24
|
+
high: 80,
|
|
25
|
+
max: 100
|
|
26
|
+
};
|
|
27
|
+
async function loadSharp() {
|
|
28
|
+
let sharpImport;
|
|
29
|
+
try {
|
|
30
|
+
sharpImport = (await import('sharp')).default;
|
|
31
|
+
} catch (e) {
|
|
32
|
+
throw new AstroError(MissingSharp);
|
|
33
|
+
}
|
|
34
|
+
return sharpImport;
|
|
35
|
+
}
|
|
36
|
+
const sharpService = {
|
|
37
|
+
validateOptions: baseService.validateOptions,
|
|
38
|
+
getURL: baseService.getURL,
|
|
39
|
+
parseURL: baseService.parseURL,
|
|
40
|
+
getHTMLAttributes: baseService.getHTMLAttributes,
|
|
41
|
+
async transform(inputBuffer, transformOptions) {
|
|
42
|
+
if (!sharp)
|
|
43
|
+
sharp = await loadSharp();
|
|
44
|
+
const transform = transformOptions;
|
|
45
|
+
if (transform.format === "svg")
|
|
46
|
+
return { data: inputBuffer, format: "svg" };
|
|
47
|
+
let result = sharp(inputBuffer, { failOnError: false, pages: -1 });
|
|
48
|
+
result.rotate();
|
|
49
|
+
if (transform.height && !transform.width) {
|
|
50
|
+
result.resize({ height: transform.height });
|
|
51
|
+
} else if (transform.width) {
|
|
52
|
+
result.resize({ width: transform.width });
|
|
53
|
+
}
|
|
54
|
+
if (transform.format) {
|
|
55
|
+
let quality = void 0;
|
|
56
|
+
if (transform.quality) {
|
|
57
|
+
const parsedQuality = parseQuality(transform.quality);
|
|
58
|
+
if (typeof parsedQuality === "number") {
|
|
59
|
+
quality = parsedQuality;
|
|
60
|
+
} else {
|
|
61
|
+
quality = transform.quality in qualityTable ? qualityTable[transform.quality] : void 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
result.toFormat(transform.format, { quality });
|
|
65
|
+
}
|
|
66
|
+
const { data, info } = await result.toBuffer({ resolveWithObject: true });
|
|
67
|
+
return {
|
|
68
|
+
data,
|
|
69
|
+
format: info.format
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var sharp_default = sharpService;
|
|
74
|
+
|
|
75
|
+
export { sharp_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { renderers } from '../renderers.mjs';
|
|
2
|
+
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
+
import 'vue';
|
|
4
|
+
import 'vue/server-renderer';
|
|
5
|
+
import '@ecomplus/utils';
|
|
6
|
+
import './pages/_...slug_.astro.08ba5973.mjs';
|
|
7
|
+
import '@astrojs/internal-helpers/path';
|
|
8
|
+
import './astro.440a2e08.mjs';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import 'html-escaper';
|
|
11
|
+
import '@cloudcommerce/api';
|
|
12
|
+
import 'node:events';
|
|
13
|
+
import 'node:fs';
|
|
14
|
+
import 'node:path';
|
|
15
|
+
import '@cloudcommerce/config';
|
|
16
|
+
import 'ultrahtml';
|
|
17
|
+
/* empty css */import 'image-size';
|
|
18
|
+
import 'mime';
|
|
19
|
+
import '@vueuse/core';
|
|
20
|
+
import '@headlessui/vue';
|
|
21
|
+
|
|
22
|
+
const page = () => import('./pages/~fallback.astro.01594623.mjs');
|
|
23
|
+
|
|
24
|
+
export { page };
|