@buoy-gg/shared-ui 7.0.39 → 7.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/lib/commonjs/JsModal.js +13 -61
- package/lib/commonjs/JsModal.web.js +32 -95
- package/lib/commonjs/clipboard/autoDetectClipboard.js +1 -1
- package/lib/commonjs/clipboard/clipboard-impl.web.js +21 -0
- package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +4 -2
- package/lib/commonjs/hooks/index.js +1 -1
- package/lib/commonjs/hooks/safe-area-impl.js +1 -1
- package/lib/commonjs/hooks/usePersistedState.js +1 -1
- package/lib/commonjs/hooks/useSafeAreaInsets.web.js +41 -0
- package/lib/commonjs/icons/index.js +14 -0
- package/lib/commonjs/index.js +34 -0
- package/lib/commonjs/license/AccountSetup.js +4 -25
- package/lib/commonjs/license/AccountSetup.web.js +78 -64
- package/lib/commonjs/license/AccountSetupContent.js +482 -0
- package/lib/commonjs/license/FreeAccountPrompt.js +32 -178
- package/lib/commonjs/license/LicenseEntryModal.js +5 -12
- package/lib/commonjs/license/accountRuntime.js +8 -0
- package/lib/commonjs/license/accountRuntime.web.js +9 -0
- package/lib/commonjs/license/licenseModule.js +2 -0
- package/lib/commonjs/settings/components/BubbleSettingsSection.js +1 -1
- package/lib/commonjs/storage/definePersistedSetting.js +1 -1
- package/lib/commonjs/stores/ignoredPatternsCore.js +8 -1
- package/lib/commonjs/stores/ignoredPatternsStore.js +10 -199
- package/lib/commonjs/stores/ignoredPatternsStore.shared.js +205 -0
- package/lib/commonjs/stores/ignoredPatternsStore.web.js +10 -230
- package/lib/commonjs/ui/backgrounds/backgroundStore.js +1 -1
- package/lib/commonjs/ui/backgrounds/variants/wormhole.js +3 -0
- package/lib/commonjs/ui/components/CopyButton.js +1 -1
- package/lib/commonjs/ui/components/EventStepperFooter.js +1 -1
- package/lib/commonjs/ui/components/ToolFooter.js +1 -1
- package/lib/commonjs/ui/floating/FloatingTool.web.js +12 -2
- package/lib/commonjs/ui/night/primitives.js +10 -3
- package/lib/commonjs/ui/otto/OttoSprite.js +1 -1
- package/lib/commonjs/utils/browserAsyncStorage.js +157 -0
- package/lib/commonjs/utils/browserNavigation.js +116 -0
- package/lib/commonjs/utils/devServer.js +8 -4
- package/lib/commonjs/utils/devServer.web.js +10 -0
- package/lib/commonjs/utils/domRuntime.js +143 -0
- package/lib/commonjs/utils/expoRouterModule.js +51 -0
- package/lib/commonjs/utils/expoRouterModule.web.js +14 -0
- package/lib/commonjs/utils/getSafeAreaInsets.web.js +35 -0
- package/lib/commonjs/utils/index.js +111 -4
- package/lib/commonjs/utils/loadToolModule.js +46 -0
- package/lib/commonjs/utils/loadToolModule.web.js +12 -0
- package/lib/commonjs/utils/modalStorage.js +42 -0
- package/lib/commonjs/utils/nativeWeb.js +454 -0
- package/lib/commonjs/utils/persistentStorage.web.js +78 -0
- package/lib/commonjs/utils/reloadApp.js +18 -57
- package/lib/commonjs/utils/reloadPlatform.js +37 -0
- package/lib/commonjs/utils/reloadPlatform.web.js +17 -0
- package/lib/commonjs/utils/safeExpoRouter.js +3 -53
- package/lib/commonjs/utils/safeExpoRouter.web.js +48 -0
- package/lib/commonjs/utils/toolModules.js +25 -0
- package/lib/module/JsModal.js +11 -59
- package/lib/module/JsModal.web.js +28 -91
- package/lib/module/clipboard/autoDetectClipboard.js +2 -2
- package/lib/module/clipboard/clipboard-impl.web.js +14 -0
- package/lib/module/dataViewer/tree/TreeDiffViewer.js +4 -2
- package/lib/module/hooks/index.js +2 -2
- package/lib/module/hooks/safe-area-impl.js +1 -1
- package/lib/module/hooks/usePersistedState.js +1 -1
- package/lib/module/hooks/useSafeAreaInsets.web.js +30 -0
- package/lib/module/icons/index.js +2 -1
- package/lib/module/index.js +3 -0
- package/lib/module/license/AccountSetup.js +5 -26
- package/lib/module/license/AccountSetup.web.js +79 -65
- package/lib/module/license/AccountSetupContent.js +476 -0
- package/lib/module/license/FreeAccountPrompt.js +27 -176
- package/lib/module/license/LicenseEntryModal.js +6 -13
- package/lib/module/license/accountRuntime.js +3 -0
- package/lib/module/license/accountRuntime.web.js +4 -0
- package/lib/module/license/licenseModule.js +2 -0
- package/lib/module/settings/components/BubbleSettingsSection.js +1 -1
- package/lib/module/storage/definePersistedSetting.js +1 -1
- package/lib/module/stores/ignoredPatternsCore.js +8 -1
- package/lib/module/stores/ignoredPatternsStore.js +1 -187
- package/lib/module/stores/ignoredPatternsStore.shared.js +189 -0
- package/lib/module/stores/ignoredPatternsStore.web.js +1 -219
- package/lib/module/ui/backgrounds/backgroundStore.js +1 -1
- package/lib/module/ui/backgrounds/variants/wormhole.js +3 -0
- package/lib/module/ui/components/CopyButton.js +1 -1
- package/lib/module/ui/components/EventStepperFooter.js +1 -1
- package/lib/module/ui/components/ToolFooter.js +1 -1
- package/lib/module/ui/floating/FloatingTool.web.js +12 -2
- package/lib/module/ui/night/primitives.js +11 -4
- package/lib/module/ui/otto/OttoSprite.js +1 -1
- package/lib/module/utils/browserAsyncStorage.js +151 -0
- package/lib/module/utils/browserNavigation.js +108 -0
- package/lib/module/utils/devServer.js +8 -4
- package/lib/module/utils/devServer.web.js +6 -0
- package/lib/module/utils/domRuntime.js +134 -0
- package/lib/module/utils/expoRouterModule.js +46 -0
- package/lib/module/utils/expoRouterModule.web.js +9 -0
- package/lib/module/utils/getSafeAreaInsets.web.js +31 -0
- package/lib/module/utils/index.js +9 -4
- package/lib/module/utils/loadToolModule.js +42 -0
- package/lib/module/utils/loadToolModule.web.js +8 -0
- package/lib/module/utils/modalStorage.js +37 -0
- package/lib/module/utils/nativeWeb.js +107 -0
- package/lib/module/utils/persistentStorage.web.js +72 -0
- package/lib/module/utils/reloadApp.js +13 -51
- package/lib/module/utils/reloadPlatform.js +31 -0
- package/lib/module/utils/reloadPlatform.web.js +11 -0
- package/lib/module/utils/safeExpoRouter.js +3 -53
- package/lib/module/utils/safeExpoRouter.web.js +37 -0
- package/lib/module/utils/toolModules.js +19 -0
- package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/JsModal.web.d.ts +7 -18
- package/lib/typescript/commonjs/JsModal.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/clipboard/clipboard-impl.web.d.ts +5 -0
- package/lib/typescript/commonjs/clipboard/clipboard-impl.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useSafeAreaInsets.web.d.ts +6 -0
- package/lib/typescript/commonjs/hooks/useSafeAreaInsets.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/AccountSetup.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/AccountSetup.web.d.ts +1 -1
- package/lib/typescript/commonjs/license/AccountSetup.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/AccountSetupContent.d.ts +11 -0
- package/lib/typescript/commonjs/license/AccountSetupContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts +3 -15
- package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/license/accountRuntime.d.ts +2 -0
- package/lib/typescript/commonjs/license/accountRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/accountRuntime.web.d.ts +2 -0
- package/lib/typescript/commonjs/license/accountRuntime.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/license/licenseModule.d.ts +3 -1
- package/lib/typescript/commonjs/license/licenseModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts +5 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsCore.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts +1 -59
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts +60 -0
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts +1 -71
- package/lib/typescript/commonjs/stores/ignoredPatternsStore.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/floating/FloatingTool.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/typescript/commonjs/utils/browserAsyncStorage.d.ts +25 -0
- package/lib/typescript/commonjs/utils/browserAsyncStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/browserNavigation.d.ts +31 -0
- package/lib/typescript/commonjs/utils/browserNavigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/devServer.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/devServer.web.d.ts +2 -0
- package/lib/typescript/commonjs/utils/devServer.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/domRuntime.d.ts +27 -0
- package/lib/typescript/commonjs/utils/domRuntime.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/expoRouterModule.d.ts +3 -0
- package/lib/typescript/commonjs/utils/expoRouterModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/expoRouterModule.web.d.ts +3 -0
- package/lib/typescript/commonjs/utils/expoRouterModule.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/getSafeAreaInsets.web.d.ts +8 -0
- package/lib/typescript/commonjs/utils/getSafeAreaInsets.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts +5 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/loadToolModule.d.ts +3 -0
- package/lib/typescript/commonjs/utils/loadToolModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/loadToolModule.web.d.ts +2 -0
- package/lib/typescript/commonjs/utils/loadToolModule.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/modalStorage.d.ts +21 -0
- package/lib/typescript/commonjs/utils/modalStorage.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/nativeWeb.d.ts +22 -0
- package/lib/typescript/commonjs/utils/nativeWeb.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/persistentStorage.web.d.ts +6 -0
- package/lib/typescript/commonjs/utils/persistentStorage.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/reloadApp.d.ts +7 -25
- package/lib/typescript/commonjs/utils/reloadApp.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/reloadPlatform.d.ts +8 -0
- package/lib/typescript/commonjs/utils/reloadPlatform.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/reloadPlatform.web.d.ts +4 -0
- package/lib/typescript/commonjs/utils/reloadPlatform.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/safeExpoRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/safeExpoRouter.web.d.ts +43 -0
- package/lib/typescript/commonjs/utils/safeExpoRouter.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/toolModules.d.ts +5 -0
- package/lib/typescript/commonjs/utils/toolModules.d.ts.map +1 -0
- package/lib/typescript/module/JsModal.d.ts.map +1 -1
- package/lib/typescript/module/JsModal.web.d.ts +7 -18
- package/lib/typescript/module/JsModal.web.d.ts.map +1 -1
- package/lib/typescript/module/clipboard/clipboard-impl.web.d.ts +5 -0
- package/lib/typescript/module/clipboard/clipboard-impl.web.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/hooks/useSafeAreaInsets.web.d.ts +6 -0
- package/lib/typescript/module/hooks/useSafeAreaInsets.web.d.ts.map +1 -0
- package/lib/typescript/module/icons/index.d.ts +1 -0
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/license/AccountSetup.d.ts.map +1 -1
- package/lib/typescript/module/license/AccountSetup.web.d.ts +1 -1
- package/lib/typescript/module/license/AccountSetup.web.d.ts.map +1 -1
- package/lib/typescript/module/license/AccountSetupContent.d.ts +11 -0
- package/lib/typescript/module/license/AccountSetupContent.d.ts.map +1 -0
- package/lib/typescript/module/license/FreeAccountPrompt.d.ts +3 -15
- package/lib/typescript/module/license/FreeAccountPrompt.d.ts.map +1 -1
- package/lib/typescript/module/license/LicenseEntryModal.d.ts.map +1 -1
- package/lib/typescript/module/license/accountRuntime.d.ts +2 -0
- package/lib/typescript/module/license/accountRuntime.d.ts.map +1 -0
- package/lib/typescript/module/license/accountRuntime.web.d.ts +2 -0
- package/lib/typescript/module/license/accountRuntime.web.d.ts.map +1 -0
- package/lib/typescript/module/license/licenseModule.d.ts +3 -1
- package/lib/typescript/module/license/licenseModule.d.ts.map +1 -1
- package/lib/typescript/module/stores/ignoredPatternsCore.d.ts +5 -1
- package/lib/typescript/module/stores/ignoredPatternsCore.d.ts.map +1 -1
- package/lib/typescript/module/stores/ignoredPatternsStore.d.ts +1 -59
- package/lib/typescript/module/stores/ignoredPatternsStore.d.ts.map +1 -1
- package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts +60 -0
- package/lib/typescript/module/stores/ignoredPatternsStore.shared.d.ts.map +1 -0
- package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts +1 -71
- package/lib/typescript/module/stores/ignoredPatternsStore.web.d.ts.map +1 -1
- package/lib/typescript/module/ui/floating/FloatingTool.web.d.ts.map +1 -1
- package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/otto/ottoEngine.d.ts +1 -1
- package/lib/typescript/module/utils/browserAsyncStorage.d.ts +25 -0
- package/lib/typescript/module/utils/browserAsyncStorage.d.ts.map +1 -0
- package/lib/typescript/module/utils/browserNavigation.d.ts +31 -0
- package/lib/typescript/module/utils/browserNavigation.d.ts.map +1 -0
- package/lib/typescript/module/utils/devServer.d.ts.map +1 -1
- package/lib/typescript/module/utils/devServer.web.d.ts +2 -0
- package/lib/typescript/module/utils/devServer.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/domRuntime.d.ts +27 -0
- package/lib/typescript/module/utils/domRuntime.d.ts.map +1 -0
- package/lib/typescript/module/utils/expoRouterModule.d.ts +3 -0
- package/lib/typescript/module/utils/expoRouterModule.d.ts.map +1 -0
- package/lib/typescript/module/utils/expoRouterModule.web.d.ts +3 -0
- package/lib/typescript/module/utils/expoRouterModule.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/getSafeAreaInsets.web.d.ts +8 -0
- package/lib/typescript/module/utils/getSafeAreaInsets.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/index.d.ts +5 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/loadToolModule.d.ts +3 -0
- package/lib/typescript/module/utils/loadToolModule.d.ts.map +1 -0
- package/lib/typescript/module/utils/loadToolModule.web.d.ts +2 -0
- package/lib/typescript/module/utils/loadToolModule.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/modalStorage.d.ts +21 -0
- package/lib/typescript/module/utils/modalStorage.d.ts.map +1 -0
- package/lib/typescript/module/utils/nativeWeb.d.ts +22 -0
- package/lib/typescript/module/utils/nativeWeb.d.ts.map +1 -0
- package/lib/typescript/module/utils/persistentStorage.web.d.ts +6 -0
- package/lib/typescript/module/utils/persistentStorage.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/reloadApp.d.ts +7 -25
- package/lib/typescript/module/utils/reloadApp.d.ts.map +1 -1
- package/lib/typescript/module/utils/reloadPlatform.d.ts +8 -0
- package/lib/typescript/module/utils/reloadPlatform.d.ts.map +1 -0
- package/lib/typescript/module/utils/reloadPlatform.web.d.ts +4 -0
- package/lib/typescript/module/utils/reloadPlatform.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/safeExpoRouter.d.ts.map +1 -1
- package/lib/typescript/module/utils/safeExpoRouter.web.d.ts +43 -0
- package/lib/typescript/module/utils/safeExpoRouter.web.d.ts.map +1 -0
- package/lib/typescript/module/utils/toolModules.d.ts +5 -0
- package/lib/typescript/module/utils/toolModules.d.ts.map +1 -0
- package/lib/web/asyncStorage.mjs +2 -0
- package/lib/web/chunks/chunk-2MHKRRQW.mjs +8 -0
- package/lib/web/chunks/chunk-2Q3SDPH2.mjs +14 -0
- package/lib/web/chunks/chunk-34YQ42KI.mjs +2 -0
- package/lib/web/chunks/chunk-3NNNCQYP.mjs +14 -0
- package/lib/web/chunks/chunk-3UTMGIUG.mjs +2 -0
- package/lib/web/chunks/chunk-46CXXOQB.mjs +2 -0
- package/lib/web/chunks/chunk-475BSDCB.mjs +2 -0
- package/lib/web/chunks/chunk-53J2FMUD.mjs +2 -0
- package/lib/web/chunks/chunk-552W4COI.mjs +2 -0
- package/lib/web/chunks/chunk-56TTTMX4.mjs +6145 -0
- package/lib/web/chunks/chunk-5LOQZINQ.mjs +14 -0
- package/lib/web/chunks/chunk-5NOIO6ZM.mjs +16 -0
- package/lib/web/chunks/chunk-5NZOQR6Q.mjs +2 -0
- package/lib/web/chunks/chunk-6CCRCSA2.mjs +2 -0
- package/lib/web/chunks/chunk-6Q52HRBL.mjs +2 -0
- package/lib/web/chunks/chunk-6TEDFSNM.mjs +655 -0
- package/lib/web/chunks/chunk-7BMRSMHN.mjs +2 -0
- package/lib/web/chunks/chunk-A2SOFE47.mjs +24 -0
- package/lib/web/chunks/chunk-A7KJCK4R.mjs +14 -0
- package/lib/web/chunks/chunk-AEXGGXS7.mjs +2 -0
- package/lib/web/chunks/chunk-AGD7ZT6O.mjs +15 -0
- package/lib/web/chunks/chunk-AIEOQWNG.mjs +2 -0
- package/lib/web/chunks/chunk-ASTM35HG.mjs +16 -0
- package/lib/web/chunks/chunk-AZBMFPMX.mjs +1421 -0
- package/lib/web/chunks/chunk-B2V2UDCU.mjs +16 -0
- package/lib/web/chunks/chunk-BFGKGTAC.mjs +2 -0
- package/lib/web/chunks/chunk-BHW6AFO6.mjs +2 -0
- package/lib/web/chunks/chunk-BWRW3NJ2.mjs +16 -0
- package/lib/web/chunks/chunk-CBM2IZAK.mjs +2 -0
- package/lib/web/chunks/chunk-CDLCFF44.mjs +2 -0
- package/lib/web/chunks/chunk-CE5U3CSQ.mjs +2 -0
- package/lib/web/chunks/chunk-CI5CO7FQ.mjs +2 -0
- package/lib/web/chunks/chunk-CIB4U2YK.mjs +2 -0
- package/lib/web/chunks/chunk-CLLTZQGD.mjs +596 -0
- package/lib/web/chunks/chunk-D5HQLRFW.mjs +655 -0
- package/lib/web/chunks/chunk-DZDTNXXK.mjs +2 -0
- package/lib/web/chunks/chunk-FDOZ6YSS.mjs +2 -0
- package/lib/web/chunks/chunk-FMEWNGQO.mjs +2 -0
- package/lib/web/chunks/chunk-G4DH7GMT.mjs +2 -0
- package/lib/web/chunks/chunk-GBUZCZE4.mjs +2 -0
- package/lib/web/chunks/chunk-GF5C5DVX.mjs +2 -0
- package/lib/web/chunks/chunk-GLMS5ZLJ.mjs +445 -0
- package/lib/web/chunks/chunk-GNGMIA7V.mjs +2 -0
- package/lib/web/chunks/chunk-GTYIS7H7.mjs +15 -0
- package/lib/web/chunks/chunk-HJ36IONA.mjs +15 -0
- package/lib/web/chunks/chunk-HXPTZMAZ.mjs +2 -0
- package/lib/web/chunks/chunk-I27M4JCS.mjs +2 -0
- package/lib/web/chunks/chunk-IVCT27JB.mjs +2 -0
- package/lib/web/chunks/chunk-JG4QSK5B.mjs +2 -0
- package/lib/web/chunks/chunk-JR7BJW6B.mjs +389 -0
- package/lib/web/chunks/chunk-K46ZJUXJ.mjs +90 -0
- package/lib/web/chunks/chunk-K4LXMO4D.mjs +2 -0
- package/lib/web/chunks/chunk-K7CGIEFU.mjs +2 -0
- package/lib/web/chunks/chunk-KBTYK5YE.mjs +662 -0
- package/lib/web/chunks/chunk-KHP6CSSM.mjs +2 -0
- package/lib/web/chunks/chunk-KRDRIW7T.mjs +14 -0
- package/lib/web/chunks/chunk-L2DTKDER.mjs +2 -0
- package/lib/web/chunks/chunk-LFDFDGHY.mjs +655 -0
- package/lib/web/chunks/chunk-LZ7FZZ7R.mjs +2 -0
- package/lib/web/chunks/chunk-MAIUUK4E.mjs +2 -0
- package/lib/web/chunks/chunk-MKJKS3IG.mjs +275 -0
- package/lib/web/chunks/chunk-MRQKVLXG.mjs +2 -0
- package/lib/web/chunks/chunk-NK3OISOL.mjs +14 -0
- package/lib/web/chunks/chunk-NLJDDIXW.mjs +2 -0
- package/lib/web/chunks/chunk-OENR3XFI.mjs +11 -0
- package/lib/web/chunks/chunk-OZB3VKZE.mjs +2 -0
- package/lib/web/chunks/chunk-P64PFJT3.mjs +17618 -0
- package/lib/web/chunks/chunk-PACPGYH7.mjs +2 -0
- package/lib/web/chunks/chunk-PART6HOE.mjs +14 -0
- package/lib/web/chunks/chunk-PMRXUQRH.mjs +2 -0
- package/lib/web/chunks/chunk-PTK5FO6C.mjs +2 -0
- package/lib/web/chunks/chunk-PZ45TQ55.mjs +14 -0
- package/lib/web/chunks/chunk-Q5LN7GET.mjs +17624 -0
- package/lib/web/chunks/chunk-QCD6T6L4.mjs +297 -0
- package/lib/web/chunks/chunk-QD5EUANU.mjs +2 -0
- package/lib/web/chunks/chunk-QJTECJCO.mjs +2 -0
- package/lib/web/chunks/chunk-QPIZURPZ.mjs +2 -0
- package/lib/web/chunks/chunk-QPY45R5F.mjs +274 -0
- package/lib/web/chunks/chunk-R2SGZIG5.mjs +2 -0
- package/lib/web/chunks/chunk-S3GYQYVJ.mjs +16 -0
- package/lib/web/chunks/chunk-SCCXVTDM.mjs +2 -0
- package/lib/web/chunks/chunk-SHJHD646.mjs +2 -0
- package/lib/web/chunks/chunk-TCRVZ55E.mjs +2 -0
- package/lib/web/chunks/chunk-TJ6ZVV2L.mjs +15 -0
- package/lib/web/chunks/chunk-TPSY4RC3.mjs +14 -0
- package/lib/web/chunks/chunk-U5KNX5O6.mjs +17624 -0
- package/lib/web/chunks/chunk-UCKELQSM.mjs +2 -0
- package/lib/web/chunks/chunk-UGGCYHRH.mjs +15 -0
- package/lib/web/chunks/chunk-UNYQJZET.mjs +16 -0
- package/lib/web/chunks/chunk-VE72SWLV.mjs +15 -0
- package/lib/web/chunks/chunk-VKONO6MI.mjs +2 -0
- package/lib/web/chunks/chunk-W4BGMPJO.mjs +2 -0
- package/lib/web/chunks/chunk-WHNEEKLR.mjs +2 -0
- package/lib/web/chunks/chunk-WLGUP3KY.mjs +16 -0
- package/lib/web/chunks/chunk-WY7D4WBZ.mjs +2 -0
- package/lib/web/chunks/chunk-XRNB2MHO.mjs +107 -0
- package/lib/web/chunks/chunk-XXTIAXQY.mjs +2 -0
- package/lib/web/chunks/chunk-XYUAUO57.mjs +2 -0
- package/lib/web/chunks/chunk-YG6DIKQD.mjs +2 -0
- package/lib/web/chunks/chunk-YIZFMU66.mjs +2 -0
- package/lib/web/chunks/chunk-YOGAPOGC.mjs +2 -0
- package/lib/web/chunks/chunk-Z7373DS5.mjs +2 -0
- package/lib/web/chunks/chunk-Z76GRN66.mjs +17627 -0
- package/lib/web/chunks/persistentStorage.web-4FBAOYJ4.mjs +12 -0
- package/lib/web/chunks/persistentStorage.web-7W3Y6Q24.mjs +12 -0
- package/lib/web/chunks/persistentStorage.web-GOWNFMVT.mjs +2 -0
- package/lib/web/chunks/persistentStorage.web-RF47FXIK.mjs +12 -0
- package/lib/web/colors.mjs +2 -0
- package/lib/web/dataViewer.mjs +3 -0
- package/lib/web/floating.mjs +2 -0
- package/lib/web/history.mjs +2 -0
- package/lib/web/hooks.mjs +2 -0
- package/lib/web/index.mjs +15 -0
- package/lib/web/native.mjs +2 -0
- package/lib/web/ui.mjs +2 -0
- package/lib/web/utils.mjs +2 -0
- package/package.json +118 -36
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/dataViewer/objectDiff.ts
|
|
4
|
+
function isPlainObjectLike(v) {
|
|
5
|
+
if (typeof v !== "object" || v === null) return false;
|
|
6
|
+
const proto = Object.getPrototypeOf(v);
|
|
7
|
+
return proto === Object.prototype || proto === null;
|
|
8
|
+
}
|
|
9
|
+
function isTypedArray(v) {
|
|
10
|
+
return ArrayBuffer.isView(v) && !(v instanceof DataView);
|
|
11
|
+
}
|
|
12
|
+
function boundedDeepEqual(a, b, options) {
|
|
13
|
+
const budget = {
|
|
14
|
+
nodes: options?.maxNodes ?? 2e3,
|
|
15
|
+
truncated: false
|
|
16
|
+
};
|
|
17
|
+
return deepEqual(a, b, options?.maxDepth ?? 8, budget, /* @__PURE__ */ new WeakSet());
|
|
18
|
+
}
|
|
19
|
+
function deepEqual(a, b, depth, budget, seen) {
|
|
20
|
+
if (budget.nodes-- <= 0) {
|
|
21
|
+
budget.truncated = true;
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
if (Object.is(a, b)) return true;
|
|
25
|
+
if (typeof a !== typeof b) return false;
|
|
26
|
+
if (typeof a !== "object" || a === null || b === null) {
|
|
27
|
+
return typeof a === "function" && typeof b === "function";
|
|
28
|
+
}
|
|
29
|
+
if (a instanceof Date || b instanceof Date) {
|
|
30
|
+
return a instanceof Date && b instanceof Date && a.getTime() === b.getTime();
|
|
31
|
+
}
|
|
32
|
+
if (a instanceof RegExp || b instanceof RegExp) {
|
|
33
|
+
return a instanceof RegExp && b instanceof RegExp && a.source === b.source && a.flags === b.flags;
|
|
34
|
+
}
|
|
35
|
+
if (a instanceof Error || b instanceof Error) {
|
|
36
|
+
return a instanceof Error && b instanceof Error && a.name === b.name && a.message === b.message;
|
|
37
|
+
}
|
|
38
|
+
if (typeof URL !== "undefined" && (a instanceof URL || b instanceof URL)) {
|
|
39
|
+
return a instanceof URL && b instanceof URL && a.href === b.href;
|
|
40
|
+
}
|
|
41
|
+
if (isTypedArray(a) || isTypedArray(b)) {
|
|
42
|
+
if (!isTypedArray(a) || !isTypedArray(b)) return false;
|
|
43
|
+
if (a.constructor !== b.constructor || a.byteLength !== b.byteLength) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const ua = new Uint8Array(a.buffer, a.byteOffset, a.byteLength);
|
|
47
|
+
const ub = new Uint8Array(b.buffer, b.byteOffset, b.byteLength);
|
|
48
|
+
for (let i = 0; i < ua.length; i++) if (ua[i] !== ub[i]) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
if (depth <= 0) {
|
|
52
|
+
budget.truncated = true;
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
if (seen.has(a)) {
|
|
56
|
+
budget.truncated = true;
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
seen.add(a);
|
|
60
|
+
if (a instanceof Map || b instanceof Map) {
|
|
61
|
+
if (!(a instanceof Map) || !(b instanceof Map) || a.size !== b.size) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
const ea = Array.from(a.entries());
|
|
65
|
+
const eb = Array.from(b.entries());
|
|
66
|
+
for (let i = 0; i < ea.length; i++) {
|
|
67
|
+
if (!deepEqual(ea[i][0], eb[i][0], depth - 1, budget, seen)) return false;
|
|
68
|
+
if (!deepEqual(ea[i][1], eb[i][1], depth - 1, budget, seen)) return false;
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
if (a instanceof Set || b instanceof Set) {
|
|
73
|
+
if (!(a instanceof Set) || !(b instanceof Set) || a.size !== b.size) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
const va = Array.from(a.values());
|
|
77
|
+
const vb = Array.from(b.values());
|
|
78
|
+
for (let i = 0; i < va.length; i++) {
|
|
79
|
+
if (!deepEqual(va[i], vb[i], depth - 1, budget, seen)) return false;
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
if (Array.isArray(a) || Array.isArray(b)) {
|
|
84
|
+
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
for (let i = 0; i < a.length; i++) {
|
|
88
|
+
if (!deepEqual(a[i], b[i], depth - 1, budget, seen)) return false;
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
const ka = Object.keys(a);
|
|
93
|
+
const kb = Object.keys(b);
|
|
94
|
+
if (ka.length !== kb.length) return false;
|
|
95
|
+
for (const k of ka) {
|
|
96
|
+
if (!Object.prototype.hasOwnProperty.call(b, k)) return false;
|
|
97
|
+
if (!deepEqual(
|
|
98
|
+
a[k],
|
|
99
|
+
b[k],
|
|
100
|
+
depth - 1,
|
|
101
|
+
budget,
|
|
102
|
+
seen
|
|
103
|
+
)) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
function objectDiff(oldValue, newValue, options) {
|
|
110
|
+
const maxDepth = options?.maxDepth ?? 8;
|
|
111
|
+
const budget = {
|
|
112
|
+
nodes: options?.maxNodes ?? 2e3,
|
|
113
|
+
truncated: false
|
|
114
|
+
};
|
|
115
|
+
const oldIsObj = isPlainObjectLike(oldValue);
|
|
116
|
+
const newIsObj = isPlainObjectLike(newValue);
|
|
117
|
+
if (!oldIsObj || !newIsObj) {
|
|
118
|
+
const equal = deepEqual(oldValue, newValue, maxDepth, budget, /* @__PURE__ */ new WeakSet());
|
|
119
|
+
return {
|
|
120
|
+
equal,
|
|
121
|
+
addedKeys: [],
|
|
122
|
+
removedKeys: [],
|
|
123
|
+
changedKeys: equal ? [] : ["value"],
|
|
124
|
+
truncated: budget.truncated
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const addedKeys = [];
|
|
128
|
+
const removedKeys = [];
|
|
129
|
+
const changedKeys = [];
|
|
130
|
+
const oldObj = oldValue;
|
|
131
|
+
const newObj = newValue;
|
|
132
|
+
for (const k of Object.keys(oldObj)) {
|
|
133
|
+
if (!Object.prototype.hasOwnProperty.call(newObj, k)) {
|
|
134
|
+
removedKeys.push(k);
|
|
135
|
+
} else if (!deepEqual(oldObj[k], newObj[k], maxDepth - 1, budget, /* @__PURE__ */ new WeakSet())) {
|
|
136
|
+
changedKeys.push(k);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
for (const k of Object.keys(newObj)) {
|
|
140
|
+
if (!Object.prototype.hasOwnProperty.call(oldObj, k)) addedKeys.push(k);
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
equal: addedKeys.length === 0 && removedKeys.length === 0 && changedKeys.length === 0,
|
|
144
|
+
addedKeys,
|
|
145
|
+
removedKeys,
|
|
146
|
+
changedKeys,
|
|
147
|
+
truncated: budget.truncated
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
var TO_DIFFABLE_MAX_DEPTH = 12;
|
|
151
|
+
function toDiffable(value) {
|
|
152
|
+
return normalizeForDiff(value, TO_DIFFABLE_MAX_DEPTH, /* @__PURE__ */ new WeakSet());
|
|
153
|
+
}
|
|
154
|
+
function normalizeForDiff(value, depth, seen) {
|
|
155
|
+
if (value === null || value === void 0) return value;
|
|
156
|
+
const t = typeof value;
|
|
157
|
+
if (t === "string" || t === "boolean") return value;
|
|
158
|
+
if (t === "number") {
|
|
159
|
+
return Number.isFinite(value) ? value : String(value);
|
|
160
|
+
}
|
|
161
|
+
if (t === "bigint") return `${String(value)}n`;
|
|
162
|
+
if (t === "function") return "[Function]";
|
|
163
|
+
if (t === "symbol") return String(value);
|
|
164
|
+
if (t !== "object") return String(value);
|
|
165
|
+
if (value instanceof Date) return value.toISOString();
|
|
166
|
+
if (value instanceof RegExp) return String(value);
|
|
167
|
+
if (value instanceof Error) return `[${value.name}: ${value.message}]`;
|
|
168
|
+
if (typeof URL !== "undefined" && value instanceof URL) return value.href;
|
|
169
|
+
if (isTypedArray(value)) {
|
|
170
|
+
return `<${value.constructor.name} ${value.byteLength} bytes>`;
|
|
171
|
+
}
|
|
172
|
+
if (depth <= 0) return "[Max depth]";
|
|
173
|
+
if (seen.has(value)) return "[Circular]";
|
|
174
|
+
seen.add(value);
|
|
175
|
+
if (value instanceof Map) {
|
|
176
|
+
const out2 = {};
|
|
177
|
+
for (const [k, v] of value.entries()) {
|
|
178
|
+
const key = typeof k === "string" ? k : JSON.stringify(toDiffable(k));
|
|
179
|
+
out2[key] = normalizeForDiff(v, depth - 1, seen);
|
|
180
|
+
}
|
|
181
|
+
return out2;
|
|
182
|
+
}
|
|
183
|
+
if (value instanceof Set) {
|
|
184
|
+
return Array.from(value.values()).map(
|
|
185
|
+
(v) => normalizeForDiff(v, depth - 1, seen)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
if (Array.isArray(value)) {
|
|
189
|
+
return value.map((v) => normalizeForDiff(v, depth - 1, seen));
|
|
190
|
+
}
|
|
191
|
+
const out = {};
|
|
192
|
+
for (const [k, v] of Object.entries(value)) {
|
|
193
|
+
out[k] = normalizeForDiff(v, depth - 1, seen);
|
|
194
|
+
}
|
|
195
|
+
return out;
|
|
196
|
+
}
|
|
197
|
+
function jsonLikelyLargerThan(value, limitBytes) {
|
|
198
|
+
let size = 0;
|
|
199
|
+
const stack = [value];
|
|
200
|
+
const seenObjects = /* @__PURE__ */ new Set();
|
|
201
|
+
while (stack.length > 0) {
|
|
202
|
+
const v = stack.pop();
|
|
203
|
+
if (v === null || v === void 0) {
|
|
204
|
+
size += 4;
|
|
205
|
+
} else if (typeof v === "string") {
|
|
206
|
+
size += v.length + 2;
|
|
207
|
+
} else if (typeof v === "number" || typeof v === "boolean") {
|
|
208
|
+
size += 8;
|
|
209
|
+
} else if (typeof v === "bigint") {
|
|
210
|
+
size += String(v).length + 1;
|
|
211
|
+
} else if (typeof v === "object") {
|
|
212
|
+
if (seenObjects.has(v)) continue;
|
|
213
|
+
seenObjects.add(v);
|
|
214
|
+
if (v instanceof Date || v instanceof RegExp) {
|
|
215
|
+
size += 32;
|
|
216
|
+
} else if (isTypedArray(v)) {
|
|
217
|
+
size += v.byteLength;
|
|
218
|
+
} else if (v instanceof Map) {
|
|
219
|
+
for (const [k, val] of v.entries()) {
|
|
220
|
+
stack.push(k, val);
|
|
221
|
+
size += 4;
|
|
222
|
+
}
|
|
223
|
+
} else if (v instanceof Set) {
|
|
224
|
+
for (const val of v.values()) {
|
|
225
|
+
stack.push(val);
|
|
226
|
+
size += 2;
|
|
227
|
+
}
|
|
228
|
+
} else if (Array.isArray(v)) {
|
|
229
|
+
for (const item of v) stack.push(item);
|
|
230
|
+
size += 2 * v.length + 2;
|
|
231
|
+
} else {
|
|
232
|
+
for (const [k, val] of Object.entries(v)) {
|
|
233
|
+
size += k.length + 4;
|
|
234
|
+
stack.push(val);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
if (size > limitBytes) return true;
|
|
239
|
+
}
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// src/types/types.ts
|
|
244
|
+
function isPlainObject(value) {
|
|
245
|
+
return value !== null && value !== void 0 && typeof value === "object" && !Array.isArray(value) && !(value instanceof Date) && !(value instanceof Error) && !(value instanceof Map) && !(value instanceof Set) && !(value instanceof RegExp) && typeof value !== "function";
|
|
246
|
+
}
|
|
247
|
+
function normalizeEnvironment(env) {
|
|
248
|
+
switch (env.toLowerCase().trim()) {
|
|
249
|
+
case "local":
|
|
250
|
+
return "local";
|
|
251
|
+
case "dev":
|
|
252
|
+
case "development":
|
|
253
|
+
return "dev";
|
|
254
|
+
case "qa":
|
|
255
|
+
case "test":
|
|
256
|
+
return "qa";
|
|
257
|
+
case "staging":
|
|
258
|
+
case "stage":
|
|
259
|
+
return "staging";
|
|
260
|
+
case "prod":
|
|
261
|
+
case "production":
|
|
262
|
+
return "prod";
|
|
263
|
+
default:
|
|
264
|
+
return "local";
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export {
|
|
269
|
+
boundedDeepEqual,
|
|
270
|
+
objectDiff,
|
|
271
|
+
toDiffable,
|
|
272
|
+
jsonLikelyLargerThan,
|
|
273
|
+
isPlainObject,
|
|
274
|
+
normalizeEnvironment
|
|
275
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as B}from"./chunk-FMEWNGQO.mjs";import{f as y}from"./chunk-CE5U3CSQ.mjs";import{J as L,N as F,a as w,b as x}from"./chunk-3UTMGIUG.mjs";import{createContext as O,useContext as U,useState as M,useCallback as b,useMemo as z,useEffect as j}from"react";import{jsx as Z}from"react/jsx-runtime";var $=O(null);function J({children:t,initialAdapters:e=[]}){let[o,n]=M(()=>{let r=new Map;return e.forEach(s=>{r.set(s.adapter.id,{...s,enabled:s.enabled??!0})}),r}),[u,l]=M(null),[c,E]=M(0),d=b(()=>E(r=>r+1),[]);j(()=>{let r=[];return o.forEach(s=>{if(s.enabled){let f=s.adapter.subscribe(d);r.push(f)}}),()=>{r.forEach(s=>s())}},[o,d]);let a=z(()=>Array.from(o.values()).filter(r=>r.enabled).sort((r,s)=>(r.priority??100)-(s.priority??100)).map(r=>r.adapter),[o,c]),m=b(r=>o.get(r)?.adapter,[o]),C=b(r=>{n(s=>{let f=new Map(s);return f.set(r.adapter.id,{...r,enabled:r.enabled??!0}),f})},[]),p=b(r=>{n(s=>{let f=new Map(s);return f.delete(r),f})},[]),i=b(r=>{let s=[];return(u&&r?.sources===void 0?a.filter(A=>A.id===u):a).forEach(A=>{r?.sources&&!r.sources.includes(A.id)||(s=s.concat(A.getEntries()))}),r&&(s=Y(s,r)),s.sort((A,G)=>G.timestamp-A.timestamp),s},[a,u,c]),h=b(()=>{let r={};return a.forEach(s=>{r[s.id]=s.getEntryCount()}),r},[a,c]),q=z(()=>({adapters:a,getAdapter:m,registerAdapter:C,unregisterAdapter:p,getAllEntries:i,getEntryCounts:h,selectedAdapterId:u,setSelectedAdapterId:l,refresh:d}),[a,m,C,p,i,h,u,d]);return Z($.Provider,{value:q,children:t})}function S(){let t=U($);if(!t)throw new Error("useHistoryContext must be used within a HistoryProvider");return t}function I(){return S().adapters}function Q(t){return S().getAdapter(t)}function V(t){let{getAllEntries:e}=S();return e(t)}function X(){return S().getEntryCounts()}function Y(t,e){return t.filter(o=>{if(e.searchText){let n=e.searchText.toLowerCase();if(!o.label.toLowerCase().includes(n))return!1}if(e.onlyWithChanges&&!o.hasStateChange||e.onlyErrors&&o.status!=="error"||e.afterTimestamp&&o.timestamp<e.afterTimestamp||e.beforeTimestamp&&o.timestamp>e.beforeTimestamp)return!1;if(e.ignoredPatterns?.length){for(let n of e.ignoredPatterns)if(new RegExp(n).test(o.label))return!1}if(e.includedPatterns?.length){let n=!1;for(let u of e.includedPatterns)if(new RegExp(u).test(o.label)){n=!0;break}if(!n)return!1}return!0})}import{jsx as k}from"react/jsx-runtime";function _(t){let o=Date.now()-t;return o<1e3?"just now":o<6e4?`${Math.floor(o/1e3)}s ago`:o<36e5?`${Math.floor(o/6e4)}m ago`:`${Math.floor(o/36e5)}h ago`}function tt(t,e){if(e?.color)return e.color;if(t.status==="error")return y.error;if(t.status==="pending")return y.warning;if(t.status==="success")return y.success;if(t.hasStateChange)return y.success;if(t.isSkipped)return y.textMuted;if(t.isInFuture)return y.textMuted+"80";switch(t.source){case"redux":return"#764ABC";case"zustand":return"#443E38";case"mmkv":return"#4CAF50";case"async-storage":return"#2196F3";case"react-query":return"#FF4154";case"jotai":return"#000000";case"legend-state":return"#7C3AED";default:return y.textSecondary}}function et(t){return t.isSkipped?"Skipped":t.isInFuture?"Future":t.status?t.status.charAt(0).toUpperCase()+t.status.slice(1):t.hasStateChange?"Changed":"Action"}function rt(t,e){return e?.name?e.name:t.category?t.category:t.source}function R({entry:t,adapter:e,isSelected:o,onPress:n,showSource:u=!0,showDuration:l=!0}){let c=tt(t,e),E=et(t),d=u?rt(t,e):void 0,a=_(t.timestamp);l&&t.duration!==void 0&&(a=`${t.duration.toFixed(1)}ms \xB7 ${a}`);let m=t.hasStateChange?k(w,{style:D.changeBadge,children:k(x,{style:D.changeBadgeText,children:"\u26A1"})}):void 0;return k(B,{statusDotColor:c,statusLabel:E,statusSublabel:d,primaryText:t.label,bottomRightText:a,customBadge:m,isSelected:o,onPress:n?()=>n(t):void 0,showChevron:!!n})}var D=L.create({changeBadge:{paddingHorizontal:4},changeBadgeText:{fontSize:12}});import{useCallback as T,useMemo as v}from"react";import{jsx as g,jsxs as W}from"react/jsx-runtime";function N({filter:t,selectedEntryId:e,onSelectEntry:o,showSource:n=!0,emptyMessage:u="No history entries yet",ListHeaderComponent:l,ListFooterComponent:c}){let E=V(t),d=I(),a=v(()=>{let i=new Map;return d.forEach(h=>i.set(h.id,h)),i},[d]),m=T(i=>`${i.source}-${i.id}`,[]),C=T(({item:i})=>{let h=a.get(i.source);return g(R,{entry:i,adapter:h,isSelected:e===i.id,onPress:o,showSource:n})},[a,e,o,n]),p=v(()=>W(w,{style:H.emptyContainer,children:[g(x,{style:H.emptyText,children:u}),g(x,{style:H.emptySubtext,children:"Actions will appear here as they happen"})]}),[u]);return g(F,{data:E,keyExtractor:m,renderItem:C,ListEmptyComponent:p,ListHeaderComponent:l,ListFooterComponent:c,contentContainerStyle:H.listContent,showsVerticalScrollIndicator:!1,removeClippedSubviews:!0,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15,getItemLayout:void 0})}function K({entries:t,adapters:e=[],selectedEntryId:o,onSelectEntry:n,showSource:u=!0,emptyMessage:l="No history entries yet",ListHeaderComponent:c,ListFooterComponent:E}){let d=v(()=>{let p=new Map;return e.forEach(i=>p.set(i.id,i)),p},[e]),a=T(p=>`${p.source}-${p.id}`,[]),m=T(({item:p})=>{let i=d.get(p.source);return g(R,{entry:p,adapter:i,isSelected:o===p.id,onPress:n,showSource:u})},[d,o,n,u]),C=v(()=>W(w,{style:H.emptyContainer,children:[g(x,{style:H.emptyText,children:l}),g(x,{style:H.emptySubtext,children:"Actions will appear here as they happen"})]}),[l]);return g(F,{data:t,keyExtractor:a,renderItem:m,ListEmptyComponent:C,ListHeaderComponent:c,ListFooterComponent:E,contentContainerStyle:H.listContent,showsVerticalScrollIndicator:!1,removeClippedSubviews:!0,maxToRenderPerBatch:15,windowSize:10,initialNumToRender:15})}var H=L.create({listContent:{flexGrow:1,paddingVertical:4},emptyContainer:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:60,paddingHorizontal:20},emptyText:{fontSize:16,fontWeight:"600",color:y.text,marginBottom:8},emptySubtext:{fontSize:13,color:y.textMuted,textAlign:"center"}});export{J as a,S as b,I as c,Q as d,V as e,X as f,R as g,N as h,K as i};
|