@excalidraw/excalidraw 0.12.0-553b493 → 0.12.0-5663-e77aa97
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/CHANGELOG.md +1 -0
- package/README.md +6 -2
- package/dist/excalidraw-assets/locales/bn-BD-json-906099d3f665de611389.js +1 -0
- package/dist/excalidraw-assets/locales/lt-LT-json-4147c3543dce75362050.js +1 -0
- package/dist/excalidraw-assets/locales/vi-VN-json-929afcbc15b2c06a64f2.js +1 -0
- package/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.js → vendor-ddc717b6da3bea42bb67.js} +2 -2
- package/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.js.LICENSE.txt → vendor-ddc717b6da3bea42bb67.js.LICENSE.txt} +0 -0
- package/dist/excalidraw-assets-dev/locales/{ar-SA-json-c8fa653de4977a22dad1.js → ar-SA-json-4bad5b5ff43b48c1e9a5.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{bg-BG-json-d7e517c7462119871c76.js → bg-BG-json-cbcbc92839539ec1816e.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/bn-BD-json-23dc7c5cf87e10c0fa38.js +14 -0
- package/dist/excalidraw-assets-dev/locales/{ca-ES-json-465e286330127bad8841.js → ca-ES-json-8cc8fbe5df66d604ffc3.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{cs-CZ-json-a9cc158d187424de71d7.js → cs-CZ-json-dba21e0272554995c7d1.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{da-DK-json-81b641c9b272e91762b8.js → da-DK-json-bfbe643a377800d3d122.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{de-DE-json-e9f68b4434bb76d28151.js → de-DE-json-fe631cebdb2da354de25.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{el-GR-json-33bcaca5c1eb85d3d81a.js → el-GR-json-71dd4a99c18b08517ea4.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{es-ES-json-41e67e045d8f77e56a7a.js → es-ES-json-78ffeeedb2103c8e9e15.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{eu-ES-json-05199638b0e1e11061f3.js → eu-ES-json-cb70f440de0a76f6d69b.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{fa-IR-json-2a69e87cf2308b8e78f5.js → fa-IR-json-19fa55327f56b34b74d3.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{fi-FI-json-6f0f0bcd3593bcc8930a.js → fi-FI-json-50208311f1e4fc7cde1d.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{fr-FR-json-f53c7082a6f8691b7258.js → fr-FR-json-aa188d6228335106e7a0.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{gl-ES-json-5295fdf24f032f998f75.js → gl-ES-json-72548540dc6a9c01b240.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{he-IL-json-19fae6e424c8b418735d.js → he-IL-json-a62ed6086276dffb71fd.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{hi-IN-json-f04242b20685f34378a5.js → hi-IN-json-a929ddf2945cc4079a77.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{hu-HU-json-c8014a1b2a44d4885691.js → hu-HU-json-aaa54da52ca5ee068466.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{id-ID-json-bcd3ce43f1dbefe3f4d0.js → id-ID-json-fbee4b09ecbf4791e1e0.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{it-IT-json-946dc662ecab93b77e69.js → it-IT-json-b0eae328c3a49c21699f.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{ja-JP-json-77b3461742458e757b59.js → ja-JP-json-512054894cd1fae408e3.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{kab-KAB-json-5e733b113476a350e900.js → kab-KAB-json-dd04a087066d4715e744.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{kk-KZ-json-5ec5044574589896438e.js → kk-KZ-json-e7ce817c4e68640b3099.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{ko-KR-json-b6b0f0c8dc22ac7a3377.js → ko-KR-json-8b9fc794d8a77b6dffc4.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/lt-LT-json-98d26affa1005499ac60.js +14 -0
- package/dist/excalidraw-assets-dev/locales/{lv-LV-json-2d1a7d044c33d030ecca.js → lv-LV-json-4c20b8e2ee74634c57ae.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{mr-IN-json-ed8cde2f50a5f3c08e85.js → mr-IN-json-165ab79d55f507272fd4.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{my-MM-json-600fc533d1a1c8d3e2f9.js → my-MM-json-098977a1778f20f3a53c.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{nb-NO-json-c7c63cfd529a92ac3510.js → nb-NO-json-3b7796c103baa51271a9.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{nl-NL-json-7e7200dded88b465781e.js → nl-NL-json-f2b834e213d9831504ac.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{nn-NO-json-d654941277fcbace33bf.js → nn-NO-json-82be69040c1ec437138f.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{oc-FR-json-2d347b7f54a867a5478f.js → oc-FR-json-e98b96eea154dfcded8b.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{pa-IN-json-63518bb328bf8b92790c.js → pa-IN-json-bb695a155f66b1c9385b.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{pl-PL-json-92de366ba93223fa3d6a.js → pl-PL-json-c802b8e3353ee92b1297.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{pt-BR-json-5abf09146a4f4387393d.js → pt-BR-json-395becbd0a0762796d55.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{pt-PT-json-c72abd8cf29d14347cf5.js → pt-PT-json-28b0243edfd2d1188d78.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{ro-RO-json-6903d070f824f8b91709.js → ro-RO-json-0b6a9ed696ac7c243e8d.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{ru-RU-json-110d8aec7823819bf4e3.js → ru-RU-json-a6c6479bfe4febbbc162.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{si-LK-json-ad2dff740d16a23684ff.js → si-LK-json-de30e8b93b04c9aa5708.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{sk-SK-json-209333495d21be527f89.js → sk-SK-json-1c1cc59d67308156afce.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{sl-SI-json-76bdeb34579c5b1f944f.js → sl-SI-json-eaf07f8494e7b5091add.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{sv-SE-json-6e768d07fff4e3ed6560.js → sv-SE-json-79dcebebf235b23c717e.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{ta-IN-json-059a459deba6d6230393.js → ta-IN-json-5212782b6c72fafb8ec2.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{tr-TR-json-7cc28f1f798ef2dd9864.js → tr-TR-json-f38f946cfbce79e9e21b.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{uk-UA-json-80b2990c3144c6bb1270.js → uk-UA-json-45d77feb9074985d4877.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{bn-BD-json-02993b6dba9e7f115b53.js → vi-VN-json-78f290fcef5e04912f86.js} +4 -12
- package/dist/excalidraw-assets-dev/locales/{zh-CN-json-26caa1a6379860230513.js → zh-CN-json-043751132a42a13d3de4.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{zh-HK-json-179f6dc61b14b96215fa.js → zh-HK-json-64105c4a0af0047b4d46.js} +0 -8
- package/dist/excalidraw-assets-dev/locales/{zh-TW-json-2aeeb73d79793ee69bfc.js → zh-TW-json-68624f1171bf9f71bf25.js} +0 -8
- package/dist/excalidraw-assets-dev/{vendor-c0592035c3911af79359.js → vendor-2811fad3dc3b42ee3357.js} +1 -9
- package/dist/excalidraw.development.js +88 -286
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/LibraryButton.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/Sidebar/Sidebar.d.ts +67 -0
- package/types/components/Sidebar/SidebarHeader.d.ts +20 -0
- package/types/components/Sidebar/common.d.ts +11 -0
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -0
- package/types/packages/common.webpack.dev.config.d.ts +71 -0
- package/types/packages/common.webpack.prod.config.d.ts +83 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/{bn-BD-json-aa99c5a33f005fb00c6b.d.ts → bn-BD-json-906099d3f665de611389.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/{lt-LT-json-7277ad8dae6d3e6607b3.d.ts → lt-LT-json-4147c3543dce75362050.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/locales/{vi-VN-json-5c276b534d762658589c.d.ts → vi-VN-json-929afcbc15b2c06a64f2.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-52b1f3361986b6c6a4fe.d.ts → vendor-ddc717b6da3bea42bb67.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ar-SA-json-c8fa653de4977a22dad1.d.ts → ar-SA-json-4bad5b5ff43b48c1e9a5.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bg-BG-json-d7e517c7462119871c76.d.ts → bg-BG-json-cbcbc92839539ec1816e.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{bn-BD-json-02993b6dba9e7f115b53.d.ts → bn-BD-json-23dc7c5cf87e10c0fa38.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ca-ES-json-465e286330127bad8841.d.ts → ca-ES-json-8cc8fbe5df66d604ffc3.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{cs-CZ-json-a9cc158d187424de71d7.d.ts → cs-CZ-json-dba21e0272554995c7d1.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{da-DK-json-81b641c9b272e91762b8.d.ts → da-DK-json-bfbe643a377800d3d122.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{de-DE-json-e9f68b4434bb76d28151.d.ts → de-DE-json-fe631cebdb2da354de25.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{el-GR-json-33bcaca5c1eb85d3d81a.d.ts → el-GR-json-71dd4a99c18b08517ea4.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{es-ES-json-41e67e045d8f77e56a7a.d.ts → es-ES-json-78ffeeedb2103c8e9e15.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{eu-ES-json-05199638b0e1e11061f3.d.ts → eu-ES-json-cb70f440de0a76f6d69b.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fa-IR-json-2a69e87cf2308b8e78f5.d.ts → fa-IR-json-19fa55327f56b34b74d3.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fi-FI-json-6f0f0bcd3593bcc8930a.d.ts → fi-FI-json-50208311f1e4fc7cde1d.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{fr-FR-json-f53c7082a6f8691b7258.d.ts → fr-FR-json-aa188d6228335106e7a0.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{gl-ES-json-5295fdf24f032f998f75.d.ts → gl-ES-json-72548540dc6a9c01b240.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{he-IL-json-19fae6e424c8b418735d.d.ts → he-IL-json-a62ed6086276dffb71fd.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hi-IN-json-f04242b20685f34378a5.d.ts → hi-IN-json-a929ddf2945cc4079a77.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{hu-HU-json-c8014a1b2a44d4885691.d.ts → hu-HU-json-aaa54da52ca5ee068466.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{id-ID-json-bcd3ce43f1dbefe3f4d0.d.ts → id-ID-json-fbee4b09ecbf4791e1e0.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{it-IT-json-946dc662ecab93b77e69.d.ts → it-IT-json-b0eae328c3a49c21699f.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ja-JP-json-77b3461742458e757b59.d.ts → ja-JP-json-512054894cd1fae408e3.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kab-KAB-json-5e733b113476a350e900.d.ts → kab-KAB-json-dd04a087066d4715e744.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{kk-KZ-json-5ec5044574589896438e.d.ts → kk-KZ-json-e7ce817c4e68640b3099.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ko-KR-json-b6b0f0c8dc22ac7a3377.d.ts → ko-KR-json-8b9fc794d8a77b6dffc4.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lt-LT-json-a17971ff33b8929e96d3.d.ts → lt-LT-json-98d26affa1005499ac60.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{lv-LV-json-2d1a7d044c33d030ecca.d.ts → lv-LV-json-4c20b8e2ee74634c57ae.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{mr-IN-json-ed8cde2f50a5f3c08e85.d.ts → mr-IN-json-165ab79d55f507272fd4.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{my-MM-json-600fc533d1a1c8d3e2f9.d.ts → my-MM-json-098977a1778f20f3a53c.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nb-NO-json-c7c63cfd529a92ac3510.d.ts → nb-NO-json-3b7796c103baa51271a9.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nl-NL-json-7e7200dded88b465781e.d.ts → nl-NL-json-f2b834e213d9831504ac.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{nn-NO-json-d654941277fcbace33bf.d.ts → nn-NO-json-82be69040c1ec437138f.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{oc-FR-json-2d347b7f54a867a5478f.d.ts → oc-FR-json-e98b96eea154dfcded8b.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pa-IN-json-63518bb328bf8b92790c.d.ts → pa-IN-json-bb695a155f66b1c9385b.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pl-PL-json-92de366ba93223fa3d6a.d.ts → pl-PL-json-c802b8e3353ee92b1297.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-BR-json-5abf09146a4f4387393d.d.ts → pt-BR-json-395becbd0a0762796d55.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{pt-PT-json-c72abd8cf29d14347cf5.d.ts → pt-PT-json-28b0243edfd2d1188d78.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ro-RO-json-6903d070f824f8b91709.d.ts → ro-RO-json-0b6a9ed696ac7c243e8d.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ru-RU-json-110d8aec7823819bf4e3.d.ts → ru-RU-json-a6c6479bfe4febbbc162.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{si-LK-json-ad2dff740d16a23684ff.d.ts → si-LK-json-de30e8b93b04c9aa5708.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sk-SK-json-209333495d21be527f89.d.ts → sk-SK-json-1c1cc59d67308156afce.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sl-SI-json-76bdeb34579c5b1f944f.d.ts → sl-SI-json-eaf07f8494e7b5091add.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{sv-SE-json-6e768d07fff4e3ed6560.d.ts → sv-SE-json-79dcebebf235b23c717e.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{ta-IN-json-059a459deba6d6230393.d.ts → ta-IN-json-5212782b6c72fafb8ec2.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{tr-TR-json-7cc28f1f798ef2dd9864.d.ts → tr-TR-json-f38f946cfbce79e9e21b.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{uk-UA-json-80b2990c3144c6bb1270.d.ts → uk-UA-json-45d77feb9074985d4877.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{vi-VN-json-670ecb0ad40c0453bdfd.d.ts → vi-VN-json-78f290fcef5e04912f86.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-CN-json-26caa1a6379860230513.d.ts → zh-CN-json-043751132a42a13d3de4.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-HK-json-179f6dc61b14b96215fa.d.ts → zh-HK-json-64105c4a0af0047b4d46.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/locales/{zh-TW-json-2aeeb73d79793ee69bfc.d.ts → zh-TW-json-68624f1171bf9f71bf25.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-c0592035c3911af79359.d.ts → vendor-2811fad3dc3b42ee3357.d.ts} +0 -0
- package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -2
- package/types/packages/excalidraw/example/sidebar/{Sidebar.d.ts → ExampleSidebar.d.ts} +1 -1
- package/types/packages/excalidraw/index.d.ts +1 -0
- package/types/packages/excalidraw/webpack.dev.config.d.ts +61 -72
- package/types/packages/excalidraw/webpack.prod.config.d.ts +70 -85
- package/types/packages/utils.d.ts +4 -1
- package/types/types.d.ts +6 -0
- package/dist/excalidraw-assets/locales/bn-BD-json-aa99c5a33f005fb00c6b.js +0 -1
- package/dist/excalidraw-assets/locales/lt-LT-json-7277ad8dae6d3e6607b3.js +0 -1
- package/dist/excalidraw-assets/locales/vi-VN-json-5c276b534d762658589c.js +0 -1
- package/dist/excalidraw-assets-dev/locales/lt-LT-json-a17971ff33b8929e96d3.js +0 -22
- package/dist/excalidraw-assets-dev/locales/vi-VN-json-670ecb0ad40c0453bdfd.js +0 -22
- package/types/components/SidebarLockButton.d.ts +0 -8
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ interface LayerUIProps {
|
|
|
17
17
|
onLockToggle: () => void;
|
|
18
18
|
onPenModeToggle: () => void;
|
|
19
19
|
onInsertElements: (elements: readonly NonDeletedExcalidrawElement[]) => void;
|
|
20
|
+
onMenuToggle: ExcalidrawProps["onMenuToggle"];
|
|
20
21
|
showExitZenModeBtn: boolean;
|
|
21
22
|
showThemeBtn: boolean;
|
|
22
23
|
langCode: Language["code"];
|
|
@@ -33,5 +34,5 @@ interface LayerUIProps {
|
|
|
33
34
|
insertOnCanvasDirectly: boolean;
|
|
34
35
|
}) => void;
|
|
35
36
|
}
|
|
36
|
-
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onCollabButtonClick, onLockToggle, onPenModeToggle, onInsertElements, showExitZenModeBtn, showThemeBtn, isCollaborating, renderTopRightUI, renderCustomFooter, renderCustomStats, libraryReturnUrl, UIOptions, focusContainer, library, id, onImageAction, }: LayerUIProps) => JSX.Element>;
|
|
37
|
+
declare const _default: React.MemoExoticComponent<({ actionManager, appState, files, setAppState, elements, canvas, onCollabButtonClick, onLockToggle, onPenModeToggle, onInsertElements, onMenuToggle, showExitZenModeBtn, showThemeBtn, isCollaborating, renderTopRightUI, renderCustomFooter, renderCustomStats, libraryReturnUrl, UIOptions, focusContainer, library, id, onImageAction, }: LayerUIProps) => JSX.Element>;
|
|
37
38
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppState } from "../types";
|
|
2
|
+
import { AppState, ExcalidrawProps } from "../types";
|
|
3
3
|
export declare const LibraryButton: React.FC<{
|
|
4
4
|
appState: AppState;
|
|
5
5
|
setAppState: React.Component<any, AppState>["setState"];
|
|
6
6
|
isMobile?: boolean;
|
|
7
|
+
onMenuToggle: ExcalidrawProps["onMenuToggle"];
|
|
7
8
|
}>;
|
|
@@ -13,6 +13,7 @@ declare type MobileMenuProps = {
|
|
|
13
13
|
onCollabButtonClick?: () => void;
|
|
14
14
|
onLockToggle: () => void;
|
|
15
15
|
onPenModeToggle: () => void;
|
|
16
|
+
onMenuToggle: ExcalidrawProps["onMenuToggle"];
|
|
16
17
|
canvas: HTMLCanvasElement | null;
|
|
17
18
|
isCollaborating: boolean;
|
|
18
19
|
renderCustomFooter?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
@@ -23,5 +24,5 @@ declare type MobileMenuProps = {
|
|
|
23
24
|
renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
24
25
|
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
25
26
|
};
|
|
26
|
-
export declare const MobileMenu: ({ appState, elements, libraryMenu, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, onPenModeToggle, canvas, isCollaborating, renderCustomFooter, showThemeBtn, onImageAction, renderTopRightUI, renderCustomStats, }: MobileMenuProps) => JSX.Element;
|
|
27
|
+
export declare const MobileMenu: ({ appState, elements, libraryMenu, actionManager, renderJSONExportDialog, renderImageExportDialog, setAppState, onCollabButtonClick, onLockToggle, onPenModeToggle, onMenuToggle, canvas, isCollaborating, renderCustomFooter, showThemeBtn, onImageAction, renderTopRightUI, renderCustomStats, }: MobileMenuProps) => JSX.Element;
|
|
27
28
|
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarProps } from "./common";
|
|
3
|
+
import "./Sidebar.scss";
|
|
4
|
+
/** using a counter instead of boolean to handle race conditions where
|
|
5
|
+
* the host app may render (mount/unmount) multiple different sidebar */
|
|
6
|
+
export declare const hostSidebarCountersAtom: import("jotai").Atom<{
|
|
7
|
+
rendered: number;
|
|
8
|
+
docked: number;
|
|
9
|
+
}> & {
|
|
10
|
+
write: (get: {
|
|
11
|
+
<Value>(atom: import("jotai").Atom<Value | Promise<Value>>): Value;
|
|
12
|
+
<Value_1>(atom: import("jotai").Atom<Promise<Value_1>>): Value_1;
|
|
13
|
+
<Value_2>(atom: import("jotai").Atom<Value_2>): Value_2 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2;
|
|
14
|
+
} & {
|
|
15
|
+
<Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>, options: {
|
|
16
|
+
unstable_promise: true;
|
|
17
|
+
}): Value_3 | Promise<Value_3>;
|
|
18
|
+
<Value_4>(atom: import("jotai").Atom<Promise<Value_4>>, options: {
|
|
19
|
+
unstable_promise: true;
|
|
20
|
+
}): Value_4 | Promise<Value_4>;
|
|
21
|
+
<Value_5>(atom: import("jotai").Atom<Value_5>, options: {
|
|
22
|
+
unstable_promise: true;
|
|
23
|
+
}): (Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5>;
|
|
24
|
+
}, set: {
|
|
25
|
+
<Value_6, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_6, undefined, Result>): Result;
|
|
26
|
+
<Value_7, Update, Result_1 extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1;
|
|
27
|
+
}, update: {
|
|
28
|
+
rendered: number;
|
|
29
|
+
docked: number;
|
|
30
|
+
} | ((prev: {
|
|
31
|
+
rendered: number;
|
|
32
|
+
docked: number;
|
|
33
|
+
}) => {
|
|
34
|
+
rendered: number;
|
|
35
|
+
docked: number;
|
|
36
|
+
})) => void;
|
|
37
|
+
onMount?: (<S extends (update: {
|
|
38
|
+
rendered: number;
|
|
39
|
+
docked: number;
|
|
40
|
+
} | ((prev: {
|
|
41
|
+
rendered: number;
|
|
42
|
+
docked: number;
|
|
43
|
+
}) => {
|
|
44
|
+
rendered: number;
|
|
45
|
+
docked: number;
|
|
46
|
+
})) => void>(setAtom: S) => void | (() => void)) | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
init: {
|
|
49
|
+
rendered: number;
|
|
50
|
+
docked: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const Sidebar: {
|
|
54
|
+
({ children, onClose, onDock, docked, __isInternal, }: SidebarProps<{
|
|
55
|
+
/** @private internal */
|
|
56
|
+
__isInternal?: boolean | undefined;
|
|
57
|
+
}>): JSX.Element | null;
|
|
58
|
+
Header: {
|
|
59
|
+
(props: {
|
|
60
|
+
children?: import("react").ReactNode;
|
|
61
|
+
className?: string | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
__isFallback?: boolean | undefined;
|
|
64
|
+
}): JSX.Element | null;
|
|
65
|
+
displayName: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SidebarDockButton: (props: {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange?(): void;
|
|
5
|
+
}) => JSX.Element;
|
|
6
|
+
/** @private */
|
|
7
|
+
export declare const SidebarHeaderComponents: {
|
|
8
|
+
Context: import("react").FC<{
|
|
9
|
+
children: import("react").ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
Component: {
|
|
12
|
+
(props: {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
__isFallback?: boolean | undefined;
|
|
17
|
+
}): JSX.Element | null;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type SidebarProps<P = {}> = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** if not supplied, sidebar won't be closable */
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
/** if not supplied, sidebar won't be dockable */
|
|
7
|
+
onDock?: (docked: boolean) => void;
|
|
8
|
+
docked?: boolean;
|
|
9
|
+
} & P;
|
|
10
|
+
export declare type SidebarPropsContextValue = Pick<SidebarProps, "onClose" | "onDock" | "docked">;
|
|
11
|
+
export declare const SidebarPropsContext: React.Context<SidebarPropsContextValue>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const withUpstreamOverride: <P>(Component: React.ComponentType<P>) => readonly [React.FC<{
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}>, {
|
|
5
|
+
(props: P & {
|
|
6
|
+
/** @private internal */
|
|
7
|
+
__isFallback?: boolean | undefined;
|
|
8
|
+
}): JSX.Element | null;
|
|
9
|
+
displayName: string;
|
|
10
|
+
}];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import webpack = require("webpack");
|
|
2
|
+
export const mode: string;
|
|
3
|
+
export const devtool: boolean;
|
|
4
|
+
export namespace output {
|
|
5
|
+
const libraryTarget: string;
|
|
6
|
+
const filename: string;
|
|
7
|
+
const publicPath: string;
|
|
8
|
+
}
|
|
9
|
+
export namespace resolve {
|
|
10
|
+
const extensions: string[];
|
|
11
|
+
}
|
|
12
|
+
export namespace module {
|
|
13
|
+
const rules: ({
|
|
14
|
+
test: RegExp;
|
|
15
|
+
exclude: RegExp;
|
|
16
|
+
use: (string | {
|
|
17
|
+
loader: string;
|
|
18
|
+
options?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
loader: string;
|
|
21
|
+
options: {
|
|
22
|
+
postcssOptions: {
|
|
23
|
+
plugins: any[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
})[];
|
|
27
|
+
type?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
test: RegExp;
|
|
30
|
+
exclude: RegExp;
|
|
31
|
+
use: {
|
|
32
|
+
loader: string;
|
|
33
|
+
options: {
|
|
34
|
+
transpileOnly: boolean;
|
|
35
|
+
configFile: string;
|
|
36
|
+
};
|
|
37
|
+
}[];
|
|
38
|
+
type?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
test: RegExp;
|
|
41
|
+
type: string;
|
|
42
|
+
exclude?: undefined;
|
|
43
|
+
use?: undefined;
|
|
44
|
+
})[];
|
|
45
|
+
}
|
|
46
|
+
export namespace optimization {
|
|
47
|
+
namespace splitChunks {
|
|
48
|
+
const chunks: string;
|
|
49
|
+
namespace cacheGroups {
|
|
50
|
+
namespace vendors {
|
|
51
|
+
const test: RegExp;
|
|
52
|
+
const name: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export const plugins: (webpack.EvalSourceMapDevToolPlugin | webpack.DefinePlugin)[];
|
|
58
|
+
export const externals: {
|
|
59
|
+
react: {
|
|
60
|
+
root: string;
|
|
61
|
+
commonjs2: string;
|
|
62
|
+
commonjs: string;
|
|
63
|
+
amd: string;
|
|
64
|
+
};
|
|
65
|
+
"react-dom": {
|
|
66
|
+
root: string;
|
|
67
|
+
commonjs2: string;
|
|
68
|
+
commonjs: string;
|
|
69
|
+
amd: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export const mode: string;
|
|
2
|
+
export namespace output {
|
|
3
|
+
const libraryTarget: string;
|
|
4
|
+
const filename: string;
|
|
5
|
+
const publicPath: string;
|
|
6
|
+
}
|
|
7
|
+
export namespace resolve {
|
|
8
|
+
const extensions: string[];
|
|
9
|
+
}
|
|
10
|
+
export namespace module {
|
|
11
|
+
const rules: ({
|
|
12
|
+
test: RegExp;
|
|
13
|
+
exclude: RegExp;
|
|
14
|
+
use: (string | {
|
|
15
|
+
loader: string;
|
|
16
|
+
options?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
loader: string;
|
|
19
|
+
options: {
|
|
20
|
+
postcssOptions: {
|
|
21
|
+
plugins: any[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
})[];
|
|
25
|
+
type?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
test: RegExp;
|
|
28
|
+
exclude: RegExp;
|
|
29
|
+
use: ({
|
|
30
|
+
loader: string;
|
|
31
|
+
options: {
|
|
32
|
+
transpileOnly: boolean;
|
|
33
|
+
configFile: string;
|
|
34
|
+
presets?: undefined;
|
|
35
|
+
plugins?: undefined;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
loader: string;
|
|
39
|
+
options: {
|
|
40
|
+
presets: (string | (string | {
|
|
41
|
+
runtime: string;
|
|
42
|
+
})[])[];
|
|
43
|
+
plugins: string[];
|
|
44
|
+
transpileOnly?: undefined;
|
|
45
|
+
configFile?: undefined;
|
|
46
|
+
};
|
|
47
|
+
})[];
|
|
48
|
+
type?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
test: RegExp;
|
|
51
|
+
type: string;
|
|
52
|
+
exclude?: undefined;
|
|
53
|
+
use?: undefined;
|
|
54
|
+
})[];
|
|
55
|
+
}
|
|
56
|
+
export namespace optimization {
|
|
57
|
+
const minimize: boolean;
|
|
58
|
+
const minimizer: any[];
|
|
59
|
+
namespace splitChunks {
|
|
60
|
+
const chunks: string;
|
|
61
|
+
namespace cacheGroups {
|
|
62
|
+
namespace vendors {
|
|
63
|
+
const test: RegExp;
|
|
64
|
+
const name: string;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export const plugins: any[];
|
|
70
|
+
export const externals: {
|
|
71
|
+
react: {
|
|
72
|
+
root: string;
|
|
73
|
+
commonjs2: string;
|
|
74
|
+
commonjs: string;
|
|
75
|
+
amd: string;
|
|
76
|
+
};
|
|
77
|
+
"react-dom": {
|
|
78
|
+
root: string;
|
|
79
|
+
commonjs2: string;
|
|
80
|
+
commonjs: string;
|
|
81
|
+
amd: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,3 +13,4 @@ export { FONT_FAMILY, THEME, MIME_TYPES } from "../../constants";
|
|
|
13
13
|
export { mutateElement, newElementWith, bumpVersion, } from "../../element/mutateElement";
|
|
14
14
|
export { parseLibraryTokensFromUrl, useHandleLibrary, } from "../../data/library";
|
|
15
15
|
export { sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, } from "../../utils";
|
|
16
|
+
export { Sidebar } from "../../components/Sidebar/Sidebar";
|
|
@@ -1,79 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
options?: undefined;
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
mode: string;
|
|
3
|
+
devtool: boolean;
|
|
4
|
+
output: {
|
|
5
|
+
libraryTarget: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
publicPath: string;
|
|
8
|
+
};
|
|
9
|
+
resolve: {
|
|
10
|
+
extensions: string[];
|
|
11
|
+
};
|
|
12
|
+
module: {
|
|
13
|
+
rules: ({
|
|
14
|
+
test: RegExp;
|
|
15
|
+
exclude: RegExp;
|
|
16
|
+
use: (string | {
|
|
17
|
+
loader: string;
|
|
18
|
+
} | {
|
|
19
|
+
loader: string;
|
|
20
|
+
options: {
|
|
21
|
+
postcssOptions: {
|
|
22
|
+
plugins: any[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
})[];
|
|
27
26
|
} | {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
test: RegExp;
|
|
28
|
+
exclude: RegExp;
|
|
29
|
+
use: {
|
|
30
|
+
loader: string;
|
|
31
|
+
options: {
|
|
32
|
+
transpileOnly: boolean;
|
|
33
|
+
configFile: string;
|
|
32
34
|
};
|
|
33
|
-
};
|
|
35
|
+
}[];
|
|
36
|
+
} | {
|
|
37
|
+
test: RegExp;
|
|
38
|
+
type: string;
|
|
34
39
|
})[];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
};
|
|
41
|
+
optimization: {
|
|
42
|
+
splitChunks: {
|
|
43
|
+
chunks: string;
|
|
44
|
+
cacheGroups: {
|
|
45
|
+
vendors: {
|
|
46
|
+
test: RegExp;
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
44
49
|
};
|
|
45
|
-
}
|
|
46
|
-
type?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
test: RegExp;
|
|
49
|
-
type: string;
|
|
50
|
-
exclude?: undefined;
|
|
51
|
-
use?: undefined;
|
|
52
|
-
})[];
|
|
53
|
-
}
|
|
54
|
-
export namespace optimization {
|
|
55
|
-
namespace splitChunks {
|
|
56
|
-
const chunks: string;
|
|
57
|
-
namespace cacheGroups {
|
|
58
|
-
namespace vendors {
|
|
59
|
-
const test: RegExp;
|
|
60
|
-
const name: string;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
export const plugins: (webpack.EvalSourceMapDevToolPlugin | webpack.DefinePlugin)[];
|
|
66
|
-
export const externals: {
|
|
67
|
-
react: {
|
|
68
|
-
root: string;
|
|
69
|
-
commonjs2: string;
|
|
70
|
-
commonjs: string;
|
|
71
|
-
amd: string;
|
|
50
|
+
};
|
|
72
51
|
};
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
52
|
+
plugins: (import("webpack").EvalSourceMapDevToolPlugin | import("webpack").DefinePlugin)[];
|
|
53
|
+
externals: {
|
|
54
|
+
react: {
|
|
55
|
+
root: string;
|
|
56
|
+
commonjs2: string;
|
|
57
|
+
commonjs: string;
|
|
58
|
+
amd: string;
|
|
59
|
+
};
|
|
60
|
+
"react-dom": {
|
|
61
|
+
root: string;
|
|
62
|
+
commonjs2: string;
|
|
63
|
+
commonjs: string;
|
|
64
|
+
amd: string;
|
|
65
|
+
};
|
|
78
66
|
};
|
|
79
67
|
};
|
|
68
|
+
export = _exports;
|