@vinena/knobs 0.0.0-stage → 0.5.0
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/CHANGELOG.md +224 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/THIRD_PARTY_NOTICES.md +429 -0
- package/dist/bezels/duo-fold/fold-000.webp +0 -0
- package/dist/bezels/duo-fold/fold-001.webp +0 -0
- package/dist/bezels/duo-fold/fold-002.webp +0 -0
- package/dist/bezels/duo-fold/fold-003.webp +0 -0
- package/dist/bezels/duo-fold/fold-004.webp +0 -0
- package/dist/bezels/duo-fold/fold-005.webp +0 -0
- package/dist/bezels/duo-fold/fold-006.webp +0 -0
- package/dist/bezels/duo-fold/fold-007.webp +0 -0
- package/dist/bezels/duo-fold/fold-008.webp +0 -0
- package/dist/bezels/duo-fold/fold-009.webp +0 -0
- package/dist/bezels/duo-fold/fold-010.webp +0 -0
- package/dist/bezels/duo-fold/fold-011.webp +0 -0
- package/dist/bezels/duo-fold/fold-012.webp +0 -0
- package/dist/bezels/duo-fold/fold-013.webp +0 -0
- package/dist/bezels/duo-fold/fold-014.webp +0 -0
- package/dist/bezels/duo-fold/fold-015.webp +0 -0
- package/dist/bezels/duo-fold/fold-016.webp +0 -0
- package/dist/bezels/duo-fold/fold-017.webp +0 -0
- package/dist/bezels/duo-fold/fold-018.webp +0 -0
- package/dist/bezels/duo-fold/fold-019.webp +0 -0
- package/dist/bezels/duo-fold/fold-020.webp +0 -0
- package/dist/bezels/duo-fold/fold-021.webp +0 -0
- package/dist/bezels/duo-fold/fold-022.webp +0 -0
- package/dist/bezels/duo-fold/fold-023.webp +0 -0
- package/dist/bezels/duo-fold/fold-024.webp +0 -0
- package/dist/bezels/duo-fold/fold-025.webp +0 -0
- package/dist/bezels/duo-fold/fold-026.webp +0 -0
- package/dist/bezels/duo-fold/fold-027.webp +0 -0
- package/dist/bezels/duo-fold/fold-028.webp +0 -0
- package/dist/bezels/duo-fold/fold-029.webp +0 -0
- package/dist/bezels/duo-fold/fold-030.webp +0 -0
- package/dist/bezels/duo-fold/fold-031.webp +0 -0
- package/dist/bezels/duo-fold/fold-032.webp +0 -0
- package/dist/bezels/duo-fold/fold-033.webp +0 -0
- package/dist/bezels/duo-fold/fold-034.webp +0 -0
- package/dist/bezels/duo-fold/fold-035.webp +0 -0
- package/dist/bezels/duo-fold/fold-036.webp +0 -0
- package/dist/bezels/duo-fold/fold-037.webp +0 -0
- package/dist/bezels/duo-fold/fold-038.webp +0 -0
- package/dist/bezels/duo-fold/fold-039.webp +0 -0
- package/dist/bezels/duo-fold/fold-040.webp +0 -0
- package/dist/bezels/duo-fold/fold-041.webp +0 -0
- package/dist/bezels/duo-fold/fold-042.webp +0 -0
- package/dist/bezels/duo-fold/fold-043.webp +0 -0
- package/dist/bezels/duo-fold/fold-044.webp +0 -0
- package/dist/bezels/duo-fold/fold-045.webp +0 -0
- package/dist/bezels/duo-fold/fold-046.webp +0 -0
- package/dist/bezels/duo-fold/fold-047.webp +0 -0
- package/dist/bezels/duo-fold/fold-048.webp +0 -0
- package/dist/bezels/duo-fold/fold-049.webp +0 -0
- package/dist/bezels/duo-fold/fold-050.webp +0 -0
- package/dist/bezels/duo-fold/fold-051.webp +0 -0
- package/dist/bezels/duo-fold/fold-052.webp +0 -0
- package/dist/bezels/duo-fold/fold-053.webp +0 -0
- package/dist/bezels/duo-fold/fold-054.webp +0 -0
- package/dist/bezels/duo-fold/fold-055.webp +0 -0
- package/dist/bezels/duo-fold/fold-056.webp +0 -0
- package/dist/bezels/duo-fold/fold-057.webp +0 -0
- package/dist/bezels/duo-fold/fold-058.webp +0 -0
- package/dist/bezels/duo-fold/fold-059.webp +0 -0
- package/dist/bezels/duo-fold/fold-060.webp +0 -0
- package/dist/bezels/duo-fold/fold-061.webp +0 -0
- package/dist/bezels/duo-fold/fold-062.webp +0 -0
- package/dist/bezels/duo-fold/fold-063.webp +0 -0
- package/dist/bezels/duo-fold/fold-064.webp +0 -0
- package/dist/bezels/duo-fold/fold-065.webp +0 -0
- package/dist/bezels/duo-fold/fold-066.webp +0 -0
- package/dist/bezels/duo-fold/fold-067.webp +0 -0
- package/dist/bezels/duo-fold/fold-068.webp +0 -0
- package/dist/bezels/duo-fold/fold-069.webp +0 -0
- package/dist/bezels/duo-fold/fold-070.webp +0 -0
- package/dist/bezels/duo-fold/fold-071.webp +0 -0
- package/dist/bezels/duo-fold/fold-072.webp +0 -0
- package/dist/bezels/duo-fold/fold-073.webp +0 -0
- package/dist/bezels/duo-fold/fold-074.webp +0 -0
- package/dist/bezels/duo-fold/fold-075.webp +0 -0
- package/dist/bezels/duo-fold/fold-076.webp +0 -0
- package/dist/bezels/duo-fold/fold-077.webp +0 -0
- package/dist/bezels/duo-fold/fold-078.webp +0 -0
- package/dist/bezels/duo-fold/fold-079.webp +0 -0
- package/dist/bezels/duo-fold/fold-080.webp +0 -0
- package/dist/bezels/duo-fold/fold-081.webp +0 -0
- package/dist/bezels/duo-fold/fold-082.webp +0 -0
- package/dist/bezels/duo-fold/fold-083.webp +0 -0
- package/dist/bezels/duo-fold/fold-084.webp +0 -0
- package/dist/bezels/duo-fold/fold-085.webp +0 -0
- package/dist/bezels/duo-fold/fold-086.webp +0 -0
- package/dist/bezels/duo-fold/fold-087.webp +0 -0
- package/dist/bezels/duo-fold/fold-088.webp +0 -0
- package/dist/bezels/duo-fold/fold-089.webp +0 -0
- package/dist/bezels/duo-fold/fold-090.webp +0 -0
- package/dist/bezels/duo-fold/fold-091.webp +0 -0
- package/dist/bezels/duo-fold/fold-092.webp +0 -0
- package/dist/bezels/duo-fold/fold-093.webp +0 -0
- package/dist/bezels/duo-fold/fold-094.webp +0 -0
- package/dist/bezels/duo-fold/fold-095.webp +0 -0
- package/dist/bezels/duo-fold/fold-096.webp +0 -0
- package/dist/bezels/duo-fold/fold-097.webp +0 -0
- package/dist/bezels/duo-fold/fold-098.webp +0 -0
- package/dist/bezels/duo-fold/fold-099.webp +0 -0
- package/dist/bezels/duo-fold/fold-100.webp +0 -0
- package/dist/bezels/duo-fold/fold-101.webp +0 -0
- package/dist/bezels/duo-fold/fold-102.webp +0 -0
- package/dist/bezels/duo-fold/fold-103.webp +0 -0
- package/dist/bezels/duo-fold/fold-104.webp +0 -0
- package/dist/bezels/duo-fold/fold-105.webp +0 -0
- package/dist/bezels/duo-fold/fold-106.webp +0 -0
- package/dist/bezels/duo-fold/fold-107.webp +0 -0
- package/dist/bezels/duo-fold/fold-108.webp +0 -0
- package/dist/bezels/duo-fold/fold-109.webp +0 -0
- package/dist/bezels/duo-fold/fold-110.webp +0 -0
- package/dist/bezels/duo-fold/fold-111.webp +0 -0
- package/dist/bezels/duo-fold/fold-112.webp +0 -0
- package/dist/bezels/duo-fold/fold-113.webp +0 -0
- package/dist/bezels/duo-fold/fold-114.webp +0 -0
- package/dist/bezels/duo-fold/fold-115.webp +0 -0
- package/dist/bezels/duo-fold/fold-116.webp +0 -0
- package/dist/bezels/duo-fold/fold-117.webp +0 -0
- package/dist/bezels/duo-fold/fold-118.webp +0 -0
- package/dist/bezels/duo-fold/fold-119.webp +0 -0
- package/dist/bezels/duo-fold/fold-120.webp +0 -0
- package/dist/bezels/duo-fold/fold-121.webp +0 -0
- package/dist/bezels/duo-fold/fold-122.webp +0 -0
- package/dist/bezels/duo-fold/fold-123.webp +0 -0
- package/dist/bezels/duo-fold/fold-124.webp +0 -0
- package/dist/bezels/duo-fold/fold-125.webp +0 -0
- package/dist/bezels/duo-fold/fold-126.webp +0 -0
- package/dist/bezels/duo-fold/fold-127.webp +0 -0
- package/dist/bezels/duo-fold/fold-128.webp +0 -0
- package/dist/bezels/duo-fold/fold-129.webp +0 -0
- package/dist/bezels/duo-fold/fold-130.webp +0 -0
- package/dist/bezels/duo-fold/fold-131.webp +0 -0
- package/dist/bezels/duo-fold/fold-132.webp +0 -0
- package/dist/bezels/duo-fold/fold-133.webp +0 -0
- package/dist/bezels/duo-fold/fold-134.webp +0 -0
- package/dist/bezels/duo-fold/fold-135.webp +0 -0
- package/dist/bezels/duo-fold/fold-136.webp +0 -0
- package/dist/bezels/duo-fold/fold-137.webp +0 -0
- package/dist/bezels/duo-fold/fold-138.webp +0 -0
- package/dist/bezels/duo-fold/fold-139.webp +0 -0
- package/dist/bezels/duo-fold/fold-140.webp +0 -0
- package/dist/bezels/duo-fold/fold-141.webp +0 -0
- package/dist/bezels/duo-fold/fold-142.webp +0 -0
- package/dist/bezels/duo-fold/fold-143.webp +0 -0
- package/dist/bezels/duo-fold/fold-144.webp +0 -0
- package/dist/bezels/duo-fold/fold-145.webp +0 -0
- package/dist/bezels/duo-fold/fold-146.webp +0 -0
- package/dist/bezels/duo-fold/fold-147.webp +0 -0
- package/dist/bezels/duo-fold/fold-148.webp +0 -0
- package/dist/bezels/duo-fold/fold-149.webp +0 -0
- package/dist/bezels/duo-fold/fold-150.webp +0 -0
- package/dist/bezels/duo-fold/fold-151.webp +0 -0
- package/dist/bezels/duo-fold/fold-152.webp +0 -0
- package/dist/bezels/duo-fold/fold-153.webp +0 -0
- package/dist/bezels/duo-fold/fold-154.webp +0 -0
- package/dist/bezels/duo-fold/fold-155.webp +0 -0
- package/dist/bezels/duo-fold/fold-156.webp +0 -0
- package/dist/bezels/duo-fold/fold-157.webp +0 -0
- package/dist/bezels/duo-fold/fold-158.webp +0 -0
- package/dist/bezels/duo-fold/fold-159.webp +0 -0
- package/dist/bezels/duo-fold/fold-160.webp +0 -0
- package/dist/bezels/duo-fold/fold-161.webp +0 -0
- package/dist/bezels/duo-fold/fold-162.webp +0 -0
- package/dist/bezels/duo-fold/fold-163.webp +0 -0
- package/dist/bezels/duo-fold/fold-164.webp +0 -0
- package/dist/bezels/duo-fold/fold-165.webp +0 -0
- package/dist/bezels/duo-fold/fold-166.webp +0 -0
- package/dist/bezels/duo-fold/fold-167.webp +0 -0
- package/dist/bezels/duo-fold/fold-168.webp +0 -0
- package/dist/bezels/duo-fold/fold-169.webp +0 -0
- package/dist/bezels/duo-fold/fold-170.webp +0 -0
- package/dist/bezels/duo-fold/fold-171.webp +0 -0
- package/dist/bezels/duo-fold/fold-172.webp +0 -0
- package/dist/bezels/duo-fold/fold-173.webp +0 -0
- package/dist/bezels/duo-fold/fold-174.webp +0 -0
- package/dist/bezels/duo-fold/fold-175.webp +0 -0
- package/dist/bezels/duo-fold/fold-176.webp +0 -0
- package/dist/bezels/duo-fold/fold-177.webp +0 -0
- package/dist/bezels/duo-fold/fold-178.webp +0 -0
- package/dist/bezels/duo-fold/fold-179.webp +0 -0
- package/dist/bezels/duo-fold/fold-180.webp +0 -0
- package/dist/bezels/duo-fold/still-000.webp +0 -0
- package/dist/bezels/duo-fold/still-161.webp +0 -0
- package/dist/bezels/duo-fold/still-162.webp +0 -0
- package/dist/bezels/duo-fold/still-163.webp +0 -0
- package/dist/bezels/duo-fold/still-164.webp +0 -0
- package/dist/bezels/duo-fold/still-165.webp +0 -0
- package/dist/bezels/duo-fold/still-166.webp +0 -0
- package/dist/bezels/duo-fold/still-167.webp +0 -0
- package/dist/bezels/duo-fold/still-168.webp +0 -0
- package/dist/bezels/duo-fold/still-169.webp +0 -0
- package/dist/bezels/duo-fold/still-170.webp +0 -0
- package/dist/bezels/duo-fold/still-171.webp +0 -0
- package/dist/bezels/duo-fold/still-172.webp +0 -0
- package/dist/bezels/duo-fold/still-173.webp +0 -0
- package/dist/bezels/duo-fold/still-174.webp +0 -0
- package/dist/bezels/duo-fold/still-175.webp +0 -0
- package/dist/bezels/duo-fold/still-176.webp +0 -0
- package/dist/bezels/duo-fold/still-177.webp +0 -0
- package/dist/bezels/duo-fold/still-178.webp +0 -0
- package/dist/bezels/duo-fold/still-179.webp +0 -0
- package/dist/bezels/duo-fold/still-180.webp +0 -0
- package/dist/bezels/iphone-16-plus.webp +0 -0
- package/dist/bezels/iphone-16-pro-max.webp +0 -0
- package/dist/bezels/iphone-16-pro.webp +0 -0
- package/dist/bezels/iphone-16.webp +0 -0
- package/dist/bezels/iphone-17-pro-max.webp +0 -0
- package/dist/bezels/iphone-17-pro.webp +0 -0
- package/dist/bezels/iphone-17.webp +0 -0
- package/dist/bezels/iphone-18-pro-max.webp +0 -0
- package/dist/bezels/iphone-18-pro.webp +0 -0
- package/dist/bezels/iphone-air.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-landscape.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-portrait.webp +0 -0
- package/dist/bezels/iphone-duo-outer-closed.webp +0 -0
- package/dist/bezels/iphone-se.webp +0 -0
- package/dist/bezels/pixel-10-pro-xl.webp +0 -0
- package/dist/bezels/pixel-10-pro.webp +0 -0
- package/dist/bezels/pixel-10.webp +0 -0
- package/dist/bezels/pixel-10a.webp +0 -0
- package/dist/bezels/pixel-9-pro-xl.webp +0 -0
- package/dist/bezels/pixel-9-pro.webp +0 -0
- package/dist/bezels/pixel-9.webp +0 -0
- package/dist/early.d.ts +1 -0
- package/dist/early.global.js +8 -0
- package/dist/elementsview-6g274ptr.js +2873 -0
- package/dist/elementsview-jnkbhzkj.js +2873 -0
- package/dist/elementsview-pkzp9kc6.js +2874 -0
- package/dist/elementsview-tf4qzmtw.js +2874 -0
- package/dist/engine/address.d.ts +31 -0
- package/dist/engine/animations.d.ts +13 -0
- package/dist/engine/barshot.d.ts +48 -0
- package/dist/engine/bezels.d.ts +140 -0
- package/dist/engine/bezelurls.d.ts +5 -0
- package/dist/engine/browserdraw.d.ts +57 -0
- package/dist/engine/browserkit.d.ts +59 -0
- package/dist/engine/browserui.d.ts +177 -0
- package/dist/engine/check.d.ts +8 -0
- package/dist/engine/chromedraw.d.ts +17 -0
- package/dist/engine/clock.d.ts +91 -0
- package/dist/engine/color.d.ts +37 -0
- package/dist/engine/describe.d.ts +49 -0
- package/dist/engine/devices.d.ts +96 -0
- package/dist/engine/dock.d.ts +53 -0
- package/dist/engine/endroom.d.ts +21 -0
- package/dist/engine/fit.d.ts +75 -0
- package/dist/engine/fold.d.ts +562 -0
- package/dist/engine/foldframes.d.ts +98 -0
- package/dist/engine/foldgl.d.ts +151 -0
- package/dist/engine/foldhand.d.ts +23 -0
- package/dist/engine/foldlook.d.ts +49 -0
- package/dist/engine/foldpage.d.ts +167 -0
- package/dist/engine/foldrun.d.ts +98 -0
- package/dist/engine/frame.d.ts +142 -0
- package/dist/engine/frameglide.d.ts +71 -0
- package/dist/engine/framekit.d.ts +7 -0
- package/dist/engine/frames.d.ts +42 -0
- package/dist/engine/fresh.d.ts +59 -0
- package/dist/engine/geo.d.ts +58 -0
- package/dist/engine/header.d.ts +16 -0
- package/dist/engine/identity.d.ts +27 -0
- package/dist/engine/index.d.ts +58 -0
- package/dist/engine/intl.d.ts +23 -0
- package/dist/engine/locale.d.ts +86 -0
- package/dist/engine/mat.d.ts +64 -0
- package/dist/engine/matchmedia.d.ts +25 -0
- package/dist/engine/matcolors.d.ts +45 -0
- package/dist/engine/matsplash.d.ts +81 -0
- package/dist/engine/media.d.ts +55 -0
- package/dist/engine/mock.d.ts +65 -0
- package/dist/engine/mockdata.d.ts +42 -0
- package/dist/engine/mockdraw.d.ts +21 -0
- package/dist/engine/morph.d.ts +214 -0
- package/dist/engine/morphrun.d.ts +49 -0
- package/dist/engine/native.d.ts +129 -0
- package/dist/engine/network.d.ts +8 -0
- package/dist/engine/notice.d.ts +15 -0
- package/dist/engine/objectfit.d.ts +35 -0
- package/dist/engine/outlines.d.ts +2 -0
- package/dist/engine/overflow.d.ts +11 -0
- package/dist/engine/owninline.d.ts +16 -0
- package/dist/engine/pagefonts.d.ts +21 -0
- package/dist/engine/pageshot.d.ts +127 -0
- package/dist/engine/placeholder.d.ts +89 -0
- package/dist/engine/pseudo.d.ts +15 -0
- package/dist/engine/ready.d.ts +9 -0
- package/dist/engine/reload.d.ts +35 -0
- package/dist/engine/remount.d.ts +30 -0
- package/dist/engine/replay.d.ts +7 -0
- package/dist/engine/safaridraw.d.ts +22 -0
- package/dist/engine/scrollbars.d.ts +17 -0
- package/dist/engine/scrollkeep.d.ts +124 -0
- package/dist/engine/spacing.d.ts +2 -0
- package/dist/engine/speed.d.ts +11 -0
- package/dist/engine/store.d.ts +68 -0
- package/dist/engine/stored.d.ts +17 -0
- package/dist/engine/style.d.ts +27 -0
- package/dist/engine/system.d.ts +15 -0
- package/dist/engine/text.d.ts +53 -0
- package/dist/engine/time.d.ts +32 -0
- package/dist/engine/touch.d.ts +20 -0
- package/dist/engine/touchdot.d.ts +71 -0
- package/dist/engine/touchmark.d.ts +27 -0
- package/dist/engine/touchpointer.d.ts +113 -0
- package/dist/engine/tree.d.ts +9 -0
- package/dist/engine/turnrun.d.ts +74 -0
- package/dist/engine/ua.d.ts +55 -0
- package/dist/engine/underneath.d.ts +7 -0
- package/dist/engine/viewportcss.d.ts +7 -0
- package/dist/engine/vision.d.ts +3 -0
- package/dist/engine/width.d.ts +56 -0
- package/dist/engine/zoom.d.ts +33 -0
- package/dist/framekit-095qevka.js +8838 -0
- package/dist/framekit-3n7p79ht.js +8839 -0
- package/dist/framekit-g96t6nmq.js +8838 -0
- package/dist/framekit-q5aad770.js +8839 -0
- package/dist/global.d.ts +1 -0
- package/dist/grab/boxmodel.d.ts +109 -0
- package/dist/grab/boxtext.d.ts +17 -0
- package/dist/grab/card.d.ts +45 -0
- package/dist/grab/cardread.d.ts +22 -0
- package/dist/grab/cardview.d.ts +18 -0
- package/dist/grab/clipboard.d.ts +8 -0
- package/dist/grab/colors.d.ts +31 -0
- package/dist/grab/colorvalue.d.ts +40 -0
- package/dist/grab/context.d.ts +25 -0
- package/dist/grab/control.d.ts +37 -0
- package/dist/grab/copy.d.ts +7 -0
- package/dist/grab/dwell.d.ts +29 -0
- package/dist/grab/fiber.d.ts +17 -0
- package/dist/grab/fontused.d.ts +23 -0
- package/dist/grab/hit.d.ts +19 -0
- package/dist/grab/hook.d.ts +7 -0
- package/dist/grab/index.d.ts +9 -0
- package/dist/grab/inspect.d.ts +31 -0
- package/dist/grab/keys.d.ts +84 -0
- package/dist/grab/locate.d.ts +63 -0
- package/dist/grab/mode.d.ts +56 -0
- package/dist/grab/navigate.d.ts +21 -0
- package/dist/grab/outline.d.ts +16 -0
- package/dist/grab/overlay.d.ts +135 -0
- package/dist/grab/paint.d.ts +7 -0
- package/dist/grab/paths.d.ts +27 -0
- package/dist/grab/picks.d.ts +9 -0
- package/dist/grab/place.d.ts +25 -0
- package/dist/grab/preview.d.ts +12 -0
- package/dist/grab/selector.d.ts +15 -0
- package/dist/grab/source.d.ts +68 -0
- package/dist/grab/stack.d.ts +49 -0
- package/dist/grab/theme.d.ts +85 -0
- package/dist/grab/types.d.ts +52 -0
- package/dist/host.d.ts +7 -0
- package/dist/index-0casarhy.js +324 -0
- package/dist/index-2d6wvs8h.js +528 -0
- package/dist/index-33x9hxe3.js +4563 -0
- package/dist/index-5baxvd3v.js +4424 -0
- package/dist/index-5d6qzte3.js +357 -0
- package/dist/index-64rd634h.js +686 -0
- package/dist/index-78r0f8pw.js +27 -0
- package/dist/index-d0cjxjsm.js +21 -0
- package/dist/index-dvr4x91q.js +4800 -0
- package/dist/index-hw56t3zy.js +4800 -0
- package/dist/index-k015tb6c.js +357 -0
- package/dist/index-ke6v7919.js +4801 -0
- package/dist/index-kzsb9drs.js +4801 -0
- package/dist/index-peh33xjv.js +346 -0
- package/dist/index-qxye1j73.js +528 -0
- package/dist/index-z5ytnj01.js +4563 -0
- package/dist/index-ztnjefrh.js +23 -0
- package/dist/index-zvze25nf.js +686 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.global.js +2655 -0
- package/dist/index.js +9262 -0
- package/dist/instance.d.ts +29 -0
- package/dist/react-4kbj1t4h.js +687 -0
- package/dist/react-65tgdbs8.js +22 -0
- package/dist/react-71a9ypex.js +529 -0
- package/dist/react-adky72h9.js +29 -0
- package/dist/react-carf84xv.js +4420 -0
- package/dist/react-eygws6cx.js +358 -0
- package/dist/react-h9w04skh.js +25 -0
- package/dist/react-mv9y20jy.js +358 -0
- package/dist/react-pdvseef0.js +325 -0
- package/dist/react-qv0nykcv.js +4564 -0
- package/dist/react-sq9pkw4k.js +687 -0
- package/dist/react-vjm88w4t.js +4564 -0
- package/dist/react-xxfpfddf.js +347 -0
- package/dist/react-znfrjqk8.js +529 -0
- package/dist/react.d.ts +6 -0
- package/dist/react.js +9255 -0
- package/dist/requests/body.d.ts +44 -0
- package/dist/requests/eventsource.d.ts +14 -0
- package/dist/requests/fetch.d.ts +14 -0
- package/dist/requests/index.d.ts +35 -0
- package/dist/requests/patch.d.ts +17 -0
- package/dist/requests/quiet.d.ts +12 -0
- package/dist/requests/record.d.ts +40 -0
- package/dist/requests/resource.d.ts +28 -0
- package/dist/requests/shared.d.ts +34 -0
- package/dist/requests/stack.d.ts +7 -0
- package/dist/requests/store.d.ts +37 -0
- package/dist/requests/types.d.ts +140 -0
- package/dist/requests/xhr.d.ts +16 -0
- package/dist/storage/cache.d.ts +32 -0
- package/dist/storage/clear.d.ts +35 -0
- package/dist/storage/cookies.d.ts +71 -0
- package/dist/storage/format.d.ts +53 -0
- package/dist/storage/idb.d.ts +62 -0
- package/dist/storage/onload.d.ts +47 -0
- package/dist/storage/presets.d.ts +79 -0
- package/dist/storage/site.d.ts +51 -0
- package/dist/storage/web.d.ts +57 -0
- package/dist/storageview-j9d44f99.js +2729 -0
- package/dist/storageview-sb23henh.js +2729 -0
- package/dist/storageview-vdkbp6rt.js +2728 -0
- package/dist/storageview-vf8v8q8j.js +2728 -0
- package/dist/styles/cascade.d.ts +59 -0
- package/dist/styles/collect.d.ts +73 -0
- package/dist/styles/declarations.d.ts +30 -0
- package/dist/styles/index.d.ts +20 -0
- package/dist/styles/inherited.d.ts +5 -0
- package/dist/styles/match.d.ts +41 -0
- package/dist/styles/selector.d.ts +36 -0
- package/dist/styles/tree.d.ts +14 -0
- package/dist/styles/types.d.ts +117 -0
- package/dist/styles/varrefs.d.ts +35 -0
- package/dist/types.d.ts +221 -0
- package/dist/ui/actions.d.ts +26 -0
- package/dist/ui/bindings.d.ts +89 -0
- package/dist/ui/boxdiagram.d.ts +50 -0
- package/dist/ui/catalog.d.ts +195 -0
- package/dist/ui/colors.d.ts +51 -0
- package/dist/ui/column.d.ts +22 -0
- package/dist/ui/copytext.d.ts +6 -0
- package/dist/ui/deviceknobs.d.ts +20 -0
- package/dist/ui/dockslide.d.ts +100 -0
- package/dist/ui/dom.d.ts +68 -0
- package/dist/ui/domtree.d.ts +143 -0
- package/dist/ui/drag.d.ts +34 -0
- package/dist/ui/editors.d.ts +30 -0
- package/dist/ui/elementsview.d.ts +32 -0
- package/dist/ui/foldslider.d.ts +48 -0
- package/dist/ui/footer.d.ts +51 -0
- package/dist/ui/hold.d.ts +20 -0
- package/dist/ui/icons.d.ts +145 -0
- package/dist/ui/inspector.d.ts +59 -0
- package/dist/ui/keys.d.ts +180 -0
- package/dist/ui/kit.d.ts +336 -0
- package/dist/ui/knobs.d.ts +41 -0
- package/dist/ui/list.d.ts +68 -0
- package/dist/ui/palette.d.ts +59 -0
- package/dist/ui/pane.d.ts +151 -0
- package/dist/ui/panel.d.ts +56 -0
- package/dist/ui/pin.d.ts +28 -0
- package/dist/ui/place.d.ts +136 -0
- package/dist/ui/prefs.d.ts +53 -0
- package/dist/ui/radio.d.ts +37 -0
- package/dist/ui/requestdetail.d.ts +56 -0
- package/dist/ui/requestformat.d.ts +142 -0
- package/dist/ui/requestparts.d.ts +312 -0
- package/dist/ui/requests.d.ts +48 -0
- package/dist/ui/rows.d.ts +72 -0
- package/dist/ui/search.d.ts +29 -0
- package/dist/ui/settings.d.ts +69 -0
- package/dist/ui/size.d.ts +105 -0
- package/dist/ui/slide.d.ts +46 -0
- package/dist/ui/stage.d.ts +24 -0
- package/dist/ui/storageaction.d.ts +22 -0
- package/dist/ui/storagecookies.d.ts +5 -0
- package/dist/ui/storagedeep.d.ts +18 -0
- package/dist/ui/storageparts.d.ts +131 -0
- package/dist/ui/storagepresets.d.ts +19 -0
- package/dist/ui/storageview.d.ts +45 -0
- package/dist/ui/storageweb.d.ts +11 -0
- package/dist/ui/styles.d.ts +1 -0
- package/dist/ui/stylesapplied.d.ts +46 -0
- package/dist/ui/stylesformat.d.ts +78 -0
- package/dist/ui/stylesview.d.ts +118 -0
- package/dist/ui/swatches.d.ts +26 -0
- package/dist/ui/syntax.d.ts +34 -0
- package/dist/ui/tooltip.d.ts +64 -0
- package/package.json +60 -4
- package/skills/devknobs/SKILL.md +214 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { DevknobsState } from "../types";
|
|
2
|
+
import { type Action } from "./catalog";
|
|
3
|
+
import type { Rows } from "./rows";
|
|
4
|
+
import type { Slide } from "./slide";
|
|
5
|
+
/**
|
|
6
|
+
* The search that opens from the add knob button: its field, the results of
|
|
7
|
+
* what is typed and, with nothing typed, the browse list of every knob and
|
|
8
|
+
* action. Picking an entry sets a value, adds and opens a knob's row, or runs
|
|
9
|
+
* an action, which adds its row.
|
|
10
|
+
*/
|
|
11
|
+
/** What the panel's body shows, as the wrapper's `data-mode` says it. */
|
|
12
|
+
export type Mode = "rows" | "results" | "browse" | "view" | "keys";
|
|
13
|
+
/**
|
|
14
|
+
* What the body shows: the settings over everything, then a feature's view
|
|
15
|
+
* over the rows, then the search with a query or without one, and the rows
|
|
16
|
+
* with none of them.
|
|
17
|
+
*/
|
|
18
|
+
export declare function modeOf(scene: {
|
|
19
|
+
keys: boolean;
|
|
20
|
+
view: boolean;
|
|
21
|
+
query: boolean;
|
|
22
|
+
browsing: boolean;
|
|
23
|
+
}): Mode;
|
|
24
|
+
/** What the search needs from the panel. */
|
|
25
|
+
export interface PaletteContext {
|
|
26
|
+
/** The panel's shadow root, which knows the focus. */
|
|
27
|
+
root: ShadowRoot;
|
|
28
|
+
/** The wrapper, which carries the view shown as `data-mode`. */
|
|
29
|
+
wrap: HTMLElement;
|
|
30
|
+
slide: Slide;
|
|
31
|
+
searchInput: HTMLInputElement;
|
|
32
|
+
closeSearch: HTMLButtonElement;
|
|
33
|
+
add: HTMLButtonElement;
|
|
34
|
+
results: HTMLElement;
|
|
35
|
+
rows: Rows;
|
|
36
|
+
/** The actions search finds. */
|
|
37
|
+
actionsHere: readonly Action[];
|
|
38
|
+
/** Draw the whole panel again. */
|
|
39
|
+
render(): void;
|
|
40
|
+
/** Whether the settings show in place of the rows. */
|
|
41
|
+
editingKeys(): boolean;
|
|
42
|
+
/** Whether a feature's view shows in place of the rows. */
|
|
43
|
+
viewing(): boolean;
|
|
44
|
+
/** Stop recording a key, and leave the settings and a feature's view, without drawing anything. */
|
|
45
|
+
dropKeys(): void;
|
|
46
|
+
}
|
|
47
|
+
export interface Palette {
|
|
48
|
+
/** Whether the search is open, browsing or with a query typed. */
|
|
49
|
+
searching(): boolean;
|
|
50
|
+
/** Stop browsing and drop the query, without drawing anything. */
|
|
51
|
+
clear(): void;
|
|
52
|
+
renderBody(state: DevknobsState): void;
|
|
53
|
+
leaveSearch(): void;
|
|
54
|
+
startBrowsing(text?: string): void;
|
|
55
|
+
onGrab(on: boolean): void;
|
|
56
|
+
onPointerDown(): void;
|
|
57
|
+
onPointerUp(): void;
|
|
58
|
+
}
|
|
59
|
+
export declare function createPalette(context: PaletteContext): Palette;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A feature's view inside the panel. It takes the place of the rows, as the
|
|
3
|
+
* settings do, under a head with the way back, its title and its actions, and
|
|
4
|
+
* the panel is wider and as tall as it gets while it shows. One view shows at
|
|
5
|
+
* a time. To use it:
|
|
6
|
+
*
|
|
7
|
+
* openPane({ id: "styles", title: "styles", layout: "flush", mount, actions, escape, back });
|
|
8
|
+
* closePane(); paneView(); showPane(id); retitlePane(id, title); onPane((id) => {});
|
|
9
|
+
*
|
|
10
|
+
* `mount(body)` fills the view's scrolling body, which comes empty, and may
|
|
11
|
+
* return a cleanup that runs once when the view closes or another replaces it.
|
|
12
|
+
*/
|
|
13
|
+
import { type Layout } from "./dom";
|
|
14
|
+
import { type IconName } from "./icons";
|
|
15
|
+
import type { Tips } from "./tooltip";
|
|
16
|
+
/** A small icon button in the view's head, such as copy or clear. */
|
|
17
|
+
export interface PaneAction {
|
|
18
|
+
/** What it does, in a word or two: its tooltip, and its name for assistive tech. */
|
|
19
|
+
label: string;
|
|
20
|
+
icon: IconName;
|
|
21
|
+
run(): void;
|
|
22
|
+
/** What its tooltip says after the label, such as the key that runs it, read as the tooltip shows. */
|
|
23
|
+
hint?(): string;
|
|
24
|
+
/** Whether a toggle is on. An action that is no toggle has none. */
|
|
25
|
+
pressed?(): boolean;
|
|
26
|
+
/** Hear a toggle go on or off, however it did. Returns the way to stop. */
|
|
27
|
+
watch?(listener: () => void): () => void;
|
|
28
|
+
}
|
|
29
|
+
/** What a feature shows in the panel. */
|
|
30
|
+
export interface PaneView {
|
|
31
|
+
/** Names the view. Opening the one that is open does nothing. */
|
|
32
|
+
id: string;
|
|
33
|
+
/** What the head says, in lower case as the panel's labels are. */
|
|
34
|
+
title: string;
|
|
35
|
+
/**
|
|
36
|
+
* Where the view's lines start, the head's included: `rows` for a view of
|
|
37
|
+
* rows as the knob rows are, `flush` for one of bars, lists and text.
|
|
38
|
+
*/
|
|
39
|
+
layout: Layout;
|
|
40
|
+
/**
|
|
41
|
+
* Fill the view's body, which scrolls on its own under the head. What it
|
|
42
|
+
* returns runs once, when the view closes or another takes its place.
|
|
43
|
+
*/
|
|
44
|
+
mount(body: HTMLElement): void | (() => void);
|
|
45
|
+
/** The buttons the head shows after the title, in this order. */
|
|
46
|
+
actions?: PaneAction[];
|
|
47
|
+
/**
|
|
48
|
+
* Escape came while the view shows. Return true where the view took it, to
|
|
49
|
+
* clear a filter of its own, say, and the view stays open.
|
|
50
|
+
*/
|
|
51
|
+
escape?(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Where the way back goes, in place of the rows: a view one step inside
|
|
54
|
+
* another gives this, and opens that other from it. The head's way back and
|
|
55
|
+
* Escape both go there.
|
|
56
|
+
*/
|
|
57
|
+
back?(): void;
|
|
58
|
+
/**
|
|
59
|
+
* The pointer came onto the head's line, or left it. A view that shows
|
|
60
|
+
* something of the page points at it there for as long.
|
|
61
|
+
*/
|
|
62
|
+
point?(over: boolean): void;
|
|
63
|
+
}
|
|
64
|
+
/** Hears the id of the view that opened, or null when the view closed. */
|
|
65
|
+
export type PaneListener = (view: string | null) => void;
|
|
66
|
+
/** How wide the panel is while a view shows, until the user drags its edge, in px. */
|
|
67
|
+
export declare const PANE_WIDTH = 340;
|
|
68
|
+
/** What the view needs from the panel. */
|
|
69
|
+
export interface PaneContext {
|
|
70
|
+
/** The panel's shadow root, which knows where the focus is in it. */
|
|
71
|
+
root: Pick<ShadowRoot, "activeElement">;
|
|
72
|
+
/** Where the focus goes back to when what opened the view is gone. */
|
|
73
|
+
home: HTMLElement;
|
|
74
|
+
tips: Tips;
|
|
75
|
+
/** Open the panel, as a view shows only in an open one. */
|
|
76
|
+
openPanel(): void;
|
|
77
|
+
/** Leave the search and the settings, which show in a view's place, without drawing anything. */
|
|
78
|
+
uncover(): void;
|
|
79
|
+
/** Draw the whole panel again. */
|
|
80
|
+
render(): void;
|
|
81
|
+
}
|
|
82
|
+
/** The view as the panel drives it. */
|
|
83
|
+
export interface Pane {
|
|
84
|
+
/** The view's node, which goes in the panel's body with the rows and the settings. */
|
|
85
|
+
node: HTMLElement;
|
|
86
|
+
open(view: PaneView): void;
|
|
87
|
+
/** Go back to the rows, and put the focus back where it was. */
|
|
88
|
+
close(): void;
|
|
89
|
+
/** Close the view for what the panel shows next, which draws itself and takes the focus. */
|
|
90
|
+
drop(): void;
|
|
91
|
+
retitle(id: string, title: string): void;
|
|
92
|
+
/** Bring the open view `id` back in sight, from a closed panel, the search or the settings. */
|
|
93
|
+
show(id: string): void;
|
|
94
|
+
/** The id of the open view, also while a closed panel or the settings hide it. */
|
|
95
|
+
view(): string | null;
|
|
96
|
+
/** Give the focus to the view's head, and say whether there is a view to take it. */
|
|
97
|
+
focus(): boolean;
|
|
98
|
+
/** Escape came for the view: the view takes it, or the panel goes one step back. */
|
|
99
|
+
escape(): void;
|
|
100
|
+
/** The panel's slide landed: a view that closed is out of sight, and its nodes go. */
|
|
101
|
+
landed(): void;
|
|
102
|
+
/** Close the view and forget the panel. */
|
|
103
|
+
destroy(): void;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Show a view in the panel, in place of the one that is open, and move the
|
|
107
|
+
* focus to its head. It opens the panel where that is closed, and leaves the
|
|
108
|
+
* search and the settings. Nothing happens for the view that is open already,
|
|
109
|
+
* or on a page with no panel.
|
|
110
|
+
*/
|
|
111
|
+
export declare function openPane(view: PaneView): void;
|
|
112
|
+
/** Go back to the rows, and put the focus back where it was when the view opened. */
|
|
113
|
+
export declare function closePane(): void;
|
|
114
|
+
/** The id of the open view, or null with none. */
|
|
115
|
+
export declare function paneView(): string | null;
|
|
116
|
+
/**
|
|
117
|
+
* Bring the open view `id` back in sight: open the panel where it is closed,
|
|
118
|
+
* and leave the search and the settings. Nothing happens for any other view.
|
|
119
|
+
*/
|
|
120
|
+
export declare function showPane(id: string): void;
|
|
121
|
+
/** Change what the head says for the open view `id`. Nothing happens for any other. */
|
|
122
|
+
export declare function retitlePane(id: string, title: string): void;
|
|
123
|
+
/**
|
|
124
|
+
* Hear a view open and close: the id of the view that opened, a new one in
|
|
125
|
+
* place of another included, or null once it closed. A view that hides with
|
|
126
|
+
* the panel, or under the settings, stays open. Returns the way to stop.
|
|
127
|
+
*/
|
|
128
|
+
export declare function onPane(listener: PaneListener): () => void;
|
|
129
|
+
/** The head of a view as built. */
|
|
130
|
+
export interface ViewHead {
|
|
131
|
+
box: HTMLElement;
|
|
132
|
+
/** The way back: the row's main, with the chevron and the title in it. */
|
|
133
|
+
back: HTMLButtonElement;
|
|
134
|
+
/** The node that holds the title. */
|
|
135
|
+
title: HTMLElement;
|
|
136
|
+
/** Where the view's actions go, after the main as a row's x is. */
|
|
137
|
+
actions: HTMLElement;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The head of a view, and of the settings: a row, built as every row is. The
|
|
141
|
+
* way back's chevron stands where a row's icon is and the title where a
|
|
142
|
+
* row's name is, so the head starts where the view's layout has its lines
|
|
143
|
+
* start, and the actions stand where a row's x is.
|
|
144
|
+
*/
|
|
145
|
+
export declare function viewHead(): ViewHead;
|
|
146
|
+
/**
|
|
147
|
+
* Build the view's place in a panel: a pane of the panel's body, which the
|
|
148
|
+
* panel slides in over the rows while there is a view, as it does the
|
|
149
|
+
* settings. The stylesheet holds how it looks.
|
|
150
|
+
*/
|
|
151
|
+
export declare function createPane(context: PaneContext): Pane;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type SystemMedia } from "../engine/system";
|
|
2
|
+
import type { GrabControl } from "../grab/control";
|
|
3
|
+
import type { InspectControl } from "../grab/inspect";
|
|
4
|
+
import { type LiveKeys } from "./bindings";
|
|
5
|
+
export { wallInput } from "./catalog";
|
|
6
|
+
export interface PanelOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The keys in force, which the panel shows and lets the user set.
|
|
9
|
+
* Defaults to the built-in ones.
|
|
10
|
+
*/
|
|
11
|
+
keys?: LiveKeys;
|
|
12
|
+
/** Grab, where it is on, to show and to turn on from the search. */
|
|
13
|
+
grab?: GrabControl | null;
|
|
14
|
+
/** Inspect, where it is on, to show the styles of what it picks in a view of the panel. */
|
|
15
|
+
inspect?: InspectControl | null;
|
|
16
|
+
/**
|
|
17
|
+
* Show the handle while the panel is closed. Defaults to true. What the
|
|
18
|
+
* user sets in the panel wins over it.
|
|
19
|
+
*/
|
|
20
|
+
handle?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface Panel {
|
|
23
|
+
/** Take the panel off the page and drop every listener. */
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The host's own style. It is as wide and as tall as an open panel whatever
|
|
28
|
+
* the panel is doing, so it never takes a pointer: the stylesheet hands that
|
|
29
|
+
* back to the handle and to a panel that is out, and every other pixel of the
|
|
30
|
+
* box belongs to the page underneath. The side it lives on anchors it to the
|
|
31
|
+
* left or the right edge.
|
|
32
|
+
*/
|
|
33
|
+
export declare const HOST_STYLE = "position:fixed;top:0;z-index:2147483646;pointer-events:none";
|
|
34
|
+
/**
|
|
35
|
+
* Build the panel, put it on the page and keep it in step with the engine. The
|
|
36
|
+
* host carries an open shadow root, so the page cannot style the panel and the
|
|
37
|
+
* panel cannot style the page.
|
|
38
|
+
*
|
|
39
|
+
* The pin in the footer docks the panel to its side as a column the window's
|
|
40
|
+
* height, as wide as the panel is, and the engine puts the page in a frame
|
|
41
|
+
* beside it. Open, the column has no handle: its edge changes its width as a
|
|
42
|
+
* floating panel's does, and two controls by the pin take it to the other
|
|
43
|
+
* side and close it. Closing, the column slides all the way off first and
|
|
44
|
+
* the handle comes in after it, so nothing but the column ever stands
|
|
45
|
+
* between the page and the window's edge.
|
|
46
|
+
*
|
|
47
|
+
* The panel lists the knobs that are off their default or were set from it,
|
|
48
|
+
* one row each, in the order they were added or dragged to, and a row opens
|
|
49
|
+
* into an editor. An action run from the panel has a row among them, which
|
|
50
|
+
* runs it. A fresh panel lists the default rows. Everything else is a search
|
|
51
|
+
* away: the add knob button under the rows opens a field that finds knobs,
|
|
52
|
+
* values and actions, and with nothing typed lists them all.
|
|
53
|
+
*/
|
|
54
|
+
/** The panel's styles with their prefers queries settled by what a host handed over. */
|
|
55
|
+
export declare function ownCss(media: SystemMedia): string;
|
|
56
|
+
export declare function createPanel(options?: PanelOptions): Panel;
|
package/dist/ui/pin.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DevknobsStatePatch, PanelValue } from "../types";
|
|
2
|
+
import type { Action } from "./catalog";
|
|
3
|
+
/**
|
|
4
|
+
* Pinning the panel to its side, as devtools dock: the control in the footer
|
|
5
|
+
* and the action in the search both come here, with the words of the two
|
|
6
|
+
* controls a pinned panel shows beside it.
|
|
7
|
+
*/
|
|
8
|
+
/** The patch that pins a floating panel and lets a pinned one float. Nothing else of it changes. */
|
|
9
|
+
export declare function pinPatch(panel: Pick<PanelValue, "docked">): DevknobsStatePatch;
|
|
10
|
+
/**
|
|
11
|
+
* Pin the panel, or let it float again, and keep that for new tabs, as it is
|
|
12
|
+
* a move the user made.
|
|
13
|
+
*/
|
|
14
|
+
export declare function togglePin(): void;
|
|
15
|
+
/** What the pin control does next, in a word or two: its name for assistive tech. */
|
|
16
|
+
export declare function pinWord(docked: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* What the pin control's tooltip says. In a window too narrow to leave the
|
|
19
|
+
* page its least beside the panel, it says the panel lies over the page.
|
|
20
|
+
*/
|
|
21
|
+
export declare function pinTip(docked: boolean, view: number): string;
|
|
22
|
+
/** What the control that takes a pinned panel to the other side says. */
|
|
23
|
+
export declare const SIDE_WORD = "move to the other side";
|
|
24
|
+
/** What the control that closes a pinned panel says, and its tooltip, which names the key too. */
|
|
25
|
+
export declare const COLLAPSE_WORD = "close the panel";
|
|
26
|
+
export declare function collapseTip(key: string): string;
|
|
27
|
+
/** What the search calls an action now: the pin's says what it would do. */
|
|
28
|
+
export declare function actionLabel(action: Action, docked: boolean): string;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { EdgeValue, PanelValue, SideValue } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Where the handle and the panel sit against the window's edges, and how a
|
|
4
|
+
* drag on the handle lands: the snapping, the fling and the glide, as numbers
|
|
5
|
+
* with no page to read.
|
|
6
|
+
*/
|
|
7
|
+
/** Pointer travel that turns a click on the handle into a drag. */
|
|
8
|
+
export declare const DRAG_SLOP = 4;
|
|
9
|
+
/** How far back the pointer's speed is read from when a drag ends, in ms. */
|
|
10
|
+
export declare const FLING_SPAN = 150;
|
|
11
|
+
/** The shortest stretch of a drag a speed is read over, in ms. */
|
|
12
|
+
export declare const FLING_STRETCH = 40;
|
|
13
|
+
/** Speed across, in px per ms, that throws the panel to the other side. */
|
|
14
|
+
export declare const FLING = 0.5;
|
|
15
|
+
/** How many times faster than up or down a fling must go across to count as one. */
|
|
16
|
+
export declare const FLING_LEAN = 1.5;
|
|
17
|
+
/** Travel across, in px, a drag needs before it can be flung, so a hurried click never is. */
|
|
18
|
+
export declare const FLING_TRAVEL = 16;
|
|
19
|
+
/** How long a glide takes at the least and at the most, in ms. */
|
|
20
|
+
export declare const GLIDE = 220;
|
|
21
|
+
export declare const GLIDE_MAX = 440;
|
|
22
|
+
/** The fastest a glide goes on average, in px per ms, until it takes `GLIDE_MAX`. */
|
|
23
|
+
export declare const GLIDE_SPEED = 6;
|
|
24
|
+
/** Space the panel keeps between itself and the top or bottom of the viewport. */
|
|
25
|
+
export declare const PANEL_GAP = 8;
|
|
26
|
+
/**
|
|
27
|
+
* How near an edge pulls a box flush with it, in px. More than the panel's
|
|
28
|
+
* corner radius, so the handle never sits on the curve of a corner.
|
|
29
|
+
*/
|
|
30
|
+
export declare const SNAP = 24;
|
|
31
|
+
/**
|
|
32
|
+
* What a drag on the handle moves: a plain one the panel and the handle as
|
|
33
|
+
* one, a shift one the handle alone along the panel's edge. A closed panel
|
|
34
|
+
* has only the handle to move.
|
|
35
|
+
*/
|
|
36
|
+
export declare function dragTarget(shift: boolean, open: boolean): "panel" | "handle";
|
|
37
|
+
/** Where the handle and the panel sit, and the edges they sit flush with. */
|
|
38
|
+
export type Place = Pick<PanelValue, "y" | "top" | "edge" | "tab">;
|
|
39
|
+
/** The heights a layout works with, in px: the window's, the panel's and the handle's. */
|
|
40
|
+
export interface Room {
|
|
41
|
+
view: number;
|
|
42
|
+
panel: number;
|
|
43
|
+
handle: number;
|
|
44
|
+
}
|
|
45
|
+
/** The side of the window across from one. */
|
|
46
|
+
export declare function otherSide(side: SideValue): SideValue;
|
|
47
|
+
/** A value kept between two bounds. With no room between them, the lower one. */
|
|
48
|
+
export declare function between(value: number, min: number, max: number): number;
|
|
49
|
+
/**
|
|
50
|
+
* A value kept between two bounds and pulled flush with the nearer one once
|
|
51
|
+
* it is within `SNAP` of it.
|
|
52
|
+
*/
|
|
53
|
+
export declare function snap(value: number, min: number, max: number): number;
|
|
54
|
+
/**
|
|
55
|
+
* What a layout holds the panel to: the edge of the window it sits flush
|
|
56
|
+
* with, as when the window resizes, or its top, as when what is in it grows
|
|
57
|
+
* or shrinks.
|
|
58
|
+
*/
|
|
59
|
+
export type Anchor = "edge" | "top";
|
|
60
|
+
/**
|
|
61
|
+
* Lay the handle and the panel out for the heights there are. The panel goes
|
|
62
|
+
* to the edge of the window it sits flush with, so one at the bottom grows
|
|
63
|
+
* upward, and the handle to the corner of the panel it sits flush with. What
|
|
64
|
+
* sits flush with nothing keeps its place. Then the window's edges, less the
|
|
65
|
+
* gap, pull the panel flush within `SNAP` and keep it inside, and the panel's
|
|
66
|
+
* corners do the same for the handle. The edges they end up flush with are
|
|
67
|
+
* what the next layout keeps them to, so a layout of a layout moves nothing.
|
|
68
|
+
*
|
|
69
|
+
* Held by its top, the panel keeps its top wherever it sits, and nothing
|
|
70
|
+
* pulls it flush. One that shrinks rises off the bottom with its own bottom
|
|
71
|
+
* edge, and one that grows past the window's bottom is pushed up, flush with
|
|
72
|
+
* it again. The handle keeps its corner, or its place inside the panel.
|
|
73
|
+
*/
|
|
74
|
+
export declare function settle(place: Place, room: Room, anchor?: Anchor): Place;
|
|
75
|
+
/**
|
|
76
|
+
* The corner of a panel whose top is at `top` that a handle at `y` covers, if
|
|
77
|
+
* any. A closed panel stays where it last showed while its handle may move
|
|
78
|
+
* on, so this is what tells the two apart while the slide back still shows it.
|
|
79
|
+
*/
|
|
80
|
+
export declare function cornerAt(y: number, top: number, room: Room): EdgeValue;
|
|
81
|
+
/**
|
|
82
|
+
* Where a drag lands, from where it started and where the pointer would put
|
|
83
|
+
* what it moves with no edge pulling: the panel's top for a plain drag, the
|
|
84
|
+
* handle's top for a shift drag or a closed panel's. A plain drag carries the
|
|
85
|
+
* handle along, a shift drag slides it along the panel, and a closed panel's
|
|
86
|
+
* handle snaps to the window's edges and carries the hidden panel along as
|
|
87
|
+
* far as the window lets it, so the panel opens where the handle left it.
|
|
88
|
+
*/
|
|
89
|
+
export declare function dragTo(target: "panel" | "handle", open: boolean, to: number, from: Place, room: Room): Place;
|
|
90
|
+
/**
|
|
91
|
+
* Where a drag of a pinned panel's handle lands, the panel closed. Pinned,
|
|
92
|
+
* the panel is a column the window's height, so only the handle moves, along
|
|
93
|
+
* the window's edge and flush with its ends within `SNAP`. The panel's own top
|
|
94
|
+
* goes along by as much, for when it floats again, and is held to the window
|
|
95
|
+
* then, as it has no height to be held by here.
|
|
96
|
+
*/
|
|
97
|
+
export declare function dragDocked(to: number, from: Place, room: Pick<Room, "view" | "handle">): Place;
|
|
98
|
+
/**
|
|
99
|
+
* Where a pinned panel's handle shows while the panel is closed: where it
|
|
100
|
+
* was put, kept inside the window. Nothing of it is stored, so the place the
|
|
101
|
+
* panel floats at is there when it is let go.
|
|
102
|
+
*/
|
|
103
|
+
export declare function dockedHandle(y: number, room: Pick<Room, "view" | "handle">): number;
|
|
104
|
+
/** Where the pointer was at a moment of a drag, in px and ms. */
|
|
105
|
+
export interface Sample {
|
|
106
|
+
t: number;
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The pointer's speed in px per ms as a drag ends: that of its fastest
|
|
112
|
+
* stretch in the `FLING_SPAN` before `at`. A hand slows down, and often
|
|
113
|
+
* stops, before the button comes up, so the speed at the release itself says
|
|
114
|
+
* little about the throw. A stretch is `FLING_STRETCH` long or a little more,
|
|
115
|
+
* so one jittery event does not make a fling, and a pointer that stopped a
|
|
116
|
+
* span before it let go has none. A drag shorter than a stretch is read whole.
|
|
117
|
+
*/
|
|
118
|
+
export declare function velocity(samples: Sample[], at: number): {
|
|
119
|
+
x: number;
|
|
120
|
+
y: number;
|
|
121
|
+
};
|
|
122
|
+
/** How long a glide over a distance in px takes, in ms: longer the farther it goes. */
|
|
123
|
+
export declare function glideTime(distance: number): number;
|
|
124
|
+
/**
|
|
125
|
+
* The side a dragged panel lands on, from the side it left, the middle of
|
|
126
|
+
* what was dragged across a window `width` wide, and the pointer's speed. A
|
|
127
|
+
* fling toward the other side lands it there wherever it is. Past the middle
|
|
128
|
+
* of the window it lands there too, unless it was flung back home. A fling
|
|
129
|
+
* goes mostly across, so a fast drag up or down never changes sides.
|
|
130
|
+
*/
|
|
131
|
+
export declare function landSide(side: SideValue, x: number, width: number, vx: number, vy: number): SideValue;
|
|
132
|
+
/** A computed `translate`, such as `-120px 4px` or `none`, as px. */
|
|
133
|
+
export declare function translateOf(value: string): {
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type Showing } from "./size";
|
|
2
|
+
/**
|
|
3
|
+
* Where the panel's preferences the user set are kept, in `localStorage`, so
|
|
4
|
+
* they hold across reloads and in new tabs of the origin. Reset all leaves them.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PREFS_KEY = "devknobs:prefs";
|
|
7
|
+
/** The version of the preferences `PREFS_KEY` keeps. Bump it with a new shape, see stored.ts. */
|
|
8
|
+
export declare const PREFS_VERSION = 4;
|
|
9
|
+
/** How the styles view shows an element: what applies to it, or every rule in cascade order. */
|
|
10
|
+
export type StylesMode = "simple" | "advanced";
|
|
11
|
+
/** The mode the styles view starts in. */
|
|
12
|
+
export declare const STYLES_MODE: StylesMode;
|
|
13
|
+
/** Whether the styles view starts with the element's box folded out. */
|
|
14
|
+
export declare const STYLES_BOX = true;
|
|
15
|
+
/**
|
|
16
|
+
* The panel's preferences: whether the handle shows while the panel is
|
|
17
|
+
* closed, how wide the panel is with the rows or the settings in it and
|
|
18
|
+
* with a feature's view, in px, the mode of the styles view, and whether the
|
|
19
|
+
* box in it is folded out. Version 1 kept the handle alone, version 2 had no
|
|
20
|
+
* mode, and version 3 had no word on the box.
|
|
21
|
+
*/
|
|
22
|
+
export interface Prefs {
|
|
23
|
+
handle: boolean;
|
|
24
|
+
listWidth: number;
|
|
25
|
+
viewWidth: number;
|
|
26
|
+
stylesMode: StylesMode;
|
|
27
|
+
stylesBox: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** The preferences the user set, over the mount options. */
|
|
30
|
+
export type StoredPrefs = Partial<Prefs>;
|
|
31
|
+
/** Read the stored preferences, keeping only the ones that read. */
|
|
32
|
+
export declare function readPrefs(json: string | null | undefined): StoredPrefs;
|
|
33
|
+
/** The preferences in force: one the user set wins over `base`, the mount options. */
|
|
34
|
+
export declare function resolvePrefs(base: Prefs, stored: StoredPrefs): Prefs;
|
|
35
|
+
/** The preferences in force, kept in step with the ones the user sets, here or in another tab. */
|
|
36
|
+
export interface LivePrefs {
|
|
37
|
+
get(): Prefs;
|
|
38
|
+
/** Show or hide the handle of a closed panel. One the same as the mount's is not kept. */
|
|
39
|
+
setHandle(on: boolean): void;
|
|
40
|
+
/** Keep the width of the rows and the settings, or of a view. The one a panel starts with is not kept. */
|
|
41
|
+
setWidth(showing: Showing, px: number): void;
|
|
42
|
+
/** Keep the mode of the styles view. The one it starts in is not kept. */
|
|
43
|
+
setStylesMode(mode: StylesMode): void;
|
|
44
|
+
/** Keep whether the box in the styles view is folded out. The way it starts is not kept. */
|
|
45
|
+
setStylesBox(open: boolean): void;
|
|
46
|
+
/** Hear the preferences change. Returns the way to stop. */
|
|
47
|
+
subscribe(listener: () => void): () => void;
|
|
48
|
+
destroy(): void;
|
|
49
|
+
}
|
|
50
|
+
/** The preferences for a mount's options, with the ones the user set on top. */
|
|
51
|
+
export declare function createPrefs(options?: {
|
|
52
|
+
handle?: boolean;
|
|
53
|
+
}): LivePrefs;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one way to draw a small choice: a radio group, and the segments that
|
|
3
|
+
* are the panel's own. The editors' controls and the views' are built here.
|
|
4
|
+
*/
|
|
5
|
+
/** A choice of a radio group: its node and the value it stands for. */
|
|
6
|
+
export interface RadioItem {
|
|
7
|
+
node: HTMLButtonElement;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A radio group is one tab stop, on the choice that is on, and the arrows
|
|
12
|
+
* move the choice as they move the focus. Returns the way to show which
|
|
13
|
+
* value is on.
|
|
14
|
+
*/
|
|
15
|
+
export declare function radioGroup(track: HTMLElement, items: readonly RadioItem[], pick: (value: string) => void): (current: string) => void;
|
|
16
|
+
/** What a set of segments is built from. */
|
|
17
|
+
export interface SegmentsOptions {
|
|
18
|
+
/** The choices, in order. */
|
|
19
|
+
options: readonly {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
/** The group's name, for assistive tech. */
|
|
24
|
+
label: string;
|
|
25
|
+
/** The value that is on to begin with. Without one, `set` says which. */
|
|
26
|
+
value?: string;
|
|
27
|
+
/** A choice picked, by a click or the arrows. The caller says what is on from there. */
|
|
28
|
+
onChange(value: string): void;
|
|
29
|
+
}
|
|
30
|
+
export interface Segments {
|
|
31
|
+
node: HTMLElement;
|
|
32
|
+
items: readonly RadioItem[];
|
|
33
|
+
/** Show which value is on. */
|
|
34
|
+
set(value: string): void;
|
|
35
|
+
}
|
|
36
|
+
/** The panel's segments: a few choices in a row, one of them on. */
|
|
37
|
+
export declare function segments(options: SegmentsOptions): Segments;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { RequestEntry } from "../requests/types";
|
|
2
|
+
import { type Tab } from "./requestparts";
|
|
3
|
+
/**
|
|
4
|
+
* One request in full, in place of the list, laid out as the browsers' own
|
|
5
|
+
* network panel lays it out, in its words, so nothing about it is new to
|
|
6
|
+
* learn. A summary stays on top, the method and the path and how it went,
|
|
7
|
+
* and under it the tabs: Headers, Payload, Preview, Response, Initiator,
|
|
8
|
+
* Timing, Cookies and EventStream, the ones the request has. The way back is
|
|
9
|
+
* the view's head.
|
|
10
|
+
*
|
|
11
|
+
* A part is built once and drawn again only when what it shows has changed,
|
|
12
|
+
* so a request that changes while it shows keeps its tab, its scroll and
|
|
13
|
+
* what the user opened. Which tab is on, which sections are open and how
|
|
14
|
+
* each shows are kept from one request to the next, as the browsers' tools
|
|
15
|
+
* keep them.
|
|
16
|
+
*/
|
|
17
|
+
/** What the detail says once, the first time a request is copied. */
|
|
18
|
+
export declare const HIDES_NOTE = "header values and address parameters that look like secrets are copied as <hidden>. bodies are copied as they are: check before you paste";
|
|
19
|
+
/** What the detail says of a request the log let go while it showed. */
|
|
20
|
+
export declare const GONE_NOTE = "this request is no longer in the log, and shows as it last was";
|
|
21
|
+
/** What the detail keeps from one request to the next: the tab picked, and how each section was left. */
|
|
22
|
+
export interface DetailMemory {
|
|
23
|
+
tab: Tab | null;
|
|
24
|
+
/** By a section's name and a toggle's: whether it is open, or on. */
|
|
25
|
+
open: Map<string, boolean>;
|
|
26
|
+
}
|
|
27
|
+
export declare function detailMemory(): DetailMemory;
|
|
28
|
+
/** What the detail needs from the view it shows in. */
|
|
29
|
+
export interface DetailContext {
|
|
30
|
+
/** Copy a text, and say how that went. */
|
|
31
|
+
copy(text: string): void;
|
|
32
|
+
/** The user picked another tab, which starts at its top. */
|
|
33
|
+
picked?(): void;
|
|
34
|
+
/** What the detail keeps between requests. One of its own where left out. */
|
|
35
|
+
memory?: DetailMemory;
|
|
36
|
+
/** The file devknobs runs from, as a stack names it. Read from a stack of its own where left out. */
|
|
37
|
+
own?: string;
|
|
38
|
+
/** The page's own referrer policy, where it sets one. Read from the page where left out. */
|
|
39
|
+
policy?: string;
|
|
40
|
+
/** The page's address, which heads the initiator chain. Read from the page where left out. */
|
|
41
|
+
page?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface Detail {
|
|
44
|
+
node: HTMLElement;
|
|
45
|
+
/** The request changed: draw what is new of it. */
|
|
46
|
+
update(entry: RequestEntry): void;
|
|
47
|
+
/** The log let the request go: say that what shows will not change again. */
|
|
48
|
+
gone(): void;
|
|
49
|
+
/** Say what a copy leaves out. */
|
|
50
|
+
hides(): void;
|
|
51
|
+
/** Escape came: say whether the detail had anything of its own to undo. It has not: escape goes back. */
|
|
52
|
+
escape(): boolean;
|
|
53
|
+
/** The detail left the view. */
|
|
54
|
+
destroy(): void;
|
|
55
|
+
}
|
|
56
|
+
export declare function createDetail(entry: RequestEntry, context: DetailContext): Detail;
|