@sonordev/site-kit 8.8.0 → 8.9.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 +22 -0
- package/README.md +9 -0
- package/agent-manifest.json +8 -1
- package/dist/AnalyticsProvider-X7JJN3QL.js +19 -0
- package/dist/{ArticleViewTracker-PV2RD3P6.js → ArticleViewTracker-7Q6AMCKX.js} +11 -10
- package/dist/{BlocksPopup-NEEFV2L3.js → BlocksPopup-U5VIYEBA.js} +4 -5
- package/dist/ChatWidget-EAATOFCT.js +30 -0
- package/dist/{FileField-MJ3RCNFJ.js → FileField-YWMSK7RF.js} +1 -3
- package/dist/{FormSpotlight-NQPQFZS7.js → FormSpotlight-MAXDW3TK.js} +1 -1
- package/dist/{FormStage-4T5PJR5K.js → FormStage-VAHRVOIZ.js} +1 -1
- package/dist/ManagedForm-7IZT7ZII.js +29 -0
- package/dist/{ManagedNewsletterForm-TUYGN6O3.js → ManagedNewsletterForm-VVXZSEAL.js} +21 -11
- package/dist/{SignalCore-OW3YIH6M.js → SignalCore-HAN4O7QG.js} +90 -36
- package/dist/{SiteChat-XMKHBSEK.js → SiteChat-3JLCEL2N.js} +2 -2
- package/dist/{SiteDesignReporter-BRH7ORQS.js → SiteDesignReporter-6CCO645E.js} +5 -6
- package/dist/SitePopups-ZGHQNGGH.js +19 -0
- package/dist/SitemapSync-5LSYCBKS.js +7 -0
- package/dist/SitemapSync.d.ts +1 -1
- package/dist/_client/booking-widget.d.ts +1 -1
- package/dist/_client/booking-widget.js +6 -7
- package/dist/_client/reviewed-signal-experiment.d.ts +9 -0
- package/dist/_client/reviewed-signal-experiment.js +89 -0
- package/dist/_client/testimonial-section.d.ts +1 -1
- package/dist/admin-auth/index.d.ts +3 -3
- package/dist/affiliates/AffiliatesWidget.d.ts +1 -1
- package/dist/affiliates/api.d.ts +1 -1
- package/dist/affiliates/index.d.ts +6 -6
- package/dist/affiliates/index.js +1 -3
- package/dist/affiliates/useAffiliates.d.ts +1 -1
- package/dist/analytics/AnalyticsProvider.d.ts +1 -1
- package/dist/analytics/dispatch.d.ts +1 -1
- package/dist/analytics/index.d.ts +6 -6
- package/dist/analytics/index.js +22 -12
- package/dist/analytics/publication-cta.d.ts +1 -1
- package/dist/analytics/send-gate.d.ts +8 -4
- package/dist/articles/Article.d.ts +1 -1
- package/dist/articles/ArticleFAQ.d.ts +1 -1
- package/dist/articles/ArticleFaqSection.d.ts +1 -1
- package/dist/articles/ArticleList.d.ts +1 -1
- package/dist/articles/ArticleViewTracker.d.ts +1 -1
- package/dist/articles/AuthorCard.d.ts +1 -1
- package/dist/articles/AuthorPage.d.ts +1 -1
- package/dist/articles/ClusterLandingPage.d.ts +1 -1
- package/dist/articles/ClusterNavigation.d.ts +1 -1
- package/dist/articles/ManagedNewsletterForm.d.ts +2 -2
- package/dist/articles/NewsletterShell.d.ts +1 -1
- package/dist/articles/NewsletterWidget.d.ts +1 -1
- package/dist/articles/PublicationLayout.d.ts +1 -1
- package/dist/articles/PublicationSidebar.d.ts +1 -1
- package/dist/articles/RelatedPosts.d.ts +1 -1
- package/dist/articles/ServiceCallout.d.ts +1 -1
- package/dist/articles/TableOfContents.d.ts +1 -1
- package/dist/articles/article-photos.d.ts +1 -1
- package/dist/articles/article-styles.d.ts +1 -1
- package/dist/articles/article-tables.d.ts +1 -1
- package/dist/articles/artwork.d.ts +1 -1
- package/dist/articles/author-schema.d.ts +1 -1
- package/dist/articles/author-social.d.ts +1 -1
- package/dist/articles/excerpt.d.ts +1 -1
- package/dist/articles/index.d.ts +1 -1
- package/dist/articles/index.js +3 -3
- package/dist/articles/news-sitemap.d.ts +1 -1
- package/dist/articles/processArticleHtml.d.ts +1 -1
- package/dist/articles/public-reads.d.ts +1 -1
- package/dist/articles/reading-time.d.ts +1 -1
- package/dist/articles/routes.d.ts +1 -1
- package/dist/articles/server-core.d.ts +1 -1
- package/dist/articles/server-ui.d.ts +1 -1
- package/dist/articles/server-ui.js +6 -6
- package/dist/articles/server.d.ts +1 -1
- package/dist/articles/server.js +5 -5
- package/dist/articles/types.d.ts +1 -1
- package/dist/articles/widget-styles.d.ts +1 -1
- package/dist/brand/extract-brand-profile.d.ts +1 -1
- package/dist/chat/ChatWidget.d.ts +1 -1
- package/dist/chat/EchoUiActions.d.ts +1 -1
- package/dist/chat/SiteChat.d.ts +2 -2
- package/dist/chat/chat-messages.d.ts +1 -1
- package/dist/chat/index.d.ts +7 -7
- package/dist/chat/index.js +17 -9
- package/dist/chat/launcher-placement.d.ts +1 -1
- package/dist/{chunk-OPUY4RS6.js → chunk-2LBKIE2K.js} +2 -1
- package/dist/{chunk-XIDWNXZN.js → chunk-3W3MN6Z7.js} +2 -2
- package/dist/{chunk-UPFU63L4.js → chunk-55GFMOI6.js} +1 -1
- package/dist/chunk-5IVD6G77.js +37 -0
- package/dist/{chunk-URLTBVRX.js → chunk-6EDE7BOE.js} +3 -3
- package/dist/{chunk-DYROJGI2.js → chunk-6NLVHTYY.js} +1 -1
- package/dist/{chunk-ZQSCMYZO.js → chunk-7643MCD2.js} +6 -3
- package/dist/chunk-7IZUUXXO.js +1 -0
- package/dist/{chunk-C7TLGL3R.js → chunk-7VMA3KCN.js} +30 -4
- package/dist/{chunk-OWZWRP7Y.js → chunk-ADQ3VCKK.js} +2 -2
- package/dist/chunk-AG2RDHYZ.js +45 -0
- package/dist/chunk-AWLPFFPO.js +36 -0
- package/dist/{chunk-LNSNA3W4.js → chunk-C4XK472G.js} +4 -3
- package/dist/{chunk-TP32MRXV.js → chunk-CJ43K7RA.js} +2 -2
- package/dist/chunk-D4M5K6JN.js +25 -0
- package/dist/{chunk-F6WLHVMQ.js → chunk-DXE6SXWW.js} +1 -1
- package/dist/{chunk-YEX5RAEU.js → chunk-EBEM5BI5.js} +38 -27
- package/dist/chunk-F3RKFGRW.js +2 -0
- package/dist/chunk-FAY6MOLL.js +62 -0
- package/dist/chunk-FRY6PBT6.js +31 -0
- package/dist/{chunk-JYITKUUB.js → chunk-G5WUX7VE.js} +1 -1
- package/dist/chunk-HJD6KXKH.js +147 -0
- package/dist/{chunk-6BFQI3ZE.js → chunk-IO6BWRZ5.js} +2 -2
- package/dist/{chunk-THXELZTQ.js → chunk-ISMHDUBW.js} +1 -1
- package/dist/{chunk-SLFYTELD.js → chunk-J4LJE4NB.js} +1 -1
- package/dist/{chunk-LQJC5S2M.js → chunk-J6D3NEDE.js} +57 -0
- package/dist/chunk-JT7GHHMV.js +56 -0
- package/dist/{chunk-NFGAXWCN.js → chunk-KGIQYVQ2.js} +31 -13
- package/dist/chunk-KMNHNCVG.js +20 -0
- package/dist/chunk-KQKUXIUD.js +25 -0
- package/dist/{chunk-M5JIHQ42.js → chunk-L3S5WH4C.js} +2 -2
- package/dist/chunk-MDBXGN6W.js +13 -0
- package/dist/chunk-MOACHHOJ.js +20 -0
- package/dist/{chunk-6DXQHNZK.js → chunk-MP35JETP.js} +1 -1
- package/dist/chunk-NHDRA4Y5.js +6 -0
- package/dist/{chunk-AYQEIMGS.js → chunk-NZHECYLF.js} +103 -22
- package/dist/{chunk-EATJPSTS.js → chunk-O5LQUBBN.js} +1 -1
- package/dist/{chunk-Y6SHFILE.js → chunk-OEOSR5EG.js} +1 -1
- package/dist/{chunk-GQN4BGK6.js → chunk-OUD4RTBD.js} +1 -1
- package/dist/chunk-PMXQPO5Q.js +78 -0
- package/dist/chunk-PVY7X5UR.js +21 -0
- package/dist/{chunk-KG5IEV7I.js → chunk-QLJ2SC3T.js} +1 -1
- package/dist/{chunk-2WM4TNDF.js → chunk-QXAJPB6O.js} +1 -1
- package/dist/{chunk-2WDWQI7K.js → chunk-RYR6N4X4.js} +1 -1
- package/dist/{chunk-G7BRCSV6.js → chunk-S33CUULL.js} +3 -3
- package/dist/{chunk-YRQS7VAH.js → chunk-S63QY5XW.js} +2 -2
- package/dist/{chunk-GXWM5KNS.js → chunk-SO6RSRUP.js} +40 -45
- package/dist/{chunk-ODOV76VW.js → chunk-STIVFCWM.js} +1 -1
- package/dist/{chunk-SVHPILS3.js → chunk-T4A5J6SJ.js} +1 -1
- package/dist/chunk-TPHOIE4I.js +73 -0
- package/dist/{chunk-IWNJCRXW.js → chunk-UG53ZW7S.js} +125 -118
- package/dist/chunk-VXCUXHZO.js +9 -0
- package/dist/{chunk-SBPUFTMP.js → chunk-WHFWDK2H.js} +2 -2
- package/dist/chunk-WYNDBJG7.js +66 -0
- package/dist/{chunk-HN7GVGWC.js → chunk-XDH5B3PR.js} +3 -3
- package/dist/{chunk-PAYCK7FC.js → chunk-XJZLXUTG.js} +1 -1
- package/dist/{chunk-IDC5CVBR.js → chunk-YVEYO3OD.js} +1 -1
- package/dist/{chunk-PSS6M4CG.js → chunk-ZRSXCT4O.js} +2 -2
- package/dist/client/index.d.ts +8 -8
- package/dist/client/index.js +9 -8
- package/dist/config/index.d.ts +1 -1
- package/dist/contracts/broadcast-layouts.d.ts +8 -0
- package/dist/contracts/crm-disposition.d.ts +87 -0
- package/dist/contracts/decision-roles.d.ts +39 -0
- package/dist/contracts/entries.d.ts +1 -1
- package/dist/contracts/funnels.d.ts +85 -2
- package/dist/contracts/portfolio.d.ts +1 -1
- package/dist/contracts/publication-branding.d.ts +3 -3
- package/dist/contracts/resonance-constants.d.ts +4 -0
- package/dist/contracts/resonance.d.ts +8461 -0
- package/dist/contracts/signal-experiments.d.ts +219 -0
- package/dist/contracts/site-edit.d.ts +2 -2
- package/dist/contracts/sites.d.ts +1 -1
- package/dist/contracts/slots.d.ts +2 -2
- package/dist/contracts/wire-schema.d.ts +36 -0
- package/dist/cta-bar/CtaBar.d.ts +1 -1
- package/dist/cta-bar/client.js +3 -2
- package/dist/cta-bar/index.d.ts +4 -4
- package/dist/cta-bar/index.js +4 -3
- package/dist/fleet/FleetHeartbeat.d.ts +2 -2
- package/dist/fleet/contract.d.ts +1 -1
- package/dist/fleet/heartbeat.d.ts +2 -2
- package/dist/fleet/index.d.ts +6 -6
- package/dist/fleet/index.js +4 -5
- package/dist/forms/FileField.d.ts +1 -1
- package/dist/forms/FormClient.d.ts +2 -2
- package/dist/forms/FormEnhancer.d.ts +1 -1
- package/dist/forms/FormField.d.ts +1 -1
- package/dist/forms/FormSpotlight.d.ts +1 -1
- package/dist/forms/FormStage.d.ts +1 -1
- package/dist/forms/ManagedForm.d.ts +1 -1
- package/dist/forms/PrivateFileField.d.ts +1 -1
- package/dist/forms/ServerForm.d.ts +3 -3
- package/dist/forms/StaticForm.d.ts +1 -1
- package/dist/forms/contract.d.ts +1 -1
- package/dist/forms/experience-plan.d.ts +1 -1
- package/dist/forms/field-autocomplete.d.ts +1 -1
- package/dist/forms/field-controls.d.ts +1 -1
- package/dist/forms/field-rules.d.ts +1 -1
- package/dist/forms/form-dom-values.d.ts +1 -1
- package/dist/forms/index.d.ts +18 -18
- package/dist/forms/index.js +21 -11
- package/dist/forms/normalize-config.d.ts +1 -1
- package/dist/forms/server.d.ts +4 -4
- package/dist/forms/server.js +3 -3
- package/dist/forms/static.d.ts +2 -2
- package/dist/forms/submitForm.d.ts +2 -2
- package/dist/forms/tracking-session.d.ts +1 -1
- package/dist/forms/useForm.d.ts +2 -2
- package/dist/forms/webmcp.d.ts +2 -2
- package/dist/images/api.d.ts +1 -1
- package/dist/images/index.d.ts +6 -6
- package/dist/images/index.js +2 -4
- package/dist/images/server.d.ts +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.js +1 -1
- package/dist/landing/contract.d.ts +1 -1
- package/dist/landing/contract.js +2 -1
- package/dist/landing/index.d.ts +3 -3
- package/dist/landing/index.js +3 -2
- package/dist/landing/managed-server.d.ts +2 -2
- package/dist/landing/managed.d.ts +10 -2
- package/dist/landing/server.d.ts +7 -7
- package/dist/landing/server.js +11 -6
- package/dist/layout/AiDiscoveryLinks.d.ts +1 -1
- package/dist/layout/SiteKitClientProviders.d.ts +1 -1
- package/dist/layout/SiteKitLayout.d.ts +2 -2
- package/dist/layout/client.d.ts +1 -1
- package/dist/layout/client.js +15 -11
- package/dist/layout/index.d.ts +5 -5
- package/dist/layout/index.js +17 -13
- package/dist/layout/types.d.ts +2 -2
- package/dist/llms/AEOComponents.d.ts +1 -1
- package/dist/llms/SpeakableSchema.d.ts +1 -1
- package/dist/llms/api.d.ts +1 -1
- package/dist/llms/client.d.ts +3 -3
- package/dist/llms/contract.d.ts +1 -1
- package/dist/llms/generateLLMsTxt.d.ts +1 -1
- package/dist/llms/handlers.d.ts +1 -1
- package/dist/llms/index.d.ts +21 -21
- package/dist/llms/index.js +5 -5
- package/dist/llms/merge.d.ts +1 -1
- package/dist/llms/sourcedFacts.d.ts +1 -1
- package/dist/llms/types.d.ts +5 -5
- package/dist/llms/writeLLMsTxt.d.ts +3 -3
- package/dist/maps/GoogleMap.d.ts +1 -1
- package/dist/maps/NeighborhoodMap.d.ts +1 -1
- package/dist/maps/api.d.ts +1 -1
- package/dist/maps/index.d.ts +5 -5
- package/dist/maps/index.js +1 -3
- package/dist/mcp/WebMcpTools.d.ts +1 -1
- package/dist/mcp/client.d.ts +2 -2
- package/dist/mcp/discovery.d.ts +2 -2
- package/dist/mcp/handlers.d.ts +4 -4
- package/dist/mcp/index.d.ts +12 -12
- package/dist/mcp/protocol.d.ts +1 -1
- package/dist/mcp/report.d.ts +1 -1
- package/dist/mcp/serverCard.d.ts +1 -1
- package/dist/mcp/sonor.d.ts +5 -5
- package/dist/mcp/sonor.js +10 -10
- package/dist/mcp/transport.d.ts +1 -1
- package/dist/motion/Parallax.d.ts +1 -1
- package/dist/motion/ScrollScene.d.ts +1 -1
- package/dist/motion/gsap.d.ts +2 -2
- package/dist/motion/index.d.ts +9 -9
- package/dist/motion/three.d.ts +1 -1
- package/dist/og/index.d.ts +5 -5
- package/dist/og/pages.d.ts +1 -1
- package/dist/og/route-fit.d.ts +17 -0
- package/dist/og/route.d.ts +8 -0
- package/dist/og/route.js +1 -1
- package/dist/og/template.d.ts +1 -1
- package/dist/portfolio/contract.d.ts +1 -1
- package/dist/press-kit/articles/Article.d.ts +2 -2
- package/dist/press-kit/articles/ArticleFaqSection.d.ts +1 -1
- package/dist/press-kit/articles/ArticleList.d.ts +2 -2
- package/dist/press-kit/articles/AuthorCard.d.ts +1 -1
- package/dist/press-kit/articles/AuthorPage.d.ts +1 -1
- package/dist/press-kit/articles/ClusterLandingPage.d.ts +2 -2
- package/dist/press-kit/articles/ClusterNavigation.d.ts +2 -2
- package/dist/press-kit/articles/ManagedNewsletterForm.d.ts +2 -2
- package/dist/press-kit/articles/PublicationLayout.d.ts +2 -2
- package/dist/press-kit/articles/PublicationSidebar.d.ts +1 -1
- package/dist/press-kit/articles/RelatedPosts.d.ts +2 -2
- package/dist/press-kit/articles/TableOfContents.d.ts +1 -1
- package/dist/press-kit/articles/article-body.d.ts +1 -1
- package/dist/press-kit/articles/article-headings.d.ts +1 -1
- package/dist/press-kit/articles/article-photos.d.ts +1 -1
- package/dist/press-kit/articles/artwork.d.ts +2 -2
- package/dist/press-kit/articles/author-schema.d.ts +2 -2
- package/dist/press-kit/articles/author-social.d.ts +1 -1
- package/dist/press-kit/articles/index.d.ts +23 -23
- package/dist/press-kit/articles/news-sitemap.d.ts +2 -2
- package/dist/press-kit/articles/public-reads.d.ts +1 -1
- package/dist/press-kit/articles/publication-reads.d.ts +2 -2
- package/dist/press-kit/articles/reading-time.d.ts +1 -1
- package/dist/press-kit/articles/server-core.d.ts +20 -20
- package/dist/press-kit/articles/server-ui.d.ts +20 -20
- package/dist/press-kit/articles/types.d.ts +1 -1
- package/dist/proxy/index.d.ts +5 -5
- package/dist/proxy/index.js +1 -1
- package/dist/reputation/TestimonialSection.d.ts +1 -1
- package/dist/reputation/VisualReviewCard.d.ts +1 -1
- package/dist/reputation/api.d.ts +1 -1
- package/dist/reputation/index.d.ts +4 -4
- package/dist/reputation/server.d.ts +3 -3
- package/dist/resonance/ResonanceRuntime.d.ts +7 -0
- package/dist/resonance/bridge.d.ts +16 -0
- package/dist/resonance/consent-adapter.d.ts +26 -0
- package/dist/resonance/controller-registry.d.ts +14 -0
- package/dist/resonance/controller.d.ts +103 -0
- package/dist/resonance/form-context.d.ts +5 -0
- package/dist/resonance/index.d.ts +4 -0
- package/dist/resonance/index.js +9 -0
- package/dist/resonance/meta-pixel.d.ts +67 -0
- package/dist/resonance/providers.d.ts +32 -0
- package/dist/resonance/runtime-core.d.ts +5 -0
- package/dist/revalidate/index.d.ts +3 -3
- package/dist/revalidate/index.js +2 -2
- package/dist/robots/index.d.ts +3 -3
- package/dist/robots/indexnow.js +2 -2
- package/dist/runtime/index.d.ts +7 -7
- package/dist/runtime/index.js +4 -5
- package/dist/runtime-core-WT7KKLWQ.js +2213 -0
- package/dist/seo/ManagedFAQ.d.ts +1 -1
- package/dist/seo/ManagedInternalLinks.d.ts +1 -1
- package/dist/seo/ManagedSchema.d.ts +1 -1
- package/dist/seo/ManagedScripts.d.ts +1 -1
- package/dist/seo/client.d.ts +1 -1
- package/dist/seo/client.js +3 -5
- package/dist/seo/entry-indexnow.d.ts +1 -1
- package/dist/seo/entry-llms-client.d.ts +1 -1
- package/dist/seo/entry-llms-contract.d.ts +1 -1
- package/dist/seo/entry-llms.d.ts +1 -1
- package/dist/seo/entry-meta-contract.d.ts +1 -1
- package/dist/seo/entry-og-route.d.ts +1 -1
- package/dist/seo/entry-og.d.ts +1 -1
- package/dist/seo/entry-pages-contract.d.ts +1 -1
- package/dist/seo/entry-redirects.d.ts +1 -1
- package/dist/seo/entry-robots.d.ts +1 -1
- package/dist/seo/entry-sitemap.d.ts +1 -1
- package/dist/seo/getManagedMetadata.d.ts +1 -1
- package/dist/seo/index.d.ts +12 -12
- package/dist/seo/index.js +9 -11
- package/dist/seo/indexnow.d.ts +1 -1
- package/dist/seo/indexnow.js +2 -2
- package/dist/seo/llms/client.d.ts +1 -1
- package/dist/seo/llms/contract.d.ts +1 -1
- package/dist/seo/llms.d.ts +1 -1
- package/dist/seo/llms.js +5 -5
- package/dist/seo/meta/contract.d.ts +1 -1
- package/dist/seo/og/route.d.ts +1 -1
- package/dist/seo/og/route.js +1 -1
- package/dist/seo/og.d.ts +1 -1
- package/dist/seo/pages/contract.d.ts +1 -1
- package/dist/seo/redirects.d.ts +1 -1
- package/dist/seo/register-sitemap-cli-impl.d.ts +1 -1
- package/dist/seo/register-sitemap-cli.js +1 -1
- package/dist/seo/robots.d.ts +1 -1
- package/dist/seo/routing.d.ts +1 -1
- package/dist/seo/server.d.ts +4 -4
- package/dist/seo/server.js +3 -3
- package/dist/seo/sitemap.d.ts +1 -1
- package/dist/seo/sitemap.js +3 -3
- package/dist/seo/types.d.ts +1 -1
- package/dist/seo-meta/contract.d.ts +1 -1
- package/dist/seo-pages/contract.d.ts +1 -1
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +3 -3
- package/dist/server/mint-site-token.d.ts +1 -1
- package/dist/server/server-fetch.d.ts +8 -0
- package/dist/{server-api-XIKDWSNO.js → server-api-A34TABT2.js} +2 -2
- package/dist/shared/build-entries.d.ts +3 -1
- package/dist/shared/color.d.ts +1 -1
- package/dist/shared/fetchWithRetry.d.ts +6 -0
- package/dist/shared/frame.d.ts +1 -1
- package/dist/shared/identity-storage.d.ts +6 -4
- package/dist/shared/identity.d.ts +1 -3
- package/dist/shared/index.d.ts +5 -5
- package/dist/shared/index.js +1 -1
- package/dist/shared/measurement-analytics.d.ts +1 -0
- package/dist/shared/measurement-policy.d.ts +6 -0
- package/dist/shared/measurement-proof.d.ts +5 -0
- package/dist/shared/measurement-store.d.ts +34 -0
- package/dist/shared/measurement-writer.d.ts +6 -0
- package/dist/shared/publishCredential.d.ts +1 -1
- package/dist/shared/reporting-gate.d.ts +3 -1
- package/dist/shared/site-token-claims.d.ts +18 -0
- package/dist/shared/site-token-configuration.d.ts +9 -0
- package/dist/shared/site-token-refresh.d.ts +7 -0
- package/dist/shared/site-token-state.d.ts +23 -0
- package/dist/shared/siteToken.d.ts +5 -39
- package/dist/shared/sonor-auth-state.d.ts +3 -0
- package/dist/shared/sonor-beacon.d.ts +13 -0
- package/dist/shared/sonor-fetch-runtime.d.ts +2 -0
- package/dist/shared/sonor-fetch.d.ts +7 -0
- package/dist/shared/sonorFetch.d.ts +4 -49
- package/dist/shared/version.d.ts +1 -1
- package/dist/signal/ReviewedSignalExperiment.d.ts +9 -0
- package/dist/signal/SignalBridge.d.ts +4 -4
- package/dist/signal/SignalCore.d.ts +2 -1
- package/dist/signal/SignalExperiment.d.ts +13 -5
- package/dist/signal/index.d.ts +3 -3
- package/dist/signal/index.js +4 -73
- package/dist/signal/store.d.ts +10 -7
- package/dist/signal/types.d.ts +4 -0
- package/dist/sitemap/index.d.ts +5 -5
- package/dist/sitemap/index.js +3 -3
- package/dist/sites/contract.d.ts +1 -1
- package/dist/sites/normalize.d.ts +1 -1
- package/dist/slots/ManagedLink.d.ts +2 -2
- package/dist/slots/ManagedList.d.ts +2 -2
- package/dist/slots/ManagedRichText.d.ts +1 -1
- package/dist/slots/ManagedSlot.d.ts +1 -1
- package/dist/slots/contract.d.ts +1 -1
- package/dist/slots/edit/locate.d.ts +1 -1
- package/dist/slots/index.d.ts +14 -14
- package/dist/slots/index.js +2 -2
- package/dist/slots/server-api.d.ts +1 -1
- package/dist/{chunk-FLOJUMFR.js → sonor-fetch-runtime-3PFGUXMF.js} +27 -36
- package/dist/sync/AddToCalendar.d.ts +1 -1
- package/dist/sync/BookingWidget.d.ts +1 -1
- package/dist/sync/MeetingFormatStep.d.ts +1 -1
- package/dist/sync/api.d.ts +2 -2
- package/dist/sync/booking-flow.d.ts +1 -1
- package/dist/sync/index.d.ts +3 -3
- package/dist/sync/index.js +6 -7
- package/dist/types.d.ts +6 -6
- package/dist/website/BlocksPopup.d.ts +1 -1
- package/dist/website/PopupBlocks.d.ts +1 -1
- package/dist/website/SiteDesignReporter.d.ts +2 -2
- package/dist/website/SitePopups.d.ts +1 -1
- package/dist/website/contract.d.ts +1 -1
- package/dist/website/cta-bar.d.ts +1 -1
- package/dist/website/cta-bar.js +4 -3
- package/dist/website/design.d.ts +2 -2
- package/dist/website/images/server.d.ts +1 -1
- package/dist/website/images-server.d.ts +1 -1
- package/dist/website/images.d.ts +1 -1
- package/dist/website/images.js +2 -4
- package/dist/website/index.d.ts +4 -4
- package/dist/website/index.js +5 -6
- package/dist/website/landing/server.d.ts +1 -1
- package/dist/website/landing/server.js +11 -6
- package/dist/website/landing-server.d.ts +1 -1
- package/dist/website/landing.d.ts +1 -1
- package/dist/website/landing.js +3 -2
- package/dist/website/popup-rules.d.ts +2 -2
- package/dist/website/popup-types.d.ts +1 -1
- package/dist/website/popups.d.ts +4 -4
- package/dist/website/popups.js +14 -8
- package/dist/website/slots/contract.d.ts +1 -1
- package/dist/website/slots-contract.d.ts +1 -1
- package/dist/website/slots.d.ts +2 -2
- package/dist/website/slots.js +2 -2
- package/dist/{writeLLMsTxt-4HHUAOA6.js → writeLLMsTxt-JUACXQKP.js} +2 -2
- package/docs.json +5 -0
- package/package.json +8 -2
- package/src/analytics/README.md +21 -0
- package/src/cta-bar/README.md +4 -0
- package/src/forms/README.md +29 -0
- package/src/landing/README.md +14 -0
- package/src/layout/README.md +3 -0
- package/src/og/README.md +28 -0
- package/src/resonance/README.md +273 -0
- package/src/runtime/README.md +6 -1
- package/src/signal/README.md +21 -0
- package/src/website/README.md +14 -2
- package/dist/AnalyticsProvider-7SBJ27SI.js +0 -13
- package/dist/ChatWidget-V46UBDOM.js +0 -20
- package/dist/ManagedForm-DDDVMKLJ.js +0 -19
- package/dist/SitePopups-VU2C3Z6B.js +0 -13
- package/dist/SitemapSync-C4H3HF3L.js +0 -9
- package/dist/chunk-5ROTTMBL.js +0 -19
- package/dist/chunk-5TM3WPCI.js +0 -7
- package/dist/chunk-7HW4TZB5.js +0 -148
- package/dist/chunk-IPQKQEWI.js +0 -52
- package/dist/chunk-LCDVPAMR.js +0 -24
- package/dist/chunk-SHAUX2MQ.js +0 -163
- /package/dist/{chunk-3MJNBOUO.js → chunk-2QPVU63T.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { measurementStore } from './chunk-FRY6PBT6.js';
|
|
2
|
+
|
|
3
|
+
// src/shared/measurement-proof.ts
|
|
4
|
+
function currentSubjectProof(now = Date.now()) {
|
|
5
|
+
const { proof, config, cmpValid } = measurementStore.current;
|
|
6
|
+
if (!proof || !config || !config.enabled || !cmpValid || Date.parse(config.expiresAt) <= now || Date.parse(proof.expiresAt) <= now) return null;
|
|
7
|
+
const first = proof.receipts[0];
|
|
8
|
+
return first.projectId === config.projectId && first.site === config.site && first.configRevision === config.configRevision && first.policyRevision === config.policyRevision ? proof : null;
|
|
9
|
+
}
|
|
10
|
+
function advertisingPurposesPermitted(now = Date.now()) {
|
|
11
|
+
const proof = currentSubjectProof(now);
|
|
12
|
+
if (!proof || !measurementStore.current.config) return false;
|
|
13
|
+
const needed = /* @__PURE__ */ new Set(["ad_storage", "ad_user_data", "ad_personalization", ...measurementStore.current.config.consentPolicy.requiredPurposes]);
|
|
14
|
+
return [...needed].every((p) => measurementStore.current.choices[p] === "granted" && proof.receipts.some((r) => r.purpose === p && r.state === "granted" && r.consentRevision === proof.currentConsentRevision));
|
|
15
|
+
}
|
|
16
|
+
function experimentMeasurementPermitted(now = Date.now()) {
|
|
17
|
+
return !!currentSubjectProof(now) && measurementStore.current.choices.analytics_storage === "granted";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { advertisingPurposesPermitted, currentSubjectProof, experimentMeasurementPermitted };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { measurementStore, analyticsPurposePermitted } from './chunk-FRY6PBT6.js';
|
|
2
|
+
|
|
3
|
+
// src/shared/measurement-writer.ts
|
|
4
|
+
var listeners = measurementStore.listeners;
|
|
5
|
+
function updateMeasurementPolicy(patch) {
|
|
6
|
+
const before = analyticsPurposePermitted(), oldScope = measurementStore.current.identityScope;
|
|
7
|
+
measurementStore.current = { ...measurementStore.current, ...patch, version: measurementStore.current.version + 1 };
|
|
8
|
+
if (patch.choices && patch.cmpValid !== false && patch.choices.analytics_storage !== measurementStore.lastObservedAnalyticsChoice) {
|
|
9
|
+
measurementStore.lastObservedAnalyticsChoice = patch.choices.analytics_storage;
|
|
10
|
+
measurementStore.current = { ...measurementStore.current, analyticsChoiceEpoch: measurementStore.current.analyticsChoiceEpoch + 1 };
|
|
11
|
+
}
|
|
12
|
+
if (before !== analyticsPurposePermitted() || oldScope !== measurementStore.current.identityScope) measurementStore.current = { ...measurementStore.current, collectionEpoch: measurementStore.current.collectionEpoch + 1 };
|
|
13
|
+
for (const listener of listeners) {
|
|
14
|
+
try {
|
|
15
|
+
listener();
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function setFirstPartyIdentityScope(projectId, site) {
|
|
21
|
+
const next = measurementStore.current.config ? `${measurementStore.current.config.projectId}:${measurementStore.current.config.site}:${measurementStore.current.config.configRevision}` : projectId && site ? `${projectId}:${site}:legacy` : null;
|
|
22
|
+
if (next !== measurementStore.current.identityScope) updateMeasurementPolicy({ identityScope: next });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { setFirstPartyIdentityScope, updateMeasurementPolicy };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { trackedFreshFetch } from './chunk-UAYAJPEP.js';
|
|
2
|
-
import { isNextControlFlow } from './chunk-
|
|
2
|
+
import { isNextControlFlow } from './chunk-7VMA3KCN.js';
|
|
3
3
|
import { monotonicMs } from './chunk-MH2DSGC6.js';
|
|
4
|
-
import { SITE_KIT_VERSION } from './chunk-
|
|
4
|
+
import { SITE_KIT_VERSION } from './chunk-DXE6SXWW.js';
|
|
5
5
|
import 'server-only';
|
|
6
6
|
|
|
7
7
|
var MINT_PATH = "/api/public/site-token";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { currentSubjectProof, advertisingPurposesPermitted, experimentMeasurementPermitted } from './chunk-KMNHNCVG.js';
|
|
2
|
+
import { resonanceControllerState } from './chunk-MOACHHOJ.js';
|
|
3
|
+
import { measurementPolicySnapshot } from './chunk-FRY6PBT6.js';
|
|
4
|
+
|
|
5
|
+
// src/resonance/form-context.ts
|
|
6
|
+
function currentResonanceFormContext(projectId, site) {
|
|
7
|
+
const config = measurementPolicySnapshot().config;
|
|
8
|
+
const proof = currentSubjectProof();
|
|
9
|
+
if (!config || config.projectId !== projectId || config.site !== site || !proof || !advertisingPurposesPermitted() && !experimentMeasurementPermitted()) return null;
|
|
10
|
+
return { subjectProof: proof.subjectProof, exposureId: resonanceControllerState.controller?.formExposureId() ?? null };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { currentResonanceFormContext };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/resonance/controller-registry.ts
|
|
2
|
+
var makeStore = () => ({ controller: null, blockers: [], registrationConflict: false });
|
|
3
|
+
var resonanceControllerState = typeof window === "undefined" ? makeStore() : window.__SONOR_RESONANCE_RUNTIME_V1__ ?? (window.__SONOR_RESONANCE_RUNTIME_V1__ = makeStore());
|
|
4
|
+
function recordRenderedResonanceExposure(exposure, context) {
|
|
5
|
+
try {
|
|
6
|
+
const controller = resonanceControllerState.controller;
|
|
7
|
+
const pending = context ? controller?.renderedExposure(exposure, context) : controller?.renderedExposure(exposure);
|
|
8
|
+
if (!pending) return false;
|
|
9
|
+
void pending.catch(() => {
|
|
10
|
+
});
|
|
11
|
+
return true;
|
|
12
|
+
} catch {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function releaseRenderedResonanceExposure(exposure) {
|
|
17
|
+
resonanceControllerState.controller?.releaseRenderedExposure(exposure);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { recordRenderedResonanceExposure, releaseRenderedResonanceExposure, resonanceControllerState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { detectTimezone, releaseSlotHold, fetchBookingTypeDetails, fetchBookingTypes, fetchAvailability, createSlotHold, createBooking, formatDuration, formatDate, formatTime, prepareMeeting } from './chunk-
|
|
2
|
+
import { detectTimezone, releaseSlotHold, fetchBookingTypeDetails, fetchBookingTypes, fetchAvailability, createSlotHold, createBooking, formatDuration, formatDate, formatTime, prepareMeeting } from './chunk-ZRSXCT4O.js';
|
|
3
3
|
import { readPublishedApiConfig, DEFAULT_SONOR_API_URL } from './chunk-W7OPEMGJ.js';
|
|
4
4
|
import { useState, useRef, useMemo, useCallback, useEffect, useId } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// src/contracts/resonance-constants.ts
|
|
2
|
+
var RESONANCE_ATTRIBUTION_MODEL = "first_party_last_touch_marker_v1";
|
|
3
|
+
var RESONANCE_SOURCE_MARKER_PARAMETER = "sonor_source";
|
|
4
|
+
var RESONANCE_SUBJECT_HEADER = "X-Sonor-Resonance-Subject";
|
|
5
|
+
|
|
6
|
+
export { RESONANCE_ATTRIBUTION_MODEL, RESONANCE_SOURCE_MARKER_PARAMETER, RESONANCE_SUBJECT_HEADER };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { isBlockedPublicUrlHost } from './chunk-XS2ORMUG.js';
|
|
2
|
-
import { LandingPage } from './chunk-
|
|
3
|
-
import { normalizeCampaignSlug } from './chunk-
|
|
2
|
+
import { LandingPage } from './chunk-XJZLXUTG.js';
|
|
3
|
+
import { normalizeCampaignSlug } from './chunk-2QPVU63T.js';
|
|
4
4
|
import { landingPageMetadata } from './chunk-JESLPEST.js';
|
|
5
|
-
import { ServerForm } from './chunk-
|
|
6
|
-
import { serverApiFetch } from './chunk-
|
|
5
|
+
import { ServerForm } from './chunk-S63QY5XW.js';
|
|
6
|
+
import { serverApiFetch, ServerApiFetchError } from './chunk-7VMA3KCN.js';
|
|
7
7
|
import { normalizeSiteHost } from './chunk-A4CC4ZG3.js';
|
|
8
|
+
import { SignalExperiment } from './chunk-F3RKFGRW.js';
|
|
8
9
|
import 'server-only';
|
|
9
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
11
|
|
|
@@ -37,6 +38,7 @@ var integer = (minimum, maximum = Number.MAX_SAFE_INTEGER) => ({ type: "integer"
|
|
|
37
38
|
var nullable = (shape) => ({ oneOf: [shape, { type: "null" }] });
|
|
38
39
|
var isoDate = { type: "string", pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$" };
|
|
39
40
|
var uuid = { type: "string", pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" };
|
|
41
|
+
var fingerprint = { type: "string", pattern: "^[a-f0-9]{64}$" };
|
|
40
42
|
var slug = { ...string(80), pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$" };
|
|
41
43
|
var fieldSlug = { ...string(80), pattern: "^[a-zA-Z0-9_-]+$" };
|
|
42
44
|
var path = { ...string(512), pattern: "^/(?!/)[a-zA-Z0-9/_-]*$" };
|
|
@@ -54,6 +56,22 @@ var override = object({
|
|
|
54
56
|
}, []);
|
|
55
57
|
var bodyBlock = { oneOf: [object({ type: literal("paragraph"), text: string(2e3) }), object({ type: literal("bullets"), items: array(string(500), 8, 1) })] };
|
|
56
58
|
var body = array(bodyBlock, 12);
|
|
59
|
+
var publishedContentFields = { headline: string(160), body };
|
|
60
|
+
var authoredExperimentShape = object({
|
|
61
|
+
experimentId: uuid,
|
|
62
|
+
experimentRevision: integer(1),
|
|
63
|
+
controlVariantKey: string(80),
|
|
64
|
+
variants: array(object({ variantKey: string(80), content: object(publishedContentFields) }), 50, 2)
|
|
65
|
+
});
|
|
66
|
+
var experimentContentShape = object({
|
|
67
|
+
schemaVersion: literal(1),
|
|
68
|
+
kind: literal("funnel_experiment_content_v1"),
|
|
69
|
+
experimentId: uuid,
|
|
70
|
+
experimentRevision: integer(1),
|
|
71
|
+
goalRevision: { ...string(128), pattern: "^[a-zA-Z0-9._:-]+$" },
|
|
72
|
+
controlVariantKey: string(80),
|
|
73
|
+
variants: array(object({ variantKey: string(80), content: object(publishedContentFields), contentDigest: fingerprint }), 50, 2)
|
|
74
|
+
});
|
|
57
75
|
var publicBrand = object({ displayName: string(120), tagline: string(300, 0), fullLogoUrl: nullable(string(2048)), squareLogoUrl: nullable(string(2048)), colors, typography, scheme: enumeration("light", "dark") });
|
|
58
76
|
var step = { oneOf: [
|
|
59
77
|
object({ id: uuid, type: literal("wait"), durationSeconds: integer(60, 2592e3) }),
|
|
@@ -68,7 +86,7 @@ var definitionShape = object({
|
|
|
68
86
|
site,
|
|
69
87
|
entry: object({ formId: uuid, mode: literal("future_accepted_form_only") }),
|
|
70
88
|
goal: object({ type: enumeration("newsletter_confirmed", "guide_requested", "inquiry_received", "booking_confirmed"), bookingTypeId: nullable(uuid) }, ["type"]),
|
|
71
|
-
page: object({ mode: enumeration("existing", "managed"), path, slug: nullable(slug), headline: string(160, 0), body, formId: uuid, offerAssetId: nullable(uuid) }, ["mode", "path", "headline", "body", "formId"]),
|
|
89
|
+
page: object({ mode: enumeration("existing", "managed"), path, slug: nullable(slug), headline: string(160, 0), body, formId: uuid, offerAssetId: nullable(uuid), experiment: authoredExperimentShape }, ["mode", "path", "headline", "body", "formId"]),
|
|
72
90
|
permission: object({ mode: enumeration("requested_only", "marketing_opt_in"), optInFieldSlug: nullable(fieldSlug) }, ["mode"]),
|
|
73
91
|
brandOverride: override,
|
|
74
92
|
steps: array(step, 8),
|
|
@@ -91,7 +109,11 @@ draftProps.steps.items.oneOf = draftProps.steps.items.oneOf.map((item) => {
|
|
|
91
109
|
if (fields.tag) fields.tag = string(80, 0);
|
|
92
110
|
return item;
|
|
93
111
|
});
|
|
94
|
-
|
|
112
|
+
var draftBody = array({ oneOf: [object({ type: literal("paragraph"), text: string(2e3, 0) }), object({ type: literal("bullets"), items: array(string(500, 0), 8, 1) })] }, 12);
|
|
113
|
+
draftProps.page.properties.body = draftBody;
|
|
114
|
+
var draftExperimentContent = draftProps.page.properties.experiment.properties.variants.items.properties.content.properties;
|
|
115
|
+
draftExperimentContent.headline = string(160, 0);
|
|
116
|
+
draftExperimentContent.body = draftBody;
|
|
95
117
|
var FUNNEL_DRAFT_DEFINITION_JSON_SCHEMA = { $schema: "http://json-schema.org/draft-07/schema#", ...draftDefinitionShape };
|
|
96
118
|
var FUNNEL_DEFINITION_JSON_SCHEMA = { $schema: "http://json-schema.org/draft-07/schema#", ...definitionShape };
|
|
97
119
|
var publishedShape = object({
|
|
@@ -101,11 +123,14 @@ var publishedShape = object({
|
|
|
101
123
|
revision: integer(1),
|
|
102
124
|
site,
|
|
103
125
|
path,
|
|
104
|
-
content: object({
|
|
126
|
+
content: object({ ...publishedContentFields, offer: object({ label: string(120), href: string(2048) }) }, ["headline", "body"]),
|
|
105
127
|
brand: publicBrand,
|
|
106
128
|
conversion: object({ formSlug: fieldSlug }),
|
|
107
|
-
tracking: object({ campaignSlug: slug })
|
|
108
|
-
|
|
129
|
+
tracking: object({ campaignSlug: slug }),
|
|
130
|
+
experimentContent: experimentContentShape
|
|
131
|
+
}, ["schemaVersion", "id", "versionId", "revision", "site", "path", "content", "brand", "conversion", "tracking"]);
|
|
132
|
+
({ ...authoredExperimentShape });
|
|
133
|
+
({ ...experimentContentShape });
|
|
109
134
|
var PUBLISHED_FUNNEL_PAGE_JSON_SCHEMA = { $schema: "http://json-schema.org/draft-07/schema#", ...publishedShape };
|
|
110
135
|
var FUNNEL_LAUNCH_JSON_SCHEMA = object({ expectedRevision: integer(1), previewId: uuid, idempotencyKey: string(200), confirm: literal(true) });
|
|
111
136
|
var FUNNEL_LIFECYCLE_JSON_SCHEMA = object({ expectedActiveVersionId: uuid, idempotencyKey: string(200), confirm: literal(true) });
|
|
@@ -190,14 +215,32 @@ function parsePublishedFunnelPage(value) {
|
|
|
190
215
|
checkFonts(result.brand, "page.brand");
|
|
191
216
|
checkBody(result.content.body, "page.content.body");
|
|
192
217
|
if (result.content.offer && !isSafeFunnelPublicUrl(result.content.offer.href)) fail("page.content.offer.href", "unsafe public URL");
|
|
218
|
+
if (result.experimentContent) result.experimentContent = parseFunnelExperimentContent(result.experimentContent);
|
|
193
219
|
return result;
|
|
194
220
|
}
|
|
221
|
+
function checkExperimentVariants(value, at) {
|
|
222
|
+
const keys = value.variants.map((variant) => variant.variantKey);
|
|
223
|
+
if (new Set(keys).size !== keys.length) fail(`${at}.variants`, "variant keys must be unique");
|
|
224
|
+
if (!keys.includes(value.controlVariantKey)) fail(`${at}.controlVariantKey`, "must identify an existing variant");
|
|
225
|
+
value.variants.forEach((variant, i) => checkBody(variant.content.body, `${at}.variants[${i}].content.body`));
|
|
226
|
+
}
|
|
227
|
+
function parseFunnelExperimentContent(value) {
|
|
228
|
+
check(value, experimentContentShape, "experimentContent");
|
|
229
|
+
const result = JSON.parse(JSON.stringify(value));
|
|
230
|
+
checkExperimentVariants(result, "experimentContent");
|
|
231
|
+
return result;
|
|
232
|
+
}
|
|
233
|
+
function resolveFunnelExperimentContent(value, variantKey) {
|
|
234
|
+
const page = parsePublishedFunnelPage(value);
|
|
235
|
+
const variant = page.experimentContent?.variants.find((v) => v.variantKey === variantKey);
|
|
236
|
+
if (!variant) fail("page.experimentContent.variants", "an existing reviewed variant is required");
|
|
237
|
+
return { ...page.content, headline: variant.content.headline, body: variant.content.body };
|
|
238
|
+
}
|
|
195
239
|
var FUNNEL_CREATE_JSON_SCHEMA = object({ idempotencyKey: string(200), definition: draftDefinitionShape });
|
|
196
240
|
var FUNNEL_UPDATE_JSON_SCHEMA = object({ expectedRevision: integer(1), idempotencyKey: string(200), definition: draftDefinitionShape });
|
|
197
241
|
var FUNNEL_REVISION_JSON_SCHEMA = object({ expectedRevision: integer(1) });
|
|
198
242
|
var FUNNEL_RETRY_JSON_SCHEMA = object({ expectedAttempt: integer(0, 100), idempotencyKey: string(200), confirm: literal(true) });
|
|
199
243
|
var FUNNEL_DRAFT_JSON_SCHEMAS = { create: FUNNEL_CREATE_JSON_SCHEMA, update: FUNNEL_UPDATE_JSON_SCHEMA };
|
|
200
|
-
var fingerprint = { type: "string", pattern: "^[a-f0-9]{64}$" };
|
|
201
244
|
var issue = object({ code: { ...string(80), pattern: "^[A-Z][A-Z0-9_]*$" }, path: string(300), message: string(500), fixRef: object({ section: string(80), field: string(80), resourceId: uuid }, ["section"]) }, ["code", "path", "message"]);
|
|
202
245
|
var FUNNEL_READINESS_JSON_SCHEMA = object({ definitionRevision: integer(1), brandFingerprint: fingerprint, resourceFingerprint: fingerprint, ready: { type: "boolean" }, blockers: array(issue, 50), warnings: array(issue, 50), capabilities: object({ managedPage: { type: "boolean" } }) });
|
|
203
246
|
var funnelDetailShape = object({ id: uuid, revision: integer(1), definition: draftDefinitionShape, activeVersionId: nullable(uuid), lifecycle: enumeration("draft", "active", "paused"), health: enumeration("healthy", "waiting", "needs_attention", "unknown"), hasDraftChanges: { type: "boolean" }, readiness: FUNNEL_READINESS_JSON_SCHEMA });
|
|
@@ -311,7 +354,13 @@ for (const schema of [FUNNEL_DEFINITION_JSON_SCHEMA, FUNNEL_DRAFT_DEFINITION_JSO
|
|
|
311
354
|
var FUNNEL_VERSION_JSON_SCHEMA = object({ versionId: uuid, definitionRevision: integer(1), publishedAt: isoDate, brandFingerprint: fingerprint, resourceFingerprint: fingerprint, active: { type: "boolean" } });
|
|
312
355
|
var FUNNEL_VERSION_DETAIL_JSON_SCHEMA = object({ ...FUNNEL_VERSION_JSON_SCHEMA.properties, rollbackEvidence: FUNNEL_ROLLBACK_EVIDENCE_JSON_SCHEMA });
|
|
313
356
|
for (const schema of [FUNNEL_LAUNCH_EVIDENCE_JSON_SCHEMA, FUNNEL_ROLLBACK_EVIDENCE_JSON_SCHEMA, FUNNEL_VERSION_JSON_SCHEMA, FUNNEL_VERSION_DETAIL_JSON_SCHEMA]) freezeSchema(schema);
|
|
314
|
-
function
|
|
357
|
+
function FunnelPageCopy({ content, headingFamily, headingId }) {
|
|
358
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
359
|
+
/* @__PURE__ */ jsx("h1", { id: headingId, style: { fontFamily: headingFamily }, children: content.headline }),
|
|
360
|
+
content.body.map((block, index) => block.type === "paragraph" ? /* @__PURE__ */ jsx("p", { children: block.text }, index) : /* @__PURE__ */ jsx("ul", { children: block.items.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }, index))
|
|
361
|
+
] });
|
|
362
|
+
}
|
|
363
|
+
function FunnelPageContent({ page: input, conversion, preview = false, copy }) {
|
|
315
364
|
const page = parsePublishedFunnelPage(input);
|
|
316
365
|
const { brand, content } = page;
|
|
317
366
|
const tokens = {
|
|
@@ -341,9 +390,8 @@ function FunnelPageContent({ page: input, conversion, preview = false }) {
|
|
|
341
390
|
] })
|
|
342
391
|
] }),
|
|
343
392
|
/* @__PURE__ */ jsxs("div", { className: "sk-funnel-grid", children: [
|
|
344
|
-
/* @__PURE__ */ jsxs("section", { "aria-label": content.headline, children: [
|
|
345
|
-
/* @__PURE__ */ jsx(
|
|
346
|
-
content.body.map((block, index) => block.type === "paragraph" ? /* @__PURE__ */ jsx("p", { children: block.text }, index) : /* @__PURE__ */ jsx("ul", { children: block.items.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }, index)),
|
|
393
|
+
/* @__PURE__ */ jsxs("section", { "aria-label": copy === void 0 ? content.headline : void 0, "aria-labelledby": copy === void 0 ? void 0 : `sk-funnel-${page.id}`, children: [
|
|
394
|
+
copy ?? /* @__PURE__ */ jsx(FunnelPageCopy, { content, headingFamily: brand.typography.headingFamily }),
|
|
347
395
|
content.offer && (preview ? /* @__PURE__ */ jsx("p", { children: content.offer.label }) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", { href: content.offer.href, rel: "noopener noreferrer", children: content.offer.label }) }))
|
|
348
396
|
] }),
|
|
349
397
|
/* @__PURE__ */ jsx("section", { className: "sk-funnel-conversion", "aria-label": "Response form", children: preview ? /* @__PURE__ */ jsx("p", { className: "sk-funnel-preview", role: "status", children: "Form preview. Submissions are disabled." }) : conversion })
|
|
@@ -361,14 +409,20 @@ async function getPublishedFunnelPage(slug2, options) {
|
|
|
361
409
|
}
|
|
362
410
|
const site2 = normalizeSiteHost(options.site);
|
|
363
411
|
if (!site2 || !/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(site2)) throw new Error("An explicit canonical registered site is required");
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
412
|
+
let data;
|
|
413
|
+
try {
|
|
414
|
+
data = await serverApiFetch(`/api/public/funnels/${encodeURIComponent(slug2)}?site=${encodeURIComponent(site2)}`, {
|
|
415
|
+
apiKey: options.apiKey,
|
|
416
|
+
apiUrl: options.apiUrl,
|
|
417
|
+
revalidate: 0,
|
|
418
|
+
init: { cache: "no-store" },
|
|
419
|
+
throwOnError: true,
|
|
420
|
+
logPrefix: "@sonordev/site-kit/landing"
|
|
421
|
+
});
|
|
422
|
+
} catch (error) {
|
|
423
|
+
if (error instanceof ServerApiFetchError && error.category === "http" && error.status === 404) return null;
|
|
424
|
+
throw error;
|
|
425
|
+
}
|
|
372
426
|
const page = parsePublishedFunnelPage(data);
|
|
373
427
|
if (page.site !== site2 || page.path !== path2) throw new Error("Published funnel page scope mismatch");
|
|
374
428
|
return page;
|
|
@@ -381,6 +435,33 @@ async function ManagedFunnelPage({ page: input, preview = false, configOptions }
|
|
|
381
435
|
const page = parsePublishedFunnelPage(input);
|
|
382
436
|
if (preview) return /* @__PURE__ */ jsx(FunnelPageContent, { page, preview: true });
|
|
383
437
|
const form = await ServerForm({ formId: page.conversion.formSlug, defer: false, enter: "none", configOptions });
|
|
438
|
+
if (page.experimentContent) {
|
|
439
|
+
const manifest = page.experimentContent;
|
|
440
|
+
const variants = Object.fromEntries(manifest.variants.map(({ variantKey }) => [
|
|
441
|
+
variantKey,
|
|
442
|
+
/* @__PURE__ */ jsx(FunnelPageCopy, { content: resolveFunnelExperimentContent(page, variantKey), headingFamily: page.brand.typography.headingFamily, headingId: `sk-funnel-${page.id}` })
|
|
443
|
+
]));
|
|
444
|
+
const copy = /* @__PURE__ */ jsx(
|
|
445
|
+
SignalExperiment,
|
|
446
|
+
{
|
|
447
|
+
experimentId: manifest.experimentId,
|
|
448
|
+
variants,
|
|
449
|
+
fallback: variants[manifest.controlVariantKey],
|
|
450
|
+
reviewedContext: {
|
|
451
|
+
site: page.site,
|
|
452
|
+
pagePath: page.path,
|
|
453
|
+
pageVersionId: page.versionId,
|
|
454
|
+
experimentRevision: manifest.experimentRevision,
|
|
455
|
+
controlVariantKey: manifest.controlVariantKey
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
page.versionId
|
|
459
|
+
);
|
|
460
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
461
|
+
/* @__PURE__ */ jsx(LandingPage, { campaign: page.tracking.campaignSlug, robotsMeta: false }),
|
|
462
|
+
/* @__PURE__ */ jsx(FunnelPageContent, { page, copy, conversion: form })
|
|
463
|
+
] });
|
|
464
|
+
}
|
|
384
465
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
385
466
|
/* @__PURE__ */ jsx(LandingPage, { campaign: page.tracking.campaignSlug, robotsMeta: false }),
|
|
386
467
|
/* @__PURE__ */ jsx(FunnelPageContent, { page, conversion: form })
|
|
@@ -22,7 +22,7 @@ function useFieldControls(fields) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
if (needsFile) {
|
|
25
|
-
import('./FileField-
|
|
25
|
+
import('./FileField-YWMSK7RF.js').then((m) => {
|
|
26
26
|
if (!cancelled) setControls((prev) => ({ ...prev, File: m.FileField }));
|
|
27
27
|
}).catch(() => {
|
|
28
28
|
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { RESONANCE_SUBJECT_HEADER } from './chunk-NHDRA4Y5.js';
|
|
2
|
+
import { currentCredential } from './chunk-D4M5K6JN.js';
|
|
3
|
+
import { sameSite } from './chunk-NZOJHERI.js';
|
|
4
|
+
import { currentSubjectProof } from './chunk-KMNHNCVG.js';
|
|
5
|
+
import { SITE_KIT_VERSION } from './chunk-DXE6SXWW.js';
|
|
6
|
+
import { resolveAnalyticsTarget } from './chunk-7643MCD2.js';
|
|
7
|
+
import { sonorFetch } from './chunk-VXCUXHZO.js';
|
|
8
|
+
import { readPublishedApiConfig } from './chunk-W7OPEMGJ.js';
|
|
9
|
+
import { normalizeSiteHost } from './chunk-A4CC4ZG3.js';
|
|
10
|
+
import { analyticsPurposePermitted, measurementPolicySnapshot } from './chunk-FRY6PBT6.js';
|
|
11
|
+
|
|
12
|
+
// src/shared/sonor-beacon.ts
|
|
13
|
+
function sonorBeaconWithContext(url, payload, apiKey, contextHeaders) {
|
|
14
|
+
const credential = currentCredential(apiKey);
|
|
15
|
+
const body = typeof payload === "string" ? payload : JSON.stringify(payload);
|
|
16
|
+
try {
|
|
17
|
+
void fetch(url, {
|
|
18
|
+
method: "POST",
|
|
19
|
+
keepalive: true,
|
|
20
|
+
headers: {
|
|
21
|
+
...contextHeaders,
|
|
22
|
+
"Content-Type": "application/json",
|
|
23
|
+
"x-sitekit-version": SITE_KIT_VERSION,
|
|
24
|
+
...credential ? { "x-api-key": credential } : {}
|
|
25
|
+
},
|
|
26
|
+
body
|
|
27
|
+
}).catch(() => {
|
|
28
|
+
});
|
|
29
|
+
} catch {
|
|
30
|
+
if (Object.keys(contextHeaders).length) return;
|
|
31
|
+
try {
|
|
32
|
+
if (typeof navigator !== "undefined" && navigator.sendBeacon) {
|
|
33
|
+
navigator.sendBeacon(url, new Blob([body], { type: "application/json" }));
|
|
34
|
+
}
|
|
35
|
+
} catch {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/analytics/send-gate.ts
|
|
41
|
+
function currentAnalyticsHeaders(path, apiUrl) {
|
|
42
|
+
if (!/^\/(?:api\/public\/analytics\/(?:page-view|session|scroll-depth|heatmap-click|web-vitals|event|conversion)|api\/public\/forms\/analytics\/(?:start|step|complete|abandon)|engage\/widget\/(?:event|impression|click))$/.test(path)) return {};
|
|
43
|
+
const proof = currentSubjectProof(), config = measurementPolicySnapshot().config;
|
|
44
|
+
if (!proof || !config || typeof window === "undefined" || readPublishedApiConfig().apiUrl !== apiUrl || !sameSite(normalizeSiteHost(window.location.hostname), config.site)) return {};
|
|
45
|
+
return { [RESONANCE_SUBJECT_HEADER]: proof.subjectProof };
|
|
46
|
+
}
|
|
47
|
+
var resolveAnalyticsTarget2 = (options = {}) => analyticsPurposePermitted() && (options.measurementEpoch === void 0 || options.measurementEpoch === measurementPolicySnapshot().collectionEpoch) ? resolveAnalyticsTarget(options) : null;
|
|
48
|
+
async function analyticsSend(path, body, options = {}) {
|
|
49
|
+
const dispatchOptions = { ...options, measurementEpoch: options.measurementEpoch ?? measurementPolicySnapshot().collectionEpoch };
|
|
50
|
+
const target = resolveAnalyticsTarget2(dispatchOptions);
|
|
51
|
+
if (!target) return null;
|
|
52
|
+
try {
|
|
53
|
+
return await sonorFetch(
|
|
54
|
+
`${target.apiUrl}${path}`,
|
|
55
|
+
{
|
|
56
|
+
method: options.method || "POST",
|
|
57
|
+
headers: { "Content-Type": "application/json" },
|
|
58
|
+
...options.keepalive ? { keepalive: true } : {},
|
|
59
|
+
...body === void 0 ? {} : { body: JSON.stringify(body) }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
apiKey: target.apiKey,
|
|
63
|
+
retries: options.retries ?? 0,
|
|
64
|
+
shouldSend: () => !!resolveAnalyticsTarget2(dispatchOptions),
|
|
65
|
+
prepareAttempt: (init) => ({ ...init, headers: { ...Object.fromEntries(new Headers(init.headers)), ...currentAnalyticsHeaders(path, target.apiUrl) } })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
} catch {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function analyticsBeacon(path, body, options = {}) {
|
|
73
|
+
const target = resolveAnalyticsTarget2(options);
|
|
74
|
+
if (!target) return;
|
|
75
|
+
sonorBeaconWithContext(`${target.apiUrl}${path}`, body, target.apiKey, currentAnalyticsHeaders(path, target.apiUrl));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { analyticsBeacon, analyticsSend, resolveAnalyticsTarget2 as resolveAnalyticsTarget };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { identityStorageKeys, memoryIdentity } from './chunk-5IVD6G77.js';
|
|
2
|
+
import { analyticsPurposePermitted } from './chunk-FRY6PBT6.js';
|
|
3
|
+
|
|
4
|
+
// src/shared/identity-reader.ts
|
|
5
|
+
function readKey(kind, key) {
|
|
6
|
+
try {
|
|
7
|
+
return window[kind].getItem(key) || null;
|
|
8
|
+
} catch {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function readAnalyticsIdentity() {
|
|
13
|
+
if (typeof window === "undefined" || !analyticsPurposePermitted()) return { sessionId: null, visitorId: null };
|
|
14
|
+
const keys = identityStorageKeys();
|
|
15
|
+
return {
|
|
16
|
+
sessionId: readKey("sessionStorage", keys.session) || memoryIdentity.sessionId || null,
|
|
17
|
+
visitorId: readKey("localStorage", keys.visitor) || memoryIdentity.visitorId || null
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { readAnalyticsIdentity };
|
|
@@ -330,7 +330,7 @@ async function generateLLMsTxt(options) {
|
|
|
330
330
|
if (includeEntities) {
|
|
331
331
|
attemptedSections.push("knowledge-graph");
|
|
332
332
|
optionalFetches.push(
|
|
333
|
-
import('./server-api-
|
|
333
|
+
import('./server-api-A34TABT2.js').then(async ({ getEntities, getPrimaryEntity }) => {
|
|
334
334
|
const [entities, primaryEntity] = await Promise.all([
|
|
335
335
|
getEntities().then((e) => e.slice(0, maxEntities)),
|
|
336
336
|
getPrimaryEntity()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateLLMsTxt, generateLLMsFullTxt, appendAgentAccessSection } from './chunk-
|
|
1
|
+
import { generateLLMsTxt, generateLLMsFullTxt, appendAgentAccessSection } from './chunk-QLJ2SC3T.js';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
3
|
import { existsSync, readFileSync } from 'fs';
|
|
4
4
|
import { join } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SLOTS_CONTRACT_VERSION, verifySlotContent, canonicalJson } from './chunk-VCJYLYJV.js';
|
|
2
2
|
import { isValidSlotId, SLOT_CONTENT_MAX_LENGTH, parseSlotRichText, normalizeSlotValue } from './chunk-LPH5FANE.js';
|
|
3
3
|
import { SITE_CACHE_TAGS } from './chunk-HY7ZEU2C.js';
|
|
4
|
-
import { resolveServerApiConfig } from './chunk-
|
|
4
|
+
import { resolveServerApiConfig } from './chunk-7VMA3KCN.js';
|
|
5
5
|
import 'server-only';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { cache } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { countStageViews, countStageQuestions, useFieldControls } from './chunk-
|
|
3
|
-
import { useFormLoadedAt, useFormTracking, submitForm, useRecaptchaWarmup, useForm } from './chunk-
|
|
2
|
+
import { countStageViews, countStageQuestions, useFieldControls } from './chunk-OUD4RTBD.js';
|
|
3
|
+
import { useFormLoadedAt, useFormTracking, submitForm, useRecaptchaWarmup, useForm } from './chunk-UG53ZW7S.js';
|
|
4
4
|
import { readAgentSubmit, formToolAttributes } from './chunk-Q6E4OPGG.js';
|
|
5
5
|
import { isFieldVisible, validateField, isFieldComplete, isDisplayOnly, unseenControlValues } from './chunk-C2FZBUSS.js';
|
|
6
6
|
import { HoneypotField } from './chunk-DXO6SBMD.js';
|
|
@@ -63,7 +63,7 @@ function FormClient({
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
let cancelled = false;
|
|
66
|
-
const load = resolvedExperience === "stage" ? import('./FormStage-
|
|
66
|
+
const load = resolvedExperience === "stage" ? import('./FormStage-VAHRVOIZ.js').then((m) => m.FormStage) : import('./FormSpotlight-MAXDW3TK.js').then((m) => m.FormSpotlight);
|
|
67
67
|
load.then((Component) => {
|
|
68
68
|
if (!cancelled) setExperience(() => Component);
|
|
69
69
|
}).catch((err) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormEnhancer } from './chunk-
|
|
1
|
+
import { FormEnhancer } from './chunk-J4LJE4NB.js';
|
|
2
2
|
import { StaticForm } from './chunk-VPZJ7ZTL.js';
|
|
3
|
-
import { serverApiFetch } from './chunk-
|
|
3
|
+
import { serverApiFetch } from './chunk-7VMA3KCN.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
async function ServerForm({
|