decocms 2.302.0 → 2.302.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Ckdo-RmI.js → AlertCircle-BFJK99tM.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Di3ykEwz.js → ArrowNarrowLeft-DCbP5K-g.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DMSP1Bv9.js → ArrowUpRight-BvzWf0q7.js} +1 -1
- package/dist/client/assets/{CheckCircle-C208sPuy.js → CheckCircle-qqOIolWc.js} +1 -1
- package/dist/client/assets/{ChevronDown-BrUt0Alw.js → ChevronDown-BMTA9_Ap.js} +1 -1
- package/dist/client/assets/{ChevronRight-CGM8153k.js → ChevronRight-QeeRSp8z.js} +1 -1
- package/dist/client/assets/{ChevronUp-CaGbgeVw.js → ChevronUp-BHiGg6ZY.js} +1 -1
- package/dist/client/assets/{Container-4Wg94L7I.js → Container-CIDvyJX8.js} +1 -1
- package/dist/client/assets/{DotsVertical-DvRrSQFB.js → DotsVertical-Bd2_5HYZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Y0gD7h2D.js → LinkExternal01-DCnMv_g7.js} +1 -1
- package/dist/client/assets/{Lock01-Dch0eKvp.js → Lock01-Ds-YEZnN.js} +1 -1
- package/dist/client/assets/{Palette-CgqIrvg1.js → Palette-DescRwe0.js} +1 -1
- package/dist/client/assets/{Play-CtLPh-DP.js → Play-Ch3KWC7Z.js} +1 -1
- package/dist/client/assets/{Plus-Bz8pOCrF.js → Plus-gLdNtuBE.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-KEgE6miP.js → RefreshCcw01-DKf5Q7r6.js} +1 -1
- package/dist/client/assets/{SearchMd-CVG2gI0e.js → SearchMd-BI1BY0Xc.js} +1 -1
- package/dist/client/assets/{Settings02-BaHlQiS7.js → Settings02-D0o0GA4h.js} +1 -1
- package/dist/client/assets/{Shield01-CCtHgQuh.js → Shield01-btPXI3TS.js} +1 -1
- package/dist/client/assets/{Star01-C90LkDZI.js → Star01-DInOTW7T.js} +1 -1
- package/dist/client/assets/{Sun-BxF03d45.js → Sun-DLagUbKM.js} +1 -1
- package/dist/client/assets/{Tool01-DA28S3sH.js → Tool01-D1xeep7h.js} +1 -1
- package/dist/client/assets/{Trash01-DR27iFf1.js → Trash01-OgQVP2St.js} +1 -1
- package/dist/client/assets/{User01-BujZcMbB.js → User01-Cr_qCqW_.js} +1 -1
- package/dist/client/assets/{Users03-CDTGNBm2.js → Users03-DVwMLxYo.js} +1 -1
- package/dist/client/assets/{X-DoHhdWpr.js → X-fvjwb2RC.js} +1 -1
- package/dist/client/assets/{XCircle-Ds5a6kuE.js → XCircle-CVED_3Ss.js} +1 -1
- package/dist/client/assets/{XClose-C9Qfd8kZ.js → XClose-C1T9ODT_.js} +1 -1
- package/dist/client/assets/{Zap-BtQ-TzwR.js → Zap-u543Wk9m.js} +1 -1
- package/dist/client/assets/{ZapSquare-DKBv2Oh1.js → ZapSquare-B03aoE62.js} +1 -1
- package/dist/client/assets/{accordion-isIiC_Tx.js → accordion-zoDibAHc.js} +1 -1
- package/dist/client/assets/{agent-icon-DyZrsMHV.js → agent-icon-B5EEcofO.js} +1 -1
- package/dist/client/assets/{agents-list-BsLb9TAC.js → agents-list-KuDCGevU.js} +1 -1
- package/dist/client/assets/ai-providers-3jYxMl4T.js +1 -0
- package/dist/client/assets/{alert-dialog-Cm675fIp.js → alert-dialog-B6JtF6Oy.js} +1 -1
- package/dist/client/assets/{auth-catchall-CS4MwL4l.js → auth-catchall-CnOfYh4q.js} +1 -1
- package/dist/client/assets/{automation-list-row-BZZkY79g.js → automation-list-row-Ce2nqVRS.js} +1 -1
- package/dist/client/assets/{automations-EJo_cmjx.js → automations-3wicI9sJ.js} +1 -1
- package/dist/client/assets/{avatar-ejiIeuvT.js → avatar-B5CcOSaZ.js} +1 -1
- package/dist/client/assets/{badge-BCkY0osU.js → badge-Vn5olYFX.js} +1 -1
- package/dist/client/assets/{brand-context-B-WDg8W9.js → brand-context-JEzNXnYS.js} +1 -1
- package/dist/client/assets/{card-KrDyjT9B.js → card-DHIGW2Gm.js} +1 -1
- package/dist/client/assets/{chat-context-D2ImJV4_.js → chat-context-DZ4ItXeY.js} +1 -1
- package/dist/client/assets/{checkbox-DdEbgSXy.js → checkbox-DBBm6J90.js} +1 -1
- package/dist/client/assets/{collection-detail-C1_S4Wby.js → collection-detail-CYmy41EW.js} +1 -1
- package/dist/client/assets/{collection-display-button-E32kWSQs.js → collection-display-button-DifdWxZd.js} +1 -1
- package/dist/client/assets/{collection-search-CjRFx7RJ.js → collection-search-EJTdRq0l.js} +1 -1
- package/dist/client/assets/{collection-search-CZ45K7il.js → collection-search-dr2VH0_A.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D1SV8oPy.js → collection-table-wrapper-BNTrWb5l.js} +1 -1
- package/dist/client/assets/{collection-tabs-Ds23HSH3.js → collection-tabs-BhSzOngN.js} +1 -1
- package/dist/client/assets/{collections-ClBK8Wc7.js → collections-x4R34QWs.js} +1 -1
- package/dist/client/assets/{command-s8ocnxUp.js → command-dTUEruN1.js} +1 -1
- package/dist/client/assets/{connection-card-BOvFz0Xe.js → connection-card-DHMMRnIO.js} +1 -1
- package/dist/client/assets/{connection-detail-C9dHwvHg.js → connection-detail-B_69g2MY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CaMgKEzX.js → connection-form-helpers-CSnwVczG.js} +1 -1
- package/dist/client/assets/{connections-D4jzt08s.js → connections-DL-vzzoi.js} +1 -1
- package/dist/client/assets/{constants-CVSLlYnf.js → constants-BVU634u9.js} +1 -1
- package/dist/client/assets/{constants-Bj37EyXz.js → constants-DhipgDPU.js} +1 -1
- package/dist/client/assets/{dialog-B9mCJ9u4.js → dialog-Cc5-s5cq.js} +1 -1
- package/dist/client/assets/{domain-settings-E-eT2C2j.js → domain-settings-Ddgt5zKc.js} +1 -1
- package/dist/client/assets/{drawer-ChRbi3da.js → drawer-CYKJkhyy.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BACFhEWG.js → dropdown-menu-BdezCavF.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-3-VjJB_9.js → dynamic-plugin-layout-BPGpVId2.js} +1 -1
- package/dist/client/assets/{empty-state-Cd5nlZi8.js → empty-state-B-SDOSco.js} +1 -1
- package/dist/client/assets/{empty-state-CZHe0KuE.js → empty-state-CGM_VDGy.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DWwyWigS.js → extract-connection-data-CGFCZBB1.js} +1 -1
- package/dist/client/assets/{features-CeatQ7gW.js → features-D36LrRkp.js} +1 -1
- package/dist/client/assets/{form-Ouizhyq3.js → form-BlgCJwww.js} +1 -1
- package/dist/client/assets/{general-DzoGsnH3.js → general-ByIyj3-X.js} +1 -1
- package/dist/client/assets/{index-RbRZk6ng.js → index-BEdZpL1a.js} +3 -3
- package/dist/client/assets/{index-RBXYZ0o1.js → index-BGvMfUr2.js} +2 -2
- package/dist/client/assets/{index-fNW0SHRb.js → index-BizlRsAk.js} +1 -1
- package/dist/client/assets/{index-D2mful5a.js → index-C-49LFOm.js} +1 -1
- package/dist/client/assets/{index-BSVWgf11.js → index-C4B8wMiM.js} +1 -1
- package/dist/client/assets/{index-6mSFDvZg.js → index-CQbT2-AO.js} +1 -1
- package/dist/client/assets/index-CSOTvYaA.js +1 -0
- package/dist/client/assets/{index-CAaoqFy7.js → index-Ce3V05Jd.js} +1 -1
- package/dist/client/assets/{index-By6SCvFJ.js → index-CxcuSo6g.js} +1 -1
- package/dist/client/assets/{index-2Scfn4rN.js → index-DL3V_XAA.js} +1 -1
- package/dist/client/assets/{index-D-Rzrt74.js → index-DRSFVCQG.js} +1 -1
- package/dist/client/assets/{index-af7Ms30x.js → index-DWnDHmtK.js} +1 -1
- package/dist/client/assets/{index-Dax7JqXc.js → index-DcnDvcwB.js} +1 -1
- package/dist/client/assets/{index-D_jFKVK5.js → index-QpbQL5yY.js} +1 -1
- package/dist/client/assets/{index-BS2wRqRL.js → index-gtAbs0Sc.js} +1 -1
- package/dist/client/assets/{index-Da_yXMmn.js → index-iJW-G2eC.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver--3YinOmX.js → infiniteQueryObserver-B9_hQDN4.js} +1 -1
- package/dist/client/assets/{input-CbOPFA2Y.js → input-r-FVR1hH.js} +1 -1
- package/dist/client/assets/{integration-icon-BUk_AQZb.js → integration-icon-Btl0P6Zi.js} +1 -1
- package/dist/client/assets/{label-BSzDqn8Z.js → label-CDE7or5s.js} +1 -1
- package/dist/client/assets/{layout-Cbq9XvLR.js → layout-DtEpOSua.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-C1G1_2au.js → lean-canvas-recruit-modal-70F-bJzI.js} +1 -1
- package/dist/client/assets/{login-DCSomhku.js → login-D6mlZnBr.js} +1 -1
- package/dist/client/assets/{members-DCjU7uUX.js → members-B44F43x3.js} +1 -1
- package/dist/client/assets/{monaco-editor-9MzrlDzJ.js → monaco-editor-D9GcAVz1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DLYFByVX.js → monitoring-stats-row-9xBJedBt.js} +1 -1
- package/dist/client/assets/{oauth-callback-CRR_q1-_.js → oauth-callback-BzeoI5mr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BcbJ_xLj.js → oauth-callback-ai-provider-B7fEhkFp.js} +1 -1
- package/dist/client/assets/{onboarding-CSHiENj3.js → onboarding-C_yRTGs2.js} +1 -1
- package/dist/client/assets/{org-layout-BQC1siIb.js → org-layout-xgtHVrWJ.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Cq_aAA1I.js → org-plugin-layout-DjYWXXLz.js} +1 -1
- package/dist/client/assets/{pair-C1Euf0mI.js → pair-TlV_Y8fY.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DXXmUyFw.js → plugin-empty-state-wcs5uyqa.js} +1 -1
- package/dist/client/assets/{plugin-header-C-jLY3z-.js → plugin-header-D00boOwo.js} +1 -1
- package/dist/client/assets/{plugin-layout-oOgBG5IP.js → plugin-layout-kZMGzqtV.js} +1 -1
- package/dist/client/assets/{popover-DC-xnLvX.js → popover-CENSHA5K.js} +1 -1
- package/dist/client/assets/{profile-DDufPRp2.js → profile-CmCDElOt.js} +1 -1
- package/dist/client/assets/{project-app-view-CFJH3_Mb.js → project-app-view-CXSUfW9V.js} +1 -1
- package/dist/client/assets/registry-M9hpVTeC.js +2 -0
- package/dist/client/assets/{registry-layout-Bt8B6WZA.js → registry-layout-jKwqcMMI.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DxzQFSub.js → required-auth-layout-ByW838Wg.js} +1 -1
- package/dist/client/assets/{reset-password-MIshTkTR.js → reset-password-Cn2aTTGW.js} +1 -1
- package/dist/client/assets/{roles-Cvj_YJQC.js → roles-BOss14ty.js} +1 -1
- package/dist/client/assets/{scroll-area-DwYUYaC4.js → scroll-area-KyXayDS_.js} +1 -1
- package/dist/client/assets/{search-input-CDHPjad4.js → search-input-LdRGRYga.js} +1 -1
- package/dist/client/assets/{select-8rqyX4yY.js → select-CKhnD_dJ.js} +1 -1
- package/dist/client/assets/{select-model-D8dh5nJb.js → select-model-DSERjqbn.js} +1 -1
- package/dist/client/assets/{settings-layout-BgvnZybr.js → settings-layout-DmMGjApo.js} +1 -1
- package/dist/client/assets/{settings-section-HtqNxJHw.js → settings-section-BSfLZRSf.js} +1 -1
- package/dist/client/assets/{shell-layout-A5EcvKv7.js → shell-layout-BTN4hGpk.js} +1 -1
- package/dist/client/assets/{skeleton-DMH6jOOd.js → skeleton-PrntJAKB.js} +1 -1
- package/dist/client/assets/{sso-DNkuSn5z.js → sso-Dt9Y-guZ.js} +1 -1
- package/dist/client/assets/{store-CLctbbGQ.js → store-lsrePhQV.js} +1 -1
- package/dist/client/assets/store-registry-BiQl34xL.js +2 -0
- package/dist/client/assets/{switch-ClAJkK47.js → switch-DIPW9oSx.js} +1 -1
- package/dist/client/assets/{table-Cwoyxo1t.js → table-CyZKmPMu.js} +1 -1
- package/dist/client/assets/{tabs-Bw1wvZLY.js → tabs-Cnic4mBc.js} +1 -1
- package/dist/client/assets/{task-status-BwNSpCPo.js → task-status-B4S1zCuU.js} +1 -1
- package/dist/client/assets/{textarea-grS6dvzw.js → textarea-DWnLf30W.js} +1 -1
- package/dist/client/assets/{toggle-group-CrcMNw0M.js → toggle-group-Bw-pO6dq.js} +1 -1
- package/dist/client/assets/{tools-list-B0HLMLQ4.js → tools-list-Ddp6jSMU.js} +1 -1
- package/dist/client/assets/{tooltip-l5gvSkP4.js → tooltip-8sj0FPxK.js} +1 -1
- package/dist/client/assets/{types-sSi2ZBaJ.js → types-CPAcvDGA.js} +1 -1
- package/dist/client/assets/{use-ai-providers-NGnYqkjZ.js → use-ai-providers-TD5f5keD.js} +1 -1
- package/dist/client/assets/{use-collections-XPoz4bQ4.js → use-collections-DbJUoPI1.js} +1 -1
- package/dist/client/assets/{use-connection-KIdOMYYB.js → use-connection-EBpfvjCE.js} +1 -1
- package/dist/client/assets/{use-copy-BEHVkdeL.js → use-copy-DNbmGYTy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B7_E4z0n.js → use-create-virtual-mcp-oePzdlSN.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BB7Ade2O.js → use-decopilot-events-CTJPtEAG.js} +1 -1
- package/dist/client/assets/{use-delete-connection-ClDFtLys.js → use-delete-connection-DeDsXAxU.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BDQxIw_a.js → use-infinite-scroll-Blb-Zkmq.js} +1 -1
- package/dist/client/assets/{use-list-state-C-KeL9mx.js → use-list-state-Bt40g0pF.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CvCxJUq7.js → use-mcp-tools-yGAchpt7.js} +1 -1
- package/dist/client/assets/{use-members-CkSy6C1r.js → use-members-elTW2IMS.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-h3H44Uqx.js → use-navigate-to-agent-XL440g7Q.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C4jj13SA.js → use-org-auth-client-kuXtTIo4.js} +1 -1
- package/dist/client/assets/{use-org-sso-CzzIybhJ.js → use-org-sso-DzmlEuU4.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BFtXNMrL.js → use-organization-roles-B18S9BiQ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DQaAYRBc.js → use-organization-settings-vi5z2D5l.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bw9vDyMz.js → use-registry-connections-vdam_2jo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cb3X5ULl.js → use-status-sounds-DVkOG6QZ.js} +1 -1
- package/dist/client/assets/{use-tasks-CU4nRSG8.js → use-tasks-BSCdum36.js} +1 -1
- package/dist/client/assets/{use-view-mode-dkizD-HG.js → use-view-mode-IRjBIGSa.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D1lThWcu.js → use-virtual-mcp-BOr32Cw9.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D6CYdRiz.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-hnE5tAGb.js +1 -0
- package/dist/client/assets/{user-BuZ7YF8y.js → user-Cr4eZetj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CV8uckCG.js → view-mode-toggle-DqaIt4c7.js} +1 -1
- package/dist/client/assets/workflow-detail-CHEOWOns.js +1 -0
- package/dist/client/assets/{workflow-YqAcYHT8.js → workflow-f-0F4vKd.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +4 -4
- package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
- package/dist/server/node_modules/ansi-regex/index.js +14 -0
- package/dist/server/node_modules/ansi-regex/package.json +61 -0
- package/dist/server/node_modules/ansi-regex/readme.md +66 -0
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/server/node_modules/emoji-regex/README.md +107 -0
- package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
- package/dist/server/node_modules/emoji-regex/index.js +4 -0
- package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
- package/dist/server/node_modules/emoji-regex/package.json +45 -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/{slice-ansi → environment}/license +0 -1
- 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/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-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/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 +3 -3
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-kn1jtlDC.js +0 -1
- package/dist/client/assets/index-YEyIkTha.js +0 -1
- package/dist/client/assets/registry-DtbT4EGB.js +0 -2
- package/dist/client/assets/store-registry-9hOokAwZ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-PRD417UA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-j6nsOPAl.js +0 -1
- package/dist/client/assets/workflow-detail-BNKITpZa.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/slice-ansi/index.d.ts +0 -19
- package/dist/server/node_modules/slice-ansi/index.js +0 -260
- package/dist/server/node_modules/slice-ansi/package.json +0 -59
- package/dist/server/node_modules/slice-ansi/readme.md +0 -54
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
- /package/dist/server/node_modules/{get-east-asian-width → ansi-regex}/license +0 -0
|
@@ -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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
3
|
-
|
|
4
|
-
@param string - A string with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
5
|
-
@param startSlice - Zero-based visible-column index at which to start the slice. Grapheme clusters are kept intact.
|
|
6
|
-
@param endSlice - Zero-based visible-column index at which to end the slice.
|
|
7
|
-
|
|
8
|
-
@example
|
|
9
|
-
```
|
|
10
|
-
import chalk from 'chalk';
|
|
11
|
-
import sliceAnsi from 'slice-ansi';
|
|
12
|
-
|
|
13
|
-
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
14
|
-
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
15
|
-
|
|
16
|
-
console.log(sliceAnsi(string, 20, 30));
|
|
17
|
-
```
|
|
18
|
-
*/
|
|
19
|
-
export default function sliceAnsi(string: string, startSlice: number, endSlice?: number): string;
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import tokenizeAnsi from './tokenize-ansi.js';
|
|
2
|
-
|
|
3
|
-
function applySgrFragments(activeStyles, fragments) {
|
|
4
|
-
for (const fragment of fragments) {
|
|
5
|
-
switch (fragment.type) {
|
|
6
|
-
case 'reset': {
|
|
7
|
-
activeStyles.clear();
|
|
8
|
-
break;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
case 'end': {
|
|
12
|
-
activeStyles.delete(fragment.endCode);
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
case 'start': {
|
|
17
|
-
activeStyles.delete(fragment.endCode);
|
|
18
|
-
activeStyles.set(fragment.endCode, fragment.code);
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
default: {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return activeStyles;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function undoAnsiCodes(activeStyles) {
|
|
32
|
-
return [...activeStyles.keys()].reverse().join('');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function closeHyperlink(hyperlinkToken) {
|
|
36
|
-
return `${hyperlinkToken.closePrefix}${hyperlinkToken.terminator}`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function shouldIncludeSgrAfterEnd(token, activeStyles) {
|
|
40
|
-
let hasStartFragment = false;
|
|
41
|
-
let hasClosingEffect = false;
|
|
42
|
-
|
|
43
|
-
for (const fragment of token.fragments) {
|
|
44
|
-
if (fragment.type === 'start') {
|
|
45
|
-
hasStartFragment = true;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (fragment.type === 'reset' && activeStyles.size > 0) {
|
|
50
|
-
hasClosingEffect = true;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (fragment.type === 'end' && activeStyles.has(fragment.endCode)) {
|
|
55
|
-
hasClosingEffect = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return hasClosingEffect && !hasStartFragment;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function applySgrToken({token, isPastEnd, activeStyles, returnValue, include, activeHyperlink, position}) {
|
|
63
|
-
if (isPastEnd && !shouldIncludeSgrAfterEnd(token, activeStyles)) {
|
|
64
|
-
return {
|
|
65
|
-
activeStyles,
|
|
66
|
-
activeHyperlink,
|
|
67
|
-
position,
|
|
68
|
-
returnValue,
|
|
69
|
-
include,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
activeStyles = applySgrFragments(activeStyles, token.fragments);
|
|
74
|
-
if (include) {
|
|
75
|
-
returnValue += token.code;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
activeStyles,
|
|
80
|
-
activeHyperlink,
|
|
81
|
-
position,
|
|
82
|
-
returnValue,
|
|
83
|
-
include,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function applyHyperlinkToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
88
|
-
if (
|
|
89
|
-
isPastEnd
|
|
90
|
-
&& (
|
|
91
|
-
token.action !== 'close'
|
|
92
|
-
|| !activeHyperlink
|
|
93
|
-
)
|
|
94
|
-
) {
|
|
95
|
-
return {
|
|
96
|
-
activeStyles,
|
|
97
|
-
activeHyperlink,
|
|
98
|
-
position,
|
|
99
|
-
returnValue,
|
|
100
|
-
include,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (token.action === 'open') {
|
|
105
|
-
activeHyperlink = token;
|
|
106
|
-
} else if (token.action === 'close') {
|
|
107
|
-
activeHyperlink = undefined;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (include) {
|
|
111
|
-
returnValue += token.code;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return {
|
|
115
|
-
activeStyles,
|
|
116
|
-
activeHyperlink,
|
|
117
|
-
position,
|
|
118
|
-
returnValue,
|
|
119
|
-
include,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function applyControlToken({token, isPastEnd, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
124
|
-
if (!isPastEnd && include) {
|
|
125
|
-
returnValue += token.code;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
return {
|
|
129
|
-
activeStyles,
|
|
130
|
-
activeHyperlink,
|
|
131
|
-
position,
|
|
132
|
-
returnValue,
|
|
133
|
-
include,
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function applyCharacterToken({token, start, activeStyles, activeHyperlink, position, returnValue, include}) {
|
|
138
|
-
if (
|
|
139
|
-
!include
|
|
140
|
-
&& position >= start
|
|
141
|
-
&& !token.isGraphemeContinuation
|
|
142
|
-
) {
|
|
143
|
-
include = true;
|
|
144
|
-
returnValue = [...activeStyles.values()].join('');
|
|
145
|
-
if (activeHyperlink) {
|
|
146
|
-
returnValue += activeHyperlink.code;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (include) {
|
|
151
|
-
returnValue += token.value;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
position += token.visibleWidth;
|
|
155
|
-
return {
|
|
156
|
-
activeStyles,
|
|
157
|
-
activeHyperlink,
|
|
158
|
-
position,
|
|
159
|
-
returnValue,
|
|
160
|
-
include,
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const tokenHandlers = {
|
|
165
|
-
sgr: applySgrToken,
|
|
166
|
-
hyperlink: applyHyperlinkToken,
|
|
167
|
-
control: applyControlToken,
|
|
168
|
-
character: applyCharacterToken,
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
function applyToken(parameters) {
|
|
172
|
-
const tokenHandler = tokenHandlers[parameters.token.type];
|
|
173
|
-
if (!tokenHandler) {
|
|
174
|
-
const {
|
|
175
|
-
activeStyles,
|
|
176
|
-
activeHyperlink,
|
|
177
|
-
position,
|
|
178
|
-
returnValue,
|
|
179
|
-
include,
|
|
180
|
-
} = parameters;
|
|
181
|
-
|
|
182
|
-
return {
|
|
183
|
-
activeStyles,
|
|
184
|
-
activeHyperlink,
|
|
185
|
-
position,
|
|
186
|
-
returnValue,
|
|
187
|
-
include,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return tokenHandler(parameters);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function createHasContinuationAheadMap(tokens) {
|
|
195
|
-
const hasContinuationAhead = Array.from({length: tokens.length}, () => false);
|
|
196
|
-
let nextCharacterIsContinuation = false;
|
|
197
|
-
|
|
198
|
-
for (let tokenIndex = tokens.length - 1; tokenIndex >= 0; tokenIndex--) {
|
|
199
|
-
const token = tokens[tokenIndex];
|
|
200
|
-
hasContinuationAhead[tokenIndex] = nextCharacterIsContinuation;
|
|
201
|
-
if (token.type === 'character') {
|
|
202
|
-
nextCharacterIsContinuation = Boolean(token.isGraphemeContinuation);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return hasContinuationAhead;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export default function sliceAnsi(string, start, end) {
|
|
210
|
-
const tokens = tokenizeAnsi(string, {endCharacter: end});
|
|
211
|
-
const hasContinuationAhead = createHasContinuationAheadMap(tokens);
|
|
212
|
-
let activeStyles = new Map();
|
|
213
|
-
let activeHyperlink;
|
|
214
|
-
let position = 0;
|
|
215
|
-
let returnValue = '';
|
|
216
|
-
let include = false;
|
|
217
|
-
|
|
218
|
-
for (const [tokenIndex, token] of tokens.entries()) {
|
|
219
|
-
let isPastEnd = end !== undefined && position >= end;
|
|
220
|
-
if (
|
|
221
|
-
isPastEnd
|
|
222
|
-
&& token.type !== 'character'
|
|
223
|
-
&& hasContinuationAhead[tokenIndex]
|
|
224
|
-
) {
|
|
225
|
-
isPastEnd = false;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (
|
|
229
|
-
isPastEnd
|
|
230
|
-
&& token.type === 'character'
|
|
231
|
-
&& !token.isGraphemeContinuation
|
|
232
|
-
) {
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
({activeStyles, activeHyperlink, position, returnValue, include} = applyToken({
|
|
237
|
-
token,
|
|
238
|
-
isPastEnd,
|
|
239
|
-
start,
|
|
240
|
-
activeStyles,
|
|
241
|
-
activeHyperlink,
|
|
242
|
-
position,
|
|
243
|
-
returnValue,
|
|
244
|
-
include,
|
|
245
|
-
}));
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (!include) {
|
|
249
|
-
return '';
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
if (activeHyperlink) {
|
|
253
|
-
returnValue += closeHyperlink(activeHyperlink);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Disable active codes at the end
|
|
257
|
-
returnValue += undoAnsiCodes(activeStyles);
|
|
258
|
-
|
|
259
|
-
return returnValue;
|
|
260
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "slice-ansi",
|
|
3
|
-
"version": "8.0.0",
|
|
4
|
-
"description": "Slice a string with ANSI escape codes",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "chalk/slice-ansi",
|
|
7
|
-
"funding": "https://github.com/chalk/slice-ansi?sponsor=1",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"exports": {
|
|
10
|
-
"types": "./index.d.ts",
|
|
11
|
-
"default": "./index.js"
|
|
12
|
-
},
|
|
13
|
-
"sideEffects": false,
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">=20"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "xo && ava && tsc --lib esnext index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"index.js",
|
|
22
|
-
"tokenize-ansi.js",
|
|
23
|
-
"index.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"keywords": [
|
|
26
|
-
"slice",
|
|
27
|
-
"string",
|
|
28
|
-
"ansi",
|
|
29
|
-
"styles",
|
|
30
|
-
"color",
|
|
31
|
-
"colour",
|
|
32
|
-
"colors",
|
|
33
|
-
"terminal",
|
|
34
|
-
"console",
|
|
35
|
-
"cli",
|
|
36
|
-
"tty",
|
|
37
|
-
"escape",
|
|
38
|
-
"formatting",
|
|
39
|
-
"rgb",
|
|
40
|
-
"256",
|
|
41
|
-
"shell",
|
|
42
|
-
"xterm",
|
|
43
|
-
"log",
|
|
44
|
-
"logging",
|
|
45
|
-
"command-line",
|
|
46
|
-
"text"
|
|
47
|
-
],
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"ansi-styles": "^6.2.3",
|
|
50
|
-
"is-fullwidth-code-point": "^5.1.0"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"ava": "^6.4.1",
|
|
54
|
-
"chalk": "^5.6.2",
|
|
55
|
-
"random-item": "^4.0.1",
|
|
56
|
-
"strip-ansi": "^7.1.2",
|
|
57
|
-
"xo": "^1.2.3"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# slice-ansi [](https://github.com/xojs/xo)
|
|
2
|
-
|
|
3
|
-
> Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install slice-ansi
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import chalk from 'chalk';
|
|
15
|
-
import sliceAnsi from 'slice-ansi';
|
|
16
|
-
|
|
17
|
-
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
18
|
-
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
19
|
-
|
|
20
|
-
console.log(sliceAnsi(string, 20, 30));
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## API
|
|
24
|
-
|
|
25
|
-
### sliceAnsi(string, startSlice, endSlice?)
|
|
26
|
-
|
|
27
|
-
#### string
|
|
28
|
-
|
|
29
|
-
Type: `string`
|
|
30
|
-
|
|
31
|
-
String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
32
|
-
|
|
33
|
-
#### startSlice
|
|
34
|
-
|
|
35
|
-
Type: `number`
|
|
36
|
-
|
|
37
|
-
Zero-based visible-column index at which to start the slice. Grapheme clusters (for example, emoji sequences and combining marks) are kept intact.
|
|
38
|
-
|
|
39
|
-
#### endSlice
|
|
40
|
-
|
|
41
|
-
Type: `number`
|
|
42
|
-
|
|
43
|
-
Zero-based visible-column index at which to end the slice.
|
|
44
|
-
|
|
45
|
-
## Related
|
|
46
|
-
|
|
47
|
-
- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
|
|
48
|
-
- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
|
|
49
|
-
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
50
|
-
|
|
51
|
-
## Maintainers
|
|
52
|
-
|
|
53
|
-
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
54
|
-
- [Josh Junon](https://github.com/qix-)
|