@sonordev/site-kit 3.4.0 → 3.6.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/README.md +2 -2
- package/agent-manifest.json +1 -1
- package/dist/AnalyticsProvider-GOLL2W6O.mjs +10 -0
- package/dist/{AnalyticsProvider-HIGSPNRA.mjs.map → AnalyticsProvider-GOLL2W6O.mjs.map} +1 -1
- package/dist/AnalyticsProvider-PK5E4TWJ.js +31 -0
- package/dist/{AnalyticsProvider-ARAWVJPX.js.map → AnalyticsProvider-PK5E4TWJ.js.map} +1 -1
- package/dist/ChatWidget-5RMDVEJL.js +19 -0
- package/dist/{ChatWidget-BDES6WUR.js.map → ChatWidget-5RMDVEJL.js.map} +1 -1
- package/dist/ChatWidget-LOZDGIVP.mjs +10 -0
- package/dist/{ChatWidget-47KAOFLG.mjs.map → ChatWidget-LOZDGIVP.mjs.map} +1 -1
- package/dist/EngageWidget-CYJK6RAJ.js +18 -0
- package/dist/{EngageWidget-X3NIWGMZ.js.map → EngageWidget-CYJK6RAJ.js.map} +1 -1
- package/dist/EngageWidget-HLJMP7MR.mjs +9 -0
- package/dist/{EngageWidget-HPZAI6SU.mjs.map → EngageWidget-HLJMP7MR.mjs.map} +1 -1
- package/dist/{SignalCore-K2CTZ52G.js → SignalCore-7SB26IPW.js} +11 -10
- package/dist/SignalCore-7SB26IPW.js.map +1 -0
- package/dist/{SignalCore-XABEH2GA.mjs → SignalCore-JPQMRYMF.mjs} +5 -4
- package/dist/SignalCore-JPQMRYMF.mjs.map +1 -0
- package/dist/SitemapSync-4UFM6LWW.mjs +8 -0
- package/dist/{SitemapSync-OQPRGBG3.mjs.map → SitemapSync-4UFM6LWW.mjs.map} +1 -1
- package/dist/SitemapSync-KIFK3OJO.js +17 -0
- package/dist/{SitemapSync-4BALOI4B.js.map → SitemapSync-KIFK3OJO.js.map} +1 -1
- package/dist/analytics/index.js +12 -11
- package/dist/analytics/index.mjs +5 -4
- package/dist/blog/index.d.mts +3 -3
- package/dist/blog/index.d.ts +3 -3
- package/dist/blog/index.js +11 -15
- package/dist/blog/index.js.map +1 -1
- package/dist/blog/index.mjs +2 -2
- package/dist/blog/index.mjs.map +1 -1
- package/dist/blog/server-ui.d.mts +1 -1
- package/dist/blog/server-ui.d.ts +1 -1
- package/dist/blog/server-ui.js +198 -9
- package/dist/blog/server-ui.js.map +1 -1
- package/dist/blog/server-ui.mjs +198 -2
- package/dist/blog/server-ui.mjs.map +1 -1
- package/dist/blog/server.d.mts +27 -8
- package/dist/blog/server.d.ts +27 -8
- package/dist/blog/server.js +45 -43
- package/dist/blog/server.mjs +3 -1
- package/dist/{chunk-WVAY4ZWC.mjs → chunk-253MGZYN.mjs} +10 -29
- package/dist/chunk-253MGZYN.mjs.map +1 -0
- package/dist/{chunk-WN5A3KSY.mjs → chunk-34IUDOBC.mjs} +2 -2
- package/dist/{chunk-WN5A3KSY.mjs.map → chunk-34IUDOBC.mjs.map} +1 -1
- package/dist/{chunk-56X3IUOL.js → chunk-3XQV5HDW.js} +12 -31
- package/dist/chunk-3XQV5HDW.js.map +1 -0
- package/dist/chunk-5BC7I3KH.mjs +134 -0
- package/dist/chunk-5BC7I3KH.mjs.map +1 -0
- package/dist/{chunk-O4RVFKQW.mjs → chunk-5WRJRJSM.mjs} +3 -3
- package/dist/{chunk-O4RVFKQW.mjs.map → chunk-5WRJRJSM.mjs.map} +1 -1
- package/dist/{chunk-7TX5BKVA.js → chunk-6T4NVCAT.js} +2 -2
- package/dist/{chunk-7TX5BKVA.js.map → chunk-6T4NVCAT.js.map} +1 -1
- package/dist/{chunk-E4VA4FYW.js → chunk-7F3RT2RX.js} +8 -8
- package/dist/{chunk-E4VA4FYW.js.map → chunk-7F3RT2RX.js.map} +1 -1
- package/dist/{chunk-C37DFD5F.js → chunk-7J47WT5V.js} +14 -14
- package/dist/{chunk-C37DFD5F.js.map → chunk-7J47WT5V.js.map} +1 -1
- package/dist/{chunk-MJV6RC7I.js → chunk-7ZY44LI4.js} +3 -3
- package/dist/{chunk-MJV6RC7I.js.map → chunk-7ZY44LI4.js.map} +1 -1
- package/dist/{chunk-WZHWWOUC.js → chunk-BX6FFL2Y.js} +6 -16
- package/dist/chunk-BX6FFL2Y.js.map +1 -0
- package/dist/chunk-BYW3MJ36.mjs +139 -0
- package/dist/chunk-BYW3MJ36.mjs.map +1 -0
- package/dist/{chunk-PYA4BR2N.mjs → chunk-C4JYWTI5.mjs} +3 -3
- package/dist/{chunk-PYA4BR2N.mjs.map → chunk-C4JYWTI5.mjs.map} +1 -1
- package/dist/{chunk-VE5XLADP.mjs → chunk-C7MKSHRI.mjs} +3 -3
- package/dist/{chunk-VE5XLADP.mjs.map → chunk-C7MKSHRI.mjs.map} +1 -1
- package/dist/chunk-CGCYZJYX.mjs +41 -0
- package/dist/chunk-CGCYZJYX.mjs.map +1 -0
- package/dist/{chunk-RMUOY6XB.js → chunk-CPYUZSJN.js} +7 -7
- package/dist/{chunk-RMUOY6XB.js.map → chunk-CPYUZSJN.js.map} +1 -1
- package/dist/{chunk-5WEADCND.mjs → chunk-DAVE4PEM.mjs} +4 -4
- package/dist/{chunk-5WEADCND.mjs.map → chunk-DAVE4PEM.mjs.map} +1 -1
- package/dist/{chunk-MCDQM75H.js → chunk-DF3MIQNB.js} +15 -15
- package/dist/{chunk-MCDQM75H.js.map → chunk-DF3MIQNB.js.map} +1 -1
- package/dist/{chunk-IB34IYMN.js → chunk-DLZEFUKB.js} +9 -9
- package/dist/{chunk-IB34IYMN.js.map → chunk-DLZEFUKB.js.map} +1 -1
- package/dist/chunk-FMUTOABC.js +129 -0
- package/dist/chunk-FMUTOABC.js.map +1 -0
- package/dist/{chunk-3SIIYHVE.mjs → chunk-GJSNM2A3.mjs} +4 -4
- package/dist/{chunk-3SIIYHVE.mjs.map → chunk-GJSNM2A3.mjs.map} +1 -1
- package/dist/{chunk-X4OPM3SK.mjs → chunk-GU5OTUQS.mjs} +5 -14
- package/dist/chunk-GU5OTUQS.mjs.map +1 -0
- package/dist/{chunk-SH4VZDVX.mjs → chunk-GUXB3QH7.mjs} +38 -67
- package/dist/chunk-GUXB3QH7.mjs.map +1 -0
- package/dist/{chunk-O7B7IEXY.js → chunk-JBRLJMXM.js} +14 -14
- package/dist/{chunk-O7B7IEXY.js.map → chunk-JBRLJMXM.js.map} +1 -1
- package/dist/{chunk-5SJKYZID.js → chunk-JZAKTBKV.js} +5 -5
- package/dist/{chunk-5SJKYZID.js.map → chunk-JZAKTBKV.js.map} +1 -1
- package/dist/chunk-K24NKI35.js +8 -0
- package/dist/{chunk-CDETOO5W.js.map → chunk-K24NKI35.js.map} +1 -1
- package/dist/{chunk-HV7IYMXK.js → chunk-KIUNFFDD.js} +13 -13
- package/dist/{chunk-HV7IYMXK.js.map → chunk-KIUNFFDD.js.map} +1 -1
- package/dist/{chunk-7523LJ52.js → chunk-KJD5UJ4C.js} +9 -9
- package/dist/{chunk-7523LJ52.js.map → chunk-KJD5UJ4C.js.map} +1 -1
- package/dist/chunk-KRZL6VYP.mjs +6 -0
- package/dist/{chunk-YCQHE2XT.mjs.map → chunk-KRZL6VYP.mjs.map} +1 -1
- package/dist/chunk-KTHQKVGZ.js +147 -0
- package/dist/chunk-KTHQKVGZ.js.map +1 -0
- package/dist/{chunk-BMKZHXWQ.js → chunk-MMON6EVI.js} +3 -194
- package/dist/chunk-MMON6EVI.js.map +1 -0
- package/dist/chunk-N5H6ORXN.mjs +35 -0
- package/dist/chunk-N5H6ORXN.mjs.map +1 -0
- package/dist/chunk-NB4MK2Q5.js +18 -0
- package/dist/chunk-NB4MK2Q5.js.map +1 -0
- package/dist/chunk-NI7OY4FW.mjs +16 -0
- package/dist/chunk-NI7OY4FW.mjs.map +1 -0
- package/dist/{chunk-7UYUVHCR.js → chunk-OIAAYRGO.js} +4 -4
- package/dist/{chunk-7UYUVHCR.js.map → chunk-OIAAYRGO.js.map} +1 -1
- package/dist/{chunk-IURQA3H5.mjs → chunk-QLBNK6WJ.mjs} +3 -3
- package/dist/{chunk-IURQA3H5.mjs.map → chunk-QLBNK6WJ.mjs.map} +1 -1
- package/dist/{chunk-6Q72JAL2.js → chunk-QO45Q7KW.js} +6 -6
- package/dist/{chunk-6Q72JAL2.js.map → chunk-QO45Q7KW.js.map} +1 -1
- package/dist/{chunk-VNQFKBKF.mjs → chunk-RHKFINCS.mjs} +3 -3
- package/dist/{chunk-VNQFKBKF.mjs.map → chunk-RHKFINCS.mjs.map} +1 -1
- package/dist/{chunk-LQHZFUZJ.mjs → chunk-RQV3FO33.mjs} +3 -3
- package/dist/{chunk-LQHZFUZJ.mjs.map → chunk-RQV3FO33.mjs.map} +1 -1
- package/dist/chunk-S32BEPZM.mjs +126 -0
- package/dist/chunk-S32BEPZM.mjs.map +1 -0
- package/dist/{chunk-472FTEPP.mjs → chunk-SOPPUXR3.mjs} +4 -4
- package/dist/{chunk-472FTEPP.mjs.map → chunk-SOPPUXR3.mjs.map} +1 -1
- package/dist/chunk-T3LOHTC6.js +136 -0
- package/dist/chunk-T3LOHTC6.js.map +1 -0
- package/dist/chunk-TPL2IHFI.js +43 -0
- package/dist/chunk-TPL2IHFI.js.map +1 -0
- package/dist/{chunk-JRUNONG5.mjs → chunk-V4LF47AS.mjs} +3 -3
- package/dist/{chunk-JRUNONG5.mjs.map → chunk-V4LF47AS.mjs.map} +1 -1
- package/dist/chunk-VELBKUIM.js +38 -0
- package/dist/chunk-VELBKUIM.js.map +1 -0
- package/dist/{chunk-G3G4HQT3.mjs → chunk-VN3TGLT3.mjs} +3 -3
- package/dist/{chunk-G3G4HQT3.mjs.map → chunk-VN3TGLT3.mjs.map} +1 -1
- package/dist/{chunk-AB2VYIYU.mjs → chunk-WTR7QJ32.mjs} +4 -194
- package/dist/chunk-WTR7QJ32.mjs.map +1 -0
- package/dist/{chunk-IB4FRJDV.js → chunk-XAWB2HFQ.js} +37 -67
- package/dist/chunk-XAWB2HFQ.js.map +1 -0
- package/dist/{chunk-QE53WRXW.mjs → chunk-ZTEQXVQF.mjs} +4 -4
- package/dist/{chunk-QE53WRXW.mjs.map → chunk-ZTEQXVQF.mjs.map} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/client/index.d.mts +15 -1
- package/dist/client/index.d.ts +15 -1
- package/dist/client/index.js +15 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +17 -0
- package/dist/client/index.mjs.map +1 -1
- package/dist/commerce/index.js +51 -50
- package/dist/commerce/index.mjs +6 -5
- package/dist/engage/index.js +9 -8
- package/dist/engage/index.js.map +1 -1
- package/dist/engage/index.mjs +6 -5
- package/dist/engage/index.mjs.map +1 -1
- package/dist/fleet/index.js +8 -7
- package/dist/fleet/index.mjs +4 -3
- package/dist/forms/index.js +13 -12
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +5 -4
- package/dist/forms/index.mjs.map +1 -1
- package/dist/images/index.js +11 -10
- package/dist/images/index.mjs +4 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +64 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/dist/layout/client.js +9 -7
- package/dist/layout/client.mjs +8 -6
- package/dist/layout/index.js +11 -53
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +9 -51
- package/dist/layout/index.mjs.map +1 -1
- package/dist/llms/index.js +12 -12
- package/dist/llms/index.mjs +2 -2
- package/dist/maps/index.js +5 -4
- package/dist/maps/index.js.map +1 -1
- package/dist/maps/index.mjs +3 -2
- package/dist/maps/index.mjs.map +1 -1
- package/dist/seo/client.js +5 -4
- package/dist/seo/client.mjs +4 -3
- package/dist/seo/index.js +5 -4
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +4 -3
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo-pages/contract.js +6 -5
- package/dist/seo-pages/contract.js.map +1 -1
- package/dist/seo-pages/contract.mjs +2 -1
- package/dist/seo-pages/contract.mjs.map +1 -1
- package/dist/server/index.d.mts +45 -1
- package/dist/server/index.d.ts +45 -1
- package/dist/server/index.js +6 -0
- package/dist/server/index.mjs +2 -0
- package/dist/signal/index.js +11 -11
- package/dist/signal/index.mjs +2 -2
- package/dist/sitemap/index.js +2 -2
- package/dist/sitemap/index.mjs +1 -1
- package/dist/sites/contract.d.mts +36 -12
- package/dist/sites/contract.d.ts +36 -12
- package/dist/sites/contract.js +12 -11
- package/dist/sites/contract.mjs +2 -1
- package/dist/sync/index.js +16 -15
- package/dist/sync/index.mjs +4 -3
- package/dist/{types-DYOumpUT.d.mts → types-8IcjVMDa.d.mts} +1 -1
- package/dist/{types-DYOumpUT.d.ts → types-8IcjVMDa.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/AnalyticsProvider-ARAWVJPX.js +0 -30
- package/dist/AnalyticsProvider-HIGSPNRA.mjs +0 -9
- package/dist/ChatWidget-47KAOFLG.mjs +0 -9
- package/dist/ChatWidget-BDES6WUR.js +0 -18
- package/dist/EngageWidget-HPZAI6SU.mjs +0 -8
- package/dist/EngageWidget-X3NIWGMZ.js +0 -17
- package/dist/SignalCore-K2CTZ52G.js.map +0 -1
- package/dist/SignalCore-XABEH2GA.mjs.map +0 -1
- package/dist/SitemapSync-4BALOI4B.js +0 -16
- package/dist/SitemapSync-OQPRGBG3.mjs +0 -7
- package/dist/chunk-56X3IUOL.js.map +0 -1
- package/dist/chunk-AB2VYIYU.mjs.map +0 -1
- package/dist/chunk-BMKZHXWQ.js.map +0 -1
- package/dist/chunk-CDETOO5W.js +0 -8
- package/dist/chunk-IB4FRJDV.js.map +0 -1
- package/dist/chunk-SH4VZDVX.mjs.map +0 -1
- package/dist/chunk-WS4GNH3F.mjs +0 -259
- package/dist/chunk-WS4GNH3F.mjs.map +0 -1
- package/dist/chunk-WVAY4ZWC.mjs.map +0 -1
- package/dist/chunk-WZHWWOUC.js.map +0 -1
- package/dist/chunk-X4OPM3SK.mjs.map +0 -1
- package/dist/chunk-XKV73RDH.js +0 -266
- package/dist/chunk-XKV73RDH.js.map +0 -1
- package/dist/chunk-YCQHE2XT.mjs +0 -6
package/dist/client/index.mjs
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { publishSiteCredential } from '../chunk-N5H6ORXN.mjs';
|
|
2
3
|
export { useDeferredActivation } from '../chunk-ZVBLXXNJ.mjs';
|
|
4
|
+
import '../chunk-NI7OY4FW.mjs';
|
|
3
5
|
export { trackConversion, trackEvent } from '../chunk-3DPXOZAU.mjs';
|
|
4
6
|
export { SiteKitIdentityProvider, getOrCreateSessionId, getOrCreateVisitorId, useSiteKitIdentity } from '../chunk-AX4AROLH.mjs';
|
|
5
7
|
import '../chunk-6EDVCUAG.mjs';
|
|
8
|
+
import '../chunk-BYW3MJ36.mjs';
|
|
9
|
+
import '../chunk-KRZL6VYP.mjs';
|
|
6
10
|
import '../chunk-4XPGGLVP.mjs';
|
|
11
|
+
|
|
12
|
+
// src/client/SiteKitCredential.tsx
|
|
13
|
+
function SiteKitCredential({
|
|
14
|
+
apiKey,
|
|
15
|
+
apiUrl,
|
|
16
|
+
site,
|
|
17
|
+
debug
|
|
18
|
+
}) {
|
|
19
|
+
publishSiteCredential({ apiKey, apiUrl, site, debug });
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { SiteKitCredential };
|
|
7
24
|
//# sourceMappingURL=index.mjs.map
|
|
8
25
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
1
|
+
{"version":3,"sources":["../../src/client/SiteKitCredential.tsx"],"names":[],"mappings":";;;;;;;;;;;AA6CO,SAAS,iBAAA,CAAkB;AAAA,EAChC,MAAA;AAAA,EACA,MAAA;AAAA,EACA,IAAA;AAAA,EACA;AACF,CAAA,EAAiC;AAG/B,EAAA,qBAAA,CAAsB,EAAE,MAAA,EAAQ,MAAA,EAAQ,IAAA,EAAM,OAAO,CAAA;AACrD,EAAA,OAAO,IAAA;AACT","file":"index.mjs","sourcesContent":["'use client'\n\n/**\n * SiteKitCredential — publish a minted credential to the browser.\n *\n * The client half of the token mint, for layouts that are NOT core\n * `SiteKitLayout`. A server component mints with `resolveClientCredential`\n * (`@sonordev/site-kit/server`) and renders this to seed the token manager and\n * the `window.__SITE_KIT_*` globals every client module reads:\n *\n * ```tsx\n * // app/layout.tsx (server component)\n * import { resolveClientCredential } from '@sonordev/site-kit/server'\n * import { SiteKitCredential } from '@sonordev/site-kit/client'\n *\n * const credential = await resolveClientCredential(\n * process.env.SONOR_API_KEY ?? '',\n * 'https://api.sonor.io',\n * )\n * return <><SiteKitCredential apiKey={credential} />{children}</>\n * ```\n *\n * Renders null — it is a childless sibling, never a wrapper, so it can't pull\n * page content into a client boundary (CLAUDE.md's cardinal perf rule).\n *\n * WARNING: `apiKey` must be a minted `st1.` token resolved SERVER-side. Passing\n * a raw `sonor_` key from a client component inlines the project secret into\n * the browser bundle and defeats the mint. Never source it from\n * `NEXT_PUBLIC_SONOR_API_KEY`.\n */\nimport { publishSiteCredential } from '../shared/publishCredential'\n\nexport interface SiteKitCredentialProps {\n /** Minted `st1.` token from `resolveClientCredential` (server-side). */\n apiKey?: string\n /** Sonor API base. Defaults to `https://api.sonor.io`. */\n apiUrl?: string\n /**\n * Sub-site host for multi-site projects. Omit to resolve from\n * `NEXT_PUBLIC_SITE_URL` then `window.location.host`.\n */\n site?: string\n debug?: boolean\n}\n\nexport function SiteKitCredential({\n apiKey,\n apiUrl,\n site,\n debug,\n}: SiteKitCredentialProps): null {\n // Publish during render, not in an effect — client modules read these globals\n // in their own mount effects, and effects run child-first.\n publishSiteCredential({ apiKey, apiUrl, site, debug })\n return null\n}\n"]}
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,197 +1,198 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var chunk7J47WT5V_js = require('../chunk-7J47WT5V.js');
|
|
5
|
+
require('../chunk-OIAAYRGO.js');
|
|
6
|
+
require('../chunk-KIUNFFDD.js');
|
|
7
7
|
require('../chunk-HMFFAUCD.js');
|
|
8
8
|
require('../chunk-XB57AM6T.js');
|
|
9
9
|
require('../chunk-VJMPIRSD.js');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-FMUTOABC.js');
|
|
11
|
+
require('../chunk-KTHQKVGZ.js');
|
|
12
|
+
require('../chunk-K24NKI35.js');
|
|
12
13
|
require('../chunk-ZSMWDLMK.js');
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
Object.defineProperty(exports, "CalendarView", {
|
|
17
18
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk7J47WT5V_js.CalendarView; }
|
|
19
20
|
});
|
|
20
21
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
21
22
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk7J47WT5V_js.CheckoutForm; }
|
|
23
24
|
});
|
|
24
25
|
Object.defineProperty(exports, "EventCalendar", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk7J47WT5V_js.EventCalendar; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "EventCheckout", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk7J47WT5V_js.EventCheckout; }
|
|
31
32
|
});
|
|
32
33
|
Object.defineProperty(exports, "EventEmbed", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk7J47WT5V_js.EventEmbed; }
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(exports, "EventModal", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk7J47WT5V_js.EventModal; }
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(exports, "EventTile", {
|
|
41
42
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk7J47WT5V_js.EventTile; }
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(exports, "EventsWidget", {
|
|
45
46
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk7J47WT5V_js.EventsWidget; }
|
|
47
48
|
});
|
|
48
49
|
Object.defineProperty(exports, "OfferingCard", {
|
|
49
50
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk7J47WT5V_js.OfferingCard; }
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(exports, "OfferingList", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk7J47WT5V_js.OfferingList; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "ProductDetail", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk7J47WT5V_js.ProductDetail; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk7J47WT5V_js.ProductEmbed; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "ProductGrid", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk7J47WT5V_js.ProductGrid; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "ProductPage", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk7J47WT5V_js.ProductPage; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk7J47WT5V_js.RegistrationForm; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "SizeChart", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk7J47WT5V_js.SizeChart; }
|
|
79
80
|
});
|
|
80
81
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
81
82
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk7J47WT5V_js.UpcomingEvents; }
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
85
86
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk7J47WT5V_js.createCheckoutSession; }
|
|
87
88
|
});
|
|
88
89
|
Object.defineProperty(exports, "createPaymentIntent", {
|
|
89
90
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk7J47WT5V_js.createPaymentIntent; }
|
|
91
92
|
});
|
|
92
93
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
93
94
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk7J47WT5V_js.fetchActiveProcessor; }
|
|
95
96
|
});
|
|
96
97
|
Object.defineProperty(exports, "fetchCategories", {
|
|
97
98
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk7J47WT5V_js.fetchCategories; }
|
|
99
100
|
});
|
|
100
101
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
101
102
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk7J47WT5V_js.fetchLatestOffering; }
|
|
103
104
|
});
|
|
104
105
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
105
106
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk7J47WT5V_js.fetchNextEvent; }
|
|
107
108
|
});
|
|
108
109
|
Object.defineProperty(exports, "fetchOffering", {
|
|
109
110
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk7J47WT5V_js.fetchOffering; }
|
|
111
112
|
});
|
|
112
113
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
113
114
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk7J47WT5V_js.fetchOfferings; }
|
|
115
116
|
});
|
|
116
117
|
Object.defineProperty(exports, "fetchProcessorConfig", {
|
|
117
118
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk7J47WT5V_js.fetchProcessorConfig; }
|
|
119
120
|
});
|
|
120
121
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
121
122
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk7J47WT5V_js.fetchProductBySlug; }
|
|
123
124
|
});
|
|
124
125
|
Object.defineProperty(exports, "fetchProducts", {
|
|
125
126
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk7J47WT5V_js.fetchProducts; }
|
|
127
128
|
});
|
|
128
129
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
129
130
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk7J47WT5V_js.fetchProductsPublic; }
|
|
131
132
|
});
|
|
132
133
|
Object.defineProperty(exports, "fetchServices", {
|
|
133
134
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk7J47WT5V_js.fetchServices; }
|
|
135
136
|
});
|
|
136
137
|
Object.defineProperty(exports, "fetchShippingRates", {
|
|
137
138
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk7J47WT5V_js.fetchShippingRates; }
|
|
139
140
|
});
|
|
140
141
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
141
142
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk7J47WT5V_js.fetchUpcomingEvents; }
|
|
143
144
|
});
|
|
144
145
|
Object.defineProperty(exports, "formatDate", {
|
|
145
146
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk7J47WT5V_js.formatDate; }
|
|
147
148
|
});
|
|
148
149
|
Object.defineProperty(exports, "formatDateRange", {
|
|
149
150
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk7J47WT5V_js.formatDateRange; }
|
|
151
152
|
});
|
|
152
153
|
Object.defineProperty(exports, "formatDateTime", {
|
|
153
154
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk7J47WT5V_js.formatDateTime; }
|
|
155
156
|
});
|
|
156
157
|
Object.defineProperty(exports, "formatPrice", {
|
|
157
158
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk7J47WT5V_js.formatPrice; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "formatTime", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk7J47WT5V_js.formatTime; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk7J47WT5V_js.getOfferingUrl; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk7J47WT5V_js.getRelativeTimeUntil; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk7J47WT5V_js.getSpotsRemaining; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk7J47WT5V_js.isEventSoldOut; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "registerForEvent", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk7J47WT5V_js.registerForEvent; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "useEventModal", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk7J47WT5V_js.useEventModal; }
|
|
187
188
|
});
|
|
188
189
|
Object.defineProperty(exports, "validateAddress", {
|
|
189
190
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk7J47WT5V_js.validateAddress; }
|
|
191
192
|
});
|
|
192
193
|
Object.defineProperty(exports, "validateDiscountCode", {
|
|
193
194
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk7J47WT5V_js.validateDiscountCode; }
|
|
195
196
|
});
|
|
196
197
|
//# sourceMappingURL=index.js.map
|
|
197
198
|
//# sourceMappingURL=index.js.map
|
package/dist/commerce/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { CalendarView, CheckoutForm, EventCalendar, EventCheckout, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress, validateDiscountCode } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { CalendarView, CheckoutForm, EventCalendar, EventCheckout, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress, validateDiscountCode } from '../chunk-SOPPUXR3.mjs';
|
|
3
|
+
import '../chunk-5WRJRJSM.mjs';
|
|
4
|
+
import '../chunk-VN3TGLT3.mjs';
|
|
5
5
|
import '../chunk-3DPXOZAU.mjs';
|
|
6
6
|
import '../chunk-AX4AROLH.mjs';
|
|
7
7
|
import '../chunk-6EDVCUAG.mjs';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-S32BEPZM.mjs';
|
|
9
|
+
import '../chunk-BYW3MJ36.mjs';
|
|
10
|
+
import '../chunk-KRZL6VYP.mjs';
|
|
10
11
|
import '../chunk-4XPGGLVP.mjs';
|
|
11
12
|
//# sourceMappingURL=index.mjs.map
|
|
12
13
|
//# sourceMappingURL=index.mjs.map
|
package/dist/engage/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var chunkDF3MIQNB_js = require('../chunk-DF3MIQNB.js');
|
|
5
|
+
var chunkQO45Q7KW_js = require('../chunk-QO45Q7KW.js');
|
|
6
|
+
require('../chunk-DLZEFUKB.js');
|
|
7
7
|
require('../chunk-V6NVBFEP.js');
|
|
8
8
|
require('../chunk-XB57AM6T.js');
|
|
9
9
|
require('../chunk-VJMPIRSD.js');
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-FMUTOABC.js');
|
|
11
|
+
require('../chunk-KTHQKVGZ.js');
|
|
12
|
+
require('../chunk-K24NKI35.js');
|
|
12
13
|
require('../chunk-ZSMWDLMK.js');
|
|
13
14
|
|
|
14
15
|
// src/engage/echo-config.ts
|
|
@@ -40,15 +41,15 @@ function getEchoWidgetProps(config = SONOR_PUBLIC_ECHO_DEFAULTS) {
|
|
|
40
41
|
|
|
41
42
|
Object.defineProperty(exports, "ChatWidget", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkDF3MIQNB_js.ChatWidget; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "DesignRenderer", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkQO45Q7KW_js.DesignRenderer; }
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(exports, "EngageWidget", {
|
|
50
51
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkQO45Q7KW_js.EngageWidget; }
|
|
52
53
|
});
|
|
53
54
|
exports.SONOR_PUBLIC_ECHO_DEFAULTS = SONOR_PUBLIC_ECHO_DEFAULTS;
|
|
54
55
|
exports.getEchoWidgetProps = getEchoWidgetProps;
|
package/dist/engage/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/engage/echo-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/engage/echo-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAgBO,IAAM,0BAAA,GAA+C;AAAA,EAC1D,SAAA,EAAW,yBAAA;AAAA,EACX,cAAA,EACE,0KAAA;AAAA,EACF,kBAAA,EAAoB;AAAA,IAClB,qBAAA;AAAA,IACA,0BAAA;AAAA,IACA,6BAAA;AAAA,IACA,6BAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,UAAA,EAAY,SAAA;AAAA;AAAA,EACZ,aAAA,EAAe;AACjB;AAEO,SAAS,kBAAA,CAAmB,SAA2B,0BAAA,EAA4B;AACxF,EAAA,OAAO;AAAA,IACL,cAAA,EAAgB,IAAA;AAAA,IAChB,UAAA,EAAY,MAAA,CAAO,SAAA,IAAa,0BAAA,CAA2B,SAAA;AAAA,IAC3D,eAAA,EAAiB,MAAA,CAAO,cAAA,IAAkB,0BAAA,CAA2B,cAAA;AAAA,IACrE,mBAAA,EAAqB,MAAA,CAAO,kBAAA,IAAsB,0BAAA,CAA2B,kBAAA;AAAA,IAC7E,WAAA,EAAa,MAAA,CAAO,UAAA,IAAc,0BAAA,CAA2B,UAAA;AAAA,IAC7D,cAAA,EAAgB,MAAA,CAAO,aAAA,IAAiB,0BAAA,CAA2B,aAAA;AAAA,IACnE,kBAAkB,MAAA,CAAO;AAAA,GAC3B;AACF","file":"index.js","sourcesContent":["/**\n * @sonordev/site-kit/engage - Echo Public Configuration\n *\n * Helpers for configuring the ChatWidget with Echo-specific defaults\n * for the Sonor public site (sonor.io).\n */\n\nexport interface EchoPublicConfig {\n signalUrl?: string\n welcomeMessage?: string\n suggestedQuestions?: string[]\n brandColor?: string\n assistantName?: string\n assistantAvatar?: string\n}\n\nexport const SONOR_PUBLIC_ECHO_DEFAULTS: EchoPublicConfig = {\n signalUrl: 'https://signal.sonor.io',\n welcomeMessage:\n \"Hi! I'm Echo, Sonor's AI assistant. I can answer questions about our platform, help you understand pricing, or get you started with a demo. What would you like to know?\",\n suggestedQuestions: [\n 'What does Sonor do?',\n 'How does Signal AI work?',\n 'What are the pricing plans?',\n 'Can I migrate from HubSpot?',\n 'How does the SEO module work?',\n ],\n brandColor: '#2563eb', // blue-600 (~5.2:1 on white, AA); overridden by --sk-primary CSS var or API brand_primary\n assistantName: 'Echo',\n}\n\nexport function getEchoWidgetProps(config: EchoPublicConfig = SONOR_PUBLIC_ECHO_DEFAULTS) {\n return {\n signal_enabled: true,\n signal_url: config.signalUrl || SONOR_PUBLIC_ECHO_DEFAULTS.signalUrl,\n welcome_message: config.welcomeMessage || SONOR_PUBLIC_ECHO_DEFAULTS.welcomeMessage,\n suggested_questions: config.suggestedQuestions || SONOR_PUBLIC_ECHO_DEFAULTS.suggestedQuestions,\n brand_color: config.brandColor || SONOR_PUBLIC_ECHO_DEFAULTS.brandColor,\n assistant_name: config.assistantName || SONOR_PUBLIC_ECHO_DEFAULTS.assistantName,\n assistant_avatar: config.assistantAvatar,\n }\n}\n"]}
|
package/dist/engage/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ChatWidget } from '../chunk-
|
|
3
|
-
export { DesignRenderer, EngageWidget } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
2
|
+
export { ChatWidget } from '../chunk-DAVE4PEM.mjs';
|
|
3
|
+
export { DesignRenderer, EngageWidget } from '../chunk-GJSNM2A3.mjs';
|
|
4
|
+
import '../chunk-RQV3FO33.mjs';
|
|
5
5
|
import '../chunk-X3S6KXAP.mjs';
|
|
6
6
|
import '../chunk-AX4AROLH.mjs';
|
|
7
7
|
import '../chunk-6EDVCUAG.mjs';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-S32BEPZM.mjs';
|
|
9
|
+
import '../chunk-BYW3MJ36.mjs';
|
|
10
|
+
import '../chunk-KRZL6VYP.mjs';
|
|
10
11
|
import '../chunk-4XPGGLVP.mjs';
|
|
11
12
|
|
|
12
13
|
// src/engage/echo-config.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/engage/echo-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/engage/echo-config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBO,IAAM,0BAAA,GAA+C;AAAA,EAC1D,SAAA,EAAW,yBAAA;AAAA,EACX,cAAA,EACE,0KAAA;AAAA,EACF,kBAAA,EAAoB;AAAA,IAClB,qBAAA;AAAA,IACA,0BAAA;AAAA,IACA,6BAAA;AAAA,IACA,6BAAA;AAAA,IACA;AAAA,GACF;AAAA,EACA,UAAA,EAAY,SAAA;AAAA;AAAA,EACZ,aAAA,EAAe;AACjB;AAEO,SAAS,kBAAA,CAAmB,SAA2B,0BAAA,EAA4B;AACxF,EAAA,OAAO;AAAA,IACL,cAAA,EAAgB,IAAA;AAAA,IAChB,UAAA,EAAY,MAAA,CAAO,SAAA,IAAa,0BAAA,CAA2B,SAAA;AAAA,IAC3D,eAAA,EAAiB,MAAA,CAAO,cAAA,IAAkB,0BAAA,CAA2B,cAAA;AAAA,IACrE,mBAAA,EAAqB,MAAA,CAAO,kBAAA,IAAsB,0BAAA,CAA2B,kBAAA;AAAA,IAC7E,WAAA,EAAa,MAAA,CAAO,UAAA,IAAc,0BAAA,CAA2B,UAAA;AAAA,IAC7D,cAAA,EAAgB,MAAA,CAAO,aAAA,IAAiB,0BAAA,CAA2B,aAAA;AAAA,IACnE,kBAAkB,MAAA,CAAO;AAAA,GAC3B;AACF","file":"index.mjs","sourcesContent":["/**\n * @sonordev/site-kit/engage - Echo Public Configuration\n *\n * Helpers for configuring the ChatWidget with Echo-specific defaults\n * for the Sonor public site (sonor.io).\n */\n\nexport interface EchoPublicConfig {\n signalUrl?: string\n welcomeMessage?: string\n suggestedQuestions?: string[]\n brandColor?: string\n assistantName?: string\n assistantAvatar?: string\n}\n\nexport const SONOR_PUBLIC_ECHO_DEFAULTS: EchoPublicConfig = {\n signalUrl: 'https://signal.sonor.io',\n welcomeMessage:\n \"Hi! I'm Echo, Sonor's AI assistant. I can answer questions about our platform, help you understand pricing, or get you started with a demo. What would you like to know?\",\n suggestedQuestions: [\n 'What does Sonor do?',\n 'How does Signal AI work?',\n 'What are the pricing plans?',\n 'Can I migrate from HubSpot?',\n 'How does the SEO module work?',\n ],\n brandColor: '#2563eb', // blue-600 (~5.2:1 on white, AA); overridden by --sk-primary CSS var or API brand_primary\n assistantName: 'Echo',\n}\n\nexport function getEchoWidgetProps(config: EchoPublicConfig = SONOR_PUBLIC_ECHO_DEFAULTS) {\n return {\n signal_enabled: true,\n signal_url: config.signalUrl || SONOR_PUBLIC_ECHO_DEFAULTS.signalUrl,\n welcome_message: config.welcomeMessage || SONOR_PUBLIC_ECHO_DEFAULTS.welcomeMessage,\n suggested_questions: config.suggestedQuestions || SONOR_PUBLIC_ECHO_DEFAULTS.suggestedQuestions,\n brand_color: config.brandColor || SONOR_PUBLIC_ECHO_DEFAULTS.brandColor,\n assistant_name: config.assistantName || SONOR_PUBLIC_ECHO_DEFAULTS.assistantName,\n assistant_avatar: config.assistantAvatar,\n }\n}\n"]}
|
package/dist/fleet/index.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkCPYUZSJN_js = require('../chunk-CPYUZSJN.js');
|
|
5
5
|
require('../chunk-HGNSJXWT.js');
|
|
6
6
|
var chunkQ2NBD54V_js = require('../chunk-Q2NBD54V.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-FMUTOABC.js');
|
|
8
|
+
require('../chunk-KTHQKVGZ.js');
|
|
9
|
+
require('../chunk-K24NKI35.js');
|
|
9
10
|
require('../chunk-ZSMWDLMK.js');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
Object.defineProperty(exports, "FLEET_HEARTBEAT_PATH", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkCPYUZSJN_js.FLEET_HEARTBEAT_PATH; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "FleetHeartbeat", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCPYUZSJN_js.FleetHeartbeat; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "detectNextVersion", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCPYUZSJN_js.detectNextVersion; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "sendFleetHeartbeat", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkCPYUZSJN_js.sendFleetHeartbeat; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "FLEET_CONTRACT_VERSION", {
|
|
30
31
|
enumerable: true,
|
package/dist/fleet/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-
|
|
2
|
+
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-ZTEQXVQF.mjs';
|
|
3
3
|
import '../chunk-ZVBLXXNJ.mjs';
|
|
4
4
|
export { FLEET_CONTRACT_VERSION, FLEET_MODULES, FLEET_MODULES_MAX, FLEET_SITE_MAX_LENGTH, FLEET_VERSION_MAX_LENGTH, FLEET_VERSION_PATTERN, buildFleetHeartbeatPayload, isFleetModule, normalizeFleetModules, normalizeFleetSite, sanitizeFleetVersion } from '../chunk-ZPLN537Q.mjs';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-S32BEPZM.mjs';
|
|
6
|
+
import '../chunk-BYW3MJ36.mjs';
|
|
7
|
+
import '../chunk-KRZL6VYP.mjs';
|
|
7
8
|
import '../chunk-4XPGGLVP.mjs';
|
|
8
9
|
//# sourceMappingURL=index.mjs.map
|
|
9
10
|
//# sourceMappingURL=index.mjs.map
|
package/dist/forms/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkDLZEFUKB_js = require('../chunk-DLZEFUKB.js');
|
|
5
5
|
var chunkV6NVBFEP_js = require('../chunk-V6NVBFEP.js');
|
|
6
6
|
require('../chunk-VJMPIRSD.js');
|
|
7
|
-
var
|
|
8
|
-
require('../chunk-
|
|
7
|
+
var chunkFMUTOABC_js = require('../chunk-FMUTOABC.js');
|
|
8
|
+
require('../chunk-KTHQKVGZ.js');
|
|
9
|
+
require('../chunk-K24NKI35.js');
|
|
9
10
|
require('../chunk-ZSMWDLMK.js');
|
|
10
11
|
var React2 = require('react');
|
|
11
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -43,7 +44,7 @@ async function apiRequest(method, path, body) {
|
|
|
43
44
|
const token = await getAuthToken();
|
|
44
45
|
headers["Authorization"] = `Bearer ${token}`;
|
|
45
46
|
}
|
|
46
|
-
const response = await
|
|
47
|
+
const response = await chunkFMUTOABC_js.sonorFetch(`${baseUrl}${path}`, {
|
|
47
48
|
method,
|
|
48
49
|
headers,
|
|
49
50
|
body: body ? JSON.stringify(body) : void 0
|
|
@@ -896,7 +897,7 @@ async function uploadFormFile(file) {
|
|
|
896
897
|
}
|
|
897
898
|
const body = new FormData();
|
|
898
899
|
body.append("file", file);
|
|
899
|
-
const response = await
|
|
900
|
+
const response = await chunkFMUTOABC_js.sonorFetch(
|
|
900
901
|
`${apiUrl}/api/public/forms/upload`,
|
|
901
902
|
{
|
|
902
903
|
method: "POST",
|
|
@@ -931,7 +932,7 @@ function FormClient({
|
|
|
931
932
|
const honeypotFieldName = config2.honeypot_field || chunkV6NVBFEP_js.DEFAULT_HONEYPOT_FIELD;
|
|
932
933
|
const formLoadedAt = React2.useRef(Date.now());
|
|
933
934
|
const isSubmittingRef = React2.useRef(false);
|
|
934
|
-
const { trackStepChange, trackComplete } =
|
|
935
|
+
const { trackStepChange, trackComplete } = chunkDLZEFUKB_js.useFormTracking({
|
|
935
936
|
formId: config2.id,
|
|
936
937
|
totalSteps: config2.total_steps
|
|
937
938
|
});
|
|
@@ -1090,7 +1091,7 @@ function FormClient({
|
|
|
1090
1091
|
setIsSubmitting(true);
|
|
1091
1092
|
setSubmitError(null);
|
|
1092
1093
|
try {
|
|
1093
|
-
const data = await
|
|
1094
|
+
const data = await chunkDLZEFUKB_js.submitForm({
|
|
1094
1095
|
config: config2,
|
|
1095
1096
|
values: buildVisibleValues(),
|
|
1096
1097
|
honeypotValue: config2.honeypot_enabled ? honeypotValue : "",
|
|
@@ -1132,7 +1133,7 @@ function FormClient({
|
|
|
1132
1133
|
};
|
|
1133
1134
|
if (isComplete) {
|
|
1134
1135
|
const raw = config2.success_message;
|
|
1135
|
-
const message = typeof raw === "string" && raw.trim().length > 0 ? raw.trim() :
|
|
1136
|
+
const message = typeof raw === "string" && raw.trim().length > 0 ? raw.trim() : chunkDLZEFUKB_js.DEFAULT_FORM_SUCCESS_MESSAGE;
|
|
1136
1137
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1137
1138
|
"div",
|
|
1138
1139
|
{
|
|
@@ -1256,7 +1257,7 @@ function ManagedForm({
|
|
|
1256
1257
|
form,
|
|
1257
1258
|
isLoading,
|
|
1258
1259
|
fetchError
|
|
1259
|
-
} =
|
|
1260
|
+
} = chunkDLZEFUKB_js.useForm(formId, {
|
|
1260
1261
|
projectId,
|
|
1261
1262
|
onSuccess,
|
|
1262
1263
|
onError
|
|
@@ -1281,15 +1282,15 @@ function ManagedForm({
|
|
|
1281
1282
|
|
|
1282
1283
|
Object.defineProperty(exports, "DEFAULT_FORM_SUCCESS_MESSAGE", {
|
|
1283
1284
|
enumerable: true,
|
|
1284
|
-
get: function () { return
|
|
1285
|
+
get: function () { return chunkDLZEFUKB_js.DEFAULT_FORM_SUCCESS_MESSAGE; }
|
|
1285
1286
|
});
|
|
1286
1287
|
Object.defineProperty(exports, "useForm", {
|
|
1287
1288
|
enumerable: true,
|
|
1288
|
-
get: function () { return
|
|
1289
|
+
get: function () { return chunkDLZEFUKB_js.useForm; }
|
|
1289
1290
|
});
|
|
1290
1291
|
Object.defineProperty(exports, "useFormTracking", {
|
|
1291
1292
|
enumerable: true,
|
|
1292
|
-
get: function () { return
|
|
1293
|
+
get: function () { return chunkDLZEFUKB_js.useFormTracking; }
|
|
1293
1294
|
});
|
|
1294
1295
|
exports.DatePicker = DatePicker;
|
|
1295
1296
|
exports.FormClient = FormClient;
|