decocms 4.161.1 → 4.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CUcDxjGY.js → AlertCircle-LCxBCJ8n.js} +1 -1
- package/dist/client/assets/{AreaChart-Dq_bkrUx.js → AreaChart-CVlhdmdg.js} +1 -1
- package/dist/client/assets/{ArrowUp-BhLEQ_R-.js → ArrowUp-LFRKHLuQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Bfi_-T1T.js → ArrowUpRight-CXMFqfGp.js} +1 -1
- package/dist/client/assets/{Check-Dhn7Zxph.js → Check-BCFAcmIa.js} +1 -1
- package/dist/client/assets/{CheckCircle-CPimdDox.js → CheckCircle-DpOD9rH0.js} +1 -1
- package/dist/client/assets/{ChevronDown-Djtj8s2C.js → ChevronDown-BOvaCVzg.js} +1 -1
- package/dist/client/assets/{ChevronRight-DKQjxej0.js → ChevronRight-liTksB2U.js} +1 -1
- package/dist/client/assets/{ChevronUp-CArow7Ld.js → ChevronUp-BIqoKMUJ.js} +1 -1
- package/dist/client/assets/{Copy01-5xEyaq0L.js → Copy01-ZIMiAxdP.js} +1 -1
- package/dist/client/assets/{CpuChip01-CihN30nB.js → CpuChip01-ZsmfFXVO.js} +1 -1
- package/dist/client/assets/{DotsVertical-LcorlX8z.js → DotsVertical-CtO9eku7.js} +1 -1
- package/dist/client/assets/{Eye-DxBGn7O3.js → Eye-BQWYf35S.js} +1 -1
- package/dist/client/assets/{FilterLines-pb40JzMe.js → FilterLines-CaGojimS.js} +1 -1
- package/dist/client/assets/{HardDrive-Cxy_frkb.js → HardDrive-BRyCfhBH.js} +1 -1
- package/dist/client/assets/{Key01-Dy8ufMzX.js → Key01-i8xg5eM3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-G5ulvKoQ.js → LayoutLeft-Co2_iLon.js} +1 -1
- package/dist/client/assets/{LinkExternal01-FhqefsKA.js → LinkExternal01-S8dAjzzi.js} +1 -1
- package/dist/client/assets/{LogOut01-j-WBuxDZ.js → LogOut01-D75UBZCc.js} +1 -1
- package/dist/client/assets/{Monitor01-CM3NjWzV.js → Monitor01-BAx1QWFz.js} +1 -1
- package/dist/client/assets/{Palette-COYfzM_U.js → Palette-Bg3YC03V.js} +1 -1
- package/dist/client/assets/{Play-DNLWL5K3.js → Play-VIp82r5R.js} +1 -1
- package/dist/client/assets/{Plus-CF1N8Q67.js → Plus-C9hAZmdY.js} +1 -1
- package/dist/client/assets/{SearchLg-D_5j9M1m.js → SearchLg-CqGEHAUM.js} +1 -1
- package/dist/client/assets/{SearchMd-xDCdTWxD.js → SearchMd-oPsBet0y.js} +1 -1
- package/dist/client/assets/{Settings02-DiZDXj5Z.js → Settings02-DNMfHyCE.js} +1 -1
- package/dist/client/assets/{Shield01-tCRFOlSz.js → Shield01-DD8XMdYI.js} +1 -1
- package/dist/client/assets/{Star01-BS-Gu-2l.js → Star01-y2n-9wTn.js} +1 -1
- package/dist/client/assets/{Stars01-Dev5O1vQ.js → Stars01-CJ0QEEdc.js} +1 -1
- package/dist/client/assets/{Stars02-rKtNKKT8.js → Stars02-B3TWh8au.js} +1 -1
- package/dist/client/assets/{Sun-DsZ2bQx0.js → Sun-BQEYQLhf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DL3LsK3I.js → SwitchHorizontal01-Dsxsamxe.js} +1 -1
- package/dist/client/assets/{Tool01-BsGxyCC7.js → Tool01-Oew-Vovb.js} +1 -1
- package/dist/client/assets/{Tool02-BzUrG-qS.js → Tool02-CJeM1QZT.js} +1 -1
- package/dist/client/assets/{Trash01-Bg4oINGR.js → Trash01-CLRqp8e5.js} +1 -1
- package/dist/client/assets/{TrendUp01-Bcc67T6i.js → TrendUp01-Bm1SbHN0.js} +1 -1
- package/dist/client/assets/{Upload01-DhCO5Br6.js → Upload01-ZVOuhs4w.js} +1 -1
- package/dist/client/assets/{User01-BHSs9KjH.js → User01-BYLEai7_.js} +1 -1
- package/dist/client/assets/{Users01-pfQw-LFZ.js → Users01-CS4W313X.js} +1 -1
- package/dist/client/assets/{Users03-CHoVaQzA.js → Users03-CbHaoSh0.js} +1 -1
- package/dist/client/assets/{X-CKE3sYuH.js → X-x99fWfG-.js} +1 -1
- package/dist/client/assets/{XCircle-u3iQOPlL.js → XCircle-CeqmuHIK.js} +1 -1
- package/dist/client/assets/{XClose-CZqGW_Re.js → XClose-CCug5seG.js} +1 -1
- package/dist/client/assets/{Zap-BgHvWCiG.js → Zap-DHqCvvjt.js} +1 -1
- package/dist/client/assets/{ZapSquare-C0MzWe19.js → ZapSquare-BKWVL4uR.js} +1 -1
- package/dist/client/assets/{access-gate-_CHj67Lr.js → access-gate-C9PFWoZS.js} +1 -1
- package/dist/client/assets/{add-section-modal-CgK9a_DZ.js → add-section-modal-DEjIe-XG.js} +1 -1
- package/dist/client/assets/{agent-icon-DViIGKZU.js → agent-icon-DR5LB4zY.js} +1 -1
- package/dist/client/assets/{agents-list-C8Lf6yfQ.js → agents-list-BvXD__fr.js} +1 -1
- package/dist/client/assets/{ai-providers-GpZi36Ym.js → ai-providers-DuMestUx.js} +1 -1
- package/dist/client/assets/{alert-C8EyftLv.js → alert-DWAFMZWl.js} +1 -1
- package/dist/client/assets/{alert-dialog-D0gAEvN4.js → alert-dialog-DR9_FciR.js} +1 -1
- package/dist/client/assets/{app-editor-JFaMzdC8.js → app-editor-BC28cPFO.js} +1 -1
- package/dist/client/assets/{auth-Bo_5cDaq.js → auth-BiMrtm96.js} +1 -1
- package/dist/client/assets/{auth-catchall-B1nf6rIk.js → auth-catchall-BNPPREMt.js} +1 -1
- package/dist/client/assets/{auth-entry-CQaL8fIv.js → auth-entry-CVJjeL2L.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DeBI7u9p.js → auth-split-layout-CbPO57v5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Dk8hrcP_.js → authenticate-and-persist-oauth-B8SUVbil.js} +1 -1
- package/dist/client/assets/{automation-list-row-_65SUyy9.js → automation-list-row-C5X09Iy0.js} +1 -1
- package/dist/client/assets/{automation-runs-CDgA8nyV.js → automation-runs-i1Rm2H_V.js} +1 -1
- package/dist/client/assets/{automations-rmE6d_TD.js → automations-C48IGjrC.js} +1 -1
- package/dist/client/assets/{avatar-EY0D0gM0.js → avatar-CssB4IS0.js} +1 -1
- package/dist/client/assets/{badge-BcLkQsY8.js → badge-B-S2iO6e.js} +1 -1
- package/dist/client/assets/{block-document-7t27xq-o.js → block-document-Dotg4_gG.js} +1 -1
- package/dist/client/assets/{brand-context-CTEsQnpf.js → brand-context-C331P1EH.js} +1 -1
- package/dist/client/assets/{buckets-jLO2vHof.js → buckets-zt_s5mti.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-jKlYCHA4.js → bulk-category-panel-DMe3EujP.js} +1 -1
- package/dist/client/assets/{calendar-7NtjSUFn.js → calendar-BO4sgiAT.js} +1 -1
- package/dist/client/assets/{capability-load-error-Duuaa61t.js → capability-load-error-B2CpoAHd.js} +1 -1
- package/dist/client/assets/{card-BYakdmOR.js → card-Dtd81GX2.js} +1 -1
- package/dist/client/assets/{category-editor-GeXrpLxy.js → category-editor-BxdNiDrW.js} +1 -1
- package/dist/client/assets/{chat-context-DCvUBk8c.js → chat-context-_ugV5jB0.js} +1 -1
- package/dist/client/assets/{checkbox-CcZj1YlH.js → checkbox-DyL6jqNP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DqRROXdk.js → cli-auth-success-CBllfpZy.js} +1 -1
- package/dist/client/assets/{collection-detail-wix_26Wd.js → collection-detail-CJ-IT8lZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-DWWsCnCf.js → collection-display-button-rIB9x9ex.js} +1 -1
- package/dist/client/assets/{collection-search-maUn1v1y.js → collection-search-DDaBoxpd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dwv1fUc2.js → collection-table-wrapper-DvDVvjdJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-D_eTPSZw.js → collection-tabs-6ZZEGxA4.js} +1 -1
- package/dist/client/assets/{command-BI3Xv4Sc.js → command-B0sPw5D_.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-C4bA6ah8.js → commerce-onboarding-CA2gNg1f.js} +1 -1
- package/dist/client/assets/{companions-core-CUE9i4aH.js → companions-core-bB24Ott2.js} +1 -1
- package/dist/client/assets/{connect-BlLLWwAi.js → connect-dTZGddot.js} +1 -1
- package/dist/client/assets/{connection-59NSzgNt.js → connection-B2NXk64E.js} +1 -1
- package/dist/client/assets/{connection-card-DwmEL33x.js → connection-card-D4yqc7qp.js} +1 -1
- package/dist/client/assets/{connection-detail-CYsSdraL.js → connection-detail-BNv09xz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C4AUcIuq.js → connection-form-helpers-Dp2JRmtQ.js} +1 -1
- package/dist/client/assets/{connections-CrIn8aFh.js → connections-Dkp0iGo0.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CUoSjnGN.js → decopilot-sse-pool-tfgrlddF.js} +1 -1
- package/dist/client/assets/{dialog-deq5Z62n.js → dialog-DDV9hxrK.js} +1 -1
- package/dist/client/assets/{domain-settings-dACEe94Z.js → domain-settings-Cj5IWEJw.js} +1 -1
- package/dist/client/assets/{drawer-CAc0v8Kk.js → drawer-CLLhxT0A.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B84c6vyY.js → dropdown-menu-DFyP7pd-.js} +1 -1
- package/dist/client/assets/{empty-state-DmcLo16w.js → empty-state-C8MJdBfO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-zUXnD6vP.js → extract-connection-data-GzPEHPIn.js} +1 -1
- package/dist/client/assets/{file-explorer-6556vrB-.js → file-explorer-DcVPQshc.js} +1 -1
- package/dist/client/assets/{form-DIU3QevO.js → form-dL4WOA5T.js} +1 -1
- package/dist/client/assets/{general-CA9kMGu5.js → general-6LKGbmPX.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CFkEPF0T.js → github-repo-picker-BYme-j8T.js} +1 -1
- package/dist/client/assets/{hooks-DPmWEFUp.js → hooks-B9cPFqGD.js} +1 -1
- package/dist/client/assets/{index-CpxKAg9O.js → index-60s5nmmz.js} +1 -1
- package/dist/client/assets/{index-BSvZt1aY.js → index-BBd4FRXS.js} +1 -1
- package/dist/client/assets/{index-DOL6-zMr.js → index-By7P3hhU.js} +1 -1
- package/dist/client/assets/{index-D_r7k-Zk.js → index-D2YLDCkn.js} +1 -1
- package/dist/client/assets/{index-CN9XWylU.js → index-DeVgWfhn.js} +1 -1
- package/dist/client/assets/{index-C0LPV5CG.js → index-Y9ucfh4p.js} +1 -1
- package/dist/client/assets/{index-4AV5Z-HJ.js → index-ZADPN4om.js} +16 -16
- package/dist/client/assets/{index-D6pENVEO.js → index-jG87093U.js} +1 -1
- package/dist/client/assets/{index-CtiwGgW-.js → index-kfiIPtrP.js} +3 -3
- package/dist/client/assets/{index-CNXKLuex.js → index-pBoO89BO.js} +1 -1
- package/dist/client/assets/{index-redirect-CIR5XR7Q.js → index-redirect-CfBCt2ky.js} +1 -1
- package/dist/client/assets/{index-2rnCFHCe.js → index-u1ajTG-j.js} +5 -5
- package/dist/client/assets/{input-D_DItGEm.js → input-BjlpMnRZ.js} +1 -1
- package/dist/client/assets/{integration-icon-Df4ZBIp7.js → integration-icon-CI602PfH.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CWBDoRs1.js → invite-member-dialog-phqD0XUF.js} +1 -1
- package/dist/client/assets/{label-DUDALg7X.js → label-CSNgMmTA.js} +1 -1
- package/dist/client/assets/{layout-WusSx2Yj.js → layout-BBpcfaXL.js} +1 -1
- package/dist/client/assets/{login-C_oihz_8.js → login-DE_463fT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BbRW3A3Q.js → mcp-oauth-CxvR2V5h.js} +1 -1
- package/dist/client/assets/{members-umFS_xad.js → members-CeatJR1m.js} +1 -1
- package/dist/client/assets/{monaco-editor-IqdwRezb.js → monaco-editor-zuz4s4Wv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-kA_bHwrR.js → monitoring-stats-row-krDWXB2t.js} +1 -1
- package/dist/client/assets/{multi-select-BweYe2PI.js → multi-select-CMyA49eR.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-qNBtM0.js → oauth-callback-C9jDdjjs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-aCFEVDVd.js → oauth-callback-ai-provider-CY3QZi7E.js} +1 -1
- package/dist/client/assets/{onboarding-xh7g6VBa.js → onboarding-C3hOUjMo.js} +1 -1
- package/dist/client/assets/{org-layout-Ck-EwcID.js → org-layout-XwuOFG3d.js} +1 -1
- package/dist/client/assets/{organization-choice-18yusXQi.js → organization-choice-BM-XKanD.js} +1 -1
- package/dist/client/assets/{orgs-CK55t9R4.js → orgs-DmL2XQRI.js} +1 -1
- package/dist/client/assets/{page-seo-form-BNNQJ_5w.js → page-seo-form-0xV6qNbu.js} +1 -1
- package/dist/client/assets/{popover-Cw8rGbAP.js → popover-EE72qx8A.js} +1 -1
- package/dist/client/assets/{post-editor-CEZSocRU.js → post-editor-BuHJ7HnN.js} +1 -1
- package/dist/client/assets/{primitives-DRaraXk1.js → primitives-ChQICk_y.js} +1 -1
- package/dist/client/assets/{profile-BmxcRLxK.js → profile-B0SoUvj9.js} +1 -1
- package/dist/client/assets/project-app-view-YTx3iCq1.js +1 -0
- package/dist/client/assets/record-editor-M7bvrOuK.js +1 -0
- package/dist/client/assets/{redirect-editor-ChEbeEcj.js → redirect-editor-_6dVoePs.js} +1 -1
- package/dist/client/assets/registry-fNrz9Fbw.js +2 -0
- package/dist/client/assets/{registry-layout-X0LiRsNb.js → registry-layout-OS_nbWHC.js} +1 -1
- package/dist/client/assets/{reports-C7-Wr7Bq.js → reports-B3VBQs5Y.js} +1 -1
- package/dist/client/assets/{require-capability-vhHzXv1S.js → require-capability-CieeBdjs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BFyGoMIQ.js → required-auth-layout-BDIyJAhL.js} +1 -1
- package/dist/client/assets/{reset-password-C3W51CT7.js → reset-password-CpG0cI8F.js} +1 -1
- package/dist/client/assets/{roles-T8ZrM738.js → roles-DlOhY5JD.js} +1 -1
- package/dist/client/assets/{search-input-DsrHaqfF.js → search-input-cF6ciAVZ.js} +1 -1
- package/dist/client/assets/{secrets-C10FVzpG.js → secrets-Dh26lP0l.js} +1 -1
- package/dist/client/assets/{sections-editor-BRrdZvns.js → sections-editor-HbcASmu4.js} +1 -1
- package/dist/client/assets/{select-MSKwIXsQ.js → select-ceaThfRJ.js} +1 -1
- package/dist/client/assets/{select-model-cISsQOKf.js → select-model-CDLnPEtQ.js} +1 -1
- package/dist/client/assets/{self-tool-result-BFBpynWU.js → self-tool-result-CaPtQwDV.js} +1 -1
- package/dist/client/assets/{seo-editor-aoHApnKO.js → seo-editor-CoW5u7nN.js} +1 -1
- package/dist/client/assets/{settings-layout-06ORo3Ly.js → settings-layout-CM35yCas.js} +1 -1
- package/dist/client/assets/{settings-section-BwbAi_9Z.js → settings-section-BJKYi71q.js} +1 -1
- package/dist/client/assets/{shell-controls-Dxr-K-AK.js → shell-controls-BLKKFd-i.js} +1 -1
- package/dist/client/assets/{shell-layout-BGQF6PX5.js → shell-layout-Cem8gTbL.js} +1 -1
- package/dist/client/assets/{sidebar-BSiDMvB4.js → sidebar-4JG4Ky1v.js} +1 -1
- package/dist/client/assets/{skeleton-DvDczkMq.js → skeleton-QaXxQA1G.js} +1 -1
- package/dist/client/assets/{spinner-C42r1Vsd.js → spinner-CyUVcOie.js} +1 -1
- package/dist/client/assets/{sso-DtmZ130q.js → sso-CCHd62CO.js} +1 -1
- package/dist/client/assets/{store-Kv89b-QB.js → store-lf3dlAB1.js} +1 -1
- package/dist/client/assets/store-registry-BTA3Me55.js +2 -0
- package/dist/client/assets/{studio-tools-DXFd5pC-.js → studio-tools-CUWFqlTh.js} +1 -1
- package/dist/client/assets/{switch-CBqoWJjk.js → switch-1Vfz3uSg.js} +1 -1
- package/dist/client/assets/{tab-id-CrmXezIF.js → tab-id-CI2T4n3l.js} +1 -1
- package/dist/client/assets/{table-Dw9yxjDM.js → table-BQAbKOYa.js} +1 -1
- package/dist/client/assets/{tabs-B-9owVy4.js → tabs-qagPrFeg.js} +1 -1
- package/dist/client/assets/{textarea-Bo1OW0X4.js → textarea-C3WLqu3y.js} +1 -1
- package/dist/client/assets/{toggle-group-CEzDektV.js → toggle-group-NXghphbz.js} +1 -1
- package/dist/client/assets/{toolbar-Bgx2r-KG.js → toolbar-ZE2CENTf.js} +1 -1
- package/dist/client/assets/{tooltip-CECIOVns.js → tooltip-CiyZj9MW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DZ5TF6sl.js → use-ai-providers-B6AoVltc.js} +1 -1
- package/dist/client/assets/{use-automations--XWm3Qgp.js → use-automations-CiQS3Pmq.js} +1 -1
- package/dist/client/assets/{use-autosave-v9rzcrBw.js → use-autosave-DE9X8qzD.js} +1 -1
- package/dist/client/assets/{use-capability-DWckCy6j.js → use-capability-DX60Hp0S.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Of9PNT64.js → use-clock-tick-Q8CgV2VU.js} +1 -1
- package/dist/client/assets/{use-connection-Jg1AV4wa.js → use-connection-c87Xz8U-.js} +1 -1
- package/dist/client/assets/{use-copy-kEXRBcZU.js → use-copy-BPhBM3Oi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D-aukOA_.js → use-create-virtual-mcp-BnZL3DPb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-chciiiKk.js → use-debounced-autosave-BmT6bwNL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-n7h260AG.js → use-debounced-value-DViZw7k7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BCdHvgoP.js → use-deco-credits-DJJXk8t9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CKAzBC2b.js → use-decopilot-events-DuMl-BWe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BE5XgAtk.js → use-delete-connection--jtVGLkv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-0h1liESy.js → use-deployment-admin-Cr_7c4Yl.js} +1 -1
- package/dist/client/assets/{use-file-configs-BroSL4vn.js → use-file-configs-CwjnQywn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CfzUQI40.js → use-infinite-scroll-8IyahDR0.js} +1 -1
- package/dist/client/assets/{use-join-requests-B71PJ303.js → use-join-requests-tHCwhSs3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CUzkPpQw.js → use-mcp-auth-status-sjpR15R6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B26KWNRM.js → use-mcp-client-BmnPrlCp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-JyEq_Zaw.js → use-mcp-tools-B9U_ZOEs.js} +1 -1
- package/dist/client/assets/{use-members-CQRLyULO.js → use-members-BglXgqfG.js} +1 -1
- package/dist/client/assets/{use-mobile-D4G1a4gT.js → use-mobile-ZF_jSfPp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-z1EYBR-6.js → use-navigate-to-agent-DIeI8ULY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DmjWJ_fK.js → use-org-auth-client-C-GSCd--.js} +1 -1
- package/dist/client/assets/{use-org-sso-BfwV8dHX.js → use-org-sso-BawqtY1O.js} +1 -1
- package/dist/client/assets/{use-organization-roles-cDOo1pJd.js → use-organization-roles-BfAcHhLm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-xqqxFUeh.js → use-organization-settings-DcixnwK-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DaQ4k45R.js → use-registry-connections-VIMCCdEN.js} +1 -1
- package/dist/client/assets/{use-secrets-Dfv4dw4N.js → use-secrets-DN6xkhJI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CV-XLMfI.js → use-status-sounds-CVssdpKX.js} +1 -1
- package/dist/client/assets/{use-tags-BLy-mVqy.js → use-tags-OVuXWbIz.js} +1 -1
- package/dist/client/assets/{use-view-mode-ejlyzP3U.js → use-view-mode-BdkdIEp5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C2MFB71J.js → use-virtual-mcp-BIQdKSoy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-QTu-xaep.js +1 -0
- package/dist/client/assets/{useQueries-DmAJqkrY.js → useQueries-D2CKhSr2.js} +1 -1
- package/dist/client/assets/{useRouterState-CxXfhSWj.js → useRouterState-B0tRZSRp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_f32It26.js +1 -0
- package/dist/client/assets/{users-Bijv7BvW.js → users-Xgmv3XAu.js} +1 -1
- package/dist/client/assets/{variant-calendar-B99JMHuT.js → variant-calendar-CHbHmJQD.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BqdtKEpy.js → view-mode-toggle-DTYJdfuz.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +766 -766
- package/dist/server/server.js +576 -576
- package/package.json +2 -4
- package/dist/client/assets/project-app-view-CZ1Pnh-0.js +0 -1
- package/dist/client/assets/record-editor-CZMWB68M.js +0 -1
- package/dist/client/assets/registry-BdE6l5pk.js +0 -2
- package/dist/client/assets/store-registry-DAqnuoVv.js +0 -2
- package/dist/client/assets/useInfiniteQuery-qexZNNCs.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CJtuoO_U.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +0 -373
- package/dist/server/node_modules/@resvg/resvg-js/README.md +0 -314
- package/dist/server/node_modules/@resvg/resvg-js/index.js +0 -23
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/package.json +0 -152
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +0 -20
- package/dist/server/node_modules/@shuding/opentype.js/README.md +0 -9
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +0 -272
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +0 -84
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +0 -64
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +0 -96
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +0 -11655
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +0 -2
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +0 -11639
- package/dist/server/node_modules/@shuding/opentype.js/package.json +0 -73
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +0 -158
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +0 -243
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +0 -16
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +0 -1032
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +0 -74
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +0 -83
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +0 -483
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +0 -40
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +0 -433
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +0 -274
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +0 -150
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +0 -3062
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +0 -5
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +0 -357
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +0 -375
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +0 -628
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +0 -212
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +0 -77
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +0 -447
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +0 -215
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +0 -1156
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +0 -145
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +0 -71
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +0 -62
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +0 -349
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +0 -146
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +0 -251
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +0 -35
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +0 -27
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +0 -51
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +0 -69
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +0 -33
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +0 -32
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +0 -30
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +0 -680
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +0 -65
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +0 -522
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +0 -976
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +0 -17
- package/dist/server/node_modules/base64-js/.travis.yml +0 -5
- package/dist/server/node_modules/base64-js/LICENSE.MIT +0 -21
- package/dist/server/node_modules/base64-js/README.md +0 -31
- package/dist/server/node_modules/base64-js/bench/bench.js +0 -19
- package/dist/server/node_modules/base64-js/lib/b64.js +0 -124
- package/dist/server/node_modules/base64-js/package.json +0 -34
- package/dist/server/node_modules/base64-js/test/convert.js +0 -51
- package/dist/server/node_modules/base64-js/test/url-safe.js +0 -18
- package/dist/server/node_modules/camelize/.eslintrc +0 -24
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +0 -12
- package/dist/server/node_modules/camelize/CHANGELOG.md +0 -64
- package/dist/server/node_modules/camelize/LICENSE +0 -18
- package/dist/server/node_modules/camelize/README.md +0 -81
- package/dist/server/node_modules/camelize/example/camel.js +0 -12
- package/dist/server/node_modules/camelize/index.js +0 -61
- package/dist/server/node_modules/camelize/package.json +0 -84
- package/dist/server/node_modules/camelize/test/camel.js +0 -48
- package/dist/server/node_modules/color-name/LICENSE +0 -8
- package/dist/server/node_modules/color-name/README.md +0 -11
- package/dist/server/node_modules/color-name/index.js +0 -152
- package/dist/server/node_modules/color-name/package.json +0 -28
- package/dist/server/node_modules/css-background-parser/LICENSE +0 -22
- package/dist/server/node_modules/css-background-parser/README.md +0 -149
- package/dist/server/node_modules/css-background-parser/index.js +0 -162
- package/dist/server/node_modules/css-background-parser/package.json +0 -19
- package/dist/server/node_modules/css-box-shadow/README.md +0 -27
- package/dist/server/node_modules/css-box-shadow/index.js +0 -64
- package/dist/server/node_modules/css-box-shadow/package.json +0 -14
- package/dist/server/node_modules/css-box-shadow/test.js +0 -204
- package/dist/server/node_modules/css-color-keywords/LICENSE +0 -15
- package/dist/server/node_modules/css-color-keywords/README.md +0 -47
- package/dist/server/node_modules/css-color-keywords/colors.json +0 -148
- package/dist/server/node_modules/css-color-keywords/index.js +0 -3
- package/dist/server/node_modules/css-color-keywords/package.json +0 -27
- package/dist/server/node_modules/css-gradient-parser/LICENSE +0 -21
- package/dist/server/node_modules/css-gradient-parser/README.md +0 -75
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +0 -2
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +0 -2
- package/dist/server/node_modules/css-gradient-parser/package.json +0 -54
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +0 -21
- package/dist/server/node_modules/css-to-react-native/README.md +0 -115
- package/dist/server/node_modules/css-to-react-native/index.js +0 -886
- package/dist/server/node_modules/css-to-react-native/package.json +0 -65
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +0 -85
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +0 -136
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +0 -83
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +0 -31
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +0 -122
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +0 -22
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +0 -117
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +0 -43
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +0 -15
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +0 -8
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +0 -204
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +0 -13
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +0 -103
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +0 -30
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +0 -55
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +0 -132
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/index.js +0 -90
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +0 -75
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +0 -12
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +0 -11
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +0 -65
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +0 -63
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +0 -20
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +0 -14
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +0 -77
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +0 -24
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +0 -18
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +0 -10
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +0 -99
- package/dist/server/node_modules/hex-rgb/index.js +0 -47
- package/dist/server/node_modules/hex-rgb/license +0 -9
- package/dist/server/node_modules/hex-rgb/package.json +0 -39
- package/dist/server/node_modules/hex-rgb/readme.md +0 -86
- package/dist/server/node_modules/linebreak/LICENSE +0 -21
- package/dist/server/node_modules/linebreak/dist/main.cjs +0 -1369
- package/dist/server/node_modules/linebreak/dist/module.mjs +0 -1368
- package/dist/server/node_modules/linebreak/package.json +0 -57
- package/dist/server/node_modules/linebreak/readme.md +0 -62
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +0 -54
- package/dist/server/node_modules/parse-css-color/LICENSE +0 -21
- package/dist/server/node_modules/parse-css-color/README.md +0 -110
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +0 -171
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +0 -167
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +0 -7
- package/dist/server/node_modules/parse-css-color/package.json +0 -55
- package/dist/server/node_modules/postcss-value-parser/LICENSE +0 -22
- package/dist/server/node_modules/postcss-value-parser/README.md +0 -263
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +0 -28
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +0 -321
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +0 -48
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +0 -120
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +0 -22
- package/dist/server/node_modules/postcss-value-parser/package.json +0 -58
- package/dist/server/node_modules/satori/LICENSE +0 -373
- package/dist/server/node_modules/satori/README.md +0 -516
- package/dist/server/node_modules/satori/dist/index.cjs +0 -8
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/index.js +0 -8
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +0 -8
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/standalone.js +0 -8
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/package.json +0 -149
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +0 -21
- package/dist/server/node_modules/tiny-inflate/index.js +0 -375
- package/dist/server/node_modules/tiny-inflate/package.json +0 -28
- package/dist/server/node_modules/tiny-inflate/readme.md +0 -31
- package/dist/server/node_modules/tiny-inflate/test/index.js +0 -75
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +0 -199
- package/dist/server/node_modules/unicode-trie/LICENSE +0 -8
- package/dist/server/node_modules/unicode-trie/README.md +0 -77
- package/dist/server/node_modules/unicode-trie/builder.js +0 -966
- package/dist/server/node_modules/unicode-trie/index.js +0 -136
- package/dist/server/node_modules/unicode-trie/package.json +0 -27
- package/dist/server/node_modules/unicode-trie/swap.js +0 -25
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +0 -1
- package/dist/server/node_modules/unicode-trie/test/test.js +0 -243
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
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.
|
|
@@ -1,11 +0,0 @@
|
|
|
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>
|
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,149 +0,0 @@
|
|
|
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
|
|
@@ -1,162 +0,0 @@
|
|
|
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));
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|