react-ai-search-bar 1.0.4-beta.21 → 1.0.4-beta.22
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.html +1 -1
- package/dist/index.umd.css +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.html
CHANGED
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
</body>
|
|
64
64
|
</html>
|
|
65
65
|
|
|
66
|
-
<!-- javascript:(function(){const e=document.createElement('div');e.id='ai-search-bar';e.attachShadow({mode:'open'});document.body.appendChild(e);const t=t=>new Promise((n,o)=>{if(document.querySelector(`script[src="${t}"]`))return void n();const a=document.createElement('script');a.src=t;a.onload=n;a.onerror=()=>o(new Error(`Failed to load script: ${t}`));document.head.appendChild(a);});const n=t=>new Promise((n,o)=>{const a=document.createElement('link');a.rel='stylesheet';a.href=t;a.onload=()=>{n();};a.onerror=()=>o(new Error(`Failed to load CSS: ${t}`));e.shadowRoot.appendChild(a);});(async function(){try{await n('https://cdn.jsdelivr.net/npm/react-ai-search-bar@1.0.4-beta.
|
|
66
|
+
<!-- javascript:(function(){const e=document.createElement('div');e.id='ai-search-bar';e.attachShadow({mode:'open'});document.body.appendChild(e);const t=t=>new Promise((n,o)=>{if(document.querySelector(`script[src="${t}"]`))return void n();const a=document.createElement('script');a.src=t;a.onload=n;a.onerror=()=>o(new Error(`Failed to load script: ${t}`));document.head.appendChild(a);});const n=t=>new Promise((n,o)=>{const a=document.createElement('link');a.rel='stylesheet';a.href=t;a.onload=()=>{n();};a.onerror=()=>o(new Error(`Failed to load CSS: ${t}`));e.shadowRoot.appendChild(a);});(async function(){try{await n('https://cdn.jsdelivr.net/npm/react-ai-search-bar@1.0.4-beta.22/dist/index.umd.css');await t('https://unpkg.com/react@18.2.0/umd/react.production.min.js');await t('https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js');await Promise.all([t('https://unpkg.com/axios/dist/axios.min.js'),t('https://cdn.jsdelivr.net/npm/js-cookie@3.0.1/dist/js.cookie.min.js'),t('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/js/all.min.js')]);await t('https://cdn.jsdelivr.net/npm/react-ai-search-bar@1.0.4-beta.22/dist/index.umd.js');if(typeof window.reactAiSearchBar==='undefined'){throw new Error('reactAiSearchBar not loaded correctly');}const container=e.shadowRoot;const root=ReactDOM.createRoot(container);root.render(React.createElement(window.reactAiSearchBar,{apiKey:'your-api-key-here'}));}catch(e){console.error('Error initializing search bar:',e);}})();})() -->
|
package/dist/index.umd.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._X5gmD{width:375px!important;height:50px!important;position:fixed!important;bottom:40px!important;left:20px!important;z-index:1000!important}._X5gmD._3o8gR{height:0!important}._28k26{position:relative!important;width:100%!important}._2h53C{position:absolute!important;top:0;transition-duration:.5s;left:0;height:38px!important;width:100%;overflow:hidden!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#2c9adf,#6385d4 50%,#ce6882) border-box;border-radius:25px;box-shadow:0 2px 10px rgba(0,0,0,.05);border:3px solid transparent;padding:3px}._2h53C._oR82x{animation:_1IGQ5 1.2s ease forwards}._2h53C._1k5sb{animation:_15Cf2 1.2s ease forwards}._2h53C._1WtVX{animation:_1VsJA 1s ease forwards}._2h53C._3UPkY{animation:_3UPkY 1s ease forwards}._3DOOZ{display:flex!important;align-items:center!important;height:100%!important;white-space:nowrap;gap:5px!important}._3DOOZ>:first-child{flex-shrink:0}._2h53C._oR82x ._3DOOZ{opacity:1;width:100%!important;transition-delay:0s}._1QklG{padding-top:2px!important}._1QklG,._3gTre{color:#666!important;font-size:20px!important;cursor:pointer!important}._3gTre{padding-left:10px!important;padding-top:4px!important}._1dkPH{display:flex!important;color:#666!important;font-size:20px!important;cursor:pointer!important;padding-right:10px!important}._XZ4xA{flex:1!important;border:none!important;outline:none!important;font-size:15px!important;
|
|
1
|
+
._X5gmD{width:375px!important;height:50px!important;position:fixed!important;bottom:40px!important;left:20px!important;z-index:1000!important}._X5gmD._3o8gR{height:0!important}._28k26{position:relative!important;width:100%!important}._2h53C{position:absolute!important;top:0;transition-duration:.5s;left:0;height:38px!important;width:100%;overflow:hidden!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#2c9adf,#6385d4 50%,#ce6882) border-box;border-radius:25px;box-shadow:0 2px 10px rgba(0,0,0,.05);border:3px solid transparent;padding:3px}._2h53C._oR82x{animation:_1IGQ5 1.2s ease forwards}._2h53C._1k5sb{animation:_15Cf2 1.2s ease forwards}._2h53C._1WtVX{animation:_1VsJA 1s ease forwards}._2h53C._3UPkY{animation:_3UPkY 1s ease forwards}._3DOOZ{display:flex!important;align-items:center!important;height:100%!important;white-space:nowrap;gap:5px!important}._3DOOZ>:first-child{flex-shrink:0}._2h53C._oR82x ._3DOOZ{opacity:1;width:100%!important;transition-delay:0s}._1QklG{padding-top:2px!important}._1QklG,._3gTre{color:#666!important;font-size:20px!important;cursor:pointer!important}._3gTre{padding-left:10px!important;padding-top:4px!important}._1dkPH{display:flex!important;color:#666!important;font-size:20px!important;cursor:pointer!important;padding-right:10px!important}._XZ4xA{flex:1!important;border:none!important;outline:none!important;font-size:15px!important;min-width:0!important;color:#2c9adf!important}._XZ4xA::-moz-placeholder{color:transparent!important;background:linear-gradient(90deg,#2c9adf,#6385d4 50%,#ce6882)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;-moz-transition:opacity .3s ease!important;transition:opacity .3s ease!important}._XZ4xA::placeholder{color:transparent!important;background:linear-gradient(90deg,#2c9adf,#6385d4 50%,#ce6882)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;transition:opacity .3s ease!important}._XZ4xA._3Pehp::-moz-placeholder{opacity:0!important}._XZ4xA._3Pehp::placeholder{opacity:0!important}._3QE01{background-color:hsla(0,0%,100%,.7490196078431373)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.1);margin-top:16px;display:none;width:103%;position:absolute;opacity:0;bottom:100%;z-index:-90;height:250px;border-image-source:linear-gradient(90deg,#2c9adf,#6385d4 50%,#ce6882)!important}._3QE01._yTLpl{animation:_is2hG .8s ease forwards}._3QE01::-webkit-scrollbar-button{display:none!important}._2k1Dz{margin:12px!important;height:100%!important;position:relative!important}._3BUWg{overflow-y:auto!important;height:85%!important;scrollbar-width:thin!important;scrollbar-color:hsla(0,0%,100%,.30196078431372547)!important;padding:8px!important}._2k1Dz p{font-size:14px!important;line-height:16.8px!important;padding-bottom:16px!important}._Przy1{display:flex!important;align-items:center!important;gap:6px!important}._FRhg_{flex:1!important}._2beoD{margin:0 0 0 23px!important;display:-webkit-box!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:3!important;line-clamp:2!important;-webkit-box-orient:vertical!important;box-orient:vertical!important}._2beoD,._Przy1 a{font-size:14px!important}._Przy1 a{text-decoration:none!important;font-weight:500!important;margin-bottom:4px!important;display:block!important}._Przy1 a,._Przy1 p{color:#000!important}._Przy1 p{font-size:13px!important;margin:0!important}._2Ipdz{display:flex!important;align-items:center!important;justify-content:center!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important;border-radius:50%!important;width:20px!important;height:20px!important}._2Ipdz,._3PElL{background:rgba(228,220,220,.7490196078431373)!important}._3PElL{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:50%;width:24px;height:24px;position:absolute;top:0;right:0;transform:translate(20px,-23px)}._2sHoC,._3PElL{display:flex;align-items:center;justify-content:center}._2sHoC{width:100%;height:100%}._12fMq{position:relative;overflow:hidden}._3Ec_r{animation:_3MLtR 3s linear infinite}._2_fR2{top:0;left:0;top:50%;left:50%}._2_fR2,._2Hl1u{position:absolute;transform:translate(-50%,-50%);width:200px;height:200px}._2Hl1u{top:50%;left:50%;opacity:0;animation:_3WPEa 3s ease infinite}._2Hl1u:first-child{animation-delay:0s}._2Hl1u:nth-child(2){animation-delay:1s}._2Hl1u:nth-child(3){animation-delay:2s}._2Hl1u:nth-child(4){animation-delay:3s}._2Hl1u:nth-child(5){animation-delay:4s}@keyframes _3WPEa{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}20%{opacity:1;transform:translate(-50%,-50%) scale(1)}40%{opacity:1;transform:translate(-50%,-50%) scale(1)}60%{opacity:0;transform:translate(-50%,-50%) scale(.5)}to{opacity:0;transform:translate(-50%,-50%) scale(.5)}}@keyframes _3MLtR{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _1VsJA{0%{top:0}to{top:-19.5rem}}@keyframes _3UPkY{0%{top:-19.5rem}to{top:0}}@keyframes _1IGQ5{0%{width:10%}to{width:100%}}@keyframes _15Cf2{0%{width:100%}to{width:10%}}@keyframes _is2hG{0%{opacity:0;bottom:-60%}25%{opacity:.2;bottom:-60%}50%{opacity:.4}75%{opacity:.6}to{opacity:1;bottom:100%}}@keyframes _2sSEg{0%{background-position:200% 0}to{background-position:-200% 0}}._1jWe3{height:50px;background:linear-gradient(-90deg,rgba(100,99,99,.1) 25%,rgba(40,39,39,.15) 50%,rgba(0,0,0,.1) 75%);background-size:200% 100%}._1jWe3,._1Vpvz{display:block;width:100%;animation:_2sSEg 1.5s infinite;border-radius:4px!important;margin:8px 0!important}._1Vpvz{flex:1;height:95px!important;background:linear-gradient(-90deg,rgba(81,80,80,.1) 25%,rgba(45,44,44,.15) 50%,rgba(0,0,0,.1) 75%);background-size:200% 100%}._36DtD{width:100%;height:100%}
|