fansunited-widgets-cdn 0.0.86-RC8 → 0.0.86
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/chunks/{Alert-B6o66mYo.js → Alert-DyM0oQgv.js} +32 -32
- package/chunks/{CardContent-NCZhfGcZ.js → CardContent-JGV7AYRJ.js} +19 -18
- package/chunks/{ChevronRight-1pLZ7T0v.js → ChevronRight-BjivYvSo.js} +11 -11
- package/chunks/{ClassicQuizWrapper-n2epPO4k.js → ClassicQuizWrapper-ChR6VdmQ.js} +8 -9
- package/chunks/{CollectLeadForm-C_3plJtn-Dr8J3eDw.js → CollectLeadForm-iZpBeMTk-Be-1nl3u.js} +2 -2
- package/chunks/{CollectLeadWrapper-CCtTZAxL.js → CollectLeadWrapper-DWGnbQNs.js} +22 -23
- package/chunks/{EitherOrById-ClGwMK0b.js → EitherOrById-HLRwnSut.js} +65 -65
- package/chunks/{EitherOrPreviewWrapper-BYiKyYwi.js → EitherOrPreviewWrapper-Bhb40ehK.js} +10 -10
- package/chunks/{Error-BurPfBJw-DWYn31sK.js → Error-D0HPar1M-CvBCxjku.js} +3 -3
- package/chunks/{EventGameWrapper-BphusLTk.js → EventGameWrapper-FLrbgLNx.js} +95 -96
- package/chunks/{Grid-yjqNNhEx.js → Grid-BgTvl7U0.js} +37 -37
- package/chunks/{IconButton-D7onwgY0.js → IconButton-UDap3hOW.js} +21 -21
- package/chunks/{List-8Vy9IZiv.js → List-CaGDrvb1.js} +23 -23
- package/chunks/{MatchPredictionContainer-BGytBwLo.js → MatchPredictionContainer-CCryS3WW.js} +7 -7
- package/chunks/{MatchQuizWrapper-BGjldBpF.js → MatchQuizWrapper-CNPkFMYb.js} +149 -150
- package/chunks/{OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js → OverlayLeadAfterCollection-CwqTKIoQ-B249CJNS.js} +3 -3
- package/chunks/{OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js → OverlayScoreStateSkeleton-CR-b8BTk-CcF6Sgb_.js} +8 -8
- package/chunks/{PersonalityQuizWrapper-BgLFw5tM.js → PersonalityQuizWrapper-D0_OHdgC.js} +315 -314
- package/chunks/{PlayerOfTheMatch-CImBLG3T.js → PlayerOfTheMatch-KHUAoy28.js} +96 -96
- package/chunks/{PollWrapper-QpIKCCVF.js → PollWrapper-Dsi16RT3.js} +8 -9
- package/chunks/{Portal-DegkUXpU-ByGP9zS1.js → Portal-Cvhw2F3y-CfNE9zHV.js} +313 -314
- package/chunks/{PreviewQuizById-Ba6yhxKV.js → PreviewQuizById-DdmuvcAL.js} +1019 -996
- package/chunks/{Sheet-U5EnSrgg.js → Sheet-x5Z9YdFs.js} +35 -35
- package/chunks/{Stack-DbDi7kPO.js → Stack-DZB2vzbp.js} +36 -36
- package/chunks/{Tabs-leN3Fb8D--YMyy3EM.js → Tabs-DmfafFAr-bCryBf-H.js} +2 -2
- package/chunks/{TeamNextMatchPrediction-9VSQOCcC.js → TeamNextMatchPrediction-C-fToJvQ.js} +2 -2
- package/chunks/{Tutorial-CRJLOovs.js → Tutorial-BI9zKJw5.js} +72 -73
- package/chunks/{createLucideIcon-CMWOQsDL.js → createLucideIcon-89uTOJaq.js} +8 -8
- package/chunks/{createSvgIcon-D9D4a1R9.js → createSvgIcon-DsrdSWLs.js} +167 -167
- package/chunks/{default-quiz-bg-ADjjIfPj.js → default-quiz-bg-CbX4gLOf.js} +15 -14
- package/chunks/{index-UwW9niUj.js → index-BJtPwLU2.js} +1 -1
- package/chunks/{index-CPTAlr_t.js → index-BXdeff8G.js} +1 -1
- package/chunks/{index-Da0AXb_O.js → index-BwmaB0Jc.js} +1 -1
- package/chunks/{index-CviTG4Nv.js → index-CSM_gD0c.js} +1 -1
- package/chunks/{index-BycLbIYY.js → index-CfNoJqrf.js} +1 -1
- package/chunks/{index-C6KAc5B_.js → index-CowyrOBF.js} +1 -1
- package/chunks/{index-DUQ2LFod-Cw45tHim.js → index-CsLtqiB_-DH3NMQxW.js} +32 -29
- package/chunks/{index-DwR4J2nN.js → index-CtAJur0I.js} +1 -1
- package/chunks/{index-CILd3yUc.js → index-DBucbNfJ.js} +1 -1
- package/chunks/{index-CHV6tlpH.js → index-DRDXyva1.js} +9 -9
- package/chunks/{index-CvGJXa6l.js → index-DRsTGSlf.js} +1 -1
- package/chunks/{index-CK2RXrJm.js → index-DXh1obfA.js} +1 -1
- package/chunks/{index-B74jHeYm.js → index-Dbuicm10.js} +2 -2
- package/chunks/{index-BfVvJg5R.js → index-DoDwv4Hi.js} +1 -1
- package/chunks/{index-CiB_Gqim.js → index-SdhwlCm-.js} +1 -1
- package/chunks/{index-0ADq_9jd.js → index-TCdxAH9x.js} +1 -1
- package/chunks/{init-C-gCorsh.js → init-CxQCMVyG.js} +1 -1
- package/chunks/main-Cx-uBTln.js +51049 -0
- package/chunks/resolveProps-DfBmYyXU.js +1632 -0
- package/chunks/{users-CXdzg3DM.js → users-Bltqtuv-.js} +1 -1
- package/fu-widgets-loader.es.js +16 -17
- package/fu-widgets-loader.js +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +290 -290
- package/manifest.json +52 -54
- package/package.json +1 -1
- package/chunks/index-CJqcqbHq.js +0 -5
- package/chunks/index.es-wHqA4PHm.js +0 -11480
- package/chunks/main-Bh6iw92_.js +0 -39827
- package/chunks/resolveProps-Bgg0H6c2.js +0 -1016
package/fu-widgets-loader.es.js
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var h = (n, t, e) => t in n ? E(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var o = (n, t, e) => h(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
class d {
|
|
5
5
|
/**
|
|
6
6
|
* Load the FuWidget library
|
|
7
7
|
*/
|
|
8
8
|
static load(t = {}) {
|
|
9
|
-
const { onReady: e, onError: i, _cdnBase:
|
|
10
|
-
this.fetchManifest(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: a ? "module" : void 0,
|
|
9
|
+
const { onReady: e, onError: i, _cdnBase: l } = t, a = l || this.CDN_BASE;
|
|
10
|
+
this.fetchManifest(a).then((s) => {
|
|
11
|
+
const r = this.detectESMSupport(), c = this.PREFER_ESM && r, f = c ? "esm" : "iife", u = s.files[f];
|
|
12
|
+
this.loadScript({
|
|
13
|
+
src: `${a}/${u}`,
|
|
14
|
+
type: c ? "module" : void 0,
|
|
16
15
|
onLoad: () => {
|
|
17
|
-
|
|
16
|
+
e && window.FuWidget && e(window.FuWidget, s);
|
|
18
17
|
},
|
|
19
|
-
onError: (
|
|
20
|
-
console.
|
|
18
|
+
onError: (w) => {
|
|
19
|
+
console.warn("❌ Failed to load FuWidget from manifest"), i && i(w);
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
}).catch((s) => {
|
|
24
23
|
console.warn("⚠️ Manifest fetch failed, using fallback version", s), this.loadScript({
|
|
25
24
|
src: `https://cdn.jsdelivr.net/npm/fansunited-widgets-cdn@${this.FALLBACK_VERSION}/fu-widgets.iife.js`,
|
|
26
25
|
onLoad: () => {
|
|
27
|
-
console.
|
|
26
|
+
console.warn(`FuWidget loaded (fallback v${this.FALLBACK_VERSION})`), e && window.FuWidget && e(window.FuWidget, {
|
|
28
27
|
name: "fansunited-widgets-cdn",
|
|
29
28
|
version: this.FALLBACK_VERSION,
|
|
30
29
|
buildDate: "unknown",
|
|
31
30
|
files: { iife: "fu-widgets.iife.js", esm: "fu-widgets.es.js" }
|
|
32
31
|
});
|
|
33
32
|
},
|
|
34
|
-
onError: (
|
|
35
|
-
console.error("❌ Failed to load FuWidget (fallback)"), i && i(
|
|
33
|
+
onError: (r) => {
|
|
34
|
+
console.error("❌ Failed to load FuWidget (fallback)"), i && i(r);
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
});
|
|
@@ -63,7 +62,7 @@ class d {
|
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
// Internal configuration - not exposed to users
|
|
66
|
-
|
|
65
|
+
o(d, "CDN_BASE", "https://cdn.jsdelivr.net/npm/fansunited-widgets-cdn@latest"), o(d, "FALLBACK_VERSION", "0.0.85"), o(d, "PREFER_ESM", !0);
|
|
67
66
|
typeof window < "u" && (window.FuWidgetLoader = d);
|
|
68
67
|
export {
|
|
69
68
|
d as default
|
package/fu-widgets-loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var E=Object.defineProperty;var
|
|
1
|
+
var E=Object.defineProperty;var h=(i,n,t)=>n in i?E(i,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[n]=t;var d=(i,n,t)=>h(i,typeof n!="symbol"?n+"":n,t);var FuWidgetLoader=(function(){"use strict";class i{static load(t={}){const{onReady:e,onError:s,_cdnBase:l}=t,c=l||this.CDN_BASE;this.fetchManifest(c).then(o=>{const r=this.detectESMSupport(),a=this.PREFER_ESM&&r,f=a?"esm":"iife",u=o.files[f];this.loadScript({src:`${c}/${u}`,type:a?"module":void 0,onLoad:()=>{e&&window.FuWidget&&e(window.FuWidget,o)},onError:w=>{console.warn("❌ Failed to load FuWidget from manifest"),s&&s(w)}})}).catch(o=>{console.warn("⚠️ Manifest fetch failed, using fallback version",o),this.loadScript({src:`https://cdn.jsdelivr.net/npm/fansunited-widgets-cdn@${this.FALLBACK_VERSION}/fu-widgets.iife.js`,onLoad:()=>{console.warn(`FuWidget loaded (fallback v${this.FALLBACK_VERSION})`),e&&window.FuWidget&&e(window.FuWidget,{name:"fansunited-widgets-cdn",version:this.FALLBACK_VERSION,buildDate:"unknown",files:{iife:"fu-widgets.iife.js",esm:"fu-widgets.es.js"}})},onError:r=>{console.error("❌ Failed to load FuWidget (fallback)"),s&&s(r)}})})}static fetchManifest(t){const e=`${t}/manifest.json?t=${Date.now()}`;return fetch(e).then(s=>{if(!s.ok)throw new Error(`Failed to fetch manifest: ${s.statusText}`);return s.json()})}static detectESMSupport(){return"noModule"in HTMLScriptElement.prototype}static loadScript(t){const e=document.createElement("script");e.src=t.src,t.type&&(e.type=t.type),e.onload=t.onLoad,e.onerror=()=>t.onError(new Error(`Failed to load script: ${t.src}`)),document.head.appendChild(e)}}return d(i,"CDN_BASE","https://cdn.jsdelivr.net/npm/fansunited-widgets-cdn@latest"),d(i,"FALLBACK_VERSION","0.0.85"),d(i,"PREFER_ESM",!0),typeof window<"u"&&(window.FuWidgetLoader=i),i})();
|
package/fu-widgets.es.js
CHANGED