decocms 4.113.3 → 4.114.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-C3yBEe62.js → AlertCircle-u3-jN7cm.js} +1 -1
- package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-BW8WzRm-.js} +1 -1
- package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-mNj20Zjh.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-L9cgM-6a.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-H1UBXt5Z.js} +1 -1
- package/dist/client/assets/{Check-BOCHVTek.js → Check-CaYU5aLO.js} +1 -1
- package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-CMKcMKAK.js} +1 -1
- package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CX9YkMBs.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-DbHUX8I-.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-DIB-4lf0.js} +1 -1
- package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-CjNrDuBL.js} +1 -1
- package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-Bp1NHhTP.js} +1 -1
- package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-FOTe0Dsm.js} +1 -1
- package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-BZTwbbeF.js} +1 -1
- package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-DOxk62wN.js} +1 -1
- package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-9hsl-3e6.js} +1 -1
- package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-ynMUj-ia.js} +1 -1
- package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-av9S7TeF.js} +1 -1
- package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-CwuF_1BL.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-D_cBv5Sy.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-B1nrIFqo.js} +1 -1
- package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BZi_DqYW.js} +1 -1
- package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-ymd1mMPU.js} +1 -1
- package/dist/client/assets/{Package-BzQD_Ty_.js → Package-CM9ahKwn.js} +1 -1
- package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-Ct1p9svP.js} +1 -1
- package/dist/client/assets/{Play-D8x6tbEi.js → Play-DVEIH1ry.js} +1 -1
- package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B2hbLmYg.js} +1 -1
- package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-CtS3seao.js} +1 -1
- package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D3MjkhDD.js} +1 -1
- package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-BetwzLEO.js} +1 -1
- package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-BAlJAwp4.js} +1 -1
- package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Cp-5Xhim.js} +1 -1
- package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-CvaXntTQ.js} +1 -1
- package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-DyviDCrE.js} +1 -1
- package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-Y3l5BCJc.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-q1XlSXKm.js} +1 -1
- package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-DiRWeEXb.js} +1 -1
- package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-aqrHyC0g.js} +1 -1
- package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-COnrCNth.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-Bn-PWo-g.js} +1 -1
- package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-DGTw7Jar.js} +1 -1
- package/dist/client/assets/{User01-qg2q5EXG.js → User01-BIMIGJ25.js} +1 -1
- package/dist/client/assets/{Users01-DecEGc0z.js → Users01-CZUvnM1S.js} +1 -1
- package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CVsX8nJx.js} +1 -1
- package/dist/client/assets/{X-ByT759cs.js → X-DNu2-GhF.js} +1 -1
- package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-C_rSb0eR.js} +1 -1
- package/dist/client/assets/{XClose-CZnGWolh.js → XClose-DW-dDUEB.js} +1 -1
- package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-De1_wbpV.js} +1 -1
- package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-Bp4aYGIH.js} +1 -1
- package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-BgItYrX3.js} +1 -1
- package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-CvPG2rlY.js} +1 -1
- package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-BA2tqrcH.js} +1 -1
- package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-CtZCFShI.js} +1 -1
- package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-j6YU2i_U.js} +1 -1
- package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-DLZzYNyZ.js} +1 -1
- package/dist/client/assets/{alert-D-rAiL9n.js → alert-EAq1jY4N.js} +1 -1
- package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-aAfJenSo.js} +1 -1
- package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-az0PkUZQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-DBwvY4WS.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-BPBAWmPC.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-DDWwxUG2.js} +1 -1
- package/dist/client/assets/{auth-DrixEdZV.js → auth-uUmd_yUz.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-nQ-5iboz.js} +1 -1
- package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-DLSYuPO0.js} +1 -1
- package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BvVxkEL_.js} +1 -1
- package/dist/client/assets/{automations-C0XROIdQ.js → automations-Dg5iM9D-.js} +1 -1
- package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DNGUJUeU.js} +1 -1
- package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-yTPDq5I2.js} +1 -1
- package/dist/client/assets/{badge-Dq8tKfND.js → badge-BYYz59-0.js} +1 -1
- package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-D_2P8u2S.js} +1 -1
- package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-BdmZewbA.js} +1 -1
- package/dist/client/assets/{buckets-CSQzXH56.js → buckets-BalCtIX4.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-CziXKZ4f.js} +1 -1
- package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-DWFDhFNo.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BVSx_lmj.js} +1 -1
- package/dist/client/assets/{card-CYIXg6Tz.js → card-C3QUqs2n.js} +1 -1
- package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-yjOQrzEJ.js} +1 -1
- package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-DZnGXN4a.js} +1 -1
- package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-CBFK8MAq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-2A3RVtIL.js} +1 -1
- package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-Fw_SCIDN.js} +1 -1
- package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CMt3Z67p.js} +1 -1
- package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-B9mHZ3UO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-C2UsHzHD.js} +1 -1
- package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-BDkyuUR4.js} +1 -1
- package/dist/client/assets/{command-55Q776qF.js → command-BPpRMP2H.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-C0k3wy77.js} +1 -1
- package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-DiyBwoGG.js} +1 -1
- package/dist/client/assets/{connect-Dzubmbm6.js → connect-D2oqeqWc.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-DNUW6BIf.js} +1 -1
- package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-QCEeFg-E.js} +1 -1
- package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-BuvcWRak.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers--HrBI-cC.js} +1 -1
- package/dist/client/assets/{connections-CMhMeidX.js → connections-CWtydlE_.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-D68vKjC2.js} +1 -1
- package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-CrWMCat9.js} +1 -1
- package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-qXQKOoeU.js} +1 -1
- package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-DVTkiBrG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CWVq2kdv.js} +1 -1
- package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-BtX-gDuD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-DfO_43Ui.js} +1 -1
- package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-nlzTvV0U.js} +1 -1
- package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Blhm8rpp.js} +1 -1
- package/dist/client/assets/{files-DMRbcRYD.js → files-CB-VCQ9J.js} +1 -1
- package/dist/client/assets/{form-a5EhWS__.js → form-JvR3caoV.js} +1 -1
- package/dist/client/assets/{general-BXzwd9kr.js → general-ofhGwPwk.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-BzqT9Pn1.js} +1 -1
- package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-CX-tJdCi.js} +1 -1
- package/dist/client/assets/{index-DKYptawH.js → index-BF9MIXYh.js} +1 -1
- package/dist/client/assets/{index-i4iJK1qu.js → index-BQKAFkvb.js} +3 -3
- package/dist/client/assets/{index-wa1mGSJt.js → index-Bl8jlw7D.js} +5 -5
- package/dist/client/assets/{index-D3QnFu3t.js → index-Bm91_nbV.js} +3 -3
- package/dist/client/assets/{index-D6Qe38nY.js → index-BuHs6OTD.js} +1 -1
- package/dist/client/assets/{index-D0XkAkng.js → index-CZGf-QlT.js} +1 -1
- package/dist/client/assets/{index-D8_uS6ju.js → index-CdqOC8p4.js} +1 -1
- package/dist/client/assets/{index-ChR3SC6w.js → index-D8itVaOh.js} +1 -1
- package/dist/client/assets/{index-Dd318vVc.js → index-DeAa7cPD.js} +1 -1
- package/dist/client/assets/{index-CDAhksmq.js → index-TgTbYxQM.js} +1 -1
- package/dist/client/assets/{index-BjFrw_Cz.js → index-cM-0JEJy.js} +1 -1
- package/dist/client/assets/{index-BvXIjHT6.js → index-jrZjRdSI.js} +1 -1
- package/dist/client/assets/{index-BzKhWus-.js → index-k2B6oHDy.js} +1 -1
- package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-pd-pFoY5.js} +1 -1
- package/dist/client/assets/{input-DBTIXVeB.js → input-CfDoPzy7.js} +1 -1
- package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-ChBrp2uX.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-7T9uI3o5.js} +1 -1
- package/dist/client/assets/{label-hZbHKQe4.js → label-Br-zNLTG.js} +1 -1
- package/dist/client/assets/{layout-BbmfwSeT.js → layout-DMOlkuOh.js} +1 -1
- package/dist/client/assets/{login-CYk7QqzO.js → login-CWIddfiC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DhzxU0XK.js} +1 -1
- package/dist/client/assets/{members-Br5ZzfAU.js → members-CGKVy4T3.js} +1 -1
- package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BcwFx31f.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-DKIXNyFS.js} +1 -1
- package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-DwEYUWQk.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-CRC-TNHK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-Bn5ecNQ9.js} +1 -1
- package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-ChQBM6P7.js} +1 -1
- package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-B2VYuIrV.js} +1 -1
- package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-CXw1-r8T.js} +1 -1
- package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-thMPBy_H.js} +1 -1
- package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-DpewEJO4.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-Bj8agFDN.js} +1 -1
- package/dist/client/assets/page-seo-sheet-xYyduq_3.js +1 -0
- package/dist/client/assets/{popover-WvXSsr2A.js → popover-PFUSi04J.js} +1 -1
- package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-fudBfEMW.js} +1 -1
- package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-CRg4BEbe.js} +1 -1
- package/dist/client/assets/{profile-BJOXihUj.js → profile-krVPqEis.js} +1 -1
- package/dist/client/assets/project-app-view-F_105CvS.js +1 -0
- package/dist/client/assets/record-editor-B9z6hPr0.js +1 -0
- package/dist/client/assets/redirect-editor-pmxNft8I.js +1 -0
- package/dist/client/assets/registry-BBaBGga3.js +2 -0
- package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-D0if0uky.js} +2 -2
- package/dist/client/assets/{reports-CJYmnCRR.js → reports-DQRCq5Dl.js} +2 -2
- package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-lUm3WxQW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-zgA3qXU6.js} +1 -1
- package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-d6_AkYAQ.js} +1 -1
- package/dist/client/assets/{roles-CuzTIzcA.js → roles-B_zG47r7.js} +1 -1
- package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-Im3obJ_5.js} +1 -1
- package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-DZpWBr7n.js} +1 -1
- package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-D7TakwFG.js} +1 -1
- package/dist/client/assets/{select-CS3vGjLf.js → select-BDOR27tE.js} +1 -1
- package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-BRQ-V94m.js} +1 -1
- package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-VStIScqg.js} +1 -1
- package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-DgKKLq5W.js} +1 -1
- package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CxNvsg8J.js} +1 -1
- package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-BWS26hMF.js} +1 -1
- package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-HSPoO0mS.js} +1 -1
- package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-D_sblBCw.js} +1 -1
- package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-BvGzib5A.js} +1 -1
- package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-BUe_WzkR.js} +1 -1
- package/dist/client/assets/{sso-DvIYBwsX.js → sso-dMXAkSfn.js} +1 -1
- package/dist/client/assets/{store-D2kZokQ2.js → store-qzvEGiXH.js} +1 -1
- package/dist/client/assets/store-registry-C0M7zBzp.js +2 -0
- package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-CvoMFYCt.js} +1 -1
- package/dist/client/assets/{switch-CWGgmiWZ.js → switch-muGjhkBJ.js} +1 -1
- package/dist/client/assets/{table-B7Z84RDB.js → table-BUQ1sil8.js} +1 -1
- package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-DHpcGpHH.js} +1 -1
- package/dist/client/assets/{textarea-DNrJISFS.js → textarea-Bt_QtOk0.js} +1 -1
- package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-CQKX4oUd.js} +1 -1
- package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-0DwtxERz.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DZhVI9-2.js} +1 -1
- package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-BigwhDSP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-WKbvbsVL.js} +1 -1
- package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-Te5PgtxD.js} +1 -1
- package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations--GMik9NX.js} +1 -1
- package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-M2ceoril.js} +1 -1
- package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-Bh8YlueK.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-IRvpmO0_.js} +1 -1
- package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-COZgUeU0.js} +1 -1
- package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-CFyLSHsK.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-VVjBeALb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-BxkO-_ca.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-DmIl8W6n.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-CmiQbTPM.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-O1Gk-ETR.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-B5quwMM9.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-BElTs8M7.js} +1 -1
- package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-B0d07k9Y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-BZlKDm5N.js} +1 -1
- package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-CZ3onEZJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-BeMiAxE7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-CZsvR6c7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-C86d_75c.js} +1 -1
- package/dist/client/assets/{use-members-A3agoGMA.js → use-members-DmoF-3Ie.js} +1 -1
- package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-BVFGUH1V.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-CID4qRVq.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-CcOUerBq.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-DK1YMh-o.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-DGfdPMyJ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-C8zNTcuC.js} +1 -1
- package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-DOaPd1Kq.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-BLLrfs0c.js} +1 -1
- package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-CmLaq4UW.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-C_iNgi5N.js} +1 -1
- package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-Be73RvXD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-BGZZhgI8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cdk9mXL-.js +1 -0
- package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-C11UDtFe.js} +1 -1
- package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-B8sLgF57.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-LZ9xlW1Z.js +1 -0
- package/dist/client/assets/{users-BXaOYgw2.js → users-B_lOVuoe.js} +1 -1
- package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-3-o3D_Rr.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-DnN-vUal.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/report-og-fallback.png +0 -0
- package/dist/server/cli.js +680 -686
- 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 +664 -670
- 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,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "camelize",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "recursively transform key strings to camel-case",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@ljharb/eslint-config": "^21.0.0",
|
|
8
|
+
"aud": "^2.0.1",
|
|
9
|
+
"auto-changelog": "^2.4.0",
|
|
10
|
+
"eslint": "=8.8.0",
|
|
11
|
+
"in-publish": "^2.0.1",
|
|
12
|
+
"npmignore": "^0.3.0",
|
|
13
|
+
"safe-publish-latest": "^2.0.0",
|
|
14
|
+
"tape": "^5.6.1"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
18
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
19
|
+
"prepublishOnly": "safe-publish-latest",
|
|
20
|
+
"lint": "eslint --ext=js,mjs .",
|
|
21
|
+
"pretest": "npm run lint",
|
|
22
|
+
"tests-only": "tape 'test/**/*.js'",
|
|
23
|
+
"test": "npm run tests-only",
|
|
24
|
+
"posttest": "aud --production",
|
|
25
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
26
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git://github.com/ljharb/camelize.git"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/ljharb/camelize",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"camel-case",
|
|
35
|
+
"json",
|
|
36
|
+
"transform"
|
|
37
|
+
],
|
|
38
|
+
"testling": {
|
|
39
|
+
"files": "test/*.js",
|
|
40
|
+
"browsers": {
|
|
41
|
+
"iexplore": [
|
|
42
|
+
"6.0",
|
|
43
|
+
"7.0",
|
|
44
|
+
"8.0",
|
|
45
|
+
"9.0"
|
|
46
|
+
],
|
|
47
|
+
"chrome": [
|
|
48
|
+
"20.0"
|
|
49
|
+
],
|
|
50
|
+
"firefox": [
|
|
51
|
+
"10.0",
|
|
52
|
+
"15.0"
|
|
53
|
+
],
|
|
54
|
+
"safari": [
|
|
55
|
+
"5.1"
|
|
56
|
+
],
|
|
57
|
+
"opera": [
|
|
58
|
+
"12.0"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"author": {
|
|
63
|
+
"name": "James Halliday",
|
|
64
|
+
"email": "mail@substack.net",
|
|
65
|
+
"url": "http://substack.net"
|
|
66
|
+
},
|
|
67
|
+
"funding": {
|
|
68
|
+
"url": "https://github.com/sponsors/ljharb"
|
|
69
|
+
},
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"auto-changelog": {
|
|
72
|
+
"output": "CHANGELOG.md",
|
|
73
|
+
"template": "keepachangelog",
|
|
74
|
+
"unreleased": false,
|
|
75
|
+
"commitLimit": false,
|
|
76
|
+
"backfillLimit": false,
|
|
77
|
+
"hideCredit": true
|
|
78
|
+
},
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"ignore": [
|
|
81
|
+
".github/workflows"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var test = require('tape');
|
|
4
|
+
var camelize = require('../');
|
|
5
|
+
|
|
6
|
+
var obj = {
|
|
7
|
+
fee_fie_foe: 'fum',
|
|
8
|
+
beep_boop: [
|
|
9
|
+
{ 'abc.xyz': 'mno' },
|
|
10
|
+
{ 'foo-bar': 'baz' }
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
test('camelize a nested object', function (t) {
|
|
15
|
+
t.plan(1);
|
|
16
|
+
var res = camelize(obj);
|
|
17
|
+
t.deepEqual(res, {
|
|
18
|
+
feeFieFoe: 'fum',
|
|
19
|
+
beepBoop: [
|
|
20
|
+
{ abcXyz: 'mno' },
|
|
21
|
+
{ fooBar: 'baz' }
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('string', function (t) {
|
|
27
|
+
t.plan(1);
|
|
28
|
+
t.equal(camelize('one_two'), 'oneTwo');
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test('date', function (t) {
|
|
32
|
+
t.plan(1);
|
|
33
|
+
var d = new Date();
|
|
34
|
+
t.equal(camelize(d), d);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('regex', function (t) {
|
|
38
|
+
t.plan(1);
|
|
39
|
+
var r = /1234/;
|
|
40
|
+
t.equal(camelize(r), r);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test('only camelize strings that are the root value', function (t) {
|
|
44
|
+
t.plan(2);
|
|
45
|
+
t.equal(camelize('foo-bar'), 'fooBar');
|
|
46
|
+
var res = camelize({ 'foo-bar': 'baz-foo' });
|
|
47
|
+
t.deepEqual(res, { fooBar: 'baz-foo' });
|
|
48
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2015 Dmitry Ivanov
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors.
|
|
2
|
+
|
|
3
|
+
[](https://nodei.co/npm/color-name/)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
```js
|
|
7
|
+
var colors = require('color-name');
|
|
8
|
+
colors.red //[255,0,0]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
<a href="LICENSE"><img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/MIT_logo.svg" width="120"/></a>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
"aliceblue": [240, 248, 255],
|
|
5
|
+
"antiquewhite": [250, 235, 215],
|
|
6
|
+
"aqua": [0, 255, 255],
|
|
7
|
+
"aquamarine": [127, 255, 212],
|
|
8
|
+
"azure": [240, 255, 255],
|
|
9
|
+
"beige": [245, 245, 220],
|
|
10
|
+
"bisque": [255, 228, 196],
|
|
11
|
+
"black": [0, 0, 0],
|
|
12
|
+
"blanchedalmond": [255, 235, 205],
|
|
13
|
+
"blue": [0, 0, 255],
|
|
14
|
+
"blueviolet": [138, 43, 226],
|
|
15
|
+
"brown": [165, 42, 42],
|
|
16
|
+
"burlywood": [222, 184, 135],
|
|
17
|
+
"cadetblue": [95, 158, 160],
|
|
18
|
+
"chartreuse": [127, 255, 0],
|
|
19
|
+
"chocolate": [210, 105, 30],
|
|
20
|
+
"coral": [255, 127, 80],
|
|
21
|
+
"cornflowerblue": [100, 149, 237],
|
|
22
|
+
"cornsilk": [255, 248, 220],
|
|
23
|
+
"crimson": [220, 20, 60],
|
|
24
|
+
"cyan": [0, 255, 255],
|
|
25
|
+
"darkblue": [0, 0, 139],
|
|
26
|
+
"darkcyan": [0, 139, 139],
|
|
27
|
+
"darkgoldenrod": [184, 134, 11],
|
|
28
|
+
"darkgray": [169, 169, 169],
|
|
29
|
+
"darkgreen": [0, 100, 0],
|
|
30
|
+
"darkgrey": [169, 169, 169],
|
|
31
|
+
"darkkhaki": [189, 183, 107],
|
|
32
|
+
"darkmagenta": [139, 0, 139],
|
|
33
|
+
"darkolivegreen": [85, 107, 47],
|
|
34
|
+
"darkorange": [255, 140, 0],
|
|
35
|
+
"darkorchid": [153, 50, 204],
|
|
36
|
+
"darkred": [139, 0, 0],
|
|
37
|
+
"darksalmon": [233, 150, 122],
|
|
38
|
+
"darkseagreen": [143, 188, 143],
|
|
39
|
+
"darkslateblue": [72, 61, 139],
|
|
40
|
+
"darkslategray": [47, 79, 79],
|
|
41
|
+
"darkslategrey": [47, 79, 79],
|
|
42
|
+
"darkturquoise": [0, 206, 209],
|
|
43
|
+
"darkviolet": [148, 0, 211],
|
|
44
|
+
"deeppink": [255, 20, 147],
|
|
45
|
+
"deepskyblue": [0, 191, 255],
|
|
46
|
+
"dimgray": [105, 105, 105],
|
|
47
|
+
"dimgrey": [105, 105, 105],
|
|
48
|
+
"dodgerblue": [30, 144, 255],
|
|
49
|
+
"firebrick": [178, 34, 34],
|
|
50
|
+
"floralwhite": [255, 250, 240],
|
|
51
|
+
"forestgreen": [34, 139, 34],
|
|
52
|
+
"fuchsia": [255, 0, 255],
|
|
53
|
+
"gainsboro": [220, 220, 220],
|
|
54
|
+
"ghostwhite": [248, 248, 255],
|
|
55
|
+
"gold": [255, 215, 0],
|
|
56
|
+
"goldenrod": [218, 165, 32],
|
|
57
|
+
"gray": [128, 128, 128],
|
|
58
|
+
"green": [0, 128, 0],
|
|
59
|
+
"greenyellow": [173, 255, 47],
|
|
60
|
+
"grey": [128, 128, 128],
|
|
61
|
+
"honeydew": [240, 255, 240],
|
|
62
|
+
"hotpink": [255, 105, 180],
|
|
63
|
+
"indianred": [205, 92, 92],
|
|
64
|
+
"indigo": [75, 0, 130],
|
|
65
|
+
"ivory": [255, 255, 240],
|
|
66
|
+
"khaki": [240, 230, 140],
|
|
67
|
+
"lavender": [230, 230, 250],
|
|
68
|
+
"lavenderblush": [255, 240, 245],
|
|
69
|
+
"lawngreen": [124, 252, 0],
|
|
70
|
+
"lemonchiffon": [255, 250, 205],
|
|
71
|
+
"lightblue": [173, 216, 230],
|
|
72
|
+
"lightcoral": [240, 128, 128],
|
|
73
|
+
"lightcyan": [224, 255, 255],
|
|
74
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
75
|
+
"lightgray": [211, 211, 211],
|
|
76
|
+
"lightgreen": [144, 238, 144],
|
|
77
|
+
"lightgrey": [211, 211, 211],
|
|
78
|
+
"lightpink": [255, 182, 193],
|
|
79
|
+
"lightsalmon": [255, 160, 122],
|
|
80
|
+
"lightseagreen": [32, 178, 170],
|
|
81
|
+
"lightskyblue": [135, 206, 250],
|
|
82
|
+
"lightslategray": [119, 136, 153],
|
|
83
|
+
"lightslategrey": [119, 136, 153],
|
|
84
|
+
"lightsteelblue": [176, 196, 222],
|
|
85
|
+
"lightyellow": [255, 255, 224],
|
|
86
|
+
"lime": [0, 255, 0],
|
|
87
|
+
"limegreen": [50, 205, 50],
|
|
88
|
+
"linen": [250, 240, 230],
|
|
89
|
+
"magenta": [255, 0, 255],
|
|
90
|
+
"maroon": [128, 0, 0],
|
|
91
|
+
"mediumaquamarine": [102, 205, 170],
|
|
92
|
+
"mediumblue": [0, 0, 205],
|
|
93
|
+
"mediumorchid": [186, 85, 211],
|
|
94
|
+
"mediumpurple": [147, 112, 219],
|
|
95
|
+
"mediumseagreen": [60, 179, 113],
|
|
96
|
+
"mediumslateblue": [123, 104, 238],
|
|
97
|
+
"mediumspringgreen": [0, 250, 154],
|
|
98
|
+
"mediumturquoise": [72, 209, 204],
|
|
99
|
+
"mediumvioletred": [199, 21, 133],
|
|
100
|
+
"midnightblue": [25, 25, 112],
|
|
101
|
+
"mintcream": [245, 255, 250],
|
|
102
|
+
"mistyrose": [255, 228, 225],
|
|
103
|
+
"moccasin": [255, 228, 181],
|
|
104
|
+
"navajowhite": [255, 222, 173],
|
|
105
|
+
"navy": [0, 0, 128],
|
|
106
|
+
"oldlace": [253, 245, 230],
|
|
107
|
+
"olive": [128, 128, 0],
|
|
108
|
+
"olivedrab": [107, 142, 35],
|
|
109
|
+
"orange": [255, 165, 0],
|
|
110
|
+
"orangered": [255, 69, 0],
|
|
111
|
+
"orchid": [218, 112, 214],
|
|
112
|
+
"palegoldenrod": [238, 232, 170],
|
|
113
|
+
"palegreen": [152, 251, 152],
|
|
114
|
+
"paleturquoise": [175, 238, 238],
|
|
115
|
+
"palevioletred": [219, 112, 147],
|
|
116
|
+
"papayawhip": [255, 239, 213],
|
|
117
|
+
"peachpuff": [255, 218, 185],
|
|
118
|
+
"peru": [205, 133, 63],
|
|
119
|
+
"pink": [255, 192, 203],
|
|
120
|
+
"plum": [221, 160, 221],
|
|
121
|
+
"powderblue": [176, 224, 230],
|
|
122
|
+
"purple": [128, 0, 128],
|
|
123
|
+
"rebeccapurple": [102, 51, 153],
|
|
124
|
+
"red": [255, 0, 0],
|
|
125
|
+
"rosybrown": [188, 143, 143],
|
|
126
|
+
"royalblue": [65, 105, 225],
|
|
127
|
+
"saddlebrown": [139, 69, 19],
|
|
128
|
+
"salmon": [250, 128, 114],
|
|
129
|
+
"sandybrown": [244, 164, 96],
|
|
130
|
+
"seagreen": [46, 139, 87],
|
|
131
|
+
"seashell": [255, 245, 238],
|
|
132
|
+
"sienna": [160, 82, 45],
|
|
133
|
+
"silver": [192, 192, 192],
|
|
134
|
+
"skyblue": [135, 206, 235],
|
|
135
|
+
"slateblue": [106, 90, 205],
|
|
136
|
+
"slategray": [112, 128, 144],
|
|
137
|
+
"slategrey": [112, 128, 144],
|
|
138
|
+
"snow": [255, 250, 250],
|
|
139
|
+
"springgreen": [0, 255, 127],
|
|
140
|
+
"steelblue": [70, 130, 180],
|
|
141
|
+
"tan": [210, 180, 140],
|
|
142
|
+
"teal": [0, 128, 128],
|
|
143
|
+
"thistle": [216, 191, 216],
|
|
144
|
+
"tomato": [255, 99, 71],
|
|
145
|
+
"turquoise": [64, 224, 208],
|
|
146
|
+
"violet": [238, 130, 238],
|
|
147
|
+
"wheat": [245, 222, 179],
|
|
148
|
+
"white": [255, 255, 255],
|
|
149
|
+
"whitesmoke": [245, 245, 245],
|
|
150
|
+
"yellow": [255, 255, 0],
|
|
151
|
+
"yellowgreen": [154, 205, 50]
|
|
152
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "color-name",
|
|
3
|
+
"version": "1.1.4",
|
|
4
|
+
"description": "A list of color names and its values",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "node test.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git@github.com:colorjs/color-name.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"color-name",
|
|
18
|
+
"color",
|
|
19
|
+
"color-keyword",
|
|
20
|
+
"keyword"
|
|
21
|
+
],
|
|
22
|
+
"author": "DY <dfcreative@gmail.com>",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/colorjs/color-name/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/colorjs/color-name"
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Gilmore Davidson
|
|
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.
|
|
22
|
+
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
CSS Background Parser
|
|
2
|
+
=====================
|
|
3
|
+
|
|
4
|
+
Parse an element’s CSS background properties to get a list of individual backgrounds.
|
|
5
|
+
|
|
6
|
+
_This library is still a work in progress and is probably not very useful yet. It’s pre-1.0 and has no tests yet._
|
|
7
|
+
|
|
8
|
+
* Methods
|
|
9
|
+
* [parseElementStyle()][parseElementStyle]
|
|
10
|
+
* Objects
|
|
11
|
+
* [Background][Background]
|
|
12
|
+
* [BackgroundList][BackgroundList]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
Available on npm as `css-background-parser`, or in the browser as a global called `cssBgParser`
|
|
18
|
+
|
|
19
|
+
### Methods
|
|
20
|
+
|
|
21
|
+
#### <a name="parseElementStyle"></a> `parseElementStyle(styleObject)`
|
|
22
|
+
|
|
23
|
+
Takes a [`CSSStyleDeclaration`][CSSStyleDeclaration] object and returns a [`BackgroundList`][BackgroundList] of backgrounds found in the styles.
|
|
24
|
+
|
|
25
|
+
In non-techo-babble, the only input is an object which represents an element’s style. It could be `element.style`, the result of `window.getComputedStyle(element)`, or a custom object that happens to have properties which are prefixed `background` (`backgroundColor`, `backgroundSize`, etc.).
|
|
26
|
+
|
|
27
|
+
If you want the most accurate results, I suggest you use `window.getComputedStyle(element)` — see the code examples below.
|
|
28
|
+
|
|
29
|
+
Since multiple backgrounds can be assigned to an element, this method will always return a [`BackgroundList`][BackgroundList], even if there is only one background. Backgrounds are listed in order from top layer to bottom layer (in other words, the first layer is closest to the person looking at the screen). This means that the `color` property will only be filled on the _last_ `Background` object in the list, representing the bottom layer.
|
|
30
|
+
|
|
31
|
+
A very basic example:
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
var style = getComputedStyle(someElement);
|
|
35
|
+
var bglist = cssBgParser.parseElementStyle(style);
|
|
36
|
+
|
|
37
|
+
console.log(bglist.backgrounds.length); // 1
|
|
38
|
+
console.log(bglist.backgrounds[0]); // Logs a Background object
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Multiple backgrounds:
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
someElement.style.backgroundImage = 'linear-gradient(white, blue), url(/background.png)';
|
|
45
|
+
someElement.style.backgroundColor = 'black';
|
|
46
|
+
|
|
47
|
+
var style = getComputedStyle(someElement);
|
|
48
|
+
var bglist = cssBgParser.parseElementStyle(style);
|
|
49
|
+
|
|
50
|
+
console.log(bglist.backgrounds.length); // 2
|
|
51
|
+
|
|
52
|
+
console.log(bglist.backgrounds[0].image); // "linear-gradient(white, blue)"
|
|
53
|
+
console.log(bglist.backgrounds[1].image); // "url(http://example.com/background.png)"
|
|
54
|
+
|
|
55
|
+
console.log(bglist.backgrounds[0].color); // ""
|
|
56
|
+
console.log(bglist.backgrounds[1].color); // "rgb(0, 0, 0)"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The difference between `element.style` and `window.getComputedStyle(element)`:
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
someElement.style.background = 'red';
|
|
63
|
+
|
|
64
|
+
var parsedStyle = cssBgParser.parsesomeElemententStyle(elem.style);
|
|
65
|
+
console.log(parsedStyle.backgrounds[0]);
|
|
66
|
+
/*
|
|
67
|
+
* Background {
|
|
68
|
+
* attachment: "initial"
|
|
69
|
+
* clip: "initial"
|
|
70
|
+
* color: "red"
|
|
71
|
+
* image: "initial"
|
|
72
|
+
* origin: "initial"
|
|
73
|
+
* position: "initial"
|
|
74
|
+
* repeat: "initial"
|
|
75
|
+
* size: "initial"
|
|
76
|
+
* }
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
var computed = getComputedStyle(elem);
|
|
80
|
+
var parsedComputed = cssBgParser.parseElementStyle(computed);
|
|
81
|
+
console.log(parsedComputed.backgrounds[0]);
|
|
82
|
+
/*
|
|
83
|
+
* Background {
|
|
84
|
+
* attachment: "scroll"
|
|
85
|
+
* clip: "border-box"
|
|
86
|
+
* color: "rgb(255, 0, 0)"
|
|
87
|
+
* image: "none"
|
|
88
|
+
* origin: "padding-box"
|
|
89
|
+
* position: "0% 0%"
|
|
90
|
+
* repeat: "repeat"
|
|
91
|
+
* size: "auto"
|
|
92
|
+
* }
|
|
93
|
+
*/
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### Objects / “Classes”
|
|
99
|
+
|
|
100
|
+
#### <a name="Background"></a> `Background(props)`
|
|
101
|
+
|
|
102
|
+
A simple object holding the properties of a single background for an element.
|
|
103
|
+
|
|
104
|
+
##### Properties
|
|
105
|
+
|
|
106
|
+
`Background` objects contain the following properties, listed here with their default values (as defined by the [CSS specification][CSSBackgroundSpec]):
|
|
107
|
+
|
|
108
|
+
* `attachment` — "scroll"
|
|
109
|
+
* `clip` — "border-box"
|
|
110
|
+
* `color` — ""
|
|
111
|
+
* `image` — "none"
|
|
112
|
+
* `origin` — "padding-box"
|
|
113
|
+
* `position` — "0% 0%"
|
|
114
|
+
* `repeat` — "repeat"
|
|
115
|
+
* `size` — "auto"
|
|
116
|
+
|
|
117
|
+
A `Background` can be instantiated with an optional first parameter, which is an object containing key/value pairs of properties to set. Any properties in the list above that are not found in the `props` argument are set to their default values. In most cases, though, you’d only deal with `Background` objects as return values from `parseElementStyle()`.
|
|
118
|
+
|
|
119
|
+
##### Methods
|
|
120
|
+
|
|
121
|
+
* `toString()`
|
|
122
|
+
Returns a string of all properties, in a format that matches browsers’ formatting of the `background` CSS shorthand property (when an element has only a single background). For reference, the format is:
|
|
123
|
+
`<color> <repeat> <attachment> <position> / <size> <origin> <clip>`
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
#### <a name="BackgroundList"></a> `BackgroundList(arrayOfBackgrounds)`
|
|
128
|
+
|
|
129
|
+
A collection of [`Background`][Background] objects representing all the backgrounds used for a single element.
|
|
130
|
+
|
|
131
|
+
##### Properties
|
|
132
|
+
|
|
133
|
+
`BackgroundList` objects only contain a single property called `backgrounds`, which is an array of `Background` objects.
|
|
134
|
+
|
|
135
|
+
A `BackgroundList` can be instantiated with an optional first parameter, which is an array of `Background` objects that gets assigned to the `backgrounds` property. In most cases, though, you’d only deal with `BackgroundList` objects as return values from `parseElementStyle()`.
|
|
136
|
+
|
|
137
|
+
##### Methods
|
|
138
|
+
|
|
139
|
+
* `toString()`
|
|
140
|
+
Returns a comma-separated string of all `Background`s contained in the collection, calling `.toString()` on each `Background`. This matches browsers’ formatting of the `background` CSS shorthand property (when an element has multiple backgrounds).
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
[parseElementStyle]: #Background
|
|
145
|
+
[Background]: #Background
|
|
146
|
+
[BackgroundList]: #BackgroundList
|
|
147
|
+
|
|
148
|
+
[CSSBackgroundSpec]: http://www.w3.org/TR/css3-background/#backgrounds
|
|
149
|
+
[CSSStyleDeclaration]: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* https://github.com/gilmoreorless/css-background-parser
|
|
3
|
+
* Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
|
|
4
|
+
*/
|
|
5
|
+
(function (exports) {
|
|
6
|
+
|
|
7
|
+
function BackgroundList(backgrounds) {
|
|
8
|
+
if (!(this instanceof BackgroundList)) {
|
|
9
|
+
return new BackgroundList();
|
|
10
|
+
}
|
|
11
|
+
this.backgrounds = backgrounds || [];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
BackgroundList.prototype.toString = function () {
|
|
15
|
+
return this.backgrounds.join(', ');
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
function Background(props) {
|
|
20
|
+
if (!(this instanceof Background)) {
|
|
21
|
+
return new Background(props);
|
|
22
|
+
}
|
|
23
|
+
props = props || {};
|
|
24
|
+
var bg = this;
|
|
25
|
+
|
|
26
|
+
function defprop(name, defaultValue) {
|
|
27
|
+
bg[name] = (name in props) ? props[name] : defaultValue;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// http://www.w3.org/TR/css3-background/#backgrounds
|
|
31
|
+
defprop('color', '');
|
|
32
|
+
defprop('image', 'none');
|
|
33
|
+
defprop('attachment', 'scroll');
|
|
34
|
+
defprop('clip', 'border-box');
|
|
35
|
+
defprop('origin', 'padding-box');
|
|
36
|
+
defprop('position', '0% 0%');
|
|
37
|
+
defprop('repeat', 'repeat');
|
|
38
|
+
defprop('size', 'auto');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
Background.prototype.toString = function () {
|
|
42
|
+
var list = [
|
|
43
|
+
this.image,
|
|
44
|
+
this.repeat,
|
|
45
|
+
this.attachment,
|
|
46
|
+
this.position + ' / ' + this.size,
|
|
47
|
+
this.origin,
|
|
48
|
+
this.clip
|
|
49
|
+
];
|
|
50
|
+
if (this.color) {
|
|
51
|
+
list.unshift(this.color);
|
|
52
|
+
}
|
|
53
|
+
return list.join(' ');
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.BackgroundList = BackgroundList;
|
|
57
|
+
exports.Background = Background;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
function parseImages(cssText) {
|
|
61
|
+
var images = [];
|
|
62
|
+
var tokens = /[,\(\)]/;
|
|
63
|
+
var parens = 0;
|
|
64
|
+
var buffer = '';
|
|
65
|
+
|
|
66
|
+
if (cssText == null) {
|
|
67
|
+
return images;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
while (cssText.length) {
|
|
71
|
+
var match = tokens.exec(cssText);
|
|
72
|
+
if (!match) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
var char = match[0];
|
|
76
|
+
var ignoreChar = false;
|
|
77
|
+
switch (char) {
|
|
78
|
+
case ',':
|
|
79
|
+
if (!parens) {
|
|
80
|
+
images.push(buffer.trim());
|
|
81
|
+
buffer = '';
|
|
82
|
+
ignoreChar = true;
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
case '(':
|
|
86
|
+
parens++;
|
|
87
|
+
break;
|
|
88
|
+
case ')':
|
|
89
|
+
parens--;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
var index = match.index + 1;
|
|
94
|
+
buffer += cssText.slice(0, ignoreChar ? index - 1 : index);
|
|
95
|
+
cssText = cssText.slice(index);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (buffer.length || cssText.length) {
|
|
99
|
+
images.push((buffer + cssText).trim());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return images;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Helper for .map()
|
|
106
|
+
function trim(str) {
|
|
107
|
+
return str.trim();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function parseSimpleList(cssText) {
|
|
111
|
+
return (cssText || '').split(',').map(trim);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
exports.parseElementStyle = function (styleObject) {
|
|
115
|
+
var list = new BackgroundList();
|
|
116
|
+
if (styleObject == null) {
|
|
117
|
+
return list;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var bgImage = parseImages(styleObject.backgroundImage);
|
|
121
|
+
var bgColor = styleObject.backgroundColor;
|
|
122
|
+
var bgAttachment = parseSimpleList(styleObject.backgroundAttachment);
|
|
123
|
+
var bgClip = parseSimpleList(styleObject.backgroundClip);
|
|
124
|
+
var bgOrigin = parseSimpleList(styleObject.backgroundOrigin);
|
|
125
|
+
var bgPosition = parseSimpleList(styleObject.backgroundPosition);
|
|
126
|
+
var bgRepeat = parseSimpleList(styleObject.backgroundRepeat);
|
|
127
|
+
var bgSize = parseSimpleList(styleObject.backgroundSize);
|
|
128
|
+
var background;
|
|
129
|
+
|
|
130
|
+
for (var i = 0, ii = bgImage.length; i < ii; i++) {
|
|
131
|
+
background = new Background({
|
|
132
|
+
image: bgImage[i],
|
|
133
|
+
attachment: bgAttachment[i % bgAttachment.length],
|
|
134
|
+
clip: bgClip[i % bgClip.length],
|
|
135
|
+
origin: bgOrigin[i % bgOrigin.length],
|
|
136
|
+
position: bgPosition[i % bgPosition.length],
|
|
137
|
+
repeat: bgRepeat[i % bgRepeat.length],
|
|
138
|
+
size: bgSize[i % bgSize.length]
|
|
139
|
+
});
|
|
140
|
+
if (i === ii - 1) {
|
|
141
|
+
background.color = bgColor;
|
|
142
|
+
}
|
|
143
|
+
list.backgrounds.push(background);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return list;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// exports.parseCssString = function (cssString) {
|
|
150
|
+
// return new Background();
|
|
151
|
+
// };
|
|
152
|
+
|
|
153
|
+
// exports.parseBackgroundValue = function (cssString) {
|
|
154
|
+
// return new Background();
|
|
155
|
+
// };
|
|
156
|
+
|
|
157
|
+
})((function (root) {
|
|
158
|
+
// CommonJS
|
|
159
|
+
if (typeof module !== 'undefined' && module.exports !== undefined) return module.exports;
|
|
160
|
+
// Global `cssBgParser`
|
|
161
|
+
return (root.cssBgParser = {});
|
|
162
|
+
})(this));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "css-background-parser",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Parse an element’s CSS background properties to get a list of individual backgrounds",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/gilmoreorless/css-background-parser.git"
|
|
12
|
+
},
|
|
13
|
+
"author": "Gilmore Davidson",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/gilmoreorless/css-background-parser/issues"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/gilmoreorless/css-background-parser#readme"
|
|
19
|
+
}
|