@hienlh/ppm 0.22.11 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -1
- package/CLAUDE.md +14 -0
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/assets/skills/ppm/SKILL.md +1 -1
- package/assets/skills/ppm/references/http-api.md +1 -1
- package/bun.lock +17 -0
- package/dist/web/assets/__vite-browser-external-CHpXvvmW.js +1 -0
- package/dist/web/assets/accounts-settings-section-BR7t8CEk.js +1 -0
- package/dist/web/assets/ai-resource-editor-BFVg2d2a.js +1 -0
- package/dist/web/assets/ai-settings-section-BJw7E_lM.js +1 -0
- package/dist/web/assets/ai-settings-section-CO-i3ghA.js +1 -0
- package/dist/web/assets/angular-html-D-rbk4zq.js +1 -0
- package/dist/web/assets/angular-ts-B_ldKah2.js +1 -0
- package/dist/web/assets/api-client-BgedDTvo.js +1 -0
- package/dist/web/assets/api-client-c8YOpTlT.js +1 -0
- package/dist/web/assets/api-settings-0s1Rfgcu.js +1 -0
- package/dist/web/assets/api-settings-Bnp28Ysw.js +1 -0
- package/dist/web/assets/api-themes-Pp-AZvwV.js +1 -0
- package/dist/web/assets/apl-19Dr02g6.js +1 -0
- package/dist/web/assets/appearance-settings-section-Ck_FPs9g.js +1 -0
- package/dist/web/assets/architecture-PBZL5I3N-B_n8ddB4.js +1 -0
- package/dist/web/assets/astro-1q5o0N64.js +1 -0
- package/dist/web/assets/audio-preview-DXtE1Lpz.js +1 -0
- package/dist/web/assets/blade-BNgXZCCk.js +1 -0
- package/dist/web/assets/branch-review-tab-CNVxMRuo.js +1 -0
- package/dist/web/assets/bsl-C5u8-gEq.js +1 -0
- package/dist/web/assets/button-CBehaXpV.js +1 -0
- package/dist/web/assets/c-Dko4ZphN.js +1 -0
- package/dist/web/assets/cairo-CrhmfCJH.js +1 -0
- package/dist/web/assets/chat-tab-DqLqcBci.js +1 -0
- package/dist/web/assets/chat-tab-MdU9Jr3F.js +15 -0
- package/dist/web/assets/cobol-BgRxrYyZ.js +1 -0
- package/dist/web/assets/code-editor-wEeCvvMR.js +7 -0
- package/dist/web/assets/codex-daily-guard-B21M4m-P.js +1 -0
- package/dist/web/assets/coffee-9hmEOIYs.js +1 -0
- package/dist/web/assets/conflict-editor-Cu-z_LdX.js +19 -0
- package/dist/web/assets/context-menu-CjYTq8DI.js +1 -0
- package/dist/web/assets/cpp-BntsLe3X.js +1 -0
- package/dist/web/assets/createLucideIcon-DBXq3G0e.js +1 -0
- package/dist/web/assets/crystal-CoXN2Gj8.js +1 -0
- package/dist/web/assets/css-DKuKlxIj.js +1 -0
- package/dist/web/assets/csv-preview-DHbBIqUu.js +2 -0
- package/dist/web/assets/data-grid-overlay-editor-2ERlh7_N.js +1 -0
- package/dist/web/assets/data-grid-types-DatI2Wee.js +1 -0
- package/dist/web/assets/database-viewer-_McYjRzc.js +1 -0
- package/dist/web/assets/design-export-client-SWCbGwwU.js +1 -0
- package/dist/web/assets/design-responsive-dialog-CcJETHO2.js +1 -0
- package/dist/web/assets/design-tab-C0TUD5g-.js +33 -0
- package/dist/web/assets/designs-sidebar-panel-XCAwSNtg.js +1 -0
- package/dist/web/assets/dialog-tzBRkGeW.js +1 -0
- package/dist/web/assets/diff-viewer-C4z-_68x.js +4 -0
- package/dist/web/assets/dist-CgtN5c7X.js +1 -0
- package/dist/web/assets/dist-wmDsBD_Z.js +1 -0
- package/dist/web/assets/docx-preview-C-UKGMXR.js +12 -0
- package/dist/web/assets/edge-gf7weBFr.js +1 -0
- package/dist/web/assets/edit-diff-preview-8nIct7kS.js +7 -0
- package/dist/web/assets/editor-language-service-D8hW_eew.js +1 -0
- package/dist/web/assets/elixir-DOEwBYus.js +1 -0
- package/dist/web/assets/elm-7yx1A5qt.js +1 -0
- package/dist/web/assets/erb-Bm_J_rBw.js +1 -0
- package/dist/web/assets/erlang-DgkAVj5y.js +1 -0
- package/dist/web/assets/esm-wquH4IhX.js +2 -0
- package/dist/web/assets/explorer-body-CdxolRQG.js +2 -0
- package/dist/web/assets/explorer-window-content-D1fkI_cL.js +1 -0
- package/dist/web/assets/extension-manager-section-CAaSoAuG.js +1 -0
- package/dist/web/assets/extension-webview-DmBZun_i.js +12 -0
- package/dist/web/assets/file-icons-BlOxPo3P.js +1 -0
- package/dist/web/assets/file-store-CTlJqj2m.js +1 -0
- package/dist/web/assets/files-settings-section-BFIzSuBh.js +1 -0
- package/dist/web/assets/format-date-BMtvCeb9.js +1 -0
- package/dist/web/assets/format-file-meta-DLaHgkdx.js +1 -0
- package/dist/web/assets/fortran-fixed-form-s8lQifxM.js +1 -0
- package/dist/web/assets/fs-api-RVc5RtTA.js +1 -0
- package/dist/web/assets/fsharp-D6bmDjka.js +1 -0
- package/dist/web/assets/gdresource-wPII3GWW.js +1 -0
- package/dist/web/assets/general-settings-section-BLLUvdhX.js +1 -0
- package/dist/web/assets/git-commit-DqLhxK6K.js +1 -0
- package/dist/web/assets/git-log-panel-Lq2Vkm8w.js +1 -0
- package/dist/web/assets/git-rebase-Cy0Mp9W1.js +1 -0
- package/dist/web/assets/git-repo-store-DFTJ5ngK.js +1 -0
- package/dist/web/assets/gitGraph-HDMCJU4V-w1WApLyy.js +1 -0
- package/dist/web/assets/glide-data-grid-CHdKFqis.js +141 -0
- package/dist/web/assets/glimmer-js-CmHFqq4N.js +1 -0
- package/dist/web/assets/glimmer-ts-vLmZC1JJ.js +1 -0
- package/dist/web/assets/glsl-DArPh0ws.js +1 -0
- package/dist/web/assets/graphql-B-_Ilekp.js +1 -0
- package/dist/web/assets/group-chat-tab-D2bluLme.js +1 -0
- package/dist/web/assets/hack-4KVRpwwM.js +1 -0
- package/dist/web/assets/haml-DoK94C5G.js +1 -0
- package/dist/web/assets/handlebars-D0_6yNlK.js +1 -0
- package/dist/web/assets/html-BOqZwhzR.js +1 -0
- package/dist/web/assets/html-derivative-If_2xbJ8.js +1 -0
- package/dist/web/assets/http-B6pQhqN4.js +1 -0
- package/dist/web/assets/hurl-BjW79rql.js +1 -0
- package/dist/web/assets/hxml-B1Yl76u6.js +1 -0
- package/dist/web/assets/icons-CO_II6D-.js +1 -0
- package/dist/web/assets/image-preview-78Fguk1f.js +1 -0
- package/dist/web/assets/index-CzYrKDUF.css +1 -0
- package/dist/web/assets/index-DSbUqWiH.js +52 -0
- package/dist/web/assets/info-3K5VOQVL-Bv1wKdPY.js +1 -0
- package/dist/web/assets/input-CP31LZnN.js +1 -0
- package/dist/web/assets/java-DPqGHyuh.js +1 -0
- package/dist/web/assets/javascript-D8x_R8ev.js +1 -0
- package/dist/web/assets/jinja-DOkXV84k.js +1 -0
- package/dist/web/assets/jira-watcher-section-BOe_ztas.js +1 -0
- package/dist/web/assets/jison-CGzlyBWT.js +1 -0
- package/dist/web/assets/json-kcFjaEWA.js +1 -0
- package/dist/web/assets/jsx-BzlJCumN.js +1 -0
- package/dist/web/assets/julia-CZrbm1Fa.js +1 -0
- package/dist/web/assets/just-bRG6zWI_.js +1 -0
- package/dist/web/assets/keybindings-store-DFPJBiXT.js +1 -0
- package/dist/web/assets/keyboard-shortcuts-section-CJubMhMq.js +1 -0
- package/dist/web/assets/latex-CZHLEkde.js +1 -0
- package/dist/web/assets/lib-KePrAxj7.js +4 -0
- package/dist/web/assets/liquid-Dcfq3Ccc.js +1 -0
- package/dist/web/assets/lua-Ggfu9EYp.js +1 -0
- package/dist/web/assets/markdown-renderer-6oU-L6RN.js +5 -0
- package/dist/web/assets/markdown-renderer-DxSQ4aqW.js +1 -0
- package/dist/web/assets/marko-BUwN_Iax.js +1 -0
- package/dist/web/assets/mdc-CIifdeNY.js +1 -0
- package/dist/web/assets/media-url-GqzhazJS.js +1 -0
- package/dist/web/assets/mobile-bottom-sheet-Cf4kV1hS.js +1 -0
- package/dist/web/assets/mobile-explorer-sheet-D0968cuP.js +1 -0
- package/dist/web/assets/monaco-dotenv-language-COsgiuQg.js +1 -0
- package/dist/web/assets/new-chat-provider-CJx_waY3.js +1 -0
- package/dist/web/assets/new-design-dialog-CbrMbKum.js +1 -0
- package/dist/web/assets/nextflow-DufnRZW1.js +1 -0
- package/dist/web/assets/nginx-DtUJGfad.js +1 -0
- package/dist/web/assets/nim-BeBPwibr.js +1 -0
- package/dist/web/assets/notification-store-BO3RInEL.js +1 -0
- package/dist/web/assets/notifications-settings-section-Bfxqz65i.js +1 -0
- package/dist/web/assets/number-overlay-editor-xzM7GhYV.js +9 -0
- package/dist/web/assets/onboarding-entry-CcvySZ_l.js +1 -0
- package/dist/web/assets/onboarding-quick-orientation-CT4PylG0.js +1 -0
- package/dist/web/assets/overview-panel-DshAIz6C.js +1 -0
- package/dist/web/assets/packet-RMMSAZCW-Scl5HE6U.js +1 -0
- package/dist/web/assets/panel-store-BUQ-CPsd.js +1 -0
- package/dist/web/assets/pdf-preview-BWim6mu1.js +1 -0
- package/dist/web/assets/perl-hV0EoLCp.js +1 -0
- package/dist/web/assets/php-N1YBqBhK.js +1 -0
- package/dist/web/assets/pie-UPGHQEXC-sY83O9qJ.js +1 -0
- package/dist/web/assets/portal-container-context-NFSuymMu.js +1 -0
- package/dist/web/assets/postgres-viewer-HwlL1UTJ.js +3 -0
- package/dist/web/assets/ppmbot-settings-section-CHr2FIDj.js +1 -0
- package/dist/web/assets/pptx-export-D6DOknBD.js +111 -0
- package/dist/web/assets/problems-panel-41z59l78.js +1 -0
- package/dist/web/assets/process-table-CVMEMJqQ.js +1 -0
- package/dist/web/assets/project-framework-store-XxFXcUpb.js +1 -0
- package/dist/web/assets/project-store-C5gJXkvb.js +1 -0
- package/dist/web/assets/proxy-settings-section-B4dkvCCx.js +1 -0
- package/dist/web/assets/pug-IMA1knL7.js +1 -0
- package/dist/web/assets/qml-DuwVuXga.js +1 -0
- package/dist/web/assets/query-audit-section-Cn11xqgz.js +1 -0
- package/dist/web/assets/r-DsXT2lmn.js +1 -0
- package/dist/web/assets/radar-KQ55EAFF-CNhm_kzj.js +1 -0
- package/dist/web/assets/razor-Be4LE-G0.js +1 -0
- package/dist/web/assets/react-CzUPVyyG.js +1 -0
- package/dist/web/assets/regexp-ztLDvplH.js +1 -0
- package/dist/web/assets/remote-desktop-clipboard-notice-Co4vEiiB.js +1 -0
- package/dist/web/assets/remote-desktop-mobile-sheet-Cv4yo7K4.js +2 -0
- package/dist/web/assets/remote-desktop-mobile-view-CcuulHIu.js +1 -0
- package/dist/web/assets/remote-desktop-readiness-gate-ouPRvBlu.js +1 -0
- package/dist/web/assets/remote-desktop-window-content-DmH3jBuG.js +1 -0
- package/dist/web/assets/rolldown-runtime-C5c2KzVm.js +1 -0
- package/dist/web/assets/rst-BdtOZUlL.js +1 -0
- package/dist/web/assets/ruby-DTna6e9n.js +1 -0
- package/dist/web/assets/run-in-terminal-SU9cwoZ4.js +1 -0
- package/dist/web/assets/sas-X50YKLBX.js +1 -0
- package/dist/web/assets/schedules-settings-section-Dy6hARk0.js +1 -0
- package/dist/web/assets/scroll-area-xAtds1T-.js +1 -0
- package/dist/web/assets/scss-cQk9zuqD.js +1 -0
- package/dist/web/assets/send-to-chat-TSKk3fI9.js +1 -0
- package/dist/web/assets/separator-D8SNZI6E.js +1 -0
- package/dist/web/assets/settings-body-CZSwxG0i.js +2 -0
- package/dist/web/assets/settings-store-DXmQug0m.js +2 -0
- package/dist/web/assets/settings-tab-B_WPC-y7.js +1 -0
- package/dist/web/assets/settings-window-content-CSWdwQn1.js +1 -0
- package/dist/web/assets/shaderlab-CSeOcwk6.js +1 -0
- package/dist/web/assets/shellscript-Dtzjnpp9.js +1 -0
- package/dist/web/assets/shellsession-AqADqsjv.js +1 -0
- package/dist/web/assets/soy-DeMex-y3.js +1 -0
- package/dist/web/assets/sparql-CDZTYDwx.js +1 -0
- package/dist/web/assets/sql-BS_vTOM8.js +1 -0
- package/dist/web/assets/sql-query-editor-6Ee_Zn5j.js +1 -0
- package/dist/web/assets/sqlite-viewer-Cj0S_m9V.js +1 -0
- package/dist/web/assets/stata-PkjbLwNy.js +1 -0
- package/dist/web/assets/surrealql-BJ6bKPXV.js +1 -0
- package/dist/web/assets/svelte-D4u1sGpe.js +1 -0
- package/dist/web/assets/system-monitor-body-PQqXdK4a.js +2 -0
- package/dist/web/assets/system-monitor-tab-BEjvgQuQ.js +1 -0
- package/dist/web/assets/system-monitor-window-content-DZwvvN-M.js +1 -0
- package/dist/web/assets/tab-host-window-content-CnV4Z4Yt.js +1 -0
- package/dist/web/assets/tab-store-DqeaGhhE.js +1 -0
- package/dist/web/assets/team-member-sheet-8EVCTM-X.js +2 -0
- package/dist/web/assets/team-member-window-content-Bc0ydBAn.js +1 -0
- package/dist/web/assets/templ-vtFoIgGG.js +1 -0
- package/dist/web/assets/terminal-tab-0b63-txz.js +3 -0
- package/dist/web/assets/tex-o6JLe3Qo.js +1 -0
- package/dist/web/assets/tool-cards-C09WknHl.js +9 -0
- package/dist/web/assets/treemap-KZPCXAKY-CfpX4ULx.js +1 -0
- package/dist/web/assets/ts-tags-DkmPnhIx.js +1 -0
- package/dist/web/assets/tsx-BUq9xm2T.js +1 -0
- package/dist/web/assets/twig-I9ja_Rk_.js +1 -0
- package/dist/web/assets/typescript-CP3RLBKz.js +1 -0
- package/dist/web/assets/use-blob-url-mZfScQdx.js +1 -0
- package/dist/web/assets/use-inline-blame-BuAc9IXE.js +16 -0
- package/dist/web/assets/use-is-mobile-CkO33jqU.js +1 -0
- package/dist/web/assets/use-lsp-DAtq1G0M.js +6 -0
- package/dist/web/assets/use-monaco-theme-Ch_znquJ.js +1 -0
- package/dist/web/assets/use-open-team-member-DHzZiJZw.js +1 -0
- package/dist/web/assets/use-visual-viewport-C307OVeV.js +1 -0
- package/dist/web/assets/use-websocket-DGEOad8p.js +1 -0
- package/dist/web/assets/vendor-markdown-QKPNiWEd.js +291 -0
- package/dist/web/assets/vendor-mermaid-eg2XWIjK.js +2921 -0
- package/dist/web/assets/vendor-ui-BHh12_0v.js +45 -0
- package/dist/web/assets/video-preview-DH3RtwVT.js +1 -0
- package/dist/web/assets/vue-DJf-APPD.js +1 -0
- package/dist/web/assets/vue-html-DUJ89Ycn.js +1 -0
- package/dist/web/assets/vue-vine-CWUFwuRE.js +1 -0
- package/dist/web/assets/window-pip-registry-DH07f_8k.js +1 -0
- package/dist/web/assets/window-store-B4cbZ5rr.js +1 -0
- package/dist/web/assets/ws-auth-B_y5rMfZ.js +1 -0
- package/dist/web/assets/xml-DshhaDKq.js +1 -0
- package/dist/web/assets/xsl-BlRNlmF7.js +1 -0
- package/dist/web/assets/yaml-seUOGdyI.js +1 -0
- package/dist/web/index.html +37 -36
- package/dist/web/sw.js +1 -1
- package/docs/architecture/workspace-and-ui.md +47 -0
- package/docs/project-roadmap.md +16 -0
- package/docs/system-architecture.md +11 -1
- package/package.json +4 -1
- package/scripts/gen-product-icons.ts +10 -0
- package/src/providers/claude-agent-sdk-query-options.ts +68 -1
- package/src/providers/claude-agent-sdk.ts +44 -15
- package/src/providers/codex-app-server/codex-event-mapper.ts +18 -1
- package/src/providers/codex-app-server/codex-jsonrpc-client.ts +4 -3
- package/src/providers/codex-app-server/codex-permission-map.ts +11 -1
- package/src/providers/codex-app-server/codex-protocol.ts +5 -0
- package/src/providers/codex-app-server/codex-provider.ts +32 -15
- package/src/providers/codex-app-server/codex-thread-params.ts +96 -0
- package/src/server/helpers/preview-asset-guard.ts +36 -0
- package/src/server/index.ts +15 -0
- package/src/server/routes/chat.ts +41 -4
- package/src/server/routes/design-check.ts +48 -0
- package/src/server/routes/design-comments.ts +63 -0
- package/src/server/routes/design-export.ts +84 -0
- package/src/server/routes/design-preview.ts +159 -0
- package/src/server/routes/design-route-helpers.ts +25 -0
- package/src/server/routes/design-style.ts +28 -0
- package/src/server/routes/design-tweaks.ts +38 -0
- package/src/server/routes/design-undo.ts +27 -0
- package/src/server/routes/designs.ts +101 -0
- package/src/server/routes/html-preview.ts +4 -24
- package/src/server/routes/project-scoped.ts +2 -0
- package/src/server/ws/chat.ts +8 -1
- package/src/server/ws/global.ts +22 -1
- package/src/services/chat.service.ts +64 -1
- package/src/services/db.service.ts +73 -4
- package/src/services/design/bridge/bridge-anchor-resolve.ts +96 -0
- package/src/services/design/bridge/bridge-core.ts +205 -0
- package/src/services/design/bridge/bridge-element-info.ts +180 -0
- package/src/services/design/bridge/bridge-extract-blocks.ts +115 -0
- package/src/services/design/bridge/bridge-extract-images.ts +96 -0
- package/src/services/design/bridge/bridge-extract-slides.ts +169 -0
- package/src/services/design/bridge/bridge-extract-text.ts +187 -0
- package/src/services/design/bridge/bridge-layout-boxes.ts +137 -0
- package/src/services/design/bridge/bridge-layout-check.ts +99 -0
- package/src/services/design/bridge/bridge-layout-grid.ts +165 -0
- package/src/services/design/bridge/bridge-layout-screenshot.ts +106 -0
- package/src/services/design/bridge/bridge-nav-guard.ts +61 -0
- package/src/services/design/bridge/bridge-picker-overlay.ts +54 -0
- package/src/services/design/bridge/bridge-picker.ts +174 -0
- package/src/services/design/bridge/bridge-pins.ts +157 -0
- package/src/services/design/bridge/bridge-script.ts +104 -0
- package/src/services/design/bridge/bridge-transform-math.ts +104 -0
- package/src/services/design/bridge/bridge-transform-overlay.ts +94 -0
- package/src/services/design/bridge/bridge-transform-style.ts +78 -0
- package/src/services/design/bridge/bridge-transform.ts +201 -0
- package/src/services/design/bridge/bridge-tweaks.ts +118 -0
- package/src/services/design/check/design-canvas-check-broker.ts +77 -0
- package/src/services/design/comments/design-comment-element-context.ts +81 -0
- package/src/services/design/comments/design-comments-store.ts +81 -0
- package/src/services/design/design-comments.service.ts +140 -0
- package/src/services/design/design-edit-undo-journal.ts +125 -0
- package/src/services/design/design-error.ts +19 -0
- package/src/services/design/design-events.ts +46 -0
- package/src/services/design/design-fs.ts +67 -0
- package/src/services/design/design-instructions.ts +97 -0
- package/src/services/design/design-lock.ts +74 -0
- package/src/services/design/design-manifest.ts +92 -0
- package/src/services/design/design-paths.ts +97 -0
- package/src/services/design/design-restore-journal.ts +143 -0
- package/src/services/design/design-restore.service.ts +77 -0
- package/src/services/design/design-safe-walk.ts +114 -0
- package/src/services/design/design-slug.ts +35 -0
- package/src/services/design/design-snapshot-history.ts +159 -0
- package/src/services/design/design-snapshots.service.ts +161 -0
- package/src/services/design/design-starter-template.ts +100 -0
- package/src/services/design/design-store.service.ts +156 -0
- package/src/services/design/design-style-patch.service.ts +83 -0
- package/src/services/design/design-tool-policy.ts +111 -0
- package/src/services/design/design-turn-snapshot.ts +80 -0
- package/src/services/design/design-tweaks-commit.service.ts +138 -0
- package/src/services/design/design-write-rate-limit.ts +51 -0
- package/src/services/design/export/css-url-inline.ts +130 -0
- package/src/services/design/export/design-export-asset-reader.ts +57 -0
- package/src/services/design/export/design-export-entry.ts +33 -0
- package/src/services/design/export/design-standalone-html.ts +167 -0
- package/src/services/design/export/design-zip-export.ts +106 -0
- package/src/services/design/mcp/design-mcp-access.ts +16 -0
- package/src/services/design/mcp/design-mcp-endpoint.ts +118 -0
- package/src/services/design/mcp/design-mcp-tokens.ts +82 -0
- package/src/services/design/mcp/design-mcp-tool.ts +41 -0
- package/src/services/design/preview/design-csp.ts +31 -0
- package/src/services/design/preview/design-preview-html.ts +98 -0
- package/src/services/design/preview/design-preview-scope.ts +66 -0
- package/src/services/design/preview/design-preview-tokens.ts +137 -0
- package/src/services/design/preview/expired-page.ts +30 -0
- package/src/services/design/preview/html-instrument.ts +119 -0
- package/src/services/design/preview/print-view.ts +62 -0
- package/src/services/design/source/css-root-selector.ts +20 -0
- package/src/services/design/source/css-root-vars-patch.ts +202 -0
- package/src/services/design/source/design-source-file.ts +62 -0
- package/src/services/design/source/design-style-sources.ts +101 -0
- package/src/services/design/source/element-source-range.ts +65 -0
- package/src/services/design/source/html-style-blocks.ts +87 -0
- package/src/services/design/source/inline-style-declarations.ts +131 -0
- package/src/services/design/source/inline-style-patch.ts +79 -0
- package/src/services/design/source/tweak-patch-plan.ts +143 -0
- package/src/services/file-watcher/ignore-rules.ts +9 -1
- package/src/services/server-listen-address.ts +25 -0
- package/src/shared/design-bridge-messages-check.ts +44 -0
- package/src/shared/design-bridge-messages-picker.ts +142 -0
- package/src/shared/design-bridge-messages-slides.ts +37 -0
- package/src/shared/design-bridge-messages-transform.ts +121 -0
- package/src/shared/design-bridge-messages-tweaks.ts +65 -0
- package/src/shared/design-bridge-protocol.ts +158 -0
- package/src/shared/design-canvas-check-format.ts +69 -0
- package/src/shared/design-canvas-check.ts +148 -0
- package/src/shared/design-cdn-hosts.ts +17 -0
- package/src/shared/design-comment-types.ts +111 -0
- package/src/shared/design-slide-doc-parse.ts +140 -0
- package/src/shared/design-slide-doc.ts +91 -0
- package/src/shared/design-system-init-prompt.ts +35 -0
- package/src/shared/design-tweaks.ts +175 -0
- package/src/shared/design-types.ts +63 -0
- package/src/shared/untrusted-text.ts +15 -0
- package/src/types/chat.ts +22 -0
- package/src/types/config.ts +1 -1
- package/src/web/components/chat/chat-history-bar.tsx +18 -15
- package/src/web/components/chat/chat-history-panel.tsx +3 -9
- package/src/web/components/chat/chat-tab.tsx +74 -40
- package/src/web/components/chat/message-input.tsx +11 -4
- package/src/web/components/chat/session-history-list.tsx +5 -9
- package/src/web/components/design/canvas/canvas-geometry.ts +47 -0
- package/src/web/components/design/canvas/design-canvas-pane.tsx +192 -0
- package/src/web/components/design/canvas/design-issues-badge.tsx +71 -0
- package/src/web/components/design/canvas/device-frame-presets.ts +37 -0
- package/src/web/components/design/canvas/use-design-bridge.ts +169 -0
- package/src/web/components/design/canvas/use-design-canvas-check.ts +110 -0
- package/src/web/components/design/canvas/use-design-canvas.ts +107 -0
- package/src/web/components/design/canvas/use-design-live-reload.ts +86 -0
- package/src/web/components/design/canvas/use-design-preview-url.ts +74 -0
- package/src/web/components/design/canvas/use-expanded-canvas-escape.ts +29 -0
- package/src/web/components/design/comments/comment-composer.tsx +107 -0
- package/src/web/components/design/comments/comment-overlay-geometry.ts +50 -0
- package/src/web/components/design/comments/comment-pins-overlay.tsx +70 -0
- package/src/web/components/design/comments/comments-panel.tsx +118 -0
- package/src/web/components/design/comments/comments-send-preview.tsx +43 -0
- package/src/web/components/design/comments/design-comments-layer.tsx +73 -0
- package/src/web/components/design/comments/element-action-bar.tsx +105 -0
- package/src/web/components/design/comments/use-comment-pins.ts +118 -0
- package/src/web/components/design/comments/use-design-comments-feature.ts +124 -0
- package/src/web/components/design/comments/use-design-comments.ts +89 -0
- package/src/web/components/design/comments/use-element-picker.ts +87 -0
- package/src/web/components/design/design-chat-pane.tsx +51 -0
- package/src/web/components/design/design-layout-controls.tsx +84 -0
- package/src/web/components/design/design-mobile-layout.tsx +34 -0
- package/src/web/components/design/design-split-layout.tsx +99 -0
- package/src/web/components/design/design-tab-context.ts +44 -0
- package/src/web/components/design/design-tab.tsx +116 -0
- package/src/web/components/design/design-toolbar-list.tsx +36 -0
- package/src/web/components/design/design-toolbar.tsx +200 -0
- package/src/web/components/design/designs-sidebar-panel.tsx +117 -0
- package/src/web/components/design/dialogs/delete-design-dialog.tsx +69 -0
- package/src/web/components/design/dialogs/design-responsive-dialog.tsx +48 -0
- package/src/web/components/design/dialogs/new-design-dialog.tsx +113 -0
- package/src/web/components/design/dialogs/rename-design-dialog.tsx +56 -0
- package/src/web/components/design/export/export-menu.tsx +108 -0
- package/src/web/components/design/export/export-warnings-sheet.tsx +35 -0
- package/src/web/components/design/export/pptx-export.ts +38 -0
- package/src/web/components/design/export/use-design-export.ts +142 -0
- package/src/web/components/design/history/design-history-panel.tsx +119 -0
- package/src/web/components/design/transform/design-undo-stack.ts +90 -0
- package/src/web/components/design/transform/transform-readout.tsx +50 -0
- package/src/web/components/design/transform/use-canvas-transform.ts +181 -0
- package/src/web/components/design/tweaks/tweak-control.tsx +94 -0
- package/src/web/components/design/tweaks/tweaks-panel.tsx +99 -0
- package/src/web/components/design/tweaks/use-design-tweaks.ts +151 -0
- package/src/web/components/design/use-design-auto-check.ts +94 -0
- package/src/web/components/design/use-design-layout.ts +55 -0
- package/src/web/components/design/use-design-summary.ts +63 -0
- package/src/web/components/layout/command-palette-design-commands.tsx +75 -0
- package/src/web/components/layout/command-palette.tsx +12 -4
- package/src/web/components/layout/editor-panel.tsx +4 -10
- package/src/web/components/layout/mobile-drawer.tsx +9 -2
- package/src/web/components/layout/mobile-nav.tsx +3 -2
- package/src/web/components/layout/mobile-tab-switcher-sheet.tsx +4 -5
- package/src/web/components/layout/sidebar.tsx +8 -1
- package/src/web/components/layout/tab-bar.tsx +3 -2
- package/src/web/components/layout/tab-content.tsx +5 -0
- package/src/web/components/layout/tab-pool.tsx +1 -0
- package/src/web/components/onboarding/onboarding-quick-orientation.tsx +1 -0
- package/src/web/hooks/use-chat.ts +8 -4
- package/src/web/hooks/use-design-session-redirect.ts +39 -0
- package/src/web/hooks/use-design-session-state.ts +94 -0
- package/src/web/hooks/use-global-events.ts +4 -1
- package/src/web/hooks/use-session-history.ts +4 -10
- package/src/web/hooks/use-url-sync.ts +10 -2
- package/src/web/lib/design/api-design-comments.ts +42 -0
- package/src/web/lib/design/api-design-edits.ts +62 -0
- package/src/web/lib/design/api-design-tweaks.ts +64 -0
- package/src/web/lib/design/api-designs.ts +81 -0
- package/src/web/lib/design/deliver-to-design-chat.ts +63 -0
- package/src/web/lib/design/design-auto-check-rounds.ts +32 -0
- package/src/web/lib/design/design-change-filter.ts +27 -0
- package/src/web/lib/design/design-comments-prompt.ts +55 -0
- package/src/web/lib/design/design-export-client.ts +101 -0
- package/src/web/lib/design/design-handoff-prompt.ts +48 -0
- package/src/web/lib/design/design-layout-mode.ts +79 -0
- package/src/web/lib/design/design-tab-metadata.ts +41 -0
- package/src/web/lib/design/design-transform-proposal.ts +62 -0
- package/src/web/lib/design/design-tweaks-model.ts +76 -0
- package/src/web/lib/design/design-ui-events.ts +25 -0
- package/src/web/lib/design/design-view-prefs.ts +90 -0
- package/src/web/lib/design/open-design-tab.ts +78 -0
- package/src/web/lib/design/pptx-slide-mapper.ts +118 -0
- package/src/web/lib/feature-badges.ts +2 -0
- package/src/web/lib/fluent-icon.tsx +38 -2
- package/src/web/lib/icons.generated.tsx +17 -1
- package/src/web/lib/patch-tab-metadata.ts +30 -0
- package/src/web/lib/send-to-chat.ts +16 -2
- package/src/web/lib/sidebar-tabs/tab-registry.ts +2 -0
- package/src/web/lib/tab-session-id.ts +16 -0
- package/src/web/lib/tab-type-icons.ts +2 -1
- package/src/web/stores/panel-store.ts +29 -1
- package/src/web/stores/panel-utils.ts +8 -1
- package/src/web/stores/settings-store.ts +2 -2
- package/src/web/stores/tab-store.ts +2 -1
- package/src/web/stores/window-panel-persistence.ts +1 -0
- package/dist/web/assets/accounts-settings-section-BDXYG6tT.js +0 -1
- package/dist/web/assets/ai-resource-editor-C3rKcZKN.js +0 -1
- package/dist/web/assets/ai-settings-section-ArqD8Nlg.js +0 -1
- package/dist/web/assets/ai-settings-section-DeWoAdLc.js +0 -1
- package/dist/web/assets/angular-html-DnrsWZqK.js +0 -1
- package/dist/web/assets/angular-ts-BXEqA9t1.js +0 -1
- package/dist/web/assets/api-client-Jn3njtNw.js +0 -1
- package/dist/web/assets/api-client-rSFnnCj4.js +0 -1
- package/dist/web/assets/api-settings-BZFSteM_.js +0 -1
- package/dist/web/assets/api-themes-CvKtX6Hd.js +0 -1
- package/dist/web/assets/apl-DUQ6Oyth.js +0 -1
- package/dist/web/assets/appearance-settings-section-K5o_Di4V.js +0 -1
- package/dist/web/assets/architecture-PBZL5I3N-B9M_VqZI.js +0 -1
- package/dist/web/assets/astro-CakOjJ6X.js +0 -1
- package/dist/web/assets/audio-preview-CwCDCN-_.js +0 -1
- package/dist/web/assets/blade-C903KM82.js +0 -1
- package/dist/web/assets/branch-review-tab-BNpYiUhC.js +0 -1
- package/dist/web/assets/bsl-slfcE_kB.js +0 -1
- package/dist/web/assets/button-B9CTrsEf.js +0 -1
- package/dist/web/assets/c-BWO-aeyf.js +0 -1
- package/dist/web/assets/cairo-DRwEaH6w.js +0 -1
- package/dist/web/assets/chat-tab-CC8KANoK.js +0 -15
- package/dist/web/assets/cobol--n4m6b70.js +0 -1
- package/dist/web/assets/code-editor-Ccf0Egrc.js +0 -7
- package/dist/web/assets/codex-daily-guard-CKk2WFlV.js +0 -1
- package/dist/web/assets/coffee-CjyFmw8_.js +0 -1
- package/dist/web/assets/conflict-editor-BCKbdpXy.js +0 -19
- package/dist/web/assets/context-menu-C6pIsf83.js +0 -1
- package/dist/web/assets/cpp-D18jdQPZ.js +0 -1
- package/dist/web/assets/createLucideIcon-DoiEKeJ_.js +0 -1
- package/dist/web/assets/crystal-CySzfH-7.js +0 -1
- package/dist/web/assets/css-Ca_hTmU6.js +0 -1
- package/dist/web/assets/csv-preview-I3a2lGUx.js +0 -2
- package/dist/web/assets/data-grid-overlay-editor-BD9eJweQ.js +0 -1
- package/dist/web/assets/data-grid-types-C6UX8kgh.js +0 -1
- package/dist/web/assets/database-viewer-DCuBR-bZ.js +0 -1
- package/dist/web/assets/dialog-B84_DJQ8.js +0 -1
- package/dist/web/assets/diff-viewer-DGaBe_Ln.js +0 -4
- package/dist/web/assets/dist-BD2gbdy0.js +0 -1
- package/dist/web/assets/docx-preview-CeH6p2Oi.js +0 -12
- package/dist/web/assets/edge-B6b5FHmU.js +0 -1
- package/dist/web/assets/edit-diff-preview-BG5DsLJG.js +0 -7
- package/dist/web/assets/editor-language-service-BaocEaLc.js +0 -1
- package/dist/web/assets/elixir-Dpo1rvn2.js +0 -1
- package/dist/web/assets/elm-D9CNOsWT.js +0 -1
- package/dist/web/assets/erb-sY7Yee1W.js +0 -1
- package/dist/web/assets/erlang-CfyrBxyF.js +0 -1
- package/dist/web/assets/esm-5AhGJcV8.js +0 -2
- package/dist/web/assets/explorer-body-2GYIYmUh.js +0 -2
- package/dist/web/assets/explorer-window-content-CYQSEX-g.js +0 -1
- package/dist/web/assets/extension-manager-section-BFAGdy3G.js +0 -1
- package/dist/web/assets/extension-webview-D5TXIBMf.js +0 -12
- package/dist/web/assets/file-icons-wS-OmEVu.js +0 -1
- package/dist/web/assets/file-store-Ds3qJ4hC.js +0 -1
- package/dist/web/assets/files-settings-section-BE6o-oHu.js +0 -1
- package/dist/web/assets/format-file-meta-eKLstbCL.js +0 -1
- package/dist/web/assets/fortran-fixed-form-N67gM_wp.js +0 -1
- package/dist/web/assets/fs-api-orca76dV.js +0 -1
- package/dist/web/assets/fsharp-Dq0K01wX.js +0 -1
- package/dist/web/assets/gdresource-DkFbszqY.js +0 -1
- package/dist/web/assets/general-settings-section-mQiXM537.js +0 -1
- package/dist/web/assets/git-commit-Ddt_nerD.js +0 -1
- package/dist/web/assets/git-log-panel-DqbcM9eC.js +0 -1
- package/dist/web/assets/git-rebase-CVK5OA7i.js +0 -1
- package/dist/web/assets/git-repo-store-BCEPfUGT.js +0 -1
- package/dist/web/assets/gitGraph-HDMCJU4V-D3RB33aA.js +0 -1
- package/dist/web/assets/glide-data-grid-BjEF7M5i.js +0 -141
- package/dist/web/assets/glimmer-js-51jbYnyY.js +0 -1
- package/dist/web/assets/glimmer-ts-C5L1J32J.js +0 -1
- package/dist/web/assets/glsl-BcsfmwJZ.js +0 -1
- package/dist/web/assets/graphql-dv4wuJsK.js +0 -1
- package/dist/web/assets/group-chat-tab-aX2GEnkD.js +0 -1
- package/dist/web/assets/hack-DLE5d3bx.js +0 -1
- package/dist/web/assets/haml-CoKfcM3E.js +0 -1
- package/dist/web/assets/handlebars-Bn0jy8pD.js +0 -1
- package/dist/web/assets/html-DXzY5Cew.js +0 -1
- package/dist/web/assets/html-derivative-DhcVfYuw.js +0 -1
- package/dist/web/assets/http-DepeIWQ1.js +0 -1
- package/dist/web/assets/hurl-CfsP4sCj.js +0 -1
- package/dist/web/assets/hxml-IfVkY3HL.js +0 -1
- package/dist/web/assets/icons-DQjqk0lJ.js +0 -1
- package/dist/web/assets/image-preview-CWncz5iI.js +0 -1
- package/dist/web/assets/index-BoaecXhu.js +0 -52
- package/dist/web/assets/index-aXJy_SvC.css +0 -1
- package/dist/web/assets/info-3K5VOQVL-DDX-2VB7.js +0 -1
- package/dist/web/assets/input-QNG_gTHh.js +0 -1
- package/dist/web/assets/java-JWdrzVo8.js +0 -1
- package/dist/web/assets/javascript-5aQKJRxB.js +0 -1
- package/dist/web/assets/jinja-DcCmNDQ8.js +0 -1
- package/dist/web/assets/jira-watcher-section-BKn3A8zI.js +0 -1
- package/dist/web/assets/jison-Bt-5cKVZ.js +0 -1
- package/dist/web/assets/json-BOq7QblK.js +0 -1
- package/dist/web/assets/jsx-BSLWViGE.js +0 -1
- package/dist/web/assets/julia-DewYVRtE.js +0 -1
- package/dist/web/assets/just-CLT_ggBy.js +0 -1
- package/dist/web/assets/keybindings-store-Brz0qepi.js +0 -1
- package/dist/web/assets/keyboard-shortcuts-section-Ck8KIbJ8.js +0 -1
- package/dist/web/assets/latex-DXmcayW1.js +0 -1
- package/dist/web/assets/lib-BWyA9SvU.js +0 -4
- package/dist/web/assets/liquid-BVcHf0IA.js +0 -1
- package/dist/web/assets/lua-BYupsB1B.js +0 -1
- package/dist/web/assets/markdown-renderer-BGuM2PBI.js +0 -5
- package/dist/web/assets/markdown-renderer-Ddz8tPbb.js +0 -1
- package/dist/web/assets/marko-CsD0R5tv.js +0 -1
- package/dist/web/assets/mdc-DP2tC4Kc.js +0 -1
- package/dist/web/assets/media-url-CVO4m4zr.js +0 -1
- package/dist/web/assets/mobile-bottom-sheet-C3TniEP-.js +0 -1
- package/dist/web/assets/mobile-explorer-sheet-DpKfB6iF.js +0 -1
- package/dist/web/assets/monaco-dotenv-language-DD8_UQG7.js +0 -1
- package/dist/web/assets/nextflow-FQM6iZO2.js +0 -1
- package/dist/web/assets/nginx-Bg0TK_a9.js +0 -1
- package/dist/web/assets/nim-D1kSCHdq.js +0 -1
- package/dist/web/assets/notification-store-ByCdTvCC.js +0 -1
- package/dist/web/assets/notifications-settings-section-C5v8FoH9.js +0 -1
- package/dist/web/assets/number-overlay-editor-Bsr04yCI.js +0 -9
- package/dist/web/assets/onboarding-entry-C81awoR5.js +0 -1
- package/dist/web/assets/onboarding-quick-orientation-Dqmis-E5.js +0 -1
- package/dist/web/assets/overview-panel-9OdBcYJC.js +0 -1
- package/dist/web/assets/packet-RMMSAZCW-B0ZSm6VM.js +0 -1
- package/dist/web/assets/panel-store-D20Zuf3i.js +0 -1
- package/dist/web/assets/pdf-preview-DuR07OfN.js +0 -1
- package/dist/web/assets/perl-B6QNc69s.js +0 -1
- package/dist/web/assets/php-Bvwf1t96.js +0 -1
- package/dist/web/assets/pie-UPGHQEXC-DKM0oPn7.js +0 -1
- package/dist/web/assets/portal-container-context-BarKmT4S.js +0 -1
- package/dist/web/assets/postgres-viewer-CGf7_g6Z.js +0 -3
- package/dist/web/assets/ppmbot-settings-section-DeTFU1b-.js +0 -1
- package/dist/web/assets/problems-panel-Bgkcge5_.js +0 -1
- package/dist/web/assets/process-table-DH7pnH5I.js +0 -1
- package/dist/web/assets/project-framework-store-ViZgce6y.js +0 -1
- package/dist/web/assets/project-store-hNvwfqX3.js +0 -1
- package/dist/web/assets/proxy-settings-section-DMGMRHH-.js +0 -1
- package/dist/web/assets/pug-I8oitXP4.js +0 -1
- package/dist/web/assets/qml-LKb7CHg-.js +0 -1
- package/dist/web/assets/query-audit-section-CpiXQVcS.js +0 -1
- package/dist/web/assets/r-DHu15BOo.js +0 -1
- package/dist/web/assets/radar-KQ55EAFF-DKhtzXmy.js +0 -1
- package/dist/web/assets/razor-CIPT897U.js +0 -1
- package/dist/web/assets/react-Bghu0NUO.js +0 -1
- package/dist/web/assets/regexp-Vdt2OEkk.js +0 -1
- package/dist/web/assets/remote-desktop-clipboard-notice-Bj5FtU0O.js +0 -1
- package/dist/web/assets/remote-desktop-mobile-sheet-BhwVrKxv.js +0 -2
- package/dist/web/assets/remote-desktop-mobile-view-B1oAqbjG.js +0 -1
- package/dist/web/assets/remote-desktop-readiness-gate-2LE86aTu.js +0 -1
- package/dist/web/assets/remote-desktop-window-content-u8HwuzyN.js +0 -1
- package/dist/web/assets/rolldown-runtime-FhOqtrmT.js +0 -1
- package/dist/web/assets/rst-BpcmfJFA.js +0 -1
- package/dist/web/assets/ruby-Cx413jgE.js +0 -1
- package/dist/web/assets/run-in-terminal-BFR70TLU.js +0 -1
- package/dist/web/assets/sas-B3ui_NHy.js +0 -1
- package/dist/web/assets/schedules-settings-section-C8XNDdi9.js +0 -1
- package/dist/web/assets/scroll-area-C0fQWNnx.js +0 -1
- package/dist/web/assets/scss-V4NlXnGi.js +0 -1
- package/dist/web/assets/send-to-chat-C8l7AcV4.js +0 -1
- package/dist/web/assets/separator-DwDoQpxS.js +0 -1
- package/dist/web/assets/settings-body-DelxmiKf.js +0 -2
- package/dist/web/assets/settings-store-m6qOXoy4.js +0 -2
- package/dist/web/assets/settings-tab-Cb_dFdA6.js +0 -1
- package/dist/web/assets/settings-window-content-5EQQfC1t.js +0 -1
- package/dist/web/assets/shaderlab-Cf7qZ4DR.js +0 -1
- package/dist/web/assets/shellscript-DRxJLgrx.js +0 -1
- package/dist/web/assets/shellsession-BfA8Fmhb.js +0 -1
- package/dist/web/assets/soy-CGKN9rxg.js +0 -1
- package/dist/web/assets/sparql-CArCsIdI.js +0 -1
- package/dist/web/assets/sql-ljEiM8nf.js +0 -1
- package/dist/web/assets/sql-query-editor-B3wrPR6K.js +0 -1
- package/dist/web/assets/sqlite-viewer-iQXNp0kH.js +0 -1
- package/dist/web/assets/stata-CplvndbA.js +0 -1
- package/dist/web/assets/surrealql-DwX1PCpP.js +0 -1
- package/dist/web/assets/svelte-DYCNmQjy.js +0 -1
- package/dist/web/assets/system-monitor-body-5grJyA7C.js +0 -2
- package/dist/web/assets/system-monitor-tab-CJr797F8.js +0 -1
- package/dist/web/assets/system-monitor-window-content-OGAhFXXo.js +0 -1
- package/dist/web/assets/tab-host-window-content-C-eEo8I7.js +0 -1
- package/dist/web/assets/tab-store-krAuHQ6_.js +0 -1
- package/dist/web/assets/team-member-sheet-CRvJUtdh.js +0 -2
- package/dist/web/assets/team-member-window-content-C97N4RXb.js +0 -1
- package/dist/web/assets/templ-b_h2-Z9l.js +0 -1
- package/dist/web/assets/terminal-tab-eZwpkvEe.js +0 -3
- package/dist/web/assets/tex-022M3-MR.js +0 -1
- package/dist/web/assets/tool-cards-Bg4vjDYu.js +0 -9
- package/dist/web/assets/treemap-KZPCXAKY-CxqsD_6n.js +0 -1
- package/dist/web/assets/ts-tags-BUl0AdO6.js +0 -1
- package/dist/web/assets/tsx-CKaH7SzK.js +0 -1
- package/dist/web/assets/twig-CMzYUcSa.js +0 -1
- package/dist/web/assets/typescript-DZozDFsi.js +0 -1
- package/dist/web/assets/use-blob-url-C0VR6Uhh.js +0 -1
- package/dist/web/assets/use-inline-blame-CzR8CnOZ.js +0 -16
- package/dist/web/assets/use-is-mobile-TkcwP1Gx.js +0 -1
- package/dist/web/assets/use-lsp-BAoOSc-L.js +0 -6
- package/dist/web/assets/use-monaco-theme-Gd8cpt9n.js +0 -1
- package/dist/web/assets/use-open-team-member-y9sVhaNr.js +0 -1
- package/dist/web/assets/use-visual-viewport-Lp878uzs.js +0 -1
- package/dist/web/assets/use-websocket-CDfXkXo3.js +0 -1
- package/dist/web/assets/vendor-markdown-CuWCHIVb.js +0 -291
- package/dist/web/assets/vendor-mermaid-D6lgjvVE.js +0 -2921
- package/dist/web/assets/vendor-ui-DmZ-Mb-H.js +0 -45
- package/dist/web/assets/video-preview-BYJ3aVo1.js +0 -1
- package/dist/web/assets/vue-D83SsURi.js +0 -1
- package/dist/web/assets/vue-html-BGU-OYYb.js +0 -1
- package/dist/web/assets/vue-vine-1sHE1gZn.js +0 -1
- package/dist/web/assets/window-pip-registry-D1oXq-Dq.js +0 -1
- package/dist/web/assets/window-store-UC1jJeLM.js +0 -1
- package/dist/web/assets/ws-auth-CaxV807E.js +0 -1
- package/dist/web/assets/xml-bWQJszMK.js +0 -1
- package/dist/web/assets/xsl-DTMc1Tsm.js +0 -1
- package/dist/web/assets/yaml-4pzZq5KT.js +0 -1
- /package/dist/web/assets/{abap-DrxZXLHj.js → abap-DWbETETF.js} +0 -0
- /package/dist/web/assets/{actionscript-3-DOPR4pRC.js → actionscript-3-C278tgAF.js} +0 -0
- /package/dist/web/assets/{ada-DkqjEnDr.js → ada-C_5J29IC.js} +0 -0
- /package/dist/web/assets/{andromeeda-BSZjevw2.js → andromeeda-Ct0fb9Zo.js} +0 -0
- /package/dist/web/assets/{apache-DYwdQ5F_.js → apache-oMwCqc2o.js} +0 -0
- /package/dist/web/assets/{apex-Dohu7DfB.js → apex-n6XQQudq.js} +0 -0
- /package/dist/web/assets/{applescript-CdfGIVqp.js → applescript-QDMA6blY.js} +0 -0
- /package/dist/web/assets/{apply-theme-CbR31K6I.js → apply-theme-aVoqSG0I.js} +0 -0
- /package/dist/web/assets/{ara-i3_3TMnI.js → ara-D6rg_rTp.js} +0 -0
- /package/dist/web/assets/{asciidoc-DJFM-7vl.js → asciidoc-DVeBWv0S.js} +0 -0
- /package/dist/web/assets/{asm-bMFssizQ.js → asm-DzHQzzqu.js} +0 -0
- /package/dist/web/assets/{aurora-x-CetC7M8b.js → aurora-x-pJESoXa6.js} +0 -0
- /package/dist/web/assets/{awk-FFWx9ZrE.js → awk-BwfK4mzn.js} +0 -0
- /package/dist/web/assets/{ayu-dark-D4ION2wO.js → ayu-dark-CG-9c7ej.js} +0 -0
- /package/dist/web/assets/{ayu-light-BZN99P5A.js → ayu-light-BGUfMG6m.js} +0 -0
- /package/dist/web/assets/{ayu-mirage-B-IpsKiL.js → ayu-mirage-CMD89qy6.js} +0 -0
- /package/dist/web/assets/{ballerina-DhyJcKkq.js → ballerina-CP5gYaiB.js} +0 -0
- /package/dist/web/assets/{bat-GOVQY81F.js → bat-DCRdiK45.js} +0 -0
- /package/dist/web/assets/{beancount-BO749Rhc.js → beancount-DHkDiOKO.js} +0 -0
- /package/dist/web/assets/{berry-CHYYKXmK.js → berry-B6TPldKS.js} +0 -0
- /package/dist/web/assets/{bibtex-BnYiDnxT.js → bibtex-DIor8yh9.js} +0 -0
- /package/dist/web/assets/{bicep-kljgR_G3.js → bicep-BbIdLZZ_.js} +0 -0
- /package/dist/web/assets/{bird2-DnLtJGhV.js → bird2-C76TmOG1.js} +0 -0
- /package/dist/web/assets/{c3-fc_jio6D.js → c3-CqZ77xXr.js} +0 -0
- /package/dist/web/assets/{cadence-DopRCrdB.js → cadence-BlaAb6F6.js} +0 -0
- /package/dist/web/assets/{can-open-in-ppm-CUW3vVJg.js → can-open-in-ppm-D8T6Xca-.js} +0 -0
- /package/dist/web/assets/{catppuccin-frappe-DL6iCUa8.js → catppuccin-frappe-BuV7Zg67.js} +0 -0
- /package/dist/web/assets/{catppuccin-latte-DNF7n3uY.js → catppuccin-latte-B7HXEZf7.js} +0 -0
- /package/dist/web/assets/{catppuccin-macchiato-ByMic_k0.js → catppuccin-macchiato-B0KctcoC.js} +0 -0
- /package/dist/web/assets/{catppuccin-mocha-DcrJtZtv.js → catppuccin-mocha-Bofr5rzo.js} +0 -0
- /package/dist/web/assets/{clarity-0cRLlvQe.js → clarity-CerfZ3dW.js} +0 -0
- /package/dist/web/assets/{clojure-DPqZAcpI.js → clojure-BCEG1uj6.js} +0 -0
- /package/dist/web/assets/{cmake-Bx26bw5u.js → cmake-CRxSSKSr.js} +0 -0
- /package/dist/web/assets/{codeowners-BpgxIgxr.js → codeowners-BqW6DYSk.js} +0 -0
- /package/dist/web/assets/{codeql-TRoWjo5g.js → codeql-DlnOpgWF.js} +0 -0
- /package/dist/web/assets/{common-lisp-Ctohamsb.js → common-lisp-DgIX9jkq.js} +0 -0
- /package/dist/web/assets/{coq-BO6TJSED.js → coq-CFeLOER-.js} +0 -0
- /package/dist/web/assets/{csharp-DSy4nlrl.js → csharp-BGFGcV8G.js} +0 -0
- /package/dist/web/assets/{csv-DND7YJXD.js → csv-Cx126-fo.js} +0 -0
- /package/dist/web/assets/{csv-parser-DZ_75eCb.js → csv-parser-BXeH-yzY.js} +0 -0
- /package/dist/web/assets/{cue-BUnWK221.js → cue-Cd0PEGFL.js} +0 -0
- /package/dist/web/assets/{cypher-CInm9Etl.js → cypher-QS9S-1Nu.js} +0 -0
- /package/dist/web/assets/{d-BbsB8r6R.js → d-Bx6zK6J7.js} +0 -0
- /package/dist/web/assets/{dark-plus-DkzIiuQX.js → dark-plus-DLqXEd2I.js} +0 -0
- /package/dist/web/assets/{dart-BG2nw7Se.js → dart-BL2C2Z6E.js} +0 -0
- /package/dist/web/assets/{dax-j4h6VhlV.js → dax-ClxUDxvY.js} +0 -0
- /package/dist/web/assets/{desktop-Dg34JDlS.js → desktop-DLEkw1UR.js} +0 -0
- /package/dist/web/assets/{diff-CRrKo-mH.js → diff-Dlp9KQSL.js} +0 -0
- /package/dist/web/assets/{dist-D39GQICe.js → dist-CDpxSUMU.js} +0 -0
- /package/dist/web/assets/{docker-DAtcxZjt.js → docker-DVBsQYb-.js} +0 -0
- /package/dist/web/assets/{dotenv-DNUcgQCn.js → dotenv-DjBB7S8B.js} +0 -0
- /package/dist/web/assets/{dracula-bhhaShNC.js → dracula-Cu055q9D.js} +0 -0
- /package/dist/web/assets/{dracula-soft-CeHAoi-D.js → dracula-soft-BiX_luwV.js} +0 -0
- /package/dist/web/assets/{dream-maker-BMH1JI2G.js → dream-maker-S6ie6kFg.js} +0 -0
- /package/dist/web/assets/{editor-font-D_4aaSCa.js → editor-font-BOjGgYeg.js} +0 -0
- /package/dist/web/assets/{emacs-lisp-BaAYIdWN.js → emacs-lisp-DpOda430.js} +0 -0
- /package/dist/web/assets/{everforest-dark-Cs91gPa_.js → everforest-dark-BAfSXdLG.js} +0 -0
- /package/dist/web/assets/{everforest-light-lTkE6qWA.js → everforest-light-Dp59kp4R.js} +0 -0
- /package/dist/web/assets/{fennel-CmhYEhcM.js → fennel-CNaNUmMo.js} +0 -0
- /package/dist/web/assets/{fish-p1jauFum.js → fish-C8Z04ic7.js} +0 -0
- /package/dist/web/assets/{fluent-BsH-lUh2.js → fluent-Bugk01mf.js} +0 -0
- /package/dist/web/assets/{format-bytes-amUJ8Js8.js → format-bytes-DBBzVCYA.js} +0 -0
- /package/dist/web/assets/{fortran-free-form-CB6SdVKB.js → fortran-free-form-csIz6MQj.js} +0 -0
- /package/dist/web/assets/{gdscript--YoKuvEA.js → gdscript-fdzYQLfk.js} +0 -0
- /package/dist/web/assets/{gdshader-BRtMwf5z.js → gdshader-CfsEtDeZ.js} +0 -0
- /package/dist/web/assets/{genie-wrzVG2Z8.js → genie-CtHN5N2Q.js} +0 -0
- /package/dist/web/assets/{gherkin-HnpURN27.js → gherkin-gSp2ZJTf.js} +0 -0
- /package/dist/web/assets/{github-dark-XlZ3pGhn.js → github-dark-D7O9efii.js} +0 -0
- /package/dist/web/assets/{github-dark-default-D_R0hfJe.js → github-dark-default-Bv2wIhqD.js} +0 -0
- /package/dist/web/assets/{github-dark-dimmed-BHQgHLnK.js → github-dark-dimmed-BuY_SpCX.js} +0 -0
- /package/dist/web/assets/{github-dark-high-contrast-Pbl4mEFe.js → github-dark-high-contrast-Chv0f5Wu.js} +0 -0
- /package/dist/web/assets/{github-light-0P0VANJn.js → github-light-DV8f-W2f.js} +0 -0
- /package/dist/web/assets/{github-light-default-DTfsnyDq.js → github-light-default-CNBSU3dB.js} +0 -0
- /package/dist/web/assets/{github-light-high-contrast-DKITR-5Y.js → github-light-high-contrast-sg94tHwU.js} +0 -0
- /package/dist/web/assets/{gleam-refSZtkM.js → gleam-w7270-PJ.js} +0 -0
- /package/dist/web/assets/{gn-BZ9cGckR.js → gn-yo_iE_A_.js} +0 -0
- /package/dist/web/assets/{gnuplot-CMHqDcTW.js → gnuplot-DSBPrzl4.js} +0 -0
- /package/dist/web/assets/{go-bFdCrzvY.js → go-D1S7g97D.js} +0 -0
- /package/dist/web/assets/{groovy-Dvz5tluQ.js → groovy-C7xW-5IV.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-hard-D0Z-pclr.js → gruvbox-dark-hard-BZald7Z_.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-medium-BG6oIRQR.js → gruvbox-dark-medium-v6W4PZne.js} +0 -0
- /package/dist/web/assets/{gruvbox-dark-soft-ILJ-3tU6.js → gruvbox-dark-soft-CN5mIGkw.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-hard-Bl95khkz.js → gruvbox-light-hard-D3NIGRxd.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-medium-CdislFOh.js → gruvbox-light-medium-m4ShuCnD.js} +0 -0
- /package/dist/web/assets/{gruvbox-light-soft-CTcEyxlX.js → gruvbox-light-soft-BEEYNyk-.js} +0 -0
- /package/dist/web/assets/{haskell-D9jfkQuH.js → haskell-CgtdXIH3.js} +0 -0
- /package/dist/web/assets/{haxe-Ckfl4osD.js → haxe-D7HQqtIx.js} +0 -0
- /package/dist/web/assets/{hcl-t03N4k5N.js → hcl-C-YHDaXH.js} +0 -0
- /package/dist/web/assets/{hjson-B_TIVRki.js → hjson-BrgEMvJK.js} +0 -0
- /package/dist/web/assets/{hlsl-BBCTeANz.js → hlsl-BsDumu1j.js} +0 -0
- /package/dist/web/assets/{horizon-CRY-xdGU.js → horizon-D9Kre3KQ.js} +0 -0
- /package/dist/web/assets/{horizon-bright-BpUM2C5u.js → horizon-bright-DJq8c_Yq.js} +0 -0
- /package/dist/web/assets/{houston-RVyAGlyS.js → houston-B9tnxzX8.js} +0 -0
- /package/dist/web/assets/{hy-BHFJHuHd.js → hy-DUYVvXOj.js} +0 -0
- /package/dist/web/assets/{image-gallery-DdQblMAe.js → image-gallery-DvAgPQ3L.js} +0 -0
- /package/dist/web/assets/{image-preview-geometry-BFKR37Pj.js → image-preview-geometry-B-SdD7_D.js} +0 -0
- /package/dist/web/assets/{imba-DyG0_0MS.js → imba-CGW-TsRm.js} +0 -0
- /package/dist/web/assets/{ini-CsCTH-_o.js → ini-PqgYiEAV.js} +0 -0
- /package/dist/web/assets/{json5-g3g-IFTV.js → json5-sbkvqHou.js} +0 -0
- /package/dist/web/assets/{jsonc-DQHBJwib.js → jsonc-pnywfpws.js} +0 -0
- /package/dist/web/assets/{jsonl-zFLDm4eB.js → jsonl-ZPOQ0pRn.js} +0 -0
- /package/dist/web/assets/{jsonnet-DgNm2IGn.js → jsonnet-B_Q7j1YF.js} +0 -0
- /package/dist/web/assets/{jssm-BErkU0In.js → jssm-K-xYeQyp.js} +0 -0
- /package/dist/web/assets/{kanagawa-dragon-Dgymfjca.js → kanagawa-dragon-DAdLBtU8.js} +0 -0
- /package/dist/web/assets/{kanagawa-lotus-CWZEYd27.js → kanagawa-lotus-5BwvVGu8.js} +0 -0
- /package/dist/web/assets/{kanagawa-wave-CQg17ecf.js → kanagawa-wave-C0h9fsDT.js} +0 -0
- /package/dist/web/assets/{kdl-DY4GHmJC.js → kdl-DXSsFcms.js} +0 -0
- /package/dist/web/assets/{kotlin-DeGTz7bl.js → kotlin-BXNIvloo.js} +0 -0
- /package/dist/web/assets/{kusto-BN-OqpQj.js → kusto-wM3eio5V.js} +0 -0
- /package/dist/web/assets/{laserwave-bAqiAiOp.js → laserwave-FcbxdP2A.js} +0 -0
- /package/dist/web/assets/{lean-CAypLWCf.js → lean-RenzGeoM.js} +0 -0
- /package/dist/web/assets/{less-ikHAUlPb.js → less-CcUdtNJi.js} +0 -0
- /package/dist/web/assets/{libesm-cUHvIIuW.js → libesm-DMnQ3WlF.js} +0 -0
- /package/dist/web/assets/{light-plus-BamuTcT9.js → light-plus-BsMoOZJR.js} +0 -0
- /package/dist/web/assets/{llvm-CddObVkW.js → llvm-CyylMBuq.js} +0 -0
- /package/dist/web/assets/{log-CWbfGTTc.js → log-BOi0GB58.js} +0 -0
- /package/dist/web/assets/{logo-AHyhxX3Z.js → logo-BQUr3X2Y.js} +0 -0
- /package/dist/web/assets/{luau-y7she9L3.js → luau-3YZRDIsh.js} +0 -0
- /package/dist/web/assets/{make-DP3sQaP3.js → make-DEkKRDRU.js} +0 -0
- /package/dist/web/assets/{markdown-9Nuxib8a.js → markdown-BmFN0-A1.js} +0 -0
- /package/dist/web/assets/{material-theme-DDpm-uS7.js → material-theme-DqLHjEZ8.js} +0 -0
- /package/dist/web/assets/{material-theme-darker-CHk91wbm.js → material-theme-darker-DhbvULnI.js} +0 -0
- /package/dist/web/assets/{material-theme-lighter-LkmOI8KM.js → material-theme-lighter-C_aA4yVe.js} +0 -0
- /package/dist/web/assets/{material-theme-ocean-PpkUhB4-.js → material-theme-ocean-Pk5JltJS.js} +0 -0
- /package/dist/web/assets/{material-theme-palenight-DZAigXgW.js → material-theme-palenight-DNi3VguV.js} +0 -0
- /package/dist/web/assets/{matlab-CexKVVPc.js → matlab-BqUtv2ml.js} +0 -0
- /package/dist/web/assets/{mdx-BrcepHfI.js → mdx-DFMrnHBn.js} +0 -0
- /package/dist/web/assets/{mermaid-CNFhZZaG.js → mermaid-BpyuE0L_.js} +0 -0
- /package/dist/web/assets/{min-dark-hd3nbDV4.js → min-dark-DVfCMEPW.js} +0 -0
- /package/dist/web/assets/{min-light-AqA5jmks.js → min-light-B96aMADV.js} +0 -0
- /package/dist/web/assets/{mipsasm-B3x4L8Zk.js → mipsasm-DHhEcvKr.js} +0 -0
- /package/dist/web/assets/{mojo-CvfXy3YL.js → mojo-BQ6HsVIQ.js} +0 -0
- /package/dist/web/assets/{monokai-CdxwmnU_.js → monokai-amcXAKGG.js} +0 -0
- /package/dist/web/assets/{moonbit-6Z_VCO0_.js → moonbit-CGSXXQJI.js} +0 -0
- /package/dist/web/assets/{move-B2__B6Po.js → move-BOa4mq0q.js} +0 -0
- /package/dist/web/assets/{narrat-D6vL6wL-.js → narrat-dBYNSnhr.js} +0 -0
- /package/dist/web/assets/{nextflow-groovy-L-FBME4e.js → nextflow-groovy-Dm2Y_qgn.js} +0 -0
- /package/dist/web/assets/{night-owl-DjKrkDjv.js → night-owl-Dy9ibYHN.js} +0 -0
- /package/dist/web/assets/{night-owl-light-CeGjPuUQ.js → night-owl-light-DamYjQKi.js} +0 -0
- /package/dist/web/assets/{nix-dr279CcA.js → nix-C1LyoszC.js} +0 -0
- /package/dist/web/assets/{nord-Dxn-_H_Y.js → nord-LtGRYAFI.js} +0 -0
- /package/dist/web/assets/{nushell-DgeAQO7j.js → nushell-BMoOkt47.js} +0 -0
- /package/dist/web/assets/{objective-c-CO0-Pacn.js → objective-c-CILaOZJu.js} +0 -0
- /package/dist/web/assets/{objective-cpp-SkrjegYw.js → objective-cpp-D5Fo-SoM.js} +0 -0
- /package/dist/web/assets/{ocaml-CAihtkib.js → ocaml-D1TCTCEJ.js} +0 -0
- /package/dist/web/assets/{odin-D0XZbUDB.js → odin-CjdYcmpW.js} +0 -0
- /package/dist/web/assets/{one-dark-pro-BUMNMxjX.js → one-dark-pro-GpsZUGZl.js} +0 -0
- /package/dist/web/assets/{one-light-C0Ui69Bx.js → one-light-DlketcS4.js} +0 -0
- /package/dist/web/assets/{openscad-fZ9ggqM-.js → openscad-BoT8wwuI.js} +0 -0
- /package/dist/web/assets/{pascal-DvZm-eun.js → pascal-Cqy403Sf.js} +0 -0
- /package/dist/web/assets/{pkl-CQSIp_z8.js → pkl-D6gRI9qQ.js} +0 -0
- /package/dist/web/assets/{plastic-CMspsouJ.js → plastic-DgvX8DXX.js} +0 -0
- /package/dist/web/assets/{plsql-B_HL7UfT.js → plsql-CTDnCVE3.js} +0 -0
- /package/dist/web/assets/{po-DxAfbdfe.js → po-DDnzm7AQ.js} +0 -0
- /package/dist/web/assets/{poimandres-JGmqmwux.js → poimandres-C4HQwFp-.js} +0 -0
- /package/dist/web/assets/{polar-_mNmplk8.js → polar-WBTQdMzX.js} +0 -0
- /package/dist/web/assets/{postcss-GpU0Sjqc.js → postcss-CWxogTg1.js} +0 -0
- /package/dist/web/assets/{powerquery-B1IP1lCQ.js → powerquery-DVtReIRR.js} +0 -0
- /package/dist/web/assets/{powershell-BiSO9XmG.js → powershell-Cb_RNzSh.js} +0 -0
- /package/dist/web/assets/{prisma-4QqDYSnH.js → prisma-nKLUh3DY.js} +0 -0
- /package/dist/web/assets/{prolog-BNjvyRqT.js → prolog-BD9orEy4.js} +0 -0
- /package/dist/web/assets/{proto-RNOumnkw.js → proto-B-AFoz75.js} +0 -0
- /package/dist/web/assets/{puppet-CDfv5o8f.js → puppet-DDW6wWm4.js} +0 -0
- /package/dist/web/assets/{purescript-YTjSoifd.js → purescript-DXy49AJg.js} +0 -0
- /package/dist/web/assets/{python-Mh7JD25U.js → python-BQnvDlc7.js} +0 -0
- /package/dist/web/assets/{qmldir-Da_ZrqZy.js → qmldir-CboMQXQW.js} +0 -0
- /package/dist/web/assets/{qss-DANVkyhy.js → qss-8XaprLEt.js} +0 -0
- /package/dist/web/assets/{racket-CwPOn4T1.js → racket-ChcVp15M.js} +0 -0
- /package/dist/web/assets/{raku-B04lBsXd.js → raku-dEgEXW0A.js} +0 -0
- /package/dist/web/assets/{red-MW6Zm5pd.js → red-hmwjontD.js} +0 -0
- /package/dist/web/assets/{reg-44SURM-E.js → reg-CIkOufh2.js} +0 -0
- /package/dist/web/assets/{rel-Gu5Erhpm.js → rel-NXKKDiTi.js} +0 -0
- /package/dist/web/assets/{resolve-theme-BNubecVz.js → resolve-theme-B87m6l4i.js} +0 -0
- /package/dist/web/assets/{riscv-DZDP0Ce7.js → riscv-BEIzhPcg.js} +0 -0
- /package/dist/web/assets/{ron-BwLObbl6.js → ron-CW2Bt8rN.js} +0 -0
- /package/dist/web/assets/{rose-pine-Bz6ToXok.js → rose-pine-DhnBfr5a.js} +0 -0
- /package/dist/web/assets/{rose-pine-dawn-LyFogzAh.js → rose-pine-dawn-Jyj59rVs.js} +0 -0
- /package/dist/web/assets/{rose-pine-moon-CpjkefjD.js → rose-pine-moon-BMulxhJC.js} +0 -0
- /package/dist/web/assets/{rosmsg-BldDLaz1.js → rosmsg-DuctJm-Q.js} +0 -0
- /package/dist/web/assets/{rust-74skZ8CC.js → rust-FbJ2fCp9.js} +0 -0
- /package/dist/web/assets/{sass-CitUFDWl.js → sass-Dfxwdu2h.js} +0 -0
- /package/dist/web/assets/{scala-D2kl5ghT.js → scala-ClsSR0wG.js} +0 -0
- /package/dist/web/assets/{scheme-DZqhC9Xs.js → scheme-Jj_Cc-8H.js} +0 -0
- /package/dist/web/assets/{sdbl-D6a8sHP9.js → sdbl-Bi8D_DGN.js} +0 -0
- /package/dist/web/assets/{slack-dark-DrlPLUB_.js → slack-dark-B7gbmJT9.js} +0 -0
- /package/dist/web/assets/{slack-ochin-Djgychog.js → slack-ochin-O7j_c76D.js} +0 -0
- /package/dist/web/assets/{smalltalk-CYQHXftK.js → smalltalk-BD5-U3JK.js} +0 -0
- /package/dist/web/assets/{snazzy-light-BQAdF14K.js → snazzy-light-BbiRB69_.js} +0 -0
- /package/dist/web/assets/{solarized-dark-JDtJfY-g.js → solarized-dark-2OWHYEBu.js} +0 -0
- /package/dist/web/assets/{solarized-light-DHzVPLDD.js → solarized-light-Cew4YqT3.js} +0 -0
- /package/dist/web/assets/{solidity-CYCEiPu1.js → solidity-Bpbne2Tx.js} +0 -0
- /package/dist/web/assets/{splunk-B7RHmJY2.js → splunk-Dq86L1_O.js} +0 -0
- /package/dist/web/assets/{ssh-config-B74-n00O.js → ssh-config-j5hsMvbs.js} +0 -0
- /package/dist/web/assets/{stylus-xlRhcbpN.js → stylus-DWhCIBg0.js} +0 -0
- /package/dist/web/assets/{swift-DTFwWJtu.js → swift-29fG5ztW.js} +0 -0
- /package/dist/web/assets/{synthwave-84-BuCpuX2E.js → synthwave-84-DraIUmiw.js} +0 -0
- /package/dist/web/assets/{system-verilog-CgxJCrOK.js → system-verilog-DqcJAWq_.js} +0 -0
- /package/dist/web/assets/{systemd-D0x7_XYJ.js → systemd-BUPJrx1D.js} +0 -0
- /package/dist/web/assets/{talonscript-B50aQRuc.js → talonscript-BGYbnAKh.js} +0 -0
- /package/dist/web/assets/{tasl-Byv8gHCL.js → tasl-CwbSJqng.js} +0 -0
- /package/dist/web/assets/{tcl-CzMjCzWo.js → tcl-Ba9376wa.js} +0 -0
- /package/dist/web/assets/{terraform-D6GH4CXG.js → terraform-ChSasWu8.js} +0 -0
- /package/dist/web/assets/{tokyo-night-CQ4rTpHY.js → tokyo-night-Bbw1Yguv.js} +0 -0
- /package/dist/web/assets/{toml-D9W-BuJE.js → toml-CYb7zi5B.js} +0 -0
- /package/dist/web/assets/{tsv-BddanT8p.js → tsv-P2eVmwf9.js} +0 -0
- /package/dist/web/assets/{turtle-BddVklvD.js → turtle-DIoQTATC.js} +0 -0
- /package/dist/web/assets/{typespec-D60I2kfB.js → typespec-Dpr1bC2k.js} +0 -0
- /package/dist/web/assets/{typst-Bxvc-9ID.js → typst-D4WMCDMn.js} +0 -0
- /package/dist/web/assets/{utils-Bmf_8h7Y.js → utils-btZ8C8-R.js} +0 -0
- /package/dist/web/assets/{v-kVYZE10o.js → v-B1wY-VFU.js} +0 -0
- /package/dist/web/assets/{vala-B3zj44PV.js → vala-BKqhrirP.js} +0 -0
- /package/dist/web/assets/{vb-CHgWrFTj.js → vb-S9PHCa7-.js} +0 -0
- /package/dist/web/assets/{vendor-xterm-_yyu5n32.js → vendor-xterm-BHKF_Nsf.js} +0 -0
- /package/dist/web/assets/{verilog-zIMuE3hE.js → verilog-CrztYl3V.js} +0 -0
- /package/dist/web/assets/{vesper-BjqPTQr0.js → vesper-C5KfcyFv.js} +0 -0
- /package/dist/web/assets/{vhdl-Q2EtgpQN.js → vhdl-D0qMeIJu.js} +0 -0
- /package/dist/web/assets/{viml-CrtDZkFz.js → viml-Dsv9mRPK.js} +0 -0
- /package/dist/web/assets/{vitesse-black-D2VWO3oN.js → vitesse-black-rJvNN5GN.js} +0 -0
- /package/dist/web/assets/{vitesse-dark-lleZmHBJ.js → vitesse-dark-CYp0WWjf.js} +0 -0
- /package/dist/web/assets/{vitesse-light-utUY298S.js → vitesse-light-BczSAvzE.js} +0 -0
- /package/dist/web/assets/{vyper-LQ1KxOUo.js → vyper-DM7bKz7E.js} +0 -0
- /package/dist/web/assets/{wasm-CJ9U4zWg.js → wasm-BXCHhbrz.js} +0 -0
- /package/dist/web/assets/{wasm-B-mpMVDM.js → wasm-CAJoqhGc.js} +0 -0
- /package/dist/web/assets/{wenyan-LqMyA7px.js → wenyan-NQ8fdbEq.js} +0 -0
- /package/dist/web/assets/{wgsl-eI4U21sm.js → wgsl-C88C7vmC.js} +0 -0
- /package/dist/web/assets/{wikitext-CuWC2dfS.js → wikitext-D92r7uX8.js} +0 -0
- /package/dist/web/assets/{wit-CCPY0MNz.js → wit-DNvTfQjW.js} +0 -0
- /package/dist/web/assets/{wolfram-CXhjyJun.js → wolfram-CNS5lCGj.js} +0 -0
- /package/dist/web/assets/{zenscript-BzHPI08Q.js → zenscript-B_rGi-H_.js} +0 -0
- /package/dist/web/assets/{zig-CBuhKUve.js → zig-BRi9UYQa.js} +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arithmetic behind the canvas's move and resize handles.
|
|
3
|
+
*
|
|
4
|
+
* Each function is shipped to the frame as its own source through `ppm.lib` (see
|
|
5
|
+
* bridge-script.ts), so each one must be self-contained: no reference to anything else in
|
|
6
|
+
* this module, not even to another function in it.
|
|
7
|
+
*
|
|
8
|
+
* Moving writes the individual `translate` property: it composes with an existing
|
|
9
|
+
* `transform`, never reflows siblings, and works whether or not the element is positioned.
|
|
10
|
+
* Resizing writes `width`/`height`; a drag from the left or top edge also shifts `translate`
|
|
11
|
+
* by what the size gave up, so the opposite edge stays where it was.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export type TransformZone = "move" | "n" | "s" | "e" | "w" | "ne" | "nw" | "se" | "sw";
|
|
15
|
+
|
|
16
|
+
export interface TransformBoxValue {
|
|
17
|
+
tx: number;
|
|
18
|
+
ty: number;
|
|
19
|
+
w: number;
|
|
20
|
+
h: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ZoneRect {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
w: number;
|
|
27
|
+
h: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A `translate` value as px offsets, or null when it holds anything else (a percentage, a
|
|
32
|
+
* `calc()`, a non-zero z) — a value the handles cannot extend without changing its meaning.
|
|
33
|
+
* `none` and the empty string are no offset at all.
|
|
34
|
+
*/
|
|
35
|
+
export function parseTranslate(value: string | null | undefined): { x: number; y: number } | null {
|
|
36
|
+
const v = String(value == null ? "" : value).trim().toLowerCase();
|
|
37
|
+
if (v === "" || v === "none") return { x: 0, y: 0 };
|
|
38
|
+
const parts = v.split(/\s+/);
|
|
39
|
+
if (parts.length > 3) return null;
|
|
40
|
+
const nums: number[] = [];
|
|
41
|
+
for (let i = 0; i < parts.length; i++) {
|
|
42
|
+
const m = /^(-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?)(px)?$/.exec(parts[i]!);
|
|
43
|
+
if (!m) return null;
|
|
44
|
+
const n = Number(m[1]);
|
|
45
|
+
// A unitless number is only valid CSS for zero.
|
|
46
|
+
if (!Number.isFinite(n) || (!m[2] && n !== 0)) return null;
|
|
47
|
+
nums.push(n);
|
|
48
|
+
}
|
|
49
|
+
if (nums.length === 3 && nums[2] !== 0) return null;
|
|
50
|
+
return { x: nums[0]!, y: nums.length > 1 ? nums[1]! : 0 };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** `n` as a CSS px value: at most two decimals, within ±20000, never `-0`. */
|
|
54
|
+
export function formatPx(n: number): string {
|
|
55
|
+
const clamped = Math.max(-20000, Math.min(20000, Number.isFinite(n) ? n : 0));
|
|
56
|
+
const rounded = Math.round(clamped * 100) / 100;
|
|
57
|
+
return (rounded === 0 ? 0 : rounded) + "px";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The box after dragging `zone` by (dx, dy) frame px from `start`. Sizes never go below
|
|
62
|
+
* `min`; when a left or top drag hits that floor, the offset stops with it.
|
|
63
|
+
*/
|
|
64
|
+
export function applyDrag(start: TransformBoxValue, zone: TransformZone, dx: number, dy: number, min?: number): TransformBoxValue {
|
|
65
|
+
const floor = typeof min === "number" && min > 0 ? min : 1;
|
|
66
|
+
const out = { tx: start.tx, ty: start.ty, w: start.w, h: start.h };
|
|
67
|
+
if (zone === "move") {
|
|
68
|
+
out.tx = start.tx + dx;
|
|
69
|
+
out.ty = start.ty + dy;
|
|
70
|
+
return out;
|
|
71
|
+
}
|
|
72
|
+
if (zone.indexOf("e") >= 0) out.w = Math.max(floor, start.w + dx);
|
|
73
|
+
if (zone.indexOf("w") >= 0) {
|
|
74
|
+
out.w = Math.max(floor, start.w - dx);
|
|
75
|
+
out.tx = start.tx + (start.w - out.w);
|
|
76
|
+
}
|
|
77
|
+
if (zone.indexOf("s") >= 0) out.h = Math.max(floor, start.h + dy);
|
|
78
|
+
if (zone.indexOf("n") >= 0) {
|
|
79
|
+
out.h = Math.max(floor, start.h - dy);
|
|
80
|
+
out.ty = start.ty + (start.h - out.h);
|
|
81
|
+
}
|
|
82
|
+
return out;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Which handle a point is on: a square of side `hit` around each handle, and the element
|
|
87
|
+
* itself for moving. The middle half of the element always moves, so an element smaller
|
|
88
|
+
* than its handles can still be dragged by its centre.
|
|
89
|
+
*/
|
|
90
|
+
export function zoneAt(rect: ZoneRect, px: number, py: number, hit: number): TransformZone | null {
|
|
91
|
+
const half = hit / 2;
|
|
92
|
+
const inside = px >= rect.x && px <= rect.x + rect.w && py >= rect.y && py <= rect.y + rect.h;
|
|
93
|
+
const cx = rect.x + rect.w / 2, cy = rect.y + rect.h / 2;
|
|
94
|
+
if (inside && Math.abs(px - cx) <= rect.w / 4 && Math.abs(py - cy) <= rect.h / 4) return "move";
|
|
95
|
+
const x = rect.x, y = rect.y, r = rect.x + rect.w, b = rect.y + rect.h;
|
|
96
|
+
const points: Array<[TransformZone, number, number]> = [
|
|
97
|
+
["nw", x, y], ["ne", r, y], ["sw", x, b], ["se", r, b], ["n", cx, y], ["s", cx, b], ["w", x, cy], ["e", r, cy],
|
|
98
|
+
];
|
|
99
|
+
for (let i = 0; i < points.length; i++) {
|
|
100
|
+
const p = points[i]!;
|
|
101
|
+
if (Math.abs(px - p[1]) <= half && Math.abs(py - p[2]) <= half) return p[0];
|
|
102
|
+
}
|
|
103
|
+
return inside ? "move" : null;
|
|
104
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { TransformZone, ZoneRect } from "./bridge-transform-math.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The move and resize handles, drawn inside the design frame.
|
|
5
|
+
*
|
|
6
|
+
* Like the picker's outline, they live in a closed shadow root on a host appended to
|
|
7
|
+
* `<html>`, out of reach of page CSS and never part of described markup. Unlike the
|
|
8
|
+
* outline, the handles are hit targets: each is a square of the given `hit` size (44 screen
|
|
9
|
+
* px, converted to frame px by the parent's scale) with `touch-action: none`, so a finger on
|
|
10
|
+
* one drags the element instead of scrolling the page, and the element's own box is the
|
|
11
|
+
* move area. The host itself stays `pointer-events: none`, so everything outside the
|
|
12
|
+
* handles still reaches the page. Seen from the window, every event on a handle targets the
|
|
13
|
+
* host; `bridge-transform.ts` works out which handle from the coordinates.
|
|
14
|
+
*
|
|
15
|
+
* Shipped as source (`ppm.lib.createTransformOverlay`), so it may only use what it is handed.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export interface TransformOverlay {
|
|
19
|
+
host: HTMLElement;
|
|
20
|
+
/** Place the outline and handles over `rect` (frame viewport px), or hide them. */
|
|
21
|
+
place(rect: ZoneRect | null, hit: number, scale: number, zones: readonly TransformZone[]): void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function createTransformOverlay(doc: Document): TransformOverlay {
|
|
25
|
+
const host = doc.createElement("ppm-design-handles");
|
|
26
|
+
host.setAttribute("aria-hidden", "true");
|
|
27
|
+
const props: Array<[string, string]> = [
|
|
28
|
+
["position", "fixed"], ["top", "0"], ["left", "0"], ["width", "0"], ["height", "0"], ["display", "block"],
|
|
29
|
+
["overflow", "visible"], ["pointer-events", "none"], ["z-index", "2147483647"], ["margin", "0"], ["padding", "0"],
|
|
30
|
+
];
|
|
31
|
+
for (const [name, value] of props) host.style.setProperty(name, value, "important");
|
|
32
|
+
const root = host.attachShadow({ mode: "closed" });
|
|
33
|
+
const make = (css: string): HTMLElement => {
|
|
34
|
+
const el = doc.createElement("div");
|
|
35
|
+
el.style.cssText = "position:fixed;display:none;box-sizing:border-box;" + css;
|
|
36
|
+
root.appendChild(el);
|
|
37
|
+
return el;
|
|
38
|
+
};
|
|
39
|
+
const outline = make("pointer-events:none;border:1.5px solid #2563eb;");
|
|
40
|
+
const move = make("pointer-events:auto;touch-action:none;cursor:move;background:transparent;");
|
|
41
|
+
const cursors: Record<string, string> = {
|
|
42
|
+
nw: "nwse-resize", se: "nwse-resize", ne: "nesw-resize", sw: "nesw-resize", n: "ns-resize", s: "ns-resize", w: "ew-resize", e: "ew-resize",
|
|
43
|
+
};
|
|
44
|
+
const order: TransformZone[] = ["nw", "ne", "sw", "se", "n", "s", "w", "e"];
|
|
45
|
+
const handles: Record<string, { area: HTMLElement; dot: HTMLElement }> = {};
|
|
46
|
+
for (const zone of order) {
|
|
47
|
+
const area = make("pointer-events:auto;touch-action:none;cursor:" + cursors[zone] + ";");
|
|
48
|
+
const dot = doc.createElement("div");
|
|
49
|
+
dot.style.cssText = "position:absolute;left:50%;top:50%;box-sizing:border-box;background:#fff;border:1.5px solid #2563eb;border-radius:2px;transform:translate(-50%,-50%);";
|
|
50
|
+
area.appendChild(dot);
|
|
51
|
+
handles[zone] = { area, dot };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const box = (el: HTMLElement, x: number, y: number, w: number, h: number): void => {
|
|
55
|
+
el.style.left = x + "px";
|
|
56
|
+
el.style.top = y + "px";
|
|
57
|
+
el.style.width = Math.max(0, w) + "px";
|
|
58
|
+
el.style.height = Math.max(0, h) + "px";
|
|
59
|
+
el.style.display = "block";
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
host,
|
|
64
|
+
place(rect, hit, scale, zones) {
|
|
65
|
+
if (!host.isConnected && doc.documentElement) doc.documentElement.appendChild(host);
|
|
66
|
+
const all = [outline, move].concat(order.map((z) => handles[z]!.area));
|
|
67
|
+
if (!rect) {
|
|
68
|
+
for (const el of all) el.style.display = "none";
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const s = scale > 0 ? scale : 1;
|
|
72
|
+
box(outline, rect.x, rect.y, rect.w, rect.h);
|
|
73
|
+
outline.style.borderWidth = 1.5 / s + "px";
|
|
74
|
+
if (zones.indexOf("move") >= 0) box(move, rect.x, rect.y, rect.w, rect.h);
|
|
75
|
+
else move.style.display = "none";
|
|
76
|
+
const cx = rect.x + rect.w / 2, cy = rect.y + rect.h / 2, r = rect.x + rect.w, b = rect.y + rect.h;
|
|
77
|
+
const at: Record<string, [number, number]> = {
|
|
78
|
+
nw: [rect.x, rect.y], ne: [r, rect.y], sw: [rect.x, b], se: [r, b], n: [cx, rect.y], s: [cx, b], w: [rect.x, cy], e: [r, cy],
|
|
79
|
+
};
|
|
80
|
+
const dot = 10 / s;
|
|
81
|
+
for (const zone of order) {
|
|
82
|
+
const h = handles[zone]!;
|
|
83
|
+
if (zones.indexOf(zone) < 0) {
|
|
84
|
+
h.area.style.display = "none";
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
box(h.area, at[zone]![0] - hit / 2, at[zone]![1] - hit / 2, hit, hit);
|
|
88
|
+
h.dot.style.width = dot + "px";
|
|
89
|
+
h.dot.style.height = dot + "px";
|
|
90
|
+
h.dot.style.borderWidth = 1.5 / s + "px";
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { TransformBoxValue } from "./bridge-transform-math.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Reading and writing the three inline properties the canvas handles change, on the live
|
|
5
|
+
* element inside the design frame.
|
|
6
|
+
*
|
|
7
|
+
* The box is what the element has *now*: the computed `translate` (so a stylesheet's offset
|
|
8
|
+
* is extended, not replaced by zero) and the computed `width`/`height`, falling back to the
|
|
9
|
+
* rendered size where those are not px (`auto` on an inline element). `apply` always starts
|
|
10
|
+
* from the inline values saved when the gesture began and sets only what changed, so an
|
|
11
|
+
* untouched `width: auto` stays auto and a revert is exact.
|
|
12
|
+
*
|
|
13
|
+
* Shipped as source (`ppm.lib.createTransformStyle`); the two helpers it needs are handed
|
|
14
|
+
* in, since it may not reference anything in this module.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export type SavedInlineStyle = Record<string, [string, string]>;
|
|
18
|
+
|
|
19
|
+
export interface TransformPending {
|
|
20
|
+
start: TransformBoxValue;
|
|
21
|
+
box: TransformBoxValue;
|
|
22
|
+
base: SavedInlineStyle;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface TransformStyle {
|
|
26
|
+
/** `movable` is false when the element's `translate` is not a plain px offset. */
|
|
27
|
+
measure(el: HTMLElement): { box: TransformBoxValue; movable: boolean };
|
|
28
|
+
save(el: HTMLElement): SavedInlineStyle;
|
|
29
|
+
restore(el: HTMLElement, saved: SavedInlineStyle): void;
|
|
30
|
+
/** The props a gesture from `start` to `box` would write. */
|
|
31
|
+
props(start: TransformBoxValue, box: TransformBoxValue): Record<string, string>;
|
|
32
|
+
apply(el: HTMLElement, pending: TransformPending): void;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function createTransformStyle(
|
|
36
|
+
win: Window,
|
|
37
|
+
formatPx: (n: number) => string,
|
|
38
|
+
parseTranslate: (value: string | null | undefined) => { x: number; y: number } | null,
|
|
39
|
+
): TransformStyle {
|
|
40
|
+
const PROPS = ["translate", "width", "height"];
|
|
41
|
+
const px = (v: string, fallback: number): number => (/px$/.test(v) && isFinite(parseFloat(v)) ? parseFloat(v) : fallback);
|
|
42
|
+
|
|
43
|
+
function save(el: HTMLElement): SavedInlineStyle {
|
|
44
|
+
const out: SavedInlineStyle = {};
|
|
45
|
+
for (const p of PROPS) out[p] = [el.style.getPropertyValue(p), el.style.getPropertyPriority(p)];
|
|
46
|
+
return out;
|
|
47
|
+
}
|
|
48
|
+
function restore(el: HTMLElement, saved: SavedInlineStyle): void {
|
|
49
|
+
for (const p of PROPS) {
|
|
50
|
+
const entry = saved[p];
|
|
51
|
+
if (entry && entry[0]) el.style.setProperty(p, entry[0], entry[1]);
|
|
52
|
+
else el.style.removeProperty(p);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function props(start: TransformBoxValue, box: TransformBoxValue): Record<string, string> {
|
|
56
|
+
const out: Record<string, string> = {};
|
|
57
|
+
if (box.tx !== start.tx || box.ty !== start.ty) out.translate = formatPx(box.tx) + " " + formatPx(box.ty);
|
|
58
|
+
if (box.w !== start.w) out.width = formatPx(box.w);
|
|
59
|
+
if (box.h !== start.h) out.height = formatPx(box.h);
|
|
60
|
+
return out;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
measure(el) {
|
|
64
|
+
const cs = win.getComputedStyle(el);
|
|
65
|
+
const t = parseTranslate(cs.getPropertyValue("translate") || el.style.getPropertyValue("translate"));
|
|
66
|
+
const r = el.getBoundingClientRect();
|
|
67
|
+
return { box: { tx: t ? t.x : 0, ty: t ? t.y : 0, w: px(cs.width, r.width), h: px(cs.height, r.height) }, movable: t !== null };
|
|
68
|
+
},
|
|
69
|
+
save,
|
|
70
|
+
restore,
|
|
71
|
+
props,
|
|
72
|
+
apply(el, pending) {
|
|
73
|
+
restore(el, pending.base);
|
|
74
|
+
const next = props(pending.start, pending.box);
|
|
75
|
+
for (const name of Object.keys(next)) el.style.setProperty(name, next[name]!);
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { BridgeApi } from "./bridge-core.ts";
|
|
2
|
+
import type { TransformZone } from "./bridge-transform-math.ts";
|
|
3
|
+
import type { SavedInlineStyle, TransformPending } from "./bridge-transform-style.ts";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Move and resize inside the design frame.
|
|
7
|
+
*
|
|
8
|
+
* With Move on (`transform-mode`) and a target (`transform-target`, the element the parent
|
|
9
|
+
* selected), the element gets a move area and eight resize handles. A drag restyles it live
|
|
10
|
+
* (inline `translate`/`width`/`height`, normal priority, so what shows is what a write would
|
|
11
|
+
* do) and on release posts `transform-commit` — only a proposal: the parent decides, and
|
|
12
|
+
* answers a refusal with `transform-cancel`, which puts the style back. Arrow keys (Shift for
|
|
13
|
+
* 10 px), here or forwarded as `transform-nudge`, are coalesced into one proposal 500 ms after
|
|
14
|
+
* the last key. `pointercancel` and Esc revert.
|
|
15
|
+
*
|
|
16
|
+
* Installed before the picker, so these capture listeners on `window` run first and every
|
|
17
|
+
* event on the handles stops here, before the picker (which would select the handle host) or
|
|
18
|
+
* the page sees it. Shipped as source, so it may only use `ppm`.
|
|
19
|
+
*/
|
|
20
|
+
export function installTransform(ppm: BridgeApi): void {
|
|
21
|
+
const win = ppm.win;
|
|
22
|
+
const doc = ppm.doc;
|
|
23
|
+
const lib = ppm.lib;
|
|
24
|
+
const NUDGE_COMMIT_MS = 500;
|
|
25
|
+
const ALL: TransformZone[] = ["move", "nw", "ne", "sw", "se", "n", "s", "w", "e"];
|
|
26
|
+
// Without a px translate to extend, only the handles that leave the offset alone work.
|
|
27
|
+
const SIZE_ONLY: TransformZone[] = ["se", "s", "e"];
|
|
28
|
+
const { measure, save, restore, props, apply } = lib.createTransformStyle(win, lib.formatPx, lib.parseTranslate);
|
|
29
|
+
|
|
30
|
+
let on = false;
|
|
31
|
+
let scale = 1;
|
|
32
|
+
let target: { ppmId: number; tag: string } | null = null;
|
|
33
|
+
let overlay: ReturnType<typeof lib.createTransformOverlay> | null = null;
|
|
34
|
+
let drag: (TransformPending & { pointerId: number; zone: TransformZone; x: number; y: number; moved: boolean }) | null = null;
|
|
35
|
+
let nudge: (TransformPending & { timer: number }) | null = null;
|
|
36
|
+
let lastProposal: { ppmId: number; base: SavedInlineStyle } | null = null;
|
|
37
|
+
let tick: number | null = null;
|
|
38
|
+
|
|
39
|
+
function element(): HTMLElement | null {
|
|
40
|
+
if (!target) return null;
|
|
41
|
+
const el = ppm.byId(target.ppmId);
|
|
42
|
+
return el && el.localName.toLowerCase() === target.tag ? (el as HTMLElement) : null;
|
|
43
|
+
}
|
|
44
|
+
const rectOf = (el: Element) => { const r = el.getBoundingClientRect(); return { x: r.left, y: r.top, w: r.width, h: r.height }; };
|
|
45
|
+
|
|
46
|
+
let liveQueued = false;
|
|
47
|
+
let lastLive = "";
|
|
48
|
+
/** Where the element is now, at most once a frame and only when it changed. */
|
|
49
|
+
function postLive(): void {
|
|
50
|
+
liveQueued = false;
|
|
51
|
+
const el = element();
|
|
52
|
+
if (!on || !target) return;
|
|
53
|
+
const p = drag || nudge;
|
|
54
|
+
const payload = { ppmId: target.ppmId, rect: el ? rectOf(el) : null, box: p ? p.box : el ? measure(el).box : null };
|
|
55
|
+
const key = JSON.stringify(payload);
|
|
56
|
+
if (key === lastLive) return;
|
|
57
|
+
lastLive = key;
|
|
58
|
+
ppm.post("transform-live", payload);
|
|
59
|
+
}
|
|
60
|
+
function draw(): void {
|
|
61
|
+
const el = on ? element() : null;
|
|
62
|
+
if (el && !overlay) overlay = lib.createTransformOverlay(doc);
|
|
63
|
+
if (overlay) overlay.place(el ? rectOf(el) : null, 44 / scale, scale, el && !measure(el).movable ? SIZE_ONLY : ALL);
|
|
64
|
+
if (liveQueued || !target || !on) return;
|
|
65
|
+
liveQueued = true;
|
|
66
|
+
if (typeof win.requestAnimationFrame === "function") win.requestAnimationFrame(postLive);
|
|
67
|
+
else win.setTimeout(postLive, 16);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function propose(p: TransformPending): void {
|
|
71
|
+
const changed = props(p.start, p.box);
|
|
72
|
+
if (!target || Object.keys(changed).length === 0) return;
|
|
73
|
+
lastProposal = { ppmId: target.ppmId, base: p.base };
|
|
74
|
+
ppm.post("transform-commit", { file: ppm.boot.file, gen: ppm.boot.gen, ppmId: target.ppmId, tag: target.tag, props: changed });
|
|
75
|
+
}
|
|
76
|
+
function flushNudge(): void {
|
|
77
|
+
const done = nudge;
|
|
78
|
+
nudge = null;
|
|
79
|
+
if (done) { win.clearTimeout(done.timer); propose(done); }
|
|
80
|
+
}
|
|
81
|
+
function revert(): boolean {
|
|
82
|
+
const el = element();
|
|
83
|
+
const p = drag || nudge;
|
|
84
|
+
if (nudge) win.clearTimeout(nudge.timer);
|
|
85
|
+
drag = null;
|
|
86
|
+
nudge = null;
|
|
87
|
+
if (!p) return false;
|
|
88
|
+
if (el) restore(el, p.base);
|
|
89
|
+
draw();
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
function nudgeBy(dx: number, dy: number): void {
|
|
93
|
+
const el = on && !drag ? element() : null;
|
|
94
|
+
if (!el) return;
|
|
95
|
+
if (!nudge) {
|
|
96
|
+
const m = measure(el);
|
|
97
|
+
if (!m.movable) return;
|
|
98
|
+
nudge = { start: m.box, box: { tx: m.box.tx, ty: m.box.ty, w: m.box.w, h: m.box.h }, base: save(el), timer: 0 };
|
|
99
|
+
}
|
|
100
|
+
nudge.box.tx += dx;
|
|
101
|
+
nudge.box.ty += dy;
|
|
102
|
+
apply(el, nudge);
|
|
103
|
+
win.clearTimeout(nudge.timer);
|
|
104
|
+
nudge.timer = win.setTimeout(flushNudge, NUDGE_COMMIT_MS);
|
|
105
|
+
draw();
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const onHandles = (event: Event): boolean => on && !!overlay && event.target === overlay.host;
|
|
109
|
+
const consume = (event: Event): void => {
|
|
110
|
+
if (event.cancelable) event.preventDefault();
|
|
111
|
+
event.stopImmediatePropagation();
|
|
112
|
+
};
|
|
113
|
+
const listen = (type: string, fn: (event: Event) => void): void => win.addEventListener(type, fn, { capture: true, passive: false });
|
|
114
|
+
|
|
115
|
+
listen("pointerdown", (event) => {
|
|
116
|
+
if (!onHandles(event)) return;
|
|
117
|
+
consume(event);
|
|
118
|
+
const e = event as PointerEvent;
|
|
119
|
+
const el = element();
|
|
120
|
+
if (!el || drag || (e.pointerType === "mouse" && e.button !== 0)) return;
|
|
121
|
+
const m = measure(el);
|
|
122
|
+
const zone = lib.zoneAt(rectOf(el), e.clientX, e.clientY, 44 / scale);
|
|
123
|
+
if (!zone || (m.movable ? ALL : SIZE_ONLY).indexOf(zone) < 0) return;
|
|
124
|
+
flushNudge();
|
|
125
|
+
// Consuming mousedown also cancels the focus it would give this frame; arrow keys need it.
|
|
126
|
+
win.focus();
|
|
127
|
+
drag = { start: m.box, box: m.box, base: save(el), pointerId: e.pointerId, zone, x: e.clientX, y: e.clientY, moved: false };
|
|
128
|
+
try { overlay!.host.setPointerCapture(e.pointerId); } catch (err) { /* capture is a nicety; window listeners still see the drag */ }
|
|
129
|
+
});
|
|
130
|
+
/** The drag's own pointer event, consumed; any other event on the handles is consumed too. */
|
|
131
|
+
const ours = (event: Event): PointerEvent | null => {
|
|
132
|
+
const mine = !!drag && (event as PointerEvent).pointerId === drag.pointerId;
|
|
133
|
+
if (mine || onHandles(event)) consume(event);
|
|
134
|
+
return mine ? (event as PointerEvent) : null;
|
|
135
|
+
};
|
|
136
|
+
listen("pointermove", (event) => {
|
|
137
|
+
const e = ours(event);
|
|
138
|
+
const el = element();
|
|
139
|
+
if (!e || !drag || !el) return;
|
|
140
|
+
drag.box = lib.applyDrag(drag.start, drag.zone, e.clientX - drag.x, e.clientY - drag.y);
|
|
141
|
+
drag.moved = true;
|
|
142
|
+
apply(el, drag);
|
|
143
|
+
draw();
|
|
144
|
+
});
|
|
145
|
+
listen("pointerup", (event) => {
|
|
146
|
+
if (!ours(event) || !drag) return;
|
|
147
|
+
const done = drag;
|
|
148
|
+
drag = null;
|
|
149
|
+
if (done.moved) propose(done);
|
|
150
|
+
draw();
|
|
151
|
+
});
|
|
152
|
+
listen("pointercancel", (event) => { if (ours(event)) revert(); });
|
|
153
|
+
// Whatever else lands on the handles is theirs too, so neither the picker nor the page acts on it.
|
|
154
|
+
const swallowed = ["mousedown", "mouseup", "mousemove", "click", "dblclick", "auxclick", "contextmenu",
|
|
155
|
+
"touchstart", "touchmove", "touchend", "touchcancel", "dragstart", "selectstart"];
|
|
156
|
+
for (const type of swallowed) listen(type, (event) => { if (onHandles(event)) consume(event); });
|
|
157
|
+
|
|
158
|
+
listen("keydown", (event) => {
|
|
159
|
+
const e = event as KeyboardEvent;
|
|
160
|
+
if (!on || !target) return;
|
|
161
|
+
if (e.key === "Escape") {
|
|
162
|
+
if (revert()) consume(e);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const steps: Record<string, [number, number]> = { ArrowLeft: [-1, 0], ArrowRight: [1, 0], ArrowUp: [0, -1], ArrowDown: [0, 1] };
|
|
166
|
+
const step = steps[e.key];
|
|
167
|
+
const t = e.target as HTMLElement | null;
|
|
168
|
+
const editing = !!t && (/^(input|textarea|select)$/i.test(t.tagName || "") || t.isContentEditable === true);
|
|
169
|
+
if (!step || editing || !element()) return;
|
|
170
|
+
consume(e);
|
|
171
|
+
nudgeBy(step[0] * (e.shiftKey ? 10 : 1), step[1] * (e.shiftKey ? 10 : 1));
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
const redraw = (): void => { if (on && target) draw(); };
|
|
175
|
+
win.addEventListener("scroll", redraw, { capture: true, passive: true });
|
|
176
|
+
win.addEventListener("resize", redraw, { passive: true });
|
|
177
|
+
|
|
178
|
+
ppm.on("transform-mode", (m) => {
|
|
179
|
+
const next = m.on === true;
|
|
180
|
+
if (typeof m.scale === "number" && isFinite(m.scale) && m.scale > 0) scale = m.scale;
|
|
181
|
+
if (!next) revert();
|
|
182
|
+
on = next;
|
|
183
|
+
if (tick !== null) win.clearInterval(tick);
|
|
184
|
+
// Layout can shift under the handles without a scroll or resize (fonts, images, scripts).
|
|
185
|
+
tick = on ? win.setInterval(redraw, 400) : null;
|
|
186
|
+
draw();
|
|
187
|
+
});
|
|
188
|
+
ppm.on("transform-target", (m) => {
|
|
189
|
+
const next = typeof m.ppmId === "number" && typeof m.tag === "string" ? { ppmId: m.ppmId, tag: m.tag } : null;
|
|
190
|
+
if (!next || !target || next.ppmId !== target.ppmId) revert();
|
|
191
|
+
target = next;
|
|
192
|
+
draw();
|
|
193
|
+
});
|
|
194
|
+
ppm.on("transform-nudge", (m) => { if (typeof m.dx === "number" && typeof m.dy === "number" && isFinite(m.dx + m.dy)) nudgeBy(m.dx, m.dy); });
|
|
195
|
+
ppm.on("transform-cancel", () => {
|
|
196
|
+
const el = lastProposal ? ppm.byId(lastProposal.ppmId) : null;
|
|
197
|
+
if (lastProposal && el) restore(el as HTMLElement, lastProposal.base);
|
|
198
|
+
lastProposal = null;
|
|
199
|
+
draw();
|
|
200
|
+
});
|
|
201
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { BridgeApi } from "./bridge-core.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Live tweak values inside the design document.
|
|
5
|
+
*
|
|
6
|
+
* `tweak-set` writes each value as an inline custom property on the document element, with
|
|
7
|
+
* `important` priority so it shows even where the page's own `:root` rule is `!important`;
|
|
8
|
+
* `tweak-reset` removes them again, which reveals the stylesheet's own value. `tweak-read`
|
|
9
|
+
* answers `tweak-values` with each variable's computed value plus which kind of readable rule
|
|
10
|
+
* sets it last (`root`, `conditional` inside an at-rule or a media-limited sheet, `other`
|
|
11
|
+
* selector, or `unknown` when nothing readable does or a linked sheet the opaque origin
|
|
12
|
+
* cannot read comes after it). That report is a hint for the panel, never a write decision.
|
|
13
|
+
*
|
|
14
|
+
* The parent validates what it sends, and the protocol validates it again, but the frame
|
|
15
|
+
* re-checks the variable name and the value's shape here too: this code runs next to the
|
|
16
|
+
* page's scripts, and a malformed value must never reach `setProperty`. The checks mirror
|
|
17
|
+
* `isSafeTweakValueShape` in `shared/design-tweaks.ts`; shipped as source, this function
|
|
18
|
+
* cannot import it.
|
|
19
|
+
*/
|
|
20
|
+
export function installTweaks(ppm: BridgeApi): void {
|
|
21
|
+
const doc = ppm.doc;
|
|
22
|
+
const win = ppm.win as Window & typeof globalThis;
|
|
23
|
+
const VAR = /^--[a-zA-Z0-9_-]{1,48}$/;
|
|
24
|
+
const CHARS = /^[A-Za-z0-9 #.,%()-]{1,64}$/;
|
|
25
|
+
const FUNCS = /^(rgba?|hsla?|hwb|lab|lch|oklab|oklch|calc|min|max|clamp|var)$/i;
|
|
26
|
+
const applied: Record<string, true> = {};
|
|
27
|
+
|
|
28
|
+
function safeValue(v: unknown): v is string {
|
|
29
|
+
if (typeof v !== "string" || !CHARS.test(v) || v.trim() !== v || v.indexOf("/*") >= 0 || v.indexOf("*/") >= 0) return false;
|
|
30
|
+
let depth = 0;
|
|
31
|
+
for (let i = 0; i < v.length; i++) {
|
|
32
|
+
if (v[i] === "(") depth++;
|
|
33
|
+
else if (v[i] === ")" && --depth < 0) return false;
|
|
34
|
+
}
|
|
35
|
+
if (depth !== 0) return false;
|
|
36
|
+
const calls = /([A-Za-z-]*)\(/g;
|
|
37
|
+
let m: RegExpExecArray | null;
|
|
38
|
+
while ((m = calls.exec(v))) if (!FUNCS.test(m[1]!)) return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function vars(list: unknown): string[] {
|
|
43
|
+
if (!Array.isArray(list)) return [];
|
|
44
|
+
const out: string[] = [];
|
|
45
|
+
for (let i = 0; i < list.length && out.length < 24; i++) if (typeof list[i] === "string" && VAR.test(list[i])) out.push(list[i]);
|
|
46
|
+
return out;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const root = (): HTMLElement | null => doc.documentElement as HTMLElement | null;
|
|
50
|
+
|
|
51
|
+
/** Last readable declaration of `name`, in sheet order, and what kind of rule holds it. */
|
|
52
|
+
function winnerOf(name: string): "root" | "conditional" | "other" | "unknown" {
|
|
53
|
+
let winner: "root" | "conditional" | "other" | "unknown" = "unknown";
|
|
54
|
+
const sheets = doc.styleSheets;
|
|
55
|
+
const walk = (rules: CSSRuleList, conditional: boolean): void => {
|
|
56
|
+
for (let i = 0; i < rules.length; i++) {
|
|
57
|
+
const rule = rules[i] as CSSRule & { selectorText?: string; style?: CSSStyleDeclaration; cssRules?: CSSRuleList };
|
|
58
|
+
if (rule.style && typeof rule.selectorText === "string" && rule.style.getPropertyValue(name) !== "") {
|
|
59
|
+
const sel = rule.selectorText.trim().toLowerCase();
|
|
60
|
+
winner = conditional ? "conditional" : sel === ":root" || sel === "html" ? "root" : "other";
|
|
61
|
+
}
|
|
62
|
+
// Grouping rules (@media, @supports, @layer) and nested style rules.
|
|
63
|
+
if (rule.cssRules && !rule.style) walk(rule.cssRules, true);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
for (let i = 0; i < sheets.length; i++) {
|
|
67
|
+
const sheet = sheets[i]!;
|
|
68
|
+
let rules: CSSRuleList | null = null;
|
|
69
|
+
try {
|
|
70
|
+
rules = sheet.cssRules;
|
|
71
|
+
} catch (e) {
|
|
72
|
+
// A linked sheet: unreadable from the opaque origin, so whatever came before it may lose.
|
|
73
|
+
winner = "unknown";
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
const media = sheet.media && sheet.media.mediaText ? sheet.media.mediaText.trim().toLowerCase() : "";
|
|
77
|
+
if (rules) walk(rules, media !== "" && media !== "all");
|
|
78
|
+
}
|
|
79
|
+
return winner;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
ppm.on("tweak-set", (m) => {
|
|
83
|
+
const el = root();
|
|
84
|
+
const values = m.values;
|
|
85
|
+
if (!el || !values || typeof values !== "object") return;
|
|
86
|
+
for (const name of Object.keys(values)) {
|
|
87
|
+
const value = (values as Record<string, unknown>)[name];
|
|
88
|
+
if (!VAR.test(name) || !safeValue(value)) continue;
|
|
89
|
+
el.style.setProperty(name, value, "important");
|
|
90
|
+
applied[name] = true;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
ppm.on("tweak-reset", (m) => {
|
|
95
|
+
const el = root();
|
|
96
|
+
if (!el) return;
|
|
97
|
+
const names = m.vars === undefined ? Object.keys(applied) : vars(m.vars);
|
|
98
|
+
for (const name of names) {
|
|
99
|
+
if (!applied[name]) continue;
|
|
100
|
+
el.style.removeProperty(name);
|
|
101
|
+
delete applied[name];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
ppm.on("tweak-read", (m) => {
|
|
106
|
+
const el = root();
|
|
107
|
+
const values: Record<string, string> = {};
|
|
108
|
+
const winners: Record<string, string> = {};
|
|
109
|
+
if (el) {
|
|
110
|
+
const computed = win.getComputedStyle(el);
|
|
111
|
+
for (const name of vars(m.vars)) {
|
|
112
|
+
values[name] = String(computed.getPropertyValue(name) || "").trim().slice(0, 200);
|
|
113
|
+
winners[name] = winnerOf(name);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
ppm.post("tweak-values", { values, winners });
|
|
117
|
+
});
|
|
118
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { emitDesignEvent } from "../design-events.ts";
|
|
4
|
+
import type { CanvasCheckReport } from "../../../shared/design-canvas-check.ts";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The server half of the canvas self-check. The design is only ever laid out in a browser
|
|
8
|
+
* tab, so a check is a round trip: announce `design:check_request` to the clients showing
|
|
9
|
+
* that design (`/ws/global`), and wait for the first of them to POST its report back.
|
|
10
|
+
*
|
|
11
|
+
* A pending request is bound to its project and design; an answer naming any other one is
|
|
12
|
+
* refused, so a client cannot settle a check it was never asked about. The map is bounded
|
|
13
|
+
* and every entry leaves it on its own timer, answered or not.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
export const CHECK_TIMEOUT_MS = 20_000;
|
|
17
|
+
export const MAX_PENDING_CHECKS = 32;
|
|
18
|
+
export const NO_CANVAS_MESSAGE =
|
|
19
|
+
"No open design canvas answered. Open this design's tab in PPM to check the canvas, then call design_check again.";
|
|
20
|
+
|
|
21
|
+
export type CanvasCheckOutcome = { ok: true; report: CanvasCheckReport } | { ok: false; error: string };
|
|
22
|
+
|
|
23
|
+
interface Pending {
|
|
24
|
+
key: string;
|
|
25
|
+
settle: (outcome: CanvasCheckOutcome) => void;
|
|
26
|
+
timer: ReturnType<typeof setTimeout>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const fold = (p: string): string => (process.platform === "win32" ? resolve(p).toLowerCase() : resolve(p));
|
|
30
|
+
const keyOf = (projectPath: string, slug: string): string => `${fold(projectPath)}\u0000${slug}`;
|
|
31
|
+
|
|
32
|
+
export function createCanvasCheckBroker(opts: {
|
|
33
|
+
timeoutMs?: number;
|
|
34
|
+
maxPending?: number;
|
|
35
|
+
announce?: (projectPath: string, slug: string, requestId: string, screenshot: boolean) => void;
|
|
36
|
+
} = {}) {
|
|
37
|
+
const timeoutMs = opts.timeoutMs ?? CHECK_TIMEOUT_MS;
|
|
38
|
+
const maxPending = opts.maxPending ?? MAX_PENDING_CHECKS;
|
|
39
|
+
const announce = opts.announce ?? ((projectPath, slug, requestId, screenshot) =>
|
|
40
|
+
emitDesignEvent("check_request", { projectPath, slug, requestId, screenshot }));
|
|
41
|
+
const pending = new Map<string, Pending>();
|
|
42
|
+
|
|
43
|
+
function request(projectPath: string, slug: string, options: { screenshot: boolean }): Promise<CanvasCheckOutcome> {
|
|
44
|
+
if (pending.size >= maxPending) {
|
|
45
|
+
return Promise.resolve({ ok: false, error: "Too many canvas checks are waiting; try again in a few seconds." });
|
|
46
|
+
}
|
|
47
|
+
const requestId = randomBytes(12).toString("base64url");
|
|
48
|
+
return new Promise<CanvasCheckOutcome>((done) => {
|
|
49
|
+
const settle = (outcome: CanvasCheckOutcome): void => {
|
|
50
|
+
const entry = pending.get(requestId);
|
|
51
|
+
if (!entry) return;
|
|
52
|
+
clearTimeout(entry.timer);
|
|
53
|
+
pending.delete(requestId);
|
|
54
|
+
done(outcome);
|
|
55
|
+
};
|
|
56
|
+
const timer = setTimeout(() => settle({ ok: false, error: NO_CANVAS_MESSAGE }), timeoutMs);
|
|
57
|
+
pending.set(requestId, { key: keyOf(projectPath, slug), settle, timer });
|
|
58
|
+
try {
|
|
59
|
+
announce(projectPath, slug, requestId, options.screenshot);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
settle({ ok: false, error: `Could not reach the canvas: ${(e as Error).message}` });
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** Settles a pending check with a client's report; false when none matches this design. */
|
|
67
|
+
function resolveCheck(projectPath: string, slug: string, requestId: string, report: CanvasCheckReport): boolean {
|
|
68
|
+
const entry = pending.get(requestId);
|
|
69
|
+
if (!entry || entry.key !== keyOf(projectPath, slug)) return false;
|
|
70
|
+
entry.settle({ ok: true, report });
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return { request, resolveCheck, pendingCount: () => pending.size };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export const canvasCheckBroker = createCanvasCheckBroker();
|