@coveops/abi 1.0.0 → 1.0.1
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/abi/abi.esm.js +1 -1
- package/dist/abi/index.esm.js +1 -1
- package/dist/abi/{p-211c1e78.entry.js → p-03b6e905.entry.js} +1 -1
- package/dist/abi/p-1fd19815.entry.js +1 -0
- package/dist/abi/{p-9f80f982.entry.js → p-3303b27f.entry.js} +1 -1
- package/dist/abi/p-50003f11.entry.js +1 -0
- package/dist/abi/p-d6d34d34.js +2 -0
- package/dist/abi/{p-dca22988.entry.js → p-dd8b0f76.entry.js} +1 -1
- package/dist/abi/p-ddacae1a.js +49 -0
- package/dist/bundle/index.html +64 -57
- package/dist/bundle/index.js +17 -17
- package/dist/cjs/abi.cjs.js +2 -2
- package/dist/cjs/faq-popup-component.cjs.entry.js +2 -2
- package/dist/cjs/{index-87155b50.js → index-355878fc.js} +55 -0
- package/dist/cjs/{index-03be0841.js → index-8f6652e1.js} +4 -1
- package/dist/cjs/index.cjs.js +27 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/results-manager.cjs.entry.js +1 -1
- package/dist/cjs/sample-component.cjs.entry.js +2 -2
- package/dist/cjs/standalone-searchbox-listener.cjs.entry.js +43 -0
- package/dist/cjs/strip-html-component.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/dist/collection/components/standalone-searchbox-listener/standalone-searchbox-listener.js +45 -0
- package/dist/collection/index.js +26 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +111 -5
- package/dist/esm/abi.js +2 -2
- package/dist/esm/faq-popup-component.entry.js +2 -2
- package/dist/esm/{index-99665e7c.js → index-3c594d24.js} +55 -0
- package/dist/esm/{index-42e9a708.js → index-886ab6f0.js} +2 -2
- package/dist/esm/index.js +27 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/results-manager.entry.js +1 -1
- package/dist/esm/sample-component.entry.js +2 -2
- package/dist/esm/standalone-searchbox-listener.entry.js +39 -0
- package/dist/esm/strip-html-component.entry.js +1 -1
- package/dist/types/components/standalone-searchbox-listener/standalone-searchbox-listener.d.ts +7 -0
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.css +1 -0
- package/src/components/standalone-searchbox-listener/standalone-searchbox-listener.tsx +52 -0
- package/src/components.d.ts +13 -0
- package/src/index.ts +29 -1
- package/src/pages/index.html +64 -57
- package/dist/abi/p-0f4a7ce9.js +0 -49
- package/dist/abi/p-e7416b40.entry.js +0 -1
- package/dist/abi/p-facfefe1.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,g as s,f as e}from"./p-facfefe1.js";import{i as o,n,D as a}from"./p-0f4a7ce9.js";import{w as h}from"./p-38555fec.js";import"./p-d20ee37c.js";const r=class{constructor(i){t(this,i),this.pagerUnsubscribe=()=>{},this.statusUnsubscribe=()=>{},this.i18nUnsubscribe=()=>{}}async connectedCallback(){try{await h(),this.bindings=await o(this.host);const t=n(this.bindings.engine);this.pagerController=a(this.bindings.engine),this.statusUnsubscribe=t.subscribe((()=>this.statusState=t.state)),this.pagerUnsubscribe=this.pagerController.subscribe((()=>this.pagerState=this.pagerController.state));const i=()=>e(this);this.bindings.i18n.on("languageChanged",i),this.i18nUnsubscribe=()=>this.bindings.i18n.off("languageChanged",i)}catch(t){console.error(t),this.error=t}}disconnectedCallback(){this.pagerUnsubscribe(),this.statusUnsubscribe(),this.i18nUnsubscribe()}get pages(){return this.pagerState.currentPages.map((t=>this.buildPage(t)))}buildPage(t){const s=this.pagerController.isCurrentPage(t);return i("button",{onClick:()=>{this.pagerController.selectPage(t)}},s?"✓ ":"",t.toLocaleString(this.bindings.i18n.language))}get previous(){return i("button",{onClick:()=>{this.pagerController.previousPage()}},i("atomic-text",{value:"previous"}))}get next(){return i("button",{onClick:()=>{this.pagerController.nextPage()}},i("atomic-text",{value:"next"}))}render(){return this.error?i("p",null,"Error when initializing the component, please view the console for more information."):this.bindings&&this.statusState.hasResults?i("nav",null,this.pagerState.hasPreviousPage&&this.previous,this.pages,this.pagerState.hasNextPage&&this.next):void 0}get host(){return s(this)}};r.style="nav{width:300px;display:flex;justify-content:space-around}button{color:var(--atomic-on-primary);background-color:var(--atomic-primary)}";export{r as sample_component}
|
package/dist/abi/p-facfefe1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),a=new WeakMap,u=e=>"sc-"+e.o,f={},$=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!$(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=d(e,null);return i.u=t,r.length>0&&(i.$=r),i},d=(e,t)=>({t:0,h:e,i:t,m:null,$:null,u:null}),h={},m=(e,t,n,l,o,c)=>{if(n!==l){let i=B(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=w(n),o=w(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if(i||"o"!==t[0]||"n"!==t[1]){const s=$(l);if((i||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):B(s,a)?a.slice(2):a[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},p=/\s/,w=e=>e?e.split(p):[],b=(e,t,n,l)=>{const s=11===t.m.nodeType&&t.m.host?t.m.host:t.m,o=e&&e.u||f,r=t.u||f;for(l in o)l in r||m(s,l,o[l],void 0,n,t.t);for(l in r)m(s,l,o[l],r[l],n,t.t)},g=(t,l,s)=>{const r=l.$[s];let c,i,a=0;if(null!==r.i)c=r.m=o.createTextNode(r.i);else{if(n||(n="svg"===r.h),c=r.m=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.h),n&&"foreignObject"===r.h&&(n=!1),b(null,r,n),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)i=g(t,r,a),i&&c.appendChild(i);"svg"===r.h?n=!1:"foreignObject"===c.tagName&&(n=!0)}return c},S=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=g(null,l,o),c&&(s[o].m=c,i.insertBefore(c,n)))},v=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.m.remove()},j=(e,t)=>e.h===t.h,k=(e,t)=>{const l=t.m=e.m,s=e.$,o=t.$,r=t.h,c=t.i;null===c?(n="svg"===r||"foreignObject"!==r&&n,b(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],a=t[c],u=l.length-1,f=l[0],$=l[u];for(;o<=c&&r<=u;)null==i?i=t[++o]:null==a?a=t[--c]:null==f?f=l[++r]:null==$?$=l[--u]:j(i,f)?(k(i,f),i=t[++o],f=l[++r]):j(a,$)?(k(a,$),a=t[--c],$=l[--u]):j(i,$)?(k(i,$),e.insertBefore(i.m,a.m.nextSibling),i=t[++o],$=l[--u]):j(a,f)?(k(a,f),e.insertBefore(a.m,i.m),a=t[--c],f=l[++r]):(s=g(t&&t[r],n,r),f=l[++r],s&&i.m.parentNode.insertBefore(s,i.m));o>c?S(e,null==l[u+1]?null:l[u+1].m,n,l,r,u):r>u&&v(t,o,c)})(l,s,t,o):null!==o?(null!==e.i&&(l.textContent=""),S(l,null,t,o,0,o.length-1)):null!==s&&v(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.i!==c&&(l.data=c)},C=e=>V(e).p,O=(e,t)=>{t&&!e.g&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.g=t)))},M=(e,t)=>{if(e.t|=16,!(4&e.t))return O(e,e.S),te((()=>x(e,t)));e.t|=512},x=(e,t)=>{const n=e.v;let l;return t&&(l=W(n,"componentWillLoad")),A(l,(()=>P(e,n,t)))},P=async(e,t,n)=>{const l=e.p,s=l["s-rc"];n&&(e=>{const t=e.j,n=e.p,l=t.t,s=((e,t)=>{let n=u(t);const l=J.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=a.get(e=e.head||e);s||a.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);E(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>L(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},E=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.p,o=n.k||d(null,null),r=(e=>e&&e.h===h)(l)?l:y(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.k=r,r.m=o.m=s.shadowRoot||s,e=s["s-sc"],k(o,r)})(n,l)}catch(e){D(e,n.p)}return null},L=e=>{const t=e.p,n=e.S;64&e.t||(e.t|=64,H(t),e.C(t),n||T()),e.g&&(e.g(),e.g=void 0),512&e.t&&ee((()=>M(e,!1))),e.t&=-517},N=e=>{{const t=V(e),n=t.p.isConnected;return n&&2==(18&t.t)&&M(t,!1),n}},T=()=>{H(o.documentElement),ee((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"abi"}});return e.dispatchEvent(t),t})(s)))},W=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){D(e)}},A=(e,t)=>e&&e.then?e.then(t):t(),H=e=>e.classList.add("hydrated"),R=(e,t,n)=>{if(t.O){const l=Object.entries(t.O),s=e.prototype;l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(s,e,{get(){return((e,t)=>V(this).M.get(t))(0,e)},set(t){((e,t,n)=>{const l=V(e),s=l.M.get(t),o=l.t,r=l.v;n=(e=>(null==e||$(e),e))(n),8&o&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(l.M.set(t,n),r&&2==(18&o)&&M(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})}))}return e},U=e=>{W(e,"connectedCallback")},q=(e,t={})=>{const n=[],l=t.exclude||[],c=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),$=o.createElement("style"),y=[];let d,h=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],o:t[1],O:t[2],P:t[3]};s.O=t[2];const o=s.o,a=class extends HTMLElement{constructor(e){super(e),z(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),h?y.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=V(e),n=t.j,l=()=>{};if(1&t.t)U(t.v);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){O(t,t.S=n);break}}(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=I(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(R(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){D(e)}t.t&=-9,e(),U(t.v)}if(s.style){let e=s.style;const t=u(n);if(!J.has(t)){const l=()=>{};((e,t,n)=>{let l=J.get(e);i&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,J.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>M(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{0==(1&r.t)&&W(V(this).v,"disconnectedCallback")})()))}componentOnReady(){return V(this).L}};s.N=e[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,R(a,s,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),h=!1,y.length?y.map((e=>e.connectedCallback())):r.jmp((()=>d=setTimeout(T,30)))},F=new WeakMap,V=e=>F.get(e),_=(e,t)=>F.set(t.v=e,t),z=(e,t)=>{const n={t:0,p:e,j:t,M:new Map};return n.L=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],F.set(e,n)},B=(e,t)=>t in e,D=(e,t)=>(0,console.error)(e,t),G=new Map,I=e=>{const t=e.o.replace(/-/g,"_"),n=e.N,l=G.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(G.set(n,e),e[t])),D)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},J=new Map,K=[],Q=[],X=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ee(Z):r.raf(Z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){D(e)}e.length=0},Z=()=>{Y(K),Y(Q),(l=K.length>0)&&r.raf(Z)},ee=e=>c().then(e),te=X(Q,!0);export{h as H,q as b,N as f,C as g,y as h,c as p,_ as r}
|