@letscooee/web-sdk 14.1.7 → 14.1.11
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/.github/workflows/release.yml +52 -0
- package/.github/workflows/validate-pr.yml +25 -0
- package/.release-it.json +1 -1
- package/dist/{debugger.component-DT3YUXJc-BZn9qa0Y.js → debugger.component-DD3uGY2a-WIc_-4-e.js} +2 -3
- package/dist/{esm-DKhFdjmg-BiQcOf_N.js → esm-DKhFdjmg-BHggOOEU.js} +1 -1
- package/dist/main.min.js +36 -24
- package/dist/{renderer-CFJ-lsfk-CKdmxmwK.js → renderer-J5_AfM4W-Dqxkak4b.js} +2 -3
- package/dist/{share-dialog.component-Dv-swb4C-C3HgI32X.js → share-dialog.component-Ca6SvmlX-BL9a6APi.js} +2 -3
- package/dist/{video-detail-dialog.component-BKwyPkDq-Zepljxb_.js → video-detail-dialog.component-BJdssgp8-7Rgfp-Ve.js} +5 -6
- package/dist/{widgets-BX6p8PEu-DdKxHpYw.js → widgets-By0Ht5M7-Sfm_ntym.js} +6 -7
- package/package.json +5 -6
- package/dist/chunk-Cn6y5Zdt-QPGDv7mp.js +0 -15
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Release on NPM
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
id-token: write
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
name: On NPM
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
environment: production
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '24.x'
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
npm install
|
|
29
|
+
npm install lightningcss-linux-x64-gnu @tailwindcss/oxide-linux-x64-gnu
|
|
30
|
+
|
|
31
|
+
- name: Build SDK
|
|
32
|
+
run: npm run build:production
|
|
33
|
+
|
|
34
|
+
- name: Publish to NPM
|
|
35
|
+
run: npm publish --access public --@letscooee:registry=https://registry.npmjs.org/
|
|
36
|
+
|
|
37
|
+
- name: Purge jsDelivr cache
|
|
38
|
+
run: |
|
|
39
|
+
curl -L -X POST 'https://purge.jsdelivr.net/' \
|
|
40
|
+
-H 'Cache-Control: no-cache' \
|
|
41
|
+
-H 'Content-Type: application/json' \
|
|
42
|
+
-d '{
|
|
43
|
+
"path": [
|
|
44
|
+
"/npm/@letscooee/web-sdk/dist/main.min.js",
|
|
45
|
+
"/npm/@letscooee/web-sdk@latest/dist/main.min.js",
|
|
46
|
+
"/npm/@letscooee/web-sdk/dist/widget.min.js",
|
|
47
|
+
"/npm/@letscooee/web-sdk@latest/dist/widget.min.js",
|
|
48
|
+
"/npm/@letscooee/web-sdk/dist/widget.min.css",
|
|
49
|
+
"/npm/@letscooee/web-sdk@latest/dist/widget.min.css",
|
|
50
|
+
"/npm/@letscooee/web-sdk@latest/dist/chunk-*.js"
|
|
51
|
+
]
|
|
52
|
+
}'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Validate PR
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
validate:
|
|
8
|
+
name: Lint, Build & Test
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
|
|
13
|
+
- name: Setup Node
|
|
14
|
+
uses: actions/setup-node@v4
|
|
15
|
+
with:
|
|
16
|
+
node-version: '22.x'
|
|
17
|
+
cache: 'npm'
|
|
18
|
+
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: |
|
|
21
|
+
npm install
|
|
22
|
+
npm install lightningcss-linux-x64-gnu @tailwindcss/oxide-linux-x64-gnu
|
|
23
|
+
|
|
24
|
+
- name: Validate
|
|
25
|
+
run: scripts/validate-integrity.sh
|
package/.release-it.json
CHANGED
package/dist/{debugger.component-DT3YUXJc-BZn9qa0Y.js → debugger.component-DD3uGY2a-WIc_-4-e.js}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { B, N as Nn } from './
|
|
2
|
-
import { M } from './
|
|
3
|
-
import { $ as $b, o as of, a, b as bE, B as Bo, w as wD, I as ID, V as Vo, M as Mf, u as uv, c as ud, _ as _D, i as iD, g as ge, d as Iv, X as Xa, W as Wf, T as Tv, e as _f, f as _v, Y as Yg } from './widgets-BX6p8PEu-DdKxHpYw.js';
|
|
1
|
+
import { B, M, N as Nn } from './main.min.js';
|
|
2
|
+
import { $ as $b, o as of, a, b as bE, i as iD, B as Bo, w as wD, I as ID, V as Vo, M as Mf, u as uv, c as ud, _ as _D, g as ge, d as Iv, X as Xa, W as Wf, T as Tv, e as _f, f as _v, Y as Yg } from './widgets-By0Ht5M7-Sfm_ntym.js';
|
|
4
3
|
|
|
5
4
|
function P(i,t){if(i&1&&(Bo(0,`li`)(1,`span`,1),uv(2),Iv(3,`date`),Vo(),uv(4,`\xA0 `),Xa(5,`span`,2),Iv(6,`safeHtml`),Vo()),i&2){let e=t.$implicit;ud(2),Wf(Tv(3,2,e.time,`hh:mm:ss a`)),ud(3),_f(`innerHTML`,_v(6,5,e.message),Yg);}}var _=class i{logs=$b.required();constructor(){}async shareLogs(){let t=this.logs().map(o=>`[${new Date(o.time).toLocaleString(`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hour12:false,timeZoneName:`short`})}] ${o.message}`).join(`
|
|
6
5
|
`);t=t.replaceAll(`\xA0`,` `);let e=B();if(e&&(t+=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, s, u, w } from './
|
|
1
|
+
import { s as r, v as s, L as u, O as w } from './main.min.js';
|
|
2
2
|
|
|
3
3
|
var T=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var x=globalThis;var ut=`9.42.0`;function Ve(){return fn(x),x}function fn(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ut,t[ut]=t[ut]||{}}function Qt(e,t,n=x){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[ut]=r[ut]||{};return o[e]||(o[e]=t())}var Mn=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],tg=`Sentry Logger `,ar={};function Be(e){if(!(`console`in x))return e();let t=x.console,n={},r=Object.keys(ar);r.forEach(o=>{let i=ar[o];n[o]=t[o],t[o]=i;});try{return e()}finally{r.forEach(o=>{t[o]=n[o];});}}function ng(){ma().enabled=true;}function rg(){ma().enabled=false;}function Tl(){return ma().enabled}function og(...e){pa(`log`,...e);}function ig(...e){pa(`warn`,...e);}function sg(...e){pa(`error`,...e);}function pa(e,...t){T&&Tl()&&Be(()=>{x.console[e](`${tg}[${e}]:`,...t);});}function ma(){return T?Qt(`loggerSettings`,()=>({enabled:false})):{enabled:false}}var g={enable:ng,disable:rg,isEnabled:Tl,log:og,warn:ig,error:sg};var Il=/\(error: (.*)\)/,vl=/captureMessage|captureException/;function ti(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return (n,r=0,o=0)=>{let i=[],s=n.split(`
|
|
4
4
|
`);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let u=Il.test(c)?c.replace(Il,`$1`):c;if(!u.match(/\S*Error: /)){for(let d of t){let l=d(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return wl(i.slice(o))}}function wl(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(ei(t).function||``)&&t.pop(),t.reverse(),vl.test(ei(t).function||``)&&(t.pop(),vl.test(ei(t).function||``)&&t.pop()),t.slice(0,50).map(n=>s(r({},n),{filename:n.filename||ei(t).filename,function:n.function||`?`}))}function ei(e){return e[e.length-1]||{}}var ha=`<anonymous>`;function tt(e){try{return !e||typeof e!=`function`?ha:e.name||ha}catch{return ha}}function cr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames);}),n}catch{return}}}var ni={},Rl={};function He(e,t){ni[e]=ni[e]||[],ni[e].push(t);}function $e(e,t){if(!Rl[e]){Rl[e]=true;try{t();}catch(n){T&&g.error(`Error while instrumenting ${e}`,n);}}}function xe(e,t){let n=e&&ni[e];if(n)for(let r of n)try{r(t);}catch(o){T&&g.error(`Error while triggering instrumentation handler.
|