@nexlylab/widget 1.33.0 → 1.34.0

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.
Files changed (66) hide show
  1. package/dist/INSTALL.txt +1 -1
  2. package/dist/runtime/{1.33.0/chunks/ClickToLoadEmbed-DdH19Upf-CnpjmfE1.js → 1.34.0/chunks/ClickToLoadEmbed-BNWVfZ1y-DuTZcv6f.js} +2 -2
  3. package/dist/runtime/{1.33.0/chunks/PanelInfoVideo-XFcVoL2c-qpxDXdLm.js → 1.34.0/chunks/PanelInfoVideo-Di7qwhV_-qpxDXdLm.js} +1 -1
  4. package/dist/runtime/{1.33.0/chunks/assistant-link-components-gMuMhmaU-rHpeX4O6.js → 1.34.0/chunks/assistant-link-components-DtT0biCl-jR32KHTm.js} +2 -2
  5. package/dist/runtime/{1.33.0/chunks/assistant-link-policy-DlGAtyk7-By6jpR50.js → 1.34.0/chunks/assistant-link-policy-B77YPf4E-By6jpR50.js} +1 -1
  6. package/dist/runtime/{1.33.0/chunks/block-rating-CAVRRYuG-CQMNokIy.js → 1.34.0/chunks/block-rating-uD_0LK-1-CQMNokIy.js} +1 -1
  7. package/dist/runtime/{1.33.0/chunks/external-url-JbUnX7Da-rLiy7c9v.js → 1.34.0/chunks/external-url-Bx_GTDOx-rLiy7c9v.js} +1 -1
  8. package/dist/runtime/{1.33.0/chunks/index-CPGSyaZ4-BoVmvEOm.js → 1.34.0/chunks/index--7VB9nyF-BoVmvEOm.js} +1 -1
  9. package/dist/runtime/{1.33.0/chunks/index-Cfy6Ocqe-CzwqZYRk.js → 1.34.0/chunks/index-66kR66X--CzwqZYRk.js} +1 -1
  10. package/dist/runtime/{1.33.0/chunks/index-BzVJMW3i-Bhh8_8Oh.js → 1.34.0/chunks/index-67cmm3Si-Bhh8_8Oh.js} +1 -1
  11. package/dist/runtime/{1.33.0/chunks/index-DTa1aDGz-Deg8QEW2.js → 1.34.0/chunks/index-7wlPUbYV-Deg8QEW2.js} +1 -1
  12. package/dist/runtime/{1.33.0/chunks/index-CDlumsdH-BgpZz7kC.js → 1.34.0/chunks/index-B80p2HRD-BHvEiO2X.js} +2 -2
  13. package/dist/runtime/{1.33.0/chunks/index-HIu_g6Cr-CEIHlemy.js → 1.34.0/chunks/index-BHphkqVW-CEIHlemy.js} +1 -1
  14. package/dist/runtime/{1.33.0/chunks/index-7yhyghzH-BlFXtfQb.js → 1.34.0/chunks/index-BIeasoH0-BlFXtfQb.js} +1 -1
  15. package/dist/runtime/{1.33.0/chunks/index-BP1Q45X4-f3F4IxQ5.js → 1.34.0/chunks/index-BPwttNii-f3F4IxQ5.js} +1 -1
  16. package/dist/runtime/{1.33.0/chunks/index-CmM1q2bg-D6H0juMn.js → 1.34.0/chunks/index-BTgHOj2W-D6H0juMn.js} +1 -1
  17. package/dist/runtime/{1.33.0/chunks/index-DOJHU9qy-Bil-vDLm.js → 1.34.0/chunks/index-BfGmnBJ0-BOltxOU-.js} +2 -2
  18. package/dist/runtime/{1.33.0/chunks/index-CH-C6uk_-B-pT4hKt.js → 1.34.0/chunks/index-BjNWgAJk-B-pT4hKt.js} +1 -1
  19. package/dist/runtime/{1.33.0/chunks/index-xQDKGkvA-pCzSL4DD.js → 1.34.0/chunks/index-BlY9hgA--pCzSL4DD.js} +1 -1
  20. package/dist/runtime/{1.33.0/chunks/index-uYSCRIpT-qsVnaLmo.js → 1.34.0/chunks/index-BmajLlTC-qsVnaLmo.js} +1 -1
  21. package/dist/runtime/{1.33.0/chunks/index-s0zHGN1t-DWm0RYZF.js → 1.34.0/chunks/index-BtBJMXR--DWm0RYZF.js} +1 -1
  22. package/dist/runtime/{1.33.0/chunks/index-BCxeWwto-B9PuY2Gx.js → 1.34.0/chunks/index-Bz-3E3Sa-B9PuY2Gx.js} +1 -1
  23. package/dist/runtime/{1.33.0/chunks/index-D9fi5TQ9-k8zxZkfU.js → 1.34.0/chunks/index-CM2ok1Hp-k8zxZkfU.js} +1 -1
  24. package/dist/runtime/{1.33.0/chunks/index-BblCrrAW-bh6F7tw3.js → 1.34.0/chunks/index-CMdx7oFx-bh6F7tw3.js} +1 -1
  25. package/dist/runtime/{1.33.0/chunks/index-SV2KdT0_-BZw4n83V.js → 1.34.0/chunks/index-COobDdoM-BZw4n83V.js} +1 -1
  26. package/dist/runtime/{1.33.0/chunks/index-BPfUysTZ-CV5ZiVsD.js → 1.34.0/chunks/index-CQCPJl3S-CV5ZiVsD.js} +1 -1
  27. package/dist/runtime/{1.33.0/chunks/index-BO0vI80C-qK4w7DnX.js → 1.34.0/chunks/index-CSsAPgvv-qK4w7DnX.js} +1 -1
  28. package/dist/runtime/{1.33.0/chunks/index-DZNxd978-BmIQ-NmU.js → 1.34.0/chunks/index-CXm6d9l1-BmIQ-NmU.js} +1 -1
  29. package/dist/runtime/{1.33.0/chunks/index-BjHXOMPQ-Bt7j8evJ.js → 1.34.0/chunks/index-CZcU6ylZ-Bt7j8evJ.js} +1 -1
  30. package/dist/runtime/{1.33.0/chunks/index-BwnCq3yC-LScXPMbE.js → 1.34.0/chunks/index-Ce73FsEJ-Ce0fEutJ.js} +2 -2
  31. package/dist/runtime/{1.33.0/chunks/index-S2W2KqpV-PMvqlUvO.js → 1.34.0/chunks/index-Cf3qMIwZ-PMvqlUvO.js} +1 -1
  32. package/dist/runtime/{1.33.0/chunks/index-CnknkPUN-Yl3jEGAx.js → 1.34.0/chunks/index-CqSCG8MM-Yl3jEGAx.js} +1 -1
  33. package/dist/runtime/{1.33.0/chunks/index-CZCcZigQ-qH_mrcVT.js → 1.34.0/chunks/index-CzfX3ctc-qH_mrcVT.js} +1 -1
  34. package/dist/runtime/{1.33.0/chunks/index-DsyaMk1k-DpMzyqHN.js → 1.34.0/chunks/index-DBhWCUM5-DpMzyqHN.js} +1 -1
  35. package/dist/runtime/{1.33.0/chunks/index-CYP-tLa5-DLVDVk-F.js → 1.34.0/chunks/index-DT9H1y9L-DladDuuj.js} +2 -2
  36. package/dist/runtime/{1.33.0/chunks/index-CNbQ508J-BPOHZMXu.js → 1.34.0/chunks/index-DbY1AG4s-C-OyGFef.js} +2 -2
  37. package/dist/runtime/{1.33.0/chunks/index-qzvjftnO-CDVtcfdt.js → 1.34.0/chunks/index-Ddxqdy4M-CDVtcfdt.js} +1 -1
  38. package/dist/runtime/{1.33.0/chunks/index-CVtuVQCx-Dtq7n928.js → 1.34.0/chunks/index-DmV2pHdJ-Dtq7n928.js} +1 -1
  39. package/dist/runtime/{1.33.0/chunks/index-CZSW9eXg-BwcGrX1b.js → 1.34.0/chunks/index-DnWzIgAa-DlTfKZaL.js} +2 -2
  40. package/dist/runtime/{1.33.0/chunks/index-Bd_8PmPr-CgO1smBF.js → 1.34.0/chunks/index-Dnqtxtmw-CgO1smBF.js} +1 -1
  41. package/dist/runtime/{1.33.0/chunks/index-BWY1nqf0-DX50C5MZ.js → 1.34.0/chunks/index-Dw35VwDs-DX50C5MZ.js} +1 -1
  42. package/dist/runtime/{1.33.0/chunks/index--H6hRpBJ-F9_TzvkO.js → 1.34.0/chunks/index-Dydy8_XR-F9_TzvkO.js} +1 -1
  43. package/dist/runtime/{1.33.0/chunks/index-NPLN6oCC-VW9D8cgC.js → 1.34.0/chunks/index-FHHrEvNZ-VW9D8cgC.js} +1 -1
  44. package/dist/runtime/{1.33.0/chunks/index-v9CNsbwM-CavFmRiD.js → 1.34.0/chunks/index-RyI_7m1j-CavFmRiD.js} +1 -1
  45. package/dist/runtime/{1.33.0/chunks/index-DG6McKPZ-CqZ9_vG_.js → 1.34.0/chunks/index-TJEJpVI7-CqZ9_vG_.js} +1 -1
  46. package/dist/runtime/{1.33.0/chunks/index-Ci7P37Ya-W5nof5Mx.js → 1.34.0/chunks/index-Va_2P_Gg-Kzu4aFqn.js} +2 -2
  47. package/dist/runtime/{1.33.0/chunks/index--pcCOJWb-BzpgdoE8.js → 1.34.0/chunks/index-_wovirve-BzpgdoE8.js} +1 -1
  48. package/dist/runtime/{1.33.0/chunks/index-CNP-4dFm-BlRhWcs1.js → 1.34.0/chunks/index-kmVVSAKR-BlRhWcs1.js} +1 -1
  49. package/dist/runtime/{1.33.0/chunks/index-DUV1wU5j-ErDxRmJu.js → 1.34.0/chunks/index-xV27oZEe-ErDxRmJu.js} +1 -1
  50. package/dist/runtime/1.34.0/nexly.js +61 -0
  51. package/dist/v1.js +4 -4
  52. package/package.json +1 -1
  53. package/dist/runtime/1.33.0/nexly.js +0 -61
  54. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/PanelVideoOverlay-BY__oBYV-B8OPC1xh.js +0 -0
  55. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/_commonjsHelpers-C6fGbg64-BC8KDfbh.js +0 -0
  56. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/accent-legibility-BJF2VO5n-CDPQ7suO.js +0 -0
  57. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/allowed-elements-C0OfX2zF-DIBV8lKu.js +0 -0
  58. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/block-helpers-Cg_zAqG6-DnN2COvk.js +0 -0
  59. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index-BPDIV1BN-DINkyYvc.js +0 -0
  60. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index-BcsmWDTX-Dw9WA5Ac.js +0 -0
  61. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index-C262wwK4-DpyhuXqd.js +0 -0
  62. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index-DMQkz1bV-BuMYksln.js +0 -0
  63. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index-DZADUAKv-DPfvWVuj.js +0 -0
  64. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/index.modern-CioVZ357-nfRNslCS.js +0 -0
  65. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/inert-assistant-components-B6Cx9pG5-DWb6n3Yq.js +0 -0
  66. /package/dist/runtime/{1.33.0 → 1.34.0}/chunks/use-deferred-rating-XlgCUwcY-DDVOwURi.js +0 -0
package/dist/v1.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(){"use strict";(function(){var y;const l=document.currentScript;if(!l||window.Nexly)return;const n=e=>l.getAttribute(`data-${e}`),m=()=>{try{return new URL(l.src,location.href).href.replace(/\/[^/]*$/,"")}catch{return""}},u=n("api-key");if(!u){console.error(`[Nexly] Brak data-api-key na tagu skryptu.
2
- Skopiuj gotowy snippet z panelu (Produkt → Instalacja) — klucz jest w nim już wpisany.`);return}const o={apiKey:u,server:n("server")||"https://e-commerce-studio.nexlylab.dev",theme:n("theme")||"system",position:n("position")||"bottom-right",version:n("version")||"1.33.0",cdn:n("cdn")||m()||"https://cdn.jsdelivr.net/npm/@nexlylab/widget@1.33.0/dist",preload:n("preload")||"hover",debug:n("debug")!==null||/[?&]nexly-debug=1/.test(location.search)},c=(...e)=>{o.debug&&console.info("[Nexly]",...e)},p=[];let i=null;const w=function(e){if(i)return i(e);p.push(e)};window.Nexly=w;for(const e of[o.cdn,o.server])try{const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e,location.href).origin,t.crossOrigin="",document.head.appendChild(t)}catch{}document.addEventListener("securitypolicyviolation",e=>{const t=e.blockedURI||"";/nexlylab|elevenlabs|livekit|maps\.googleapis/.test(t)&&console.error(`[Nexly] CSP tej strony zablokowało ${t}
1
+ (function(){"use strict";(function(){var f;const c=document.currentScript;if(!c||window.Nexly)return;const n=e=>c.getAttribute(`data-${e}`),x=()=>{try{return new URL(c.src,location.href).href.replace(/\/[^/]*$/,"")}catch{return""}},u=n("api-key");if(!u){console.error(`[Nexly] Brak data-api-key na tagu skryptu.
2
+ Skopiuj gotowy snippet z panelu (Produkt → Instalacja) — klucz jest w nim już wpisany.`);return}const o={apiKey:u,server:n("server")||"https://e-commerce-studio.nexlylab.dev",theme:n("theme")||"system",position:n("position")||"bottom-right",version:n("version")||"1.34.0",cdn:n("cdn")||x()||"https://cdn.jsdelivr.net/npm/@nexlylab/widget@1.34.0/dist",preload:n("preload")||"hover",debug:n("debug")!==null||/[?&]nexly-debug=1/.test(location.search)},p=n("signed-token");p&&(o.signedToken=p);const y=n("user-context");if(y)try{o.userContext=JSON.parse(y)}catch{console.error("[Nexly] data-user-context nie jest poprawnym JSON-em — pomijam.")}const l=(...e)=>{o.debug&&console.info("[Nexly]",...e)},m=[];let i=null;const g=function(e){if(i)return i(e);m.push(e)};window.Nexly=g;for(const e of[o.cdn,o.server])try{const t=document.createElement("link");t.rel="preconnect",t.href=new URL(e,location.href).origin,t.crossOrigin="",document.head.appendChild(t)}catch{}document.addEventListener("securitypolicyviolation",e=>{const t=e.blockedURI||"";/nexlylab|elevenlabs|livekit|maps\.googleapis/.test(t)&&console.error(`[Nexly] CSP tej strony zablokowało ${t}
3
3
  Naruszona dyrektywa: ${e.violatedDirective}
4
- Gotowy blok CSP do wklejenia: ${o.server}/install/csp?key=${o.apiKey.slice(0,11)}`)});function b(e){const t=document.createElement("button");return t.type="button",t.id="nexly-launcher",t.setAttribute("aria-label","Otwórz czat"),t.style.cssText=["position:fixed","bottom:20px",o.position==="bottom-left"?"left:20px":"right:20px","width:80px","height:80px","border-radius:50%","border:none","cursor:pointer","display:flex","align-items:center","justify-content:center","background:#1c1c1e","color:#f4c95d","box-shadow:0 4px 16px rgba(0,0,0,.28)","z-index:2147483000","padding:0","transition:transform .2s ease"].join(";"),t.innerHTML='<svg width="34" height="34" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-3.5-.7L3 21l1.9-5a8.2 8.2 0 0 1-.9-3.7 8.4 8.4 0 0 1 8.5-8.3 8.4 8.4 0 0 1 8.5 8z" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>',t.addEventListener("click",e),document.body.appendChild(t),t}let s=null,a=!1;function d(e){if(i)return e==null?void 0:e();if(a)return;a=!0;const t=`${o.cdn.replace(/\/$/,"")}/runtime/${o.version}/nexly.js`,g=performance.now(),r=document.createElement("script");r.src=t,r.type="module",r.async=!0,r.crossOrigin="anonymous",r.onload=()=>{const f=window.__nexlyRuntime;if(!f){console.error(`[Nexly] Runtime wczytany z ${t}, ale nie zarejestrował się poprawnie.`),a=!1;return}i=f({...o,initialOpen:!0}),c(`runtime gotowy w ${Math.round(performance.now()-g)} ms`),s==null||s.remove();for(const x of p.splice(0))i(x);e==null||e()},r.onerror=()=>{a=!1,console.error(`[Nexly] Nie udało się wczytać runtime z ${t}
5
- Sprawdź, czy CSP tej strony zezwala na script-src z tego adresu.`)},document.head.appendChild(r),c("pobieram runtime",t)}s=b(()=>d(()=>{var e;return(e=window.Nexly)==null?void 0:e.call(window,"open")})),o.preload==="hover"?s.addEventListener("pointerenter",()=>d(),{once:!0}):o.preload==="idle"&&((y=window.requestIdleCallback)!=null?y:(t=>window.setTimeout(t,2e3)))(()=>d()),c("loader gotowy",{version:o.version,server:o.server,preload:o.preload})})()})();
4
+ Gotowy blok CSP do wklejenia: ${o.server}/install/csp?key=${o.apiKey.slice(0,11)}`)});function b(e){const t=document.createElement("button");return t.type="button",t.id="nexly-launcher",t.setAttribute("aria-label","Otwórz czat"),t.style.cssText=["position:fixed","bottom:20px",o.position==="bottom-left"?"left:20px":"right:20px","width:80px","height:80px","border-radius:50%","border:none","cursor:pointer","display:flex","align-items:center","justify-content:center","background:#1c1c1e","color:#f4c95d","box-shadow:0 4px 16px rgba(0,0,0,.28)","z-index:2147483000","padding:0","transition:transform .2s ease"].join(";"),t.innerHTML='<svg width="34" height="34" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-3.5-.7L3 21l1.9-5a8.2 8.2 0 0 1-.9-3.7 8.4 8.4 0 0 1 8.5-8.3 8.4 8.4 0 0 1 8.5 8z" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>',t.addEventListener("click",e),document.body.appendChild(t),t}let s=null,a=!1;function d(e){if(i)return e==null?void 0:e();if(a)return;a=!0;const t=`${o.cdn.replace(/\/$/,"")}/runtime/${o.version}/nexly.js`,v=performance.now(),r=document.createElement("script");r.src=t,r.type="module",r.async=!0,r.crossOrigin="anonymous",r.onload=()=>{const w=window.__nexlyRuntime;if(!w){console.error(`[Nexly] Runtime wczytany z ${t}, ale nie zarejestrował się poprawnie.`),a=!1;return}i=w({...o,initialOpen:!0}),l(`runtime gotowy w ${Math.round(performance.now()-v)} ms`),s==null||s.remove();for(const h of m.splice(0))i(h);e==null||e()},r.onerror=()=>{a=!1,console.error(`[Nexly] Nie udało się wczytać runtime z ${t}
5
+ Sprawdź, czy CSP tej strony zezwala na script-src z tego adresu.`)},document.head.appendChild(r),l("pobieram runtime",t)}s=b(()=>d(()=>{var e;return(e=window.Nexly)==null?void 0:e.call(window,"open")})),o.preload==="hover"?s.addEventListener("pointerenter",()=>d(),{once:!0}):o.preload==="idle"&&((f=window.requestIdleCallback)!=null?f:(t=>window.setTimeout(t,2e3)))(()=>d()),l("loader gotowy",{version:o.version,server:o.server,preload:o.preload})})()})();
6
6
  //# sourceMappingURL=v1.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexlylab/widget",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "description": "Agent AI na dowolnej stronie w jednej linijce HTML. Bez builda, bez frameworka, bez konfiguracji.",
5
5
  "license": "MIT",
6
6
  "author": "NexlyLab",