@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,26 @@
|
|
|
1
|
+
import type { DevknobsState, DevknobsStatePatch } from "../types";
|
|
2
|
+
import type { Action } from "./catalog";
|
|
3
|
+
import { type Keys } from "./keys";
|
|
4
|
+
/**
|
|
5
|
+
* Running the actions from the panel. The catalog says what each one does,
|
|
6
|
+
* and here is what the panel adds to it: its row stays listed once it is run
|
|
7
|
+
* from the panel, as a knob's does once it is set there.
|
|
8
|
+
*/
|
|
9
|
+
/** Where the knobs are kept, as far as running an action goes. */
|
|
10
|
+
export interface Store {
|
|
11
|
+
getState(): DevknobsState;
|
|
12
|
+
setState(patch: DevknobsStatePatch): unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Run an action from the panel: from its row, the search, the browse list or
|
|
16
|
+
* a control of the footer. Its row is pinned first, so it is listed from here
|
|
17
|
+
* on. A key runs the action alone, and pins nothing.
|
|
18
|
+
*/
|
|
19
|
+
export declare function runAction(action: Action, store?: Store): void;
|
|
20
|
+
/**
|
|
21
|
+
* Turn a mode off where it is on, and put back what the action emulates, as
|
|
22
|
+
* its row's `×` and reset all do.
|
|
23
|
+
*/
|
|
24
|
+
export declare function stopAction(action: Action): void;
|
|
25
|
+
/** The key that runs an action, as its row shows it. Nothing with no key. */
|
|
26
|
+
export declare function actionKey(action: Action, keys: Partial<Keys>, mac: boolean): string;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type BaseKeys, type Binding, type Combo, type KeyLike, type Keys } from "./keys";
|
|
2
|
+
/**
|
|
3
|
+
* Where the keys the user set in the panel are kept, in `localStorage`, so they
|
|
4
|
+
* hold across reloads and in new tabs of the origin. Reset all leaves them.
|
|
5
|
+
*/
|
|
6
|
+
export declare const KEYS_KEY = "devknobs:keys";
|
|
7
|
+
/** The version of the keys `KEYS_KEY` keeps. Bump it with a new shape, see stored.ts. */
|
|
8
|
+
export declare const KEYS_VERSION = 1;
|
|
9
|
+
/** The bindings in the order the panel lists them. */
|
|
10
|
+
export declare const BINDINGS: readonly Binding[];
|
|
11
|
+
/** What each binding does, in the words the footer uses. */
|
|
12
|
+
export declare const BINDING_WORDS: Record<Binding, string>;
|
|
13
|
+
/** The keys the user set, by binding, as `comboText` writes them. */
|
|
14
|
+
export type StoredKeys = Partial<Record<Binding, string>>;
|
|
15
|
+
/**
|
|
16
|
+
* A combination the browser or the system keeps for itself: the reserved
|
|
17
|
+
* letters, the tab digits and the zoom keys with meta or ctrl, F5 that
|
|
18
|
+
* reloads, F11 and F12 alone, and alt or ctrl with F4 that close.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isReserved(combo: Combo): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Why a combination cannot be a binding's, or null where it can: a key alone
|
|
23
|
+
* types, so it needs a modifier unless it is a function key, the browser keeps
|
|
24
|
+
* some, `/` is the search's, and no two bindings share one. `others` are the
|
|
25
|
+
* keys the other bindings have now.
|
|
26
|
+
*/
|
|
27
|
+
export declare function comboProblem(combo: Combo, binding: Binding, others?: Partial<Keys>): string | null;
|
|
28
|
+
/**
|
|
29
|
+
* The combination a keydown is, as a binding keeps it, or null for a key no
|
|
30
|
+
* binding can take. A latin letter is kept by what it types, so layouts keep
|
|
31
|
+
* working. With option, or on a layout whose letters are not latin, it is the
|
|
32
|
+
* letter of the key's place, as `letterMatches` reads it back. A digit is kept
|
|
33
|
+
* by its place, so shift and 1 is not `!`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function comboOf(event: KeyLike): Combo | null;
|
|
36
|
+
/** What a key pressed while a binding records does. */
|
|
37
|
+
export type RecordStep = {
|
|
38
|
+
type: "wait";
|
|
39
|
+
} | {
|
|
40
|
+
type: "cancel";
|
|
41
|
+
} | {
|
|
42
|
+
type: "keep";
|
|
43
|
+
combo: Combo;
|
|
44
|
+
} | {
|
|
45
|
+
type: "refuse";
|
|
46
|
+
reason: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A key pressed while a binding records: a modifier alone, or a key an IME
|
|
50
|
+
* takes, waits for the rest, escape and tab cancel, and any other key is kept
|
|
51
|
+
* or refused with the reason `comboProblem` gives.
|
|
52
|
+
*/
|
|
53
|
+
export declare function recordStep(event: KeyLike, binding: Binding, others: Partial<Keys>): RecordStep;
|
|
54
|
+
/**
|
|
55
|
+
* Read the stored keys, keeping only the bindings with a combination that
|
|
56
|
+
* reads and could have been set in the panel, each in its kept form.
|
|
57
|
+
*/
|
|
58
|
+
export declare function readKeys(json: string | null | undefined): StoredKeys;
|
|
59
|
+
/**
|
|
60
|
+
* The keys in force: a key the user set wins over `base`, the mount options
|
|
61
|
+
* or the defaults, another binding's too: the binding whose default it took
|
|
62
|
+
* is left with no key, to be set one in the settings. Two set keys that are
|
|
63
|
+
* the same, or one that is the panel's, give way to their base, as the panel
|
|
64
|
+
* always keeps a key. Without grab, its key is no other binding's to clash with.
|
|
65
|
+
*/
|
|
66
|
+
export declare function resolveKeys(base: BaseKeys, stored: StoredKeys, grab?: boolean): Keys;
|
|
67
|
+
/** The keys in force, kept in step with the ones the user sets, here or in another tab. */
|
|
68
|
+
export interface LiveKeys {
|
|
69
|
+
get(): Keys;
|
|
70
|
+
/** Whether the user set the binding's key in the panel, over the mount option or the default. */
|
|
71
|
+
custom(binding: Binding): boolean;
|
|
72
|
+
/** Set a binding's key, or with null put it back to the mount option or the default. */
|
|
73
|
+
set(binding: Binding, combo: Combo | null): void;
|
|
74
|
+
/** Hear the keys change. Returns the way to stop. */
|
|
75
|
+
subscribe(listener: () => void): () => void;
|
|
76
|
+
/** True while the panel records a key, so nothing else takes the keys pressed. */
|
|
77
|
+
recording: boolean;
|
|
78
|
+
destroy(): void;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The keys for a mount's options, with the ones the user set on top. Another
|
|
82
|
+
* document of the origin that sets them, as the page above the width knob's
|
|
83
|
+
* frame does, is heard through the storage event.
|
|
84
|
+
*/
|
|
85
|
+
export declare function createKeys(options?: {
|
|
86
|
+
hotkey?: string;
|
|
87
|
+
grabKey?: string;
|
|
88
|
+
grab?: boolean;
|
|
89
|
+
}): LiveKeys;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The box of the element the styles view shows, as the browsers draw one:
|
|
3
|
+
* its margin, border, padding and content one inside the other, each with
|
|
4
|
+
* its name and the length of its four sides, and around them its offsets
|
|
5
|
+
* where the element is positioned. It is content of the view, a picture of
|
|
6
|
+
* the element, so its areas are filled, in the hues the page's own tints
|
|
7
|
+
* have. To use it:
|
|
8
|
+
*
|
|
9
|
+
* const diagram = createBoxDiagram((ring) => inspect.area(ring));
|
|
10
|
+
* fold.body.append(diagram.node); diagram.show(readBox(element)); diagram.fit(width);
|
|
11
|
+
*
|
|
12
|
+
* It is built once, and a new box only changes its text. Where it is too
|
|
13
|
+
* narrow for the lengths to stand in their areas, they leave them, and the
|
|
14
|
+
* four of the area the pointer or the focus is on stand in a line under it.
|
|
15
|
+
*/
|
|
16
|
+
import { type BoxModel, type BoxRing, type Side } from "../grab/boxmodel";
|
|
17
|
+
/** An element's box as the diagram shows it: what its style says, and the size of its content. */
|
|
18
|
+
export interface BoxReading {
|
|
19
|
+
model: BoxModel;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
}
|
|
23
|
+
/** Read an element's box, the device frame's page's too. Null for one that left its window. */
|
|
24
|
+
export declare function readBox(element: Element): BoxReading | null;
|
|
25
|
+
/** The areas of the diagram, from the outside in: the offsets, then the box's own. */
|
|
26
|
+
export declare const DIAGRAM_RINGS: readonly ["position", "margin", "border", "padding"];
|
|
27
|
+
export type DiagramRing = (typeof DIAGRAM_RINGS)[number];
|
|
28
|
+
/** The lengths of an area by side, as text. Null for the offsets of an element that has none. */
|
|
29
|
+
export declare function ringValues(reading: BoxReading, ring: DiagramRing): Record<Side, string> | null;
|
|
30
|
+
/**
|
|
31
|
+
* The width the diagram needs for every length to stand in its area with no
|
|
32
|
+
* two of them meeting, in px: a column at each side of each area as wide as
|
|
33
|
+
* its text, and the content between them.
|
|
34
|
+
*/
|
|
35
|
+
export declare function diagramNeeds(reading: BoxReading): number;
|
|
36
|
+
/** What is said of the box under the diagram: how it is sized and laid out, and placed where it is. */
|
|
37
|
+
export declare function boxFacts(model: BoxModel): string[];
|
|
38
|
+
export interface BoxDiagram {
|
|
39
|
+
node: HTMLElement;
|
|
40
|
+
/** Show a box, or with null nothing. */
|
|
41
|
+
show(reading: BoxReading | null): void;
|
|
42
|
+
/** Say how wide the diagram is, in px, so it knows whether its lengths fit. */
|
|
43
|
+
fit(width: number): void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Build the diagram. `onArea` hears the area the pointer or the focus is on,
|
|
47
|
+
* to draw that one alone on the page, and null once it is on none. The
|
|
48
|
+
* offsets are no area of the box, so on them it hears null.
|
|
49
|
+
*/
|
|
50
|
+
export declare function createBoxDiagram(onArea: (ring: BoxRing | null) => void): BoxDiagram;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { CustomColor, DevknobsState, DevknobsStatePatch } from "../types";
|
|
2
|
+
import type { ColorList } from "./colors";
|
|
3
|
+
import type { IconName } from "./icons";
|
|
4
|
+
import type { Binding } from "./keys";
|
|
5
|
+
export { hasMock } from "./deviceknobs";
|
|
6
|
+
export { nameOf, parseShift, shiftLabel, wallInput } from "./knobs";
|
|
7
|
+
/**
|
|
8
|
+
* Every knob the panel offers, as data: what it is called, what it can be set
|
|
9
|
+
* to and how, and how it reads back. The actions are here too, each with what
|
|
10
|
+
* it does. The rows, their editors and the search all come from here.
|
|
11
|
+
*/
|
|
12
|
+
export type Category = "look" | "motion" | "language" | "location and time" | "network" | "device" | "viewport" | "debug";
|
|
13
|
+
export declare const CATEGORIES: readonly Category[];
|
|
14
|
+
/**
|
|
15
|
+
* How an editor sets the knob: on and off, a few choices, colors to pick
|
|
16
|
+
* from, number chips, or a long list.
|
|
17
|
+
*/
|
|
18
|
+
export type Control = "switch" | "segments" | "swatches" | "chips" | "list";
|
|
19
|
+
export interface Option {
|
|
20
|
+
/** What the knob is set to, as text. */
|
|
21
|
+
value: string;
|
|
22
|
+
/** What a chip, a segment or a list line says. */
|
|
23
|
+
label: string;
|
|
24
|
+
/** What a search result says after the knob's name, where the label is too short. */
|
|
25
|
+
long?: string;
|
|
26
|
+
/** More words search finds the option by. */
|
|
27
|
+
aliases?: readonly string[];
|
|
28
|
+
/** Picking it opens the knob's editor too, which has more to fill in. */
|
|
29
|
+
opens?: boolean;
|
|
30
|
+
/** The heading a long list shows it under. */
|
|
31
|
+
group?: string;
|
|
32
|
+
/** What a swatch is painted with, as a css background. */
|
|
33
|
+
swatch?: string;
|
|
34
|
+
/** The color a swatch stands for, which one of the user's own the same as it picks. */
|
|
35
|
+
color?: CustomColor;
|
|
36
|
+
}
|
|
37
|
+
/** What changes without a knob moving. */
|
|
38
|
+
export interface Live {
|
|
39
|
+
/** The time the page reads, in epoch ms. */
|
|
40
|
+
now: number;
|
|
41
|
+
/** The real time, in epoch ms. */
|
|
42
|
+
real: number;
|
|
43
|
+
/** How many boxes stick out sideways, null until it is known. */
|
|
44
|
+
overflow: number | null;
|
|
45
|
+
}
|
|
46
|
+
export type KnobId = "scheme" | "contrast" | "transparency" | "text" | "spacing" | "motion" | "speed" | "locale" | "direction" | "pseudo" | "geo" | "geoError" | "timeZone" | "clock" | "clockMode" | "clockSpeed" | "header" | "online" | "connection" | "saveData" | "device" | "mock" | "touchPointer" | "browser" | "bars" | "edgeToEdge" | "width" | "dpr" | "zoom" | "frame" | "mat" | "vision" | "ua" | "overflow" | "outlines" | "grabColor";
|
|
47
|
+
export interface Knob {
|
|
48
|
+
id: KnobId;
|
|
49
|
+
label: string;
|
|
50
|
+
category: Category;
|
|
51
|
+
control: Control;
|
|
52
|
+
/** What the editor offers. A switch has two, off first. */
|
|
53
|
+
options: readonly Option[];
|
|
54
|
+
/** More words search finds the knob by. */
|
|
55
|
+
aliases: readonly string[];
|
|
56
|
+
/** The value that is on, as one of the option values where it is one. */
|
|
57
|
+
read(state: DevknobsState): string;
|
|
58
|
+
/** The patch that sets the knob to a value. */
|
|
59
|
+
write(value: string, state: DevknobsState): DevknobsStatePatch;
|
|
60
|
+
/** The patch that puts the knob back to its default. */
|
|
61
|
+
reset: DevknobsStatePatch;
|
|
62
|
+
/** The knob's part of its row's summary, asked only while it is off its default. */
|
|
63
|
+
brief?(state: DevknobsState, live: Live): string;
|
|
64
|
+
/** What a value outside the options is called. */
|
|
65
|
+
name?(value: string): string;
|
|
66
|
+
/** A value typed out in full that is not an option, or null. */
|
|
67
|
+
parse?(text: string): Option | null;
|
|
68
|
+
/** Search reads a typed value as this knob's even when the query does not name it. */
|
|
69
|
+
bare?: boolean;
|
|
70
|
+
/** More values search reaches than the editor lists. */
|
|
71
|
+
extra?(): readonly Option[];
|
|
72
|
+
/** False where the browser has nothing for the knob to act on. */
|
|
73
|
+
available?(): boolean;
|
|
74
|
+
/** The option values the editor shows for this state, in order, where they depend on it. */
|
|
75
|
+
offers?(state: DevknobsState): readonly string[];
|
|
76
|
+
/** False while the knob does nothing, so the editor hides it. Search still sets it. */
|
|
77
|
+
shown?(state: DevknobsState): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The value another knob brought, which stands in for the default while it
|
|
80
|
+
* does: such a value puts the knob off nothing, and its row's `×` puts it back.
|
|
81
|
+
*/
|
|
82
|
+
base?(state: DevknobsState): string | undefined;
|
|
83
|
+
/** The list of colors of the user's own its swatches take, each one a value as its hex. */
|
|
84
|
+
custom?: ColorList;
|
|
85
|
+
/** Show the value it has at once, with no way there, as a color still being picked asks. */
|
|
86
|
+
land?(): void;
|
|
87
|
+
}
|
|
88
|
+
/** The rows of knobs. */
|
|
89
|
+
export type KnobRowId = "scheme" | "contrast" | "transparency" | "vision" | "text" | "motion" | "locale" | "location" | "clock" | "network" | "device" | "viewport" | "debug";
|
|
90
|
+
/** Every row: the rows of knobs, and one for each action, under the action's id. */
|
|
91
|
+
export type RowId = KnobRowId | Action["id"];
|
|
92
|
+
/** One line of the list, with the knobs that read best together. */
|
|
93
|
+
export interface KnobRow {
|
|
94
|
+
id: KnobRowId;
|
|
95
|
+
label: string;
|
|
96
|
+
knobs: readonly KnobId[];
|
|
97
|
+
action?: undefined;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* An action's line of the list. It is a row as a knob row is, so the list
|
|
101
|
+
* keeps, orders and drops it by the same rules: it has no knob to set, and
|
|
102
|
+
* the action to run in their place.
|
|
103
|
+
*/
|
|
104
|
+
export interface ActionRow {
|
|
105
|
+
id: Action["id"];
|
|
106
|
+
label: string;
|
|
107
|
+
/** None, ever: what a knob row sets, an action's row runs. */
|
|
108
|
+
knobs: readonly KnobId[];
|
|
109
|
+
action: Action;
|
|
110
|
+
}
|
|
111
|
+
export type Row = KnobRow | ActionRow;
|
|
112
|
+
/** Something the panel does rather than a knob it sets. Its row comes from what is said here. */
|
|
113
|
+
export interface Action {
|
|
114
|
+
id: "grab" | "inspect" | "replay" | "requests" | "storage" | "pin" | "side";
|
|
115
|
+
label: string;
|
|
116
|
+
/** What a search result says after the name. */
|
|
117
|
+
long: string;
|
|
118
|
+
/** More words search finds the action by. */
|
|
119
|
+
aliases: readonly string[];
|
|
120
|
+
/** The icon its row and its search result show. */
|
|
121
|
+
icon: IconName;
|
|
122
|
+
/** The binding whose key runs it, which its row shows. */
|
|
123
|
+
binding?: Binding;
|
|
124
|
+
/** Do it. A mode goes on, or off where it is on. */
|
|
125
|
+
run(): void;
|
|
126
|
+
/** Whether a mode or a toggle is on. An action that is neither has none. */
|
|
127
|
+
state?(): "on" | "off" | null;
|
|
128
|
+
/** Turn a mode off, as its row's `×` and reset all do. A toggle those leave alone has none. */
|
|
129
|
+
off?(): void;
|
|
130
|
+
/** Hear a mode go on or off, however it did. Returns the way to stop. */
|
|
131
|
+
watch?(listener: () => void): () => void;
|
|
132
|
+
/** False where the page has nothing for the action to act on. */
|
|
133
|
+
available?(): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* What the action emulates now, or holds as inspect does its element, as
|
|
136
|
+
* its row says it and as a knob's summary does. Empty while there is none.
|
|
137
|
+
* A row that says something is listed, so what changes the page is never
|
|
138
|
+
* out of sight.
|
|
139
|
+
*/
|
|
140
|
+
value?(): string;
|
|
141
|
+
/** Put back what the action emulates, or let go of what it holds, as its row's `×` and reset all do. */
|
|
142
|
+
reset?(): void;
|
|
143
|
+
}
|
|
144
|
+
/** What the storage row says once presets applied as the page loaded: `1 preset`. */
|
|
145
|
+
export declare function appliedText(count: number): string;
|
|
146
|
+
/** What inspect's row says while the picking is on. */
|
|
147
|
+
export declare const PICKING = "picking";
|
|
148
|
+
/**
|
|
149
|
+
* Every action, in the order the browse list shows them. A new one is an
|
|
150
|
+
* entry here, and its id in `Action`: its row, its search result and its
|
|
151
|
+
* place in the list all follow.
|
|
152
|
+
*/
|
|
153
|
+
export declare const ACTIONS: readonly Action[];
|
|
154
|
+
/** An action's row: named as the action is, with nothing to set. */
|
|
155
|
+
export declare function actionRow(action: Action): ActionRow;
|
|
156
|
+
/**
|
|
157
|
+
* Every knob, in the order search breaks ties by, the most asked for first:
|
|
158
|
+
* `reduce` is motion before it is transparency. The browse list keeps this
|
|
159
|
+
* order inside each category.
|
|
160
|
+
*/
|
|
161
|
+
export declare const KNOBS: readonly Knob[];
|
|
162
|
+
export declare const KNOB_ROWS: readonly KnobRow[];
|
|
163
|
+
/** Every row: the rows of knobs in the catalog's order, then the actions' in theirs. */
|
|
164
|
+
export declare const ROWS: readonly Row[];
|
|
165
|
+
export declare function knobOf(id: KnobId): Knob;
|
|
166
|
+
export declare function rowOf(id: KnobId): KnobRow;
|
|
167
|
+
/** The knobs this browser can use. */
|
|
168
|
+
export declare function availableKnobs(): Knob[];
|
|
169
|
+
/** The knobs of a row this browser can use. */
|
|
170
|
+
export declare function knobsOf(row: Row): Knob[];
|
|
171
|
+
export declare function offDefault(knob: Knob, state: DevknobsState): boolean;
|
|
172
|
+
/** The knob's part of a row summary, empty while it is at its default. */
|
|
173
|
+
export declare function brief(knob: Knob, state: DevknobsState, live: Live): string;
|
|
174
|
+
/** The actions this page has something for. */
|
|
175
|
+
export declare function availableActions(): Action[];
|
|
176
|
+
/** Whether the row has a place on this page: a row of knobs always, an action's where it has one. */
|
|
177
|
+
export declare function rowHere(row: Row): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Does any knob of the row differ from its default, or is its action's mode
|
|
180
|
+
* on, or does its action emulate something? A toggle with no way off is on as
|
|
181
|
+
* place is, not as a mode: it lists no row and reset all has nothing of it to
|
|
182
|
+
* put back.
|
|
183
|
+
*/
|
|
184
|
+
export declare function isActive(row: Row, state: DevknobsState): boolean;
|
|
185
|
+
/** What the row says it emulates, such as `390 · dpr 2`. Empty while it emulates nothing. */
|
|
186
|
+
export declare function summary(row: Row, state: DevknobsState, live: Live): string;
|
|
187
|
+
/** Patches as one, merged a level deep like the store merges them. */
|
|
188
|
+
export declare function combine(patches: readonly DevknobsStatePatch[]): DevknobsStatePatch;
|
|
189
|
+
/** The patch that puts every knob of the row back to its default. */
|
|
190
|
+
export declare function resetPatch(row: Row): DevknobsStatePatch;
|
|
191
|
+
/** The browse list: every knob the browser can use, by category. */
|
|
192
|
+
export declare function browse(): {
|
|
193
|
+
category: Category;
|
|
194
|
+
knobs: Knob[];
|
|
195
|
+
}[];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { CustomColor } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Where the colors the user added are kept, in `localStorage`, so a site has
|
|
4
|
+
* them across reloads and in new tabs of the origin. Reset all leaves them,
|
|
5
|
+
* and fresh mode starts with none and keeps none.
|
|
6
|
+
*/
|
|
7
|
+
export declare const COLORS_KEY = "devknobs:colors";
|
|
8
|
+
/** The version of the colors `COLORS_KEY` keeps. Bump it with a new shape, see stored.ts. */
|
|
9
|
+
export declare const COLORS_VERSION = 1;
|
|
10
|
+
/** The most colors of the user's own a knob lists. One more takes the oldest off. */
|
|
11
|
+
export declare const MOST_COLORS = 8;
|
|
12
|
+
/** A knob's list of colors of the user's own: the mat's, or grab's. */
|
|
13
|
+
export type ColorList = "mat" | "grab";
|
|
14
|
+
/** The colors the user added, each list oldest first. */
|
|
15
|
+
export type Colors = Readonly<Record<ColorList, readonly CustomColor[]>>;
|
|
16
|
+
/** Read the stored colors, keeping only the ones that read. */
|
|
17
|
+
export declare function readColors(json: string | null | undefined): Colors;
|
|
18
|
+
/** The colors as `COLORS_KEY` keeps them. */
|
|
19
|
+
export declare function colorsText(colors: Colors): string;
|
|
20
|
+
/**
|
|
21
|
+
* A list with a color added at its end. One it has stays where it is, and one
|
|
22
|
+
* past the most takes the oldest off.
|
|
23
|
+
*/
|
|
24
|
+
export declare function addColor(list: readonly CustomColor[], color: CustomColor): CustomColor[];
|
|
25
|
+
/** A list without a color. */
|
|
26
|
+
export declare function dropColor(list: readonly CustomColor[], color: CustomColor): CustomColor[];
|
|
27
|
+
/** What a color typed or picked comes to: the value the knob takes, and the list from there. */
|
|
28
|
+
export interface Picked {
|
|
29
|
+
value: string;
|
|
30
|
+
list: CustomColor[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Take a color typed or picked for a knob with `options` and `list`. One the
|
|
34
|
+
* same as an option's color picks that option, and one the list has picks
|
|
35
|
+
* that one, so no color stands twice. A new one joins the list and is picked.
|
|
36
|
+
* Null for what does not read as a color.
|
|
37
|
+
*/
|
|
38
|
+
export declare function pickColor(text: string, options: readonly {
|
|
39
|
+
value: string;
|
|
40
|
+
color?: CustomColor;
|
|
41
|
+
}[], list: readonly CustomColor[]): Picked | null;
|
|
42
|
+
/** The colors the user added, in step with the ones added or taken off, here or in another tab. */
|
|
43
|
+
export interface LiveColors {
|
|
44
|
+
get(): Colors;
|
|
45
|
+
/** Put a list in place of the one kept. */
|
|
46
|
+
set(list: ColorList, colors: readonly CustomColor[]): void;
|
|
47
|
+
/** Hear the colors change. Returns the way to stop. */
|
|
48
|
+
subscribe(listener: () => void): () => void;
|
|
49
|
+
destroy(): void;
|
|
50
|
+
}
|
|
51
|
+
export declare function createColors(): LiveColors;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ColumnEdge } from "../engine/dock";
|
|
2
|
+
import type { SideValue } from "../types";
|
|
3
|
+
/** What is asked of the wrapper: the transitions on their way on it. */
|
|
4
|
+
interface Glider {
|
|
5
|
+
getAnimations(): readonly object[];
|
|
6
|
+
}
|
|
7
|
+
/** And of the panel: where its box shows as well. */
|
|
8
|
+
interface Box extends Glider {
|
|
9
|
+
getBoundingClientRect(): {
|
|
10
|
+
left: number;
|
|
11
|
+
right: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/** Is a floating wrapper on its way out, away or across, as the stylesheet slides and glides it? */
|
|
15
|
+
export declare function wrapSliding(wrap: Glider): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* How much of its side of a window `view` wide the column covers now, and
|
|
18
|
+
* whether it is still on its way. The box is read first, which starts a
|
|
19
|
+
* transition that was only asked for.
|
|
20
|
+
*/
|
|
21
|
+
export declare function readColumn(wrap: Glider, panel: Box, side: SideValue, view: number): ColumnEdge;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DevknobsState } from "../types";
|
|
2
|
+
import type { Knob } from "./catalog";
|
|
3
|
+
export declare const DEVICE: Knob;
|
|
4
|
+
/** Does the device in use have a mock to draw? */
|
|
5
|
+
export declare function hasMock(state: DevknobsState): boolean;
|
|
6
|
+
export declare const MOCK: Knob;
|
|
7
|
+
export declare const TOUCH_POINTER: Knob;
|
|
8
|
+
export declare const BROWSER: Knob;
|
|
9
|
+
export declare const BARS: Knob;
|
|
10
|
+
export declare const EDGE_TO_EDGE: Knob;
|
|
11
|
+
export declare const WIDTH: Knob;
|
|
12
|
+
export declare const DPR: Knob;
|
|
13
|
+
export declare const ZOOM: Knob;
|
|
14
|
+
export declare const FRAME: Knob;
|
|
15
|
+
export declare const MAT: Knob;
|
|
16
|
+
export declare const VISION: Knob;
|
|
17
|
+
export declare const UA: Knob;
|
|
18
|
+
export declare const OVERFLOW: Knob;
|
|
19
|
+
export declare const OUTLINES: Knob;
|
|
20
|
+
export declare const GRAB_COLOR: Knob;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { SideValue } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* A pinned panel's way out and away, and its handle's, as one sequence. The
|
|
4
|
+
* column slides by itself: closing, it goes all the way off its edge first,
|
|
5
|
+
* and only then the handle comes in from that edge. Opening, the column comes
|
|
6
|
+
* out at once and the handle goes off the edge as it does.
|
|
7
|
+
*
|
|
8
|
+
* No strip shows between the page and the column at any frame, by how it is
|
|
9
|
+
* made: the column is drawn here, a frame at a time, and the page's frame
|
|
10
|
+
* asks in that same frame where it was drawn, so the frame's edge is the
|
|
11
|
+
* column's drawn edge. The handle is never part of the column: it lies over
|
|
12
|
+
* the page, at the window's edge, and takes no room from it.
|
|
13
|
+
*
|
|
14
|
+
* A change on the way goes on from what shows: the column turns round where
|
|
15
|
+
* it is, a handle that waits its turn stays where it got to, and one frame
|
|
16
|
+
* asked for is all that ever waits. A floating panel has none of this: its
|
|
17
|
+
* handle rides its edge, as the stylesheet slides the two.
|
|
18
|
+
*/
|
|
19
|
+
/** How long the column's whole slide takes, and the handle's, in ms, as a floating panel's. */
|
|
20
|
+
export declare const DOCK_SLIDE = 150;
|
|
21
|
+
/** What shows of a pinned panel: how far its column is out and its handle in, each 0 to 1. */
|
|
22
|
+
export interface Shown {
|
|
23
|
+
column: number;
|
|
24
|
+
handle: number;
|
|
25
|
+
}
|
|
26
|
+
/** Where the sequence goes: the panel out, or away, with its handle in where one shows. */
|
|
27
|
+
export interface Aim {
|
|
28
|
+
open: boolean;
|
|
29
|
+
handle: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** What shows once the sequence for `aim` is over. */
|
|
32
|
+
export declare function restOf(aim: Aim): Shown;
|
|
33
|
+
export interface Sequence {
|
|
34
|
+
/**
|
|
35
|
+
* Go to `aim` from what shows at `time`. `still` lands there at once, as
|
|
36
|
+
* under reduced motion.
|
|
37
|
+
*/
|
|
38
|
+
go(aim: Aim, time: number, still: boolean): void;
|
|
39
|
+
/** What shows at `time`, the same however often one frame asks. */
|
|
40
|
+
at(time: number): Shown;
|
|
41
|
+
/** Is the column on its way? */
|
|
42
|
+
moving(): boolean;
|
|
43
|
+
/** Is all of it where it goes? */
|
|
44
|
+
resting(): boolean;
|
|
45
|
+
/** Does the handle wait for the column, or come in after it? */
|
|
46
|
+
coming(): boolean;
|
|
47
|
+
}
|
|
48
|
+
/** The sequence of a panel that starts at rest at `first`. */
|
|
49
|
+
export declare function createSequence(first: Aim): Sequence;
|
|
50
|
+
/** The panel as the sequence is aimed: pinned or not, on which side, out or away, its handle shown or not. */
|
|
51
|
+
export interface SlideAim extends Aim {
|
|
52
|
+
docked: boolean;
|
|
53
|
+
side: SideValue;
|
|
54
|
+
}
|
|
55
|
+
/** What is asked of the wrapper: its attributes, and the variables on its style. */
|
|
56
|
+
interface Marked {
|
|
57
|
+
dataset: Record<string, string | undefined>;
|
|
58
|
+
style: {
|
|
59
|
+
setProperty(name: string, value: string): void;
|
|
60
|
+
removeProperty(name: string): unknown;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** What the sequence needs from the panel, and from the window. */
|
|
64
|
+
export interface SlideContext {
|
|
65
|
+
/** The wrapper, which says in its attributes what the stylesheet draws. */
|
|
66
|
+
wrap: Marked;
|
|
67
|
+
/** The panel, for the width its column slides by. */
|
|
68
|
+
panel: {
|
|
69
|
+
offsetWidth: number;
|
|
70
|
+
};
|
|
71
|
+
/** The time now, in ms, on the clock the frames come by. */
|
|
72
|
+
clock(): number;
|
|
73
|
+
/** Does nothing move, as under reduced motion? */
|
|
74
|
+
still(): boolean;
|
|
75
|
+
/** Ask for the next frame, and drop one asked for. */
|
|
76
|
+
frame(run: (time: number) => void): number;
|
|
77
|
+
drop(id: number): void;
|
|
78
|
+
}
|
|
79
|
+
export interface DockSlide {
|
|
80
|
+
/** Go where the panel is now. A floating panel is left to the stylesheet. */
|
|
81
|
+
aim(to: SlideAim): void;
|
|
82
|
+
/**
|
|
83
|
+
* Draw what shows in the frame of `time`, and say whether the column is on
|
|
84
|
+
* its way. The page's frame asks here before it reads the column.
|
|
85
|
+
*/
|
|
86
|
+
draw(time: number): boolean;
|
|
87
|
+
/** Is all of a pinned panel where it goes, its handle included? A floating one always is. */
|
|
88
|
+
resting(): boolean;
|
|
89
|
+
/** Drop the frame asked for and leave the wrapper as a floating panel's. */
|
|
90
|
+
destroy(): void;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Run the sequence on the wrapper. `data-column` says the column is `out`,
|
|
94
|
+
* `away` or `sliding`, off its edge by `--column-away` in whole px, so the
|
|
95
|
+
* page's edge meets it. `data-handle-at` says the handle is at the `edge` or
|
|
96
|
+
* `sliding`, off it by `--handle-away` of its width, and is not there while no
|
|
97
|
+
* handle shows.
|
|
98
|
+
*/
|
|
99
|
+
export declare function createDockSlide(context: SlideContext): DockSlide;
|
|
100
|
+
export {};
|
package/dist/ui/dom.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The small pieces the panel's views are built from: nodes, buttons, fields
|
|
3
|
+
* and the row line they all share, and the marks and scrolls that keep them
|
|
4
|
+
* in step.
|
|
5
|
+
*/
|
|
6
|
+
export declare function el(tag: string, className: string, text?: string): HTMLElement;
|
|
7
|
+
export declare function button(className: string, label: string): HTMLButtonElement;
|
|
8
|
+
/**
|
|
9
|
+
* Where the lines of a view start. `rows` is on the knob rows' columns,
|
|
10
|
+
* whose grip stands over the icon and takes no room. `flush` is at the
|
|
11
|
+
* panel's inset, for a view of bars, lists and text. Both start at the inset. The stylesheet has one
|
|
12
|
+
* rule for each, which sets where a head, a row and every piece of the kit
|
|
13
|
+
* in the view start.
|
|
14
|
+
*/
|
|
15
|
+
export declare const LAYOUTS: readonly ["rows", "flush"];
|
|
16
|
+
export type Layout = (typeof LAYOUTS)[number];
|
|
17
|
+
/** Say which layout the lines under a node go by. */
|
|
18
|
+
export declare function lay(node: HTMLElement, layout: Layout): void;
|
|
19
|
+
/** What a row is built from. Every part but the main and the title may be left out. */
|
|
20
|
+
export interface RowParts {
|
|
21
|
+
/** The row's control: a button, or a plain box where the line itself does nothing. */
|
|
22
|
+
main: HTMLElement;
|
|
23
|
+
/** A control of its own over the icon, as a knob row's grip is. */
|
|
24
|
+
grip?: HTMLElement;
|
|
25
|
+
/** The icon before the title, where the row's content starts. */
|
|
26
|
+
glyph?: Element;
|
|
27
|
+
title: string;
|
|
28
|
+
/** What the main ends with, in order: the row's value, its key or a control. */
|
|
29
|
+
ends?: readonly HTMLElement[];
|
|
30
|
+
/** What stands after the main, in order: the row's x, or a head's actions. */
|
|
31
|
+
after?: readonly HTMLElement[];
|
|
32
|
+
}
|
|
33
|
+
/** A row as built: its box, and the node that holds its title. */
|
|
34
|
+
export interface RowBox {
|
|
35
|
+
box: HTMLElement;
|
|
36
|
+
label: HTMLElement;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A row: its line, which starts where the layout it is in says, then its
|
|
40
|
+
* icon, its title and what it ends with, and what stands after the main. The
|
|
41
|
+
* knob rows, the actions' rows, the settings and the head of a view are all
|
|
42
|
+
* built here and differ only by what is in their slots, so they line up and
|
|
43
|
+
* take the same styles.
|
|
44
|
+
*/
|
|
45
|
+
export declare function rowBox(parts: RowParts): RowBox;
|
|
46
|
+
/**
|
|
47
|
+
* A title over a run of rows, such as the settings' shortcuts: it starts
|
|
48
|
+
* where the rows' content does.
|
|
49
|
+
*/
|
|
50
|
+
export declare function rowsLabel(text: string): HTMLElement;
|
|
51
|
+
/**
|
|
52
|
+
* A small icon button a row ends with: a knob row's x, or an action in the
|
|
53
|
+
* head of a view. `className` names which, for the code that looks for it.
|
|
54
|
+
*/
|
|
55
|
+
export declare function rowButton(className: string, glyph: Element, label: string): HTMLButtonElement;
|
|
56
|
+
export declare function field(className: string, placeholder: string, label: string): HTMLInputElement;
|
|
57
|
+
export declare function numberField(placeholder: string, label?: string): HTMLInputElement;
|
|
58
|
+
/** Mark a control as on or off, for the eye and for assistive tech. */
|
|
59
|
+
export declare function mark(node: HTMLElement, on: boolean, attribute?: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* Scroll a box just enough to show a node in it, its top first where all of
|
|
62
|
+
* it does not fit. The box is the node's offset parent.
|
|
63
|
+
*/
|
|
64
|
+
export declare function reveal(node: HTMLElement, box: HTMLElement): void;
|
|
65
|
+
/** The first control in a box that the tab key stops at and that shows. */
|
|
66
|
+
export declare function firstControl(box: Element | null): HTMLElement | null;
|
|
67
|
+
/** Scroll a box to put a node in its middle. The box is the node's offset parent. */
|
|
68
|
+
export declare function center(node: HTMLElement, box: HTMLElement): void;
|