@getlupa/client 0.7.0-alpha-17 → 0.7.0-alpha-20
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/cjs/index.min.js
CHANGED
|
@@ -22437,6 +22437,7 @@ const searchBox = (options) => {
|
|
|
22437
22437
|
});
|
|
22438
22438
|
};
|
|
22439
22439
|
const searchResults = (options) => {
|
|
22440
|
+
clearSearchResults();
|
|
22440
22441
|
Vue$1.use(Vuex);
|
|
22441
22442
|
app.results = new Vue$1({
|
|
22442
22443
|
el: options.containerSelector,
|
|
@@ -22446,6 +22447,7 @@ const searchResults = (options) => {
|
|
|
22446
22447
|
});
|
|
22447
22448
|
};
|
|
22448
22449
|
const productList = (options) => {
|
|
22450
|
+
clearProductList();
|
|
22449
22451
|
Vue$1.use(Vuex);
|
|
22450
22452
|
app.productList = new Vue$1({
|
|
22451
22453
|
el: options.containerSelector,
|
|
@@ -22456,15 +22458,30 @@ const productList = (options) => {
|
|
|
22456
22458
|
};
|
|
22457
22459
|
const clearSearchBox = () => {
|
|
22458
22460
|
var _a;
|
|
22459
|
-
|
|
22461
|
+
try {
|
|
22462
|
+
(_a = app.box) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22463
|
+
}
|
|
22464
|
+
catch (_b) {
|
|
22465
|
+
// do nothing, already destroyed;
|
|
22466
|
+
}
|
|
22460
22467
|
};
|
|
22461
22468
|
const clearSearchResults = () => {
|
|
22462
22469
|
var _a;
|
|
22463
|
-
|
|
22470
|
+
try {
|
|
22471
|
+
(_a = app.results) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22472
|
+
}
|
|
22473
|
+
catch (_b) {
|
|
22474
|
+
// do nothing, already destroyed;
|
|
22475
|
+
}
|
|
22464
22476
|
};
|
|
22465
22477
|
const clearProductList = () => {
|
|
22466
22478
|
var _a;
|
|
22467
|
-
|
|
22479
|
+
try {
|
|
22480
|
+
(_a = app.productList) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22481
|
+
}
|
|
22482
|
+
catch (_b) {
|
|
22483
|
+
// do nothing, already destroyed;
|
|
22484
|
+
}
|
|
22468
22485
|
};
|
|
22469
22486
|
const lupaSearch = {
|
|
22470
22487
|
searchBox,
|
|
@@ -35,6 +35,7 @@ export declare type DescriptionDocumentElement<T = any> = DocumentElementBase<T>
|
|
|
35
35
|
};
|
|
36
36
|
export declare type CustomDocumentElement<T = any> = DocumentElementBase<T> & {
|
|
37
37
|
type: DocumentElementType.CUSTOM;
|
|
38
|
+
maxLines?: number;
|
|
38
39
|
className: string;
|
|
39
40
|
key: string;
|
|
40
41
|
};
|
package/dist/es/index.min.js
CHANGED
|
@@ -22433,6 +22433,7 @@ const searchBox = (options) => {
|
|
|
22433
22433
|
});
|
|
22434
22434
|
};
|
|
22435
22435
|
const searchResults = (options) => {
|
|
22436
|
+
clearSearchResults();
|
|
22436
22437
|
Vue$1.use(Vuex);
|
|
22437
22438
|
app.results = new Vue$1({
|
|
22438
22439
|
el: options.containerSelector,
|
|
@@ -22442,6 +22443,7 @@ const searchResults = (options) => {
|
|
|
22442
22443
|
});
|
|
22443
22444
|
};
|
|
22444
22445
|
const productList = (options) => {
|
|
22446
|
+
clearProductList();
|
|
22445
22447
|
Vue$1.use(Vuex);
|
|
22446
22448
|
app.productList = new Vue$1({
|
|
22447
22449
|
el: options.containerSelector,
|
|
@@ -22452,15 +22454,30 @@ const productList = (options) => {
|
|
|
22452
22454
|
};
|
|
22453
22455
|
const clearSearchBox = () => {
|
|
22454
22456
|
var _a;
|
|
22455
|
-
|
|
22457
|
+
try {
|
|
22458
|
+
(_a = app.box) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22459
|
+
}
|
|
22460
|
+
catch (_b) {
|
|
22461
|
+
// do nothing, already destroyed;
|
|
22462
|
+
}
|
|
22456
22463
|
};
|
|
22457
22464
|
const clearSearchResults = () => {
|
|
22458
22465
|
var _a;
|
|
22459
|
-
|
|
22466
|
+
try {
|
|
22467
|
+
(_a = app.results) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22468
|
+
}
|
|
22469
|
+
catch (_b) {
|
|
22470
|
+
// do nothing, already destroyed;
|
|
22471
|
+
}
|
|
22460
22472
|
};
|
|
22461
22473
|
const clearProductList = () => {
|
|
22462
22474
|
var _a;
|
|
22463
|
-
|
|
22475
|
+
try {
|
|
22476
|
+
(_a = app.productList) === null || _a === void 0 ? void 0 : _a.$destroy();
|
|
22477
|
+
}
|
|
22478
|
+
catch (_b) {
|
|
22479
|
+
// do nothing, already destroyed;
|
|
22480
|
+
}
|
|
22464
22481
|
};
|
|
22465
22482
|
const lupaSearch = {
|
|
22466
22483
|
searchBox,
|
|
@@ -35,6 +35,7 @@ export declare type DescriptionDocumentElement<T = any> = DocumentElementBase<T>
|
|
|
35
35
|
};
|
|
36
36
|
export declare type CustomDocumentElement<T = any> = DocumentElementBase<T> & {
|
|
37
37
|
type: DocumentElementType.CUSTOM;
|
|
38
|
+
maxLines?: number;
|
|
38
39
|
className: string;
|
|
39
40
|
key: string;
|
|
40
41
|
};
|