decocms 4.619.8 → 4.619.10
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/client/assets/{AlertCircle-D2NouvfT.js → AlertCircle-D1Q8X__K.js} +1 -1
- package/dist/client/assets/{AreaChart-C69ZZsoI.js → AreaChart-CZ4CFQOF.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BqT0JjoT.js → ArrowLeft-a7zQohPB.js} +1 -1
- package/dist/client/assets/{ArrowRight-drioiso6.js → ArrowRight-CcdemY_e.js} +1 -1
- package/dist/client/assets/{ArrowUp-BX4O3cRq.js → ArrowUp-BjMuYXEC.js} +1 -1
- package/dist/client/assets/{BookOpen01-3jk6-b2F.js → BookOpen01-Caac9KpE.js} +1 -1
- package/dist/client/assets/{CartesianChart-Cq8jOByd.js → CartesianChart-B0jOalhe.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DpckCE8K.js → CategoricalChart-CCxFJJjf.js} +1 -1
- package/dist/client/assets/{CheckCircle-CLvYssUd.js → CheckCircle-BygonUdk.js} +1 -1
- package/dist/client/assets/{ChevronDown-DAnJt1CB.js → ChevronDown-BDwdJQzR.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CV3zcNGH.js → ChevronSelectorVertical-BAKnniO6.js} +1 -1
- package/dist/client/assets/{ChevronUp-OFnHDyjq.js → ChevronUp-CoA7d7vl.js} +1 -1
- package/dist/client/assets/{CreditCard01-HXOYzid-.js → CreditCard01-BD4H9Smc.js} +1 -1
- package/dist/client/assets/{Eye-CmYcf8ai.js → Eye-B8RfELJD.js} +1 -1
- package/dist/client/assets/{File02-7Vd4jW_I.js → File02-CNp6lbfd.js} +1 -1
- package/dist/client/assets/{Fingerprint04-6UGroDLU.js → Fingerprint04-CYuFFJ8_.js} +1 -1
- package/dist/client/assets/{Globe04-24mKQ9Ao.js → Globe04-DGpfgXDy.js} +1 -1
- package/dist/client/assets/{Image01-BXYfiVgr.js → Image01-DZ0d0gl4.js} +1 -1
- package/dist/client/assets/{Key01-B_hS_62c.js → Key01-CCL-qpBw.js} +1 -1
- package/dist/client/assets/{LayoutLeft-FMo6Osev.js → LayoutLeft-D6A6HKPj.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Cq1VpHt5.js → LinkBroken01-DZpjy5h4.js} +1 -1
- package/dist/client/assets/{MessageCircle01-cLkYRAq1.js → MessageCircle01-Vr9v9ZLf.js} +1 -1
- package/dist/client/assets/{Minus-CpAwDyCu.js → Minus-Cdvi1RtF.js} +1 -1
- package/dist/client/assets/{Monitor01-BgljY9mZ.js → Monitor01-BKLXdSAu.js} +1 -1
- package/dist/client/assets/{Play-B8qXRmXx.js → Play-KnC-ePg8.js} +1 -1
- package/dist/client/assets/{Plus-CMPQGYNJ.js → Plus-fnuC_-Ii.js} +1 -1
- package/dist/client/assets/{ReferenceLine-Bcj8UdgJ.js → ReferenceLine-BWtcsB8X.js} +1 -1
- package/dist/client/assets/{SearchMd-BRrpiXaK.js → SearchMd-C7M41YQV.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Lv_lXKl3.js → ShoppingBag01-D27zZ3nR.js} +1 -1
- package/dist/client/assets/{Sun-DiXyHGM-.js → Sun-TBLvGE97.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CoKNU7eN.js → SwitchHorizontal01-D47eRm9A.js} +1 -1
- package/dist/client/assets/{Tool01-CQpf9QHt.js → Tool01-eLaAOwHX.js} +1 -1
- package/dist/client/assets/{Tooltip-CVOw8Oes.js → Tooltip-BVDzZkXm.js} +1 -1
- package/dist/client/assets/{Trash01-Dw3BP1yz.js → Trash01-C_glH0wy.js} +1 -1
- package/dist/client/assets/{Upload01-DGYPOiPg.js → Upload01-VrBKSmfZ.js} +1 -1
- package/dist/client/assets/{UserCheck01-Bl-xFtn-.js → UserCheck01-BiEm5Ebz.js} +1 -1
- package/dist/client/assets/{UserSquare-BlZFBeJE.js → UserSquare-DRonBRNm.js} +1 -1
- package/dist/client/assets/{Users01-y41RvLhz.js → Users01-CYW34Us_.js} +1 -1
- package/dist/client/assets/{XClose-CNBL86j1.js → XClose-xoNzv1jt.js} +1 -1
- package/dist/client/assets/{Zap-CjPlT3gP.js → Zap-Ch4l-t5Z.js} +1 -1
- package/dist/client/assets/{access-gate-D0QZMBM8.js → access-gate-CNfTTZux.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Da-94zWB.js → add-connection-dialog--_GdeImt.js} +1 -1
- package/dist/client/assets/agent-app-1gb3fP-R.js +1 -0
- package/dist/client/assets/{agent-assets-C5rXkHpB.js → agent-assets-B9TTg2qM.js} +1 -1
- package/dist/client/assets/{agent-automation-DdRoXUCi.js → agent-automation-Mtl2x19j.js} +1 -1
- package/dist/client/assets/{agent-automations-CP0SoeZd.js → agent-automations-8oFrbM5G.js} +1 -1
- package/dist/client/assets/{agent-blog-B6woE9FU.js → agent-blog-FC7eW83-.js} +2 -2
- package/dist/client/assets/{agent-blog-post-CcqCot21.js → agent-blog-post-Dpmyvzzj.js} +2 -2
- package/dist/client/assets/{agent-business-case-Duf4Cs8G.js → agent-business-case-DEp0r6mM.js} +1 -1
- package/dist/client/assets/{agent-calendar-BxmvIlWp.js → agent-calendar-B6FrBIj9.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BY-9tVop.js → agent-capabilities-CkWGD_1I.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DRkyMPTr.js → agent-connect-sources-Bc_bs6sE.js} +1 -1
- package/dist/client/assets/agent-deck-CmXstFXo.js +1 -0
- package/dist/client/assets/{agent-e2e-DqkFVlDK.js → agent-e2e-BxjBBycE.js} +1 -1
- package/dist/client/assets/agent-experiments-CDey06Av.js +1 -0
- package/dist/client/assets/agent-file-nF-v4TIq.js +1 -0
- package/dist/client/assets/{agent-hosting-B81aZJg8.js → agent-hosting-CFqNbgT1.js} +1 -1
- package/dist/client/assets/{agent-icon-Di7zqlxT.js → agent-icon-DFYKaa0c.js} +1 -1
- package/dist/client/assets/agent-library-DpY5A561.js +1 -0
- package/dist/client/assets/agent-library-file-CWaKqX-p.js +1 -0
- package/dist/client/assets/agent-overview-DtRPdBry.js +1 -0
- package/dist/client/assets/{agent-releases-BKSsiYLJ.js → agent-releases-wE_sFDN-.js} +1 -1
- package/dist/client/assets/agent-settings-BAi3GmmG.js +1 -0
- package/dist/client/assets/{agent-site-editor-CThnBNcc.js → agent-site-editor-C0q8LvFu.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-MFqRb2Ue.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bb5YwChE.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DRcDZGPw.js +1 -0
- package/dist/client/assets/agent-view-B24byKnk.js +1 -0
- package/dist/client/assets/{agent-view-guard-CwnSIu1-.js → agent-view-guard-DKuyN-80.js} +1 -1
- package/dist/client/assets/{ai-providers-BABgYL-0.js → ai-providers-qOMkGjqx.js} +1 -1
- package/dist/client/assets/{alert-CmpLSGbv.js → alert-DosQ3gDY.js} +1 -1
- package/dist/client/assets/{analytics-sections-ozEgo_XG.js → analytics-sections-CD1kYfMD.js} +1 -1
- package/dist/client/assets/{api-keys-DyM3zmsB.js → api-keys-C1SgriUZ.js} +1 -1
- package/dist/client/assets/api-keys-umCPf2jI.js +1 -0
- package/dist/client/assets/{app-editor-Bvtw4ylo.js → app-editor-BlBVNt7A.js} +1 -1
- package/dist/client/assets/{asset-utils-hNqdjb20.js → asset-utils-BK2ot-jO.js} +1 -1
- package/dist/client/assets/{auth-catchall-CAO8d9Fp.js → auth-catchall-Brs6Xsvy.js} +1 -1
- package/dist/client/assets/{auth-entry-BIRQU4mc.js → auth-entry-By-AdTxA.js} +1 -1
- package/dist/client/assets/{auth-split-layout-XFJP-UEn.js → auth-split-layout-CKfdFrqW.js} +1 -1
- package/dist/client/assets/{auth-B-a5Zgxg.js → auth-xINlnEh8.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BJKvJQB_.js → authenticate-and-persist-oauth-CfAul8ih.js} +1 -1
- package/dist/client/assets/{automation-list-row-CdbPiLrN.js → automation-list-row-xGe3-vaO.js} +1 -1
- package/dist/client/assets/{automation-runs-FHf4-haW.js → automation-runs-DUyTfm-1.js} +1 -1
- package/dist/client/assets/{automations-DjrGqdOo.js → automations-Cl7RIbcD.js} +1 -1
- package/dist/client/assets/{badge-CLRPbUCC.js → badge-By3J5rC3.js} +1 -1
- package/dist/client/assets/{block-document-DUuq2ZeF.js → block-document-Bog58LB_.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CHO07sy_.js → blocks-preview-workspace-context-BEc68w0W.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DyZqVv-l.js → blocks-tab-states-C-fKJR1R.js} +1 -1
- package/dist/client/assets/{blog-preview-url-B7yZ2G-y.js → blog-preview-url-B9jP2xxs.js} +1 -1
- package/dist/client/assets/{blog-schema-C2hFTN-o.js → blog-schema-03G2DeQU.js} +1 -1
- package/dist/client/assets/{blog-source-gate-Ce60HIPG.js → blog-source-gate-D0f9lC6c.js} +1 -1
- package/dist/client/assets/{blog-view-gate-4XPksI2p.js → blog-view-gate-Cd7nZI43.js} +1 -1
- package/dist/client/assets/{buckets-CYMX4NUg.js → buckets-DItzj1C4.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DnoDBpzy.js → build-improve-prompt-doc-DhyvYeik.js} +1 -1
- package/dist/client/assets/{calendar-CuW1bMpF.js → calendar-DhrCDRQ3.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cv8kMWPd.js → capability-load-error-CDIQe4e8.js} +1 -1
- package/dist/client/assets/{category-editor-DTHjgA1h.js → category-editor-df2u5p7v.js} +1 -1
- package/dist/client/assets/{category-tree-Czed1V_u.js → category-tree-ldYsSWnP.js} +1 -1
- package/dist/client/assets/{chart-CT2CjoCj.js → chart-Df8ROyLe.js} +1 -1
- package/dist/client/assets/{chat-context-DytZnaTl.js → chat-context-CqcR4aAu.js} +1 -1
- package/dist/client/assets/{chat-draft-CR3QGF0K.js → chat-draft-D6uyGiuZ.js} +1 -1
- package/dist/client/assets/{checkbox-DV2T_2wi.js → checkbox-Bg0tGTVi.js} +1 -1
- package/dist/client/assets/{choose-editor-D0ZELI37.js → choose-editor-Jha1HKKs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CWwAkmlP.js → cli-auth-success-DfcdCs0V.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-159iosTN.js → cms-settings-editor-WLlijqQA.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BxkVhzpN.js → cms-store-drafts-2T-3kouy.js} +1 -1
- package/dist/client/assets/{collapsible-DL_QpL2k.js → collapsible-CxuxAsHp.js} +1 -1
- package/dist/client/assets/{collection-detail-D5h-mH7Y.js → collection-detail-CpK9gTgl.js} +1 -1
- package/dist/client/assets/{collection-display-button-CK1C97OD.js → collection-display-button-BifT3jIZ.js} +1 -1
- package/dist/client/assets/{collection-search-Daa7Sik-.js → collection-search-DhW2WLfL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BUGBS30a.js → collection-table-wrapper-D0qUDiEO.js} +1 -1
- package/dist/client/assets/{collection-tabs-BOqc8wWl.js → collection-tabs-D91PU4y3.js} +1 -1
- package/dist/client/assets/{combobox-BzGXmufP.js → combobox-B-vXOMV-.js} +1 -1
- package/dist/client/assets/{command-DIXZqeHF.js → command-DmBlCsxL.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BRWozWTB.js → companion-mcps-section-DAiOKGeY.js} +1 -1
- package/dist/client/assets/{config-DrlLEd_m.js → config-DbV4O0C1.js} +1 -1
- package/dist/client/assets/{connect-BRiNWbHt.js → connect-BZ0g82Ew.js} +1 -1
- package/dist/client/assets/{connect-key-DoVs3WjL.js → connect-key-MkbzrmMb.js} +1 -1
- package/dist/client/assets/{connect-layout-gsj1teLb.js → connect-layout-Cs5HfFrd.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CSv3fKzD.js → connect-source-dialog-C7Q-kV0F.js} +1 -1
- package/dist/client/assets/{connection-DDqO1q4H.js → connection-B7ZHR3E3.js} +1 -1
- package/dist/client/assets/{connection-card-B2AISi2n.js → connection-card-C1SHg1dG.js} +1 -1
- package/dist/client/assets/{connection-detail-CxZZixgF.js → connection-detail-Bc4itFWH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Y3w8W20E.js → connection-form-helpers-tazbDTDK.js} +1 -1
- package/dist/client/assets/{connection-slug-Sdn-JTB2.js → connection-slug-B5tLzvCi.js} +1 -1
- package/dist/client/assets/{connections-Cak8mY84.js → connections-CSC_xdmG.js} +1 -1
- package/dist/client/assets/{content-changes-C9Vb6hJi.js → content-changes-JBgMg-Ro.js} +1 -1
- package/dist/client/assets/{content-tab-B6dyUrQE.js → content-tab-g282UVdE.js} +3 -3
- package/dist/client/assets/{context-menu-HaIM8tgp.js → context-menu-CUYerrUs.js} +1 -1
- package/dist/client/assets/{context-DFZn6cdt.js → context-qsn0J_YZ.js} +1 -1
- package/dist/client/assets/{context-shell-CBQjivxm.js → context-shell-BLRwg1tV.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-VS8AR8Z_.js → create-organization-dialog-BaKKV-VG.js} +1 -1
- package/dist/client/assets/{daily-pulse-CC4iC325.js → daily-pulse-UxYLZlxs.js} +1 -1
- package/dist/client/assets/{delete-copy-CyWTr2-i.js → delete-copy-DlW6ZUtG.js} +1 -1
- package/dist/client/assets/{device-hint-B3lp0cJx.js → device-hint-0_GHbWqS.js} +1 -1
- package/dist/client/assets/{discover-BtU_YkoX.js → discover-F-3cKQP2.js} +1 -1
- package/dist/client/assets/{domain-settings-bSyZQ9aD.js → domain-settings-CX6QeizD.js} +1 -1
- package/dist/client/assets/{drawer-Crz9l-4U.js → drawer-D_TsrN48.js} +1 -1
- package/dist/client/assets/{editor-Dh0u_vVE.js → editor-DHPR_ozC.js} +1 -1
- package/dist/client/assets/editor-classes-BLd4hHmH.js +1 -0
- package/dist/client/assets/{empty-state-P04ndpoN.js → empty-state-D1phlWfb.js} +1 -1
- package/dist/client/assets/{empty-state-WGRlYhaM.js → empty-state-L2cTHOLC.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DTUacXcI.js → experiments-tab-choice-BaZ_leSu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DrEGE84f.js → extract-connection-data-D6-4uHNK.js} +1 -1
- package/dist/client/assets/{feature-gate-a1fFtbnM.js → feature-gate-BSqSDhFD.js} +1 -1
- package/dist/client/assets/{feature-paywall-vMBXIDf6.js → feature-paywall-CzZKQU6l.js} +1 -1
- package/dist/client/assets/{file-explorer-BQ_fjSNc.js → file-explorer-tOnk4J7V.js} +1 -1
- package/dist/client/assets/{file-preview-BDehN0W9.js → file-preview-C7hdL4Yc.js} +1 -1
- package/dist/client/assets/{file-share-button-C20Gsw-_.js → file-share-button-6nZQXE9V.js} +1 -1
- package/dist/client/assets/{file-type-icon-B7lWHf7B.js → file-type-icon-BIdp66kj.js} +1 -1
- package/dist/client/assets/{folder-icon-PWzAHUsx.js → folder-icon-BqHfg1r8.js} +1 -1
- package/dist/client/assets/{form-BkfFMNZc.js → form-W6JWpxT_.js} +1 -1
- package/dist/client/assets/{frame-navigation-Kdl21Hfd.js → frame-navigation-Df_5J1gU.js} +1 -1
- package/dist/client/assets/{gateway-client-Cj4FQJOw.js → gateway-client-ekFKMjOy.js} +1 -1
- package/dist/client/assets/{general-B4cm3pcf.js → general-Fd7CN8PL.js} +1 -1
- package/dist/client/assets/{github-icon-DspshkUP.js → github-icon-DVLt0ntX.js} +1 -1
- package/dist/client/assets/{held-block-view-BZwFWrfK.js → held-block-view-Bdat6dmL.js} +3 -3
- package/dist/client/assets/{home-overview-xTTroSa7.js → home-overview-BwTsNcY7.js} +1 -1
- package/dist/client/assets/{home-pUg5GzTR.js → home-qxlWWins.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BFN835oz.js → hosted-reconcile-4JQ_9bXq.js} +1 -1
- package/dist/client/assets/{icon-button-Bb0nd3sO.js → icon-button-BKSgoP48.js} +1 -1
- package/dist/client/assets/{index-B-sjFG2T.js → index--W2AMK-X.js} +1 -1
- package/dist/client/assets/{index-Cc0IUGs-.js → index-AtaL2JD_.js} +1 -1
- package/dist/client/assets/{index-CQ_uABeR.js → index-B7lKid3Y.js} +1 -1
- package/dist/client/assets/{index-B-E9B78d.js → index-B8xqh-Zd.js} +1 -1
- package/dist/client/assets/{index-BxAV7FAM.js → index-BJcrWx9T.js} +1 -1
- package/dist/client/assets/{index-7UwjqA26.js → index-BsbFaHMN.js} +1 -1
- package/dist/client/assets/{index-UmJObwb7.js → index-CXT6KZgX.js} +1 -1
- package/dist/client/assets/{index-Bc8w-fWE.js → index-CZ_tLRoL.js} +1 -1
- package/dist/client/assets/{index-CELMEPYa.js → index-ChDgpo9K.js} +1 -1
- package/dist/client/assets/{index-BujNXjcQ.js → index-CjurNK9x.js} +1 -1
- package/dist/client/assets/{index-ZqZk5RgT.js → index-DAFFHpVi.js} +1 -1
- package/dist/client/assets/{index-DhAzuetW.js → index-Dcn6CILj.js} +1 -1
- package/dist/client/assets/{index-Bf6kDBJJ.js → index-DmyPeHtj.js} +3 -3
- package/dist/client/assets/{index-Dr_1WkX0.js → index-WM2yhiyo.js} +1 -1
- package/dist/client/assets/{index-C3wTiNEy.js → index-_reJwud9.js} +1 -1
- package/dist/client/assets/{index-D_pS5ZXh.js → index-gEUrUJcs.js} +1 -1
- package/dist/client/assets/{index-YMvV0kSt.js → index-nmSJ42Ew.js} +1 -1
- package/dist/client/assets/{index-redirect-BfNTYin8.js → index-redirect-DOqgK536.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-d7-nDzuW.js → infiniteQueryObserver-D9fycF8k.js} +1 -1
- package/dist/client/assets/{infra-billing-3COAyZJp.js → infra-billing-DpYvrDKr.js} +1 -1
- package/dist/client/assets/{input-1k9_lG9l.js → input-BqJq_7pW.js} +3 -3
- package/dist/client/assets/{input-CfERqe7P.js → input-wtbnNzNz.js} +1 -1
- package/dist/client/assets/{integration-icon-DS7lm2zI.js → integration-icon-92n5xPlq.js} +1 -1
- package/dist/client/assets/{item-actions-4ZXG0iY2.js → item-actions-xfXl6n2G.js} +1 -1
- package/dist/client/assets/{jira-icon-CRzccyEz.js → jira-icon-BibTQfLJ.js} +1 -1
- package/dist/client/assets/{label-pfJxqM6J.js → label-B61Mm8gW.js} +1 -1
- package/dist/client/assets/{layout-CSw48bym.js → layout-c2hOp6bu.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-CDOlAR4o.js → legacy-admin-welcome-dialog-DPVEA9Z4.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Dd3WVxqz.js → legacy-agents-deep-CALyvn1U.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DfUzTqEU.js → legacy-main-redirect-D7u9pyFK.js} +1 -1
- package/dist/client/assets/library-CIc0x0ue.js +1 -0
- package/dist/client/assets/{library-tab-yq1thSq0.js → library-tab-BAUunaiM.js} +1 -1
- package/dist/client/assets/{login-B4LbkEsb.js → login-DjyyzMPN.js} +1 -1
- package/dist/client/assets/{markdown-CPntqjcN.js → markdown-B7FqmO_Q.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Xh-Trx1u.js → mcp-app-renderer-BsX2Dy6R.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CAO7EHWk.js → mcp-oauth-BZS2Yc1A.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CMwgcXqt.js → mcp-oauth-BxD-kgyz.js} +1 -1
- package/dist/client/assets/{members-DjY6N4ko.js → members-CVRExxW3.js} +1 -1
- package/dist/client/assets/{memory-DmXV7qdS.js → memory-DncfhJaK.js} +1 -1
- package/dist/client/assets/{mock-board-BHaG5n0Y.js → mock-board-CfGWjmM1.js} +3 -3
- package/dist/client/assets/{monaco-editor-DyPQbQ4Z.js → monaco-editor-DVxpBvnd.js} +1 -1
- package/dist/client/assets/{monitoring-BARgKoFH.js → monitoring-Do3w8SMM.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B9ruwHI_.js → monitoring-stats-row-CD-LeMDq.js} +1 -1
- package/dist/client/assets/{multi-select-DrRX5wC0.js → multi-select-DZx7Z4ko.js} +1 -1
- package/dist/client/assets/{mustache-BHZ1gTAg.js → mustache-96ahxbWY.js} +1 -1
- package/dist/client/assets/{named-rule-step-TzfMLCDH.js → named-rule-step-DjZE94ti.js} +1 -1
- package/dist/client/assets/{named-rule-view-BFtQtNgP.js → named-rule-view-vshmzUJE.js} +1 -1
- package/dist/client/assets/{new-project-dialog-c3TMJ5k3.js → new-project-dialog-zI9XmIIv.js} +1 -1
- package/dist/client/assets/{new-project-store-DVbeCA79.js → new-project-store-BL2Sa0gM.js} +1 -1
- package/dist/client/assets/{oauth-callback-CdhNhJbe.js → oauth-callback-BxhTrPGN.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DMYFb0n0.js → oauth-callback-ai-provider-ebziW9F0.js} +1 -1
- package/dist/client/assets/{oauth-consent-By_E40J9.js → oauth-consent-CjunKK42.js} +1 -1
- package/dist/client/assets/{onboarding-B4HOaAjZ.js → onboarding-BJAPGBBw.js} +1 -1
- package/dist/client/assets/{openai-conversation-BQK-gK3W.js → openai-conversation-CBnYYe6I.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Dm2yJ3l1.js → optimistic-project-sidebar-views-BwCyFNBl.js} +1 -1
- package/dist/client/assets/{order-monitor-day-0TpAsxio.js → order-monitor-day-Bu7sDLhj.js} +1 -1
- package/dist/client/assets/{organization-choice-D41FfPig.js → organization-choice-CtrQA3cq.js} +1 -1
- package/dist/client/assets/{orgs-AqEAYtia.js → orgs-D8itwEwG.js} +1 -1
- package/dist/client/assets/{own-accounts-section-Yzc7sCur.js → own-accounts-section-CPpyw5Ls.js} +1 -1
- package/dist/client/assets/{pair-BUIEjsmP.js → pair-CgeeVvss.js} +1 -1
- package/dist/client/assets/{parse-sections-CUfOLBCD.js → parse-sections-C8e6hmLP.js} +2 -2
- package/dist/client/assets/{plan-ladder-l7IiO8Kx.js → plan-ladder-BuBxtLzi.js} +1 -1
- package/dist/client/assets/{plan-page-BAf6ZJGG.js → plan-page-DEHjjiXo.js} +1 -1
- package/dist/client/assets/plan-rJ9a3K5T.js +1 -0
- package/dist/client/assets/{plan-usage-card-BFW_rzn_.js → plan-usage-card-CrcTrR82.js} +1 -1
- package/dist/client/assets/{popover-DiQ2Bfq9.js → popover-QqVUvEYR.js} +1 -1
- package/dist/client/assets/{post-calendar-CMpgu01_.js → post-calendar-C64qCtHG.js} +1 -1
- package/dist/client/assets/post-editor-C5PQD-my.js +2 -0
- package/dist/client/assets/{preview-content-Bop4crPO.js → preview-content-BQKPmXGv.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dz5sv3HO.js → preview-dialog-GL8egC2B.js} +1 -1
- package/dist/client/assets/{preview-panel-BcPSEvze.js → preview-panel-DDhAmVzk.js} +1 -1
- package/dist/client/assets/{preview-tab-BncJEfTX.js → preview-tab-DrwAiPmj.js} +3 -3
- package/dist/client/assets/{primitives-C1No5xKr.js → primitives-yWcLmNO5.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BeeTNurR.js → product-picker-dialog-Bw4o2LZ9.js} +1 -1
- package/dist/client/assets/{profile-DF_IclwB.js → profile-D7IIedH9.js} +1 -1
- package/dist/client/assets/{project-app-view-Cc5GSYC7.js → project-app-view-D79GKyQK.js} +1 -1
- package/dist/client/assets/{project-apps-chPl7xeh.js → project-apps-Ddelf6K_.js} +1 -1
- package/dist/client/assets/{project-icon-BTZl10MB.js → project-icon-D-KoSfqD.js} +1 -1
- package/dist/client/assets/{project-index-oqFo2sF5.js → project-index-Di4hbJe7.js} +1 -1
- package/dist/client/assets/project-reports-BaUD1mSs.js +1 -0
- package/dist/client/assets/project-tasks-IY1SmC3r.js +1 -0
- package/dist/client/assets/{projects-BH-6cg67.js → projects-CKVyhU42.js} +1 -1
- package/dist/client/assets/{projects-empty-state-bstUe2Oh.js → projects-empty-state-ChdeQFYg.js} +1 -1
- package/dist/client/assets/{prompts-Ch92cX_3.js → prompts-D00CUxnv.js} +1 -1
- package/dist/client/assets/record-editor-B4kmxAIk.js +1 -0
- package/dist/client/assets/{redirect-editor-CMzb5XC3.js → redirect-editor-BiVMh5eW.js} +1 -1
- package/dist/client/assets/{reports-CTRznMgw.js → reports-Bpi5NgOn.js} +1 -1
- package/dist/client/assets/{reports-onboarding-Bdb4dG_W.js → reports-onboarding-DFl3ByGh.js} +1 -1
- package/dist/client/assets/{reports-tab-Du9Yt97_.js → reports-tab-Cyoilm6-.js} +2 -2
- package/dist/client/assets/reports-wttF6ZoA.js +1 -0
- package/dist/client/assets/repositories-3Kf5jKe3.js +1 -0
- package/dist/client/assets/{repositories-BDO_qkUm.js → repositories-Bvzle7Kd.js} +1 -1
- package/dist/client/assets/{repository-binding-D_JA1fyv.js → repository-binding-BezKpFog.js} +1 -1
- package/dist/client/assets/{repository-picker-DG8GlSV6.js → repository-picker-BcZZvjJw.js} +1 -1
- package/dist/client/assets/{require-capability-CETSpTpX.js → require-capability-1sXrPz2q.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DhFunmdD.js → required-auth-layout-CRS7KXgy.js} +1 -1
- package/dist/client/assets/{reset-password-Boi6YmgH.js → reset-password-DI52CgpP.js} +1 -1
- package/dist/client/assets/{resizable-DMbeVWSR.js → resizable-D3Zb0j0Y.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C4iSO1U2.js → resolve-tab-icon-lPLw9e6M.js} +1 -1
- package/dist/client/assets/{review-settings-B16U0xsU.js → review-settings-blIIbEvV.js} +1 -1
- package/dist/client/assets/{role-color-BBVkDYqV.js → role-color-DFMoaBh_.js} +1 -1
- package/dist/client/assets/{roles-BLT9AcGQ.js → roles-Cr_zYAvV.js} +1 -1
- package/dist/client/assets/route-CDLTxCaI.js +1 -0
- package/dist/client/assets/{route-DIu-Ml5P.js → route-CQadzTnr.js} +1 -1
- package/dist/client/assets/route-DhuUeSC5.js +1 -0
- package/dist/client/assets/{route-page-header-BFyj_RTT.js → route-page-header-BjKtp3iF.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-B5ivbUKl.js → sandbox-git-api-DZ5qElbf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLB2RKwh.js → sandbox-lifecycle-context-BukF6MQn.js} +1 -1
- package/dist/client/assets/{save-status-CVcpQMiO.js → save-status-DBCJolXB.js} +1 -1
- package/dist/client/assets/{schema-CBR_062O.js → schema-CRoCQYHH.js} +1 -1
- package/dist/client/assets/{schema-CLDlJ9kb.js → schema-D0halWwt.js} +1 -1
- package/dist/client/assets/{scroll-area-DK0MohcT.js → scroll-area-DmKBqmqO.js} +1 -1
- package/dist/client/assets/{search-input-FykCNfIP.js → search-input-KXpX5gme.js} +1 -1
- package/dist/client/assets/{search-toggle-BxdfiTnS.js → search-toggle-BHbQYf5Y.js} +1 -1
- package/dist/client/assets/{secret-picker-CWYxyjvA.js → secret-picker-CMr7uz4L.js} +1 -1
- package/dist/client/assets/{secrets-DcrvsBfJ.js → secrets-CjUGWgQ8.js} +1 -1
- package/dist/client/assets/{section-array-field-B87vkJiM.js → section-array-field-BUwgz_eV.js} +1 -1
- package/dist/client/assets/{sections-DhMIYAGQ.js → sections-BO6dARSn.js} +1 -1
- package/dist/client/assets/{sections-editor-Bfz34qjk.js → sections-editor-DhNLoFOR.js} +1 -1
- package/dist/client/assets/{select-L_avoMHO.js → select-B-VvZR_M.js} +1 -1
- package/dist/client/assets/{select-model-Dass8Y0N.js → select-model-DTnl9BTI.js} +1 -1
- package/dist/client/assets/{seo-editor-Cn-RIL2d.js → seo-editor-D-9omBT1.js} +1 -1
- package/dist/client/assets/{separator-CRKTbl5Q.js → separator-CxWekJLq.js} +1 -1
- package/dist/client/assets/{session-runtime-CKy7akq1.js → session-runtime-CvClIIGY.js} +1 -1
- package/dist/client/assets/settings-tab-CC9OxhsE.js +1 -0
- package/dist/client/assets/{sheet-B9nYEq_U.js → sheet-C4ApGL6L.js} +1 -1
- package/dist/client/assets/{shell-layout-DMaosfWb.js → shell-layout-DJOHh2NE.js} +1 -1
- package/dist/client/assets/{site-draft-actions-Cys_x7K4.js → site-draft-actions-8xVV9dEa.js} +1 -1
- package/dist/client/assets/{site-draft-view-DvI2wxTi.js → site-draft-view-DlKOjkMp.js} +1 -1
- package/dist/client/assets/site-editor-Ct2iJJKm.js +1 -0
- package/dist/client/assets/{site-editor-toast-B_YX3Li5.js → site-editor-toast-DLSJJb2F.js} +1 -1
- package/dist/client/assets/{skills-C_Qmevz6.js → skills-CRsIU-hD.js} +1 -1
- package/dist/client/assets/{slider-L72dzoE5.js → slider-BIv9sKN-.js} +1 -1
- package/dist/client/assets/{sortable.esm-BwLahjrh.js → sortable.esm-C0ThOxD8.js} +1 -1
- package/dist/client/assets/{sso-CVKitu8q.js → sso-Cp0an3Ez.js} +1 -1
- package/dist/client/assets/{suggestion-CmkjlRde.js → suggestion-DIf7hFaH.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BWyA5A4C.js → super-agent-icon-DUpkyxXZ.js} +1 -1
- package/dist/client/assets/{switch-DNr_AVSx.js → switch-CfqVcR-v.js} +1 -1
- package/dist/client/assets/{synced-repos-BarMTSvl.js → synced-repos-JXJEMpC7.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-oIDlFQgD.js → tab-icon-glyph-CgCRg2hv.js} +1 -1
- package/dist/client/assets/{table-B1D7-LXy.js → table-CoF20Hw1.js} +1 -1
- package/dist/client/assets/{tabs-BDMFi5UF.js → tabs-DBKq274Z.js} +1 -1
- package/dist/client/assets/{task-board-EnWJqcQ6.js → task-board-B8wzNBqW.js} +1 -1
- package/dist/client/assets/{task-key-CnOo1you.js → task-key-CpnKPfDS.js} +1 -1
- package/dist/client/assets/{task-route-Cf7-9Vym.js → task-route-CkAEJVQF.js} +1 -1
- package/dist/client/assets/{task-status-sACqRIxF.js → task-status-Cr1qI7Ux.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DM9B5dxQ.js → taskboard-analytics-BTJCLNi8.js} +1 -1
- package/dist/client/assets/tasks-DR6gaCo6.js +1 -0
- package/dist/client/assets/{tasks-DRE9-wdz.js → tasks-DuGmmJdD.js} +1 -1
- package/dist/client/assets/{textarea-CmzAWBpF.js → textarea-Djiqi_Hb.js} +1 -1
- package/dist/client/assets/{thread-analytics-B8Ikw9hO.js → thread-analytics-61rO8zWs.js} +1 -1
- package/dist/client/assets/{thread-button-BEg5fteo.js → thread-button-DRipdtQl.js} +1 -1
- package/dist/client/assets/{thread-intent-DtKiFyIT.js → thread-intent-1kOP6maa.js} +1 -1
- package/dist/client/assets/{thread-route-CrkLPvpu.js → thread-route-DHFCXB9E.js} +1 -1
- package/dist/client/assets/{thread-route-CAdVyEBE.js → thread-route-QjX15zqF.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BcrsEEe7.js → thread-sheet-body-sdh7Mf7u.js} +1 -1
- package/dist/client/assets/{time-range-picker-BuQAB93N.js → time-range-picker-B4sRq8E3.js} +1 -1
- package/dist/client/assets/{toggle-group-Bo6-1Pho.js → toggle-group-BMYX_eGL.js} +1 -1
- package/dist/client/assets/{tool-set-selector-D7l1Lya5.js → tool-set-selector-CJazFfoM.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-By_9Ecje.js → toolbar-icon-button-BXZ6Fg9k.js} +1 -1
- package/dist/client/assets/{tooltip-C1ojQQy2.js → tooltip-CnD2gBxQ.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dduhu_Eq.js → tooltipContext-B6Z4ndzl.js} +1 -1
- package/dist/client/assets/{track-CS1GhTy5.js → track-C2t9Ju4W.js} +1 -1
- package/dist/client/assets/{types-Bgvtdl4f.js → types-DxV-fZV6.js} +1 -1
- package/dist/client/assets/{url-slug-j0iJ8lmu.js → url-slug-cwQb0zdO.js} +1 -1
- package/dist/client/assets/{usage-stats-BNxKoicX.js → usage-stats-DX6ERAU7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DfdZjEtf.js → use-ai-providers-DrvsAXJ7.js} +1 -1
- package/dist/client/assets/{use-api-keys--uy7V227.js → use-api-keys-WR-MHbKG.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-HtmujZdV.js → use-apply-named-rule-DtVcB2Sd.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CxLSAUNx.js +1 -0
- package/dist/client/assets/{use-automations-C1U-QI4S.js → use-automations-CQGktFHE.js} +1 -1
- package/dist/client/assets/{use-autosave-BSoV0Vu3.js → use-autosave-4o04OWTs.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DQzOlv_E.js +1 -0
- package/dist/client/assets/use-blog-view-9Y1OwyU5.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-iNK0kVBA.js → use-chat-layout-state-OXPATbvD.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B42l35BK.js → use-cms-publish-actions-E5PxzXRo.js} +1 -1
- package/dist/client/assets/{use-connect-companion-o54nIr0o.js → use-connect-companion-G1Hi_qLO.js} +1 -1
- package/dist/client/assets/{use-connection-DA9yY-kf.js → use-connection-G9Us7hRV.js} +1 -1
- package/dist/client/assets/{use-content-sync-BLtyy-8h.js → use-content-sync-qLtFKVoY.js} +1 -1
- package/dist/client/assets/{use-copy-BAGO9B0-.js → use-copy-DcPGMlZ-.js} +1 -1
- package/dist/client/assets/{use-current-view-3DHjYKsB.js → use-current-view-DrUxoucV.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C3KtJm8n.js → use-date-fns-locale-HbSUG1u1.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CfxqDB3e.js → use-debounced-autosave-5uSqKsMY.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DPFKvG0d.js → use-debounced-value-Io5mDbSS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CmcGxN-5.js → use-deco-credits-CIEhAz6A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-q9mkqGKJ.js → use-decopilot-events-Be8G8lj7.js} +1 -1
- package/dist/client/assets/{use-delete-block-CqXZMma0.js → use-delete-block-ZSPe1Jt_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-C8JKkAAS.js → use-delete-connection-BqwFhFOC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-VYoUqG2M.js → use-deployment-admin-BGJ_CxB1.js} +1 -1
- package/dist/client/assets/{use-entitlements-CdiIkksN.js → use-entitlements-BYhZgO5P.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-GLoGn3Z6.js → use-fast-preview-draft-url-C1FIhbN9.js} +1 -1
- package/dist/client/assets/{use-file-configs-DCBweulZ.js → use-file-configs-k_hhBwsx.js} +1 -1
- package/dist/client/assets/{use-id-selection-spkOrFO_.js → use-id-selection-CMFxpgLZ.js} +1 -1
- package/dist/client/assets/{use-in-settings-hxse8Hhp.js → use-in-settings-BhSbV6H8.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BvbAUSW4.js → use-inbox-feed-B09538_g.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CCGl3sqA.js → use-infinite-scroll-DW5uI5g1.js} +1 -1
- package/dist/client/assets/{use-join-requests-IcecIzLq.js → use-join-requests-DMhspUtS.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DuSvD2uS.js → use-main-panel-tabs-COup8C-z.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CPCNL8Ac.js → use-mcp-auth-status-B1ZXOBZo.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CaNN8ch9.js → use-mcp-client-DfqrKiZY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DMHyxZup.js → use-mcp-prompts-CxlRUHT-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Mt5davfv.js → use-mcp-tools-DBXAxSmu.js} +1 -1
- package/dist/client/assets/{use-mobile-DLKgN0MY.js → use-mobile-BGIYUsLQ.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DHYSyls5.js → use-move-blocks-CYHOXTJj.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DLWEuUiS.js → use-navigate-to-agent-stX_hK-R.js} +1 -1
- package/dist/client/assets/{use-never-published-CN7sgOi-.js → use-never-published-CJQoljTh.js} +1 -1
- package/dist/client/assets/{use-org-fs-6An12np_.js → use-org-fs-j9Hf5idr.js} +1 -1
- package/dist/client/assets/{use-org-notice-jTLfFtFj.js → use-org-notice-J6OTcXIJ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dx_d7syo.js → use-org-repo-syncs-B3V0YVhZ.js} +1 -1
- package/dist/client/assets/{use-org-sso-S0027md8.js → use-org-sso-B8YBjAU0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CJl2Ru2g.js → use-organization-settings-DRtlFFBs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DrHMPrDd.js → use-panel-navigate-DLijLDIl.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CTisoJjU.js → use-project-native-view-presence-CflbYfyt.js} +1 -1
- package/dist/client/assets/{use-project-scope-1pDf1lxX.js → use-project-scope-sgJLxDnc.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BmvdNgmu.js → use-recent-apps-C6R-3xzm.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CfmpBGnm.js → use-reports-diagnostic-D7PJJJR-.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BQnRSUmP.js → use-sandbox-events-D7X3VYGW.js} +1 -1
- package/dist/client/assets/{use-secrets-Dd3GbHCj.js → use-secrets-DGIBDHGx.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BJSGRJ2g.js → use-section-preview-base-DzxwJmmA.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CRhLpQ__.js → use-sidebar-collapsed-BsHAzi2v.js} +1 -1
- package/dist/client/assets/{use-tags-Dxxj_5Ub.js → use-tags-7fim3G8l.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CkHboU7M.js → use-task-board-analytics-DR6GAqO0.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-oRUnerL5.js → use-task-board-item-prs-DHpJNypU.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CWHT3OSj.js → use-task-board-items-B1Pzgu76.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DXhEBOCc.js → use-task-board-prompts-IJgyzOT-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-lzA4V4K2.js → use-task-metadata-BUNn-khG.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-5ljze7lC.js → use-thread-outputs-CtVbBsAG.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-BXhF5iFd.js → use-view-draft-kind-XY0ukhv-.js} +1 -1
- package/dist/client/assets/{use-voice-input-CZGiAdQC.js → use-voice-input-DguZp9dH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CSIthp54.js +1 -0
- package/dist/client/assets/{useQueries-C9RAahye.js → useQueries-Di5RfWGT.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Z_2IraLh.js +1 -0
- package/dist/client/assets/{users-WjrefE1B.js → users-CCYUTU45.js} +1 -1
- package/dist/client/assets/{utils-Bnx90cnk.js → utils-DgfuCg_0.js} +1 -1
- package/dist/client/assets/{variant-calendar-DRDxaL-U.js → variant-calendar-B4q2_EtP.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CA3obTng.js → variant-matcher-override-B7mJIZfR.js} +1 -1
- package/dist/client/assets/{view-header-CLjdEAb3.js → view-header-CvQldNEQ.js} +1 -1
- package/dist/client/assets/{virtual-mcp-B_qidLcG.js → virtual-mcp-Ci6QcDj7.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CmbIOlgi.js → watch-sse-pool-BbbQrIO0.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +623 -623
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B3cy5nly.js +0 -1
- package/dist/client/assets/agent-deck-D3XNN693.js +0 -1
- package/dist/client/assets/agent-experiments-DpcLPWr2.js +0 -1
- package/dist/client/assets/agent-file-GBVd_BpZ.js +0 -1
- package/dist/client/assets/agent-library-file-BTMFPMBP.js +0 -1
- package/dist/client/assets/agent-library-ygB7LeW-.js +0 -1
- package/dist/client/assets/agent-overview-PHTNUTRE.js +0 -1
- package/dist/client/assets/agent-settings-C4O62TDb.js +0 -1
- package/dist/client/assets/agent-site-editor-code-fVXCtDzo.js +0 -2
- package/dist/client/assets/agent-site-editor-content-JitpGh8g.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BiD1iCK2.js +0 -1
- package/dist/client/assets/agent-view-B0XfBbbF.js +0 -1
- package/dist/client/assets/api-keys-icNNhRXn.js +0 -1
- package/dist/client/assets/editor-classes-BPv2mnCh.js +0 -1
- package/dist/client/assets/library-CeRFUyM_.js +0 -1
- package/dist/client/assets/plan-DFKUaTp8.js +0 -1
- package/dist/client/assets/post-editor-CSldaVe4.js +0 -2
- package/dist/client/assets/project-reports-DIwpx3MI.js +0 -1
- package/dist/client/assets/project-tasks-D_q2d1d-.js +0 -1
- package/dist/client/assets/record-editor-BBcvA9IQ.js +0 -1
- package/dist/client/assets/reports-By9XMxVb.js +0 -1
- package/dist/client/assets/repositories-Ch2tj1pK.js +0 -1
- package/dist/client/assets/route-BX6pEH1K.js +0 -1
- package/dist/client/assets/route-CpGDEe6n.js +0 -1
- package/dist/client/assets/settings-tab-f8XSA5Mo.js +0 -1
- package/dist/client/assets/site-editor-9BdXqETC.js +0 -1
- package/dist/client/assets/tasks-D0oDCq_D.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CLB4YmKc.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-CK7jomFI.js +0 -1
- package/dist/client/assets/use-blog-view-Ct3qJq8H.js +0 -1
- package/dist/client/assets/useInfiniteQuery-COV1vcmf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqJAXxZd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,c4 as ce,j as p,ca as _,c9 as T,c7 as C,cf as le,c3 as de,cr as ue,cn as fe,cg as me}from"./index-
|
|
1
|
+
import{r as l,c4 as ce,j as p,ca as _,c9 as T,c7 as C,cf as le,c3 as de,cr as ue,cn as fe,cg as me}from"./index-DmyPeHtj.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a6 as ht,b as _e,j as t,B as je,t as dt,a_ as Yt,an as as,K as bt,i as Et,a7 as As,m as ot,gK as _s,o as cs,h as Us,e3 as Ks,ad as Vs,u as qs,n as _t,E as Wt,R as Hs,dZ as Bs,hk as Js,T as Gs,W as Qs,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a6 as ht,b as _e,j as t,B as je,t as dt,a_ as Yt,an as as,K as bt,i as Et,a7 as As,m as ot,gK as _s,o as cs,h as Us,e3 as Ks,ad as Vs,u as qs,n as _t,E as Wt,R as Hs,dZ as Bs,hk as Js,T as Gs,W as Qs,I as Xt}from"./index-DmyPeHtj.js";import{S as Ys}from"./search-input-KXpX5gme.js";import{E as Ht}from"./empty-state-L2cTHOLC.js";import{R as Ws}from"./require-capability-1sXrPz2q.js";import{f as js}from"./pair-CgeeVvss.js";import{b as ts}from"./use-connection-G9Us7hRV.js";import{g as Ps}from"./connection-slug-B5tLzvCi.js";import{B as Lt}from"./badge-By3J5rC3.js";import{P as ds,a as ms,b as us}from"./popover-QqVUvEYR.js";import{c as Pt,T as Dt,a as Rt,b as Xs}from"./tooltip-CnD2gBxQ.js";import{B as fs,e as Kt,bz as Zs,aw as Ns,L as el}from"./agent-icon-DFYKaa0c.js";import{i as tl}from"./Key01-CCL-qpBw.js";import{i as sl}from"./Play-KnC-ePg8.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DVxpBvnd.js";import{u as ll}from"./use-mcp-client-DfqrKiZY.js";import{u as rl}from"./repository-binding-BezKpFog.js";import{n as Ot}from"./LinkBroken01-DZpjy5h4.js";import{c as il}from"./SwitchHorizontal01-D47eRm9A.js";import{s as ol}from"./Plus-fnuC_-Ii.js";import{s as nl}from"./Trash01-C_glH0wy.js";import{M as $t}from"./multi-select-DZx7Z4ko.js";import{b as yt,a as wt,c as $e,d as St,S as It}from"./select-B-VvZR_M.js";import{e as ys,T as al}from"./time-range-picker-B4sRq8E3.js";import{T as cl}from"./textarea-Djiqi_Hb.js";import{C as Ds}from"./collection-tabs-D91PU4y3.js";import{S as dl}from"./switch-CfqVcR-v.js";import{L as ml}from"./label-B61Mm8gW.js";import{I as Ct}from"./integration-icon-92n5xPlq.js";import{A as ul,a as fl,b as xl}from"./alert-DosQ3gDY.js";import{K as gt}from"./monitoring-stats-row-CD-LeMDq.js";import{b as Bt}from"./use-entitlements-BYhZgO5P.js";import{g as pl,b as ws,f as Nt,c as Zt,d as gl,e as Ss,a as xs,h as hl,i as ps,T as vl,j as jl,r as Nl,k as bl}from"./thread-sheet-body-sdh7Mf7u.js";import{u as yl}from"./useSuspenseInfiniteQuery-Z_2IraLh.js";import{c as wl,S as Sl,b as Rs,a as Ls}from"./sheet-C4ApGL6L.js";import{c as De,b as vt,d as Jt,e as Gt,T as he,a as Qt}from"./table-CoF20Hw1.js";import{t as ss}from"./ChevronDown-BDwdJQzR.js";import{n as ls}from"./ChevronUp-CoA7d7vl.js";import{u as Os}from"./use-id-selection-CMFxpgLZ.js";import{u as Fs}from"./use-infinite-scroll-DW5uI5g1.js";import{u as Il}from"./useInfiniteQuery-CSIthp54.js";import{g as Cl}from"./task-status-Cr1qI7Ux.js";import{u as Tl,d as kl}from"./use-automations-CQGktFHE.js";import{A as Ml}from"./automation-runs-DUyTfm-1.js";import{i as _l}from"./ArrowLeft-a7zQohPB.js";import{E as Is}from"./empty-state-D1phlWfb.js";import{O as zs}from"./watch-sse-pool-BbbQrIO0.js";import{c as Pl,r as Dl,O as Rl,h as Ll}from"./order-monitor-day-Bu7sDLhj.js";import{F as Ol}from"./feature-gate-BSqSDhFD.js";import"./SearchMd-C7M41YQV.js";import"./access-gate-CNfTTZux.js";import"./capability-load-error-CDIQe4e8.js";import"./Tool01-eLaAOwHX.js";import"./ArrowRight-CcdemY_e.js";import"./collapsible-CxuxAsHp.js";import"./use-copy-DcPGMlZ-.js";import"./usage-stats-DX6ERAU7.js";import"./utils-CVEq3hMx.js";import"./markdown-B7FqmO_Q.js";import"./chat-context-CqcR4aAu.js";import"./use-panel-navigate-DLijLDIl.js";import"./thread-route-QjX15zqF.js";import"./use-project-scope-sgJLxDnc.js";import"./use-view-draft-kind-XY0ukhv-.js";import"./use-blog-view-9Y1OwyU5.js";import"./use-organization-settings-DRtlFFBs.js";import"./schema-CRoCQYHH.js";import"./task-board-B8wzNBqW.js";import"./thread-intent-1kOP6maa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CvClIIGY.js";import"./use-ai-providers-DrvsAXJ7.js";import"./use-current-view-DrUxoucV.js";import"./use-in-settings-BhSbV6H8.js";import"./use-decopilot-events-Be8G8lj7.js";import"./use-org-fs-j9Hf5idr.js";import"./use-mobile-BGIYUsLQ.js";import"./File02-CNp6lbfd.js";import"./gateway-client-ekFKMjOy.js";import"./form-W6JWpxT_.js";import"./UserCheck01-BiEm5Ebz.js";import"./task-key-CpnKPfDS.js";import"./use-task-board-items-B1Pzgu76.js";import"./config-DbV4O0C1.js";import"./AlertCircle-D1Q8X__K.js";import"./CheckCircle-BygonUdk.js";import"./Eye-B8RfELJD.js";import"./task-route-CkAEJVQF.js";import"./project-index-Di4hbJe7.js";import"./UserSquare-DRonBRNm.js";import"./shell-layout-DJOHh2NE.js";import"./Globe04-DGpfgXDy.js";import"./use-deployment-admin-BGJ_CxB1.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-xoNzv1jt.js";import"./use-org-notice-J6OTcXIJ.js";import"./Monitor01-BKLXdSAu.js";import"./Zap-Ch4l-t5Z.js";import"./command-DmBlCsxL.js";import"./index-_reJwud9.js";import"./project-icon-D-KoSfqD.js";import"./use-navigate-to-agent-stX_hK-R.js";import"./use-debounced-value-Io5mDbSS.js";import"./new-project-dialog-zI9XmIIv.js";import"./repository-picker-BcZZvjJw.js";import"./github-icon-DVLt0ntX.js";import"./collection-search-DhW2WLfL.js";import"./BookOpen01-Caac9KpE.js";import"./ShoppingBag01-D27zZ3nR.js";import"./new-project-store-BL2Sa0gM.js";import"./legacy-admin-welcome-dialog-DPVEA9Z4.js";import"./drawer-D_TsrN48.js";import"./required-auth-layout-CRS7KXgy.js";import"./use-org-sso-B8YBjAU0.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BsX2Dy6R.js";import"./types-DxV-fZV6.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-DZ0d0gl4.js";import"./use-mcp-prompts-CxlRUHT-.js";import"./use-thread-outputs-CtVbBsAG.js";import"./file-type-icon-BIdp66kj.js";import"./index-DAFFHpVi.js";import"./ArrowUp-BjMuYXEC.js";import"./ChevronSelectorVertical-BAKnniO6.js";import"./CreditCard01-BD4H9Smc.js";import"./MessageCircle01-Vr9v9ZLf.js";import"./Fingerprint04-CYuFFJ8_.js";import"./LayoutLeft-D6A6HKPj.js";import"./Minus-Cdvi1RtF.js";import"./Sun-TBLvGE97.js";import"./Upload01-VrBKSmfZ.js";import"./Users01-CYW34Us_.js";import"./editor-DHPR_ozC.js";import"./auth-xINlnEh8.js";import"./checkbox-Bg0tGTVi.js";import"./index-BdQq_4o_.js";import"./scroll-area-DmKBqmqO.js";import"./calendar-DhrCDRQ3.js";import"./chart-Df8ROyLe.js";import"./CategoricalChart-CCxFJJjf.js";import"./index-BsbFaHMN.js";import"./tooltipContext-B6Z4ndzl.js";import"./CartesianChart-B0jOalhe.js";import"./AreaChart-CZ4CFQOF.js";import"./infiniteQueryObserver-D9fycF8k.js";import"./useQueries-Di5RfWGT.js";import"./ReferenceLine-BWtcsB8X.js";import"./feature-paywall-CzZKQU6l.js";import"./plan-ladder-BuBxtLzi.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},Fl=["eq","contains","exists","in"];function zl(s){return Fl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function $l(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),o=l?decodeURIComponent(l):"";if(o.trim())return{key:o,operator:i&&zl(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Cs(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function El(s){const e={},l={},i=[],m={};for(const o of s)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(l[o.key]=`%${o.value}%`);break;case"exists":i.push(o.key);break;case"in":o.value&&(m[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as _,j as f,m as B,a_ as at,t as se,b8 as Oe,a6 as ot,ho as lt,i as ct,K as ut,cd as ht,h as De,o as pt}from"./index-Bf6kDBJJ.js";import{u as dt,v as Be,f as ue,B as ft,w as gt,_ as P,$ as mt,a0 as kt,J as xt,K as D,a1 as ve,a2 as bt,e as wt,a3 as Se,a4 as yt,a5 as G,N as Fe,a6 as he,c as qe,a7 as pe,a8 as Tt,a9 as vt,s as St,aa as Mt,a as Et,E as At}from"./usage-stats-BNxKoicX.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-BPv2mnCh.js";import{a as Ct,e as Ue,s as Lt,S as It}from"./suggestion-CmkjlRde.js";import{B as zt}from"./index-CELMEPYa.js";import{aF as Pt,aj as jt,ak as Nt,am as Ht,L as Ot,aZ as Dt,aK as Bt}from"./agent-icon-Di7zqlxT.js";import{i as Ft}from"./SwitchHorizontal01-CoKNU7eN.js";import{s as qt}from"./Trash01-Dw3BP1yz.js";import{k as Ut,a as Zt}from"./use-org-fs-6An12np_.js";import{E as Me,i as Ze,b as Gt,c as Kt,d as Ge,A as Wt,e as Qt,f as Xt,g as Vt,j as Jt}from"./markdown-CPntqjcN.js";import{s as Yt,T as en}from"./index-YMvV0kSt.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-DIXZqeHF.js";import{I as an}from"./icon-button-Bb0nd3sO.js";function on(t){const e=$.c(30),{editor:n}=t,s=j(),[r,a]=_.useState(!1),[i,l]=_.useState(""),[o,h]=_.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const u=c;let p;e[2]!==n||e[3]!==r?(p=()=>{if(r){a(!1);return}const T=n.getAttributes("link").href;l(typeof T=="string"?T:""),h(!1),a(!0)},e[2]=n,e[3]=r,e[4]=p):p=e[4];const d=p;let g;e[5]!==n?(g=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=n,e[6]=g):g=e[6];const x=g;let w;e[7]!==i||e[8]!==n||e[9]!==x?(w=()=>{const T=Rt(i);if(T===""){x();return}if(!_t(T)){h(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:T}).run(),a(!1)},e[7]=i,e[8]=n,e[9]=x,e[10]=w):w=e[10];const b=w;let y;e[11]!==s?(y=s("markdownEditor.link"),e[11]=s,e[12]=y):y=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx(Pt,{size:14}),e[13]=v):v=e[13];let M;e[14]!==u||e[15]!==y||e[16]!==d?(M=f.jsx(C,{active:u,label:y,onClick:d,children:v}),e[14]=u,e[15]=y,e[16]=d,e[17]=M):M=e[17];let m;e[18]!==u||e[19]!==b||e[20]!==i||e[21]!==n||e[22]!==o||e[23]!==r||e[24]!==x||e[25]!==s?(m=r&&f.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||a(!1)},children:[f.jsx("input",{autoFocus:!0,type:"text","aria-label":s("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:s("markdownEditor.linkPlaceholder"),value:i,onChange:T=>{l(T.target.value),h(!1)},onKeyDown:T=>{T.key==="Enter"?(T.preventDefault(),b()):T.key==="Escape"&&(T.preventDefault(),a(!1),n.chain().focus().run())},className:B("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),f.jsx(C,{active:!1,label:s("markdownEditor.linkApply"),onClick:b,children:f.jsx(at,{size:14})}),u&&f.jsx(C,{active:!1,label:s("markdownEditor.linkRemove"),onClick:x,children:f.jsx(qt,{size:14})})]}),e[18]=u,e[19]=b,e[20]=i,e[21]=n,e[22]=o,e[23]=r,e[24]=x,e[25]=s,e[26]=m):m=e[26];let k;return e[27]!==M||e[28]!==m?(k=f.jsxs("div",{className:"relative",children:[M,m]}),e[27]=M,e[28]=m,e[29]=k):k=e[29],k}const ne=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},Ae=t=>{const e=$.c(2),{children:n}=t;let s;return e[0]!==n?(s=f.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=s):s=e[1],s},Ke=[1,2,3],ln=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function cn(t){const e=$.c(20),{editor:n}=t,s=j(),[r,a]=_.useState(null);let i;e[0]!==n?(i={editor:n,selector:un},e[0]=n,e[1]=i):i=e[1];const l=dt(i);let o;e[2]!==s?(o=s("markdownEditor.heading1"),e[2]=s,e[3]=o):o=e[3];let h;e[4]!==s?(h=s("markdownEditor.heading2"),e[4]=s,e[5]=h):h=e[5];let c;e[6]!==s?(c=s("markdownEditor.heading3"),e[6]=s,e[7]=c):c=e[7];let u;e[8]!==o||e[9]!==h||e[10]!==c?(u={1:o,2:h,3:c},e[8]=o,e[9]=h,e[10]=c,e[11]=u):u=e[11];const p=u;let d;e[12]!==n||e[13]!==p||e[14]!==r||e[15]!==l||e[16]!==s?(d=r&&f.jsxs(zt,{editor:n,shouldShow:ln,appendTo:r,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":s("markdownEditor.toolbarAriaLabel"),children:[f.jsx(C,{active:l.bold,label:s("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:f.jsx(jt,{size:14})}),f.jsx(C,{active:l.italic,label:s("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:f.jsx(Nt,{size:14})}),f.jsx(C,{active:l.strike,label:s("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:f.jsx(Ht,{size:14})}),f.jsx(C,{active:l.code,label:s("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:f.jsx(Ot,{size:14})}),f.jsx(ne,{}),Ke.map((x,w)=>f.jsx(C,{active:l.headings[w]??!1,label:p[x],onClick:()=>n.chain().focus().toggleHeading({level:x}).run(),children:f.jsx(Ae,{children:`H${x}`})},x)),f.jsx(ne,{}),f.jsx(C,{active:l.bulletList,label:s("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:f.jsx(Ft,{size:14})}),f.jsx(C,{active:l.orderedList,label:s("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:f.jsx(Ae,{children:"1."})}),f.jsx(C,{active:l.blockquote,label:s("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:f.jsx(Dt,{size:14})}),f.jsx(ne,{}),f.jsx(on,{editor:n})]}),e[12]=n,e[13]=p,e[14]=r,e[15]=l,e[16]=s,e[17]=d):d=e[17];let g;return e[18]!==d?(g=f.jsx("div",{ref:a,className:"relative z-20",children:d}),e[18]=d,e[19]=g):g=e[19],g}function un(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Ke.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const hn=10,pn=25,dn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function fn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??dn[t.type]??""}function gn(){const t=$.c(4),e=j(),{upload:n}=Ut(Me),s=Zt(Me);let r;return t[0]!==s||t[1]!==e||t[2]!==n?(r={uploadFile:async i=>{const l=Ze(i),o=l?hn:pn;if(i.size>o*1024*1024)return se.error(e("markdownEditor.fileTooLarge",{name:i.name,max:String(o)})),null;const h=l?Gt:Kt,c=`${crypto.randomUUID()}${fn(i)}`;try{return await n.mutateAsync({dir:h,files:[new File([i],c,{type:i.type})]}),s(`${h}/${c}`)}catch{return se.error(e("markdownEditor.uploadFailed",{name:i.name})),null}}},t[0]=s,t[1]=e,t[2]=n,t[3]=r):r=t[3],r}const X=new Be("uploadSlots"),mn=ue.create({name:"uploadSlots",addProseMirrorPlugins(){return[new ft({key:X,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(X);if(!t.docChanged&&!n)return e;const s=new Map;for(const[r,a]of e)s.set(r,t.mapping.map(a));if(n){const[r,a]=n;a===null?s.delete(r):s.set(r,a)}return s}}})]}});function ie(t,e,n){return t.setMeta(X,[e,n])}function kn(t,e){return X.getState(t)?.get(e)}function xn(t,e,n,s,r){const{schema:a}=t.state,i=a.nodes[n];if(!i)return;const l=i.create(s),o=t.state.selection.to===e,h=t.state.doc.resolve(e),c=h.parent.textBetween(Math.max(0,h.parentOffset-1),h.parentOffset,void 0,""),u=()=>a.text(" "),p=l.isInline?[...c&&!/\s/.test(c)?[u()]:[],l,u()]:l,d=t.state.tr.replaceWith(e,e,p);let g=e,x=e;d.mapping.maps.at(-1)?.forEach((M,m,k,T)=>{g=k,x=T});let w;d.doc.nodesBetween(g,x,(M,m)=>{M===l&&(w=m+M.nodeSize)});let b=w??x;w!==void 0&&l.isInline&&(b+=1);const y=a.nodes.paragraph;w!==void 0&&l.isBlock&&y&&(d.doc.resolve(w).nodeAfter?.isTextblock||d.insert(w,y.create()),b=w+1);const v=gt.near(d.doc.resolve(b));o&&d.setSelection(v),r&&ie(d,r,v.to),t.dispatch(d)}function bn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function wn(t=!0){const e=j(),{uploadFile:n}=gn(),s=_.useRef(n);s.current=n;const[r,a]=_.useState(0),i=_.useRef(0),l=u=>{i.current+=u,a(i.current)},o=(u,p,d)=>{if(!t||p.length===0)return!1;l(p.length);const g=Symbol("upload");return u.dispatch(ie(u.state.tr,g,d)),(async()=>{for(const x of p)try{const w=await s.current(x);if(!w||u.isDestroyed)continue;const b=Ze(x);xn(u,kn(u.state,g)??u.state.selection.to,b?"image":"attachment",b?{src:w,alt:x.name}:{href:w,name:x.name},g)}catch{se.error(e("markdownEditor.uploadFailed",{name:x.name}))}finally{l(-1)}u.isDestroyed||u.dispatch(ie(u.state.tr,g,null))})(),!0};return{pending:r,uploading:()=>i.current>0,uploadInto:o,handlePaste:(u,p)=>{const d=bn(p.clipboardData);return d.length===0?!1:(p.stopPropagation(),o(u,d,u.state.selection.to))},handleDrop:(u,p,d,g)=>{if(g)return!1;const x=Array.from(p.dataTransfer?.files??[]);if(x.length===0)return!1;const w=u.posAtCoords({left:p.clientX,top:p.clientY})?.pos;return w===void 0?!1:(p.stopPropagation(),o(u,x,w))}}}function de(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O=de();function We(t){O=t}var N={exec:()=>null};function S(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(R.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var yn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Tn=/^(?:[ \t]*(?:\n|$))+/,vn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xe=S(Qe).replace(/bull/g,fe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),En=S(Qe).replace(/bull/g,fe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,An=/^[^\n]+/,me=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rn=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_n=S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fe).getRegex(),ee="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ke=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$n=S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ke).replace("tag",ee).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ve=S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),Cn=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ve).getRegex(),xe={blockquote:Cn,code:vn,def:Rn,fences:Sn,heading:Mn,hr:K,html:$n,lheading:Xe,list:_n,newline:Tn,paragraph:Ve,table:N,text:An},Re=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),Ln={...xe,lheading:En,table:Re,paragraph:S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex()},In={...xe,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ke).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:N,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(ge).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as _,j as f,m as B,a_ as at,t as se,b8 as Oe,a6 as ot,ho as lt,i as ct,K as ut,cd as ht,h as De,o as pt}from"./index-DmyPeHtj.js";import{u as dt,v as Be,f as ue,B as ft,w as gt,_ as P,$ as mt,a0 as kt,J as xt,K as D,a1 as ve,a2 as bt,e as wt,a3 as Se,a4 as yt,a5 as G,N as Fe,a6 as he,c as qe,a7 as pe,a8 as Tt,a9 as vt,s as St,aa as Mt,a as Et,E as At}from"./usage-stats-DX6ERAU7.js";import{T as C,n as Rt,i as _t,E as $t}from"./editor-classes-BLd4hHmH.js";import{a as Ct,e as Ue,s as Lt,S as It}from"./suggestion-DIf7hFaH.js";import{B as zt}from"./index-ChDgpo9K.js";import{aF as Pt,aj as jt,ak as Nt,am as Ht,L as Ot,aZ as Dt,aK as Bt}from"./agent-icon-DFYKaa0c.js";import{i as Ft}from"./SwitchHorizontal01-D47eRm9A.js";import{s as qt}from"./Trash01-C_glH0wy.js";import{k as Ut,a as Zt}from"./use-org-fs-j9Hf5idr.js";import{E as Me,i as Ze,b as Gt,c as Kt,d as Ge,A as Wt,e as Qt,f as Xt,g as Vt,j as Jt}from"./markdown-B7FqmO_Q.js";import{s as Yt,T as en}from"./index-nmSJ42Ew.js";import{f as tn,a as nn,c as rn,C as sn,b as Ee}from"./command-DmBlCsxL.js";import{I as an}from"./icon-button-BKSgoP48.js";function on(t){const e=$.c(30),{editor:n}=t,s=j(),[r,a]=_.useState(!1),[i,l]=_.useState(""),[o,h]=_.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const u=c;let p;e[2]!==n||e[3]!==r?(p=()=>{if(r){a(!1);return}const T=n.getAttributes("link").href;l(typeof T=="string"?T:""),h(!1),a(!0)},e[2]=n,e[3]=r,e[4]=p):p=e[4];const d=p;let g;e[5]!==n?(g=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=n,e[6]=g):g=e[6];const x=g;let w;e[7]!==i||e[8]!==n||e[9]!==x?(w=()=>{const T=Rt(i);if(T===""){x();return}if(!_t(T)){h(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:T}).run(),a(!1)},e[7]=i,e[8]=n,e[9]=x,e[10]=w):w=e[10];const b=w;let y;e[11]!==s?(y=s("markdownEditor.link"),e[11]=s,e[12]=y):y=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx(Pt,{size:14}),e[13]=v):v=e[13];let M;e[14]!==u||e[15]!==y||e[16]!==d?(M=f.jsx(C,{active:u,label:y,onClick:d,children:v}),e[14]=u,e[15]=y,e[16]=d,e[17]=M):M=e[17];let m;e[18]!==u||e[19]!==b||e[20]!==i||e[21]!==n||e[22]!==o||e[23]!==r||e[24]!==x||e[25]!==s?(m=r&&f.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||a(!1)},children:[f.jsx("input",{autoFocus:!0,type:"text","aria-label":s("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:s("markdownEditor.linkPlaceholder"),value:i,onChange:T=>{l(T.target.value),h(!1)},onKeyDown:T=>{T.key==="Enter"?(T.preventDefault(),b()):T.key==="Escape"&&(T.preventDefault(),a(!1),n.chain().focus().run())},className:B("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),f.jsx(C,{active:!1,label:s("markdownEditor.linkApply"),onClick:b,children:f.jsx(at,{size:14})}),u&&f.jsx(C,{active:!1,label:s("markdownEditor.linkRemove"),onClick:x,children:f.jsx(qt,{size:14})})]}),e[18]=u,e[19]=b,e[20]=i,e[21]=n,e[22]=o,e[23]=r,e[24]=x,e[25]=s,e[26]=m):m=e[26];let k;return e[27]!==M||e[28]!==m?(k=f.jsxs("div",{className:"relative",children:[M,m]}),e[27]=M,e[28]=m,e[29]=k):k=e[29],k}const ne=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},Ae=t=>{const e=$.c(2),{children:n}=t;let s;return e[0]!==n?(s=f.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=s):s=e[1],s},Ke=[1,2,3],ln=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function cn(t){const e=$.c(20),{editor:n}=t,s=j(),[r,a]=_.useState(null);let i;e[0]!==n?(i={editor:n,selector:un},e[0]=n,e[1]=i):i=e[1];const l=dt(i);let o;e[2]!==s?(o=s("markdownEditor.heading1"),e[2]=s,e[3]=o):o=e[3];let h;e[4]!==s?(h=s("markdownEditor.heading2"),e[4]=s,e[5]=h):h=e[5];let c;e[6]!==s?(c=s("markdownEditor.heading3"),e[6]=s,e[7]=c):c=e[7];let u;e[8]!==o||e[9]!==h||e[10]!==c?(u={1:o,2:h,3:c},e[8]=o,e[9]=h,e[10]=c,e[11]=u):u=e[11];const p=u;let d;e[12]!==n||e[13]!==p||e[14]!==r||e[15]!==l||e[16]!==s?(d=r&&f.jsxs(zt,{editor:n,shouldShow:ln,appendTo:r,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":s("markdownEditor.toolbarAriaLabel"),children:[f.jsx(C,{active:l.bold,label:s("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:f.jsx(jt,{size:14})}),f.jsx(C,{active:l.italic,label:s("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:f.jsx(Nt,{size:14})}),f.jsx(C,{active:l.strike,label:s("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:f.jsx(Ht,{size:14})}),f.jsx(C,{active:l.code,label:s("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:f.jsx(Ot,{size:14})}),f.jsx(ne,{}),Ke.map((x,w)=>f.jsx(C,{active:l.headings[w]??!1,label:p[x],onClick:()=>n.chain().focus().toggleHeading({level:x}).run(),children:f.jsx(Ae,{children:`H${x}`})},x)),f.jsx(ne,{}),f.jsx(C,{active:l.bulletList,label:s("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:f.jsx(Ft,{size:14})}),f.jsx(C,{active:l.orderedList,label:s("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:f.jsx(Ae,{children:"1."})}),f.jsx(C,{active:l.blockquote,label:s("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:f.jsx(Dt,{size:14})}),f.jsx(ne,{}),f.jsx(on,{editor:n})]}),e[12]=n,e[13]=p,e[14]=r,e[15]=l,e[16]=s,e[17]=d):d=e[17];let g;return e[18]!==d?(g=f.jsx("div",{ref:a,className:"relative z-20",children:d}),e[18]=d,e[19]=g):g=e[19],g}function un(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Ke.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const hn=10,pn=25,dn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function fn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??dn[t.type]??""}function gn(){const t=$.c(4),e=j(),{upload:n}=Ut(Me),s=Zt(Me);let r;return t[0]!==s||t[1]!==e||t[2]!==n?(r={uploadFile:async i=>{const l=Ze(i),o=l?hn:pn;if(i.size>o*1024*1024)return se.error(e("markdownEditor.fileTooLarge",{name:i.name,max:String(o)})),null;const h=l?Gt:Kt,c=`${crypto.randomUUID()}${fn(i)}`;try{return await n.mutateAsync({dir:h,files:[new File([i],c,{type:i.type})]}),s(`${h}/${c}`)}catch{return se.error(e("markdownEditor.uploadFailed",{name:i.name})),null}}},t[0]=s,t[1]=e,t[2]=n,t[3]=r):r=t[3],r}const X=new Be("uploadSlots"),mn=ue.create({name:"uploadSlots",addProseMirrorPlugins(){return[new ft({key:X,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(X);if(!t.docChanged&&!n)return e;const s=new Map;for(const[r,a]of e)s.set(r,t.mapping.map(a));if(n){const[r,a]=n;a===null?s.delete(r):s.set(r,a)}return s}}})]}});function ie(t,e,n){return t.setMeta(X,[e,n])}function kn(t,e){return X.getState(t)?.get(e)}function xn(t,e,n,s,r){const{schema:a}=t.state,i=a.nodes[n];if(!i)return;const l=i.create(s),o=t.state.selection.to===e,h=t.state.doc.resolve(e),c=h.parent.textBetween(Math.max(0,h.parentOffset-1),h.parentOffset,void 0,""),u=()=>a.text(" "),p=l.isInline?[...c&&!/\s/.test(c)?[u()]:[],l,u()]:l,d=t.state.tr.replaceWith(e,e,p);let g=e,x=e;d.mapping.maps.at(-1)?.forEach((M,m,k,T)=>{g=k,x=T});let w;d.doc.nodesBetween(g,x,(M,m)=>{M===l&&(w=m+M.nodeSize)});let b=w??x;w!==void 0&&l.isInline&&(b+=1);const y=a.nodes.paragraph;w!==void 0&&l.isBlock&&y&&(d.doc.resolve(w).nodeAfter?.isTextblock||d.insert(w,y.create()),b=w+1);const v=gt.near(d.doc.resolve(b));o&&d.setSelection(v),r&&ie(d,r,v.to),t.dispatch(d)}function bn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function wn(t=!0){const e=j(),{uploadFile:n}=gn(),s=_.useRef(n);s.current=n;const[r,a]=_.useState(0),i=_.useRef(0),l=u=>{i.current+=u,a(i.current)},o=(u,p,d)=>{if(!t||p.length===0)return!1;l(p.length);const g=Symbol("upload");return u.dispatch(ie(u.state.tr,g,d)),(async()=>{for(const x of p)try{const w=await s.current(x);if(!w||u.isDestroyed)continue;const b=Ze(x);xn(u,kn(u.state,g)??u.state.selection.to,b?"image":"attachment",b?{src:w,alt:x.name}:{href:w,name:x.name},g)}catch{se.error(e("markdownEditor.uploadFailed",{name:x.name}))}finally{l(-1)}u.isDestroyed||u.dispatch(ie(u.state.tr,g,null))})(),!0};return{pending:r,uploading:()=>i.current>0,uploadInto:o,handlePaste:(u,p)=>{const d=bn(p.clipboardData);return d.length===0?!1:(p.stopPropagation(),o(u,d,u.state.selection.to))},handleDrop:(u,p,d,g)=>{if(g)return!1;const x=Array.from(p.dataTransfer?.files??[]);if(x.length===0)return!1;const w=u.posAtCoords({left:p.clientX,top:p.clientY})?.pos;return w===void 0?!1:(p.stopPropagation(),o(u,x,w))}}}function de(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O=de();function We(t){O=t}var N={exec:()=>null};function S(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(R.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var yn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Tn=/^(?:[ \t]*(?:\n|$))+/,vn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xe=S(Qe).replace(/bull/g,fe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),En=S(Qe).replace(/bull/g,fe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,An=/^[^\n]+/,me=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rn=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",me).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_n=S(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fe).getRegex(),ee="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ke=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$n=S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ke).replace("tag",ee).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ve=S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),Cn=S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ve).getRegex(),xe={blockquote:Cn,code:vn,def:Rn,fences:Sn,heading:Mn,hr:K,html:$n,lheading:Xe,list:_n,newline:Tn,paragraph:Ve,table:N,text:An},Re=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex(),Ln={...xe,lheading:En,table:Re,paragraph:S(ge).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ee).getRegex()},In={...xe,html:S(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ke).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:N,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(ge).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",Xe).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Je=/^( {2,}|\\)\n(?!\s*$)/,jn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,te=/[\s\p{P}\p{S}]/u,be=/[^\s\p{P}\p{S}]/u,Nn=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,te).getRegex(),Ye=/(?!~)[\p{P}\p{S}]/u,Hn=/(?!~)[\s\p{P}\p{S}]/u,On=/(?:[^\s\p{P}\p{S}]|~)/u,Dn=S(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",yn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),et=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bn=S(et,"u").replace(/punct/g,F).getRegex(),Fn=S(et,"u").replace(/punct/g,Ye).getRegex(),tt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qn=S(tt,"gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Un=S(tt,"gu").replace(/notPunctSpace/g,On).replace(/punctSpace/g,Hn).replace(/punct/g,Ye).getRegex(),Zn=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Gn=S(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,F).getRegex(),Kn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Wn=S(Kn,"gu").replace(/notPunctSpace/g,be).replace(/punctSpace/g,te).replace(/punct/g,F).getRegex(),Qn=S(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),Xn=S(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Vn=S(ke).replace("(?:-->|$)","-->").getRegex(),Jn=S("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Vn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Yn=S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=S(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",me).getRegex(),rt=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",me).getRegex(),er=S("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),_e=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,we={_backpedal:N,anyPunctuation:Qn,autolink:Xn,blockSkip:Dn,br:Je,code:Pn,del:N,delLDelim:N,delRDelim:N,emStrongLDelim:Bn,emStrongRDelimAst:qn,emStrongRDelimUnd:Zn,escape:zn,link:Yn,nolink:rt,punctuation:Nn,reflink:nt,reflinkSearch:er,tag:Jn,text:jn,url:N},tr={...we,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},ae={...we,emStrongRDelimAst:Un,emStrongLDelim:Fn,delLDelim:Gn,delRDelim:Wn,url:S(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_e).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:S(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_e).getRegex()},nr={...ae,br:S(Je).replace("{2,}","*").getRegex(),text:S(ae.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},W={normal:xe,gfm:Ln,pedantic:In},q={normal:we,gfm:ae,breaks:nr,pedantic:tr},rr={"&":"&","<":"<",">":">",'"':""","'":"'"},$e=t=>rr[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,$e)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,$e);return t}function Ce(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function Le(t,e){let n=t.replace(R.findPipe,(a,i,l)=>{let o=!1,h=i;for(;--h>=0&&l[h]==="\\";)o=!o;return o?"|":" |"}),s=n.split(R.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(R.slashPipe,"|");return s}function U(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function sr(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function ir(t,e=0){let n=e,s="";for(let r of t)if(r===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=r,n++;return s}function Ie(t,e,n,s,r){let a=e.href,i=e.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:s.inlineTokens(l)};return s.state.inLink=!1,o}function ar(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
|
|
3
3
|
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=r.length?a.slice(r.length):a}).join(`
|
|
4
4
|
`)}var J=class{options;rules;lexer;constructor(t){this.options=t||O}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:U(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,au as W,aw as q,b as E,r as w,d as G,j as o,aV as $,R as I,P as N,n as U,B as k,ba as V}from"./index-
|
|
1
|
+
import{c as j,au as W,aw as q,b as E,r as w,d as G,j as o,aV as $,R as I,P as N,n as U,B as k,ba as V}from"./index-DmyPeHtj.js";import{u as K}from"./use-mobile-BGIYUsLQ.js";import{T as Y,a as Z,c as J}from"./tooltip-CnD2gBxQ.js";import{t as Q,a as X}from"./MessageCircle01-Vr9v9ZLf.js";import{s as ee}from"./XClose-xoNzv1jt.js";import{b as te}from"./thread-button-DRipdtQl.js";import{T as ne}from"./toolbar-icon-button-BXZ6Fg9k.js";import{b as se,R as oe,a as D}from"./resizable-D3Zb0j0Y.js";import{c as re,r as ie,m as ae}from"./use-chat-layout-state-OXPATbvD.js";import{R as le}from"./route-page-header-BjKtp3iF.js";import"./index-DAFFHpVi.js";import"./use-sidebar-collapsed-BsHAzi2v.js";import"./sheet-C4ApGL6L.js";import"./use-in-settings-BhSbV6H8.js";import"./use-panel-navigate-DLijLDIl.js";import"./thread-route-QjX15zqF.js";import"./use-project-scope-sgJLxDnc.js";import"./repository-binding-BezKpFog.js";import"./use-mcp-client-DfqrKiZY.js";import"./auth-xINlnEh8.js";import"./LayoutLeft-D6A6HKPj.js";import"./use-current-view-DrUxoucV.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,a]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let l;return n[5]!==a||n[6]!==s?(l=[s,a],n[5]=a,n[6]=s,n[7]=l):l=n[7],l}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=w.createContext(null);function Fe(){return T()}function fe(){return w.use(O)}function T(){const t=w.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),a=G(),s=w.useRef(null),[l,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?l:h.side,p=100-m,y=b=>{const v=b.getLayout(),_=v[P],S=v[M];typeof _!="number"||typeof S!="number"||Math.abs(_-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==a||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{a({to:".",search:b=>({...b,...ae(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=a,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:_}=v;if(!_){const R=s.current;R&&y(R);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let z;return e[18]!==g||e[19]!==L||e[20]!==f?(z=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=z):z=e[21],z}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let a;e[4]!==i.contentOpen?(a=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=a):a=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let l;e[8]!==s||e[9]!==r?(l=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=l):l=e[10];let c;return e[11]!==a||e[12]!==l?(c=o.jsxs(o.Fragment,{children:[a,l]}),e[11]=a,e[12]=l,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:a}=t;let s;e[0]!==a||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:a})}),e[0]=a,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let l;e[5]!==n?(l=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=l):l=e[6];let c;return e[7]!==s||e[8]!==l?(c=o.jsxs(J,{children:[s,l]}),e[7]=s,e[8]=l,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let a;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(a=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=a):a=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let l;return t[9]!==a||t[10]!==s?(l=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,a,s]}),t[9]=a,t[10]=s,t[11]=l):l=t[11],l}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(xe,{}),t[0]=a):a=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let l;t[3]!==r.toggleContent||t[4]!==s?(l=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[a,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=l):l=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==l?(u=o.jsxs(o.Fragment,{children:[l,c]}),t[7]=l,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function B(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:a}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const l=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(le,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==l||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:l,children:p}),e[16]=l,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==a?(f=a&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:a})},w.isValidElement(a)?a.key??void 0:void 0)})}),e[21]=a,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(B,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let a;e[0]!==i?(a=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=a):a=e[1];let s;e[2]!==a?(s=o.jsx("h2",{className:"text-lg font-medium",children:a}),e[2]=a,e[3]=s):s=e[3];let l;e[4]!==n.message||e[5]!==i?(l=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=l):l=e[6];let c;e[7]!==l?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:l}),e[7]=l,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(B,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:B});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d8 as _}from"./index-
|
|
1
|
+
import{d8 as _}from"./index-DmyPeHtj.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c3 as L,c4 as B,j as c,g4 as q,c9 as y,c7 as b,g3 as K,ca as E,g5 as g,e4 as T,cn as _,cg as U,cr as V}from"./index-
|
|
1
|
+
import{r as s,c3 as L,c4 as B,j as c,g4 as q,c9 as y,c7 as b,g3 as K,ca as E,g5 as g,e4 as T,cn as _,cg as U,cr as V}from"./index-DmyPeHtj.js";var I="Radio",[z,w]=_(I),[H,W]=z(I),P=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(H,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});P.displayName=I;var k="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(k,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=k;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[J]=_(C,[g,w]),j=g(),N=w(),[Q,Z]=J(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(P,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=$;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a6 as h,h6 as d,j as g,N as m,ag as p,a2 as j}from"./index-
|
|
1
|
+
import{c as f,a6 as h,h6 as d,j as g,N as m,ag as p,a2 as j}from"./index-DmyPeHtj.js";import{L as v}from"./legacy-main-redirect-D7u9pyFK.js";import"./thread-route-QjX15zqF.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let n;t[7]!==o?(n=o?.trim()||null,t[7]=o,t[8]=n):n=t[8];const u=n;if(u){let e;t[9]!==a.slug||t[10]!==u?(e={org:a.slug,agentId:u},t[9]=a.slug,t[10]=u,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let c;return t[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=c):c=t[18],c}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as H,v as U,ab as S,H as X,ac as Z,f as R,ad as J,ae as Q,p as z}from"./usage-stats-BNxKoicX.js";import{gE as M,hp as C,gD as P,hq as x,hr as L,hs as V,ht as K,hu as _,gG as A,eX as N,r as p,cd as B}from"./index-Bf6kDBJJ.js";import{C as k}from"./index-YMvV0kSt.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof X){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&Z(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const $=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,q=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function j(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){q.has(e)||t.style.removeProperty(j(e))}function mt(t,e,i){q.has(e)||t.style.setProperty(j(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=$({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),B.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),B.createPortal(d,u.current)});export{Tt as B};
|
|
1
|
+
import{B as H,v as U,ab as S,H as X,ac as Z,f as R,ad as J,ae as Q,p as z}from"./usage-stats-DX6ERAU7.js";import{gE as M,hp as C,gD as P,hq as x,hr as L,hs as V,ht as K,hu as _,gG as A,eX as N,r as p,cd as B}from"./index-DmyPeHtj.js";import{C as k}from"./index-nmSJ42Ew.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof X){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&Z(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const $=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,q=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function j(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){q.has(e)||t.style.removeProperty(j(e))}function mt(t,e,i){q.has(e)||t.style.setProperty(j(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=$({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),B.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),B.createPortal(d,u.current)});export{Tt as B};
|