@nexlylab/widget 1.32.14

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/README.md +66 -0
  2. package/dist/INSTALL.txt +3 -0
  3. package/dist/runtime/1.32.14/chunks/ClickToLoadEmbed-CDdotCS8-W2yBrg7b.js +2 -0
  4. package/dist/runtime/1.32.14/chunks/PanelInfoVideo-BKn3ucAb-BrU-Qlul.js +3 -0
  5. package/dist/runtime/1.32.14/chunks/PanelVideoOverlay-BY__oBYV-B8OPC1xh.js +3 -0
  6. package/dist/runtime/1.32.14/chunks/_commonjsHelpers-C6fGbg64-BC8KDfbh.js +2 -0
  7. package/dist/runtime/1.32.14/chunks/accent-legibility-BJF2VO5n-CDPQ7suO.js +2 -0
  8. package/dist/runtime/1.32.14/chunks/allowed-elements-BXnLJV1S-C-_lr2zm.js +28 -0
  9. package/dist/runtime/1.32.14/chunks/assistant-link-components-MZWf5ty7-C44wlQAi.js +2 -0
  10. package/dist/runtime/1.32.14/chunks/assistant-link-policy-DWaWTnGr-Cc-yj-a-.js +2 -0
  11. package/dist/runtime/1.32.14/chunks/block-helpers-Cg_zAqG6-DnN2COvk.js +2 -0
  12. package/dist/runtime/1.32.14/chunks/block-rating-DH7mp-_R-CoiP5C2K.js +2 -0
  13. package/dist/runtime/1.32.14/chunks/external-url-LRu_ntew-CJQjg_od.js +2 -0
  14. package/dist/runtime/1.32.14/chunks/index-1o6W5wiJ-I68tb-d3.js +2 -0
  15. package/dist/runtime/1.32.14/chunks/index-B1ef1IlE-QeFj7CR9.js +2 -0
  16. package/dist/runtime/1.32.14/chunks/index-B8aKMeg5-BLxOZxZv.js +2 -0
  17. package/dist/runtime/1.32.14/chunks/index-B9ozeox8-oy07dUaV.js +6 -0
  18. package/dist/runtime/1.32.14/chunks/index-BD-jPdzs-ZRnEJoQe.js +2 -0
  19. package/dist/runtime/1.32.14/chunks/index-BPDIV1BN-DINkyYvc.js +2 -0
  20. package/dist/runtime/1.32.14/chunks/index-BSoCdILD-D6wzHiS0.js +2 -0
  21. package/dist/runtime/1.32.14/chunks/index-BcsmWDTX-Dw9WA5Ac.js +2 -0
  22. package/dist/runtime/1.32.14/chunks/index-BljIlfbh-D9I6jaso.js +2 -0
  23. package/dist/runtime/1.32.14/chunks/index-BnKOhYKk-CkemNrch.js +4 -0
  24. package/dist/runtime/1.32.14/chunks/index-Bu9Gh6Nc-BfWdQCT7.js +2 -0
  25. package/dist/runtime/1.32.14/chunks/index-BvlAsO4n-DbuSZfeK.js +2 -0
  26. package/dist/runtime/1.32.14/chunks/index-BylVnv7X-DBhSkJ7i.js +2 -0
  27. package/dist/runtime/1.32.14/chunks/index-C1WD1dlq-Dm9kbc85.js +2 -0
  28. package/dist/runtime/1.32.14/chunks/index-C262wwK4-DpyhuXqd.js +2 -0
  29. package/dist/runtime/1.32.14/chunks/index-C6_8JGpJ-BqZmEVev.js +2 -0
  30. package/dist/runtime/1.32.14/chunks/index-C75hX_dj-VhJcCfAC.js +2 -0
  31. package/dist/runtime/1.32.14/chunks/index-CMFQhtEe-BcW8HKb8.js +2 -0
  32. package/dist/runtime/1.32.14/chunks/index-CNJUK2bK-C0OfCXUx.js +50 -0
  33. package/dist/runtime/1.32.14/chunks/index-Chy2Zmo5-CiRb-0NX.js +2 -0
  34. package/dist/runtime/1.32.14/chunks/index-CmYYEi7N-Dr1V6OGz.js +2 -0
  35. package/dist/runtime/1.32.14/chunks/index-CqV8rHvG-DS9JaGVN.js +2 -0
  36. package/dist/runtime/1.32.14/chunks/index-CwbUW6dx-BLBDoJCM.js +2 -0
  37. package/dist/runtime/1.32.14/chunks/index-Czz6Gyh_-C3bBvEcm.js +2 -0
  38. package/dist/runtime/1.32.14/chunks/index-D-ZhVFzi-A3rpkVmQ.js +6 -0
  39. package/dist/runtime/1.32.14/chunks/index-D72orqXX-C_0Ll4qr.js +2 -0
  40. package/dist/runtime/1.32.14/chunks/index-D9grn5WJ-Dp5AxBD4.js +2 -0
  41. package/dist/runtime/1.32.14/chunks/index-DDEE3QfX-3B-eE3K7.js +2 -0
  42. package/dist/runtime/1.32.14/chunks/index-DMQkz1bV-BuMYksln.js +272 -0
  43. package/dist/runtime/1.32.14/chunks/index-DO0-ht8E-DUgMllqN.js +2 -0
  44. package/dist/runtime/1.32.14/chunks/index-DPNGQF5b-_M0CWPEY.js +2 -0
  45. package/dist/runtime/1.32.14/chunks/index-DP_6HfDM-DAdxCQyi.js +2 -0
  46. package/dist/runtime/1.32.14/chunks/index-DTVlG27U-DP0QKkgf.js +2 -0
  47. package/dist/runtime/1.32.14/chunks/index-DZADUAKv-DPfvWVuj.js +2 -0
  48. package/dist/runtime/1.32.14/chunks/index-DZKtK9hT-DQBGsPwB.js +2 -0
  49. package/dist/runtime/1.32.14/chunks/index-Dh0aThiP-Aqz1AnQ5.js +2 -0
  50. package/dist/runtime/1.32.14/chunks/index-Dkv5YXXW-pkywvGDF.js +2 -0
  51. package/dist/runtime/1.32.14/chunks/index-DphwDFW6-C9wFr7fa.js +2 -0
  52. package/dist/runtime/1.32.14/chunks/index-Dt6OpItC-R_xuAEQV.js +2 -0
  53. package/dist/runtime/1.32.14/chunks/index-Gi-3UOyp-DuzPeEIz.js +2 -0
  54. package/dist/runtime/1.32.14/chunks/index-IW3aNe-y-W1lJrIDD.js +2 -0
  55. package/dist/runtime/1.32.14/chunks/index-V1EfdiK7-bdo5pwX-.js +4 -0
  56. package/dist/runtime/1.32.14/chunks/index-csHaX5dv-BpgnWlB8.js +2 -0
  57. package/dist/runtime/1.32.14/chunks/index-hHQjRGar-TEMHje2B.js +2 -0
  58. package/dist/runtime/1.32.14/chunks/index-k-jZV_MQ-H31PHMqm.js +2 -0
  59. package/dist/runtime/1.32.14/chunks/index-qpVhJY7A-Cgivx3vY.js +4 -0
  60. package/dist/runtime/1.32.14/chunks/index-uM4Y0lxc-Dsa9X9U7.js +2 -0
  61. package/dist/runtime/1.32.14/chunks/index.modern-CioVZ357-BA5NTOmY.js +6 -0
  62. package/dist/runtime/1.32.14/chunks/inert-assistant-components-B6Cx9pG5-DWb6n3Yq.js +2 -0
  63. package/dist/runtime/1.32.14/chunks/use-deferred-rating-XlgCUwcY-DDVOwURi.js +2 -0
  64. package/dist/runtime/1.32.14/nexly.js +61 -0
  65. package/dist/v1.js +6 -0
  66. package/package.json +36 -0
package/dist/v1.js ADDED
@@ -0,0 +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.32.14",cdn:n("cdn")||m()||"https://cdn.jsdelivr.net/npm/@nexlylab/widget@1.32.14/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}
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})})()})();
6
+ //# sourceMappingURL=v1.js.map
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@nexlylab/widget",
3
+ "version": "1.32.14",
4
+ "description": "Agent AI na dowolnej stronie w jednej linijce HTML. Bez builda, bez frameworka, bez konfiguracji.",
5
+ "license": "MIT",
6
+ "author": "NexlyLab",
7
+ "homepage": "https://nexlyagents.pl",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/nexlylab-ai/e-commerce-studio.git",
11
+ "directory": "packages/widget-cdn"
12
+ },
13
+ "keywords": [
14
+ "widget",
15
+ "ai-agent",
16
+ "chat",
17
+ "embed",
18
+ "ecommerce",
19
+ "customer-support"
20
+ ],
21
+ "files": [
22
+ "dist",
23
+ "README.md"
24
+ ],
25
+ "main": "dist/v1.js",
26
+ "unpkg": "dist/v1.js",
27
+ "jsdelivr": "dist/v1.js",
28
+ "sideEffects": true,
29
+ "scripts": {
30
+ "build": "node scripts/assemble.mjs"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "registry": "https://registry.npmjs.org/"
35
+ }
36
+ }