@buoy-gg/floating-tools-core 7.0.35 → 7.0.38
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 +36 -0
- package/floating.d.ts +1 -0
- package/floating.js +1 -0
- package/lib/commonjs/FloatingToolsStore.js +1 -501
- package/lib/commonjs/colors.js +1 -54
- package/lib/commonjs/constants.js +1 -31
- package/lib/commonjs/devToolsState.js +1 -325
- package/lib/commonjs/dial.js +1 -633
- package/lib/commonjs/dialUsage.js +1 -130
- package/lib/commonjs/easing.js +1 -69
- package/lib/commonjs/floating.js +1 -0
- package/lib/commonjs/fonts.js +1 -31
- package/lib/commonjs/fonts.web.js +1 -0
- package/lib/commonjs/icons/ICONS.md +7 -0
- package/lib/commonjs/icons/ask-buoy-icon.js +1 -27
- package/lib/commonjs/icons/ask-buoy-icon.native.js +1 -0
- package/lib/commonjs/icons/assets/askBuoy.png +0 -0
- package/lib/commonjs/icons/assets/askBuoy@2x.png +0 -0
- package/lib/commonjs/icons/assets/askBuoy@3x.png +0 -0
- package/lib/commonjs/icons/assets/assets.png +0 -0
- package/lib/commonjs/icons/assets/assets@2x.png +0 -0
- package/lib/commonjs/icons/assets/assets@3x.png +0 -0
- package/lib/commonjs/icons/assets/benchmark.png +0 -0
- package/lib/commonjs/icons/assets/benchmark@2x.png +0 -0
- package/lib/commonjs/icons/assets/benchmark@3x.png +0 -0
- package/lib/commonjs/icons/assets/camera.png +0 -0
- package/lib/commonjs/icons/assets/camera@2x.png +0 -0
- package/lib/commonjs/icons/assets/camera@3x.png +0 -0
- package/lib/commonjs/icons/assets/console.png +0 -0
- package/lib/commonjs/icons/assets/console@2x.png +0 -0
- package/lib/commonjs/icons/assets/console@3x.png +0 -0
- package/lib/commonjs/icons/assets/env.png +0 -0
- package/lib/commonjs/icons/assets/env@2x.png +0 -0
- package/lib/commonjs/icons/assets/env@3x.png +0 -0
- package/lib/commonjs/icons/assets/events.png +0 -0
- package/lib/commonjs/icons/assets/events@2x.png +0 -0
- package/lib/commonjs/icons/assets/events@3x.png +0 -0
- package/lib/commonjs/icons/assets/highlight.png +0 -0
- package/lib/commonjs/icons/assets/highlight@2x.png +0 -0
- package/lib/commonjs/icons/assets/highlight@3x.png +0 -0
- package/lib/commonjs/icons/assets/highlighter.png +0 -0
- package/lib/commonjs/icons/assets/highlighter@2x.png +0 -0
- package/lib/commonjs/icons/assets/highlighter@3x.png +0 -0
- package/lib/commonjs/icons/assets/image-overlay.png +0 -0
- package/lib/commonjs/icons/assets/image-overlay@2x.png +0 -0
- package/lib/commonjs/icons/assets/image-overlay@3x.png +0 -0
- package/lib/commonjs/icons/assets/images.png +0 -0
- package/lib/commonjs/icons/assets/images@2x.png +0 -0
- package/lib/commonjs/icons/assets/images@3x.png +0 -0
- package/lib/commonjs/icons/assets/impersonate.png +0 -0
- package/lib/commonjs/icons/assets/impersonate@2x.png +0 -0
- package/lib/commonjs/icons/assets/impersonate@3x.png +0 -0
- package/lib/commonjs/icons/assets/jotai.png +0 -0
- package/lib/commonjs/icons/assets/jotai@2x.png +0 -0
- package/lib/commonjs/icons/assets/jotai@3x.png +0 -0
- package/lib/commonjs/icons/assets/network.png +0 -0
- package/lib/commonjs/icons/assets/network@2x.png +0 -0
- package/lib/commonjs/icons/assets/network@3x.png +0 -0
- package/lib/commonjs/icons/assets/query.png +0 -0
- package/lib/commonjs/icons/assets/query@2x.png +0 -0
- package/lib/commonjs/icons/assets/query@3x.png +0 -0
- package/lib/commonjs/icons/assets/redux.png +0 -0
- package/lib/commonjs/icons/assets/redux@2x.png +0 -0
- package/lib/commonjs/icons/assets/redux@3x.png +0 -0
- package/lib/commonjs/icons/assets/riverpod.png +0 -0
- package/lib/commonjs/icons/assets/riverpod@2x.png +0 -0
- package/lib/commonjs/icons/assets/riverpod@3x.png +0 -0
- package/lib/commonjs/icons/assets/routes.png +0 -0
- package/lib/commonjs/icons/assets/routes@2x.png +0 -0
- package/lib/commonjs/icons/assets/routes@3x.png +0 -0
- package/lib/commonjs/icons/assets/scenarios.png +0 -0
- package/lib/commonjs/icons/assets/scenarios@2x.png +0 -0
- package/lib/commonjs/icons/assets/scenarios@3x.png +0 -0
- package/lib/commonjs/icons/assets/sentry.png +0 -0
- package/lib/commonjs/icons/assets/sentry@2x.png +0 -0
- package/lib/commonjs/icons/assets/sentry@3x.png +0 -0
- package/lib/commonjs/icons/assets/settings.png +0 -0
- package/lib/commonjs/icons/assets/settings@2x.png +0 -0
- package/lib/commonjs/icons/assets/settings@3x.png +0 -0
- package/lib/commonjs/icons/assets/storage.png +0 -0
- package/lib/commonjs/icons/assets/storage@2x.png +0 -0
- package/lib/commonjs/icons/assets/storage@3x.png +0 -0
- package/lib/commonjs/icons/assets/time-machine.png +0 -0
- package/lib/commonjs/icons/assets/time-machine@2x.png +0 -0
- package/lib/commonjs/icons/assets/time-machine@3x.png +0 -0
- package/lib/commonjs/icons/assets/wifi.png +0 -0
- package/lib/commonjs/icons/assets/wifi@2x.png +0 -0
- package/lib/commonjs/icons/assets/wifi@3x.png +0 -0
- package/lib/commonjs/icons/assets/zustand.png +0 -0
- package/lib/commonjs/icons/assets/zustand@2x.png +0 -0
- package/lib/commonjs/icons/assets/zustand@3x.png +0 -0
- package/lib/commonjs/icons/assets-icon.js +1 -26
- package/lib/commonjs/icons/assets-icon.native.js +1 -0
- package/lib/commonjs/icons/benchmark-icon.js +1 -24
- package/lib/commonjs/icons/benchmark-icon.native.js +1 -0
- package/lib/commonjs/icons/bif-raster-icon.js +1 -0
- package/lib/commonjs/icons/bif-raster-icon.native.js +1 -0
- package/lib/commonjs/icons/camera-icon.js +1 -27
- package/lib/commonjs/icons/camera-icon.native.js +1 -0
- package/lib/commonjs/icons/console-icon.js +1 -26
- package/lib/commonjs/icons/console-icon.native.js +1 -0
- package/lib/commonjs/icons/env-icon.js +1 -24
- package/lib/commonjs/icons/env-icon.native.js +1 -0
- package/lib/commonjs/icons/events-icon.js +1 -24
- package/lib/commonjs/icons/events-icon.native.js +1 -0
- package/lib/commonjs/icons/generated/assets-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/benchmark-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/camera-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/env-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/events-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/glyph-icons.g.js +1 -299
- package/lib/commonjs/icons/generated/highlight-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/highlighter-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/icon-data.g.js +1 -7170
- package/lib/commonjs/icons/generated/image-overlay-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/images-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/network-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/raster-icons.g.js +1 -0
- package/lib/commonjs/icons/generated/riverpod-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/routes-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/settings-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/storage-raster.g.js +1 -0
- package/lib/commonjs/icons/generated/wifi-raster.g.js +1 -0
- package/lib/commonjs/icons/highlight-icon.js +1 -24
- package/lib/commonjs/icons/highlight-icon.native.js +1 -0
- package/lib/commonjs/icons/highlighter-icon.js +1 -0
- package/lib/commonjs/icons/highlighter-icon.native.js +1 -0
- package/lib/commonjs/icons/icon-factories.js +1 -173
- package/lib/commonjs/icons/icon-primitives.js +1 -676
- package/lib/commonjs/icons/icon-primitives.native.js +1 -904
- package/lib/commonjs/icons/icon-renderer.js +1 -307
- package/lib/commonjs/icons/iconGlow.js +1 -32
- package/lib/commonjs/icons/image-overlay-icon.js +1 -26
- package/lib/commonjs/icons/image-overlay-icon.native.js +1 -0
- package/lib/commonjs/icons/images-icon.js +1 -26
- package/lib/commonjs/icons/images-icon.native.js +1 -0
- package/lib/commonjs/icons/impersonate-icon.js +1 -26
- package/lib/commonjs/icons/impersonate-icon.native.js +1 -0
- package/lib/commonjs/icons/jotai-icon.js +1 -26
- package/lib/commonjs/icons/jotai-icon.native.js +1 -0
- package/lib/commonjs/icons/network-icon.js +1 -24
- package/lib/commonjs/icons/network-icon.native.js +1 -0
- package/lib/commonjs/icons/query-icon.js +1 -24
- package/lib/commonjs/icons/query-icon.native.js +1 -0
- package/lib/commonjs/icons/raster-icon.js +1 -0
- package/lib/commonjs/icons/redux-icon.js +1 -24
- package/lib/commonjs/icons/redux-icon.native.js +1 -0
- package/lib/commonjs/icons/renders-icon.js +1 -33
- package/lib/commonjs/icons/renders-icon.native.js +1 -0
- package/lib/commonjs/icons/riverpod-icon.js +1 -26
- package/lib/commonjs/icons/riverpod-icon.native.js +1 -0
- package/lib/commonjs/icons/routes-icon.js +1 -49
- package/lib/commonjs/icons/routes-icon.native.js +1 -0
- package/lib/commonjs/icons/routes-parts.js +1 -0
- package/lib/commonjs/icons/scenarios-icon.js +1 -26
- package/lib/commonjs/icons/scenarios-icon.native.js +1 -0
- package/lib/commonjs/icons/sentry-icon.js +1 -24
- package/lib/commonjs/icons/sentry-icon.native.js +1 -0
- package/lib/commonjs/icons/settings-icon.js +1 -0
- package/lib/commonjs/icons/settings-icon.native.js +1 -0
- package/lib/commonjs/icons/storage-icon.js +1 -24
- package/lib/commonjs/icons/storage-icon.native.js +1 -0
- package/lib/commonjs/icons/time-machine-icon.js +1 -26
- package/lib/commonjs/icons/time-machine-icon.native.js +1 -0
- package/lib/commonjs/icons/wifi-icon.js +1 -24
- package/lib/commonjs/icons/wifi-icon.native.js +1 -0
- package/lib/commonjs/icons/zustand-icon.js +1 -26
- package/lib/commonjs/icons/zustand-icon.native.js +1 -0
- package/lib/commonjs/index.js +1 -1091
- package/lib/commonjs/settings.js +1 -601
- package/lib/commonjs/utils.js +1 -72
- package/lib/module/FloatingToolsStore.js +1 -496
- package/lib/module/colors.js +1 -49
- package/lib/module/constants.js +1 -27
- package/lib/module/devToolsState.js +1 -318
- package/lib/module/dial.js +1 -618
- package/lib/module/dialUsage.js +1 -122
- package/lib/module/easing.js +1 -62
- package/lib/module/floating.js +1 -0
- package/lib/module/fonts.js +1 -28
- package/lib/module/fonts.web.js +1 -0
- package/lib/module/icons/ICONS.md +7 -0
- package/lib/module/icons/ask-buoy-icon.js +1 -18
- package/lib/module/icons/ask-buoy-icon.native.js +1 -0
- package/lib/module/icons/assets/askBuoy.png +0 -0
- package/lib/module/icons/assets/askBuoy@2x.png +0 -0
- package/lib/module/icons/assets/askBuoy@3x.png +0 -0
- package/lib/module/icons/assets/assets.png +0 -0
- package/lib/module/icons/assets/assets@2x.png +0 -0
- package/lib/module/icons/assets/assets@3x.png +0 -0
- package/lib/module/icons/assets/benchmark.png +0 -0
- package/lib/module/icons/assets/benchmark@2x.png +0 -0
- package/lib/module/icons/assets/benchmark@3x.png +0 -0
- package/lib/module/icons/assets/camera.png +0 -0
- package/lib/module/icons/assets/camera@2x.png +0 -0
- package/lib/module/icons/assets/camera@3x.png +0 -0
- package/lib/module/icons/assets/console.png +0 -0
- package/lib/module/icons/assets/console@2x.png +0 -0
- package/lib/module/icons/assets/console@3x.png +0 -0
- package/lib/module/icons/assets/env.png +0 -0
- package/lib/module/icons/assets/env@2x.png +0 -0
- package/lib/module/icons/assets/env@3x.png +0 -0
- package/lib/module/icons/assets/events.png +0 -0
- package/lib/module/icons/assets/events@2x.png +0 -0
- package/lib/module/icons/assets/events@3x.png +0 -0
- package/lib/module/icons/assets/highlight.png +0 -0
- package/lib/module/icons/assets/highlight@2x.png +0 -0
- package/lib/module/icons/assets/highlight@3x.png +0 -0
- package/lib/module/icons/assets/highlighter.png +0 -0
- package/lib/module/icons/assets/highlighter@2x.png +0 -0
- package/lib/module/icons/assets/highlighter@3x.png +0 -0
- package/lib/module/icons/assets/image-overlay.png +0 -0
- package/lib/module/icons/assets/image-overlay@2x.png +0 -0
- package/lib/module/icons/assets/image-overlay@3x.png +0 -0
- package/lib/module/icons/assets/images.png +0 -0
- package/lib/module/icons/assets/images@2x.png +0 -0
- package/lib/module/icons/assets/images@3x.png +0 -0
- package/lib/module/icons/assets/impersonate.png +0 -0
- package/lib/module/icons/assets/impersonate@2x.png +0 -0
- package/lib/module/icons/assets/impersonate@3x.png +0 -0
- package/lib/module/icons/assets/jotai.png +0 -0
- package/lib/module/icons/assets/jotai@2x.png +0 -0
- package/lib/module/icons/assets/jotai@3x.png +0 -0
- package/lib/module/icons/assets/network.png +0 -0
- package/lib/module/icons/assets/network@2x.png +0 -0
- package/lib/module/icons/assets/network@3x.png +0 -0
- package/lib/module/icons/assets/query.png +0 -0
- package/lib/module/icons/assets/query@2x.png +0 -0
- package/lib/module/icons/assets/query@3x.png +0 -0
- package/lib/module/icons/assets/redux.png +0 -0
- package/lib/module/icons/assets/redux@2x.png +0 -0
- package/lib/module/icons/assets/redux@3x.png +0 -0
- package/lib/module/icons/assets/riverpod.png +0 -0
- package/lib/module/icons/assets/riverpod@2x.png +0 -0
- package/lib/module/icons/assets/riverpod@3x.png +0 -0
- package/lib/module/icons/assets/routes.png +0 -0
- package/lib/module/icons/assets/routes@2x.png +0 -0
- package/lib/module/icons/assets/routes@3x.png +0 -0
- package/lib/module/icons/assets/scenarios.png +0 -0
- package/lib/module/icons/assets/scenarios@2x.png +0 -0
- package/lib/module/icons/assets/scenarios@3x.png +0 -0
- package/lib/module/icons/assets/sentry.png +0 -0
- package/lib/module/icons/assets/sentry@2x.png +0 -0
- package/lib/module/icons/assets/sentry@3x.png +0 -0
- package/lib/module/icons/assets/settings.png +0 -0
- package/lib/module/icons/assets/settings@2x.png +0 -0
- package/lib/module/icons/assets/settings@3x.png +0 -0
- package/lib/module/icons/assets/storage.png +0 -0
- package/lib/module/icons/assets/storage@2x.png +0 -0
- package/lib/module/icons/assets/storage@3x.png +0 -0
- package/lib/module/icons/assets/time-machine.png +0 -0
- package/lib/module/icons/assets/time-machine@2x.png +0 -0
- package/lib/module/icons/assets/time-machine@3x.png +0 -0
- package/lib/module/icons/assets/wifi.png +0 -0
- package/lib/module/icons/assets/wifi@2x.png +0 -0
- package/lib/module/icons/assets/wifi@3x.png +0 -0
- package/lib/module/icons/assets/zustand.png +0 -0
- package/lib/module/icons/assets/zustand@2x.png +0 -0
- package/lib/module/icons/assets/zustand@3x.png +0 -0
- package/lib/module/icons/assets-icon.js +1 -17
- package/lib/module/icons/assets-icon.native.js +1 -0
- package/lib/module/icons/benchmark-icon.js +1 -15
- package/lib/module/icons/benchmark-icon.native.js +1 -0
- package/lib/module/icons/bif-raster-icon.js +1 -0
- package/lib/module/icons/bif-raster-icon.native.js +1 -0
- package/lib/module/icons/camera-icon.js +1 -18
- package/lib/module/icons/camera-icon.native.js +1 -0
- package/lib/module/icons/console-icon.js +1 -17
- package/lib/module/icons/console-icon.native.js +1 -0
- package/lib/module/icons/env-icon.js +1 -15
- package/lib/module/icons/env-icon.native.js +1 -0
- package/lib/module/icons/events-icon.js +1 -15
- package/lib/module/icons/events-icon.native.js +1 -0
- package/lib/module/icons/generated/assets-raster.g.js +1 -0
- package/lib/module/icons/generated/benchmark-raster.g.js +1 -0
- package/lib/module/icons/generated/camera-raster.g.js +1 -0
- package/lib/module/icons/generated/env-raster.g.js +1 -0
- package/lib/module/icons/generated/events-raster.g.js +1 -0
- package/lib/module/icons/generated/glyph-icons.g.js +1 -296
- package/lib/module/icons/generated/highlight-raster.g.js +1 -0
- package/lib/module/icons/generated/highlighter-raster.g.js +1 -0
- package/lib/module/icons/generated/icon-data.g.js +1 -7165
- package/lib/module/icons/generated/image-overlay-raster.g.js +1 -0
- package/lib/module/icons/generated/images-raster.g.js +1 -0
- package/lib/module/icons/generated/network-raster.g.js +1 -0
- package/lib/module/icons/generated/raster-icons.g.js +1 -0
- package/lib/module/icons/generated/riverpod-raster.g.js +1 -0
- package/lib/module/icons/generated/routes-raster.g.js +1 -0
- package/lib/module/icons/generated/settings-raster.g.js +1 -0
- package/lib/module/icons/generated/storage-raster.g.js +1 -0
- package/lib/module/icons/generated/wifi-raster.g.js +1 -0
- package/lib/module/icons/highlight-icon.js +1 -15
- package/lib/module/icons/highlight-icon.native.js +1 -0
- package/lib/module/icons/highlighter-icon.js +1 -0
- package/lib/module/icons/highlighter-icon.native.js +1 -0
- package/lib/module/icons/icon-factories.js +1 -163
- package/lib/module/icons/icon-primitives.js +1 -673
- package/lib/module/icons/icon-primitives.native.js +1 -899
- package/lib/module/icons/icon-renderer.js +1 -302
- package/lib/module/icons/iconGlow.js +1 -28
- package/lib/module/icons/image-overlay-icon.js +1 -17
- package/lib/module/icons/image-overlay-icon.native.js +1 -0
- package/lib/module/icons/images-icon.js +1 -17
- package/lib/module/icons/images-icon.native.js +1 -0
- package/lib/module/icons/impersonate-icon.js +1 -17
- package/lib/module/icons/impersonate-icon.native.js +1 -0
- package/lib/module/icons/jotai-icon.js +1 -17
- package/lib/module/icons/jotai-icon.native.js +1 -0
- package/lib/module/icons/network-icon.js +1 -15
- package/lib/module/icons/network-icon.native.js +1 -0
- package/lib/module/icons/query-icon.js +1 -15
- package/lib/module/icons/query-icon.native.js +1 -0
- package/lib/module/icons/raster-icon.js +1 -0
- package/lib/module/icons/redux-icon.js +1 -15
- package/lib/module/icons/redux-icon.native.js +1 -0
- package/lib/module/icons/renders-icon.js +1 -17
- package/lib/module/icons/renders-icon.native.js +1 -0
- package/lib/module/icons/riverpod-icon.js +1 -17
- package/lib/module/icons/riverpod-icon.native.js +1 -0
- package/lib/module/icons/routes-icon.js +1 -41
- package/lib/module/icons/routes-icon.native.js +1 -0
- package/lib/module/icons/routes-parts.js +1 -0
- package/lib/module/icons/scenarios-icon.js +1 -17
- package/lib/module/icons/scenarios-icon.native.js +1 -0
- package/lib/module/icons/sentry-icon.js +1 -15
- package/lib/module/icons/sentry-icon.native.js +1 -0
- package/lib/module/icons/settings-icon.js +1 -0
- package/lib/module/icons/settings-icon.native.js +1 -0
- package/lib/module/icons/storage-icon.js +1 -15
- package/lib/module/icons/storage-icon.native.js +1 -0
- package/lib/module/icons/time-machine-icon.js +1 -17
- package/lib/module/icons/time-machine-icon.native.js +1 -0
- package/lib/module/icons/wifi-icon.js +1 -15
- package/lib/module/icons/wifi-icon.native.js +1 -0
- package/lib/module/icons/zustand-icon.js +1 -17
- package/lib/module/icons/zustand-icon.native.js +1 -0
- package/lib/module/index.js +1 -127
- package/lib/module/settings.js +1 -589
- package/lib/module/utils.js +1 -66
- package/lib/typescript/commonjs/FloatingToolsStore.d.ts +2 -0
- package/lib/typescript/commonjs/dial.d.ts +6 -0
- package/lib/typescript/commonjs/floating.d.ts +8 -0
- package/lib/typescript/commonjs/fonts.web.d.ts +3 -0
- package/lib/typescript/commonjs/icons/ask-buoy-icon.d.ts +1 -13
- package/lib/typescript/commonjs/icons/ask-buoy-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/assets-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/assets-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/benchmark-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/benchmark-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/bif-raster-icon.d.ts +4 -0
- package/lib/typescript/commonjs/icons/bif-raster-icon.native.d.ts +5 -0
- package/lib/typescript/commonjs/icons/camera-icon.d.ts +1 -13
- package/lib/typescript/commonjs/icons/camera-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/console-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/console-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/env-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/env-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/events-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/events-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/assets-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/benchmark-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/camera-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/env-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/events-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/highlight-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/highlighter-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts +27 -1
- package/lib/typescript/commonjs/icons/generated/image-overlay-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/images-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/network-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/raster-icons.g.d.ts +13 -0
- package/lib/typescript/commonjs/icons/generated/riverpod-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/routes-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/settings-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/storage-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/generated/wifi-raster.g.d.ts +3 -0
- package/lib/typescript/commonjs/icons/highlight-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/highlight-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/highlighter-icon.d.ts +5 -0
- package/lib/typescript/commonjs/icons/highlighter-icon.native.d.ts +5 -0
- package/lib/typescript/commonjs/icons/image-overlay-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/image-overlay-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/images-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/images-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/impersonate-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/impersonate-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/jotai-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/jotai-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/network-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/network-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/query-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/query-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/raster-icon.d.ts +5 -0
- package/lib/typescript/commonjs/icons/redux-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/redux-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/renders-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/renders-icon.native.d.ts +2 -0
- package/lib/typescript/commonjs/icons/riverpod-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/riverpod-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/routes-icon.d.ts +2 -30
- package/lib/typescript/commonjs/icons/routes-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/routes-parts.d.ts +31 -0
- package/lib/typescript/commonjs/icons/scenarios-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/scenarios-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/sentry-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/sentry-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/settings-icon.d.ts +2 -0
- package/lib/typescript/commonjs/icons/settings-icon.native.d.ts +2 -0
- package/lib/typescript/commonjs/icons/storage-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/storage-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/time-machine-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/time-machine-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/icons/wifi-icon.d.ts +1 -10
- package/lib/typescript/commonjs/icons/wifi-icon.native.d.ts +3 -0
- package/lib/typescript/commonjs/icons/zustand-icon.d.ts +1 -12
- package/lib/typescript/commonjs/icons/zustand-icon.native.d.ts +4 -0
- package/lib/typescript/commonjs/index.d.ts +1 -0
- package/lib/typescript/module/FloatingToolsStore.d.ts +2 -0
- package/lib/typescript/module/dial.d.ts +6 -0
- package/lib/typescript/module/floating.d.ts +8 -0
- package/lib/typescript/module/fonts.web.d.ts +3 -0
- package/lib/typescript/module/icons/ask-buoy-icon.d.ts +1 -13
- package/lib/typescript/module/icons/ask-buoy-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/assets-icon.d.ts +1 -12
- package/lib/typescript/module/icons/assets-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/benchmark-icon.d.ts +1 -10
- package/lib/typescript/module/icons/benchmark-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/bif-raster-icon.d.ts +4 -0
- package/lib/typescript/module/icons/bif-raster-icon.native.d.ts +5 -0
- package/lib/typescript/module/icons/camera-icon.d.ts +1 -13
- package/lib/typescript/module/icons/camera-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/console-icon.d.ts +1 -12
- package/lib/typescript/module/icons/console-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/env-icon.d.ts +1 -10
- package/lib/typescript/module/icons/env-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/events-icon.d.ts +1 -10
- package/lib/typescript/module/icons/events-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/generated/assets-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/benchmark-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/camera-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/env-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/events-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/highlight-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/highlighter-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/icon-data.g.d.ts +27 -1
- package/lib/typescript/module/icons/generated/image-overlay-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/images-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/network-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/raster-icons.g.d.ts +13 -0
- package/lib/typescript/module/icons/generated/riverpod-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/routes-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/settings-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/storage-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/generated/wifi-raster.g.d.ts +3 -0
- package/lib/typescript/module/icons/highlight-icon.d.ts +1 -10
- package/lib/typescript/module/icons/highlight-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/highlighter-icon.d.ts +5 -0
- package/lib/typescript/module/icons/highlighter-icon.native.d.ts +5 -0
- package/lib/typescript/module/icons/image-overlay-icon.d.ts +1 -12
- package/lib/typescript/module/icons/image-overlay-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/images-icon.d.ts +1 -12
- package/lib/typescript/module/icons/images-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/impersonate-icon.d.ts +1 -12
- package/lib/typescript/module/icons/impersonate-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/jotai-icon.d.ts +1 -12
- package/lib/typescript/module/icons/jotai-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/network-icon.d.ts +1 -10
- package/lib/typescript/module/icons/network-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/query-icon.d.ts +1 -10
- package/lib/typescript/module/icons/query-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/raster-icon.d.ts +5 -0
- package/lib/typescript/module/icons/redux-icon.d.ts +1 -10
- package/lib/typescript/module/icons/redux-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/renders-icon.d.ts +1 -12
- package/lib/typescript/module/icons/renders-icon.native.d.ts +2 -0
- package/lib/typescript/module/icons/riverpod-icon.d.ts +1 -12
- package/lib/typescript/module/icons/riverpod-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/routes-icon.d.ts +2 -30
- package/lib/typescript/module/icons/routes-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/routes-parts.d.ts +31 -0
- package/lib/typescript/module/icons/scenarios-icon.d.ts +1 -12
- package/lib/typescript/module/icons/scenarios-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/sentry-icon.d.ts +1 -10
- package/lib/typescript/module/icons/sentry-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/settings-icon.d.ts +2 -0
- package/lib/typescript/module/icons/settings-icon.native.d.ts +2 -0
- package/lib/typescript/module/icons/storage-icon.d.ts +1 -10
- package/lib/typescript/module/icons/storage-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/time-machine-icon.d.ts +1 -12
- package/lib/typescript/module/icons/time-machine-icon.native.d.ts +4 -0
- package/lib/typescript/module/icons/wifi-icon.d.ts +1 -10
- package/lib/typescript/module/icons/wifi-icon.native.d.ts +3 -0
- package/lib/typescript/module/icons/zustand-icon.d.ts +1 -12
- package/lib/typescript/module/icons/zustand-icon.native.d.ts +4 -0
- package/lib/typescript/module/index.d.ts +1 -0
- package/package.json +23 -3
- package/lib/typescript/commonjs/FloatingToolsStore.d.ts.map +0 -1
- package/lib/typescript/commonjs/colors.d.ts.map +0 -1
- package/lib/typescript/commonjs/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/devToolsState.d.ts.map +0 -1
- package/lib/typescript/commonjs/dial.d.ts.map +0 -1
- package/lib/typescript/commonjs/dialUsage.d.ts.map +0 -1
- package/lib/typescript/commonjs/easing.d.ts.map +0 -1
- package/lib/typescript/commonjs/fonts.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/ask-buoy-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/assets-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/benchmark-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/camera-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/console-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/env-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/events-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/generated/glyph-icons.g.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/generated/icon-data.g.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/highlight-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/icon-factories.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/icon-primitives.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/icon-primitives.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/icon-renderer.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/iconGlow.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/image-overlay-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/images-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/impersonate-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/jotai-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/network-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/query-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/redux-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/renders-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/riverpod-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/routes-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/scenarios-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/sentry-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/storage-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/time-machine-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/wifi-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/icons/zustand-icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/settings.d.ts.map +0 -1
- package/lib/typescript/commonjs/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/utils.d.ts.map +0 -1
- package/lib/typescript/module/FloatingToolsStore.d.ts.map +0 -1
- package/lib/typescript/module/colors.d.ts.map +0 -1
- package/lib/typescript/module/constants.d.ts.map +0 -1
- package/lib/typescript/module/devToolsState.d.ts.map +0 -1
- package/lib/typescript/module/dial.d.ts.map +0 -1
- package/lib/typescript/module/dialUsage.d.ts.map +0 -1
- package/lib/typescript/module/easing.d.ts.map +0 -1
- package/lib/typescript/module/fonts.d.ts.map +0 -1
- package/lib/typescript/module/icons/ask-buoy-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/assets-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/benchmark-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/camera-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/console-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/env-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/events-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/generated/glyph-icons.g.d.ts.map +0 -1
- package/lib/typescript/module/icons/generated/icon-data.g.d.ts.map +0 -1
- package/lib/typescript/module/icons/highlight-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/icon-factories.d.ts.map +0 -1
- package/lib/typescript/module/icons/icon-primitives.d.ts.map +0 -1
- package/lib/typescript/module/icons/icon-primitives.native.d.ts.map +0 -1
- package/lib/typescript/module/icons/icon-renderer.d.ts.map +0 -1
- package/lib/typescript/module/icons/iconGlow.d.ts.map +0 -1
- package/lib/typescript/module/icons/image-overlay-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/images-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/impersonate-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/jotai-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/network-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/query-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/redux-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/renders-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/riverpod-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/routes-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/scenarios-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/sentry-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/storage-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/time-machine-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/wifi-icon.d.ts.map +0 -1
- package/lib/typescript/module/icons/zustand-icon.d.ts.map +0 -1
- package/lib/typescript/module/index.d.ts.map +0 -1
- package/lib/typescript/module/settings.d.ts.map +0 -1
- package/lib/typescript/module/types.d.ts.map +0 -1
- package/lib/typescript/module/utils.d.ts.map +0 -1
|
@@ -1,130 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.USAGE_MIN_SCORE = exports.USAGE_HALF_LIFE_MS = void 0;
|
|
7
|
-
exports.decayScore = decayScore;
|
|
8
|
-
exports.pruneUsage = pruneUsage;
|
|
9
|
-
exports.rankToolIds = rankToolIds;
|
|
10
|
-
exports.recordUsage = recordUsage;
|
|
11
|
-
/**
|
|
12
|
-
* Dial Usage - Recency-weighted usage tracking for the dial menu.
|
|
13
|
-
*
|
|
14
|
-
* Pure scoring/ranking logic. No React or platform-specific code.
|
|
15
|
-
*
|
|
16
|
-
* The dial menu ranks tools by how recently and frequently they are used.
|
|
17
|
-
* Each press adds 1 point to a tool's score; that score decays exponentially
|
|
18
|
-
* over time (half-life ~3 days) so the ordering reflects "what I'm using most
|
|
19
|
-
* lately" rather than all-time totals.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
// =============================
|
|
23
|
-
// Constants
|
|
24
|
-
// =============================
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Half-life of a usage score, in milliseconds (~3 days).
|
|
28
|
-
* After this much time, an untouched tool's score halves.
|
|
29
|
-
*/
|
|
30
|
-
const USAGE_HALF_LIFE_MS = exports.USAGE_HALF_LIFE_MS = 3 * 24 * 60 * 60 * 1000;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Scores at or below this value are treated as zero. Entries that decay
|
|
34
|
-
* below it can be safely pruned from storage.
|
|
35
|
-
*/
|
|
36
|
-
const USAGE_MIN_SCORE = exports.USAGE_MIN_SCORE = 0.01;
|
|
37
|
-
|
|
38
|
-
// =============================
|
|
39
|
-
// Types
|
|
40
|
-
// =============================
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* A single tool's usage record.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/** Map of tool id to its usage record. */
|
|
47
|
-
|
|
48
|
-
// =============================
|
|
49
|
-
// Scoring
|
|
50
|
-
// =============================
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Decay a stored score forward to `now`.
|
|
54
|
-
*
|
|
55
|
-
* @param entry - The usage entry to evaluate
|
|
56
|
-
* @param now - Current epoch ms
|
|
57
|
-
* @returns The score decayed to `now` (never negative)
|
|
58
|
-
*/
|
|
59
|
-
function decayScore(entry, now) {
|
|
60
|
-
if (!entry || entry.score <= 0) return 0;
|
|
61
|
-
const elapsed = now - entry.lastUsed;
|
|
62
|
-
// Guard against clock skew producing a score boost.
|
|
63
|
-
if (elapsed <= 0) return entry.score;
|
|
64
|
-
return entry.score * Math.pow(0.5, elapsed / USAGE_HALF_LIFE_MS);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Record a single press of a tool, returning a new usage map.
|
|
69
|
-
*
|
|
70
|
-
* The existing score is decayed forward to `now` before adding 1, so a
|
|
71
|
-
* burst of presses accumulates while stale scores naturally fade.
|
|
72
|
-
*
|
|
73
|
-
* @param map - Current usage map
|
|
74
|
-
* @param id - Tool id that was pressed
|
|
75
|
-
* @param now - Current epoch ms
|
|
76
|
-
* @returns A new usage map (input is not mutated)
|
|
77
|
-
*/
|
|
78
|
-
function recordUsage(map, id, now) {
|
|
79
|
-
const decayed = decayScore(map[id], now);
|
|
80
|
-
return {
|
|
81
|
-
...map,
|
|
82
|
-
[id]: {
|
|
83
|
-
score: decayed + 1,
|
|
84
|
-
lastUsed: now
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Rank tool ids by decayed usage score, highest first.
|
|
91
|
-
*
|
|
92
|
-
* The sort is stable: tools with equal scores (including never-used tools,
|
|
93
|
-
* which score 0) keep their original order in `orderedIds`. This preserves
|
|
94
|
-
* registration order as the tie-breaker.
|
|
95
|
-
*
|
|
96
|
-
* @param orderedIds - Tool ids in their default/registration order
|
|
97
|
-
* @param map - Current usage map
|
|
98
|
-
* @param now - Current epoch ms
|
|
99
|
-
* @returns A new array of ids sorted by usage
|
|
100
|
-
*/
|
|
101
|
-
function rankToolIds(orderedIds, map, now) {
|
|
102
|
-
const scored = orderedIds.map((id, index) => ({
|
|
103
|
-
id,
|
|
104
|
-
index,
|
|
105
|
-
score: decayScore(map[id], now)
|
|
106
|
-
}));
|
|
107
|
-
scored.sort((a, b) => {
|
|
108
|
-
if (b.score !== a.score) return b.score - a.score;
|
|
109
|
-
return a.index - b.index;
|
|
110
|
-
});
|
|
111
|
-
return scored.map(entry => entry.id);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Drop entries whose decayed score has fallen below `USAGE_MIN_SCORE`,
|
|
116
|
-
* keeping the persisted map from growing unbounded.
|
|
117
|
-
*
|
|
118
|
-
* @param map - Current usage map
|
|
119
|
-
* @param now - Current epoch ms
|
|
120
|
-
* @returns A new, pruned usage map
|
|
121
|
-
*/
|
|
122
|
-
function pruneUsage(map, now) {
|
|
123
|
-
const pruned = {};
|
|
124
|
-
for (const [id, entry] of Object.entries(map)) {
|
|
125
|
-
if (decayScore(entry, now) > USAGE_MIN_SCORE) {
|
|
126
|
-
pruned[id] = entry;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
return pruned;
|
|
130
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.USAGE_MIN_SCORE=exports.USAGE_HALF_LIFE_MS=void 0,exports.decayScore=decayScore,exports.pruneUsage=pruneUsage,exports.rankToolIds=rankToolIds,exports.recordUsage=recordUsage;const USAGE_HALF_LIFE_MS=exports.USAGE_HALF_LIFE_MS=2592e5,USAGE_MIN_SCORE=exports.USAGE_MIN_SCORE=.01;function decayScore(e,r){if(!e||e.score<=0)return 0;const o=r-e.lastUsed;return o<=0?e.score:e.score*Math.pow(.5,o/USAGE_HALF_LIFE_MS)}function recordUsage(e,r,o){const s=decayScore(e[r],o);return{...e,[r]:{score:s+1,lastUsed:o}}}function rankToolIds(e,r,o){const s=e.map((e,s)=>({id:e,index:s,score:decayScore(r[e],o)}));return s.sort((e,r)=>r.score!==e.score?r.score-e.score:e.index-r.index),s.map(e=>e.id)}function pruneUsage(e,r){const o={};for(const[s,c]of Object.entries(e))decayScore(c,r)>USAGE_MIN_SCORE&&(o[s]=c);return o}
|
package/lib/commonjs/easing.js
CHANGED
|
@@ -1,69 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.easing = void 0;
|
|
7
|
-
exports.getEasing = getEasing;
|
|
8
|
-
exports.interpolate = interpolate;
|
|
9
|
-
exports.interpolatePosition = interpolatePosition;
|
|
10
|
-
/**
|
|
11
|
-
* Animation easing functions.
|
|
12
|
-
* Platform-agnostic - used by both web (RAF) and mobile (Animated).
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Easing functions for animations.
|
|
17
|
-
* All functions take progress (0-1) and return eased value (0-1).
|
|
18
|
-
*/
|
|
19
|
-
const easing = exports.easing = {
|
|
20
|
-
/**
|
|
21
|
-
* Linear - no easing.
|
|
22
|
-
*/
|
|
23
|
-
linear: t => t,
|
|
24
|
-
/**
|
|
25
|
-
* Ease out cubic - decelerates towards end.
|
|
26
|
-
* Used for hide/show animations.
|
|
27
|
-
*/
|
|
28
|
-
easeOutCubic: t => 1 - Math.pow(1 - t, 3),
|
|
29
|
-
/**
|
|
30
|
-
* Ease in cubic - accelerates from start.
|
|
31
|
-
*/
|
|
32
|
-
easeInCubic: t => t * t * t,
|
|
33
|
-
/**
|
|
34
|
-
* Ease in-out cubic - smooth acceleration and deceleration.
|
|
35
|
-
*/
|
|
36
|
-
easeInOutCubic: t => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2,
|
|
37
|
-
/**
|
|
38
|
-
* Ease out quad - lighter deceleration than cubic.
|
|
39
|
-
*/
|
|
40
|
-
easeOutQuad: t => 1 - (1 - t) * (1 - t),
|
|
41
|
-
/**
|
|
42
|
-
* Ease out expo - strong deceleration (snappy feel).
|
|
43
|
-
*/
|
|
44
|
-
easeOutExpo: t => t === 1 ? 1 : 1 - Math.pow(2, -10 * t)
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Get an easing function by name.
|
|
48
|
-
*/
|
|
49
|
-
function getEasing(name) {
|
|
50
|
-
return easing[name];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Interpolate between two values using an easing function.
|
|
55
|
-
*/
|
|
56
|
-
function interpolate(from, to, progress, easingFn = easing.easeOutCubic) {
|
|
57
|
-
const eased = easingFn(Math.max(0, Math.min(1, progress)));
|
|
58
|
-
return from + (to - from) * eased;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Interpolate a position (x, y) using an easing function.
|
|
63
|
-
*/
|
|
64
|
-
function interpolatePosition(from, to, progress, easingFn = easing.easeOutCubic) {
|
|
65
|
-
return {
|
|
66
|
-
x: interpolate(from.x, to.x, progress, easingFn),
|
|
67
|
-
y: interpolate(from.y, to.y, progress, easingFn)
|
|
68
|
-
};
|
|
69
|
-
}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.easing=void 0,exports.getEasing=getEasing,exports.interpolate=interpolate,exports.interpolatePosition=interpolatePosition;const easing=exports.easing={linear:e=>e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInCubic:e=>e*e*e,easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeOutQuad:e=>1-(1-e)*(1-e),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e)};function getEasing(e){return easing[e]}function interpolate(e,t,i,n=easing.easeOutCubic){return e+(t-e)*n(Math.max(0,Math.min(1,i)))}function interpolatePosition(e,t,i,n=easing.easeOutCubic){return{x:interpolate(e.x,t.x,i,n),y:interpolate(e.y,t.y,i,n)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={FloatingToolsStore:!0};Object.defineProperty(exports,"FloatingToolsStore",{enumerable:!0,get:function(){return _FloatingToolsStore.FloatingToolsStore}});var _FloatingToolsStore=require("./FloatingToolsStore.js"),_constants=require("./constants.js");Object.keys(_constants).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_constants[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _constants[e]}}))});var _types=require("./types.js");Object.keys(_types).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_types[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _types[e]}}))});var _utils=require("./utils.js");Object.keys(_utils).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_utils[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _utils[e]}}))});var _easing=require("./easing.js");Object.keys(_easing).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_easing[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _easing[e]}}))});var _colors=require("./colors.js");Object.keys(_colors).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(_exportNames,e)||e in exports&&exports[e]===_colors[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return _colors[e]}}))});
|
package/lib/commonjs/fonts.js
CHANGED
|
@@ -1,31 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.monoFont = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
/**
|
|
9
|
-
* The monospace family, per platform — THE seam for every `fontFamily` in Buoy.
|
|
10
|
-
*
|
|
11
|
-
* `"monospace"` is an ANDROID family name. iOS has no family called that, so
|
|
12
|
-
* React Native silently falls back to the system font: every code path, header
|
|
13
|
-
* name, JSON value and status chip Buoy renders "in monospace" was actually
|
|
14
|
-
* proportional on iOS. The cross-framework parity sheet is what surfaced it —
|
|
15
|
-
* Flutter resolves `monospace` to a real monospaced face, so its chips came out
|
|
16
|
-
* wider and taller than their RN twins and looked like a port bug.
|
|
17
|
-
*
|
|
18
|
-
* Menlo ships with every iOS version and is the family the ports can name too
|
|
19
|
-
* (Flutter `buoyMonoFont`, SwiftUI `Font.custom("Menlo", …)`), which is what
|
|
20
|
-
* makes the three frameworks draw the same glyphs.
|
|
21
|
-
*
|
|
22
|
-
* On web (the desktop dashboard, react-native-web) the generic `monospace`
|
|
23
|
-
* resolves to a thin, poorly-hinted browser default, so a curated stack is used
|
|
24
|
-
* there instead — the choice `packages/console` had already made locally.
|
|
25
|
-
*/
|
|
26
|
-
const monoFont = exports.monoFont = _reactNative.Platform.select({
|
|
27
|
-
ios: "Menlo",
|
|
28
|
-
android: "monospace",
|
|
29
|
-
web: 'ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace',
|
|
30
|
-
default: "monospace"
|
|
31
|
-
}) ?? "monospace";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.monoFont=void 0;var _reactNative=require("react-native");const monoFont=exports.monoFont=_reactNative.Platform.select({ios:"Menlo",android:"monospace",web:'ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace',default:"monospace"})??"monospace";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.monoFont=void 0;const monoFont=exports.monoFont='ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
> **Raster defaults:** 15 shared tool designs plus 10 supplied or separately exported raster families use PNGs across supported platforms.
|
|
2
|
+
> Sources remain in `shared/icons`; the raster manifest is `shared/raster-icon-manifest.json`.
|
|
3
|
+
> Run `pnpm icons` after editing a source. Per-icon modules preserve aliases and fall back to
|
|
4
|
+
> the existing renderer for custom colors/backgrounds or previews above 48 points.
|
|
5
|
+
> Transparent image bleed does not enlarge the layout box. See `ICON_RASTER_CONVERSION_PLAN.md`
|
|
6
|
+
> for platform coverage and remaining validation.
|
|
7
|
+
|
|
1
8
|
# Icon System API Documentation
|
|
2
9
|
|
|
3
10
|
A declarative, data-driven icon system for creating scalable vector-like icons using pure React components. Works on both **web** and **React Native** without SVG dependencies.
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ASK_BUOY_ICON_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _iconDataG.ASK_BUOY_ICON_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.AskBuoyIcon = void 0;
|
|
13
|
-
var _iconRenderer = require("./icon-renderer.js");
|
|
14
|
-
var _iconDataG = require("./generated/icon-data.g.js");
|
|
15
|
-
/**
|
|
16
|
-
* AskBuoyIcon - Data-driven icon
|
|
17
|
-
*
|
|
18
|
-
* A speech bubble with three dots and a small orb above it — a conversation,
|
|
19
|
-
* with something thinking behind it.
|
|
20
|
-
*
|
|
21
|
-
* Defined as pure data in shared/icons/ask-buoy.json (Buoy Icon Format),
|
|
22
|
-
* so this is the same artwork the Flutter build renders.
|
|
23
|
-
*
|
|
24
|
-
* To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
const AskBuoyIcon = exports.AskBuoyIcon = (0, _iconRenderer.createIcon)(_iconDataG.askBuoyIconData);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASK_BUOY_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASK_BUOY_ICON_COLOR}}),exports.AskBuoyIcon=void 0;var _rasterIcon=require("./raster-icon.js"),_iconDataG=require("./generated/icon-data.g.js");const AskBuoyIcon=exports.AskBuoyIcon=(0,_rasterIcon.createRasterIcon)("askBuoy");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASK_BUOY_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASK_BUOY_ICON_COLOR}}),exports.AskBuoyIcon=AskBuoyIcon;var _reactNative=require("react-native"),_jsxRuntime=require("react/jsx-runtime"),_iconDataG=require("./generated/icon-data.g.js");const source=require("./assets/askBuoy.png");function AskBuoyIcon({size:e=24,style:t}){return(0,_jsxRuntime.jsx)(_reactNative.Image,{source:source,resizeMode:"contain",fadeDuration:0,accessible:!1,style:[{width:e,height:e},t]})}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "ASSETS_ICON_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _iconDataG.ASSETS_ICON_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.AssetsIcon = void 0;
|
|
13
|
-
var _iconRenderer = require("./icon-renderer.js");
|
|
14
|
-
var _iconDataG = require("./generated/icon-data.g.js");
|
|
15
|
-
/**
|
|
16
|
-
* AssetsIcon - Data-driven icon
|
|
17
|
-
*
|
|
18
|
-
* Stacked asset layers inside the tool frame.
|
|
19
|
-
*
|
|
20
|
-
* Defined as pure data in shared/icons/assets.json (Buoy Icon Format), so this
|
|
21
|
-
* is the same artwork the Flutter build renders.
|
|
22
|
-
*
|
|
23
|
-
* To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
const AssetsIcon = exports.AssetsIcon = (0, _iconRenderer.createIcon)(_iconDataG.assetsIconData);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASSETS_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASSETS_ICON_COLOR}}),exports.AssetsIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_assetsRasterG=_interopRequireDefault(require("./generated/assets-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const AssetsIcon=exports.AssetsIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.assetsIconData,_assetsRasterG.default,9);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ASSETS_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.ASSETS_ICON_COLOR}}),exports.AssetsIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const AssetsIcon=exports.AssetsIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.assetsIconData,require("./assets/assets.png"),9);
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BENCHMARK_ICON_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _iconDataG.BENCHMARK_ICON_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.BenchmarkIcon = void 0;
|
|
13
|
-
var _iconRenderer = require("./icon-renderer.js");
|
|
14
|
-
var _iconDataG = require("./generated/icon-data.g.js");
|
|
15
|
-
/**
|
|
16
|
-
* BenchmarkIcon - Data-driven icon
|
|
17
|
-
*
|
|
18
|
-
* Defined as pure data in shared/icons/benchmark.json (Buoy Icon Format).
|
|
19
|
-
* The renderer transforms it to components.
|
|
20
|
-
*
|
|
21
|
-
* To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
const BenchmarkIcon = exports.BenchmarkIcon = (0, _iconRenderer.createIcon)(_iconDataG.benchmarkIconData);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BENCHMARK_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.BENCHMARK_ICON_COLOR}}),exports.BenchmarkIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_benchmarkRasterG=_interopRequireDefault(require("./generated/benchmark-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const BenchmarkIcon=exports.BenchmarkIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.benchmarkIconData,_benchmarkRasterG.default,3);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BENCHMARK_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.BENCHMARK_ICON_COLOR}}),exports.BenchmarkIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const BenchmarkIcon=exports.BenchmarkIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.benchmarkIconData,require("./assets/benchmark.png"),3);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createBifRasterIcon=createBifRasterIcon;var _react=require("react"),_iconRenderer=require("./icon-renderer.js");function createBifRasterIcon(e,t,r){const o=(0,_iconRenderer.createIcon)(e);return function(n){const{size:i=24,color:a,bgColor:c,style:s}=n;if(void 0!==a&&a.toLowerCase()!==e.color.toLowerCase()||void 0!==c&&c.toLowerCase()!==e.bgColor.toLowerCase()||i>48)return(0,_react.createElement)(o,n);const l=i*r/24;return(0,_react.createElement)("span",{"aria-hidden":!0,style:{display:"inline-block",position:"relative",width:i,height:i,flexShrink:0,verticalAlign:"middle",...s}},(0,_react.createElement)("img",{src:t,alt:"",draggable:!1,style:{position:"absolute",left:-l,top:-l,width:i+2*l,height:i+2*l,maxWidth:"none",pointerEvents:"none"}}))}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createBifRasterIcon=createBifRasterIcon;var _reactNative=require("react-native"),_iconRenderer=require("./icon-renderer.js"),_jsxRuntime=require("react/jsx-runtime");function createBifRasterIcon(e,t,r){const o=(0,_iconRenderer.createIcon)(e);return function(i){const{size:s=24,color:c,bgColor:n,style:a}=i;if(void 0!==c&&c.toLowerCase()!==e.color.toLowerCase()||void 0!==n&&n.toLowerCase()!==e.bgColor.toLowerCase()||s>48)return(0,_jsxRuntime.jsx)(o,{...i});const u=s*r/24;return(0,_jsxRuntime.jsx)(_reactNative.View,{accessible:!1,style:[{width:s,height:s},a],children:(0,_jsxRuntime.jsx)(_reactNative.Image,{source:t,resizeMode:"contain",fadeDuration:0,accessible:!1,style:{position:"absolute",left:-u,top:-u,width:s+2*u,height:s+2*u}})})}}
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "CAMERA_ICON_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _iconDataG.CAMERA_ICON_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.CameraIcon = void 0;
|
|
13
|
-
var _iconRenderer = require("./icon-renderer.js");
|
|
14
|
-
var _iconDataG = require("./generated/icon-data.g.js");
|
|
15
|
-
/**
|
|
16
|
-
* CameraIcon - Data-driven icon
|
|
17
|
-
*
|
|
18
|
-
* A camera body with a viewfinder hump, a lens ring with lit glass, and a
|
|
19
|
-
* flash dot.
|
|
20
|
-
*
|
|
21
|
-
* Defined as pure data in shared/icons/camera.json (Buoy Icon Format), so this
|
|
22
|
-
* is the same artwork the Flutter build renders.
|
|
23
|
-
*
|
|
24
|
-
* To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
const CameraIcon = exports.CameraIcon = (0, _iconRenderer.createIcon)(_iconDataG.cameraIconData);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CAMERA_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CAMERA_ICON_COLOR}}),exports.CameraIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js"),_cameraRasterG=_interopRequireDefault(require("./generated/camera-raster.g.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const CameraIcon=exports.CameraIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.cameraIconData,_cameraRasterG.default,9);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CAMERA_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CAMERA_ICON_COLOR}}),exports.CameraIcon=void 0;var _bifRasterIcon=require("./bif-raster-icon"),_iconDataG=require("./generated/icon-data.g.js");const CameraIcon=exports.CameraIcon=(0,_bifRasterIcon.createBifRasterIcon)(_iconDataG.cameraIconData,require("./assets/camera.png"),9);
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "CONSOLE_ICON_COLOR", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _iconDataG.CONSOLE_ICON_COLOR;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.ConsoleIcon = void 0;
|
|
13
|
-
var _iconRenderer = require("./icon-renderer.js");
|
|
14
|
-
var _iconDataG = require("./generated/icon-data.g.js");
|
|
15
|
-
/**
|
|
16
|
-
* ConsoleIcon - Data-driven icon
|
|
17
|
-
*
|
|
18
|
-
* Terminal frame with a `>_` prompt.
|
|
19
|
-
*
|
|
20
|
-
* Defined as pure data in shared/icons/console.json (Buoy Icon Format), so this
|
|
21
|
-
* is the same artwork the Flutter build renders.
|
|
22
|
-
*
|
|
23
|
-
* To change: edit that JSON, then run `node scripts/gen-icons.mjs`.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
const ConsoleIcon = exports.ConsoleIcon = (0, _iconRenderer.createIcon)(_iconDataG.consoleIconData);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CONSOLE_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CONSOLE_ICON_COLOR}}),exports.ConsoleIcon=void 0;var _rasterIcon=require("./raster-icon.js"),_iconDataG=require("./generated/icon-data.g.js");const ConsoleIcon=exports.ConsoleIcon=(0,_rasterIcon.createRasterIcon)("console");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"CONSOLE_ICON_COLOR",{enumerable:!0,get:function(){return _iconDataG.CONSOLE_ICON_COLOR}}),exports.ConsoleIcon=ConsoleIcon;var _reactNative=require("react-native"),_jsxRuntime=require("react/jsx-runtime"),_iconDataG=require("./generated/icon-data.g.js");const source=require("./assets/console.png");function ConsoleIcon({size:e=24,style:t}){return(0,_jsxRuntime.jsx)(_reactNative.Image,{source:source,resizeMode:"contain",fadeDuration:0,accessible:!1,style:[{width:e,height:e},t]})}
|