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,132 @@
|
|
|
1
|
+
import transformCss from '..'
|
|
2
|
+
|
|
3
|
+
// List of units from:
|
|
4
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/length
|
|
5
|
+
const lengthUnits = [
|
|
6
|
+
'ch',
|
|
7
|
+
'em',
|
|
8
|
+
'ex',
|
|
9
|
+
'rem',
|
|
10
|
+
'vh',
|
|
11
|
+
'vw',
|
|
12
|
+
'vmin',
|
|
13
|
+
'vmax',
|
|
14
|
+
'cm',
|
|
15
|
+
'mm',
|
|
16
|
+
'in',
|
|
17
|
+
'pc',
|
|
18
|
+
'pt',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
lengthUnits.forEach(unit => {
|
|
22
|
+
const value = `2${unit}`
|
|
23
|
+
|
|
24
|
+
it('allows CSS length units in transformed values', () => {
|
|
25
|
+
expect(transformCss([['margin', value]])).toEqual({
|
|
26
|
+
marginTop: value,
|
|
27
|
+
marginRight: value,
|
|
28
|
+
marginBottom: value,
|
|
29
|
+
marginLeft: value,
|
|
30
|
+
})
|
|
31
|
+
expect(transformCss([['padding', value]])).toEqual({
|
|
32
|
+
paddingTop: value,
|
|
33
|
+
paddingRight: value,
|
|
34
|
+
paddingBottom: value,
|
|
35
|
+
paddingLeft: value,
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
it('allows CSS length units with 0 and unit', () => {
|
|
40
|
+
expect(transformCss([['padding', `0${unit}`]])).toEqual({
|
|
41
|
+
paddingTop: `0${unit}`,
|
|
42
|
+
paddingRight: `0${unit}`,
|
|
43
|
+
paddingBottom: `0${unit}`,
|
|
44
|
+
paddingLeft: `0${unit}`,
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
it('allows mixed units in transformed values', () => {
|
|
49
|
+
expect(transformCss([['margin', `10px ${value}`]])).toEqual({
|
|
50
|
+
marginTop: 10,
|
|
51
|
+
marginRight: value,
|
|
52
|
+
marginBottom: 10,
|
|
53
|
+
marginLeft: value,
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
it('allows units to be used with border shorthand property', () => {
|
|
58
|
+
expect(transformCss([['border', `#f00 ${value} dashed`]])).toEqual({
|
|
59
|
+
borderWidth: value,
|
|
60
|
+
borderColor: '#f00',
|
|
61
|
+
borderStyle: 'dashed',
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
expect(transformCss([['border', value]])).toEqual({
|
|
65
|
+
borderWidth: value,
|
|
66
|
+
borderColor: 'black',
|
|
67
|
+
borderStyle: 'solid',
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it('allows units to be used with border-width', () => {
|
|
72
|
+
expect(transformCss([['border-width', `1px 2px ${value} 4px`]])).toEqual({
|
|
73
|
+
borderTopWidth: 1,
|
|
74
|
+
borderRightWidth: 2,
|
|
75
|
+
borderBottomWidth: value,
|
|
76
|
+
borderLeftWidth: 4,
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
it('allows units to be used with border-radius', () => {
|
|
81
|
+
expect(transformCss([['border-radius', `1px ${value} 3px 4px`]])).toEqual({
|
|
82
|
+
borderTopLeftRadius: 1,
|
|
83
|
+
borderTopRightRadius: value,
|
|
84
|
+
borderBottomRightRadius: 3,
|
|
85
|
+
borderBottomLeftRadius: 4,
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
it('allows units to be used with font-size', () => {
|
|
90
|
+
expect(transformCss([['font-size', value]])).toEqual({
|
|
91
|
+
fontSize: value,
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
it('allows units to be used with font shorthand property', () => {
|
|
96
|
+
expect(
|
|
97
|
+
transformCss([['font', `bold italic ${value}/${value} "Helvetica"`]])
|
|
98
|
+
).toEqual({
|
|
99
|
+
fontFamily: 'Helvetica',
|
|
100
|
+
fontSize: value,
|
|
101
|
+
fontWeight: 'bold',
|
|
102
|
+
fontStyle: 'italic',
|
|
103
|
+
fontVariant: [],
|
|
104
|
+
lineHeight: value,
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
it('allows untis to be used with text-shadow ', () => {
|
|
109
|
+
expect(transformCss([['text-shadow', `10px ${value} red`]])).toEqual({
|
|
110
|
+
textShadowOffset: { width: 10, height: value },
|
|
111
|
+
textShadowRadius: 0,
|
|
112
|
+
textShadowColor: 'red',
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
it('allows untis to be used with box-shadow', () => {
|
|
117
|
+
expect(
|
|
118
|
+
transformCss([['box-shadow', `10px ${value} ${value} red`]])
|
|
119
|
+
).toEqual({
|
|
120
|
+
shadowOffset: { width: 10, height: value },
|
|
121
|
+
shadowRadius: value,
|
|
122
|
+
shadowColor: 'red',
|
|
123
|
+
shadowOpacity: 1,
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
it('throws for unit that is not supported', () => {
|
|
129
|
+
expect(() => transformCss([['margin', '10ic']])).toThrow(
|
|
130
|
+
'Failed to parse declaration "margin: 10ic"'
|
|
131
|
+
)
|
|
132
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
let propertiesWithoutUnits
|
|
2
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3
|
+
propertiesWithoutUnits = [
|
|
4
|
+
'aspectRatio',
|
|
5
|
+
'elevation',
|
|
6
|
+
'flexGrow',
|
|
7
|
+
'flexShrink',
|
|
8
|
+
'opacity',
|
|
9
|
+
'shadowOpacity',
|
|
10
|
+
'zIndex',
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const devPropertiesWithUnitsRegExp =
|
|
15
|
+
propertiesWithoutUnits != null
|
|
16
|
+
? new RegExp(propertiesWithoutUnits.join('|'))
|
|
17
|
+
: null
|
|
18
|
+
|
|
19
|
+
export default devPropertiesWithUnitsRegExp
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* eslint-disable no-param-reassign */
|
|
2
|
+
import parse from 'postcss-value-parser'
|
|
3
|
+
import camelizeStyleName from 'camelize'
|
|
4
|
+
import transforms from './transforms/index'
|
|
5
|
+
import devPropertiesWithoutUnitsRegExp from './devPropertiesWithoutUnitsRegExp'
|
|
6
|
+
import TokenStream from './TokenStream'
|
|
7
|
+
|
|
8
|
+
// Note if this is wrong, you'll need to change tokenTypes.js too
|
|
9
|
+
const numberOrLengthRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i
|
|
10
|
+
const numberOnlyRe = /^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i
|
|
11
|
+
const boolRe = /^true|false$/i
|
|
12
|
+
const nullRe = /^null$/i
|
|
13
|
+
const undefinedRe = /^undefined$/i
|
|
14
|
+
|
|
15
|
+
// Undocumented export
|
|
16
|
+
export const transformRawValue = (propName, value) => {
|
|
17
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
18
|
+
const needsUnit = !devPropertiesWithoutUnitsRegExp.test(propName)
|
|
19
|
+
const isNumberWithoutUnit = numberOnlyRe.test(value)
|
|
20
|
+
if (needsUnit && isNumberWithoutUnit) {
|
|
21
|
+
// eslint-disable-next-line no-console
|
|
22
|
+
console.warn(`Expected style "${propName}: ${value}" to contain units`)
|
|
23
|
+
}
|
|
24
|
+
if (!needsUnit && value !== '0' && !isNumberWithoutUnit) {
|
|
25
|
+
// eslint-disable-next-line no-console
|
|
26
|
+
console.warn(`Expected style "${propName}: ${value}" to be unitless`)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const numberMatch = value.match(numberOrLengthRe)
|
|
31
|
+
if (numberMatch !== null) return Number(numberMatch[1])
|
|
32
|
+
|
|
33
|
+
const boolMatch = value.match(boolRe)
|
|
34
|
+
if (boolMatch !== null) return boolMatch[0].toLowerCase() === 'true'
|
|
35
|
+
|
|
36
|
+
const nullMatch = value.match(nullRe)
|
|
37
|
+
if (nullMatch !== null) return null
|
|
38
|
+
|
|
39
|
+
const undefinedMatch = value.match(undefinedRe)
|
|
40
|
+
if (undefinedMatch !== null) return undefined
|
|
41
|
+
|
|
42
|
+
return value
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const baseTransformShorthandValue = (propName, value) => {
|
|
46
|
+
const ast = parse(value)
|
|
47
|
+
const tokenStream = new TokenStream(ast.nodes)
|
|
48
|
+
return transforms[propName](tokenStream)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const transformShorthandValue =
|
|
52
|
+
process.env.NODE_ENV === 'production'
|
|
53
|
+
? baseTransformShorthandValue
|
|
54
|
+
: (propName, value) => {
|
|
55
|
+
try {
|
|
56
|
+
return baseTransformShorthandValue(propName, value)
|
|
57
|
+
} catch (e) {
|
|
58
|
+
throw new Error(`Failed to parse declaration "${propName}: ${value}"`)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const getStylesForProperty = (propName, inputValue, allowShorthand) => {
|
|
63
|
+
const isRawValue = allowShorthand === false || !(propName in transforms)
|
|
64
|
+
const value = inputValue.trim()
|
|
65
|
+
|
|
66
|
+
const propValues = isRawValue
|
|
67
|
+
? { [propName]: transformRawValue(propName, value) }
|
|
68
|
+
: transformShorthandValue(propName, value)
|
|
69
|
+
|
|
70
|
+
return propValues
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export const getPropertyName = propName => {
|
|
74
|
+
const isCustomProp = /^--\w+/.test(propName)
|
|
75
|
+
if (isCustomProp) {
|
|
76
|
+
return propName
|
|
77
|
+
}
|
|
78
|
+
return camelizeStyleName(propName)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export default (rules, shorthandBlacklist = []) =>
|
|
82
|
+
rules.reduce((accum, rule) => {
|
|
83
|
+
const propertyName = getPropertyName(rule[0])
|
|
84
|
+
const value = rule[1]
|
|
85
|
+
const allowShorthand = shorthandBlacklist.indexOf(propertyName) === -1
|
|
86
|
+
return Object.assign(
|
|
87
|
+
accum,
|
|
88
|
+
getStylesForProperty(propertyName, value, allowShorthand)
|
|
89
|
+
)
|
|
90
|
+
}, {})
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { stringify } from 'postcss-value-parser'
|
|
2
|
+
import cssColorKeywords from 'css-color-keywords'
|
|
3
|
+
|
|
4
|
+
const matchString = node => {
|
|
5
|
+
if (node.type !== 'string') return null
|
|
6
|
+
return node.value
|
|
7
|
+
.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi, (match, charCode) =>
|
|
8
|
+
String.fromCharCode(parseInt(charCode, 16))
|
|
9
|
+
)
|
|
10
|
+
.replace(/\\/g, '')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const hexColorRe = /^(#(?:[0-9a-f]{3,4}){1,2})$/i
|
|
14
|
+
const cssFunctionNameRe = /^(rgba?|hsla?|hwb|lab|lch|gray|color)$/
|
|
15
|
+
|
|
16
|
+
const matchColor = node => {
|
|
17
|
+
if (
|
|
18
|
+
node.type === 'word' &&
|
|
19
|
+
(hexColorRe.test(node.value) ||
|
|
20
|
+
node.value in cssColorKeywords ||
|
|
21
|
+
node.value === 'transparent')
|
|
22
|
+
) {
|
|
23
|
+
return node.value
|
|
24
|
+
} else if (node.type === 'function' && cssFunctionNameRe.test(node.value)) {
|
|
25
|
+
return stringify(node)
|
|
26
|
+
}
|
|
27
|
+
return null
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const noneRe = /^(none)$/i
|
|
31
|
+
const autoRe = /^(auto)$/i
|
|
32
|
+
const identRe = /(^-?[_a-z][_a-z0-9-]*$)/i
|
|
33
|
+
// Note if these are wrong, you'll need to change index.js too
|
|
34
|
+
const numberRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i
|
|
35
|
+
// Note lengthRe is sneaky: you can omit units for 0
|
|
36
|
+
const lengthRe = /^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i
|
|
37
|
+
const unsupportedUnitRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i
|
|
38
|
+
const angleRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i
|
|
39
|
+
const percentRe = /^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i
|
|
40
|
+
|
|
41
|
+
const noopToken = predicate => node => (predicate(node) ? '<token>' : null)
|
|
42
|
+
|
|
43
|
+
const valueForTypeToken = type => node =>
|
|
44
|
+
node.type === type ? node.value : null
|
|
45
|
+
|
|
46
|
+
export const regExpToken = (regExp, transform = String) => node => {
|
|
47
|
+
if (node.type !== 'word') return null
|
|
48
|
+
|
|
49
|
+
const match = node.value.match(regExp)
|
|
50
|
+
if (match === null) return null
|
|
51
|
+
|
|
52
|
+
const value = transform(match[1])
|
|
53
|
+
|
|
54
|
+
return value
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const SPACE = noopToken(node => node.type === 'space')
|
|
58
|
+
export const SLASH = noopToken(
|
|
59
|
+
node => node.type === 'div' && node.value === '/'
|
|
60
|
+
)
|
|
61
|
+
export const COMMA = noopToken(
|
|
62
|
+
node => node.type === 'div' && node.value === ','
|
|
63
|
+
)
|
|
64
|
+
export const WORD = valueForTypeToken('word')
|
|
65
|
+
export const NONE = regExpToken(noneRe)
|
|
66
|
+
export const AUTO = regExpToken(autoRe)
|
|
67
|
+
export const NUMBER = regExpToken(numberRe, Number)
|
|
68
|
+
export const LENGTH = regExpToken(lengthRe, Number)
|
|
69
|
+
export const UNSUPPORTED_LENGTH_UNIT = regExpToken(unsupportedUnitRe)
|
|
70
|
+
export const ANGLE = regExpToken(angleRe, angle => angle.toLowerCase())
|
|
71
|
+
export const PERCENT = regExpToken(percentRe)
|
|
72
|
+
export const IDENT = regExpToken(identRe)
|
|
73
|
+
export const STRING = matchString
|
|
74
|
+
export const COLOR = matchColor
|
|
75
|
+
export const LINE = regExpToken(/^(none|underline|line-through)$/i)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NUMBER, SLASH } from '../tokenTypes'
|
|
2
|
+
|
|
3
|
+
export default tokenStream => {
|
|
4
|
+
let aspectRatio = tokenStream.expect(NUMBER)
|
|
5
|
+
|
|
6
|
+
if (tokenStream.hasTokens()) {
|
|
7
|
+
tokenStream.expect(SLASH)
|
|
8
|
+
aspectRatio /= tokenStream.expect(NUMBER)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return { aspectRatio }
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
regExpToken,
|
|
3
|
+
NONE,
|
|
4
|
+
COLOR,
|
|
5
|
+
LENGTH,
|
|
6
|
+
UNSUPPORTED_LENGTH_UNIT,
|
|
7
|
+
SPACE,
|
|
8
|
+
} from '../tokenTypes'
|
|
9
|
+
|
|
10
|
+
const BORDER_STYLE = regExpToken(/^(solid|dashed|dotted)$/)
|
|
11
|
+
|
|
12
|
+
const defaultBorderWidth = 1
|
|
13
|
+
const defaultBorderColor = 'black'
|
|
14
|
+
const defaultBorderStyle = 'solid'
|
|
15
|
+
|
|
16
|
+
export default tokenStream => {
|
|
17
|
+
let borderWidth
|
|
18
|
+
let borderColor
|
|
19
|
+
let borderStyle
|
|
20
|
+
|
|
21
|
+
if (tokenStream.matches(NONE)) {
|
|
22
|
+
tokenStream.expectEmpty()
|
|
23
|
+
return { borderWidth: 0, borderColor: 'black', borderStyle: 'solid' }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let partsParsed = 0
|
|
27
|
+
while (partsParsed < 3 && tokenStream.hasTokens()) {
|
|
28
|
+
if (partsParsed !== 0) tokenStream.expect(SPACE)
|
|
29
|
+
|
|
30
|
+
if (
|
|
31
|
+
borderWidth === undefined &&
|
|
32
|
+
tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT)
|
|
33
|
+
) {
|
|
34
|
+
borderWidth = tokenStream.lastValue
|
|
35
|
+
} else if (borderColor === undefined && tokenStream.matches(COLOR)) {
|
|
36
|
+
borderColor = tokenStream.lastValue
|
|
37
|
+
} else if (borderStyle === undefined && tokenStream.matches(BORDER_STYLE)) {
|
|
38
|
+
borderStyle = tokenStream.lastValue
|
|
39
|
+
} else {
|
|
40
|
+
tokenStream.throw()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
partsParsed += 1
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
tokenStream.expectEmpty()
|
|
47
|
+
|
|
48
|
+
if (borderWidth === undefined) borderWidth = defaultBorderWidth
|
|
49
|
+
if (borderColor === undefined) borderColor = defaultBorderColor
|
|
50
|
+
if (borderStyle === undefined) borderStyle = defaultBorderStyle
|
|
51
|
+
|
|
52
|
+
return { borderWidth, borderColor, borderStyle }
|
|
53
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NONE,
|
|
3
|
+
AUTO,
|
|
4
|
+
NUMBER,
|
|
5
|
+
LENGTH,
|
|
6
|
+
UNSUPPORTED_LENGTH_UNIT,
|
|
7
|
+
PERCENT,
|
|
8
|
+
SPACE,
|
|
9
|
+
} from '../tokenTypes'
|
|
10
|
+
|
|
11
|
+
const defaultFlexGrow = 1
|
|
12
|
+
const defaultFlexShrink = 1
|
|
13
|
+
const defaultFlexBasis = 0
|
|
14
|
+
|
|
15
|
+
export default tokenStream => {
|
|
16
|
+
let flexGrow
|
|
17
|
+
let flexShrink
|
|
18
|
+
let flexBasis
|
|
19
|
+
|
|
20
|
+
if (tokenStream.matches(NONE)) {
|
|
21
|
+
tokenStream.expectEmpty()
|
|
22
|
+
return { flexGrow: 0, flexShrink: 0, flexBasis: 'auto' }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
tokenStream.saveRewindPoint()
|
|
26
|
+
if (tokenStream.matches(AUTO) && !tokenStream.hasTokens()) {
|
|
27
|
+
return { flexGrow: 1, flexShrink: 1, flexBasis: 'auto' }
|
|
28
|
+
}
|
|
29
|
+
tokenStream.rewind()
|
|
30
|
+
|
|
31
|
+
let partsParsed = 0
|
|
32
|
+
while (partsParsed < 2 && tokenStream.hasTokens()) {
|
|
33
|
+
if (partsParsed !== 0) tokenStream.expect(SPACE)
|
|
34
|
+
|
|
35
|
+
if (flexGrow === undefined && tokenStream.matches(NUMBER)) {
|
|
36
|
+
flexGrow = tokenStream.lastValue
|
|
37
|
+
|
|
38
|
+
tokenStream.saveRewindPoint()
|
|
39
|
+
if (tokenStream.matches(SPACE) && tokenStream.matches(NUMBER)) {
|
|
40
|
+
flexShrink = tokenStream.lastValue
|
|
41
|
+
} else {
|
|
42
|
+
tokenStream.rewind()
|
|
43
|
+
}
|
|
44
|
+
} else if (
|
|
45
|
+
flexBasis === undefined &&
|
|
46
|
+
tokenStream.matches(LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT)
|
|
47
|
+
) {
|
|
48
|
+
flexBasis = tokenStream.lastValue
|
|
49
|
+
} else if (flexBasis === undefined && tokenStream.matches(AUTO)) {
|
|
50
|
+
flexBasis = 'auto'
|
|
51
|
+
} else {
|
|
52
|
+
tokenStream.throw()
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
partsParsed += 1
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
tokenStream.expectEmpty()
|
|
59
|
+
|
|
60
|
+
if (flexGrow === undefined) flexGrow = defaultFlexGrow
|
|
61
|
+
if (flexShrink === undefined) flexShrink = defaultFlexShrink
|
|
62
|
+
if (flexBasis === undefined) flexBasis = defaultFlexBasis
|
|
63
|
+
|
|
64
|
+
return { flexGrow, flexShrink, flexBasis }
|
|
65
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { regExpToken, SPACE } from '../tokenTypes'
|
|
2
|
+
|
|
3
|
+
const FLEX_WRAP = regExpToken(/(nowrap|wrap|wrap-reverse)/)
|
|
4
|
+
const FLEX_DIRECTION = regExpToken(/(row|row-reverse|column|column-reverse)/)
|
|
5
|
+
|
|
6
|
+
const defaultFlexWrap = 'nowrap'
|
|
7
|
+
const defaultFlexDirection = 'row'
|
|
8
|
+
|
|
9
|
+
export default tokenStream => {
|
|
10
|
+
let flexWrap
|
|
11
|
+
let flexDirection
|
|
12
|
+
|
|
13
|
+
let partsParsed = 0
|
|
14
|
+
while (partsParsed < 2 && tokenStream.hasTokens()) {
|
|
15
|
+
if (partsParsed !== 0) tokenStream.expect(SPACE)
|
|
16
|
+
|
|
17
|
+
if (flexWrap === undefined && tokenStream.matches(FLEX_WRAP)) {
|
|
18
|
+
flexWrap = tokenStream.lastValue
|
|
19
|
+
} else if (
|
|
20
|
+
flexDirection === undefined &&
|
|
21
|
+
tokenStream.matches(FLEX_DIRECTION)
|
|
22
|
+
) {
|
|
23
|
+
flexDirection = tokenStream.lastValue
|
|
24
|
+
} else {
|
|
25
|
+
tokenStream.throw()
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
partsParsed += 1
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
tokenStream.expectEmpty()
|
|
32
|
+
|
|
33
|
+
if (flexWrap === undefined) flexWrap = defaultFlexWrap
|
|
34
|
+
if (flexDirection === undefined) flexDirection = defaultFlexDirection
|
|
35
|
+
|
|
36
|
+
return { flexWrap, flexDirection }
|
|
37
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import parseFontFamily from './fontFamily'
|
|
2
|
+
import {
|
|
3
|
+
regExpToken,
|
|
4
|
+
SPACE,
|
|
5
|
+
LENGTH,
|
|
6
|
+
UNSUPPORTED_LENGTH_UNIT,
|
|
7
|
+
SLASH,
|
|
8
|
+
} from '../tokenTypes'
|
|
9
|
+
|
|
10
|
+
const NORMAL = regExpToken(/^(normal)$/)
|
|
11
|
+
const STYLE = regExpToken(/^(italic)$/)
|
|
12
|
+
const WEIGHT = regExpToken(/^([1-9]00|bold)$/)
|
|
13
|
+
const VARIANT = regExpToken(/^(small-caps)$/)
|
|
14
|
+
|
|
15
|
+
const defaultFontStyle = 'normal'
|
|
16
|
+
const defaultFontWeight = 'normal'
|
|
17
|
+
const defaultFontVariant = []
|
|
18
|
+
|
|
19
|
+
export default tokenStream => {
|
|
20
|
+
let fontStyle
|
|
21
|
+
let fontWeight
|
|
22
|
+
let fontVariant
|
|
23
|
+
// let fontSize;
|
|
24
|
+
let lineHeight
|
|
25
|
+
// let fontFamily;
|
|
26
|
+
|
|
27
|
+
let numStyleWeightVariantMatched = 0
|
|
28
|
+
while (numStyleWeightVariantMatched < 3 && tokenStream.hasTokens()) {
|
|
29
|
+
if (tokenStream.matches(NORMAL)) {
|
|
30
|
+
/* pass */
|
|
31
|
+
} else if (fontStyle === undefined && tokenStream.matches(STYLE)) {
|
|
32
|
+
fontStyle = tokenStream.lastValue
|
|
33
|
+
} else if (fontWeight === undefined && tokenStream.matches(WEIGHT)) {
|
|
34
|
+
fontWeight = tokenStream.lastValue
|
|
35
|
+
} else if (fontVariant === undefined && tokenStream.matches(VARIANT)) {
|
|
36
|
+
fontVariant = [tokenStream.lastValue]
|
|
37
|
+
} else {
|
|
38
|
+
break
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
tokenStream.expect(SPACE)
|
|
42
|
+
numStyleWeightVariantMatched += 1
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const fontSize = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT)
|
|
46
|
+
|
|
47
|
+
if (tokenStream.matches(SLASH)) {
|
|
48
|
+
lineHeight = tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
tokenStream.expect(SPACE)
|
|
52
|
+
|
|
53
|
+
const { fontFamily } = parseFontFamily(tokenStream)
|
|
54
|
+
|
|
55
|
+
if (fontStyle === undefined) fontStyle = defaultFontStyle
|
|
56
|
+
if (fontWeight === undefined) fontWeight = defaultFontWeight
|
|
57
|
+
if (fontVariant === undefined) fontVariant = defaultFontVariant
|
|
58
|
+
|
|
59
|
+
const out = { fontStyle, fontWeight, fontVariant, fontSize, fontFamily }
|
|
60
|
+
if (lineHeight !== undefined) out.lineHeight = lineHeight
|
|
61
|
+
|
|
62
|
+
return out
|
|
63
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SPACE, IDENT, STRING } from '../tokenTypes'
|
|
2
|
+
|
|
3
|
+
export default tokenStream => {
|
|
4
|
+
let fontFamily
|
|
5
|
+
|
|
6
|
+
if (tokenStream.matches(STRING)) {
|
|
7
|
+
fontFamily = tokenStream.lastValue
|
|
8
|
+
} else {
|
|
9
|
+
fontFamily = tokenStream.expect(IDENT)
|
|
10
|
+
while (tokenStream.hasTokens()) {
|
|
11
|
+
tokenStream.expect(SPACE)
|
|
12
|
+
const nextIdent = tokenStream.expect(IDENT)
|
|
13
|
+
fontFamily += ` ${nextIdent}`
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
tokenStream.expectEmpty()
|
|
18
|
+
|
|
19
|
+
return { fontFamily }
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SPACE, IDENT } from '../tokenTypes'
|
|
2
|
+
|
|
3
|
+
export default tokenStream => {
|
|
4
|
+
const values = [tokenStream.expect(IDENT)]
|
|
5
|
+
|
|
6
|
+
while (tokenStream.hasTokens()) {
|
|
7
|
+
tokenStream.expect(SPACE)
|
|
8
|
+
values.push(tokenStream.expect(IDENT))
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return {
|
|
12
|
+
fontVariant: values,
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUTO,
|
|
3
|
+
COLOR,
|
|
4
|
+
LENGTH,
|
|
5
|
+
PERCENT,
|
|
6
|
+
UNSUPPORTED_LENGTH_UNIT,
|
|
7
|
+
WORD,
|
|
8
|
+
} from '../tokenTypes'
|
|
9
|
+
import aspectRatio from './aspectRatio'
|
|
10
|
+
import border from './border'
|
|
11
|
+
import boxShadow from './boxShadow'
|
|
12
|
+
import flex from './flex'
|
|
13
|
+
import flexFlow from './flexFlow'
|
|
14
|
+
import font from './font'
|
|
15
|
+
import fontFamily from './fontFamily'
|
|
16
|
+
import fontVariant from './fontVariant'
|
|
17
|
+
import placeContent from './placeContent'
|
|
18
|
+
import textDecoration from './textDecoration'
|
|
19
|
+
import textDecorationLine from './textDecorationLine'
|
|
20
|
+
import textShadow from './textShadow'
|
|
21
|
+
import transform from './transform'
|
|
22
|
+
import { directionFactory, parseShadowOffset } from './util'
|
|
23
|
+
|
|
24
|
+
const background = tokenStream => ({
|
|
25
|
+
backgroundColor: tokenStream.expect(COLOR),
|
|
26
|
+
})
|
|
27
|
+
const borderColor = directionFactory({
|
|
28
|
+
types: [COLOR],
|
|
29
|
+
prefix: 'border',
|
|
30
|
+
suffix: 'Color',
|
|
31
|
+
})
|
|
32
|
+
const borderRadius = directionFactory({
|
|
33
|
+
directions: ['TopLeft', 'TopRight', 'BottomRight', 'BottomLeft'],
|
|
34
|
+
prefix: 'border',
|
|
35
|
+
suffix: 'Radius',
|
|
36
|
+
})
|
|
37
|
+
const borderWidth = directionFactory({ prefix: 'border', suffix: 'Width' })
|
|
38
|
+
const margin = directionFactory({
|
|
39
|
+
types: [LENGTH, UNSUPPORTED_LENGTH_UNIT, PERCENT, AUTO],
|
|
40
|
+
prefix: 'margin',
|
|
41
|
+
})
|
|
42
|
+
const padding = directionFactory({ prefix: 'padding' })
|
|
43
|
+
|
|
44
|
+
const fontWeight = tokenStream => ({
|
|
45
|
+
fontWeight: tokenStream.expect(WORD), // Also match numbers as strings
|
|
46
|
+
})
|
|
47
|
+
const shadowOffset = tokenStream => ({
|
|
48
|
+
shadowOffset: parseShadowOffset(tokenStream),
|
|
49
|
+
})
|
|
50
|
+
const textShadowOffset = tokenStream => ({
|
|
51
|
+
textShadowOffset: parseShadowOffset(tokenStream),
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
aspectRatio,
|
|
56
|
+
background,
|
|
57
|
+
border,
|
|
58
|
+
borderColor,
|
|
59
|
+
borderRadius,
|
|
60
|
+
borderWidth,
|
|
61
|
+
boxShadow,
|
|
62
|
+
flex,
|
|
63
|
+
flexFlow,
|
|
64
|
+
font,
|
|
65
|
+
fontFamily,
|
|
66
|
+
fontVariant,
|
|
67
|
+
fontWeight,
|
|
68
|
+
margin,
|
|
69
|
+
padding,
|
|
70
|
+
placeContent,
|
|
71
|
+
shadowOffset,
|
|
72
|
+
textShadow,
|
|
73
|
+
textShadowOffset,
|
|
74
|
+
textDecoration,
|
|
75
|
+
textDecorationLine,
|
|
76
|
+
transform,
|
|
77
|
+
}
|