@vinena/knobs 0.0.0-stage → 0.5.1
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 +228 -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-jnkbhzkj.js +2873 -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-3n7p79ht.js +8839 -0
- package/dist/framekit-g96t6nmq.js +8838 -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-78r0f8pw.js +27 -0
- package/dist/index-d0cjxjsm.js +21 -0
- package/dist/index-dvr4x91q.js +4800 -0
- package/dist/index-k015tb6c.js +357 -0
- package/dist/index-ke6v7919.js +4801 -0
- package/dist/index-peh33xjv.js +346 -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-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-pdvseef0.js +325 -0
- package/dist/react-qv0nykcv.js +4564 -0
- package/dist/react-sq9pkw4k.js +687 -0
- package/dist/react-xxfpfddf.js +347 -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-sb23henh.js +2729 -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,180 @@
|
|
|
1
|
+
import { type KeyAction, type ZoomAction } from "../engine/frame";
|
|
2
|
+
/** The parts of a keydown that decide what it asks of the panel. */
|
|
3
|
+
export type KeyLike = Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey" | "target" | "composedPath"> & Partial<Pick<KeyboardEvent, "code" | "isComposing">>;
|
|
4
|
+
/** The letter that with shift toggles the panel, lower case like the keys it is matched to. */
|
|
5
|
+
export declare function hotkeyOf(hotkey?: string): string;
|
|
6
|
+
/** A key with the modifiers that go with it, as a shortcut is kept. */
|
|
7
|
+
export interface Combo {
|
|
8
|
+
meta: boolean;
|
|
9
|
+
ctrl: boolean;
|
|
10
|
+
shift: boolean;
|
|
11
|
+
alt: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Lower case: a letter, a digit, a symbol, or a named key such as
|
|
14
|
+
* `backspace` or `f5`. A letter takes every key that reads as it on some layout.
|
|
15
|
+
*/
|
|
16
|
+
key: string;
|
|
17
|
+
}
|
|
18
|
+
/** The shortcuts the panel can be told to use, and by whom. */
|
|
19
|
+
export type Binding = "panel" | "grab" | "inspect" | "replay" | "requests" | "storage" | "reset";
|
|
20
|
+
/** Each binding's key as the mount options and the defaults give it: every binding has one. */
|
|
21
|
+
export type BaseKeys = Record<Binding, Combo>;
|
|
22
|
+
/**
|
|
23
|
+
* Each binding's key in force. A binding whose default the user gave to
|
|
24
|
+
* another one has none, null, until it is set a key of its own. The panel's
|
|
25
|
+
* always has one, as it is the way back to a closed panel.
|
|
26
|
+
*/
|
|
27
|
+
export type Keys = {
|
|
28
|
+
panel: Combo;
|
|
29
|
+
} & Record<Exclude<Binding, "panel">, Combo | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Read a key such as `alt+shift+g`, the modifiers by any of their names. Null
|
|
32
|
+
* for one that names no key, more than one, or an empty part.
|
|
33
|
+
*/
|
|
34
|
+
export declare function parseCombo(spec: string | undefined): Combo | null;
|
|
35
|
+
/** A key as it is kept, such as `meta+shift+k`, the modifiers always in one order. */
|
|
36
|
+
export declare function comboText(combo: Combo): string;
|
|
37
|
+
/** Shift and a key. */
|
|
38
|
+
export declare function withShift(key: string): Combo;
|
|
39
|
+
/** F1 to F12, by the name a combination keeps. */
|
|
40
|
+
export declare function isFunctionKey(key: string): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* A key as the panel shows it: `⌥⇧K` or `⇧⌫` on a Mac, `Alt Shift K` or
|
|
43
|
+
* `Shift Backspace` elsewhere.
|
|
44
|
+
*/
|
|
45
|
+
export declare function comboLabel(combo: Combo, mac: boolean): string;
|
|
46
|
+
/** A key as it is said, such as `shift k`. */
|
|
47
|
+
export declare function comboSpoken(combo: Combo): string;
|
|
48
|
+
/**
|
|
49
|
+
* The panel's keys with none set: shift and the hotkey, shift g, shift c,
|
|
50
|
+
* shift r, shift n, shift s and shift backspace. Where the mount gave the
|
|
51
|
+
* panel or grab shift and c, inspect takes the next letter of its own.
|
|
52
|
+
*/
|
|
53
|
+
export declare function defaultKeys(options?: {
|
|
54
|
+
hotkey?: string;
|
|
55
|
+
grabKey?: string;
|
|
56
|
+
}): BaseKeys;
|
|
57
|
+
/**
|
|
58
|
+
* Marks the panel's own field where the shift letters are the panel's keys
|
|
59
|
+
* and not text. Its search is one: it finds in lower case anyway.
|
|
60
|
+
*/
|
|
61
|
+
export declare const KEYS_FIELD = "data-devknobs-keys";
|
|
62
|
+
/**
|
|
63
|
+
* Whether a key goes into a field: one of the page's, or one of the panel's
|
|
64
|
+
* other than those marked with `KEYS_FIELD`.
|
|
65
|
+
*/
|
|
66
|
+
export declare function typesInField(event: Pick<KeyLike, "target" | "composedPath">): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* A key in lower case. Turkish `İ` is `i`, where `toLowerCase` gives `i` and a
|
|
69
|
+
* dot above.
|
|
70
|
+
*/
|
|
71
|
+
export declare function lowerKey(key: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* A key that types the letter `a` to `z`, in either case for caps lock, or on
|
|
74
|
+
* a layout whose letters are not latin the key in the letter's place. A latin
|
|
75
|
+
* letter elsewhere, a dead key or a keystroke an IME takes is not the letter.
|
|
76
|
+
*/
|
|
77
|
+
export declare function letterMatches(event: {
|
|
78
|
+
key: string;
|
|
79
|
+
code?: string;
|
|
80
|
+
}, letter: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The key alone, whatever modifiers are down: a letter as `letterMatches`
|
|
83
|
+
* reads it, a digit by what it types or where it sits, any other key by its
|
|
84
|
+
* name. Delete is the same as backspace, as reset has always taken it.
|
|
85
|
+
*/
|
|
86
|
+
export declare function keyIs(event: {
|
|
87
|
+
key: string;
|
|
88
|
+
code?: string;
|
|
89
|
+
altKey: boolean;
|
|
90
|
+
}, key: string): boolean;
|
|
91
|
+
/** The key with exactly its own modifiers down, never while an IME composes. */
|
|
92
|
+
export declare function comboMatches(event: KeyLike, combo: Combo): boolean;
|
|
93
|
+
/** The letter that with shift replays the page's animations. */
|
|
94
|
+
export declare const REPLAY_KEY = "r";
|
|
95
|
+
/** The letter that with shift shows the requests log, and hides it. */
|
|
96
|
+
export declare const REQUESTS_KEY = "n";
|
|
97
|
+
/** The letter that with shift shows and leaves the storage view. */
|
|
98
|
+
export declare const STORAGE_KEY = "s";
|
|
99
|
+
/**
|
|
100
|
+
* What a keydown asks of the panel, if anything: escape closes, and the
|
|
101
|
+
* panel's, replay's, requests', reset's and the storage view's keys do
|
|
102
|
+
* theirs, the panel's winning where they are the same, and the storage view's
|
|
103
|
+
* giving way to all. In a field, `actsHere` says whether the key is its.
|
|
104
|
+
*/
|
|
105
|
+
export declare function keyAction(event: KeyLike, keys: Pick<Keys, "panel" | "replay" | "requests" | "reset"> & Partial<Pick<Keys, "storage">>): KeyAction | null;
|
|
106
|
+
/**
|
|
107
|
+
* Whether a keydown is the `/` that focuses the panel's search. Shift is fine,
|
|
108
|
+
* as some layouts need it for `/`, but no other modifier, and never in a field.
|
|
109
|
+
* Every other key belongs to the page.
|
|
110
|
+
*/
|
|
111
|
+
export declare function isSearchKey(event: KeyLike): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The character a keydown types into the panel's search when the focus is on
|
|
114
|
+
* one of the panel's controls rather than in a field, so a knob's name can be
|
|
115
|
+
* typed from anywhere in it. A space presses the control, `/` opens the search
|
|
116
|
+
* empty, and a key with a modifier other than shift, a named key such as an
|
|
117
|
+
* arrow, or one an IME takes types nothing.
|
|
118
|
+
*/
|
|
119
|
+
export declare function typeAhead(event: KeyLike): string | null;
|
|
120
|
+
/**
|
|
121
|
+
* What a zoom key asks of the frame: meta or ctrl with plus steps in, with
|
|
122
|
+
* minus out, and with 0 goes back to fit, as the browser's own zoom keys do.
|
|
123
|
+
* In a field that takes typing they are the browser's.
|
|
124
|
+
*/
|
|
125
|
+
export declare function zoomAction(event: KeyLike): ZoomAction | null;
|
|
126
|
+
/**
|
|
127
|
+
* What escape takes back: the search, a list filter, the shortcuts, the open
|
|
128
|
+
* editor or the panel.
|
|
129
|
+
*/
|
|
130
|
+
export type EscapeStep = "search" | "filter" | "keys" | "view" | "editor" | "panel";
|
|
131
|
+
/** Where things stand when escape comes. */
|
|
132
|
+
export interface EscapeScene {
|
|
133
|
+
/** The search has the focus or a query. */
|
|
134
|
+
search: boolean;
|
|
135
|
+
/** The focus is in a list filter with text in it. */
|
|
136
|
+
filter: boolean;
|
|
137
|
+
/** The shortcuts show in place of the rows. */
|
|
138
|
+
keys?: boolean;
|
|
139
|
+
/** A feature's view shows in place of the rows. */
|
|
140
|
+
view?: boolean;
|
|
141
|
+
/** An editor is open and the focus is in the panel. */
|
|
142
|
+
editor: boolean;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Escape takes one step back at a time: it leaves the search, query and all,
|
|
146
|
+
* clears a list filter, leaves the shortcuts, which may show over a feature's
|
|
147
|
+
* view, hands the key to that view, which takes it or is left for the rows,
|
|
148
|
+
* closes the open editor, and only then the panel.
|
|
149
|
+
*/
|
|
150
|
+
export declare function escapeStep(scene: EscapeScene): EscapeStep;
|
|
151
|
+
/**
|
|
152
|
+
* Where the search's highlight sits among `count` entries: on the first for a
|
|
153
|
+
* new query, else where it was, held inside the entries. -1 with no entries.
|
|
154
|
+
*/
|
|
155
|
+
export declare function highlightAt(cursor: number, count: number, newQuery?: boolean): number;
|
|
156
|
+
/** Where a key in the search puts the highlight, and whether it picks the entry there. */
|
|
157
|
+
export interface PaletteMove {
|
|
158
|
+
cursor: number;
|
|
159
|
+
pick: boolean;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The arrows move the search's highlight one entry, held at the ends, and
|
|
163
|
+
* Enter picks the entry it is on. Every other key is the field's.
|
|
164
|
+
*/
|
|
165
|
+
export declare function paletteMove(key: string, cursor: number, count: number): PaletteMove | null;
|
|
166
|
+
/**
|
|
167
|
+
* Where a key moves the choice in a radio group of `count`: right or down to
|
|
168
|
+
* the next, left or up to the one before, round past the ends, Home and End
|
|
169
|
+
* to the ends. Null for every other key.
|
|
170
|
+
*/
|
|
171
|
+
export declare function radioMove(key: string, index: number, count: number): number | null;
|
|
172
|
+
/**
|
|
173
|
+
* Inside the width knob's frame the keys stay in the frame while it has focus,
|
|
174
|
+
* so send the panel's keys up to the page that has the panel, and the zoom
|
|
175
|
+
* keys up to the letterbox, which the browser's own zoom does not get. `/`
|
|
176
|
+
* goes up while the panel is open, as it does on the page, and is then typed
|
|
177
|
+
* nowhere. The keys are read on each press, so one set in the panel above
|
|
178
|
+
* takes here at once. Returns the way to stop.
|
|
179
|
+
*/
|
|
180
|
+
export declare function forwardKeys(keys?: () => Keys, open?: () => boolean): () => void;
|
package/dist/ui/kit.d.ts
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a feature's view is built from. The rule: a view builds its chrome,
|
|
3
|
+
* its bar, filter, choices, rows, folds and empty lines, only from what is
|
|
4
|
+
* here, and adds css only for the cells of its own content. So a view lines
|
|
5
|
+
* up with the panel's rows and cannot drift from them: the stylesheet has one
|
|
6
|
+
* rule for each of these, and a test fails where a view pads, edges or rounds
|
|
7
|
+
* a head, a bar or a row's main for itself. Where its lines start is the
|
|
8
|
+
* layout the view names, and no piece here says it again.
|
|
9
|
+
*
|
|
10
|
+
* toolbar([filterField({ ... }).node, segments({ ... }).node]);
|
|
11
|
+
* toolbar([toolToggle({ ... }).node, filterField({ ... }).node]);
|
|
12
|
+
* rowBox({ main, glyph, title, ends, after }); sectionFold({ ... }); emptyLine("no requests");
|
|
13
|
+
* entryHead({ name: "key", value: "value" }); entryFold({ index, name, value, end, open });
|
|
14
|
+
* sectionFold({ label, glyph, ends, open }); branch([node, node]); noteButton("3 hidden", run);
|
|
15
|
+
* emptyAction("select an element", run);
|
|
16
|
+
* group({ label, ends }); pairs(lines); codeBlock({ text, lines });
|
|
17
|
+
* tabBar({ options, label, onChange }); section({ label, count, ends, open }); actButton("Raw", run);
|
|
18
|
+
* codeView({ text, lang }); jsonTree(value);
|
|
19
|
+
* stack([noteLine("..."), codeBlock({ text }).node, pairs(lines).node, controls([{ label, run }]).node]);
|
|
20
|
+
* textField({ ... }); textArea({ ... }); switchLine({ ... }); confirmLine({ ... });
|
|
21
|
+
*/
|
|
22
|
+
import { type IconName } from "./icons";
|
|
23
|
+
import type { RadioItem } from "./radio";
|
|
24
|
+
import { type Lang } from "./syntax";
|
|
25
|
+
export { LAYOUTS, type Layout, type RowBox, type RowParts, rowBox, rowButton, rowsLabel } from "./dom";
|
|
26
|
+
export { type Segments, type SegmentsOptions, segments } from "./radio";
|
|
27
|
+
/** What a filter is built from. */
|
|
28
|
+
export interface FilterOptions {
|
|
29
|
+
placeholder: string;
|
|
30
|
+
/** The field's name, for assistive tech. Defaults to the placeholder. */
|
|
31
|
+
label?: string;
|
|
32
|
+
/** What is typed, as it changes, and empty once it is cleared. */
|
|
33
|
+
onInput(text: string): void;
|
|
34
|
+
}
|
|
35
|
+
export interface Filter {
|
|
36
|
+
node: HTMLInputElement;
|
|
37
|
+
/**
|
|
38
|
+
* Empty the field, and say whether there was anything in it. A view hands
|
|
39
|
+
* this to its `escape`, so escape clears the filter before it goes back.
|
|
40
|
+
*/
|
|
41
|
+
clear(): boolean;
|
|
42
|
+
}
|
|
43
|
+
/** The field that filters a list, as the device list's does. */
|
|
44
|
+
export declare function filterField(options: FilterOptions): Filter;
|
|
45
|
+
/**
|
|
46
|
+
* The bar a view keeps over what scrolls under it: its filter and its
|
|
47
|
+
* segments, flush with the rows' edges.
|
|
48
|
+
*/
|
|
49
|
+
export declare function toolbar(children: readonly HTMLElement[]): HTMLElement;
|
|
50
|
+
/** What a bar's toggle is built from. */
|
|
51
|
+
export interface ToolOptions {
|
|
52
|
+
/** What it does, in a word or two: its name for assistive tech. */
|
|
53
|
+
label: string;
|
|
54
|
+
icon: IconName;
|
|
55
|
+
/** Whether it starts on. */
|
|
56
|
+
on: boolean;
|
|
57
|
+
/** It was pressed. The caller says whether it is on from there. */
|
|
58
|
+
onPress(): void;
|
|
59
|
+
}
|
|
60
|
+
export interface Tool {
|
|
61
|
+
node: HTMLButtonElement;
|
|
62
|
+
/** Show whether it is on. */
|
|
63
|
+
set(on: boolean): void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The small icon button a bar starts with, a toggle: it goes first in the
|
|
67
|
+
* bar, and its icon stands where the view's lines start. On, it has the
|
|
68
|
+
* ground the segment that is on has.
|
|
69
|
+
*/
|
|
70
|
+
export declare function toolToggle(options: ToolOptions): Tool;
|
|
71
|
+
/** A line that says a list has nothing to show. */
|
|
72
|
+
export declare function emptyLine(text: string): HTMLElement;
|
|
73
|
+
/**
|
|
74
|
+
* An empty line that is the way to fill what it stands for: a button, quiet
|
|
75
|
+
* as the line is and on its columns, whose words say what a press does.
|
|
76
|
+
*/
|
|
77
|
+
export declare function emptyAction(text: string, run: () => void): HTMLButtonElement;
|
|
78
|
+
/** How tall a fold's body may be and still ease out and away, in px. */
|
|
79
|
+
export declare const FOLD_TALL = 1200;
|
|
80
|
+
/** What a fold is built from. */
|
|
81
|
+
export interface FoldOptions {
|
|
82
|
+
label: string;
|
|
83
|
+
/** Whether it starts folded out. */
|
|
84
|
+
open: boolean;
|
|
85
|
+
/** The row was pressed, and the fold is out or away as `open` says. */
|
|
86
|
+
onToggle?(open: boolean): void;
|
|
87
|
+
/** What the row's line ends with, as a row's value is. */
|
|
88
|
+
ends?: readonly HTMLElement[];
|
|
89
|
+
/** An icon of the row's own, for a node of a tree. It stands after the chevron, before the label. */
|
|
90
|
+
glyph?: Element;
|
|
91
|
+
}
|
|
92
|
+
export interface Fold {
|
|
93
|
+
/** The row and what folds under it. */
|
|
94
|
+
node: HTMLElement;
|
|
95
|
+
/** The row's line, which folds it out and away. */
|
|
96
|
+
main: HTMLButtonElement;
|
|
97
|
+
/** The node that holds the row's label. */
|
|
98
|
+
label: HTMLElement;
|
|
99
|
+
/** Where the folded content goes. */
|
|
100
|
+
body: HTMLElement;
|
|
101
|
+
/** Fold it out or away. */
|
|
102
|
+
set(open: boolean): void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* A section that folds out under its row, as a knob row's editor does. Its
|
|
106
|
+
* chevron stands where a row's icon does, so it starts where the view's
|
|
107
|
+
* lines start, and an icon of its own stands after that. The fold eases
|
|
108
|
+
* out and away, as the stylesheet times it, but one whose body is taller
|
|
109
|
+
* than `FOLD_TALL` goes at once, as easing it lays the whole of it out
|
|
110
|
+
* again on every frame.
|
|
111
|
+
*/
|
|
112
|
+
export declare function sectionFold(options: FoldOptions): Fold;
|
|
113
|
+
/**
|
|
114
|
+
* What a node of a tree holds, under the node: its own nodes and lines, a
|
|
115
|
+
* step in, so each starts under the icon of the node it is in.
|
|
116
|
+
*/
|
|
117
|
+
export declare function branch(children: readonly HTMLElement[]): HTMLElement;
|
|
118
|
+
/** What a line of a table is built from. */
|
|
119
|
+
export interface EntryOptions {
|
|
120
|
+
/** The line's number in the table, on a narrow column before the name. */
|
|
121
|
+
index?: string;
|
|
122
|
+
/** What the line is of: a key, a name. Cut short where it is long, and whole in its tooltip. */
|
|
123
|
+
name: string;
|
|
124
|
+
/** What it holds, on one line. With one, the name stands on a column every line of the table has. */
|
|
125
|
+
value?: string;
|
|
126
|
+
/** What the line ends with, quiet: a size, a count. */
|
|
127
|
+
end?: string;
|
|
128
|
+
/** Whether the name is as quiet as the value is. */
|
|
129
|
+
quiet?: boolean;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The head of a table: what each column of its lines is, in small quiet
|
|
133
|
+
* words, on the columns `entryFold` puts its cells on. It takes the options
|
|
134
|
+
* a line does, each saying its column's name, and leaves the room of a
|
|
135
|
+
* line's chevron empty. It has no ground and no line under it.
|
|
136
|
+
*/
|
|
137
|
+
export declare function entryHead(options: EntryOptions): HTMLElement;
|
|
138
|
+
/**
|
|
139
|
+
* A line of a table that folds out under itself: a name, its value and what
|
|
140
|
+
* the line ends with. The names of every line stand on one column and the
|
|
141
|
+
* values on the next, so they line up down the list.
|
|
142
|
+
*/
|
|
143
|
+
export declare function entryFold(options: EntryOptions & Omit<FoldOptions, "label" | "ends">): Fold;
|
|
144
|
+
/** A quiet line: a note on what a view shows, or what just happened in it. */
|
|
145
|
+
export declare function noteLine(text: string): HTMLElement;
|
|
146
|
+
/** A quiet line that is a control: it says what a list leaves out, and a press shows it. */
|
|
147
|
+
export declare function noteButton(text: string, run: () => void): HTMLButtonElement;
|
|
148
|
+
/** What a labelled group is built from. */
|
|
149
|
+
export interface GroupOptions {
|
|
150
|
+
label: string;
|
|
151
|
+
/** What its first line ends with, in order: small controls for what the group holds. */
|
|
152
|
+
ends?: readonly HTMLElement[];
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* A group of a view's content under a small quiet label, with no fold: its
|
|
156
|
+
* first line is the label and what it ends with, and what it holds is
|
|
157
|
+
* appended to the node after that.
|
|
158
|
+
*/
|
|
159
|
+
export declare function group(options: GroupOptions): HTMLElement;
|
|
160
|
+
/**
|
|
161
|
+
* What folds out under a row, or stands between a view's bar and its rows,
|
|
162
|
+
* one thing under another: padded as a row's editor is, so what is in it
|
|
163
|
+
* lines up with the editors' controls.
|
|
164
|
+
*/
|
|
165
|
+
export declare function stack(children: readonly HTMLElement[]): HTMLElement;
|
|
166
|
+
/** A small text control, such as copy, edit or delete. */
|
|
167
|
+
export interface ControlOption {
|
|
168
|
+
label: string;
|
|
169
|
+
run(): void;
|
|
170
|
+
}
|
|
171
|
+
export interface Controls {
|
|
172
|
+
node: HTMLElement;
|
|
173
|
+
/** The controls, in the order they were handed in. */
|
|
174
|
+
buttons: readonly HTMLButtonElement[];
|
|
175
|
+
}
|
|
176
|
+
/** A line of small text controls, the editors' chips, each doing one thing. */
|
|
177
|
+
export declare function controls(options: readonly ControlOption[]): Controls;
|
|
178
|
+
/** What a one-line field is built from. */
|
|
179
|
+
export interface TextFieldOptions {
|
|
180
|
+
placeholder: string;
|
|
181
|
+
/** The field's name, for assistive tech. Defaults to the placeholder. */
|
|
182
|
+
label?: string;
|
|
183
|
+
value?: string;
|
|
184
|
+
/** Enter was pressed in it. */
|
|
185
|
+
onEnter?(): void;
|
|
186
|
+
}
|
|
187
|
+
/** A field for one line of text, as wide as its place. */
|
|
188
|
+
export declare function textField(options: TextFieldOptions): HTMLInputElement;
|
|
189
|
+
/** What a text box is built from. */
|
|
190
|
+
export interface TextAreaOptions {
|
|
191
|
+
/** The box's name, for assistive tech. */
|
|
192
|
+
label: string;
|
|
193
|
+
value?: string;
|
|
194
|
+
placeholder?: string;
|
|
195
|
+
/** Enter with meta or ctrl was pressed in it. */
|
|
196
|
+
onSave?(): void;
|
|
197
|
+
}
|
|
198
|
+
/** The most lines a text box grows to before it scrolls. */
|
|
199
|
+
export declare const AREA_ROWS = 14;
|
|
200
|
+
/**
|
|
201
|
+
* A box for text over lines, in the type code is read in. It is as tall as
|
|
202
|
+
* what it holds, up to `AREA_ROWS` lines, and scrolls past that.
|
|
203
|
+
*/
|
|
204
|
+
export declare function textArea(options: TextAreaOptions): HTMLTextAreaElement;
|
|
205
|
+
export interface Pairs {
|
|
206
|
+
node: HTMLElement;
|
|
207
|
+
/** Show only the pairs `match` keeps, and say how many those are. */
|
|
208
|
+
keep(match: (name: string, value: string) => boolean): number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* A list of names and their values in two columns, the names in a key's
|
|
212
|
+
* color and the values in the text's, both in mono and wrapping anywhere. Where the
|
|
213
|
+
* view is narrow a name stands over its value.
|
|
214
|
+
*/
|
|
215
|
+
export declare function pairs(lines: readonly (readonly [name: string, value: string | HTMLElement])[]): Pairs;
|
|
216
|
+
/** A line of a code block past this many characters is a long one, which gets the choice not to wrap. */
|
|
217
|
+
export declare const LONG_LINE = 80;
|
|
218
|
+
/** What a code block is built from. */
|
|
219
|
+
export interface CodeOptions {
|
|
220
|
+
text: string;
|
|
221
|
+
/** Show only this many lines of a longer text at first, with the way to show all of it. */
|
|
222
|
+
lines?: number;
|
|
223
|
+
}
|
|
224
|
+
export interface Code {
|
|
225
|
+
node: HTMLElement;
|
|
226
|
+
/** Turns wrapping off and on. Only there where the text has a long line. */
|
|
227
|
+
wrap: HTMLButtonElement | null;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* A block of text in mono, as it was written. It wraps, so it never makes
|
|
231
|
+
* its view scroll sideways: with wrapping off, the block scrolls in itself.
|
|
232
|
+
* The caller says where the wrap control goes.
|
|
233
|
+
*/
|
|
234
|
+
export declare function codeBlock(options: CodeOptions): Code;
|
|
235
|
+
/** What a switch on a line of its own is built from. */
|
|
236
|
+
export interface SwitchOptions {
|
|
237
|
+
label: string;
|
|
238
|
+
on: boolean;
|
|
239
|
+
/** It was pressed, and is now as `on` says. */
|
|
240
|
+
onChange(on: boolean): void;
|
|
241
|
+
}
|
|
242
|
+
export interface SwitchLine {
|
|
243
|
+
node: HTMLElement;
|
|
244
|
+
control: HTMLButtonElement;
|
|
245
|
+
set(on: boolean): void;
|
|
246
|
+
}
|
|
247
|
+
/** A switch with its label before it, as a knob's switch stands in its editor. */
|
|
248
|
+
export declare function switchLine(options: SwitchOptions): SwitchLine;
|
|
249
|
+
/** What a question asked in place is built from. */
|
|
250
|
+
export interface ConfirmOptions {
|
|
251
|
+
/** The question, such as `clear 12 items?`. */
|
|
252
|
+
text: string;
|
|
253
|
+
/** What the control that goes ahead says. */
|
|
254
|
+
confirm: string;
|
|
255
|
+
onConfirm(): void;
|
|
256
|
+
onCancel(): void;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* A question asked where the thing is, in the view and never in a dialog of
|
|
260
|
+
* the browser: its words, then the control that goes ahead and the one that
|
|
261
|
+
* does not.
|
|
262
|
+
*/
|
|
263
|
+
export declare function confirmLine(options: ConfirmOptions): Controls;
|
|
264
|
+
/** What a tab bar is built from. */
|
|
265
|
+
export interface TabsOptions {
|
|
266
|
+
/** The tabs, in order. */
|
|
267
|
+
options: readonly {
|
|
268
|
+
value: string;
|
|
269
|
+
label: string;
|
|
270
|
+
}[];
|
|
271
|
+
/** The bar's name, for assistive tech. */
|
|
272
|
+
label: string;
|
|
273
|
+
/** A tab picked, by a click or the arrows. The caller says which is on from there. */
|
|
274
|
+
onChange(value: string): void;
|
|
275
|
+
}
|
|
276
|
+
export interface Tabs {
|
|
277
|
+
node: HTMLElement;
|
|
278
|
+
items: readonly RadioItem[];
|
|
279
|
+
/** What the tab that is on shows, named by it. */
|
|
280
|
+
panel: HTMLElement;
|
|
281
|
+
/** Show which tab is on. */
|
|
282
|
+
set(value: string): void;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* A row of tabs over the panel that shows what the one that is on holds, as
|
|
286
|
+
* the browsers' own tools have them: a tablist that is one tab stop, the
|
|
287
|
+
* arrows, Home and End move along the tabs that show and pick as they go. A
|
|
288
|
+
* bar wider than the view scrolls sideways, and keeps the tab that is on in view.
|
|
289
|
+
*/
|
|
290
|
+
export declare function tabBar(options: TabsOptions): Tabs;
|
|
291
|
+
/** What a section is built from. */
|
|
292
|
+
export interface SectionOptions {
|
|
293
|
+
label: string;
|
|
294
|
+
/** What the head says after the label, quiet: how many lines it holds. */
|
|
295
|
+
count?: string;
|
|
296
|
+
/** What the head ends with, in order: small controls for what it holds. */
|
|
297
|
+
ends?: readonly HTMLElement[];
|
|
298
|
+
open: boolean;
|
|
299
|
+
/** The head was pressed, and the section is open or closed as `open` says. */
|
|
300
|
+
onToggle?(open: boolean): void;
|
|
301
|
+
}
|
|
302
|
+
export interface Section {
|
|
303
|
+
node: HTMLElement;
|
|
304
|
+
/** The head's button, which opens and closes it. */
|
|
305
|
+
head: HTMLButtonElement;
|
|
306
|
+
/** Where what it holds goes. */
|
|
307
|
+
body: HTMLElement;
|
|
308
|
+
set(open: boolean): void;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* A section of a view under a head that opens and closes it, as the
|
|
312
|
+
* browsers' tools head the parts of a request: a triangle, the label in
|
|
313
|
+
* the text's color, a quiet count, and small controls at the far end. What it
|
|
314
|
+
* holds stands under its label.
|
|
315
|
+
*/
|
|
316
|
+
export declare function section(options: SectionOptions): Section;
|
|
317
|
+
/**
|
|
318
|
+
* A small control in words, as the browsers' tools have them by a section's
|
|
319
|
+
* head: `view source`, `Raw`. With `pressed`, it is a toggle that shows
|
|
320
|
+
* whether it is on.
|
|
321
|
+
*/
|
|
322
|
+
export declare function actButton(label: string, run: () => void, pressed?: boolean): HTMLButtonElement;
|
|
323
|
+
/** What a code view is built from. */
|
|
324
|
+
export interface CodeViewOptions {
|
|
325
|
+
text: string;
|
|
326
|
+
/** The kind of code, which colors it. Plain where left out. */
|
|
327
|
+
lang?: Lang;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Text as the browsers' tools show a response: a line a row, its number in
|
|
331
|
+
* a gutter, colored for its kind of code. A long line wraps, and goes on a
|
|
332
|
+
* little further in than where it starts, never back at the edge.
|
|
333
|
+
*/
|
|
334
|
+
export declare function codeView(options: CodeViewOptions): HTMLElement;
|
|
335
|
+
/** Json as a tree, as the browsers' tools show a payload: the top open, each node a line that opens to what it holds. */
|
|
336
|
+
export declare function jsonTree(value: unknown): HTMLElement;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Knob, Option } from "./catalog";
|
|
2
|
+
export declare function options(...values: string[]): Option[];
|
|
3
|
+
export declare const OFF_ON: Option[];
|
|
4
|
+
export declare function flag(value: boolean): string;
|
|
5
|
+
/** A number typed out, if it falls between `min` and `max`. */
|
|
6
|
+
export declare function numberIn(text: string, min: number, max: number): Option | null;
|
|
7
|
+
/**
|
|
8
|
+
* `2026-10-04T09:30`, an instant the way a `datetime-local` input reads it,
|
|
9
|
+
* on the page's own clock face.
|
|
10
|
+
*/
|
|
11
|
+
export declare function wallInput(time: number): string;
|
|
12
|
+
/** A jump of the clock in its largest unit, rounded: `+2d`, `-5m`, `now` under a minute. */
|
|
13
|
+
export declare function shiftLabel(ms: number): string;
|
|
14
|
+
/** `+2d`, `2 days` or `-3h` as a jump of the clock, in ms from the real now. */
|
|
15
|
+
export declare function parseShift(text: string): Option | null;
|
|
16
|
+
/** A user agent typed out: a product and its version up front, such as `curl/8.7.1`. */
|
|
17
|
+
export declare function parseUserAgent(text: string): Option | null;
|
|
18
|
+
/** More words each user agent preset is found by. */
|
|
19
|
+
export declare const UA_ALIASES: Record<string, readonly string[]>;
|
|
20
|
+
export declare const SCHEME: Knob;
|
|
21
|
+
export declare const CONTRAST: Knob;
|
|
22
|
+
export declare const TRANSPARENCY: Knob;
|
|
23
|
+
export declare const TEXT: Knob;
|
|
24
|
+
export declare const SPACING: Knob;
|
|
25
|
+
export declare const MOTION: Knob;
|
|
26
|
+
export declare const SPEED: Knob;
|
|
27
|
+
export declare const LOCALE: Knob;
|
|
28
|
+
export declare const DIRECTION: Knob;
|
|
29
|
+
export declare const PSEUDO: Knob;
|
|
30
|
+
export declare const GEO: Knob;
|
|
31
|
+
export declare const GEO_ERROR: Knob;
|
|
32
|
+
export declare const TIME_ZONE: Knob;
|
|
33
|
+
export declare const CLOCK: Knob;
|
|
34
|
+
export declare const CLOCK_MODE: Knob;
|
|
35
|
+
export declare const CLOCK_SPEED: Knob;
|
|
36
|
+
export declare const HEADER: Knob;
|
|
37
|
+
export declare const ONLINE: Knob;
|
|
38
|
+
export declare const CONNECTION: Knob;
|
|
39
|
+
export declare const SAVE_DATA: Knob;
|
|
40
|
+
/** What a value is called on a chip or in a summary. */
|
|
41
|
+
export declare function nameOf(knob: Knob, value: string): string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { DevknobsState, DevknobsStatePatch } from "../types";
|
|
2
|
+
import { type Knob, type Live, type Row, type RowId } from "./catalog";
|
|
3
|
+
/**
|
|
4
|
+
* Which rows the panel lists, and what they say. A row is listed while a knob
|
|
5
|
+
* of it is off its default, and once set or added from the panel it stays
|
|
6
|
+
* listed, back at its default too, until a hold on its `×` or reset all takes it off. A fresh panel,
|
|
7
|
+
* and reset all, lists the default rows.
|
|
8
|
+
*
|
|
9
|
+
* An action's row goes by the same rules, with nothing here that tells the
|
|
10
|
+
* two apart: it is listed while its mode is on, as a knob set from outside
|
|
11
|
+
* the panel is, and once run from the panel it stays listed until its `×` is held.
|
|
12
|
+
* So a key alone lists a mode only while it is on, and pins nothing.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The order the rows stand in: the pinned ones in the order they were pinned
|
|
16
|
+
* or dragged to, then the rest in the catalog's, so a row listed for being off
|
|
17
|
+
* its default stands at the end.
|
|
18
|
+
*/
|
|
19
|
+
export declare function rowOrder(state: DevknobsState): RowId[];
|
|
20
|
+
/** The rows listed, in the order they stand. */
|
|
21
|
+
export declare function listedOrder(state: DevknobsState): RowId[];
|
|
22
|
+
/** A list with the item at `from` taken out and put back at `to`, both held inside it. */
|
|
23
|
+
export declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
24
|
+
/**
|
|
25
|
+
* The moves that stand `items` in the order `wanted` lists them, each an item
|
|
26
|
+
* and the one it goes before, null for the end. Nothing already in place
|
|
27
|
+
* moves, nor does an item of `keep`, the first ones first, while the kept
|
|
28
|
+
* ones stand in the same order in both lists. So a row that holds the focus
|
|
29
|
+
* is never taken off the page, and keeps it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function arrange<T>(items: readonly T[], wanted: readonly T[], keep?: readonly T[]): Array<[T, T | null]>;
|
|
32
|
+
/**
|
|
33
|
+
* The patch that moves the listed row at `from` to `to`. The list is pinned
|
|
34
|
+
* as it then stands, so a row listed only for being off its default is
|
|
35
|
+
* pinned where it was put.
|
|
36
|
+
*/
|
|
37
|
+
export declare function movePatch(state: DevknobsState, from: number, to: number): DevknobsStatePatch;
|
|
38
|
+
/** The patch that sets knobs from the panel and pins their row. */
|
|
39
|
+
export declare function pinPatch(state: DevknobsState, id: RowId, patch: DevknobsStatePatch): DevknobsStatePatch;
|
|
40
|
+
/**
|
|
41
|
+
* The patch a click on a row's `×` sends: its knobs back to their defaults,
|
|
42
|
+
* and the row pinned, so it stays listed. A value another knob brought stays,
|
|
43
|
+
* so the viewport's `×` leaves a device its size.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resetRowPatch(state: DevknobsState, row: Row): DevknobsStatePatch;
|
|
46
|
+
/**
|
|
47
|
+
* The patch a hold on a row's `×` sends: its knobs back as a click puts them,
|
|
48
|
+
* and the row off the list.
|
|
49
|
+
*/
|
|
50
|
+
export declare function removePatch(state: DevknobsState, row: Row): DevknobsStatePatch;
|
|
51
|
+
/**
|
|
52
|
+
* Would reset all change nothing: every knob at its default, and the default
|
|
53
|
+
* rows listed alone, in their order? An id no row has here, such as one an
|
|
54
|
+
* older or a newer version kept, is not listed and counts for nothing.
|
|
55
|
+
*/
|
|
56
|
+
export declare function isReset(state: DevknobsState): boolean;
|
|
57
|
+
export declare function isListed(row: Row, state: DevknobsState): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether a knob shows its label over its control. A knob named as its row is
|
|
60
|
+
* already named by the row's title, so the label would only say it again.
|
|
61
|
+
*/
|
|
62
|
+
export declare function showsLabel(row: Row, knob: Knob): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* What a listed row says: what it emulates, or the value its first knob is
|
|
65
|
+
* back at. An action's says what it emulates, else whether its mode is on,
|
|
66
|
+
* and nothing with no mode.
|
|
67
|
+
*/
|
|
68
|
+
export declare function rowText(row: Row, state: DevknobsState, live: Live): string;
|