@encatch/ws-react 0.0.34 → 0.0.35

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.
@@ -17898,7 +17898,7 @@ function xN() {
17898
17898
  }
17899
17899
  return P(Q), mr(Q, (x) => $(ce, x), () => l(ce)), z(i, Q), Je(W);
17900
17900
  }
17901
- customElements.define("encatch-app", yd(Us, { theme: {}, currentMode: {}, currentLanguage: {}, questions: {}, questionLanguages: {}, otherConfigurationProperties: {}, welcomeScreenProperties: {}, endScreenProperties: {}, translations: {}, sections: {}, themeSettings: {}, onClose: {}, onSectionChange: {}, apiKey: {}, hostUrl: {}, feedbackConfigId: {}, identifier: {}, cssLink: {}, scale: {}, persistMode: {}, instanceId: {} }, [], [], !0));
17901
+ yd(Us, { theme: {}, currentMode: {}, currentLanguage: {}, questions: {}, questionLanguages: {}, otherConfigurationProperties: {}, welcomeScreenProperties: {}, endScreenProperties: {}, translations: {}, sections: {}, themeSettings: {}, onClose: {}, onSectionChange: {}, apiKey: {}, hostUrl: {}, feedbackConfigId: {}, identifier: {}, cssLink: {}, scale: {}, persistMode: {}, instanceId: {} }, [], [], !0);
17902
17902
  var ux = te("<div><!></div>");
17903
17903
  function hf(i, n) {
17904
17904
  Be(n, !1);
@@ -387,7 +387,7 @@ class fe extends EventTarget {
387
387
  }
388
388
  }
389
389
  const g = new fe(), M = "encatch-app-react";
390
- typeof window < "u" && import("./web-form-engine-core.umd-Qp6qpr0V.js").then((t) => t.w).then(({ EncatchAppElement: t }) => {
390
+ typeof window < "u" && import("./web-form-engine-core.umd-AECjqIjA.js").then((t) => t.w).then(({ EncatchAppElement: t }) => {
391
391
  try {
392
392
  customElements.get(M) || customElements.define(M, t);
393
393
  } catch (r) {
@@ -279,4 +279,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
279
279
  .encatch-scale-wrapper {
280
280
  zoom: ${J} !important;
281
281
  }
282
- `),Q};let oe=ee(),ae=ee("");Pn(()=>{R()||$(he,!0)}),$o(()=>{u.clearResponses()}),ye(()=>(l(le),l(oe),I(E())),()=>{if(l(le)){const S=ue(l(le));if(S&&l(oe)){const Q=S.adoptedStyleSheets.indexOf(l(oe));Q>-1&&S.adoptedStyleSheets.splice(Q,1)}$(oe,me(E())),S&&(S.adoptedStyleSheets=[...S.adoptedStyleSheets,l(oe)])}}),ye(()=>(l(le),l(Ne)),()=>{l(le)&&!l(Ne)&&setTimeout(()=>{const S=ue(l(le)),Q=document.createElement("link");Q.rel="stylesheet",Q.href=H,Q.onload=()=>{$(Ne,!0)},Q.onerror=()=>{console.error("Failed to load base CSS"),$(Ne,!0)},S?S.appendChild(Q):document.head.appendChild(Q)},0)}),ye(()=>(l(le),I(R()),l(ae)),()=>{l(le)&&R()&&l(ae)!==R()&&($(he,!1),$(Se,!1),setTimeout(()=>{const S=ue(l(le)),Q=document.createElement("link");Q.rel="stylesheet",Q.href=R(),Q.onload=()=>{$(he,!0),$(ae,R())},Q.onerror=()=>{$(Se,!0),$(ae,R())},S?S.appendChild(Q):document.head.appendChild(Q)},0))}),cr();var G={get theme(){return c()},set theme(S){c(S),at()},get currentMode(){return d()},set currentMode(S){d(S),at()},get currentLanguage(){return f()},set currentLanguage(S){f(S),at()},get questions(){return p()},set questions(S){p(S),at()},get questionLanguages(){return g()},set questionLanguages(S){g(S),at()},get otherConfigurationProperties(){return h()},set otherConfigurationProperties(S){h(S),at()},get welcomeScreenProperties(){return b()},set welcomeScreenProperties(S){b(S),at()},get endScreenProperties(){return y()},set endScreenProperties(S){y(S),at()},get translations(){return k()},set translations(S){k(S),at()},get sections(){return v()},set sections(S){v(S),at()},get themeSettings(){return x()},set themeSettings(S){x(S),at()},get onClose(){return z()},set onClose(S){z(S),at()},get onSectionChange(){return T()},set onSectionChange(S){T(S),at()},get apiKey(){return A()},set apiKey(S){A(S),at()},get hostUrl(){return W()},set hostUrl(S){W(S),at()},get feedbackConfigId(){return ce()},set feedbackConfigId(S){ce(S),at()},get identifier(){return B()},set identifier(S){B(S),at()},get cssLink(){return R()},set cssLink(S){R(S),at()},get scale(){return E()},set scale(S){E(S),at()},get persistMode(){return q()},set persistMode(S){q(S),at()},get instanceId(){return re()},set instanceId(S){re(S),at()}};Xt();var V=gz(),de=L(V);{var P=S=>{cl(S,{get theme(){return c()},get currentMode(){return d()},get currentLanguage(){return f()},get questions(){return p()},get questionLanguages(){return g()},get otherConfigurationProperties(){return h()},get welcomeScreenProperties(){return b()},get endScreenProperties(){return y()},get translations(){return k()},get sections(){return v()},get themeSettings(){return x()},get onClose(){return z()},get onSectionChange(){return T()},get apiKey(){return A()},get hostUrl(){return W()},get feedbackConfigId(){return ce()},get identifier(){return B()},get persistMode(){return q()},get instanceId(){return re()}})};ne(de,S=>{l(he)&&S(P)})}return D(V),$r(V,S=>$(le,S),()=>l(le)),N(i,V),Ke(G)}customElements.define("encatch-app",Vv(ll,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{},persistMode:{},instanceId:{}},[],[],!0));var hz=te("<div><!></div>");function Fb(i,n){Ye(n,!1);let u=w(n,"themeMode",12,"light"),c=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),f=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),h=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),k=w(n,"onClose",12,void 0),v=w(n,"trackPopupHeight",12,void 0),x=w(n,"feedbackConfigId",12,void 0),z=w(n,"identifier",12,void 0),T=w(n,"cssLinks",28,()=>[]),A=ee();const W=E=>{if(!E)return null;let q=E;for(;q;){if(q instanceof ShadowRoot)return q;q=q.parentNode}return null};ye(()=>(l(A),I(T())),()=>{if(l(A)&&T()&&T().length>0){const E=W(l(A));E&&T().forEach(q=>{if(!Array.from(E.querySelectorAll('link[rel="stylesheet"]')).find(re=>re.href===q)){const re=document.createElement("link");re.rel="stylesheet",re.href=q,E.appendChild(re)}})}}),cr();var ce={get themeMode(){return u()},set themeMode(E){u(E),at()},get feedbackConfiguration(){return c()},set feedbackConfiguration(E){c(E),at()},get apiKey(){return d()},set apiKey(E){d(E),at()},get hostUrl(){return f()},set hostUrl(E){f(E),at()},get deviceInfo(){return p()},set deviceInfo(E){p(E),at()},get sessionId(){return g()},set sessionId(E){g(E),at()},get userInfo(){return h()},set userInfo(E){h(E),at()},get language(){return b()},set language(E){b(E),at()},get configurationData(){return y()},set configurationData(E){y(E),at()},get onClose(){return k()},set onClose(E){k(E),at()},get trackPopupHeight(){return v()},set trackPopupHeight(E){v(E),at()},get feedbackConfigId(){return x()},set feedbackConfigId(E){x(E),at()},get identifier(){return z()},set identifier(E){z(E),at()},get cssLinks(){return T()},set cssLinks(E){T(E),at()}};Xt();var B=hz(),R=L(B);return qb(R,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return d()},get hostUrl(){return f()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return h()},get language(){return b()},get configurationData(){return y()},get onClose(){return k()},get trackPopupHeight(){return v()},get feedbackConfigId(){return x()},get identifier(){return z()}}),D(B),$r(B,E=>$(A,E),()=>l(A)),N(i,B),Ke(ce)}customElements.define("encatch-form",Vv(Fb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{},cssLinks:{}},[],[],!0));const vz=Fb,bz=ll;o.App=cl,o.EncatchApp=ll,o.EncatchAppElement=bz,o.EncatchFormElement=vz,o.PopupUi=qb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Ri,Ri.exports)),Ri.exports}var Fk=qk();const Wk=Vb({__proto__:null},[Fk]);nn.EncatchPreview=ey,nn.useEncatchFormEvent=ty,nn.useEncatchFormEventAll=ry,Object.defineProperty(nn,Symbol.toStringTag,{value:"Module"})}));
282
+ `),Q};let oe=ee(),ae=ee("");Pn(()=>{R()||$(he,!0)}),$o(()=>{u.clearResponses()}),ye(()=>(l(le),l(oe),I(E())),()=>{if(l(le)){const S=ue(l(le));if(S&&l(oe)){const Q=S.adoptedStyleSheets.indexOf(l(oe));Q>-1&&S.adoptedStyleSheets.splice(Q,1)}$(oe,me(E())),S&&(S.adoptedStyleSheets=[...S.adoptedStyleSheets,l(oe)])}}),ye(()=>(l(le),l(Ne)),()=>{l(le)&&!l(Ne)&&setTimeout(()=>{const S=ue(l(le)),Q=document.createElement("link");Q.rel="stylesheet",Q.href=H,Q.onload=()=>{$(Ne,!0)},Q.onerror=()=>{console.error("Failed to load base CSS"),$(Ne,!0)},S?S.appendChild(Q):document.head.appendChild(Q)},0)}),ye(()=>(l(le),I(R()),l(ae)),()=>{l(le)&&R()&&l(ae)!==R()&&($(he,!1),$(Se,!1),setTimeout(()=>{const S=ue(l(le)),Q=document.createElement("link");Q.rel="stylesheet",Q.href=R(),Q.onload=()=>{$(he,!0),$(ae,R())},Q.onerror=()=>{$(Se,!0),$(ae,R())},S?S.appendChild(Q):document.head.appendChild(Q)},0))}),cr();var G={get theme(){return c()},set theme(S){c(S),at()},get currentMode(){return d()},set currentMode(S){d(S),at()},get currentLanguage(){return f()},set currentLanguage(S){f(S),at()},get questions(){return p()},set questions(S){p(S),at()},get questionLanguages(){return g()},set questionLanguages(S){g(S),at()},get otherConfigurationProperties(){return h()},set otherConfigurationProperties(S){h(S),at()},get welcomeScreenProperties(){return b()},set welcomeScreenProperties(S){b(S),at()},get endScreenProperties(){return y()},set endScreenProperties(S){y(S),at()},get translations(){return k()},set translations(S){k(S),at()},get sections(){return v()},set sections(S){v(S),at()},get themeSettings(){return x()},set themeSettings(S){x(S),at()},get onClose(){return z()},set onClose(S){z(S),at()},get onSectionChange(){return T()},set onSectionChange(S){T(S),at()},get apiKey(){return A()},set apiKey(S){A(S),at()},get hostUrl(){return W()},set hostUrl(S){W(S),at()},get feedbackConfigId(){return ce()},set feedbackConfigId(S){ce(S),at()},get identifier(){return B()},set identifier(S){B(S),at()},get cssLink(){return R()},set cssLink(S){R(S),at()},get scale(){return E()},set scale(S){E(S),at()},get persistMode(){return q()},set persistMode(S){q(S),at()},get instanceId(){return re()},set instanceId(S){re(S),at()}};Xt();var V=gz(),de=L(V);{var P=S=>{cl(S,{get theme(){return c()},get currentMode(){return d()},get currentLanguage(){return f()},get questions(){return p()},get questionLanguages(){return g()},get otherConfigurationProperties(){return h()},get welcomeScreenProperties(){return b()},get endScreenProperties(){return y()},get translations(){return k()},get sections(){return v()},get themeSettings(){return x()},get onClose(){return z()},get onSectionChange(){return T()},get apiKey(){return A()},get hostUrl(){return W()},get feedbackConfigId(){return ce()},get identifier(){return B()},get persistMode(){return q()},get instanceId(){return re()}})};ne(de,S=>{l(he)&&S(P)})}return D(V),$r(V,S=>$(le,S),()=>l(le)),N(i,V),Ke(G)}Vv(ll,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{},persistMode:{},instanceId:{}},[],[],!0);var hz=te("<div><!></div>");function Fb(i,n){Ye(n,!1);let u=w(n,"themeMode",12,"light"),c=w(n,"feedbackConfiguration",12,null),d=w(n,"apiKey",12,""),f=w(n,"hostUrl",12,""),p=w(n,"deviceInfo",12,null),g=w(n,"sessionId",12,""),h=w(n,"userInfo",12,null),b=w(n,"language",12,"en"),y=w(n,"configurationData",12,null),k=w(n,"onClose",12,void 0),v=w(n,"trackPopupHeight",12,void 0),x=w(n,"feedbackConfigId",12,void 0),z=w(n,"identifier",12,void 0),T=w(n,"cssLinks",28,()=>[]),A=ee();const W=E=>{if(!E)return null;let q=E;for(;q;){if(q instanceof ShadowRoot)return q;q=q.parentNode}return null};ye(()=>(l(A),I(T())),()=>{if(l(A)&&T()&&T().length>0){const E=W(l(A));E&&T().forEach(q=>{if(!Array.from(E.querySelectorAll('link[rel="stylesheet"]')).find(re=>re.href===q)){const re=document.createElement("link");re.rel="stylesheet",re.href=q,E.appendChild(re)}})}}),cr();var ce={get themeMode(){return u()},set themeMode(E){u(E),at()},get feedbackConfiguration(){return c()},set feedbackConfiguration(E){c(E),at()},get apiKey(){return d()},set apiKey(E){d(E),at()},get hostUrl(){return f()},set hostUrl(E){f(E),at()},get deviceInfo(){return p()},set deviceInfo(E){p(E),at()},get sessionId(){return g()},set sessionId(E){g(E),at()},get userInfo(){return h()},set userInfo(E){h(E),at()},get language(){return b()},set language(E){b(E),at()},get configurationData(){return y()},set configurationData(E){y(E),at()},get onClose(){return k()},set onClose(E){k(E),at()},get trackPopupHeight(){return v()},set trackPopupHeight(E){v(E),at()},get feedbackConfigId(){return x()},set feedbackConfigId(E){x(E),at()},get identifier(){return z()},set identifier(E){z(E),at()},get cssLinks(){return T()},set cssLinks(E){T(E),at()}};Xt();var B=hz(),R=L(B);return qb(R,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return d()},get hostUrl(){return f()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return h()},get language(){return b()},get configurationData(){return y()},get onClose(){return k()},get trackPopupHeight(){return v()},get feedbackConfigId(){return x()},get identifier(){return z()}}),D(B),$r(B,E=>$(A,E),()=>l(A)),N(i,B),Ke(ce)}customElements.define("encatch-form",Vv(Fb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{},cssLinks:{}},[],[],!0));const vz=Fb,bz=ll;o.App=cl,o.EncatchApp=ll,o.EncatchAppElement=bz,o.EncatchFormElement=vz,o.PopupUi=qb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Ri,Ri.exports)),Ri.exports}var Fk=qk();const Wk=Vb({__proto__:null},[Fk]);nn.EncatchPreview=ey,nn.useEncatchFormEvent=ty,nn.useEncatchFormEventAll=ry,Object.defineProperty(nn,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/ws-react",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "type": "module",
5
5
  "main": "./dist/ws-react.umd.js",
6
6
  "module": "./dist/ws-react.es.js",