@letscooee/web-sdk 13.1.12 → 13.1.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.
- package/.release-it.json +1 -1
- package/dist/chunk-C_cBbkTf-CTSBF1Lh.js +15 -0
- package/dist/debugger.component-DGenGFsu-BT4w6ZSR.js +12 -0
- package/dist/esm-DKhFdjmg-Dag-xV2C.js +23 -0
- package/dist/main.min.js +68 -5
- package/dist/renderer-v4JpDv8Y-BMksDEdR.js +6 -0
- package/dist/share-dialog.component-D46Z7qqm-CCcMnhK7.js +8 -0
- package/dist/{widget.min.css → styles.min.css} +1 -1
- package/dist/video-detail-dialog.component-Bxg20OFh-eyH-mp7f.js +15 -0
- package/dist/widgets-CeQB31bn-JEgjqW5I.js +45 -0
- package/package.json +26 -27
- package/dist/chunk-6XVC72KV.js +0 -10
- package/dist/chunk-CAFWCDWI.js +0 -1
- package/dist/chunk-HC6OE5XR.js +0 -4
- package/dist/chunk-ILIYCRW5.js +0 -2
- package/dist/chunk-KWG3YKM4.js +0 -6
- package/dist/chunk-NOZTSVSX.js +0 -8
- package/dist/chunk-RF2WNRIW.js +0 -39
- package/dist/chunk-U4XWPFUW.js +0 -1
- package/dist/chunk-WQK746ER.js +0 -1
- package/dist/debugger.component-XOR6S75S.js +0 -7
- package/dist/esm-EYV26LOR.js +0 -498
- package/dist/renderer-TBPM7OV3.js +0 -1
- package/dist/sdk-debug-logs-XNSWT65Q.js +0 -1
- package/dist/share-dialog.component-KYYLRKQ6.js +0 -1
- package/dist/video-detail-dialog.component-E3IQ3CUB.js +0 -2
- package/dist/widget.min.js +0 -20
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as k}from"./chunk-ILIYCRW5.js";import{a as w,b as P}from"./chunk-WQK746ER.js";import{Aa as h,Ca as x,Hb as E,K as d,O as r,Qa as a,Ra as S,X as f,aa as m,cb as c,db as b,eb as $,kb as T,la as p,ma as u,na as g,sa as s,ta as n,ua as l,vb as v}from"./chunk-HC6OE5XR.js";import"./chunk-U4XWPFUW.js";var D=["/v1/engagement/cart-widgets","/v1/engagement/page-widgets","/v1/event/validate-session"];function A(){let i=performance.getEntriesByType?.("resource");return i?i.filter(o=>D.some(e=>o.name.includes(e))):[]}function R(){let i=A();return i.length?i.map(e=>JSON.stringify(e.toJSON())).join(`
|
|
2
|
-
`):""}function z(i,o){if(i&1&&(s(0,"li")(1,"span",1),a(2),c(3,"date"),n(),a(4,"\xA0 "),l(5,"span",2),c(6,"safeHtml"),n()),i&2){let e=o.$implicit;r(2),S($(3,2,e.time,"hh:mm:ss a")),r(3),h("innerHTML",b(6,5,e.message),d)}}var C=class i{logs=T.required();constructor(){}async shareLogs(){let o=this.logs().map(t=>`[${new Date(t.time).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1,timeZoneName:"short"})}] ${t.message}`).join(`
|
|
3
|
-
`);o=o.replaceAll("\xA0"," ");let e=R();if(e&&(o+=`
|
|
4
|
-
|
|
5
|
-
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 API Resource Metrics (Raw) \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
6
|
-
`+e),P()&&navigator.share){navigator.share({text:o});return}navigator.clipboard.writeText(o),E("Copied to your clipboard")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=f({type:i,selectors:[["cooee-debugger"]],inputs:{logs:[1,"logs"]},features:[m([k])],decls:5,vars:0,consts:[[1,"btn-copy",3,"click"],[2,"color","rgb(100, 116, 139)"],[3,"innerHTML"]],template:function(e,t){e&1&&(s(0,"ol"),u(1,z,7,7,"li",null,p),n(),s(3,"button",0),x("click",function(){return t.shareLogs()}),a(4,"Copy"),n()),e&2&&(r(),g(t.logs()))},dependencies:[w,v],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media (min-width: 768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff}
|
|
7
|
-
`],encapsulation:3})};export{C as DebuggerComponent};
|