@getlupa/client 1.0.4 → 1.0.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.
- package/dist/lupaSearch.iife.js +7 -65
- package/dist/lupaSearch.js +7 -65
- package/dist/lupaSearch.mjs +7 -65
- package/dist/lupaSearch.umd.js +7 -65
- package/package.json +2 -4
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -5749,55 +5749,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
5749
5749
|
}
|
|
5750
5750
|
return container;
|
|
5751
5751
|
}
|
|
5752
|
-
var isVue2$1 = false;
|
|
5753
|
-
/*!
|
|
5754
|
-
* pinia v2.1.4
|
|
5755
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
5756
|
-
* @license MIT
|
|
5757
|
-
*/
|
|
5758
|
-
const piniaSymbol$1 = (
|
|
5759
|
-
/* istanbul ignore next */
|
|
5760
|
-
Symbol()
|
|
5761
|
-
);
|
|
5762
|
-
var MutationType$1;
|
|
5763
|
-
(function(MutationType2) {
|
|
5764
|
-
MutationType2["direct"] = "direct";
|
|
5765
|
-
MutationType2["patchObject"] = "patch object";
|
|
5766
|
-
MutationType2["patchFunction"] = "patch function";
|
|
5767
|
-
})(MutationType$1 || (MutationType$1 = {}));
|
|
5768
|
-
function createPinia$1() {
|
|
5769
|
-
const scope = effectScope(true);
|
|
5770
|
-
const state = scope.run(() => ref({}));
|
|
5771
|
-
let _p = [];
|
|
5772
|
-
let toBeInstalled = [];
|
|
5773
|
-
const pinia = markRaw({
|
|
5774
|
-
install(app2) {
|
|
5775
|
-
{
|
|
5776
|
-
pinia._a = app2;
|
|
5777
|
-
app2.provide(piniaSymbol$1, pinia);
|
|
5778
|
-
app2.config.globalProperties.$pinia = pinia;
|
|
5779
|
-
toBeInstalled.forEach((plugin) => _p.push(plugin));
|
|
5780
|
-
toBeInstalled = [];
|
|
5781
|
-
}
|
|
5782
|
-
},
|
|
5783
|
-
use(plugin) {
|
|
5784
|
-
if (!this._a && !isVue2$1) {
|
|
5785
|
-
toBeInstalled.push(plugin);
|
|
5786
|
-
} else {
|
|
5787
|
-
_p.push(plugin);
|
|
5788
|
-
}
|
|
5789
|
-
return this;
|
|
5790
|
-
},
|
|
5791
|
-
_p,
|
|
5792
|
-
// it's actually undefined here
|
|
5793
|
-
// @ts-expect-error
|
|
5794
|
-
_a: null,
|
|
5795
|
-
_e: scope,
|
|
5796
|
-
_s: /* @__PURE__ */ new Map(),
|
|
5797
|
-
state
|
|
5798
|
-
});
|
|
5799
|
-
return pinia;
|
|
5800
|
-
}
|
|
5801
5752
|
var __defProp2 = Object.defineProperty;
|
|
5802
5753
|
var __defProps2 = Object.defineProperties;
|
|
5803
5754
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -20545,17 +20496,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20545
20496
|
};
|
|
20546
20497
|
}
|
|
20547
20498
|
});
|
|
20548
|
-
let piniaInstance
|
|
20549
|
-
const initPinia
|
|
20550
|
-
if (piniaInstance
|
|
20551
|
-
return piniaInstance
|
|
20499
|
+
let piniaInstance = null;
|
|
20500
|
+
const initPinia = () => {
|
|
20501
|
+
if (piniaInstance) {
|
|
20502
|
+
return piniaInstance;
|
|
20552
20503
|
}
|
|
20553
20504
|
const pinia = createPinia();
|
|
20554
|
-
piniaInstance
|
|
20505
|
+
piniaInstance = pinia;
|
|
20555
20506
|
return pinia;
|
|
20556
20507
|
};
|
|
20557
20508
|
const setupTracking = (options) => {
|
|
20558
|
-
const pinia = initPinia
|
|
20509
|
+
const pinia = initPinia();
|
|
20559
20510
|
const store = useOptionsStore(pinia);
|
|
20560
20511
|
initTracking(options);
|
|
20561
20512
|
store.setTrackingOptions({ options });
|
|
@@ -26423,15 +26374,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26423
26374
|
searchContainer: {},
|
|
26424
26375
|
recommendations: {}
|
|
26425
26376
|
};
|
|
26426
|
-
let piniaInstance = null;
|
|
26427
|
-
const initPinia = () => {
|
|
26428
|
-
if (piniaInstance) {
|
|
26429
|
-
return piniaInstance;
|
|
26430
|
-
}
|
|
26431
|
-
const pinia = createPinia$1();
|
|
26432
|
-
piniaInstance = pinia;
|
|
26433
|
-
return pinia;
|
|
26434
|
-
};
|
|
26435
26377
|
const tracking = (options) => {
|
|
26436
26378
|
setupTracking(options);
|
|
26437
26379
|
};
|
|
@@ -26516,7 +26458,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26516
26458
|
return;
|
|
26517
26459
|
}
|
|
26518
26460
|
const instance = createVue(options.containerSelector, _sfc_main$2, {
|
|
26519
|
-
|
|
26461
|
+
productListOptions: options
|
|
26520
26462
|
});
|
|
26521
26463
|
if (!instance) {
|
|
26522
26464
|
return;
|
package/dist/lupaSearch.js
CHANGED
|
@@ -5749,55 +5749,6 @@ function normalizeContainer(container) {
|
|
|
5749
5749
|
}
|
|
5750
5750
|
return container;
|
|
5751
5751
|
}
|
|
5752
|
-
var isVue2$1 = false;
|
|
5753
|
-
/*!
|
|
5754
|
-
* pinia v2.1.4
|
|
5755
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
5756
|
-
* @license MIT
|
|
5757
|
-
*/
|
|
5758
|
-
const piniaSymbol$1 = (
|
|
5759
|
-
/* istanbul ignore next */
|
|
5760
|
-
Symbol()
|
|
5761
|
-
);
|
|
5762
|
-
var MutationType$1;
|
|
5763
|
-
(function(MutationType2) {
|
|
5764
|
-
MutationType2["direct"] = "direct";
|
|
5765
|
-
MutationType2["patchObject"] = "patch object";
|
|
5766
|
-
MutationType2["patchFunction"] = "patch function";
|
|
5767
|
-
})(MutationType$1 || (MutationType$1 = {}));
|
|
5768
|
-
function createPinia$1() {
|
|
5769
|
-
const scope = effectScope(true);
|
|
5770
|
-
const state = scope.run(() => ref({}));
|
|
5771
|
-
let _p = [];
|
|
5772
|
-
let toBeInstalled = [];
|
|
5773
|
-
const pinia = markRaw({
|
|
5774
|
-
install(app2) {
|
|
5775
|
-
{
|
|
5776
|
-
pinia._a = app2;
|
|
5777
|
-
app2.provide(piniaSymbol$1, pinia);
|
|
5778
|
-
app2.config.globalProperties.$pinia = pinia;
|
|
5779
|
-
toBeInstalled.forEach((plugin) => _p.push(plugin));
|
|
5780
|
-
toBeInstalled = [];
|
|
5781
|
-
}
|
|
5782
|
-
},
|
|
5783
|
-
use(plugin) {
|
|
5784
|
-
if (!this._a && !isVue2$1) {
|
|
5785
|
-
toBeInstalled.push(plugin);
|
|
5786
|
-
} else {
|
|
5787
|
-
_p.push(plugin);
|
|
5788
|
-
}
|
|
5789
|
-
return this;
|
|
5790
|
-
},
|
|
5791
|
-
_p,
|
|
5792
|
-
// it's actually undefined here
|
|
5793
|
-
// @ts-expect-error
|
|
5794
|
-
_a: null,
|
|
5795
|
-
_e: scope,
|
|
5796
|
-
_s: /* @__PURE__ */ new Map(),
|
|
5797
|
-
state
|
|
5798
|
-
});
|
|
5799
|
-
return pinia;
|
|
5800
|
-
}
|
|
5801
5752
|
var __defProp2 = Object.defineProperty;
|
|
5802
5753
|
var __defProps2 = Object.defineProperties;
|
|
5803
5754
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -20545,17 +20496,17 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
20545
20496
|
};
|
|
20546
20497
|
}
|
|
20547
20498
|
});
|
|
20548
|
-
let piniaInstance
|
|
20549
|
-
const initPinia
|
|
20550
|
-
if (piniaInstance
|
|
20551
|
-
return piniaInstance
|
|
20499
|
+
let piniaInstance = null;
|
|
20500
|
+
const initPinia = () => {
|
|
20501
|
+
if (piniaInstance) {
|
|
20502
|
+
return piniaInstance;
|
|
20552
20503
|
}
|
|
20553
20504
|
const pinia = createPinia();
|
|
20554
|
-
piniaInstance
|
|
20505
|
+
piniaInstance = pinia;
|
|
20555
20506
|
return pinia;
|
|
20556
20507
|
};
|
|
20557
20508
|
const setupTracking = (options) => {
|
|
20558
|
-
const pinia = initPinia
|
|
20509
|
+
const pinia = initPinia();
|
|
20559
20510
|
const store = useOptionsStore(pinia);
|
|
20560
20511
|
initTracking(options);
|
|
20561
20512
|
store.setTrackingOptions({ options });
|
|
@@ -26423,15 +26374,6 @@ const app = {
|
|
|
26423
26374
|
searchContainer: {},
|
|
26424
26375
|
recommendations: {}
|
|
26425
26376
|
};
|
|
26426
|
-
let piniaInstance = null;
|
|
26427
|
-
const initPinia = () => {
|
|
26428
|
-
if (piniaInstance) {
|
|
26429
|
-
return piniaInstance;
|
|
26430
|
-
}
|
|
26431
|
-
const pinia = createPinia$1();
|
|
26432
|
-
piniaInstance = pinia;
|
|
26433
|
-
return pinia;
|
|
26434
|
-
};
|
|
26435
26377
|
const tracking = (options) => {
|
|
26436
26378
|
setupTracking(options);
|
|
26437
26379
|
};
|
|
@@ -26516,7 +26458,7 @@ const productList = (options, mountOptions) => {
|
|
|
26516
26458
|
return;
|
|
26517
26459
|
}
|
|
26518
26460
|
const instance = createVue(options.containerSelector, _sfc_main$2, {
|
|
26519
|
-
|
|
26461
|
+
productListOptions: options
|
|
26520
26462
|
});
|
|
26521
26463
|
if (!instance) {
|
|
26522
26464
|
return;
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -5747,55 +5747,6 @@ function normalizeContainer(container) {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
return container;
|
|
5749
5749
|
}
|
|
5750
|
-
var isVue2$1 = false;
|
|
5751
|
-
/*!
|
|
5752
|
-
* pinia v2.1.4
|
|
5753
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
5754
|
-
* @license MIT
|
|
5755
|
-
*/
|
|
5756
|
-
const piniaSymbol$1 = (
|
|
5757
|
-
/* istanbul ignore next */
|
|
5758
|
-
Symbol()
|
|
5759
|
-
);
|
|
5760
|
-
var MutationType$1;
|
|
5761
|
-
(function(MutationType2) {
|
|
5762
|
-
MutationType2["direct"] = "direct";
|
|
5763
|
-
MutationType2["patchObject"] = "patch object";
|
|
5764
|
-
MutationType2["patchFunction"] = "patch function";
|
|
5765
|
-
})(MutationType$1 || (MutationType$1 = {}));
|
|
5766
|
-
function createPinia$1() {
|
|
5767
|
-
const scope = effectScope(true);
|
|
5768
|
-
const state = scope.run(() => ref({}));
|
|
5769
|
-
let _p = [];
|
|
5770
|
-
let toBeInstalled = [];
|
|
5771
|
-
const pinia = markRaw({
|
|
5772
|
-
install(app2) {
|
|
5773
|
-
{
|
|
5774
|
-
pinia._a = app2;
|
|
5775
|
-
app2.provide(piniaSymbol$1, pinia);
|
|
5776
|
-
app2.config.globalProperties.$pinia = pinia;
|
|
5777
|
-
toBeInstalled.forEach((plugin) => _p.push(plugin));
|
|
5778
|
-
toBeInstalled = [];
|
|
5779
|
-
}
|
|
5780
|
-
},
|
|
5781
|
-
use(plugin) {
|
|
5782
|
-
if (!this._a && !isVue2$1) {
|
|
5783
|
-
toBeInstalled.push(plugin);
|
|
5784
|
-
} else {
|
|
5785
|
-
_p.push(plugin);
|
|
5786
|
-
}
|
|
5787
|
-
return this;
|
|
5788
|
-
},
|
|
5789
|
-
_p,
|
|
5790
|
-
// it's actually undefined here
|
|
5791
|
-
// @ts-expect-error
|
|
5792
|
-
_a: null,
|
|
5793
|
-
_e: scope,
|
|
5794
|
-
_s: /* @__PURE__ */ new Map(),
|
|
5795
|
-
state
|
|
5796
|
-
});
|
|
5797
|
-
return pinia;
|
|
5798
|
-
}
|
|
5799
5750
|
var __defProp2 = Object.defineProperty;
|
|
5800
5751
|
var __defProps2 = Object.defineProperties;
|
|
5801
5752
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -20543,17 +20494,17 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
20543
20494
|
};
|
|
20544
20495
|
}
|
|
20545
20496
|
});
|
|
20546
|
-
let piniaInstance
|
|
20547
|
-
const initPinia
|
|
20548
|
-
if (piniaInstance
|
|
20549
|
-
return piniaInstance
|
|
20497
|
+
let piniaInstance = null;
|
|
20498
|
+
const initPinia = () => {
|
|
20499
|
+
if (piniaInstance) {
|
|
20500
|
+
return piniaInstance;
|
|
20550
20501
|
}
|
|
20551
20502
|
const pinia = createPinia();
|
|
20552
|
-
piniaInstance
|
|
20503
|
+
piniaInstance = pinia;
|
|
20553
20504
|
return pinia;
|
|
20554
20505
|
};
|
|
20555
20506
|
const setupTracking = (options) => {
|
|
20556
|
-
const pinia = initPinia
|
|
20507
|
+
const pinia = initPinia();
|
|
20557
20508
|
const store = useOptionsStore(pinia);
|
|
20558
20509
|
initTracking(options);
|
|
20559
20510
|
store.setTrackingOptions({ options });
|
|
@@ -26421,15 +26372,6 @@ const app = {
|
|
|
26421
26372
|
searchContainer: {},
|
|
26422
26373
|
recommendations: {}
|
|
26423
26374
|
};
|
|
26424
|
-
let piniaInstance = null;
|
|
26425
|
-
const initPinia = () => {
|
|
26426
|
-
if (piniaInstance) {
|
|
26427
|
-
return piniaInstance;
|
|
26428
|
-
}
|
|
26429
|
-
const pinia = createPinia$1();
|
|
26430
|
-
piniaInstance = pinia;
|
|
26431
|
-
return pinia;
|
|
26432
|
-
};
|
|
26433
26375
|
const tracking = (options) => {
|
|
26434
26376
|
setupTracking(options);
|
|
26435
26377
|
};
|
|
@@ -26514,7 +26456,7 @@ const productList = (options, mountOptions) => {
|
|
|
26514
26456
|
return;
|
|
26515
26457
|
}
|
|
26516
26458
|
const instance = createVue(options.containerSelector, _sfc_main$2, {
|
|
26517
|
-
|
|
26459
|
+
productListOptions: options
|
|
26518
26460
|
});
|
|
26519
26461
|
if (!instance) {
|
|
26520
26462
|
return;
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -5751,55 +5751,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
5751
5751
|
}
|
|
5752
5752
|
return container;
|
|
5753
5753
|
}
|
|
5754
|
-
var isVue2$1 = false;
|
|
5755
|
-
/*!
|
|
5756
|
-
* pinia v2.1.4
|
|
5757
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
5758
|
-
* @license MIT
|
|
5759
|
-
*/
|
|
5760
|
-
const piniaSymbol$1 = (
|
|
5761
|
-
/* istanbul ignore next */
|
|
5762
|
-
Symbol()
|
|
5763
|
-
);
|
|
5764
|
-
var MutationType$1;
|
|
5765
|
-
(function(MutationType2) {
|
|
5766
|
-
MutationType2["direct"] = "direct";
|
|
5767
|
-
MutationType2["patchObject"] = "patch object";
|
|
5768
|
-
MutationType2["patchFunction"] = "patch function";
|
|
5769
|
-
})(MutationType$1 || (MutationType$1 = {}));
|
|
5770
|
-
function createPinia$1() {
|
|
5771
|
-
const scope = effectScope(true);
|
|
5772
|
-
const state = scope.run(() => ref({}));
|
|
5773
|
-
let _p = [];
|
|
5774
|
-
let toBeInstalled = [];
|
|
5775
|
-
const pinia = markRaw({
|
|
5776
|
-
install(app2) {
|
|
5777
|
-
{
|
|
5778
|
-
pinia._a = app2;
|
|
5779
|
-
app2.provide(piniaSymbol$1, pinia);
|
|
5780
|
-
app2.config.globalProperties.$pinia = pinia;
|
|
5781
|
-
toBeInstalled.forEach((plugin) => _p.push(plugin));
|
|
5782
|
-
toBeInstalled = [];
|
|
5783
|
-
}
|
|
5784
|
-
},
|
|
5785
|
-
use(plugin) {
|
|
5786
|
-
if (!this._a && !isVue2$1) {
|
|
5787
|
-
toBeInstalled.push(plugin);
|
|
5788
|
-
} else {
|
|
5789
|
-
_p.push(plugin);
|
|
5790
|
-
}
|
|
5791
|
-
return this;
|
|
5792
|
-
},
|
|
5793
|
-
_p,
|
|
5794
|
-
// it's actually undefined here
|
|
5795
|
-
// @ts-expect-error
|
|
5796
|
-
_a: null,
|
|
5797
|
-
_e: scope,
|
|
5798
|
-
_s: /* @__PURE__ */ new Map(),
|
|
5799
|
-
state
|
|
5800
|
-
});
|
|
5801
|
-
return pinia;
|
|
5802
|
-
}
|
|
5803
5754
|
var __defProp2 = Object.defineProperty;
|
|
5804
5755
|
var __defProps2 = Object.defineProperties;
|
|
5805
5756
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
|
@@ -20547,17 +20498,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20547
20498
|
};
|
|
20548
20499
|
}
|
|
20549
20500
|
});
|
|
20550
|
-
let piniaInstance
|
|
20551
|
-
const initPinia
|
|
20552
|
-
if (piniaInstance
|
|
20553
|
-
return piniaInstance
|
|
20501
|
+
let piniaInstance = null;
|
|
20502
|
+
const initPinia = () => {
|
|
20503
|
+
if (piniaInstance) {
|
|
20504
|
+
return piniaInstance;
|
|
20554
20505
|
}
|
|
20555
20506
|
const pinia = createPinia();
|
|
20556
|
-
piniaInstance
|
|
20507
|
+
piniaInstance = pinia;
|
|
20557
20508
|
return pinia;
|
|
20558
20509
|
};
|
|
20559
20510
|
const setupTracking = (options) => {
|
|
20560
|
-
const pinia = initPinia
|
|
20511
|
+
const pinia = initPinia();
|
|
20561
20512
|
const store = useOptionsStore(pinia);
|
|
20562
20513
|
initTracking(options);
|
|
20563
20514
|
store.setTrackingOptions({ options });
|
|
@@ -26425,15 +26376,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26425
26376
|
searchContainer: {},
|
|
26426
26377
|
recommendations: {}
|
|
26427
26378
|
};
|
|
26428
|
-
let piniaInstance = null;
|
|
26429
|
-
const initPinia = () => {
|
|
26430
|
-
if (piniaInstance) {
|
|
26431
|
-
return piniaInstance;
|
|
26432
|
-
}
|
|
26433
|
-
const pinia = createPinia$1();
|
|
26434
|
-
piniaInstance = pinia;
|
|
26435
|
-
return pinia;
|
|
26436
|
-
};
|
|
26437
26379
|
const tracking = (options) => {
|
|
26438
26380
|
setupTracking(options);
|
|
26439
26381
|
};
|
|
@@ -26518,7 +26460,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26518
26460
|
return;
|
|
26519
26461
|
}
|
|
26520
26462
|
const instance = createVue(options.containerSelector, _sfc_main$2, {
|
|
26521
|
-
|
|
26463
|
+
productListOptions: options
|
|
26522
26464
|
});
|
|
26523
26465
|
if (!instance) {
|
|
26524
26466
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "dist/lupaSearch.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -18,11 +18,9 @@
|
|
|
18
18
|
"format": "prettier --write src/",
|
|
19
19
|
"test:e2e": "cypress run"
|
|
20
20
|
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@getlupa/vue": "0.0.14"
|
|
23
|
-
},
|
|
24
21
|
"devDependencies": {
|
|
25
22
|
"@getlupa/client-sdk": "^1.3.1",
|
|
23
|
+
"@getlupa/vue": "0.0.15",
|
|
26
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
27
25
|
"@tsconfig/node18": "^2.0.1",
|
|
28
26
|
"@types/jsdom": "^21.1.1",
|