@buoy-gg/shared-ui 7.0.43 → 7.0.44
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/lib/commonjs/hooks/useDeviceInfo.js +1 -1
- package/lib/commonjs/icons/index.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/license/licenseModule.js +1 -1
- package/lib/commonjs/storage/devToolsStorageKeys.js +1 -1
- package/lib/commonjs/sync/toolScreenHeader.js +1 -0
- package/lib/commonjs/ui/backgrounds/primitives.js +1 -1
- package/lib/commonjs/ui/backgrounds/variants/liveSky.js +1 -1
- package/lib/commonjs/ui/components/CompactRow.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/loadToolModule.js +1 -1
- package/lib/commonjs/utils/realAppState.js +1 -0
- package/lib/module/hooks/useDeviceInfo.js +1 -1
- package/lib/module/icons/index.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/license/licenseModule.js +1 -1
- package/lib/module/storage/devToolsStorageKeys.js +1 -1
- package/lib/module/sync/toolScreenHeader.js +1 -0
- package/lib/module/ui/backgrounds/primitives.js +1 -1
- package/lib/module/ui/backgrounds/variants/liveSky.js +1 -1
- package/lib/module/ui/components/CompactRow.js +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/loadToolModule.js +1 -1
- package/lib/module/utils/realAppState.js +1 -0
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts +3 -2
- package/lib/typescript/commonjs/license/licenseModule.d.ts +6 -0
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +26 -0
- package/lib/typescript/commonjs/sync/toolScreenHeader.d.ts +26 -0
- package/lib/typescript/commonjs/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/utils/realAppState.d.ts +21 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/icons/index.d.ts +3 -0
- package/lib/typescript/module/index.d.ts +3 -2
- package/lib/typescript/module/license/licenseModule.d.ts +6 -0
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +26 -0
- package/lib/typescript/module/sync/toolScreenHeader.d.ts +26 -0
- package/lib/typescript/module/utils/index.d.ts +1 -0
- package/lib/typescript/module/utils/realAppState.d.ts +21 -0
- package/lib/web/chunks/chunk-26OV3QDY.mjs +1 -1
- package/lib/web/chunks/chunk-2MHKRRQW.mjs +1 -0
- package/lib/web/chunks/chunk-2Q3SDPH2.mjs +13 -0
- package/lib/web/chunks/chunk-34YQ42KI.mjs +1 -0
- package/lib/web/chunks/chunk-3NNNCQYP.mjs +13 -0
- package/lib/web/chunks/chunk-46CXXOQB.mjs +1 -0
- package/lib/web/chunks/chunk-46TKOKMV.mjs +1 -0
- package/lib/web/chunks/chunk-475BSDCB.mjs +1 -0
- package/lib/web/chunks/chunk-552W4COI.mjs +1 -0
- package/lib/web/chunks/chunk-55EIUPOI.mjs +14 -0
- package/lib/web/chunks/chunk-56TTTMX4.mjs +1 -0
- package/lib/web/chunks/chunk-5KWAGM5V.mjs +1 -1
- package/lib/web/chunks/chunk-5LOQZINQ.mjs +13 -0
- package/lib/web/chunks/chunk-5NOIO6ZM.mjs +15 -0
- package/lib/web/chunks/chunk-6CCRCSA2.mjs +1 -0
- package/lib/web/chunks/chunk-6Q52HRBL.mjs +1 -0
- package/lib/web/chunks/chunk-6TEDFSNM.mjs +1 -0
- package/lib/web/chunks/chunk-7BLJTQ4U.mjs +1 -0
- package/lib/web/chunks/chunk-7BMRSMHN.mjs +1 -0
- package/lib/web/chunks/chunk-7PRKERDN.mjs +1 -1
- package/lib/web/chunks/chunk-7YVWZ4ZK.mjs +1 -0
- package/lib/web/chunks/chunk-A2SOFE47.mjs +1 -0
- package/lib/web/chunks/chunk-A7KJCK4R.mjs +13 -0
- package/lib/web/chunks/chunk-AEXGGXS7.mjs +1 -0
- package/lib/web/chunks/chunk-AGD7ZT6O.mjs +14 -0
- package/lib/web/chunks/chunk-AIEOQWNG.mjs +1 -0
- package/lib/web/chunks/chunk-ASTM35HG.mjs +15 -0
- package/lib/web/chunks/chunk-AZBMFPMX.mjs +1 -0
- package/lib/web/chunks/chunk-B2V2UDCU.mjs +15 -0
- package/lib/web/chunks/chunk-BFGKGTAC.mjs +1 -0
- package/lib/web/chunks/chunk-BHW6AFO6.mjs +1 -0
- package/lib/web/chunks/chunk-BWRW3NJ2.mjs +15 -0
- package/lib/web/chunks/chunk-CBM2IZAK.mjs +1 -0
- package/lib/web/chunks/chunk-CDLCFF44.mjs +1 -0
- package/lib/web/chunks/chunk-CI5CO7FQ.mjs +1 -0
- package/lib/web/chunks/chunk-CIB4U2YK.mjs +1 -0
- package/lib/web/chunks/chunk-CLLTZQGD.mjs +1 -0
- package/lib/web/chunks/chunk-D4RXBAOO.mjs +2 -2
- package/lib/web/chunks/chunk-D5HQLRFW.mjs +1 -0
- package/lib/web/chunks/chunk-DEJNSL6V.mjs +1 -0
- package/lib/web/chunks/chunk-DZDTNXXK.mjs +1 -0
- package/lib/web/chunks/chunk-EMEAL3L5.mjs +1 -0
- package/lib/web/chunks/chunk-ER3T3IDI.mjs +1 -1
- package/lib/web/chunks/chunk-F6SJ5CLB.mjs +1 -0
- package/lib/web/chunks/chunk-FDOZ6YSS.mjs +1 -0
- package/lib/web/chunks/chunk-FMEWNGQO.mjs +1 -0
- package/lib/web/chunks/chunk-G4DH7GMT.mjs +1 -0
- package/lib/web/chunks/chunk-GBUZCZE4.mjs +1 -0
- package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +1 -0
- package/lib/web/chunks/chunk-GNGMIA7V.mjs +1 -0
- package/lib/web/chunks/chunk-GTYIS7H7.mjs +14 -0
- package/lib/web/chunks/chunk-GZE3FIOX.mjs +1 -0
- package/lib/web/chunks/chunk-HGA3GJA6.mjs +1 -0
- package/lib/web/chunks/chunk-HJ36IONA.mjs +14 -0
- package/lib/web/chunks/chunk-HXPTZMAZ.mjs +1 -0
- package/lib/web/chunks/chunk-I27M4JCS.mjs +1 -0
- package/lib/web/chunks/chunk-IVCT27JB.mjs +1 -0
- package/lib/web/chunks/chunk-JG4QSK5B.mjs +1 -0
- package/lib/web/chunks/chunk-JR7BJW6B.mjs +1 -0
- package/lib/web/chunks/chunk-JYM7MCKQ.mjs +1 -0
- package/lib/web/chunks/chunk-K46ZJUXJ.mjs +1 -0
- package/lib/web/chunks/chunk-K4EGHHD6.mjs +1 -0
- package/lib/web/chunks/chunk-K4LXMO4D.mjs +1 -0
- package/lib/web/chunks/chunk-K7CGIEFU.mjs +1 -1
- package/lib/web/chunks/chunk-KBTYK5YE.mjs +1 -0
- package/lib/web/chunks/chunk-KHP6CSSM.mjs +1 -0
- package/lib/web/chunks/chunk-KRDRIW7T.mjs +13 -0
- package/lib/web/chunks/chunk-L2DTKDER.mjs +1 -0
- package/lib/web/chunks/chunk-L3AFTHWX.mjs +6 -6
- package/lib/web/chunks/chunk-LFDFDGHY.mjs +1 -0
- package/lib/web/chunks/chunk-MAIUUK4E.mjs +1 -0
- package/lib/web/chunks/chunk-MKJKS3IG.mjs +1 -0
- package/lib/web/chunks/chunk-MRQKVLXG.mjs +1 -0
- package/lib/web/chunks/chunk-NK3OISOL.mjs +13 -0
- package/lib/web/chunks/chunk-NLJDDIXW.mjs +1 -0
- package/lib/web/chunks/chunk-OENR3XFI.mjs +1 -0
- package/lib/web/chunks/chunk-OPTY6SMO.mjs +1 -0
- package/lib/web/chunks/chunk-OZB3VKZE.mjs +1 -0
- package/lib/web/chunks/chunk-P64PFJT3.mjs +5 -0
- package/lib/web/chunks/chunk-PACPGYH7.mjs +1 -0
- package/lib/web/chunks/chunk-PART6HOE.mjs +13 -0
- package/lib/web/chunks/chunk-PMRXUQRH.mjs +1 -0
- package/lib/web/chunks/chunk-PTK5FO6C.mjs +1 -1
- package/lib/web/chunks/chunk-PZ45TQ55.mjs +13 -0
- package/lib/web/chunks/chunk-Q5LN7GET.mjs +5 -0
- package/lib/web/chunks/chunk-QCD6T6L4.mjs +1 -0
- package/lib/web/chunks/chunk-QD5EUANU.mjs +1 -0
- package/lib/web/chunks/chunk-QJTECJCO.mjs +1 -0
- package/lib/web/chunks/chunk-QPIZURPZ.mjs +1 -0
- package/lib/web/chunks/chunk-QPY45R5F.mjs +1 -0
- package/lib/web/chunks/chunk-QQTJ463K.mjs +1 -0
- package/lib/web/chunks/chunk-R2SGZIG5.mjs +1 -0
- package/lib/web/chunks/chunk-RJO7RXQQ.mjs +1 -0
- package/lib/web/chunks/chunk-S3GYQYVJ.mjs +15 -0
- package/lib/web/chunks/chunk-SCCXVTDM.mjs +1 -0
- package/lib/web/chunks/chunk-SHJHD646.mjs +1 -0
- package/lib/web/chunks/chunk-T2SPCEHP.mjs +1 -0
- package/lib/web/chunks/chunk-T3WLUEET.mjs +1 -0
- package/lib/web/chunks/chunk-T6KN54NS.mjs +1 -0
- package/lib/web/chunks/chunk-TCRVZ55E.mjs +1 -0
- package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +14 -0
- package/lib/web/chunks/chunk-TJUBBXXK.mjs +1 -1
- package/lib/web/chunks/chunk-TPSY4RC3.mjs +13 -0
- package/lib/web/chunks/chunk-U5KNX5O6.mjs +5 -0
- package/lib/web/chunks/chunk-UCKELQSM.mjs +1 -0
- package/lib/web/chunks/chunk-UGGCYHRH.mjs +1 -0
- package/lib/web/chunks/chunk-UKYVRCMZ.mjs +1 -1
- package/lib/web/chunks/chunk-UNYQJZET.mjs +15 -0
- package/lib/web/chunks/chunk-VE72SWLV.mjs +14 -0
- package/lib/web/chunks/chunk-VKONO6MI.mjs +1 -0
- package/lib/web/chunks/chunk-VOS562HW.mjs +14 -0
- package/lib/web/chunks/chunk-W4BGMPJO.mjs +1 -0
- package/lib/web/chunks/chunk-WHNEEKLR.mjs +1 -0
- package/lib/web/chunks/chunk-WIFX6XNL.mjs +15 -0
- package/lib/web/chunks/chunk-WLGUP3KY.mjs +15 -0
- package/lib/web/chunks/chunk-WY7D4WBZ.mjs +1 -0
- package/lib/web/chunks/chunk-XD2BEYMM.mjs +15 -0
- package/lib/web/chunks/chunk-XMDNJJS5.mjs +14 -0
- package/lib/web/chunks/chunk-XRNB2MHO.mjs +1 -0
- package/lib/web/chunks/chunk-XUHVHSSG.mjs +14 -0
- package/lib/web/chunks/chunk-XXTIAXQY.mjs +1 -0
- package/lib/web/chunks/chunk-YG6DIKQD.mjs +1 -0
- package/lib/web/chunks/chunk-YIZFMU66.mjs +1 -0
- package/lib/web/chunks/chunk-YOGAPOGC.mjs +1 -0
- package/lib/web/chunks/chunk-Z7373DS5.mjs +1 -0
- package/lib/web/chunks/chunk-Z76GRN66.mjs +5 -0
- package/lib/web/chunks/chunk-ZFPRFFDY.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-6S5TDRE4.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +1 -0
- package/lib/web/chunks/persistentStorage.web-SOPYL5VC.mjs +1 -0
- package/lib/web/dataViewer.mjs +2 -2
- package/lib/web/history.mjs +1 -1
- package/lib/web/hooks.mjs +1 -1
- package/lib/web/index.mjs +2 -2
- package/lib/web/ui.mjs +1 -1
- package/lib/web/utils.mjs +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{useState as c,useEffect as h,useCallback as q}from"react";import{Platform as i,Dimensions as I,PixelRatio as x,AccessibilityInfo as l,Appearance as
|
|
1
|
+
"use strict";import{useState as c,useEffect as h,useCallback as q}from"react";import{Platform as i,Dimensions as I,PixelRatio as x,AccessibilityInfo as l,Appearance as b,I18nManager as T,NativeModules as S,Keyboard as F,AppState as y,StatusBar as X}from"react-native";import{subscribeRealAppState as _}from"../utils/realAppState.js";async function H(){const[e,t,a]=await Promise.all([l.isScreenReaderEnabled(),l.isReduceMotionEnabled(),l.isReduceTransparencyEnabled()]);const o={isScreenReaderEnabled:e,isReduceMotionEnabled:t,isReduceTransparencyEnabled:a};if(i.OS==="ios"){const[g,f,p,u,m]=await Promise.all([l.isBoldTextEnabled?.()??Promise.resolve(false),l.isGrayscaleEnabled?.()??Promise.resolve(false),l.isInvertColorsEnabled?.()??Promise.resolve(false),l.isDarkerSystemColorsEnabled?.()??Promise.resolve(false),l.prefersCrossFadeTransitions?.()??Promise.resolve(false)]);o.isBoldTextEnabled=g;o.isGrayscaleEnabled=f;o.isInvertColorsEnabled=p;o.isDarkerSystemColorsEnabled=u;o.prefersCrossFadeTransitions=m}if(i.OS==="android"){const g=await l.isHighTextContrastEnabled?.()??false;o.isHighTextContrastEnabled=g}return o}function v(){const e=i.constants;const t={os:i.OS,version:i.Version,reactNativeVersion:e.reactNativeVersion,isTesting:i.isTesting??false,isDisableAnimations:e.isDisableAnimations??false};if(i.OS==="ios"){return{...t,osVersion:e.osVersion,systemName:e.systemName,interfaceIdiom:e.interfaceIdiom,isPad:i.isPad,isTV:i.isTV,isVision:i.isVision??false,isMacCatalyst:i.isMacCatalyst??false,forceTouchAvailable:e.forceTouchAvailable}}if(i.OS==="android"){return{...t,apiLevel:e.Version,release:e.Release,brand:e.Brand,manufacturer:e.Manufacturer,model:e.Model,fingerprint:e.Fingerprint,serial:e.Serial,uiMode:e.uiMode}}return t}function C(){const e=I.get("window");const t=I.get("screen");const a={window:{width:e.width,height:e.height,scale:e.scale,fontScale:e.fontScale},screen:{width:t.width,height:t.height,scale:t.scale,fontScale:t.fontScale},pixelRatio:x.get(),fontScale:x.getFontScale(),isLandscape:e.width>e.height,isPortrait:e.height>e.width};if(i.OS==="ios"){try{const o=S.DeviceInfo?.getConstants?.();a.isIPhoneNotched=o?.isIPhoneX_deprecated??false}catch{a.isIPhoneNotched=false}}if(i.OS==="android"){try{const o=S.DeviceInfo?.getConstants?.();a.isEdgeToEdge=o?.isEdgeToEdge??false;a.densityDpi=Math.round(e.scale*160)}catch{}}return a}async function J(){return new Promise(e=>{let t=false;if(i.OS==="ios"){S.StatusBarManager?.getHeight?.(a=>{if(!t){t=true;e(a?.height??null)}})??e(null)}else if(i.OS==="android"){t=true;e(X.currentHeight??null)}else{t=true;e(null)}setTimeout(()=>{if(!t){t=true;e(null)}},100)})}function D(){const e={isRTL:T.isRTL,doLeftAndRightSwapInRTL:T.doLeftAndRightSwapInRTL};if(i.OS==="android"){e.localeIdentifier=T.localeIdentifier}return e}function A(){if(i.OS==="ios"){try{const e=S.SettingsManager?.getConstants?.();return{userDefaults:e?.settings??{}}}catch{return{}}}return{}}function L(){const e={};if(i.OS==="android"){const t=i.constants;e.serial=t.Serial;e.fingerprint=t.Fingerprint;try{const a=S.PlatformConstants;if(a?.getAndroidID){e.androidId=a.getAndroidID()}}catch{}}return e}function z(e){const t=[e.platform.os,e.platform.version,e.display.window.width,e.display.window.height,e.display.pixelRatio,e.platform.interfaceIdiom??"",e.platform.forceTouchAvailable??false,e.display.isIPhoneNotched??false,e.platform.model??"",e.platform.brand??"",e.platform.manufacturer??"",e.platform.uiMode??""];const a=t.join("|");let o=0;for(let g=0;g<a.length;g++){const f=a.charCodeAt(g);o=(o<<5)-o+f;o=o&o}return Math.abs(o).toString(16).padStart(8,"0")}export function useDeviceInfo(){const[e,t]=c(true);const[a,o]=c(v());const[g,f]=c(C());const[p,u]=c({isScreenReaderEnabled:false,isReduceMotionEnabled:false,isReduceTransparencyEnabled:false});const[m,O]=c(()=>{const r=b.getColorScheme()??null;return{colorScheme:r,prefersDarkMode:r==="dark"}});const[P,G]=c(D());const[R,K]=c({height:null,isVisible:true});const[w,M]=c({isVisible:false,height:0,animationDuration:0});const[N,Y]=c({currentState:y.currentState,isActive:y.currentState==="active"});const[k,$]=c(L());const[B,j]=c(A());const[V,U]=c(Date.now());const E=q(async()=>{t(true);const[r,s]=await Promise.all([H(),J()]);o(v());f(C());u(r);const n=b.getColorScheme()??null;O({colorScheme:n,prefersDarkMode:n==="dark"});G(D());K(d=>({...d,height:s}));$(L());j(A());U(Date.now());t(false)},[]);h(()=>{E()},[E]);h(()=>{const r=I.addEventListener("change",({window:s,screen:n})=>{f(d=>({...d,window:{width:s.width,height:s.height,scale:s.scale,fontScale:s.fontScale},screen:{width:n.width,height:n.height,scale:n.scale,fontScale:n.fontScale},isLandscape:s.width>s.height,isPortrait:s.height>s.width}))});return()=>r.remove()},[]);h(()=>{const r=b.addChangeListener(({colorScheme:s})=>{const n=s??null;O({colorScheme:n,prefersDarkMode:n==="dark"})});return()=>r.remove()},[]);h(()=>{const r=F.addListener(i.OS==="ios"?"keyboardWillShow":"keyboardDidShow",n=>{M({isVisible:true,height:n.endCoordinates.height,animationDuration:n.duration??0})});const s=F.addListener(i.OS==="ios"?"keyboardWillHide":"keyboardDidHide",n=>{M({isVisible:false,height:0,animationDuration:n.duration??0})});return()=>{r.remove();s.remove()}},[]);h(()=>{const r=_(s=>{Y({currentState:s,isActive:s==="active"})});return()=>r.remove()},[]);h(()=>{const r=[l.addEventListener("screenReaderChanged",s=>{u(n=>({...n,isScreenReaderEnabled:s}))}),l.addEventListener("reduceMotionChanged",s=>{u(n=>({...n,isReduceMotionEnabled:s}))}),l.addEventListener("reduceTransparencyChanged",s=>{u(n=>({...n,isReduceTransparencyEnabled:s}))})];if(i.OS==="ios"){const s=(n,d)=>{return l.addEventListener(n,d)};r.push(s("boldTextChanged",n=>{u(d=>({...d,isBoldTextEnabled:n}))}),s("grayscaleChanged",n=>{u(d=>({...d,isGrayscaleEnabled:n}))}),s("invertColorsChanged",n=>{u(d=>({...d,isInvertColorsEnabled:n}))}))}return()=>{r.forEach(s=>s.remove())}},[]);const W={platform:a,display:g,accessibility:p,appearance:m,locale:P,statusBar:R,keyboard:w,appState:N,identifiers:k,settings:B,timestamp:V,isLoading:e,refresh:E,generateFingerprint:()=>z({platform:a,display:g,accessibility:p,appearance:m,locale:P,statusBar:R,keyboard:w,appState:N,identifiers:k,settings:B,timestamp:V,isLoading:e})};return W}export async function getDeviceInfo(){const[e,t]=await Promise.all([H(),J()]);const a=b.getColorScheme()??null;return{platform:v(),display:C(),accessibility:e,appearance:{colorScheme:a,prefersDarkMode:a==="dark"},locale:D(),statusBar:{height:t,isVisible:true},keyboard:{isVisible:false,height:0,animationDuration:0},appState:{currentState:y.currentState,isActive:y.currentState==="active"},identifiers:L(),settings:A(),timestamp:Date.now(),isLoading:false}}export function logDeviceInfo(e){console.log("\n========================================");console.log(" DEVICE INFO REPORT");console.log("========================================\n");console.log("--- PLATFORM ---");console.log(JSON.stringify(e.platform,null,2));console.log("\n--- DISPLAY ---");console.log(JSON.stringify(e.display,null,2));console.log("\n--- ACCESSIBILITY ---");console.log(JSON.stringify(e.accessibility,null,2));console.log("\n--- APPEARANCE ---");console.log(JSON.stringify(e.appearance,null,2));console.log("\n--- LOCALE ---");console.log(JSON.stringify(e.locale,null,2));console.log("\n--- STATUS BAR ---");console.log(JSON.stringify(e.statusBar,null,2));console.log("\n--- KEYBOARD ---");console.log(JSON.stringify(e.keyboard,null,2));console.log("\n--- APP STATE ---");console.log(JSON.stringify(e.appState,null,2));console.log("\n--- IDENTIFIERS ---");console.log(JSON.stringify(e.identifiers,null,2));console.log("\n--- SETTINGS ---");const t=Object.keys(e.settings.userDefaults??{});console.log(`userDefaults: ${t.length} keys`);if(t.length>0&&t.length<=20){console.log(JSON.stringify(e.settings,null,2))}console.log("\n--- METADATA ---");console.log(`timestamp: ${e.timestamp}`);console.log(`isLoading: ${e.isLoading}`);console.log("\n========================================\n")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export*from"./primitives/index.js";export{NetworkIcon,NETWORK_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{EnvIcon,ENV_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ConsoleIcon,CONSOLE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{TimeMachineIcon,TIME_MACHINE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImagesIcon,IMAGES_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{AssetsIcon,ASSETS_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImpersonateIcon,IMPERSONATE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImageOverlayIcon,IMAGE_OVERLAY_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ZustandIcon,ZUSTAND_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{JotaiIcon,JOTAI_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{EnvLaptopIcon,LaptopIcon}from"./EnvLaptopIcon.js";export{ReactQueryIcon}from"./ReactQueryIcon.js";export{SentryBugIcon}from"./SentryBugIcon.js";export{StorageStackIcon}from"./StorageStackIcon.js";export{WifiCircuitIcon}from"./WifiCircuitIcon.js";export{RouteMapIcon,RouteIcon,NavigationIcon}from"./RouteMapIcon.js";export{StackPulseIcon,RenderPulseIcon,HighlightUpdatesIcon}from"./StackPulseIcon.js";export{RenderCountIcon}from"./RenderCountIcon.js";export{BenchmarkIcon as BenchmarkLegacyIcon}from"./BenchmarkIcon.js";export{IconBackground}from"./IconBackground.js";export*from"./lucide-icons.js";export{ActivityGlyph as Activity,AlertCircleGlyph as AlertCircle,AlertTriangleGlyph as AlertTriangle,BookmarkGlyph as Bookmark,BoxGlyph as Box,BugGlyph as Bug,CheckCircleGlyph as CheckCircle,CheckGlyph as Check,ChevronDownGlyph as ChevronDown,ChevronLeftGlyph as ChevronLeft,ChevronRightGlyph as ChevronRight,ChevronUpGlyph as ChevronUp,ClockGlyph as Clock,CopyGlyph as Copy,DatabaseGlyph as Database,DockBottomGlyph as DockBottom,DownloadGlyph as Download,Edit3Glyph as Edit3,EyeOffGlyph as EyeOff,EyeGlyph as Eye,FileJsonGlyph as FileJson,FileTextGlyph as FileText,FilmGlyph as Film,FilterGlyph as Filter,FlaskConicalGlyph as FlaskConical,FloatWindowGlyph as FloatWindow,GitBranchGlyph as GitBranch,GlobeGlyph as Globe,HashGlyph as Hash,HomeGlyph as Home,ImageGlyph as Image,InfoGlyph as Info,KeyGlyph as Key,LayersGlyph as Layers,LinkGlyph as Link,LockGlyph as Lock,MinusGlyph as Minus,MusicGlyph as Music,NavigationGlyph as Navigation,PaletteGlyph as Palette,PauseGlyph as Pause,PlayGlyph as Play,PlusGlyph as Plus,PowerGlyph as Power,RefreshCwGlyph as RefreshCw,SearchGlyph as Search,ServerGlyph as Server,SettingsGlyph as Settings,SettingsSolidIcon as SettingsSolid,ShieldGlyph as Shield,Trash2Glyph as Trash2,Trash2Glyph as Trash,UnlockGlyph as Unlock,UploadGlyph as Upload,UserGlyph as User,WifiGlyph as Wifi,XCircleGlyph as XCircle,XGlyph as X,ZapGlyph as Zap}from"@buoy-gg/floating-tools-core";export{SentryIcon,EventsIcon,RoutesIcon,RoutePinIcon,RoutePathIcon,RouteDotIcon,RouteTwoPinsIcon,CameraIcon,HighlightIcon,ReduxIcon,StorageIcon,AskBuoyIcon,HighlighterIcon,QueryIcon,ScenariosIcon}from"@buoy-gg/floating-tools-core";export{WifiIcon as WifiBifIcon,BenchmarkIcon,BENCHMARK_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{NotificationsIcon,NOTIFICATIONS_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ClockToolIcon,CLOCK_TOOL_ICON_COLOR}from"@buoy-gg/floating-tools-core";
|
|
1
|
+
"use strict";export*from"./primitives/index.js";export{NetworkIcon,NETWORK_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{EnvIcon,ENV_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ConsoleIcon,CONSOLE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{TimeMachineIcon,TIME_MACHINE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImagesIcon,IMAGES_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{AssetsIcon,ASSETS_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImpersonateIcon,IMPERSONATE_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ImageOverlayIcon,IMAGE_OVERLAY_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ZustandIcon,ZUSTAND_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{JotaiIcon,JOTAI_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{EnvLaptopIcon,LaptopIcon}from"./EnvLaptopIcon.js";export{ReactQueryIcon}from"./ReactQueryIcon.js";export{SentryBugIcon}from"./SentryBugIcon.js";export{StorageStackIcon}from"./StorageStackIcon.js";export{WifiCircuitIcon}from"./WifiCircuitIcon.js";export{RouteMapIcon,RouteIcon,NavigationIcon}from"./RouteMapIcon.js";export{StackPulseIcon,RenderPulseIcon,HighlightUpdatesIcon}from"./StackPulseIcon.js";export{RenderCountIcon}from"./RenderCountIcon.js";export{BenchmarkIcon as BenchmarkLegacyIcon}from"./BenchmarkIcon.js";export{IconBackground}from"./IconBackground.js";export*from"./lucide-icons.js";export{ActivityGlyph as Activity,AlertCircleGlyph as AlertCircle,AlertTriangleGlyph as AlertTriangle,BookmarkGlyph as Bookmark,BoxGlyph as Box,BugGlyph as Bug,CheckCircleGlyph as CheckCircle,CheckGlyph as Check,ChevronDownGlyph as ChevronDown,ChevronLeftGlyph as ChevronLeft,ChevronRightGlyph as ChevronRight,ChevronUpGlyph as ChevronUp,ClockGlyph as Clock,CopyGlyph as Copy,DatabaseGlyph as Database,DockBottomGlyph as DockBottom,DownloadGlyph as Download,Edit3Glyph as Edit3,EyeOffGlyph as EyeOff,EyeGlyph as Eye,FileJsonGlyph as FileJson,FileTextGlyph as FileText,FilmGlyph as Film,FilterGlyph as Filter,FlaskConicalGlyph as FlaskConical,FloatWindowGlyph as FloatWindow,GitBranchGlyph as GitBranch,GlobeGlyph as Globe,HashGlyph as Hash,HomeGlyph as Home,ImageGlyph as Image,InfoGlyph as Info,KeyGlyph as Key,LayersGlyph as Layers,LinkGlyph as Link,LockGlyph as Lock,MinusGlyph as Minus,MusicGlyph as Music,NavigationGlyph as Navigation,PaletteGlyph as Palette,PauseGlyph as Pause,PlayGlyph as Play,PlusGlyph as Plus,PowerGlyph as Power,RefreshCwGlyph as RefreshCw,SearchGlyph as Search,ServerGlyph as Server,SettingsGlyph as Settings,SettingsSolidIcon as SettingsSolid,ShieldGlyph as Shield,Trash2Glyph as Trash2,Trash2Glyph as Trash,UnlockGlyph as Unlock,UploadGlyph as Upload,UserGlyph as User,WifiGlyph as Wifi,XCircleGlyph as XCircle,XGlyph as X,ZapGlyph as Zap}from"@buoy-gg/floating-tools-core";export{SentryIcon,EventsIcon,RoutesIcon,RoutePinIcon,RoutePathIcon,RouteDotIcon,RouteTwoPinsIcon,CameraIcon,HighlightIcon,ReduxIcon,StorageIcon,AskBuoyIcon,HighlighterIcon,QueryIcon,ScenariosIcon}from"@buoy-gg/floating-tools-core";export{WifiIcon as WifiBifIcon,BenchmarkIcon,BENCHMARK_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{NotificationsIcon,NOTIFICATIONS_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{ClockToolIcon,CLOCK_TOOL_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{PermissionsIcon,PERMISSIONS_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{LifecycleToolIcon,LIFECYCLE_TOOL_ICON_COLOR}from"@buoy-gg/floating-tools-core";export{LocationToolIcon,LOCATION_TOOL_ICON_COLOR}from"@buoy-gg/floating-tools-core";
|
package/lib/module/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export*from"./ui/index.js";export*from"./stores/index.js";export*from"./sync/keyedArrays.js";export*from"./sync/valueShape.js";export*from"./sync/valuePath.js";export*from"./sync/typedEdit.js";export*from"./sync/wireBudget.js";export*from"./sync/wireForm.js";export*from"./sync/toolSyncAdapter.js";export*from"./tools/defineTool.js";export*from"./sync/toolActionRegistry.js";export*from"./sync/toolUiBridge.js";export{absoluteFill,displayValue,parseDisplayValue,getSafeAreaInsets,persistentStorage,isUsingPersistentStorage,getStorageBackendType,safeStringify,getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize,parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath,loadOptionalModule,getCachedOptionalModule,setRenderCaptureProvider,getRenderCaptureProvider,registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders,superJsonSerialize,superJsonDeserialize,realNow,reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS,getDevServerOrigin,Subscribable,subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange,useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./utils/index.js";export*from"./utils/toolModules.js";export{registerBrowserRouter,browserRouter,subscribeBrowserNavigation}from"./utils/browserNavigation.js";export{PREVIEW_ITEM_RENDER_BYTE_LIMIT,createRestoreScope,emptyRestoreResult,failedRestore,skippedRestore,classifyPreviewItem,wontApply,unionKeys}from"./utils/snapshotProviderKit.js";export{entityColor,formatValuePreview,shallowDiffSummary}from"./utils/stateTools.js";export*from"./utils/formatting/index.js";export*from"./utils/time/index.js";export{isPlainObject as isPlainObjectUtil}from"./utils/typeHelpers.js";export*from"./icons/index.js";export*from"./clipboard/index.js";export*from"./logger/index.js";export*from"./settings/index.js";export*from"./storage/index.js";export{useSafeAreaInsets,useFilterManager,usePersistedState,resetPersistedStateCache,useChangeLog,useSubscribedValue,useEventStoreEvents,useDeviceInfo,getDeviceInfo,logDeviceInfo}from"./hooks/index.js";export{JsModal}from"./JsModal";export{night,NIGHT_LABEL_TRACKING}from"./ui/night/nightTheme.js";export{NightSectionLabel,NightFootnote,NightCard,NightSeparator,NightRows,NightSwitch,NightChip,NightButton,NightSegmented,NightBadge}from"./ui/night/primitives.js";export{gameUIColors,buoyColors}from"./ui/gameUI/constants/gameUIColors.js";export{refreshGameUIColors}from"./ui/gameUI/constants/gameUIColors.js";export{macOSColors}from"./ui/gameUI/constants/macOSDesignSystemColors.js";export{dialColors}from"./ui/gameUI/constants/gameUIColors.js";export{EnvironmentIndicator}from"./env/EnvironmentIndicator";export{EnvironmentSelector}from"./env/EnvironmentSelector.js";export{EnvironmentSelectorInline}from"./env/EnvironmentSelectorInline";export{normalizeEnvironment}from"./types/types.js";export{HintsProvider,useHintsDisabled,useHintsContext}from"./context/index.js";export*from"./history/index.js";export{FeatureGate,UpgradePrompt,useFeatureGate,ProFeatureBanner,UpgradeModal,LicenseEntryModal,ProBadge,ProUpgradeModal,FreeAccountPrompt,LOGIN_COMMAND,getUseIsPro,getUseLicense,getUseTier,TIER_LIMITS,useLimit,resolveEffectiveTier}from"./license/index.js";export{getAccountAccess,hasAccountAccess,assertAccountAccess,subscribeAccountAccess,getUseAccountAccess,retryAccountAccess}from"./license/licenseModule.js";export{guardToolAdapter}from"./sync/toolActionRegistry.js";export{AccountSetup}from"./license/AccountSetup";
|
|
1
|
+
"use strict";export*from"./ui/index.js";export*from"./stores/index.js";export*from"./sync/keyedArrays.js";export*from"./sync/valueShape.js";export*from"./sync/valuePath.js";export*from"./sync/typedEdit.js";export*from"./sync/wireBudget.js";export*from"./sync/wireForm.js";export*from"./sync/toolSyncAdapter.js";export*from"./tools/defineTool.js";export*from"./sync/toolActionRegistry.js";export*from"./sync/toolUiBridge.js";export*from"./sync/toolScreenHeader.js";export{absoluteFill,displayValue,parseDisplayValue,getSafeAreaInsets,persistentStorage,isUsingPersistentStorage,getStorageBackendType,safeStringify,getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize,parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath,loadOptionalModule,getCachedOptionalModule,setRenderCaptureProvider,getRenderCaptureProvider,registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders,superJsonSerialize,superJsonDeserialize,realNow,getRealAppState,subscribeRealAppState,BUOY_SYNTHETIC_MARK,countBuoyListener,reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS,getDevServerOrigin,Subscribable,subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange,useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./utils/index.js";export*from"./utils/toolModules.js";export{registerBrowserRouter,browserRouter,subscribeBrowserNavigation}from"./utils/browserNavigation.js";export{PREVIEW_ITEM_RENDER_BYTE_LIMIT,createRestoreScope,emptyRestoreResult,failedRestore,skippedRestore,classifyPreviewItem,wontApply,unionKeys}from"./utils/snapshotProviderKit.js";export{entityColor,formatValuePreview,shallowDiffSummary}from"./utils/stateTools.js";export*from"./utils/formatting/index.js";export*from"./utils/time/index.js";export{isPlainObject as isPlainObjectUtil}from"./utils/typeHelpers.js";export*from"./icons/index.js";export*from"./clipboard/index.js";export*from"./logger/index.js";export*from"./settings/index.js";export*from"./storage/index.js";export{useSafeAreaInsets,useFilterManager,usePersistedState,resetPersistedStateCache,useChangeLog,useSubscribedValue,useEventStoreEvents,useDeviceInfo,getDeviceInfo,logDeviceInfo}from"./hooks/index.js";export{JsModal}from"./JsModal";export{night,NIGHT_LABEL_TRACKING}from"./ui/night/nightTheme.js";export{NightSectionLabel,NightFootnote,NightCard,NightSeparator,NightRows,NightSwitch,NightChip,NightButton,NightSegmented,NightBadge}from"./ui/night/primitives.js";export{gameUIColors,buoyColors}from"./ui/gameUI/constants/gameUIColors.js";export{refreshGameUIColors}from"./ui/gameUI/constants/gameUIColors.js";export{macOSColors}from"./ui/gameUI/constants/macOSDesignSystemColors.js";export{dialColors}from"./ui/gameUI/constants/gameUIColors.js";export{EnvironmentIndicator}from"./env/EnvironmentIndicator";export{EnvironmentSelector}from"./env/EnvironmentSelector.js";export{EnvironmentSelectorInline}from"./env/EnvironmentSelectorInline";export{normalizeEnvironment}from"./types/types.js";export{HintsProvider,useHintsDisabled,useHintsContext}from"./context/index.js";export*from"./history/index.js";export{FeatureGate,UpgradePrompt,useFeatureGate,ProFeatureBanner,UpgradeModal,LicenseEntryModal,ProBadge,ProUpgradeModal,FreeAccountPrompt,LOGIN_COMMAND,getUseIsPro,getUseLicense,getUseTier,TIER_LIMITS,useLimit,resolveEffectiveTier}from"./license/index.js";export{getAccountAccess,hasAccountAccess,assertAccountAccess,subscribeAccountAccess,getUseAccountAccess,retryAccountAccess,isProNow}from"./license/licenseModule.js";export{guardToolAdapter}from"./sync/toolActionRegistry.js";export{AccountSetup}from"./license/AccountSetup";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import*as t from"@buoy-gg/license";import{canInitializeAccount as
|
|
1
|
+
"use strict";import*as t from"@buoy-gg/license";import{canInitializeAccount as l}from"./accountRuntime";let u=null;let o=null;let i=null;let a=false;function n(){if(a)return;a=true;try{const e=t;if(e){u=e.useIsPro??null;o=e.useLicense??null;i=e.useTier??null}}catch{}}export function getUseIsPro(){n();return u??(()=>false)}export function getUseLicense(){n();return o}export function getUseTier(){n();return i??(()=>"free")}export function isProNow(){try{return t.isPro?.()??false}catch{return false}}const c={status:"locked",reason:"account_required",validUntil:null};function r(){if(!l())return null;try{const e=t.LicenseManager;void e?.initialize?.();return e}catch{return null}}export function getAccountAccess(){return r()?.getAccountAccess?.()??c}export function hasAccountAccess(){return getAccountAccess().status==="admitted"}export function assertAccountAccess(){if(!hasAccountAccess())throw new Error("A verified Buoy account is required. Run npx buoy login, then reload your app.")}export function subscribeAccountAccess(e){return r()?.subscribe?.(e)??(()=>{})}export function getUseAccountAccess(){try{return t.useAccountAccess??(()=>c)}catch{return()=>c}}export async function retryAccountAccess(){const e=r();const s=e?.getState?.().licenseKey;if(s)await e.setLicenseKey(s,{force:true});else await e?.initialize?.()}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const devToolsStorageKeys={base:"@react_buoy",bubble:{root:()=>`${devToolsStorageKeys.base}_bubble`,settings:()=>`${devToolsStorageKeys.bubble.root()}_settings`,userPreferences:()=>`${devToolsStorageKeys.bubble.root()}_user_preferences`,position:()=>`${devToolsStorageKeys.bubble.root()}_position`},modal:{root:()=>`${devToolsStorageKeys.base}_modal`,state:()=>`${devToolsStorageKeys.modal.root()}_state`,position:()=>`${devToolsStorageKeys.modal.root()}_position`,dimensions:()=>`${devToolsStorageKeys.modal.root()}_dimensions`,hintAcknowledged:()=>`${devToolsStorageKeys.modal.root()}_hint_acknowledged`},custom:e=>{const o=`${devToolsStorageKeys.base}_custom_${e}`;return{root:()=>o,modal:()=>`${o}_modal`,settings:()=>`${o}_settings`,key:t=>`${o}_${t}`}},settings:{root:()=>`${devToolsStorageKeys.base}_settings`,theme:()=>`${devToolsStorageKeys.settings.root()}_theme`,preferences:()=>`${devToolsStorageKeys.settings.root()}_preferences`,wifiEnabled:()=>`${devToolsStorageKeys.settings.root()}_wifi_enabled`,global:()=>`${devToolsStorageKeys.settings.root()}_global`,activeTab:()=>`${devToolsStorageKeys.settings.root()}_active_tab`,modalOpen:()=>`${devToolsStorageKeys.settings.root()}_modal_open`},dial:{root:()=>`${devToolsStorageKeys.base}_dial`,isOpen:()=>`${devToolsStorageKeys.dial.root()}_is_open`,usage:()=>`${devToolsStorageKeys.dial.root()}_usage`},clipboard:{root:()=>`${devToolsStorageKeys.base}_clipboard`,hintAcknowledged:()=>`${devToolsStorageKeys.clipboard.root()}_hint_acknowledged`},env:{root:()=>`${devToolsStorageKeys.base}_env`,modal:()=>`${devToolsStorageKeys.env.root()}_modal`,currentEnv:()=>`${devToolsStorageKeys.env.root()}_current`,overrides:()=>`${devToolsStorageKeys.env.root()}_overrides`},sentry:{root:()=>`${devToolsStorageKeys.base}_sentry`,modal:()=>`${devToolsStorageKeys.sentry.root()}_modal`,filters:()=>`${devToolsStorageKeys.sentry.root()}_filters`,preferences:()=>`${devToolsStorageKeys.sentry.root()}_preferences`},storage:{root:()=>`${devToolsStorageKeys.base}_storage`,modal:()=>`${devToolsStorageKeys.storage.root()}_modal`,eventsModal:()=>`${devToolsStorageKeys.storage.root()}_events_modal`,filters:()=>`${devToolsStorageKeys.storage.root()}_filters`,eventFilters:()=>`${devToolsStorageKeys.storage.root()}_event_filters`,keyFilters:()=>`${devToolsStorageKeys.storage.root()}_key_filters`,pinnedKeys:()=>`${devToolsStorageKeys.storage.root()}_pinned_keys`,preferences:()=>`${devToolsStorageKeys.storage.root()}_preferences`,activeTab:()=>`${devToolsStorageKeys.storage.root()}_active_tab`,isMonitoring:()=>`${devToolsStorageKeys.storage.root()}_is_monitoring`,diffViewerMode:()=>`${devToolsStorageKeys.storage.root()}_diff_viewer_mode`},clock:{root:()=>`${devToolsStorageKeys.base}_clock`,state:()=>`${devToolsStorageKeys.clock.root()}_state`},timeMachine:{root:()=>`${devToolsStorageKeys.base}_time_machine`,diffViewerMode:()=>`${devToolsStorageKeys.timeMachine.root()}_diff_viewer_mode`,armedPoint:()=>`${devToolsStorageKeys.timeMachine.root()}_armed_point`,barReloadMode:()=>`${devToolsStorageKeys.timeMachine.root()}_bar_reload_mode`,disabledSources:()=>`${devToolsStorageKeys.timeMachine.root()}_disabled_sources`},scenarios:{root:()=>`${devToolsStorageKeys.base}_scenarios`,modal:()=>`${devToolsStorageKeys.scenarios.root()}_modal`,library:()=>`${devToolsStorageKeys.scenarios.root()}_library`,active:()=>`${devToolsStorageKeys.scenarios.root()}_active`},reactQuery:{root:()=>`${devToolsStorageKeys.base}_rq`,modal:()=>`${devToolsStorageKeys.reactQuery.root()}_modal`,browserModal:()=>`${devToolsStorageKeys.reactQuery.root()}_browser_modal`,mutationModal:()=>`${devToolsStorageKeys.reactQuery.root()}_mutation_modal`,filters:()=>`${devToolsStorageKeys.reactQuery.root()}_filters`,ignoredPatterns:()=>`${devToolsStorageKeys.reactQuery.root()}_ignored_patterns`,includedPatterns:()=>`${devToolsStorageKeys.reactQuery.root()}_included_patterns`,preferences:()=>`${devToolsStorageKeys.reactQuery.root()}_preferences`},network:{root:()=>`${devToolsStorageKeys.base}_network`,modal:()=>`${devToolsStorageKeys.network.root()}_modal`,copyModal:()=>`${devToolsStorageKeys.network.root()}_copy_modal`,filters:()=>`${devToolsStorageKeys.network.root()}_filters`,ignoredDomains:()=>`${devToolsStorageKeys.network.root()}_ignored_domains`,ignoredUrls:()=>`${devToolsStorageKeys.network.root()}_ignored_urls`,preferences:()=>`${devToolsStorageKeys.network.root()}_preferences`,copyOptions:()=>`${devToolsStorageKeys.network.root()}_copy_options`,saved:()=>`${devToolsStorageKeys.network.root()}_saved`,overrides:()=>`${devToolsStorageKeys.network.root()}_overrides`},routeEvents:{root:()=>`${devToolsStorageKeys.base}_route_events`,modal:()=>`${devToolsStorageKeys.routeEvents.root()}_modal`,eventFilters:()=>`${devToolsStorageKeys.routeEvents.root()}_event_filters`,activeTab:()=>`${devToolsStorageKeys.routeEvents.root()}_active_tab`,isMonitoring:()=>`${devToolsStorageKeys.routeEvents.root()}_is_monitoring`,detailView:()=>`${devToolsStorageKeys.routeEvents.root()}_detail_view`,diffViewerMode:()=>`${devToolsStorageKeys.routeEvents.root()}_diff_viewer_mode`},highlightUpdates:{root:()=>`${devToolsStorageKeys.base}_highlight_updates`,modal:()=>`${devToolsStorageKeys.highlightUpdates.root()}_modal`,isTracking:()=>`${devToolsStorageKeys.highlightUpdates.root()}_is_tracking`,filters:()=>`${devToolsStorageKeys.highlightUpdates.root()}_filters`,settings:()=>`${devToolsStorageKeys.highlightUpdates.root()}_settings`,copySettings:()=>`${devToolsStorageKeys.highlightUpdates.root()}_copy_settings`},benchmark:{root:()=>`${devToolsStorageKeys.base}_benchmark`,modal:()=>`${devToolsStorageKeys.benchmark.root()}_modal`,isRecording:()=>`${devToolsStorageKeys.benchmark.root()}_is_recording`,activeTab:()=>`${devToolsStorageKeys.benchmark.root()}_active_tab`,settings:()=>`${devToolsStorageKeys.benchmark.root()}_settings`,selectedReports:()=>`${devToolsStorageKeys.benchmark.root()}_selected_reports`},debugBorders:{root:()=>`${devToolsStorageKeys.base}_debug_borders`,infoModal:()=>`${devToolsStorageKeys.debugBorders.root()}_info_modal`},events:{root:()=>`${devToolsStorageKeys.base}_events`,modal:()=>`${devToolsStorageKeys.events.root()}_modal`,enabledSources:()=>`${devToolsStorageKeys.events.root()}_enabled_sources`,isCapturing:()=>`${devToolsStorageKeys.events.root()}_is_capturing`,pausedAt:()=>`${devToolsStorageKeys.events.root()}_paused_at`,copySettings:()=>`${devToolsStorageKeys.events.root()}_copy_settings`},sync:{root:()=>`${devToolsStorageKeys.base}_sync`,deviceId:()=>`${devToolsStorageKeys.sync.root()}_device_id`}};const r=["@devtools","@dev_tools_","@modal_state_","@react_query_browser_modal","@react_query_modal","@react_query_mutation_modal","@sentry_logs_modal","@floating_rn_better_dev_tools_","@floating_tools_","@apphost_","@bubble_settings_","@env_vars_modal","@storage_modal","@floating_@devtools_","dev_last_route"];export function isDevToolsStorageKey(e){if(!e)return false;if(e.startsWith(devToolsStorageKeys.base)){return true}if(e.startsWith("buoy-")){return true}if(e.startsWith("@buoy")){return true}for(const o of r){if(e.startsWith(o)){return true}}return false}export function filterOutDevToolsKeys(e){return e.filter(o=>!isDevToolsStorageKey(o))}export function getAllDevToolsStorageKeys(){const e=[];e.push(devToolsStorageKeys.bubble.settings());e.push(devToolsStorageKeys.bubble.userPreferences());e.push(devToolsStorageKeys.bubble.position());e.push(devToolsStorageKeys.modal.state());e.push(devToolsStorageKeys.modal.position());e.push(devToolsStorageKeys.modal.dimensions());e.push(devToolsStorageKeys.settings.theme());e.push(devToolsStorageKeys.settings.preferences());e.push(devToolsStorageKeys.env.currentEnv());e.push(devToolsStorageKeys.env.overrides());e.push(devToolsStorageKeys.sentry.filters());e.push(devToolsStorageKeys.sentry.preferences());e.push(devToolsStorageKeys.storage.filters());e.push(devToolsStorageKeys.storage.preferences());e.push(devToolsStorageKeys.reactQuery.filters());e.push(devToolsStorageKeys.reactQuery.preferences());return e}
|
|
1
|
+
"use strict";export const devToolsStorageKeys={base:"@react_buoy",bubble:{root:()=>`${devToolsStorageKeys.base}_bubble`,settings:()=>`${devToolsStorageKeys.bubble.root()}_settings`,userPreferences:()=>`${devToolsStorageKeys.bubble.root()}_user_preferences`,position:()=>`${devToolsStorageKeys.bubble.root()}_position`},modal:{root:()=>`${devToolsStorageKeys.base}_modal`,state:()=>`${devToolsStorageKeys.modal.root()}_state`,position:()=>`${devToolsStorageKeys.modal.root()}_position`,dimensions:()=>`${devToolsStorageKeys.modal.root()}_dimensions`,hintAcknowledged:()=>`${devToolsStorageKeys.modal.root()}_hint_acknowledged`},custom:e=>{const o=`${devToolsStorageKeys.base}_custom_${e}`;return{root:()=>o,modal:()=>`${o}_modal`,settings:()=>`${o}_settings`,key:t=>`${o}_${t}`}},settings:{root:()=>`${devToolsStorageKeys.base}_settings`,theme:()=>`${devToolsStorageKeys.settings.root()}_theme`,preferences:()=>`${devToolsStorageKeys.settings.root()}_preferences`,wifiEnabled:()=>`${devToolsStorageKeys.settings.root()}_wifi_enabled`,global:()=>`${devToolsStorageKeys.settings.root()}_global`,activeTab:()=>`${devToolsStorageKeys.settings.root()}_active_tab`,modalOpen:()=>`${devToolsStorageKeys.settings.root()}_modal_open`},dial:{root:()=>`${devToolsStorageKeys.base}_dial`,isOpen:()=>`${devToolsStorageKeys.dial.root()}_is_open`,usage:()=>`${devToolsStorageKeys.dial.root()}_usage`},clipboard:{root:()=>`${devToolsStorageKeys.base}_clipboard`,hintAcknowledged:()=>`${devToolsStorageKeys.clipboard.root()}_hint_acknowledged`},env:{root:()=>`${devToolsStorageKeys.base}_env`,modal:()=>`${devToolsStorageKeys.env.root()}_modal`,currentEnv:()=>`${devToolsStorageKeys.env.root()}_current`,overrides:()=>`${devToolsStorageKeys.env.root()}_overrides`},sentry:{root:()=>`${devToolsStorageKeys.base}_sentry`,modal:()=>`${devToolsStorageKeys.sentry.root()}_modal`,filters:()=>`${devToolsStorageKeys.sentry.root()}_filters`,preferences:()=>`${devToolsStorageKeys.sentry.root()}_preferences`},storage:{root:()=>`${devToolsStorageKeys.base}_storage`,modal:()=>`${devToolsStorageKeys.storage.root()}_modal`,eventsModal:()=>`${devToolsStorageKeys.storage.root()}_events_modal`,filters:()=>`${devToolsStorageKeys.storage.root()}_filters`,eventFilters:()=>`${devToolsStorageKeys.storage.root()}_event_filters`,keyFilters:()=>`${devToolsStorageKeys.storage.root()}_key_filters`,pinnedKeys:()=>`${devToolsStorageKeys.storage.root()}_pinned_keys`,preferences:()=>`${devToolsStorageKeys.storage.root()}_preferences`,activeTab:()=>`${devToolsStorageKeys.storage.root()}_active_tab`,isMonitoring:()=>`${devToolsStorageKeys.storage.root()}_is_monitoring`,diffViewerMode:()=>`${devToolsStorageKeys.storage.root()}_diff_viewer_mode`},clock:{root:()=>`${devToolsStorageKeys.base}_clock`,state:()=>`${devToolsStorageKeys.clock.root()}_state`},permissions:{root:()=>`${devToolsStorageKeys.base}_permissions`,state:()=>`${devToolsStorageKeys.permissions.root()}_state`},lifecycle:{root:()=>`${devToolsStorageKeys.base}_lifecycle`,state:()=>`${devToolsStorageKeys.lifecycle.root()}_state`},location:{root:()=>`${devToolsStorageKeys.base}_location`,state:()=>`${devToolsStorageKeys.location.root()}_state`},timeMachine:{root:()=>`${devToolsStorageKeys.base}_time_machine`,diffViewerMode:()=>`${devToolsStorageKeys.timeMachine.root()}_diff_viewer_mode`,armedPoint:()=>`${devToolsStorageKeys.timeMachine.root()}_armed_point`,barReloadMode:()=>`${devToolsStorageKeys.timeMachine.root()}_bar_reload_mode`,disabledSources:()=>`${devToolsStorageKeys.timeMachine.root()}_disabled_sources`},scenarios:{root:()=>`${devToolsStorageKeys.base}_scenarios`,modal:()=>`${devToolsStorageKeys.scenarios.root()}_modal`,library:()=>`${devToolsStorageKeys.scenarios.root()}_library`,active:()=>`${devToolsStorageKeys.scenarios.root()}_active`},reactQuery:{root:()=>`${devToolsStorageKeys.base}_rq`,modal:()=>`${devToolsStorageKeys.reactQuery.root()}_modal`,browserModal:()=>`${devToolsStorageKeys.reactQuery.root()}_browser_modal`,mutationModal:()=>`${devToolsStorageKeys.reactQuery.root()}_mutation_modal`,filters:()=>`${devToolsStorageKeys.reactQuery.root()}_filters`,ignoredPatterns:()=>`${devToolsStorageKeys.reactQuery.root()}_ignored_patterns`,includedPatterns:()=>`${devToolsStorageKeys.reactQuery.root()}_included_patterns`,preferences:()=>`${devToolsStorageKeys.reactQuery.root()}_preferences`},network:{root:()=>`${devToolsStorageKeys.base}_network`,modal:()=>`${devToolsStorageKeys.network.root()}_modal`,copyModal:()=>`${devToolsStorageKeys.network.root()}_copy_modal`,filters:()=>`${devToolsStorageKeys.network.root()}_filters`,ignoredDomains:()=>`${devToolsStorageKeys.network.root()}_ignored_domains`,ignoredUrls:()=>`${devToolsStorageKeys.network.root()}_ignored_urls`,preferences:()=>`${devToolsStorageKeys.network.root()}_preferences`,copyOptions:()=>`${devToolsStorageKeys.network.root()}_copy_options`,saved:()=>`${devToolsStorageKeys.network.root()}_saved`,overrides:()=>`${devToolsStorageKeys.network.root()}_overrides`},routeEvents:{root:()=>`${devToolsStorageKeys.base}_route_events`,modal:()=>`${devToolsStorageKeys.routeEvents.root()}_modal`,eventFilters:()=>`${devToolsStorageKeys.routeEvents.root()}_event_filters`,activeTab:()=>`${devToolsStorageKeys.routeEvents.root()}_active_tab`,isMonitoring:()=>`${devToolsStorageKeys.routeEvents.root()}_is_monitoring`,detailView:()=>`${devToolsStorageKeys.routeEvents.root()}_detail_view`,diffViewerMode:()=>`${devToolsStorageKeys.routeEvents.root()}_diff_viewer_mode`},highlightUpdates:{root:()=>`${devToolsStorageKeys.base}_highlight_updates`,modal:()=>`${devToolsStorageKeys.highlightUpdates.root()}_modal`,isTracking:()=>`${devToolsStorageKeys.highlightUpdates.root()}_is_tracking`,filters:()=>`${devToolsStorageKeys.highlightUpdates.root()}_filters`,settings:()=>`${devToolsStorageKeys.highlightUpdates.root()}_settings`,copySettings:()=>`${devToolsStorageKeys.highlightUpdates.root()}_copy_settings`},benchmark:{root:()=>`${devToolsStorageKeys.base}_benchmark`,modal:()=>`${devToolsStorageKeys.benchmark.root()}_modal`,isRecording:()=>`${devToolsStorageKeys.benchmark.root()}_is_recording`,activeTab:()=>`${devToolsStorageKeys.benchmark.root()}_active_tab`,settings:()=>`${devToolsStorageKeys.benchmark.root()}_settings`,selectedReports:()=>`${devToolsStorageKeys.benchmark.root()}_selected_reports`},debugBorders:{root:()=>`${devToolsStorageKeys.base}_debug_borders`,infoModal:()=>`${devToolsStorageKeys.debugBorders.root()}_info_modal`},events:{root:()=>`${devToolsStorageKeys.base}_events`,modal:()=>`${devToolsStorageKeys.events.root()}_modal`,enabledSources:()=>`${devToolsStorageKeys.events.root()}_enabled_sources`,isCapturing:()=>`${devToolsStorageKeys.events.root()}_is_capturing`,pausedAt:()=>`${devToolsStorageKeys.events.root()}_paused_at`,copySettings:()=>`${devToolsStorageKeys.events.root()}_copy_settings`},sync:{root:()=>`${devToolsStorageKeys.base}_sync`,deviceId:()=>`${devToolsStorageKeys.sync.root()}_device_id`}};const r=["@devtools","@dev_tools_","@modal_state_","@react_query_browser_modal","@react_query_modal","@react_query_mutation_modal","@sentry_logs_modal","@floating_rn_better_dev_tools_","@floating_tools_","@apphost_","@bubble_settings_","@env_vars_modal","@storage_modal","@floating_@devtools_","dev_last_route"];export function isDevToolsStorageKey(e){if(!e)return false;if(e.startsWith(devToolsStorageKeys.base)){return true}if(e.startsWith("buoy-")){return true}if(e.startsWith("@buoy")){return true}for(const o of r){if(e.startsWith(o)){return true}}return false}export function filterOutDevToolsKeys(e){return e.filter(o=>!isDevToolsStorageKey(o))}export function getAllDevToolsStorageKeys(){const e=[];e.push(devToolsStorageKeys.bubble.settings());e.push(devToolsStorageKeys.bubble.userPreferences());e.push(devToolsStorageKeys.bubble.position());e.push(devToolsStorageKeys.modal.state());e.push(devToolsStorageKeys.modal.position());e.push(devToolsStorageKeys.modal.dimensions());e.push(devToolsStorageKeys.settings.theme());e.push(devToolsStorageKeys.settings.preferences());e.push(devToolsStorageKeys.env.currentEnv());e.push(devToolsStorageKeys.env.overrides());e.push(devToolsStorageKeys.sentry.filters());e.push(devToolsStorageKeys.sentry.preferences());e.push(devToolsStorageKeys.storage.filters());e.push(devToolsStorageKeys.storage.preferences());e.push(devToolsStorageKeys.reactQuery.filters());e.push(devToolsStorageKeys.reactQuery.preferences());return e}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{createContext as n,useContext as o,useEffect as u}from"react";export const ToolScreenHeaderContext=n(null);export function useToolScreenHeader(t,r){const e=o(ToolScreenHeaderContext);u(()=>{if(!e)return;e(t);return()=>e(null)},[e,...r]);return e!==null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{memo as
|
|
1
|
+
"use strict";import{memo as h,useEffect as O,useRef as S}from"react";import{Animated as c,Easing as m,Platform as b,StyleSheet as A,View as l}from"react-native";import{absoluteFill as v}from"../../utils/absoluteFill.js";import{flattenOver as L,withAlpha as E}from"./rng.js";import{subscribeRealAppState as I}from"../../utils/realAppState.js";import{jsx as r,jsxs as T}from"react/jsx-runtime";const w=b.OS!=="web";export function useLoop(s,e=true){const t=S(new c.Value(0)).current;O(()=>{if(!e)return;let o=null;const n=()=>{if(o)return;t.setValue(0);o=c.loop(c.timing(t,{toValue:1,duration:s,easing:m.linear,useNativeDriver:w,isInteraction:false}));o.start()};const i=()=>{o?.stop();o=null;t.setValue(0)};n();const a=I(d=>{if(d==="active")n();else i()});return()=>{i();a.remove()}},[s,e,t]);return t}export function usePulse(s,e=true){const t=S(new c.Value(0)).current;O(()=>{if(!e)return;let o=null;const n=()=>{if(o)return;t.setValue(0);o=c.loop(c.sequence([c.timing(t,{toValue:1,duration:s/2,easing:m.inOut(m.quad),useNativeDriver:w,isInteraction:false}),c.timing(t,{toValue:0,duration:s/2,easing:m.inOut(m.quad),useNativeDriver:w,isInteraction:false})]));o.start()};const i=()=>{o?.stop();o=null};n();const a=I(d=>{if(d==="active")n();else i()});return()=>{i();a.remove()}},[s,e,t]);return t}export const RasterLayer=h(function s({style:e,raster:t=true,children:o}){return r(l,{style:e,pointerEvents:"none",shouldRasterizeIOS:t&&b.OS==="ios",renderToHardwareTextureAndroid:t&&b.OS==="android",children:o})});export const RadialGlow=h(function s({size:e,color:t,alpha:o=.35,rings:n=8,falloff:i=1.7,style:a}){const d=1-Math.pow(1-o,1/n);const g=[];for(let p=0;p<n;p++){const u=e*Math.pow((n-p)/n,i);g.push(r(l,{style:{position:"absolute",left:(e-u)/2,top:(e-u)/2,width:u,height:u,borderRadius:u/2,backgroundColor:E(t,d)}},p))}return r(l,{style:[{width:e,height:e},a],pointerEvents:"none",shouldRasterizeIOS:b.OS==="ios",renderToHardwareTextureAndroid:b.OS==="android",children:g})});export const LinearFade=h(function s({color:e,from:t=0,to:o=1,bands:n=14,direction:i="down",flattenBase:a,style:d}){const g=i==="down"||i==="up";const p=i==="up"||i==="left";const u=100/n;const y=[];for(let f=0;f<n;f++){const x=(f+.5)/n;const V=t+(o-t)*(p?1-x:x);const R=a?L(e,V,a):E(e,V);y.push(r(l,{style:g?{position:"absolute",left:0,right:0,top:`${f*u}%`,height:`${u+.08}%`,backgroundColor:R}:{position:"absolute",top:0,bottom:0,left:`${f*u}%`,width:`${u+.08}%`,backgroundColor:R}},f))}return r(l,{style:[v,d],pointerEvents:"none",children:y})});export const Vignette=h(function s({color:e="#000000",alpha:t=.55,spread:o=.34}){const n=`${o*100}%`;return T(l,{style:v,pointerEvents:"none",children:[r(l,{style:{position:"absolute",left:0,right:0,top:0,height:n},children:r(LinearFade,{color:e,from:t,to:0,direction:"down",bands:14})}),r(l,{style:{position:"absolute",left:0,right:0,bottom:0,height:n},children:r(LinearFade,{color:e,from:0,to:t,direction:"down",bands:14})}),r(l,{style:{position:"absolute",top:0,bottom:0,left:0,width:n},children:r(LinearFade,{color:e,from:t,to:0,direction:"right",bands:10})}),r(l,{style:{position:"absolute",top:0,bottom:0,right:0,width:n},children:r(LinearFade,{color:e,from:0,to:t,direction:"right",bands:10})})]})});export const Base=h(function s({color:e}){return r(l,{style:[v,{backgroundColor:e}],pointerEvents:"none"})});export const hairline=A.hairlineWidth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{memo as K,useEffect as Ao,useState as Fo}from"react";import{Animated as X,AppState as yo,Dimensions as go,View as u}from"react-native";import{absoluteFill as L}from"../../../utils/absoluteFill.js";import{Base as fo,LinearFade as V,RadialGlow as eo,RasterLayer as M,Vignette as bo,usePulse as _}from"../primitives.js";import{lerpColor as mo,scatter as no,withAlpha as m}from"../rng.js";import{useSkyScrub as Co}from"../skyClock.js";import{jsx as n,jsxs as D,Fragment as ao}from"react/jsx-runtime";const lo=.46;const Z=6.5*60;const q=19*60;const ko=1440-(q-Z);const Eo=50;const Bo=56;const Lo=[[.24,-.12,.2],[-.16,.2,.13],[.08,.06,.1]];const R={skyTop:"#070C15",skyHorizon:"#040609",skyHorizonAlpha:1,seaColor:"#04070C",seaFade:"#010409",seaFadeAlpha:.5,hazeBand:"#17293F",hazeAlpha:.28,cloudRim:"#1D2A42",cloudRimAlpha:.35,cloudBody:"#070D18",cloudBodyAlpha:.94,peakNear:"#030609",peakFar:"#020408",glitter:"#CFE0F4",glitterAlpha:.95,bloom:"#A9C2DE",bloomAlpha:.15,glow:"#DCE8F6",glowAlpha:.34,disc:"#EDF3FB",horizonLine:"#9FB8D4",horizonLineAlpha:.12,underLine:"#C6DAF0",underLineAlpha:.32,vignette:"#020305",starAlpha:1,dayness:0};const wo={skyTop:"#12263E",skyHorizon:"#C4756B",skyHorizonAlpha:.5,seaColor:"#0C1E30",seaFade:"#03080F",seaFadeAlpha:.52,hazeBand:"#D98F7E",hazeAlpha:.34,cloudRim:"#F2A98C",cloudRimAlpha:.5,cloudBody:"#2E2B41",cloudBodyAlpha:.9,peakNear:"#1A2536",peakFar:"#131B29",glitter:"#F2C4A0",glitterAlpha:.8,bloom:"#FFB37A",bloomAlpha:.24,glow:"#FFD9B0",glowAlpha:.4,disc:"#FFE9C4",horizonLine:"#E8B49A",horizonLineAlpha:.24,underLine:"#FFD2A8",underLineAlpha:.4,vignette:"#080810",starAlpha:.35,dayness:.15};const zo={skyTop:"#27567D",skyHorizon:"#F2B26A",skyHorizonAlpha:.55,seaColor:"#12324C",seaFade:"#051220",seaFadeAlpha:.54,hazeBand:"#F2C08A",hazeAlpha:.36,cloudRim:"#FFDCB0",cloudRimAlpha:.6,cloudBody:"#7E88A6",cloudBodyAlpha:.88,peakNear:"#264A64",peakFar:"#1E3D54",glitter:"#FFD9A0",glitterAlpha:1.05,bloom:"#FFCE8A",bloomAlpha:.26,glow:"#FFE6C0",glowAlpha:.46,disc:"#FFF2D4",horizonLine:"#F5D2A4",horizonLineAlpha:.28,underLine:"#FFE0AE",underLineAlpha:.46,vignette:"#0A1420",starAlpha:0,dayness:.6};const so={skyTop:"#1C4E74",skyHorizon:"#A9CDE6",skyHorizonAlpha:.42,seaColor:"#16405E",seaFade:"#06192B",seaFadeAlpha:.55,hazeBand:"#CFE3F1",hazeAlpha:.3,cloudRim:"#FFFFFF",cloudRimAlpha:.6,cloudBody:"#C7DCEC",cloudBodyAlpha:.88,peakNear:"#2E5E80",peakFar:"#27516F",glitter:"#FFE9B0",glitterAlpha:1,bloom:"#FFE9B0",bloomAlpha:.18,glow:"#FFF4D2",glowAlpha:.42,disc:"#FFF9E6",horizonLine:"#E4F0F8",horizonLineAlpha:.2,underLine:"#FFEFC2",underLineAlpha:.42,vignette:"#0A2033",starAlpha:0,dayness:1};const Do={skyTop:"#31618B",skyHorizon:"#F5C26B",skyHorizonAlpha:.5,seaColor:"#1A3C58",seaFade:"#071626",seaFadeAlpha:.55,hazeBand:"#F2C888",hazeAlpha:.36,cloudRim:"#FFE0A8",cloudRimAlpha:.62,cloudBody:"#8FA3BC",cloudBodyAlpha:.88,peakNear:"#2A5070",peakFar:"#223F5A",glitter:"#FFCE7E",glitterAlpha:1.1,bloom:"#FFC26E",bloomAlpha:.24,glow:"#FFDCA0",glowAlpha:.48,disc:"#FFEDC2",horizonLine:"#F8D8A0",horizonLineAlpha:.28,underLine:"#FFD088",underLineAlpha:.48,vignette:"#0C1B2A",starAlpha:0,dayness:1};const Ro={skyTop:"#232F55",skyHorizon:"#E86A3C",skyHorizonAlpha:.6,seaColor:"#1E3049",seaFade:"#050A14",seaFadeAlpha:.55,hazeBand:"#F08A4A",hazeAlpha:.4,cloudRim:"#FFC48A",cloudRimAlpha:.65,cloudBody:"#3A2F45",cloudBodyAlpha:.9,peakNear:"#1C2438",peakFar:"#151C2C",glitter:"#FF9D5C",glitterAlpha:1.15,bloom:"#FF8A50",bloomAlpha:.3,glow:"#FFB27A",glowAlpha:.5,disc:"#FFD9A0",horizonLine:"#FFD2A0",horizonLineAlpha:.3,underLine:"#FFB070",underLineAlpha:.5,vignette:"#120A18",starAlpha:0,dayness:.4};const So={skyTop:"#131B33",skyHorizon:"#7A4260",skyHorizonAlpha:.45,seaColor:"#0B1526",seaFade:"#02060E",seaFadeAlpha:.52,hazeBand:"#3A2C4E",hazeAlpha:.3,cloudRim:"#5A4668",cloudRimAlpha:.4,cloudBody:"#12141F",cloudBodyAlpha:.92,peakNear:"#0A1220",peakFar:"#070D18",glitter:"#D8C4D8",glitterAlpha:.8,bloom:"#C0A8C4",bloomAlpha:.18,glow:"#E4D2E4",glowAlpha:.36,disc:"#F2E4E8",horizonLine:"#B49CB4",horizonLineAlpha:.18,underLine:"#D0BCD0",underLineAlpha:.34,vignette:"#050408",starAlpha:.5,dayness:0};const J=[[0,R],[300,R],[360,wo],[415,zo],[510,so],[1050,so],[1080,Do],[1130,Ro],[1180,So],[1245,R],[1440,R]];function xo(e,l,t){const a={};for(const i of Object.keys(e)){const c=e[i];const A=l[i];a[i]=typeof c==="number"?c+(A-c)*t:mo(c,A,t)}return a}function vo(e){for(let l=0;l<J.length-1;l++){const[t,a]=J[l];const[i,c]=J[l+1];if(e>=t&&e<=i){if(a===c||i===t)return a;return xo(a,c,(e-t)/(i-t))}}return R}const I=[[450,330],[540,420],[750,720],[990,1080],[1050,1130],[1140,1180],[1200,1260],[1890,1770]];export function workdaySceneMinutes(e){let l=e;if(l<I[0][0])l+=1440;for(let t=0;t<I.length-1;t++){const[a,i]=I[t];const[c,A]=I[t+1];if(l>=a&&l<=c){return(i+(l-a)/(c-a)*(A-i))%1440}}return e}function O(){const e=new Date;return e.getHours()*60+e.getMinutes()}function Ho(e){const[l,t]=Fo(O);Ao(()=>{if(!e)return;let a=null;let i=null;const c=()=>{if(a)clearTimeout(a);if(i)clearInterval(i);a=i=null};const A=()=>{t(O());const o=new Date;const h=6e4-(o.getSeconds()*1e3+o.getMilliseconds())+50;a=setTimeout(()=>{t(O());i=setInterval(()=>t(O()),6e4)},h)};A();const g=yo.addEventListener("change",o=>{c();if(o==="active")A()});return()=>{c();g.remove()}},[e]);return l}const ro=22;const Q=no(21175,ro*3);const No=[{at:[.16,.3],puffs:[[-62,4,150,20],[-44,-8,62,24],[-4,-14,74,30],[38,-4,54,20]],bodyAlpha:1},{at:[.84,.37],puffs:[[-55,3,130,18],[-30,-8,56,22],[8,-13,64,27],[42,-3,44,17]],bodyAlpha:1},{at:[.46,.425],puffs:[[-40,2,96,13],[-12,-6,48,16],[22,-2,38,12]],bodyAlpha:.95}];function To(e,l){if(l===null)return[0,-3.5];const t=Math.max(-4,Math.min(4,(l-e)*10));return[t,-3.5]}function Mo(e,l,t,a,i,c,A){const g=[];for(let o=0;o<e.puffs.length;o++){const[h,b,f,y]=e.puffs[o];g.push(n(u,{style:{position:"absolute",left:l+h+a[0]-f/2,top:t+b+a[1]-y/2,width:f,height:y,borderRadius:y/2,backgroundColor:i}},`${A}-r${o}`))}for(let o=0;o<e.puffs.length;o++){const[h,b,f,y]=e.puffs[o];g.push(n(u,{style:{position:"absolute",left:l+h-f/2,top:t+b-y/2,width:f,height:y,borderRadius:y/2,backgroundColor:c}},`${A}-b${o}`))}return g}const _o=[[.2,.42,6],[.3,.28,5],[.42,.52,4]];const Io=[[.03,120,24,1],[.11,96,36,0],[.2,140,24,1],[.29,76,15,0],[.9,96,18,1],[.98,130,27,0]];const Oo=[[.07,6],[.14,4.5],[.23,5.5]];const Po=[.06,.13,.18,.26];const io=[{count:44,seed:15009},{count:34,seed:30658},{count:26,seed:46313}];const Uo=io.map(e=>no(e.seed,e.count*4));const ho=7;const oo=K(function e({layerIndex:l,drive:t,lightXFrac:a,color:i,alphaScale:c,width:A,height:g,animated:o}){const h=_(t==="swayA"?9e3:12500,o&&t!=="breathe");const b=_(6200,o&&t==="breathe");const f=A*a;const y=g*lo;const P=io[l];const w=Uo[l];const C=[];for(let s=0;s<P.count;s++){const B=w[s*4];const S=w[s*4+1];const U=w[s*4+2];const W=w[s*4+3];const x=y+4+B*(g-y)*.94;const $=A*(.03+B*.16);const G=f+(S-.5)*2*$;const v=6+B*26+U*10;const j=B<.3?1:B<.62?2:3;const Y=Math.sin(Math.PI*(.12+B*.82));const H=Math.max(.25,1-Math.abs(S-.5)*1.4);const N=(.16+Y*.48)*H*(.75+W*.25)*c;if(N<.02)continue;C.push(n(u,{style:{position:"absolute",left:G-v/2,top:Math.round(x/ho)*ho,width:v,height:j,borderRadius:.5,backgroundColor:m(i,Math.min(1,N))}},s))}const E=t==="breathe"?{opacity:b.interpolate({inputRange:[0,1],outputRange:[.55,1]})}:{transform:[{translateX:h.interpolate({inputRange:[0,1],outputRange:t==="swayA"?[-7,7]:[6,-6]})}]};return n(X.View,{style:[L,E],pointerEvents:"none",children:n(M,{style:L,children:C})})});function co(e,l,t){return{xFrac:.08+.84*e,x:l*(.08+.84*e),y:t-Math.sin(Math.PI*e)*t*.75,altitude:Math.sin(Math.PI*e)}}export const LiveSkyTunable=K(function e({clockMinutes:l,...t}){const{width:a,height:i,animated:c}=t;const A=Ho(l===void 0);const g=workdaySceneMinutes(l??A);const o=vo(g);const h=i*lo;const b=go.get("window").width;const f=(g-Z)/(q-Z);const y=(g-q+1440)%1440/ko;const P=f>=0&&f<=1;const w=y>=0&&y<=1;const C=P?co(f,a,h):null;const E=w?co(y,a,h):null;const s=C&&E?C.altitude>=E.altitude?C:E:C??E;const B=_(7400,c&&o.starAlpha>.01);const S=_(26e3,c);const U=B.interpolate({inputRange:[0,1],outputRange:[.7,1]});const W=S.interpolate({inputRange:[0,1],outputRange:[-8,8]});const x=[];if(o.starAlpha>.01){for(let r=0;r<ro;r++){const d=Q[r*3+2];const F=1+d*1.3;const p=Q[r*3]*a;const k=Q[r*3+1]*h*.92;if(s&&Math.hypot(p-s.x,k-s.y)<b*.18)continue;x.push(n(u,{style:{position:"absolute",left:p-F/2,top:k-F/2,width:F,height:F,borderRadius:F/2,backgroundColor:m("#C9DAF0",(.3+d*.4)*o.starAlpha)}},r))}}const $=m(o.cloudRim,o.cloudRimAlpha);const G=No.flatMap((r,d)=>Mo(r,a*r.at[0],i*r.at[1],To(r.at[0],s?s.xFrac:null),$,m(o.cloudBody,r.bodyAlpha*o.cloudBodyAlpha),`c${d}`));const v=o.dayness>.03?_o.flatMap(([r,d,F],p)=>{const k={position:"absolute",top:h*d,width:F,height:1.4,borderRadius:.7,backgroundColor:m("#123049",.75*o.dayness)};const T=a*r;return[n(u,{style:[k,{left:T-F,transform:[{rotate:"18deg"}]}]},`g${p}l`),n(u,{style:[k,{left:T,transform:[{rotate:"-18deg"}]}]},`g${p}r`)]}):[];const j=Io.map(([r,d,F,p],k)=>n(u,{style:{position:"absolute",left:a*r-d/2,top:h-F,width:0,height:0,borderLeftWidth:d/2,borderRightWidth:d/2,borderBottomWidth:F,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:p?o.peakNear:o.peakFar}},`m${k}`));const Y=o.dayness>.03?Oo.map(([r,d],F)=>n(u,{style:{position:"absolute",left:a*r,top:h-d,width:0,height:0,borderLeftWidth:2,borderRightWidth:2,borderBottomWidth:d,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:m("#F2F8FC",.85*o.dayness)}},`s${F}`)):[];const H=1-o.dayness;const N=H>.03?Po.map((r,d)=>n(u,{style:{position:"absolute",left:a*r,top:h-3,width:2,height:1.5,backgroundColor:m("#E8D9A8",(.55+d%2*.2)*H)}},`sl${d}`)):[];const to=(r,d,F)=>{const p=d?Bo:Eo;return n(u,{style:{position:"absolute",left:r.x-p/2,top:r.y-p/2,width:p,height:p,borderRadius:p/2,backgroundColor:d?"#EDF3FB":o.disc,overflow:"hidden"},children:d?Lo.map(([k,T,po],uo)=>{const z=p*po;return n(u,{style:{position:"absolute",left:p/2+k*p-z/2,top:p/2+T*p-z/2,width:z,height:z,borderRadius:z/2,backgroundColor:m("#9DB2C8",.32)}},uo)}):null},F)};return D(u,{style:[L,{overflow:"hidden"}],pointerEvents:"none",children:[n(fo,{color:o.skyTop}),n(u,{style:{position:"absolute",left:0,right:0,top:0,height:h},children:n(V,{color:o.skyHorizon,from:0,to:o.skyHorizonAlpha,direction:"down",bands:20,flattenBase:o.skyTop})}),o.starAlpha>.01?n(X.View,{style:[L,{opacity:U}],pointerEvents:"none",children:n(M,{style:L,children:x})}):null,n(X.View,{style:[L,{transform:[{translateX:W}]}],pointerEvents:"none",children:D(M,{style:L,children:[G,v]})}),s?D(ao,{children:[n(eo,{size:b*.46,color:o.bloom,alpha:o.bloomAlpha,rings:20,falloff:1.9,style:{position:"absolute",left:s.x-b*.23,top:s.y-b*.23}}),n(eo,{size:118,color:o.glow,alpha:o.glowAlpha,rings:10,falloff:1.6,style:{position:"absolute",left:s.x-59,top:s.y-59}})]}):null,C?to(C,false,"sun"):null,E?to(E,true,"moon"):null,n(u,{style:{position:"absolute",left:0,right:0,top:h,bottom:0,backgroundColor:o.seaColor}}),n(u,{style:{position:"absolute",left:0,right:0,top:h-76,height:76},children:n(V,{color:o.hazeBand,from:0,to:o.hazeAlpha,direction:"down",bands:12})}),D(M,{style:L,children:[j,Y,N]}),n(u,{style:{position:"absolute",left:0,right:0,top:h,height:1,backgroundColor:m(o.horizonLine,o.horizonLineAlpha)}}),s?n(u,{style:{position:"absolute",left:s.x-a*.16,top:h,width:a*.32,height:1,backgroundColor:m(o.underLine,o.underLineAlpha)}}):null,n(u,{style:{position:"absolute",left:0,right:0,top:h,bottom:0},children:n(V,{color:o.seaFade,from:0,to:o.seaFadeAlpha,direction:"down",bands:12})}),s?D(ao,{children:[n(oo,{layerIndex:0,drive:"swayA",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t}),n(oo,{layerIndex:1,drive:"swayB",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t}),n(oo,{layerIndex:2,drive:"breathe",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t})]}):null,n(bo,{color:o.vignette,alpha:.4,spread:.34})]})});export const LiveSky=K(function e(l){const t=Co();return n(LiveSkyTunable,{...l,clockMinutes:t??void 0})});
|
|
1
|
+
"use strict";import{memo as K,useEffect as Ao,useState as Fo}from"react";import{Animated as X,Dimensions as yo,View as u}from"react-native";import{absoluteFill as w}from"../../../utils/absoluteFill.js";import{Base as go,LinearFade as V,RadialGlow as eo,RasterLayer as M,Vignette as fo,usePulse as _}from"../primitives.js";import{lerpColor as bo,scatter as no,withAlpha as m}from"../rng.js";import{useSkyScrub as mo}from"../skyClock.js";import{subscribeRealAppState as Co}from"../../../utils/realAppState.js";import{jsx as n,jsxs as R,Fragment as ao}from"react/jsx-runtime";const lo=.46;const Z=6.5*60;const q=19*60;const ko=1440-(q-Z);const Eo=50;const Bo=56;const wo=[[.24,-.12,.2],[-.16,.2,.13],[.08,.06,.1]];const D={skyTop:"#070C15",skyHorizon:"#040609",skyHorizonAlpha:1,seaColor:"#04070C",seaFade:"#010409",seaFadeAlpha:.5,hazeBand:"#17293F",hazeAlpha:.28,cloudRim:"#1D2A42",cloudRimAlpha:.35,cloudBody:"#070D18",cloudBodyAlpha:.94,peakNear:"#030609",peakFar:"#020408",glitter:"#CFE0F4",glitterAlpha:.95,bloom:"#A9C2DE",bloomAlpha:.15,glow:"#DCE8F6",glowAlpha:.34,disc:"#EDF3FB",horizonLine:"#9FB8D4",horizonLineAlpha:.12,underLine:"#C6DAF0",underLineAlpha:.32,vignette:"#020305",starAlpha:1,dayness:0};const Lo={skyTop:"#12263E",skyHorizon:"#C4756B",skyHorizonAlpha:.5,seaColor:"#0C1E30",seaFade:"#03080F",seaFadeAlpha:.52,hazeBand:"#D98F7E",hazeAlpha:.34,cloudRim:"#F2A98C",cloudRimAlpha:.5,cloudBody:"#2E2B41",cloudBodyAlpha:.9,peakNear:"#1A2536",peakFar:"#131B29",glitter:"#F2C4A0",glitterAlpha:.8,bloom:"#FFB37A",bloomAlpha:.24,glow:"#FFD9B0",glowAlpha:.4,disc:"#FFE9C4",horizonLine:"#E8B49A",horizonLineAlpha:.24,underLine:"#FFD2A8",underLineAlpha:.4,vignette:"#080810",starAlpha:.35,dayness:.15};const zo={skyTop:"#27567D",skyHorizon:"#F2B26A",skyHorizonAlpha:.55,seaColor:"#12324C",seaFade:"#051220",seaFadeAlpha:.54,hazeBand:"#F2C08A",hazeAlpha:.36,cloudRim:"#FFDCB0",cloudRimAlpha:.6,cloudBody:"#7E88A6",cloudBodyAlpha:.88,peakNear:"#264A64",peakFar:"#1E3D54",glitter:"#FFD9A0",glitterAlpha:1.05,bloom:"#FFCE8A",bloomAlpha:.26,glow:"#FFE6C0",glowAlpha:.46,disc:"#FFF2D4",horizonLine:"#F5D2A4",horizonLineAlpha:.28,underLine:"#FFE0AE",underLineAlpha:.46,vignette:"#0A1420",starAlpha:0,dayness:.6};const so={skyTop:"#1C4E74",skyHorizon:"#A9CDE6",skyHorizonAlpha:.42,seaColor:"#16405E",seaFade:"#06192B",seaFadeAlpha:.55,hazeBand:"#CFE3F1",hazeAlpha:.3,cloudRim:"#FFFFFF",cloudRimAlpha:.6,cloudBody:"#C7DCEC",cloudBodyAlpha:.88,peakNear:"#2E5E80",peakFar:"#27516F",glitter:"#FFE9B0",glitterAlpha:1,bloom:"#FFE9B0",bloomAlpha:.18,glow:"#FFF4D2",glowAlpha:.42,disc:"#FFF9E6",horizonLine:"#E4F0F8",horizonLineAlpha:.2,underLine:"#FFEFC2",underLineAlpha:.42,vignette:"#0A2033",starAlpha:0,dayness:1};const Ro={skyTop:"#31618B",skyHorizon:"#F5C26B",skyHorizonAlpha:.5,seaColor:"#1A3C58",seaFade:"#071626",seaFadeAlpha:.55,hazeBand:"#F2C888",hazeAlpha:.36,cloudRim:"#FFE0A8",cloudRimAlpha:.62,cloudBody:"#8FA3BC",cloudBodyAlpha:.88,peakNear:"#2A5070",peakFar:"#223F5A",glitter:"#FFCE7E",glitterAlpha:1.1,bloom:"#FFC26E",bloomAlpha:.24,glow:"#FFDCA0",glowAlpha:.48,disc:"#FFEDC2",horizonLine:"#F8D8A0",horizonLineAlpha:.28,underLine:"#FFD088",underLineAlpha:.48,vignette:"#0C1B2A",starAlpha:0,dayness:1};const Do={skyTop:"#232F55",skyHorizon:"#E86A3C",skyHorizonAlpha:.6,seaColor:"#1E3049",seaFade:"#050A14",seaFadeAlpha:.55,hazeBand:"#F08A4A",hazeAlpha:.4,cloudRim:"#FFC48A",cloudRimAlpha:.65,cloudBody:"#3A2F45",cloudBodyAlpha:.9,peakNear:"#1C2438",peakFar:"#151C2C",glitter:"#FF9D5C",glitterAlpha:1.15,bloom:"#FF8A50",bloomAlpha:.3,glow:"#FFB27A",glowAlpha:.5,disc:"#FFD9A0",horizonLine:"#FFD2A0",horizonLineAlpha:.3,underLine:"#FFB070",underLineAlpha:.5,vignette:"#120A18",starAlpha:0,dayness:.4};const So={skyTop:"#131B33",skyHorizon:"#7A4260",skyHorizonAlpha:.45,seaColor:"#0B1526",seaFade:"#02060E",seaFadeAlpha:.52,hazeBand:"#3A2C4E",hazeAlpha:.3,cloudRim:"#5A4668",cloudRimAlpha:.4,cloudBody:"#12141F",cloudBodyAlpha:.92,peakNear:"#0A1220",peakFar:"#070D18",glitter:"#D8C4D8",glitterAlpha:.8,bloom:"#C0A8C4",bloomAlpha:.18,glow:"#E4D2E4",glowAlpha:.36,disc:"#F2E4E8",horizonLine:"#B49CB4",horizonLineAlpha:.18,underLine:"#D0BCD0",underLineAlpha:.34,vignette:"#050408",starAlpha:.5,dayness:0};const J=[[0,D],[300,D],[360,Lo],[415,zo],[510,so],[1050,so],[1080,Ro],[1130,Do],[1180,So],[1245,D],[1440,D]];function xo(e,l,t){const a={};for(const i of Object.keys(e)){const c=e[i];const A=l[i];a[i]=typeof c==="number"?c+(A-c)*t:bo(c,A,t)}return a}function vo(e){for(let l=0;l<J.length-1;l++){const[t,a]=J[l];const[i,c]=J[l+1];if(e>=t&&e<=i){if(a===c||i===t)return a;return xo(a,c,(e-t)/(i-t))}}return D}const I=[[450,330],[540,420],[750,720],[990,1080],[1050,1130],[1140,1180],[1200,1260],[1890,1770]];export function workdaySceneMinutes(e){let l=e;if(l<I[0][0])l+=1440;for(let t=0;t<I.length-1;t++){const[a,i]=I[t];const[c,A]=I[t+1];if(l>=a&&l<=c){return(i+(l-a)/(c-a)*(A-i))%1440}}return e}function O(){const e=new Date;return e.getHours()*60+e.getMinutes()}function Ho(e){const[l,t]=Fo(O);Ao(()=>{if(!e)return;let a=null;let i=null;const c=()=>{if(a)clearTimeout(a);if(i)clearInterval(i);a=i=null};const A=()=>{t(O());const o=new Date;const h=6e4-(o.getSeconds()*1e3+o.getMilliseconds())+50;a=setTimeout(()=>{t(O());i=setInterval(()=>t(O()),6e4)},h)};A();const g=Co(o=>{c();if(o==="active")A()});return()=>{c();g.remove()}},[e]);return l}const ro=22;const Q=no(21175,ro*3);const No=[{at:[.16,.3],puffs:[[-62,4,150,20],[-44,-8,62,24],[-4,-14,74,30],[38,-4,54,20]],bodyAlpha:1},{at:[.84,.37],puffs:[[-55,3,130,18],[-30,-8,56,22],[8,-13,64,27],[42,-3,44,17]],bodyAlpha:1},{at:[.46,.425],puffs:[[-40,2,96,13],[-12,-6,48,16],[22,-2,38,12]],bodyAlpha:.95}];function To(e,l){if(l===null)return[0,-3.5];const t=Math.max(-4,Math.min(4,(l-e)*10));return[t,-3.5]}function Mo(e,l,t,a,i,c,A){const g=[];for(let o=0;o<e.puffs.length;o++){const[h,b,f,y]=e.puffs[o];g.push(n(u,{style:{position:"absolute",left:l+h+a[0]-f/2,top:t+b+a[1]-y/2,width:f,height:y,borderRadius:y/2,backgroundColor:i}},`${A}-r${o}`))}for(let o=0;o<e.puffs.length;o++){const[h,b,f,y]=e.puffs[o];g.push(n(u,{style:{position:"absolute",left:l+h-f/2,top:t+b-y/2,width:f,height:y,borderRadius:y/2,backgroundColor:c}},`${A}-b${o}`))}return g}const _o=[[.2,.42,6],[.3,.28,5],[.42,.52,4]];const Io=[[.03,120,24,1],[.11,96,36,0],[.2,140,24,1],[.29,76,15,0],[.9,96,18,1],[.98,130,27,0]];const Oo=[[.07,6],[.14,4.5],[.23,5.5]];const Po=[.06,.13,.18,.26];const io=[{count:44,seed:15009},{count:34,seed:30658},{count:26,seed:46313}];const Uo=io.map(e=>no(e.seed,e.count*4));const ho=7;const oo=K(function e({layerIndex:l,drive:t,lightXFrac:a,color:i,alphaScale:c,width:A,height:g,animated:o}){const h=_(t==="swayA"?9e3:12500,o&&t!=="breathe");const b=_(6200,o&&t==="breathe");const f=A*a;const y=g*lo;const P=io[l];const L=Uo[l];const C=[];for(let s=0;s<P.count;s++){const B=L[s*4];const S=L[s*4+1];const U=L[s*4+2];const W=L[s*4+3];const x=y+4+B*(g-y)*.94;const $=A*(.03+B*.16);const G=f+(S-.5)*2*$;const v=6+B*26+U*10;const j=B<.3?1:B<.62?2:3;const Y=Math.sin(Math.PI*(.12+B*.82));const H=Math.max(.25,1-Math.abs(S-.5)*1.4);const N=(.16+Y*.48)*H*(.75+W*.25)*c;if(N<.02)continue;C.push(n(u,{style:{position:"absolute",left:G-v/2,top:Math.round(x/ho)*ho,width:v,height:j,borderRadius:.5,backgroundColor:m(i,Math.min(1,N))}},s))}const E=t==="breathe"?{opacity:b.interpolate({inputRange:[0,1],outputRange:[.55,1]})}:{transform:[{translateX:h.interpolate({inputRange:[0,1],outputRange:t==="swayA"?[-7,7]:[6,-6]})}]};return n(X.View,{style:[w,E],pointerEvents:"none",children:n(M,{style:w,children:C})})});function co(e,l,t){return{xFrac:.08+.84*e,x:l*(.08+.84*e),y:t-Math.sin(Math.PI*e)*t*.75,altitude:Math.sin(Math.PI*e)}}export const LiveSkyTunable=K(function e({clockMinutes:l,...t}){const{width:a,height:i,animated:c}=t;const A=Ho(l===void 0);const g=workdaySceneMinutes(l??A);const o=vo(g);const h=i*lo;const b=yo.get("window").width;const f=(g-Z)/(q-Z);const y=(g-q+1440)%1440/ko;const P=f>=0&&f<=1;const L=y>=0&&y<=1;const C=P?co(f,a,h):null;const E=L?co(y,a,h):null;const s=C&&E?C.altitude>=E.altitude?C:E:C??E;const B=_(7400,c&&o.starAlpha>.01);const S=_(26e3,c);const U=B.interpolate({inputRange:[0,1],outputRange:[.7,1]});const W=S.interpolate({inputRange:[0,1],outputRange:[-8,8]});const x=[];if(o.starAlpha>.01){for(let r=0;r<ro;r++){const d=Q[r*3+2];const F=1+d*1.3;const p=Q[r*3]*a;const k=Q[r*3+1]*h*.92;if(s&&Math.hypot(p-s.x,k-s.y)<b*.18)continue;x.push(n(u,{style:{position:"absolute",left:p-F/2,top:k-F/2,width:F,height:F,borderRadius:F/2,backgroundColor:m("#C9DAF0",(.3+d*.4)*o.starAlpha)}},r))}}const $=m(o.cloudRim,o.cloudRimAlpha);const G=No.flatMap((r,d)=>Mo(r,a*r.at[0],i*r.at[1],To(r.at[0],s?s.xFrac:null),$,m(o.cloudBody,r.bodyAlpha*o.cloudBodyAlpha),`c${d}`));const v=o.dayness>.03?_o.flatMap(([r,d,F],p)=>{const k={position:"absolute",top:h*d,width:F,height:1.4,borderRadius:.7,backgroundColor:m("#123049",.75*o.dayness)};const T=a*r;return[n(u,{style:[k,{left:T-F,transform:[{rotate:"18deg"}]}]},`g${p}l`),n(u,{style:[k,{left:T,transform:[{rotate:"-18deg"}]}]},`g${p}r`)]}):[];const j=Io.map(([r,d,F,p],k)=>n(u,{style:{position:"absolute",left:a*r-d/2,top:h-F,width:0,height:0,borderLeftWidth:d/2,borderRightWidth:d/2,borderBottomWidth:F,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:p?o.peakNear:o.peakFar}},`m${k}`));const Y=o.dayness>.03?Oo.map(([r,d],F)=>n(u,{style:{position:"absolute",left:a*r,top:h-d,width:0,height:0,borderLeftWidth:2,borderRightWidth:2,borderBottomWidth:d,borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:m("#F2F8FC",.85*o.dayness)}},`s${F}`)):[];const H=1-o.dayness;const N=H>.03?Po.map((r,d)=>n(u,{style:{position:"absolute",left:a*r,top:h-3,width:2,height:1.5,backgroundColor:m("#E8D9A8",(.55+d%2*.2)*H)}},`sl${d}`)):[];const to=(r,d,F)=>{const p=d?Bo:Eo;return n(u,{style:{position:"absolute",left:r.x-p/2,top:r.y-p/2,width:p,height:p,borderRadius:p/2,backgroundColor:d?"#EDF3FB":o.disc,overflow:"hidden"},children:d?wo.map(([k,T,po],uo)=>{const z=p*po;return n(u,{style:{position:"absolute",left:p/2+k*p-z/2,top:p/2+T*p-z/2,width:z,height:z,borderRadius:z/2,backgroundColor:m("#9DB2C8",.32)}},uo)}):null},F)};return R(u,{style:[w,{overflow:"hidden"}],pointerEvents:"none",children:[n(go,{color:o.skyTop}),n(u,{style:{position:"absolute",left:0,right:0,top:0,height:h},children:n(V,{color:o.skyHorizon,from:0,to:o.skyHorizonAlpha,direction:"down",bands:20,flattenBase:o.skyTop})}),o.starAlpha>.01?n(X.View,{style:[w,{opacity:U}],pointerEvents:"none",children:n(M,{style:w,children:x})}):null,n(X.View,{style:[w,{transform:[{translateX:W}]}],pointerEvents:"none",children:R(M,{style:w,children:[G,v]})}),s?R(ao,{children:[n(eo,{size:b*.46,color:o.bloom,alpha:o.bloomAlpha,rings:20,falloff:1.9,style:{position:"absolute",left:s.x-b*.23,top:s.y-b*.23}}),n(eo,{size:118,color:o.glow,alpha:o.glowAlpha,rings:10,falloff:1.6,style:{position:"absolute",left:s.x-59,top:s.y-59}})]}):null,C?to(C,false,"sun"):null,E?to(E,true,"moon"):null,n(u,{style:{position:"absolute",left:0,right:0,top:h,bottom:0,backgroundColor:o.seaColor}}),n(u,{style:{position:"absolute",left:0,right:0,top:h-76,height:76},children:n(V,{color:o.hazeBand,from:0,to:o.hazeAlpha,direction:"down",bands:12})}),R(M,{style:w,children:[j,Y,N]}),n(u,{style:{position:"absolute",left:0,right:0,top:h,height:1,backgroundColor:m(o.horizonLine,o.horizonLineAlpha)}}),s?n(u,{style:{position:"absolute",left:s.x-a*.16,top:h,width:a*.32,height:1,backgroundColor:m(o.underLine,o.underLineAlpha)}}):null,n(u,{style:{position:"absolute",left:0,right:0,top:h,bottom:0},children:n(V,{color:o.seaFade,from:0,to:o.seaFadeAlpha,direction:"down",bands:12})}),s?R(ao,{children:[n(oo,{layerIndex:0,drive:"swayA",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t}),n(oo,{layerIndex:1,drive:"swayB",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t}),n(oo,{layerIndex:2,drive:"breathe",lightXFrac:s.xFrac,color:o.glitter,alphaScale:o.glitterAlpha,...t})]}):null,n(fo,{color:o.vignette,alpha:.4,spread:.34})]})});export const LiveSky=K(function e(l){const t=mo();return n(LiveSkyTunable,{...l,clockMinutes:t??void 0})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{View as
|
|
1
|
+
"use strict";import{View as r,Text as l,TouchableOpacity as L,StyleSheet as H}from"react-native";import{ChevronDown as j,ChevronRight as B}from"../../icons/index.js";import{night as t}from"../night/nightTheme.js";import{monoFont as w}from"../fonts.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";export function CompactRow({statusDotColor:a,statusLabel:b,statusSublabel:g,primaryText:x,secondaryText:c,secondaryAccessory:y,expandedContent:u,isExpanded:i,badgeText:s,badgeColor:C,customBadge:d,showChevron:S,bottomRightText:h,isSelected:R,onPress:f,disabled:T,expandedGlowColor:m,testID:I,statusTestID:W,statusSublabelTestID:v,primaryTestID:D,secondaryTestID:z,accessibilityLabel:O,trailingAction:p}){return o(r,{style:[e.rowWrapper,i&&e.rowWrapperExpanded],children:n(r,{style:[e.row,R&&e.selectedRow,i&&[e.expandedRowActive,{borderColor:m||t.color.accent,borderBottomColor:m||t.color.accent,shadowColor:m||t.color.accent}]],children:[n(r,{style:e.headerRow,children:[o(L,{style:e.headerPress,onPress:f,activeOpacity:.8,disabled:T||!f,testID:I,accessibilityLabel:O,accessibilityRole:f?"button":void 0,children:n(r,{style:e.rowContent,children:[n(r,{style:e.statusSection,children:[o(r,{style:[e.statusDot,{backgroundColor:a}]}),n(r,{style:e.statusInfo,children:[o(l,{style:[e.statusLabel,{color:a}],numberOfLines:1,testID:W,children:b}),g?o(l,{style:e.observerText,numberOfLines:1,testID:v,children:g}):null]})]}),n(r,{style:e.querySection,children:[o(l,{style:e.queryHash,numberOfLines:i?void 0:2,testID:D,children:x}),!i&&(c||y)?n(r,{style:e.secondaryRow,children:[c?o(l,{style:e.secondaryText,numberOfLines:1,testID:z,children:c}):null,y]}):null]}),n(r,{style:e.rightSection,children:[(d||s!==void 0||!i&&h)&&n(r,{style:e.badgeContainer,children:[d?d:s!==void 0?o(l,{style:[e.statusBadge,{color:C||a}],children:s}):null,!i&&h?o(l,{style:e.bottomRightText,numberOfLines:1,children:h}):null]}),S&&o(r,{style:e.chevronContainer,children:i?o(j,{size:14,color:t.color.textTertiary}):o(B,{size:14,color:t.color.textTertiary})})]})]})}),p?o(r,{style:e.trailingAction,children:p}):null]}),i&&u&&o(r,{style:e.expandedContent,children:u})]})})}const e=H.create({rowWrapper:{position:"relative",marginHorizontal:8,marginVertical:3},rowWrapperExpanded:{marginVertical:12},row:{backgroundColor:"rgba(12, 12, 12, 0.9)",borderRadius:8,borderWidth:1,borderColor:t.color.border,borderBottomWidth:1,borderBottomColor:t.color.separator,padding:12,paddingHorizontal:12,transform:[{scale:1}]},selectedRow:{backgroundColor:t.color.accentSoft,borderColor:t.color.accentBorderStrong,transform:[{scale:1.01}],shadowColor:t.color.accent,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:8,elevation:2},expandedRowActive:{transform:[{scale:1.02}],borderWidth:2,paddingBottom:16,shadowOffset:{width:0,height:0},shadowOpacity:.8,shadowRadius:20,elevation:10},headerRow:{flexDirection:"row",alignItems:"center"},headerPress:{flex:1,minWidth:0},trailingAction:{marginLeft:8,justifyContent:"center"},rowContent:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},statusSection:{flexDirection:"row",alignItems:"center",gap:8,width:90,minWidth:90},statusDot:{width:8,height:8,borderRadius:4},statusInfo:{flex:1,maxWidth:70},statusLabel:{fontSize:11,fontWeight:"600",lineHeight:14},observerText:{fontSize:10,color:t.color.textTertiary,marginTop:1},querySection:{flex:2,paddingHorizontal:12},queryHash:{fontFamily:w,fontSize:12,color:t.color.text,lineHeight:16},secondaryRow:{flexDirection:"row",alignItems:"center",gap:6,marginTop:1},secondaryText:{fontSize:10,color:t.color.textTertiary,marginTop:1,flexShrink:1},rightSection:{flexDirection:"row",alignItems:"center",gap:8},badgeContainer:{flexDirection:"column",alignItems:"flex-end",gap:2},statusBadge:{fontSize:12,fontWeight:"600",fontVariant:["tabular-nums"]},chevronContainer:{padding:2},expandedContent:{marginTop:8,paddingTop:8,borderTopWidth:1,borderTopColor:t.color.separator,marginLeft:24},bottomRightText:{fontSize:9,color:t.color.textTertiary,fontFamily:w}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{absoluteFill}from"./absoluteFill.js";export{displayValue,parseDisplayValue}from"./displayValue.js";export{getSafeAreaInsets}from"./getSafeAreaInsets";export{persistentStorage,isUsingPersistentStorage,getStorageBackendType}from"./persistentStorage";export{safeStringify}from"./safeStringify.js";export{getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize}from"./typeHelpers.js";export{parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath}from"./valueFormatting.js";export{loadOptionalModule,getCachedOptionalModule}from"./loadOptionalModule.js";export{setRenderCaptureProvider,getRenderCaptureProvider}from"./renderCaptureRegistry.js";export{registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders}from"./stateSnapshotRegistry.js";export{serialize as superJsonSerialize,deserialize as superJsonDeserialize}from"./minimalSuperJSON.js";export{reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS}from"./reloadApp.js";export{getDevServerOrigin}from"./devServer";export{realNow}from"./realNow.js";export{Subscribable}from"./subscribable.js";export{subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange}from"./subscriberCountNotifier.js";export{useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./safeExpoRouter";export{getBrowserStorage,subscribeToBrowserStorage}from"./browserAsyncStorage.js";export{browserRouter,getBrowserHref,getBrowserRouteURL,registerBrowserRouter,subscribeBrowserNavigation}from"./browserNavigation.js";export{isDOMElement,getDOMControlProps,getDOMFiber,getDOMNodeHandle,getDOMPublicInstance,resolveDOMEventEmitter}from"./domRuntime.js";export{registerToolModules,getRegisteredToolModule,getToolModuleVersion}from"./toolModules.js";export{loadToolModule}from"./loadToolModule";
|
|
1
|
+
"use strict";export{absoluteFill}from"./absoluteFill.js";export{displayValue,parseDisplayValue}from"./displayValue.js";export{getSafeAreaInsets}from"./getSafeAreaInsets";export{persistentStorage,isUsingPersistentStorage,getStorageBackendType}from"./persistentStorage";export{safeStringify}from"./safeStringify.js";export{getValueType,isPrimitive,isJsonSerializable,isValidJson,getConstructorName,isEmpty,getValueSize}from"./typeHelpers.js";export{parseValue,formatValue,getTypeColor,truncateText,flattenObject,formatPath}from"./valueFormatting.js";export{loadOptionalModule,getCachedOptionalModule}from"./loadOptionalModule.js";export{setRenderCaptureProvider,getRenderCaptureProvider}from"./renderCaptureRegistry.js";export{registerStateSnapshotProvider,getStateSnapshotProviders,getStateSnapshotProvider,subscribeToStateSnapshotProviders}from"./stateSnapshotRegistry.js";export{serialize as superJsonSerialize,deserialize as superJsonDeserialize}from"./minimalSuperJSON.js";export{reloadApp,scheduleReloadApp,resolveReloadStrategy,REMOTE_RELOAD_DELAY_MS}from"./reloadApp.js";export{getDevServerOrigin}from"./devServer";export{realNow}from"./realNow.js";export{getRealAppState,subscribeRealAppState,BUOY_SYNTHETIC_MARK,countBuoyListener}from"./realAppState.js";export{Subscribable}from"./subscribable.js";export{subscriberCountNotifier,subscribeToSubscriberCountChanges,notifySubscriberCountChange}from"./subscriberCountNotifier.js";export{useSafeRouter,useSafePathname,useSafeSegments,useSafeGlobalSearchParams,getSafeRouter,getSafeCurrentPathname,getSafeCurrentRoute,isExpoRouterAvailable}from"./safeExpoRouter";export{getBrowserStorage,subscribeToBrowserStorage}from"./browserAsyncStorage.js";export{browserRouter,getBrowserHref,getBrowserRouteURL,registerBrowserRouter,subscribeBrowserNavigation}from"./browserNavigation.js";export{isDOMElement,getDOMControlProps,getDOMFiber,getDOMNodeHandle,getDOMPublicInstance,resolveDOMEventEmitter}from"./domRuntime.js";export{registerToolModules,getRegisteredToolModule,getToolModuleVersion}from"./toolModules.js";export{loadToolModule}from"./loadToolModule";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{getRegisteredToolModule as g}from"./toolModules.js";export function loadToolModule(e){const r=g(e);if(r)return r;try{switch(e){case"@buoy-gg/license":return require("@buoy-gg/license");case"@buoy-gg/storage":return require("@buoy-gg/storage");case"@buoy-gg/network":return require("@buoy-gg/network");case"@buoy-gg/redux":return require("@buoy-gg/redux");case"@buoy-gg/zustand":return require("@buoy-gg/zustand");case"@buoy-gg/jotai":return require("@buoy-gg/jotai");case"@buoy-gg/react-query":return require("@buoy-gg/react-query");case"@buoy-gg/route-events":return require("@buoy-gg/route-events");case"@buoy-gg/highlight-updates":return require("@buoy-gg/highlight-updates");case"@buoy-gg/core":return require("@buoy-gg/core");case"@buoy-gg/shared-ui":return require("../index");case"@buoy-gg/shared-ui/dataViewer":return require("../dataViewer");default:throw new Error(`Unknown tool module: ${e}`)}}catch(u){throw u}}
|
|
1
|
+
"use strict";import{getRegisteredToolModule as g}from"./toolModules.js";export function loadToolModule(e){const r=g(e);if(r)return r;try{switch(e){case"@buoy-gg/license":return require("@buoy-gg/license");case"@buoy-gg/storage":return require("@buoy-gg/storage");case"@buoy-gg/network":return require("@buoy-gg/network");case"@buoy-gg/redux":return require("@buoy-gg/redux");case"@buoy-gg/zustand":return require("@buoy-gg/zustand");case"@buoy-gg/jotai":return require("@buoy-gg/jotai");case"@buoy-gg/react-query":return require("@buoy-gg/react-query");case"@buoy-gg/route-events":return require("@buoy-gg/route-events");case"@buoy-gg/highlight-updates":return require("@buoy-gg/highlight-updates");case"@buoy-gg/core":return require("@buoy-gg/core");case"@buoy-gg/events":return require("@buoy-gg/events");case"@buoy-gg/clock":return require("@buoy-gg/clock");case"@buoy-gg/shared-ui":return require("../index");case"@buoy-gg/shared-ui/dataViewer":return require("../dataViewer");default:throw new Error(`Unknown tool module: ${e}`)}}catch(u){throw u}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{AppState as o,DeviceEventEmitter as p,Platform as S}from"react-native";export const BUOY_SYNTHETIC_MARK="__buoySynthetic";export function countBuoyListener(t,n){const f=globalThis;const i=f.__buoyOwnDeviceListeners??={};i[t]=Math.max(0,(i[t]??0)+n)}const r=new Set;let e="unknown";let u=false;function a(){try{return o?.currentState??"unknown"}catch{return"unknown"}}function c(t){if(t===e)return;e=t;for(const n of Array.from(r)){try{n(t)}catch{}}}function s(){if(u)return;u=true;e=a();try{if(S.OS==="web"){o.addEventListener("change",t=>c(t));return}countBuoyListener("appStateDidChange",1);p.addListener("appStateDidChange",t=>{if(!t||t[BUOY_SYNTHETIC_MARK])return;if(t.app_state)c(t.app_state)})}catch{}}export function getRealAppState(){s();if(e==="unknown")e=a();return e}export function subscribeRealAppState(t){s();r.add(t);return{remove:()=>r.delete(t)}}
|
|
@@ -25,4 +25,7 @@ export { SentryIcon, EventsIcon, RoutesIcon, RoutePinIcon, RoutePathIcon, RouteD
|
|
|
25
25
|
export { WifiIcon as WifiBifIcon, BenchmarkIcon, BENCHMARK_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
26
26
|
export { NotificationsIcon, NOTIFICATIONS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
27
27
|
export { ClockToolIcon, CLOCK_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
28
|
+
export { PermissionsIcon, PERMISSIONS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
29
|
+
export { LifecycleToolIcon, LIFECYCLE_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
30
|
+
export { LocationToolIcon, LOCATION_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
28
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,8 @@ export * from "./sync/toolSyncAdapter";
|
|
|
10
10
|
export * from "./tools/defineTool";
|
|
11
11
|
export * from "./sync/toolActionRegistry";
|
|
12
12
|
export * from "./sync/toolUiBridge";
|
|
13
|
-
export
|
|
13
|
+
export * from "./sync/toolScreenHeader";
|
|
14
|
+
export { absoluteFill, displayValue, parseDisplayValue, getSafeAreaInsets, persistentStorage, isUsingPersistentStorage, getStorageBackendType, safeStringify, getValueType, isPrimitive, isJsonSerializable, isValidJson, getConstructorName, isEmpty, getValueSize, parseValue, formatValue, getTypeColor, truncateText, flattenObject, formatPath, loadOptionalModule, getCachedOptionalModule, setRenderCaptureProvider, getRenderCaptureProvider, type RenderCaptureProvider, type RenderCaptureSummary, type RenderCaptureTopComponent, type RenderCauseCounts, registerStateSnapshotProvider, getStateSnapshotProviders, getStateSnapshotProvider, subscribeToStateSnapshotProviders, type StateSnapshotProvider, type StateSnapshotProviderStatus, type StateSnapshotCapture, type StateSnapshotRestoreResult, type StateSnapshotPreview, type StateSnapshotPreviewItem, type StateSnapshotPreviewVerdict, superJsonSerialize, superJsonDeserialize, type SuperJSONResult, realNow, getRealAppState, subscribeRealAppState, BUOY_SYNTHETIC_MARK, countBuoyListener, type RealAppState, reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, getDevServerOrigin, Subscribable, type SubscribableListener, subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, useSafeRouter, useSafePathname, useSafeSegments, useSafeGlobalSearchParams, getSafeRouter, getSafeCurrentPathname, getSafeCurrentRoute, isExpoRouterAvailable, } from "./utils";
|
|
14
15
|
export type { SafeRouteLocation } from "./utils";
|
|
15
16
|
export * from "./utils/toolModules";
|
|
16
17
|
export { registerBrowserRouter, browserRouter, subscribeBrowserNavigation } from "./utils/browserNavigation";
|
|
@@ -47,7 +48,7 @@ export { HintsProvider, useHintsDisabled, useHintsContext } from "./context";
|
|
|
47
48
|
export * from "./history";
|
|
48
49
|
export { FeatureGate, UpgradePrompt, useFeatureGate, ProFeatureBanner, UpgradeModal, LicenseEntryModal, ProBadge, ProUpgradeModal, FreeAccountPrompt, LOGIN_COMMAND, getUseIsPro, getUseLicense, getUseTier, TIER_LIMITS, useLimit, resolveEffectiveTier } from "./license";
|
|
49
50
|
export type { FeatureGateProps, ProFeatureBannerProps, UpgradeModalProps, LicenseEntryModalProps, ProUpgradeModalProps, FreeAccountPromptProps, BuoyTier, TierLimitKey } from "./license";
|
|
50
|
-
export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess } from "./license/licenseModule";
|
|
51
|
+
export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess, isProNow } from "./license/licenseModule";
|
|
51
52
|
export { guardToolAdapter } from "./sync/toolActionRegistry";
|
|
52
53
|
export { AccountSetup } from "./license/AccountSetup";
|
|
53
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -29,6 +29,12 @@ export declare function getUseLicense(): (() => LicenseStateType) | null;
|
|
|
29
29
|
* exposed without it.
|
|
30
30
|
*/
|
|
31
31
|
export declare function getUseTier(): () => BuoyTier;
|
|
32
|
+
/**
|
|
33
|
+
* Pro right now, outside React (honors the Weekend Pass). For store code that
|
|
34
|
+
* decides at the moment of an action. False before the license has loaded and
|
|
35
|
+
* without the license package.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isProNow(): boolean;
|
|
32
38
|
export type AccountAccess = {
|
|
33
39
|
status: "initializing" | "locked" | "admitted";
|
|
34
40
|
reason: string | null;
|
|
@@ -122,6 +122,32 @@ export declare const devToolsStorageKeys: {
|
|
|
122
122
|
readonly root: () => "@react_buoy_clock";
|
|
123
123
|
readonly state: () => "@react_buoy_clock_state";
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* Permission override storage keys. `state` holds the overrides plus the
|
|
127
|
+
* tool's settings as one JSON blob, so it can be read synchronously at boot.
|
|
128
|
+
*/
|
|
129
|
+
readonly permissions: {
|
|
130
|
+
readonly root: () => "@react_buoy_permissions";
|
|
131
|
+
readonly state: () => "@react_buoy_permissions_state";
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Lifecycle simulator storage keys. `state` holds settings plus a pending
|
|
135
|
+
* relaunch report, read synchronously at boot so the report survives the
|
|
136
|
+
* reload it describes.
|
|
137
|
+
*/
|
|
138
|
+
readonly lifecycle: {
|
|
139
|
+
readonly root: () => "@react_buoy_lifecycle";
|
|
140
|
+
readonly state: () => "@react_buoy_lifecycle_state";
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Location override storage keys. `state` holds the override, the tool's
|
|
144
|
+
* settings and any geofence or background tasks started under the override,
|
|
145
|
+
* as one JSON blob read synchronously at boot.
|
|
146
|
+
*/
|
|
147
|
+
readonly location: {
|
|
148
|
+
readonly root: () => "@react_buoy_location";
|
|
149
|
+
readonly state: () => "@react_buoy_location_state";
|
|
150
|
+
};
|
|
125
151
|
/**
|
|
126
152
|
* Time Machine storage keys. NOTE: the snapshot VAULT keys
|
|
127
153
|
* (`@react_buoy_time_machine:index` / `:snap:*`) predate this namespace and
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* toolScreenHeader — let a tool screen set its host's header without
|
|
3
|
+
* importing `@buoy-gg/core`.
|
|
4
|
+
*
|
|
5
|
+
* Core's `useToolHeader` does this for tools that can import core. Tools that
|
|
6
|
+
* core auto-discovers can't (a tool importing core back is a require cycle,
|
|
7
|
+
* see `toolUiBridge.ts`), so core's tool shell also provides its header setter
|
|
8
|
+
* through this context. A screen outside the shell (Buoy Desktop, a
|
|
9
|
+
* standalone mount) gets `false` back and draws its own back row.
|
|
10
|
+
*/
|
|
11
|
+
import { type DependencyList } from "react";
|
|
12
|
+
export interface ToolScreenHeader {
|
|
13
|
+
title?: string;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
/** Shows the header's back chevron. */
|
|
16
|
+
onBack?: () => void;
|
|
17
|
+
searchable?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type ToolScreenHeaderSetter = (header: ToolScreenHeader | null) => void;
|
|
20
|
+
export declare const ToolScreenHeaderContext: import("react").Context<ToolScreenHeaderSetter | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Apply `header` while mounted (or while `header` is non-null) and restore
|
|
23
|
+
* the tool's own header afterwards. Returns whether a host header exists.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useToolScreenHeader(header: ToolScreenHeader | null, deps: DependencyList): boolean;
|
|
26
|
+
//# sourceMappingURL=toolScreenHeader.d.ts.map
|
|
@@ -12,6 +12,7 @@ export { serialize as superJsonSerialize, deserialize as superJsonDeserialize, t
|
|
|
12
12
|
export { reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, } from "./reloadApp";
|
|
13
13
|
export { getDevServerOrigin } from "./devServer";
|
|
14
14
|
export { realNow } from "./realNow";
|
|
15
|
+
export { getRealAppState, subscribeRealAppState, BUOY_SYNTHETIC_MARK, countBuoyListener, type RealAppState, } from "./realAppState";
|
|
15
16
|
export { Subscribable, type SubscribableListener } from "./subscribable";
|
|
16
17
|
export { subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, } from "./subscriberCountNotifier";
|
|
17
18
|
export { useSafeRouter, useSafePathname, useSafeSegments, useSafeGlobalSearchParams, getSafeRouter, getSafeCurrentPathname, getSafeCurrentRoute, isExpoRouterAvailable, type SafeRouteLocation, } from "./safeExpoRouter";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type RealAppState = "active" | "background" | "inactive" | "unknown" | "extension";
|
|
2
|
+
/** Marks a payload as simulated. Shared with @buoy-gg/lifecycle. */
|
|
3
|
+
export declare const BUOY_SYNTHETIC_MARK = "__buoySynthetic";
|
|
4
|
+
type Listener = (state: RealAppState) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Count a Buoy-owned listener on a native event, so @buoy-gg/lifecycle can
|
|
7
|
+
* report how many of the APP's listeners an event has (the emitter only
|
|
8
|
+
* knows the total). Pass -1 when the listener is removed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function countBuoyListener(event: string, delta: 1 | -1): void;
|
|
11
|
+
/** The state the OS last reported, ignoring simulations. */
|
|
12
|
+
export declare function getRealAppState(): RealAppState;
|
|
13
|
+
/**
|
|
14
|
+
* Subscribe to real app state changes only. Same shape as
|
|
15
|
+
* `AppState.addEventListener('change')`: returns an object with `remove()`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function subscribeRealAppState(listener: Listener): {
|
|
18
|
+
remove: () => void;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=realAppState.d.ts.map
|
|
@@ -25,4 +25,7 @@ export { SentryIcon, EventsIcon, RoutesIcon, RoutePinIcon, RoutePathIcon, RouteD
|
|
|
25
25
|
export { WifiIcon as WifiBifIcon, BenchmarkIcon, BENCHMARK_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
26
26
|
export { NotificationsIcon, NOTIFICATIONS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
27
27
|
export { ClockToolIcon, CLOCK_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
28
|
+
export { PermissionsIcon, PERMISSIONS_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
29
|
+
export { LifecycleToolIcon, LIFECYCLE_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
30
|
+
export { LocationToolIcon, LOCATION_TOOL_ICON_COLOR } from "@buoy-gg/floating-tools-core";
|
|
28
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,8 @@ export * from "./sync/toolSyncAdapter";
|
|
|
10
10
|
export * from "./tools/defineTool";
|
|
11
11
|
export * from "./sync/toolActionRegistry";
|
|
12
12
|
export * from "./sync/toolUiBridge";
|
|
13
|
-
export
|
|
13
|
+
export * from "./sync/toolScreenHeader";
|
|
14
|
+
export { absoluteFill, displayValue, parseDisplayValue, getSafeAreaInsets, persistentStorage, isUsingPersistentStorage, getStorageBackendType, safeStringify, getValueType, isPrimitive, isJsonSerializable, isValidJson, getConstructorName, isEmpty, getValueSize, parseValue, formatValue, getTypeColor, truncateText, flattenObject, formatPath, loadOptionalModule, getCachedOptionalModule, setRenderCaptureProvider, getRenderCaptureProvider, type RenderCaptureProvider, type RenderCaptureSummary, type RenderCaptureTopComponent, type RenderCauseCounts, registerStateSnapshotProvider, getStateSnapshotProviders, getStateSnapshotProvider, subscribeToStateSnapshotProviders, type StateSnapshotProvider, type StateSnapshotProviderStatus, type StateSnapshotCapture, type StateSnapshotRestoreResult, type StateSnapshotPreview, type StateSnapshotPreviewItem, type StateSnapshotPreviewVerdict, superJsonSerialize, superJsonDeserialize, type SuperJSONResult, realNow, getRealAppState, subscribeRealAppState, BUOY_SYNTHETIC_MARK, countBuoyListener, type RealAppState, reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, getDevServerOrigin, Subscribable, type SubscribableListener, subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, useSafeRouter, useSafePathname, useSafeSegments, useSafeGlobalSearchParams, getSafeRouter, getSafeCurrentPathname, getSafeCurrentRoute, isExpoRouterAvailable, } from "./utils";
|
|
14
15
|
export type { SafeRouteLocation } from "./utils";
|
|
15
16
|
export * from "./utils/toolModules";
|
|
16
17
|
export { registerBrowserRouter, browserRouter, subscribeBrowserNavigation } from "./utils/browserNavigation";
|
|
@@ -47,7 +48,7 @@ export { HintsProvider, useHintsDisabled, useHintsContext } from "./context";
|
|
|
47
48
|
export * from "./history";
|
|
48
49
|
export { FeatureGate, UpgradePrompt, useFeatureGate, ProFeatureBanner, UpgradeModal, LicenseEntryModal, ProBadge, ProUpgradeModal, FreeAccountPrompt, LOGIN_COMMAND, getUseIsPro, getUseLicense, getUseTier, TIER_LIMITS, useLimit, resolveEffectiveTier } from "./license";
|
|
49
50
|
export type { FeatureGateProps, ProFeatureBannerProps, UpgradeModalProps, LicenseEntryModalProps, ProUpgradeModalProps, FreeAccountPromptProps, BuoyTier, TierLimitKey } from "./license";
|
|
50
|
-
export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess } from "./license/licenseModule";
|
|
51
|
+
export { getAccountAccess, hasAccountAccess, assertAccountAccess, subscribeAccountAccess, getUseAccountAccess, retryAccountAccess, isProNow } from "./license/licenseModule";
|
|
51
52
|
export { guardToolAdapter } from "./sync/toolActionRegistry";
|
|
52
53
|
export { AccountSetup } from "./license/AccountSetup";
|
|
53
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -29,6 +29,12 @@ export declare function getUseLicense(): (() => LicenseStateType) | null;
|
|
|
29
29
|
* exposed without it.
|
|
30
30
|
*/
|
|
31
31
|
export declare function getUseTier(): () => BuoyTier;
|
|
32
|
+
/**
|
|
33
|
+
* Pro right now, outside React (honors the Weekend Pass). For store code that
|
|
34
|
+
* decides at the moment of an action. False before the license has loaded and
|
|
35
|
+
* without the license package.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isProNow(): boolean;
|
|
32
38
|
export type AccountAccess = {
|
|
33
39
|
status: "initializing" | "locked" | "admitted";
|
|
34
40
|
reason: string | null;
|
|
@@ -122,6 +122,32 @@ export declare const devToolsStorageKeys: {
|
|
|
122
122
|
readonly root: () => "@react_buoy_clock";
|
|
123
123
|
readonly state: () => "@react_buoy_clock_state";
|
|
124
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* Permission override storage keys. `state` holds the overrides plus the
|
|
127
|
+
* tool's settings as one JSON blob, so it can be read synchronously at boot.
|
|
128
|
+
*/
|
|
129
|
+
readonly permissions: {
|
|
130
|
+
readonly root: () => "@react_buoy_permissions";
|
|
131
|
+
readonly state: () => "@react_buoy_permissions_state";
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Lifecycle simulator storage keys. `state` holds settings plus a pending
|
|
135
|
+
* relaunch report, read synchronously at boot so the report survives the
|
|
136
|
+
* reload it describes.
|
|
137
|
+
*/
|
|
138
|
+
readonly lifecycle: {
|
|
139
|
+
readonly root: () => "@react_buoy_lifecycle";
|
|
140
|
+
readonly state: () => "@react_buoy_lifecycle_state";
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Location override storage keys. `state` holds the override, the tool's
|
|
144
|
+
* settings and any geofence or background tasks started under the override,
|
|
145
|
+
* as one JSON blob read synchronously at boot.
|
|
146
|
+
*/
|
|
147
|
+
readonly location: {
|
|
148
|
+
readonly root: () => "@react_buoy_location";
|
|
149
|
+
readonly state: () => "@react_buoy_location_state";
|
|
150
|
+
};
|
|
125
151
|
/**
|
|
126
152
|
* Time Machine storage keys. NOTE: the snapshot VAULT keys
|
|
127
153
|
* (`@react_buoy_time_machine:index` / `:snap:*`) predate this namespace and
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* toolScreenHeader — let a tool screen set its host's header without
|
|
3
|
+
* importing `@buoy-gg/core`.
|
|
4
|
+
*
|
|
5
|
+
* Core's `useToolHeader` does this for tools that can import core. Tools that
|
|
6
|
+
* core auto-discovers can't (a tool importing core back is a require cycle,
|
|
7
|
+
* see `toolUiBridge.ts`), so core's tool shell also provides its header setter
|
|
8
|
+
* through this context. A screen outside the shell (Buoy Desktop, a
|
|
9
|
+
* standalone mount) gets `false` back and draws its own back row.
|
|
10
|
+
*/
|
|
11
|
+
import { type DependencyList } from "react";
|
|
12
|
+
export interface ToolScreenHeader {
|
|
13
|
+
title?: string;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
/** Shows the header's back chevron. */
|
|
16
|
+
onBack?: () => void;
|
|
17
|
+
searchable?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type ToolScreenHeaderSetter = (header: ToolScreenHeader | null) => void;
|
|
20
|
+
export declare const ToolScreenHeaderContext: import("react").Context<ToolScreenHeaderSetter | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Apply `header` while mounted (or while `header` is non-null) and restore
|
|
23
|
+
* the tool's own header afterwards. Returns whether a host header exists.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useToolScreenHeader(header: ToolScreenHeader | null, deps: DependencyList): boolean;
|
|
26
|
+
//# sourceMappingURL=toolScreenHeader.d.ts.map
|
|
@@ -12,6 +12,7 @@ export { serialize as superJsonSerialize, deserialize as superJsonDeserialize, t
|
|
|
12
12
|
export { reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, } from "./reloadApp";
|
|
13
13
|
export { getDevServerOrigin } from "./devServer";
|
|
14
14
|
export { realNow } from "./realNow";
|
|
15
|
+
export { getRealAppState, subscribeRealAppState, BUOY_SYNTHETIC_MARK, countBuoyListener, type RealAppState, } from "./realAppState";
|
|
15
16
|
export { Subscribable, type SubscribableListener } from "./subscribable";
|
|
16
17
|
export { subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, } from "./subscriberCountNotifier";
|
|
17
18
|
export { useSafeRouter, useSafePathname, useSafeSegments, useSafeGlobalSearchParams, getSafeRouter, getSafeCurrentPathname, getSafeCurrentRoute, isExpoRouterAvailable, type SafeRouteLocation, } from "./safeExpoRouter";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type RealAppState = "active" | "background" | "inactive" | "unknown" | "extension";
|
|
2
|
+
/** Marks a payload as simulated. Shared with @buoy-gg/lifecycle. */
|
|
3
|
+
export declare const BUOY_SYNTHETIC_MARK = "__buoySynthetic";
|
|
4
|
+
type Listener = (state: RealAppState) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Count a Buoy-owned listener on a native event, so @buoy-gg/lifecycle can
|
|
7
|
+
* report how many of the APP's listeners an event has (the emitter only
|
|
8
|
+
* knows the total). Pass -1 when the listener is removed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function countBuoyListener(event: string, delta: 1 | -1): void;
|
|
11
|
+
/** The state the OS last reported, ignoring simulations. */
|
|
12
|
+
export declare function getRealAppState(): RealAppState;
|
|
13
|
+
/**
|
|
14
|
+
* Subscribe to real app state changes only. Same shape as
|
|
15
|
+
* `AppState.addEventListener('change')`: returns an object with `remove()`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function subscribeRealAppState(listener: Listener): {
|
|
18
|
+
remove: () => void;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=realAppState.d.ts.map
|