decocms 2.304.15 → 2.305.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CbUYZGF-.js → AlertCircle-B65qDYSH.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DHj5-FLY.js → ArrowNarrowLeft-fzTyPWny.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BK_iYZ-J.js → ArrowUpRight-BcX-Z0Ku.js} +1 -1
- package/dist/client/assets/Check-a0FPGBtH.js +1 -0
- package/dist/client/assets/{CheckCircle-D9qlmIve.js → CheckCircle-B8cGzYri.js} +1 -1
- package/dist/client/assets/ChevronDown-Z3xhSsnT.js +1 -0
- package/dist/client/assets/{ChevronRight-BIm0-OSp.js → ChevronRight-xkl8cwkd.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClqSoLtD.js → ChevronUp-Cy7lkJW1.js} +1 -1
- package/dist/client/assets/{Container-BCDxdJoG.js → Container-cyfm5-Pb.js} +1 -1
- package/dist/client/assets/{DotsVertical-DEE8M0V4.js → DotsVertical-Bx7sSuAL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DM7IwrPj.js → LinkExternal01-0g6HjjkD.js} +1 -1
- package/dist/client/assets/{Lock01-BmjkKSvK.js → Lock01-BzMXxHmW.js} +1 -1
- package/dist/client/assets/{Palette-BrJL0UcN.js → Palette-CwWccG-f.js} +1 -1
- package/dist/client/assets/{Play-DSYx2GJ2.js → Play-C-AiMK-Y.js} +1 -1
- package/dist/client/assets/{Plus-BrBimbff.js → Plus-DGrvw6bs.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Cr84gVY8.js → RefreshCcw01-Biyt7Dy2.js} +1 -1
- package/dist/client/assets/{SearchMd-IP-R-mtT.js → SearchMd-OHnYTa8U.js} +1 -1
- package/dist/client/assets/{Settings02-BOckjEVU.js → Settings02-DO2nBrax.js} +1 -1
- package/dist/client/assets/{Shield01-CJggUHAQ.js → Shield01-DQa1zKSX.js} +1 -1
- package/dist/client/assets/Star01-BoJYsaDm.js +1 -0
- package/dist/client/assets/{Sun-B7BWJEHb.js → Sun-DA-QmugE.js} +1 -1
- package/dist/client/assets/{Tool01-D1Rvo01i.js → Tool01-Cq1N-niG.js} +1 -1
- package/dist/client/assets/{Trash01-DaGrAtTq.js → Trash01-PRSN3sYk.js} +1 -1
- package/dist/client/assets/{User01-DmtseI1g.js → User01-DwPCZdnr.js} +1 -1
- package/dist/client/assets/{Users03-DH9QAbco.js → Users03-CB3lBGeX.js} +1 -1
- package/dist/client/assets/{X-viKat0oa.js → X-dZLz-ulr.js} +1 -1
- package/dist/client/assets/{XCircle-DZEMwZj2.js → XCircle-yJD2sr2j.js} +1 -1
- package/dist/client/assets/{XClose-DY7O9VST.js → XClose-Ci4dmV-Y.js} +1 -1
- package/dist/client/assets/{Zap-BMzMPNv3.js → Zap-CYJdRXq9.js} +1 -1
- package/dist/client/assets/{ZapSquare-BDbWe-zU.js → ZapSquare-M3u7o8sc.js} +1 -1
- package/dist/client/assets/{accordion-YgNI8iqn.js → accordion-DtmZjwNB.js} +1 -1
- package/dist/client/assets/agent-icon-D_KgWkiu.js +1 -0
- package/dist/client/assets/agents-list-yD_xsHNb.js +1 -0
- package/dist/client/assets/ai-providers-BHQQzoPJ.js +1 -0
- package/dist/client/assets/{alert-dialog-BvuFarFf.js → alert-dialog-Dog8t-xg.js} +1 -1
- package/dist/client/assets/{auth-catchall-DQeYnh5P.js → auth-catchall-B_yXTiaF.js} +1 -1
- package/dist/client/assets/automation-list-row-BtOPPlS3.js +1 -0
- package/dist/client/assets/automations-CkfQxJNN.js +1 -0
- package/dist/client/assets/{avatar-C4FRugJb.js → avatar-BebTr4u1.js} +1 -1
- package/dist/client/assets/{badge-_ZGDO29b.js → badge-BWEc0v7O.js} +1 -1
- package/dist/client/assets/brand-context-LmKpYr08.js +1 -0
- package/dist/client/assets/{card-oSxwoJvZ.js → card-mlKWkDqb.js} +1 -1
- package/dist/client/assets/{chat-context-C4Hx_rZK.js → chat-context-BmN5ppM9.js} +1 -1
- package/dist/client/assets/checkbox-55NGf7aS.js +1 -0
- package/dist/client/assets/collection-detail-BaNeXOGS.js +1 -0
- package/dist/client/assets/collection-display-button-DnajjLb7.js +1 -0
- package/dist/client/assets/{collection-search-u94VKjvs.js → collection-search-Bsl0avLq.js} +1 -1
- package/dist/client/assets/{collection-search-D_DqZCmL.js → collection-search-CjDGYe9v.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-LzV9CSI7.js → collection-table-wrapper-D5rnMkP_.js} +1 -1
- package/dist/client/assets/{collection-tabs-DW1xYGdq.js → collection-tabs-DgQ6F5X6.js} +1 -1
- package/dist/client/assets/{collections-Cn7VbUFT.js → collections-DAavnhku.js} +1 -1
- package/dist/client/assets/{command-CgMn1LbK.js → command-CN1iJVAp.js} +1 -1
- package/dist/client/assets/{connection-card-BPUe3B60.js → connection-card-D5opGNgQ.js} +1 -1
- package/dist/client/assets/connection-detail-DWinew7y.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CUlzSClK.js → connection-form-helpers-CXHmM_yU.js} +1 -1
- package/dist/client/assets/connections-yUVM9Wts.js +1 -0
- package/dist/client/assets/{constants-CVDNjJTw.js → constants-BNhCk86i.js} +1 -1
- package/dist/client/assets/{constants-CfwGLQ49.js → constants-Ccnt3rmd.js} +2 -2
- package/dist/client/assets/{dialog-CoECADf1.js → dialog-_YlOXdcS.js} +1 -1
- package/dist/client/assets/{domain-settings-D6RV8b16.js → domain-settings-DLCCNpqs.js} +1 -1
- package/dist/client/assets/{drawer-DTk8g2vK.js → drawer-GKYdquRR.js} +1 -1
- package/dist/client/assets/dropdown-menu-BXZVht4Z.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-DCoYGhHP.js → dynamic-plugin-layout-ieJ5SRhD.js} +1 -1
- package/dist/client/assets/{empty-state-DoKR-jUX.js → empty-state-CGCgWL8i.js} +1 -1
- package/dist/client/assets/{empty-state-Be0X9mox.js → empty-state-D1x6Uzf-.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CuIeY90s.js → extract-connection-data-BTJzhkiq.js} +1 -1
- package/dist/client/assets/{features-38ZozsmE.js → features-Bmw2Kywv.js} +1 -1
- package/dist/client/assets/{form-BC40Nvzi.js → form-D4Q00YSx.js} +1 -1
- package/dist/client/assets/general-yzH2a6AI.js +1 -0
- package/dist/client/assets/{index-B0TkoX1b.js → index-7DFELu7_.js} +1 -1
- package/dist/client/assets/{index-CbBINyFK.js → index-BBbwvkmx.js} +1 -1
- package/dist/client/assets/{index-DXHNyf1g.css → index-B_4-KoG_.css} +1 -1
- package/dist/client/assets/index-C1kdSX8Z.js +182 -0
- package/dist/client/assets/index-CHcMm4yb.js +1 -0
- package/dist/client/assets/index-CLv-BJNN.js +1 -0
- package/dist/client/assets/{index-CFyIm5CH.js → index-CUuCKerO.js} +1 -1
- package/dist/client/assets/{index-DjgN9qrV.js → index-Cf-Qb03y.js} +1 -1
- package/dist/client/assets/{index-BBrIielu.js → index-DgtpEOsQ.js} +1 -1
- package/dist/client/assets/{index-_TsJo9Ju.js → index-DsOYCD-H.js} +5 -5
- package/dist/client/assets/index-DsncOedH.js +1 -0
- package/dist/client/assets/{index-CvarGBFr.js → index-I3M58vcg.js} +1 -1
- package/dist/client/assets/{index-Bcf94soS.js → index-ILTPQsH4.js} +1 -1
- package/dist/client/assets/{index-Dl2t23Jt.js → index-Ux_PrmKm.js} +2 -2
- package/dist/client/assets/{index-M_qlHNIS.js → index-Yaw_OxhP.js} +1 -1
- package/dist/client/assets/index-tLkyDiOo.js +1 -0
- package/dist/client/assets/{index-nmtbWm5V.js → index-tngOtpnj.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-cqTNhL_G.js → infiniteQueryObserver-C_u8IqUR.js} +1 -1
- package/dist/client/assets/{input-CluxDyoT.js → input-B868_ejo.js} +1 -1
- package/dist/client/assets/{integration-icon-BipCD_m-.js → integration-icon-Ov0IbIMU.js} +1 -1
- package/dist/client/assets/{label-CHKFYnQo.js → label-Cg-2ys6X.js} +1 -1
- package/dist/client/assets/{layout-CV5Wi0Ex.js → layout-DkCp6X2C.js} +1 -1
- package/dist/client/assets/lean-canvas-recruit-modal-BNON-9yt.js +139 -0
- package/dist/client/assets/{login-DdkQloeb.js → login-E_UoTHOE.js} +1 -1
- package/dist/client/assets/{members-BgSG3QM0.js → members-CC6bIoZk.js} +2 -2
- package/dist/client/assets/{monaco-editor-BfaMmupR.js → monaco-editor-DfIGvq7v.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C8V4hqSK.js → monitoring-stats-row-Chavd_5e.js} +1 -1
- package/dist/client/assets/{oauth-callback-BaZqye0L.js → oauth-callback-BQObPuY8.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-oz8YNRBq.js → oauth-callback-ai-provider-B_SVXSnf.js} +1 -1
- package/dist/client/assets/{onboarding-WJDxBlF8.js → onboarding-ChmBqh-q.js} +1 -1
- package/dist/client/assets/{org-layout-Ax0KGzlT.js → org-layout-BWsgHF7L.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-C5mxyCcm.js → org-plugin-layout-D0N77j4g.js} +1 -1
- package/dist/client/assets/{pair-JxQa_xAh.js → pair-DlIdkD7u.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C_q24wh6.js → plugin-empty-state-B-u16uuv.js} +1 -1
- package/dist/client/assets/plugin-header-Dt0O0h26.js +1 -0
- package/dist/client/assets/{plugin-layout-NPftDH-k.js → plugin-layout-DK8gsZYL.js} +1 -1
- package/dist/client/assets/{popover-vU5pf5HQ.js → popover-B3f914lR.js} +1 -1
- package/dist/client/assets/profile-pLHlebiO.js +1 -0
- package/dist/client/assets/project-app-view-D-yBQWHo.js +1 -0
- package/dist/client/assets/registry-BcZJCcyc.js +2 -0
- package/dist/client/assets/{registry-layout-D-sbU1qd.js → registry-layout-0cxsWXwz.js} +2 -2
- package/dist/client/assets/{required-auth-layout-BYto5m3H.js → required-auth-layout-DLsc1xkw.js} +1 -1
- package/dist/client/assets/{reset-password-DL944kGr.js → reset-password-BS6m_G36.js} +1 -1
- package/dist/client/assets/roles-B_ljw5IA.js +1 -0
- package/dist/client/assets/{scroll-area-D4F3EM5Z.js → scroll-area-_bumfcjA.js} +1 -1
- package/dist/client/assets/{search-input-CslwpPEh.js → search-input-Bhq8p539.js} +1 -1
- package/dist/client/assets/select-model-D3fobWv8.js +4 -0
- package/dist/client/assets/select-slwRPncS.js +1 -0
- package/dist/client/assets/settings-layout-DRkmNgVc.js +1 -0
- package/dist/client/assets/{settings-section-qcMAXuoQ.js → settings-section-CIXHBPOa.js} +1 -1
- package/dist/client/assets/{shell-layout-CzPr_0c2.js → shell-layout-Drnm9mfO.js} +1 -1
- package/dist/client/assets/{skeleton-eOgaLAHa.js → skeleton-ChUR9knm.js} +1 -1
- package/dist/client/assets/{sso-Dozga0JK.js → sso--URfWQeo.js} +1 -1
- package/dist/client/assets/{store-BA7fLJKJ.js → store-htVNKvqn.js} +1 -1
- package/dist/client/assets/store-registry-CaCyYvRn.js +2 -0
- package/dist/client/assets/{switch-W_Nrj6rK.js → switch-Cf5BCxU5.js} +1 -1
- package/dist/client/assets/{table-rVVQNhet.js → table-CBFs2U43.js} +1 -1
- package/dist/client/assets/{tabs-6T1N4Szc.js → tabs-Ctrs4bAF.js} +1 -1
- package/dist/client/assets/{task-status-DsmpMdW6.js → task-status-DUVd5pLA.js} +1 -1
- package/dist/client/assets/{textarea-Cld3tG5R.js → textarea-BbtfG9Ru.js} +1 -1
- package/dist/client/assets/{toggle-group-COcCk4lG.js → toggle-group-DCLBHyZD.js} +1 -1
- package/dist/client/assets/{tools-list-COvHAWAZ.js → tools-list-DGhR4Qyt.js} +1 -1
- package/dist/client/assets/{tooltip-CxizQODk.js → tooltip-BOsmkVZD.js} +1 -1
- package/dist/client/assets/{types-CvYZZZog.js → types-BSAKF0wC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Bt2yRX0n.js → use-ai-providers-aNlhpnwf.js} +1 -1
- package/dist/client/assets/{use-collections-CwD8DZNY.js → use-collections-CqB4T92N.js} +1 -1
- package/dist/client/assets/{use-connection-pSv7eY2y.js → use-connection-C_n04i0m.js} +1 -1
- package/dist/client/assets/{use-copy-CHAuyAMC.js → use-copy-B8gaSETz.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-1DfbQRRy.js → use-create-virtual-mcp-DvxMGqTu.js} +1 -1
- package/dist/client/assets/use-debounced-autosave-BAy1X_D8.js +1 -0
- package/dist/client/assets/{use-decopilot-events-CXVUS53e.js → use-decopilot-events-BA4osLiM.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BNRuOYcY.js → use-delete-connection-C4xdydWE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ca5zEcXn.js → use-infinite-scroll-CW0QmsIe.js} +1 -1
- package/dist/client/assets/{use-list-state-Jttwyvy3.js → use-list-state-Dm-Ww-Vo.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BdYIFx9S.js → use-mcp-tools-uazou5KQ.js} +1 -1
- package/dist/client/assets/{use-members-s6X83kyp.js → use-members-BM40IfsI.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Tn-rhKXX.js → use-navigate-to-agent-kI9r54wH.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CS0Acn4M.js → use-org-auth-client-DCENSdBc.js} +1 -1
- package/dist/client/assets/{use-org-sso-CPzDtjox.js → use-org-sso-BIqIcUQM.js} +1 -1
- package/dist/client/assets/{use-organization-roles-TW9At1F2.js → use-organization-roles-DAO7QdGg.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dak2xww8.js → use-organization-settings-C-NHhw4n.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CMFnR2M3.js → use-registry-connections-B1oBXsUK.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D0-nlwJm.js → use-status-sounds-DEn9-reM.js} +1 -1
- package/dist/client/assets/{use-tasks-yxuEm5KK.js → use-tasks-CJ3vNKME.js} +1 -1
- package/dist/client/assets/{use-view-mode-w75x4zz0.js → use-view-mode-DTFti-L5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BHEEZv3B.js → use-virtual-mcp-Cd4gN6tQ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BMlr4G1E.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BNLcV52p.js +1 -0
- package/dist/client/assets/{user-QrqGbmQG.js → user-BirTYLn0.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C9HAxT_f.js → view-mode-toggle-_LNgXbfe.js} +1 -1
- package/dist/client/assets/workflow-CE9nGfJB.js +1 -0
- package/dist/client/assets/workflow-detail-hgfq2rMH.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +24 -25
- 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-styles/package.json +54 -0
- 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/license +9 -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/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/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -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/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -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/server.js +23 -24
- package/package.json +1 -1
- package/dist/client/assets/ChevronDown-tb8ftSUO.js +0 -1
- package/dist/client/assets/Star01-PFA-ZRDO.js +0 -1
- package/dist/client/assets/agent-icon-BXkkrCT3.js +0 -1
- package/dist/client/assets/agents-list-pk00bfJc.js +0 -1
- package/dist/client/assets/ai-providers-Dveb48ZT.js +0 -1
- package/dist/client/assets/automation-list-row-Uxaz0oZ0.js +0 -1
- package/dist/client/assets/automations-D7r6frZo.js +0 -1
- package/dist/client/assets/brand-context-5BxhNz9E.js +0 -1
- package/dist/client/assets/checkbox-CzxaEVzA.js +0 -1
- package/dist/client/assets/collection-detail-Be4vkD6s.js +0 -1
- package/dist/client/assets/collection-display-button-CPI0oCFf.js +0 -1
- package/dist/client/assets/connection-detail-CPlnEGaw.js +0 -1
- package/dist/client/assets/connections-BhKrBMUX.js +0 -1
- package/dist/client/assets/dropdown-menu-C6XDnng5.js +0 -1
- package/dist/client/assets/general-CvDecDeA.js +0 -1
- package/dist/client/assets/index-B1-8qqRf.js +0 -1
- package/dist/client/assets/index-BycfnvwM.js +0 -1
- package/dist/client/assets/index-CwBiuTbX.js +0 -189
- package/dist/client/assets/index-DHF2V7ZS.js +0 -1
- package/dist/client/assets/index-DQfkXdA9.js +0 -1
- package/dist/client/assets/lean-canvas-recruit-modal-CnBIlbd0.js +0 -116
- package/dist/client/assets/plugin-header-CBh0Saol.js +0 -1
- package/dist/client/assets/profile-CW9gorWX.js +0 -1
- package/dist/client/assets/project-app-view-DZI64J4I.js +0 -1
- package/dist/client/assets/registry-Q3WKF7CA.js +0 -2
- package/dist/client/assets/roles-CJua0nhs.js +0 -1
- package/dist/client/assets/select-C0JTp_6a.js +0 -1
- package/dist/client/assets/select-model-D0i0wiFX.js +0 -4
- package/dist/client/assets/settings-layout-CFCdg7G4.js +0 -1
- package/dist/client/assets/store-registry-D0a7tFCj.js +0 -2
- package/dist/client/assets/useInfiniteQuery-3jN4yA7O.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CEYJOeyf.js +0 -1
- package/dist/client/assets/workflow-D70YjEfw.js +0 -1
- package/dist/client/assets/workflow-detail-1NvP9qC0.js +0 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
- /package/dist/server/node_modules/{get-east-asian-width → ansi-styles}/license +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
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;
|
|
@@ -1,30 +0,0 @@
|
|
|
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';
|
|
@@ -1,18 +0,0 @@
|
|
|
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};
|
|
@@ -1,135 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "get-east-asian-width",
|
|
3
|
-
"version": "1.5.0",
|
|
4
|
-
"description": "Determine the East Asian Width of a Unicode character",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/get-east-asian-width",
|
|
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
|
-
"build": "node scripts/build.js",
|
|
25
|
-
"prepublish": "npm run build"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"index.js",
|
|
29
|
-
"index.d.ts",
|
|
30
|
-
"lookup.js",
|
|
31
|
-
"lookup-data.js",
|
|
32
|
-
"utilities.js"
|
|
33
|
-
],
|
|
34
|
-
"keywords": [
|
|
35
|
-
"unicode",
|
|
36
|
-
"east-asian-width",
|
|
37
|
-
"eastasianwidth",
|
|
38
|
-
"character",
|
|
39
|
-
"string",
|
|
40
|
-
"width",
|
|
41
|
-
"text",
|
|
42
|
-
"layout",
|
|
43
|
-
"alignment",
|
|
44
|
-
"fullwidth",
|
|
45
|
-
"halfwidth",
|
|
46
|
-
"ambiguous",
|
|
47
|
-
"narrow",
|
|
48
|
-
"wide",
|
|
49
|
-
"neutral",
|
|
50
|
-
"typography",
|
|
51
|
-
"japanese",
|
|
52
|
-
"chinese",
|
|
53
|
-
"korean",
|
|
54
|
-
"codepoint",
|
|
55
|
-
"text-processing",
|
|
56
|
-
"i18n",
|
|
57
|
-
"l10n"
|
|
58
|
-
],
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"ava": "^5.3.1",
|
|
61
|
-
"outdent": "^0.8.0",
|
|
62
|
-
"simplify-ranges": "^0.1.0",
|
|
63
|
-
"typescript": "^5.2.2",
|
|
64
|
-
"xo": "^0.56.0"
|
|
65
|
-
},
|
|
66
|
-
"xo": {
|
|
67
|
-
"ignores": [
|
|
68
|
-
"lookup-data.js"
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# get-east-asian-width
|
|
2
|
-
|
|
3
|
-
> Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
|
|
4
|
-
|
|
5
|
-
> East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
|
|
6
|
-
|
|
7
|
-
Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install get-east-asian-width
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
|
|
19
|
-
|
|
20
|
-
const codePoint = '字'.codePointAt(0);
|
|
21
|
-
|
|
22
|
-
console.log(eastAsianWidth(codePoint));
|
|
23
|
-
//=> 2
|
|
24
|
-
|
|
25
|
-
console.log(eastAsianWidthType(codePoint));
|
|
26
|
-
//=> 'wide'
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
|
|
30
|
-
|
|
31
|
-
Returns the width as a number for the given code point.
|
|
32
|
-
|
|
33
|
-
### options
|
|
34
|
-
|
|
35
|
-
Type: `object`
|
|
36
|
-
|
|
37
|
-
#### ambiguousAsWide
|
|
38
|
-
|
|
39
|
-
Type: `boolean`\
|
|
40
|
-
Default: `false`
|
|
41
|
-
|
|
42
|
-
Whether to treat an `'ambiguous'` character as wide.
|
|
43
|
-
|
|
44
|
-
```js
|
|
45
|
-
import {eastAsianWidth} from 'get-east-asian-width';
|
|
46
|
-
|
|
47
|
-
const codePoint = '⛣'.codePointAt(0);
|
|
48
|
-
|
|
49
|
-
console.log(eastAsianWidth(codePoint));
|
|
50
|
-
//=> 1
|
|
51
|
-
|
|
52
|
-
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
53
|
-
//=> 2
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
> 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.**
|
|
57
|
-
> - http://www.unicode.org/reports/tr11/
|
|
58
|
-
|
|
59
|
-
## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
|
|
60
|
-
|
|
61
|
-
Returns the type of “East Asian Width” for the given code point.
|
|
62
|
-
|
|
63
|
-
## Related
|
|
64
|
-
|
|
65
|
-
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Binary search on a sorted flat array of [start, end] pairs.
|
|
3
|
-
|
|
4
|
-
@param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
|
|
5
|
-
@param {number} codePoint - The value to search for.
|
|
6
|
-
@returns {boolean} Whether the value falls within any of the ranges.
|
|
7
|
-
*/
|
|
8
|
-
export const isInRange = (ranges, codePoint) => {
|
|
9
|
-
let low = 0;
|
|
10
|
-
let high = Math.floor(ranges.length / 2) - 1;
|
|
11
|
-
while (low <= high) {
|
|
12
|
-
const mid = Math.floor((low + high) / 2);
|
|
13
|
-
const i = mid * 2;
|
|
14
|
-
if (codePoint < ranges[i]) {
|
|
15
|
-
high = mid - 1;
|
|
16
|
-
} else if (codePoint > ranges[i + 1]) {
|
|
17
|
-
low = mid + 1;
|
|
18
|
-
} else {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
File without changes
|