@swipefindercom/finder-sdk 1.0.25 → 1.0.26
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/finder-sdk.esm.js
CHANGED
|
@@ -27443,12 +27443,12 @@ class DataService {
|
|
|
27443
27443
|
}
|
|
27444
27444
|
}
|
|
27445
27445
|
function initSwipeFinder(options) {
|
|
27446
|
-
const { backendUrl, finderId, element, ...config } = options;
|
|
27446
|
+
const { backendUrl, finderId, element, dataService: customDataService, ...config } = options;
|
|
27447
27447
|
if (!element || !(element instanceof HTMLElement)) {
|
|
27448
27448
|
throw new Error("Invalid element provided. Must be an HTMLElement.");
|
|
27449
27449
|
}
|
|
27450
27450
|
const monitorService = new MonitorService();
|
|
27451
|
-
const dataService = new DataService();
|
|
27451
|
+
const dataService = customDataService ?? new DataService();
|
|
27452
27452
|
const root = createRoot(element);
|
|
27453
27453
|
root.render(
|
|
27454
27454
|
React.createElement(MainBootstrap, {
|