decocms 4.161.2 → 4.162.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-DkjWcZD-.js → AlertCircle-LCxBCJ8n.js} +1 -1
- package/dist/client/assets/{AreaChart-BhkonnRg.js → AreaChart-CVlhdmdg.js} +1 -1
- package/dist/client/assets/{ArrowUp-DAA8boPY.js → ArrowUp-LFRKHLuQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D8TPuRuJ.js → ArrowUpRight-CXMFqfGp.js} +1 -1
- package/dist/client/assets/{Check-De5xpJ0K.js → Check-BCFAcmIa.js} +1 -1
- package/dist/client/assets/{CheckCircle-DeJIdYYq.js → CheckCircle-DpOD9rH0.js} +1 -1
- package/dist/client/assets/{ChevronDown-grOM3xSX.js → ChevronDown-BOvaCVzg.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cyogjxfm.js → ChevronRight-liTksB2U.js} +1 -1
- package/dist/client/assets/{ChevronUp-DIUedEx1.js → ChevronUp-BIqoKMUJ.js} +1 -1
- package/dist/client/assets/{Copy01-DEkTleE-.js → Copy01-ZIMiAxdP.js} +1 -1
- package/dist/client/assets/{CpuChip01-Dsk680MX.js → CpuChip01-ZsmfFXVO.js} +1 -1
- package/dist/client/assets/{DotsVertical-BaMvQPx5.js → DotsVertical-CtO9eku7.js} +1 -1
- package/dist/client/assets/{Eye-DdzBJpW0.js → Eye-BQWYf35S.js} +1 -1
- package/dist/client/assets/{FilterLines-1IFdHyBL.js → FilterLines-CaGojimS.js} +1 -1
- package/dist/client/assets/{HardDrive-CZF0RiCb.js → HardDrive-BRyCfhBH.js} +1 -1
- package/dist/client/assets/{Key01-qFWWm7I0.js → Key01-i8xg5eM3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D3dfvOJc.js → LayoutLeft-Co2_iLon.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BUH7ViZX.js → LinkExternal01-S8dAjzzi.js} +1 -1
- package/dist/client/assets/{LogOut01-GO407ARs.js → LogOut01-D75UBZCc.js} +1 -1
- package/dist/client/assets/{Monitor01-BBb-96JI.js → Monitor01-BAx1QWFz.js} +1 -1
- package/dist/client/assets/{Palette-G-qrN-IT.js → Palette-Bg3YC03V.js} +1 -1
- package/dist/client/assets/{Play-CkvF8PeT.js → Play-VIp82r5R.js} +1 -1
- package/dist/client/assets/{Plus-DolMQAo4.js → Plus-C9hAZmdY.js} +1 -1
- package/dist/client/assets/{SearchLg-CFQzg9fN.js → SearchLg-CqGEHAUM.js} +1 -1
- package/dist/client/assets/{SearchMd-DCX7P32_.js → SearchMd-oPsBet0y.js} +1 -1
- package/dist/client/assets/{Settings02-QFTejQVV.js → Settings02-DNMfHyCE.js} +1 -1
- package/dist/client/assets/{Shield01-BlitQe4N.js → Shield01-DD8XMdYI.js} +1 -1
- package/dist/client/assets/{Star01-D0qlrfqR.js → Star01-y2n-9wTn.js} +1 -1
- package/dist/client/assets/{Stars01-2TnupN6q.js → Stars01-CJ0QEEdc.js} +1 -1
- package/dist/client/assets/{Stars02-DbK2oBak.js → Stars02-B3TWh8au.js} +1 -1
- package/dist/client/assets/{Sun-DVajpqnC.js → Sun-BQEYQLhf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DY4K5cqR.js → SwitchHorizontal01-Dsxsamxe.js} +1 -1
- package/dist/client/assets/{Tool01-CgtDQOgO.js → Tool01-Oew-Vovb.js} +1 -1
- package/dist/client/assets/{Tool02-MSwzSxke.js → Tool02-CJeM1QZT.js} +1 -1
- package/dist/client/assets/{Trash01-DSxLTY0P.js → Trash01-CLRqp8e5.js} +1 -1
- package/dist/client/assets/{TrendUp01-djHA1GEE.js → TrendUp01-Bm1SbHN0.js} +1 -1
- package/dist/client/assets/{Upload01-W82kShpH.js → Upload01-ZVOuhs4w.js} +1 -1
- package/dist/client/assets/{User01-CXTn_TP5.js → User01-BYLEai7_.js} +1 -1
- package/dist/client/assets/{Users01-DQVb_7oO.js → Users01-CS4W313X.js} +1 -1
- package/dist/client/assets/{Users03-DK2c0NaU.js → Users03-CbHaoSh0.js} +1 -1
- package/dist/client/assets/{X-DsGAzzV8.js → X-x99fWfG-.js} +1 -1
- package/dist/client/assets/{XCircle-DuADiFVm.js → XCircle-CeqmuHIK.js} +1 -1
- package/dist/client/assets/{XClose-BOYWq1vy.js → XClose-CCug5seG.js} +1 -1
- package/dist/client/assets/{Zap-Djw_FpdI.js → Zap-DHqCvvjt.js} +1 -1
- package/dist/client/assets/{ZapSquare-C3s49zNL.js → ZapSquare-BKWVL4uR.js} +1 -1
- package/dist/client/assets/{access-gate-BRcWAcEH.js → access-gate-C9PFWoZS.js} +1 -1
- package/dist/client/assets/{add-section-modal-DkaZh9cy.js → add-section-modal-DEjIe-XG.js} +1 -1
- package/dist/client/assets/{agent-icon-D0etPDkN.js → agent-icon-DR5LB4zY.js} +1 -1
- package/dist/client/assets/{agents-list-1nArnMzn.js → agents-list-BvXD__fr.js} +1 -1
- package/dist/client/assets/{ai-providers-XeksWCKW.js → ai-providers-DuMestUx.js} +1 -1
- package/dist/client/assets/{alert-I-_PUhRM.js → alert-DWAFMZWl.js} +1 -1
- package/dist/client/assets/{alert-dialog-B3JnEiZT.js → alert-dialog-DR9_FciR.js} +1 -1
- package/dist/client/assets/{app-editor-BbkYtqwi.js → app-editor-BC28cPFO.js} +1 -1
- package/dist/client/assets/{auth-BkcPrlSH.js → auth-BiMrtm96.js} +1 -1
- package/dist/client/assets/{auth-catchall-JZDu0xii.js → auth-catchall-BNPPREMt.js} +1 -1
- package/dist/client/assets/{auth-entry-D376ANc2.js → auth-entry-CVJjeL2L.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DULW70yu.js → auth-split-layout-CbPO57v5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DZxhoF_0.js → authenticate-and-persist-oauth-B8SUVbil.js} +1 -1
- package/dist/client/assets/{automation-list-row-y5_hhf0p.js → automation-list-row-C5X09Iy0.js} +1 -1
- package/dist/client/assets/{automation-runs-DNqF8MQa.js → automation-runs-i1Rm2H_V.js} +1 -1
- package/dist/client/assets/{automations-BTGiuB5f.js → automations-C48IGjrC.js} +1 -1
- package/dist/client/assets/{avatar-ShBwmidu.js → avatar-CssB4IS0.js} +1 -1
- package/dist/client/assets/{badge-CLGDkcax.js → badge-B-S2iO6e.js} +1 -1
- package/dist/client/assets/{block-document-DKkHndgg.js → block-document-Dotg4_gG.js} +1 -1
- package/dist/client/assets/{brand-context-DidwD5g4.js → brand-context-C331P1EH.js} +1 -1
- package/dist/client/assets/{buckets-BXy6rRmD.js → buckets-zt_s5mti.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Pp9TOqgP.js → bulk-category-panel-DMe3EujP.js} +1 -1
- package/dist/client/assets/{calendar-BcaXLcUe.js → calendar-BO4sgiAT.js} +1 -1
- package/dist/client/assets/{capability-load-error-CqdQPRYW.js → capability-load-error-B2CpoAHd.js} +1 -1
- package/dist/client/assets/{card-C98b87L-.js → card-Dtd81GX2.js} +1 -1
- package/dist/client/assets/{category-editor-BnVhTkaR.js → category-editor-BxdNiDrW.js} +1 -1
- package/dist/client/assets/{chat-context-DAYV5YFw.js → chat-context-_ugV5jB0.js} +1 -1
- package/dist/client/assets/{checkbox-hx3qwtU4.js → checkbox-DyL6jqNP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CSA4lo7W.js → cli-auth-success-CBllfpZy.js} +1 -1
- package/dist/client/assets/{collection-detail-Dnt_8ShC.js → collection-detail-CJ-IT8lZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-D7ZFqgmc.js → collection-display-button-rIB9x9ex.js} +1 -1
- package/dist/client/assets/{collection-search-BujcF3uz.js → collection-search-DDaBoxpd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dxzi1B76.js → collection-table-wrapper-DvDVvjdJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-1Doa_k8q.js → collection-tabs-6ZZEGxA4.js} +1 -1
- package/dist/client/assets/{command-DTif1pCh.js → command-B0sPw5D_.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CkLAXxz7.js → commerce-onboarding-CA2gNg1f.js} +1 -1
- package/dist/client/assets/{companions-core-DyTSbEDy.js → companions-core-bB24Ott2.js} +1 -1
- package/dist/client/assets/{connect-BQJsmY0Z.js → connect-dTZGddot.js} +1 -1
- package/dist/client/assets/{connection-DT5hjP5L.js → connection-B2NXk64E.js} +1 -1
- package/dist/client/assets/{connection-card-BEnBoaJQ.js → connection-card-D4yqc7qp.js} +1 -1
- package/dist/client/assets/{connection-detail-3HClPo6D.js → connection-detail-BNv09xz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D1M4SXKF.js → connection-form-helpers-Dp2JRmtQ.js} +1 -1
- package/dist/client/assets/{connections-ok4_lFFO.js → connections-Dkp0iGo0.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Z3wBsgik.js → decopilot-sse-pool-tfgrlddF.js} +1 -1
- package/dist/client/assets/{dialog-B1XOtEFa.js → dialog-DDV9hxrK.js} +1 -1
- package/dist/client/assets/{domain-settings-BX-8JSGW.js → domain-settings-Cj5IWEJw.js} +1 -1
- package/dist/client/assets/{drawer-Bindqbrh.js → drawer-CLLhxT0A.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B2utwqdh.js → dropdown-menu-DFyP7pd-.js} +1 -1
- package/dist/client/assets/{empty-state-ClLU6296.js → empty-state-C8MJdBfO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DSg0AjMi.js → extract-connection-data-GzPEHPIn.js} +1 -1
- package/dist/client/assets/{file-explorer-5gFVDcag.js → file-explorer-DcVPQshc.js} +1 -1
- package/dist/client/assets/{form-ujVSU6EU.js → form-dL4WOA5T.js} +1 -1
- package/dist/client/assets/{general-BgWx-5sJ.js → general-6LKGbmPX.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CuyTuY6S.js → github-repo-picker-BYme-j8T.js} +1 -1
- package/dist/client/assets/{hooks-BSzBu2tD.js → hooks-B9cPFqGD.js} +1 -1
- package/dist/client/assets/{index-Cx7SoZn_.js → index-60s5nmmz.js} +1 -1
- package/dist/client/assets/{index-DLYm4Sa-.js → index-BBd4FRXS.js} +1 -1
- package/dist/client/assets/{index-BwQT5Hhi.js → index-By7P3hhU.js} +1 -1
- package/dist/client/assets/{index-Bhxc2Isb.js → index-D2YLDCkn.js} +1 -1
- package/dist/client/assets/{index-B6q32zYz.js → index-DeVgWfhn.js} +1 -1
- package/dist/client/assets/{index-CBD4gVZR.js → index-Y9ucfh4p.js} +1 -1
- package/dist/client/assets/{index-DvtCTmmx.js → index-ZADPN4om.js} +3 -3
- package/dist/client/assets/{index-DyrZQfe8.js → index-jG87093U.js} +1 -1
- package/dist/client/assets/{index-WEdfBcak.js → index-kfiIPtrP.js} +3 -3
- package/dist/client/assets/{index-PxBIb6oF.js → index-pBoO89BO.js} +1 -1
- package/dist/client/assets/{index-redirect-CzO62sP0.js → index-redirect-CfBCt2ky.js} +1 -1
- package/dist/client/assets/{index-DJEeCuky.js → index-u1ajTG-j.js} +5 -5
- package/dist/client/assets/{input-psV6HQEl.js → input-BjlpMnRZ.js} +1 -1
- package/dist/client/assets/{integration-icon-DjHXNUPP.js → integration-icon-CI602PfH.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CB5VBjiU.js → invite-member-dialog-phqD0XUF.js} +1 -1
- package/dist/client/assets/{label-6xyucx-s.js → label-CSNgMmTA.js} +1 -1
- package/dist/client/assets/{layout-CBOg45xC.js → layout-BBpcfaXL.js} +1 -1
- package/dist/client/assets/{login-Cxn9KXio.js → login-DE_463fT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CKixkOtS.js → mcp-oauth-CxvR2V5h.js} +1 -1
- package/dist/client/assets/{members-CL8x8Krr.js → members-CeatJR1m.js} +1 -1
- package/dist/client/assets/{monaco-editor-DJpDPKHP.js → monaco-editor-zuz4s4Wv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DPROMALt.js → monitoring-stats-row-krDWXB2t.js} +1 -1
- package/dist/client/assets/{multi-select-Bh_v-l_m.js → multi-select-CMyA49eR.js} +1 -1
- package/dist/client/assets/{oauth-callback-DutuJ6V_.js → oauth-callback-C9jDdjjs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C4S55pOq.js → oauth-callback-ai-provider-CY3QZi7E.js} +1 -1
- package/dist/client/assets/{onboarding-DuerzaiT.js → onboarding-C3hOUjMo.js} +1 -1
- package/dist/client/assets/{org-layout-of8A1jAC.js → org-layout-XwuOFG3d.js} +1 -1
- package/dist/client/assets/{organization-choice-B3rPtstm.js → organization-choice-BM-XKanD.js} +1 -1
- package/dist/client/assets/{orgs-3twuRrYh.js → orgs-DmL2XQRI.js} +1 -1
- package/dist/client/assets/{page-seo-form-BY3nYdel.js → page-seo-form-0xV6qNbu.js} +1 -1
- package/dist/client/assets/{popover-BGrrSZ8M.js → popover-EE72qx8A.js} +1 -1
- package/dist/client/assets/{post-editor-C4XyjEMt.js → post-editor-BuHJ7HnN.js} +1 -1
- package/dist/client/assets/{primitives-CbLkj1JF.js → primitives-ChQICk_y.js} +1 -1
- package/dist/client/assets/{profile-QV2jNue9.js → profile-B0SoUvj9.js} +1 -1
- package/dist/client/assets/project-app-view-YTx3iCq1.js +1 -0
- package/dist/client/assets/record-editor-M7bvrOuK.js +1 -0
- package/dist/client/assets/{redirect-editor-s6PMTrlX.js → redirect-editor-_6dVoePs.js} +1 -1
- package/dist/client/assets/registry-fNrz9Fbw.js +2 -0
- package/dist/client/assets/{registry-layout-DO-5mJZI.js → registry-layout-OS_nbWHC.js} +1 -1
- package/dist/client/assets/{reports-CwFf2f6b.js → reports-B3VBQs5Y.js} +1 -1
- package/dist/client/assets/{require-capability-BeOopecx.js → require-capability-CieeBdjs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BFWyMRf5.js → required-auth-layout-BDIyJAhL.js} +1 -1
- package/dist/client/assets/{reset-password-C_-lQlSH.js → reset-password-CpG0cI8F.js} +1 -1
- package/dist/client/assets/{roles-D_oBaje3.js → roles-DlOhY5JD.js} +1 -1
- package/dist/client/assets/{search-input-Bfg6VxQW.js → search-input-cF6ciAVZ.js} +1 -1
- package/dist/client/assets/{secrets-k2GFZysm.js → secrets-Dh26lP0l.js} +1 -1
- package/dist/client/assets/{sections-editor-BujDptuZ.js → sections-editor-HbcASmu4.js} +1 -1
- package/dist/client/assets/{select-CWMyLghp.js → select-ceaThfRJ.js} +1 -1
- package/dist/client/assets/{select-model-CXvd3jI3.js → select-model-CDLnPEtQ.js} +1 -1
- package/dist/client/assets/{self-tool-result-BpCEaqPw.js → self-tool-result-CaPtQwDV.js} +1 -1
- package/dist/client/assets/{seo-editor-Cxh8JRxE.js → seo-editor-CoW5u7nN.js} +1 -1
- package/dist/client/assets/{settings-layout-D-wc3B9V.js → settings-layout-CM35yCas.js} +1 -1
- package/dist/client/assets/{settings-section-Z9R6HthO.js → settings-section-BJKYi71q.js} +1 -1
- package/dist/client/assets/{shell-controls-DJv-74jc.js → shell-controls-BLKKFd-i.js} +1 -1
- package/dist/client/assets/{shell-layout-C7_zhx2J.js → shell-layout-Cem8gTbL.js} +1 -1
- package/dist/client/assets/{sidebar-CGksZnes.js → sidebar-4JG4Ky1v.js} +1 -1
- package/dist/client/assets/{skeleton-BpfjGmFh.js → skeleton-QaXxQA1G.js} +1 -1
- package/dist/client/assets/{spinner-D0HY4fdO.js → spinner-CyUVcOie.js} +1 -1
- package/dist/client/assets/{sso-Bz5k2CGO.js → sso-CCHd62CO.js} +1 -1
- package/dist/client/assets/{store-DT_Iylxw.js → store-lf3dlAB1.js} +1 -1
- package/dist/client/assets/store-registry-BTA3Me55.js +2 -0
- package/dist/client/assets/{studio-tools-ChooDZCt.js → studio-tools-CUWFqlTh.js} +1 -1
- package/dist/client/assets/{switch-BmoPsk_L.js → switch-1Vfz3uSg.js} +1 -1
- package/dist/client/assets/{tab-id-DpWn0fbM.js → tab-id-CI2T4n3l.js} +1 -1
- package/dist/client/assets/{table-BluVU23Z.js → table-BQAbKOYa.js} +1 -1
- package/dist/client/assets/{tabs-C9Dri0XB.js → tabs-qagPrFeg.js} +1 -1
- package/dist/client/assets/{textarea-CMhJIDqb.js → textarea-C3WLqu3y.js} +1 -1
- package/dist/client/assets/{toggle-group-BK4yx2ic.js → toggle-group-NXghphbz.js} +1 -1
- package/dist/client/assets/{toolbar-CJN41Q0U.js → toolbar-ZE2CENTf.js} +1 -1
- package/dist/client/assets/{tooltip-DCC06XNr.js → tooltip-CiyZj9MW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CTGRuhSY.js → use-ai-providers-B6AoVltc.js} +1 -1
- package/dist/client/assets/{use-automations-CTEnO1Zu.js → use-automations-CiQS3Pmq.js} +1 -1
- package/dist/client/assets/{use-autosave-CgHGIUlv.js → use-autosave-DE9X8qzD.js} +1 -1
- package/dist/client/assets/{use-capability-BTlnzwER.js → use-capability-DX60Hp0S.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Dg1-zfZ4.js → use-clock-tick-Q8CgV2VU.js} +1 -1
- package/dist/client/assets/{use-connection-BTIHIL2U.js → use-connection-c87Xz8U-.js} +1 -1
- package/dist/client/assets/{use-copy-Bkx7pWID.js → use-copy-BPhBM3Oi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ClJmipur.js → use-create-virtual-mcp-BnZL3DPb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dp_dA5sI.js → use-debounced-autosave-BmT6bwNL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Dx_Znjq0.js → use-debounced-value-DViZw7k7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CnnQh7bH.js → use-deco-credits-DJJXk8t9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B84Jbaf1.js → use-decopilot-events-DuMl-BWe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Dd7d9SGg.js → use-delete-connection--jtVGLkv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CElXlSvL.js → use-deployment-admin-Cr_7c4Yl.js} +1 -1
- package/dist/client/assets/{use-file-configs-DUlhqIgH.js → use-file-configs-CwjnQywn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CRM4xUSx.js → use-infinite-scroll-8IyahDR0.js} +1 -1
- package/dist/client/assets/{use-join-requests-B0JwpKM9.js → use-join-requests-tHCwhSs3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DH8oUnNS.js → use-mcp-auth-status-sjpR15R6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C78T1evw.js → use-mcp-client-BmnPrlCp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-qcP_UOWU.js → use-mcp-tools-B9U_ZOEs.js} +1 -1
- package/dist/client/assets/{use-members-5U5mLxdD.js → use-members-BglXgqfG.js} +1 -1
- package/dist/client/assets/{use-mobile-BufL0gpx.js → use-mobile-ZF_jSfPp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-bcvHJsmR.js → use-navigate-to-agent-DIeI8ULY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B93vTKrZ.js → use-org-auth-client-C-GSCd--.js} +1 -1
- package/dist/client/assets/{use-org-sso-BpALHDeh.js → use-org-sso-BawqtY1O.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CHjz2_ga.js → use-organization-roles-BfAcHhLm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rcLpLxq6.js → use-organization-settings-DcixnwK-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-XjUGFr5z.js → use-registry-connections-VIMCCdEN.js} +1 -1
- package/dist/client/assets/{use-secrets-DVGBRr0e.js → use-secrets-DN6xkhJI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CNPY1kJ-.js → use-status-sounds-CVssdpKX.js} +1 -1
- package/dist/client/assets/{use-tags-d-ihZKch.js → use-tags-OVuXWbIz.js} +1 -1
- package/dist/client/assets/{use-view-mode-CxLEvfyI.js → use-view-mode-BdkdIEp5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-tTUO8PD5.js → use-virtual-mcp-BIQdKSoy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-QTu-xaep.js +1 -0
- package/dist/client/assets/{useQueries-CX-pbcRo.js → useQueries-D2CKhSr2.js} +1 -1
- package/dist/client/assets/{useRouterState-DM9ViZSm.js → useRouterState-B0tRZSRp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_f32It26.js +1 -0
- package/dist/client/assets/{users-hps1B13C.js → users-Xgmv3XAu.js} +1 -1
- package/dist/client/assets/{variant-calendar--g4p8stV.js → variant-calendar-CHbHmJQD.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Cn3ICdtv.js → view-mode-toggle-DTYJdfuz.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +766 -766
- package/dist/server/server.js +576 -576
- package/package.json +2 -4
- package/dist/client/assets/project-app-view-CZZgc1s8.js +0 -1
- package/dist/client/assets/record-editor-Bk_Re_fD.js +0 -1
- package/dist/client/assets/registry-BTKEcIS_.js +0 -2
- package/dist/client/assets/store-registry-DwAm5lvb.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C1ye6sqf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CiYM_Dv6.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +0 -373
- package/dist/server/node_modules/@resvg/resvg-js/README.md +0 -314
- package/dist/server/node_modules/@resvg/resvg-js/index.js +0 -23
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/package.json +0 -152
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +0 -20
- package/dist/server/node_modules/@shuding/opentype.js/README.md +0 -9
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +0 -272
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +0 -84
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +0 -64
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +0 -96
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +0 -11655
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +0 -2
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +0 -11639
- package/dist/server/node_modules/@shuding/opentype.js/package.json +0 -73
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +0 -158
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +0 -243
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +0 -16
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +0 -1032
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +0 -74
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +0 -83
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +0 -483
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +0 -40
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +0 -433
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +0 -274
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +0 -150
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +0 -3062
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +0 -5
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +0 -357
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +0 -375
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +0 -628
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +0 -212
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +0 -77
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +0 -447
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +0 -215
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +0 -1156
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +0 -145
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +0 -71
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +0 -62
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +0 -349
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +0 -146
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +0 -251
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +0 -35
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +0 -27
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +0 -51
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +0 -69
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +0 -33
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +0 -32
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +0 -30
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +0 -680
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +0 -65
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +0 -522
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +0 -976
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +0 -17
- package/dist/server/node_modules/base64-js/.travis.yml +0 -5
- package/dist/server/node_modules/base64-js/LICENSE.MIT +0 -21
- package/dist/server/node_modules/base64-js/README.md +0 -31
- package/dist/server/node_modules/base64-js/bench/bench.js +0 -19
- package/dist/server/node_modules/base64-js/lib/b64.js +0 -124
- package/dist/server/node_modules/base64-js/package.json +0 -34
- package/dist/server/node_modules/base64-js/test/convert.js +0 -51
- package/dist/server/node_modules/base64-js/test/url-safe.js +0 -18
- package/dist/server/node_modules/camelize/.eslintrc +0 -24
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +0 -12
- package/dist/server/node_modules/camelize/CHANGELOG.md +0 -64
- package/dist/server/node_modules/camelize/LICENSE +0 -18
- package/dist/server/node_modules/camelize/README.md +0 -81
- package/dist/server/node_modules/camelize/example/camel.js +0 -12
- package/dist/server/node_modules/camelize/index.js +0 -61
- package/dist/server/node_modules/camelize/package.json +0 -84
- package/dist/server/node_modules/camelize/test/camel.js +0 -48
- package/dist/server/node_modules/color-name/LICENSE +0 -8
- package/dist/server/node_modules/color-name/README.md +0 -11
- package/dist/server/node_modules/color-name/index.js +0 -152
- package/dist/server/node_modules/color-name/package.json +0 -28
- package/dist/server/node_modules/css-background-parser/LICENSE +0 -22
- package/dist/server/node_modules/css-background-parser/README.md +0 -149
- package/dist/server/node_modules/css-background-parser/index.js +0 -162
- package/dist/server/node_modules/css-background-parser/package.json +0 -19
- package/dist/server/node_modules/css-box-shadow/README.md +0 -27
- package/dist/server/node_modules/css-box-shadow/index.js +0 -64
- package/dist/server/node_modules/css-box-shadow/package.json +0 -14
- package/dist/server/node_modules/css-box-shadow/test.js +0 -204
- package/dist/server/node_modules/css-color-keywords/LICENSE +0 -15
- package/dist/server/node_modules/css-color-keywords/README.md +0 -47
- package/dist/server/node_modules/css-color-keywords/colors.json +0 -148
- package/dist/server/node_modules/css-color-keywords/index.js +0 -3
- package/dist/server/node_modules/css-color-keywords/package.json +0 -27
- package/dist/server/node_modules/css-gradient-parser/LICENSE +0 -21
- package/dist/server/node_modules/css-gradient-parser/README.md +0 -75
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +0 -2
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +0 -2
- package/dist/server/node_modules/css-gradient-parser/package.json +0 -54
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +0 -21
- package/dist/server/node_modules/css-to-react-native/README.md +0 -115
- package/dist/server/node_modules/css-to-react-native/index.js +0 -886
- package/dist/server/node_modules/css-to-react-native/package.json +0 -65
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +0 -85
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +0 -136
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +0 -83
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +0 -31
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +0 -122
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +0 -22
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +0 -117
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +0 -43
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +0 -15
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +0 -8
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +0 -204
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +0 -13
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +0 -103
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +0 -30
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +0 -55
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +0 -132
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/index.js +0 -90
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +0 -75
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +0 -12
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +0 -11
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +0 -65
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +0 -63
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +0 -20
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +0 -14
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +0 -77
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +0 -24
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +0 -18
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +0 -10
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +0 -99
- package/dist/server/node_modules/hex-rgb/index.js +0 -47
- package/dist/server/node_modules/hex-rgb/license +0 -9
- package/dist/server/node_modules/hex-rgb/package.json +0 -39
- package/dist/server/node_modules/hex-rgb/readme.md +0 -86
- package/dist/server/node_modules/linebreak/LICENSE +0 -21
- package/dist/server/node_modules/linebreak/dist/main.cjs +0 -1369
- package/dist/server/node_modules/linebreak/dist/module.mjs +0 -1368
- package/dist/server/node_modules/linebreak/package.json +0 -57
- package/dist/server/node_modules/linebreak/readme.md +0 -62
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +0 -54
- package/dist/server/node_modules/parse-css-color/LICENSE +0 -21
- package/dist/server/node_modules/parse-css-color/README.md +0 -110
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +0 -171
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +0 -167
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +0 -7
- package/dist/server/node_modules/parse-css-color/package.json +0 -55
- package/dist/server/node_modules/postcss-value-parser/LICENSE +0 -22
- package/dist/server/node_modules/postcss-value-parser/README.md +0 -263
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +0 -28
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +0 -321
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +0 -48
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +0 -120
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +0 -22
- package/dist/server/node_modules/postcss-value-parser/package.json +0 -58
- package/dist/server/node_modules/satori/LICENSE +0 -373
- package/dist/server/node_modules/satori/README.md +0 -516
- package/dist/server/node_modules/satori/dist/index.cjs +0 -8
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/index.js +0 -8
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +0 -8
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/standalone.js +0 -8
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/package.json +0 -149
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +0 -21
- package/dist/server/node_modules/tiny-inflate/index.js +0 -375
- package/dist/server/node_modules/tiny-inflate/package.json +0 -28
- package/dist/server/node_modules/tiny-inflate/readme.md +0 -31
- package/dist/server/node_modules/tiny-inflate/test/index.js +0 -75
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +0 -199
- package/dist/server/node_modules/unicode-trie/LICENSE +0 -8
- package/dist/server/node_modules/unicode-trie/README.md +0 -77
- package/dist/server/node_modules/unicode-trie/builder.js +0 -966
- package/dist/server/node_modules/unicode-trie/index.js +0 -136
- package/dist/server/node_modules/unicode-trie/package.json +0 -27
- package/dist/server/node_modules/unicode-trie/swap.js +0 -25
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +0 -1
- package/dist/server/node_modules/unicode-trie/test/test.js +0 -243
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# css-box-shadow
|
|
3
|
-
|
|
4
|
-
CSS box shadow parser and stringifier
|
|
5
|
-
|
|
6
|
-
```sh
|
|
7
|
-
npm i css-box-shadow
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
```js
|
|
11
|
-
const { parse, stringify } = require('css-box-shadow')
|
|
12
|
-
|
|
13
|
-
// parse a CSS string value into an array of objects
|
|
14
|
-
const parsed = parse('0 0 0 32px tomato')
|
|
15
|
-
// [{ inset: false,
|
|
16
|
-
// offsetX: 0,
|
|
17
|
-
// offsetY: 0,
|
|
18
|
-
// blurRadius: 0,
|
|
19
|
-
// spreadRadius: 32,
|
|
20
|
-
// color: 'tomato' }]
|
|
21
|
-
|
|
22
|
-
// convert an array of objects into a box-shadow string value
|
|
23
|
-
const value = stringify(parsed)
|
|
24
|
-
// '0 0 0 32px tomato'
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
MIT License
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const VALUES_REG = /,(?![^\(]*\))/
|
|
2
|
-
const PARTS_REG = /\s(?![^(]*\))/
|
|
3
|
-
const LENGTH_REG = /^[0-9]+[a-zA-Z%]+?$/
|
|
4
|
-
|
|
5
|
-
const parseValue = str => {
|
|
6
|
-
const parts = str.split(PARTS_REG)
|
|
7
|
-
const inset = parts.includes('inset')
|
|
8
|
-
const last = parts.slice(-1)[0]
|
|
9
|
-
const color = !isLength(last) ? last : undefined
|
|
10
|
-
|
|
11
|
-
const nums = parts
|
|
12
|
-
.filter(n => n !== 'inset')
|
|
13
|
-
.filter(n => n !== color)
|
|
14
|
-
.map(toNum)
|
|
15
|
-
const [ offsetX, offsetY, blurRadius, spreadRadius ] = nums
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
inset,
|
|
19
|
-
offsetX,
|
|
20
|
-
offsetY,
|
|
21
|
-
blurRadius,
|
|
22
|
-
spreadRadius,
|
|
23
|
-
color
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const stringifyValue = obj => {
|
|
28
|
-
const {
|
|
29
|
-
inset,
|
|
30
|
-
offsetX = 0,
|
|
31
|
-
offsetY = 0,
|
|
32
|
-
blurRadius = 0,
|
|
33
|
-
spreadRadius,
|
|
34
|
-
color
|
|
35
|
-
} = obj || {}
|
|
36
|
-
|
|
37
|
-
return [
|
|
38
|
-
(inset ? 'inset' : null),
|
|
39
|
-
offsetX,
|
|
40
|
-
offsetY,
|
|
41
|
-
blurRadius ,
|
|
42
|
-
spreadRadius,
|
|
43
|
-
color
|
|
44
|
-
].filter(v => v !== null && v !== undefined)
|
|
45
|
-
.map(toPx)
|
|
46
|
-
.map(s => ('' + s).trim())
|
|
47
|
-
.join(' ')
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const isLength = v => v === '0' || LENGTH_REG.test(v)
|
|
51
|
-
const toNum = v => {
|
|
52
|
-
if (!/px$/.test(v) && v !== '0') return v
|
|
53
|
-
const n = parseFloat(v)
|
|
54
|
-
return !isNaN(n) ? n : v
|
|
55
|
-
}
|
|
56
|
-
const toPx = n => typeof n === 'number' && n !== 0 ? (n + 'px') : n
|
|
57
|
-
|
|
58
|
-
const parse = str => str.split(VALUES_REG).map(s => s.trim()).map(parseValue)
|
|
59
|
-
const stringify = arr => arr.map(stringifyValue).join(', ')
|
|
60
|
-
|
|
61
|
-
module.exports = {
|
|
62
|
-
parse,
|
|
63
|
-
stringify
|
|
64
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "css-box-shadow",
|
|
3
|
-
"version": "1.0.0-3",
|
|
4
|
-
"description": "CSS box-shadow parser and stringifier",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "ava"
|
|
8
|
-
},
|
|
9
|
-
"author": "Brent Jackson",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"ava": "^0.19.1"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
const test = require('ava')
|
|
2
|
-
const { stringify, parse } = require('./index')
|
|
3
|
-
|
|
4
|
-
test('exports functions', t => {
|
|
5
|
-
t.is(typeof stringify, 'function')
|
|
6
|
-
t.is(typeof parse, 'function')
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
test('parse returns an array of objects', t => {
|
|
10
|
-
const arr = parse('1px')
|
|
11
|
-
t.true(Array.isArray(arr))
|
|
12
|
-
t.is(typeof arr[0], 'object')
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
test('parse gets full values', t => {
|
|
16
|
-
const [ obj ] = parse('1px 2px 3px 4px rgba(5, 6, 7, .5)')
|
|
17
|
-
t.is(obj.inset, false)
|
|
18
|
-
t.is(obj.offsetX, 1)
|
|
19
|
-
t.is(obj.offsetY, 2)
|
|
20
|
-
t.is(obj.blurRadius, 3)
|
|
21
|
-
t.is(obj.spreadRadius, 4)
|
|
22
|
-
t.is(obj.color, 'rgba(5, 6, 7, .5)')
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
test('parse gets values without spread radius', t => {
|
|
26
|
-
const [ obj ] = parse('1px 2px 3px rgba(5, 6, 7, .5)')
|
|
27
|
-
t.is(obj.offsetX, 1)
|
|
28
|
-
t.is(obj.offsetY, 2)
|
|
29
|
-
t.is(obj.blurRadius, 3)
|
|
30
|
-
t.is(obj.spreadRadius, undefined)
|
|
31
|
-
t.is(obj.color, 'rgba(5, 6, 7, .5)')
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
test('parse gets values without blur radius', t => {
|
|
35
|
-
const [ obj ] = parse('1px 2px rgba(5, 6, 7, .5)')
|
|
36
|
-
t.is(obj.offsetX, 1)
|
|
37
|
-
t.is(obj.offsetY, 2)
|
|
38
|
-
t.is(obj.blurRadius, undefined)
|
|
39
|
-
t.is(obj.spreadRadius, undefined)
|
|
40
|
-
t.is(obj.color, 'rgba(5, 6, 7, .5)')
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
test('parse gets inset values ', t => {
|
|
44
|
-
const [ obj ] = parse('inset 1px 2px 3px 4px rgba(5, 6, 7, .5)')
|
|
45
|
-
t.is(obj.inset, true)
|
|
46
|
-
t.is(obj.offsetX, 1)
|
|
47
|
-
t.is(obj.offsetY, 2)
|
|
48
|
-
t.is(obj.blurRadius, 3)
|
|
49
|
-
t.is(obj.spreadRadius, 4)
|
|
50
|
-
t.is(obj.color, 'rgba(5, 6, 7, .5)')
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
test('parse gets hsla values ', t => {
|
|
54
|
-
const [ obj ] = parse('1px 2px 3px 4px hsla(160, 100%, 50%, .5)')
|
|
55
|
-
t.is(obj.offsetX, 1)
|
|
56
|
-
t.is(obj.offsetY, 2)
|
|
57
|
-
t.is(obj.blurRadius, 3)
|
|
58
|
-
t.is(obj.spreadRadius, 4)
|
|
59
|
-
t.is(obj.color, 'hsla(160, 100%, 50%, .5)')
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
test('parse gets hex values ', t => {
|
|
63
|
-
const [ obj ] = parse('1px 2px 3px 4px #f00')
|
|
64
|
-
t.is(obj.offsetX, 1)
|
|
65
|
-
t.is(obj.offsetY, 2)
|
|
66
|
-
t.is(obj.blurRadius, 3)
|
|
67
|
-
t.is(obj.spreadRadius, 4)
|
|
68
|
-
t.is(obj.color, '#f00')
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
test('parse handles multiple shadows', t => {
|
|
72
|
-
const arr = parse('0 0 0 32px tomato, 0 0 0 16px rgba(0, 0, 0, .25)')
|
|
73
|
-
const [ a, b ] = arr
|
|
74
|
-
t.is(arr.length, 2)
|
|
75
|
-
t.is(a.inset, false)
|
|
76
|
-
t.is(a.offsetX, 0)
|
|
77
|
-
t.is(a.offsetY, 0)
|
|
78
|
-
t.is(a.blurRadius, 0)
|
|
79
|
-
t.is(a.spreadRadius, 32)
|
|
80
|
-
t.is(a.color, 'tomato')
|
|
81
|
-
t.is(b.inset, false)
|
|
82
|
-
t.is(b.offsetX, 0)
|
|
83
|
-
t.is(b.offsetY, 0)
|
|
84
|
-
t.is(b.blurRadius, 0)
|
|
85
|
-
t.is(b.spreadRadius, 16)
|
|
86
|
-
t.is(b.color, 'rgba(0, 0, 0, .25)')
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
test('parse does not convert em values to numbers', t => {
|
|
90
|
-
const [ obj ] = parse('0 .2em 1em tomato')
|
|
91
|
-
t.is(obj.offsetX, 0)
|
|
92
|
-
t.is(obj.offsetY, '.2em')
|
|
93
|
-
t.is(obj.blurRadius, '1em')
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
test('parse properly handles zero values', t => {
|
|
97
|
-
const [ a ] = parse('0 0 0 4px tomato')
|
|
98
|
-
const [ b ] = parse('0 0 0 4px')
|
|
99
|
-
const [ c ] = parse('0 0 0 0')
|
|
100
|
-
t.is(a.offsetX, 0)
|
|
101
|
-
t.is(a.offsetY, 0)
|
|
102
|
-
t.is(a.blurRadius, 0)
|
|
103
|
-
t.is(a.spreadRadius, 4)
|
|
104
|
-
t.is(a.color, 'tomato')
|
|
105
|
-
t.is(b.offsetX, 0)
|
|
106
|
-
t.is(b.offsetY, 0)
|
|
107
|
-
t.is(b.blurRadius, 0)
|
|
108
|
-
t.is(b.spreadRadius, 4)
|
|
109
|
-
t.is(b.color, undefined)
|
|
110
|
-
t.is(c.offsetX, 0)
|
|
111
|
-
t.is(c.offsetY, 0)
|
|
112
|
-
t.is(c.blurRadius, 0)
|
|
113
|
-
t.is(c.spreadRadius, 0)
|
|
114
|
-
t.is(c.color, undefined)
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
test('parse does not interpret numbers as color', t => {
|
|
118
|
-
const [ obj ] = parse('0 0 0 4px')
|
|
119
|
-
t.is(obj.color, undefined)
|
|
120
|
-
t.is(obj.spreadRadius, 4)
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
test('stringify returns a string', t => {
|
|
124
|
-
const str = stringify([])
|
|
125
|
-
t.is(typeof str, 'string')
|
|
126
|
-
})
|
|
127
|
-
|
|
128
|
-
test('stringify returns a box-shadow value', t => {
|
|
129
|
-
const str = stringify([
|
|
130
|
-
{
|
|
131
|
-
offsetX: 0,
|
|
132
|
-
offsetY: 0,
|
|
133
|
-
blurRadius: 0,
|
|
134
|
-
spreadRadius: '32px',
|
|
135
|
-
color: 'tomato'
|
|
136
|
-
}
|
|
137
|
-
])
|
|
138
|
-
t.is(str, '0 0 0 32px tomato')
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
test('stringify handles multiple values', t => {
|
|
142
|
-
const str = stringify([
|
|
143
|
-
{
|
|
144
|
-
offsetX: 0,
|
|
145
|
-
offsetY: 0,
|
|
146
|
-
blurRadius: 0,
|
|
147
|
-
spreadRadius: '32px',
|
|
148
|
-
color: 'tomato'
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
inset: true,
|
|
152
|
-
offsetX: 0,
|
|
153
|
-
offsetY: 0,
|
|
154
|
-
blurRadius: '4px',
|
|
155
|
-
color: 'lime'
|
|
156
|
-
}
|
|
157
|
-
])
|
|
158
|
-
t.is(str, '0 0 0 32px tomato, inset 0 0 4px lime')
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
test('stringify converts numbers to pixels', t => {
|
|
162
|
-
const str = stringify([
|
|
163
|
-
{
|
|
164
|
-
offsetX: 4,
|
|
165
|
-
offsetY: 8,
|
|
166
|
-
blurRadius: 0,
|
|
167
|
-
color: 'tomato'
|
|
168
|
-
}
|
|
169
|
-
])
|
|
170
|
-
t.is(str, '4px 8px 0 tomato')
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
test('stringify handles partial values', t => {
|
|
174
|
-
const a = stringify([
|
|
175
|
-
{
|
|
176
|
-
spreadRadius: 4,
|
|
177
|
-
color: 'tomato'
|
|
178
|
-
}
|
|
179
|
-
])
|
|
180
|
-
const b = stringify([
|
|
181
|
-
{
|
|
182
|
-
offsetY: 4,
|
|
183
|
-
spreadRadius: 4,
|
|
184
|
-
color: 'tomato'
|
|
185
|
-
}
|
|
186
|
-
])
|
|
187
|
-
const c = stringify([
|
|
188
|
-
{
|
|
189
|
-
offsetX: 4,
|
|
190
|
-
blurRadius: 3,
|
|
191
|
-
color: 'tomato'
|
|
192
|
-
}
|
|
193
|
-
])
|
|
194
|
-
t.is(a, '0 0 0 4px tomato')
|
|
195
|
-
t.is(b, '0 4px 0 4px tomato')
|
|
196
|
-
t.is(c, '4px 0 3px tomato')
|
|
197
|
-
})
|
|
198
|
-
|
|
199
|
-
test('works both ways', t => {
|
|
200
|
-
const str = '0 0 0 32px tomato'
|
|
201
|
-
const arr = parse(str)
|
|
202
|
-
const b = stringify(arr)
|
|
203
|
-
t.is(str, b)
|
|
204
|
-
})
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017, Jakob Krigovsky
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# css-color-keywords
|
|
2
|
-
|
|
3
|
-
> A list of all CSS color keywords.
|
|
4
|
-
|
|
5
|
-
This list contains all CSS color keywords specified in:
|
|
6
|
-
|
|
7
|
-
- [CSS Level 1](https://www.w3.org/TR/CSS1/#color-units)
|
|
8
|
-
- [CSS Level 2 (Revision 1)](https://www.w3.org/TR/CSS2/syndata.html#value-def-color)
|
|
9
|
-
- [CSS Color Module Level 3](https://drafts.csswg.org/css-color-3/#colorunits)
|
|
10
|
-
- [CSS Color Module Level 4](https://drafts.csswg.org/css-color/#named-colors)
|
|
11
|
-
|
|
12
|
-
[See MDN for an overview of all colors](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords).
|
|
13
|
-
|
|
14
|
-
## Installation
|
|
15
|
-
|
|
16
|
-
```sh
|
|
17
|
-
$ npm install css-color-keywords --save
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
const cssColorKeywords = require('css-color-keywords')
|
|
24
|
-
|
|
25
|
-
cssColorKeywords.black // #000000
|
|
26
|
-
cssColorKeywords.orange // #ffa500
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Returns an object where each key is a keyword (e.g. `black`) and the value is
|
|
30
|
-
the keyword’s RGB hex value (e.g. `#000000`).
|
|
31
|
-
|
|
32
|
-
Even though CSS color keywords are case-insensitive, this list only contains
|
|
33
|
-
lowercase keywords (and returns lowercase RGB hex values).
|
|
34
|
-
|
|
35
|
-
## Changelog
|
|
36
|
-
|
|
37
|
-
This project follows [Semantic Versioning 2](http://semver.org/).
|
|
38
|
-
|
|
39
|
-
This list aims to always include all CSS color keywords. If new keywords are
|
|
40
|
-
specified, only the *minor* version will be bumped.
|
|
41
|
-
|
|
42
|
-
- v1.0.0 (2017-01-20): Initial release
|
|
43
|
-
|
|
44
|
-
## License
|
|
45
|
-
|
|
46
|
-
`css-color-keywords` is licensed under the ISC license.
|
|
47
|
-
See [`LICENSE`](LICENSE) for the full license.
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"black": "#000000",
|
|
3
|
-
"silver": "#c0c0c0",
|
|
4
|
-
"gray": "#808080",
|
|
5
|
-
"white": "#ffffff",
|
|
6
|
-
"maroon": "#800000",
|
|
7
|
-
"red": "#ff0000",
|
|
8
|
-
"purple": "#800080",
|
|
9
|
-
"fuchsia": "#ff00ff",
|
|
10
|
-
"green": "#008000",
|
|
11
|
-
"lime": "#00ff00",
|
|
12
|
-
"olive": "#808000",
|
|
13
|
-
"yellow": "#ffff00",
|
|
14
|
-
"navy": "#000080",
|
|
15
|
-
"blue": "#0000ff",
|
|
16
|
-
"teal": "#008080",
|
|
17
|
-
"aqua": "#00ffff",
|
|
18
|
-
"orange": "#ffa500",
|
|
19
|
-
"aliceblue": "#f0f8ff",
|
|
20
|
-
"antiquewhite": "#faebd7",
|
|
21
|
-
"aquamarine": "#7fffd4",
|
|
22
|
-
"azure": "#f0ffff",
|
|
23
|
-
"beige": "#f5f5dc",
|
|
24
|
-
"bisque": "#ffe4c4",
|
|
25
|
-
"blanchedalmond": "#ffebcd",
|
|
26
|
-
"blueviolet": "#8a2be2",
|
|
27
|
-
"brown": "#a52a2a",
|
|
28
|
-
"burlywood": "#deb887",
|
|
29
|
-
"cadetblue": "#5f9ea0",
|
|
30
|
-
"chartreuse": "#7fff00",
|
|
31
|
-
"chocolate": "#d2691e",
|
|
32
|
-
"coral": "#ff7f50",
|
|
33
|
-
"cornflowerblue": "#6495ed",
|
|
34
|
-
"cornsilk": "#fff8dc",
|
|
35
|
-
"crimson": "#dc143c",
|
|
36
|
-
"darkblue": "#00008b",
|
|
37
|
-
"darkcyan": "#008b8b",
|
|
38
|
-
"darkgoldenrod": "#b8860b",
|
|
39
|
-
"darkgray": "#a9a9a9",
|
|
40
|
-
"darkgreen": "#006400",
|
|
41
|
-
"darkgrey": "#a9a9a9",
|
|
42
|
-
"darkkhaki": "#bdb76b",
|
|
43
|
-
"darkmagenta": "#8b008b",
|
|
44
|
-
"darkolivegreen": "#556b2f",
|
|
45
|
-
"darkorange": "#ff8c00",
|
|
46
|
-
"darkorchid": "#9932cc",
|
|
47
|
-
"darkred": "#8b0000",
|
|
48
|
-
"darksalmon": "#e9967a",
|
|
49
|
-
"darkseagreen": "#8fbc8f",
|
|
50
|
-
"darkslateblue": "#483d8b",
|
|
51
|
-
"darkslategray": "#2f4f4f",
|
|
52
|
-
"darkslategrey": "#2f4f4f",
|
|
53
|
-
"darkturquoise": "#00ced1",
|
|
54
|
-
"darkviolet": "#9400d3",
|
|
55
|
-
"deeppink": "#ff1493",
|
|
56
|
-
"deepskyblue": "#00bfff",
|
|
57
|
-
"dimgray": "#696969",
|
|
58
|
-
"dimgrey": "#696969",
|
|
59
|
-
"dodgerblue": "#1e90ff",
|
|
60
|
-
"firebrick": "#b22222",
|
|
61
|
-
"floralwhite": "#fffaf0",
|
|
62
|
-
"forestgreen": "#228b22",
|
|
63
|
-
"gainsboro": "#dcdcdc",
|
|
64
|
-
"ghostwhite": "#f8f8ff",
|
|
65
|
-
"gold": "#ffd700",
|
|
66
|
-
"goldenrod": "#daa520",
|
|
67
|
-
"greenyellow": "#adff2f",
|
|
68
|
-
"grey": "#808080",
|
|
69
|
-
"honeydew": "#f0fff0",
|
|
70
|
-
"hotpink": "#ff69b4",
|
|
71
|
-
"indianred": "#cd5c5c",
|
|
72
|
-
"indigo": "#4b0082",
|
|
73
|
-
"ivory": "#fffff0",
|
|
74
|
-
"khaki": "#f0e68c",
|
|
75
|
-
"lavender": "#e6e6fa",
|
|
76
|
-
"lavenderblush": "#fff0f5",
|
|
77
|
-
"lawngreen": "#7cfc00",
|
|
78
|
-
"lemonchiffon": "#fffacd",
|
|
79
|
-
"lightblue": "#add8e6",
|
|
80
|
-
"lightcoral": "#f08080",
|
|
81
|
-
"lightcyan": "#e0ffff",
|
|
82
|
-
"lightgoldenrodyellow": "#fafad2",
|
|
83
|
-
"lightgray": "#d3d3d3",
|
|
84
|
-
"lightgreen": "#90ee90",
|
|
85
|
-
"lightgrey": "#d3d3d3",
|
|
86
|
-
"lightpink": "#ffb6c1",
|
|
87
|
-
"lightsalmon": "#ffa07a",
|
|
88
|
-
"lightseagreen": "#20b2aa",
|
|
89
|
-
"lightskyblue": "#87cefa",
|
|
90
|
-
"lightslategray": "#778899",
|
|
91
|
-
"lightslategrey": "#778899",
|
|
92
|
-
"lightsteelblue": "#b0c4de",
|
|
93
|
-
"lightyellow": "#ffffe0",
|
|
94
|
-
"limegreen": "#32cd32",
|
|
95
|
-
"linen": "#faf0e6",
|
|
96
|
-
"mediumaquamarine": "#66cdaa",
|
|
97
|
-
"mediumblue": "#0000cd",
|
|
98
|
-
"mediumorchid": "#ba55d3",
|
|
99
|
-
"mediumpurple": "#9370db",
|
|
100
|
-
"mediumseagreen": "#3cb371",
|
|
101
|
-
"mediumslateblue": "#7b68ee",
|
|
102
|
-
"mediumspringgreen": "#00fa9a",
|
|
103
|
-
"mediumturquoise": "#48d1cc",
|
|
104
|
-
"mediumvioletred": "#c71585",
|
|
105
|
-
"midnightblue": "#191970",
|
|
106
|
-
"mintcream": "#f5fffa",
|
|
107
|
-
"mistyrose": "#ffe4e1",
|
|
108
|
-
"moccasin": "#ffe4b5",
|
|
109
|
-
"navajowhite": "#ffdead",
|
|
110
|
-
"oldlace": "#fdf5e6",
|
|
111
|
-
"olivedrab": "#6b8e23",
|
|
112
|
-
"orangered": "#ff4500",
|
|
113
|
-
"orchid": "#da70d6",
|
|
114
|
-
"palegoldenrod": "#eee8aa",
|
|
115
|
-
"palegreen": "#98fb98",
|
|
116
|
-
"paleturquoise": "#afeeee",
|
|
117
|
-
"palevioletred": "#db7093",
|
|
118
|
-
"papayawhip": "#ffefd5",
|
|
119
|
-
"peachpuff": "#ffdab9",
|
|
120
|
-
"peru": "#cd853f",
|
|
121
|
-
"pink": "#ffc0cb",
|
|
122
|
-
"plum": "#dda0dd",
|
|
123
|
-
"powderblue": "#b0e0e6",
|
|
124
|
-
"rosybrown": "#bc8f8f",
|
|
125
|
-
"royalblue": "#4169e1",
|
|
126
|
-
"saddlebrown": "#8b4513",
|
|
127
|
-
"salmon": "#fa8072",
|
|
128
|
-
"sandybrown": "#f4a460",
|
|
129
|
-
"seagreen": "#2e8b57",
|
|
130
|
-
"seashell": "#fff5ee",
|
|
131
|
-
"sienna": "#a0522d",
|
|
132
|
-
"skyblue": "#87ceeb",
|
|
133
|
-
"slateblue": "#6a5acd",
|
|
134
|
-
"slategray": "#708090",
|
|
135
|
-
"slategrey": "#708090",
|
|
136
|
-
"snow": "#fffafa",
|
|
137
|
-
"springgreen": "#00ff7f",
|
|
138
|
-
"steelblue": "#4682b4",
|
|
139
|
-
"tan": "#d2b48c",
|
|
140
|
-
"thistle": "#d8bfd8",
|
|
141
|
-
"tomato": "#ff6347",
|
|
142
|
-
"turquoise": "#40e0d0",
|
|
143
|
-
"violet": "#ee82ee",
|
|
144
|
-
"wheat": "#f5deb3",
|
|
145
|
-
"whitesmoke": "#f5f5f5",
|
|
146
|
-
"yellowgreen": "#9acd32",
|
|
147
|
-
"rebeccapurple": "#663399"
|
|
148
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "css-color-keywords",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "A list of all CSS color keywords.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"css",
|
|
7
|
-
"color",
|
|
8
|
-
"keywords",
|
|
9
|
-
"list"
|
|
10
|
-
],
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"author": "Jakob Krigovsky <jakob@krigovsky.com>",
|
|
13
|
-
"files": [
|
|
14
|
-
"colors.json",
|
|
15
|
-
"index.js"
|
|
16
|
-
],
|
|
17
|
-
"repository": "sonicdoe/css-color-keywords",
|
|
18
|
-
"scripts": {
|
|
19
|
-
"test": "standard && node test.js"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"standard": "^8.6.0"
|
|
23
|
-
},
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=4"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Lynnnnnnxx
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<p>
|
|
2
|
-
<a href="https://npmjs.com/package/css-gradient-parser"><img src="https://img.shields.io/npm/v/css-gradient-parser.svg" alt="npm version"></a>
|
|
3
|
-
<a href="https://npmjs.com/package/css-gradient-parser"><img src="https://img.shields.io/npm/dm/css-gradient-parser.svg" alt="npm downloads"></a>
|
|
4
|
-
</p>
|
|
5
|
-
|
|
6
|
-
# css-gradient-parser
|
|
7
|
-
|
|
8
|
-
This lib intends to give a parser for [satori](https://github.com/vercel/satori) so that we can handle more gradient features
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## API
|
|
12
|
-
### `parseLinearGradient`
|
|
13
|
-
```ts
|
|
14
|
-
interface LinearOrientation {
|
|
15
|
-
type: 'directional' | 'angular'
|
|
16
|
-
value: string
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface LinearResult {
|
|
20
|
-
orientation: LinearOrientation
|
|
21
|
-
repeating: boolean
|
|
22
|
-
stops: ColorStop[]
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### `parseRadialGradient`
|
|
27
|
-
```ts
|
|
28
|
-
type ValueType = 'keyword' | 'length'
|
|
29
|
-
|
|
30
|
-
interface RadialResult {
|
|
31
|
-
shape: 'circle' | 'ellipse'
|
|
32
|
-
repeating: boolean
|
|
33
|
-
size: {
|
|
34
|
-
type: ValueType
|
|
35
|
-
value: string
|
|
36
|
-
}[]
|
|
37
|
-
position: {
|
|
38
|
-
x: { type: ValueType, value: string }
|
|
39
|
-
y: { type: ValueType, value: string }
|
|
40
|
-
}
|
|
41
|
-
stops: ColorStop[]
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### `parseConicGradient`
|
|
46
|
-
```ts
|
|
47
|
-
type RectColorSpace = 'srgb' | 'srgb-linear' | 'lab' | 'oklab' | 'xyz' | 'xyz-d50' | 'xyz-d65'
|
|
48
|
-
type PolarColorSpace = 'hsl' | 'hwb' | 'lch' | 'oklch'
|
|
49
|
-
type HueInterpolationMethod = `${'shorter' | 'longer' | 'increasing' | 'decreasing'} hue`
|
|
50
|
-
|
|
51
|
-
interface ConicGradient {
|
|
52
|
-
angle: string
|
|
53
|
-
repeating: boolean
|
|
54
|
-
position: string
|
|
55
|
-
color?: Color
|
|
56
|
-
stops: ColorStop[]
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
type Color = {
|
|
60
|
-
space: RectColorSpace | PolarColorSpace
|
|
61
|
-
method?: HueInterpolationMethod
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
- [x] linear-gradient
|
|
66
|
-
- [x] radial-gradient
|
|
67
|
-
- [x] conic-gradient
|
|
68
|
-
- [x] repeating-linear-gradient
|
|
69
|
-
- [x] repeating-radial-gradient
|
|
70
|
-
- [x] repeating-conic-gradient
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## LICENSE
|
|
74
|
-
|
|
75
|
-
[MIT](./LICENSE)
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var u=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var R=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},S=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of v(t))!w.call(e,n)&&n!==r&&u(e,n,{get:()=>t[n],enumerable:!(o=x(t,n))||o.enumerable});return e};var C=e=>S(u({},"__esModule",{value:!0}),e);var W={};R(W,{parseConicGradient:()=>O,parseLinearGradient:()=>E,parseRadialGradient:()=>z});module.exports=C(W);function c(e,t=","){let r=[],o=0,n=0;t=new RegExp(t);for(let i=0;i<e.length;i++)e[i]==="("?n++:e[i]===")"&&n--,n===0&&t.test(e[i])&&(r.push(e.slice(o,i).trim()),o=i+1);return r.push(e.slice(o).trim()),r}function g(e){let t=[];for(let r=0,o=e.length;r<o;){let[n,i]=c(e[r],/\s+/);b(e[r+1])?(t.push({color:n,offset:l(i),hint:l(e[r+1])}),r+=2):(t.push({color:n,offset:l(i)}),r++)}return t}var d=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn|ch|vmin|vmax)?$/;function b(e){return d.test(e)}function l(e){if(!e)return;let[,t,r]=e.trim().match(d)||[];return{value:t,unit:r??"px"}}function E(e){if(!/^(repeating-)?linear-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,t,r]=e.match(/(repeating-)?linear-gradient\((.+)\)/),o={orientation:{type:"directional",value:"bottom"},repeating:!!t,stops:[]},n=c(r),i=P(n[0]);return i&&(o.orientation=i,n.shift()),{...o,stops:g(n)}}function P(e){return e.startsWith("to ")?{type:"directional",value:e.replace("to ","")}:["turn","deg","grad","rad"].some(t=>e.endsWith(t))?{type:"angular",value:l(e)}:null}var k=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),L=new Set(["center","left","top","right","bottom"]);function h(e){return k.has(e)}function y(e){return L.has(e)}function K(e){let t=Array(2).fill("");for(let r=0;r<2;r++)e[r]?t[r]=e[r]:t[r]="center";return t}function z(e){if(!/(repeating-)?radial-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,t,r]=e.match(/(repeating-)?radial-gradient\((.+)\)/),o={shape:"ellipse",repeating:!!t,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},n=c(r);if(G(n[0]))return{...o,stops:g(n)};let i=n[0].split("at").map(f=>f.trim()),p=((i[0]||"").match(/(circle|ellipse)/)||[])[1],a=(i[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],s=K((i[1]||"").split(" "));return p?o.shape=p:a.length===1&&!h(a[0])?o.shape="circle":o.shape="ellipse",a.length===0&&a.push("farthest-corner"),o.size=a.map(f=>h(f)?{type:"keyword",value:f}:{type:"length",value:l(f)}),o.position.x=y(s[0])?{type:"keyword",value:s[0]}:{type:"length",value:l(s[0])},o.position.y=y(s[1])?{type:"keyword",value:s[1]}:{type:"length",value:l(s[1])},(p||a.length>0||i[1])&&n.shift(),{...o,stops:g(n)}}function G(e){return/(circle|ellipse|at)/.test(e)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(e)}var j=new Set(["from","in","at"]);function O(e){if(!/(repeating-)?conic-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,t,r]=e.match(/(repeating-)?conic-gradient\((.+)\)/),o={angle:"0deg",repeating:!!t,position:"center",stops:[]},n=c(r).map(s=>s.trim()),i=c(n[0],/\s+/),p="",a=0;for(let s=0,f=i.length;s<f;s++)j.has(i[s])&&(s>0&&Object.assign(o,m(p,i,a,s)),p=i[s],a=s+1);return p&&(Object.assign(o,m(p,i,a,i.length)),n.shift()),{...o,stops:g(n)}}function m(e,t,r,o){switch(e){case"from":return{angle:t.slice(r,o).join(" ")};case"at":return{position:t.slice(r,o).join(" ")};case"in":{let[n,...i]=t.slice(r,o);return{color:{space:n,method:i.length>0?i.join(" "):void 0}}}}}0&&(module.exports={parseConicGradient,parseLinearGradient,parseRadialGradient});
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function c(e,o=","){let t=[],n=0,i=0;o=new RegExp(o);for(let r=0;r<e.length;r++)e[r]==="("?i++:e[r]===")"&&i--,i===0&&o.test(e[r])&&(t.push(e.slice(n,r).trim()),n=r+1);return t.push(e.slice(n).trim()),t}function g(e){let o=[];for(let t=0,n=e.length;t<n;){let[i,r]=c(e[t],/\s+/);m(e[t+1])?(o.push({color:i,offset:l(r),hint:l(e[t+1])}),t+=2):(o.push({color:i,offset:l(r)}),t++)}return o}var u=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn|ch|vmin|vmax)?$/;function m(e){return u.test(e)}function l(e){if(!e)return;let[,o,t]=e.trim().match(u)||[];return{value:o,unit:t??"px"}}function P(e){if(!/^(repeating-)?linear-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,o,t]=e.match(/(repeating-)?linear-gradient\((.+)\)/),n={orientation:{type:"directional",value:"bottom"},repeating:!!o,stops:[]},i=c(t),r=x(i[0]);return r&&(n.orientation=r,i.shift()),{...n,stops:g(i)}}function x(e){return e.startsWith("to ")?{type:"directional",value:e.replace("to ","")}:["turn","deg","grad","rad"].some(o=>e.endsWith(o))?{type:"angular",value:l(e)}:null}var v=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),w=new Set(["center","left","top","right","bottom"]);function d(e){return v.has(e)}function h(e){return w.has(e)}function R(e){let o=Array(2).fill("");for(let t=0;t<2;t++)e[t]?o[t]=e[t]:o[t]="center";return o}function K(e){if(!/(repeating-)?radial-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,o,t]=e.match(/(repeating-)?radial-gradient\((.+)\)/),n={shape:"ellipse",repeating:!!o,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},i=c(t);if(S(i[0]))return{...n,stops:g(i)};let r=i[0].split("at").map(f=>f.trim()),p=((r[0]||"").match(/(circle|ellipse)/)||[])[1],a=(r[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],s=R((r[1]||"").split(" "));return p?n.shape=p:a.length===1&&!d(a[0])?n.shape="circle":n.shape="ellipse",a.length===0&&a.push("farthest-corner"),n.size=a.map(f=>d(f)?{type:"keyword",value:f}:{type:"length",value:l(f)}),n.position.x=h(s[0])?{type:"keyword",value:s[0]}:{type:"length",value:l(s[0])},n.position.y=h(s[1])?{type:"keyword",value:s[1]}:{type:"length",value:l(s[1])},(p||a.length>0||r[1])&&i.shift(),{...n,stops:g(i)}}function S(e){return/(circle|ellipse|at)/.test(e)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(e)}var C=new Set(["from","in","at"]);function j(e){if(!/(repeating-)?conic-gradient/.test(e))throw new SyntaxError(`could not find syntax for this item: ${e}`);let[,o,t]=e.match(/(repeating-)?conic-gradient\((.+)\)/),n={angle:"0deg",repeating:!!o,position:"center",stops:[]},i=c(t).map(s=>s.trim()),r=c(i[0],/\s+/),p="",a=0;for(let s=0,f=r.length;s<f;s++)C.has(r[s])&&(s>0&&Object.assign(n,y(p,r,a,s)),p=r[s],a=s+1);return p&&(Object.assign(n,y(p,r,a,r.length)),i.shift()),{...n,stops:g(i)}}function y(e,o,t,n){switch(e){case"from":return{angle:o.slice(t,n).join(" ")};case"at":return{position:o.slice(t,n).join(" ")};case"in":{let[i,...r]=o.slice(t,n);return{color:{space:i,method:r.length>0?r.join(" "):void 0}}}}}export{j as parseConicGradient,P as parseLinearGradient,K as parseRadialGradient};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|