@getlupa/vue 0.3.2 → 0.3.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/lupaChatStyle.css +1 -1
- package/dist/lupaSearch.js +8 -11
- package/dist/lupaSearch.mjs +9 -12
- package/package.json +1 -1
package/dist/lupaChatStyle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700&display=swap";.lupa-chat-section-title{font-family:"Roboto",sans-serif;font-weight:300;font-size:32px}.lupasearch-chat-input #lupa-search-box-input::after{display:none}.lupa-chat-input-container{z-index:100}.lupasearch-chat{max-width:1200px;margin:auto}.lupasearch-chat-content ul{list-style:none;padding-left:0;margin:0}.lupa-chat-phrase-title{margin-left:15px}.lupa-chat-content-entry{background:#fff;box-shadow:0px 3px 3px -2px rgba(0,0,0,.2),0px 3px 4px 0px rgba(0,0,0,.14),0px 1px 8px 0px rgba(0,0,0,.12);padding:15px;margin:20px 0}.lupa-chat-content-entry-phrase h3,.lupa-chat-best-matches h3{font-family:"Roboto",sans-serif;margin:15px 0 0;font-size:24px}.lupa-chat-content-entry-phrase sub,.lupa-chat-best-matches sub{display:block;font-family:"Roboto",sans-serif;font-size:13px;color:#9e9e9e}.lupa-chat-content-entry-phrase sub:last-child,.lupa-chat-best-matches sub:last-child{margin-bottom:20px}.lupa-chat-best-matches h3{margin-left:15px;margin-bottom:10px}.lupa-chat-best-matches p{margin-left:15px;font-family:"Roboto",sans-serif;font-weight:300}.lupa-chat-input-container{background:#fff;padding:20px;box-shadow:0px 3px 3px -2px rgba(0,0,0,.2),0px 3px 4px 0px rgba(0,0,0,.14),0px 1px 8px 0px rgba(0,0,0,.12)}.lupa-chat-input-container input{font-weight:300}.lupa-chat-logo img{width:300px;height:200px;margin:auto;display:block}.lupa-chat-spinner-main{margin-bottom:40px}.lupa-chat-spinner{text-align:center}.lupa-chat-spinner .lds-ring div{border:8px solid #3c53f4;border-color:#3c53f4 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.lupa-chat-spinner-message{font-family:"Roboto",sans-serif;font-weight:300;font-size:16px;margin-top:10px;margin-bottom:15px}.lupa-chat-form-submit{appearance:none;border:none;background:#3c53f4;color:#fff;padding:14px;margin:0;cursor:pointer;appearance:none;font-family:"Roboto",sans-serif;font-size:16px;font-weight:700}.chat-input-form{display:flex;justify-content:space-between}.chat-input-form #lupa-search-box-input{flex-grow:1;margin-right:15px}.lupa-chat-results{display:flex;flex-wrap:wrap}.lupa-search-results-image{max-height:150px}.lupa-search-results-image-wrapper{padding-bottom:80%}.lupa-search-results-product-title-text{font-size:16px;font-weight:300;line-height:1.3}.lupa-chat-no-results p{font-family:"Roboto",sans-serif;font-weight:300;font-size:16px;margin-left:15px}.lupa-chat-product-card{width:20%}@media(max-width: 1200px){.lupa-chat-product-card{width:30%}}@media(max-width: 1024px){.lupa-chat-product-card{width:40%}}@media(max-width: 700px){.lupa-chat-product-card{width:50%}}.wrapper{background:none}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700&display=swap";.lupa-chat-section-title{font-family:"Roboto",sans-serif;font-weight:300;font-size:32px}.lupasearch-chat-input #lupa-search-box-input::after{display:none}.lupa-chat-input-container{z-index:100}.lupasearch-chat{max-width:1200px;margin:auto}.lupasearch-chat-content ul{list-style:none;padding-left:0;margin:0}.lupa-chat-phrase-title{margin-left:15px}.lupa-chat-content-entry{background:#fff;box-shadow:0px 3px 3px -2px rgba(0,0,0,.2),0px 3px 4px 0px rgba(0,0,0,.14),0px 1px 8px 0px rgba(0,0,0,.12);padding:15px;margin:20px 0}.lupa-chat-content-entry-phrase h3,.lupa-chat-best-matches h3{font-family:"Roboto",sans-serif;margin:15px 0 0;font-size:24px}.lupa-chat-content-entry-phrase sub,.lupa-chat-best-matches sub{display:block;font-family:"Roboto",sans-serif;font-size:13px;color:#9e9e9e}.lupa-chat-content-entry-phrase sub:last-child,.lupa-chat-best-matches sub:last-child{margin-bottom:20px}.lupa-chat-best-matches h3{margin-left:15px;margin-bottom:10px}.lupa-chat-best-matches p{margin-left:15px;font-family:"Roboto",sans-serif;font-weight:300}.lupa-chat-input-container{background:#fff;padding:20px;box-shadow:0px 3px 3px -2px rgba(0,0,0,.2),0px 3px 4px 0px rgba(0,0,0,.14),0px 1px 8px 0px rgba(0,0,0,.12)}.lupa-chat-input-container input{font-weight:300}.lupa-chat-logo img{width:300px;height:200px;margin:auto;display:block}.lupa-chat-spinner-main{margin-bottom:40px}.lupa-chat-spinner{text-align:center}.lupa-chat-spinner .lds-ring div{border:8px solid #3c53f4;border-color:#3c53f4 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.lds-ring{display:inline-block;position:relative;width:80px;height:80px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.lds-ring div:nth-child(1){animation-delay:-0.45s}.lds-ring div:nth-child(2){animation-delay:-0.3s}.lds-ring div:nth-child(3){animation-delay:-0.15s}@keyframes lds-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.lds-ring.small{width:40px;height:40px;border-width:6px}.lds-ring.small div{width:32px;height:32px;border-width:6px}.lupa-chat-spinner-message{font-family:"Roboto",sans-serif;font-weight:300;font-size:16px;margin-top:10px;margin-bottom:15px}.lupa-chat-form-submit{appearance:none;border:none;background:#3c53f4;color:#fff;padding:14px;margin:0;cursor:pointer;appearance:none;font-family:"Roboto",sans-serif;font-size:16px;font-weight:700}.chat-input-form{display:flex;justify-content:space-between}.chat-input-form #lupa-search-box-input{flex-grow:1;margin-right:15px}.lupa-chat-results{display:flex;flex-wrap:wrap}.lupa-search-results-image{max-height:150px}.lupa-search-results-image-wrapper{padding-bottom:80%}.lupa-search-results-product-title-text{font-size:16px;font-weight:300;line-height:1.3}.lupa-chat-no-results p{font-family:"Roboto",sans-serif;font-weight:300;font-size:16px;margin-left:15px}.lupa-chat-product-card{width:20%}@media(max-width: 1200px){.lupa-chat-product-card{width:30%}}@media(max-width: 1024px){.lupa-chat-product-card{width:40%}}@media(max-width: 700px){.lupa-chat-product-card{width:50%}}.wrapper{background:none}
|
package/dist/lupaSearch.js
CHANGED
|
@@ -15995,12 +15995,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15995
15995
|
};
|
|
15996
15996
|
}
|
|
15997
15997
|
});
|
|
15998
|
-
const _withScopeId = (n) => (vue.pushScopeId("data-v-6fa22b2b"), n = n(), vue.popScopeId(), n);
|
|
15999
15998
|
const _hoisted_1$6 = { class: "lupa-chat-spinner" };
|
|
16000
|
-
const _hoisted_2$4 = /* @__PURE__ */
|
|
16001
|
-
const _hoisted_3$4 = /* @__PURE__ */
|
|
16002
|
-
const _hoisted_4$2 = /* @__PURE__ */
|
|
16003
|
-
const _hoisted_5$2 = /* @__PURE__ */
|
|
15999
|
+
const _hoisted_2$4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
16000
|
+
const _hoisted_3$4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
16001
|
+
const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
16002
|
+
const _hoisted_5$2 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
16004
16003
|
const _hoisted_6$1 = [
|
|
16005
16004
|
_hoisted_2$4,
|
|
16006
16005
|
_hoisted_3$4,
|
|
@@ -16025,8 +16024,6 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16025
16024
|
};
|
|
16026
16025
|
}
|
|
16027
16026
|
});
|
|
16028
|
-
const ChatSpinner_vue_vue_type_style_index_0_scoped_6fa22b2b_lang = "";
|
|
16029
|
-
const ChatSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6fa22b2b"]]);
|
|
16030
16027
|
const _hoisted_1$5 = { class: "lupa-chat-input-container" };
|
|
16031
16028
|
const _hoisted_2$3 = { id: "lupa-search-box-input" };
|
|
16032
16029
|
const _hoisted_3$3 = {
|
|
@@ -16065,7 +16062,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16065
16062
|
[vue.vModelText, inputValue.value]
|
|
16066
16063
|
])
|
|
16067
16064
|
]),
|
|
16068
|
-
!_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (vue.openBlock(), vue.createBlock(
|
|
16065
|
+
!_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (vue.openBlock(), vue.createBlock(_sfc_main$6, {
|
|
16069
16066
|
key: 1,
|
|
16070
16067
|
small: true
|
|
16071
16068
|
}))
|
|
@@ -16303,7 +16300,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16303
16300
|
}, null, 8, ["search-results", "options"])
|
|
16304
16301
|
]),
|
|
16305
16302
|
!loading.value && !searchResults.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, _hoisted_6)) : vue.createCommentVNode("", true),
|
|
16306
|
-
loading.value ? (vue.openBlock(), vue.createBlock(
|
|
16303
|
+
loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
|
|
16307
16304
|
key: 1,
|
|
16308
16305
|
message: currentAction.value
|
|
16309
16306
|
}, null, 8, ["message"])) : vue.createCommentVNode("", true)
|
|
@@ -16391,7 +16388,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
16391
16388
|
vue.createElementVNode("section", _hoisted_1$2, [
|
|
16392
16389
|
_hoisted_2$1,
|
|
16393
16390
|
explanation.value ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3$1, vue.toDisplayString(explanation.value), 1)) : vue.createCommentVNode("", true),
|
|
16394
|
-
loading.value ? (vue.openBlock(), vue.createBlock(
|
|
16391
|
+
loading.value ? (vue.openBlock(), vue.createBlock(_sfc_main$6, {
|
|
16395
16392
|
key: 1,
|
|
16396
16393
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
16397
16394
|
})) : vue.createCommentVNode("", true),
|
|
@@ -16511,7 +16508,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
16511
16508
|
}, null, 8, ["content", "options", "history"])
|
|
16512
16509
|
])) : vue.createCommentVNode("", true),
|
|
16513
16510
|
loading.value ? (vue.openBlock(), vue.createElementBlock("section", _hoisted_4, [
|
|
16514
|
-
vue.createVNode(
|
|
16511
|
+
vue.createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
16515
16512
|
])) : vue.createCommentVNode("", true),
|
|
16516
16513
|
vue.createElementVNode("section", _hoisted_5, [
|
|
16517
16514
|
vue.createVNode(_sfc_main$5, {
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { toRaw, isRef, isReactive, toRef, effectScope, ref, markRaw, hasInjectionContext, inject, getCurrentInstance, watch, reactive, nextTick, computed, unref, getCurrentScope, onScopeDispose, toRefs, defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, withDirectives, mergeProps, vModelText, toDisplayString, createCommentVNode, onMounted, onBeforeMount, Fragment, renderList, createBlock, toHandlers, withModifiers, resolveDynamicComponent, createVNode, renderSlot, createSlots, withCtx, normalizeProps, guardReactiveProps, onBeforeUnmount, createTextVNode, onUnmounted, resolveComponent, vModelSelect, normalizeStyle, h as h$1, provide, cloneVNode
|
|
40
|
+
import { toRaw, isRef, isReactive, toRef, effectScope, ref, markRaw, hasInjectionContext, inject, getCurrentInstance, watch, reactive, nextTick, computed, unref, getCurrentScope, onScopeDispose, toRefs, defineComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, withDirectives, mergeProps, vModelText, toDisplayString, createCommentVNode, onMounted, onBeforeMount, Fragment, renderList, createBlock, toHandlers, withModifiers, resolveDynamicComponent, createVNode, renderSlot, createSlots, withCtx, normalizeProps, guardReactiveProps, onBeforeUnmount, createTextVNode, onUnmounted, resolveComponent, vModelSelect, normalizeStyle, h as h$1, provide, cloneVNode } from "vue";
|
|
41
41
|
var isVue2 = false;
|
|
42
42
|
function set(target, key, val) {
|
|
43
43
|
if (Array.isArray(target)) {
|
|
@@ -15993,12 +15993,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
15993
15993
|
};
|
|
15994
15994
|
}
|
|
15995
15995
|
});
|
|
15996
|
-
const _withScopeId = (n) => (pushScopeId("data-v-6fa22b2b"), n = n(), popScopeId(), n);
|
|
15997
15996
|
const _hoisted_1$6 = { class: "lupa-chat-spinner" };
|
|
15998
|
-
const _hoisted_2$4 = /* @__PURE__ */
|
|
15999
|
-
const _hoisted_3$4 = /* @__PURE__ */
|
|
16000
|
-
const _hoisted_4$2 = /* @__PURE__ */
|
|
16001
|
-
const _hoisted_5$2 = /* @__PURE__ */
|
|
15997
|
+
const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
15998
|
+
const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
15999
|
+
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
16000
|
+
const _hoisted_5$2 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
16002
16001
|
const _hoisted_6$1 = [
|
|
16003
16002
|
_hoisted_2$4,
|
|
16004
16003
|
_hoisted_3$4,
|
|
@@ -16023,8 +16022,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
16023
16022
|
};
|
|
16024
16023
|
}
|
|
16025
16024
|
});
|
|
16026
|
-
const ChatSpinner_vue_vue_type_style_index_0_scoped_6fa22b2b_lang = "";
|
|
16027
|
-
const ChatSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6fa22b2b"]]);
|
|
16028
16025
|
const _hoisted_1$5 = { class: "lupa-chat-input-container" };
|
|
16029
16026
|
const _hoisted_2$3 = { id: "lupa-search-box-input" };
|
|
16030
16027
|
const _hoisted_3$3 = {
|
|
@@ -16063,7 +16060,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
16063
16060
|
[vModelText, inputValue.value]
|
|
16064
16061
|
])
|
|
16065
16062
|
]),
|
|
16066
|
-
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(
|
|
16063
|
+
!_ctx.disabled ? (openBlock(), createElementBlock("button", _hoisted_3$3, "Ask LupaChat")) : (openBlock(), createBlock(_sfc_main$6, {
|
|
16067
16064
|
key: 1,
|
|
16068
16065
|
small: true
|
|
16069
16066
|
}))
|
|
@@ -16301,7 +16298,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
16301
16298
|
}, null, 8, ["search-results", "options"])
|
|
16302
16299
|
]),
|
|
16303
16300
|
!loading.value && !searchResults.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$1, _hoisted_6)) : createCommentVNode("", true),
|
|
16304
|
-
loading.value ? (openBlock(), createBlock(
|
|
16301
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
16305
16302
|
key: 1,
|
|
16306
16303
|
message: currentAction.value
|
|
16307
16304
|
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
@@ -16389,7 +16386,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
16389
16386
|
createElementVNode("section", _hoisted_1$2, [
|
|
16390
16387
|
_hoisted_2$1,
|
|
16391
16388
|
explanation.value ? (openBlock(), createElementBlock("p", _hoisted_3$1, toDisplayString(explanation.value), 1)) : createCommentVNode("", true),
|
|
16392
|
-
loading.value ? (openBlock(), createBlock(
|
|
16389
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
16393
16390
|
key: 1,
|
|
16394
16391
|
message: "Selecting the best matches for you. This might take a few seconds."
|
|
16395
16392
|
})) : createCommentVNode("", true),
|
|
@@ -16509,7 +16506,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16509
16506
|
}, null, 8, ["content", "options", "history"])
|
|
16510
16507
|
])) : createCommentVNode("", true),
|
|
16511
16508
|
loading.value ? (openBlock(), createElementBlock("section", _hoisted_4, [
|
|
16512
|
-
createVNode(
|
|
16509
|
+
createVNode(_sfc_main$6, { message: "Loading initial recommendations... This might take up to 20s" })
|
|
16513
16510
|
])) : createCommentVNode("", true),
|
|
16514
16511
|
createElementVNode("section", _hoisted_5, [
|
|
16515
16512
|
createVNode(_sfc_main$5, {
|