decocms 4.113.3 → 4.113.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C3yBEe62.js → AlertCircle-D3NSbtte.js} +1 -1
- package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-CVVwbKz-.js} +1 -1
- package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-ByO1s01w.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-Cd7BXS0r.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-OT_eUSGv.js} +1 -1
- package/dist/client/assets/{Check-BOCHVTek.js → Check-DexGeb34.js} +1 -1
- package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-BHeeUcEs.js} +1 -1
- package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CHuNudj6.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-CMzdRCrr.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-lRFXwe0H.js} +1 -1
- package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-uMwlKnXA.js} +1 -1
- package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-BYSP2N_n.js} +1 -1
- package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-BctMyF-b.js} +1 -1
- package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-CN2zN3dy.js} +1 -1
- package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-CdsyprSD.js} +1 -1
- package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-Bsu11XTy.js} +1 -1
- package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-BbGoyEqj.js} +1 -1
- package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-CEPIXDUJ.js} +1 -1
- package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-I5rdl_Gb.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-DUKr-FQx.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-CerBDso7.js} +1 -1
- package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BQcYh9Ui.js} +1 -1
- package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-bBKqAlRi.js} +1 -1
- package/dist/client/assets/{Package-BzQD_Ty_.js → Package-C1L6WXbG.js} +1 -1
- package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-DkA-m4II.js} +1 -1
- package/dist/client/assets/{Play-D8x6tbEi.js → Play-D5AlhRua.js} +1 -1
- package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B78kfbrH.js} +1 -1
- package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-HLi9z3k2.js} +1 -1
- package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D9xCjcBT.js} +1 -1
- package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-D4D7dHyq.js} +1 -1
- package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-C0sINRXL.js} +1 -1
- package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Hh5rtrm_.js} +1 -1
- package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-BIr-9im_.js} +1 -1
- package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-x-FNLmKd.js} +1 -1
- package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-CbURsFMr.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-CI53Hh9k.js} +1 -1
- package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-CrK-zdU8.js} +1 -1
- package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-BLqj76jE.js} +1 -1
- package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-Df4dKmk-.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-CDAx5KLE.js} +1 -1
- package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-Dy7G4Vqj.js} +1 -1
- package/dist/client/assets/{User01-qg2q5EXG.js → User01-B00HeJ3v.js} +1 -1
- package/dist/client/assets/{Users01-DecEGc0z.js → Users01-demha86n.js} +1 -1
- package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CK3Zfb7D.js} +1 -1
- package/dist/client/assets/{X-ByT759cs.js → X-CehcuOdv.js} +1 -1
- package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-BaIgTqjQ.js} +1 -1
- package/dist/client/assets/{XClose-CZnGWolh.js → XClose-Bf6_Xwqn.js} +1 -1
- package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-CqCVe0AY.js} +1 -1
- package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-UWBEBtze.js} +1 -1
- package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-kGLYh1vh.js} +1 -1
- package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-Brf1uq7w.js} +1 -1
- package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-hl41gB3e.js} +1 -1
- package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-C5hkjd9d.js} +1 -1
- package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-DUZLZiO7.js} +1 -1
- package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-Ddtnde82.js} +1 -1
- package/dist/client/assets/{alert-D-rAiL9n.js → alert-C0nUQV3Z.js} +1 -1
- package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-CoSPCPpg.js} +1 -1
- package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-C022NrTg.js} +1 -1
- package/dist/client/assets/{auth-DrixEdZV.js → auth-3hywqU0Z.js} +1 -1
- package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-B4Hu45Ne.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-Bd0jbgb_.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-CY08Qy2Q.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-C97UAKVm.js} +1 -1
- package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-CzqgyFTo.js} +1 -1
- package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BJXzFuc5.js} +1 -1
- package/dist/client/assets/{automations-C0XROIdQ.js → automations-BNgdqlWi.js} +1 -1
- package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DKunmHJC.js} +1 -1
- package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-bZ-OyZ4C.js} +1 -1
- package/dist/client/assets/{badge-Dq8tKfND.js → badge-BEoEV_-s.js} +1 -1
- package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-Bsh4SSZF.js} +1 -1
- package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-DsI_N6jC.js} +1 -1
- package/dist/client/assets/{buckets-CSQzXH56.js → buckets-66qFPEUl.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-Cufz0WM3.js} +1 -1
- package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-CtwiiKBb.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BIVVxP4I.js} +1 -1
- package/dist/client/assets/{card-CYIXg6Tz.js → card-BzIUIhXj.js} +1 -1
- package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-CvwKblO3.js} +1 -1
- package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-Crb9rWHK.js} +1 -1
- package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-B7FxhNJt.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-B13-d7YS.js} +1 -1
- package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-CEn6RIOn.js} +1 -1
- package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CzT8Gsvj.js} +1 -1
- package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-CnQx2Rcs.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-1UMvZ3fa.js} +1 -1
- package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-CBtRCQQL.js} +1 -1
- package/dist/client/assets/{command-55Q776qF.js → command-C5gxZS1R.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-CB-WZK2l.js} +1 -1
- package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-42eUIML2.js} +1 -1
- package/dist/client/assets/{connect-Dzubmbm6.js → connect-DrIqorJQ.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-BTzMpZn4.js} +1 -1
- package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-CBIOrMcr.js} +1 -1
- package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-CUFaaTIx.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers-51wU-tA4.js} +1 -1
- package/dist/client/assets/{connections-CMhMeidX.js → connections-fJWiq9na.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-JL7UXTva.js} +1 -1
- package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-BopH09uO.js} +1 -1
- package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-UBCepEd-.js} +1 -1
- package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-4wGUz3NV.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CqUwPgCM.js} +1 -1
- package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-DMQGyp-2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-Dg2OurD8.js} +1 -1
- package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-Cr2rWfg3.js} +1 -1
- package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Dq1fYczo.js} +1 -1
- package/dist/client/assets/{files-DMRbcRYD.js → files-D11P-V12.js} +1 -1
- package/dist/client/assets/{form-a5EhWS__.js → form-DGbrQv7O.js} +1 -1
- package/dist/client/assets/{general-BXzwd9kr.js → general-ByuqDQPP.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-CsJtF4k1.js} +1 -1
- package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-Bqa3-ZMc.js} +1 -1
- package/dist/client/assets/{index-CDAhksmq.js → index-2cPeCHTJ.js} +1 -1
- package/dist/client/assets/{index-D0XkAkng.js → index-BU5jOX-E.js} +1 -1
- package/dist/client/assets/{index-ChR3SC6w.js → index-BZ6EPALd.js} +1 -1
- package/dist/client/assets/{index-Dd318vVc.js → index-BsEzp8oj.js} +1 -1
- package/dist/client/assets/{index-D3QnFu3t.js → index-BzpPy3wE.js} +3 -3
- package/dist/client/assets/{index-D8_uS6ju.js → index-CYhwzBFB.js} +1 -1
- package/dist/client/assets/{index-BjFrw_Cz.js → index-Cfzztnsx.js} +1 -1
- package/dist/client/assets/{index-D6Qe38nY.js → index-D0ar0WVw.js} +1 -1
- package/dist/client/assets/{index-BzKhWus-.js → index-D3an6z2y.js} +1 -1
- package/dist/client/assets/{index-wa1mGSJt.js → index-DJOz2VN0.js} +5 -5
- package/dist/client/assets/{index-i4iJK1qu.js → index-DNl9xlj2.js} +3 -3
- package/dist/client/assets/{index-BvXIjHT6.js → index-JokIayzs.js} +1 -1
- package/dist/client/assets/{index-DKYptawH.js → index-MOQFWNpJ.js} +1 -1
- package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-C8kzuGQD.js} +1 -1
- package/dist/client/assets/{input-DBTIXVeB.js → input-BgKPAcUy.js} +1 -1
- package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-COAmfKM2.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-D_2ikydr.js} +1 -1
- package/dist/client/assets/{label-hZbHKQe4.js → label-Bit-k39a.js} +1 -1
- package/dist/client/assets/{layout-BbmfwSeT.js → layout-bmMNsy2b.js} +1 -1
- package/dist/client/assets/{login-CYk7QqzO.js → login-Bme8dehk.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DtUJKJBX.js} +1 -1
- package/dist/client/assets/{members-Br5ZzfAU.js → members-BdjB5MAU.js} +1 -1
- package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BrEGduvG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-CNmPKGSb.js} +1 -1
- package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-Bu-8nHIy.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-DVtgM464.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-D0dOkVqX.js} +1 -1
- package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-BT0PHxMW.js} +1 -1
- package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-CVKBAdf6.js} +1 -1
- package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-Dv1Blc3Y.js} +1 -1
- package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-B6BWp_1y.js} +1 -1
- package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-Cy8dbVQf.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-CBHtkQ-1.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BEV8Rj_2.js +1 -0
- package/dist/client/assets/{popover-WvXSsr2A.js → popover-Bk7l46es.js} +1 -1
- package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-BFFD4TxR.js} +1 -1
- package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-BUqBmg2w.js} +1 -1
- package/dist/client/assets/{profile-BJOXihUj.js → profile-_UM8G-04.js} +1 -1
- package/dist/client/assets/project-app-view-d8NlTW9s.js +1 -0
- package/dist/client/assets/record-editor-D87inyPk.js +1 -0
- package/dist/client/assets/redirect-editor-B5p1mIS_.js +1 -0
- package/dist/client/assets/registry-Cgy8gH4Y.js +2 -0
- package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-DZTQ7Enm.js} +2 -2
- package/dist/client/assets/{reports-CJYmnCRR.js → reports-CogLmgwx.js} +2 -2
- package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-DAXk0d5y.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-DVJ0P1R1.js} +1 -1
- package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-Ba_pBAvO.js} +1 -1
- package/dist/client/assets/{roles-CuzTIzcA.js → roles-CXTr00hX.js} +1 -1
- package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-C-UMJodP.js} +1 -1
- package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-D88X3IUQ.js} +1 -1
- package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-BFKZY_dP.js} +1 -1
- package/dist/client/assets/{select-CS3vGjLf.js → select-C-jyJoDt.js} +1 -1
- package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-Dgd4xGjo.js} +1 -1
- package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-DPMrglQq.js} +1 -1
- package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-BY6DSXGz.js} +1 -1
- package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CkDQpCLh.js} +1 -1
- package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-6MwJAdqF.js} +1 -1
- package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-CnX0OdDH.js} +1 -1
- package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-CN7hhO1J.js} +1 -1
- package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-C_iv7Nh9.js} +1 -1
- package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-DbS6ExIt.js} +1 -1
- package/dist/client/assets/{sso-DvIYBwsX.js → sso-B8CdFzAl.js} +1 -1
- package/dist/client/assets/{store-D2kZokQ2.js → store-Bnyy1WiV.js} +1 -1
- package/dist/client/assets/store-registry-BSo6cvku.js +2 -0
- package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-IiJMHnzv.js} +1 -1
- package/dist/client/assets/{switch-CWGgmiWZ.js → switch-yqZ24tl_.js} +1 -1
- package/dist/client/assets/{table-B7Z84RDB.js → table-CmSWRFMQ.js} +1 -1
- package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-7R3MGlLI.js} +1 -1
- package/dist/client/assets/{textarea-DNrJISFS.js → textarea-BE6VI2Sm.js} +1 -1
- package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-lTjODskL.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DysigV8P.js} +1 -1
- package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-mS39lMFz.js} +1 -1
- package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-CQ993dHl.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-CcQLY3nb.js} +1 -1
- package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-DJYutKrk.js} +1 -1
- package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations-Dhj1E9Ph.js} +1 -1
- package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-C2xapmR1.js} +1 -1
- package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-DyYemPOJ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-Cy_Qdrwk.js} +1 -1
- package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-DgItAPXg.js} +1 -1
- package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-Cl4f2mnT.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-Cr2zciLP.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-DacEdb47.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-COWnhTlx.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-C258e8Gu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-C8Qld7KH.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-D8xzfXPS.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-CUVPi201.js} +1 -1
- package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-BS9XBoPf.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-CHbZVRlR.js} +1 -1
- package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-BnVp32Ft.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-C_bc7znM.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-rUzkHeFC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-wZzusmBD.js} +1 -1
- package/dist/client/assets/{use-members-A3agoGMA.js → use-members-Bs4G8Gn6.js} +1 -1
- package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-Dfk9gz4P.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-D_ROb12r.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-C2bpFjJB.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-o6qtDNhz.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-CIhMiXnm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-BN6Mbe3T.js} +1 -1
- package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-CdXrR-uL.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-DUTwru2C.js} +1 -1
- package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-BGQjv51d.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-DNfyHXSY.js} +1 -1
- package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-3AUQk446.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-EXgj09hR.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BuJ4N0EZ.js +1 -0
- package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-BTxFVSBJ.js} +1 -1
- package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-CSm1vh-t.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CnxU3y26.js +1 -0
- package/dist/client/assets/{users-BXaOYgw2.js → users-BUKZ3ENb.js} +1 -1
- package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-BkY_wbhM.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-cynxUaRv.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/report-og-fallback.png +0 -0
- package/dist/server/cli.js +656 -656
- package/dist/server/migrate.js +5 -5
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +373 -0
- package/dist/server/node_modules/@resvg/resvg-js/README.md +314 -0
- package/dist/server/node_modules/@resvg/resvg-js/index.js +23 -0
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +1 -0
- package/dist/server/node_modules/@resvg/resvg-js/package.json +152 -0
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +20 -0
- package/dist/server/node_modules/@shuding/opentype.js/README.md +9 -0
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +272 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +84 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +64 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +96 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +11655 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +2 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +11639 -0
- package/dist/server/node_modules/@shuding/opentype.js/package.json +73 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +158 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +243 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +16 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +1032 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +74 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +83 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +483 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +40 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +433 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +274 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +150 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +3062 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +5 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +357 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +375 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +628 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +212 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +77 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +447 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +215 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +1156 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +145 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +71 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +62 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +349 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +146 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +251 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +35 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +27 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +51 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +69 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +33 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +32 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +30 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +680 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +65 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +522 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +976 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +17 -0
- package/dist/server/node_modules/base64-js/.travis.yml +5 -0
- package/dist/server/node_modules/base64-js/LICENSE.MIT +21 -0
- package/dist/server/node_modules/base64-js/README.md +31 -0
- package/dist/server/node_modules/base64-js/bench/bench.js +19 -0
- package/dist/server/node_modules/base64-js/lib/b64.js +124 -0
- package/dist/server/node_modules/base64-js/package.json +34 -0
- package/dist/server/node_modules/base64-js/test/convert.js +51 -0
- package/dist/server/node_modules/base64-js/test/url-safe.js +18 -0
- package/dist/server/node_modules/camelize/.eslintrc +24 -0
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +12 -0
- package/dist/server/node_modules/camelize/CHANGELOG.md +64 -0
- package/dist/server/node_modules/camelize/LICENSE +18 -0
- package/dist/server/node_modules/camelize/README.md +81 -0
- package/dist/server/node_modules/camelize/example/camel.js +12 -0
- package/dist/server/node_modules/camelize/index.js +61 -0
- package/dist/server/node_modules/camelize/package.json +84 -0
- package/dist/server/node_modules/camelize/test/camel.js +48 -0
- package/dist/server/node_modules/color-name/LICENSE +8 -0
- package/dist/server/node_modules/color-name/README.md +11 -0
- package/dist/server/node_modules/color-name/index.js +152 -0
- package/dist/server/node_modules/color-name/package.json +28 -0
- package/dist/server/node_modules/css-background-parser/LICENSE +22 -0
- package/dist/server/node_modules/css-background-parser/README.md +149 -0
- package/dist/server/node_modules/css-background-parser/index.js +162 -0
- package/dist/server/node_modules/css-background-parser/package.json +19 -0
- package/dist/server/node_modules/css-box-shadow/README.md +27 -0
- package/dist/server/node_modules/css-box-shadow/index.js +64 -0
- package/dist/server/node_modules/css-box-shadow/package.json +14 -0
- package/dist/server/node_modules/css-box-shadow/test.js +204 -0
- package/dist/server/node_modules/css-color-keywords/LICENSE +15 -0
- package/dist/server/node_modules/css-color-keywords/README.md +47 -0
- package/dist/server/node_modules/css-color-keywords/colors.json +148 -0
- package/dist/server/node_modules/css-color-keywords/index.js +3 -0
- package/dist/server/node_modules/css-color-keywords/package.json +27 -0
- package/dist/server/node_modules/css-gradient-parser/LICENSE +21 -0
- package/dist/server/node_modules/css-gradient-parser/README.md +75 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +2 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +2 -0
- package/dist/server/node_modules/css-gradient-parser/package.json +54 -0
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +21 -0
- package/dist/server/node_modules/css-to-react-native/README.md +115 -0
- package/dist/server/node_modules/css-to-react-native/index.js +886 -0
- package/dist/server/node_modules/css-to-react-native/package.json +65 -0
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +85 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +136 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +83 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +31 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +122 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +22 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +117 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +43 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +15 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +8 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +204 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +13 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +103 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +30 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +55 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +132 -0
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/index.js +90 -0
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +75 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +12 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +11 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +65 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +63 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +20 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +77 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +24 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +18 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +10 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +99 -0
- package/dist/server/node_modules/hex-rgb/index.js +47 -0
- package/dist/server/node_modules/hex-rgb/license +9 -0
- package/dist/server/node_modules/hex-rgb/package.json +39 -0
- package/dist/server/node_modules/hex-rgb/readme.md +86 -0
- package/dist/server/node_modules/linebreak/LICENSE +21 -0
- package/dist/server/node_modules/linebreak/dist/main.cjs +1369 -0
- package/dist/server/node_modules/linebreak/dist/module.mjs +1368 -0
- package/dist/server/node_modules/linebreak/package.json +57 -0
- package/dist/server/node_modules/linebreak/readme.md +62 -0
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +54 -0
- package/dist/server/node_modules/parse-css-color/LICENSE +21 -0
- package/dist/server/node_modules/parse-css-color/README.md +110 -0
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +171 -0
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +167 -0
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +7 -0
- package/dist/server/node_modules/parse-css-color/package.json +55 -0
- package/dist/server/node_modules/postcss-value-parser/LICENSE +22 -0
- package/dist/server/node_modules/postcss-value-parser/README.md +263 -0
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/dist/server/node_modules/postcss-value-parser/package.json +58 -0
- package/dist/server/node_modules/satori/LICENSE +373 -0
- package/dist/server/node_modules/satori/README.md +516 -0
- package/dist/server/node_modules/satori/dist/index.cjs +8 -0
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/index.js +8 -0
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +2 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +2 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +2 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +2 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +8 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/standalone.js +8 -0
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/package.json +149 -0
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +21 -0
- package/dist/server/node_modules/tiny-inflate/index.js +375 -0
- package/dist/server/node_modules/tiny-inflate/package.json +28 -0
- package/dist/server/node_modules/tiny-inflate/readme.md +31 -0
- package/dist/server/node_modules/tiny-inflate/test/index.js +75 -0
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +199 -0
- package/dist/server/node_modules/unicode-trie/LICENSE +8 -0
- package/dist/server/node_modules/unicode-trie/README.md +77 -0
- package/dist/server/node_modules/unicode-trie/builder.js +966 -0
- package/dist/server/node_modules/unicode-trie/index.js +136 -0
- package/dist/server/node_modules/unicode-trie/package.json +27 -0
- package/dist/server/node_modules/unicode-trie/swap.js +25 -0
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +1 -0
- package/dist/server/node_modules/unicode-trie/test/test.js +243 -0
- package/dist/server/server.js +640 -640
- package/package.json +3 -1
- package/dist/client/assets/page-seo-sheet-BVOTKmAi.js +0 -1
- package/dist/client/assets/project-app-view-BJPw6BEN.js +0 -1
- package/dist/client/assets/record-editor-DGNLZeof.js +0 -1
- package/dist/client/assets/redirect-editor-rNADegcF.js +0 -1
- package/dist/client/assets/registry-DSHcnwR4.js +0 -2
- package/dist/client/assets/store-registry-q7deglpz.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DVl8ILZo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClimnWE2.js +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "parse-css-color",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "parse a css color string",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"browser": "dist/index.umd.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "rollup -c -w",
|
|
14
|
+
"test": "mocha --require esm",
|
|
15
|
+
"build": "rollup -c",
|
|
16
|
+
"prepublish": "npm run build"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"parse",
|
|
20
|
+
"css",
|
|
21
|
+
"color",
|
|
22
|
+
"string",
|
|
23
|
+
"colour",
|
|
24
|
+
"rgb",
|
|
25
|
+
"rgba",
|
|
26
|
+
"hsl",
|
|
27
|
+
"hsla",
|
|
28
|
+
"hex",
|
|
29
|
+
"hexa",
|
|
30
|
+
"alpha"
|
|
31
|
+
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/noeldelgado/parse-css-color.git"
|
|
35
|
+
},
|
|
36
|
+
"author": "Noel Delgado <pixelia.me@gmail.com> (https://pixelia.me/)",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"color-name": "^1.1.4",
|
|
40
|
+
"hex-rgb": "^4.1.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@rollup/plugin-buble": "0.21.3",
|
|
44
|
+
"@rollup/plugin-commonjs": "11.1.0",
|
|
45
|
+
"@rollup/plugin-node-resolve": "7.1.3",
|
|
46
|
+
"@rollup/plugin-replace": "2.3.2",
|
|
47
|
+
"eslint": "7.0.0",
|
|
48
|
+
"eslint-config-rollup": "2.0.0",
|
|
49
|
+
"esm": "3.2.25",
|
|
50
|
+
"mocha": "8.4.0",
|
|
51
|
+
"rollup": "2.8.2",
|
|
52
|
+
"rollup-plugin-copy": "3.4.0",
|
|
53
|
+
"rollup-plugin-terser": "7.0.2"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# postcss-value-parser
|
|
2
|
+
|
|
3
|
+
[](https://travis-ci.org/TrySound/postcss-value-parser)
|
|
4
|
+
|
|
5
|
+
Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
var valueParser = require('postcss-value-parser');
|
|
11
|
+
var cssBackgroundValue = 'url(foo.png) no-repeat 40px 73%';
|
|
12
|
+
var parsedValue = valueParser(cssBackgroundValue);
|
|
13
|
+
// parsedValue exposes an API described below,
|
|
14
|
+
// e.g. parsedValue.walk(..), parsedValue.toString(), etc.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For example, parsing the value `rgba(233, 45, 66, .5)` will return the following:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
{
|
|
21
|
+
nodes: [
|
|
22
|
+
{
|
|
23
|
+
type: 'function',
|
|
24
|
+
value: 'rgba',
|
|
25
|
+
before: '',
|
|
26
|
+
after: '',
|
|
27
|
+
nodes: [
|
|
28
|
+
{ type: 'word', value: '233' },
|
|
29
|
+
{ type: 'div', value: ',', before: '', after: ' ' },
|
|
30
|
+
{ type: 'word', value: '45' },
|
|
31
|
+
{ type: 'div', value: ',', before: '', after: ' ' },
|
|
32
|
+
{ type: 'word', value: '66' },
|
|
33
|
+
{ type: 'div', value: ',', before: ' ', after: '' },
|
|
34
|
+
{ type: 'word', value: '.5' }
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If you wanted to convert each `rgba()` value in `sourceCSS` to a hex value, you could do so like this:
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
var valueParser = require('postcss-value-parser');
|
|
45
|
+
|
|
46
|
+
var parsed = valueParser(sourceCSS);
|
|
47
|
+
|
|
48
|
+
// walk() will visit all the of the nodes in the tree,
|
|
49
|
+
// invoking the callback for each.
|
|
50
|
+
parsed.walk(function (node) {
|
|
51
|
+
|
|
52
|
+
// Since we only want to transform rgba() values,
|
|
53
|
+
// we can ignore anything else.
|
|
54
|
+
if (node.type !== 'function' && node.value !== 'rgba') return;
|
|
55
|
+
|
|
56
|
+
// We can make an array of the rgba() arguments to feed to a
|
|
57
|
+
// convertToHex() function
|
|
58
|
+
var color = node.nodes.filter(function (node) {
|
|
59
|
+
return node.type === 'word';
|
|
60
|
+
}).map(function (node) {
|
|
61
|
+
return Number(node.value);
|
|
62
|
+
}); // [233, 45, 66, .5]
|
|
63
|
+
|
|
64
|
+
// Now we will transform the existing rgba() function node
|
|
65
|
+
// into a word node with the hex value
|
|
66
|
+
node.type = 'word';
|
|
67
|
+
node.value = convertToHex(color);
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
parsed.toString(); // #E92D42
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Nodes
|
|
74
|
+
|
|
75
|
+
Each node is an object with these common properties:
|
|
76
|
+
|
|
77
|
+
- **type**: The type of node (`word`, `string`, `div`, `space`, `comment`, or `function`).
|
|
78
|
+
Each type is documented below.
|
|
79
|
+
- **value**: Each node has a `value` property; but what exactly `value` means
|
|
80
|
+
is specific to the node type. Details are documented for each type below.
|
|
81
|
+
- **sourceIndex**: The starting index of the node within the original source
|
|
82
|
+
string. For example, given the source string `10px 20px`, the `word` node
|
|
83
|
+
whose value is `20px` will have a `sourceIndex` of `5`.
|
|
84
|
+
|
|
85
|
+
### word
|
|
86
|
+
|
|
87
|
+
The catch-all node type that includes keywords (e.g. `no-repeat`),
|
|
88
|
+
quantities (e.g. `20px`, `75%`, `1.5`), and hex colors (e.g. `#e6e6e6`).
|
|
89
|
+
|
|
90
|
+
Node-specific properties:
|
|
91
|
+
|
|
92
|
+
- **value**: The "word" itself.
|
|
93
|
+
|
|
94
|
+
### string
|
|
95
|
+
|
|
96
|
+
A quoted string value, e.g. `"something"` in `content: "something";`.
|
|
97
|
+
|
|
98
|
+
Node-specific properties:
|
|
99
|
+
|
|
100
|
+
- **value**: The text content of the string.
|
|
101
|
+
- **quote**: The quotation mark surrounding the string, either `"` or `'`.
|
|
102
|
+
- **unclosed**: `true` if the string was not closed properly. e.g. `"unclosed string `.
|
|
103
|
+
|
|
104
|
+
### div
|
|
105
|
+
|
|
106
|
+
A divider, for example
|
|
107
|
+
|
|
108
|
+
- `,` in `animation-duration: 1s, 2s, 3s`
|
|
109
|
+
- `/` in `border-radius: 10px / 23px`
|
|
110
|
+
- `:` in `(min-width: 700px)`
|
|
111
|
+
|
|
112
|
+
Node-specific properties:
|
|
113
|
+
|
|
114
|
+
- **value**: The divider character. Either `,`, `/`, or `:` (see examples above).
|
|
115
|
+
- **before**: Whitespace before the divider.
|
|
116
|
+
- **after**: Whitespace after the divider.
|
|
117
|
+
|
|
118
|
+
### space
|
|
119
|
+
|
|
120
|
+
Whitespace used as a separator, e.g. ` ` occurring twice in `border: 1px solid black;`.
|
|
121
|
+
|
|
122
|
+
Node-specific properties:
|
|
123
|
+
|
|
124
|
+
- **value**: The whitespace itself.
|
|
125
|
+
|
|
126
|
+
### comment
|
|
127
|
+
|
|
128
|
+
A CSS comment starts with `/*` and ends with `*/`
|
|
129
|
+
|
|
130
|
+
Node-specific properties:
|
|
131
|
+
|
|
132
|
+
- **value**: The comment value without `/*` and `*/`
|
|
133
|
+
- **unclosed**: `true` if the comment was not closed properly. e.g. `/* comment without an end `.
|
|
134
|
+
|
|
135
|
+
### function
|
|
136
|
+
|
|
137
|
+
A CSS function, e.g. `rgb(0,0,0)` or `url(foo.bar)`.
|
|
138
|
+
|
|
139
|
+
Function nodes have nodes nested within them: the function arguments.
|
|
140
|
+
|
|
141
|
+
Additional properties:
|
|
142
|
+
|
|
143
|
+
- **value**: The name of the function, e.g. `rgb` in `rgb(0,0,0)`.
|
|
144
|
+
- **before**: Whitespace after the opening parenthesis and before the first argument,
|
|
145
|
+
e.g. ` ` in `rgb( 0,0,0)`.
|
|
146
|
+
- **after**: Whitespace before the closing parenthesis and after the last argument,
|
|
147
|
+
e.g. ` ` in `rgb(0,0,0 )`.
|
|
148
|
+
- **nodes**: More nodes representing the arguments to the function.
|
|
149
|
+
- **unclosed**: `true` if the parentheses was not closed properly. e.g. `( unclosed-function `.
|
|
150
|
+
|
|
151
|
+
Media features surrounded by parentheses are considered functions with an
|
|
152
|
+
empty value. For example, `(min-width: 700px)` parses to these nodes:
|
|
153
|
+
|
|
154
|
+
```js
|
|
155
|
+
[
|
|
156
|
+
{
|
|
157
|
+
type: 'function', value: '', before: '', after: '',
|
|
158
|
+
nodes: [
|
|
159
|
+
{ type: 'word', value: 'min-width' },
|
|
160
|
+
{ type: 'div', value: ':', before: '', after: ' ' },
|
|
161
|
+
{ type: 'word', value: '700px' }
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
`url()` functions can be parsed a little bit differently depending on
|
|
168
|
+
whether the first character in the argument is a quotation mark.
|
|
169
|
+
|
|
170
|
+
`url( /gfx/img/bg.jpg )` parses to:
|
|
171
|
+
|
|
172
|
+
```js
|
|
173
|
+
{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [
|
|
174
|
+
{ type: 'word', sourceIndex: 5, value: '/gfx/img/bg.jpg' }
|
|
175
|
+
] }
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
`url( "/gfx/img/bg.jpg" )`, on the other hand, parses to:
|
|
179
|
+
|
|
180
|
+
```js
|
|
181
|
+
{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [
|
|
182
|
+
type: 'string', sourceIndex: 5, quote: '"', value: '/gfx/img/bg.jpg' },
|
|
183
|
+
] }
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### unicode-range
|
|
187
|
+
|
|
188
|
+
The unicode-range CSS descriptor sets the specific range of characters to be
|
|
189
|
+
used from a font defined by @font-face and made available
|
|
190
|
+
for use on the current page (`unicode-range: U+0025-00FF`).
|
|
191
|
+
|
|
192
|
+
Node-specific properties:
|
|
193
|
+
|
|
194
|
+
- **value**: The "unicode-range" itself.
|
|
195
|
+
|
|
196
|
+
## API
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
var valueParser = require('postcss-value-parser');
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### valueParser.unit(quantity)
|
|
203
|
+
|
|
204
|
+
Parses `quantity`, distinguishing the number from the unit. Returns an object like the following:
|
|
205
|
+
|
|
206
|
+
```js
|
|
207
|
+
// Given 2rem
|
|
208
|
+
{
|
|
209
|
+
number: '2',
|
|
210
|
+
unit: 'rem'
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
If the `quantity` argument cannot be parsed as a number, returns `false`.
|
|
215
|
+
|
|
216
|
+
*This function does not parse complete values*: you cannot pass it `1px solid black` and expect `px` as
|
|
217
|
+
the unit. Instead, you should pass it single quantities only. Parse `1px solid black`, then pass it
|
|
218
|
+
the stringified `1px` node (a `word` node) to parse the number and unit.
|
|
219
|
+
|
|
220
|
+
### valueParser.stringify(nodes[, custom])
|
|
221
|
+
|
|
222
|
+
Stringifies a node or array of nodes.
|
|
223
|
+
|
|
224
|
+
The `custom` function is called for each `node`; return a string to override the default behaviour.
|
|
225
|
+
|
|
226
|
+
### valueParser.walk(nodes, callback[, bubble])
|
|
227
|
+
|
|
228
|
+
Walks each provided node, recursively walking all descendent nodes within functions.
|
|
229
|
+
|
|
230
|
+
Returning `false` in the `callback` will prevent traversal of descendent nodes (within functions).
|
|
231
|
+
You can use this feature to for shallow iteration, walking over only the *immediate* children.
|
|
232
|
+
*Note: This only applies if `bubble` is `false` (which is the default).*
|
|
233
|
+
|
|
234
|
+
By default, the tree is walked from the outermost node inwards.
|
|
235
|
+
To reverse the direction, pass `true` for the `bubble` argument.
|
|
236
|
+
|
|
237
|
+
The `callback` is invoked with three arguments: `callback(node, index, nodes)`.
|
|
238
|
+
|
|
239
|
+
- `node`: The current node.
|
|
240
|
+
- `index`: The index of the current node.
|
|
241
|
+
- `nodes`: The complete nodes array passed to `walk()`.
|
|
242
|
+
|
|
243
|
+
Returns the `valueParser` instance.
|
|
244
|
+
|
|
245
|
+
### var parsed = valueParser(value)
|
|
246
|
+
|
|
247
|
+
Returns the parsed node tree.
|
|
248
|
+
|
|
249
|
+
### parsed.nodes
|
|
250
|
+
|
|
251
|
+
The array of nodes.
|
|
252
|
+
|
|
253
|
+
### parsed.toString()
|
|
254
|
+
|
|
255
|
+
Stringifies the node tree.
|
|
256
|
+
|
|
257
|
+
### parsed.walk(callback[, bubble])
|
|
258
|
+
|
|
259
|
+
Walks each node inside `parsed.nodes`. See the documentation for `valueParser.walk()` above.
|
|
260
|
+
|
|
261
|
+
# License
|
|
262
|
+
|
|
263
|
+
MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var parse = require("./parse");
|
|
2
|
+
var walk = require("./walk");
|
|
3
|
+
var stringify = require("./stringify");
|
|
4
|
+
|
|
5
|
+
function ValueParser(value) {
|
|
6
|
+
if (this instanceof ValueParser) {
|
|
7
|
+
this.nodes = parse(value);
|
|
8
|
+
return this;
|
|
9
|
+
}
|
|
10
|
+
return new ValueParser(value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
ValueParser.prototype.toString = function() {
|
|
14
|
+
return Array.isArray(this.nodes) ? stringify(this.nodes) : "";
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
ValueParser.prototype.walk = function(cb, bubble) {
|
|
18
|
+
walk(this.nodes, cb, bubble);
|
|
19
|
+
return this;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
ValueParser.unit = require("./unit");
|
|
23
|
+
|
|
24
|
+
ValueParser.walk = walk;
|
|
25
|
+
|
|
26
|
+
ValueParser.stringify = stringify;
|
|
27
|
+
|
|
28
|
+
module.exports = ValueParser;
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
var openParentheses = "(".charCodeAt(0);
|
|
2
|
+
var closeParentheses = ")".charCodeAt(0);
|
|
3
|
+
var singleQuote = "'".charCodeAt(0);
|
|
4
|
+
var doubleQuote = '"'.charCodeAt(0);
|
|
5
|
+
var backslash = "\\".charCodeAt(0);
|
|
6
|
+
var slash = "/".charCodeAt(0);
|
|
7
|
+
var comma = ",".charCodeAt(0);
|
|
8
|
+
var colon = ":".charCodeAt(0);
|
|
9
|
+
var star = "*".charCodeAt(0);
|
|
10
|
+
var uLower = "u".charCodeAt(0);
|
|
11
|
+
var uUpper = "U".charCodeAt(0);
|
|
12
|
+
var plus = "+".charCodeAt(0);
|
|
13
|
+
var isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
14
|
+
|
|
15
|
+
module.exports = function(input) {
|
|
16
|
+
var tokens = [];
|
|
17
|
+
var value = input;
|
|
18
|
+
|
|
19
|
+
var next,
|
|
20
|
+
quote,
|
|
21
|
+
prev,
|
|
22
|
+
token,
|
|
23
|
+
escape,
|
|
24
|
+
escapePos,
|
|
25
|
+
whitespacePos,
|
|
26
|
+
parenthesesOpenPos;
|
|
27
|
+
var pos = 0;
|
|
28
|
+
var code = value.charCodeAt(pos);
|
|
29
|
+
var max = value.length;
|
|
30
|
+
var stack = [{ nodes: tokens }];
|
|
31
|
+
var balanced = 0;
|
|
32
|
+
var parent;
|
|
33
|
+
|
|
34
|
+
var name = "";
|
|
35
|
+
var before = "";
|
|
36
|
+
var after = "";
|
|
37
|
+
|
|
38
|
+
while (pos < max) {
|
|
39
|
+
// Whitespaces
|
|
40
|
+
if (code <= 32) {
|
|
41
|
+
next = pos;
|
|
42
|
+
do {
|
|
43
|
+
next += 1;
|
|
44
|
+
code = value.charCodeAt(next);
|
|
45
|
+
} while (code <= 32);
|
|
46
|
+
token = value.slice(pos, next);
|
|
47
|
+
|
|
48
|
+
prev = tokens[tokens.length - 1];
|
|
49
|
+
if (code === closeParentheses && balanced) {
|
|
50
|
+
after = token;
|
|
51
|
+
} else if (prev && prev.type === "div") {
|
|
52
|
+
prev.after = token;
|
|
53
|
+
prev.sourceEndIndex += token.length;
|
|
54
|
+
} else if (
|
|
55
|
+
code === comma ||
|
|
56
|
+
code === colon ||
|
|
57
|
+
(code === slash &&
|
|
58
|
+
value.charCodeAt(next + 1) !== star &&
|
|
59
|
+
(!parent ||
|
|
60
|
+
(parent && parent.type === "function" && parent.value !== "calc")))
|
|
61
|
+
) {
|
|
62
|
+
before = token;
|
|
63
|
+
} else {
|
|
64
|
+
tokens.push({
|
|
65
|
+
type: "space",
|
|
66
|
+
sourceIndex: pos,
|
|
67
|
+
sourceEndIndex: next,
|
|
68
|
+
value: token
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
pos = next;
|
|
73
|
+
|
|
74
|
+
// Quotes
|
|
75
|
+
} else if (code === singleQuote || code === doubleQuote) {
|
|
76
|
+
next = pos;
|
|
77
|
+
quote = code === singleQuote ? "'" : '"';
|
|
78
|
+
token = {
|
|
79
|
+
type: "string",
|
|
80
|
+
sourceIndex: pos,
|
|
81
|
+
quote: quote
|
|
82
|
+
};
|
|
83
|
+
do {
|
|
84
|
+
escape = false;
|
|
85
|
+
next = value.indexOf(quote, next + 1);
|
|
86
|
+
if (~next) {
|
|
87
|
+
escapePos = next;
|
|
88
|
+
while (value.charCodeAt(escapePos - 1) === backslash) {
|
|
89
|
+
escapePos -= 1;
|
|
90
|
+
escape = !escape;
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
value += quote;
|
|
94
|
+
next = value.length - 1;
|
|
95
|
+
token.unclosed = true;
|
|
96
|
+
}
|
|
97
|
+
} while (escape);
|
|
98
|
+
token.value = value.slice(pos + 1, next);
|
|
99
|
+
token.sourceEndIndex = token.unclosed ? next : next + 1;
|
|
100
|
+
tokens.push(token);
|
|
101
|
+
pos = next + 1;
|
|
102
|
+
code = value.charCodeAt(pos);
|
|
103
|
+
|
|
104
|
+
// Comments
|
|
105
|
+
} else if (code === slash && value.charCodeAt(pos + 1) === star) {
|
|
106
|
+
next = value.indexOf("*/", pos);
|
|
107
|
+
|
|
108
|
+
token = {
|
|
109
|
+
type: "comment",
|
|
110
|
+
sourceIndex: pos,
|
|
111
|
+
sourceEndIndex: next + 2
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
if (next === -1) {
|
|
115
|
+
token.unclosed = true;
|
|
116
|
+
next = value.length;
|
|
117
|
+
token.sourceEndIndex = next;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
token.value = value.slice(pos + 2, next);
|
|
121
|
+
tokens.push(token);
|
|
122
|
+
|
|
123
|
+
pos = next + 2;
|
|
124
|
+
code = value.charCodeAt(pos);
|
|
125
|
+
|
|
126
|
+
// Operation within calc
|
|
127
|
+
} else if (
|
|
128
|
+
(code === slash || code === star) &&
|
|
129
|
+
parent &&
|
|
130
|
+
parent.type === "function" &&
|
|
131
|
+
parent.value === "calc"
|
|
132
|
+
) {
|
|
133
|
+
token = value[pos];
|
|
134
|
+
tokens.push({
|
|
135
|
+
type: "word",
|
|
136
|
+
sourceIndex: pos - before.length,
|
|
137
|
+
sourceEndIndex: pos + token.length,
|
|
138
|
+
value: token
|
|
139
|
+
});
|
|
140
|
+
pos += 1;
|
|
141
|
+
code = value.charCodeAt(pos);
|
|
142
|
+
|
|
143
|
+
// Dividers
|
|
144
|
+
} else if (code === slash || code === comma || code === colon) {
|
|
145
|
+
token = value[pos];
|
|
146
|
+
|
|
147
|
+
tokens.push({
|
|
148
|
+
type: "div",
|
|
149
|
+
sourceIndex: pos - before.length,
|
|
150
|
+
sourceEndIndex: pos + token.length,
|
|
151
|
+
value: token,
|
|
152
|
+
before: before,
|
|
153
|
+
after: ""
|
|
154
|
+
});
|
|
155
|
+
before = "";
|
|
156
|
+
|
|
157
|
+
pos += 1;
|
|
158
|
+
code = value.charCodeAt(pos);
|
|
159
|
+
|
|
160
|
+
// Open parentheses
|
|
161
|
+
} else if (openParentheses === code) {
|
|
162
|
+
// Whitespaces after open parentheses
|
|
163
|
+
next = pos;
|
|
164
|
+
do {
|
|
165
|
+
next += 1;
|
|
166
|
+
code = value.charCodeAt(next);
|
|
167
|
+
} while (code <= 32);
|
|
168
|
+
parenthesesOpenPos = pos;
|
|
169
|
+
token = {
|
|
170
|
+
type: "function",
|
|
171
|
+
sourceIndex: pos - name.length,
|
|
172
|
+
value: name,
|
|
173
|
+
before: value.slice(parenthesesOpenPos + 1, next)
|
|
174
|
+
};
|
|
175
|
+
pos = next;
|
|
176
|
+
|
|
177
|
+
if (name === "url" && code !== singleQuote && code !== doubleQuote) {
|
|
178
|
+
next -= 1;
|
|
179
|
+
do {
|
|
180
|
+
escape = false;
|
|
181
|
+
next = value.indexOf(")", next + 1);
|
|
182
|
+
if (~next) {
|
|
183
|
+
escapePos = next;
|
|
184
|
+
while (value.charCodeAt(escapePos - 1) === backslash) {
|
|
185
|
+
escapePos -= 1;
|
|
186
|
+
escape = !escape;
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
value += ")";
|
|
190
|
+
next = value.length - 1;
|
|
191
|
+
token.unclosed = true;
|
|
192
|
+
}
|
|
193
|
+
} while (escape);
|
|
194
|
+
// Whitespaces before closed
|
|
195
|
+
whitespacePos = next;
|
|
196
|
+
do {
|
|
197
|
+
whitespacePos -= 1;
|
|
198
|
+
code = value.charCodeAt(whitespacePos);
|
|
199
|
+
} while (code <= 32);
|
|
200
|
+
if (parenthesesOpenPos < whitespacePos) {
|
|
201
|
+
if (pos !== whitespacePos + 1) {
|
|
202
|
+
token.nodes = [
|
|
203
|
+
{
|
|
204
|
+
type: "word",
|
|
205
|
+
sourceIndex: pos,
|
|
206
|
+
sourceEndIndex: whitespacePos + 1,
|
|
207
|
+
value: value.slice(pos, whitespacePos + 1)
|
|
208
|
+
}
|
|
209
|
+
];
|
|
210
|
+
} else {
|
|
211
|
+
token.nodes = [];
|
|
212
|
+
}
|
|
213
|
+
if (token.unclosed && whitespacePos + 1 !== next) {
|
|
214
|
+
token.after = "";
|
|
215
|
+
token.nodes.push({
|
|
216
|
+
type: "space",
|
|
217
|
+
sourceIndex: whitespacePos + 1,
|
|
218
|
+
sourceEndIndex: next,
|
|
219
|
+
value: value.slice(whitespacePos + 1, next)
|
|
220
|
+
});
|
|
221
|
+
} else {
|
|
222
|
+
token.after = value.slice(whitespacePos + 1, next);
|
|
223
|
+
token.sourceEndIndex = next;
|
|
224
|
+
}
|
|
225
|
+
} else {
|
|
226
|
+
token.after = "";
|
|
227
|
+
token.nodes = [];
|
|
228
|
+
}
|
|
229
|
+
pos = next + 1;
|
|
230
|
+
token.sourceEndIndex = token.unclosed ? next : pos;
|
|
231
|
+
code = value.charCodeAt(pos);
|
|
232
|
+
tokens.push(token);
|
|
233
|
+
} else {
|
|
234
|
+
balanced += 1;
|
|
235
|
+
token.after = "";
|
|
236
|
+
token.sourceEndIndex = pos + 1;
|
|
237
|
+
tokens.push(token);
|
|
238
|
+
stack.push(token);
|
|
239
|
+
tokens = token.nodes = [];
|
|
240
|
+
parent = token;
|
|
241
|
+
}
|
|
242
|
+
name = "";
|
|
243
|
+
|
|
244
|
+
// Close parentheses
|
|
245
|
+
} else if (closeParentheses === code && balanced) {
|
|
246
|
+
pos += 1;
|
|
247
|
+
code = value.charCodeAt(pos);
|
|
248
|
+
|
|
249
|
+
parent.after = after;
|
|
250
|
+
parent.sourceEndIndex += after.length;
|
|
251
|
+
after = "";
|
|
252
|
+
balanced -= 1;
|
|
253
|
+
stack[stack.length - 1].sourceEndIndex = pos;
|
|
254
|
+
stack.pop();
|
|
255
|
+
parent = stack[balanced];
|
|
256
|
+
tokens = parent.nodes;
|
|
257
|
+
|
|
258
|
+
// Words
|
|
259
|
+
} else {
|
|
260
|
+
next = pos;
|
|
261
|
+
do {
|
|
262
|
+
if (code === backslash) {
|
|
263
|
+
next += 1;
|
|
264
|
+
}
|
|
265
|
+
next += 1;
|
|
266
|
+
code = value.charCodeAt(next);
|
|
267
|
+
} while (
|
|
268
|
+
next < max &&
|
|
269
|
+
!(
|
|
270
|
+
code <= 32 ||
|
|
271
|
+
code === singleQuote ||
|
|
272
|
+
code === doubleQuote ||
|
|
273
|
+
code === comma ||
|
|
274
|
+
code === colon ||
|
|
275
|
+
code === slash ||
|
|
276
|
+
code === openParentheses ||
|
|
277
|
+
(code === star &&
|
|
278
|
+
parent &&
|
|
279
|
+
parent.type === "function" &&
|
|
280
|
+
parent.value === "calc") ||
|
|
281
|
+
(code === slash &&
|
|
282
|
+
parent.type === "function" &&
|
|
283
|
+
parent.value === "calc") ||
|
|
284
|
+
(code === closeParentheses && balanced)
|
|
285
|
+
)
|
|
286
|
+
);
|
|
287
|
+
token = value.slice(pos, next);
|
|
288
|
+
|
|
289
|
+
if (openParentheses === code) {
|
|
290
|
+
name = token;
|
|
291
|
+
} else if (
|
|
292
|
+
(uLower === token.charCodeAt(0) || uUpper === token.charCodeAt(0)) &&
|
|
293
|
+
plus === token.charCodeAt(1) &&
|
|
294
|
+
isUnicodeRange.test(token.slice(2))
|
|
295
|
+
) {
|
|
296
|
+
tokens.push({
|
|
297
|
+
type: "unicode-range",
|
|
298
|
+
sourceIndex: pos,
|
|
299
|
+
sourceEndIndex: next,
|
|
300
|
+
value: token
|
|
301
|
+
});
|
|
302
|
+
} else {
|
|
303
|
+
tokens.push({
|
|
304
|
+
type: "word",
|
|
305
|
+
sourceIndex: pos,
|
|
306
|
+
sourceEndIndex: next,
|
|
307
|
+
value: token
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
pos = next;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
for (pos = stack.length - 1; pos; pos -= 1) {
|
|
316
|
+
stack[pos].unclosed = true;
|
|
317
|
+
stack[pos].sourceEndIndex = value.length;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return stack[0].nodes;
|
|
321
|
+
};
|