@vinena/knobs 0.0.0-stage → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +224 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/THIRD_PARTY_NOTICES.md +429 -0
- package/dist/bezels/duo-fold/fold-000.webp +0 -0
- package/dist/bezels/duo-fold/fold-001.webp +0 -0
- package/dist/bezels/duo-fold/fold-002.webp +0 -0
- package/dist/bezels/duo-fold/fold-003.webp +0 -0
- package/dist/bezels/duo-fold/fold-004.webp +0 -0
- package/dist/bezels/duo-fold/fold-005.webp +0 -0
- package/dist/bezels/duo-fold/fold-006.webp +0 -0
- package/dist/bezels/duo-fold/fold-007.webp +0 -0
- package/dist/bezels/duo-fold/fold-008.webp +0 -0
- package/dist/bezels/duo-fold/fold-009.webp +0 -0
- package/dist/bezels/duo-fold/fold-010.webp +0 -0
- package/dist/bezels/duo-fold/fold-011.webp +0 -0
- package/dist/bezels/duo-fold/fold-012.webp +0 -0
- package/dist/bezels/duo-fold/fold-013.webp +0 -0
- package/dist/bezels/duo-fold/fold-014.webp +0 -0
- package/dist/bezels/duo-fold/fold-015.webp +0 -0
- package/dist/bezels/duo-fold/fold-016.webp +0 -0
- package/dist/bezels/duo-fold/fold-017.webp +0 -0
- package/dist/bezels/duo-fold/fold-018.webp +0 -0
- package/dist/bezels/duo-fold/fold-019.webp +0 -0
- package/dist/bezels/duo-fold/fold-020.webp +0 -0
- package/dist/bezels/duo-fold/fold-021.webp +0 -0
- package/dist/bezels/duo-fold/fold-022.webp +0 -0
- package/dist/bezels/duo-fold/fold-023.webp +0 -0
- package/dist/bezels/duo-fold/fold-024.webp +0 -0
- package/dist/bezels/duo-fold/fold-025.webp +0 -0
- package/dist/bezels/duo-fold/fold-026.webp +0 -0
- package/dist/bezels/duo-fold/fold-027.webp +0 -0
- package/dist/bezels/duo-fold/fold-028.webp +0 -0
- package/dist/bezels/duo-fold/fold-029.webp +0 -0
- package/dist/bezels/duo-fold/fold-030.webp +0 -0
- package/dist/bezels/duo-fold/fold-031.webp +0 -0
- package/dist/bezels/duo-fold/fold-032.webp +0 -0
- package/dist/bezels/duo-fold/fold-033.webp +0 -0
- package/dist/bezels/duo-fold/fold-034.webp +0 -0
- package/dist/bezels/duo-fold/fold-035.webp +0 -0
- package/dist/bezels/duo-fold/fold-036.webp +0 -0
- package/dist/bezels/duo-fold/fold-037.webp +0 -0
- package/dist/bezels/duo-fold/fold-038.webp +0 -0
- package/dist/bezels/duo-fold/fold-039.webp +0 -0
- package/dist/bezels/duo-fold/fold-040.webp +0 -0
- package/dist/bezels/duo-fold/fold-041.webp +0 -0
- package/dist/bezels/duo-fold/fold-042.webp +0 -0
- package/dist/bezels/duo-fold/fold-043.webp +0 -0
- package/dist/bezels/duo-fold/fold-044.webp +0 -0
- package/dist/bezels/duo-fold/fold-045.webp +0 -0
- package/dist/bezels/duo-fold/fold-046.webp +0 -0
- package/dist/bezels/duo-fold/fold-047.webp +0 -0
- package/dist/bezels/duo-fold/fold-048.webp +0 -0
- package/dist/bezels/duo-fold/fold-049.webp +0 -0
- package/dist/bezels/duo-fold/fold-050.webp +0 -0
- package/dist/bezels/duo-fold/fold-051.webp +0 -0
- package/dist/bezels/duo-fold/fold-052.webp +0 -0
- package/dist/bezels/duo-fold/fold-053.webp +0 -0
- package/dist/bezels/duo-fold/fold-054.webp +0 -0
- package/dist/bezels/duo-fold/fold-055.webp +0 -0
- package/dist/bezels/duo-fold/fold-056.webp +0 -0
- package/dist/bezels/duo-fold/fold-057.webp +0 -0
- package/dist/bezels/duo-fold/fold-058.webp +0 -0
- package/dist/bezels/duo-fold/fold-059.webp +0 -0
- package/dist/bezels/duo-fold/fold-060.webp +0 -0
- package/dist/bezels/duo-fold/fold-061.webp +0 -0
- package/dist/bezels/duo-fold/fold-062.webp +0 -0
- package/dist/bezels/duo-fold/fold-063.webp +0 -0
- package/dist/bezels/duo-fold/fold-064.webp +0 -0
- package/dist/bezels/duo-fold/fold-065.webp +0 -0
- package/dist/bezels/duo-fold/fold-066.webp +0 -0
- package/dist/bezels/duo-fold/fold-067.webp +0 -0
- package/dist/bezels/duo-fold/fold-068.webp +0 -0
- package/dist/bezels/duo-fold/fold-069.webp +0 -0
- package/dist/bezels/duo-fold/fold-070.webp +0 -0
- package/dist/bezels/duo-fold/fold-071.webp +0 -0
- package/dist/bezels/duo-fold/fold-072.webp +0 -0
- package/dist/bezels/duo-fold/fold-073.webp +0 -0
- package/dist/bezels/duo-fold/fold-074.webp +0 -0
- package/dist/bezels/duo-fold/fold-075.webp +0 -0
- package/dist/bezels/duo-fold/fold-076.webp +0 -0
- package/dist/bezels/duo-fold/fold-077.webp +0 -0
- package/dist/bezels/duo-fold/fold-078.webp +0 -0
- package/dist/bezels/duo-fold/fold-079.webp +0 -0
- package/dist/bezels/duo-fold/fold-080.webp +0 -0
- package/dist/bezels/duo-fold/fold-081.webp +0 -0
- package/dist/bezels/duo-fold/fold-082.webp +0 -0
- package/dist/bezels/duo-fold/fold-083.webp +0 -0
- package/dist/bezels/duo-fold/fold-084.webp +0 -0
- package/dist/bezels/duo-fold/fold-085.webp +0 -0
- package/dist/bezels/duo-fold/fold-086.webp +0 -0
- package/dist/bezels/duo-fold/fold-087.webp +0 -0
- package/dist/bezels/duo-fold/fold-088.webp +0 -0
- package/dist/bezels/duo-fold/fold-089.webp +0 -0
- package/dist/bezels/duo-fold/fold-090.webp +0 -0
- package/dist/bezels/duo-fold/fold-091.webp +0 -0
- package/dist/bezels/duo-fold/fold-092.webp +0 -0
- package/dist/bezels/duo-fold/fold-093.webp +0 -0
- package/dist/bezels/duo-fold/fold-094.webp +0 -0
- package/dist/bezels/duo-fold/fold-095.webp +0 -0
- package/dist/bezels/duo-fold/fold-096.webp +0 -0
- package/dist/bezels/duo-fold/fold-097.webp +0 -0
- package/dist/bezels/duo-fold/fold-098.webp +0 -0
- package/dist/bezels/duo-fold/fold-099.webp +0 -0
- package/dist/bezels/duo-fold/fold-100.webp +0 -0
- package/dist/bezels/duo-fold/fold-101.webp +0 -0
- package/dist/bezels/duo-fold/fold-102.webp +0 -0
- package/dist/bezels/duo-fold/fold-103.webp +0 -0
- package/dist/bezels/duo-fold/fold-104.webp +0 -0
- package/dist/bezels/duo-fold/fold-105.webp +0 -0
- package/dist/bezels/duo-fold/fold-106.webp +0 -0
- package/dist/bezels/duo-fold/fold-107.webp +0 -0
- package/dist/bezels/duo-fold/fold-108.webp +0 -0
- package/dist/bezels/duo-fold/fold-109.webp +0 -0
- package/dist/bezels/duo-fold/fold-110.webp +0 -0
- package/dist/bezels/duo-fold/fold-111.webp +0 -0
- package/dist/bezels/duo-fold/fold-112.webp +0 -0
- package/dist/bezels/duo-fold/fold-113.webp +0 -0
- package/dist/bezels/duo-fold/fold-114.webp +0 -0
- package/dist/bezels/duo-fold/fold-115.webp +0 -0
- package/dist/bezels/duo-fold/fold-116.webp +0 -0
- package/dist/bezels/duo-fold/fold-117.webp +0 -0
- package/dist/bezels/duo-fold/fold-118.webp +0 -0
- package/dist/bezels/duo-fold/fold-119.webp +0 -0
- package/dist/bezels/duo-fold/fold-120.webp +0 -0
- package/dist/bezels/duo-fold/fold-121.webp +0 -0
- package/dist/bezels/duo-fold/fold-122.webp +0 -0
- package/dist/bezels/duo-fold/fold-123.webp +0 -0
- package/dist/bezels/duo-fold/fold-124.webp +0 -0
- package/dist/bezels/duo-fold/fold-125.webp +0 -0
- package/dist/bezels/duo-fold/fold-126.webp +0 -0
- package/dist/bezels/duo-fold/fold-127.webp +0 -0
- package/dist/bezels/duo-fold/fold-128.webp +0 -0
- package/dist/bezels/duo-fold/fold-129.webp +0 -0
- package/dist/bezels/duo-fold/fold-130.webp +0 -0
- package/dist/bezels/duo-fold/fold-131.webp +0 -0
- package/dist/bezels/duo-fold/fold-132.webp +0 -0
- package/dist/bezels/duo-fold/fold-133.webp +0 -0
- package/dist/bezels/duo-fold/fold-134.webp +0 -0
- package/dist/bezels/duo-fold/fold-135.webp +0 -0
- package/dist/bezels/duo-fold/fold-136.webp +0 -0
- package/dist/bezels/duo-fold/fold-137.webp +0 -0
- package/dist/bezels/duo-fold/fold-138.webp +0 -0
- package/dist/bezels/duo-fold/fold-139.webp +0 -0
- package/dist/bezels/duo-fold/fold-140.webp +0 -0
- package/dist/bezels/duo-fold/fold-141.webp +0 -0
- package/dist/bezels/duo-fold/fold-142.webp +0 -0
- package/dist/bezels/duo-fold/fold-143.webp +0 -0
- package/dist/bezels/duo-fold/fold-144.webp +0 -0
- package/dist/bezels/duo-fold/fold-145.webp +0 -0
- package/dist/bezels/duo-fold/fold-146.webp +0 -0
- package/dist/bezels/duo-fold/fold-147.webp +0 -0
- package/dist/bezels/duo-fold/fold-148.webp +0 -0
- package/dist/bezels/duo-fold/fold-149.webp +0 -0
- package/dist/bezels/duo-fold/fold-150.webp +0 -0
- package/dist/bezels/duo-fold/fold-151.webp +0 -0
- package/dist/bezels/duo-fold/fold-152.webp +0 -0
- package/dist/bezels/duo-fold/fold-153.webp +0 -0
- package/dist/bezels/duo-fold/fold-154.webp +0 -0
- package/dist/bezels/duo-fold/fold-155.webp +0 -0
- package/dist/bezels/duo-fold/fold-156.webp +0 -0
- package/dist/bezels/duo-fold/fold-157.webp +0 -0
- package/dist/bezels/duo-fold/fold-158.webp +0 -0
- package/dist/bezels/duo-fold/fold-159.webp +0 -0
- package/dist/bezels/duo-fold/fold-160.webp +0 -0
- package/dist/bezels/duo-fold/fold-161.webp +0 -0
- package/dist/bezels/duo-fold/fold-162.webp +0 -0
- package/dist/bezels/duo-fold/fold-163.webp +0 -0
- package/dist/bezels/duo-fold/fold-164.webp +0 -0
- package/dist/bezels/duo-fold/fold-165.webp +0 -0
- package/dist/bezels/duo-fold/fold-166.webp +0 -0
- package/dist/bezels/duo-fold/fold-167.webp +0 -0
- package/dist/bezels/duo-fold/fold-168.webp +0 -0
- package/dist/bezels/duo-fold/fold-169.webp +0 -0
- package/dist/bezels/duo-fold/fold-170.webp +0 -0
- package/dist/bezels/duo-fold/fold-171.webp +0 -0
- package/dist/bezels/duo-fold/fold-172.webp +0 -0
- package/dist/bezels/duo-fold/fold-173.webp +0 -0
- package/dist/bezels/duo-fold/fold-174.webp +0 -0
- package/dist/bezels/duo-fold/fold-175.webp +0 -0
- package/dist/bezels/duo-fold/fold-176.webp +0 -0
- package/dist/bezels/duo-fold/fold-177.webp +0 -0
- package/dist/bezels/duo-fold/fold-178.webp +0 -0
- package/dist/bezels/duo-fold/fold-179.webp +0 -0
- package/dist/bezels/duo-fold/fold-180.webp +0 -0
- package/dist/bezels/duo-fold/still-000.webp +0 -0
- package/dist/bezels/duo-fold/still-161.webp +0 -0
- package/dist/bezels/duo-fold/still-162.webp +0 -0
- package/dist/bezels/duo-fold/still-163.webp +0 -0
- package/dist/bezels/duo-fold/still-164.webp +0 -0
- package/dist/bezels/duo-fold/still-165.webp +0 -0
- package/dist/bezels/duo-fold/still-166.webp +0 -0
- package/dist/bezels/duo-fold/still-167.webp +0 -0
- package/dist/bezels/duo-fold/still-168.webp +0 -0
- package/dist/bezels/duo-fold/still-169.webp +0 -0
- package/dist/bezels/duo-fold/still-170.webp +0 -0
- package/dist/bezels/duo-fold/still-171.webp +0 -0
- package/dist/bezels/duo-fold/still-172.webp +0 -0
- package/dist/bezels/duo-fold/still-173.webp +0 -0
- package/dist/bezels/duo-fold/still-174.webp +0 -0
- package/dist/bezels/duo-fold/still-175.webp +0 -0
- package/dist/bezels/duo-fold/still-176.webp +0 -0
- package/dist/bezels/duo-fold/still-177.webp +0 -0
- package/dist/bezels/duo-fold/still-178.webp +0 -0
- package/dist/bezels/duo-fold/still-179.webp +0 -0
- package/dist/bezels/duo-fold/still-180.webp +0 -0
- package/dist/bezels/iphone-16-plus.webp +0 -0
- package/dist/bezels/iphone-16-pro-max.webp +0 -0
- package/dist/bezels/iphone-16-pro.webp +0 -0
- package/dist/bezels/iphone-16.webp +0 -0
- package/dist/bezels/iphone-17-pro-max.webp +0 -0
- package/dist/bezels/iphone-17-pro.webp +0 -0
- package/dist/bezels/iphone-17.webp +0 -0
- package/dist/bezels/iphone-18-pro-max.webp +0 -0
- package/dist/bezels/iphone-18-pro.webp +0 -0
- package/dist/bezels/iphone-air.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-landscape.webp +0 -0
- package/dist/bezels/iphone-duo-inner-open-portrait.webp +0 -0
- package/dist/bezels/iphone-duo-outer-closed.webp +0 -0
- package/dist/bezels/iphone-se.webp +0 -0
- package/dist/bezels/pixel-10-pro-xl.webp +0 -0
- package/dist/bezels/pixel-10-pro.webp +0 -0
- package/dist/bezels/pixel-10.webp +0 -0
- package/dist/bezels/pixel-10a.webp +0 -0
- package/dist/bezels/pixel-9-pro-xl.webp +0 -0
- package/dist/bezels/pixel-9-pro.webp +0 -0
- package/dist/bezels/pixel-9.webp +0 -0
- package/dist/early.d.ts +1 -0
- package/dist/early.global.js +8 -0
- package/dist/elementsview-6g274ptr.js +2873 -0
- package/dist/elementsview-jnkbhzkj.js +2873 -0
- package/dist/elementsview-pkzp9kc6.js +2874 -0
- package/dist/elementsview-tf4qzmtw.js +2874 -0
- package/dist/engine/address.d.ts +31 -0
- package/dist/engine/animations.d.ts +13 -0
- package/dist/engine/barshot.d.ts +48 -0
- package/dist/engine/bezels.d.ts +140 -0
- package/dist/engine/bezelurls.d.ts +5 -0
- package/dist/engine/browserdraw.d.ts +57 -0
- package/dist/engine/browserkit.d.ts +59 -0
- package/dist/engine/browserui.d.ts +177 -0
- package/dist/engine/check.d.ts +8 -0
- package/dist/engine/chromedraw.d.ts +17 -0
- package/dist/engine/clock.d.ts +91 -0
- package/dist/engine/color.d.ts +37 -0
- package/dist/engine/describe.d.ts +49 -0
- package/dist/engine/devices.d.ts +96 -0
- package/dist/engine/dock.d.ts +53 -0
- package/dist/engine/endroom.d.ts +21 -0
- package/dist/engine/fit.d.ts +75 -0
- package/dist/engine/fold.d.ts +562 -0
- package/dist/engine/foldframes.d.ts +98 -0
- package/dist/engine/foldgl.d.ts +151 -0
- package/dist/engine/foldhand.d.ts +23 -0
- package/dist/engine/foldlook.d.ts +49 -0
- package/dist/engine/foldpage.d.ts +167 -0
- package/dist/engine/foldrun.d.ts +98 -0
- package/dist/engine/frame.d.ts +142 -0
- package/dist/engine/frameglide.d.ts +71 -0
- package/dist/engine/framekit.d.ts +7 -0
- package/dist/engine/frames.d.ts +42 -0
- package/dist/engine/fresh.d.ts +59 -0
- package/dist/engine/geo.d.ts +58 -0
- package/dist/engine/header.d.ts +16 -0
- package/dist/engine/identity.d.ts +27 -0
- package/dist/engine/index.d.ts +58 -0
- package/dist/engine/intl.d.ts +23 -0
- package/dist/engine/locale.d.ts +86 -0
- package/dist/engine/mat.d.ts +64 -0
- package/dist/engine/matchmedia.d.ts +25 -0
- package/dist/engine/matcolors.d.ts +45 -0
- package/dist/engine/matsplash.d.ts +81 -0
- package/dist/engine/media.d.ts +55 -0
- package/dist/engine/mock.d.ts +65 -0
- package/dist/engine/mockdata.d.ts +42 -0
- package/dist/engine/mockdraw.d.ts +21 -0
- package/dist/engine/morph.d.ts +214 -0
- package/dist/engine/morphrun.d.ts +49 -0
- package/dist/engine/native.d.ts +129 -0
- package/dist/engine/network.d.ts +8 -0
- package/dist/engine/notice.d.ts +15 -0
- package/dist/engine/objectfit.d.ts +35 -0
- package/dist/engine/outlines.d.ts +2 -0
- package/dist/engine/overflow.d.ts +11 -0
- package/dist/engine/owninline.d.ts +16 -0
- package/dist/engine/pagefonts.d.ts +21 -0
- package/dist/engine/pageshot.d.ts +127 -0
- package/dist/engine/placeholder.d.ts +89 -0
- package/dist/engine/pseudo.d.ts +15 -0
- package/dist/engine/ready.d.ts +9 -0
- package/dist/engine/reload.d.ts +35 -0
- package/dist/engine/remount.d.ts +30 -0
- package/dist/engine/replay.d.ts +7 -0
- package/dist/engine/safaridraw.d.ts +22 -0
- package/dist/engine/scrollbars.d.ts +17 -0
- package/dist/engine/scrollkeep.d.ts +124 -0
- package/dist/engine/spacing.d.ts +2 -0
- package/dist/engine/speed.d.ts +11 -0
- package/dist/engine/store.d.ts +68 -0
- package/dist/engine/stored.d.ts +17 -0
- package/dist/engine/style.d.ts +27 -0
- package/dist/engine/system.d.ts +15 -0
- package/dist/engine/text.d.ts +53 -0
- package/dist/engine/time.d.ts +32 -0
- package/dist/engine/touch.d.ts +20 -0
- package/dist/engine/touchdot.d.ts +71 -0
- package/dist/engine/touchmark.d.ts +27 -0
- package/dist/engine/touchpointer.d.ts +113 -0
- package/dist/engine/tree.d.ts +9 -0
- package/dist/engine/turnrun.d.ts +74 -0
- package/dist/engine/ua.d.ts +55 -0
- package/dist/engine/underneath.d.ts +7 -0
- package/dist/engine/viewportcss.d.ts +7 -0
- package/dist/engine/vision.d.ts +3 -0
- package/dist/engine/width.d.ts +56 -0
- package/dist/engine/zoom.d.ts +33 -0
- package/dist/framekit-095qevka.js +8838 -0
- package/dist/framekit-3n7p79ht.js +8839 -0
- package/dist/framekit-g96t6nmq.js +8838 -0
- package/dist/framekit-q5aad770.js +8839 -0
- package/dist/global.d.ts +1 -0
- package/dist/grab/boxmodel.d.ts +109 -0
- package/dist/grab/boxtext.d.ts +17 -0
- package/dist/grab/card.d.ts +45 -0
- package/dist/grab/cardread.d.ts +22 -0
- package/dist/grab/cardview.d.ts +18 -0
- package/dist/grab/clipboard.d.ts +8 -0
- package/dist/grab/colors.d.ts +31 -0
- package/dist/grab/colorvalue.d.ts +40 -0
- package/dist/grab/context.d.ts +25 -0
- package/dist/grab/control.d.ts +37 -0
- package/dist/grab/copy.d.ts +7 -0
- package/dist/grab/dwell.d.ts +29 -0
- package/dist/grab/fiber.d.ts +17 -0
- package/dist/grab/fontused.d.ts +23 -0
- package/dist/grab/hit.d.ts +19 -0
- package/dist/grab/hook.d.ts +7 -0
- package/dist/grab/index.d.ts +9 -0
- package/dist/grab/inspect.d.ts +31 -0
- package/dist/grab/keys.d.ts +84 -0
- package/dist/grab/locate.d.ts +63 -0
- package/dist/grab/mode.d.ts +56 -0
- package/dist/grab/navigate.d.ts +21 -0
- package/dist/grab/outline.d.ts +16 -0
- package/dist/grab/overlay.d.ts +135 -0
- package/dist/grab/paint.d.ts +7 -0
- package/dist/grab/paths.d.ts +27 -0
- package/dist/grab/picks.d.ts +9 -0
- package/dist/grab/place.d.ts +25 -0
- package/dist/grab/preview.d.ts +12 -0
- package/dist/grab/selector.d.ts +15 -0
- package/dist/grab/source.d.ts +68 -0
- package/dist/grab/stack.d.ts +49 -0
- package/dist/grab/theme.d.ts +85 -0
- package/dist/grab/types.d.ts +52 -0
- package/dist/host.d.ts +7 -0
- package/dist/index-0casarhy.js +324 -0
- package/dist/index-2d6wvs8h.js +528 -0
- package/dist/index-33x9hxe3.js +4563 -0
- package/dist/index-5baxvd3v.js +4424 -0
- package/dist/index-5d6qzte3.js +357 -0
- package/dist/index-64rd634h.js +686 -0
- package/dist/index-78r0f8pw.js +27 -0
- package/dist/index-d0cjxjsm.js +21 -0
- package/dist/index-dvr4x91q.js +4800 -0
- package/dist/index-hw56t3zy.js +4800 -0
- package/dist/index-k015tb6c.js +357 -0
- package/dist/index-ke6v7919.js +4801 -0
- package/dist/index-kzsb9drs.js +4801 -0
- package/dist/index-peh33xjv.js +346 -0
- package/dist/index-qxye1j73.js +528 -0
- package/dist/index-z5ytnj01.js +4563 -0
- package/dist/index-ztnjefrh.js +23 -0
- package/dist/index-zvze25nf.js +686 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.global.js +2655 -0
- package/dist/index.js +9262 -0
- package/dist/instance.d.ts +29 -0
- package/dist/react-4kbj1t4h.js +687 -0
- package/dist/react-65tgdbs8.js +22 -0
- package/dist/react-71a9ypex.js +529 -0
- package/dist/react-adky72h9.js +29 -0
- package/dist/react-carf84xv.js +4420 -0
- package/dist/react-eygws6cx.js +358 -0
- package/dist/react-h9w04skh.js +25 -0
- package/dist/react-mv9y20jy.js +358 -0
- package/dist/react-pdvseef0.js +325 -0
- package/dist/react-qv0nykcv.js +4564 -0
- package/dist/react-sq9pkw4k.js +687 -0
- package/dist/react-vjm88w4t.js +4564 -0
- package/dist/react-xxfpfddf.js +347 -0
- package/dist/react-znfrjqk8.js +529 -0
- package/dist/react.d.ts +6 -0
- package/dist/react.js +9255 -0
- package/dist/requests/body.d.ts +44 -0
- package/dist/requests/eventsource.d.ts +14 -0
- package/dist/requests/fetch.d.ts +14 -0
- package/dist/requests/index.d.ts +35 -0
- package/dist/requests/patch.d.ts +17 -0
- package/dist/requests/quiet.d.ts +12 -0
- package/dist/requests/record.d.ts +40 -0
- package/dist/requests/resource.d.ts +28 -0
- package/dist/requests/shared.d.ts +34 -0
- package/dist/requests/stack.d.ts +7 -0
- package/dist/requests/store.d.ts +37 -0
- package/dist/requests/types.d.ts +140 -0
- package/dist/requests/xhr.d.ts +16 -0
- package/dist/storage/cache.d.ts +32 -0
- package/dist/storage/clear.d.ts +35 -0
- package/dist/storage/cookies.d.ts +71 -0
- package/dist/storage/format.d.ts +53 -0
- package/dist/storage/idb.d.ts +62 -0
- package/dist/storage/onload.d.ts +47 -0
- package/dist/storage/presets.d.ts +79 -0
- package/dist/storage/site.d.ts +51 -0
- package/dist/storage/web.d.ts +57 -0
- package/dist/storageview-j9d44f99.js +2729 -0
- package/dist/storageview-sb23henh.js +2729 -0
- package/dist/storageview-vdkbp6rt.js +2728 -0
- package/dist/storageview-vf8v8q8j.js +2728 -0
- package/dist/styles/cascade.d.ts +59 -0
- package/dist/styles/collect.d.ts +73 -0
- package/dist/styles/declarations.d.ts +30 -0
- package/dist/styles/index.d.ts +20 -0
- package/dist/styles/inherited.d.ts +5 -0
- package/dist/styles/match.d.ts +41 -0
- package/dist/styles/selector.d.ts +36 -0
- package/dist/styles/tree.d.ts +14 -0
- package/dist/styles/types.d.ts +117 -0
- package/dist/styles/varrefs.d.ts +35 -0
- package/dist/types.d.ts +221 -0
- package/dist/ui/actions.d.ts +26 -0
- package/dist/ui/bindings.d.ts +89 -0
- package/dist/ui/boxdiagram.d.ts +50 -0
- package/dist/ui/catalog.d.ts +195 -0
- package/dist/ui/colors.d.ts +51 -0
- package/dist/ui/column.d.ts +22 -0
- package/dist/ui/copytext.d.ts +6 -0
- package/dist/ui/deviceknobs.d.ts +20 -0
- package/dist/ui/dockslide.d.ts +100 -0
- package/dist/ui/dom.d.ts +68 -0
- package/dist/ui/domtree.d.ts +143 -0
- package/dist/ui/drag.d.ts +34 -0
- package/dist/ui/editors.d.ts +30 -0
- package/dist/ui/elementsview.d.ts +32 -0
- package/dist/ui/foldslider.d.ts +48 -0
- package/dist/ui/footer.d.ts +51 -0
- package/dist/ui/hold.d.ts +20 -0
- package/dist/ui/icons.d.ts +145 -0
- package/dist/ui/inspector.d.ts +59 -0
- package/dist/ui/keys.d.ts +180 -0
- package/dist/ui/kit.d.ts +336 -0
- package/dist/ui/knobs.d.ts +41 -0
- package/dist/ui/list.d.ts +68 -0
- package/dist/ui/palette.d.ts +59 -0
- package/dist/ui/pane.d.ts +151 -0
- package/dist/ui/panel.d.ts +56 -0
- package/dist/ui/pin.d.ts +28 -0
- package/dist/ui/place.d.ts +136 -0
- package/dist/ui/prefs.d.ts +53 -0
- package/dist/ui/radio.d.ts +37 -0
- package/dist/ui/requestdetail.d.ts +56 -0
- package/dist/ui/requestformat.d.ts +142 -0
- package/dist/ui/requestparts.d.ts +312 -0
- package/dist/ui/requests.d.ts +48 -0
- package/dist/ui/rows.d.ts +72 -0
- package/dist/ui/search.d.ts +29 -0
- package/dist/ui/settings.d.ts +69 -0
- package/dist/ui/size.d.ts +105 -0
- package/dist/ui/slide.d.ts +46 -0
- package/dist/ui/stage.d.ts +24 -0
- package/dist/ui/storageaction.d.ts +22 -0
- package/dist/ui/storagecookies.d.ts +5 -0
- package/dist/ui/storagedeep.d.ts +18 -0
- package/dist/ui/storageparts.d.ts +131 -0
- package/dist/ui/storagepresets.d.ts +19 -0
- package/dist/ui/storageview.d.ts +45 -0
- package/dist/ui/storageweb.d.ts +11 -0
- package/dist/ui/styles.d.ts +1 -0
- package/dist/ui/stylesapplied.d.ts +46 -0
- package/dist/ui/stylesformat.d.ts +78 -0
- package/dist/ui/stylesview.d.ts +118 -0
- package/dist/ui/swatches.d.ts +26 -0
- package/dist/ui/syntax.d.ts +34 -0
- package/dist/ui/tooltip.d.ts +64 -0
- package/package.json +60 -4
- package/skills/devknobs/SKILL.md +214 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FrameRefusal } from "./native";
|
|
2
|
+
/**
|
|
3
|
+
* Over the frame when the page is out of reach: `X-Frame-Options` or a
|
|
4
|
+
* `frame-ancestors` policy left an error page there, or a link led away to
|
|
5
|
+
* another origin. Either way none of the knobs can follow it. Its button
|
|
6
|
+
* calls `close`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createNotice(close: () => void): HTMLElement;
|
|
9
|
+
/**
|
|
10
|
+
* Say why under the notice, as a host told it, with a button for its details
|
|
11
|
+
* and one to find out more, which runs the host's `retry` and then `again`,
|
|
12
|
+
* at once where the host says so.
|
|
13
|
+
* Null takes it away.
|
|
14
|
+
*/
|
|
15
|
+
export declare function explain(box: HTMLElement, refusal: FrameRefusal | null, again: () => void): void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Rect } from "./mock";
|
|
2
|
+
/**
|
|
3
|
+
* Where a picture, video or drawing lies in its element's box, as css
|
|
4
|
+
* `object-fit` and `object-position` have it, for drawing one by hand: a
|
|
5
|
+
* canvas stretches what it draws to the box it is given, so the part of the
|
|
6
|
+
* picture that shows and the part of the box it shows in are worked out here.
|
|
7
|
+
*/
|
|
8
|
+
/** A place along an axis: a share of the room left over, and px on top of it. */
|
|
9
|
+
export interface Offset {
|
|
10
|
+
share: number;
|
|
11
|
+
px: number;
|
|
12
|
+
}
|
|
13
|
+
/** The part of a picture that shows, in its own px, and where in the box it shows, in the box's. */
|
|
14
|
+
export interface Placed {
|
|
15
|
+
from: Rect;
|
|
16
|
+
to: Rect;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An `object-position` as an offset across and one down. It is read as it is
|
|
20
|
+
* written or as it computes: one to four words, lengths, percentages, the
|
|
21
|
+
* edges by name with or without an offset from them, and `calc()`. What
|
|
22
|
+
* cannot be read is the middle, as the browser starts.
|
|
23
|
+
*/
|
|
24
|
+
export declare function objectPosition(position: string): [Offset, Offset];
|
|
25
|
+
/**
|
|
26
|
+
* Where a picture `natural` px as made lies in `box` for an `object-fit` and
|
|
27
|
+
* an `object-position`: the part of it that shows, and the part of the box it
|
|
28
|
+
* shows in. `cover` and `none` cut the picture, `contain` and `scale-down`
|
|
29
|
+
* leave room around it, and `fill` stretches it over the box. Null where
|
|
30
|
+
* nothing of it shows.
|
|
31
|
+
*/
|
|
32
|
+
export declare function objectPlace(fit: string, position: string, natural: {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
}, box: Rect): Placed | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CountListener = (count: number) => void;
|
|
2
|
+
/** How many boxes stick out of the viewport right now. */
|
|
3
|
+
export declare function overflowCount(): number;
|
|
4
|
+
/** Hear the count every time it changes. Returns the way to stop. */
|
|
5
|
+
export declare function onCount(listener: CountListener): () => void;
|
|
6
|
+
/** Does a box on the way up clip or scroll sideways? Then the overflow stays inside it. */
|
|
7
|
+
export declare function clipped(element: Element): boolean;
|
|
8
|
+
/** What the console says about `count` boxes sticking out of a viewport `width` wide. */
|
|
9
|
+
export declare function warning(count: number, width: number, excess: number): string;
|
|
10
|
+
export declare function apply(value: boolean): void;
|
|
11
|
+
export declare function reset(): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The inline declarations devknobs itself writes on an element of the page,
|
|
3
|
+
* such as the root size of the text size knob and the `color-scheme` of the
|
|
4
|
+
* scheme knob. The styles view leaves them out, as they are not the page's:
|
|
5
|
+
*
|
|
6
|
+
* markInline(root, "font-size", "20px"); // after writing it
|
|
7
|
+
* markInline(root, "font-size", null); // after taking it back
|
|
8
|
+
* ownInline(root, "font-size"); // "20px", or null
|
|
9
|
+
*
|
|
10
|
+
* The note is kept on the element under a symbol every window on the origin
|
|
11
|
+
* shares, so the page above reads what the copy in the device frame wrote.
|
|
12
|
+
*/
|
|
13
|
+
/** Note the value devknobs wrote for a property of an element's style, or with null that it is gone. */
|
|
14
|
+
export declare function markInline(element: object, property: string, value: string | null): void;
|
|
15
|
+
/** The value devknobs wrote for a property of an element's style, or null where it wrote none. */
|
|
16
|
+
export declare function ownInline(element: object, property: string): string | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What tells a font face from the others of its family, read the same from
|
|
3
|
+
* its rule and from the face the page has loaded: its family without quotes,
|
|
4
|
+
* its weight and its style in numbers and lower case, and its range of
|
|
5
|
+
* characters without leading zeros. Each left out is as the browser has it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function faceKey(family: string, weight: string, style: string, range: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* What writes a rule of `doc` out for a copy of the page: as it is, but a
|
|
10
|
+
* `@font-face` the page has loaded a face from with its font as data, where
|
|
11
|
+
* that is kept, on its own or in a rule that holds it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function embedFonts(doc: Document): (rule: CSSRule) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch the fonts of `doc` ahead of a fold, and those it loads later as they
|
|
16
|
+
* come. Asked again for the same page, it does nothing, so it costs nothing
|
|
17
|
+
* each time the frame is drawn.
|
|
18
|
+
*/
|
|
19
|
+
export declare function warmFonts(doc: Document): void;
|
|
20
|
+
/** Let go of the fonts kept, as the frame goes. */
|
|
21
|
+
export declare function forgetFonts(): void;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/** A picture, video or drawing of the page that can be drawn now, and its size as made, in its own px. */
|
|
2
|
+
interface Media {
|
|
3
|
+
source: CanvasImageSource;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Draw one of the page's pictures where its element shows it, `rect`, as its
|
|
9
|
+
* `style` fits it in: inside the border and padding, cut and placed as
|
|
10
|
+
* `object-fit` and `object-position` have it, within the element's round
|
|
11
|
+
* corners. A canvas stretches a picture over the box it is given, so one
|
|
12
|
+
* drawn into the element's box whole is squeezed wherever the page cuts it
|
|
13
|
+
* to cover the box, or leaves room around it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function drawMedia(pen: CanvasRenderingContext2D, media: Media, rect: DOMRect, style: CSSStyleDeclaration): void;
|
|
16
|
+
/**
|
|
17
|
+
* What the page's pictures show now, which no change to the page tells of: a
|
|
18
|
+
* picture another source was picked for, or one that has loaded since, each
|
|
19
|
+
* by its address and its size as made. Null where the page has a video or a
|
|
20
|
+
* drawing, which may show something else any frame.
|
|
21
|
+
*/
|
|
22
|
+
export declare function picturesKey(doc: Document): string | null;
|
|
23
|
+
/** All a rough picture of a page depends on that the page changing does not tell of. */
|
|
24
|
+
export interface ShotAt {
|
|
25
|
+
/** The screen it is of, in css px, the color under it, and the knobs that lay the page out on it. */
|
|
26
|
+
size: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
color: string;
|
|
31
|
+
layout: string;
|
|
32
|
+
/** Where the frame sits in the screen and how wide it is there, in the screen's css px, however large the device is drawn. */
|
|
33
|
+
frame: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
38
|
+
/** The page's viewport and how far it is scrolled, in its css px. */
|
|
39
|
+
view: {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
};
|
|
43
|
+
scroll: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
/** How many device px a css px of the page takes, the root's text size, and what the page's pictures show. */
|
|
48
|
+
dpr: number;
|
|
49
|
+
text: string;
|
|
50
|
+
pictures: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* What a rough picture is kept by: one taken at any other is not this one. A
|
|
54
|
+
* foldable's two screens differ in size and in the knobs, so a picture of the
|
|
55
|
+
* folded one never stands in for the open one's, or the other way round.
|
|
56
|
+
*/
|
|
57
|
+
export declare function shotKey(at: ShotAt): string;
|
|
58
|
+
/**
|
|
59
|
+
* A picture of the page in `frame` as the screen `glass` shows it, `size` css
|
|
60
|
+
* px, on `color`, laid out for the knobs `layout` names, or null where its
|
|
61
|
+
* page is out of reach.
|
|
62
|
+
*/
|
|
63
|
+
export declare function shootPage(frame: HTMLIFrameElement, glass: HTMLElement, size: {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
}, color: string, layout?: string): HTMLCanvasElement | null;
|
|
67
|
+
/** Let go of the pictures kept, of the page watched and of its fonts, as the frame goes. */
|
|
68
|
+
export declare function forgetShots(): void;
|
|
69
|
+
/** A blurred picture of a screen, and how long it is along the hinge with its black, in the sharp one's px. */
|
|
70
|
+
export interface Blurred {
|
|
71
|
+
canvas: HTMLCanvasElement;
|
|
72
|
+
long: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A picture of a screen `width` css px wide blurred as wide as each of
|
|
76
|
+
* `widths`, the fold's blurs past the sharp one: made smaller a half at a
|
|
77
|
+
* time till a px of it is as wide as the blur, then doubled back up, so each
|
|
78
|
+
* step smooths what the last left, but only till `KEPT` px cross the blur.
|
|
79
|
+
* The wide blurs are so kept small, and the lot takes fewer px than the
|
|
80
|
+
* pictures it is made of. Drawn once, each is as cheap to show as the
|
|
81
|
+
* picture. Each lies on black past the picture's ends along the hinge, its
|
|
82
|
+
* top and bottom `across` and its sides otherwise, as far as `blurMargin`
|
|
83
|
+
* has it, so the blur spreads those ends into the dark past them, as
|
|
84
|
+
* jadon7/iphone-duo blurs the picture and black together.
|
|
85
|
+
*/
|
|
86
|
+
export declare function blurPictures(shot: HTMLCanvasElement, width: number, across: boolean, widths?: number[]): Blurred[];
|
|
87
|
+
/**
|
|
88
|
+
* How far the black under a picture blurred `coarse` of its px wide reaches
|
|
89
|
+
* past its ends, in its px: two of the smallest picture's px, past where the
|
|
90
|
+
* blur spreads it, so none of it is cut off.
|
|
91
|
+
*/
|
|
92
|
+
export declare function blurMargin(coarse: number): number;
|
|
93
|
+
/**
|
|
94
|
+
* Where a blurred picture `padded` px long lies along its screen, whose
|
|
95
|
+
* picture is `shot` px long, in percent of the screen: its black reaching as
|
|
96
|
+
* far past either end, so its picture lies on the sharp one.
|
|
97
|
+
*/
|
|
98
|
+
export declare function marginPlace(shot: number, padded: number): {
|
|
99
|
+
start: number;
|
|
100
|
+
size: number;
|
|
101
|
+
};
|
|
102
|
+
/** A picture of nothing, `width` by `height` px as made, as data: it holds a picture's place and draws none. */
|
|
103
|
+
export declare function blankUrl(width: number, height: number): string;
|
|
104
|
+
/** The page in `frame`, copied as it is now for `paintPage`, or null where it is out of reach. */
|
|
105
|
+
export declare function copyPage(frame: HTMLIFrameElement): Element | null;
|
|
106
|
+
/** `svg` as a data url, any lone half of a pair made U+FFFD first, as encoding one throws. */
|
|
107
|
+
export declare function svgUrl(svg: string): string;
|
|
108
|
+
/**
|
|
109
|
+
* The root font size of the page in `doc` as it computes now, as css for both
|
|
110
|
+
* roots of a drawing of its copy. A drawing's root is its `svg`, not the
|
|
111
|
+
* copy's `html`: every rem is taken against the `svg`, which knows nothing of
|
|
112
|
+
* the page's root size, set by the page or by the text size knob, and a root
|
|
113
|
+
* size in % or em would be taken against it too. So both get the size in px.
|
|
114
|
+
*/
|
|
115
|
+
export declare function rootSize(doc: Document, view: Window): string;
|
|
116
|
+
/**
|
|
117
|
+
* A picture of the page in `frame` as the browser draws it, from `copy`, laid
|
|
118
|
+
* out and scrolled as the frame is now, on a canvas of the screen `glass`
|
|
119
|
+
* shows it on, `size` css px, on `color`. Its pictures, videos and drawings
|
|
120
|
+
* go on as they are now, fitted in their boxes as the page fits them, as a
|
|
121
|
+
* drawing of the copy loads none. Null where the browser will not draw it.
|
|
122
|
+
*/
|
|
123
|
+
export declare function paintPage(frame: HTMLIFrameElement, glass: HTMLElement, size: {
|
|
124
|
+
width: number;
|
|
125
|
+
height: number;
|
|
126
|
+
}, color: string, copy: Element): Promise<HTMLCanvasElement | null>;
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { DevknobsState, MatColorValue } from "../types";
|
|
2
|
+
import type { Look } from "./browserkit";
|
|
3
|
+
import type { Docked } from "./dock";
|
|
4
|
+
/**
|
|
5
|
+
* What stands in for the frame from a reload's first paint until devknobs
|
|
6
|
+
* mounts: the mat, and where the last page kept one, the frame's drawing as
|
|
7
|
+
* it was, its screen blank. The early script puts it up, the frame takes it
|
|
8
|
+
* down once it draws the same.
|
|
9
|
+
*/
|
|
10
|
+
/** One under the panel host, so the panel stays on top of the frame. */
|
|
11
|
+
export declare const Z_INDEX = 2147483645;
|
|
12
|
+
/** Marks the early script's style and its stand-in. */
|
|
13
|
+
export declare const EARLY = "early";
|
|
14
|
+
/** Where the frame's drawing is kept for the next page, in `sessionStorage`. */
|
|
15
|
+
export declare const SNAPSHOT_KEY = "devknobs:snapshot";
|
|
16
|
+
/** The version of the snapshot `SNAPSHOT_KEY` keeps. Bump it with a new shape, see stored.ts. */
|
|
17
|
+
export declare const SNAPSHOT_VERSION = 1;
|
|
18
|
+
/** How long the stand-in waits for devknobs before it gives the page back, in ms. */
|
|
19
|
+
export declare const GIVE_UP = 3000;
|
|
20
|
+
/**
|
|
21
|
+
* The page under the frame hidden, as the frame hides it, and the bare mat
|
|
22
|
+
* over it in the stored color where nothing else stands in yet. It is a
|
|
23
|
+
* pseudo element, so a page that hydrates its document finds no node of ours
|
|
24
|
+
* there. With no mat, as under a pinned panel's frame, the page is only hidden.
|
|
25
|
+
*/
|
|
26
|
+
export declare function coverCss(mat: MatColorValue | null): string;
|
|
27
|
+
/** The knobs a drawing of the frame depends on, beside the window's size. */
|
|
28
|
+
export type Drawn = Pick<DevknobsState, "width" | "height" | "frame" | "dpr" | "vision" | "scheme" | "device" | "orientation" | "posture" | "mock" | "browser" | "bars" | "edgeToEdge" | "zoom" | "mat"> & {
|
|
29
|
+
panel: Docked;
|
|
30
|
+
};
|
|
31
|
+
/** The window's size and pixel ratio, which a drawing of the frame depends on too. */
|
|
32
|
+
export interface WindowSize {
|
|
33
|
+
innerWidth: number;
|
|
34
|
+
innerHeight: number;
|
|
35
|
+
devicePixelRatio: number;
|
|
36
|
+
}
|
|
37
|
+
/** The frame's drawing as the last page left it. */
|
|
38
|
+
export interface Snapshot {
|
|
39
|
+
/** What it was drawn for, from `snapshotKey`. */
|
|
40
|
+
key: string;
|
|
41
|
+
/** The shadow root's style and the letterbox's markup, its screen blank. */
|
|
42
|
+
css: string;
|
|
43
|
+
html: string;
|
|
44
|
+
/** What the browser's bars showed for the page. */
|
|
45
|
+
look: Look;
|
|
46
|
+
}
|
|
47
|
+
export declare function snapshotKey(knobs: Drawn, view: WindowSize): string;
|
|
48
|
+
/** The drawing the last page kept, if it was drawn for these knobs at this window's size. */
|
|
49
|
+
export declare function readSnapshot(knobs: Drawn, view: WindowSize): Snapshot | null;
|
|
50
|
+
export declare function writeSnapshot(snapshot: Snapshot): void;
|
|
51
|
+
/** What `keepDrawing` keeps of the frame. */
|
|
52
|
+
export interface Kept {
|
|
53
|
+
/** The mat around the frame, as it is drawn now. */
|
|
54
|
+
letterbox: HTMLElement;
|
|
55
|
+
/** The zoom control's pick, a property, which a copy leaves out. */
|
|
56
|
+
zoom: string;
|
|
57
|
+
/** What it was drawn for, from `snapshotKey`. */
|
|
58
|
+
key: string;
|
|
59
|
+
/** The shadow root's style. */
|
|
60
|
+
css: string;
|
|
61
|
+
look: Look;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Keep the frame's drawing for the next page, so a reload shows it from its
|
|
65
|
+
* first paint: the letterbox as it is, its screen blank in the page's color.
|
|
66
|
+
*/
|
|
67
|
+
export declare function keepDrawing({ letterbox, zoom, key, css, look }: Kept): void;
|
|
68
|
+
export declare function clearSnapshot(): void;
|
|
69
|
+
/** The stand-in the early script put up, if it is still there. */
|
|
70
|
+
export declare function earlyHost(): HTMLElement | null;
|
|
71
|
+
/** Take the stand-in and its style away, which gives the page back unless the frame covers it. */
|
|
72
|
+
export declare function dropEarly(): void;
|
|
73
|
+
/**
|
|
74
|
+
* The early script's stand-in goes over the frame, which draws the same
|
|
75
|
+
* under it, and goes once the device's picture is in, so the switch never
|
|
76
|
+
* shows. `pictureLoading` says whether it is still on its way.
|
|
77
|
+
*/
|
|
78
|
+
export declare function adoptEarly(pictureLoading: () => boolean): void;
|
|
79
|
+
/** Stop waiting for the device's picture, as the frame goes. */
|
|
80
|
+
export declare function stopAdopting(): void;
|
|
81
|
+
/**
|
|
82
|
+
* From the early script, before the first paint: when the stored knobs put
|
|
83
|
+
* the page in a frame, hide it under the mat, and put the frame's drawing the
|
|
84
|
+
* last page kept over that once there is a body for it. Devknobs takes both
|
|
85
|
+
* away when it draws the frame, and they go on their own after `GIVE_UP`.
|
|
86
|
+
* A frame up for a pinned panel alone has no mat and keeps no drawing: the
|
|
87
|
+
* page is hidden until the frame shows it at its width.
|
|
88
|
+
*/
|
|
89
|
+
export declare function showEarly(knobs: Drawn): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pseudo-localization, after the approach of tryggvigy/pseudo-localization
|
|
3
|
+
* (MIT): every letter accented, every string about a third longer and
|
|
4
|
+
* bracketed, so hardcoded, clipped or concatenated strings stand out before a
|
|
5
|
+
* real translation exists. "Settings" reads "[Ŝéţţîñĝš ···]".
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The pseudo form of a string. Whitespace around it stays outside the
|
|
9
|
+
* brackets, and a string without letters has nothing to translate.
|
|
10
|
+
*/
|
|
11
|
+
export declare function pseudoText(text: string): string;
|
|
12
|
+
export declare function apply(value: boolean): void;
|
|
13
|
+
/** Whether pseudo is waiting for the page to go idle before it swaps the text. */
|
|
14
|
+
export declare function pending(): boolean;
|
|
15
|
+
export declare function reset(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** How long a wait for the knobs to settle lasts at most, in ms. */
|
|
2
|
+
export declare const READY_WAIT = 10000;
|
|
3
|
+
/**
|
|
4
|
+
* `value` once `settled` says so, checked every animation frame. Past `wait`
|
|
5
|
+
* ms it rejects, on a timer, as a hidden tab runs no frames. A page on its way
|
|
6
|
+
* out never settles. With nothing `mounted`, at the call or at a later check,
|
|
7
|
+
* it rejects with `devknobs: not mounted`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function whenSettled<T>(settled: () => boolean, leaving: () => boolean, value: () => T, mounted: () => boolean, wait?: number): Promise<T>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DevknobsState } from "../types";
|
|
2
|
+
/** What the reloads need of the width knob's frame. */
|
|
3
|
+
export interface Frame {
|
|
4
|
+
/** The window inside the frame, while there is one. */
|
|
5
|
+
view(): Window | null;
|
|
6
|
+
/** The page in the frame, or null once it is on another origin, or an error page. */
|
|
7
|
+
page(): Document | null;
|
|
8
|
+
/** The frame's page has loaded, so what it reports can be trusted. */
|
|
9
|
+
loaded(): boolean;
|
|
10
|
+
/** The frame's page is about to reload for the knobs. */
|
|
11
|
+
reloading(): void;
|
|
12
|
+
}
|
|
13
|
+
/** Is a reload due or on its way, so the page in the frame now is not the one to show? */
|
|
14
|
+
export declare function pending(): boolean;
|
|
15
|
+
/** Follow the pages of `next`, the frame that just came up. */
|
|
16
|
+
export declare function track(next: Frame): void;
|
|
17
|
+
/** The frame goes: stop listening to its page, and forget what it loaded as. */
|
|
18
|
+
export declare function untrack(): void;
|
|
19
|
+
/**
|
|
20
|
+
* The frame's window has a new page, which has run nothing yet: patch what it
|
|
21
|
+
* reads at load, and watch for the one after.
|
|
22
|
+
*/
|
|
23
|
+
export declare function arrive(view: Window): void;
|
|
24
|
+
/** The frame's page on this origin loaded: a page the watch missed is listened to now. */
|
|
25
|
+
export declare function land(view: Window): void;
|
|
26
|
+
/** The frame's navigation api, where the browser has one. */
|
|
27
|
+
export declare function navigationOf(view: Window): EventTarget | null;
|
|
28
|
+
/**
|
|
29
|
+
* The frame's page is no longer on its way out: it took the navigation over
|
|
30
|
+
* in its own document, cancelled it, or the next page is in. A reload held
|
|
31
|
+
* off for it goes now, if it is still due.
|
|
32
|
+
*/
|
|
33
|
+
export declare function settle(): void;
|
|
34
|
+
/** Keep the knobs, and reload the frame if its page loaded as another device. */
|
|
35
|
+
export declare function knobs(state: DevknobsState): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts devknobs' own nodes back where a page's scripts take them out, such as
|
|
3
|
+
* a React root on `<body>` that clears it as it renders, or an app that
|
|
4
|
+
* replaces `<body>`.
|
|
5
|
+
*/
|
|
6
|
+
/** Removals put back at once within `BURST_SPAN`, before each waits longer. */
|
|
7
|
+
export declare const BURST = 10;
|
|
8
|
+
/** In ms. */
|
|
9
|
+
export declare const BURST_SPAN = 1000;
|
|
10
|
+
/** The longest a put back waits once the page keeps taking the node out, in ms. */
|
|
11
|
+
export declare const LONGEST_WAIT = 8000;
|
|
12
|
+
/** A page quiet this long, in ms, has its node put back at once again: longer than any wait. */
|
|
13
|
+
export declare const CALM: number;
|
|
14
|
+
/** How long to wait before putting a node back: 0 at once, longer each time while a page keeps at it. */
|
|
15
|
+
export interface Guard {
|
|
16
|
+
next(now: number): number;
|
|
17
|
+
}
|
|
18
|
+
export declare function createGuard(): Guard;
|
|
19
|
+
export interface KeepOptions {
|
|
20
|
+
/** Where the node goes back: `<body>`, or `<html>` before there is one. */
|
|
21
|
+
home?: () => Node;
|
|
22
|
+
/** Runs after each put back. */
|
|
23
|
+
restored?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Keep `node` in the page until the returned stop: taken out by the page, or
|
|
27
|
+
* left in a `<body>` the page replaced, it goes back at once, then less often
|
|
28
|
+
* while the page keeps at it. Stop before taking it out on purpose.
|
|
29
|
+
*/
|
|
30
|
+
export declare function keepMounted(node: Element, options?: KeepOptions): () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restart every animation on the page through the Web Animations API, in open
|
|
3
|
+
* shadow roots too. CSS animations that already finished are gone from that
|
|
4
|
+
* list, so those get the `animation: none` reset instead. devknobs' own and
|
|
5
|
+
* scroll-driven animations are left alone.
|
|
6
|
+
*/
|
|
7
|
+
export declare function replay(): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Actions, Look, Painted } from "./browserkit";
|
|
2
|
+
import { type Bars, type Shape } from "./browserui";
|
|
3
|
+
import type { Rect } from "./mock";
|
|
4
|
+
/**
|
|
5
|
+
* iOS 26 Safari: Liquid Glass capsules over the page's own color and the
|
|
6
|
+
* status bar. No home indicator: it goes once you switch apps, and here none
|
|
7
|
+
* are switched. The glyphs are drawn here from the common ideas
|
|
8
|
+
* (a chevron, a box with an arrow, an open book), not from Apple's symbols.
|
|
9
|
+
* Colors are sampled from the simulator.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SAFARI_CSS: string;
|
|
12
|
+
/** The minimized domain pill's box: as wide as its text and 19 px either side. */
|
|
13
|
+
export declare function pillBox(pill: Shape, host: string): Rect;
|
|
14
|
+
/**
|
|
15
|
+
* Safari's bars, drawn once for both states (the plus to menu morph of
|
|
16
|
+
* transitions.dev). The address capsule, Bottom's card or Top's address bar
|
|
17
|
+
* is one surface that becomes the minimized pill: its box and corners tween,
|
|
18
|
+
* the domain glides and scales from 17 to 13 px in it, and the page menu,
|
|
19
|
+
* reload and Bottom's buttons fade out as an icon swap. The capsules beside
|
|
20
|
+
* it fade and drift 10 px. The scroll edge moves on the same curve.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildSafari(full: Bars, mini: Bars, look: Look, actions: Actions): Painted;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A touch screen's scrollbars lie over the page and take no room, where a
|
|
3
|
+
* mouse's take a strip of the layout. So no scroller keeps one, the root
|
|
4
|
+
* included, and the page is as wide as the device, as in the devtools device
|
|
5
|
+
* toolbar. Scrolling goes on without them.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CSS = "*{scrollbar-width:none!important}::-webkit-scrollbar{display:none!important}";
|
|
8
|
+
export declare function apply(value: boolean): void;
|
|
9
|
+
/**
|
|
10
|
+
* Hide another window on this origin's scrollbars, from the page above its
|
|
11
|
+
* frame before the window's own scripts run, so its first layout is as wide
|
|
12
|
+
* as the device. The blank document a frame starts with gives way to the
|
|
13
|
+
* first page in the same window, and that page gets the sheet. A copy of
|
|
14
|
+
* devknobs there keeps the sheet or takes it away.
|
|
15
|
+
*/
|
|
16
|
+
export declare function equip(view: Window): void;
|
|
17
|
+
export declare function reset(): void;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scroll position, carried across a load devknobs asks for: a reload for
|
|
3
|
+
* the locale or the device, the frame's reload button, a frame a knob builds.
|
|
4
|
+
* A host that restores scroll itself only knows the history entry it left, and
|
|
5
|
+
* a frame built again is a new one, so its page starts at the top. Before such
|
|
6
|
+
* a load devknobs keeps where each document was, and the document that comes
|
|
7
|
+
* goes back there. A load of the visitor's finds nothing kept, in fresh mode
|
|
8
|
+
* too, where it starts the session over.
|
|
9
|
+
*/
|
|
10
|
+
/** Where the positions are kept for the next page, in `sessionStorage`. */
|
|
11
|
+
export declare const SCROLL_KEY = "devknobs:scroll";
|
|
12
|
+
/** The version of the record `SCROLL_KEY` keeps. Bump it with a change of shape, see stored.ts. */
|
|
13
|
+
export declare const SCROLL_VERSION = 1;
|
|
14
|
+
/** How long a load devknobs asked for has to bring its page, in ms. A later load is the visitor's. */
|
|
15
|
+
export declare const SCROLL_WINDOW = 10000;
|
|
16
|
+
/** How long past its load a page is held at its place, in ms, while the host may still move it. */
|
|
17
|
+
export declare const HOLD = 2000;
|
|
18
|
+
/** How long a page that never finishes loading is held, in ms. */
|
|
19
|
+
export declare const HOLD_CAP = 10000;
|
|
20
|
+
/** How many times the page is put back. A host that moves it more often than that wins. */
|
|
21
|
+
export declare const PUT_BUDGET = 20;
|
|
22
|
+
/** The window's own page, or the copy of it in the width knob's frame. */
|
|
23
|
+
export type Role = "page" | "frame";
|
|
24
|
+
export interface Point {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}
|
|
28
|
+
/** Where a document was scrolled to, and the path it was at. */
|
|
29
|
+
export interface Place extends Point {
|
|
30
|
+
path: string;
|
|
31
|
+
}
|
|
32
|
+
/** What is kept for the next load: when, and a place for each document that has one. */
|
|
33
|
+
export interface Kept {
|
|
34
|
+
at: number;
|
|
35
|
+
page?: Place;
|
|
36
|
+
frame?: Place;
|
|
37
|
+
}
|
|
38
|
+
/** Read a kept record, or null when it is missing, malformed or from a newer devknobs. */
|
|
39
|
+
export declare function parseKept(text: string | null): Kept | null;
|
|
40
|
+
/**
|
|
41
|
+
* The record once `role` is kept at `place`, or at nothing with null. A page
|
|
42
|
+
* at its top keeps nothing, as that is where a load leaves it anyway. The
|
|
43
|
+
* other document's place stays while it is still fresh. Null for nothing left
|
|
44
|
+
* to keep.
|
|
45
|
+
*/
|
|
46
|
+
export declare function keptWith(kept: Kept | null, role: Role, place: Place | null, now: number): Kept | null;
|
|
47
|
+
/**
|
|
48
|
+
* What a document that loads as `role` at `path` takes from the record: where
|
|
49
|
+
* to go back to, and what stays kept for the other document. Its own place is
|
|
50
|
+
* used once: it goes whether it is taken or the path is another. A stale
|
|
51
|
+
* record goes whole.
|
|
52
|
+
*/
|
|
53
|
+
export declare function take(kept: Kept | null, role: Role, path: string, now: number): {
|
|
54
|
+
place: Point | null;
|
|
55
|
+
rest: Kept | null;
|
|
56
|
+
};
|
|
57
|
+
/** A hold on a page: where it goes back to, and how it went so far. */
|
|
58
|
+
export interface Holding {
|
|
59
|
+
target: Point;
|
|
60
|
+
start: number;
|
|
61
|
+
/** When the document was first seen loaded, or null while it loads. */
|
|
62
|
+
loadedAt: number | null;
|
|
63
|
+
/** How many times the page was put back. */
|
|
64
|
+
puts: number;
|
|
65
|
+
}
|
|
66
|
+
/** What a hold sees of the page at one frame. */
|
|
67
|
+
export interface Seen extends Point {
|
|
68
|
+
/** How far the page scrolls each way. */
|
|
69
|
+
maxX: number;
|
|
70
|
+
maxY: number;
|
|
71
|
+
now: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* What a hold does at one frame. `put` scrolls the page to its place, once it
|
|
75
|
+
* is long enough to get there. `wait` leaves it: too short still, or already
|
|
76
|
+
* there, whoever put it there, and watched in case the host moves it as it
|
|
77
|
+
* mounts. Once the time is up, `last` puts a page that never got there as far
|
|
78
|
+
* as it goes, and `done` ends the hold.
|
|
79
|
+
*/
|
|
80
|
+
export declare function next(holding: Holding, seen: Seen): "put" | "wait" | "last" | "done";
|
|
81
|
+
/** What a hold needs of a window. */
|
|
82
|
+
export interface ScrollView {
|
|
83
|
+
scrollX: number;
|
|
84
|
+
scrollY: number;
|
|
85
|
+
document: {
|
|
86
|
+
readyState: string;
|
|
87
|
+
documentElement: {
|
|
88
|
+
scrollWidth: number;
|
|
89
|
+
scrollHeight: number;
|
|
90
|
+
clientWidth: number;
|
|
91
|
+
clientHeight: number;
|
|
92
|
+
} | null;
|
|
93
|
+
};
|
|
94
|
+
scrollTo(options: ScrollToOptions): void;
|
|
95
|
+
addEventListener(type: string, listener: () => void, options: boolean): void;
|
|
96
|
+
removeEventListener(type: string, listener: () => void, options: boolean): void;
|
|
97
|
+
requestAnimationFrame(callback: () => void): number;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Bring the page in `view` back to `target` and keep it there for a moment:
|
|
101
|
+
* the page may not be long enough yet, and a host that mounts later may send
|
|
102
|
+
* it to the top once more. Looked at every frame, and over at once when the
|
|
103
|
+
* visitor does anything.
|
|
104
|
+
*/
|
|
105
|
+
export declare function hold(view: ScrollView, target: Point, now?: () => number): void;
|
|
106
|
+
/** The page has a frame up, or with null has none, so a reload of the page keeps the frame's place too. */
|
|
107
|
+
export declare function follow(view: (() => Window | null) | null): void;
|
|
108
|
+
/**
|
|
109
|
+
* Devknobs is about to load `view` again as `role`: keep where it is. With no
|
|
110
|
+
* window, what was kept for that role goes.
|
|
111
|
+
*/
|
|
112
|
+
export declare function keep(view: Window | null, role: Role): void;
|
|
113
|
+
/**
|
|
114
|
+
* Devknobs is about to reload this window. The copy in the frame keeps its
|
|
115
|
+
* own place. The page keeps its own and, as its frame is built again after the
|
|
116
|
+
* reload, the frame's.
|
|
117
|
+
*/
|
|
118
|
+
export declare function keepOwn(): void;
|
|
119
|
+
/**
|
|
120
|
+
* The start of a document: take the place kept for it, if devknobs asked for
|
|
121
|
+
* this load, and go back there. The early script and the full script both ask,
|
|
122
|
+
* and the first one takes it.
|
|
123
|
+
*/
|
|
124
|
+
export declare function resume(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SpeedValue } from "../types";
|
|
2
|
+
/** The slowest and the fastest playback rate the knob takes. 0 pauses. */
|
|
3
|
+
export declare const SPEED_MIN = 0;
|
|
4
|
+
export declare const SPEED_MAX = 16;
|
|
5
|
+
/**
|
|
6
|
+
* Play every animation at `value` times its own rate, the way the DevTools
|
|
7
|
+
* Animations panel does. Scroll-driven animations keep following the scroll.
|
|
8
|
+
*/
|
|
9
|
+
export declare function apply(value: SpeedValue): void;
|
|
10
|
+
/** Back to normal speed: every rate the knob changed goes back to what it was. */
|
|
11
|
+
export declare function reset(): void;
|