@sonordev/site-kit 6.1.1 → 6.1.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/agent-manifest.json +1 -1
- package/dist/{AnalyticsProvider-5G5AFHZN.js → AnalyticsProvider-QK6XBDEJ.js} +10 -10
- package/dist/{AnalyticsProvider-5G5AFHZN.js.map → AnalyticsProvider-QK6XBDEJ.js.map} +1 -1
- package/dist/{AnalyticsProvider-33L4E6LO.mjs → AnalyticsProvider-TIJWTISP.mjs} +6 -6
- package/dist/{AnalyticsProvider-33L4E6LO.mjs.map → AnalyticsProvider-TIJWTISP.mjs.map} +1 -1
- package/dist/{ArticleViewTracker-U2KFUSZF.js → ArticleViewTracker-ALE672ZR.js} +6 -6
- package/dist/{ArticleViewTracker-U2KFUSZF.js.map → ArticleViewTracker-ALE672ZR.js.map} +1 -1
- package/dist/{ArticleViewTracker-VZRMPK4S.mjs → ArticleViewTracker-I66RBWDK.mjs} +5 -5
- package/dist/{ArticleViewTracker-VZRMPK4S.mjs.map → ArticleViewTracker-I66RBWDK.mjs.map} +1 -1
- package/dist/ChatWidget-566CQUN6.js +26 -0
- package/dist/{ChatWidget-RUCQMCMN.js.map → ChatWidget-566CQUN6.js.map} +1 -1
- package/dist/ChatWidget-LNOY4TUZ.mjs +17 -0
- package/dist/{ChatWidget-LH3QZYKR.mjs.map → ChatWidget-LNOY4TUZ.mjs.map} +1 -1
- package/dist/EngageWidget-DF47YUHQ.js +21 -0
- package/dist/{EngageWidget-X2CBW7DV.js.map → EngageWidget-DF47YUHQ.js.map} +1 -1
- package/dist/EngageWidget-IGF7SC3R.mjs +12 -0
- package/dist/{EngageWidget-34BQXU7K.mjs.map → EngageWidget-IGF7SC3R.mjs.map} +1 -1
- package/dist/{FileField-REUU36RJ.mjs → FileField-AG63W2BC.mjs} +5 -5
- package/dist/{FileField-REUU36RJ.mjs.map → FileField-AG63W2BC.mjs.map} +1 -1
- package/dist/{FileField-2MMV53BG.js → FileField-IK6E5IOC.js} +6 -6
- package/dist/{FileField-2MMV53BG.js.map → FileField-IK6E5IOC.js.map} +1 -1
- package/dist/{FormSpotlight-Y27TPQ4G.js → FormSpotlight-6MUDJWW5.js} +9 -9
- package/dist/{FormSpotlight-Y27TPQ4G.js.map → FormSpotlight-6MUDJWW5.js.map} +1 -1
- package/dist/{FormSpotlight-ZV3IS66K.mjs → FormSpotlight-H7V4GBXG.mjs} +3 -3
- package/dist/{FormSpotlight-ZV3IS66K.mjs.map → FormSpotlight-H7V4GBXG.mjs.map} +1 -1
- package/dist/{FormStage-6NUGCDJR.mjs → FormStage-ACETL7SD.mjs} +3 -3
- package/dist/{FormStage-6NUGCDJR.mjs.map → FormStage-ACETL7SD.mjs.map} +1 -1
- package/dist/{FormStage-K7Z6IEPM.js → FormStage-ZXZRZ2LS.js} +9 -9
- package/dist/{FormStage-K7Z6IEPM.js.map → FormStage-ZXZRZ2LS.js.map} +1 -1
- package/dist/ManagedForm-4U54NPW2.js +25 -0
- package/dist/{ManagedForm-O67ILXN7.js.map → ManagedForm-4U54NPW2.js.map} +1 -1
- package/dist/ManagedForm-MOBWSG4D.mjs +16 -0
- package/dist/{ManagedForm-EUDKMS5G.mjs.map → ManagedForm-MOBWSG4D.mjs.map} +1 -1
- package/dist/{ManagedNewsletterForm-QBJODAIA.js → ManagedNewsletterForm-5LBGBE2F.js} +8 -8
- package/dist/{ManagedNewsletterForm-QBJODAIA.js.map → ManagedNewsletterForm-5LBGBE2F.js.map} +1 -1
- package/dist/{ManagedNewsletterForm-IGWTZW7X.mjs → ManagedNewsletterForm-OV3OEMUP.mjs} +7 -7
- package/dist/{ManagedNewsletterForm-IGWTZW7X.mjs.map → ManagedNewsletterForm-OV3OEMUP.mjs.map} +1 -1
- package/dist/{SignalCore-KQDRH44V.js → SignalCore-QCVR7TZV.js} +11 -11
- package/dist/{SignalCore-KQDRH44V.js.map → SignalCore-QCVR7TZV.js.map} +1 -1
- package/dist/{SignalCore-UR4KVU5X.mjs → SignalCore-XM2MHEGR.mjs} +5 -5
- package/dist/{SignalCore-UR4KVU5X.mjs.map → SignalCore-XM2MHEGR.mjs.map} +1 -1
- package/dist/SitemapSync-74EVNOFQ.mjs +9 -0
- package/dist/{SitemapSync-QYV3X5LH.mjs.map → SitemapSync-74EVNOFQ.mjs.map} +1 -1
- package/dist/SitemapSync-BQFZAE3X.js +18 -0
- package/dist/{SitemapSync-DQALPBTR.js.map → SitemapSync-BQFZAE3X.js.map} +1 -1
- package/dist/analytics/index.js +9 -9
- package/dist/analytics/index.mjs +4 -4
- package/dist/articles/index.js +1 -1
- package/dist/articles/index.mjs +1 -1
- package/dist/articles/server-ui.js +1 -1
- package/dist/articles/server-ui.mjs +1 -1
- package/dist/brand/extract-brand-profile.d.ts +2 -7
- package/dist/brand/extract-brand-profile.d.ts.map +1 -1
- package/dist/{chunk-WWJQGMMN.js → chunk-2SLA2LOD.js} +12 -12
- package/dist/{chunk-WWJQGMMN.js.map → chunk-2SLA2LOD.js.map} +1 -1
- package/dist/{chunk-7PCXI25T.mjs → chunk-3MLVI5DH.mjs} +3 -3
- package/dist/{chunk-7PCXI25T.mjs.map → chunk-3MLVI5DH.mjs.map} +1 -1
- package/dist/{chunk-U3SQBAUQ.mjs → chunk-3RISRHOK.mjs} +8 -8
- package/dist/{chunk-U3SQBAUQ.mjs.map → chunk-3RISRHOK.mjs.map} +1 -1
- package/dist/chunk-5FBALULE.mjs +6 -0
- package/dist/{chunk-HQWPCX3N.mjs.map → chunk-5FBALULE.mjs.map} +1 -1
- package/dist/{chunk-22KPMJIQ.mjs → chunk-5IQOPL7T.mjs} +3 -3
- package/dist/{chunk-22KPMJIQ.mjs.map → chunk-5IQOPL7T.mjs.map} +1 -1
- package/dist/{chunk-D6VMDDQR.js → chunk-5OUOVPXC.js} +8 -8
- package/dist/{chunk-D6VMDDQR.js.map → chunk-5OUOVPXC.js.map} +1 -1
- package/dist/{chunk-YZMI7QQ2.mjs → chunk-6FIIA6ME.mjs} +4 -4
- package/dist/{chunk-YZMI7QQ2.mjs.map → chunk-6FIIA6ME.mjs.map} +1 -1
- package/dist/{chunk-JOYMIGR2.mjs → chunk-7K6L33BX.mjs} +22 -22
- package/dist/{chunk-7IM7VG4E.js → chunk-7VRK3DWU.js} +6 -6
- package/dist/{chunk-7IM7VG4E.js.map → chunk-7VRK3DWU.js.map} +1 -1
- package/dist/{chunk-Y4A4G5XJ.js → chunk-AGEE4CGH.js} +5 -5
- package/dist/{chunk-Y4A4G5XJ.js.map → chunk-AGEE4CGH.js.map} +1 -1
- package/dist/{chunk-JS75ORH7.js → chunk-ATPQ6264.js} +24 -24
- package/dist/{chunk-IPGIFBRN.js → chunk-BGBP4UN4.js} +4 -4
- package/dist/{chunk-IPGIFBRN.js.map → chunk-BGBP4UN4.js.map} +1 -1
- package/dist/{chunk-6ZMEJSNX.mjs → chunk-CI7T4ZRP.mjs} +4 -4
- package/dist/{chunk-6ZMEJSNX.mjs.map → chunk-CI7T4ZRP.mjs.map} +1 -1
- package/dist/{chunk-BRED7YSL.js → chunk-CTAYH725.js} +11 -11
- package/dist/{chunk-BRED7YSL.js.map → chunk-CTAYH725.js.map} +1 -1
- package/dist/{chunk-DGWFHL35.mjs → chunk-D5KKVWZK.mjs} +3 -3
- package/dist/{chunk-DGWFHL35.mjs.map → chunk-D5KKVWZK.mjs.map} +1 -1
- package/dist/{chunk-U577PJLH.mjs → chunk-DVZ4BMXX.mjs} +7 -7
- package/dist/{chunk-U577PJLH.mjs.map → chunk-DVZ4BMXX.mjs.map} +1 -1
- package/dist/{chunk-OP42HO3Z.mjs → chunk-ESPOINPT.mjs} +3 -3
- package/dist/{chunk-OP42HO3Z.mjs.map → chunk-ESPOINPT.mjs.map} +1 -1
- package/dist/{chunk-VPZUQXZV.mjs → chunk-EVETX2XF.mjs} +4 -4
- package/dist/{chunk-VPZUQXZV.mjs.map → chunk-EVETX2XF.mjs.map} +1 -1
- package/dist/{chunk-6K3YRSYN.js → chunk-EVKP4SOM.js} +10 -10
- package/dist/{chunk-6K3YRSYN.js.map → chunk-EVKP4SOM.js.map} +1 -1
- package/dist/{chunk-R2BHRDPZ.mjs → chunk-EXVHO3CZ.mjs} +3 -3
- package/dist/{chunk-R2BHRDPZ.mjs.map → chunk-EXVHO3CZ.mjs.map} +1 -1
- package/dist/{chunk-YCA4KCRF.mjs → chunk-GYKFHQSZ.mjs} +3 -3
- package/dist/{chunk-YCA4KCRF.mjs.map → chunk-GYKFHQSZ.mjs.map} +1 -1
- package/dist/{chunk-U2DWXE2A.mjs → chunk-I4PUQYBI.mjs} +3 -3
- package/dist/{chunk-U2DWXE2A.mjs.map → chunk-I4PUQYBI.mjs.map} +1 -1
- package/dist/{chunk-46GMNQWN.js → chunk-I7KIVKVW.js} +3 -3
- package/dist/{chunk-46GMNQWN.js.map → chunk-I7KIVKVW.js.map} +1 -1
- package/dist/{chunk-GZLMMX76.mjs → chunk-IUNFAKOS.mjs} +3 -3
- package/dist/{chunk-GZLMMX76.mjs.map → chunk-IUNFAKOS.mjs.map} +1 -1
- package/dist/{chunk-VNJTU6LG.js → chunk-IWHAJBYL.js} +15 -15
- package/dist/{chunk-VNJTU6LG.js.map → chunk-IWHAJBYL.js.map} +1 -1
- package/dist/{chunk-EF7QCYLF.js → chunk-IZRVSIOK.js} +4 -4
- package/dist/{chunk-EF7QCYLF.js.map → chunk-IZRVSIOK.js.map} +1 -1
- package/dist/{chunk-NJSD5QY6.js → chunk-JAA42HR7.js} +7 -7
- package/dist/{chunk-NJSD5QY6.js.map → chunk-JAA42HR7.js.map} +1 -1
- package/dist/{chunk-HH5EMIXK.js → chunk-JSM4AYSZ.js} +14 -14
- package/dist/{chunk-HH5EMIXK.js.map → chunk-JSM4AYSZ.js.map} +1 -1
- package/dist/{chunk-NK7ZWPAO.js → chunk-KDLN2MR5.js} +18 -18
- package/dist/{chunk-NK7ZWPAO.js.map → chunk-KDLN2MR5.js.map} +1 -1
- package/dist/{chunk-ME5636V6.js → chunk-KEEZX6Q4.js} +3 -3
- package/dist/{chunk-ME5636V6.js.map → chunk-KEEZX6Q4.js.map} +1 -1
- package/dist/{chunk-AG7MWWGP.mjs → chunk-LXBPTKYT.mjs} +4 -4
- package/dist/{chunk-AG7MWWGP.mjs.map → chunk-LXBPTKYT.mjs.map} +1 -1
- package/dist/chunk-M2N7NY3V.js +103 -0
- package/dist/chunk-M2N7NY3V.js.map +1 -0
- package/dist/{chunk-OTCJRVFJ.js → chunk-MQEVQ5YB.js} +3 -3
- package/dist/{chunk-OTCJRVFJ.js.map → chunk-MQEVQ5YB.js.map} +1 -1
- package/dist/{chunk-S24WZNFP.js → chunk-MTHMOXZF.js} +6 -6
- package/dist/{chunk-S24WZNFP.js.map → chunk-MTHMOXZF.js.map} +1 -1
- package/dist/{chunk-3E7ZXPOB.mjs → chunk-NRT7MOEO.mjs} +4 -4
- package/dist/{chunk-3E7ZXPOB.mjs.map → chunk-NRT7MOEO.mjs.map} +1 -1
- package/dist/chunk-NYXENHD2.mjs +96 -0
- package/dist/chunk-NYXENHD2.mjs.map +1 -0
- package/dist/chunk-OI3FCJSP.js +8 -0
- package/dist/{chunk-QWUDHOUE.js.map → chunk-OI3FCJSP.js.map} +1 -1
- package/dist/{chunk-MWX6QO7A.mjs → chunk-OUP6UL74.mjs} +3 -3
- package/dist/{chunk-MWX6QO7A.mjs.map → chunk-OUP6UL74.mjs.map} +1 -1
- package/dist/{chunk-VNSV5SY7.mjs → chunk-OWEJXMKY.mjs} +3 -3
- package/dist/{chunk-VNSV5SY7.mjs.map → chunk-OWEJXMKY.mjs.map} +1 -1
- package/dist/{chunk-QYRJ4IQD.js → chunk-OZTVJSFX.js} +98 -47
- package/dist/chunk-OZTVJSFX.js.map +1 -0
- package/dist/{chunk-MJTHYT3D.js → chunk-P4J3WG6C.js} +4 -4
- package/dist/{chunk-MJTHYT3D.js.map → chunk-P4J3WG6C.js.map} +1 -1
- package/dist/{chunk-3SHAY7PK.mjs → chunk-PTQHPWEK.mjs} +88 -37
- package/dist/chunk-PTQHPWEK.mjs.map +1 -0
- package/dist/{chunk-7DMAVD7W.mjs → chunk-QSN2QST7.mjs} +3 -3
- package/dist/{chunk-7DMAVD7W.mjs.map → chunk-QSN2QST7.mjs.map} +1 -1
- package/dist/{chunk-MSSFRRXJ.mjs → chunk-RGXYE2ZI.mjs} +4 -4
- package/dist/{chunk-MSSFRRXJ.mjs.map → chunk-RGXYE2ZI.mjs.map} +1 -1
- package/dist/{chunk-NNZDWY3L.mjs → chunk-RH4XEXTK.mjs} +3 -3
- package/dist/{chunk-OUZQL5PV.js → chunk-RQG7I6O4.js} +4 -4
- package/dist/{chunk-OUZQL5PV.js.map → chunk-RQG7I6O4.js.map} +1 -1
- package/dist/{chunk-OB7K6EFK.js → chunk-S6CMQTVZ.js} +5 -5
- package/dist/{chunk-OB7K6EFK.js.map → chunk-S6CMQTVZ.js.map} +1 -1
- package/dist/{chunk-5YA6SI4Z.mjs → chunk-TIFVAASU.mjs} +2 -2
- package/dist/{chunk-JZCG25XK.js → chunk-VDGCZVUF.js} +14 -14
- package/dist/{chunk-JZCG25XK.js.map → chunk-VDGCZVUF.js.map} +1 -1
- package/dist/{chunk-3H3DTYFQ.js → chunk-XCOMBHLF.js} +8 -8
- package/dist/{chunk-3H3DTYFQ.js.map → chunk-XCOMBHLF.js.map} +1 -1
- package/dist/{chunk-I7AZC5ZQ.js → chunk-XXSSUCJB.js} +2 -2
- package/dist/{chunk-WVNUOUQI.mjs → chunk-YEHC7VMW.mjs} +3 -3
- package/dist/{chunk-WVNUOUQI.mjs.map → chunk-YEHC7VMW.mjs.map} +1 -1
- package/dist/{chunk-CJ5YPYAE.mjs → chunk-YK7SEUFJ.mjs} +4 -4
- package/dist/{chunk-CJ5YPYAE.mjs.map → chunk-YK7SEUFJ.mjs.map} +1 -1
- package/dist/{chunk-NN2YE5WT.js → chunk-ZUQSVCMD.js} +3 -3
- package/dist/cli/index.js +211 -211
- package/dist/cli/index.mjs +151 -151
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/commerce/index.js +57 -57
- package/dist/commerce/index.mjs +5 -5
- package/dist/cta-bar/CtaBar.d.ts +15 -4
- package/dist/cta-bar/CtaBar.d.ts.map +1 -1
- package/dist/cta-bar/index.js +6 -12
- package/dist/cta-bar/index.js.map +1 -1
- package/dist/cta-bar/index.mjs +6 -12
- package/dist/cta-bar/index.mjs.map +1 -1
- package/dist/engage/ChatWidget.d.ts.map +1 -1
- package/dist/engage/EchoUiActions.d.ts +5 -2
- package/dist/engage/EchoUiActions.d.ts.map +1 -1
- package/dist/engage/brand-color.d.ts +37 -0
- package/dist/engage/brand-color.d.ts.map +1 -0
- package/dist/engage/index.js +11 -10
- package/dist/engage/index.js.map +1 -1
- package/dist/engage/index.mjs +8 -7
- package/dist/engage/index.mjs.map +1 -1
- 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/{lib-6HOOMENJ.js → lib-6GWWPDJR.js} +7 -7
- package/dist/lib-BD4KKQBI.mjs +4 -0
- package/dist/{lib-R7IQ4ZHE.mjs → lib-N5PD6JNJ.mjs} +2 -2
- package/dist/{lib-BGAWCSUH.js → lib-WFB5RLEQ.js} +8 -8
- 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/seo/register-sitemap-cli.js +12 -93
- package/dist/seo/register-sitemap-cli.mjs +2 -83
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +2 -2
- package/dist/shared/color.d.ts +39 -0
- package/dist/shared/color.d.ts.map +1 -0
- package/dist/shared/version.d.ts +1 -1
- package/dist/signal/index.js +11 -11
- package/dist/signal/index.mjs +2 -2
- package/dist/sync/index.js +17 -17
- package/dist/sync/index.mjs +4 -4
- package/dist/{web-vitals.attribution-7LKLZ5GR.mjs → web-vitals.attribution-CHXXWO72.mjs} +3 -3
- package/dist/web-vitals.attribution-CHXXWO72.mjs.map +1 -0
- package/dist/{web-vitals.attribution-ONVYQNRB.js → web-vitals.attribution-SQVZNHN3.js} +3 -3
- package/dist/web-vitals.attribution-SQVZNHN3.js.map +1 -0
- package/package.json +1 -1
- package/dist/ChatWidget-LH3QZYKR.mjs +0 -16
- package/dist/ChatWidget-RUCQMCMN.js +0 -25
- package/dist/EngageWidget-34BQXU7K.mjs +0 -12
- package/dist/EngageWidget-X2CBW7DV.js +0 -21
- package/dist/ManagedForm-EUDKMS5G.mjs +0 -16
- package/dist/ManagedForm-O67ILXN7.js +0 -25
- package/dist/SitemapSync-DQALPBTR.js +0 -18
- package/dist/SitemapSync-QYV3X5LH.mjs +0 -9
- package/dist/chunk-3SHAY7PK.mjs.map +0 -1
- package/dist/chunk-HQWPCX3N.mjs +0 -6
- package/dist/chunk-QWUDHOUE.js +0 -8
- package/dist/chunk-QYRJ4IQD.js.map +0 -1
- package/dist/lib-RSDMEKDQ.mjs +0 -4
- package/dist/web-vitals.attribution-7LKLZ5GR.mjs.map +0 -1
- package/dist/web-vitals.attribution-ONVYQNRB.js.map +0 -1
package/dist/search/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCLO3K7PF_js = require('../chunk-CLO3K7PF.js');
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
5
|
+
var chunkIWHAJBYL_js = require('../chunk-IWHAJBYL.js');
|
|
6
|
+
require('../chunk-BGBP4UN4.js');
|
|
7
|
+
require('../chunk-OI3FCJSP.js');
|
|
8
8
|
require('../chunk-SNAQBZPT.js');
|
|
9
9
|
var react = require('react');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -39,7 +39,7 @@ function useSiteSearch(options = {}) {
|
|
|
39
39
|
const apiUrl = typeof window !== "undefined" ? window.__SITE_KIT_API_URL__ || "https://api.sonor.io" : "https://api.sonor.io";
|
|
40
40
|
const apiKey = typeof window !== "undefined" ? window.__SITE_KIT_API_KEY__ : void 0;
|
|
41
41
|
const resolvedSite = site ?? (typeof window !== "undefined" ? window.__SITE_KIT_SITE__ : void 0);
|
|
42
|
-
const res = await
|
|
42
|
+
const res = await chunkIWHAJBYL_js.sonorFetch(
|
|
43
43
|
`${apiUrl}${chunkCLO3K7PF_js.SEARCH_ENDPOINT}`,
|
|
44
44
|
{
|
|
45
45
|
method: "POST",
|
package/dist/search/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { SEARCH_ENDPOINT } from '../chunk-CFRJ2MK5.mjs';
|
|
3
3
|
export { SEARCH_ENDPOINT } from '../chunk-CFRJ2MK5.mjs';
|
|
4
|
-
import { sonorFetch } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
import { sonorFetch } from '../chunk-CI7T4ZRP.mjs';
|
|
5
|
+
import '../chunk-GYKFHQSZ.mjs';
|
|
6
|
+
import '../chunk-5FBALULE.mjs';
|
|
7
7
|
import '../chunk-BEXTDHO4.mjs';
|
|
8
8
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
package/dist/seo/client.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkS6CMQTVZ_js = require('../chunk-S6CMQTVZ.js');
|
|
5
5
|
require('../chunk-JONWE26J.js');
|
|
6
6
|
require('../chunk-5RNAUYWE.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-IWHAJBYL.js');
|
|
8
|
+
require('../chunk-BGBP4UN4.js');
|
|
9
|
+
require('../chunk-OI3FCJSP.js');
|
|
10
10
|
require('../chunk-SNAQBZPT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "SitemapSync", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkS6CMQTVZ_js.SitemapSync; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=client.js.map
|
|
19
19
|
//# sourceMappingURL=client.js.map
|
package/dist/seo/client.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { SitemapSync } from '../chunk-
|
|
2
|
+
export { SitemapSync } from '../chunk-3MLVI5DH.mjs';
|
|
3
3
|
import '../chunk-C2CTLLIO.mjs';
|
|
4
4
|
import '../chunk-A6UYV475.mjs';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-CI7T4ZRP.mjs';
|
|
6
|
+
import '../chunk-GYKFHQSZ.mjs';
|
|
7
|
+
import '../chunk-5FBALULE.mjs';
|
|
8
8
|
import '../chunk-BEXTDHO4.mjs';
|
|
9
9
|
//# sourceMappingURL=client.mjs.map
|
|
10
10
|
//# sourceMappingURL=client.mjs.map
|
package/dist/seo/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkDV2LJYFD_js = require('../chunk-DV2LJYFD.js');
|
|
4
4
|
var chunkH6AU3WKF_js = require('../chunk-H6AU3WKF.js');
|
|
5
5
|
var chunkJ7QI3GDX_js = require('../chunk-J7QI3GDX.js');
|
|
6
|
-
var
|
|
6
|
+
var chunkS6CMQTVZ_js = require('../chunk-S6CMQTVZ.js');
|
|
7
7
|
var chunkTST2IKYO_js = require('../chunk-TST2IKYO.js');
|
|
8
8
|
var chunkOSU4QA5M_js = require('../chunk-OSU4QA5M.js');
|
|
9
9
|
require('../chunk-CXAXZFFW.js');
|
|
@@ -14,9 +14,9 @@ require('../chunk-IBJOGXQI.js');
|
|
|
14
14
|
require('../chunk-UZKXOZHR.js');
|
|
15
15
|
require('../chunk-SWIKKSKL.js');
|
|
16
16
|
require('../chunk-5RNAUYWE.js');
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-IWHAJBYL.js');
|
|
18
|
+
require('../chunk-BGBP4UN4.js');
|
|
19
|
+
require('../chunk-OI3FCJSP.js');
|
|
20
20
|
require('../chunk-SNAQBZPT.js');
|
|
21
21
|
var react = require('react');
|
|
22
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -706,7 +706,7 @@ Object.defineProperty(exports, "ManagedScripts", {
|
|
|
706
706
|
});
|
|
707
707
|
Object.defineProperty(exports, "SitemapSync", {
|
|
708
708
|
enumerable: true,
|
|
709
|
-
get: function () { return
|
|
709
|
+
get: function () { return chunkS6CMQTVZ_js.SitemapSync; }
|
|
710
710
|
});
|
|
711
711
|
Object.defineProperty(exports, "generateSitemap", {
|
|
712
712
|
enumerable: true,
|
package/dist/seo/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ManagedNoScripts, ManagedScripts } from '../chunk-6PJTLBRR.mjs';
|
|
2
2
|
import { pickManagedLlmSchemaForJsonLd } from '../chunk-PENNTSJE.mjs';
|
|
3
3
|
import { safeJsonLd } from '../chunk-662YHKWW.mjs';
|
|
4
|
-
export { SitemapSync } from '../chunk-
|
|
4
|
+
export { SitemapSync } from '../chunk-3MLVI5DH.mjs';
|
|
5
5
|
import { getManagedMetadata } from '../chunk-JSXLTZUP.mjs';
|
|
6
6
|
export { generateSitemap, getABVariant, getManagedMetadata, getManagedMetadataWithAB, getRedirect, getRobotsDirective, isIndexable } from '../chunk-JSXLTZUP.mjs';
|
|
7
7
|
import { getContentBlock, getSchemaMarkups, getSEOPageData, getEntityEnhancedSchema, getFAQData, getInternalLinks, getEntities, pruneSchemaTypes } from '../chunk-NE6QGHFT.mjs';
|
|
@@ -14,9 +14,9 @@ import '../chunk-YPGUV6BT.mjs';
|
|
|
14
14
|
import '../chunk-KZVSB5WE.mjs';
|
|
15
15
|
import '../chunk-ZN4HBK5C.mjs';
|
|
16
16
|
import '../chunk-A6UYV475.mjs';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-CI7T4ZRP.mjs';
|
|
18
|
+
import '../chunk-GYKFHQSZ.mjs';
|
|
19
|
+
import '../chunk-5FBALULE.mjs';
|
|
20
20
|
import '../chunk-BEXTDHO4.mjs';
|
|
21
21
|
import { cache, Suspense } from 'react';
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkZUQSVCMD_js = require('../chunk-ZUQSVCMD.js');
|
|
5
5
|
var chunkY2CP5J6Q_js = require('../chunk-Y2CP5J6Q.js');
|
|
6
6
|
var chunkJONWE26J_js = require('../chunk-JONWE26J.js');
|
|
7
7
|
var chunkIBJOGXQI_js = require('../chunk-IBJOGXQI.js');
|
|
8
8
|
require('../chunk-UZKXOZHR.js');
|
|
9
9
|
require('../chunk-SWIKKSKL.js');
|
|
10
|
+
var chunkM2N7NY3V_js = require('../chunk-M2N7NY3V.js');
|
|
10
11
|
var chunkSNAQBZPT_js = require('../chunk-SNAQBZPT.js');
|
|
11
12
|
var path = require('path');
|
|
12
13
|
var fs = require('fs');
|
|
@@ -17,95 +18,13 @@ var path__default = /*#__PURE__*/_interopDefault(path);
|
|
|
17
18
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
18
19
|
|
|
19
20
|
// src/seo/register-sitemap-cli.ts
|
|
20
|
-
var import_dotenv = chunkSNAQBZPT_js.__toESM(
|
|
21
|
+
var import_dotenv = chunkSNAQBZPT_js.__toESM(chunkZUQSVCMD_js.require_main());
|
|
21
22
|
var BRAND_PROFILE_EXTRACTOR_VERSION = 2;
|
|
22
|
-
var HEX_COLOR = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
23
|
-
var DARK_LUMINANCE = 0.179;
|
|
24
|
-
function channel(v) {
|
|
25
|
-
const c = v / 255;
|
|
26
|
-
return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
27
|
-
}
|
|
28
|
-
function rgbLuminance({ r, g, b }) {
|
|
29
|
-
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
|
|
30
|
-
}
|
|
31
|
-
function hexToRgb(hex) {
|
|
32
|
-
if (!HEX_COLOR.test(hex)) return null;
|
|
33
|
-
let c = hex.slice(1);
|
|
34
|
-
if (c.length <= 4) c = c.split("").map((ch) => ch + ch).join("");
|
|
35
|
-
if (c.length === 8 && c.slice(6) === "00") return null;
|
|
36
|
-
return {
|
|
37
|
-
r: parseInt(c.slice(0, 2), 16),
|
|
38
|
-
g: parseInt(c.slice(2, 4), 16),
|
|
39
|
-
b: parseInt(c.slice(4, 6), 16)
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function hslToRgb(h, s, l) {
|
|
43
|
-
const k = (n) => (n + h / 30) % 12;
|
|
44
|
-
const a = s * Math.min(l, 1 - l);
|
|
45
|
-
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
46
|
-
return { r: Math.round(f(0) * 255), g: Math.round(f(8) * 255), b: Math.round(f(4) * 255) };
|
|
47
|
-
}
|
|
48
|
-
function colorArgs(inner) {
|
|
49
|
-
const [main2, alpha] = inner.split("/");
|
|
50
|
-
const parts = main2.split(/[\s,]+/).filter(Boolean);
|
|
51
|
-
if (alpha === void 0 && parts.length === 4) return { parts: parts.slice(0, 3), alpha: parts[3] };
|
|
52
|
-
return { parts, alpha: alpha?.trim() };
|
|
53
|
-
}
|
|
54
|
-
function isTransparentAlpha(alpha) {
|
|
55
|
-
if (!alpha) return false;
|
|
56
|
-
const n = alpha.endsWith("%") ? parseFloat(alpha) / 100 : parseFloat(alpha);
|
|
57
|
-
return n === 0;
|
|
58
|
-
}
|
|
59
|
-
function colorLuminance(value) {
|
|
60
|
-
const v = value.trim().toLowerCase();
|
|
61
|
-
if (!v || v === "transparent") return null;
|
|
62
|
-
if (v === "white") return 1;
|
|
63
|
-
if (v === "black") return 0;
|
|
64
|
-
if (v.startsWith("#")) {
|
|
65
|
-
const rgb = hexToRgb(v);
|
|
66
|
-
return rgb ? rgbLuminance(rgb) : null;
|
|
67
|
-
}
|
|
68
|
-
const fn = v.match(/^([a-z]+)\((.*)\)$/);
|
|
69
|
-
if (fn) {
|
|
70
|
-
const [, name, inner] = fn;
|
|
71
|
-
const { parts, alpha } = colorArgs(inner);
|
|
72
|
-
if (isTransparentAlpha(alpha) || parts.length < 3) return null;
|
|
73
|
-
const num = (p, scale) => p.endsWith("%") ? parseFloat(p) / 100 * scale : parseFloat(p);
|
|
74
|
-
if (name === "rgb" || name === "rgba") {
|
|
75
|
-
const [r, g, b] = parts.map((p) => num(p, 255));
|
|
76
|
-
if ([r, g, b].some(Number.isNaN)) return null;
|
|
77
|
-
return rgbLuminance({ r, g, b });
|
|
78
|
-
}
|
|
79
|
-
if (name === "hsl" || name === "hsla") {
|
|
80
|
-
const h = parseFloat(parts[0]);
|
|
81
|
-
const s = num(parts[1], 1);
|
|
82
|
-
const l = num(parts[2], 1);
|
|
83
|
-
if ([h, s, l].some(Number.isNaN)) return null;
|
|
84
|
-
return rgbLuminance(hslToRgb(h, s, l));
|
|
85
|
-
}
|
|
86
|
-
if (name === "oklch" || name === "oklab") {
|
|
87
|
-
const L = num(parts[0], 1);
|
|
88
|
-
return Number.isNaN(L) ? null : Math.min(1, Math.max(0, L)) ** 3;
|
|
89
|
-
}
|
|
90
|
-
if (name === "lab" || name === "lch") {
|
|
91
|
-
const L = num(parts[0], 100);
|
|
92
|
-
if (Number.isNaN(L)) return null;
|
|
93
|
-
const f = (L + 16) / 116;
|
|
94
|
-
return Math.min(1, Math.max(0, L > 8 ? f ** 3 : L / 903.3));
|
|
95
|
-
}
|
|
96
|
-
return null;
|
|
97
|
-
}
|
|
98
|
-
const triple = v.match(/^(-?[\d.]+)(?:deg)?\s+([\d.]+)%\s+([\d.]+)%$/);
|
|
99
|
-
if (triple) {
|
|
100
|
-
return rgbLuminance(hslToRgb(parseFloat(triple[1]), parseFloat(triple[2]) / 100, parseFloat(triple[3]) / 100));
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
23
|
function decideTheme(background, text) {
|
|
105
|
-
const bg = background ? colorLuminance(background) : null;
|
|
106
|
-
if (bg !== null) return bg < DARK_LUMINANCE ? "dark" : "light";
|
|
107
|
-
const fg = text ? colorLuminance(text) : null;
|
|
108
|
-
if (fg !== null) return fg < DARK_LUMINANCE ? "light" : "dark";
|
|
24
|
+
const bg = background ? chunkM2N7NY3V_js.colorLuminance(background) : null;
|
|
25
|
+
if (bg !== null) return bg < chunkM2N7NY3V_js.DARK_LUMINANCE ? "dark" : "light";
|
|
26
|
+
const fg = text ? chunkM2N7NY3V_js.colorLuminance(text) : null;
|
|
27
|
+
if (fg !== null) return fg < chunkM2N7NY3V_js.DARK_LUMINANCE ? "light" : "dark";
|
|
109
28
|
return void 0;
|
|
110
29
|
}
|
|
111
30
|
var DARK_MODE_SIGNALS = [
|
|
@@ -209,9 +128,9 @@ function resolveColorValue(value, vars) {
|
|
|
209
128
|
if (!value) return void 0;
|
|
210
129
|
const resolved = resolveValue(value, vars);
|
|
211
130
|
if (!resolved || /gradient|url\(/i.test(resolved)) return void 0;
|
|
212
|
-
if (colorLuminance(resolved) !== null) return resolved;
|
|
131
|
+
if (chunkM2N7NY3V_js.colorLuminance(resolved) !== null) return resolved;
|
|
213
132
|
const token = resolved.match(/#[0-9a-f]{3,8}\b|(?:rgba?|hsla?|oklch|oklab|lab|lch)\([^)]*\)/i);
|
|
214
|
-
return token && colorLuminance(token[0]) !== null ? token[0] : void 0;
|
|
133
|
+
return token && chunkM2N7NY3V_js.colorLuminance(token[0]) !== null ? token[0] : void 0;
|
|
215
134
|
}
|
|
216
135
|
function findResolvedColor(vars, ...keys) {
|
|
217
136
|
for (const key of keys) {
|
|
@@ -223,7 +142,7 @@ function findResolvedColor(vars, ...keys) {
|
|
|
223
142
|
function findColor(vars, ...keys) {
|
|
224
143
|
for (const key of keys) {
|
|
225
144
|
const val = vars[key];
|
|
226
|
-
if (val && HEX_COLOR.test(val)) return val;
|
|
145
|
+
if (val && chunkM2N7NY3V_js.HEX_COLOR.test(val)) return val;
|
|
227
146
|
}
|
|
228
147
|
return void 0;
|
|
229
148
|
}
|
|
@@ -377,7 +296,7 @@ function extractBrandProfile(projectDir) {
|
|
|
377
296
|
"color-foreground",
|
|
378
297
|
"text-color"
|
|
379
298
|
);
|
|
380
|
-
const background = pageBackground && HEX_COLOR.test(pageBackground) ? pageBackground : void 0;
|
|
299
|
+
const background = pageBackground && chunkM2N7NY3V_js.HEX_COLOR.test(pageBackground) ? pageBackground : void 0;
|
|
381
300
|
const surface = findColor(
|
|
382
301
|
cssVars,
|
|
383
302
|
"color-charcoal-light",
|
|
@@ -385,7 +304,7 @@ function extractBrandProfile(projectDir) {
|
|
|
385
304
|
"color-surface",
|
|
386
305
|
"sk-bg-elevated"
|
|
387
306
|
);
|
|
388
|
-
const textColor = pageText && HEX_COLOR.test(pageText) ? pageText : void 0;
|
|
307
|
+
const textColor = pageText && chunkM2N7NY3V_js.HEX_COLOR.test(pageText) ? pageText : void 0;
|
|
389
308
|
const gradient = designSystem.gradient || void 0;
|
|
390
309
|
const headingFont = tailwindResult.fonts.sans || tailwindResult.fonts.heading || extractFontFromCss(cssVars, "font-heading", "font-display", "font-sans");
|
|
391
310
|
const bodyFont = tailwindResult.fonts.sans || tailwindResult.fonts.body || extractFontFromCss(cssVars, "font-body", "font-sans");
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { require_main } from '../chunk-
|
|
2
|
+
import { require_main } from '../chunk-RH4XEXTK.mjs';
|
|
3
3
|
import { findSitemapRoute, findAppDirForDiscovery, discoverNextJsRoutes } from '../chunk-UHYRVALN.mjs';
|
|
4
4
|
import { inferPageType } from '../chunk-C2CTLLIO.mjs';
|
|
5
5
|
import { resolveSyncSite, postRegisterSitemap } from '../chunk-YPGUV6BT.mjs';
|
|
6
6
|
import '../chunk-KZVSB5WE.mjs';
|
|
7
7
|
import '../chunk-ZN4HBK5C.mjs';
|
|
8
|
+
import { HEX_COLOR, colorLuminance, DARK_LUMINANCE } from '../chunk-NYXENHD2.mjs';
|
|
8
9
|
import { __toESM } from '../chunk-BEXTDHO4.mjs';
|
|
9
10
|
import path from 'path';
|
|
10
11
|
import fs from 'fs';
|
|
@@ -12,88 +13,6 @@ import fs from 'fs';
|
|
|
12
13
|
// src/seo/register-sitemap-cli.ts
|
|
13
14
|
var import_dotenv = __toESM(require_main());
|
|
14
15
|
var BRAND_PROFILE_EXTRACTOR_VERSION = 2;
|
|
15
|
-
var HEX_COLOR = /^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
16
|
-
var DARK_LUMINANCE = 0.179;
|
|
17
|
-
function channel(v) {
|
|
18
|
-
const c = v / 255;
|
|
19
|
-
return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
20
|
-
}
|
|
21
|
-
function rgbLuminance({ r, g, b }) {
|
|
22
|
-
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
|
|
23
|
-
}
|
|
24
|
-
function hexToRgb(hex) {
|
|
25
|
-
if (!HEX_COLOR.test(hex)) return null;
|
|
26
|
-
let c = hex.slice(1);
|
|
27
|
-
if (c.length <= 4) c = c.split("").map((ch) => ch + ch).join("");
|
|
28
|
-
if (c.length === 8 && c.slice(6) === "00") return null;
|
|
29
|
-
return {
|
|
30
|
-
r: parseInt(c.slice(0, 2), 16),
|
|
31
|
-
g: parseInt(c.slice(2, 4), 16),
|
|
32
|
-
b: parseInt(c.slice(4, 6), 16)
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function hslToRgb(h, s, l) {
|
|
36
|
-
const k = (n) => (n + h / 30) % 12;
|
|
37
|
-
const a = s * Math.min(l, 1 - l);
|
|
38
|
-
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
39
|
-
return { r: Math.round(f(0) * 255), g: Math.round(f(8) * 255), b: Math.round(f(4) * 255) };
|
|
40
|
-
}
|
|
41
|
-
function colorArgs(inner) {
|
|
42
|
-
const [main2, alpha] = inner.split("/");
|
|
43
|
-
const parts = main2.split(/[\s,]+/).filter(Boolean);
|
|
44
|
-
if (alpha === void 0 && parts.length === 4) return { parts: parts.slice(0, 3), alpha: parts[3] };
|
|
45
|
-
return { parts, alpha: alpha?.trim() };
|
|
46
|
-
}
|
|
47
|
-
function isTransparentAlpha(alpha) {
|
|
48
|
-
if (!alpha) return false;
|
|
49
|
-
const n = alpha.endsWith("%") ? parseFloat(alpha) / 100 : parseFloat(alpha);
|
|
50
|
-
return n === 0;
|
|
51
|
-
}
|
|
52
|
-
function colorLuminance(value) {
|
|
53
|
-
const v = value.trim().toLowerCase();
|
|
54
|
-
if (!v || v === "transparent") return null;
|
|
55
|
-
if (v === "white") return 1;
|
|
56
|
-
if (v === "black") return 0;
|
|
57
|
-
if (v.startsWith("#")) {
|
|
58
|
-
const rgb = hexToRgb(v);
|
|
59
|
-
return rgb ? rgbLuminance(rgb) : null;
|
|
60
|
-
}
|
|
61
|
-
const fn = v.match(/^([a-z]+)\((.*)\)$/);
|
|
62
|
-
if (fn) {
|
|
63
|
-
const [, name, inner] = fn;
|
|
64
|
-
const { parts, alpha } = colorArgs(inner);
|
|
65
|
-
if (isTransparentAlpha(alpha) || parts.length < 3) return null;
|
|
66
|
-
const num = (p, scale) => p.endsWith("%") ? parseFloat(p) / 100 * scale : parseFloat(p);
|
|
67
|
-
if (name === "rgb" || name === "rgba") {
|
|
68
|
-
const [r, g, b] = parts.map((p) => num(p, 255));
|
|
69
|
-
if ([r, g, b].some(Number.isNaN)) return null;
|
|
70
|
-
return rgbLuminance({ r, g, b });
|
|
71
|
-
}
|
|
72
|
-
if (name === "hsl" || name === "hsla") {
|
|
73
|
-
const h = parseFloat(parts[0]);
|
|
74
|
-
const s = num(parts[1], 1);
|
|
75
|
-
const l = num(parts[2], 1);
|
|
76
|
-
if ([h, s, l].some(Number.isNaN)) return null;
|
|
77
|
-
return rgbLuminance(hslToRgb(h, s, l));
|
|
78
|
-
}
|
|
79
|
-
if (name === "oklch" || name === "oklab") {
|
|
80
|
-
const L = num(parts[0], 1);
|
|
81
|
-
return Number.isNaN(L) ? null : Math.min(1, Math.max(0, L)) ** 3;
|
|
82
|
-
}
|
|
83
|
-
if (name === "lab" || name === "lch") {
|
|
84
|
-
const L = num(parts[0], 100);
|
|
85
|
-
if (Number.isNaN(L)) return null;
|
|
86
|
-
const f = (L + 16) / 116;
|
|
87
|
-
return Math.min(1, Math.max(0, L > 8 ? f ** 3 : L / 903.3));
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
const triple = v.match(/^(-?[\d.]+)(?:deg)?\s+([\d.]+)%\s+([\d.]+)%$/);
|
|
92
|
-
if (triple) {
|
|
93
|
-
return rgbLuminance(hslToRgb(parseFloat(triple[1]), parseFloat(triple[2]) / 100, parseFloat(triple[3]) / 100));
|
|
94
|
-
}
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
16
|
function decideTheme(background, text) {
|
|
98
17
|
const bg = background ? colorLuminance(background) : null;
|
|
99
18
|
if (bg !== null) return bg < DARK_LUMINANCE ? "dark" : "light";
|
package/dist/server/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkP4J3WG6C_js = require('../chunk-P4J3WG6C.js');
|
|
4
4
|
require('../chunk-LVGSOW2F.js');
|
|
5
5
|
var chunkO5GHP7UO_js = require('../chunk-O5GHP7UO.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-OI3FCJSP.js');
|
|
7
7
|
require('../chunk-SNAQBZPT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "resolveClientCredential", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkP4J3WG6C_js.resolveClientCredential; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "requireServerApiConfig", {
|
|
16
16
|
enumerable: true,
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { resolveClientCredential } from '../chunk-
|
|
1
|
+
export { resolveClientCredential } from '../chunk-ESPOINPT.mjs';
|
|
2
2
|
import '../chunk-BQP6JIE2.mjs';
|
|
3
3
|
export { requireServerApiConfig, resolveApiOrigin, resolveServerApiConfig, serverApiFetch } from '../chunk-6XNEGG5B.mjs';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-5FBALULE.mjs';
|
|
5
5
|
import '../chunk-BEXTDHO4.mjs';
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @sonordev/site-kit — CSS colour reading and WCAG contrast
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for turning a CSS colour string into something the
|
|
5
|
+
* kit can reason about. Used at build time by the brand-profile extractor
|
|
6
|
+
* (`src/brand/extract-brand-profile.ts`, theme detection) and in the browser
|
|
7
|
+
* by Echo (`src/engage/brand-color.ts`, brand text contrast). Pure, no
|
|
8
|
+
* imports, safe in both.
|
|
9
|
+
*/
|
|
10
|
+
export type Rgb = {
|
|
11
|
+
r: number;
|
|
12
|
+
g: number;
|
|
13
|
+
b: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const HEX_COLOR: RegExp;
|
|
16
|
+
/**
|
|
17
|
+
* WCAG relative luminance below which a color reads as dark — the point where
|
|
18
|
+
* it contrasts more with white than with black.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DARK_LUMINANCE = 0.179;
|
|
21
|
+
/** WCAG 2.x relative luminance of an sRGB colour (0 = black, 1 = white). */
|
|
22
|
+
export declare function relativeLuminance({ r, g, b }: Rgb): number;
|
|
23
|
+
/** WCAG 2.x contrast ratio between two relative luminances (1 to 21). */
|
|
24
|
+
export declare function contrastRatio(a: number, b: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* The sRGB channels (0-255, alpha ignored) of a resolved CSS color, or null
|
|
27
|
+
* when the value isn't one this can read or paints nothing. Covers hex (3, 4,
|
|
28
|
+
* 6 and 8 digits), rgb()/rgba() and hsl()/hsla() in comma or space syntax, a
|
|
29
|
+
* bare shadcn-style HSL triple (`0 0% 100%`), and white/black. oklch(), lab()
|
|
30
|
+
* and named colours beyond those two return null.
|
|
31
|
+
*/
|
|
32
|
+
export declare function parseColor(value: string): Rgb | null;
|
|
33
|
+
/**
|
|
34
|
+
* Relative luminance (0 = black, 1 = white) of a resolved CSS color, or null
|
|
35
|
+
* when the value isn't a color this can read. Everything `parseColor` reads,
|
|
36
|
+
* plus oklch()/oklab()/lab()/lch() (from their lightness).
|
|
37
|
+
*/
|
|
38
|
+
export declare function colorLuminance(value: string): number | null;
|
|
39
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/shared/color.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,GAAG,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,SAAS,QAAkD,CAAA;AAExE;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAQ,CAAA;AAOnC,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAE1D;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1D;AAgDD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CA2BpD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmB3D"}
|
package/dist/shared/version.d.ts
CHANGED
package/dist/signal/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk5OUOVPXC_js = require('../chunk-5OUOVPXC.js');
|
|
5
|
+
var chunkKEEZX6Q4_js = require('../chunk-KEEZX6Q4.js');
|
|
6
6
|
require('../chunk-SNAQBZPT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ExperimentConversion", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk5OUOVPXC_js.ExperimentConversion; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "SignalExperiment", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk5OUOVPXC_js.SignalExperiment; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "useExperimentVariant", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk5OUOVPXC_js.useExperimentVariant; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "SignalBridge", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkKEEZX6Q4_js.SignalBridge; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "useSignal", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkKEEZX6Q4_js.useSignal; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "useSignalConfig", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkKEEZX6Q4_js.useSignalConfig; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "useSignalEvent", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkKEEZX6Q4_js.useSignalEvent; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "useSignalExperiment", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkKEEZX6Q4_js.useSignalExperiment; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "useSignalOutcome", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkKEEZX6Q4_js.useSignalOutcome; }
|
|
45
45
|
});
|
|
46
46
|
//# sourceMappingURL=index.js.map
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist/signal/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ExperimentConversion, SignalExperiment, useExperimentVariant } from '../chunk-
|
|
3
|
-
export { SignalBridge, useSignal, useSignalConfig, useSignalEvent, useSignalExperiment, useSignalOutcome } from '../chunk-
|
|
2
|
+
export { ExperimentConversion, SignalExperiment, useExperimentVariant } from '../chunk-IUNFAKOS.mjs';
|
|
3
|
+
export { SignalBridge, useSignal, useSignalConfig, useSignalEvent, useSignalExperiment, useSignalOutcome } from '../chunk-5IQOPL7T.mjs';
|
|
4
4
|
import '../chunk-BEXTDHO4.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
package/dist/sync/index.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkEVKP4SOM_js = require('../chunk-EVKP4SOM.js');
|
|
4
|
+
require('../chunk-IWHAJBYL.js');
|
|
5
|
+
require('../chunk-BGBP4UN4.js');
|
|
6
|
+
require('../chunk-OI3FCJSP.js');
|
|
7
7
|
require('../chunk-SNAQBZPT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "BookingWidget", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEVKP4SOM_js.BookingWidget; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createBooking", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkEVKP4SOM_js.createBooking; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createSlotHold", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkEVKP4SOM_js.createSlotHold; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "detectTimezone", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEVKP4SOM_js.detectTimezone; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "fetchAvailability", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEVKP4SOM_js.fetchAvailability; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "fetchAvailableDates", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkEVKP4SOM_js.fetchAvailableDates; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "fetchBookingTypeDetails", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkEVKP4SOM_js.fetchBookingTypeDetails; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "fetchBookingTypes", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkEVKP4SOM_js.fetchBookingTypes; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "formatDate", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkEVKP4SOM_js.formatDate; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "formatDuration", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkEVKP4SOM_js.formatDuration; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "formatTime", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkEVKP4SOM_js.formatTime; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "prepareMeeting", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkEVKP4SOM_js.prepareMeeting; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "releaseSlotHold", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkEVKP4SOM_js.releaseSlotHold; }
|
|
62
62
|
});
|
|
63
63
|
//# sourceMappingURL=index.js.map
|
|
64
64
|
//# sourceMappingURL=index.js.map
|
package/dist/sync/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { BookingWidget, createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { BookingWidget, createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-YEHC7VMW.mjs';
|
|
2
|
+
import '../chunk-CI7T4ZRP.mjs';
|
|
3
|
+
import '../chunk-GYKFHQSZ.mjs';
|
|
4
|
+
import '../chunk-5FBALULE.mjs';
|
|
5
5
|
import '../chunk-BEXTDHO4.mjs';
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __publicField } from './chunk-BEXTDHO4.mjs';
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/web-vitals@6.1.0/node_modules/web-vitals/dist/web-vitals.attribution.js
|
|
3
|
+
// ../../../../../../../Volumes/Uptrade Media/GitHub/Sonor/site-kit/node_modules/.pnpm/web-vitals@6.1.0/node_modules/web-vitals/dist/web-vitals.attribution.js
|
|
4
4
|
var t = class {
|
|
5
5
|
constructor() {
|
|
6
6
|
__publicField(this, "t");
|
|
@@ -520,5 +520,5 @@ var Q = (t2, e2 = {}) => {
|
|
|
520
520
|
};
|
|
521
521
|
|
|
522
522
|
export { L as CLSThresholds, S as FCPThresholds, R as INPThresholds, H as LCPThresholds, J as TTFBThresholds, F as onCLS, _ as onFCP, U as onINP, G as onLCP, Q as onTTFB };
|
|
523
|
-
//# sourceMappingURL=web-vitals.attribution-
|
|
524
|
-
//# sourceMappingURL=web-vitals.attribution-
|
|
523
|
+
//# sourceMappingURL=web-vitals.attribution-CHXXWO72.mjs.map
|
|
524
|
+
//# sourceMappingURL=web-vitals.attribution-CHXXWO72.mjs.map
|