@sonordev/site-kit 8.8.1 → 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 +18 -0
- package/README.md +9 -0
- package/agent-manifest.json +49 -42
- 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-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/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.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/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-LQJC5S2M.js +0 -236
- package/dist/chunk-SHAUX2MQ.js +0 -163
- /package/dist/{chunk-3MJNBOUO.js → chunk-2QPVU63T.js} +0 -0
package/dist/slots/index.d.ts
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* Named, Sonor-managed copy inside developer-owned markup: text, rich text,
|
|
5
5
|
* links and lists. Static-safe, fallback-first, signature-verified.
|
|
6
6
|
*/
|
|
7
|
-
export { ManagedSlot, default } from
|
|
8
|
-
export type { ManagedSlotProps } from
|
|
9
|
-
export { ManagedRichText } from
|
|
10
|
-
export type { ManagedRichTextProps } from
|
|
11
|
-
export { ManagedLink } from
|
|
12
|
-
export type { ManagedLinkProps } from
|
|
13
|
-
export { ManagedList } from
|
|
14
|
-
export type { ManagedListProps } from
|
|
15
|
-
export { renderSlotRichText } from
|
|
16
|
-
export { getSlot, resolveSlots } from
|
|
17
|
-
export type { SlotResolveOptions } from
|
|
18
|
-
export { createSlotsRevalidateHandler, SLOTS_CACHE_TAG } from
|
|
19
|
-
export { SLOTS_CONTRACT_VERSION, SLOT_CONTENT_MAX_LENGTH, SLOT_CONTENT_TYPES, SLOT_ID_PATTERN, SLOT_LIST_MAX_ITEMS, isSafeSlotHref, isValidSlotId, normalizeSlotValue, parseSlotRichText, slotSigningPayload, signSlotContent, verifySlotContent, } from
|
|
20
|
-
export type { SlotContent, SlotContentType, SlotLinkValue, SlotListImage, SlotListItem, SlotListValue, SlotRichBlock, SlotRichInline, SlotValue, SlotsResolveRequest, SlotsResolveResponse, } from
|
|
7
|
+
export { ManagedSlot, default } from "./ManagedSlot.js";
|
|
8
|
+
export type { ManagedSlotProps } from "./ManagedSlot.js";
|
|
9
|
+
export { ManagedRichText } from "./ManagedRichText.js";
|
|
10
|
+
export type { ManagedRichTextProps } from "./ManagedRichText.js";
|
|
11
|
+
export { ManagedLink } from "./ManagedLink.js";
|
|
12
|
+
export type { ManagedLinkProps } from "./ManagedLink.js";
|
|
13
|
+
export { ManagedList } from "./ManagedList.js";
|
|
14
|
+
export type { ManagedListProps } from "./ManagedList.js";
|
|
15
|
+
export { renderSlotRichText } from "./rich.js";
|
|
16
|
+
export { getSlot, resolveSlots } from "./server-api.js";
|
|
17
|
+
export type { SlotResolveOptions } from "./server-api.js";
|
|
18
|
+
export { createSlotsRevalidateHandler, SLOTS_CACHE_TAG } from "./revalidate.js";
|
|
19
|
+
export { SLOTS_CONTRACT_VERSION, SLOT_CONTENT_MAX_LENGTH, SLOT_CONTENT_TYPES, SLOT_ID_PATTERN, SLOT_LIST_MAX_ITEMS, isSafeSlotHref, isValidSlotId, normalizeSlotValue, parseSlotRichText, slotSigningPayload, signSlotContent, verifySlotContent, } from "./contract.js";
|
|
20
|
+
export type { SlotContent, SlotContentType, SlotLinkValue, SlotListImage, SlotListItem, SlotListValue, SlotRichBlock, SlotRichInline, SlotValue, SlotsResolveRequest, SlotsResolveResponse, } from "./contract.js";
|
package/dist/slots/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ManagedLink, ManagedList, ManagedRichText, ManagedSlot, SLOTS_CACHE_TAG, createSlotsRevalidateHandler, ManagedSlot_default as default, getSlot, renderSlotRichText, resolveSlots } from '../chunk-
|
|
1
|
+
export { ManagedLink, ManagedList, ManagedRichText, ManagedSlot, SLOTS_CACHE_TAG, createSlotsRevalidateHandler, ManagedSlot_default as default, getSlot, renderSlotRichText, resolveSlots } from '../chunk-RYR6N4X4.js';
|
|
2
2
|
export { SLOTS_CONTRACT_VERSION, signSlotContent, slotSigningPayload, verifySlotContent } from '../chunk-VCJYLYJV.js';
|
|
3
3
|
export { SLOT_CONTENT_MAX_LENGTH, SLOT_CONTENT_TYPES, SLOT_ID_PATTERN, SLOT_LIST_MAX_ITEMS, isSafeSlotHref, isValidSlotId, normalizeSlotValue, parseSlotRichText } from '../chunk-LPH5FANE.js';
|
|
4
4
|
import '../chunk-HY7ZEU2C.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-7VMA3KCN.js';
|
|
6
6
|
import '../chunk-MH2DSGC6.js';
|
|
7
7
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* - Signed: unsigned/tampered payloads are dropped with a warning.
|
|
13
13
|
*/
|
|
14
14
|
import 'server-only';
|
|
15
|
-
import { type SlotContent, type SlotContentType, type SlotValue } from
|
|
15
|
+
import { type SlotContent, type SlotContentType, type SlotValue } from "./contract.js";
|
|
16
16
|
export interface SlotResolveOptions {
|
|
17
17
|
/** Multi-site sub-dimension: normalized lowercase host. */
|
|
18
18
|
site?: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getFreshCredential, refreshSiteToken } from './chunk-FAY6MOLL.js';
|
|
2
|
+
import { isSiteToken, credentialBreakerId } from './chunk-TPHOIE4I.js';
|
|
3
|
+
import { isTokenMode } from './chunk-D4M5K6JN.js';
|
|
4
|
+
import { SITE_KIT_VERSION } from './chunk-DXE6SXWW.js';
|
|
5
|
+
import './chunk-PKBMQBKP.js';
|
|
3
6
|
|
|
4
7
|
// src/shared/fetchWithRetry.ts
|
|
5
8
|
function backoffDelay(attempt, response) {
|
|
@@ -15,10 +18,17 @@ async function fetchWithRetry(url, init, options = {}) {
|
|
|
15
18
|
const timeoutMs = options.timeoutMs ?? 15e3;
|
|
16
19
|
let lastError;
|
|
17
20
|
for (let attempt = 0; attempt <= retries; attempt++) {
|
|
21
|
+
if (options.shouldSend && !options.shouldSend()) throw new Error("sonor-dispatch-withdrawn");
|
|
18
22
|
const controller = new AbortController();
|
|
19
23
|
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
20
24
|
try {
|
|
21
|
-
const
|
|
25
|
+
const prepared = options.prepareAttempt?.(init) ?? init;
|
|
26
|
+
const targetUrl = options.prepareUrl?.() ?? url;
|
|
27
|
+
if (options.prepareUrl) {
|
|
28
|
+
const original = new URL(url), target = new URL(targetUrl);
|
|
29
|
+
if (original.origin !== target.origin || original.pathname !== target.pathname) throw new Error("sonor-endpoint-change-disallowed");
|
|
30
|
+
}
|
|
31
|
+
const response = await fetch(targetUrl, { ...prepared, signal: controller.signal });
|
|
22
32
|
clearTimeout(timer);
|
|
23
33
|
if ((response.status === 429 || response.status >= 500) && attempt < retries) {
|
|
24
34
|
await new Promise((resolve) => setTimeout(resolve, backoffDelay(attempt, response)));
|
|
@@ -37,28 +47,29 @@ async function fetchWithRetry(url, init, options = {}) {
|
|
|
37
47
|
throw lastError instanceof Error ? lastError : new Error("Network request failed after multiple attempts. Please try again.");
|
|
38
48
|
}
|
|
39
49
|
|
|
40
|
-
// src/shared/
|
|
50
|
+
// src/shared/sonor-auth-state.ts
|
|
41
51
|
var AUTH_BREAK_MS = 5 * 6e4;
|
|
42
52
|
var BREAKER_STATE_KEY = "__SONOR_AUTH_BREAKER__";
|
|
43
|
-
var
|
|
44
|
-
|
|
53
|
+
var serverKeys;
|
|
54
|
+
function pausedKeys() {
|
|
55
|
+
if (typeof window === "undefined") return serverKeys ?? (serverKeys = /* @__PURE__ */ new Map());
|
|
45
56
|
const w = window;
|
|
46
57
|
return w[BREAKER_STATE_KEY] ?? (w[BREAKER_STATE_KEY] = /* @__PURE__ */ new Map());
|
|
47
|
-
}
|
|
58
|
+
}
|
|
48
59
|
var warnedThisPage = false;
|
|
49
60
|
function isAuthPaused(credential) {
|
|
50
61
|
if (typeof window === "undefined") return false;
|
|
51
62
|
const id = credentialBreakerId(credential);
|
|
52
|
-
const until = pausedKeys.get(id);
|
|
63
|
+
const until = pausedKeys().get(id);
|
|
53
64
|
if (!until) return false;
|
|
54
65
|
if (Date.now() >= until) {
|
|
55
|
-
pausedKeys.delete(id);
|
|
66
|
+
pausedKeys().delete(id);
|
|
56
67
|
return false;
|
|
57
68
|
}
|
|
58
69
|
return true;
|
|
59
70
|
}
|
|
60
71
|
function tripBreaker(credential) {
|
|
61
|
-
pausedKeys.set(credentialBreakerId(credential), Date.now() + AUTH_BREAK_MS);
|
|
72
|
+
pausedKeys().set(credentialBreakerId(credential), Date.now() + AUTH_BREAK_MS);
|
|
62
73
|
if (!warnedThisPage) {
|
|
63
74
|
warnedThisPage = true;
|
|
64
75
|
console.info(
|
|
@@ -66,7 +77,10 @@ function tripBreaker(credential) {
|
|
|
66
77
|
);
|
|
67
78
|
}
|
|
68
79
|
}
|
|
69
|
-
|
|
80
|
+
|
|
81
|
+
// src/shared/sonor-fetch-runtime.ts
|
|
82
|
+
async function executeSonorFetch(url, init = {}, options = {}) {
|
|
83
|
+
if (options.shouldSend && !options.shouldSend()) throw new Error("sonor-dispatch-withdrawn");
|
|
70
84
|
let credential = options.apiKey;
|
|
71
85
|
if (credential !== void 0 || isTokenMode()) {
|
|
72
86
|
credential = await getFreshCredential(options.apiKey);
|
|
@@ -86,6 +100,7 @@ async function sonorFetch(url, init = {}, options = {}) {
|
|
|
86
100
|
}
|
|
87
101
|
let response = await fetchWithRetry(url, { ...init, headers }, options);
|
|
88
102
|
if ((response.status === 401 || response.status === 403) && typeof window !== "undefined" && isSiteToken(credential)) {
|
|
103
|
+
if (options.shouldSend && !options.shouldSend()) throw new Error("sonor-dispatch-withdrawn");
|
|
89
104
|
const refreshed = await refreshSiteToken();
|
|
90
105
|
if (refreshed && refreshed !== credential) {
|
|
91
106
|
const retryHeaders = new Headers(init.headers || {});
|
|
@@ -101,29 +116,5 @@ async function sonorFetch(url, init = {}, options = {}) {
|
|
|
101
116
|
}
|
|
102
117
|
return response;
|
|
103
118
|
}
|
|
104
|
-
function sonorBeacon(url, payload, apiKey) {
|
|
105
|
-
const credential = currentCredential(apiKey);
|
|
106
|
-
const body = typeof payload === "string" ? payload : JSON.stringify(payload);
|
|
107
|
-
try {
|
|
108
|
-
void fetch(url, {
|
|
109
|
-
method: "POST",
|
|
110
|
-
keepalive: true,
|
|
111
|
-
headers: {
|
|
112
|
-
"Content-Type": "application/json",
|
|
113
|
-
"x-sitekit-version": SITE_KIT_VERSION,
|
|
114
|
-
...credential ? { "x-api-key": credential } : {}
|
|
115
|
-
},
|
|
116
|
-
body
|
|
117
|
-
}).catch(() => {
|
|
118
|
-
});
|
|
119
|
-
} catch {
|
|
120
|
-
try {
|
|
121
|
-
if (typeof navigator !== "undefined" && navigator.sendBeacon) {
|
|
122
|
-
navigator.sendBeacon(url, new Blob([body], { type: "application/json" }));
|
|
123
|
-
}
|
|
124
|
-
} catch {
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
119
|
|
|
129
|
-
export {
|
|
120
|
+
export { executeSonorFetch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { BookingResult } from
|
|
2
|
+
import type { BookingResult } from "./types.js";
|
|
3
3
|
export declare function CalendarPlusIcon(): React.JSX.Element;
|
|
4
4
|
/**
|
|
5
5
|
* The success screen's calendar block: the single place that decides how a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BookingWidgetProps } from
|
|
2
|
+
import type { BookingWidgetProps } from "./types.js";
|
|
3
3
|
export declare function BookingWidget({ orgSlug, apiKey: propApiKey, apiUrl: propApiUrl, bookingTypeSlug, timezone: propTimezone, className, daysToShow, onBookingComplete, onError, hideTypeSelector, autoSelectFirstDay, styles, }: BookingWidgetProps): React.JSX.Element;
|
|
4
4
|
export default BookingWidget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MeetingFormat, MeetingOptions, MeetingAddress } from
|
|
2
|
+
import type { MeetingFormat, MeetingOptions, MeetingAddress } from "./types.js";
|
|
3
3
|
export declare function MeetingFormatStep({ options, busy, format, address, onFormatChange, onAddressChange, onContinue, onBack }: {
|
|
4
4
|
options: MeetingOptions;
|
|
5
5
|
busy: boolean;
|
package/dist/sync/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MeetingFormat, MeetingAddress, PreparedMeeting } from
|
|
2
|
-
import type { BookingType, TimeSlot, SlotHold, BookingResult } from
|
|
1
|
+
import type { MeetingFormat, MeetingAddress, PreparedMeeting } from "./types.js";
|
|
2
|
+
import type { BookingType, TimeSlot, SlotHold, BookingResult } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Fetch booking types.
|
|
5
5
|
* - With apiKey → GET /sync/widget/types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PreparedMeeting, SlotHold } from
|
|
1
|
+
import type { PreparedMeeting, SlotHold } from "./types.js";
|
|
2
2
|
export type BookingRecovery = 'meeting' | 'hold';
|
|
3
3
|
/** A valid hold carries its prepared meeting context, even after the intent expires. */
|
|
4
4
|
export declare function expiredBookingContext(meeting: PreparedMeeting | null, hold: SlotHold | null, now?: number): BookingRecovery | null;
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export { BookingWidget } from
|
|
25
|
-
export { prepareMeeting, fetchBookingTypes, fetchBookingTypeDetails, fetchAvailability, fetchAvailableDates, createSlotHold, releaseSlotHold, createBooking, detectTimezone, formatTime, formatDate, formatDuration, } from
|
|
26
|
-
export type { MeetingFormat, MeetingOptions, MeetingAddress, PreparedMeeting, BookingType, TimeSlot, Host, SlotHold, BookingResult, BookingWidgetProps, DatePickerProps, TimeSlotPickerProps, BookingFormProps, GuestInfo, SyncWidgetConfig, } from
|
|
24
|
+
export { BookingWidget } from "./BookingWidget.js";
|
|
25
|
+
export { prepareMeeting, fetchBookingTypes, fetchBookingTypeDetails, fetchAvailability, fetchAvailableDates, createSlotHold, releaseSlotHold, createBooking, detectTimezone, formatTime, formatDate, formatDuration, } from "./api.js";
|
|
26
|
+
export type { MeetingFormat, MeetingOptions, MeetingAddress, PreparedMeeting, BookingType, TimeSlot, Host, SlotHold, BookingResult, BookingWidgetProps, DatePickerProps, TimeSlotPickerProps, BookingFormProps, GuestInfo, SyncWidgetConfig, } from "./types.js";
|
package/dist/sync/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { BookingWidget } from '../chunk-
|
|
2
|
-
export { createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-7HW4TZB5.js';
|
|
1
|
+
export { BookingWidget } from '../chunk-MP35JETP.js';
|
|
2
|
+
export { createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate, formatDuration, formatTime, prepareMeeting, releaseSlotHold } from '../chunk-ZRSXCT4O.js';
|
|
3
|
+
import '../chunk-PVY7X5UR.js';
|
|
4
|
+
import '../chunk-5IVD6G77.js';
|
|
5
|
+
import '../chunk-VXCUXHZO.js';
|
|
7
6
|
import '../chunk-W7OPEMGJ.js';
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-FRY6PBT6.js';
|
|
9
8
|
import '../chunk-PKBMQBKP.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export interface BaseEntity {
|
|
|
12
12
|
export interface ProjectScoped {
|
|
13
13
|
project_id: string;
|
|
14
14
|
}
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
15
|
+
export * from "./seo/types.js";
|
|
16
|
+
export * from "./analytics/types.js";
|
|
17
|
+
export * from "./chat/types.js";
|
|
18
|
+
export * from "./website/popup-types.js";
|
|
19
|
+
export * from "./forms/types.js";
|
|
20
|
+
export * from "./articles/types.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* actually about to show (most page loads have none).
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { type PopupPlacement } from
|
|
11
|
+
import { type PopupPlacement } from "./PopupBlocks.js";
|
|
12
12
|
export interface BlocksPopupProps {
|
|
13
13
|
blocks: unknown;
|
|
14
14
|
placement: PopupPlacement;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* render.
|
|
25
25
|
*/
|
|
26
26
|
import React from 'react';
|
|
27
|
-
import { type PopupBlock, type SiteDesignTokens } from
|
|
27
|
+
import { type PopupBlock, type SiteDesignTokens } from "./contract.js";
|
|
28
28
|
export type PopupPlacement = 'popup' | 'bar' | 'slide-in';
|
|
29
29
|
/**
|
|
30
30
|
* Tokens for a page that told us nothing: neutral and legible. The fonts are
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* cross-origin frame or localhost (the shared reporting gate). Carries no
|
|
14
14
|
* visitor data.
|
|
15
15
|
*/
|
|
16
|
-
import { type AnalyticsGateOptions } from
|
|
17
|
-
import { type SiteDesignOverrides } from
|
|
16
|
+
import { type AnalyticsGateOptions } from "../shared/reporting-gate.js";
|
|
17
|
+
import { type SiteDesignOverrides } from "./design.js";
|
|
18
18
|
export interface SiteDesignReporterProps extends AnalyticsGateOptions {
|
|
19
19
|
apiUrl?: string;
|
|
20
20
|
apiKey?: string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* request and draws nothing. The renderer downloads when a popup first opens.
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { type AnalyticsGateOptions } from
|
|
12
|
+
import { type AnalyticsGateOptions } from "../shared/reporting-gate.js";
|
|
13
13
|
export interface SitePopupsProps extends AnalyticsGateOptions {
|
|
14
14
|
apiUrl?: string;
|
|
15
15
|
apiKey?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "../contracts/website.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/cta-bar — the Website module's home for cta-bar/index (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../cta-bar/index.js";
|
package/dist/website/cta-bar.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { CTA_BAR_BREAKPOINTS, CTA_BAR_SPACE, CtaBar, CtaBarAction, ECHO_CLEARANCE } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CTA_BAR_BREAKPOINTS, CTA_BAR_SPACE, CtaBar, CtaBarAction, ECHO_CLEARANCE } from '../chunk-C4XK472G.js';
|
|
2
|
+
import '../chunk-55GFMOI6.js';
|
|
3
3
|
import '../chunk-JE4A5S4F.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-AG2RDHYZ.js';
|
|
5
|
+
import '../chunk-FRY6PBT6.js';
|
|
5
6
|
import '../chunk-PKBMQBKP.js';
|
package/dist/website/design.d.ts
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* `cleanFontStack`, `mergeDesignReports`, `shouldReportDesign`) are pure so
|
|
19
19
|
* they're tested without a DOM.
|
|
20
20
|
*/
|
|
21
|
-
import { type AnalyticsGateOptions } from
|
|
22
|
-
import { type SiteDesignTokens } from
|
|
21
|
+
import { type AnalyticsGateOptions } from "../shared/reporting-gate.js";
|
|
22
|
+
import { type SiteDesignTokens } from "./contract.js";
|
|
23
23
|
/** Canonical ingest path, resolved against the site's Sonor API origin. */
|
|
24
24
|
export declare const SITE_DESIGN_PATH = "/api/public/site/design";
|
|
25
25
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/images/server — the Website module's home for images/server (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../../images/server.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/images/server — the Website module's home for images/server (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../images/server.js";
|
package/dist/website/images.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/images — the Website module's home for images/index (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../images/index.js";
|
package/dist/website/images.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-
|
|
1
|
+
export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-T4A5J6SJ.js';
|
|
2
2
|
export { ManagedFavicon, getManagedFaviconUrl } from '../chunk-GW7GSBO7.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-7HW4TZB5.js';
|
|
5
|
-
import '../chunk-F6WLHVMQ.js';
|
|
3
|
+
import '../chunk-VXCUXHZO.js';
|
|
6
4
|
import '../chunk-PKBMQBKP.js';
|
package/dist/website/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* The pure contract (tokens, blocks, the text sanitizer) is
|
|
12
12
|
* `@sonordev/site-kit/website/contract`, which the APIs import too.
|
|
13
13
|
*/
|
|
14
|
-
export { PopupBlocks, DEFAULT_POPUP_TOKENS, type PopupBlocksProps, type PopupPlacement } from
|
|
15
|
-
export { SiteDesignReporter, type SiteDesignReporterProps } from
|
|
16
|
-
export { getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign, colorToHex, cleanFontStack, SITE_DESIGN_PATH, type SiteDesignConfig, type SiteDesignOverrides, type DesignReport, } from
|
|
17
|
-
export type { SiteDesignTokens, PopupBlock } from
|
|
14
|
+
export { PopupBlocks, DEFAULT_POPUP_TOKENS, type PopupBlocksProps, type PopupPlacement } from "./PopupBlocks.js";
|
|
15
|
+
export { SiteDesignReporter, type SiteDesignReporterProps } from "./SiteDesignReporter.js";
|
|
16
|
+
export { getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign, colorToHex, cleanFontStack, SITE_DESIGN_PATH, type SiteDesignConfig, type SiteDesignOverrides, type DesignReport, } from "./design.js";
|
|
17
|
+
export type { SiteDesignTokens, PopupBlock } from "./contract.js";
|
package/dist/website/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { SiteDesignReporter } from '../chunk-
|
|
3
|
-
export { SITE_DESIGN_PATH, cleanFontStack, colorToHex, getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign } from '../chunk-
|
|
2
|
+
export { SiteDesignReporter } from '../chunk-IO6BWRZ5.js';
|
|
3
|
+
export { SITE_DESIGN_PATH, cleanFontStack, colorToHex, getSiteDesignTokens, measureSiteDesign, readDeclaredDesign, sendSiteDesign } from '../chunk-6EDE7BOE.js';
|
|
4
4
|
export { DEFAULT_POPUP_TOKENS, PopupBlocks } from '../chunk-52KO4LKD.js';
|
|
5
5
|
import '../chunk-XLAHRN4B.js';
|
|
6
6
|
import '../chunk-XHYE24HU.js';
|
|
7
7
|
import '../chunk-YC7ELZS3.js';
|
|
8
8
|
import '../chunk-S22FSH7C.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-DXE6SXWW.js';
|
|
10
|
+
import '../chunk-7643MCD2.js';
|
|
10
11
|
import '../chunk-64XODP7M.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-7HW4TZB5.js';
|
|
12
|
+
import '../chunk-VXCUXHZO.js';
|
|
13
13
|
import '../chunk-W7OPEMGJ.js';
|
|
14
|
-
import '../chunk-F6WLHVMQ.js';
|
|
15
14
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/landing/server — the Website module's home for landing/server (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../../landing/server.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { FunnelPageContent, ManagedFunnelPage, getPublishedFunnelPage, managedFunnelMetadata } from '../../chunk-
|
|
1
|
+
export { FunnelPageContent, ManagedFunnelPage, getPublishedFunnelPage, managedFunnelMetadata } from '../../chunk-NZHECYLF.js';
|
|
2
2
|
import '../../chunk-XS2ORMUG.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
|
|
3
|
+
import '../../chunk-XJZLXUTG.js';
|
|
4
|
+
import '../../chunk-7IZUUXXO.js';
|
|
5
|
+
export { normalizeCampaignSlug } from '../../chunk-2QPVU63T.js';
|
|
5
6
|
export { landingPageMetadata } from '../../chunk-JESLPEST.js';
|
|
6
7
|
import '../../chunk-XHYE24HU.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-S63QY5XW.js';
|
|
9
|
+
import '../../chunk-J4LJE4NB.js';
|
|
9
10
|
import '../../chunk-C2FZBUSS.js';
|
|
10
11
|
import '../../chunk-YC7ELZS3.js';
|
|
11
12
|
import '../../chunk-VPZJ7ZTL.js';
|
|
@@ -14,8 +15,12 @@ import '../../chunk-CVADNHJ4.js';
|
|
|
14
15
|
import '../../chunk-TYSIAWC3.js';
|
|
15
16
|
import '../../chunk-HW7B43E5.js';
|
|
16
17
|
import '../../chunk-NJCTQH2P.js';
|
|
17
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-7VMA3KCN.js';
|
|
18
19
|
import '../../chunk-MH2DSGC6.js';
|
|
19
20
|
import '../../chunk-S22FSH7C.js';
|
|
20
21
|
import '../../chunk-A4CC4ZG3.js';
|
|
22
|
+
import '../../chunk-F3RKFGRW.js';
|
|
23
|
+
import '../../chunk-HJD6KXKH.js';
|
|
24
|
+
import '../../chunk-MOACHHOJ.js';
|
|
25
|
+
import '../../chunk-FRY6PBT6.js';
|
|
21
26
|
import '../../chunk-PKBMQBKP.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/landing/server — the Website module's home for landing/server (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../landing/server.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/landing — the Website module's home for landing/index (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../landing/index.js";
|
package/dist/website/landing.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../chunk-BTHEQDN4.js';
|
|
2
|
-
export { LandingPage } from '../chunk-
|
|
3
|
-
|
|
2
|
+
export { LandingPage } from '../chunk-XJZLXUTG.js';
|
|
3
|
+
import '../chunk-7IZUUXXO.js';
|
|
4
|
+
export { normalizeCampaignSlug } from '../chunk-2QPVU63T.js';
|
|
4
5
|
export { landingPageMetadata } from '../chunk-JESLPEST.js';
|
|
5
6
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* popups, banners and toasts published for a site, as pure functions (the
|
|
4
4
|
* package's tests have no DOM).
|
|
5
5
|
*/
|
|
6
|
-
import type { SitePopup } from
|
|
7
|
-
import type { PopupPlacement } from
|
|
6
|
+
import type { SitePopup } from "./popup-types.js";
|
|
7
|
+
import type { PopupPlacement } from "./PopupBlocks.js";
|
|
8
8
|
/** Exact path, or a prefix ending in `*`. The grammar Sonor stores page patterns in. */
|
|
9
9
|
export declare function matchPath(pathname: string, pattern: string): boolean;
|
|
10
10
|
export type DeviceType = 'desktop' | 'mobile' | 'tablet';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Sonor → Website → Popups & Banners. The API serves them from
|
|
5
5
|
* `GET /engage/widget/elements` (its route keeps the retired module's name).
|
|
6
6
|
*/
|
|
7
|
-
import type { PopupBlock } from
|
|
7
|
+
import type { PopupBlock } from "./contract.js";
|
|
8
8
|
/** What Sonor says a popup is. A blocks popup's `layout` says where it actually sits. */
|
|
9
9
|
export type SitePopupType = 'popup' | 'nudge' | 'bar' | 'chat' | 'slide-in';
|
|
10
10
|
/** A popup, banner or toast published for this site (Sonor → Website → Popups & Banners). */
|
package/dist/website/popups.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* import it to place it yourself. `PopupBlocks` is the renderer, for drawing
|
|
8
8
|
* one popup from its blocks.
|
|
9
9
|
*/
|
|
10
|
-
export { SitePopups, type SitePopupsProps } from
|
|
11
|
-
export { PopupBlocks, DEFAULT_POPUP_TOKENS, type PopupBlocksProps, type PopupPlacement } from
|
|
12
|
-
export type { SitePopup, SitePopupConfig, SitePopupTargeting, SitePopupTrigger, SitePopupType, } from
|
|
13
|
-
export type { PopupBlock, SiteDesignTokens } from
|
|
10
|
+
export { SitePopups, type SitePopupsProps } from "./SitePopups.js";
|
|
11
|
+
export { PopupBlocks, DEFAULT_POPUP_TOKENS, type PopupBlocksProps, type PopupPlacement } from "./PopupBlocks.js";
|
|
12
|
+
export type { SitePopup, SitePopupConfig, SitePopupTargeting, SitePopupTrigger, SitePopupType, } from "./popup-types.js";
|
|
13
|
+
export type { PopupBlock, SiteDesignTokens } from "./contract.js";
|
package/dist/website/popups.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { SitePopups } from '../chunk-
|
|
2
|
+
export { SitePopups } from '../chunk-EBEM5BI5.js';
|
|
3
3
|
import '../chunk-27FISYK4.js';
|
|
4
4
|
export { DEFAULT_POPUP_TOKENS, PopupBlocks } from '../chunk-52KO4LKD.js';
|
|
5
5
|
import '../chunk-XLAHRN4B.js';
|
|
6
6
|
import '../chunk-XHYE24HU.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-PVY7X5UR.js';
|
|
8
8
|
import '../chunk-S22FSH7C.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-JT7GHHMV.js';
|
|
10
|
+
import '../chunk-PMXQPO5Q.js';
|
|
11
|
+
import '../chunk-NHDRA4Y5.js';
|
|
12
|
+
import '../chunk-D4M5K6JN.js';
|
|
10
13
|
import '../chunk-GJWI74ZZ.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-NZOJHERI.js';
|
|
15
|
+
import '../chunk-KMNHNCVG.js';
|
|
16
|
+
import '../chunk-5IVD6G77.js';
|
|
17
|
+
import '../chunk-DXE6SXWW.js';
|
|
18
|
+
import '../chunk-7643MCD2.js';
|
|
13
19
|
import '../chunk-64XODP7M.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-7HW4TZB5.js';
|
|
20
|
+
import '../chunk-VXCUXHZO.js';
|
|
16
21
|
import '../chunk-W7OPEMGJ.js';
|
|
17
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-A4CC4ZG3.js';
|
|
23
|
+
import '../chunk-FRY6PBT6.js';
|
|
18
24
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/slots/contract — the Website module's home for slots/contract (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../../slots/contract.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/slots/contract — the Website module's home for slots/contract (the old path still works). */
|
|
2
|
-
export * from
|
|
2
|
+
export * from "../slots/contract.js";
|
package/dist/website/slots.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @sonordev/site-kit/website/slots — the Website module's home for slots/index (the old path still works). */
|
|
2
|
-
export * from
|
|
3
|
-
export { default } from
|
|
2
|
+
export * from "../slots/index.js";
|
|
3
|
+
export { default } from "../slots/index.js";
|
package/dist/website/slots.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ManagedLink, ManagedList, ManagedRichText, ManagedSlot, SLOTS_CACHE_TAG, createSlotsRevalidateHandler, ManagedSlot_default as default, getSlot, renderSlotRichText, resolveSlots } from '../chunk-
|
|
1
|
+
export { ManagedLink, ManagedList, ManagedRichText, ManagedSlot, SLOTS_CACHE_TAG, createSlotsRevalidateHandler, ManagedSlot_default as default, getSlot, renderSlotRichText, resolveSlots } from '../chunk-RYR6N4X4.js';
|
|
2
2
|
export { SLOTS_CONTRACT_VERSION, signSlotContent, slotSigningPayload, verifySlotContent } from '../chunk-VCJYLYJV.js';
|
|
3
3
|
export { SLOT_CONTENT_MAX_LENGTH, SLOT_CONTENT_TYPES, SLOT_ID_PATTERN, SLOT_LIST_MAX_ITEMS, isSafeSlotHref, isValidSlotId, normalizeSlotValue, parseSlotRichText } from '../chunk-LPH5FANE.js';
|
|
4
4
|
import '../chunk-HY7ZEU2C.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-7VMA3KCN.js';
|
|
6
6
|
import '../chunk-MH2DSGC6.js';
|
|
7
7
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { writeLLMsTxtToPublic } from './chunk-
|
|
1
|
+
export { writeLLMsTxtToPublic } from './chunk-QLJ2SC3T.js';
|
|
2
2
|
import './chunk-EK7P62DT.js';
|
|
3
3
|
import './chunk-7DYMM6SS.js';
|
|
4
4
|
import './chunk-IBHBEUZV.js';
|
|
@@ -9,6 +9,6 @@ import './chunk-ISRBSTB7.js';
|
|
|
9
9
|
import './chunk-MJP63SSS.js';
|
|
10
10
|
import './chunk-YVKRYQRG.js';
|
|
11
11
|
import './chunk-FESKKJAS.js';
|
|
12
|
-
import './chunk-A4CC4ZG3.js';
|
|
13
12
|
import './chunk-W7OPEMGJ.js';
|
|
13
|
+
import './chunk-A4CC4ZG3.js';
|
|
14
14
|
import './chunk-PKBMQBKP.js';
|