@sonordev/site-kit 1.5.3 → 1.5.5

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.
@@ -1,7 +1,7 @@
1
+ import React__default from 'react';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
3
  import { C as ChatConfig } from '../types-BnCwwUX3.mjs';
3
4
  export { A as ActionConfig, h as ChatAvailability, g as ChatConversation, f as ChatMessage, a as DesignDocument, b as DesignNode, D as DesignRenderer, j as EngageAnalytics, i as EngageConfig, E as EngageContext, c as EngageElement, T as TargetingRules, e as TriggerConfig, d as WidgetConfig, W as WidgetType } from '../types-BnCwwUX3.mjs';
4
- import 'react';
5
5
 
6
6
  /**
7
7
  * @sonordev/site-kit/engage - Engage Widget
@@ -9,6 +9,7 @@ import 'react';
9
9
  * Loads and renders engagement widgets (popups, nudges, bars, chat) via Portal API
10
10
  * Supports both legacy config-based rendering and new design_json from Engage Studio
11
11
  */
12
+
12
13
  interface EngageWidgetProps {
13
14
  apiUrl?: string;
14
15
  apiKey?: string;
@@ -18,7 +19,7 @@ interface EngageWidgetProps {
18
19
  chatEnabled?: boolean;
19
20
  debug?: boolean;
20
21
  }
21
- declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, projectId: propProjectId, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): react_jsx_runtime.JSX.Element;
22
+ declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, projectId: propProjectId, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): React__default.ReactPortal | null;
22
23
 
23
24
  interface ChatWidgetProps {
24
25
  /** Optional: resolved from API key via project-info when not provided */
@@ -1,7 +1,7 @@
1
+ import React__default from 'react';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
3
  import { C as ChatConfig } from '../types-BnCwwUX3.js';
3
4
  export { A as ActionConfig, h as ChatAvailability, g as ChatConversation, f as ChatMessage, a as DesignDocument, b as DesignNode, D as DesignRenderer, j as EngageAnalytics, i as EngageConfig, E as EngageContext, c as EngageElement, T as TargetingRules, e as TriggerConfig, d as WidgetConfig, W as WidgetType } from '../types-BnCwwUX3.js';
4
- import 'react';
5
5
 
6
6
  /**
7
7
  * @sonordev/site-kit/engage - Engage Widget
@@ -9,6 +9,7 @@ import 'react';
9
9
  * Loads and renders engagement widgets (popups, nudges, bars, chat) via Portal API
10
10
  * Supports both legacy config-based rendering and new design_json from Engage Studio
11
11
  */
12
+
12
13
  interface EngageWidgetProps {
13
14
  apiUrl?: string;
14
15
  apiKey?: string;
@@ -18,7 +19,7 @@ interface EngageWidgetProps {
18
19
  chatEnabled?: boolean;
19
20
  debug?: boolean;
20
21
  }
21
- declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, projectId: propProjectId, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): react_jsx_runtime.JSX.Element;
22
+ declare function EngageWidget({ apiUrl: propApiUrl, apiKey: propApiKey, projectId: propProjectId, position, zIndex, chatEnabled, debug, }: EngageWidgetProps): React__default.ReactPortal | null;
22
23
 
23
24
  interface ChatWidgetProps {
24
25
  /** Optional: resolved from API key via project-info when not provided */
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkDK2WNYQA_js = require('../chunk-DK2WNYQA.js');
4
+ var chunkXWWBUC2I_js = require('../chunk-XWWBUC2I.js');
5
5
  require('../chunk-ZSMWDLMK.js');
6
6
 
7
7
  // src/engage/echo-config.ts
@@ -33,15 +33,15 @@ function getEchoWidgetProps(config = SONOR_PUBLIC_ECHO_DEFAULTS) {
33
33
 
34
34
  Object.defineProperty(exports, "ChatWidget", {
35
35
  enumerable: true,
36
- get: function () { return chunkDK2WNYQA_js.ChatWidget; }
36
+ get: function () { return chunkXWWBUC2I_js.ChatWidget; }
37
37
  });
38
38
  Object.defineProperty(exports, "DesignRenderer", {
39
39
  enumerable: true,
40
- get: function () { return chunkDK2WNYQA_js.DesignRenderer; }
40
+ get: function () { return chunkXWWBUC2I_js.DesignRenderer; }
41
41
  });
42
42
  Object.defineProperty(exports, "EngageWidget", {
43
43
  enumerable: true,
44
- get: function () { return chunkDK2WNYQA_js.EngageWidget; }
44
+ get: function () { return chunkXWWBUC2I_js.EngageWidget; }
45
45
  });
46
46
  exports.SONOR_PUBLIC_ECHO_DEFAULTS = SONOR_PUBLIC_ECHO_DEFAULTS;
47
47
  exports.getEchoWidgetProps = getEchoWidgetProps;
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { ChatWidget, DesignRenderer, EngageWidget } from '../chunk-VZMRZQ2D.mjs';
2
+ export { ChatWidget, DesignRenderer, EngageWidget } from '../chunk-FVCQBTNK.mjs';
3
3
  import '../chunk-4XPGGLVP.mjs';
4
4
 
5
5
  // src/engage/echo-config.ts
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ var chunkIFAW7JFO_js = require('./chunk-IFAW7JFO.js');
12
12
  var chunkQW4RQHSK_js = require('./chunk-QW4RQHSK.js');
13
13
  require('./chunk-TC6TOW2T.js');
14
14
  var chunkFTSXKDP3_js = require('./chunk-FTSXKDP3.js');
15
- var chunkDK2WNYQA_js = require('./chunk-DK2WNYQA.js');
15
+ var chunkXWWBUC2I_js = require('./chunk-XWWBUC2I.js');
16
16
  var chunk373TK6TZ_js = require('./chunk-373TK6TZ.js');
17
17
  require('./chunk-ZSMWDLMK.js');
18
18
  var React2 = require('react');
@@ -114,7 +114,7 @@ function SiteKitProvider({
114
114
  content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
115
115
  content,
116
116
  /* @__PURE__ */ jsxRuntime.jsx(
117
- chunkDK2WNYQA_js.EngageWidget,
117
+ chunkXWWBUC2I_js.EngageWidget,
118
118
  {
119
119
  apiUrl: finalApiUrl,
120
120
  apiKey,
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ export { SetupWizard } from './chunk-IKIJEKU3.mjs';
11
11
  import { SitemapSync } from './chunk-TSK35UHV.mjs';
12
12
  import './chunk-PM2KQ6YK.mjs';
13
13
  import { AnalyticsProvider } from './chunk-KRPFLF62.mjs';
14
- import { EngageWidget } from './chunk-VZMRZQ2D.mjs';
14
+ import { EngageWidget } from './chunk-FVCQBTNK.mjs';
15
15
  import { configureFormsApi } from './chunk-S7FRYNSU.mjs';
16
16
  import './chunk-4XPGGLVP.mjs';
17
17
  import React2, { createContext, useContext, useEffect, useMemo, Suspense, useState, useRef, useCallback } from 'react';
@@ -1,14 +1,14 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkOE5DEMCV_js = require('../chunk-OE5DEMCV.js');
4
+ var chunkTXZNP76P_js = require('../chunk-TXZNP76P.js');
5
5
  require('../chunk-ZSMWDLMK.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "SiteKitClientProviders", {
10
10
  enumerable: true,
11
- get: function () { return chunkOE5DEMCV_js.SiteKitClientProviders; }
11
+ get: function () { return chunkTXZNP76P_js.SiteKitClientProviders; }
12
12
  });
13
13
  //# sourceMappingURL=client.js.map
14
14
  //# sourceMappingURL=client.js.map
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { SiteKitClientProviders } from '../chunk-35MALWVX.mjs';
2
+ export { SiteKitClientProviders } from '../chunk-VNAJQKYG.mjs';
3
3
  import '../chunk-4XPGGLVP.mjs';
4
4
  //# sourceMappingURL=client.mjs.map
5
5
  //# sourceMappingURL=client.mjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkOE5DEMCV_js = require('../chunk-OE5DEMCV.js');
3
+ var chunkTXZNP76P_js = require('../chunk-TXZNP76P.js');
4
4
  var chunkDY4K6X3A_js = require('../chunk-DY4K6X3A.js');
5
5
  var chunkKJN2C6YE_js = require('../chunk-KJN2C6YE.js');
6
6
  require('../chunk-PTTDKFL7.js');
@@ -31,7 +31,7 @@ async function SiteKitLayout({
31
31
  favicon && /* @__PURE__ */ jsxRuntime.jsx(chunkDY4K6X3A_js.ManagedFavicon, { apiKey: resolvedApiKey, apiUrl: resolvedApiUrl }),
32
32
  managedScripts && /* @__PURE__ */ jsxRuntime.jsx(chunkKJN2C6YE_js.ManagedScripts, { position: "head" }),
33
33
  /* @__PURE__ */ jsxRuntime.jsx(
34
- chunkOE5DEMCV_js.SiteKitClientProviders,
34
+ chunkTXZNP76P_js.SiteKitClientProviders,
35
35
  {
36
36
  apiKey: resolvedApiKey,
37
37
  apiUrl: resolvedApiUrl,
@@ -1,4 +1,4 @@
1
- import { SiteKitClientProviders } from '../chunk-35MALWVX.mjs';
1
+ import { SiteKitClientProviders } from '../chunk-VNAJQKYG.mjs';
2
2
  import { ManagedFavicon } from '../chunk-N24BPFF6.mjs';
3
3
  import { ManagedScripts } from '../chunk-M5FLRLHI.mjs';
4
4
  import '../chunk-FMB2RZDH.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonordev/site-kit",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Complete client-side integration kit for Sonor - SEO, Analytics, Engage, Forms, Blog",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -176,9 +176,9 @@
176
176
  "dependencies": {
177
177
  "@babel/parser": "^7.23.0",
178
178
  "@babel/traverse": "^7.23.0",
179
- "@supabase/supabase-js": "^2.49.1",
180
179
  "@portabletext/react": "^6.0.3",
181
180
  "@sanity/image-url": "^2.0.3",
181
+ "@supabase/supabase-js": "^2.49.1",
182
182
  "chalk": "^5.3.0",
183
183
  "commander": "^11.1.0",
184
184
  "dotenv": "^17.2.3",
@@ -195,6 +195,7 @@
195
195
  "@types/babel__traverse": "^7.20.0",
196
196
  "@types/inquirer": "^9.0.0",
197
197
  "@types/react": "^18.2.0",
198
+ "@types/react-dom": "^19.2.3",
198
199
  "next": "^15.0.0",
199
200
  "react": "^19.0.0",
200
201
  "tsup": "^8.0.0",
@@ -1,4 +0,0 @@
1
- export { EngageWidget } from './chunk-VZMRZQ2D.mjs';
2
- import './chunk-4XPGGLVP.mjs';
3
- //# sourceMappingURL=EngageWidget-RWBCI4RM.mjs.map
4
- //# sourceMappingURL=EngageWidget-RWBCI4RM.mjs.map
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkDK2WNYQA_js = require('./chunk-DK2WNYQA.js');
4
- require('./chunk-ZSMWDLMK.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "EngageWidget", {
9
- enumerable: true,
10
- get: function () { return chunkDK2WNYQA_js.EngageWidget; }
11
- });
12
- //# sourceMappingURL=EngageWidget-T2S5WUMJ.js.map
13
- //# sourceMappingURL=EngageWidget-T2S5WUMJ.js.map