decocms 2.302.4 → 2.302.5
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-DSZVvcru.js → AlertCircle-C3v8uxQV.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-wBASxb0P.js → ArrowNarrowLeft-DqjvSsdH.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BJxEOPu7.js → ArrowUpRight-B0mRU26a.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSvfPMkA.js → CheckCircle-R_thqCxv.js} +1 -1
- package/dist/client/assets/{ChevronDown-B_jGx88V.js → ChevronDown-BIaDZcDn.js} +1 -1
- package/dist/client/assets/{ChevronRight-09l0V0oC.js → ChevronRight-Dd4hxp1D.js} +1 -1
- package/dist/client/assets/{ChevronUp-Xo8mQp9m.js → ChevronUp-CkYQx1Bj.js} +1 -1
- package/dist/client/assets/{Container-DQvWHFPX.js → Container-C9PcQlkh.js} +1 -1
- package/dist/client/assets/{DotsVertical-nZJzgZx0.js → DotsVertical-XchXO7Ol.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BcaOFSiB.js → LinkExternal01-CeSFqmDM.js} +1 -1
- package/dist/client/assets/{Lock01-DbjvwJgn.js → Lock01-Ct2davzl.js} +1 -1
- package/dist/client/assets/{Palette-TeQrEtkV.js → Palette-C-Uvqmxu.js} +1 -1
- package/dist/client/assets/{Play-Cz6iqYd_.js → Play-BhfmXnEc.js} +1 -1
- package/dist/client/assets/{Plus-0-k0Hxon.js → Plus-Cp0KPDXV.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Vt7bKU5A.js → RefreshCcw01-DpQ0bWEr.js} +1 -1
- package/dist/client/assets/{SearchMd-DG7BRBsB.js → SearchMd-CRDaIIAo.js} +1 -1
- package/dist/client/assets/{Settings02-CZTMhu7x.js → Settings02-o1SCp48r.js} +1 -1
- package/dist/client/assets/{Shield01-CPJPF_Ay.js → Shield01-CIRxPwUL.js} +1 -1
- package/dist/client/assets/{Star01-BZD48_CN.js → Star01-CFSBtznF.js} +1 -1
- package/dist/client/assets/{Sun-lT2K9iFv.js → Sun-DRVshJ4h.js} +1 -1
- package/dist/client/assets/{Tool01-DsyAZlOV.js → Tool01-70GpeWbj.js} +1 -1
- package/dist/client/assets/{Trash01-DIdMBm6d.js → Trash01-x0uVmxtV.js} +1 -1
- package/dist/client/assets/{User01-DaLU_pXs.js → User01-CDjsPNWR.js} +1 -1
- package/dist/client/assets/{Users03-Cbyo-F1N.js → Users03-D7_xGfRK.js} +1 -1
- package/dist/client/assets/{X-A3ULnTw9.js → X-Y9O2r61Y.js} +1 -1
- package/dist/client/assets/{XCircle-CuwuLpDW.js → XCircle-Boh1wV2D.js} +1 -1
- package/dist/client/assets/{XClose-OklkH08P.js → XClose-DrATv0fK.js} +1 -1
- package/dist/client/assets/{Zap-CW7j_KaA.js → Zap-DXZlejxD.js} +1 -1
- package/dist/client/assets/{ZapSquare-CdMzJWXO.js → ZapSquare-TQyLEhYQ.js} +1 -1
- package/dist/client/assets/{accordion-DAcUC4jB.js → accordion-kXMFpzvY.js} +1 -1
- package/dist/client/assets/{agent-icon-CK-hSz5q.js → agent-icon-BkXaC4dn.js} +1 -1
- package/dist/client/assets/{agents-list-DEQZ8M-w.js → agents-list-BZs3KGTP.js} +1 -1
- package/dist/client/assets/ai-providers-BQ-gkNg2.js +1 -0
- package/dist/client/assets/{alert-dialog-D4Jvme0e.js → alert-dialog-DE4JF7gT.js} +1 -1
- package/dist/client/assets/{auth-catchall-DuAZGZax.js → auth-catchall-BKOk33zi.js} +1 -1
- package/dist/client/assets/{automation-list-row-8dom_e1K.js → automation-list-row-C3Ff1asd.js} +1 -1
- package/dist/client/assets/{automations-mgGmd5TI.js → automations-CSFxuEov.js} +1 -1
- package/dist/client/assets/{avatar-BUBvvhIv.js → avatar-Cbdobq83.js} +1 -1
- package/dist/client/assets/badge-DnIGvusX.js +1 -0
- package/dist/client/assets/{brand-context-6VCqCZSQ.js → brand-context-CK47iya3.js} +1 -1
- package/dist/client/assets/{card-DZs0RAqk.js → card-BlDciy6y.js} +1 -1
- package/dist/client/assets/{chat-context-CG5zBnYY.js → chat-context-BR7AKiVj.js} +1 -1
- package/dist/client/assets/{checkbox-B55iEWyJ.js → checkbox-CbKyITB3.js} +1 -1
- package/dist/client/assets/{collection-detail-DoZcGn2N.js → collection-detail-BE243KKe.js} +1 -1
- package/dist/client/assets/{collection-display-button-CICwHIX8.js → collection-display-button-Bs_toiw3.js} +1 -1
- package/dist/client/assets/{collection-search-BADJfP_J.js → collection-search-Bok8ho3j.js} +1 -1
- package/dist/client/assets/{collection-search-fx6Spuba.js → collection-search-CiijcwRe.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DDLpL1jQ.js → collection-table-wrapper-C0i-hx-e.js} +1 -1
- package/dist/client/assets/{collection-tabs-B8djx9Os.js → collection-tabs-DWkZe3wt.js} +1 -1
- package/dist/client/assets/{collections-CeGK4D-B.js → collections-C5FoML4p.js} +1 -1
- package/dist/client/assets/{command-BEXz4Lt5.js → command-C2FQlATW.js} +1 -1
- package/dist/client/assets/connection-card-DR63waj2.js +1 -0
- package/dist/client/assets/{connection-detail-DuNMfEDw.js → connection-detail-C14Memac.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D2dSK2gm.js → connection-form-helpers-DUpdgqN2.js} +1 -1
- package/dist/client/assets/{connections-mIOfz5MO.js → connections-v2-xkf44.js} +1 -1
- package/dist/client/assets/{constants-Rylzc13S.js → constants-Co3yHY4g.js} +1 -1
- package/dist/client/assets/{constants-CvP2J0Da.js → constants-b-g-bhUD.js} +1 -1
- package/dist/client/assets/{dialog-DcC4qK4p.js → dialog-BShWtPYB.js} +1 -1
- package/dist/client/assets/{domain-settings-Bme96_yK.js → domain-settings-BaWkNlMc.js} +1 -1
- package/dist/client/assets/{drawer-DheXDt7Y.js → drawer-BJU9NNnI.js} +1 -1
- package/dist/client/assets/{dropdown-menu-5YhjKraV.js → dropdown-menu-DyF3EUCW.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-B66dsxIy.js → dynamic-plugin-layout-Be4w7kRD.js} +1 -1
- package/dist/client/assets/{empty-state-B14XOtus.js → empty-state-C8lkMmnr.js} +1 -1
- package/dist/client/assets/{empty-state-BQjpyTXG.js → empty-state-o2OLy2PY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B0WCs7Jq.js → extract-connection-data-BCJ9z3jK.js} +1 -1
- package/dist/client/assets/{features-FCLXcMws.js → features-DmpNxI8D.js} +1 -1
- package/dist/client/assets/{form-CYioe919.js → form-CU1xnDC1.js} +1 -1
- package/dist/client/assets/{general-DkKeU3zi.js → general-DtZ69dQj.js} +1 -1
- package/dist/client/assets/{index-C9eHGGCk.js → index-93vCrQRs.js} +1 -1
- package/dist/client/assets/{index-H3n8wMaA.js → index-BAqW6-1-.js} +1 -1
- package/dist/client/assets/{index-B6SyqeP3.js → index-BD0s5h1x.js} +1 -1
- package/dist/client/assets/{index-BLC3SCf1.js → index-BJDXTR0N.js} +1 -1
- package/dist/client/assets/{index-DJENJFf2.js → index-Bbhlg2OG.js} +1 -1
- package/dist/client/assets/{index-Bo7ASdxG.js → index-BkZrdPDM.js} +1 -1
- package/dist/client/assets/{index-DUTcr7uJ.js → index-BvvlryQB.js} +1 -1
- package/dist/client/assets/{index-cRj7F9hc.js → index-CShtHeIs.js} +1 -1
- package/dist/client/assets/{index-BhGZvj_W.js → index-D9VqK4wg.js} +1 -1
- package/dist/client/assets/{index-BVW_--B-.js → index-DJzKiogP.js} +1 -1
- package/dist/client/assets/{index-DWaeWHhi.js → index-DYdxc4zk.js} +1 -1
- package/dist/client/assets/{index-o3NndZ7_.js → index-DdqDY9sX.js} +1 -1
- package/dist/client/assets/{index-Bq7njAR3.js → index-Dmp30UfO.js} +2 -2
- package/dist/client/assets/index-Dq0WJfNG.js +547 -0
- package/dist/client/assets/index-GRM2kqyY.js +1 -0
- package/dist/client/assets/{index-BDJ4CpRL.js → index-YXlEtKoF.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-BuhXJbqQ.js → infiniteQueryObserver-Bgu8I4E_.js} +1 -1
- package/dist/client/assets/{input-BkWsAq4v.js → input-DE5dVvtt.js} +1 -1
- package/dist/client/assets/{integration-icon-CmLA0-j7.js → integration-icon-BSWYobpu.js} +1 -1
- package/dist/client/assets/{label-cw8oC-NC.js → label-MyRBse_4.js} +1 -1
- package/dist/client/assets/{layout-C33hnjGM.js → layout-Chu0ZeeD.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CVrGAzhI.js → lean-canvas-recruit-modal-CnPQVk8j.js} +1 -1
- package/dist/client/assets/{login-Drkd5MAZ.js → login-DgG8VVG-.js} +1 -1
- package/dist/client/assets/{members-BMHMEL8M.js → members-JZ8_eiTP.js} +1 -1
- package/dist/client/assets/{monaco-editor-S4Yr9AYv.js → monaco-editor-jevI2jI9.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CYI_lOC2.js → monitoring-stats-row-8Ez2tQeb.js} +1 -1
- package/dist/client/assets/{oauth-callback-Dy0zmJ7-.js → oauth-callback-BO14tjoC.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B-62OUqZ.js → oauth-callback-ai-provider-okDQrh8X.js} +1 -1
- package/dist/client/assets/{onboarding-ZV0W1iC3.js → onboarding-B9YWKytA.js} +1 -1
- package/dist/client/assets/{org-layout-D1yIafts.js → org-layout-CaA0XUBd.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CEMSbUvq.js → org-plugin-layout-DgNjRY8f.js} +1 -1
- package/dist/client/assets/{pair-BUNffFJU.js → pair-BuupCCmO.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DrlGnvya.js → plugin-empty-state-Bgr-X4yK.js} +1 -1
- package/dist/client/assets/{plugin-header-BW1pO1C8.js → plugin-header-B7jqrzr6.js} +1 -1
- package/dist/client/assets/{plugin-layout-BVHruk13.js → plugin-layout-CgWUHRf6.js} +1 -1
- package/dist/client/assets/{popover-2ISvfsE_.js → popover-zG7HhkCX.js} +1 -1
- package/dist/client/assets/{profile-CY5sK6mR.js → profile-gUcdx9gL.js} +1 -1
- package/dist/client/assets/{project-app-view-CYNow9wd.js → project-app-view-CTLBsma1.js} +1 -1
- package/dist/client/assets/registry-B-92BzsA.js +2 -0
- package/dist/client/assets/{registry-layout-bFrphQI4.js → registry-layout-J29xLmfl.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C5zM-TSa.js → required-auth-layout-C8_RljYS.js} +1 -1
- package/dist/client/assets/{reset-password-Ckt278kq.js → reset-password-UcXKDRuV.js} +1 -1
- package/dist/client/assets/{roles-CTcYLqYx.js → roles-Dp_NwNIB.js} +1 -1
- package/dist/client/assets/{scroll-area-D4wMmkUg.js → scroll-area-CidaZG9N.js} +1 -1
- package/dist/client/assets/{search-input-BUVesVPS.js → search-input-DZHvtDyy.js} +1 -1
- package/dist/client/assets/{select-DYqvh3_c.js → select-DClDmbpQ.js} +1 -1
- package/dist/client/assets/{select-model-BGBPSevv.js → select-model-BeD5k8y2.js} +1 -1
- package/dist/client/assets/{settings-layout-CyDZGzMS.js → settings-layout-DU93HHod.js} +1 -1
- package/dist/client/assets/{settings-section-7hbZS_yJ.js → settings-section-BTtNKAuG.js} +1 -1
- package/dist/client/assets/{shell-layout-CV4tpkGi.js → shell-layout-BKNqqCpH.js} +1 -1
- package/dist/client/assets/{skeleton-9MYCgaQ4.js → skeleton-7XdQnZLr.js} +1 -1
- package/dist/client/assets/{sso-BCyLES5c.js → sso-C2TaBJ_X.js} +1 -1
- package/dist/client/assets/{store-DakLos2q.js → store-CJBzqIhb.js} +1 -1
- package/dist/client/assets/store-registry-CumcxK5h.js +2 -0
- package/dist/client/assets/{switch-CGr49I35.js → switch-BorShhPS.js} +1 -1
- package/dist/client/assets/{table-DiwglyaB.js → table-CHej9oM7.js} +1 -1
- package/dist/client/assets/{tabs-CK4nnUqp.js → tabs-Dz2iGebN.js} +1 -1
- package/dist/client/assets/{task-status-CHFlhuh2.js → task-status-B0ESb4uD.js} +1 -1
- package/dist/client/assets/{textarea-822XUY9e.js → textarea-DyhzZ3a0.js} +1 -1
- package/dist/client/assets/{toggle-group-BE9FnkNQ.js → toggle-group-BgXNE5eK.js} +1 -1
- package/dist/client/assets/{tools-list-rU4QiWsU.js → tools-list-D_f871AE.js} +1 -1
- package/dist/client/assets/{tooltip-B7nNUfEo.js → tooltip-CPTWAn4e.js} +1 -1
- package/dist/client/assets/{types-JgiT8Bse.js → types-DznggzE7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Brv8buwj.js → use-ai-providers-CF-WEnpG.js} +1 -1
- package/dist/client/assets/{use-collections-DnqE67dD.js → use-collections-CgnneowC.js} +1 -1
- package/dist/client/assets/{use-connection-Bt8euDxJ.js → use-connection-CXfm8X-F.js} +1 -1
- package/dist/client/assets/{use-copy-DZtO8qAn.js → use-copy-CBLDGR3I.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bkj-wV7o.js → use-create-virtual-mcp-LChuERqV.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DM6z0Ifz.js → use-decopilot-events-BJdfGMiz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CXzN1WRx.js → use-delete-connection-CjzA3_5D.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BLdqgFii.js → use-infinite-scroll-DiAb3Px5.js} +1 -1
- package/dist/client/assets/{use-list-state-CPe9u7jX.js → use-list-state-DjI0vjHj.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DRn5dFY0.js → use-mcp-tools-DFoWakZ9.js} +1 -1
- package/dist/client/assets/{use-members-8qM3iZmd.js → use-members-BRHKFgBf.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CNAJSj47.js → use-navigate-to-agent-XCi2yYhB.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B0Gbq_9m.js → use-org-auth-client-3kBAJUD3.js} +1 -1
- package/dist/client/assets/{use-org-sso-Cu63Lnrr.js → use-org-sso-CcympP7K.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DWPth5GG.js → use-organization-roles-BVvoY3A5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-noixypnE.js → use-organization-settings-fzhI1sm5.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CJrGOgDq.js → use-registry-connections-A44r5oEv.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CDDHN7Kx.js → use-status-sounds-O9ew_8Ll.js} +1 -1
- package/dist/client/assets/{use-tasks-uqKteXuB.js → use-tasks-u-3hCZTJ.js} +1 -1
- package/dist/client/assets/{use-view-mode-DznwpBrl.js → use-view-mode-DlaGUb5K.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DpzvUiG8.js → use-virtual-mcp-DCBMUq-0.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BIyHVMaV.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CxgNWHmG.js +1 -0
- package/dist/client/assets/{user-sP6NNtk7.js → user-CcjBPChW.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-eoGLdH4L.js → view-mode-toggle-DQvv5M2y.js} +1 -1
- package/dist/client/assets/{workflow-BW932QMe.js → workflow-BCEkisit.js} +1 -1
- package/dist/client/assets/workflow-detail-BBy3s-Vk.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- 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/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/slice-ansi/index.d.ts +19 -0
- package/dist/server/node_modules/slice-ansi/index.js +260 -0
- package/dist/server/node_modules/{cli-cursor → slice-ansi}/license +1 -0
- package/dist/server/node_modules/slice-ansi/package.json +59 -0
- package/dist/server/node_modules/slice-ansi/readme.md +54 -0
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-eSe6EudA.js +0 -1
- package/dist/client/assets/badge-CXl7STJk.js +0 -1
- package/dist/client/assets/connection-card-BvXL_NIo.js +0 -1
- package/dist/client/assets/index-C4Q3dCeS.js +0 -1
- package/dist/client/assets/index-D0Ti9-Ih.js +0 -547
- package/dist/client/assets/registry-DtqCQOIM.js +0 -2
- package/dist/client/assets/store-registry-D4mMbvuq.js +0 -2
- package/dist/client/assets/useInfiniteQuery-6G1Nxi-e.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Da9T4bxn.js +0 -1
- package/dist/client/assets/workflow-detail-DH5Ldknq.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/package.json +0 -61
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/cli-cursor/index.d.ts +0 -47
- package/dist/server/node_modules/cli-cursor/index.js +0 -39
- package/dist/server/node_modules/cli-cursor/package.json +0 -49
- package/dist/server/node_modules/cli-cursor/readme.md +0 -51
- 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/{ansi-regex → get-east-asian-width}/license +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
@@ -0,0 +1,260 @@
|
|
|
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,5 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
+
Copyright (c) DC <threedeecee@gmail.com>
|
|
3
4
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
5
|
|
|
5
6
|
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:
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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-)
|