cloudcommerce 0.26.3 → 0.26.4
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 +13 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- 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 +6 -6
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +2 -2
- package/package.json +2 -2
- 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 +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/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 +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/astro.config.mjs +33 -23
- package/packages/storefront/dist/client/_astro/{Carousel.0b24e2cb.js → Carousel.9ad2e1dc.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.2731d333.js → CartSidebar.a6c6a885.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.a70b2582.js → HeroSlider.ee1e6200.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.13991988.js → PitchBar.6111676e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.cdfa346a.js → Prices.04ff8fce.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.619c56a5.js → ProductShelf.085721d6.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchModal.cffd4c2d.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.2c2fded7.js → ShopHeader.7e485e35.js} +2 -2
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.fc5e2f5b.js → _plugin-vue_export-helper.ee681fa8.js} +1 -1
- package/packages/storefront/dist/client/_astro/{api.39f40cd8.js → api.a2eda23e.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.e6d9439a.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.86f14860.js → format-money.923559cc.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.85fdcf03.js +1 -0
- package/packages/storefront/dist/client/_astro/{img.d4891d80.js → img.ec6ba316.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index.33801818.js → index.ea57babe.js} +1 -1
- package/packages/storefront/dist/client/_astro/{modules-info.ec412b24.js → modules-info.e5d77bf3.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{CartSidebar.cca9fdd3.mjs → CartSidebar.41b20543.mjs} +20 -9
- package/packages/storefront/dist/server/chunks/{SearchModal.a680efae.mjs → SearchModal.5f5e6a15.mjs} +19 -8
- package/packages/storefront/dist/server/chunks/_...4a2548d2.mjs +35 -0
- package/packages/storefront/dist/server/chunks/account@_@astro.204fba92.mjs +35 -0
- package/packages/storefront/dist/server/chunks/{astro.440a2e08.mjs → astro.708269c6.mjs} +1859 -149
- package/packages/storefront/dist/server/chunks/endpoint@_@js.11be892a.mjs +35 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.19e0f502.mjs +35 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.b37a6ac9.mjs +35 -0
- package/packages/storefront/dist/{client/chunks/pages/_...slug_.astro.ec6517ba.mjs → server/chunks/pages/_...slug_.astro.36e8882b.mjs} +273 -331
- package/packages/storefront/dist/{client/chunks/pages/account.astro.3d2605e6.mjs → server/chunks/pages/account.astro.32e7e6ef.mjs} +10 -2
- package/packages/storefront/dist/server/chunks/pages/endpoint.js.f7a896a1.mjs +119 -0
- package/packages/storefront/dist/server/chunks/pages/{index.astro.079f316a.mjs → index.astro.3145bd93.mjs} +2 -3
- package/packages/storefront/dist/server/chunks/pages/{~fallback.astro.01594623.mjs → ~fallback.astro.ba4c2475.mjs} +20 -9
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.6bb4c4b4.mjs +35 -0
- package/packages/storefront/dist/server/entry.mjs +2359 -1166
- package/packages/storefront/dist/server/renderers.mjs +21 -10
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -0
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +0 -2
- package/packages/storefront/dist/client/_astro/SearchModal.117a477d.js +0 -1
- package/packages/storefront/dist/client/_astro/client.a5d2898b.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.d90361ee.js +0 -1
- package/packages/storefront/dist/client/_empty-middleware.mjs +0 -3
- package/packages/storefront/dist/client/chunks/CartSidebar.0ce1e999.mjs +0 -382
- package/packages/storefront/dist/client/chunks/SearchModal.f603145b.mjs +0 -32
- package/packages/storefront/dist/client/chunks/astro.11be33ee.mjs +0 -1424
- package/packages/storefront/dist/client/chunks/pages/index.astro.8ad03206.mjs +0 -1650
- package/packages/storefront/dist/client/chunks/pages/~fallback.astro.d31d20b4.mjs +0 -54
- package/packages/storefront/dist/client/chunks/sharp.3f154e38.mjs +0 -74
- package/packages/storefront/dist/client/manifest.e39eb543.mjs +0 -79
- package/packages/storefront/dist/client/pages/_---slug_.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/app/account.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/app.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/index.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/~fallback.astro.mjs +0 -23
- package/packages/storefront/dist/client/registerSW.js +0 -1
- package/packages/storefront/dist/client/renderers.mjs +0 -369
- package/packages/storefront/dist/server/chunks/_...f7cdc954.mjs +0 -24
- package/packages/storefront/dist/server/chunks/account@_@astro.fa8b921b.mjs +0 -24
- package/packages/storefront/dist/server/chunks/image-endpoint@_@js.802bf648.mjs +0 -24
- package/packages/storefront/dist/server/chunks/index@_@astro.a122f091.mjs +0 -24
- package/packages/storefront/dist/server/chunks/index@_@astro.da98dcbe.mjs +0 -24
- package/packages/storefront/dist/server/chunks/pages/_...slug_.astro.08ba5973.mjs +0 -3930
- package/packages/storefront/dist/server/chunks/pages/account.astro.f11f26f3.mjs +0 -15
- package/packages/storefront/dist/server/chunks/pages/image-endpoint.js.a9374d3e.mjs +0 -238
- package/packages/storefront/dist/server/chunks/sharp.52841bb4.mjs +0 -75
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.876a97c5.mjs +0 -24
- package/packages/storefront/dist/server/manifest.12e7a10c.mjs +0 -561
- /package/packages/storefront/dist/client/{workbox-5e0bf4e4.js → workbox-1b331600.js} +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { c as createAstro, a as createComponent, r as renderTemplate } from '../astro.
|
|
2
|
-
import '
|
|
1
|
+
import { c as createAstro, a as createComponent, r as renderTemplate } from '../astro.708269c6.mjs';
|
|
2
|
+
import 'path-to-regexp';
|
|
3
|
+
import 'cookie';
|
|
4
|
+
import '@astrojs/internal-helpers/path';
|
|
5
|
+
import 'kleur/colors';
|
|
6
|
+
import 'node:fs';
|
|
7
|
+
import 'node:http';
|
|
8
|
+
import 'node:tls';
|
|
9
|
+
import 'mime';
|
|
10
|
+
import 'string-width';
|
|
3
11
|
import 'html-escaper';
|
|
4
12
|
|
|
5
13
|
const $$Astro = createAstro("https://ecom2-demo.web.app");
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import mime from 'mime';
|
|
2
|
+
import sharp$1 from 'sharp';
|
|
3
|
+
import { B as BaseSSRService, i as isOutputFormatSupportsAlpha } from './_...slug_.astro.36e8882b.mjs';
|
|
4
|
+
|
|
5
|
+
class SharpService extends BaseSSRService {
|
|
6
|
+
async transform(inputBuffer, transform) {
|
|
7
|
+
if (transform.format === "svg") {
|
|
8
|
+
return {
|
|
9
|
+
data: inputBuffer,
|
|
10
|
+
format: transform.format
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const sharpImage = sharp$1(inputBuffer, { failOnError: false, pages: -1 });
|
|
14
|
+
sharpImage.rotate();
|
|
15
|
+
if (transform.width || transform.height) {
|
|
16
|
+
const width = transform.width && Math.round(transform.width);
|
|
17
|
+
const height = transform.height && Math.round(transform.height);
|
|
18
|
+
sharpImage.resize({
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
fit: transform.fit,
|
|
22
|
+
position: transform.position,
|
|
23
|
+
background: transform.background
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
if (transform.format) {
|
|
27
|
+
sharpImage.toFormat(transform.format, { quality: transform.quality });
|
|
28
|
+
if (transform.background && !isOutputFormatSupportsAlpha(transform.format)) {
|
|
29
|
+
sharpImage.flatten({ background: transform.background });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const { data, info } = await sharpImage.toBuffer({ resolveWithObject: true });
|
|
33
|
+
return {
|
|
34
|
+
data,
|
|
35
|
+
format: info.format
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const service = new SharpService();
|
|
40
|
+
var sharp_default = service;
|
|
41
|
+
|
|
42
|
+
const sharp = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
43
|
+
__proto__: null,
|
|
44
|
+
default: sharp_default
|
|
45
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
46
|
+
|
|
47
|
+
const fnv1a52 = (str) => {
|
|
48
|
+
const len = str.length;
|
|
49
|
+
let i = 0, t0 = 0, v0 = 8997, t1 = 0, v1 = 33826, t2 = 0, v2 = 40164, t3 = 0, v3 = 52210;
|
|
50
|
+
while (i < len) {
|
|
51
|
+
v0 ^= str.charCodeAt(i++);
|
|
52
|
+
t0 = v0 * 435;
|
|
53
|
+
t1 = v1 * 435;
|
|
54
|
+
t2 = v2 * 435;
|
|
55
|
+
t3 = v3 * 435;
|
|
56
|
+
t2 += v0 << 8;
|
|
57
|
+
t3 += v1 << 8;
|
|
58
|
+
t1 += t0 >>> 16;
|
|
59
|
+
v0 = t0 & 65535;
|
|
60
|
+
t2 += t1 >>> 16;
|
|
61
|
+
v1 = t1 & 65535;
|
|
62
|
+
v3 = t3 + (t2 >>> 16) & 65535;
|
|
63
|
+
v2 = t2 & 65535;
|
|
64
|
+
}
|
|
65
|
+
return (v3 & 15) * 281474976710656 + v2 * 4294967296 + v1 * 65536 + (v0 ^ v3 >> 4);
|
|
66
|
+
};
|
|
67
|
+
const etag = (payload, weak = false) => {
|
|
68
|
+
const prefix = weak ? 'W/"' : '"';
|
|
69
|
+
return prefix + fnv1a52(payload).toString(36) + payload.length.toString(36) + '"';
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
function isRemoteImage(src) {
|
|
73
|
+
return /^(https?:)?\/\//.test(src);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function loadRemoteImage(src) {
|
|
77
|
+
try {
|
|
78
|
+
const res = await fetch(src);
|
|
79
|
+
if (!res.ok) {
|
|
80
|
+
return void 0;
|
|
81
|
+
}
|
|
82
|
+
return Buffer.from(await res.arrayBuffer());
|
|
83
|
+
} catch (err) {
|
|
84
|
+
console.error(err);
|
|
85
|
+
return void 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const get = async ({ request }) => {
|
|
89
|
+
try {
|
|
90
|
+
const url = new URL(request.url);
|
|
91
|
+
const transform = sharp_default.parseTransform(url.searchParams);
|
|
92
|
+
let inputBuffer = void 0;
|
|
93
|
+
const sourceUrl = isRemoteImage(transform.src) ? new URL(transform.src) : new URL(transform.src, url.origin);
|
|
94
|
+
inputBuffer = await loadRemoteImage(sourceUrl);
|
|
95
|
+
if (!inputBuffer) {
|
|
96
|
+
return new Response("Not Found", { status: 404 });
|
|
97
|
+
}
|
|
98
|
+
const { data, format } = await sharp_default.transform(inputBuffer, transform);
|
|
99
|
+
return new Response(data, {
|
|
100
|
+
status: 200,
|
|
101
|
+
headers: {
|
|
102
|
+
"Content-Type": mime.getType(format) || "",
|
|
103
|
+
"Cache-Control": "public, max-age=31536000",
|
|
104
|
+
ETag: etag(data.toString()),
|
|
105
|
+
Date: (/* @__PURE__ */ new Date()).toUTCString()
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
} catch (err) {
|
|
109
|
+
console.error(err);
|
|
110
|
+
return new Response(`Server Error: ${err}`, { status: 500 });
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const endpoint = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
115
|
+
__proto__: null,
|
|
116
|
+
get
|
|
117
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
118
|
+
|
|
119
|
+
export { endpoint as e, sharp as s };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { c as createAstro,
|
|
2
|
-
import { _ as _export_sfc, s as socialNetworks, S as SocialNetworkLink, u as useSharedData, f as filterMainCategories, $ as $$Picture, p as parseShippingPhrase, C as Carousel, a as CarouselControl, b as availableExtraDiscount, c as installmentsOption, d as discountOption, l as loyaltyPointsPrograms, e as addProductToCart, g as loadRouteContext, h as $$BaseHead, j as $$PageHeader, k as $$Base } from './_...slug_.astro.
|
|
3
|
-
import 'clsx';
|
|
1
|
+
import { c as createAstro, a as createComponent, r as renderTemplate, d as renderComponent, F as Fragment, m as maybeRenderHead, b as addAttribute, u as unescapeHTML } from '../astro.708269c6.mjs';
|
|
2
|
+
import { _ as _export_sfc, s as socialNetworks, S as SocialNetworkLink, u as useSharedData, f as filterMainCategories, $ as $$Picture, p as parseShippingPhrase, C as Carousel, a as CarouselControl, b as availableExtraDiscount, c as installmentsOption, d as discountOption, l as loyaltyPointsPrograms, e as addProductToCart, g as loadRouteContext, h as $$BaseHead, j as $$PageHeader, k as $$Base } from './_...slug_.astro.36e8882b.mjs';
|
|
4
3
|
import { useSSRContext, defineComponent, computed, mergeProps, createVNode, resolveDynamicComponent, resolveComponent, createSlots, withCtx, toDisplayString, createTextVNode, renderSlot, openBlock, createBlock, createCommentVNode, ref, shallowReactive, withDirectives, vShow, Fragment as Fragment$1, renderList, withModifiers, withAsyncContext } from 'vue';
|
|
5
4
|
import { ssrRenderAttrs, ssrInterpolate, ssrRenderVNode, ssrRenderSlot, ssrRenderList, ssrRenderComponent, ssrRenderClass, ssrRenderStyle, ssrRenderAttr } from 'vue/server-renderer';
|
|
6
5
|
import api from '@cloudcommerce/api';
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import { c as createAstro,
|
|
2
|
-
import { g as loadRouteContext, h as $$BaseHead, j as $$PageHeader, k as $$Base } from './_...slug_.astro.
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
1
|
+
import { c as createAstro, a as createComponent, r as renderTemplate, m as maybeRenderHead, b as addAttribute, d as renderComponent } from '../astro.708269c6.mjs';
|
|
2
|
+
import { g as loadRouteContext, h as $$BaseHead, j as $$PageHeader, k as $$Base } from './_...slug_.astro.36e8882b.mjs';
|
|
3
|
+
import 'path-to-regexp';
|
|
4
|
+
import 'cookie';
|
|
5
5
|
import '@astrojs/internal-helpers/path';
|
|
6
|
-
import '
|
|
7
|
-
import 'node:events';
|
|
6
|
+
import 'kleur/colors';
|
|
8
7
|
import 'node:fs';
|
|
8
|
+
import 'node:http';
|
|
9
|
+
import 'node:tls';
|
|
10
|
+
import 'mime';
|
|
11
|
+
import 'string-width';
|
|
12
|
+
import 'html-escaper';
|
|
13
|
+
import 'node:fs/promises';
|
|
9
14
|
import 'node:path';
|
|
15
|
+
import 'node:url';
|
|
16
|
+
import 'http-cache-semantics';
|
|
17
|
+
import 'node:os';
|
|
18
|
+
import 'image-size';
|
|
19
|
+
import 'magic-string';
|
|
20
|
+
import 'node:stream';
|
|
21
|
+
import '@cloudcommerce/api';
|
|
22
|
+
import 'node:events';
|
|
10
23
|
import '@cloudcommerce/config';
|
|
11
24
|
import '@ecomplus/utils';
|
|
12
25
|
import 'ultrahtml';
|
|
13
|
-
/* empty css */import '
|
|
14
|
-
import 'mime';
|
|
15
|
-
import 'vue';
|
|
26
|
+
/* empty css */import 'vue';
|
|
16
27
|
import '@vueuse/core';
|
|
17
28
|
import 'vue/server-renderer';
|
|
18
29
|
import '@headlessui/vue';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { renderers } from '../renderers.mjs';
|
|
2
|
+
export { onRequest } from '../_empty-middleware.mjs';
|
|
3
|
+
import './astro.708269c6.mjs';
|
|
4
|
+
import 'path-to-regexp';
|
|
5
|
+
import 'cookie';
|
|
6
|
+
import '@astrojs/internal-helpers/path';
|
|
7
|
+
import 'kleur/colors';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
import 'node:tls';
|
|
11
|
+
import 'mime';
|
|
12
|
+
import 'string-width';
|
|
13
|
+
import 'html-escaper';
|
|
14
|
+
import 'vue';
|
|
15
|
+
import 'vue/server-renderer';
|
|
16
|
+
import '@ecomplus/utils';
|
|
17
|
+
import './pages/_...slug_.astro.36e8882b.mjs';
|
|
18
|
+
import 'node:fs/promises';
|
|
19
|
+
import 'node:path';
|
|
20
|
+
import 'node:url';
|
|
21
|
+
import 'http-cache-semantics';
|
|
22
|
+
import 'node:os';
|
|
23
|
+
import 'image-size';
|
|
24
|
+
import 'magic-string';
|
|
25
|
+
import 'node:stream';
|
|
26
|
+
import '@cloudcommerce/api';
|
|
27
|
+
import 'node:events';
|
|
28
|
+
import '@cloudcommerce/config';
|
|
29
|
+
import 'ultrahtml';
|
|
30
|
+
/* empty css */import '@vueuse/core';
|
|
31
|
+
import '@headlessui/vue';
|
|
32
|
+
|
|
33
|
+
const page = () => import('./pages/~fallback.astro.ba4c2475.mjs');
|
|
34
|
+
|
|
35
|
+
export { page };
|