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,447 @@
|
|
|
1
|
+
// The Substitution object provides utility methods to manipulate
|
|
2
|
+
// the GSUB substitution table.
|
|
3
|
+
|
|
4
|
+
import check from './check';
|
|
5
|
+
import Layout from './layout';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @exports opentype.Substitution
|
|
9
|
+
* @class
|
|
10
|
+
* @extends opentype.Layout
|
|
11
|
+
* @param {opentype.Font}
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
function Substitution(font) {
|
|
15
|
+
Layout.call(this, font, 'gsub');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Check if 2 arrays of primitives are equal.
|
|
19
|
+
function arraysEqual(ar1, ar2) {
|
|
20
|
+
const n = ar1.length;
|
|
21
|
+
if (n !== ar2.length) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
for (let i = 0; i < n; i++) {
|
|
25
|
+
if (ar1[i] !== ar2[i]) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Find the first subtable of a lookup table in a particular format.
|
|
33
|
+
function getSubstFormat(lookupTable, format, defaultSubtable) {
|
|
34
|
+
const subtables = lookupTable.subtables;
|
|
35
|
+
for (let i = 0; i < subtables.length; i++) {
|
|
36
|
+
const subtable = subtables[i];
|
|
37
|
+
if (subtable.substFormat === format) {
|
|
38
|
+
return subtable;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (defaultSubtable) {
|
|
42
|
+
subtables.push(defaultSubtable);
|
|
43
|
+
return defaultSubtable;
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
Substitution.prototype = Layout.prototype;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Create a default GSUB table.
|
|
52
|
+
* @return {Object} gsub - The GSUB table.
|
|
53
|
+
*/
|
|
54
|
+
Substitution.prototype.createDefaultTable = function () {
|
|
55
|
+
// Generate a default empty GSUB table with just a DFLT script and dflt lang sys.
|
|
56
|
+
return {
|
|
57
|
+
version: 1,
|
|
58
|
+
scripts: [
|
|
59
|
+
{
|
|
60
|
+
tag: 'DFLT',
|
|
61
|
+
script: {
|
|
62
|
+
defaultLangSys: {
|
|
63
|
+
reserved: 0,
|
|
64
|
+
reqFeatureIndex: 0xffff,
|
|
65
|
+
featureIndexes: [],
|
|
66
|
+
},
|
|
67
|
+
langSysRecords: [],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
features: [],
|
|
72
|
+
lookups: [],
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* List all single substitutions (lookup type 1) for a given script, language, and feature.
|
|
78
|
+
* @param {string} [script='DFLT']
|
|
79
|
+
* @param {string} [language='dflt']
|
|
80
|
+
* @param {string} feature - 4-character feature name ('aalt', 'salt', 'ss01'...)
|
|
81
|
+
* @return {Array} substitutions - The list of substitutions.
|
|
82
|
+
*/
|
|
83
|
+
Substitution.prototype.getSingle = function (feature, script, language) {
|
|
84
|
+
const substitutions = [];
|
|
85
|
+
const lookupTables = this.getLookupTables(script, language, feature, 1);
|
|
86
|
+
for (let idx = 0; idx < lookupTables.length; idx++) {
|
|
87
|
+
const subtables = lookupTables[idx].subtables;
|
|
88
|
+
for (let i = 0; i < subtables.length; i++) {
|
|
89
|
+
const subtable = subtables[i];
|
|
90
|
+
const glyphs = this.expandCoverage(subtable.coverage);
|
|
91
|
+
let j;
|
|
92
|
+
if (subtable.substFormat === 1) {
|
|
93
|
+
const delta = subtable.deltaGlyphId;
|
|
94
|
+
for (j = 0; j < glyphs.length; j++) {
|
|
95
|
+
const glyph = glyphs[j];
|
|
96
|
+
substitutions.push({ sub: glyph, by: glyph + delta });
|
|
97
|
+
}
|
|
98
|
+
} else {
|
|
99
|
+
const substitute = subtable.substitute;
|
|
100
|
+
for (j = 0; j < glyphs.length; j++) {
|
|
101
|
+
substitutions.push({ sub: glyphs[j], by: substitute[j] });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return substitutions;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* List all multiple substitutions (lookup type 2) for a given script, language, and feature.
|
|
111
|
+
* @param {string} [script='DFLT']
|
|
112
|
+
* @param {string} [language='dflt']
|
|
113
|
+
* @param {string} feature - 4-character feature name ('ccmp', 'stch')
|
|
114
|
+
* @return {Array} substitutions - The list of substitutions.
|
|
115
|
+
*/
|
|
116
|
+
Substitution.prototype.getMultiple = function (feature, script, language) {
|
|
117
|
+
const substitutions = [];
|
|
118
|
+
const lookupTables = this.getLookupTables(script, language, feature, 2);
|
|
119
|
+
for (let idx = 0; idx < lookupTables.length; idx++) {
|
|
120
|
+
const subtables = lookupTables[idx].subtables;
|
|
121
|
+
for (let i = 0; i < subtables.length; i++) {
|
|
122
|
+
const subtable = subtables[i];
|
|
123
|
+
const glyphs = this.expandCoverage(subtable.coverage);
|
|
124
|
+
let j;
|
|
125
|
+
|
|
126
|
+
for (j = 0; j < glyphs.length; j++) {
|
|
127
|
+
const glyph = glyphs[j];
|
|
128
|
+
const replacements = subtable.sequences[j];
|
|
129
|
+
substitutions.push({ sub: glyph, by: replacements });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return substitutions;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* List all alternates (lookup type 3) for a given script, language, and feature.
|
|
138
|
+
* @param {string} [script='DFLT']
|
|
139
|
+
* @param {string} [language='dflt']
|
|
140
|
+
* @param {string} feature - 4-character feature name ('aalt', 'salt'...)
|
|
141
|
+
* @return {Array} alternates - The list of alternates
|
|
142
|
+
*/
|
|
143
|
+
Substitution.prototype.getAlternates = function (feature, script, language) {
|
|
144
|
+
const alternates = [];
|
|
145
|
+
const lookupTables = this.getLookupTables(script, language, feature, 3);
|
|
146
|
+
for (let idx = 0; idx < lookupTables.length; idx++) {
|
|
147
|
+
const subtables = lookupTables[idx].subtables;
|
|
148
|
+
for (let i = 0; i < subtables.length; i++) {
|
|
149
|
+
const subtable = subtables[i];
|
|
150
|
+
const glyphs = this.expandCoverage(subtable.coverage);
|
|
151
|
+
const alternateSets = subtable.alternateSets;
|
|
152
|
+
for (let j = 0; j < glyphs.length; j++) {
|
|
153
|
+
alternates.push({ sub: glyphs[j], by: alternateSets[j] });
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return alternates;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* List all ligatures (lookup type 4) for a given script, language, and feature.
|
|
162
|
+
* The result is an array of ligature objects like { sub: [ids], by: id }
|
|
163
|
+
* @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)
|
|
164
|
+
* @param {string} [script='DFLT']
|
|
165
|
+
* @param {string} [language='dflt']
|
|
166
|
+
* @return {Array} ligatures - The list of ligatures.
|
|
167
|
+
*/
|
|
168
|
+
Substitution.prototype.getLigatures = function (feature, script, language) {
|
|
169
|
+
const ligatures = [];
|
|
170
|
+
const lookupTables = this.getLookupTables(script, language, feature, 4);
|
|
171
|
+
for (let idx = 0; idx < lookupTables.length; idx++) {
|
|
172
|
+
const subtables = lookupTables[idx].subtables;
|
|
173
|
+
for (let i = 0; i < subtables.length; i++) {
|
|
174
|
+
const subtable = subtables[i];
|
|
175
|
+
const glyphs = this.expandCoverage(subtable.coverage);
|
|
176
|
+
const ligatureSets = subtable.ligatureSets;
|
|
177
|
+
for (let j = 0; j < glyphs.length; j++) {
|
|
178
|
+
const startGlyph = glyphs[j];
|
|
179
|
+
const ligSet = ligatureSets[j];
|
|
180
|
+
for (let k = 0; k < ligSet.length; k++) {
|
|
181
|
+
const lig = ligSet[k];
|
|
182
|
+
ligatures.push({
|
|
183
|
+
sub: [startGlyph].concat(lig.components),
|
|
184
|
+
by: lig.ligGlyph,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return ligatures;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Add or modify a single substitution (lookup type 1)
|
|
195
|
+
* Format 2, more flexible, is always used.
|
|
196
|
+
* @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)
|
|
197
|
+
* @param {Object} substitution - { sub: id, by: id } (format 1 is not supported)
|
|
198
|
+
* @param {string} [script='DFLT']
|
|
199
|
+
* @param {string} [language='dflt']
|
|
200
|
+
*/
|
|
201
|
+
Substitution.prototype.addSingle = function (
|
|
202
|
+
feature,
|
|
203
|
+
substitution,
|
|
204
|
+
script,
|
|
205
|
+
language
|
|
206
|
+
) {
|
|
207
|
+
const lookupTable = this.getLookupTables(
|
|
208
|
+
script,
|
|
209
|
+
language,
|
|
210
|
+
feature,
|
|
211
|
+
1,
|
|
212
|
+
true
|
|
213
|
+
)[0];
|
|
214
|
+
const subtable = getSubstFormat(lookupTable, 2, {
|
|
215
|
+
// lookup type 1 subtable, format 2, coverage format 1
|
|
216
|
+
substFormat: 2,
|
|
217
|
+
coverage: { format: 1, glyphs: [] },
|
|
218
|
+
substitute: [],
|
|
219
|
+
});
|
|
220
|
+
check.assert(
|
|
221
|
+
subtable.coverage.format === 1,
|
|
222
|
+
'Single: unable to modify coverage table format ' +
|
|
223
|
+
subtable.coverage.format
|
|
224
|
+
);
|
|
225
|
+
const coverageGlyph = substitution.sub;
|
|
226
|
+
let pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);
|
|
227
|
+
if (pos < 0) {
|
|
228
|
+
pos = -1 - pos;
|
|
229
|
+
subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);
|
|
230
|
+
subtable.substitute.splice(pos, 0, 0);
|
|
231
|
+
}
|
|
232
|
+
subtable.substitute[pos] = substitution.by;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Add or modify a multiple substitution (lookup type 2)
|
|
237
|
+
* @param {string} feature - 4-letter feature name ('ccmp', 'stch')
|
|
238
|
+
* @param {Object} substitution - { sub: id, by: [id] } for format 2.
|
|
239
|
+
* @param {string} [script='DFLT']
|
|
240
|
+
* @param {string} [language='dflt']
|
|
241
|
+
*/
|
|
242
|
+
Substitution.prototype.addMultiple = function (
|
|
243
|
+
feature,
|
|
244
|
+
substitution,
|
|
245
|
+
script,
|
|
246
|
+
language
|
|
247
|
+
) {
|
|
248
|
+
check.assert(
|
|
249
|
+
substitution.by instanceof Array && substitution.by.length > 1,
|
|
250
|
+
'Multiple: "by" must be an array of two or more ids'
|
|
251
|
+
);
|
|
252
|
+
const lookupTable = this.getLookupTables(
|
|
253
|
+
script,
|
|
254
|
+
language,
|
|
255
|
+
feature,
|
|
256
|
+
2,
|
|
257
|
+
true
|
|
258
|
+
)[0];
|
|
259
|
+
const subtable = getSubstFormat(lookupTable, 1, {
|
|
260
|
+
// lookup type 2 subtable, format 1, coverage format 1
|
|
261
|
+
substFormat: 1,
|
|
262
|
+
coverage: { format: 1, glyphs: [] },
|
|
263
|
+
sequences: [],
|
|
264
|
+
});
|
|
265
|
+
check.assert(
|
|
266
|
+
subtable.coverage.format === 1,
|
|
267
|
+
'Multiple: unable to modify coverage table format ' +
|
|
268
|
+
subtable.coverage.format
|
|
269
|
+
);
|
|
270
|
+
const coverageGlyph = substitution.sub;
|
|
271
|
+
let pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);
|
|
272
|
+
if (pos < 0) {
|
|
273
|
+
pos = -1 - pos;
|
|
274
|
+
subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);
|
|
275
|
+
subtable.sequences.splice(pos, 0, 0);
|
|
276
|
+
}
|
|
277
|
+
subtable.sequences[pos] = substitution.by;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Add or modify an alternate substitution (lookup type 3)
|
|
282
|
+
* @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)
|
|
283
|
+
* @param {Object} substitution - { sub: id, by: [ids] }
|
|
284
|
+
* @param {string} [script='DFLT']
|
|
285
|
+
* @param {string} [language='dflt']
|
|
286
|
+
*/
|
|
287
|
+
Substitution.prototype.addAlternate = function (
|
|
288
|
+
feature,
|
|
289
|
+
substitution,
|
|
290
|
+
script,
|
|
291
|
+
language
|
|
292
|
+
) {
|
|
293
|
+
const lookupTable = this.getLookupTables(
|
|
294
|
+
script,
|
|
295
|
+
language,
|
|
296
|
+
feature,
|
|
297
|
+
3,
|
|
298
|
+
true
|
|
299
|
+
)[0];
|
|
300
|
+
const subtable = getSubstFormat(lookupTable, 1, {
|
|
301
|
+
// lookup type 3 subtable, format 1, coverage format 1
|
|
302
|
+
substFormat: 1,
|
|
303
|
+
coverage: { format: 1, glyphs: [] },
|
|
304
|
+
alternateSets: [],
|
|
305
|
+
});
|
|
306
|
+
check.assert(
|
|
307
|
+
subtable.coverage.format === 1,
|
|
308
|
+
'Alternate: unable to modify coverage table format ' +
|
|
309
|
+
subtable.coverage.format
|
|
310
|
+
);
|
|
311
|
+
const coverageGlyph = substitution.sub;
|
|
312
|
+
let pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);
|
|
313
|
+
if (pos < 0) {
|
|
314
|
+
pos = -1 - pos;
|
|
315
|
+
subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);
|
|
316
|
+
subtable.alternateSets.splice(pos, 0, 0);
|
|
317
|
+
}
|
|
318
|
+
subtable.alternateSets[pos] = substitution.by;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Add a ligature (lookup type 4)
|
|
323
|
+
* Ligatures with more components must be stored ahead of those with fewer components in order to be found
|
|
324
|
+
* @param {string} feature - 4-letter feature name ('liga', 'rlig', 'dlig'...)
|
|
325
|
+
* @param {Object} ligature - { sub: [ids], by: id }
|
|
326
|
+
* @param {string} [script='DFLT']
|
|
327
|
+
* @param {string} [language='dflt']
|
|
328
|
+
*/
|
|
329
|
+
Substitution.prototype.addLigature = function (
|
|
330
|
+
feature,
|
|
331
|
+
ligature,
|
|
332
|
+
script,
|
|
333
|
+
language
|
|
334
|
+
) {
|
|
335
|
+
const lookupTable = this.getLookupTables(
|
|
336
|
+
script,
|
|
337
|
+
language,
|
|
338
|
+
feature,
|
|
339
|
+
4,
|
|
340
|
+
true
|
|
341
|
+
)[0];
|
|
342
|
+
let subtable = lookupTable.subtables[0];
|
|
343
|
+
if (!subtable) {
|
|
344
|
+
subtable = {
|
|
345
|
+
// lookup type 4 subtable, format 1, coverage format 1
|
|
346
|
+
substFormat: 1,
|
|
347
|
+
coverage: { format: 1, glyphs: [] },
|
|
348
|
+
ligatureSets: [],
|
|
349
|
+
};
|
|
350
|
+
lookupTable.subtables[0] = subtable;
|
|
351
|
+
}
|
|
352
|
+
check.assert(
|
|
353
|
+
subtable.coverage.format === 1,
|
|
354
|
+
'Ligature: unable to modify coverage table format ' +
|
|
355
|
+
subtable.coverage.format
|
|
356
|
+
);
|
|
357
|
+
const coverageGlyph = ligature.sub[0];
|
|
358
|
+
const ligComponents = ligature.sub.slice(1);
|
|
359
|
+
const ligatureTable = {
|
|
360
|
+
ligGlyph: ligature.by,
|
|
361
|
+
components: ligComponents,
|
|
362
|
+
};
|
|
363
|
+
let pos = this.binSearch(subtable.coverage.glyphs, coverageGlyph);
|
|
364
|
+
if (pos >= 0) {
|
|
365
|
+
// ligatureSet already exists
|
|
366
|
+
const ligatureSet = subtable.ligatureSets[pos];
|
|
367
|
+
for (let i = 0; i < ligatureSet.length; i++) {
|
|
368
|
+
// If ligature already exists, return.
|
|
369
|
+
if (arraysEqual(ligatureSet[i].components, ligComponents)) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
// ligature does not exist: add it.
|
|
374
|
+
ligatureSet.push(ligatureTable);
|
|
375
|
+
} else {
|
|
376
|
+
// Create a new ligatureSet and add coverage for the first glyph.
|
|
377
|
+
pos = -1 - pos;
|
|
378
|
+
subtable.coverage.glyphs.splice(pos, 0, coverageGlyph);
|
|
379
|
+
subtable.ligatureSets.splice(pos, 0, [ligatureTable]);
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* List all feature data for a given script and language.
|
|
385
|
+
* @param {string} feature - 4-letter feature name
|
|
386
|
+
* @param {string} [script='DFLT']
|
|
387
|
+
* @param {string} [language='dflt']
|
|
388
|
+
* @return {Array} substitutions - The list of substitutions.
|
|
389
|
+
*/
|
|
390
|
+
Substitution.prototype.getFeature = function (feature, script, language) {
|
|
391
|
+
if (/ss\d\d/.test(feature)) {
|
|
392
|
+
// ss01 - ss20
|
|
393
|
+
return this.getSingle(feature, script, language);
|
|
394
|
+
}
|
|
395
|
+
switch (feature) {
|
|
396
|
+
case 'aalt':
|
|
397
|
+
case 'salt':
|
|
398
|
+
return this.getSingle(feature, script, language).concat(
|
|
399
|
+
this.getAlternates(feature, script, language)
|
|
400
|
+
);
|
|
401
|
+
case 'dlig':
|
|
402
|
+
case 'liga':
|
|
403
|
+
case 'rlig':
|
|
404
|
+
return this.getLigatures(feature, script, language);
|
|
405
|
+
case 'ccmp':
|
|
406
|
+
return this.getMultiple(feature, script, language).concat(
|
|
407
|
+
this.getLigatures(feature, script, language)
|
|
408
|
+
);
|
|
409
|
+
case 'stch':
|
|
410
|
+
return this.getMultiple(feature, script, language);
|
|
411
|
+
}
|
|
412
|
+
return undefined;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Add a substitution to a feature for a given script and language.
|
|
417
|
+
* @param {string} feature - 4-letter feature name
|
|
418
|
+
* @param {Object} sub - the substitution to add (an object like { sub: id or [ids], by: id or [ids] })
|
|
419
|
+
* @param {string} [script='DFLT']
|
|
420
|
+
* @param {string} [language='dflt']
|
|
421
|
+
*/
|
|
422
|
+
Substitution.prototype.add = function (feature, sub, script, language) {
|
|
423
|
+
if (/ss\d\d/.test(feature)) {
|
|
424
|
+
// ss01 - ss20
|
|
425
|
+
return this.addSingle(feature, sub, script, language);
|
|
426
|
+
}
|
|
427
|
+
switch (feature) {
|
|
428
|
+
case 'aalt':
|
|
429
|
+
case 'salt':
|
|
430
|
+
if (typeof sub.by === 'number') {
|
|
431
|
+
return this.addSingle(feature, sub, script, language);
|
|
432
|
+
}
|
|
433
|
+
return this.addAlternate(feature, sub, script, language);
|
|
434
|
+
case 'dlig':
|
|
435
|
+
case 'liga':
|
|
436
|
+
case 'rlig':
|
|
437
|
+
return this.addLigature(feature, sub, script, language);
|
|
438
|
+
case 'ccmp':
|
|
439
|
+
if (sub.by instanceof Array) {
|
|
440
|
+
return this.addMultiple(feature, sub, script, language);
|
|
441
|
+
}
|
|
442
|
+
return this.addLigature(feature, sub, script, language);
|
|
443
|
+
}
|
|
444
|
+
return undefined;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
export default Substitution;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// Table metadata
|
|
2
|
+
|
|
3
|
+
import check from './check';
|
|
4
|
+
import { encode, sizeOf } from './types';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @exports opentype.Table
|
|
8
|
+
* @class
|
|
9
|
+
* @param {string} tableName
|
|
10
|
+
* @param {Array} fields
|
|
11
|
+
* @param {Object} options
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
function Table(tableName, fields, options) {
|
|
15
|
+
// For coverage tables with coverage format 2, we do not want to add the coverage data directly to the table object,
|
|
16
|
+
// as this will result in wrong encoding order of the coverage data on serialization to bytes.
|
|
17
|
+
// The fallback of using the field values directly when not present on the table is handled in types.encode.TABLE() already.
|
|
18
|
+
if (fields.length && (fields[0].name !== 'coverageFormat' || fields[0].value === 1)) {
|
|
19
|
+
for (let i = 0; i < fields.length; i += 1) {
|
|
20
|
+
const field = fields[i];
|
|
21
|
+
this[field.name] = field.value;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
this.tableName = tableName;
|
|
26
|
+
this.fields = fields;
|
|
27
|
+
if (options) {
|
|
28
|
+
const optionKeys = Object.keys(options);
|
|
29
|
+
for (let i = 0; i < optionKeys.length; i += 1) {
|
|
30
|
+
const k = optionKeys[i];
|
|
31
|
+
const v = options[k];
|
|
32
|
+
if (this[k] !== undefined) {
|
|
33
|
+
this[k] = v;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Encodes the table and returns an array of bytes
|
|
41
|
+
* @return {Array}
|
|
42
|
+
*/
|
|
43
|
+
Table.prototype.encode = function() {
|
|
44
|
+
return encode.TABLE(this);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get the size of the table.
|
|
49
|
+
* @return {number}
|
|
50
|
+
*/
|
|
51
|
+
Table.prototype.sizeOf = function() {
|
|
52
|
+
return sizeOf.TABLE(this);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
function ushortList(itemName, list, count) {
|
|
59
|
+
if (count === undefined) {
|
|
60
|
+
count = list.length;
|
|
61
|
+
}
|
|
62
|
+
const fields = new Array(list.length + 1);
|
|
63
|
+
fields[0] = {name: itemName + 'Count', type: 'USHORT', value: count};
|
|
64
|
+
for (let i = 0; i < list.length; i++) {
|
|
65
|
+
fields[i + 1] = {name: itemName + i, type: 'USHORT', value: list[i]};
|
|
66
|
+
}
|
|
67
|
+
return fields;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
function tableList(itemName, records, itemCallback) {
|
|
74
|
+
const count = records.length;
|
|
75
|
+
const fields = new Array(count + 1);
|
|
76
|
+
fields[0] = {name: itemName + 'Count', type: 'USHORT', value: count};
|
|
77
|
+
for (let i = 0; i < count; i++) {
|
|
78
|
+
fields[i + 1] = {name: itemName + i, type: 'TABLE', value: itemCallback(records[i], i)};
|
|
79
|
+
}
|
|
80
|
+
return fields;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
86
|
+
function recordList(itemName, records, itemCallback) {
|
|
87
|
+
const count = records.length;
|
|
88
|
+
let fields = [];
|
|
89
|
+
fields[0] = {name: itemName + 'Count', type: 'USHORT', value: count};
|
|
90
|
+
for (let i = 0; i < count; i++) {
|
|
91
|
+
fields = fields.concat(itemCallback(records[i], i));
|
|
92
|
+
}
|
|
93
|
+
return fields;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Common Layout Tables
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @exports opentype.Coverage
|
|
100
|
+
* @class
|
|
101
|
+
* @param {opentype.Table}
|
|
102
|
+
* @constructor
|
|
103
|
+
* @extends opentype.Table
|
|
104
|
+
*/
|
|
105
|
+
function Coverage(coverageTable) {
|
|
106
|
+
if (coverageTable.format === 1) {
|
|
107
|
+
Table.call(this, 'coverageTable',
|
|
108
|
+
[{name: 'coverageFormat', type: 'USHORT', value: 1}]
|
|
109
|
+
.concat(ushortList('glyph', coverageTable.glyphs))
|
|
110
|
+
);
|
|
111
|
+
} else if (coverageTable.format === 2) {
|
|
112
|
+
Table.call(this, 'coverageTable',
|
|
113
|
+
[{name: 'coverageFormat', type: 'USHORT', value: 2}]
|
|
114
|
+
.concat(recordList('rangeRecord', coverageTable.ranges, function(RangeRecord) {
|
|
115
|
+
return [
|
|
116
|
+
{name: 'startGlyphID', type: 'USHORT', value: RangeRecord.start},
|
|
117
|
+
{name: 'endGlyphID', type: 'USHORT', value: RangeRecord.end},
|
|
118
|
+
{name: 'startCoverageIndex', type: 'USHORT', value: RangeRecord.index},
|
|
119
|
+
];
|
|
120
|
+
}))
|
|
121
|
+
);
|
|
122
|
+
} else {
|
|
123
|
+
check.assert(false, 'Coverage format must be 1 or 2.');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
Coverage.prototype = Object.create(Table.prototype);
|
|
127
|
+
Coverage.prototype.constructor = Coverage;
|
|
128
|
+
|
|
129
|
+
function ScriptList(scriptListTable) {
|
|
130
|
+
Table.call(this, 'scriptListTable',
|
|
131
|
+
recordList('scriptRecord', scriptListTable, function(scriptRecord, i) {
|
|
132
|
+
const script = scriptRecord.script;
|
|
133
|
+
let defaultLangSys = script.defaultLangSys;
|
|
134
|
+
check.assert(!!defaultLangSys, 'Unable to write GSUB: script ' + scriptRecord.tag + ' has no default language system.');
|
|
135
|
+
return [
|
|
136
|
+
{name: 'scriptTag' + i, type: 'TAG', value: scriptRecord.tag},
|
|
137
|
+
{name: 'script' + i, type: 'TABLE', value: new Table('scriptTable', [
|
|
138
|
+
{name: 'defaultLangSys', type: 'TABLE', value: new Table('defaultLangSys', [
|
|
139
|
+
{name: 'lookupOrder', type: 'USHORT', value: 0},
|
|
140
|
+
{name: 'reqFeatureIndex', type: 'USHORT', value: defaultLangSys.reqFeatureIndex}]
|
|
141
|
+
.concat(ushortList('featureIndex', defaultLangSys.featureIndexes)))}
|
|
142
|
+
].concat(recordList('langSys', script.langSysRecords, function(langSysRecord, i) {
|
|
143
|
+
const langSys = langSysRecord.langSys;
|
|
144
|
+
return [
|
|
145
|
+
{name: 'langSysTag' + i, type: 'TAG', value: langSysRecord.tag},
|
|
146
|
+
{name: 'langSys' + i, type: 'TABLE', value: new Table('langSys', [
|
|
147
|
+
{name: 'lookupOrder', type: 'USHORT', value: 0},
|
|
148
|
+
{name: 'reqFeatureIndex', type: 'USHORT', value: langSys.reqFeatureIndex}
|
|
149
|
+
].concat(ushortList('featureIndex', langSys.featureIndexes)))}
|
|
150
|
+
];
|
|
151
|
+
})))}
|
|
152
|
+
];
|
|
153
|
+
})
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
ScriptList.prototype = Object.create(Table.prototype);
|
|
157
|
+
ScriptList.prototype.constructor = ScriptList;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @exports opentype.FeatureList
|
|
161
|
+
* @class
|
|
162
|
+
* @param {opentype.Table}
|
|
163
|
+
* @constructor
|
|
164
|
+
* @extends opentype.Table
|
|
165
|
+
*/
|
|
166
|
+
function FeatureList(featureListTable) {
|
|
167
|
+
Table.call(this, 'featureListTable',
|
|
168
|
+
recordList('featureRecord', featureListTable, function(featureRecord, i) {
|
|
169
|
+
const feature = featureRecord.feature;
|
|
170
|
+
return [
|
|
171
|
+
{name: 'featureTag' + i, type: 'TAG', value: featureRecord.tag},
|
|
172
|
+
{name: 'feature' + i, type: 'TABLE', value: new Table('featureTable', [
|
|
173
|
+
{name: 'featureParams', type: 'USHORT', value: feature.featureParams},
|
|
174
|
+
].concat(ushortList('lookupListIndex', feature.lookupListIndexes)))}
|
|
175
|
+
];
|
|
176
|
+
})
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
FeatureList.prototype = Object.create(Table.prototype);
|
|
180
|
+
FeatureList.prototype.constructor = FeatureList;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @exports opentype.LookupList
|
|
184
|
+
* @class
|
|
185
|
+
* @param {opentype.Table}
|
|
186
|
+
* @param {Object}
|
|
187
|
+
* @constructor
|
|
188
|
+
* @extends opentype.Table
|
|
189
|
+
*/
|
|
190
|
+
function LookupList(lookupListTable, subtableMakers) {
|
|
191
|
+
Table.call(this, 'lookupListTable', tableList('lookup', lookupListTable, function(lookupTable) {
|
|
192
|
+
let subtableCallback = subtableMakers[lookupTable.lookupType];
|
|
193
|
+
check.assert(!!subtableCallback, 'Unable to write GSUB lookup type ' + lookupTable.lookupType + ' tables.');
|
|
194
|
+
return new Table('lookupTable', [
|
|
195
|
+
{name: 'lookupType', type: 'USHORT', value: lookupTable.lookupType},
|
|
196
|
+
{name: 'lookupFlag', type: 'USHORT', value: lookupTable.lookupFlag}
|
|
197
|
+
].concat(tableList('subtable', lookupTable.subtables, subtableCallback)));
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
LookupList.prototype = Object.create(Table.prototype);
|
|
201
|
+
LookupList.prototype.constructor = LookupList;
|
|
202
|
+
|
|
203
|
+
// Record = same as Table, but inlined (a Table has an offset and its data is further in the stream)
|
|
204
|
+
// Don't use offsets inside Records (probable bug), only in Tables.
|
|
205
|
+
export default {
|
|
206
|
+
Table,
|
|
207
|
+
Record: Table,
|
|
208
|
+
Coverage,
|
|
209
|
+
ScriptList,
|
|
210
|
+
FeatureList,
|
|
211
|
+
LookupList,
|
|
212
|
+
ushortList,
|
|
213
|
+
tableList,
|
|
214
|
+
recordList,
|
|
215
|
+
};
|