@foldkit/devtools 0.169.0-canary.1f6776fa7ece → 0.169.0-canary.82ac2ec6c9b5
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/dist/overlay-styles.d.ts +1 -1
- package/dist/overlay-styles.js +1 -1
- package/dist/overlay.d.ts +10 -184
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +85 -85
- package/package.json +6 -6
package/dist/overlay-styles.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const overlayStyles = ":host {\n /* The host spans the viewport so it has real bounds to snapshot: it carries a\n `view-transition-name` (set in `overlay.ts`, see the note there) to stay\n out of an application's View Transitions, and a name on a zero-size element\n captures nothing. The box itself is inert; the panels inside opt back into\n hit-testing through `.fixed`. */\n position: fixed;\n inset: 0;\n pointer-events: none;\n z-index: 2147483647;\n\n --dt-bg: #1e1e2e;\n --dt-surface-selected: #282839;\n --dt-border: #45475a;\n --dt-text: #cdd6f4;\n --dt-text-muted: #9399b2;\n --dt-accent: #cba6f7;\n --dt-live: #a6e3a1;\n --dt-paused: #fab387;\n --dt-json-string: #a6e3a1;\n --dt-json-number: #89b4fa;\n --dt-json-boolean: #fab387;\n --dt-json-null: #9399b2;\n --dt-json-key: #89dceb;\n --dt-json-tag: #cba6f7;\n --dt-json-preview: #9399b2;\n --dt-json-arrow: #9399b2;\n --dt-tree-hover: #313244;\n --dt-diff-changed: #74c7ec;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\nbutton {\n font: inherit;\n color: inherit;\n}\nul {\n list-style: none;\n}\n\n/* The host is `pointer-events: none` so its viewport-spanning box cannot\n swallow clicks meant for the application, and everything the shadow root\n renders opts back in here. The boundary is the shadow root's children rather\n than any one panel class: content arrives by routes a class list does not\n cover, including the portal root `@foldkit/ui` prepends for anchored\n dropdowns, and a surface that misses the opt-in is silently unclickable.\n These wrappers are zero-height, so granting them hit-testing costs nothing;\n descendants that must stay transparent, like the listbox backdrop, set\n `pointer-events: none` on themselves. */\n:host > * {\n pointer-events: auto;\n}\n\n.fixed {\n position: fixed;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.flex {\n display: flex;\n}\n.contents {\n display: contents;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.inline-block {\n display: inline-block;\n}\n.gap-0\\.5 {\n gap: 2px;\n}\n.gap-1\\.5 {\n gap: 6px;\n}\n.gap-2 {\n gap: 8px;\n}\n.gap-3 {\n gap: 12px;\n}\n.gap-px {\n gap: 1px;\n}\n.px-1 {\n padding-left: 4px;\n padding-right: 4px;\n}\n.px-2 {\n padding-left: 8px;\n padding-right: 8px;\n}\n.px-2\\.5 {\n padding-left: 10px;\n padding-right: 10px;\n}\n.p-3 {\n padding: 12px;\n}\n.px-3 {\n padding-left: 12px;\n padding-right: 12px;\n}\n.py-0\\.5 {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n.pt-1 {\n padding-top: 4px;\n}\n.pl-1 {\n padding-left: 4px;\n}\n.py-1 {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.py-1\\.5 {\n padding-top: 6px;\n padding-bottom: 6px;\n}\n.py-2 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.py-px {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.w-1\\.5 {\n width: 6px;\n}\n.h-1\\.5 {\n height: 6px;\n}\n.w-3 {\n width: 12px;\n}\n.w-5 {\n width: 20px;\n}\n.h-5 {\n height: 20px;\n}\n.w-14 {\n width: 56px;\n}\n.h-14 {\n height: 56px;\n}\n.min-w-0 {\n min-width: 0;\n}\n.min-w-5 {\n min-width: 20px;\n}\n.min-h-0 {\n min-height: 0;\n}\n/* Badge positions \u2014 flush against side edge */\n.dt-pos-br {\n bottom: 16px;\n right: 0;\n border-radius: 6px 0 0 6px;\n}\n.dt-pos-bl {\n bottom: 16px;\n left: 0;\n border-radius: 0 6px 6px 0;\n}\n.dt-pos-tr {\n top: 16px;\n right: 0;\n border-radius: 6px 0 0 6px;\n}\n.dt-pos-tl {\n top: 16px;\n left: 0;\n border-radius: 0 6px 6px 0;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overscroll-none {\n overscroll-behavior: none;\n}\n\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rounded {\n border-radius: 4px;\n}\n.rounded-lg {\n border-radius: 8px;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.border {\n border-width: 1px;\n border-style: solid;\n border-color: var(--dt-border);\n}\n.border-b {\n border-bottom: 1px solid var(--dt-border);\n}\n.border-t {\n border-top: 1px solid var(--dt-border);\n}\n.border-r {\n border-right: 1px solid var(--dt-border);\n}\n.border-l {\n border-left: 1px solid var(--dt-border);\n}\n.border-none {\n border: none;\n}\n.selected {\n background-color: var(--dt-surface-selected);\n}\n.dt-row:hover:not(.selected) {\n background-color: var(--dt-tree-hover);\n}\n.dt-header-button:hover {\n color: var(--dt-text);\n}\n.dt-copy-control {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.dt-copy-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 6px;\n background: transparent;\n border: none;\n color: var(--dt-text-muted);\n cursor: pointer;\n border-radius: 4px;\n transition: color 100ms ease;\n}\n.dt-copy-button:hover {\n color: var(--dt-text);\n}\n.dt-copy-button[aria-disabled='true'] {\n cursor: default;\n}\n.dt-copy-button.dt-copy-success,\n.dt-copy-button.dt-copy-success:hover {\n color: var(--dt-live);\n}\n.dt-copy-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-copy-icon {\n width: 12px;\n height: 12px;\n}\n.dt-resume-button:hover {\n opacity: 0.7;\n}\n.dt-scroll-pill {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex-shrink: 0;\n padding: 4px 12px;\n background-color: var(--dt-surface-selected);\n border: none;\n border-bottom: 1px solid var(--dt-border);\n color: var(--dt-accent);\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n cursor: pointer;\n}\n.dt-scroll-pill-icon {\n width: 12px;\n height: 12px;\n}\n.dt-scroll-pill-text {\n margin-top: 1px;\n}\n.dt-scroll-pill:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-scroll-pill:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-filter-wrapper {\n position: relative;\n flex-shrink: 0;\n border-bottom: 1px solid var(--dt-border);\n}\n.dt-filter-button {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px 12px;\n background: transparent;\n border: none;\n color: var(--dt-text-muted);\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n cursor: pointer;\n text-align: left;\n}\n.dt-filter-button:hover {\n color: var(--dt-text);\n background-color: var(--dt-tree-hover);\n}\n.dt-filter-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-filter-button[data-open] {\n color: var(--dt-text);\n background-color: var(--dt-surface-selected);\n}\n.dt-filter-button[data-open]:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-filter-button[data-open] .json-arrow {\n transform: rotate(180deg);\n}\n.dt-filter-items {\n position: absolute;\n width: var(--button-width);\n background-color: var(--dt-bg);\n border-top: 1px solid var(--dt-border);\n border-bottom: 1px solid var(--dt-border);\n z-index: 100000;\n max-height: 200px;\n overflow-y: auto;\n outline: none;\n}\n.dt-filter-item {\n padding: 6px 12px;\n color: var(--dt-text-muted);\n cursor: pointer;\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n border-bottom: 1px solid var(--dt-border);\n}\n.dt-filter-item:last-child {\n border-bottom: none;\n}\n.dt-filter-item[data-active] {\n background-color: var(--dt-tree-hover);\n color: var(--dt-text);\n}\n.dt-filter-item[data-selected] {\n color: var(--dt-accent);\n}\n.dt-filter-check {\n width: 12px;\n height: 12px;\n visibility: hidden;\n}\n.dt-filter-item[data-selected] .dt-filter-check {\n visibility: visible;\n color: var(--dt-accent);\n}\n.dt-filter-backdrop {\n position: fixed;\n inset: 0;\n pointer-events: none;\n}\n.dt-settings-button {\n display: flex;\n align-items: center;\n justify-content: center;\n align-self: stretch;\n margin: -8px 0 -8px -12px;\n padding: 0 12px;\n background: transparent;\n border: none;\n border-right: 1px solid var(--dt-border);\n color: var(--dt-text-muted);\n cursor: pointer;\n flex-shrink: 0;\n}\n.dt-settings-button:hover {\n color: var(--dt-text);\n background-color: var(--dt-tree-hover);\n}\n.dt-settings-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-settings-button-active {\n color: var(--dt-accent);\n background-color: var(--dt-surface-selected);\n}\n.dt-settings-button-active:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-settings-icon {\n width: 14px;\n height: 14px;\n}\n.dt-settings-section-title {\n padding: 10px 12px 4px;\n color: var(--dt-text-muted);\n font-size: 10px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n}\n.dt-settings-row {\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 8px 12px;\n}\n.dt-settings-row-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dt-settings-row-label {\n color: var(--dt-text);\n font-size: 13px;\n cursor: pointer;\n}\n.dt-settings-row-description {\n color: var(--dt-text-muted);\n font-size: 10px;\n}\n.dt-switch {\n position: relative;\n width: 36px;\n height: 20px;\n border-radius: 9999px;\n background-color: var(--dt-border);\n cursor: pointer;\n flex-shrink: 0;\n transition:\n background-color 100ms ease,\n filter 100ms ease;\n}\n.dt-switch:hover {\n filter: brightness(1.2);\n}\n.dt-switch:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: 2px;\n}\n.dt-switch[data-checked] {\n background-color: var(--dt-accent);\n}\n.dt-switch-thumb {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 16px;\n height: 16px;\n border-radius: 9999px;\n background-color: var(--dt-text-muted);\n transition:\n transform 100ms ease,\n background-color 100ms ease;\n}\n.dt-switch[data-checked] .dt-switch-thumb {\n transform: translateX(16px);\n background-color: var(--dt-bg);\n}\n.dt-tab-button {\n position: relative;\n background: transparent;\n border: none;\n border-right: 1px solid var(--dt-border);\n outline: none;\n flex: 1;\n}\n.dt-tab-button:last-child {\n border-right: none;\n}\n.dt-tab-active {\n background-color: var(--dt-surface-selected);\n}\n.dt-tab-button:not(.dt-tab-active):hover {\n color: var(--dt-text);\n background-color: rgba(49, 50, 68, 0.3);\n}\n.font-sans {\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n sans-serif;\n}\n.font-mono {\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-xs {\n font-size: 12px;\n}\n.text-2xs {\n font-size: 10px;\n}\n.text-sm {\n font-size: 11px;\n}\n.text-base {\n font-size: 13px;\n}\n.text-md {\n font-size: 15px;\n}\n.text-lg {\n font-size: 20px;\n}\n.text-xl {\n font-size: 26px;\n}\n.italic {\n font-style: italic;\n}\n.text-right {\n text-align: right;\n}\n.tracking-wide {\n letter-spacing: 0.025em;\n}\n.tracking-wider {\n letter-spacing: 0.05em;\n}\n.leading-none {\n line-height: 1;\n}\n.leading-snug {\n line-height: 1.35;\n}\n.bg-dt-bg {\n background-color: var(--dt-bg);\n}\n.bg-dt-live {\n background-color: var(--dt-live);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.text-dt {\n color: var(--dt-text);\n}\n.text-dt-bg {\n color: var(--dt-bg);\n}\n.text-dt-muted {\n color: var(--dt-text-muted);\n}\n.text-dt-accent {\n color: var(--dt-accent);\n}\n.text-dt-live {\n color: var(--dt-live);\n}\n.text-dt-paused {\n color: var(--dt-paused);\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.outline-none {\n outline: none;\n}\n.transition-colors {\n transition-property: color, background-color, border-color;\n transition-duration: 100ms;\n transition-timing-function: ease;\n}\n\n/* Panel */\n.dt-panel {\n width: 360px;\n height: 480px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);\n z-index: 99998;\n}\n/* Panel positions */\n.dt-panel-br {\n bottom: 16px;\n right: 28px;\n}\n.dt-panel-bl {\n bottom: 16px;\n left: 28px;\n}\n.dt-panel-tr {\n top: 16px;\n right: 28px;\n}\n.dt-panel-tl {\n top: 16px;\n left: 28px;\n}\n.dt-panel-wide {\n width: 720px;\n}\n.dt-message-pane {\n width: 320px;\n flex-shrink: 0;\n}\n.dt-badge {\n z-index: 99999;\n box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);\n transition: background-color 150ms ease;\n border: 1px solid var(--dt-border);\n}\n.dt-badge-accent:hover {\n background-color: #252538;\n}\n.dt-badge-paused {\n background-color: var(--dt-paused);\n color: var(--dt-bg);\n border: none;\n}\n.dt-badge-paused:hover {\n background-color: #e0a070;\n}\n.dt-badge.dt-pos-br,\n.dt-badge.dt-pos-tr {\n border-right: none;\n}\n.dt-badge.dt-pos-bl,\n.dt-badge.dt-pos-tl {\n border-left: none;\n}\n\n/* JSON tree */\n.tree-row {\n position: relative;\n white-space: nowrap;\n line-height: 18px;\n padding-right: 8px;\n}\n.dt-payload-list .tree-row {\n align-items: flex-start;\n flex-wrap: wrap;\n min-width: 0;\n white-space: normal;\n}\n.dt-payload-list .tree-row span {\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.tree-row-expandable:hover {\n background-color: var(--dt-tree-hover);\n}\n.inspector-tree {\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n}\n.json-key {\n color: var(--dt-json-key);\n}\n.json-string {\n color: var(--dt-json-string);\n}\n.json-number {\n color: var(--dt-json-number);\n}\n.json-boolean {\n color: var(--dt-json-boolean);\n}\n.json-null {\n color: var(--dt-json-null);\n}\n.json-tag {\n color: var(--dt-json-tag);\n margin-right: 4px;\n}\n.json-preview {\n color: var(--dt-json-preview);\n}\n.json-arrow {\n color: var(--dt-json-arrow);\n width: 10px;\n height: 10px;\n user-select: none;\n}\n\n/* Diff */\n.diff-changed {\n background-color: rgba(116, 199, 236, 0.06);\n}\n.diff-dot {\n position: absolute;\n left: 3px;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--dt-diff-changed);\n}\n.diff-dot-inline {\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--dt-diff-changed);\n flex-shrink: 0;\n}\n.dot-column {\n width: 5px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.pause-column {\n width: 8px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.dt-pause-icon {\n width: 8px;\n height: 8px;\n color: var(--dt-paused);\n}\n\n/* Interaction blocker \u2014 covers the app while time-travelling */\n.dt-interaction-blocker {\n position: fixed;\n inset: 0;\n z-index: 99997;\n cursor: not-allowed;\n}\n\n/* Footer */\n.dt-footer {\n background-color: var(--dt-bg);\n height: 33px;\n}\n\n/* Scrubber */\n.dt-scrubber-control {\n position: relative;\n height: 16px;\n width: 100%;\n padding: 0 7px;\n display: flex;\n align-items: center;\n}\n.dt-scrubber-track {\n width: 100%;\n height: 4px;\n background-color: var(--dt-border);\n border-radius: 9999px;\n cursor: pointer;\n}\n.dt-scrubber-track[data-disabled] {\n cursor: not-allowed;\n}\n.dt-scrubber-fill {\n height: 100%;\n background-color: var(--dt-accent);\n border-radius: 9999px;\n}\n.dt-scrubber-thumb {\n width: 14px;\n height: 14px;\n border-radius: 9999px;\n background-color: var(--dt-accent);\n border: 2px solid var(--dt-bg);\n cursor: grab;\n outline: none;\n top: 50%;\n margin-top: -7px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n}\n.dt-scrubber-thumb:focus-visible {\n outline: 2px solid var(--dt-text);\n outline-offset: 2px;\n}\n.dt-scrubber-thumb[data-dragging] {\n cursor: grabbing;\n}\n.dt-scrubber-position {\n width: 72px;\n padding-left: 12px;\n border-left: 1px solid var(--dt-border);\n align-self: stretch;\n margin-top: -8px;\n margin-bottom: -8px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Mobile */\n@media (max-width: 767px) {\n .dt-panel {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n border-radius: 0;\n border: none;\n }\n .dt-panel-wide {\n width: 100%;\n }\n .dt-content {\n flex-direction: column;\n }\n .dt-message-pane {\n width: 100%;\n max-height: 40%;\n border-bottom: 1px solid var(--dt-border);\n }\n .message-list > :last-child {\n border-bottom: none;\n }\n .dt-inspector-pane {\n border-left: none;\n }\n .dt-badge.dt-pos-br,\n .dt-badge.dt-pos-bl {\n bottom: 44px;\n }\n}\n";
|
|
1
|
+
export declare const overlayStyles = ":host {\n /* The host spans the viewport so it has real bounds to snapshot: it carries a\n `view-transition-name` (set in `overlay.ts`, see the note there) to stay\n out of an application's View Transitions, and a name on a zero-size element\n captures nothing. The box itself is inert; the panels inside opt back into\n hit-testing through `.fixed`. */\n position: fixed;\n inset: 0;\n pointer-events: none;\n z-index: 2147483647;\n\n --dt-bg: #1e1e2e;\n --dt-surface-selected: #282839;\n --dt-border: #45475a;\n --dt-text: #cdd6f4;\n --dt-text-muted: #9399b2;\n --dt-accent: #cba6f7;\n --dt-live: #a6e3a1;\n --dt-paused: #fab387;\n --dt-json-string: #a6e3a1;\n --dt-json-number: #89b4fa;\n --dt-json-boolean: #fab387;\n --dt-json-null: #9399b2;\n --dt-json-key: #89dceb;\n --dt-json-tag: #cba6f7;\n --dt-json-preview: #9399b2;\n --dt-json-arrow: #9399b2;\n --dt-tree-hover: #313244;\n --dt-diff-changed: #74c7ec;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\nbutton {\n font: inherit;\n color: inherit;\n}\nul {\n list-style: none;\n}\n\n/* The host is `pointer-events: none` so its viewport-spanning box cannot\n swallow clicks meant for the application, and everything the shadow root\n renders opts back in here. The boundary is the shadow root's children rather\n than any one panel class: content arrives by routes a class list does not\n cover, including the portal root `@foldkit/ui` prepends for anchored\n dropdowns, and a surface that misses the opt-in is silently unclickable.\n These wrappers are zero-height, so granting them hit-testing costs nothing;\n descendants that must stay transparent, like the listbox backdrop, set\n `pointer-events: none` on themselves. */\n:host > * {\n pointer-events: auto;\n}\n\n.fixed {\n position: fixed;\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.flex {\n display: flex;\n}\n.contents {\n display: contents;\n}\n.flex-col {\n flex-direction: column;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.shrink-0 {\n flex-shrink: 0;\n}\n.inline-block {\n display: inline-block;\n}\n.gap-0\\.5 {\n gap: 2px;\n}\n.gap-1\\.5 {\n gap: 6px;\n}\n.gap-2 {\n gap: 8px;\n}\n.gap-3 {\n gap: 12px;\n}\n.gap-px {\n gap: 1px;\n}\n.px-1 {\n padding-left: 4px;\n padding-right: 4px;\n}\n.px-2 {\n padding-left: 8px;\n padding-right: 8px;\n}\n.px-2\\.5 {\n padding-left: 10px;\n padding-right: 10px;\n}\n.p-3 {\n padding: 12px;\n}\n.px-3 {\n padding-left: 12px;\n padding-right: 12px;\n}\n.py-0\\.5 {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n.pt-1 {\n padding-top: 4px;\n}\n.pl-1 {\n padding-left: 4px;\n}\n.py-1 {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.py-1\\.5 {\n padding-top: 6px;\n padding-bottom: 6px;\n}\n.py-2 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.py-px {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.w-1\\.5 {\n width: 6px;\n}\n.h-1\\.5 {\n height: 6px;\n}\n.w-3 {\n width: 12px;\n}\n.w-5 {\n width: 20px;\n}\n.h-5 {\n height: 20px;\n}\n.w-14 {\n width: 56px;\n}\n.h-14 {\n height: 56px;\n}\n.min-w-0 {\n min-width: 0;\n}\n.min-w-5 {\n min-width: 20px;\n}\n.min-h-0 {\n min-height: 0;\n}\n/* Badge positions \u2014 flush against side edge */\n.dt-pos-br {\n bottom: 16px;\n right: 0;\n border-radius: 6px 0 0 6px;\n}\n.dt-pos-bl {\n bottom: 16px;\n left: 0;\n border-radius: 0 6px 6px 0;\n}\n.dt-pos-tr {\n top: 16px;\n right: 0;\n border-radius: 6px 0 0 6px;\n}\n.dt-pos-tl {\n top: 16px;\n left: 0;\n border-radius: 0 6px 6px 0;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-auto {\n overflow: auto;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overscroll-none {\n overscroll-behavior: none;\n}\n\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rounded {\n border-radius: 4px;\n}\n.rounded-lg {\n border-radius: 8px;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.border {\n border-width: 1px;\n border-style: solid;\n border-color: var(--dt-border);\n}\n.border-b {\n border-bottom: 1px solid var(--dt-border);\n}\n.border-t {\n border-top: 1px solid var(--dt-border);\n}\n.border-r {\n border-right: 1px solid var(--dt-border);\n}\n.border-l {\n border-left: 1px solid var(--dt-border);\n}\n.border-none {\n border: none;\n}\n.selected {\n background-color: var(--dt-surface-selected);\n}\n.dt-row:hover:not(.selected) {\n background-color: var(--dt-tree-hover);\n}\n.dt-header-button:hover {\n color: var(--dt-text);\n}\n.dt-copy-control {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.dt-copy-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 6px;\n background: transparent;\n border: none;\n color: var(--dt-text-muted);\n cursor: pointer;\n border-radius: 4px;\n transition: color 100ms ease;\n}\n.dt-copy-button:hover {\n color: var(--dt-text);\n}\n.dt-copy-button[aria-disabled='true'] {\n cursor: default;\n}\n.dt-copy-button.dt-copy-success,\n.dt-copy-button.dt-copy-success:hover {\n color: var(--dt-live);\n}\n.dt-copy-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-copy-icon {\n width: 12px;\n height: 12px;\n}\n.dt-resume-button:hover {\n opacity: 0.7;\n}\n.dt-scroll-pill {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n flex-shrink: 0;\n padding: 4px 12px;\n background-color: var(--dt-surface-selected);\n border: none;\n border-bottom: 1px solid var(--dt-border);\n color: var(--dt-accent);\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n cursor: pointer;\n}\n.dt-scroll-pill-icon {\n width: 12px;\n height: 12px;\n}\n.dt-scroll-pill-text {\n margin-top: 1px;\n}\n.dt-scroll-pill:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-scroll-pill:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-filter-wrapper {\n position: relative;\n flex-shrink: 0;\n border-bottom: 1px solid var(--dt-border);\n}\n.dt-filter-button {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px 12px;\n background: transparent;\n border: none;\n color: var(--dt-text-muted);\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n cursor: pointer;\n text-align: left;\n}\n.dt-filter-button:hover {\n color: var(--dt-text);\n background-color: var(--dt-tree-hover);\n}\n.dt-filter-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-filter-button[data-open] {\n color: var(--dt-text);\n background-color: var(--dt-surface-selected);\n}\n.dt-filter-button[data-open]:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-filter-button[data-open] .json-arrow {\n transform: rotate(180deg);\n}\n.dt-filter-items {\n position: absolute;\n width: var(--button-width);\n background-color: var(--dt-bg);\n border-top: 1px solid var(--dt-border);\n border-bottom: 1px solid var(--dt-border);\n z-index: 100000;\n max-height: 200px;\n overflow-y: auto;\n outline: none;\n}\n.dt-filter-item {\n padding: 6px 12px;\n color: var(--dt-text-muted);\n cursor: pointer;\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n font-size: 13px;\n border-bottom: 1px solid var(--dt-border);\n}\n.dt-filter-item:last-child {\n border-bottom: none;\n}\n.dt-filter-item[data-active] {\n background-color: var(--dt-tree-hover);\n color: var(--dt-text);\n}\n.dt-filter-item[data-selected] {\n color: var(--dt-accent);\n}\n.dt-filter-check {\n width: 12px;\n height: 12px;\n visibility: hidden;\n}\n.dt-filter-item[data-selected] .dt-filter-check {\n visibility: visible;\n color: var(--dt-accent);\n}\n.dt-filter-backdrop {\n position: fixed;\n inset: 0;\n pointer-events: none;\n}\n.dt-settings-button {\n display: flex;\n align-items: center;\n justify-content: center;\n align-self: stretch;\n margin: -8px 0 -8px -12px;\n padding: 0 12px;\n background: transparent;\n border: none;\n border-right: 1px solid var(--dt-border);\n color: var(--dt-text-muted);\n cursor: pointer;\n flex-shrink: 0;\n}\n.dt-settings-button:hover {\n color: var(--dt-text);\n background-color: var(--dt-tree-hover);\n}\n.dt-settings-button:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: -1px;\n}\n.dt-settings-button-active {\n color: var(--dt-accent);\n background-color: var(--dt-surface-selected);\n}\n.dt-settings-button-active:hover {\n background-color: var(--dt-tree-hover);\n}\n.dt-settings-icon {\n width: 14px;\n height: 14px;\n}\n.dt-settings-section-title {\n padding: 10px 12px 4px;\n color: var(--dt-text-muted);\n font-size: 10px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n}\n.dt-settings-row {\n display: flex;\n align-items: center;\n gap: 20px;\n padding: 8px 12px;\n}\n.dt-settings-row-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n.dt-settings-row-label {\n color: var(--dt-text);\n font-size: 13px;\n cursor: pointer;\n}\n.dt-settings-row-description {\n color: var(--dt-text-muted);\n font-size: 10px;\n}\n.dt-switch {\n position: relative;\n width: 36px;\n height: 20px;\n border-radius: 9999px;\n background-color: var(--dt-border);\n cursor: pointer;\n flex-shrink: 0;\n transition:\n background-color 100ms ease,\n filter 100ms ease;\n}\n.dt-switch:hover {\n filter: brightness(1.2);\n}\n.dt-switch:focus-visible {\n outline: 1px solid var(--dt-accent);\n outline-offset: 2px;\n}\n.dt-switch[data-checked] {\n background-color: var(--dt-accent);\n}\n.dt-switch-thumb {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 16px;\n height: 16px;\n border-radius: 9999px;\n background-color: var(--dt-text-muted);\n transition:\n transform 100ms ease,\n background-color 100ms ease;\n}\n.dt-switch[data-checked] .dt-switch-thumb {\n transform: translateX(16px);\n background-color: var(--dt-bg);\n}\n.dt-tab-button {\n position: relative;\n background: transparent;\n border: none;\n border-right: 1px solid var(--dt-border);\n outline: none;\n flex: 1;\n}\n.dt-tab-button:last-child {\n border-right: none;\n}\n.dt-tab-active {\n background-color: var(--dt-surface-selected);\n}\n.dt-tab-button:not(.dt-tab-active):hover {\n color: var(--dt-text);\n background-color: rgba(49, 50, 68, 0.3);\n}\n.font-sans {\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n sans-serif;\n}\n.font-mono {\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-xs {\n font-size: 12px;\n}\n.text-2xs {\n font-size: 10px;\n}\n.text-sm {\n font-size: 11px;\n}\n.text-base {\n font-size: 13px;\n}\n.text-md {\n font-size: 15px;\n}\n.text-lg {\n font-size: 20px;\n}\n.text-xl {\n font-size: 26px;\n}\n.italic {\n font-style: italic;\n}\n.text-right {\n text-align: right;\n}\n.tracking-wide {\n letter-spacing: 0.025em;\n}\n.tracking-wider {\n letter-spacing: 0.05em;\n}\n.leading-none {\n line-height: 1;\n}\n.leading-snug {\n line-height: 1.35;\n}\n.bg-dt-bg {\n background-color: var(--dt-bg);\n}\n.bg-dt-live {\n background-color: var(--dt-live);\n}\n.bg-transparent {\n background-color: transparent;\n}\n.text-dt {\n color: var(--dt-text);\n}\n.text-dt-bg {\n color: var(--dt-bg);\n}\n.text-dt-muted {\n color: var(--dt-text-muted);\n}\n.text-dt-accent {\n color: var(--dt-accent);\n}\n.text-dt-live {\n color: var(--dt-live);\n}\n.text-dt-paused {\n color: var(--dt-paused);\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.outline-none {\n outline: none;\n}\n.transition-colors {\n transition-property: color, background-color, border-color;\n transition-duration: 100ms;\n transition-timing-function: ease;\n}\n\n/* Panel */\n.dt-panel {\n width: 360px;\n height: 480px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);\n z-index: 99998;\n}\n/* Panel positions */\n.dt-panel-br {\n bottom: 16px;\n right: 28px;\n}\n.dt-panel-bl {\n bottom: 16px;\n left: 28px;\n}\n.dt-panel-tr {\n top: 16px;\n right: 28px;\n}\n.dt-panel-tl {\n top: 16px;\n left: 28px;\n}\n.dt-panel-wide {\n width: 720px;\n}\n.dt-message-pane {\n width: 320px;\n flex-shrink: 0;\n}\n.dt-badge {\n z-index: 99999;\n box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);\n transition: background-color 150ms ease;\n border: 1px solid var(--dt-border);\n}\n.dt-badge-accent:hover {\n background-color: #252538;\n}\n.dt-badge-paused {\n background-color: var(--dt-paused);\n color: var(--dt-bg);\n border: none;\n}\n.dt-badge-paused:hover {\n background-color: #e0a070;\n}\n.dt-badge.dt-pos-br,\n.dt-badge.dt-pos-tr {\n border-right: none;\n}\n.dt-badge.dt-pos-bl,\n.dt-badge.dt-pos-tl {\n border-left: none;\n}\n\n/* JSON tree */\n.tree-row {\n position: relative;\n white-space: nowrap;\n line-height: 18px;\n padding-right: 8px;\n}\n.dt-payload-list .tree-row {\n align-items: flex-start;\n flex-wrap: wrap;\n min-width: 0;\n white-space: normal;\n}\n.dt-payload-list .tree-row span {\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.tree-row-expandable:hover {\n background-color: var(--dt-tree-hover);\n}\n.inspector-tree {\n font-family:\n ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n}\n.json-key {\n color: var(--dt-json-key);\n}\n.json-string {\n color: var(--dt-json-string);\n}\n.json-number {\n color: var(--dt-json-number);\n}\n.json-boolean {\n color: var(--dt-json-boolean);\n}\n.json-null {\n color: var(--dt-json-null);\n}\n.json-tag {\n color: var(--dt-json-tag);\n margin-right: 4px;\n}\n.json-preview {\n color: var(--dt-json-preview);\n}\n.json-arrow {\n color: var(--dt-json-arrow);\n width: 10px;\n height: 18px;\n user-select: none;\n}\n\n/* Diff */\n.diff-changed {\n background-color: rgba(116, 199, 236, 0.06);\n}\n.diff-dot {\n position: absolute;\n left: 3px;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--dt-diff-changed);\n}\n.diff-dot-inline {\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--dt-diff-changed);\n flex-shrink: 0;\n}\n.dot-column {\n width: 5px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.pause-column {\n width: 8px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.dt-pause-icon {\n width: 8px;\n height: 8px;\n color: var(--dt-paused);\n}\n\n/* Interaction blocker \u2014 covers the app while time-travelling */\n.dt-interaction-blocker {\n position: fixed;\n inset: 0;\n z-index: 99997;\n cursor: not-allowed;\n}\n\n/* Footer */\n.dt-footer {\n background-color: var(--dt-bg);\n height: 33px;\n}\n\n/* Scrubber */\n.dt-scrubber-control {\n position: relative;\n height: 16px;\n width: 100%;\n padding: 0 7px;\n display: flex;\n align-items: center;\n}\n.dt-scrubber-track {\n width: 100%;\n height: 4px;\n background-color: var(--dt-border);\n border-radius: 9999px;\n cursor: pointer;\n}\n.dt-scrubber-track[data-disabled] {\n cursor: not-allowed;\n}\n.dt-scrubber-fill {\n height: 100%;\n background-color: var(--dt-accent);\n border-radius: 9999px;\n}\n.dt-scrubber-thumb {\n width: 14px;\n height: 14px;\n border-radius: 9999px;\n background-color: var(--dt-accent);\n border: 2px solid var(--dt-bg);\n cursor: grab;\n outline: none;\n top: 50%;\n margin-top: -7px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n}\n.dt-scrubber-thumb:focus-visible {\n outline: 2px solid var(--dt-text);\n outline-offset: 2px;\n}\n.dt-scrubber-thumb[data-dragging] {\n cursor: grabbing;\n}\n.dt-scrubber-position {\n width: 72px;\n padding-left: 12px;\n border-left: 1px solid var(--dt-border);\n align-self: stretch;\n margin-top: -8px;\n margin-bottom: -8px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Mobile */\n@media (max-width: 767px) {\n .dt-panel {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n border-radius: 0;\n border: none;\n }\n .dt-panel-wide {\n width: 100%;\n }\n .dt-content {\n flex-direction: column;\n }\n .dt-message-pane {\n width: 100%;\n max-height: 40%;\n border-bottom: 1px solid var(--dt-border);\n }\n .message-list > :last-child {\n border-bottom: none;\n }\n .dt-inspector-pane {\n border-left: none;\n }\n .dt-badge.dt-pos-br,\n .dt-badge.dt-pos-bl {\n bottom: 44px;\n }\n}\n";
|
|
2
2
|
//# sourceMappingURL=overlay-styles.d.ts.map
|
package/dist/overlay-styles.js
CHANGED
package/dist/overlay.d.ts
CHANGED
|
@@ -64,35 +64,12 @@ export declare const UnlockScroll: (import("foldkit/command").LayeredCommandDefi
|
|
|
64
64
|
readonly _tag: "CompletedUnlockScroll";
|
|
65
65
|
}>;
|
|
66
66
|
}>;
|
|
67
|
-
export declare const PersistDevToolsState:
|
|
67
|
+
export declare const PersistDevToolsState: import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/PersistDevToolsState", {
|
|
68
68
|
isOpen: Schema.Boolean;
|
|
69
69
|
isFlattened: Schema.Boolean;
|
|
70
|
-
}, Pick<{
|
|
71
|
-
readonly isOpen: boolean;
|
|
72
|
-
readonly isFlattened: boolean;
|
|
73
|
-
}, "isFlattened" | "isOpen">, Effect.Effect<{
|
|
74
|
-
readonly _tag: "CompletedPersistDevToolsState";
|
|
75
|
-
}, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
76
|
-
readonly isOpen: boolean;
|
|
77
|
-
readonly isFlattened: boolean;
|
|
78
70
|
}, {
|
|
79
71
|
readonly _tag: "CompletedPersistDevToolsState";
|
|
80
|
-
}
|
|
81
|
-
isOpen: Schema.Boolean;
|
|
82
|
-
isFlattened: Schema.Boolean;
|
|
83
|
-
}, Effect.Effect<{
|
|
84
|
-
readonly _tag: "CompletedPersistDevToolsState";
|
|
85
|
-
}, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
86
|
-
readonly isOpen: boolean;
|
|
87
|
-
readonly isFlattened: boolean;
|
|
88
|
-
}, {
|
|
89
|
-
readonly _tag: "CompletedPersistDevToolsState";
|
|
90
|
-
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/PersistDevToolsState", {
|
|
91
|
-
isOpen: Schema.Boolean;
|
|
92
|
-
isFlattened: Schema.Boolean;
|
|
93
|
-
}, {
|
|
94
|
-
readonly _tag: "CompletedPersistDevToolsState";
|
|
95
|
-
}>) & Readonly<{
|
|
72
|
+
}> & Readonly<{
|
|
96
73
|
layer: Layer.Layer<import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
97
74
|
readonly isOpen: boolean;
|
|
98
75
|
readonly isFlattened: boolean;
|
|
@@ -107,41 +84,7 @@ export declare const PersistDevToolsState: (import("foldkit/command").Definition
|
|
|
107
84
|
readonly _tag: "CompletedPersistDevToolsState";
|
|
108
85
|
}>;
|
|
109
86
|
}>;
|
|
110
|
-
export declare const JumpToAndInspect:
|
|
111
|
-
index: Schema.Number;
|
|
112
|
-
}, Pick<{
|
|
113
|
-
readonly index: number;
|
|
114
|
-
}, "index">, Effect.Effect<{
|
|
115
|
-
readonly _tag: "ReceivedInspectedState";
|
|
116
|
-
readonly model: unknown;
|
|
117
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
118
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
119
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
120
|
-
}, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
121
|
-
readonly index: number;
|
|
122
|
-
}, {
|
|
123
|
-
readonly _tag: "ReceivedInspectedState";
|
|
124
|
-
readonly model: unknown;
|
|
125
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
126
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
127
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
128
|
-
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/JumpToAndInspect", {
|
|
129
|
-
index: Schema.Number;
|
|
130
|
-
}, Effect.Effect<{
|
|
131
|
-
readonly _tag: "ReceivedInspectedState";
|
|
132
|
-
readonly model: unknown;
|
|
133
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
134
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
135
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
136
|
-
}, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
137
|
-
readonly index: number;
|
|
138
|
-
}, {
|
|
139
|
-
readonly _tag: "ReceivedInspectedState";
|
|
140
|
-
readonly model: unknown;
|
|
141
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
142
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
143
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
144
|
-
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/JumpToAndInspect", {
|
|
87
|
+
export declare const JumpToAndInspect: import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/JumpToAndInspect", {
|
|
145
88
|
index: Schema.Number;
|
|
146
89
|
}, {
|
|
147
90
|
readonly _tag: "ReceivedInspectedState";
|
|
@@ -149,7 +92,7 @@ export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWith
|
|
|
149
92
|
readonly maybeMessage: Option.Option<unknown>;
|
|
150
93
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
151
94
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
152
|
-
}>
|
|
95
|
+
}> & Readonly<{
|
|
153
96
|
layer: Layer.Layer<import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
154
97
|
readonly index: number;
|
|
155
98
|
}, {
|
|
@@ -170,49 +113,15 @@ export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWith
|
|
|
170
113
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
171
114
|
}>;
|
|
172
115
|
}>;
|
|
173
|
-
export declare const InspectState:
|
|
116
|
+
export declare const InspectState: import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/InspectState", {
|
|
174
117
|
index: Schema.Number;
|
|
175
|
-
}, Pick<{
|
|
176
|
-
readonly index: number;
|
|
177
|
-
}, "index">, Effect.Effect<{
|
|
178
|
-
readonly _tag: "ReceivedInspectedState";
|
|
179
|
-
readonly model: unknown;
|
|
180
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
181
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
182
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
183
|
-
}, never, import("foldkit/command").Handler<"Application/InspectState", {
|
|
184
|
-
readonly index: number;
|
|
185
118
|
}, {
|
|
186
119
|
readonly _tag: "ReceivedInspectedState";
|
|
187
120
|
readonly model: unknown;
|
|
188
121
|
readonly maybeMessage: Option.Option<unknown>;
|
|
189
122
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
190
123
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
191
|
-
}
|
|
192
|
-
index: Schema.Number;
|
|
193
|
-
}, Effect.Effect<{
|
|
194
|
-
readonly _tag: "ReceivedInspectedState";
|
|
195
|
-
readonly model: unknown;
|
|
196
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
197
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
198
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
199
|
-
}, never, import("foldkit/command").Handler<"Application/InspectState", {
|
|
200
|
-
readonly index: number;
|
|
201
|
-
}, {
|
|
202
|
-
readonly _tag: "ReceivedInspectedState";
|
|
203
|
-
readonly model: unknown;
|
|
204
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
205
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
206
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
207
|
-
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/InspectState", {
|
|
208
|
-
index: Schema.Number;
|
|
209
|
-
}, {
|
|
210
|
-
readonly _tag: "ReceivedInspectedState";
|
|
211
|
-
readonly model: unknown;
|
|
212
|
-
readonly maybeMessage: Option.Option<unknown>;
|
|
213
|
-
readonly changedPaths: HashSet.HashSet<string>;
|
|
214
|
-
readonly affectedPaths: HashSet.HashSet<string>;
|
|
215
|
-
}>) & Readonly<{
|
|
124
|
+
}> & Readonly<{
|
|
216
125
|
layer: Layer.Layer<import("foldkit/command").Handler<"Application/InspectState", {
|
|
217
126
|
readonly index: number;
|
|
218
127
|
}, {
|
|
@@ -314,59 +223,7 @@ export declare const Clear: (import("foldkit/command").LayeredCommandDefinitionN
|
|
|
314
223
|
readonly _tag: "CompletedClear";
|
|
315
224
|
}>;
|
|
316
225
|
}>;
|
|
317
|
-
export declare const CopyPayloadToClipboard:
|
|
318
|
-
targetId: Schema.String;
|
|
319
|
-
requestId: Schema.Number;
|
|
320
|
-
payload: Schema.Unknown;
|
|
321
|
-
}, Pick<{
|
|
322
|
-
readonly targetId: string;
|
|
323
|
-
readonly requestId: number;
|
|
324
|
-
readonly payload: unknown;
|
|
325
|
-
}, "payload" | "requestId" | "targetId">, Effect.Effect<{
|
|
326
|
-
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
327
|
-
readonly targetId: string;
|
|
328
|
-
readonly requestId: number;
|
|
329
|
-
} | {
|
|
330
|
-
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
331
|
-
readonly targetId: string;
|
|
332
|
-
readonly requestId: number;
|
|
333
|
-
}, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
334
|
-
readonly targetId: string;
|
|
335
|
-
readonly requestId: number;
|
|
336
|
-
readonly payload: unknown;
|
|
337
|
-
}, {
|
|
338
|
-
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
339
|
-
readonly targetId: string;
|
|
340
|
-
readonly requestId: number;
|
|
341
|
-
} | {
|
|
342
|
-
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
343
|
-
readonly targetId: string;
|
|
344
|
-
readonly requestId: number;
|
|
345
|
-
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/CopyPayloadToClipboard", {
|
|
346
|
-
targetId: Schema.String;
|
|
347
|
-
requestId: Schema.Number;
|
|
348
|
-
payload: Schema.Unknown;
|
|
349
|
-
}, Effect.Effect<{
|
|
350
|
-
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
351
|
-
readonly targetId: string;
|
|
352
|
-
readonly requestId: number;
|
|
353
|
-
} | {
|
|
354
|
-
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
355
|
-
readonly targetId: string;
|
|
356
|
-
readonly requestId: number;
|
|
357
|
-
}, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
358
|
-
readonly targetId: string;
|
|
359
|
-
readonly requestId: number;
|
|
360
|
-
readonly payload: unknown;
|
|
361
|
-
}, {
|
|
362
|
-
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
363
|
-
readonly targetId: string;
|
|
364
|
-
readonly requestId: number;
|
|
365
|
-
} | {
|
|
366
|
-
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
367
|
-
readonly targetId: string;
|
|
368
|
-
readonly requestId: number;
|
|
369
|
-
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/CopyPayloadToClipboard", {
|
|
226
|
+
export declare const CopyPayloadToClipboard: import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/CopyPayloadToClipboard", {
|
|
370
227
|
targetId: Schema.String;
|
|
371
228
|
requestId: Schema.Number;
|
|
372
229
|
payload: Schema.Unknown;
|
|
@@ -378,7 +235,7 @@ export declare const CopyPayloadToClipboard: (import("foldkit/command").Definiti
|
|
|
378
235
|
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
379
236
|
readonly targetId: string;
|
|
380
237
|
readonly requestId: number;
|
|
381
|
-
}>
|
|
238
|
+
}> & Readonly<{
|
|
382
239
|
layer: Layer.Layer<import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
383
240
|
readonly targetId: string;
|
|
384
241
|
readonly requestId: number;
|
|
@@ -421,45 +278,14 @@ export declare const CopyPayloadToClipboardLayer: Layer.Layer<import("foldkit/co
|
|
|
421
278
|
readonly targetId: string;
|
|
422
279
|
readonly requestId: number;
|
|
423
280
|
}>, never, never>;
|
|
424
|
-
export declare const WaitBeforeHidingCopyIndicator:
|
|
281
|
+
export declare const WaitBeforeHidingCopyIndicator: import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
|
|
425
282
|
targetId: Schema.String;
|
|
426
283
|
requestId: Schema.Number;
|
|
427
|
-
}, Pick<{
|
|
428
|
-
readonly targetId: string;
|
|
429
|
-
readonly requestId: number;
|
|
430
|
-
}, "requestId" | "targetId">, Effect.Effect<{
|
|
431
|
-
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
432
|
-
readonly targetId: string;
|
|
433
|
-
readonly requestId: number;
|
|
434
|
-
}, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
435
|
-
readonly targetId: string;
|
|
436
|
-
readonly requestId: number;
|
|
437
284
|
}, {
|
|
438
285
|
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
439
286
|
readonly targetId: string;
|
|
440
287
|
readonly requestId: number;
|
|
441
|
-
}
|
|
442
|
-
targetId: Schema.String;
|
|
443
|
-
requestId: Schema.Number;
|
|
444
|
-
}, Effect.Effect<{
|
|
445
|
-
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
446
|
-
readonly targetId: string;
|
|
447
|
-
readonly requestId: number;
|
|
448
|
-
}, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
449
|
-
readonly targetId: string;
|
|
450
|
-
readonly requestId: number;
|
|
451
|
-
}, {
|
|
452
|
-
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
453
|
-
readonly targetId: string;
|
|
454
|
-
readonly requestId: number;
|
|
455
|
-
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
|
|
456
|
-
targetId: Schema.String;
|
|
457
|
-
requestId: Schema.Number;
|
|
458
|
-
}, {
|
|
459
|
-
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
460
|
-
readonly targetId: string;
|
|
461
|
-
readonly requestId: number;
|
|
462
|
-
}>) & Readonly<{
|
|
288
|
+
}> & Readonly<{
|
|
463
289
|
layer: Layer.Layer<import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
464
290
|
readonly targetId: string;
|
|
465
291
|
readonly requestId: number;
|
package/dist/overlay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,EACP,KAAK,EAGL,MAAM,EAIN,MAAM,EAGN,eAAe,EAGhB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAK9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;AAgcrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AA+CpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKvB,CAAA;AA4BF,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,EACP,KAAK,EAGL,MAAM,EAIN,MAAM,EAGN,eAAe,EAGhB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAK9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;AAgcrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AA+CpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKvB,CAAA;AA4BF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;EAuBhC,CAAA;AAyBD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;EAOjB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;EAOhB,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiClC,CAAA;AACD,uDAAuD;AACvD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAA+B,CAAA;AAIvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzC,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;EActB,CAAA;AAyoEF,eAAO,MAAM,aAAa,UACjB,aAAa,YACV,gBAAgB,QACpB,YAAY,eACL,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DA+ChC,CAAA"}
|
package/dist/overlay.js
CHANGED
|
@@ -536,8 +536,8 @@ const init = ApplicationComposition.makeInit((flags) => {
|
|
|
536
536
|
commands: Array.filter([LockScroll()], () => __foldkitBrandViewResult((flags.isOpen && flags.isMobile), "@foldkit/devtools/overlay.js#anonymous~45")),
|
|
537
537
|
}), "@foldkit/devtools/overlay.js#anonymous~44");
|
|
538
538
|
});
|
|
539
|
-
const update = ApplicationComposition.makeUpdate(
|
|
540
|
-
ClickedToggle:
|
|
539
|
+
const update = ApplicationComposition.makeUpdate({
|
|
540
|
+
ClickedToggle: model => {
|
|
541
541
|
const nextIsOpen = !model.isOpen;
|
|
542
542
|
return __foldkitBrandViewResult(({
|
|
543
543
|
model: modifyFields(model, { isOpen: () => __foldkitBrandViewResult((nextIsOpen), "@foldkit/devtools/overlay.js#isOpen") }),
|
|
@@ -550,16 +550,16 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
550
550
|
],
|
|
551
551
|
}), "@foldkit/devtools/overlay.js#ClickedToggle");
|
|
552
552
|
},
|
|
553
|
-
ClickedSettingsToggle:
|
|
553
|
+
ClickedSettingsToggle: model => (__foldkitBrandViewResult(({
|
|
554
554
|
model: modifyFields(model, {
|
|
555
|
-
screen: currentScreen => __foldkitBrandViewResult((Match.value(currentScreen).pipe(Match.withReturnType(), Match.when('Messages', () => __foldkitBrandViewResult(('Settings'), "@foldkit/devtools/overlay.js#anonymous~
|
|
555
|
+
screen: currentScreen => __foldkitBrandViewResult((Match.value(currentScreen).pipe(Match.withReturnType(), Match.when('Messages', () => __foldkitBrandViewResult(('Settings'), "@foldkit/devtools/overlay.js#anonymous~46")), Match.when('Settings', () => __foldkitBrandViewResult(('Messages'), "@foldkit/devtools/overlay.js#anonymous~47")), Match.exhaustive)), "@foldkit/devtools/overlay.js#screen"),
|
|
556
556
|
}),
|
|
557
557
|
}), "@foldkit/devtools/overlay.js#ClickedSettingsToggle")),
|
|
558
|
-
ToggledFlatten: ({ isFlattened }) => (__foldkitBrandViewResult(({
|
|
558
|
+
ToggledFlatten: (model, { isFlattened }) => (__foldkitBrandViewResult(({
|
|
559
559
|
model: modifyFields(model, { isFlattened: () => __foldkitBrandViewResult((isFlattened), "@foldkit/devtools/overlay.js#isFlattened") }),
|
|
560
560
|
commands: [PersistDevToolsState({ isOpen: model.isOpen, isFlattened })],
|
|
561
561
|
}), "@foldkit/devtools/overlay.js#ToggledFlatten")),
|
|
562
|
-
ObservedMobileBreakpoint: ({ isMobile }) => {
|
|
562
|
+
ObservedMobileBreakpoint: (model, { isMobile }) => {
|
|
563
563
|
if (isMobile === model.isMobile) {
|
|
564
564
|
return __foldkitBrandViewResult(({ model }), "@foldkit/devtools/overlay.js#ObservedMobileBreakpoint");
|
|
565
565
|
}
|
|
@@ -568,17 +568,17 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
568
568
|
commands: scrollLockCommands(model.isOpen, isMobile),
|
|
569
569
|
}), "@foldkit/devtools/overlay.js#ObservedMobileBreakpoint");
|
|
570
570
|
},
|
|
571
|
-
ClickedRow: ({ index }) => __foldkitBrandViewResult((Match.value(model.mode).pipe(Match.when('TimeTravel', () => (__foldkitBrandViewResult(({
|
|
571
|
+
ClickedRow: (model, { index }) => __foldkitBrandViewResult((Match.value(model.mode).pipe(Match.when('TimeTravel', () => (__foldkitBrandViewResult(({
|
|
572
572
|
model,
|
|
573
573
|
commands: [JumpToAndInspect({ index })],
|
|
574
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
574
|
+
}), "@foldkit/devtools/overlay.js#anonymous~48"))), Match.when('Inspect', () => (__foldkitBrandViewResult(({
|
|
575
575
|
model: modifyFields(model, {
|
|
576
576
|
selectedIndex: () => __foldkitBrandViewResult((index), "@foldkit/devtools/overlay.js#selectedIndex"),
|
|
577
577
|
isFollowingLatest: () => __foldkitBrandViewResult((false), "@foldkit/devtools/overlay.js#isFollowingLatest"),
|
|
578
578
|
}),
|
|
579
579
|
commands: [InspectState({ index })],
|
|
580
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
581
|
-
ClickedResume:
|
|
580
|
+
}), "@foldkit/devtools/overlay.js#anonymous~49"))), Match.exhaustive)), "@foldkit/devtools/overlay.js#ClickedRow"),
|
|
581
|
+
ClickedResume: model => (__foldkitBrandViewResult(({
|
|
582
582
|
model: modifyFields(model, {
|
|
583
583
|
isFollowingTop: () => __foldkitBrandViewResult((true), "@foldkit/devtools/overlay.js#isFollowingTop"),
|
|
584
584
|
expandedPaths: () => __foldkitBrandViewResult((HashSet.empty()), "@foldkit/devtools/overlay.js#expandedPaths"),
|
|
@@ -587,7 +587,7 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
587
587
|
}),
|
|
588
588
|
commands: [Resume(), InspectLatest(), ScrollToTop()],
|
|
589
589
|
}), "@foldkit/devtools/overlay.js#ClickedResume")),
|
|
590
|
-
ClickedClear:
|
|
590
|
+
ClickedClear: model => (__foldkitBrandViewResult(({
|
|
591
591
|
model: modifyFields(model, {
|
|
592
592
|
selectedIndex: () => __foldkitBrandViewResult((INIT_INDEX), "@foldkit/devtools/overlay.js#selectedIndex~2"),
|
|
593
593
|
isFollowingLatest: () => __foldkitBrandViewResult((true), "@foldkit/devtools/overlay.js#isFollowingLatest~2"),
|
|
@@ -600,7 +600,7 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
600
600
|
}),
|
|
601
601
|
commands: [Clear(), InspectLatest(), ScrollToTop()],
|
|
602
602
|
}), "@foldkit/devtools/overlay.js#ClickedClear")),
|
|
603
|
-
ClickedFollowLatest:
|
|
603
|
+
ClickedFollowLatest: model => {
|
|
604
604
|
const latestIndex = Array.match(model.entries, {
|
|
605
605
|
onEmpty: () => __foldkitBrandViewResult((INIT_INDEX), "@foldkit/devtools/overlay.js#onEmpty~2"),
|
|
606
606
|
onNonEmpty: () => __foldkitBrandViewResult((model.startIndex + model.entries.length - 1), "@foldkit/devtools/overlay.js#onNonEmpty~2"),
|
|
@@ -617,19 +617,19 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
617
617
|
commands: [InspectLatest(), ScrollToTop()],
|
|
618
618
|
}), "@foldkit/devtools/overlay.js#ClickedFollowLatest");
|
|
619
619
|
},
|
|
620
|
-
ClickedScrollToTopPill:
|
|
620
|
+
ClickedScrollToTopPill: model => (__foldkitBrandViewResult(({
|
|
621
621
|
model: modifyFields(model, {
|
|
622
622
|
isFollowingTop: () => __foldkitBrandViewResult((true), "@foldkit/devtools/overlay.js#isFollowingTop~4"),
|
|
623
623
|
}),
|
|
624
624
|
commands: [ScrollToTop()],
|
|
625
625
|
}), "@foldkit/devtools/overlay.js#ClickedScrollToTopPill")),
|
|
626
|
-
ScrolledMessageList: ({ scrollTop }) => {
|
|
626
|
+
ScrolledMessageList: (model, { scrollTop }) => {
|
|
627
627
|
const isAtTop = scrollTop <= SCROLL_FOLLOW_THRESHOLD_PX;
|
|
628
628
|
return __foldkitBrandViewResult((isAtTop === model.isFollowingTop
|
|
629
629
|
? { model }
|
|
630
630
|
: { model: modifyFields(model, { isFollowingTop: () => __foldkitBrandViewResult((isAtTop), "@foldkit/devtools/overlay.js#isFollowingTop~5") }) }), "@foldkit/devtools/overlay.js#ScrolledMessageList");
|
|
631
631
|
},
|
|
632
|
-
ReceivedInspectedState: ({ model: inspectedModel, maybeMessage, changedPaths, affectedPaths
|
|
632
|
+
ReceivedInspectedState: (model, { model: inspectedModel, maybeMessage, changedPaths, affectedPaths }) => (__foldkitBrandViewResult(({
|
|
633
633
|
model: modifyFields(model, {
|
|
634
634
|
maybeInspectedModel: () => __foldkitBrandViewResult((Option.some(inspectedModel)), "@foldkit/devtools/overlay.js#maybeInspectedModel"),
|
|
635
635
|
maybeInspectedMessage: () => __foldkitBrandViewResult((maybeMessage), "@foldkit/devtools/overlay.js#maybeInspectedMessage"),
|
|
@@ -637,14 +637,14 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
637
637
|
affectedPaths: () => __foldkitBrandViewResult((affectedPaths), "@foldkit/devtools/overlay.js#affectedPaths~4"),
|
|
638
638
|
}),
|
|
639
639
|
}), "@foldkit/devtools/overlay.js#ReceivedInspectedState")),
|
|
640
|
-
ToggledTreeNode: ({ path }) => (__foldkitBrandViewResult(({
|
|
640
|
+
ToggledTreeNode: (model, { path }) => (__foldkitBrandViewResult(({
|
|
641
641
|
model: modifyFields(model, {
|
|
642
642
|
expandedPaths: paths => __foldkitBrandViewResult((HashSet.has(paths, path)
|
|
643
643
|
? HashSet.remove(paths, path)
|
|
644
644
|
: HashSet.add(paths, path)), "@foldkit/devtools/overlay.js#expandedPaths~4"),
|
|
645
645
|
}),
|
|
646
646
|
}), "@foldkit/devtools/overlay.js#ToggledTreeNode")),
|
|
647
|
-
ClickedCopyPayload: ({ targetId, payload }) => {
|
|
647
|
+
ClickedCopyPayload: (model, { targetId, payload }) => {
|
|
648
648
|
if (Option.isSome(HashMap.get(model.copyStates, targetId))) {
|
|
649
649
|
return __foldkitBrandViewResult(({ model }), "@foldkit/devtools/overlay.js#ClickedCopyPayload");
|
|
650
650
|
}
|
|
@@ -657,15 +657,15 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
657
657
|
commands: [CopyPayloadToClipboard({ targetId, requestId, payload })],
|
|
658
658
|
}), "@foldkit/devtools/overlay.js#ClickedCopyPayload");
|
|
659
659
|
},
|
|
660
|
-
ReceivedStoreUpdate: ({ entries, initCommands, initMountStarts, startIndex, isPaused, pausedAtIndex, }) => {
|
|
661
|
-
const shouldFollowSelection = Match.value(model.mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((!isPaused), "@foldkit/devtools/overlay.js#anonymous~
|
|
662
|
-
const shouldFollowScroll = Match.value(model.mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((!isPaused && model.isFollowingTop), "@foldkit/devtools/overlay.js#anonymous~
|
|
660
|
+
ReceivedStoreUpdate: (model, { entries, initCommands, initMountStarts, startIndex, isPaused, pausedAtIndex, }) => {
|
|
661
|
+
const shouldFollowSelection = Match.value(model.mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((!isPaused), "@foldkit/devtools/overlay.js#anonymous~50")), Match.when('Inspect', () => __foldkitBrandViewResult((model.isFollowingLatest), "@foldkit/devtools/overlay.js#anonymous~51")), Match.exhaustive);
|
|
662
|
+
const shouldFollowScroll = Match.value(model.mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((!isPaused && model.isFollowingTop), "@foldkit/devtools/overlay.js#anonymous~52")), Match.when('Inspect', () => __foldkitBrandViewResult((model.isFollowingTop), "@foldkit/devtools/overlay.js#anonymous~53")), Match.exhaustive);
|
|
663
663
|
const latestIndex = Array.match(entries, {
|
|
664
664
|
onEmpty: () => __foldkitBrandViewResult((INIT_INDEX), "@foldkit/devtools/overlay.js#onEmpty~3"),
|
|
665
665
|
onNonEmpty: () => __foldkitBrandViewResult((startIndex + entries.length - 1), "@foldkit/devtools/overlay.js#onNonEmpty~3"),
|
|
666
666
|
});
|
|
667
667
|
const nextBlockTags = computeBlockTags(entries);
|
|
668
|
-
const isFilterStale = Option.exists(model.maybeBlockFilter, filterTag => __foldkitBrandViewResult((!Array.contains(nextBlockTags, filterTag)), "@foldkit/devtools/overlay.js#anonymous~
|
|
668
|
+
const isFilterStale = Option.exists(model.maybeBlockFilter, filterTag => __foldkitBrandViewResult((!Array.contains(nextBlockTags, filterTag)), "@foldkit/devtools/overlay.js#anonymous~54"));
|
|
669
669
|
const sliderMax = entries.length;
|
|
670
670
|
const targetSliderValue = isPaused
|
|
671
671
|
? hostIndexToSliderValue(pausedAtIndex, startIndex)
|
|
@@ -682,17 +682,17 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
682
682
|
blockTags: () => __foldkitBrandViewResult((nextBlockTags), "@foldkit/devtools/overlay.js#blockTags"),
|
|
683
683
|
maybeBlockFilter: current => __foldkitBrandViewResult((isFilterStale ? Option.none() : current), "@foldkit/devtools/overlay.js#maybeBlockFilter~3"),
|
|
684
684
|
selectedIndex: current => __foldkitBrandViewResult((shouldFollowSelection ? latestIndex : current), "@foldkit/devtools/overlay.js#selectedIndex~4"),
|
|
685
|
-
scrubberValue: current => __foldkitBrandViewResult((Match.value(model.scrubberSlider.dragState).pipe(Match.tag('Dragging', () => __foldkitBrandViewResult((Slider.snapAndClamp(current, 0, sliderMax, 1)), "@foldkit/devtools/overlay.js#anonymous~
|
|
685
|
+
scrubberValue: current => __foldkitBrandViewResult((Match.value(model.scrubberSlider.dragState).pipe(Match.tag('Dragging', () => __foldkitBrandViewResult((Slider.snapAndClamp(current, 0, sliderMax, 1)), "@foldkit/devtools/overlay.js#anonymous~56")), Match.orElse(() => __foldkitBrandViewResult((Slider.snapAndClamp(targetSliderValue, 0, sliderMax, 1)), "@foldkit/devtools/overlay.js#anonymous~57")))), "@foldkit/devtools/overlay.js#scrubberValue~2"),
|
|
686
686
|
}),
|
|
687
687
|
commands: [
|
|
688
|
-
...Array.filter([InspectLatest()], () => __foldkitBrandViewResult((shouldFollowSelection), "@foldkit/devtools/overlay.js#anonymous~
|
|
689
|
-
...Array.filter([ScrollToTop()], () => __foldkitBrandViewResult((shouldFollowScroll), "@foldkit/devtools/overlay.js#anonymous~
|
|
688
|
+
...Array.filter([InspectLatest()], () => __foldkitBrandViewResult((shouldFollowSelection), "@foldkit/devtools/overlay.js#anonymous~58")),
|
|
689
|
+
...Array.filter([ScrollToTop()], () => __foldkitBrandViewResult((shouldFollowScroll), "@foldkit/devtools/overlay.js#anonymous~59")),
|
|
690
690
|
],
|
|
691
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
691
|
+
}), "@foldkit/devtools/overlay.js#anonymous~55"))),
|
|
692
692
|
bindings.ScrubberBinding.informRangeChanged({ min: 0, max: sliderMax }),
|
|
693
693
|
])), "@foldkit/devtools/overlay.js#ReceivedStoreUpdate");
|
|
694
694
|
},
|
|
695
|
-
TickedScrubFrame:
|
|
695
|
+
TickedScrubFrame: model => __foldkitBrandViewResult((Option.match(model.maybePendingScrubIndex, {
|
|
696
696
|
onNone: () => (__foldkitBrandViewResult(({ model }), "@foldkit/devtools/overlay.js#onNone~2")),
|
|
697
697
|
onSome: hostIndex => (__foldkitBrandViewResult(({
|
|
698
698
|
model: modifyFields(model, {
|
|
@@ -701,13 +701,13 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
701
701
|
commands: [JumpToAndInspect({ index: hostIndex })],
|
|
702
702
|
}), "@foldkit/devtools/overlay.js#onSome~2")),
|
|
703
703
|
})), "@foldkit/devtools/overlay.js#TickedScrubFrame"),
|
|
704
|
-
CompletedResume: ()
|
|
705
|
-
CompletedClear: ()
|
|
706
|
-
CompletedPersistDevToolsState: ()
|
|
707
|
-
CompletedLockScroll: ()
|
|
708
|
-
CompletedUnlockScroll: ()
|
|
709
|
-
CompletedScrollToTop: ()
|
|
710
|
-
SucceededCopyPayloadToClipboard: ({ targetId, requestId }) => __foldkitBrandViewResult((Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copying' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~
|
|
704
|
+
CompletedResume: ApplicationDefinition.makeNoopStep(),
|
|
705
|
+
CompletedClear: ApplicationDefinition.makeNoopStep(),
|
|
706
|
+
CompletedPersistDevToolsState: ApplicationDefinition.makeNoopStep(),
|
|
707
|
+
CompletedLockScroll: ApplicationDefinition.makeNoopStep(),
|
|
708
|
+
CompletedUnlockScroll: ApplicationDefinition.makeNoopStep(),
|
|
709
|
+
CompletedScrollToTop: ApplicationDefinition.makeNoopStep(),
|
|
710
|
+
SucceededCopyPayloadToClipboard: (model, { targetId, requestId }) => __foldkitBrandViewResult((Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copying' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~60"))
|
|
711
711
|
? {
|
|
712
712
|
model: modifyFields(model, {
|
|
713
713
|
copyStates: states => __foldkitBrandViewResult((HashMap.set(states, targetId, CopyState.Copied({ requestId }))), "@foldkit/devtools/overlay.js#copyStates~3"),
|
|
@@ -715,19 +715,19 @@ const update = ApplicationComposition.makeUpdate((model, message) => __foldkitBr
|
|
|
715
715
|
commands: [WaitBeforeHidingCopyIndicator({ targetId, requestId })],
|
|
716
716
|
}
|
|
717
717
|
: { model }), "@foldkit/devtools/overlay.js#SucceededCopyPayloadToClipboard"),
|
|
718
|
-
FailedCopyPayloadToClipboard: ({ targetId, requestId }) => (__foldkitBrandViewResult(({
|
|
719
|
-
model: Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copying' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~
|
|
718
|
+
FailedCopyPayloadToClipboard: (model, { targetId, requestId }) => (__foldkitBrandViewResult(({
|
|
719
|
+
model: Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copying' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~61"))
|
|
720
720
|
? modifyFields(model, { copyStates: HashMap.remove(targetId) })
|
|
721
721
|
: model,
|
|
722
722
|
}), "@foldkit/devtools/overlay.js#FailedCopyPayloadToClipboard")),
|
|
723
|
-
CompletedWaitBeforeHidingCopyIndicator: ({ targetId, requestId }) => (__foldkitBrandViewResult(({
|
|
724
|
-
model: Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copied' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~
|
|
723
|
+
CompletedWaitBeforeHidingCopyIndicator: (model, { targetId, requestId }) => (__foldkitBrandViewResult(({
|
|
724
|
+
model: Option.exists(HashMap.get(model.copyStates, targetId), state => __foldkitBrandViewResult((state._tag === 'Copied' && state.requestId === requestId), "@foldkit/devtools/overlay.js#anonymous~62"))
|
|
725
725
|
? modifyFields(model, {
|
|
726
726
|
copyStates: HashMap.remove(targetId),
|
|
727
727
|
})
|
|
728
728
|
: model,
|
|
729
729
|
}), "@foldkit/devtools/overlay.js#CompletedWaitBeforeHidingCopyIndicator")),
|
|
730
|
-
})
|
|
730
|
+
});
|
|
731
731
|
// VIEW
|
|
732
732
|
const indexClass = 'text-2xs text-dt-muted font-mono min-w-5';
|
|
733
733
|
const headerButtonClass = 'dt-header-button bg-transparent border-none text-dt-muted cursor-pointer text-base font-mono transition-colors';
|
|
@@ -761,11 +761,11 @@ const makeView = (bindings) => {
|
|
|
761
761
|
const shadow = getDevToolsShadowRoot();
|
|
762
762
|
const existingView = views.get(shadow);
|
|
763
763
|
if (existingView !== undefined) {
|
|
764
|
-
return __foldkitBrandViewResult((existingView(model)), "@foldkit/devtools/overlay.js#anonymous~
|
|
764
|
+
return __foldkitBrandViewResult((existingView(model)), "@foldkit/devtools/overlay.js#anonymous~63");
|
|
765
765
|
}
|
|
766
766
|
const view = buildOverlayView(model.position, model.mode, shadow, model.maybeBanner, bindings, h);
|
|
767
767
|
views.set(shadow, view);
|
|
768
|
-
return __foldkitBrandViewResult((view(model)), "@foldkit/devtools/overlay.js#anonymous~
|
|
768
|
+
return __foldkitBrandViewResult((view(model)), "@foldkit/devtools/overlay.js#anonymous~63");
|
|
769
769
|
}), "@foldkit/devtools/overlay.js#makeView");
|
|
770
770
|
};
|
|
771
771
|
const view = ApplicationComposition.makeView(makeView(bindings));
|
|
@@ -784,7 +784,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
784
784
|
const lazyMessageList = createLazy();
|
|
785
785
|
// JSON TREE
|
|
786
786
|
const leafSpan = (className, text) => __foldkitBrandViewResult((h.span([h.Class(className)], [text])), "@foldkit/devtools/overlay.js#leafSpan");
|
|
787
|
-
const leafValueView = (value) => __foldkitBrandViewResult((Match.value(value).pipe(Match.when(Predicate.isNull, () => __foldkitBrandViewResult((leafSpan('json-null italic', 'null')), "@foldkit/devtools/overlay.js#anonymous~
|
|
787
|
+
const leafValueView = (value) => __foldkitBrandViewResult((Match.value(value).pipe(Match.when(Predicate.isNull, () => __foldkitBrandViewResult((leafSpan('json-null italic', 'null')), "@foldkit/devtools/overlay.js#anonymous~64")), Match.when(Predicate.isUndefined, () => __foldkitBrandViewResult((leafSpan('json-null italic', 'undefined')), "@foldkit/devtools/overlay.js#anonymous~65")), Match.when(Predicate.isString, stringValue => __foldkitBrandViewResult((leafSpan('json-string', `"${stringValue}"`)), "@foldkit/devtools/overlay.js#anonymous~66")), Match.when(Predicate.isNumber, numberValue => __foldkitBrandViewResult((leafSpan('json-number', globalThis.String(numberValue))), "@foldkit/devtools/overlay.js#anonymous~67")), Match.when(Predicate.isBoolean, booleanValue => __foldkitBrandViewResult((leafSpan('json-boolean', globalThis.String(booleanValue))), "@foldkit/devtools/overlay.js#anonymous~68")), Match.orElse(unknownValue => __foldkitBrandViewResult((leafSpan('json-null', globalThis.String(unknownValue))), "@foldkit/devtools/overlay.js#anonymous~69")))), "@foldkit/devtools/overlay.js#leafValueView");
|
|
788
788
|
const keyView = (key) => __foldkitBrandViewResult((h.span([h.Class('json-key')], [`${key}:\u00a0`])), "@foldkit/devtools/overlay.js#keyView");
|
|
789
789
|
const CHEVRON_RIGHT = 'M8.25 4.5l7.5 7.5-7.5 7.5';
|
|
790
790
|
const CHEVRON_DOWN = 'M19.5 8.25l-7.5 7.5-7.5-7.5';
|
|
@@ -808,8 +808,8 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
808
808
|
const tagLabelView = (tag) => __foldkitBrandViewResult((h.span([h.Class('json-tag')], [tag])), "@foldkit/devtools/overlay.js#tagLabelView");
|
|
809
809
|
const copyPayloadButtonView = (payload, targetId, copyStates, subject) => {
|
|
810
810
|
const maybeCopyState = HashMap.get(copyStates, targetId);
|
|
811
|
-
const isCopying = Option.exists(maybeCopyState, state => __foldkitBrandViewResult((state._tag === 'Copying'), "@foldkit/devtools/overlay.js#anonymous~
|
|
812
|
-
const isCopied = Option.exists(maybeCopyState, state => __foldkitBrandViewResult((state._tag === 'Copied'), "@foldkit/devtools/overlay.js#anonymous~
|
|
811
|
+
const isCopying = Option.exists(maybeCopyState, state => __foldkitBrandViewResult((state._tag === 'Copying'), "@foldkit/devtools/overlay.js#anonymous~70"));
|
|
812
|
+
const isCopied = Option.exists(maybeCopyState, state => __foldkitBrandViewResult((state._tag === 'Copied'), "@foldkit/devtools/overlay.js#anonymous~71"));
|
|
813
813
|
const ariaLabel = Option.match(maybeCopyState, {
|
|
814
814
|
onNone: () => __foldkitBrandViewResult((`Copy ${subject} as JSON`), "@foldkit/devtools/overlay.js#onNone~3"),
|
|
815
815
|
onSome: CopyState.match({
|
|
@@ -895,16 +895,16 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
895
895
|
treePath: `${treePath}.${arrayIndex}`,
|
|
896
896
|
depth: childDepth,
|
|
897
897
|
key: globalThis.String(arrayIndex),
|
|
898
|
-
})), "@foldkit/devtools/overlay.js#anonymous~
|
|
898
|
+
})), "@foldkit/devtools/overlay.js#anonymous~72"));
|
|
899
899
|
}
|
|
900
900
|
else if (Predicate.isObject(value)) {
|
|
901
|
-
pipe(value, Record.toEntries, Array.filter(([entryKey]) => __foldkitBrandViewResult((entryKey !== '_tag'), "@foldkit/devtools/overlay.js#anonymous~
|
|
901
|
+
pipe(value, Record.toEntries, Array.filter(([entryKey]) => __foldkitBrandViewResult((entryKey !== '_tag'), "@foldkit/devtools/overlay.js#anonymous~73")), Array.forEach(([entryKey, childValue]) => __foldkitBrandViewResult((flattenTree({
|
|
902
902
|
...shared,
|
|
903
903
|
value: childValue,
|
|
904
904
|
treePath: `${treePath}.${entryKey}`,
|
|
905
905
|
depth: childDepth,
|
|
906
906
|
key: entryKey,
|
|
907
|
-
})), "@foldkit/devtools/overlay.js#anonymous~
|
|
907
|
+
})), "@foldkit/devtools/overlay.js#anonymous~74")));
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
const flatNodeView = (value, treePath, depth, key, nodeIsExpandable, isExpanded, isChanged, isAffected, isRoot, tag) => {
|
|
@@ -924,7 +924,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
924
924
|
'diff-changed': isChanged,
|
|
925
925
|
})),
|
|
926
926
|
indent,
|
|
927
|
-
], rowSegments.map(segment => __foldkitBrandViewResult((h.keyed('li')(segment._tag, [h.Class('contents')], [rowSegmentView(segment)])), "@foldkit/devtools/overlay.js#anonymous~
|
|
927
|
+
], rowSegments.map(segment => __foldkitBrandViewResult((h.keyed('li')(segment._tag, [h.Class('contents')], [rowSegmentView(segment)])), "@foldkit/devtools/overlay.js#anonymous~75")))), "@foldkit/devtools/overlay.js#flatNodeView");
|
|
928
928
|
}
|
|
929
929
|
const preview = isExpanded
|
|
930
930
|
? globalThis.Array.isArray(value)
|
|
@@ -948,7 +948,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
948
948
|
...(isRoot
|
|
949
949
|
? []
|
|
950
950
|
: [h.OnClick(Message.ToggledTreeNode({ path: treePath }))]),
|
|
951
|
-
], rowSegments.map(segment => __foldkitBrandViewResult((h.keyed('li')(segment._tag, [h.Class('contents')], [rowSegmentView(segment)])), "@foldkit/devtools/overlay.js#anonymous~
|
|
951
|
+
], rowSegments.map(segment => __foldkitBrandViewResult((h.keyed('li')(segment._tag, [h.Class('contents')], [rowSegmentView(segment)])), "@foldkit/devtools/overlay.js#anonymous~76")))), "@foldkit/devtools/overlay.js#flatNodeView");
|
|
952
952
|
};
|
|
953
953
|
const renderFlatNode = (node) => __foldkitBrandViewResult((lazyTreeNode(node.treePath, flatNodeView, [
|
|
954
954
|
node.value,
|
|
@@ -972,7 +972,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
972
972
|
changedPaths,
|
|
973
973
|
affectedPaths,
|
|
974
974
|
depth: 0,
|
|
975
|
-
key: Option.getOrElse(maybeRootLabel, () => __foldkitBrandViewResult((''), "@foldkit/devtools/overlay.js#anonymous~
|
|
975
|
+
key: Option.getOrElse(maybeRootLabel, () => __foldkitBrandViewResult((''), "@foldkit/devtools/overlay.js#anonymous~77")),
|
|
976
976
|
accumulator: nodes,
|
|
977
977
|
indentRootChildren,
|
|
978
978
|
});
|
|
@@ -995,8 +995,8 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
995
995
|
const remainingMs = delta % MILLIS_PER_SECOND;
|
|
996
996
|
return __foldkitBrandViewResult((seconds > 0
|
|
997
997
|
? `+${seconds}s ${remainingMs.toFixed(1)}ms`
|
|
998
|
-
: `+${remainingMs.toFixed(1)}ms`), "@foldkit/devtools/overlay.js#anonymous~
|
|
999
|
-
}), Option.getOrElse(() => __foldkitBrandViewResult((''), "@foldkit/devtools/overlay.js#anonymous~
|
|
998
|
+
: `+${remainingMs.toFixed(1)}ms`), "@foldkit/devtools/overlay.js#anonymous~78");
|
|
999
|
+
}), Option.getOrElse(() => __foldkitBrandViewResult((''), "@foldkit/devtools/overlay.js#anonymous~79")))), "@foldkit/devtools/overlay.js#inspectedTimestamp");
|
|
1000
1000
|
};
|
|
1001
1001
|
const emptyInspectorView = h.div([
|
|
1002
1002
|
h.Class('flex-1 flex items-center justify-center text-dt-muted text-2xs font-mono min-w-0'),
|
|
@@ -1059,7 +1059,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1059
1059
|
h.Class('flex items-center justify-between px-2 py-1 border-b text-2xs text-dt-muted font-mono shrink-0'),
|
|
1060
1060
|
], [
|
|
1061
1061
|
h.span([], [timestamp]),
|
|
1062
|
-
copyPayloadButtonView(message, `Message:${selectedIndex}:${isFlattened}:${Option.getOrElse(maybeBlockFilter, () => __foldkitBrandViewResult(('All'), "@foldkit/devtools/overlay.js#anonymous~
|
|
1062
|
+
copyPayloadButtonView(message, `Message:${selectedIndex}:${isFlattened}:${Option.getOrElse(maybeBlockFilter, () => __foldkitBrandViewResult(('All'), "@foldkit/devtools/overlay.js#anonymous~80"))}`, copyStates, 'Message payload'),
|
|
1063
1063
|
]),
|
|
1064
1064
|
h.div([h.Class('flex flex-col flex-1 min-h-0 min-w-0 pt-1 pl-1')], [
|
|
1065
1065
|
treeView(message, 'root', expandedPaths, HashSet.empty(), HashSet.empty(), Option.none(), false),
|
|
@@ -1072,7 +1072,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1072
1072
|
onEmpty: () => __foldkitBrandViewResult((INIT_INDEX), "@foldkit/devtools/overlay.js#onEmpty~4"),
|
|
1073
1073
|
onNonEmpty: () => __foldkitBrandViewResult((model.startIndex + model.entries.length - 1), "@foldkit/devtools/overlay.js#onNonEmpty~4"),
|
|
1074
1074
|
});
|
|
1075
|
-
return __foldkitBrandViewResult((Match.value(mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((model.isPaused ? model.pausedAtIndex : lastIndex), "@foldkit/devtools/overlay.js#anonymous~
|
|
1075
|
+
return __foldkitBrandViewResult((Match.value(mode).pipe(Match.when('TimeTravel', () => __foldkitBrandViewResult((model.isPaused ? model.pausedAtIndex : lastIndex), "@foldkit/devtools/overlay.js#anonymous~81")), Match.when('Inspect', () => __foldkitBrandViewResult((model.selectedIndex), "@foldkit/devtools/overlay.js#anonymous~82")), Match.exhaustive)), "@foldkit/devtools/overlay.js#selectedHistoryIndex");
|
|
1076
1076
|
};
|
|
1077
1077
|
const selectedCommands = (model) => {
|
|
1078
1078
|
const selectedIndex = selectedHistoryIndex(model);
|
|
@@ -1080,7 +1080,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1080
1080
|
return __foldkitBrandViewResult((model.initCommands), "@foldkit/devtools/overlay.js#selectedCommands");
|
|
1081
1081
|
}
|
|
1082
1082
|
else {
|
|
1083
|
-
return __foldkitBrandViewResult((pipe(model.entries, Array.get(selectedIndex - model.startIndex), Option.map(entry => __foldkitBrandViewResult((entry.commands), "@foldkit/devtools/overlay.js#anonymous~
|
|
1083
|
+
return __foldkitBrandViewResult((pipe(model.entries, Array.get(selectedIndex - model.startIndex), Option.map(entry => __foldkitBrandViewResult((entry.commands), "@foldkit/devtools/overlay.js#anonymous~83")), Option.getOrElse(() => __foldkitBrandViewResult((NO_COMMANDS), "@foldkit/devtools/overlay.js#anonymous~84")))), "@foldkit/devtools/overlay.js#selectedCommands");
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
1086
|
const flattenCommand = (command, index, expandedPaths) => {
|
|
@@ -1129,7 +1129,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1129
1129
|
...Array.map(flattenCommand(command, index, expandedPaths), renderFlatNode),
|
|
1130
1130
|
]),
|
|
1131
1131
|
copyPayloadButtonView(taggedPayload(command.name, command.args), `Command:${selectedIndex}:${index}`, copyStates, `Command ${index + 1} (${command.name}) payload`),
|
|
1132
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1132
|
+
])), "@foldkit/devtools/overlay.js#anonymous~85")))), "@foldkit/devtools/overlay.js#onNonEmpty~5"),
|
|
1133
1133
|
})), "@foldkit/devtools/overlay.js#commandsTabContent");
|
|
1134
1134
|
const selectedMountActivity = (model) => {
|
|
1135
1135
|
const selectedIndex = selectedHistoryIndex(model);
|
|
@@ -1172,7 +1172,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1172
1172
|
h.span([h.Class(indexClass)], [globalThis.String(index + 1)]),
|
|
1173
1173
|
h.div([h.Class('flex flex-col flex-1 min-w-0')], Array.map(flattenMount(mount, label, index, expandedPaths), renderFlatNode)),
|
|
1174
1174
|
copyPayloadButtonView(taggedPayload(mount.name, mount.args), `Mount:${selectedIndex}:${label}:${index}`, copyStates, `${label} Mount ${index + 1} (${mount.name}) payload`),
|
|
1175
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1175
|
+
])), "@foldkit/devtools/overlay.js#anonymous~86")),
|
|
1176
1176
|
])), "@foldkit/devtools/overlay.js#mountListSection");
|
|
1177
1177
|
const mountsTabContent = (starts, ends, expandedPaths, selectedIndex, copyStates) => {
|
|
1178
1178
|
const hasAny = Array.isReadonlyArrayNonEmpty(starts) ||
|
|
@@ -1206,7 +1206,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1206
1206
|
model.affectedPaths,
|
|
1207
1207
|
selectedIndex,
|
|
1208
1208
|
model.copyStates,
|
|
1209
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1209
|
+
])), "@foldkit/devtools/overlay.js#anonymous~87")), Match.when('Message', () => __foldkitBrandViewResult((lazyTabContent('Message', messageTabContent, [
|
|
1210
1210
|
model.maybeInspectedMessage,
|
|
1211
1211
|
model.maybeBlockFilter,
|
|
1212
1212
|
model.isFlattened,
|
|
@@ -1214,12 +1214,12 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1214
1214
|
inspectedTimestamp(model),
|
|
1215
1215
|
selectedIndex,
|
|
1216
1216
|
model.copyStates,
|
|
1217
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1217
|
+
])), "@foldkit/devtools/overlay.js#anonymous~88")), Match.when('Commands', () => __foldkitBrandViewResult((lazyTabContent('Commands', commandsTabContent, [
|
|
1218
1218
|
selectedCommands(model),
|
|
1219
1219
|
model.expandedPaths,
|
|
1220
1220
|
selectedIndex,
|
|
1221
1221
|
model.copyStates,
|
|
1222
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1222
|
+
])), "@foldkit/devtools/overlay.js#anonymous~89")), Match.when('Mounts', () => {
|
|
1223
1223
|
const { starts, ends } = selectedMountActivity(model);
|
|
1224
1224
|
return __foldkitBrandViewResult((lazyTabContent('Mounts', mountsTabContent, [
|
|
1225
1225
|
starts,
|
|
@@ -1227,7 +1227,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1227
1227
|
model.expandedPaths,
|
|
1228
1228
|
selectedIndex,
|
|
1229
1229
|
model.copyStates,
|
|
1230
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1230
|
+
])), "@foldkit/devtools/overlay.js#anonymous~90");
|
|
1231
1231
|
}), Match.exhaustive)), "@foldkit/devtools/overlay.js#inspectorTabContent");
|
|
1232
1232
|
};
|
|
1233
1233
|
const inspectorPaneView = (model) => __foldkitBrandViewResult((h.div([
|
|
@@ -1247,7 +1247,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1247
1247
|
h.Class(clsx('dt-tab-button cursor-pointer text-base font-mono px-3 py-1', tab.isActive
|
|
1248
1248
|
? 'text-dt dt-tab-active'
|
|
1249
1249
|
: 'text-dt-muted')),
|
|
1250
|
-
], [h.span([], [tab.value])])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1250
|
+
], [h.span([], [tab.value])])), "@foldkit/devtools/overlay.js#anonymous~91"))),
|
|
1251
1251
|
...tabs.map(tab => __foldkitBrandViewResult((h.div([
|
|
1252
1252
|
...tab.panel,
|
|
1253
1253
|
h.Class('flex flex-col flex-1 min-h-0 min-w-0'),
|
|
@@ -1260,7 +1260,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1260
1260
|
onNone: () => __foldkitBrandViewResult((emptyInspectorView), "@foldkit/devtools/overlay.js#onNone~7"),
|
|
1261
1261
|
onSome: inspectedModel => __foldkitBrandViewResult((inspectorTabContent(model, tab.value, inspectedModel)), "@foldkit/devtools/overlay.js#onSome~7"),
|
|
1262
1262
|
}),
|
|
1263
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1263
|
+
])), "@foldkit/devtools/overlay.js#anonymous~92")),
|
|
1264
1264
|
])), "@foldkit/devtools/overlay.js#toView"),
|
|
1265
1265
|
},
|
|
1266
1266
|
})),
|
|
@@ -1342,7 +1342,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1342
1342
|
model: model.blockFilterListbox,
|
|
1343
1343
|
viewInputs: {
|
|
1344
1344
|
items: [ALL_MESSAGES_VALUE, ...model.blockTags],
|
|
1345
|
-
maybeSelectedValue: Option.orElseSome(model.maybeBlockFilter, () => __foldkitBrandViewResult((ALL_MESSAGES_VALUE), "@foldkit/devtools/overlay.js#anonymous~
|
|
1345
|
+
maybeSelectedValue: Option.orElseSome(model.maybeBlockFilter, () => __foldkitBrandViewResult((ALL_MESSAGES_VALUE), "@foldkit/devtools/overlay.js#anonymous~93")),
|
|
1346
1346
|
itemToConfig: item => (__foldkitBrandViewResult(({
|
|
1347
1347
|
className: 'dt-filter-item',
|
|
1348
1348
|
content: h.div([h.Class('flex items-center gap-2')], [checkIconView, h.span([], [filterItemLabel(item)])]),
|
|
@@ -1411,7 +1411,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1411
1411
|
: {
|
|
1412
1412
|
status: h.span([h.Class(`${statusClass} text-dt-live font-medium`)], ['Live']),
|
|
1413
1413
|
maybeAction: Option.none(),
|
|
1414
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
1414
|
+
}), "@foldkit/devtools/overlay.js#anonymous~94")), Match.when('Inspect', () => (__foldkitBrandViewResult(({
|
|
1415
1415
|
status: h.span([h.Class(`${statusClass} text-dt-accent`)], [
|
|
1416
1416
|
model.selectedIndex === INIT_INDEX
|
|
1417
1417
|
? 'Inspecting (init)'
|
|
@@ -1421,8 +1421,8 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1421
1421
|
h.Class(actionButtonClass),
|
|
1422
1422
|
h.OnClick(Message.ClickedFollowLatest()),
|
|
1423
1423
|
], ['Follow Latest →'])),
|
|
1424
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
1425
|
-
const clearHistoryButtons = Array.filter([clearHistoryButton()], () => __foldkitBrandViewResult((!model.isPaused), "@foldkit/devtools/overlay.js#anonymous~
|
|
1424
|
+
}), "@foldkit/devtools/overlay.js#anonymous~95"))), Match.exhaustive);
|
|
1425
|
+
const clearHistoryButtons = Array.filter([clearHistoryButton()], () => __foldkitBrandViewResult((!model.isPaused), "@foldkit/devtools/overlay.js#anonymous~96"));
|
|
1426
1426
|
return __foldkitBrandViewResult((h.header([h.Class(headerClass)], [status, ...Option.toArray(maybeAction), ...clearHistoryButtons])), "@foldkit/devtools/overlay.js#headerView");
|
|
1427
1427
|
};
|
|
1428
1428
|
const initRowView = (isSelected, isPausedHere) => __foldkitBrandViewResult((h.keyed('li')('init', [
|
|
@@ -1431,7 +1431,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1431
1431
|
], [
|
|
1432
1432
|
...Array.filter([
|
|
1433
1433
|
h.span([h.Class('pause-column')], isPausedHere ? [pauseIconView] : []),
|
|
1434
|
-
], () => __foldkitBrandViewResult((mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~
|
|
1434
|
+
], () => __foldkitBrandViewResult((mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~97")),
|
|
1435
1435
|
h.span([h.Class('dot-column')]),
|
|
1436
1436
|
h.span([h.Class(indexClass)]),
|
|
1437
1437
|
h.span([h.Class('text-base text-dt-muted font-mono')], ['init']),
|
|
@@ -1457,7 +1457,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1457
1457
|
], [
|
|
1458
1458
|
...Array.filter([
|
|
1459
1459
|
h.span([h.Class('pause-column')], isPausedHere ? [pauseIconView] : []),
|
|
1460
|
-
], () => __foldkitBrandViewResult((mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~
|
|
1460
|
+
], () => __foldkitBrandViewResult((mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~98")),
|
|
1461
1461
|
h.span([h.Class('dot-column')], isModelChanged ? [inlineDiffDotView] : []),
|
|
1462
1462
|
h.span([h.Class(indexClass)], [globalThis.String(absoluteIndex + 1)]),
|
|
1463
1463
|
h.span([h.Class('text-base text-dt font-mono flex-1 truncate')], [tag]),
|
|
@@ -1472,7 +1472,7 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1472
1472
|
}));
|
|
1473
1473
|
const isInitSelected = selectedIndex === INIT_INDEX;
|
|
1474
1474
|
const isFiltered = Option.isSome(maybeFilterTag);
|
|
1475
|
-
const leafOrTag = (entry) => __foldkitBrandViewResult((Option.getOrElse(entry.maybeLeafTag, () => __foldkitBrandViewResult((entry.tag), "@foldkit/devtools/overlay.js#anonymous~
|
|
1475
|
+
const leafOrTag = (entry) => __foldkitBrandViewResult((Option.getOrElse(entry.maybeLeafTag, () => __foldkitBrandViewResult((entry.tag), "@foldkit/devtools/overlay.js#anonymous~99"))), "@foldkit/devtools/overlay.js#leafOrTag");
|
|
1476
1476
|
const displayTagFor = (entry) => {
|
|
1477
1477
|
if (isFlattened) {
|
|
1478
1478
|
return __foldkitBrandViewResult((leafOrTag(entry)), "@foldkit/devtools/overlay.js#displayTagFor");
|
|
@@ -1480,15 +1480,15 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1480
1480
|
else {
|
|
1481
1481
|
return __foldkitBrandViewResult((Option.match(maybeFilterTag, {
|
|
1482
1482
|
onNone: () => __foldkitBrandViewResult((entry.tag), "@foldkit/devtools/overlay.js#onNone~10"),
|
|
1483
|
-
onSome: filterTag => __foldkitBrandViewResult((pipe(entry.blockPath, Array.findFirstIndex(pathTag => __foldkitBrandViewResult((pathTag === filterTag), "@foldkit/devtools/overlay.js#anonymous~
|
|
1483
|
+
onSome: filterTag => __foldkitBrandViewResult((pipe(entry.blockPath, Array.findFirstIndex(pathTag => __foldkitBrandViewResult((pathTag === filterTag), "@foldkit/devtools/overlay.js#anonymous~100")), Option.flatMap(filterIndex => __foldkitBrandViewResult((Array.get(entry.blockPath, Number.increment(filterIndex))), "@foldkit/devtools/overlay.js#anonymous~101")), Option.orElse(() => __foldkitBrandViewResult((entry.maybeLeafTag), "@foldkit/devtools/overlay.js#anonymous~102")), Option.getOrElse(() => __foldkitBrandViewResult((entry.tag), "@foldkit/devtools/overlay.js#anonymous~103")))), "@foldkit/devtools/overlay.js#onSome~9"),
|
|
1484
1484
|
})), "@foldkit/devtools/overlay.js#displayTagFor");
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
1487
|
const indexedEntries = pipe(entries, Array.map((entry, arrayIndex) => (__foldkitBrandViewResult(({
|
|
1488
1488
|
entry,
|
|
1489
1489
|
absoluteIndex: startIndex + arrayIndex,
|
|
1490
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
1491
|
-
? Array.filter(({ entry }) => __foldkitBrandViewResult((Array.contains(entry.blockPath, maybeFilterTag.value)), "@foldkit/devtools/overlay.js#anonymous~
|
|
1490
|
+
}), "@foldkit/devtools/overlay.js#anonymous~104"))), isFiltered
|
|
1491
|
+
? Array.filter(({ entry }) => __foldkitBrandViewResult((Array.contains(entry.blockPath, maybeFilterTag.value)), "@foldkit/devtools/overlay.js#anonymous~105"))
|
|
1492
1492
|
: Function.identity);
|
|
1493
1493
|
const messageRows = pipe(indexedEntries, Array.map(({ entry, absoluteIndex }) => {
|
|
1494
1494
|
const isSelected = selectedIndex === absoluteIndex;
|
|
@@ -1501,11 +1501,11 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1501
1501
|
isPausedHere,
|
|
1502
1502
|
entry.timestamp - baseTimestamp,
|
|
1503
1503
|
entry.isModelChanged,
|
|
1504
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1504
|
+
])), "@foldkit/devtools/overlay.js#anonymous~106");
|
|
1505
1505
|
}), Array.reverse);
|
|
1506
1506
|
return __foldkitBrandViewResult((h.ul([
|
|
1507
1507
|
h.Class('message-list flex-1 overflow-y-auto min-h-0 overscroll-none'),
|
|
1508
|
-
h.OnScroll(scrollTop => __foldkitBrandViewResult((Message.ScrolledMessageList({ scrollTop })), "@foldkit/devtools/overlay.js#anonymous~
|
|
1508
|
+
h.OnScroll(scrollTop => __foldkitBrandViewResult((Message.ScrolledMessageList({ scrollTop })), "@foldkit/devtools/overlay.js#anonymous~107")),
|
|
1509
1509
|
], isFiltered
|
|
1510
1510
|
? messageRows
|
|
1511
1511
|
: [
|
|
@@ -1616,12 +1616,12 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1616
1616
|
h.Class('dt-footer flex items-center gap-3 px-3 py-2 border-t shrink-0'),
|
|
1617
1617
|
], [
|
|
1618
1618
|
settingsToggleView(model.screen),
|
|
1619
|
-
...Array.filter([scrubberView(model)], () => __foldkitBrandViewResult((isScrubberVisible), "@foldkit/devtools/overlay.js#anonymous~
|
|
1619
|
+
...Array.filter([scrubberView(model)], () => __foldkitBrandViewResult((isScrubberVisible), "@foldkit/devtools/overlay.js#anonymous~108")),
|
|
1620
1620
|
])), "@foldkit/devtools/overlay.js#footerView");
|
|
1621
1621
|
// PANEL
|
|
1622
1622
|
const messagesScreenView = (model) => {
|
|
1623
|
-
const blockFilterViews = Array.filter([blockFilterView(model)], () => __foldkitBrandViewResult((Array.isReadonlyArrayNonEmpty(model.blockTags)), "@foldkit/devtools/overlay.js#anonymous~
|
|
1624
|
-
const scrollToTopPillViews = Array.filter([scrollToTopPillView()], () => __foldkitBrandViewResult((!model.isFollowingTop), "@foldkit/devtools/overlay.js#anonymous~
|
|
1623
|
+
const blockFilterViews = Array.filter([blockFilterView(model)], () => __foldkitBrandViewResult((Array.isReadonlyArrayNonEmpty(model.blockTags)), "@foldkit/devtools/overlay.js#anonymous~109"));
|
|
1624
|
+
const scrollToTopPillViews = Array.filter([scrollToTopPillView()], () => __foldkitBrandViewResult((!model.isFollowingTop), "@foldkit/devtools/overlay.js#anonymous~110"));
|
|
1625
1625
|
return __foldkitBrandViewResult((h.div([h.Class('flex flex-1 min-h-0 dt-content')], [
|
|
1626
1626
|
h.div([h.Class('flex flex-col min-h-0 dt-message-pane')], [
|
|
1627
1627
|
...blockFilterViews,
|
|
@@ -1631,23 +1631,23 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, bindings, h) => {
|
|
|
1631
1631
|
inspectorPaneView(model),
|
|
1632
1632
|
])), "@foldkit/devtools/overlay.js#messagesScreenView");
|
|
1633
1633
|
};
|
|
1634
|
-
const contentView = (model) => __foldkitBrandViewResult((Match.value(model.screen).pipe(Match.withReturnType(), Match.when('Messages', () => __foldkitBrandViewResult((messagesScreenView(model)), "@foldkit/devtools/overlay.js#anonymous~
|
|
1634
|
+
const contentView = (model) => __foldkitBrandViewResult((Match.value(model.screen).pipe(Match.withReturnType(), Match.when('Messages', () => __foldkitBrandViewResult((messagesScreenView(model)), "@foldkit/devtools/overlay.js#anonymous~111")), Match.when('Settings', () => __foldkitBrandViewResult((settingsScreenView(model)), "@foldkit/devtools/overlay.js#anonymous~112")), Match.exhaustive)), "@foldkit/devtools/overlay.js#contentView");
|
|
1635
1635
|
const panelView = (model) => __foldkitBrandViewResult((h.div([
|
|
1636
1636
|
h.Class(clsx('fixed dt-panel dt-panel-wide bg-dt-bg border rounded-lg flex flex-col overflow-hidden font-mono text-dt', PANEL_POSITION_CLASS[position])),
|
|
1637
1637
|
], [
|
|
1638
1638
|
...Option.map(maybeBanner, banner => __foldkitBrandViewResult((h.div([
|
|
1639
1639
|
h.Class('px-3 py-2 border-b text-sm text-dt-muted font-mono shrink-0 leading-snug'),
|
|
1640
|
-
], [banner])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1640
|
+
], [banner])), "@foldkit/devtools/overlay.js#anonymous~113")).pipe(Option.toArray),
|
|
1641
1641
|
headerView(model),
|
|
1642
1642
|
contentView(model),
|
|
1643
1643
|
footerView(model),
|
|
1644
1644
|
])), "@foldkit/devtools/overlay.js#panelView");
|
|
1645
1645
|
const interactionBlocker = () => __foldkitBrandViewResult((h.div([h.Class('dt-interaction-blocker')])), "@foldkit/devtools/overlay.js#interactionBlocker");
|
|
1646
1646
|
return __foldkitBrandViewResult((model => __foldkitBrandViewResult((h.div([], [
|
|
1647
|
-
...Array.filter([interactionBlocker()], () => __foldkitBrandViewResult((model.isPaused && mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~
|
|
1648
|
-
...Array.filter([panelView(model)], () => __foldkitBrandViewResult((model.isOpen), "@foldkit/devtools/overlay.js#anonymous~
|
|
1647
|
+
...Array.filter([interactionBlocker()], () => __foldkitBrandViewResult((model.isPaused && mode === 'TimeTravel'), "@foldkit/devtools/overlay.js#anonymous~115")),
|
|
1648
|
+
...Array.filter([panelView(model)], () => __foldkitBrandViewResult((model.isOpen), "@foldkit/devtools/overlay.js#anonymous~116")),
|
|
1649
1649
|
badgeView(model),
|
|
1650
|
-
])), "@foldkit/devtools/overlay.js#anonymous~
|
|
1650
|
+
])), "@foldkit/devtools/overlay.js#anonymous~114")), "@foldkit/devtools/overlay.js#buildOverlayView");
|
|
1651
1651
|
};
|
|
1652
1652
|
// CREATE
|
|
1653
1653
|
const VIEW_TRANSITION_NAME = 'foldkit-devtools';
|
|
@@ -1728,10 +1728,10 @@ const createShadowContainer = () => {
|
|
|
1728
1728
|
return __foldkitBrandViewResult(({ container, shadow }), "@foldkit/devtools/overlay.js#createShadowContainer");
|
|
1729
1729
|
};
|
|
1730
1730
|
export const createOverlay = (store, position, mode, maybeBanner) => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
1731
|
-
const { container, shadow } = yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((createShadowContainer()), "@foldkit/devtools/overlay.js#anonymous~
|
|
1731
|
+
const { container, shadow } = yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((createShadowContainer()), "@foldkit/devtools/overlay.js#anonymous~119")), createdShadowContainer => __foldkitBrandViewResult((Effect.sync(() => {
|
|
1732
1732
|
createdShadowContainer.shadow.host.remove();
|
|
1733
1733
|
document.getElementById(VIEW_TRANSITION_STYLE_ID)?.remove();
|
|
1734
|
-
})), "@foldkit/devtools/overlay.js#anonymous~
|
|
1734
|
+
})), "@foldkit/devtools/overlay.js#anonymous~120"));
|
|
1735
1735
|
container.id = '__foldkit_devtools_overlay__';
|
|
1736
1736
|
const ServicesLayer = Layer.mergeAll(Layer.succeed(StoreService, store), Layer.succeed(ShadowRootService, shadow), BrowserKeyValueStore.layerLocalStorage);
|
|
1737
1737
|
const flags = Effect.gen(function* () {
|
|
@@ -1746,7 +1746,7 @@ export const createOverlay = (store, position, mode, maybeBanner) => __foldkitBr
|
|
|
1746
1746
|
isMobile: window.matchMedia(MOBILE_BREAKPOINT_QUERY).matches,
|
|
1747
1747
|
isFlattened,
|
|
1748
1748
|
...toDisplayState(storeState),
|
|
1749
|
-
}), "@foldkit/devtools/overlay.js#anonymous~
|
|
1749
|
+
}), "@foldkit/devtools/overlay.js#anonymous~122");
|
|
1750
1750
|
});
|
|
1751
1751
|
const program = Program.makeElement({
|
|
1752
1752
|
block: ApplicationBlock,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/devtools",
|
|
3
|
-
"version": "0.169.0-canary.
|
|
3
|
+
"version": "0.169.0-canary.82ac2ec6c9b5",
|
|
4
4
|
"description": "In-browser DevTools overlay for Foldkit applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@effect/platform-browser": "4.0.0",
|
|
18
|
-
"@foldkit/ui": "0.169.0-canary.
|
|
18
|
+
"@foldkit/ui": "0.169.0-canary.82ac2ec6c9b5",
|
|
19
19
|
"effect": "4.0.0",
|
|
20
|
-
"foldkit": "0.169.0-canary.
|
|
20
|
+
"foldkit": "0.169.0-canary.82ac2ec6c9b5"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"clsx": "^2.1.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@effect/platform-browser": "4.0.0",
|
|
27
|
-
"@foldkit/ui": "0.169.0-canary.
|
|
28
|
-
"@foldkit/vite-plugin": "0.28.0-canary.
|
|
27
|
+
"@foldkit/ui": "0.169.0-canary.82ac2ec6c9b5",
|
|
28
|
+
"@foldkit/vite-plugin": "0.28.0-canary.82ac2ec6c9b5",
|
|
29
29
|
"effect": "4.0.0",
|
|
30
|
-
"foldkit": "0.169.0-canary.
|
|
30
|
+
"foldkit": "0.169.0-canary.82ac2ec6c9b5",
|
|
31
31
|
"happy-dom": "^20.14.5",
|
|
32
32
|
"rimraf": "^6.1.3",
|
|
33
33
|
"typescript": "7.1.0-beta",
|