cloudcommerce 2.13.1 → 2.14.0
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/barradoce/conf/firebase.json +1 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/content/extra-pages/promocoes.md +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/components/AccountMenu.vue +18 -15
- package/ecomplus-stores/barradoce/functions/ssr/src/components/AccountPage.vue +5 -5
- package/ecomplus-stores/barradoce/functions/ssr/src/components/LoginForm.vue +16 -10
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ShopFooter.vue +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/src/pages/sitemap-[index].xml.astro +75 -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/pagaleve/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 +4 -6
- package/packages/cli/config/firebase.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/lib/firebase/render-catalog.js +272 -0
- package/packages/feeds/lib/firebase/render-catalog.js.map +1 -0
- package/packages/feeds/lib/firebase/render-sitemap.js +42 -0
- package/packages/feeds/lib/firebase/render-sitemap.js.map +1 -0
- package/packages/feeds/lib/firebase/serve-feeds.js +22 -270
- package/packages/feeds/lib/firebase/serve-feeds.js.map +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/feeds/src/firebase/render-catalog.ts +286 -0
- package/packages/feeds/src/firebase/render-sitemap.ts +46 -0
- package/packages/feeds/src/firebase/serve-feeds.ts +22 -283
- 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/dist/client/_astro/{AccountPage.Cf0WE6GF.js → AccountPage.CKu0oakN.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.DAvJKL2c.js → CartSidebar.Bxz7ZD9N.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductDetails.BpZtnS8j.js → ProductDetails.PkZr50hA.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.C0TU_sRb.js → ProductShelf.BKz6WXbp.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchModal.DWNSfxML.js → SearchModal.BIrixnFb.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.YMZqG8rj.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.BOLegIRO.js +7 -0
- package/packages/storefront/dist/client/_astro/{_slug_.HhgCFKHv.css → _slug_.oAbCb631.css} +1 -1
- package/packages/storefront/dist/client/_astro/customer-session.B9MvrBAQ.js +7 -0
- package/packages/storefront/dist/client/_astro/ecom-icon.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.CmI1zl7o.js → firebase-app.DPioxxma.js} +1 -1
- package/packages/storefront/dist/client/_astro/headphone.webp +0 -0
- package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
- package/packages/storefront/dist/client/_astro/{hoisted.BeKMioW4.js → hoisted.8Sq2YuJM.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.Bf1gCkSN.js → hoisted.BzVcl7We.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.-C0vLMXT.js → hoisted.CPcG9RpX.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index-a8cf6c8f.k99a-gIB.js → index-219c3cac.78peI8kt.js} +3 -3
- package/packages/storefront/dist/client/_astro/logo.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
- package/packages/storefront/dist/client/_astro/{shopping-cart.Cqc6p5UR.js → shopping-cart.D8fbm2Dv.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-analytics.bP3a5cR0.js → use-analytics.D_peWG3X.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-product-card.Cj9Q-Y1A.js → use-product-card.BCGHZKB5.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-text-value.DT0v9Yj_.js → use-text-value.BFLvKnYE.js} +1 -1
- package/packages/storefront/dist/client/assets/cvv.png +0 -0
- package/packages/storefront/dist/client/assets/payments.png +0 -0
- package/packages/storefront/dist/client/robots.txt +2 -0
- package/packages/storefront/dist/client/~fallback.html +112 -0
- package/packages/storefront/dist/client/~index.html +137 -0
- package/packages/storefront/dist/server/_astro-internal_middleware.mjs +2 -2
- package/packages/storefront/dist/server/chunks/404_BUZm2bP1.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_tmly-0ip.mjs → CartSidebar_kQSDOTj2.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{SearchModal_CGNQss2j.mjs → SearchModal_O1xTrm-9.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{_.._Bt6Uzpk2.mjs → _.._6Bd7O3FD.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_astro-internal_middleware_CqUpziyW.mjs → _astro-internal_middleware_BnKXd-Ev.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_page__Dz-iZHMh.mjs → _page__CXnal5Rn.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_tfs9KFTy.mjs → account_C6XTKIP9.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_DSoC_W52.mjs → assets-service_146xb0vN.mjs} +11 -67
- package/packages/storefront/dist/server/chunks/{astro_Cu3MZ9xv.mjs → astro_DIU6qHCh.mjs} +34 -79
- package/packages/storefront/dist/server/chunks/{index_CGzMgZTN.mjs → index_EbDDnIXs.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{index_BKS_40rA.mjs → index_STpvD2cy.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_lZaNT3E1.mjs → node_DHQVZgH_.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{404_CMwuVMu1.mjs → 404_n3mvoSWv.mjs} +94 -1140
- package/packages/storefront/dist/server/chunks/pages/{__Dz53F-0T.mjs → __C9Nd4c7_.mjs} +11 -42
- package/packages/storefront/dist/server/chunks/pages/{_page__C1x19nYF.mjs → _page__BnXBvVvn.mjs} +4 -20
- package/packages/storefront/dist/server/chunks/pages/account_Dk-8R3rY.mjs +22 -0
- package/packages/storefront/dist/server/chunks/pages/{index_CqvjdvSg.mjs → index_us3QX6kE.mjs} +5 -22
- package/packages/storefront/dist/server/chunks/pages/node_BGdGQ52C.mjs +1864 -0
- package/packages/storefront/dist/server/chunks/pages/sitemap-_index__rcX10oKd.mjs +32 -0
- package/packages/storefront/dist/server/chunks/pages/~fallback_BNfV6ECv.mjs +22 -0
- package/packages/storefront/dist/server/chunks/sitemap-_index__e6mToVZH.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{~fallback_CrFe__-f.mjs → ~fallback_Cg1Pbe1d.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +18 -17
- package/packages/storefront/dist/server/images.dist.csv +37 -0
- package/packages/storefront/dist/server/images.src.csv +13 -0
- package/packages/storefront/dist/server/manifest_xBcEm6Np.mjs +206 -0
- package/packages/storefront/dist/server/middleware.mjs +2 -2
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/dist/server/static-builds.csv +80 -0
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/scripts/build-prod.sh +17 -0
- package/packages/storefront/src/lib/components/AccountLink.vue +16 -11
- package/packages/storefront/src/lib/components/globals/Skeleton.vue +6 -4
- package/packages/storefront/src/lib/composables/use-login-form.ts +6 -1
- package/packages/storefront/src/lib/scripts/vbeta-app.ts +11 -2
- package/packages/storefront/src/lib/state/customer-session.ts +8 -1
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.CUkbXIRk.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.D7qqQxFD.js +0 -7
- package/packages/storefront/dist/client/_astro/customer-session.Cctko5_9.js +0 -7
- package/packages/storefront/dist/client/assets/.gitkeep +0 -2
- package/packages/storefront/dist/server/chunks/404_BcY_5eJJ.mjs +0 -5
- package/packages/storefront/dist/server/chunks/pages/account_B5Z6wDBy.mjs +0 -32
- package/packages/storefront/dist/server/chunks/pages/node_mvX6Tssv.mjs +0 -879
- package/packages/storefront/dist/server/chunks/pages/~fallback_D2ugBVgc.mjs +0 -32
- package/packages/storefront/dist/server/manifest_D4v8KX-D.mjs +0 -206
|
@@ -221,12 +221,6 @@ const AstroGlobNoMatch = {
|
|
|
221
221
|
message: (globStr) => `\`Astro.glob(${globStr})\` did not return any matching files.`,
|
|
222
222
|
hint: "Check the pattern for typos."
|
|
223
223
|
};
|
|
224
|
-
const MissingSharp = {
|
|
225
|
-
name: "MissingSharp",
|
|
226
|
-
title: "Could not find Sharp.",
|
|
227
|
-
message: "Could not find Sharp. Please install Sharp (`sharp`) manually into your project or migrate to another image service.",
|
|
228
|
-
hint: "See Sharp's installation instructions for more information: https://sharp.pixelplumbing.com/install. If you are not relying on `astro:assets` to optimize, transform, or process any images, you can configure a passthrough image service instead of installing Sharp. See https://docs.astro.build/en/reference/errors/missing-sharp for more information.\n\nSee https://docs.astro.build/en/guides/images/#default-image-service for more information on how to migrate to another image service."
|
|
229
|
-
};
|
|
230
224
|
|
|
231
225
|
function normalizeLF(code) {
|
|
232
226
|
return code.replace(/\r\n|\r(?!\n)|\n/g, "\n");
|
|
@@ -301,7 +295,7 @@ class AstroError extends Error {
|
|
|
301
295
|
}
|
|
302
296
|
}
|
|
303
297
|
|
|
304
|
-
const ASTRO_VERSION = "4.5.
|
|
298
|
+
const ASTRO_VERSION = "4.5.10";
|
|
305
299
|
const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
|
|
306
300
|
const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
|
|
307
301
|
const DEFAULT_404_COMPONENT = "astro-default-404";
|
|
@@ -938,37 +932,25 @@ function renderElement$1(name, { props: _props, children = "" }, shouldEscape =
|
|
|
938
932
|
}
|
|
939
933
|
return `<${name}${internalSpreadAttributes(props, shouldEscape)}>${children}</${name}>`;
|
|
940
934
|
}
|
|
941
|
-
const noop = () => {
|
|
942
|
-
};
|
|
943
|
-
class BufferedRenderer {
|
|
944
|
-
chunks = [];
|
|
945
|
-
renderPromise;
|
|
946
|
-
destination;
|
|
947
|
-
constructor(bufferRenderFunction) {
|
|
948
|
-
this.renderPromise = bufferRenderFunction(this);
|
|
949
|
-
Promise.resolve(this.renderPromise).catch(noop);
|
|
950
|
-
}
|
|
951
|
-
write(chunk) {
|
|
952
|
-
if (this.destination) {
|
|
953
|
-
this.destination.write(chunk);
|
|
954
|
-
} else {
|
|
955
|
-
this.chunks.push(chunk);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
async renderToFinalDestination(destination) {
|
|
959
|
-
for (const chunk of this.chunks) {
|
|
960
|
-
destination.write(chunk);
|
|
961
|
-
}
|
|
962
|
-
this.destination = destination;
|
|
963
|
-
await this.renderPromise;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
935
|
function renderToBufferDestination(bufferRenderFunction) {
|
|
967
|
-
const
|
|
968
|
-
|
|
936
|
+
const bufferChunks = [];
|
|
937
|
+
const bufferDestination = {
|
|
938
|
+
write: (chunk) => bufferChunks.push(chunk)
|
|
939
|
+
};
|
|
940
|
+
const renderPromise = bufferRenderFunction(bufferDestination);
|
|
941
|
+
Promise.resolve(renderPromise).catch(() => {
|
|
942
|
+
});
|
|
943
|
+
return {
|
|
944
|
+
async renderToFinalDestination(destination) {
|
|
945
|
+
for (const chunk of bufferChunks) {
|
|
946
|
+
destination.write(chunk);
|
|
947
|
+
}
|
|
948
|
+
bufferDestination.write = (chunk) => destination.write(chunk);
|
|
949
|
+
await renderPromise;
|
|
950
|
+
}
|
|
951
|
+
};
|
|
969
952
|
}
|
|
970
953
|
const isNode = typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]";
|
|
971
|
-
const isDeno = typeof Deno !== "undefined";
|
|
972
954
|
function promiseWithResolvers() {
|
|
973
955
|
let resolve, reject;
|
|
974
956
|
const promise = new Promise((_resolve, _reject) => {
|
|
@@ -1168,9 +1150,7 @@ function isRenderInstance(obj) {
|
|
|
1168
1150
|
}
|
|
1169
1151
|
|
|
1170
1152
|
async function renderChild(destination, child) {
|
|
1171
|
-
|
|
1172
|
-
child = await child;
|
|
1173
|
-
}
|
|
1153
|
+
child = await child;
|
|
1174
1154
|
if (child instanceof SlotString) {
|
|
1175
1155
|
destination.write(child);
|
|
1176
1156
|
} else if (isHTMLString(child)) {
|
|
@@ -1539,7 +1519,6 @@ function getHTMLElementName(constructor) {
|
|
|
1539
1519
|
|
|
1540
1520
|
const needsHeadRenderingSymbol = Symbol.for("astro.needsHeadRendering");
|
|
1541
1521
|
const rendererAliases = /* @__PURE__ */ new Map([["solid", "solid-js"]]);
|
|
1542
|
-
const clientOnlyValues = /* @__PURE__ */ new Set(["solid-js", "react", "preact", "vue", "svelte", "lit"]);
|
|
1543
1522
|
function guessRenderers(componentUrl) {
|
|
1544
1523
|
const extname = componentUrl?.split(".").pop();
|
|
1545
1524
|
switch (extname) {
|
|
@@ -1574,7 +1553,7 @@ function removeStaticAstroSlot(html, supportsAstroStaticSlot = true) {
|
|
|
1574
1553
|
return html.replace(exp, "");
|
|
1575
1554
|
}
|
|
1576
1555
|
async function renderFrameworkComponent(result, displayName, Component, _props, slots = {}) {
|
|
1577
|
-
if (!Component && "client:only"
|
|
1556
|
+
if (!Component && !_props["client:only"]) {
|
|
1578
1557
|
throw new Error(
|
|
1579
1558
|
`Unable to render ${displayName} because it is ${Component}!
|
|
1580
1559
|
Did you forget to import the component or is it possible there is a typo?`
|
|
@@ -1642,12 +1621,11 @@ Did you forget to import the component or is it possible there is a typo?`
|
|
|
1642
1621
|
}
|
|
1643
1622
|
} else {
|
|
1644
1623
|
if (metadata.hydrateArgs) {
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
}
|
|
1624
|
+
const passedName = metadata.hydrateArgs;
|
|
1625
|
+
const rendererName = rendererAliases.has(passedName) ? rendererAliases.get(passedName) : passedName;
|
|
1626
|
+
renderer = renderers.find(
|
|
1627
|
+
({ name }) => name === `@astrojs/${rendererName}` || name === rendererName
|
|
1628
|
+
);
|
|
1651
1629
|
}
|
|
1652
1630
|
if (!renderer && validRenderers.length === 1) {
|
|
1653
1631
|
renderer = validRenderers[0];
|
|
@@ -1662,30 +1640,13 @@ Did you forget to import the component or is it possible there is a typo?`
|
|
|
1662
1640
|
let componentServerRenderEndTime;
|
|
1663
1641
|
if (!renderer) {
|
|
1664
1642
|
if (metadata.hydrate === "only") {
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
metadata?.componentUrl?.split(".").pop(),
|
|
1673
|
-
plural,
|
|
1674
|
-
validRenderers.length
|
|
1675
|
-
),
|
|
1676
|
-
hint: NoMatchingRenderer.hint(
|
|
1677
|
-
formatList(probableRendererNames.map((r) => "`" + r + "`"))
|
|
1678
|
-
)
|
|
1679
|
-
});
|
|
1680
|
-
} else {
|
|
1681
|
-
throw new AstroError({
|
|
1682
|
-
...NoClientOnlyHint,
|
|
1683
|
-
message: NoClientOnlyHint.message(metadata.displayName),
|
|
1684
|
-
hint: NoClientOnlyHint.hint(
|
|
1685
|
-
probableRendererNames.map((r) => r.replace("@astrojs/", "")).join("|")
|
|
1686
|
-
)
|
|
1687
|
-
});
|
|
1688
|
-
}
|
|
1643
|
+
throw new AstroError({
|
|
1644
|
+
...NoClientOnlyHint,
|
|
1645
|
+
message: NoClientOnlyHint.message(metadata.displayName),
|
|
1646
|
+
hint: NoClientOnlyHint.hint(
|
|
1647
|
+
probableRendererNames.map((r) => r.replace("@astrojs/", "")).join("|")
|
|
1648
|
+
)
|
|
1649
|
+
});
|
|
1689
1650
|
} else if (typeof Component !== "string") {
|
|
1690
1651
|
const matchingRenderers = validRenderers.filter(
|
|
1691
1652
|
(r) => probableRendererNames.includes(r.name)
|
|
@@ -1729,12 +1690,6 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
|
|
1729
1690
|
}
|
|
1730
1691
|
} else {
|
|
1731
1692
|
if (metadata.hydrate === "only") {
|
|
1732
|
-
const rendererName = rendererAliases.has(metadata.hydrateArgs) ? rendererAliases.get(metadata.hydrateArgs) : metadata.hydrateArgs;
|
|
1733
|
-
if (!clientOnlyValues.has(rendererName)) {
|
|
1734
|
-
console.warn(
|
|
1735
|
-
`The client:only directive for ${metadata.displayName} is not recognized. The renderer ${renderer.name} will be used. If you intended to use a different renderer, please provide a valid client:only directive.`
|
|
1736
|
-
);
|
|
1737
|
-
}
|
|
1738
1693
|
html = await renderSlotToString(result, slots?.fallback);
|
|
1739
1694
|
} else {
|
|
1740
1695
|
const componentRenderStartTime = performance.now();
|
|
@@ -2051,7 +2006,7 @@ Did you forget to import the component or is it possible there is a typo?`);
|
|
|
2051
2006
|
};
|
|
2052
2007
|
extractSlots2(children);
|
|
2053
2008
|
for (const [key, value] of Object.entries(props)) {
|
|
2054
|
-
if (value
|
|
2009
|
+
if (value["$$slot"]) {
|
|
2055
2010
|
_slots[key] = value;
|
|
2056
2011
|
delete props[key];
|
|
2057
2012
|
}
|
|
@@ -2130,7 +2085,7 @@ async function renderPage(result, componentFactory, props, children, streaming,
|
|
|
2130
2085
|
result._metadata.headInTree = result.componentMetadata.get(componentFactory.moduleId)?.containsHead ?? false;
|
|
2131
2086
|
let body;
|
|
2132
2087
|
if (streaming) {
|
|
2133
|
-
if (isNode
|
|
2088
|
+
if (isNode) {
|
|
2134
2089
|
const nodeBody = await renderToAsyncIterable(
|
|
2135
2090
|
result,
|
|
2136
2091
|
componentFactory,
|
|
@@ -2181,4 +2136,4 @@ function spreadAttributes(values = {}, _name, { class: scopedClassName } = {}) {
|
|
|
2181
2136
|
return markHTMLString(output);
|
|
2182
2137
|
}
|
|
2183
2138
|
|
|
2184
|
-
export { AstroError as A,
|
|
2139
|
+
export { AstroError as A, renderJSX as B, chunkToString as C, DEFAULT_404_COMPONENT as D, ExpectedImage as E, Fragment as F, GetStaticPathsRequired as G, LocalsNotAnObject as H, IncompatibleDescriptorOptions as I, clientLocalsSymbol as J, clientAddressSymbol as K, LocalImageUsedWrongly as L, MissingImageDimension as M, NoMatchingStaticPathFound as N, ClientAddressNotAvailable as O, PageNumberParamNotFound as P, ASTRO_VERSION as Q, ResponseSentError as R, StaticClientAddressNotAvailable as S, responseSentSymbol as T, UnsupportedImageFormat as U, AstroResponseHeadersReassigned as V, renderPage as W, renderEndpoint as X, REROUTABLE_STATUS_CODES as Y, UnsupportedImageConversion as a, createComponent as b, createAstro as c, addAttribute as d, renderSlotToString as e, renderAllHeadContent as f, renderSlot as g, renderComponent as h, ExpectedImageOptions as i, FailedToFetchRemoteImageDimensions as j, InvalidImageService as k, ImageMissingAlt as l, maybeRenderHead as m, MiddlewareNoDataOrNextCalled as n, MiddlewareNotAResponse as o, ROUTE_TYPE_HEADER as p, REROUTE_DIRECTIVE_HEADER as q, renderTemplate as r, spreadAttributes as s, InvalidGetStaticPathsReturn as t, unescapeHTML as u, InvalidGetStaticPathsEntry as v, GetStaticPathsExpectedParams as w, GetStaticPathsInvalidRouteParam as x, PrerenderDynamicEndpointPathCollide as y, ReservedSlotName as z };
|