@sonordev/site-kit 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -62,6 +62,11 @@ interface SiteKitConfig {
|
|
|
62
62
|
enabled: boolean;
|
|
63
63
|
honeypotField?: string;
|
|
64
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* When true (default), mounts SitemapSync to POST sitemap to the Portal on each visit.
|
|
67
|
+
* Set false when using build-time `createSitemap()` in `app/sitemap.ts` (avoids duplicate sync).
|
|
68
|
+
*/
|
|
69
|
+
sitemapSync?: boolean;
|
|
65
70
|
/** Debug mode - logs to console */
|
|
66
71
|
debug?: boolean;
|
|
67
72
|
}
|
|
@@ -82,7 +87,7 @@ interface SiteKitProviderProps extends SiteKitConfig {
|
|
|
82
87
|
children: ReactNode;
|
|
83
88
|
signalUrl?: string;
|
|
84
89
|
}
|
|
85
|
-
declare function SiteKitProvider({ children, apiKey, apiUrl, signalUrl, projectId, recaptchaSiteKey, analytics, engage, forms, signal, debug, }: SiteKitProviderProps & {
|
|
90
|
+
declare function SiteKitProvider({ children, apiKey, apiUrl, signalUrl, projectId, recaptchaSiteKey, analytics, engage, forms, signal, sitemapSync, debug, }: SiteKitProviderProps & {
|
|
86
91
|
signal?: SignalConfig$1;
|
|
87
92
|
}): react_jsx_runtime.JSX.Element;
|
|
88
93
|
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,11 @@ interface SiteKitConfig {
|
|
|
62
62
|
enabled: boolean;
|
|
63
63
|
honeypotField?: string;
|
|
64
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* When true (default), mounts SitemapSync to POST sitemap to the Portal on each visit.
|
|
67
|
+
* Set false when using build-time `createSitemap()` in `app/sitemap.ts` (avoids duplicate sync).
|
|
68
|
+
*/
|
|
69
|
+
sitemapSync?: boolean;
|
|
65
70
|
/** Debug mode - logs to console */
|
|
66
71
|
debug?: boolean;
|
|
67
72
|
}
|
|
@@ -82,7 +87,7 @@ interface SiteKitProviderProps extends SiteKitConfig {
|
|
|
82
87
|
children: ReactNode;
|
|
83
88
|
signalUrl?: string;
|
|
84
89
|
}
|
|
85
|
-
declare function SiteKitProvider({ children, apiKey, apiUrl, signalUrl, projectId, recaptchaSiteKey, analytics, engage, forms, signal, debug, }: SiteKitProviderProps & {
|
|
90
|
+
declare function SiteKitProvider({ children, apiKey, apiUrl, signalUrl, projectId, recaptchaSiteKey, analytics, engage, forms, signal, sitemapSync, debug, }: SiteKitProviderProps & {
|
|
86
91
|
signal?: SignalConfig$1;
|
|
87
92
|
}): react_jsx_runtime.JSX.Element;
|
|
88
93
|
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ function SiteKitProvider({
|
|
|
41
41
|
engage,
|
|
42
42
|
forms,
|
|
43
43
|
signal,
|
|
44
|
+
sitemapSync = true,
|
|
44
45
|
debug = false
|
|
45
46
|
}) {
|
|
46
47
|
const isDev = typeof process !== "undefined" && process.env?.NODE_ENV === "development";
|
|
@@ -124,10 +125,12 @@ function SiteKitProvider({
|
|
|
124
125
|
)
|
|
125
126
|
] });
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
content,
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
if (sitemapSync) {
|
|
129
|
+
content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
130
|
+
content,
|
|
131
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQW4RQHSK_js.SitemapSync, { debug })
|
|
132
|
+
] });
|
|
133
|
+
}
|
|
131
134
|
return /* @__PURE__ */ jsxRuntime.jsx(SiteKitContext.Provider, { value: contextValue, children: content });
|
|
132
135
|
}
|
|
133
136
|
|