@buoy-gg/shared-ui 7.0.62 → 7.0.64
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/README.md +3 -0
- package/lib/commonjs/JsModal.web.js +1 -1
- package/lib/commonjs/clipboard/copyToClipboard.js +1 -1
- package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +1 -1
- package/lib/commonjs/hooks/useDeviceInfo.js +1 -1
- package/lib/commonjs/license/AccountSetup.web.js +2 -2
- package/lib/commonjs/settings/components/BubbleSettingsSection.js +1 -1
- package/lib/commonjs/storage/buoyOwnership.js +1 -0
- package/lib/commonjs/storage/buoyOwnership.test.js +1 -0
- package/lib/commonjs/storage/devToolsStorageKeys.js +1 -1
- package/lib/commonjs/storage/index.js +1 -1
- package/lib/commonjs/ui/components/ChangeRow.js +1 -1
- package/lib/commonjs/ui/components/CompactRow.js +1 -1
- package/lib/commonjs/ui/components/DataInspector.js +1 -1
- package/lib/commonjs/ui/components/DraggableHeader.js +1 -1
- package/lib/commonjs/ui/floating/FloatingTool.web.js +1 -1
- package/lib/commonjs/ui/floating/index.web.js +1 -1
- package/lib/commonjs/ui/floating/portalHost.test.js +1 -0
- package/lib/commonjs/ui/floating/portalHost.web.js +1 -0
- package/lib/commonjs/ui/fonts.js +1 -1
- package/lib/commonjs/ui/index.js +1 -1
- package/lib/commonjs/ui/systemFont.js +1 -0
- package/lib/commonjs/utils/loadOptionalModule.js +1 -1
- package/lib/commonjs/utils/minimalSuperJSON.js +1 -1
- package/lib/commonjs/utils/nativeWeb.js +1 -1
- package/lib/commonjs/utils/persistentStorage.js +1 -1
- package/lib/module/JsModal.web.js +1 -1
- package/lib/module/clipboard/copyToClipboard.js +1 -1
- package/lib/module/dataViewer/VirtualizedDataExplorer.js +1 -1
- package/lib/module/hooks/useDeviceInfo.js +1 -1
- package/lib/module/license/AccountSetup.web.js +2 -2
- package/lib/module/settings/components/BubbleSettingsSection.js +1 -1
- package/lib/module/storage/buoyOwnership.js +1 -0
- package/lib/module/storage/buoyOwnership.test.js +1 -0
- package/lib/module/storage/devToolsStorageKeys.js +1 -1
- package/lib/module/storage/index.js +1 -1
- package/lib/module/ui/components/ChangeRow.js +1 -1
- package/lib/module/ui/components/CompactRow.js +1 -1
- package/lib/module/ui/components/DataInspector.js +1 -1
- package/lib/module/ui/components/DraggableHeader.js +1 -1
- package/lib/module/ui/floating/FloatingTool.web.js +1 -1
- package/lib/module/ui/floating/index.web.js +1 -1
- package/lib/module/ui/floating/portalHost.test.js +1 -0
- package/lib/module/ui/floating/portalHost.web.js +1 -0
- package/lib/module/ui/fonts.js +1 -1
- package/lib/module/ui/index.js +1 -1
- package/lib/module/ui/systemFont.js +1 -0
- package/lib/module/utils/loadOptionalModule.js +1 -1
- package/lib/module/utils/minimalSuperJSON.js +1 -1
- package/lib/module/utils/nativeWeb.js +1 -1
- package/lib/module/utils/persistentStorage.js +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/license/AccountSetup.web.d.ts +1 -1
- package/lib/typescript/commonjs/storage/buoyOwnership.d.ts +15 -0
- package/lib/typescript/commonjs/storage/buoyOwnership.test.d.ts +2 -0
- package/lib/typescript/commonjs/storage/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/floating/FloatingTool.web.d.ts +2 -2
- package/lib/typescript/commonjs/ui/floating/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/ui/floating/portalHost.test.d.ts +2 -0
- package/lib/typescript/commonjs/ui/floating/portalHost.web.d.ts +8 -0
- package/lib/typescript/commonjs/ui/fonts.d.ts +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +1 -1
- package/lib/typescript/commonjs/ui/systemFont.d.ts +2 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/license/AccountSetup.web.d.ts +1 -1
- package/lib/typescript/module/storage/buoyOwnership.d.ts +15 -0
- package/lib/typescript/module/storage/buoyOwnership.test.d.ts +2 -0
- package/lib/typescript/module/storage/index.d.ts +1 -0
- package/lib/typescript/module/ui/floating/FloatingTool.web.d.ts +2 -2
- package/lib/typescript/module/ui/floating/index.web.d.ts +1 -0
- package/lib/typescript/module/ui/floating/portalHost.test.d.ts +2 -0
- package/lib/typescript/module/ui/floating/portalHost.web.d.ts +8 -0
- package/lib/typescript/module/ui/fonts.d.ts +1 -0
- package/lib/typescript/module/ui/index.d.ts +1 -1
- package/lib/typescript/module/ui/systemFont.d.ts +2 -0
- package/lib/web/asyncStorage.mjs +1 -1
- package/lib/web/chunks/chunk-3HELV44Y.mjs +1 -0
- package/lib/web/chunks/chunk-4HIK66DZ.mjs +1 -0
- package/lib/web/chunks/chunk-4YLP5MMN.mjs +1 -0
- package/lib/web/chunks/chunk-5G6RSRP4.mjs +1 -0
- package/lib/web/chunks/chunk-7JJHWSTD.mjs +1 -0
- package/lib/web/chunks/chunk-AHVO74UQ.mjs +1 -0
- package/lib/web/chunks/chunk-CJTGUGMQ.mjs +1 -0
- package/lib/web/chunks/chunk-FA6WAQUA.mjs +6 -0
- package/lib/web/chunks/chunk-GMM6TGFO.mjs +1 -0
- package/lib/web/chunks/chunk-HIAN3HBD.mjs +1 -0
- package/lib/web/chunks/chunk-HPZXETRA.mjs +1 -0
- package/lib/web/chunks/chunk-NOSWH3E2.mjs +1 -0
- package/lib/web/chunks/chunk-OGAHL36T.mjs +15 -0
- package/lib/web/chunks/chunk-P32XO2YS.mjs +1 -0
- package/lib/web/chunks/chunk-SBYYOE2T.mjs +1 -0
- package/lib/web/chunks/chunk-T6T3FEMU.mjs +1 -0
- package/lib/web/chunks/chunk-VAR5UK6J.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-NOUYFUMM.mjs +1 -0
- package/lib/web/colors.mjs +1 -1
- package/lib/web/dataViewer.mjs +2 -2
- package/lib/web/floating.mjs +1 -1
- package/lib/web/history.mjs +1 -1
- package/lib/web/hooks.mjs +1 -1
- package/lib/web/index.mjs +3 -3
- package/lib/web/native.mjs +1 -1
- package/lib/web/ui.mjs +1 -1
- package/lib/web/utils.mjs +1 -1
- package/package.json +5 -5
- package/lib/web/chunks/chunk-3UTMGIUG.mjs +0 -1
- package/lib/web/chunks/chunk-4IM4VIMP.mjs +0 -1
- package/lib/web/chunks/chunk-53J2FMUD.mjs +0 -1
- package/lib/web/chunks/chunk-ASHW3TI7.mjs +0 -1
- package/lib/web/chunks/chunk-BZTGYXMT.mjs +0 -1
- package/lib/web/chunks/chunk-CE5U3CSQ.mjs +0 -1
- package/lib/web/chunks/chunk-E2MI3FII.mjs +0 -15
- package/lib/web/chunks/chunk-FP44YK4E.mjs +0 -1
- package/lib/web/chunks/chunk-GF364FIK.mjs +0 -1
- package/lib/web/chunks/chunk-L63X3LPR.mjs +0 -1
- package/lib/web/chunks/chunk-L7OYS724.mjs +0 -1
- package/lib/web/chunks/chunk-LZ7FZZ7R.mjs +0 -1
- package/lib/web/chunks/chunk-NVD5LLXD.mjs +0 -1
- package/lib/web/chunks/chunk-QNLAFQET.mjs +0 -1
- package/lib/web/chunks/chunk-SYU4BFQR.mjs +0 -6
- package/lib/web/chunks/chunk-UYWHGSA7.mjs +0 -1
- package/lib/web/chunks/persistentStorage.web-3QA77BIL.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{Nb as le,Ob as se,Pb as _,Q as M,R as ce,Tb as de,Vb as P,Yb as $,sd as y}from"./chunk-L7OYS724.mjs";import{d as n}from"./chunk-CE5U3CSQ.mjs";import{J as B,a as c,b as f,d as G,r as O,y as U}from"./chunk-3UTMGIUG.mjs";var ue="[Circular]",H="[...]";function fe(e,t,o={}){let{depthLimit:s=Number.MAX_SAFE_INTEGER,edgesLimit:p=Number.MAX_SAFE_INTEGER}=o,d=[];function a(i,l,g,r,w,v){if(v+=1,typeof i=="object"&&i!==null){for(let A=0;A<r.length;A++)if(r[A]===i){m(ue,i,l,w);return}if(v>s){m(H,i,l,w);return}if(g+1>p){m(H,i,l,w);return}if(r.push(i),Array.isArray(i)){let A=i;for(let I=0;I<i.length;I++)a(i[I],I,I,r,A,v)}else if(i instanceof Map||i instanceof Set||i instanceof RegExp||i instanceof Date||i instanceof Error){r.pop();return}else{let A=i,I=Object.keys(A);for(let D=0;D<I.length;D++){let W=I[D];a(A[W],W,D,r,A,v)}}r.pop()}}function m(i,l,g,r){if(!r)return;let w=Object.getOwnPropertyDescriptor(r,g);if(w?.get!==void 0)if(w.configurable)Object.defineProperty(r,g,{value:i}),d.push([r,g,l,w]);else return;else r[g]=i,d.push([r,g,l])}let C=(i,l)=>{if(typeof l=="bigint")return`${l.toString()}n`;if(typeof l=="symbol")return l.toString();if(typeof l>"u")return"undefined";if(typeof l=="function")return`[Function: ${l.name||"anonymous"}]`;if(typeof l=="number"){if(l===1/0)return"Infinity";if(l===-1/0)return"-Infinity";if(Number.isNaN(l))return"NaN"}if(l instanceof Error){let g={name:l.name,message:l.message,stack:l.stack};return Object.getOwnPropertyNames(l).forEach(r=>{if(!["name","message","stack"].includes(r))try{let w=l[r];w!==void 0&&(g[r]=w)}catch{}}),g}if(l instanceof Date)return l.toISOString();if(l instanceof RegExp)return l.toString();if(l instanceof Map)try{return{__type:"Map",entries:Array.from(l.entries()).map(([g,r])=>[String(g),r])}}catch{return{__type:"Map",entries:"[Map iteration failed]"}}if(l instanceof Set)try{return{__type:"Set",values:Array.from(l)}}catch{return{__type:"Set",values:"[Set iteration failed]"}}return l};try{return a(e,"",0,[],null,0),JSON.stringify(e,C,t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;d.length!==0;){let i=d.pop();if(i&&i.length===4){let[l,g,,r]=i;l&&typeof l=="object"&&r&&Object.defineProperty(l,g,r)}else if(i){let[l,g,r]=i;l&&typeof l=="object"&&(typeof g=="string"||typeof g=="number")&&(l[g]=r)}}}}var pe=e=>typeof e>"u",ge=e=>typeof e!="object"||e===null||e===Object.prototype?false:Object.getPrototypeOf(e)===null?true:Object.getPrototypeOf(e)===Object.prototype,L=e=>Array.isArray(e),ye=e=>typeof e=="boolean"||e===null||typeof e>"u"||typeof e=="number"||typeof e=="string"||typeof e=="symbol",he=e=>e instanceof Date&&!isNaN(e.valueOf()),J=e=>e instanceof Error,me=e=>e instanceof RegExp,Y=e=>e instanceof Set,K=e=>e instanceof Map,be=e=>typeof e=="bigint",X=e=>typeof e=="number"&&isNaN(e),Se=e=>e===1/0||e===-1/0,we=e=>e===0&&1/e===-1/0,xe=e=>e instanceof URL,Ce=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),ve={Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray},q=[{isApplicable:pe,annotation:"undefined",transform:()=>null,untransform:()=>{}},{isApplicable:be,annotation:"bigint",transform:e=>e.toString(),untransform:e=>typeof BigInt<"u"?BigInt(e):(console.error("BigInt is not supported in this environment"),e)},{isApplicable:he,annotation:"Date",transform:e=>e.toISOString(),untransform:e=>new Date(e)},{isApplicable:J,annotation:"Error",transform:e=>({name:e.name,message:e.message,stack:e.stack,cause:"cause"in e?e.cause:void 0}),untransform:e=>{let t=new Error(e.message);return t.name=e.name,t.stack=e.stack,e.cause!==void 0&&(t.cause=e.cause),t}},{isApplicable:me,annotation:"regexp",transform:e=>""+e,untransform:e=>{let t=e.slice(1,e.lastIndexOf("/")),o=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,o)}},{isApplicable:Y,annotation:"set",transform:e=>[...e.values()],untransform:e=>new Set(e)},{isApplicable:K,annotation:"map",transform:e=>[...e.entries()],untransform:e=>new Map(e)},{isApplicable:e=>X(e)||Se(e),annotation:"number",transform:e=>X(e)?"NaN":e>0?"Infinity":"-Infinity",untransform:e=>Number(e)},{isApplicable:we,annotation:"number",transform:()=>"-0",untransform:()=>-0},{isApplicable:xe,annotation:"URL",transform:e=>e.toString(),untransform:e=>new URL(e)},{isApplicable:Ce,annotation:e=>["typed-array",e.constructor.name],transform:e=>[...e],untransform:(e,t)=>{let o=Array.isArray(t)?t[1]:"Uint8Array",s=ve[o];if(!s)throw new Error(`Unknown typed array: ${o}`);return new s(e)}}];function z(e){for(let t of q)if(t.isApplicable(e)){let o=typeof t.annotation=="function"?t.annotation(e):t.annotation;return{value:t.transform(e),type:o}}}function Q(e,t){for(let o of q){let s=typeof o.annotation=="function"?Array.isArray(t)?t[0]:t:o.annotation;if(Array.isArray(t)&&Array.isArray(s)?t[0]===s[0]:s===t)return o.untransform(e,t)}throw new Error(`Unknown transformation: ${t}`)}var Z=e=>ge(e)||L(e)||K(e)||Y(e)||J(e);function j(e){return e.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function ee(e,t=[],o=[]){let s=ye(e);if(!s&&!Z(e)){let i=z(e);return i?{transformedValue:i.value,annotations:{[t.map(String).map(j).join(".")]:i.type}}:{transformedValue:e}}if(!s&&o.indexOf(e)!==-1)return{transformedValue:null};if(!Z(e)){let i=z(e);return i?{transformedValue:i.value,annotations:t.length>0?{[t.map(String).map(j).join(".")]:i.type}:{"":i.type}}:{transformedValue:e}}let p=z(e),d=p?.value??e,a=L(d)?[]:{},m={};if(p){let i=t.length>0?t.map(String).map(j).join("."):"";m[i]=p.type}let C=L(d)?d.map((i,l)=>[l,i]):Object.entries(d);for(let[i,l]of C){let g=String(i);if(g==="__proto__"||g==="constructor"||g==="prototype")throw new Error(`Detected property ${g}. This is a prototype pollution risk, please remove it from your object.`);let r=ee(l,[...t,i],[...o,e]);a[i]=r.transformedValue,r.annotations&&Object.assign(m,r.annotations)}return{transformedValue:a,annotations:Object.keys(m).length>0?m:void 0}}function Ae(e){if(e==="")return[];let t=[],o="";for(let s=0;s<e.length;s++){let p=e.charAt(s);if(p==="\\"){let d=e.charAt(s+1);if(d==="\\"){o+="\\",s++;continue}else if(d==="."){o+=".",s++;continue}}if(p==="."){t.push(o),o="";continue}o+=p}return o&&t.push(o),t}function Ie(e,t,o){if(t.length===0)return;let s=e;for(let p=0;p<t.length-1;p++)s=s[t[p]];s[t[t.length-1]]=o}function Te(e,t){let o=e;for(let s of t)o=o[s];return o}function te(e){let t=ee(e),o={json:t.transformedValue};return t.annotations&&(o.meta={values:t.annotations}),o}function re(e){let{json:t,meta:o}=e;if(!o?.values)return t;let s=L(t)?[...t]:{...t},p=Object.entries(o.values).map(([d,a])=>({pathString:d,type:a,path:Ae(d)})).sort((d,a)=>a.path.length-d.path.length);for(let{type:d,path:a}of p)if(a.length===0)s=Q(s,d);else{let m=Te(s,a),C=Q(m,d);Ie(s,a,C)}return s}var Re=(e,t=false)=>{let{json:o}=te(e);return JSON.stringify(o,null,t?2:void 0)},Oe=e=>{try{let t=JSON.parse(e);return re({json:t,meta:void 0})}catch{return JSON.parse(e)}};import{jsx as N,jsxs as V}from"react/jsx-runtime";function ke({icon:e,iconColor:t,title:o,count:s,subtitle:p,expanded:d,onToggle:a,children:m,style:C,titleStyle:i}){return V(c,{style:[F.container,C],children:[V(G,{onPress:a,activeOpacity:.7,style:F.headerTouchable,children:[V(c,{style:F.header,children:[V(c,{style:F.headerLeft,children:[N(e,{size:14,color:t}),N(f,{style:[F.title,i],children:o}),N(c,{style:[F.badge,{backgroundColor:t+"20"}],children:N(f,{style:[F.badgeText,{color:t}],children:s})})]}),d?N($,{size:14,color:n.muted}):N(P,{size:14,color:n.muted})]}),N(f,{style:F.subtitle,children:p})]}),d&&N(O.View,{style:{opacity:1},children:m})]})}var F=B.create({container:{marginBottom:20},headerTouchable:{marginBottom:12},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:4,paddingHorizontal:4},headerLeft:{flexDirection:"row",alignItems:"center",gap:8,flex:1},title:{fontSize:11,color:n.primary,fontFamily:y,fontWeight:"700",letterSpacing:2,opacity:.9},subtitle:{fontSize:9,color:n.secondary,fontFamily:y,paddingHorizontal:4,marginTop:2,opacity:.7},badge:{paddingHorizontal:8,paddingVertical:2,borderRadius:10},badgeText:{fontSize:10,fontFamily:y,fontWeight:"700"}});var oe={position:"absolute",top:0,left:0,right:0,bottom:0};import{jsx as k,jsxs as E}from"react/jsx-runtime";function Ne({alertConfig:e,badgeText:t,animatedStyle:o,style:s,indicatorCount:p=3}){let d=e.icon;return E(O.View,{style:[T.container,{borderColor:e.color+"40"},s,o],children:[k(c,{style:[T.glow,{backgroundColor:e.color+"10"}]}),E(c,{style:T.content,children:[k(c,{style:[T.iconWrapper,{backgroundColor:e.color+"15"}],children:k(d,{size:20,color:e.color})}),E(c,{style:T.textContainer,children:[k(f,{style:[T.label,{color:e.color}],children:e.label}),k(f,{style:T.subtitle,children:e.subtitle})]}),k(c,{style:[T.badge,{backgroundColor:e.color+"20"}],children:k(f,{style:[T.badgeText,{color:e.color}],children:t})})]}),k(c,{style:T.indicators,children:[...Array(p)].map((a,m)=>k(c,{style:[T.indicatorDot,{backgroundColor:e.color,opacity:e.pulse?m===0?1:.5-m*.2:.3-m*.1}]},m))})]})}var T=B.create({container:{backgroundColor:n.panel,borderRadius:12,borderWidth:1,padding:16,marginBottom:16,position:"relative",overflow:"hidden"},glow:{...oe,opacity:.5},content:{flexDirection:"row",alignItems:"center",gap:12},iconWrapper:{width:36,height:36,borderRadius:8,justifyContent:"center",alignItems:"center"},textContainer:{flex:1,gap:2},label:{fontSize:13,fontWeight:"700",fontFamily:y,letterSpacing:1.5,textShadowOffset:{width:0,height:0},textShadowRadius:8},subtitle:{fontSize:10,color:n.secondary,fontFamily:y},badge:{paddingHorizontal:8,paddingVertical:4,borderRadius:4},badgeText:{fontSize:9,fontWeight:"700",fontFamily:y,letterSpacing:1},indicators:{position:"absolute",top:8,right:8,flexDirection:"row",gap:3},indicatorDot:{width:4,height:4,borderRadius:2}});import{Fragment as Fe}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";function De({statsConfig:e,totalCount:t,header:o,bottomStats:s,style:p,hideInactive:d=true}){return x(c,{style:[u.container,p],children:[o&&x(c,{style:u.header,children:[x(c,{style:u.headerLeft,children:[b(f,{style:u.headerTitle,children:o.title}),b(f,{style:u.headerSubtitle,children:o.subtitle})]}),o.healthPercentage!==void 0&&b(c,{style:u.headerRight,children:x(c,{style:u.statusIndicator,children:[b(c,{style:[u.statusDot,{backgroundColor:o.healthColor||n.success}]}),b(f,{style:[u.statusText,{color:o.healthColor||n.success}],children:o.healthStatus||"OPTIMAL"})]})})]}),o?.healthPercentage!==void 0&&x(c,{style:u.healthSection,children:[b(f,{style:u.healthLabel,children:"SYSTEM HEALTH"}),b(c,{style:u.healthBarWrapper,children:b(c,{style:u.healthBarBg,children:b(O.View,{style:[u.healthBarFill,{width:`${o.healthPercentage}%`,backgroundColor:o.healthColor||n.success}]})})}),x(f,{style:[u.healthPercentage,{color:o.healthColor||n.success}],children:[o.healthPercentage,"%"]})]}),b(c,{style:u.statsGrid,children:e.map(a=>{let m=a.value>0;if(d&&!m)return null;let C=a.icon,i=t?a.value/t*100:0;return x(O.View,{style:[u.statCard,{borderColor:a.color+"30"}],children:[x(c,{style:u.cardContent,children:[b(c,{style:[u.iconBadge,{backgroundColor:a.color+"1A",borderColor:a.color+"33"}],children:b(C,{size:12,color:a.color})}),x(c,{style:u.cardInfo,children:[b(f,{style:u.cardLabel,children:a.label}),b(f,{style:u.cardSubtitle,children:a.subtitle})]}),x(c,{style:u.valueBlock,children:[b(f,{style:[u.statNumber,{color:a.color}],children:a.value.toString().padStart(2,"0")}),t?x(f,{style:u.percentText,children:[Math.round(i),"%"]}):null]})]}),a.showBar!==false&&t&&b(c,{style:[u.statBar,{backgroundColor:a.color+"10"}],children:b(c,{style:[u.statBarFill,{width:`${i}%`,backgroundColor:a.color}]})})]},a.key)})}),s&&s.length>0&&b(c,{style:u.bottomBar,children:s.map((a,m)=>x(Fe,{children:[x(c,{style:u.bottomStat,children:[b(f,{style:u.bottomStatLabel,children:a.label}),b(f,{style:[u.bottomStatValue,a.color&&{color:a.color}],children:a.value})]}),m<s.length-1&&b(c,{style:u.bottomDivider})]},a.label))})]})}var u=B.create({container:{backgroundColor:n.panel,borderRadius:12,padding:12,marginBottom:12,borderWidth:1,borderColor:n.border+"40",overflow:"hidden",position:"relative"},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8,paddingBottom:8,borderBottomWidth:1,borderBottomColor:"rgba(128, 128, 128, 0.1)"},headerLeft:{gap:1},headerRight:{alignItems:"flex-end"},headerTitle:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y,letterSpacing:1.5},headerSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statusIndicator:{flexDirection:"row",alignItems:"center",gap:4},statusDot:{width:5,height:5,borderRadius:2.5},statusText:{fontSize:9,fontWeight:"600",fontFamily:y,letterSpacing:.5},healthSection:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:8},healthLabel:{fontSize:8,color:n.secondary,fontFamily:y,letterSpacing:.5},healthBarWrapper:{flex:1},healthBarBg:{height:4,backgroundColor:"rgba(128, 128, 128, 0.1)",borderRadius:2,overflow:"hidden"},healthBarFill:{height:"100%",borderRadius:2},healthPercentage:{fontSize:11,fontWeight:"700",fontFamily:y},statsGrid:{gap:6,marginBottom:8},statCard:{backgroundColor:n.blackTint2,borderRadius:8,borderWidth:1,borderColor:n.border,padding:10,marginBottom:4},cardContent:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:4},cardInfo:{flex:1},cardLabel:{fontSize:11,fontWeight:"700",fontFamily:y,letterSpacing:.5,color:n.primary},cardSubtitle:{fontSize:8,color:n.secondary,fontFamily:y,opacity:.7},statNumber:{fontSize:16,fontWeight:"700",fontFamily:y,minWidth:28},valueBlock:{alignItems:"flex-end"},percentText:{fontSize:9,color:n.secondary,fontFamily:y},statBar:{height:3,borderRadius:1.5,overflow:"hidden"},statBarFill:{height:"100%",borderRadius:1.5},bottomBar:{flexDirection:"row",alignItems:"center",paddingTop:8,borderTopWidth:1,borderTopColor:n.border+"40"},bottomStat:{flex:1,alignItems:"center"},bottomStatLabel:{fontSize:7,color:n.muted,fontFamily:y,letterSpacing:.5,marginBottom:1},bottomStatValue:{fontSize:11,fontWeight:"700",color:n.primary,fontFamily:y},bottomDivider:{width:1,height:16,backgroundColor:n.border+"40"},iconBadge:{width:24,height:24,borderRadius:6,borderWidth:1,alignItems:"center",justifyContent:"center"}});import{useState as Be,useCallback as Le}from"react";import{jsx as S,jsxs as R}from"react/jsx-runtime";function Ve({issues:e,onIssueClick:t,hintText:o="Tap any issue to view details",style:s,expandable:p=true,statusLabels:d={missing:"Not found",wrong_type:"Type error",wrong_value:"Invalid value"}}){let[a,m]=Be(new Set),C=Le(r=>{p&&m(w=>{let v=new Set(w);return v.has(r)?v.delete(r):v.add(r),v})},[p]),i=r=>r==="missing"?n.warning:n.info,l=r=>r==="missing"?M:_,g=r=>{switch(r.status){case"missing":return`\u2022 ${d.missing}`;case"wrong_type":return`\u2022 ${d.wrong_type}${r.expectedType?`: Expected ${r.expectedType}`:""}`;case"wrong_value":return`\u2022 ${d.wrong_value}${r.value?`: ${String(r.value).substring(0,20)}`:""}`;default:return""}};return e.length===0?null:R(c,{style:[h.container,s],children:[e.map((r,w)=>{let v=i(r.status),A=l(r.status),I=a.has(r.key),D=I?$:P;return R(c,{children:[R(G,{onPress:()=>{p&&C(r.key),t?.(r)},style:h.issueRow,activeOpacity:.7,children:[S(A,{size:14,color:v}),R(c,{style:h.issueContent,children:[S(f,{style:[h.issueKey,{color:n.primary}],children:r.key}),S(f,{style:h.issueDesc,children:g(r)})]}),p&&S(D,{size:12,color:n.muted})]}),p&&I&&R(O.View,{style:h.issueDetails,children:[R(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Status:"}),R(f,{style:[h.detailValue,{color:n.primary,fontWeight:"600"}],children:[r.status==="missing"&&"MISSING",r.status==="wrong_type"&&"TYPE ERROR",r.status==="wrong_value"&&"INVALID VALUE"]})]}),r.value!==void 0&&r.status!=="missing"&&R(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Current:"}),S(f,{style:[h.detailValue,{color:n.warning}],children:`"${String(r.value)}"`})]}),r.expectedType&&r.status==="wrong_type"&&R(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:r.expectedType})]}),r.expectedValue&&r.status==="wrong_value"&&R(c,{style:h.detailRow,children:[S(f,{style:h.detailLabel,children:"Expected:"}),S(f,{style:[h.detailValue,{color:n.success}],children:`"${r.expectedValue}"`})]}),r.description&&S(c,{style:h.descSection,children:S(f,{style:h.descText,children:r.description})}),r.fixSuggestion&&R(c,{style:h.fixSection,children:[S(f,{style:h.fixLabel,children:"HOW TO FIX"}),S(f,{style:h.fixText,children:r.fixSuggestion})]})]})]},`${r.key}-${w}`)}),o&&S(f,{style:h.hint,children:o})]})}var h=B.create({container:{backgroundColor:n.panel,borderRadius:8,padding:8,borderWidth:1,borderColor:n.warning+"33"},issueRow:{flexDirection:"row",alignItems:"center",paddingVertical:8,paddingHorizontal:8,borderRadius:6,marginBottom:4},issueContent:{flex:1,marginLeft:8,flexDirection:"row",alignItems:"center",gap:8},issueKey:{fontSize:11,fontWeight:"600",fontFamily:y},issueDesc:{fontSize:10,color:n.secondary,fontFamily:y,flex:1},hint:{fontSize:9,color:n.muted,fontFamily:y,textAlign:"center",marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:n.primary+"0D"},issueDetails:{marginTop:8,marginLeft:22,marginRight:8,paddingLeft:12,paddingRight:8,paddingTop:8,paddingBottom:8,backgroundColor:n.background+"4D",borderLeftWidth:2,borderLeftColor:n.primary+"1A",borderRadius:4},detailRow:{flexDirection:"row",marginTop:8,alignItems:"flex-start"},detailLabel:{fontSize:10,color:n.secondary,fontFamily:y,fontWeight:"600",width:70},detailValue:{fontSize:11,color:n.primary,fontFamily:y,flex:1,lineHeight:16},fixSection:{marginTop:12,padding:10,backgroundColor:n.info+"14",borderRadius:6,borderWidth:1,borderColor:n.info+"33"},fixLabel:{fontSize:10,color:n.info,fontFamily:y,fontWeight:"700",marginBottom:6,letterSpacing:.5},fixText:{fontSize:11,color:n.primary,fontFamily:y,lineHeight:18,backgroundColor:n.background+"66",padding:8,borderRadius:4,overflow:"hidden"},descSection:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:n.primary+"0D"},descText:{fontSize:10,color:n.secondary,fontFamily:y,marginTop:4,lineHeight:14}});import{useMemo as ne,useEffect as ze,useRef as ie}from"react";var ae={OPTIMAL:{icon:de,color:n.success,label:"CONFIG OK",subtitle:"All requirements met",pulse:false},WARNING:{icon:_,color:n.warning,label:"CONFIG WARNING",subtitle:"Check values and types",pulse:false},ERROR:{icon:se,color:n.error,label:"CONFIG ERROR",subtitle:"Missing required data",pulse:false},CRITICAL:{icon:M,color:n.critical,label:"CONFIG FAILURE",subtitle:"Multiple critical issues",pulse:false},LOADING:{icon:le,color:n.info,label:"LOADING",subtitle:"Reading configuration...",pulse:true},EMPTY:{icon:ce,color:n.muted,label:"NO DATA",subtitle:"No configuration found",pulse:false}};function je(e,t){let o=ne(()=>({...ae,...t}),[t]),s=ne(()=>e.totalCount===0?"EMPTY":e.missingCount>2||e.wrongTypeCount>2?"CRITICAL":e.missingCount>0?"ERROR":e.wrongValueCount>0||e.wrongTypeCount>0?"WARNING":"OPTIMAL",[e]),p=o[s],d=ie(new O.Value(1)).current,a=ie(new O.Value(1)).current;return ze(()=>{d.setValue(0),a.setValue(.95),O.parallel([O.timing(d,{toValue:1,duration:300,useNativeDriver:true}),O.timing(a,{toValue:1,duration:300,easing:U.out(U.ease),useNativeDriver:true})]).start()},[s,d,a]),{alertState:s,alertConfig:p,alertAnimatedStyle:{transform:[{scale:a}],opacity:d},alertOpacity:d,alertScale:a}}export{fe as a,te as b,re as c,Re as d,Oe as e,ke as f,oe as g,Ne as h,De as i,Ve as j,ae as k,je as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{d as e,e as s,f as t}from"./chunk-FP44YK4E.mjs";import"./chunk-L63X3LPR.mjs";export{t as getStorageBackendType,s as isUsingPersistentStorage,e as persistentStorage};
|