decocms 2.306.4 → 2.306.6
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-BVeHzXW5.js → AlertCircle-4Fij-rVg.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-C2P2KRPF.js → ArrowNarrowLeft-CxNzupMt.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CK9uu0-D.js → ArrowUpRight-B9s_0HcJ.js} +1 -1
- package/dist/client/assets/{Check-Bn17wiie.js → Check-DC_iCN8Z.js} +1 -1
- package/dist/client/assets/{CheckCircle-K_j4V2mi.js → CheckCircle-ROoANe3f.js} +1 -1
- package/dist/client/assets/{ChevronDown-CCx3l_zh.js → ChevronDown-CnUhTqwX.js} +1 -1
- package/dist/client/assets/{ChevronRight-BFX3SRVD.js → ChevronRight-X2lm_E9M.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClgBv1-5.js → ChevronUp-CgOfWCZA.js} +1 -1
- package/dist/client/assets/{Container-hEu0LbRx.js → Container-BrskPoE3.js} +1 -1
- package/dist/client/assets/{DotsVertical-lhZhn-05.js → DotsVertical-C2-ev8jy.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DnFFYVv0.js → LinkExternal01-Bhhv-wHj.js} +1 -1
- package/dist/client/assets/{Lock01-B2ZDxQ2O.js → Lock01-KbqVCyA7.js} +1 -1
- package/dist/client/assets/{Palette-JDIBaFVX.js → Palette-CmZGtCez.js} +1 -1
- package/dist/client/assets/{Play-DgV9fPBn.js → Play-EPgISV5B.js} +1 -1
- package/dist/client/assets/{Plus-CC-cb8af.js → Plus-BYimMcAW.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dtm565ax.js → RefreshCcw01-DIY3NFBI.js} +1 -1
- package/dist/client/assets/{SearchMd-DhuTOkMM.js → SearchMd-DzMVdOJP.js} +1 -1
- package/dist/client/assets/{Settings02-U10Pi2U6.js → Settings02-BxmxMTOA.js} +1 -1
- package/dist/client/assets/{Shield01-BIPlYgtf.js → Shield01-B9vNkAc4.js} +1 -1
- package/dist/client/assets/{Star01-BQbW3c7S.js → Star01-iULH34rV.js} +1 -1
- package/dist/client/assets/{Sun-DejP2-9n.js → Sun-Dc78AQrj.js} +1 -1
- package/dist/client/assets/{Tool01-BJ2-pI1A.js → Tool01-DVcjHQGB.js} +1 -1
- package/dist/client/assets/{Trash01-Diaa7rgk.js → Trash01-CaZrP0UV.js} +1 -1
- package/dist/client/assets/{User01-D16UA2Si.js → User01-7U7nAEDg.js} +1 -1
- package/dist/client/assets/{Users03-CNLT4iFx.js → Users03-CIZBy7k3.js} +1 -1
- package/dist/client/assets/{X-CcpHqq2x.js → X-QdBx5oCM.js} +1 -1
- package/dist/client/assets/{XCircle-cbWH1EQO.js → XCircle-DokNvYvs.js} +1 -1
- package/dist/client/assets/{XClose-CY2dTc5U.js → XClose-BdbZPqCd.js} +1 -1
- package/dist/client/assets/{Zap-vGQbOM1l.js → Zap-DH1KrJ0w.js} +1 -1
- package/dist/client/assets/{ZapSquare-csc63uU1.js → ZapSquare-CnxL4Bs1.js} +1 -1
- package/dist/client/assets/{accordion-CDZyqEhI.js → accordion-81SrnINF.js} +1 -1
- package/dist/client/assets/{agent-icon-CKJvbkVv.js → agent-icon-C2zAhw3X.js} +1 -1
- package/dist/client/assets/{agents-list-1iolV9zJ.js → agents-list-CH2sTwpj.js} +1 -1
- package/dist/client/assets/ai-providers-BxrN55-q.js +1 -0
- package/dist/client/assets/{alert-dialog-ZtmnRyl1.js → alert-dialog-BytOwrWo.js} +1 -1
- package/dist/client/assets/{auth-catchall-DQe9zsv6.js → auth-catchall-BcUDEqD5.js} +1 -1
- package/dist/client/assets/{automation-list-row-BSwjOToq.js → automation-list-row-etrXhG1_.js} +1 -1
- package/dist/client/assets/{automations-9u7mZ4QZ.js → automations-DFRPWAOO.js} +1 -1
- package/dist/client/assets/{avatar-zFo-RihM.js → avatar-D0sdobqD.js} +1 -1
- package/dist/client/assets/{badge-e7cq4wYv.js → badge-tvsCFCHP.js} +1 -1
- package/dist/client/assets/{brand-context-CLbcMKjn.js → brand-context-Cy-kcB0m.js} +1 -1
- package/dist/client/assets/{card-DWnlPW06.js → card-BGZ5LqAO.js} +1 -1
- package/dist/client/assets/{chat-context-BBJWCKaD.js → chat-context-iq-Q-O9L.js} +1 -1
- package/dist/client/assets/{checkbox-DoVlL246.js → checkbox-IEnuEqAm.js} +1 -1
- package/dist/client/assets/{collection-detail-BOHQu3-F.js → collection-detail-BnoKU_uS.js} +1 -1
- package/dist/client/assets/{collection-display-button-CNNaQLXZ.js → collection-display-button-tJsvfx8o.js} +1 -1
- package/dist/client/assets/{collection-search-DQFkaere.js → collection-search-O8QAretn.js} +1 -1
- package/dist/client/assets/{collection-search-Dz8EwXQZ.js → collection-search-bjPRZI3g.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CcEDyR1b.js → collection-table-wrapper-CcyIZki9.js} +1 -1
- package/dist/client/assets/{collection-tabs-9Pju8JPc.js → collection-tabs-CqINIlN4.js} +1 -1
- package/dist/client/assets/{collections-yePzr7Vo.js → collections-DKW_jlNs.js} +1 -1
- package/dist/client/assets/{command-BCic1xjY.js → command-Cbi8R9Tg.js} +1 -1
- package/dist/client/assets/{connection-card-B0dNH0iV.js → connection-card-Aj-8CWhX.js} +1 -1
- package/dist/client/assets/{connection-detail-BJNTgOwZ.js → connection-detail-G5l6bgwi.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BbVz-xaK.js → connection-form-helpers-hlnQqQXV.js} +1 -1
- package/dist/client/assets/{connections-BYasVx0l.js → connections-CrOLesap.js} +1 -1
- package/dist/client/assets/{constants-Bx4zZlUX.js → constants-CWAA475A.js} +1 -1
- package/dist/client/assets/{constants-BnMb7TNK.js → constants-Dm1wnwL3.js} +1 -1
- package/dist/client/assets/{dialog-DlCT-WoK.js → dialog-0SvGB_9G.js} +1 -1
- package/dist/client/assets/{domain-settings-DfWm-jri.js → domain-settings-CckaLtjm.js} +1 -1
- package/dist/client/assets/{drawer-BcjhGJPV.js → drawer-CyXE-C5x.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CqMcZJzJ.js → dropdown-menu-BkrpBFy3.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BHmC-i3E.js → dynamic-plugin-layout-DAf8nhzs.js} +1 -1
- package/dist/client/assets/{empty-state-ZdvVUypD.js → empty-state-Crsog8CF.js} +1 -1
- package/dist/client/assets/{empty-state-g7JZH7nI.js → empty-state-CxZybw5m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-V6uho3MU.js → extract-connection-data-CnUKkwJT.js} +1 -1
- package/dist/client/assets/{features-HK9-kqo_.js → features-Ddtjf7i2.js} +1 -1
- package/dist/client/assets/{form-Bz8GUOy4.js → form-BMjsxf1O.js} +1 -1
- package/dist/client/assets/{general-CzhgQzmN.js → general-CVe1Krdt.js} +1 -1
- package/dist/client/assets/{index-C8d4iNkJ.js → index-AqmdpH5c.js} +1 -1
- package/dist/client/assets/{index-DfBYDDUd.js → index-B8A_ReFj.js} +1 -1
- package/dist/client/assets/{index-BiwSMF-y.js → index-BV4BlnS9.js} +2 -2
- package/dist/client/assets/index-Bhv1nOmU.js +1 -0
- package/dist/client/assets/{index-BfMLUnDV.js → index-CEyiW6G-.js} +1 -1
- package/dist/client/assets/{index-BJyj20OY.js → index-CPDZUQ3g.js} +1 -1
- package/dist/client/assets/{index-BLcDLcVA.js → index-CYY5hWbm.js} +1 -1
- package/dist/client/assets/{index-C52EJPiC.js → index-CZ5qFDIg.js} +1 -1
- package/dist/client/assets/{index-Cge-ppRk.js → index-CyJ-TyKU.js} +1 -1
- package/dist/client/assets/{index-DmUuSwi5.js → index-D85QLvNR.js} +1 -1
- package/dist/client/assets/{index-qPq642HU.js → index-DYUyKEVO.js} +1 -1
- package/dist/client/assets/{index-DIfp1lEQ.js → index-DusASzPG.js} +4 -4
- package/dist/client/assets/{index-CFIHNl5s.js → index-DvCRkopi.js} +1 -1
- package/dist/client/assets/{index-IQKcn_Q9.js → index-WBXV3t9A.js} +1 -1
- package/dist/client/assets/{index-CA9kxx2H.js → index-hSAfwkZQ.js} +1 -1
- package/dist/client/assets/{index-mh337hn4.js → index-tIIHK8_r.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DjjliL3G.js → infiniteQueryObserver-DmPvCV47.js} +1 -1
- package/dist/client/assets/{input-OXmAT-db.js → input-Bs7mkNsF.js} +1 -1
- package/dist/client/assets/{integration-icon-R4Bf_BtR.js → integration-icon-DgJZ63kl.js} +1 -1
- package/dist/client/assets/{label-u11WxqKS.js → label-CB1YxmGr.js} +1 -1
- package/dist/client/assets/{layout-BBQfzLrY.js → layout-GReGu88m.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CNAftz7l.js → lean-canvas-recruit-modal-BkH3ZJD2.js} +1 -1
- package/dist/client/assets/{login-D89hffSU.js → login-JiD1cfP5.js} +1 -1
- package/dist/client/assets/{members-BtnGYesQ.js → members-B72381x1.js} +1 -1
- package/dist/client/assets/{monaco-editor-CbHwzfZK.js → monaco-editor-_r7N6eV-.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DL-xrM3g.js → monitoring-stats-row-IV0nDqiB.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cd1gXNOv.js → oauth-callback-CkFjLbE_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DIh7l460.js → oauth-callback-ai-provider-By5VSIqz.js} +1 -1
- package/dist/client/assets/{onboarding-DTh2AOHR.js → onboarding-CCZiORGK.js} +1 -1
- package/dist/client/assets/{org-layout-HNPVlgjL.js → org-layout-DF3EY572.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CsuWyjoh.js → org-plugin-layout-C4CnG2ku.js} +1 -1
- package/dist/client/assets/{pair-DH2MBWb8.js → pair-Hj9vutgK.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-6oVaErxP.js → plugin-empty-state-DtiwhoNI.js} +1 -1
- package/dist/client/assets/{plugin-header-6NaCrPJJ.js → plugin-header-CjcXnInr.js} +1 -1
- package/dist/client/assets/{plugin-layout-joz6qwbQ.js → plugin-layout-BJ0qU511.js} +1 -1
- package/dist/client/assets/{popover-BnBY-ecH.js → popover-9-i1guS1.js} +1 -1
- package/dist/client/assets/{profile-CtmYFgP6.js → profile-C0pKX75D.js} +1 -1
- package/dist/client/assets/{project-app-view-B09jGIHR.js → project-app-view-Btui0VFM.js} +1 -1
- package/dist/client/assets/registry-Bhz5Jlkf.js +2 -0
- package/dist/client/assets/{registry-layout-BkbzhpWl.js → registry-layout-Cvjuv72f.js} +1 -1
- package/dist/client/assets/{required-auth-layout-f-OWQyso.js → required-auth-layout-Cm0GjYeR.js} +1 -1
- package/dist/client/assets/{reset-password-FDUiQSjd.js → reset-password-DHyMDEUg.js} +1 -1
- package/dist/client/assets/{roles-AXX2LOzG.js → roles-BRZ0jwUp.js} +1 -1
- package/dist/client/assets/{scroll-area-PF9KCzsE.js → scroll-area-Dal58SLb.js} +1 -1
- package/dist/client/assets/{search-input-uAtFXE8w.js → search-input-BSfMPrXv.js} +1 -1
- package/dist/client/assets/{select-BuVZhDrk.js → select-DQy3AX-J.js} +1 -1
- package/dist/client/assets/{select-model-D4DeKOfs.js → select-model-BjvpQUyU.js} +1 -1
- package/dist/client/assets/{settings-layout-EeX5xzLc.js → settings-layout-Hke-qhRP.js} +1 -1
- package/dist/client/assets/{settings-section-CQDWNPzr.js → settings-section-DJf4hau9.js} +1 -1
- package/dist/client/assets/{shell-layout-D17mMuCF.js → shell-layout-BcsYrOTT.js} +1 -1
- package/dist/client/assets/{skeleton-C-txqNNd.js → skeleton-DLT024S3.js} +1 -1
- package/dist/client/assets/{sso-hmmbmdqG.js → sso-BuTvljxJ.js} +1 -1
- package/dist/client/assets/{store-Lj2GUth4.js → store-Iw0YIysI.js} +1 -1
- package/dist/client/assets/store-registry-Df9fj_hE.js +2 -0
- package/dist/client/assets/{switch-Brhcq0DC.js → switch-ChOgiOZl.js} +1 -1
- package/dist/client/assets/{table-DLzmgIsQ.js → table-B48Xy50A.js} +1 -1
- package/dist/client/assets/{tabs-C5IW3J1n.js → tabs-y647ki3a.js} +1 -1
- package/dist/client/assets/{task-status-BmzVznbV.js → task-status-IiU7o7it.js} +1 -1
- package/dist/client/assets/{textarea-95EjEE1J.js → textarea-CT4UCcWE.js} +1 -1
- package/dist/client/assets/{toggle-group-DHQ9rH2_.js → toggle-group-CgDVnjbj.js} +1 -1
- package/dist/client/assets/{tools-list-BzU5CsfJ.js → tools-list-Dl1EqLq_.js} +1 -1
- package/dist/client/assets/{tooltip-DFWLC8HI.js → tooltip-DZT-1bal.js} +1 -1
- package/dist/client/assets/{types-7ra6QiRz.js → types-DA7k1cs0.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Br4G2Pkq.js → use-ai-providers-Bv-kgplO.js} +1 -1
- package/dist/client/assets/{use-collections-CKusz5eG.js → use-collections-ASqcb463.js} +1 -1
- package/dist/client/assets/{use-connection-Bv5BZ_xw.js → use-connection-Ck4brnCx.js} +1 -1
- package/dist/client/assets/{use-copy-CK5UVkzb.js → use-copy-qtJD_4jj.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CaBr-o8K.js → use-create-virtual-mcp-CTxthd0a.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-eWigQGND.js → use-debounced-autosave-BliXkuEQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BriMHUkB.js → use-decopilot-events-tgKj5crX.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BRkDKb4C.js → use-delete-connection-DM_4FfQI.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cnzq4lxC.js → use-infinite-scroll-De_3UNjO.js} +1 -1
- package/dist/client/assets/{use-list-state-D_lZ7Las.js → use-list-state-SVk88wog.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D2vgr_Sh.js → use-mcp-tools-rNZ6JWxz.js} +1 -1
- package/dist/client/assets/{use-members-Dzj5dzc5.js → use-members-Bk-c46d0.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C33-q43R.js → use-navigate-to-agent-CwcBoswU.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DV3Be7SP.js → use-org-auth-client-Hwc_S6Fw.js} +1 -1
- package/dist/client/assets/{use-org-sso-BqE4d3Cy.js → use-org-sso-Cj1DBVz0.js} +1 -1
- package/dist/client/assets/{use-organization-roles-eC7wUBMu.js → use-organization-roles--8BRYJrg.js} +1 -1
- package/dist/client/assets/{use-organization-settings--hTe5DrU.js → use-organization-settings-gFwljgrZ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C4d-mohe.js → use-registry-connections-Dgb2TDlG.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Bzvn75VV.js → use-status-sounds-Cn3fBsPH.js} +1 -1
- package/dist/client/assets/{use-tasks-EGX2u9Ho.js → use-tasks-DqNLNkkM.js} +1 -1
- package/dist/client/assets/{use-view-mode-DHIMRupW.js → use-view-mode-D9kCRFMC.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B3LT7MVT.js → use-virtual-mcp-BR6mzHHD.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C_BkERX4.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DFnwwxGS.js +1 -0
- package/dist/client/assets/{user-Jrd4wxvT.js → user-BVu9y1Y7.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BovL7cZv.js → view-mode-toggle-ZI-MN1pO.js} +1 -1
- package/dist/client/assets/{workflow-1BB3erFr.js → workflow-D5sDlQLV.js} +1 -1
- package/dist/client/assets/workflow-detail-BKMBH1Ij.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +51 -39
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/{ansi-regex → ansi-styles}/package.json +13 -20
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/license +9 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/pg/LICENSE +21 -0
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/server.js +50 -38
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CLVIn9On.js +0 -1
- package/dist/client/assets/index-Cq41MHaG.js +0 -1
- package/dist/client/assets/registry-DLerPaT8.js +0 -2
- package/dist/client/assets/store-registry-DfccLKYW.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DMvdj92C.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DvuEMs0T.js +0 -1
- package/dist/client/assets/workflow-detail-S6LXEKGk.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- /package/dist/server/node_modules/{ansi-regex → ansi-styles}/license +0 -0
- /package/dist/server/node_modules/{onetime → environment}/license +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Check if the code is running in a web browser environment.
|
|
3
|
+
*/
|
|
4
|
+
export const isBrowser: boolean;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
Check if the code is running in a [Node.js](https://nodejs.org) environment.
|
|
8
|
+
*/
|
|
9
|
+
export const isNode: boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
Check if the code is running in a [Bun](https://bun.sh) environment.
|
|
13
|
+
*/
|
|
14
|
+
export const isBun: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
Check if the code is running in a Deno environment.
|
|
18
|
+
*/
|
|
19
|
+
export const isDeno: boolean;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
Check if the code is running in an Electron environment.
|
|
23
|
+
*/
|
|
24
|
+
export const isElectron: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
|
|
28
|
+
*/
|
|
29
|
+
export const isJsDom: boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
|
|
33
|
+
*/
|
|
34
|
+
export const isWebWorker: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
|
|
38
|
+
*/
|
|
39
|
+
export const isDedicatedWorker: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
|
|
43
|
+
*/
|
|
44
|
+
export const isSharedWorker: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
|
|
48
|
+
*/
|
|
49
|
+
export const isServiceWorker: boolean;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
Check if the code is running on macOS.
|
|
53
|
+
*/
|
|
54
|
+
export const isMacOs: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
Check if the code is running on Windows.
|
|
58
|
+
*/
|
|
59
|
+
export const isWindows: boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
Check if the code is running on Linux.
|
|
63
|
+
*/
|
|
64
|
+
export const isLinux: boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
Check if the code is running on iOS.
|
|
68
|
+
*/
|
|
69
|
+
export const isIos: boolean;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
Check if the code is running on Android.
|
|
73
|
+
*/
|
|
74
|
+
export const isAndroid: boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* globals WorkerGlobalScope, DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, ServiceWorkerGlobalScope */
|
|
2
|
+
|
|
3
|
+
export const isBrowser = globalThis.window?.document !== undefined;
|
|
4
|
+
|
|
5
|
+
export const isNode = globalThis.process?.versions?.node !== undefined;
|
|
6
|
+
|
|
7
|
+
export const isBun = globalThis.process?.versions?.bun !== undefined;
|
|
8
|
+
|
|
9
|
+
export const isDeno = globalThis.Deno?.version?.deno !== undefined;
|
|
10
|
+
|
|
11
|
+
export const isElectron = globalThis.process?.versions?.electron !== undefined;
|
|
12
|
+
|
|
13
|
+
export const isJsDom = globalThis.navigator?.userAgent?.includes('jsdom') === true;
|
|
14
|
+
|
|
15
|
+
export const isWebWorker = typeof WorkerGlobalScope !== 'undefined' && globalThis instanceof WorkerGlobalScope;
|
|
16
|
+
|
|
17
|
+
export const isDedicatedWorker = typeof DedicatedWorkerGlobalScope !== 'undefined' && globalThis instanceof DedicatedWorkerGlobalScope;
|
|
18
|
+
|
|
19
|
+
export const isSharedWorker = typeof SharedWorkerGlobalScope !== 'undefined' && globalThis instanceof SharedWorkerGlobalScope;
|
|
20
|
+
|
|
21
|
+
export const isServiceWorker = typeof ServiceWorkerGlobalScope !== 'undefined' && globalThis instanceof ServiceWorkerGlobalScope;
|
|
22
|
+
|
|
23
|
+
// Note: I'm intentionally not DRYing up the other variables to keep them "lazy".
|
|
24
|
+
const platform = globalThis.navigator?.userAgentData?.platform;
|
|
25
|
+
|
|
26
|
+
export const isMacOs = platform === 'macOS'
|
|
27
|
+
|| globalThis.navigator?.platform === 'MacIntel' // Even on Apple silicon Macs.
|
|
28
|
+
|| globalThis.navigator?.userAgent?.includes(' Mac ') === true
|
|
29
|
+
|| globalThis.process?.platform === 'darwin';
|
|
30
|
+
|
|
31
|
+
export const isWindows = platform === 'Windows'
|
|
32
|
+
|| globalThis.navigator?.platform === 'Win32'
|
|
33
|
+
|| globalThis.process?.platform === 'win32';
|
|
34
|
+
|
|
35
|
+
export const isLinux = platform === 'Linux'
|
|
36
|
+
|| globalThis.navigator?.platform?.startsWith('Linux') === true
|
|
37
|
+
|| globalThis.navigator?.userAgent?.includes(' Linux ') === true
|
|
38
|
+
|| globalThis.process?.platform === 'linux';
|
|
39
|
+
|
|
40
|
+
export const isIos = platform === 'iOS'
|
|
41
|
+
|| (globalThis.navigator?.platform === 'MacIntel' && globalThis.navigator?.maxTouchPoints > 1)
|
|
42
|
+
|| /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
|
|
43
|
+
|
|
44
|
+
export const isAndroid = platform === 'Android'
|
|
45
|
+
|| globalThis.navigator?.platform === 'Android'
|
|
46
|
+
|| globalThis.navigator?.userAgent?.includes(' Android ') === true
|
|
47
|
+
|| globalThis.process?.platform === 'android';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "environment",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/environment",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava && tsc index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"runtime",
|
|
31
|
+
"environment",
|
|
32
|
+
"env",
|
|
33
|
+
"execution",
|
|
34
|
+
"engine",
|
|
35
|
+
"platform",
|
|
36
|
+
"context",
|
|
37
|
+
"js",
|
|
38
|
+
"javascript",
|
|
39
|
+
"is",
|
|
40
|
+
"check",
|
|
41
|
+
"checking",
|
|
42
|
+
"detect",
|
|
43
|
+
"detection",
|
|
44
|
+
"browser",
|
|
45
|
+
"node",
|
|
46
|
+
"bun",
|
|
47
|
+
"deno",
|
|
48
|
+
"electron",
|
|
49
|
+
"jsdom",
|
|
50
|
+
"webworker",
|
|
51
|
+
"worker",
|
|
52
|
+
"serviceworker",
|
|
53
|
+
"macos",
|
|
54
|
+
"ios",
|
|
55
|
+
"iphone",
|
|
56
|
+
"ipad",
|
|
57
|
+
"windows",
|
|
58
|
+
"linux",
|
|
59
|
+
"android",
|
|
60
|
+
"os",
|
|
61
|
+
"operating",
|
|
62
|
+
"system"
|
|
63
|
+
],
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"ava": "^6.1.3",
|
|
66
|
+
"typescript": "^5.4.5",
|
|
67
|
+
"xo": "^0.58.0"
|
|
68
|
+
},
|
|
69
|
+
"xo": {
|
|
70
|
+
"rules": {
|
|
71
|
+
"n/prefer-global/process": "off"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# environment
|
|
2
|
+
|
|
3
|
+
> Check which JavaScript environment your code is running in at runtime
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install environment
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import {isBrowser, isNode} from 'environment';
|
|
15
|
+
|
|
16
|
+
if (isBrowser) {
|
|
17
|
+
console.log('Running in a browser!');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (isNode) {
|
|
21
|
+
console.log('Running in Node.js!');
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
> [!NOTE]
|
|
26
|
+
> Runtime checks should be used sparingly. Prefer [conditional package exports](https://nodejs.org/api/packages.html#conditional-exports) and [imports](https://nodejs.org/api/packages.html#subpath-imports) whenever possible.
|
|
27
|
+
|
|
28
|
+
## API
|
|
29
|
+
|
|
30
|
+
### `isBrowser`
|
|
31
|
+
|
|
32
|
+
Check if the code is running in a web browser environment.
|
|
33
|
+
|
|
34
|
+
### `isNode`
|
|
35
|
+
|
|
36
|
+
Check if the code is running in a [Node.js](https://nodejs.org) environment.
|
|
37
|
+
|
|
38
|
+
### `isBun`
|
|
39
|
+
|
|
40
|
+
Check if the code is running in a [Bun](https://bun.sh) environment.
|
|
41
|
+
|
|
42
|
+
### `isDeno`
|
|
43
|
+
|
|
44
|
+
Check if the code is running in a [Deno](https://deno.com) environment.
|
|
45
|
+
|
|
46
|
+
### `isElectron`
|
|
47
|
+
|
|
48
|
+
Check if the code is running in an [Electron](https://www.electronjs.org) environment.
|
|
49
|
+
|
|
50
|
+
### `isJsDom`
|
|
51
|
+
|
|
52
|
+
Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
|
|
53
|
+
|
|
54
|
+
### `isWebWorker`
|
|
55
|
+
|
|
56
|
+
Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
|
|
57
|
+
|
|
58
|
+
### `isDedicatedWorker`
|
|
59
|
+
|
|
60
|
+
Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
|
|
61
|
+
|
|
62
|
+
### `isSharedWorker`
|
|
63
|
+
|
|
64
|
+
Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
|
|
65
|
+
|
|
66
|
+
### `isServiceWorker`
|
|
67
|
+
|
|
68
|
+
Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
|
|
69
|
+
|
|
70
|
+
### `isMacOs`
|
|
71
|
+
|
|
72
|
+
Check if the code is running on macOS.
|
|
73
|
+
|
|
74
|
+
### `isWindows`
|
|
75
|
+
|
|
76
|
+
Check if the code is running on Windows.
|
|
77
|
+
|
|
78
|
+
### `isLinux`
|
|
79
|
+
|
|
80
|
+
Check if the code is running on Linux.
|
|
81
|
+
|
|
82
|
+
### `isIos`
|
|
83
|
+
|
|
84
|
+
Check if the code is running on iOS.
|
|
85
|
+
|
|
86
|
+
### `isAndroid`
|
|
87
|
+
|
|
88
|
+
Check if the code is running on Android.
|
|
89
|
+
|
|
90
|
+
## Related
|
|
91
|
+
|
|
92
|
+
- [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a CI environment
|
|
93
|
+
- [is64bit](https://github.com/sindresorhus/is64bit) - Check if the operating system CPU architecture is 64-bit or 32-bit
|
|
94
|
+
- [is](https://github.com/sindresorhus/is) - Type check values
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Escape RegExp special characters.
|
|
3
|
+
|
|
4
|
+
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
5
|
+
|
|
6
|
+
@example
|
|
7
|
+
```
|
|
8
|
+
import escapeStringRegexp = require('escape-string-regexp');
|
|
9
|
+
|
|
10
|
+
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
11
|
+
//=> 'How much \\$ for a 🦄\\?'
|
|
12
|
+
|
|
13
|
+
new RegExp(escapedString);
|
|
14
|
+
```
|
|
15
|
+
*/
|
|
16
|
+
declare const escapeStringRegexp: (string: string) => string;
|
|
17
|
+
|
|
18
|
+
export = escapeStringRegexp;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "escape-string-regexp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Escape RegExp special characters",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/escape-string-regexp",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"maintainers": [
|
|
13
|
+
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
+
"Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=8"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "xo && ava && tsd"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js",
|
|
24
|
+
"index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"escape",
|
|
28
|
+
"regex",
|
|
29
|
+
"regexp",
|
|
30
|
+
"re",
|
|
31
|
+
"regular",
|
|
32
|
+
"expression",
|
|
33
|
+
"string",
|
|
34
|
+
"str",
|
|
35
|
+
"special",
|
|
36
|
+
"characters"
|
|
37
|
+
],
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"ava": "^1.4.1",
|
|
40
|
+
"tsd": "^0.7.2",
|
|
41
|
+
"xo": "^0.24.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp)
|
|
2
|
+
|
|
3
|
+
> Escape RegExp special characters
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install escape-string-regexp
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const escapeStringRegexp = require('escape-string-regexp');
|
|
17
|
+
|
|
18
|
+
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
19
|
+
//=> 'How much \\$ for a 🦄\\?'
|
|
20
|
+
|
|
21
|
+
new RegExp(escapedString);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
|
|
2
|
+
|
|
3
|
+
export type Options = {
|
|
4
|
+
/**
|
|
5
|
+
Whether to treat an `'ambiguous'` character as wide.
|
|
6
|
+
|
|
7
|
+
@default true
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```
|
|
11
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
12
|
+
|
|
13
|
+
const codePoint = '⛣'.codePointAt(0);
|
|
14
|
+
|
|
15
|
+
console.log(eastAsianWidth(codePoint));
|
|
16
|
+
//=> 1
|
|
17
|
+
|
|
18
|
+
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
19
|
+
//=> 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
|
|
23
|
+
> - http://www.unicode.org/reports/tr11/
|
|
24
|
+
*/
|
|
25
|
+
readonly ambiguousAsWide?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Returns the width as a number for the given code point.
|
|
30
|
+
|
|
31
|
+
@param codePoint - A Unicode code point.
|
|
32
|
+
|
|
33
|
+
@example
|
|
34
|
+
```
|
|
35
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
36
|
+
|
|
37
|
+
const codePoint = '字'.codePointAt(0);
|
|
38
|
+
|
|
39
|
+
console.log(eastAsianWidth(codePoint));
|
|
40
|
+
//=> 2
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Returns the type of “East Asian Width” for the given code point.
|
|
47
|
+
|
|
48
|
+
@param codePoint - A Unicode code point.
|
|
49
|
+
|
|
50
|
+
@example
|
|
51
|
+
```
|
|
52
|
+
import {eastAsianWidthType} from 'get-east-asian-width';
|
|
53
|
+
|
|
54
|
+
const codePoint = '字'.codePointAt(0);
|
|
55
|
+
|
|
56
|
+
console.log(eastAsianWidthType(codePoint));
|
|
57
|
+
//=> 'wide'
|
|
58
|
+
```
|
|
59
|
+
*/
|
|
60
|
+
export function eastAsianWidthType(codePoint: number): WidthType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
|
|
2
|
+
|
|
3
|
+
function validate(codePoint) {
|
|
4
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
5
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function eastAsianWidthType(codePoint) {
|
|
10
|
+
validate(codePoint);
|
|
11
|
+
|
|
12
|
+
return getCategory(codePoint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
16
|
+
validate(codePoint);
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
isFullWidth(codePoint)
|
|
20
|
+
|| isWide(codePoint)
|
|
21
|
+
|| (ambiguousAsWide && isAmbiguous(codePoint))
|
|
22
|
+
) {
|
|
23
|
+
return 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
|
|
30
|
+
export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated by scripts/build.js
|
|
2
|
+
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
const ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
5
|
+
|
|
6
|
+
// prettier-ignore
|
|
7
|
+
const fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
8
|
+
|
|
9
|
+
// prettier-ignore
|
|
10
|
+
const halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
11
|
+
|
|
12
|
+
// prettier-ignore
|
|
13
|
+
const narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
14
|
+
|
|
15
|
+
// prettier-ignore
|
|
16
|
+
const wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
17
|
+
|
|
18
|
+
export {ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ambiguousRanges,
|
|
3
|
+
fullwidthRanges,
|
|
4
|
+
halfwidthRanges,
|
|
5
|
+
narrowRanges,
|
|
6
|
+
wideRanges,
|
|
7
|
+
} from './lookup-data.js';
|
|
8
|
+
import {isInRange} from './utilities.js';
|
|
9
|
+
|
|
10
|
+
const minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
11
|
+
const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
12
|
+
const minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
13
|
+
const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
14
|
+
const minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
15
|
+
const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
16
|
+
const minimumNarrowCodePoint = narrowRanges[0];
|
|
17
|
+
const maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
18
|
+
const minimumWideCodePoint = wideRanges[0];
|
|
19
|
+
const maximumWideCodePoint = wideRanges.at(-1);
|
|
20
|
+
|
|
21
|
+
const commonCjkCodePoint = 0x4E_00;
|
|
22
|
+
const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
23
|
+
|
|
24
|
+
// Use a hot-path range so common `isWide` calls can skip binary search.
|
|
25
|
+
// The range containing U+4E00 covers common CJK ideographs;
|
|
26
|
+
// fallback to the largest range for resilience to Unicode table changes.
|
|
27
|
+
function findWideFastPathRange(ranges) {
|
|
28
|
+
let fastPathStart = ranges[0];
|
|
29
|
+
let fastPathEnd = ranges[1];
|
|
30
|
+
|
|
31
|
+
for (let index = 0; index < ranges.length; index += 2) {
|
|
32
|
+
const start = ranges[index];
|
|
33
|
+
const end = ranges[index + 1];
|
|
34
|
+
|
|
35
|
+
if (
|
|
36
|
+
commonCjkCodePoint >= start
|
|
37
|
+
&& commonCjkCodePoint <= end
|
|
38
|
+
) {
|
|
39
|
+
return [start, end];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if ((end - start) > (fastPathEnd - fastPathStart)) {
|
|
43
|
+
fastPathStart = start;
|
|
44
|
+
fastPathEnd = end;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return [fastPathStart, fastPathEnd];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const isAmbiguous = codePoint => {
|
|
52
|
+
if (
|
|
53
|
+
codePoint < minimumAmbiguousCodePoint
|
|
54
|
+
|| codePoint > maximumAmbiguousCodePoint
|
|
55
|
+
) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const isFullWidth = codePoint => {
|
|
63
|
+
if (
|
|
64
|
+
codePoint < minimumFullWidthCodePoint
|
|
65
|
+
|| codePoint > maximumFullWidthCodePoint
|
|
66
|
+
) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const isHalfWidth = codePoint => {
|
|
74
|
+
if (
|
|
75
|
+
codePoint < minimumHalfWidthCodePoint
|
|
76
|
+
|| codePoint > maximumHalfWidthCodePoint
|
|
77
|
+
) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return isInRange(halfwidthRanges, codePoint);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const isNarrow = codePoint => {
|
|
85
|
+
if (
|
|
86
|
+
codePoint < minimumNarrowCodePoint
|
|
87
|
+
|| codePoint > maximumNarrowCodePoint
|
|
88
|
+
) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return isInRange(narrowRanges, codePoint);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const isWide = codePoint => {
|
|
96
|
+
if (
|
|
97
|
+
codePoint >= wideFastPathStart
|
|
98
|
+
&& codePoint <= wideFastPathEnd
|
|
99
|
+
) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (
|
|
104
|
+
codePoint < minimumWideCodePoint
|
|
105
|
+
|| codePoint > maximumWideCodePoint
|
|
106
|
+
) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return isInRange(wideRanges, codePoint);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export function getCategory(codePoint) {
|
|
114
|
+
if (isAmbiguous(codePoint)) {
|
|
115
|
+
return 'ambiguous';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (isFullWidth(codePoint)) {
|
|
119
|
+
return 'fullwidth';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (isHalfWidth(codePoint)) {
|
|
123
|
+
return 'halfwidth';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (isNarrow(codePoint)) {
|
|
127
|
+
return 'narrow';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (isWide(codePoint)) {
|
|
131
|
+
return 'wide';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return 'neutral';
|
|
135
|
+
}
|