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,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "satori",
|
|
3
|
+
"version": "0.28.2",
|
|
4
|
+
"description": "Enlightened library to convert HTML and CSS to SVG.",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"wasm": [
|
|
11
|
+
"./dist/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"license": "MPL-2.0",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/**",
|
|
19
|
+
"yoga.wasm"
|
|
20
|
+
],
|
|
21
|
+
"imports": {
|
|
22
|
+
"#satori/jsx/jsx-runtime": "./src/jsx/jsx-runtime.ts",
|
|
23
|
+
"#satori/jsx/jsx-dev-runtime": "./src/jsx/jsx-runtime.ts"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
"./yoga.wasm": "./yoga.wasm",
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"require": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./standalone": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/standalone.d.ts",
|
|
35
|
+
"default": "./dist/standalone.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/standalone.d.cts",
|
|
39
|
+
"default": "./dist/standalone.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./jsx": {
|
|
43
|
+
"types": "./dist/jsx/index.d.ts",
|
|
44
|
+
"import": "./dist/jsx/index.js",
|
|
45
|
+
"require": "./dist/jsx/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./jsx/jsx-runtime": {
|
|
48
|
+
"types": "./dist/jsx/jsx-runtime.d.ts",
|
|
49
|
+
"import": "./dist/jsx/jsx-runtime.js",
|
|
50
|
+
"require": "./dist/jsx/jsx-runtime.cjs"
|
|
51
|
+
},
|
|
52
|
+
"./jsx/jsx-dev-runtime": {
|
|
53
|
+
"types": "./dist/jsx/jsx-runtime.d.ts",
|
|
54
|
+
"import": "./dist/jsx/jsx-runtime.js",
|
|
55
|
+
"require": "./dist/jsx/jsx-runtime.cjs"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"prepare": "husky install",
|
|
60
|
+
"dev": "pnpm run dev:default",
|
|
61
|
+
"dev:default": "NODE_ENV=development tsup src/index.ts --watch --ignore-watch playground",
|
|
62
|
+
"dev:playground": "turbo dev --filter=satori-playground...",
|
|
63
|
+
"build": "pnpm run build:default && pnpm run build:standalone && pnpm run test:browser-build",
|
|
64
|
+
"build:default": "NODE_ENV=production tsup",
|
|
65
|
+
"build:standalone": "NODE_ENV=production SATORI_STANDALONE=1 tsup",
|
|
66
|
+
"test": "NODE_ENV=test vitest run",
|
|
67
|
+
"test:browser-build": "node test/browser-build.mjs",
|
|
68
|
+
"test:ui": "NODE_ENV=test vitest --ui --coverage.enabled",
|
|
69
|
+
"test-type": "tsc -p tsconfig.json --noEmit && tsc -p playground/tsconfig.json --noEmit",
|
|
70
|
+
"dev:test": "NODE_ENV=test vitest --update",
|
|
71
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --quiet --cache",
|
|
72
|
+
"lint:fix": "pnpm lint --fix",
|
|
73
|
+
"prettier-check": "prettier --check .",
|
|
74
|
+
"prettier-fix": "prettier --write --list-different . --cache",
|
|
75
|
+
"ci-check": "concurrently \"pnpm prettier-check\" \"pnpm test-type\" \"pnpm lint\"",
|
|
76
|
+
"benchmark": "node --experimental-strip-types test/benchmark/index.ts"
|
|
77
|
+
},
|
|
78
|
+
"lint-staged": {
|
|
79
|
+
"*.{ts,tsx}": [
|
|
80
|
+
"eslint --fix --cache",
|
|
81
|
+
"prettier --write --cache"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"repository": {
|
|
85
|
+
"type": "git",
|
|
86
|
+
"url": "git+https://github.com/vercel/satori.git"
|
|
87
|
+
},
|
|
88
|
+
"keywords": [
|
|
89
|
+
"HTML",
|
|
90
|
+
"JSX",
|
|
91
|
+
"SVG",
|
|
92
|
+
"converter",
|
|
93
|
+
"renderer"
|
|
94
|
+
],
|
|
95
|
+
"author": "Shu Ding <g@shud.in>",
|
|
96
|
+
"bugs": {
|
|
97
|
+
"url": "https://github.com/vercel/satori/issues"
|
|
98
|
+
},
|
|
99
|
+
"homepage": "https://github.com/vercel/satori#readme",
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@resvg/resvg-js": "^2.1.0",
|
|
102
|
+
"@types/node": "^16",
|
|
103
|
+
"@types/opentype.js": "^1.3.3",
|
|
104
|
+
"@types/react": "^17.0.38",
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
106
|
+
"@typescript-eslint/parser": "^5.40.0",
|
|
107
|
+
"@vitest/coverage-v8": "^0.32.0",
|
|
108
|
+
"@vitest/ui": "^0.32.0",
|
|
109
|
+
"concurrently": "^7.3.0",
|
|
110
|
+
"esbuild-plugin-replace": "^1.2.0",
|
|
111
|
+
"eslint": "^8.25.0",
|
|
112
|
+
"eslint-plugin-react": "^7.31.10",
|
|
113
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
|
+
"husky": "8.0.3",
|
|
115
|
+
"jest-image-snapshot": "^6.1.0",
|
|
116
|
+
"lint-staged": "13.1.0",
|
|
117
|
+
"mitata": "^1.0.34",
|
|
118
|
+
"prettier": "^2.7.1",
|
|
119
|
+
"react": "^17.0.2",
|
|
120
|
+
"sharp": "^0.34.3",
|
|
121
|
+
"tsup": "^7.1.0",
|
|
122
|
+
"turbo": "^2.9.14",
|
|
123
|
+
"twrnc": "^3.4.0",
|
|
124
|
+
"typescript": "^5",
|
|
125
|
+
"vitest": "^0.32.0"
|
|
126
|
+
},
|
|
127
|
+
"dependencies": {
|
|
128
|
+
"@shuding/opentype.js": "1.4.0-beta.0",
|
|
129
|
+
"css-background-parser": "^0.1.0",
|
|
130
|
+
"css-box-shadow": "1.0.0-3",
|
|
131
|
+
"css-gradient-parser": "^0.0.17",
|
|
132
|
+
"css-to-react-native": "^3.0.0",
|
|
133
|
+
"emoji-regex-xs": "^2.0.1",
|
|
134
|
+
"escape-html": "^1.0.3",
|
|
135
|
+
"linebreak": "^1.1.0",
|
|
136
|
+
"parse-css-color": "^0.2.1",
|
|
137
|
+
"postcss-value-parser": "^4.2.0",
|
|
138
|
+
"yoga-layout": "^3.2.1"
|
|
139
|
+
},
|
|
140
|
+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
|
|
141
|
+
"engines": {
|
|
142
|
+
"node": ">=16"
|
|
143
|
+
},
|
|
144
|
+
"pnpm": {
|
|
145
|
+
"patchedDependencies": {
|
|
146
|
+
"yoga-layout@3.2.1": "patches/yoga-layout@3.2.1.patch"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-present Devon Govett
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
var TINF_OK = 0;
|
|
2
|
+
var TINF_DATA_ERROR = -3;
|
|
3
|
+
|
|
4
|
+
function Tree() {
|
|
5
|
+
this.table = new Uint16Array(16); /* table of code length counts */
|
|
6
|
+
this.trans = new Uint16Array(288); /* code -> symbol translation table */
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function Data(source, dest) {
|
|
10
|
+
this.source = source;
|
|
11
|
+
this.sourceIndex = 0;
|
|
12
|
+
this.tag = 0;
|
|
13
|
+
this.bitcount = 0;
|
|
14
|
+
|
|
15
|
+
this.dest = dest;
|
|
16
|
+
this.destLen = 0;
|
|
17
|
+
|
|
18
|
+
this.ltree = new Tree(); /* dynamic length/symbol tree */
|
|
19
|
+
this.dtree = new Tree(); /* dynamic distance tree */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* --------------------------------------------------- *
|
|
23
|
+
* -- uninitialized global data (static structures) -- *
|
|
24
|
+
* --------------------------------------------------- */
|
|
25
|
+
|
|
26
|
+
var sltree = new Tree();
|
|
27
|
+
var sdtree = new Tree();
|
|
28
|
+
|
|
29
|
+
/* extra bits and base tables for length codes */
|
|
30
|
+
var length_bits = new Uint8Array(30);
|
|
31
|
+
var length_base = new Uint16Array(30);
|
|
32
|
+
|
|
33
|
+
/* extra bits and base tables for distance codes */
|
|
34
|
+
var dist_bits = new Uint8Array(30);
|
|
35
|
+
var dist_base = new Uint16Array(30);
|
|
36
|
+
|
|
37
|
+
/* special ordering of code length codes */
|
|
38
|
+
var clcidx = new Uint8Array([
|
|
39
|
+
16, 17, 18, 0, 8, 7, 9, 6,
|
|
40
|
+
10, 5, 11, 4, 12, 3, 13, 2,
|
|
41
|
+
14, 1, 15
|
|
42
|
+
]);
|
|
43
|
+
|
|
44
|
+
/* used by tinf_decode_trees, avoids allocations every call */
|
|
45
|
+
var code_tree = new Tree();
|
|
46
|
+
var lengths = new Uint8Array(288 + 32);
|
|
47
|
+
|
|
48
|
+
/* ----------------------- *
|
|
49
|
+
* -- utility functions -- *
|
|
50
|
+
* ----------------------- */
|
|
51
|
+
|
|
52
|
+
/* build extra bits and base tables */
|
|
53
|
+
function tinf_build_bits_base(bits, base, delta, first) {
|
|
54
|
+
var i, sum;
|
|
55
|
+
|
|
56
|
+
/* build bits table */
|
|
57
|
+
for (i = 0; i < delta; ++i) bits[i] = 0;
|
|
58
|
+
for (i = 0; i < 30 - delta; ++i) bits[i + delta] = i / delta | 0;
|
|
59
|
+
|
|
60
|
+
/* build base table */
|
|
61
|
+
for (sum = first, i = 0; i < 30; ++i) {
|
|
62
|
+
base[i] = sum;
|
|
63
|
+
sum += 1 << bits[i];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* build the fixed huffman trees */
|
|
68
|
+
function tinf_build_fixed_trees(lt, dt) {
|
|
69
|
+
var i;
|
|
70
|
+
|
|
71
|
+
/* build fixed length tree */
|
|
72
|
+
for (i = 0; i < 7; ++i) lt.table[i] = 0;
|
|
73
|
+
|
|
74
|
+
lt.table[7] = 24;
|
|
75
|
+
lt.table[8] = 152;
|
|
76
|
+
lt.table[9] = 112;
|
|
77
|
+
|
|
78
|
+
for (i = 0; i < 24; ++i) lt.trans[i] = 256 + i;
|
|
79
|
+
for (i = 0; i < 144; ++i) lt.trans[24 + i] = i;
|
|
80
|
+
for (i = 0; i < 8; ++i) lt.trans[24 + 144 + i] = 280 + i;
|
|
81
|
+
for (i = 0; i < 112; ++i) lt.trans[24 + 144 + 8 + i] = 144 + i;
|
|
82
|
+
|
|
83
|
+
/* build fixed distance tree */
|
|
84
|
+
for (i = 0; i < 5; ++i) dt.table[i] = 0;
|
|
85
|
+
|
|
86
|
+
dt.table[5] = 32;
|
|
87
|
+
|
|
88
|
+
for (i = 0; i < 32; ++i) dt.trans[i] = i;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* given an array of code lengths, build a tree */
|
|
92
|
+
var offs = new Uint16Array(16);
|
|
93
|
+
|
|
94
|
+
function tinf_build_tree(t, lengths, off, num) {
|
|
95
|
+
var i, sum;
|
|
96
|
+
|
|
97
|
+
/* clear code length count table */
|
|
98
|
+
for (i = 0; i < 16; ++i) t.table[i] = 0;
|
|
99
|
+
|
|
100
|
+
/* scan symbol lengths, and sum code length counts */
|
|
101
|
+
for (i = 0; i < num; ++i) t.table[lengths[off + i]]++;
|
|
102
|
+
|
|
103
|
+
t.table[0] = 0;
|
|
104
|
+
|
|
105
|
+
/* compute offset table for distribution sort */
|
|
106
|
+
for (sum = 0, i = 0; i < 16; ++i) {
|
|
107
|
+
offs[i] = sum;
|
|
108
|
+
sum += t.table[i];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* create code->symbol translation table (symbols sorted by code) */
|
|
112
|
+
for (i = 0; i < num; ++i) {
|
|
113
|
+
if (lengths[off + i]) t.trans[offs[lengths[off + i]]++] = i;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ---------------------- *
|
|
118
|
+
* -- decode functions -- *
|
|
119
|
+
* ---------------------- */
|
|
120
|
+
|
|
121
|
+
/* get one bit from source stream */
|
|
122
|
+
function tinf_getbit(d) {
|
|
123
|
+
/* check if tag is empty */
|
|
124
|
+
if (!d.bitcount--) {
|
|
125
|
+
/* load next tag */
|
|
126
|
+
d.tag = d.source[d.sourceIndex++];
|
|
127
|
+
d.bitcount = 7;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* shift bit out of tag */
|
|
131
|
+
var bit = d.tag & 1;
|
|
132
|
+
d.tag >>>= 1;
|
|
133
|
+
|
|
134
|
+
return bit;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* read a num bit value from a stream and add base */
|
|
138
|
+
function tinf_read_bits(d, num, base) {
|
|
139
|
+
if (!num)
|
|
140
|
+
return base;
|
|
141
|
+
|
|
142
|
+
while (d.bitcount < 24) {
|
|
143
|
+
d.tag |= d.source[d.sourceIndex++] << d.bitcount;
|
|
144
|
+
d.bitcount += 8;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
var val = d.tag & (0xffff >>> (16 - num));
|
|
148
|
+
d.tag >>>= num;
|
|
149
|
+
d.bitcount -= num;
|
|
150
|
+
return val + base;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* given a data stream and a tree, decode a symbol */
|
|
154
|
+
function tinf_decode_symbol(d, t) {
|
|
155
|
+
while (d.bitcount < 24) {
|
|
156
|
+
d.tag |= d.source[d.sourceIndex++] << d.bitcount;
|
|
157
|
+
d.bitcount += 8;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
var sum = 0, cur = 0, len = 0;
|
|
161
|
+
var tag = d.tag;
|
|
162
|
+
|
|
163
|
+
/* get more bits while code value is above sum */
|
|
164
|
+
do {
|
|
165
|
+
cur = 2 * cur + (tag & 1);
|
|
166
|
+
tag >>>= 1;
|
|
167
|
+
++len;
|
|
168
|
+
|
|
169
|
+
sum += t.table[len];
|
|
170
|
+
cur -= t.table[len];
|
|
171
|
+
} while (cur >= 0);
|
|
172
|
+
|
|
173
|
+
d.tag = tag;
|
|
174
|
+
d.bitcount -= len;
|
|
175
|
+
|
|
176
|
+
return t.trans[sum + cur];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* given a data stream, decode dynamic trees from it */
|
|
180
|
+
function tinf_decode_trees(d, lt, dt) {
|
|
181
|
+
var hlit, hdist, hclen;
|
|
182
|
+
var i, num, length;
|
|
183
|
+
|
|
184
|
+
/* get 5 bits HLIT (257-286) */
|
|
185
|
+
hlit = tinf_read_bits(d, 5, 257);
|
|
186
|
+
|
|
187
|
+
/* get 5 bits HDIST (1-32) */
|
|
188
|
+
hdist = tinf_read_bits(d, 5, 1);
|
|
189
|
+
|
|
190
|
+
/* get 4 bits HCLEN (4-19) */
|
|
191
|
+
hclen = tinf_read_bits(d, 4, 4);
|
|
192
|
+
|
|
193
|
+
for (i = 0; i < 19; ++i) lengths[i] = 0;
|
|
194
|
+
|
|
195
|
+
/* read code lengths for code length alphabet */
|
|
196
|
+
for (i = 0; i < hclen; ++i) {
|
|
197
|
+
/* get 3 bits code length (0-7) */
|
|
198
|
+
var clen = tinf_read_bits(d, 3, 0);
|
|
199
|
+
lengths[clcidx[i]] = clen;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* build code length tree */
|
|
203
|
+
tinf_build_tree(code_tree, lengths, 0, 19);
|
|
204
|
+
|
|
205
|
+
/* decode code lengths for the dynamic trees */
|
|
206
|
+
for (num = 0; num < hlit + hdist;) {
|
|
207
|
+
var sym = tinf_decode_symbol(d, code_tree);
|
|
208
|
+
|
|
209
|
+
switch (sym) {
|
|
210
|
+
case 16:
|
|
211
|
+
/* copy previous code length 3-6 times (read 2 bits) */
|
|
212
|
+
var prev = lengths[num - 1];
|
|
213
|
+
for (length = tinf_read_bits(d, 2, 3); length; --length) {
|
|
214
|
+
lengths[num++] = prev;
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
case 17:
|
|
218
|
+
/* repeat code length 0 for 3-10 times (read 3 bits) */
|
|
219
|
+
for (length = tinf_read_bits(d, 3, 3); length; --length) {
|
|
220
|
+
lengths[num++] = 0;
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
case 18:
|
|
224
|
+
/* repeat code length 0 for 11-138 times (read 7 bits) */
|
|
225
|
+
for (length = tinf_read_bits(d, 7, 11); length; --length) {
|
|
226
|
+
lengths[num++] = 0;
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
default:
|
|
230
|
+
/* values 0-15 represent the actual code lengths */
|
|
231
|
+
lengths[num++] = sym;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* build dynamic trees */
|
|
237
|
+
tinf_build_tree(lt, lengths, 0, hlit);
|
|
238
|
+
tinf_build_tree(dt, lengths, hlit, hdist);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* ----------------------------- *
|
|
242
|
+
* -- block inflate functions -- *
|
|
243
|
+
* ----------------------------- */
|
|
244
|
+
|
|
245
|
+
/* given a stream and two trees, inflate a block of data */
|
|
246
|
+
function tinf_inflate_block_data(d, lt, dt) {
|
|
247
|
+
while (1) {
|
|
248
|
+
var sym = tinf_decode_symbol(d, lt);
|
|
249
|
+
|
|
250
|
+
/* check for end of block */
|
|
251
|
+
if (sym === 256) {
|
|
252
|
+
return TINF_OK;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (sym < 256) {
|
|
256
|
+
d.dest[d.destLen++] = sym;
|
|
257
|
+
} else {
|
|
258
|
+
var length, dist, offs;
|
|
259
|
+
var i;
|
|
260
|
+
|
|
261
|
+
sym -= 257;
|
|
262
|
+
|
|
263
|
+
/* possibly get more bits from length code */
|
|
264
|
+
length = tinf_read_bits(d, length_bits[sym], length_base[sym]);
|
|
265
|
+
|
|
266
|
+
dist = tinf_decode_symbol(d, dt);
|
|
267
|
+
|
|
268
|
+
/* possibly get more bits from distance code */
|
|
269
|
+
offs = d.destLen - tinf_read_bits(d, dist_bits[dist], dist_base[dist]);
|
|
270
|
+
|
|
271
|
+
/* copy match */
|
|
272
|
+
for (i = offs; i < offs + length; ++i) {
|
|
273
|
+
d.dest[d.destLen++] = d.dest[i];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* inflate an uncompressed block of data */
|
|
280
|
+
function tinf_inflate_uncompressed_block(d) {
|
|
281
|
+
var length, invlength;
|
|
282
|
+
var i;
|
|
283
|
+
|
|
284
|
+
/* unread from bitbuffer */
|
|
285
|
+
while (d.bitcount > 8) {
|
|
286
|
+
d.sourceIndex--;
|
|
287
|
+
d.bitcount -= 8;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* get length */
|
|
291
|
+
length = d.source[d.sourceIndex + 1];
|
|
292
|
+
length = 256 * length + d.source[d.sourceIndex];
|
|
293
|
+
|
|
294
|
+
/* get one's complement of length */
|
|
295
|
+
invlength = d.source[d.sourceIndex + 3];
|
|
296
|
+
invlength = 256 * invlength + d.source[d.sourceIndex + 2];
|
|
297
|
+
|
|
298
|
+
/* check length */
|
|
299
|
+
if (length !== (~invlength & 0x0000ffff))
|
|
300
|
+
return TINF_DATA_ERROR;
|
|
301
|
+
|
|
302
|
+
d.sourceIndex += 4;
|
|
303
|
+
|
|
304
|
+
/* copy block */
|
|
305
|
+
for (i = length; i; --i)
|
|
306
|
+
d.dest[d.destLen++] = d.source[d.sourceIndex++];
|
|
307
|
+
|
|
308
|
+
/* make sure we start next block on a byte boundary */
|
|
309
|
+
d.bitcount = 0;
|
|
310
|
+
|
|
311
|
+
return TINF_OK;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* inflate stream from source to dest */
|
|
315
|
+
function tinf_uncompress(source, dest) {
|
|
316
|
+
var d = new Data(source, dest);
|
|
317
|
+
var bfinal, btype, res;
|
|
318
|
+
|
|
319
|
+
do {
|
|
320
|
+
/* read final block flag */
|
|
321
|
+
bfinal = tinf_getbit(d);
|
|
322
|
+
|
|
323
|
+
/* read block type (2 bits) */
|
|
324
|
+
btype = tinf_read_bits(d, 2, 0);
|
|
325
|
+
|
|
326
|
+
/* decompress block */
|
|
327
|
+
switch (btype) {
|
|
328
|
+
case 0:
|
|
329
|
+
/* decompress uncompressed block */
|
|
330
|
+
res = tinf_inflate_uncompressed_block(d);
|
|
331
|
+
break;
|
|
332
|
+
case 1:
|
|
333
|
+
/* decompress block with fixed huffman trees */
|
|
334
|
+
res = tinf_inflate_block_data(d, sltree, sdtree);
|
|
335
|
+
break;
|
|
336
|
+
case 2:
|
|
337
|
+
/* decompress block with dynamic huffman trees */
|
|
338
|
+
tinf_decode_trees(d, d.ltree, d.dtree);
|
|
339
|
+
res = tinf_inflate_block_data(d, d.ltree, d.dtree);
|
|
340
|
+
break;
|
|
341
|
+
default:
|
|
342
|
+
res = TINF_DATA_ERROR;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (res !== TINF_OK)
|
|
346
|
+
throw new Error('Data error');
|
|
347
|
+
|
|
348
|
+
} while (!bfinal);
|
|
349
|
+
|
|
350
|
+
if (d.destLen < d.dest.length) {
|
|
351
|
+
if (typeof d.dest.slice === 'function')
|
|
352
|
+
return d.dest.slice(0, d.destLen);
|
|
353
|
+
else
|
|
354
|
+
return d.dest.subarray(0, d.destLen);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return d.dest;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* -------------------- *
|
|
361
|
+
* -- initialization -- *
|
|
362
|
+
* -------------------- */
|
|
363
|
+
|
|
364
|
+
/* build fixed huffman trees */
|
|
365
|
+
tinf_build_fixed_trees(sltree, sdtree);
|
|
366
|
+
|
|
367
|
+
/* build extra bits and base tables */
|
|
368
|
+
tinf_build_bits_base(length_bits, length_base, 4, 3);
|
|
369
|
+
tinf_build_bits_base(dist_bits, dist_base, 2, 1);
|
|
370
|
+
|
|
371
|
+
/* fix a special case */
|
|
372
|
+
length_bits[28] = 0;
|
|
373
|
+
length_base[28] = 258;
|
|
374
|
+
|
|
375
|
+
module.exports = tinf_uncompress;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tiny-inflate",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "A tiny inflate implementation",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git://github.com/devongovett/tiny-inflate.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"inflate",
|
|
15
|
+
"zlib",
|
|
16
|
+
"gzip",
|
|
17
|
+
"zip"
|
|
18
|
+
],
|
|
19
|
+
"author": "Devon Govett <devongovett@gmail.com>",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/devongovett/tiny-inflate/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/devongovett/tiny-inflate",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"mocha": "^2.1.0"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# tiny-inflate
|
|
2
|
+
|
|
3
|
+
This is a port of Joergen Ibsen's [tiny inflate](https://bitbucket.org/jibsen/tinf) to JavaScript.
|
|
4
|
+
Minified it is about 3KB, or 1.3KB gzipped. While being very small, it is also reasonably fast
|
|
5
|
+
(about 30% - 50% slower than [pako](https://github.com/nodeca/pako) on average), and should be
|
|
6
|
+
good enough for many applications. If you need the absolute best performance, however, you'll
|
|
7
|
+
need to use a larger library such as pako that contains additional optimizations.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
npm install tiny-inflate
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
To use tiny-inflate, you need two things: a buffer of data compressed with deflate,
|
|
16
|
+
and the decompressed size (often stored in a file header) to allocate your output buffer.
|
|
17
|
+
Input and output buffers can be either node `Buffer`s, or `Uint8Array`s.
|
|
18
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
var inflate = require('tiny-inflate');
|
|
21
|
+
|
|
22
|
+
var compressedBuffer = new Bufer([ ... ]);
|
|
23
|
+
var decompressedSize = ...;
|
|
24
|
+
var outputBuffer = new Buffer(decompressedSize);
|
|
25
|
+
|
|
26
|
+
inflate(compressedBuffer, outputBuffer);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var inflate = require('../');
|
|
2
|
+
var zlib = require('zlib');
|
|
3
|
+
var fs = require('fs');
|
|
4
|
+
var assert = require('assert');
|
|
5
|
+
var uncompressed = fs.readFileSync(__dirname + '/lorem.txt');
|
|
6
|
+
|
|
7
|
+
describe('tiny-inflate', function() {
|
|
8
|
+
var compressed, noCompression, fixed;
|
|
9
|
+
|
|
10
|
+
function deflate(buf, options, fn) {
|
|
11
|
+
var chunks = [];
|
|
12
|
+
zlib.createDeflateRaw(options)
|
|
13
|
+
.on('data', function(chunk) {
|
|
14
|
+
chunks.push(chunk);
|
|
15
|
+
})
|
|
16
|
+
.on('error', fn)
|
|
17
|
+
.on('end', function() {
|
|
18
|
+
fn(null, Buffer.concat(chunks));
|
|
19
|
+
})
|
|
20
|
+
.end(buf);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
before(function(done) {
|
|
24
|
+
zlib.deflateRaw(uncompressed, function(err, data) {
|
|
25
|
+
compressed = data;
|
|
26
|
+
done();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
before(function(done) {
|
|
31
|
+
deflate(uncompressed, { level: zlib.Z_NO_COMPRESSION }, function(err, data) {
|
|
32
|
+
noCompression = data;
|
|
33
|
+
done();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
before(function(done) {
|
|
38
|
+
deflate(uncompressed, { strategy: zlib.Z_FIXED }, function(err, data) {
|
|
39
|
+
fixed = data;
|
|
40
|
+
done();
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('should inflate some data', function() {
|
|
45
|
+
var out = Buffer.alloc(uncompressed.length);
|
|
46
|
+
inflate(compressed, out);
|
|
47
|
+
assert.deepEqual(out, uncompressed);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('should slice output buffer', function() {
|
|
51
|
+
var out = Buffer.alloc(uncompressed.length + 1024);
|
|
52
|
+
var res = inflate(compressed, out);
|
|
53
|
+
assert.deepEqual(res, uncompressed);
|
|
54
|
+
assert.equal(res.length, uncompressed.length);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should handle uncompressed blocks', function() {
|
|
58
|
+
var out = Buffer.alloc(uncompressed.length);
|
|
59
|
+
inflate(noCompression, out);
|
|
60
|
+
assert.deepEqual(out, uncompressed);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should handle fixed huffman blocks', function() {
|
|
64
|
+
var out = Buffer.alloc(uncompressed.length);
|
|
65
|
+
inflate(fixed, out);
|
|
66
|
+
assert.deepEqual(out, uncompressed);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('should handle typed arrays', function() {
|
|
70
|
+
var input = new Uint8Array(compressed);
|
|
71
|
+
var out = new Uint8Array(uncompressed.length);
|
|
72
|
+
inflate(input, out);
|
|
73
|
+
assert.deepEqual(out, new Uint8Array(uncompressed));
|
|
74
|
+
});
|
|
75
|
+
});
|