decocms 4.113.3 → 4.113.4
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-C3yBEe62.js → AlertCircle-D3NSbtte.js} +1 -1
- package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-CVVwbKz-.js} +1 -1
- package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-ByO1s01w.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-Cd7BXS0r.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-OT_eUSGv.js} +1 -1
- package/dist/client/assets/{Check-BOCHVTek.js → Check-DexGeb34.js} +1 -1
- package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-BHeeUcEs.js} +1 -1
- package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CHuNudj6.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-CMzdRCrr.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-lRFXwe0H.js} +1 -1
- package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-uMwlKnXA.js} +1 -1
- package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-BYSP2N_n.js} +1 -1
- package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-BctMyF-b.js} +1 -1
- package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-CN2zN3dy.js} +1 -1
- package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-CdsyprSD.js} +1 -1
- package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-Bsu11XTy.js} +1 -1
- package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-BbGoyEqj.js} +1 -1
- package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-CEPIXDUJ.js} +1 -1
- package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-I5rdl_Gb.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-DUKr-FQx.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-CerBDso7.js} +1 -1
- package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BQcYh9Ui.js} +1 -1
- package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-bBKqAlRi.js} +1 -1
- package/dist/client/assets/{Package-BzQD_Ty_.js → Package-C1L6WXbG.js} +1 -1
- package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-DkA-m4II.js} +1 -1
- package/dist/client/assets/{Play-D8x6tbEi.js → Play-D5AlhRua.js} +1 -1
- package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B78kfbrH.js} +1 -1
- package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-HLi9z3k2.js} +1 -1
- package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D9xCjcBT.js} +1 -1
- package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-D4D7dHyq.js} +1 -1
- package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-C0sINRXL.js} +1 -1
- package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Hh5rtrm_.js} +1 -1
- package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-BIr-9im_.js} +1 -1
- package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-x-FNLmKd.js} +1 -1
- package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-CbURsFMr.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-CI53Hh9k.js} +1 -1
- package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-CrK-zdU8.js} +1 -1
- package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-BLqj76jE.js} +1 -1
- package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-Df4dKmk-.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-CDAx5KLE.js} +1 -1
- package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-Dy7G4Vqj.js} +1 -1
- package/dist/client/assets/{User01-qg2q5EXG.js → User01-B00HeJ3v.js} +1 -1
- package/dist/client/assets/{Users01-DecEGc0z.js → Users01-demha86n.js} +1 -1
- package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CK3Zfb7D.js} +1 -1
- package/dist/client/assets/{X-ByT759cs.js → X-CehcuOdv.js} +1 -1
- package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-BaIgTqjQ.js} +1 -1
- package/dist/client/assets/{XClose-CZnGWolh.js → XClose-Bf6_Xwqn.js} +1 -1
- package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-CqCVe0AY.js} +1 -1
- package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-UWBEBtze.js} +1 -1
- package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-kGLYh1vh.js} +1 -1
- package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-Brf1uq7w.js} +1 -1
- package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-hl41gB3e.js} +1 -1
- package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-C5hkjd9d.js} +1 -1
- package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-DUZLZiO7.js} +1 -1
- package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-Ddtnde82.js} +1 -1
- package/dist/client/assets/{alert-D-rAiL9n.js → alert-C0nUQV3Z.js} +1 -1
- package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-CoSPCPpg.js} +1 -1
- package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-C022NrTg.js} +1 -1
- package/dist/client/assets/{auth-DrixEdZV.js → auth-3hywqU0Z.js} +1 -1
- package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-B4Hu45Ne.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-Bd0jbgb_.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-CY08Qy2Q.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-C97UAKVm.js} +1 -1
- package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-CzqgyFTo.js} +1 -1
- package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BJXzFuc5.js} +1 -1
- package/dist/client/assets/{automations-C0XROIdQ.js → automations-BNgdqlWi.js} +1 -1
- package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DKunmHJC.js} +1 -1
- package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-bZ-OyZ4C.js} +1 -1
- package/dist/client/assets/{badge-Dq8tKfND.js → badge-BEoEV_-s.js} +1 -1
- package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-Bsh4SSZF.js} +1 -1
- package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-DsI_N6jC.js} +1 -1
- package/dist/client/assets/{buckets-CSQzXH56.js → buckets-66qFPEUl.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-Cufz0WM3.js} +1 -1
- package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-CtwiiKBb.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BIVVxP4I.js} +1 -1
- package/dist/client/assets/{card-CYIXg6Tz.js → card-BzIUIhXj.js} +1 -1
- package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-CvwKblO3.js} +1 -1
- package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-Crb9rWHK.js} +1 -1
- package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-B7FxhNJt.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-B13-d7YS.js} +1 -1
- package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-CEn6RIOn.js} +1 -1
- package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CzT8Gsvj.js} +1 -1
- package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-CnQx2Rcs.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-1UMvZ3fa.js} +1 -1
- package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-CBtRCQQL.js} +1 -1
- package/dist/client/assets/{command-55Q776qF.js → command-C5gxZS1R.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-CB-WZK2l.js} +1 -1
- package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-42eUIML2.js} +1 -1
- package/dist/client/assets/{connect-Dzubmbm6.js → connect-DrIqorJQ.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-BTzMpZn4.js} +1 -1
- package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-CBIOrMcr.js} +1 -1
- package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-CUFaaTIx.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers-51wU-tA4.js} +1 -1
- package/dist/client/assets/{connections-CMhMeidX.js → connections-fJWiq9na.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-JL7UXTva.js} +1 -1
- package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-BopH09uO.js} +1 -1
- package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-UBCepEd-.js} +1 -1
- package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-4wGUz3NV.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CqUwPgCM.js} +1 -1
- package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-DMQGyp-2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-Dg2OurD8.js} +1 -1
- package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-Cr2rWfg3.js} +1 -1
- package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Dq1fYczo.js} +1 -1
- package/dist/client/assets/{files-DMRbcRYD.js → files-D11P-V12.js} +1 -1
- package/dist/client/assets/{form-a5EhWS__.js → form-DGbrQv7O.js} +1 -1
- package/dist/client/assets/{general-BXzwd9kr.js → general-ByuqDQPP.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-CsJtF4k1.js} +1 -1
- package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-Bqa3-ZMc.js} +1 -1
- package/dist/client/assets/{index-CDAhksmq.js → index-2cPeCHTJ.js} +1 -1
- package/dist/client/assets/{index-D0XkAkng.js → index-BU5jOX-E.js} +1 -1
- package/dist/client/assets/{index-ChR3SC6w.js → index-BZ6EPALd.js} +1 -1
- package/dist/client/assets/{index-Dd318vVc.js → index-BsEzp8oj.js} +1 -1
- package/dist/client/assets/{index-D3QnFu3t.js → index-BzpPy3wE.js} +3 -3
- package/dist/client/assets/{index-D8_uS6ju.js → index-CYhwzBFB.js} +1 -1
- package/dist/client/assets/{index-BjFrw_Cz.js → index-Cfzztnsx.js} +1 -1
- package/dist/client/assets/{index-D6Qe38nY.js → index-D0ar0WVw.js} +1 -1
- package/dist/client/assets/{index-BzKhWus-.js → index-D3an6z2y.js} +1 -1
- package/dist/client/assets/{index-wa1mGSJt.js → index-DJOz2VN0.js} +5 -5
- package/dist/client/assets/{index-i4iJK1qu.js → index-DNl9xlj2.js} +3 -3
- package/dist/client/assets/{index-BvXIjHT6.js → index-JokIayzs.js} +1 -1
- package/dist/client/assets/{index-DKYptawH.js → index-MOQFWNpJ.js} +1 -1
- package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-C8kzuGQD.js} +1 -1
- package/dist/client/assets/{input-DBTIXVeB.js → input-BgKPAcUy.js} +1 -1
- package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-COAmfKM2.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-D_2ikydr.js} +1 -1
- package/dist/client/assets/{label-hZbHKQe4.js → label-Bit-k39a.js} +1 -1
- package/dist/client/assets/{layout-BbmfwSeT.js → layout-bmMNsy2b.js} +1 -1
- package/dist/client/assets/{login-CYk7QqzO.js → login-Bme8dehk.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DtUJKJBX.js} +1 -1
- package/dist/client/assets/{members-Br5ZzfAU.js → members-BdjB5MAU.js} +1 -1
- package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BrEGduvG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-CNmPKGSb.js} +1 -1
- package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-Bu-8nHIy.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-DVtgM464.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-D0dOkVqX.js} +1 -1
- package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-BT0PHxMW.js} +1 -1
- package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-CVKBAdf6.js} +1 -1
- package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-Dv1Blc3Y.js} +1 -1
- package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-B6BWp_1y.js} +1 -1
- package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-Cy8dbVQf.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-CBHtkQ-1.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BEV8Rj_2.js +1 -0
- package/dist/client/assets/{popover-WvXSsr2A.js → popover-Bk7l46es.js} +1 -1
- package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-BFFD4TxR.js} +1 -1
- package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-BUqBmg2w.js} +1 -1
- package/dist/client/assets/{profile-BJOXihUj.js → profile-_UM8G-04.js} +1 -1
- package/dist/client/assets/project-app-view-d8NlTW9s.js +1 -0
- package/dist/client/assets/record-editor-D87inyPk.js +1 -0
- package/dist/client/assets/redirect-editor-B5p1mIS_.js +1 -0
- package/dist/client/assets/registry-Cgy8gH4Y.js +2 -0
- package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-DZTQ7Enm.js} +2 -2
- package/dist/client/assets/{reports-CJYmnCRR.js → reports-CogLmgwx.js} +2 -2
- package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-DAXk0d5y.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-DVJ0P1R1.js} +1 -1
- package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-Ba_pBAvO.js} +1 -1
- package/dist/client/assets/{roles-CuzTIzcA.js → roles-CXTr00hX.js} +1 -1
- package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-C-UMJodP.js} +1 -1
- package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-D88X3IUQ.js} +1 -1
- package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-BFKZY_dP.js} +1 -1
- package/dist/client/assets/{select-CS3vGjLf.js → select-C-jyJoDt.js} +1 -1
- package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-Dgd4xGjo.js} +1 -1
- package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-DPMrglQq.js} +1 -1
- package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-BY6DSXGz.js} +1 -1
- package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CkDQpCLh.js} +1 -1
- package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-6MwJAdqF.js} +1 -1
- package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-CnX0OdDH.js} +1 -1
- package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-CN7hhO1J.js} +1 -1
- package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-C_iv7Nh9.js} +1 -1
- package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-DbS6ExIt.js} +1 -1
- package/dist/client/assets/{sso-DvIYBwsX.js → sso-B8CdFzAl.js} +1 -1
- package/dist/client/assets/{store-D2kZokQ2.js → store-Bnyy1WiV.js} +1 -1
- package/dist/client/assets/store-registry-BSo6cvku.js +2 -0
- package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-IiJMHnzv.js} +1 -1
- package/dist/client/assets/{switch-CWGgmiWZ.js → switch-yqZ24tl_.js} +1 -1
- package/dist/client/assets/{table-B7Z84RDB.js → table-CmSWRFMQ.js} +1 -1
- package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-7R3MGlLI.js} +1 -1
- package/dist/client/assets/{textarea-DNrJISFS.js → textarea-BE6VI2Sm.js} +1 -1
- package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-lTjODskL.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DysigV8P.js} +1 -1
- package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-mS39lMFz.js} +1 -1
- package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-CQ993dHl.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-CcQLY3nb.js} +1 -1
- package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-DJYutKrk.js} +1 -1
- package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations-Dhj1E9Ph.js} +1 -1
- package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-C2xapmR1.js} +1 -1
- package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-DyYemPOJ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-Cy_Qdrwk.js} +1 -1
- package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-DgItAPXg.js} +1 -1
- package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-Cl4f2mnT.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-Cr2zciLP.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-DacEdb47.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-COWnhTlx.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-C258e8Gu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-C8Qld7KH.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-D8xzfXPS.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-CUVPi201.js} +1 -1
- package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-BS9XBoPf.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-CHbZVRlR.js} +1 -1
- package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-BnVp32Ft.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-C_bc7znM.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-rUzkHeFC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-wZzusmBD.js} +1 -1
- package/dist/client/assets/{use-members-A3agoGMA.js → use-members-Bs4G8Gn6.js} +1 -1
- package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-Dfk9gz4P.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-D_ROb12r.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-C2bpFjJB.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-o6qtDNhz.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-CIhMiXnm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-BN6Mbe3T.js} +1 -1
- package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-CdXrR-uL.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-DUTwru2C.js} +1 -1
- package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-BGQjv51d.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-DNfyHXSY.js} +1 -1
- package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-3AUQk446.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-EXgj09hR.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BuJ4N0EZ.js +1 -0
- package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-BTxFVSBJ.js} +1 -1
- package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-CSm1vh-t.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CnxU3y26.js +1 -0
- package/dist/client/assets/{users-BXaOYgw2.js → users-BUKZ3ENb.js} +1 -1
- package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-BkY_wbhM.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-cynxUaRv.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/report-og-fallback.png +0 -0
- package/dist/server/cli.js +656 -656
- package/dist/server/migrate.js +5 -5
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +373 -0
- package/dist/server/node_modules/@resvg/resvg-js/README.md +314 -0
- package/dist/server/node_modules/@resvg/resvg-js/index.js +23 -0
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +1 -0
- package/dist/server/node_modules/@resvg/resvg-js/package.json +152 -0
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +20 -0
- package/dist/server/node_modules/@shuding/opentype.js/README.md +9 -0
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +272 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +84 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +64 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +96 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +11655 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +2 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +11639 -0
- package/dist/server/node_modules/@shuding/opentype.js/package.json +73 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +158 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +243 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +16 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +1032 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +74 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +83 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +483 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +40 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +433 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +274 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +150 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +3062 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +5 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +357 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +375 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +628 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +212 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +77 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +447 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +215 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +1156 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +145 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +71 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +62 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +349 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +146 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +251 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +35 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +27 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +51 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +69 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +33 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +32 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +30 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +680 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +65 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +522 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +976 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +17 -0
- package/dist/server/node_modules/base64-js/.travis.yml +5 -0
- package/dist/server/node_modules/base64-js/LICENSE.MIT +21 -0
- package/dist/server/node_modules/base64-js/README.md +31 -0
- package/dist/server/node_modules/base64-js/bench/bench.js +19 -0
- package/dist/server/node_modules/base64-js/lib/b64.js +124 -0
- package/dist/server/node_modules/base64-js/package.json +34 -0
- package/dist/server/node_modules/base64-js/test/convert.js +51 -0
- package/dist/server/node_modules/base64-js/test/url-safe.js +18 -0
- package/dist/server/node_modules/camelize/.eslintrc +24 -0
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +12 -0
- package/dist/server/node_modules/camelize/CHANGELOG.md +64 -0
- package/dist/server/node_modules/camelize/LICENSE +18 -0
- package/dist/server/node_modules/camelize/README.md +81 -0
- package/dist/server/node_modules/camelize/example/camel.js +12 -0
- package/dist/server/node_modules/camelize/index.js +61 -0
- package/dist/server/node_modules/camelize/package.json +84 -0
- package/dist/server/node_modules/camelize/test/camel.js +48 -0
- package/dist/server/node_modules/color-name/LICENSE +8 -0
- package/dist/server/node_modules/color-name/README.md +11 -0
- package/dist/server/node_modules/color-name/index.js +152 -0
- package/dist/server/node_modules/color-name/package.json +28 -0
- package/dist/server/node_modules/css-background-parser/LICENSE +22 -0
- package/dist/server/node_modules/css-background-parser/README.md +149 -0
- package/dist/server/node_modules/css-background-parser/index.js +162 -0
- package/dist/server/node_modules/css-background-parser/package.json +19 -0
- package/dist/server/node_modules/css-box-shadow/README.md +27 -0
- package/dist/server/node_modules/css-box-shadow/index.js +64 -0
- package/dist/server/node_modules/css-box-shadow/package.json +14 -0
- package/dist/server/node_modules/css-box-shadow/test.js +204 -0
- package/dist/server/node_modules/css-color-keywords/LICENSE +15 -0
- package/dist/server/node_modules/css-color-keywords/README.md +47 -0
- package/dist/server/node_modules/css-color-keywords/colors.json +148 -0
- package/dist/server/node_modules/css-color-keywords/index.js +3 -0
- package/dist/server/node_modules/css-color-keywords/package.json +27 -0
- package/dist/server/node_modules/css-gradient-parser/LICENSE +21 -0
- package/dist/server/node_modules/css-gradient-parser/README.md +75 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +2 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +2 -0
- package/dist/server/node_modules/css-gradient-parser/package.json +54 -0
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +21 -0
- package/dist/server/node_modules/css-to-react-native/README.md +115 -0
- package/dist/server/node_modules/css-to-react-native/index.js +886 -0
- package/dist/server/node_modules/css-to-react-native/package.json +65 -0
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +85 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +136 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +83 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +31 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +122 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +22 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +117 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +43 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +15 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +8 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +204 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +13 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +103 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +30 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +55 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +132 -0
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/index.js +90 -0
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +75 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +12 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +11 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +65 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +63 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +20 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +77 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +24 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +18 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +10 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +99 -0
- package/dist/server/node_modules/hex-rgb/index.js +47 -0
- package/dist/server/node_modules/hex-rgb/license +9 -0
- package/dist/server/node_modules/hex-rgb/package.json +39 -0
- package/dist/server/node_modules/hex-rgb/readme.md +86 -0
- package/dist/server/node_modules/linebreak/LICENSE +21 -0
- package/dist/server/node_modules/linebreak/dist/main.cjs +1369 -0
- package/dist/server/node_modules/linebreak/dist/module.mjs +1368 -0
- package/dist/server/node_modules/linebreak/package.json +57 -0
- package/dist/server/node_modules/linebreak/readme.md +62 -0
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +54 -0
- package/dist/server/node_modules/parse-css-color/LICENSE +21 -0
- package/dist/server/node_modules/parse-css-color/README.md +110 -0
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +171 -0
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +167 -0
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +7 -0
- package/dist/server/node_modules/parse-css-color/package.json +55 -0
- package/dist/server/node_modules/postcss-value-parser/LICENSE +22 -0
- package/dist/server/node_modules/postcss-value-parser/README.md +263 -0
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/dist/server/node_modules/postcss-value-parser/package.json +58 -0
- package/dist/server/node_modules/satori/LICENSE +373 -0
- package/dist/server/node_modules/satori/README.md +516 -0
- package/dist/server/node_modules/satori/dist/index.cjs +8 -0
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/index.js +8 -0
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +2 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +8 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/standalone.js +8 -0
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/package.json +149 -0
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +21 -0
- package/dist/server/node_modules/tiny-inflate/index.js +375 -0
- package/dist/server/node_modules/tiny-inflate/package.json +28 -0
- package/dist/server/node_modules/tiny-inflate/readme.md +31 -0
- package/dist/server/node_modules/tiny-inflate/test/index.js +75 -0
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +199 -0
- package/dist/server/node_modules/unicode-trie/LICENSE +8 -0
- package/dist/server/node_modules/unicode-trie/README.md +77 -0
- package/dist/server/node_modules/unicode-trie/builder.js +966 -0
- package/dist/server/node_modules/unicode-trie/index.js +136 -0
- package/dist/server/node_modules/unicode-trie/package.json +27 -0
- package/dist/server/node_modules/unicode-trie/swap.js +25 -0
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +1 -0
- package/dist/server/node_modules/unicode-trie/test/test.js +243 -0
- package/dist/server/server.js +640 -640
- package/package.json +3 -1
- package/dist/client/assets/page-seo-sheet-BVOTKmAi.js +0 -1
- package/dist/client/assets/project-app-view-BJPw6BEN.js +0 -1
- package/dist/client/assets/record-editor-DGNLZeof.js +0 -1
- package/dist/client/assets/redirect-editor-rNADegcF.js +0 -1
- package/dist/client/assets/registry-DSHcnwR4.js +0 -2
- package/dist/client/assets/store-registry-q7deglpz.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DVl8ILZo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClimnWE2.js +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
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
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
})
|
|
@@ -0,0 +1,15 @@
|
|
|
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.
|
|
@@ -0,0 +1,47 @@
|
|
|
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.
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
|
@@ -0,0 +1,75 @@
|
|
|
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)
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|