@sonordev/site-kit 5.0.0 → 5.1.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/agent-manifest.json +8 -5
- package/dist/AnalyticsProvider-2LCSA6G3.mjs +10 -0
- package/dist/{AnalyticsProvider-KCLRFOX6.mjs.map → AnalyticsProvider-2LCSA6G3.mjs.map} +1 -1
- package/dist/AnalyticsProvider-V2U3TQMH.js +31 -0
- package/dist/{AnalyticsProvider-TXM3DRLI.js.map → AnalyticsProvider-V2U3TQMH.js.map} +1 -1
- package/dist/{BlogViewTracker-J6LRGUHU.js → BlogViewTracker-COTPD7WL.js} +6 -6
- package/dist/{BlogViewTracker-J6LRGUHU.js.map → BlogViewTracker-COTPD7WL.js.map} +1 -1
- package/dist/{BlogViewTracker-PZWAWB3O.mjs → BlogViewTracker-HG25ONRP.mjs} +5 -5
- package/dist/{BlogViewTracker-PZWAWB3O.mjs.map → BlogViewTracker-HG25ONRP.mjs.map} +1 -1
- package/dist/ChatWidget-4QUJYFXU.js +20 -0
- package/dist/{ChatWidget-LD54Z2PQ.js.map → ChatWidget-4QUJYFXU.js.map} +1 -1
- package/dist/ChatWidget-RWO7R7EJ.mjs +11 -0
- package/dist/{ChatWidget-PMDPSZXG.mjs.map → ChatWidget-RWO7R7EJ.mjs.map} +1 -1
- package/dist/EngageWidget-LF4AC4QN.mjs +9 -0
- package/dist/{EngageWidget-4CBFRN4Y.mjs.map → EngageWidget-LF4AC4QN.mjs.map} +1 -1
- package/dist/EngageWidget-RSOXB3YM.js +18 -0
- package/dist/{EngageWidget-BF5NMQ5A.js.map → EngageWidget-RSOXB3YM.js.map} +1 -1
- package/dist/{FileField-VXADIOMN.js → FileField-S2GUM3QB.js} +6 -6
- package/dist/{FileField-VXADIOMN.js.map → FileField-S2GUM3QB.js.map} +1 -1
- package/dist/{FileField-FFRHS3XP.mjs → FileField-YJ7DZXC3.mjs} +5 -5
- package/dist/{FileField-FFRHS3XP.mjs.map → FileField-YJ7DZXC3.mjs.map} +1 -1
- package/dist/{FormSpotlight-JG4ZHS56.js → FormSpotlight-7WAXLXZA.js} +15 -15
- package/dist/{FormSpotlight-JG4ZHS56.js.map → FormSpotlight-7WAXLXZA.js.map} +1 -1
- package/dist/{FormSpotlight-KE46EDP5.mjs → FormSpotlight-HLH5LQKI.mjs} +3 -3
- package/dist/{FormSpotlight-KE46EDP5.mjs.map → FormSpotlight-HLH5LQKI.mjs.map} +1 -1
- package/dist/{FormStage-5Z53Z2WY.js → FormStage-LEZYERJB.js} +13 -13
- package/dist/{FormStage-5Z53Z2WY.js.map → FormStage-LEZYERJB.js.map} +1 -1
- package/dist/{FormStage-PZKWEXZE.mjs → FormStage-Q5JW75AF.mjs} +3 -3
- package/dist/{FormStage-PZKWEXZE.mjs.map → FormStage-Q5JW75AF.mjs.map} +1 -1
- package/dist/ManagedForm-H4SEFSAF.js +23 -0
- package/dist/{ManagedForm-E4WHMARH.js.map → ManagedForm-H4SEFSAF.js.map} +1 -1
- package/dist/ManagedForm-U3NFIVEC.mjs +14 -0
- package/dist/{ManagedForm-VU2TKV6J.mjs.map → ManagedForm-U3NFIVEC.mjs.map} +1 -1
- package/dist/{ManagedNewsletterForm-PG4EX3W6.js → ManagedNewsletterForm-KT2NGUNW.js} +8 -8
- package/dist/{ManagedNewsletterForm-PG4EX3W6.js.map → ManagedNewsletterForm-KT2NGUNW.js.map} +1 -1
- package/dist/{ManagedNewsletterForm-6DET3VGZ.mjs → ManagedNewsletterForm-YKYW7B6P.mjs} +7 -7
- package/dist/{ManagedNewsletterForm-6DET3VGZ.mjs.map → ManagedNewsletterForm-YKYW7B6P.mjs.map} +1 -1
- package/dist/{SignalCore-RZVTLUC2.mjs → SignalCore-2BH5PUGS.mjs} +5 -5
- package/dist/{SignalCore-RZVTLUC2.mjs.map → SignalCore-2BH5PUGS.mjs.map} +1 -1
- package/dist/{SignalCore-TCUVXVMN.js → SignalCore-JM4ODFL2.js} +11 -11
- package/dist/{SignalCore-TCUVXVMN.js.map → SignalCore-JM4ODFL2.js.map} +1 -1
- package/dist/SitemapSync-5CXS2JGB.mjs +8 -0
- package/dist/{SitemapSync-T75NAFB3.mjs.map → SitemapSync-5CXS2JGB.mjs.map} +1 -1
- package/dist/SitemapSync-J4UMJRTO.js +17 -0
- package/dist/{SitemapSync-AJU4DM3G.js.map → SitemapSync-J4UMJRTO.js.map} +1 -1
- package/dist/analytics/index.js +9 -9
- package/dist/analytics/index.mjs +4 -4
- package/dist/blog/index.d.ts +9 -5
- package/dist/blog/index.d.ts.map +1 -1
- package/dist/blog/index.js +20 -20
- package/dist/blog/index.mjs +3 -3
- package/dist/blog/server-ui.js +14 -14
- package/dist/blog/server-ui.mjs +2 -2
- package/dist/{chunk-6QQFEJIP.js → chunk-2EJX56YJ.js} +8 -8
- package/dist/{chunk-6QQFEJIP.js.map → chunk-2EJX56YJ.js.map} +1 -1
- package/dist/{chunk-SXPINIJG.mjs → chunk-2XHEUWHV.mjs} +4 -4
- package/dist/{chunk-SXPINIJG.mjs.map → chunk-2XHEUWHV.mjs.map} +1 -1
- package/dist/{chunk-7T4VMXKD.js → chunk-44ZTBQH4.js} +3 -3
- package/dist/{chunk-7T4VMXKD.js.map → chunk-44ZTBQH4.js.map} +1 -1
- package/dist/chunk-4SQ6PROR.mjs +6 -0
- package/dist/{chunk-JPTJGLKS.mjs.map → chunk-4SQ6PROR.mjs.map} +1 -1
- package/dist/{chunk-PPCTL4B5.mjs → chunk-4TU246Q4.mjs} +10 -3
- package/dist/chunk-4TU246Q4.mjs.map +1 -0
- package/dist/{chunk-YSZB2DRX.mjs → chunk-5G2ZRQMO.mjs} +3 -3
- package/dist/{chunk-YSZB2DRX.mjs.map → chunk-5G2ZRQMO.mjs.map} +1 -1
- package/dist/{chunk-FTBABL3T.mjs → chunk-5W56B52Z.mjs} +3 -3
- package/dist/{chunk-FTBABL3T.mjs.map → chunk-5W56B52Z.mjs.map} +1 -1
- package/dist/{chunk-XPAHKYX7.mjs → chunk-6YKNDQYJ.mjs} +3 -3
- package/dist/{chunk-XPAHKYX7.mjs.map → chunk-6YKNDQYJ.mjs.map} +1 -1
- package/dist/{chunk-UV6KQUSL.mjs → chunk-A3VGZAZQ.mjs} +3 -3
- package/dist/{chunk-UV6KQUSL.mjs.map → chunk-A3VGZAZQ.mjs.map} +1 -1
- package/dist/{chunk-JY3KZDEM.js → chunk-ACLBRIYD.js} +3 -3
- package/dist/{chunk-JY3KZDEM.js.map → chunk-ACLBRIYD.js.map} +1 -1
- package/dist/{chunk-MGPHBVOK.js → chunk-ACWGG4VW.js} +9 -9
- package/dist/{chunk-MGPHBVOK.js.map → chunk-ACWGG4VW.js.map} +1 -1
- package/dist/{chunk-J4JXAFSW.mjs → chunk-ADBLBGCQ.mjs} +3 -3
- package/dist/{chunk-J4JXAFSW.mjs.map → chunk-ADBLBGCQ.mjs.map} +1 -1
- package/dist/{chunk-4UHO6DPJ.mjs → chunk-ADOGOLYO.mjs} +4 -4
- package/dist/{chunk-4UHO6DPJ.mjs.map → chunk-ADOGOLYO.mjs.map} +1 -1
- package/dist/{chunk-IX5RAZWX.js → chunk-BGBJSMXT.js} +6 -6
- package/dist/{chunk-IX5RAZWX.js.map → chunk-BGBJSMXT.js.map} +1 -1
- package/dist/{chunk-YVE65W47.mjs → chunk-BUDV7QHH.mjs} +4 -4
- package/dist/{chunk-YVE65W47.mjs.map → chunk-BUDV7QHH.mjs.map} +1 -1
- package/dist/{chunk-3SMG4EXR.mjs → chunk-BVLGJ2CZ.mjs} +3 -3
- package/dist/{chunk-3SMG4EXR.mjs.map → chunk-BVLGJ2CZ.mjs.map} +1 -1
- package/dist/{chunk-OGPS3DKE.js → chunk-CBMHJPR7.js} +5 -5
- package/dist/{chunk-OGPS3DKE.js.map → chunk-CBMHJPR7.js.map} +1 -1
- package/dist/{chunk-VACFVPNF.js → chunk-CGQO7MFO.js} +14 -14
- package/dist/{chunk-VACFVPNF.js.map → chunk-CGQO7MFO.js.map} +1 -1
- package/dist/{chunk-FQ3JQV3M.js → chunk-CKPFETIO.js} +4 -4
- package/dist/{chunk-FQ3JQV3M.js.map → chunk-CKPFETIO.js.map} +1 -1
- package/dist/{chunk-MVJQ4ZA2.mjs → chunk-CYQB5GLU.mjs} +4 -4
- package/dist/{chunk-MVJQ4ZA2.mjs.map → chunk-CYQB5GLU.mjs.map} +1 -1
- package/dist/{chunk-GCZMDY2T.js → chunk-DKRXPXOR.js} +3 -3
- package/dist/{chunk-GCZMDY2T.js.map → chunk-DKRXPXOR.js.map} +1 -1
- package/dist/{chunk-PZE5L2FK.mjs → chunk-DTNNZJYM.mjs} +4 -4
- package/dist/{chunk-PZE5L2FK.mjs.map → chunk-DTNNZJYM.mjs.map} +1 -1
- package/dist/{chunk-HCN2US4M.js → chunk-E3GHVAMK.js} +18 -18
- package/dist/{chunk-HCN2US4M.js.map → chunk-E3GHVAMK.js.map} +1 -1
- package/dist/{chunk-5JNLZRLX.mjs → chunk-EKTMXHBI.mjs} +3 -3
- package/dist/{chunk-5JNLZRLX.mjs.map → chunk-EKTMXHBI.mjs.map} +1 -1
- package/dist/{chunk-LLKXPJSE.js → chunk-EZLK2OQL.js} +7 -7
- package/dist/{chunk-LLKXPJSE.js.map → chunk-EZLK2OQL.js.map} +1 -1
- package/dist/{chunk-BQY3FJ3R.js → chunk-FMOOQKZU.js} +8 -8
- package/dist/{chunk-BQY3FJ3R.js.map → chunk-FMOOQKZU.js.map} +1 -1
- package/dist/{chunk-QI2H5KK6.mjs → chunk-FZISCIJV.mjs} +4 -4
- package/dist/{chunk-QI2H5KK6.mjs.map → chunk-FZISCIJV.mjs.map} +1 -1
- package/dist/{chunk-62ODUWUX.js → chunk-GYAH4KFC.js} +4 -4
- package/dist/{chunk-62ODUWUX.js.map → chunk-GYAH4KFC.js.map} +1 -1
- package/dist/{chunk-JIUVBSQZ.js → chunk-GZVSGQKT.js} +3 -3
- package/dist/{chunk-JIUVBSQZ.js.map → chunk-GZVSGQKT.js.map} +1 -1
- package/dist/{chunk-3FZ76VI5.js → chunk-HPIY7AR3.js} +14 -14
- package/dist/{chunk-3FZ76VI5.js.map → chunk-HPIY7AR3.js.map} +1 -1
- package/dist/{chunk-5OHHYGD6.js → chunk-IQLYFQKZ.js} +15 -15
- package/dist/{chunk-5OHHYGD6.js.map → chunk-IQLYFQKZ.js.map} +1 -1
- package/dist/{chunk-DX6D7HDI.js → chunk-JEI3CSY4.js} +4 -4
- package/dist/{chunk-DX6D7HDI.js.map → chunk-JEI3CSY4.js.map} +1 -1
- package/dist/{chunk-LZY374FB.js → chunk-MCXHQHIX.js} +4 -4
- package/dist/{chunk-LZY374FB.js.map → chunk-MCXHQHIX.js.map} +1 -1
- package/dist/{chunk-FCKL5CF3.mjs → chunk-NIJVVW4G.mjs} +3 -3
- package/dist/{chunk-FCKL5CF3.mjs.map → chunk-NIJVVW4G.mjs.map} +1 -1
- package/dist/{chunk-YGRHEEPX.mjs → chunk-NSTY7ZZA.mjs} +7 -7
- package/dist/{chunk-YGRHEEPX.mjs.map → chunk-NSTY7ZZA.mjs.map} +1 -1
- package/dist/{chunk-HEUCDF3O.mjs → chunk-OAJVITNO.mjs} +3 -3
- package/dist/{chunk-HEUCDF3O.mjs.map → chunk-OAJVITNO.mjs.map} +1 -1
- package/dist/{chunk-SW6KWUNI.mjs → chunk-OTHKWMDB.mjs} +3 -3
- package/dist/{chunk-SW6KWUNI.mjs.map → chunk-OTHKWMDB.mjs.map} +1 -1
- package/dist/{chunk-EISVUD75.mjs → chunk-ROJ25QM3.mjs} +3 -3
- package/dist/{chunk-EISVUD75.mjs.map → chunk-ROJ25QM3.mjs.map} +1 -1
- package/dist/{chunk-FDWDXMJL.mjs → chunk-SXNKLHOX.mjs} +3 -3
- package/dist/{chunk-FDWDXMJL.mjs.map → chunk-SXNKLHOX.mjs.map} +1 -1
- package/dist/{chunk-MPO6TRLS.js → chunk-TAM2D54C.js} +14 -14
- package/dist/{chunk-MPO6TRLS.js.map → chunk-TAM2D54C.js.map} +1 -1
- package/dist/{chunk-MWXBRCM2.mjs → chunk-TECD4AP7.mjs} +3 -3
- package/dist/{chunk-MWXBRCM2.mjs.map → chunk-TECD4AP7.mjs.map} +1 -1
- package/dist/{chunk-AXYKBQVI.mjs → chunk-UMWVTIIZ.mjs} +8 -8
- package/dist/{chunk-AXYKBQVI.mjs.map → chunk-UMWVTIIZ.mjs.map} +1 -1
- package/dist/{chunk-5JQLLF2T.js → chunk-VCNPTLK2.js} +12 -12
- package/dist/{chunk-5JQLLF2T.js.map → chunk-VCNPTLK2.js.map} +1 -1
- package/dist/{chunk-4D2G5ZNP.js → chunk-VIIGOCX4.js} +15 -15
- package/dist/{chunk-4D2G5ZNP.js.map → chunk-VIIGOCX4.js.map} +1 -1
- package/dist/{chunk-QH3WVTEK.mjs → chunk-VWVUYL5J.mjs} +4 -4
- package/dist/{chunk-QH3WVTEK.mjs.map → chunk-VWVUYL5J.mjs.map} +1 -1
- package/dist/{chunk-KWH6RAVY.js → chunk-WMNRTCYY.js} +11 -11
- package/dist/{chunk-KWH6RAVY.js.map → chunk-WMNRTCYY.js.map} +1 -1
- package/dist/{chunk-N3RWPAR5.js → chunk-WZMM57R2.js} +5 -5
- package/dist/{chunk-N3RWPAR5.js.map → chunk-WZMM57R2.js.map} +1 -1
- package/dist/chunk-YPEX4RDE.js +8 -0
- package/dist/{chunk-S65JSRWW.js.map → chunk-YPEX4RDE.js.map} +1 -1
- package/dist/{chunk-UABMMR7U.js → chunk-Z33JXJTJ.js} +10 -3
- package/dist/chunk-Z33JXJTJ.js.map +1 -0
- package/dist/{chunk-UFURXSAI.mjs → chunk-ZFZMN4LT.mjs} +3 -3
- package/dist/{chunk-UFURXSAI.mjs.map → chunk-ZFZMN4LT.mjs.map} +1 -1
- package/dist/cli/index.js +3 -3
- package/dist/cli/index.mjs +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/commerce/index.js +56 -56
- package/dist/commerce/index.mjs +5 -5
- package/dist/commerce/server-result.test.d.ts +2 -0
- package/dist/commerce/server-result.test.d.ts.map +1 -0
- package/dist/commerce/server.d.ts +51 -0
- package/dist/commerce/server.d.ts.map +1 -1
- package/dist/commerce/server.js +57 -24
- package/dist/commerce/server.js.map +1 -1
- package/dist/commerce/server.mjs +54 -25
- package/dist/commerce/server.mjs.map +1 -1
- package/dist/engage/index.js +10 -10
- package/dist/engage/index.mjs +7 -7
- package/dist/fleet/index.js +8 -8
- package/dist/fleet/index.mjs +4 -4
- package/dist/forms/index.js +16 -16
- package/dist/forms/index.mjs +9 -9
- package/dist/forms/server.js +10 -10
- package/dist/forms/server.mjs +8 -8
- package/dist/forms/static.js +7 -7
- package/dist/forms/static.mjs +6 -6
- package/dist/images/index.js +11 -11
- package/dist/images/index.mjs +4 -4
- package/dist/index.js +63 -63
- package/dist/index.mjs +9 -9
- package/dist/layout/client.js +8 -8
- package/dist/layout/client.mjs +7 -7
- package/dist/layout/index.js +10 -10
- package/dist/layout/index.mjs +8 -8
- package/dist/llms/generateLLMsTxt.d.ts.map +1 -1
- package/dist/llms/humanize-industry.d.ts +9 -0
- package/dist/llms/humanize-industry.d.ts.map +1 -0
- package/dist/llms/humanize-industry.test.d.ts +2 -0
- package/dist/llms/humanize-industry.test.d.ts.map +1 -0
- package/dist/llms/index.js +12 -12
- package/dist/llms/index.mjs +2 -2
- package/dist/maps/index.js +5 -5
- package/dist/maps/index.mjs +3 -3
- package/dist/search/index.js +4 -4
- package/dist/search/index.mjs +3 -3
- package/dist/seo/client.js +5 -5
- package/dist/seo/client.mjs +4 -4
- package/dist/seo/index.js +5 -5
- package/dist/seo/index.mjs +4 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/shared/version.d.ts +1 -1
- package/dist/signal/index.js +11 -11
- package/dist/signal/index.mjs +2 -2
- package/dist/sitemap/index.js +2 -2
- package/dist/sitemap/index.mjs +1 -1
- package/dist/sync/index.js +16 -16
- package/dist/sync/index.mjs +4 -4
- package/package.json +1 -1
- package/dist/AnalyticsProvider-KCLRFOX6.mjs +0 -10
- package/dist/AnalyticsProvider-TXM3DRLI.js +0 -31
- package/dist/ChatWidget-LD54Z2PQ.js +0 -20
- package/dist/ChatWidget-PMDPSZXG.mjs +0 -11
- package/dist/EngageWidget-4CBFRN4Y.mjs +0 -9
- package/dist/EngageWidget-BF5NMQ5A.js +0 -18
- package/dist/ManagedForm-E4WHMARH.js +0 -23
- package/dist/ManagedForm-VU2TKV6J.mjs +0 -14
- package/dist/SitemapSync-AJU4DM3G.js +0 -17
- package/dist/SitemapSync-T75NAFB3.mjs +0 -8
- package/dist/chunk-JPTJGLKS.mjs +0 -6
- package/dist/chunk-PPCTL4B5.mjs.map +0 -1
- package/dist/chunk-S65JSRWW.js +0 -8
- package/dist/chunk-UABMMR7U.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var chunkI7AZC5ZQ_js = require('../chunk-I7AZC5ZQ.js');
|
|
|
6
6
|
var chunk6CJP7BFM_js = require('../chunk-6CJP7BFM.js');
|
|
7
7
|
var chunkNN2YE5WT_js = require('../chunk-NN2YE5WT.js');
|
|
8
8
|
var chunkLOS5D6B3_js = require('../chunk-LOS5D6B3.js');
|
|
9
|
-
var
|
|
9
|
+
var chunkYPEX4RDE_js = require('../chunk-YPEX4RDE.js');
|
|
10
10
|
var chunkSNAQBZPT_js = require('../chunk-SNAQBZPT.js');
|
|
11
11
|
var events = require('events');
|
|
12
12
|
var childProcess = require('child_process');
|
|
@@ -13543,7 +13543,7 @@ function buildEnvelope(input, nowMs = Date.now()) {
|
|
|
13543
13543
|
ok: exitCode === 0 /* OK */,
|
|
13544
13544
|
command,
|
|
13545
13545
|
schemaVersion: 1,
|
|
13546
|
-
siteKitVersion:
|
|
13546
|
+
siteKitVersion: chunkYPEX4RDE_js.SITE_KIT_VERSION,
|
|
13547
13547
|
exitCode,
|
|
13548
13548
|
status: statusForCode(exitCode),
|
|
13549
13549
|
summary,
|
|
@@ -32420,7 +32420,7 @@ async function geoCommand(options) {
|
|
|
32420
32420
|
(0, import_dotenv.config)({ path: ".env.local", quiet: true });
|
|
32421
32421
|
(0, import_dotenv.config)({ path: ".env", quiet: true });
|
|
32422
32422
|
var program2 = new Command();
|
|
32423
|
-
program2.name("sonor-setup").description("Setup + verification toolchain for @sonordev/site-kit").version(
|
|
32423
|
+
program2.name("sonor-setup").description("Setup + verification toolchain for @sonordev/site-kit").version(chunkYPEX4RDE_js.SITE_KIT_VERSION);
|
|
32424
32424
|
withAgentFlags(
|
|
32425
32425
|
program2.command("verify").description("Verify the integration actually works (health + key + SSR) \u2014 exit 0 = done").option("--url <url>", "Verify a running/deployed URL server-renders (recommended for agents)").option("--offline", "Skip the network key-validity ping").option("--strict", "Treat warnings as failures")
|
|
32426
32426
|
).action(verifyCommand);
|
package/dist/cli/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { parse } from '../chunk-5YA6SI4Z.mjs';
|
|
|
4
4
|
import { buildOgHtml, TITLE_MAX_PX, OG_REPORT_ATTR } from '../chunk-UJ6CHZAI.mjs';
|
|
5
5
|
import { require_main } from '../chunk-NNZDWY3L.mjs';
|
|
6
6
|
import { findAppDirForDiscovery, discoverNextJsRoutes } from '../chunk-XIJ4F6IE.mjs';
|
|
7
|
-
import { SITE_KIT_VERSION } from '../chunk-
|
|
7
|
+
import { SITE_KIT_VERSION } from '../chunk-4SQ6PROR.mjs';
|
|
8
8
|
import { __commonJS, __require, __toESM, __export, __privateAdd, __publicField, __privateGet, __privateMethod, __privateSet, __privateWrapper } from '../chunk-BEXTDHO4.mjs';
|
|
9
9
|
import { EventEmitter } from 'events';
|
|
10
10
|
import childProcess, { execFile as execFile$1, execSync, spawnSync, spawn } from 'child_process';
|
package/dist/client/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkWZMM57R2_js = require('../chunk-WZMM57R2.js');
|
|
5
5
|
require('../chunk-OZ3FU4BT.js');
|
|
6
6
|
require('../chunk-SWIKKSKL.js');
|
|
7
7
|
var chunkHGNSJXWT_js = require('../chunk-HGNSJXWT.js');
|
|
8
8
|
var chunkHMFFAUCD_js = require('../chunk-HMFFAUCD.js');
|
|
9
9
|
var chunkRC4WWQXR_js = require('../chunk-RC4WWQXR.js');
|
|
10
10
|
require('../chunk-VJMPIRSD.js');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-CKPFETIO.js');
|
|
12
|
+
require('../chunk-YPEX4RDE.js');
|
|
13
13
|
require('../chunk-SNAQBZPT.js');
|
|
14
14
|
|
|
15
15
|
// src/client/SiteKitCredential.tsx
|
|
@@ -19,7 +19,7 @@ function SiteKitCredential({
|
|
|
19
19
|
site,
|
|
20
20
|
debug
|
|
21
21
|
}) {
|
|
22
|
-
|
|
22
|
+
chunkWZMM57R2_js.publishSiteCredential({ apiKey, apiUrl, site, debug });
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { publishSiteCredential } from '../chunk-
|
|
2
|
+
import { publishSiteCredential } from '../chunk-ROJ25QM3.mjs';
|
|
3
3
|
import '../chunk-GZJE23Y5.mjs';
|
|
4
4
|
import '../chunk-ZN4HBK5C.mjs';
|
|
5
5
|
export { useDeferredActivation } from '../chunk-ZVBLXXNJ.mjs';
|
|
6
6
|
export { trackConversion, trackEvent } from '../chunk-3DPXOZAU.mjs';
|
|
7
7
|
export { getOrCreateSessionId, getOrCreateVisitorId, useSiteKitIdentity } from '../chunk-ZZQAGCSI.mjs';
|
|
8
8
|
import '../chunk-6EDVCUAG.mjs';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-SXNKLHOX.mjs';
|
|
10
|
+
import '../chunk-4SQ6PROR.mjs';
|
|
11
11
|
import '../chunk-BEXTDHO4.mjs';
|
|
12
12
|
|
|
13
13
|
// src/client/SiteKitCredential.tsx
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,222 +1,222 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkTAM2D54C_js = require('../chunk-TAM2D54C.js');
|
|
5
5
|
require('../chunk-EDZWNCSE.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-HPIY7AR3.js');
|
|
7
7
|
require('../chunk-HMFFAUCD.js');
|
|
8
8
|
require('../chunk-RC4WWQXR.js');
|
|
9
9
|
require('../chunk-VJMPIRSD.js');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-VIIGOCX4.js');
|
|
11
|
+
require('../chunk-CKPFETIO.js');
|
|
12
|
+
require('../chunk-YPEX4RDE.js');
|
|
13
13
|
require('../chunk-SNAQBZPT.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "CalendarView", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkTAM2D54C_js.CalendarView; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "CapacityBadge", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkTAM2D54C_js.CapacityBadge; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTAM2D54C_js.CheckoutForm; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "EventCalendar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkTAM2D54C_js.EventCalendar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "EventCheckout", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkTAM2D54C_js.EventCheckout; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "EventEmbed", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkTAM2D54C_js.EventEmbed; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "EventJsonLd", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkTAM2D54C_js.EventJsonLd; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "EventModal", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkTAM2D54C_js.EventModal; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "EventTile", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkTAM2D54C_js.EventTile; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "EventsAgenda", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkTAM2D54C_js.EventsAgenda; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "EventsWidget", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkTAM2D54C_js.EventsWidget; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "OfferingCard", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkTAM2D54C_js.OfferingCard; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "OfferingList", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkTAM2D54C_js.OfferingList; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "ProductDetail", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkTAM2D54C_js.ProductDetail; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkTAM2D54C_js.ProductEmbed; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "ProductGrid", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkTAM2D54C_js.ProductGrid; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "ProductPage", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkTAM2D54C_js.ProductPage; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkTAM2D54C_js.RegistrationForm; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "SizeChart", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkTAM2D54C_js.SizeChart; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkTAM2D54C_js.UpcomingEvents; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkTAM2D54C_js.createCheckoutSession; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "createPaymentIntent", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkTAM2D54C_js.createPaymentIntent; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkTAM2D54C_js.fetchActiveProcessor; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "fetchCategories", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkTAM2D54C_js.fetchCategories; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkTAM2D54C_js.fetchLatestOffering; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkTAM2D54C_js.fetchNextEvent; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "fetchOffering", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkTAM2D54C_js.fetchOffering; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkTAM2D54C_js.fetchOfferings; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "fetchProcessorConfig", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkTAM2D54C_js.fetchProcessorConfig; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkTAM2D54C_js.fetchProductBySlug; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "fetchProducts", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkTAM2D54C_js.fetchProducts; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkTAM2D54C_js.fetchProductsPublic; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "fetchServices", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkTAM2D54C_js.fetchServices; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "fetchShippingRates", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkTAM2D54C_js.fetchShippingRates; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkTAM2D54C_js.fetchUpcomingEvents; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "formatDate", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkTAM2D54C_js.formatDate; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "formatDateRange", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkTAM2D54C_js.formatDateRange; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "formatDateTime", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkTAM2D54C_js.formatDateTime; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "formatPrice", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkTAM2D54C_js.formatPrice; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "formatTime", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkTAM2D54C_js.formatTime; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkTAM2D54C_js.getOfferingUrl; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkTAM2D54C_js.getRelativeTimeUntil; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkTAM2D54C_js.getSpotsRemaining; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "googleCalendarUrl", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkTAM2D54C_js.googleCalendarUrl; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "icsForEvent", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkTAM2D54C_js.icsForEvent; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "icsResponse", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkTAM2D54C_js.icsResponse; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkTAM2D54C_js.isEventSoldOut; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "registerForEvent", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkTAM2D54C_js.registerForEvent; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "useEventModal", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkTAM2D54C_js.useEventModal; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "validateAddress", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkTAM2D54C_js.validateAddress; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "validateDiscountCode", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkTAM2D54C_js.validateDiscountCode; }
|
|
220
220
|
});
|
|
221
221
|
//# sourceMappingURL=index.js.map
|
|
222
222
|
//# sourceMappingURL=index.js.map
|
package/dist/commerce/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { CalendarView, CapacityBadge, CheckoutForm, EventCalendar, EventCheckout, EventEmbed, EventJsonLd, EventModal, EventTile, EventsAgenda, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, googleCalendarUrl, icsForEvent, icsResponse, isEventSoldOut, registerForEvent, useEventModal, validateAddress, validateDiscountCode } from '../chunk-
|
|
2
|
+
export { CalendarView, CapacityBadge, CheckoutForm, EventCalendar, EventCheckout, EventEmbed, EventJsonLd, EventModal, EventTile, EventsAgenda, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, googleCalendarUrl, icsForEvent, icsResponse, isEventSoldOut, registerForEvent, useEventModal, validateAddress, validateDiscountCode } from '../chunk-CYQB5GLU.mjs';
|
|
3
3
|
import '../chunk-26JXNW7B.mjs';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-OAJVITNO.mjs';
|
|
5
5
|
import '../chunk-3DPXOZAU.mjs';
|
|
6
6
|
import '../chunk-ZZQAGCSI.mjs';
|
|
7
7
|
import '../chunk-6EDVCUAG.mjs';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-ADOGOLYO.mjs';
|
|
9
|
+
import '../chunk-SXNKLHOX.mjs';
|
|
10
|
+
import '../chunk-4SQ6PROR.mjs';
|
|
11
11
|
import '../chunk-BEXTDHO4.mjs';
|
|
12
12
|
//# sourceMappingURL=index.mjs.map
|
|
13
13
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-result.test.d.ts","sourceRoot":"","sources":["../../src/commerce/server-result.test.ts"],"names":[],"mappings":""}
|
|
@@ -12,6 +12,24 @@ interface ServerConfig {
|
|
|
12
12
|
apiKey: string;
|
|
13
13
|
projectId: string;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Outcome of a server-side fetch.
|
|
17
|
+
*
|
|
18
|
+
* `ok` is the entire point. A helper that returns an empty array on failure lets
|
|
19
|
+
* the calling page state a business fact it does not know: "no upcoming events",
|
|
20
|
+
* "no products available" — when the truth is only that the API was unreachable.
|
|
21
|
+
* QCR's /public-cruises told customers the business had no cruises during a
|
|
22
|
+
* transient failure while three were on sale (2026-08-27).
|
|
23
|
+
*
|
|
24
|
+
* Branch on `ok` in new code. The legacy helpers returning a bare array or null
|
|
25
|
+
* are kept for compatibility, but they cannot express this difference — an empty
|
|
26
|
+
* result from them is indistinguishable from an outage.
|
|
27
|
+
*/
|
|
28
|
+
export interface ServerResult<T> {
|
|
29
|
+
/** false = the request failed. `ok: true` with empty data means genuinely empty. */
|
|
30
|
+
ok: boolean;
|
|
31
|
+
data: T;
|
|
32
|
+
}
|
|
15
33
|
/**
|
|
16
34
|
* Get all product slugs for static generation
|
|
17
35
|
*
|
|
@@ -53,6 +71,12 @@ export declare function getOfferingPaths(config: ServerConfig, type?: OfferingTy
|
|
|
53
71
|
* }
|
|
54
72
|
*/
|
|
55
73
|
export declare function getOfferingBySlug(config: ServerConfig, slug: string): Promise<CommerceOffering | null>;
|
|
74
|
+
/**
|
|
75
|
+
* As getOfferingBySlug, but distinguishes "no such offering" (ok: true, null)
|
|
76
|
+
* from "could not reach the API" (ok: false, null). Use this before rendering a
|
|
77
|
+
* 404 — a notFound() on a transient failure de-indexes a page that exists.
|
|
78
|
+
*/
|
|
79
|
+
export declare function getOfferingBySlugResult(config: ServerConfig, slug: string): Promise<ServerResult<CommerceOffering | null>>;
|
|
56
80
|
/**
|
|
57
81
|
* Fetch all offerings of a type (server-side)
|
|
58
82
|
*/
|
|
@@ -62,6 +86,16 @@ export declare function getOfferings(config: ServerConfig, options?: {
|
|
|
62
86
|
limit?: number;
|
|
63
87
|
status?: string;
|
|
64
88
|
}): Promise<CommerceOffering[]>;
|
|
89
|
+
/**
|
|
90
|
+
* As getOfferings, but distinguishes an empty catalogue from a failed request.
|
|
91
|
+
* Branch on `ok` before rendering "nothing available" copy.
|
|
92
|
+
*/
|
|
93
|
+
export declare function getOfferingsResult(config: ServerConfig, options?: {
|
|
94
|
+
type?: OfferingType | OfferingType[];
|
|
95
|
+
category?: string;
|
|
96
|
+
limit?: number;
|
|
97
|
+
status?: string;
|
|
98
|
+
}): Promise<ServerResult<CommerceOffering[]>>;
|
|
65
99
|
/**
|
|
66
100
|
* Fetch upcoming events (server-side), WITH schedules and category embedded.
|
|
67
101
|
*
|
|
@@ -76,10 +110,27 @@ export declare function getUpcomingEvents(config: ServerConfig, options?: {
|
|
|
76
110
|
limit?: number;
|
|
77
111
|
category?: string;
|
|
78
112
|
}): Promise<CommerceOffering[]>;
|
|
113
|
+
/**
|
|
114
|
+
* As getUpcomingEvents, but tells you whether the list is empty because there is
|
|
115
|
+
* nothing scheduled or because the API could not be reached.
|
|
116
|
+
*
|
|
117
|
+
* ALWAYS prefer this when the UI renders copy like "no upcoming events". Doing
|
|
118
|
+
* otherwise is what put "No public cruises currently on the schedule" in front
|
|
119
|
+
* of QCR's customers while three cruises were on sale — and, because the page
|
|
120
|
+
* was statically revalidated, cached that claim for the whole revalidate window.
|
|
121
|
+
*/
|
|
122
|
+
export declare function getUpcomingEventsResult(config: ServerConfig, options?: {
|
|
123
|
+
limit?: number;
|
|
124
|
+
category?: string;
|
|
125
|
+
}): Promise<ServerResult<CommerceOffering[]>>;
|
|
79
126
|
/**
|
|
80
127
|
* Get next upcoming event (server-side)
|
|
81
128
|
*/
|
|
82
129
|
export declare function getNextEvent(config: ServerConfig, category?: string): Promise<CommerceOffering | null>;
|
|
130
|
+
/**
|
|
131
|
+
* As getNextEvent, but distinguishes "nothing scheduled" from "fetch failed".
|
|
132
|
+
*/
|
|
133
|
+
export declare function getNextEventResult(config: ServerConfig, category?: string): Promise<ServerResult<CommerceOffering | null>>;
|
|
83
134
|
/**
|
|
84
135
|
* Generate page metadata for an offering
|
|
85
136
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commerce/server.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE7D,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commerce/server.ts"],"names":[],"mappings":"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"}
|