@powerhousedao/connect 6.0.0-dev.105 → 6.0.0-dev.106
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/AddDriveModal-7rTpxYpu.js +84 -0
- package/dist/AddDriveModal-7rTpxYpu.js.map +1 -0
- package/dist/ClearStorageModal-DipDBfNw.js +44 -0
- package/dist/ClearStorageModal-DipDBfNw.js.map +1 -0
- package/dist/CookiesPolicyModal-Gae1QuhA.js +30 -0
- package/dist/CookiesPolicyModal-Gae1QuhA.js.map +1 -0
- package/dist/CreateDocumentModal-5i6rmv3C.js +28 -0
- package/dist/CreateDocumentModal-5i6rmv3C.js.map +1 -0
- package/dist/DebugSettingsModal-BDtsGB5P.js +289 -0
- package/dist/DebugSettingsModal-BDtsGB5P.js.map +1 -0
- package/dist/DeleteDriveModal-BbAx_yXt.js +40 -0
- package/dist/DeleteDriveModal-BbAx_yXt.js.map +1 -0
- package/dist/DeleteItemModal-CkWegLlh.js +39 -0
- package/dist/DeleteItemModal-CkWegLlh.js.map +1 -0
- package/dist/DisclaimerModal-CCnvwoB5.js +21 -0
- package/dist/DisclaimerModal-CCnvwoB5.js.map +1 -0
- package/dist/DriveSettingsModal-DxMjOsLg.js +45 -0
- package/dist/DriveSettingsModal-DxMjOsLg.js.map +1 -0
- package/dist/ExportDocumentWithErrorsModal-hgliF8Gy.js +41 -0
- package/dist/ExportDocumentWithErrorsModal-hgliF8Gy.js.map +1 -0
- package/dist/InspectorModal-C4rE0Y5E.js +302 -0
- package/dist/InspectorModal-C4rE0Y5E.js.map +1 -0
- package/dist/MissingPackageModal-BOeTH4V6.js +33 -0
- package/dist/MissingPackageModal-BOeTH4V6.js.map +1 -0
- package/dist/SettingsModal-DdBhkUvH.js +153 -0
- package/dist/SettingsModal-DdBhkUvH.js.map +1 -0
- package/dist/UpgradeDriveModal-DldcNCaT.js +31 -0
- package/dist/UpgradeDriveModal-DldcNCaT.js.map +1 -0
- package/dist/connect.config-CUbxYkCy.js +140 -0
- package/dist/connect.config-CUbxYkCy.js.map +1 -0
- package/dist/i18n-Ch408v5-.js +125 -0
- package/dist/i18n-Ch408v5-.js.map +1 -0
- package/dist/load-C7EmGD3a.js +105 -0
- package/dist/load-C7EmGD3a.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +9 -0
- package/dist/main.js.map +1 -0
- package/dist/package-b3lpvc8u.js +110 -0
- package/dist/package-b3lpvc8u.js.map +1 -0
- package/dist/pglite.worker.d.ts +1 -0
- package/dist/pglite.worker.js +15 -0
- package/dist/pglite.worker.js.map +1 -0
- package/dist/reactor-0MsEThFh.js +565 -0
- package/dist/reactor-0MsEThFh.js.map +1 -0
- package/dist/registerServiceWorker-fSbJUcrq.js +76 -0
- package/dist/registerServiceWorker-fSbJUcrq.js.map +1 -0
- package/dist/sidebar-AZ4xvZzG.js +1173 -0
- package/dist/sidebar-AZ4xvZzG.js.map +1 -0
- package/dist/start-connect.d.ts +7 -0
- package/dist/start-connect.d.ts.map +1 -0
- package/dist/start-connect.js +14 -0
- package/dist/start-connect.js.map +1 -0
- package/dist/style.css +872 -12
- package/dist/toast-iD-70hL8.js +16 -0
- package/dist/toast-iD-70hL8.js.map +1 -0
- package/dist/useRegistryPackages-Ctlhv061.js +96 -0
- package/dist/useRegistryPackages-Ctlhv061.js.map +1 -0
- package/package.json +36 -48
- package/dist/bundle.d.ts +0 -2
- package/dist/bundle.d.ts.map +0 -1
- package/dist/bundle.js +0 -48
- package/dist/bundle.js.map +0 -1
- package/dist/cypress/e2e/navigation.cy.d.ts +0 -2
- package/dist/cypress/e2e/navigation.cy.d.ts.map +0 -1
- package/dist/cypress/e2e/navigation.cy.js +0 -221
- package/dist/cypress/e2e/navigation.cy.js.map +0 -1
- package/dist/cypress/e2e/utils/index.d.ts +0 -15
- package/dist/cypress/e2e/utils/index.d.ts.map +0 -1
- package/dist/cypress/e2e/utils/index.js +0 -121
- package/dist/cypress/e2e/utils/index.js.map +0 -1
- package/dist/cypress/support/commands.d.ts +0 -2
- package/dist/cypress/support/commands.d.ts.map +0 -1
- package/dist/cypress/support/commands.js +0 -29
- package/dist/cypress/support/commands.js.map +0 -1
- package/dist/cypress/support/e2e.d.ts +0 -2
- package/dist/cypress/support/e2e.d.ts.map +0 -1
- package/dist/cypress/support/e2e.js +0 -19
- package/dist/cypress/support/e2e.js.map +0 -1
- package/dist/cypress.config.d.ts +0 -3
- package/dist/cypress.config.d.ts.map +0 -1
- package/dist/cypress.config.js +0 -15
- package/dist/cypress.config.js.map +0 -1
- package/dist/package.copy.json +0 -121
- package/dist/scripts/render-skeleton.d.ts +0 -2
- package/dist/scripts/render-skeleton.d.ts.map +0 -1
- package/dist/scripts/render-skeleton.js +0 -11
- package/dist/scripts/render-skeleton.js.map +0 -1
- package/dist/src/components/analytics.d.ts +0 -8
- package/dist/src/components/analytics.d.ts.map +0 -1
- package/dist/src/components/analytics.js +0 -30
- package/dist/src/components/analytics.js.map +0 -1
- package/dist/src/components/app-loader.d.ts +0 -3
- package/dist/src/components/app-loader.d.ts.map +0 -1
- package/dist/src/components/app-loader.js +0 -9
- package/dist/src/components/app-loader.js.map +0 -1
- package/dist/src/components/app-skeleton.d.ts +0 -3
- package/dist/src/components/app-skeleton.d.ts.map +0 -1
- package/dist/src/components/app-skeleton.js +0 -38
- package/dist/src/components/app-skeleton.js.map +0 -1
- package/dist/src/components/app.d.ts +0 -2
- package/dist/src/components/app.d.ts.map +0 -1
- package/dist/src/components/app.js +0 -29
- package/dist/src/components/app.js.map +0 -1
- package/dist/src/components/button.d.ts +0 -3
- package/dist/src/components/button.d.ts.map +0 -1
- package/dist/src/components/button.js +0 -7
- package/dist/src/components/button.js.map +0 -1
- package/dist/src/components/cookie-banner.d.ts +0 -2
- package/dist/src/components/cookie-banner.d.ts.map +0 -1
- package/dist/src/components/cookie-banner.js +0 -48
- package/dist/src/components/cookie-banner.js.map +0 -1
- package/dist/src/components/document-editor-container.d.ts +0 -2
- package/dist/src/components/document-editor-container.d.ts.map +0 -1
- package/dist/src/components/document-editor-container.js +0 -38
- package/dist/src/components/document-editor-container.js.map +0 -1
- package/dist/src/components/dots-loader.d.ts +0 -2
- package/dist/src/components/dots-loader.d.ts.map +0 -1
- package/dist/src/components/dots-loader.js +0 -15
- package/dist/src/components/dots-loader.js.map +0 -1
- package/dist/src/components/drive-editor-container.d.ts +0 -2
- package/dist/src/components/drive-editor-container.d.ts.map +0 -1
- package/dist/src/components/drive-editor-container.js +0 -22
- package/dist/src/components/drive-editor-container.js.map +0 -1
- package/dist/src/components/drive-icon.d.ts +0 -5
- package/dist/src/components/drive-icon.d.ts.map +0 -1
- package/dist/src/components/drive-icon.js +0 -22
- package/dist/src/components/drive-icon.js.map +0 -1
- package/dist/src/components/editor-loader.d.ts +0 -9
- package/dist/src/components/editor-loader.d.ts.map +0 -1
- package/dist/src/components/editor-loader.js +0 -19
- package/dist/src/components/editor-loader.js.map +0 -1
- package/dist/src/components/editors.d.ts +0 -10
- package/dist/src/components/editors.d.ts.map +0 -1
- package/dist/src/components/editors.js +0 -94
- package/dist/src/components/editors.js.map +0 -1
- package/dist/src/components/error-boundary.d.ts +0 -103
- package/dist/src/components/error-boundary.d.ts.map +0 -1
- package/dist/src/components/error-boundary.js +0 -104
- package/dist/src/components/error-boundary.js.map +0 -1
- package/dist/src/components/footer.d.ts +0 -2
- package/dist/src/components/footer.d.ts.map +0 -1
- package/dist/src/components/footer.js +0 -16
- package/dist/src/components/footer.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -20
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js +0 -20
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/load.d.ts +0 -8
- package/dist/src/components/load.d.ts.map +0 -1
- package/dist/src/components/load.js +0 -15
- package/dist/src/components/load.js.map +0 -1
- package/dist/src/components/modal/modals/AddDriveModal.d.ts +0 -2
- package/dist/src/components/modal/modals/AddDriveModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/AddDriveModal.js +0 -90
- package/dist/src/components/modal/modals/AddDriveModal.js.map +0 -1
- package/dist/src/components/modal/modals/ClearStorageModal.d.ts +0 -2
- package/dist/src/components/modal/modals/ClearStorageModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/ClearStorageModal.js +0 -35
- package/dist/src/components/modal/modals/ClearStorageModal.js.map +0 -1
- package/dist/src/components/modal/modals/CookiesPolicyModal.d.ts +0 -2
- package/dist/src/components/modal/modals/CookiesPolicyModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/CookiesPolicyModal.js +0 -16
- package/dist/src/components/modal/modals/CookiesPolicyModal.js.map +0 -1
- package/dist/src/components/modal/modals/CreateDocumentModal.d.ts +0 -2
- package/dist/src/components/modal/modals/CreateDocumentModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/CreateDocumentModal.js +0 -24
- package/dist/src/components/modal/modals/CreateDocumentModal.js.map +0 -1
- package/dist/src/components/modal/modals/DebugSettingsModal.d.ts +0 -2
- package/dist/src/components/modal/modals/DebugSettingsModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/DebugSettingsModal.js +0 -108
- package/dist/src/components/modal/modals/DebugSettingsModal.js.map +0 -1
- package/dist/src/components/modal/modals/DeleteDriveModal.d.ts +0 -2
- package/dist/src/components/modal/modals/DeleteDriveModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/DeleteDriveModal.js +0 -32
- package/dist/src/components/modal/modals/DeleteDriveModal.js.map +0 -1
- package/dist/src/components/modal/modals/DeleteItemModal.d.ts +0 -3
- package/dist/src/components/modal/modals/DeleteItemModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/DeleteItemModal.js +0 -33
- package/dist/src/components/modal/modals/DeleteItemModal.js.map +0 -1
- package/dist/src/components/modal/modals/DisclaimerModal.d.ts +0 -3
- package/dist/src/components/modal/modals/DisclaimerModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/DisclaimerModal.js +0 -12
- package/dist/src/components/modal/modals/DisclaimerModal.js.map +0 -1
- package/dist/src/components/modal/modals/DriveSettingsModal.d.ts +0 -2
- package/dist/src/components/modal/modals/DriveSettingsModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/DriveSettingsModal.js +0 -33
- package/dist/src/components/modal/modals/DriveSettingsModal.js.map +0 -1
- package/dist/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts +0 -2
- package/dist/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/ExportDocumentWithErrorsModal.js +0 -30
- package/dist/src/components/modal/modals/ExportDocumentWithErrorsModal.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/InspectorModal.d.ts +0 -2
- package/dist/src/components/modal/modals/InspectorModal/InspectorModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/InspectorModal.js +0 -37
- package/dist/src/components/modal/modals/InspectorModal/InspectorModal.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/index.d.ts +0 -2
- package/dist/src/components/modal/modals/InspectorModal/index.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/index.js +0 -2
- package/dist/src/components/modal/modals/InspectorModal/index.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts +0 -31
- package/dist/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useDbExplorer.js +0 -211
- package/dist/src/components/modal/modals/InspectorModal/useDbExplorer.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useIntegrityInspector.d.ts +0 -3
- package/dist/src/components/modal/modals/InspectorModal/useIntegrityInspector.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useIntegrityInspector.js +0 -39
- package/dist/src/components/modal/modals/InspectorModal/useIntegrityInspector.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useProcessorsInspector.d.ts +0 -3
- package/dist/src/components/modal/modals/InspectorModal/useProcessorsInspector.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useProcessorsInspector.js +0 -38
- package/dist/src/components/modal/modals/InspectorModal/useProcessorsInspector.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useQueueInspector.d.ts +0 -3
- package/dist/src/components/modal/modals/InspectorModal/useQueueInspector.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useQueueInspector.js +0 -61
- package/dist/src/components/modal/modals/InspectorModal/useQueueInspector.js.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts +0 -7
- package/dist/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts.map +0 -1
- package/dist/src/components/modal/modals/InspectorModal/useRemotesInspector.js +0 -19
- package/dist/src/components/modal/modals/InspectorModal/useRemotesInspector.js.map +0 -1
- package/dist/src/components/modal/modals/SettingsModal.d.ts +0 -3
- package/dist/src/components/modal/modals/SettingsModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/SettingsModal.js +0 -48
- package/dist/src/components/modal/modals/SettingsModal.js.map +0 -1
- package/dist/src/components/modal/modals/UpgradeDriveModal.d.ts +0 -3
- package/dist/src/components/modal/modals/UpgradeDriveModal.d.ts.map +0 -1
- package/dist/src/components/modal/modals/UpgradeDriveModal.js +0 -21
- package/dist/src/components/modal/modals/UpgradeDriveModal.js.map +0 -1
- package/dist/src/components/modal/modals/settings/about.d.ts +0 -2
- package/dist/src/components/modal/modals/settings/about.d.ts.map +0 -1
- package/dist/src/components/modal/modals/settings/about.js +0 -10
- package/dist/src/components/modal/modals/settings/about.js.map +0 -1
- package/dist/src/components/modal/modals/settings/danger-zone.d.ts +0 -2
- package/dist/src/components/modal/modals/settings/danger-zone.d.ts.map +0 -1
- package/dist/src/components/modal/modals/settings/danger-zone.js +0 -15
- package/dist/src/components/modal/modals/settings/danger-zone.js.map +0 -1
- package/dist/src/components/modal/modals/settings/default-editor.d.ts +0 -2
- package/dist/src/components/modal/modals/settings/default-editor.d.ts.map +0 -1
- package/dist/src/components/modal/modals/settings/default-editor.js +0 -18
- package/dist/src/components/modal/modals/settings/default-editor.js.map +0 -1
- package/dist/src/components/modal/modals/settings/package-manager.d.ts +0 -3
- package/dist/src/components/modal/modals/settings/package-manager.d.ts.map +0 -1
- package/dist/src/components/modal/modals/settings/package-manager.js +0 -97
- package/dist/src/components/modal/modals/settings/package-manager.js.map +0 -1
- package/dist/src/components/modal/modals-container.d.ts +0 -2
- package/dist/src/components/modal/modals-container.d.ts.map +0 -1
- package/dist/src/components/modal/modals-container.js +0 -70
- package/dist/src/components/modal/modals-container.js.map +0 -1
- package/dist/src/components/package-install-prompt.d.ts +0 -3
- package/dist/src/components/package-install-prompt.d.ts.map +0 -1
- package/dist/src/components/package-install-prompt.js +0 -34
- package/dist/src/components/package-install-prompt.js.map +0 -1
- package/dist/src/components/reload-connect-toast.d.ts +0 -2
- package/dist/src/components/reload-connect-toast.d.ts.map +0 -1
- package/dist/src/components/reload-connect-toast.js +0 -7
- package/dist/src/components/reload-connect-toast.js.map +0 -1
- package/dist/src/components/root.d.ts +0 -2
- package/dist/src/components/root.d.ts.map +0 -1
- package/dist/src/components/root.js +0 -8
- package/dist/src/components/root.js.map +0 -1
- package/dist/src/components/router.d.ts +0 -2
- package/dist/src/components/router.d.ts.map +0 -1
- package/dist/src/components/router.js +0 -41
- package/dist/src/components/router.js.map +0 -1
- package/dist/src/components/search-bar.d.ts +0 -2
- package/dist/src/components/search-bar.d.ts.map +0 -1
- package/dist/src/components/search-bar.js +0 -36
- package/dist/src/components/search-bar.js.map +0 -1
- package/dist/src/components/sidebar.d.ts +0 -2
- package/dist/src/components/sidebar.d.ts.map +0 -1
- package/dist/src/components/sidebar.js +0 -28
- package/dist/src/components/sidebar.js.map +0 -1
- package/dist/src/connect.config.d.ts +0 -117
- package/dist/src/connect.config.d.ts.map +0 -1
- package/dist/src/connect.config.js +0 -149
- package/dist/src/connect.config.js.map +0 -1
- package/dist/src/context/index.d.ts +0 -4
- package/dist/src/context/index.d.ts.map +0 -1
- package/dist/src/context/index.js +0 -4
- package/dist/src/context/index.js.map +0 -1
- package/dist/src/context/processor-manager.d.ts +0 -2
- package/dist/src/context/processor-manager.d.ts.map +0 -1
- package/dist/src/context/processor-manager.js +0 -2
- package/dist/src/context/processor-manager.js.map +0 -1
- package/dist/src/context/processor-manager.old.d.ts +0 -3
- package/dist/src/context/processor-manager.old.d.ts.map +0 -1
- package/dist/src/context/processor-manager.old.js +0 -189
- package/dist/src/context/processor-manager.old.js.map +0 -1
- package/dist/src/context/read-mode.d.ts +0 -2
- package/dist/src/context/read-mode.d.ts.map +0 -1
- package/dist/src/context/read-mode.js +0 -219
- package/dist/src/context/read-mode.js.map +0 -1
- package/dist/src/context/sentry-provider.d.ts +0 -6
- package/dist/src/context/sentry-provider.d.ts.map +0 -1
- package/dist/src/context/sentry-provider.js +0 -6
- package/dist/src/context/sentry-provider.js.map +0 -1
- package/dist/src/feature-flags.d.ts +0 -35
- package/dist/src/feature-flags.d.ts.map +0 -1
- package/dist/src/feature-flags.js +0 -150
- package/dist/src/feature-flags.js.map +0 -1
- package/dist/src/globals.d.ts +0 -9
- package/dist/src/globals.d.ts.map +0 -1
- package/dist/src/globals.js +0 -2
- package/dist/src/globals.js.map +0 -1
- package/dist/src/hmr.d.ts +0 -3
- package/dist/src/hmr.d.ts.map +0 -1
- package/dist/src/hmr.js +0 -2
- package/dist/src/hmr.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -10
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js +0 -10
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/use-registry.d.ts +0 -14
- package/dist/src/hooks/use-registry.d.ts.map +0 -1
- package/dist/src/hooks/use-registry.js +0 -126
- package/dist/src/hooks/use-registry.js.map +0 -1
- package/dist/src/hooks/useAcceptedCookies.d.ts +0 -9
- package/dist/src/hooks/useAcceptedCookies.d.ts.map +0 -1
- package/dist/src/hooks/useAcceptedCookies.js +0 -34
- package/dist/src/hooks/useAcceptedCookies.js.map +0 -1
- package/dist/src/hooks/useCheckLatestVersion.d.ts +0 -2
- package/dist/src/hooks/useCheckLatestVersion.d.ts.map +0 -1
- package/dist/src/hooks/useCheckLatestVersion.js +0 -33
- package/dist/src/hooks/useCheckLatestVersion.js.map +0 -1
- package/dist/src/hooks/useClientErrorHandler.d.ts +0 -6
- package/dist/src/hooks/useClientErrorHandler.d.ts.map +0 -1
- package/dist/src/hooks/useClientErrorHandler.js +0 -96
- package/dist/src/hooks/useClientErrorHandler.js.map +0 -1
- package/dist/src/hooks/useCookieBanner.d.ts +0 -5
- package/dist/src/hooks/useCookieBanner.d.ts.map +0 -1
- package/dist/src/hooks/useCookieBanner.js +0 -32
- package/dist/src/hooks/useCookieBanner.js.map +0 -1
- package/dist/src/hooks/useInitSentry.d.ts +0 -2
- package/dist/src/hooks/useInitSentry.d.ts.map +0 -1
- package/dist/src/hooks/useInitSentry.js +0 -80
- package/dist/src/hooks/useInitSentry.js.map +0 -1
- package/dist/src/hooks/useNodeActions.d.ts +0 -6
- package/dist/src/hooks/useNodeActions.d.ts.map +0 -1
- package/dist/src/hooks/useNodeActions.js +0 -35
- package/dist/src/hooks/useNodeActions.js.map +0 -1
- package/dist/src/hooks/useUndoRedoShortcuts.d.ts +0 -8
- package/dist/src/hooks/useUndoRedoShortcuts.d.ts.map +0 -1
- package/dist/src/hooks/useUndoRedoShortcuts.js +0 -26
- package/dist/src/hooks/useUndoRedoShortcuts.js.map +0 -1
- package/dist/src/hooks/useWindowSize.d.ts +0 -5
- package/dist/src/hooks/useWindowSize.d.ts.map +0 -1
- package/dist/src/hooks/useWindowSize.js +0 -21
- package/dist/src/hooks/useWindowSize.js.map +0 -1
- package/dist/src/hooks/utils.d.ts +0 -7
- package/dist/src/hooks/utils.d.ts.map +0 -1
- package/dist/src/hooks/utils.js +0 -46
- package/dist/src/hooks/utils.js.map +0 -1
- package/dist/src/i18n/index.d.ts +0 -4
- package/dist/src/i18n/index.d.ts.map +0 -1
- package/dist/src/i18n/index.js +0 -26
- package/dist/src/i18n/index.js.map +0 -1
- package/dist/src/i18n/locales/en.json +0 -114
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +0 -1
- package/dist/src/main.d.ts +0 -2
- package/dist/src/main.d.ts.map +0 -1
- package/dist/src/main.js +0 -8
- package/dist/src/main.js.map +0 -1
- package/dist/src/pages/content.d.ts +0 -2
- package/dist/src/pages/content.d.ts.map +0 -1
- package/dist/src/pages/content.js +0 -39
- package/dist/src/pages/content.js.map +0 -1
- package/dist/src/pages/demo/atlas-import.d.ts +0 -2
- package/dist/src/pages/demo/atlas-import.d.ts.map +0 -1
- package/dist/src/pages/demo/atlas-import.js +0 -120
- package/dist/src/pages/demo/atlas-import.js.map +0 -1
- package/dist/src/pages/index.d.ts +0 -4
- package/dist/src/pages/index.d.ts.map +0 -1
- package/dist/src/pages/index.js +0 -4
- package/dist/src/pages/index.js.map +0 -1
- package/dist/src/pages/settings.d.ts +0 -4
- package/dist/src/pages/settings.d.ts.map +0 -1
- package/dist/src/pages/settings.js +0 -8
- package/dist/src/pages/settings.js.map +0 -1
- package/dist/src/pglite.db.d.ts +0 -2
- package/dist/src/pglite.db.d.ts.map +0 -1
- package/dist/src/pglite.db.js +0 -19
- package/dist/src/pglite.db.js.map +0 -1
- package/dist/src/pglite.worker.d.ts +0 -2
- package/dist/src/pglite.worker.d.ts.map +0 -1
- package/dist/src/pglite.worker.js +0 -15
- package/dist/src/pglite.worker.js.map +0 -1
- package/dist/src/services/index.d.ts +0 -3
- package/dist/src/services/index.d.ts.map +0 -1
- package/dist/src/services/index.js +0 -3
- package/dist/src/services/index.js.map +0 -1
- package/dist/src/services/logger.d.ts +0 -2
- package/dist/src/services/logger.d.ts.map +0 -1
- package/dist/src/services/logger.js +0 -28
- package/dist/src/services/logger.js.map +0 -1
- package/dist/src/services/toast.d.ts +0 -8
- package/dist/src/services/toast.d.ts.map +0 -1
- package/dist/src/services/toast.js +0 -11
- package/dist/src/services/toast.js.map +0 -1
- package/dist/src/store/document-model.d.ts +0 -3
- package/dist/src/store/document-model.d.ts.map +0 -1
- package/dist/src/store/document-model.js +0 -80
- package/dist/src/store/document-model.js.map +0 -1
- package/dist/src/store/editor.d.ts +0 -4
- package/dist/src/store/editor.d.ts.map +0 -1
- package/dist/src/store/editor.js +0 -28
- package/dist/src/store/editor.js.map +0 -1
- package/dist/src/store/index.d.ts +0 -6
- package/dist/src/store/index.d.ts.map +0 -1
- package/dist/src/store/index.js +0 -6
- package/dist/src/store/index.js.map +0 -1
- package/dist/src/store/processor-host-module.d.ts +0 -3
- package/dist/src/store/processor-host-module.d.ts.map +0 -1
- package/dist/src/store/processor-host-module.js +0 -22
- package/dist/src/store/processor-host-module.js.map +0 -1
- package/dist/src/store/reactor.d.ts +0 -3
- package/dist/src/store/reactor.d.ts.map +0 -1
- package/dist/src/store/reactor.js +0 -171
- package/dist/src/store/reactor.js.map +0 -1
- package/dist/src/store/user.d.ts +0 -2
- package/dist/src/store/user.d.ts.map +0 -1
- package/dist/src/store/user.js +0 -16
- package/dist/src/store/user.js.map +0 -1
- package/dist/src/store/utils.d.ts +0 -2
- package/dist/src/store/utils.d.ts.map +0 -1
- package/dist/src/store/utils.js +0 -59
- package/dist/src/store/utils.js.map +0 -1
- package/dist/src/utils/browser.d.ts +0 -2
- package/dist/src/utils/browser.d.ts.map +0 -1
- package/dist/src/utils/browser.js +0 -9
- package/dist/src/utils/browser.js.map +0 -1
- package/dist/src/utils/document-editor-debug-tools.d.ts +0 -17
- package/dist/src/utils/document-editor-debug-tools.d.ts.map +0 -1
- package/dist/src/utils/document-editor-debug-tools.js +0 -55
- package/dist/src/utils/document-editor-debug-tools.js.map +0 -1
- package/dist/src/utils/drive-preservation.d.ts +0 -19
- package/dist/src/utils/drive-preservation.d.ts.map +0 -1
- package/dist/src/utils/drive-preservation.js +0 -51
- package/dist/src/utils/drive-preservation.js.map +0 -1
- package/dist/src/utils/drive-sections.d.ts +0 -31
- package/dist/src/utils/drive-sections.d.ts.map +0 -1
- package/dist/src/utils/drive-sections.js +0 -63
- package/dist/src/utils/drive-sections.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -13
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/index.js +0 -13
- package/dist/src/utils/index.js.map +0 -1
- package/dist/src/utils/join.d.ts +0 -2
- package/dist/src/utils/join.d.ts.map +0 -1
- package/dist/src/utils/join.js +0 -11
- package/dist/src/utils/join.js.map +0 -1
- package/dist/src/utils/openUrl.d.ts +0 -2
- package/dist/src/utils/openUrl.d.ts.map +0 -1
- package/dist/src/utils/openUrl.js +0 -3
- package/dist/src/utils/openUrl.js.map +0 -1
- package/dist/src/utils/package-json.d.ts +0 -3
- package/dist/src/utils/package-json.d.ts.map +0 -1
- package/dist/src/utils/package-json.js +0 -3
- package/dist/src/utils/package-json.js.map +0 -1
- package/dist/src/utils/path.d.ts +0 -4
- package/dist/src/utils/path.d.ts.map +0 -1
- package/dist/src/utils/path.js +0 -17
- package/dist/src/utils/path.js.map +0 -1
- package/dist/src/utils/reactor.d.ts +0 -19
- package/dist/src/utils/reactor.d.ts.map +0 -1
- package/dist/src/utils/reactor.js +0 -70
- package/dist/src/utils/reactor.js.map +0 -1
- package/dist/src/utils/registerServiceWorker.d.ts +0 -12
- package/dist/src/utils/registerServiceWorker.d.ts.map +0 -1
- package/dist/src/utils/registerServiceWorker.js +0 -97
- package/dist/src/utils/registerServiceWorker.js.map +0 -1
- package/dist/src/utils/registry-url.d.ts +0 -2
- package/dist/src/utils/registry-url.d.ts.map +0 -1
- package/dist/src/utils/registry-url.js +0 -39
- package/dist/src/utils/registry-url.js.map +0 -1
- package/dist/src/utils/slug.d.ts +0 -2
- package/dist/src/utils/slug.d.ts.map +0 -1
- package/dist/src/utils/slug.js +0 -4
- package/dist/src/utils/slug.js.map +0 -1
- package/dist/test/utils/signer.test.d.ts +0 -2
- package/dist/test/utils/signer.test.d.ts.map +0 -1
- package/dist/test/utils/signer.test.js +0 -327
- package/dist/test/utils/signer.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/dist/vite.config.js +0 -34
- package/dist/vite.config.js.map +0 -1
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.d.ts.map +0 -1
- package/dist/vitest.config.js +0 -8
- package/dist/vitest.config.js.map +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export const hoverElement = (element) => {
|
|
2
|
-
triggerMouseEventOnElement(element, "mousemove");
|
|
3
|
-
};
|
|
4
|
-
export const triggerMouseEventOnElement = (element, eventType) => {
|
|
5
|
-
const rect = element.getBoundingClientRect();
|
|
6
|
-
const clientX = rect.left + rect.width / 2;
|
|
7
|
-
const clientY = rect.top + rect.height / 2;
|
|
8
|
-
// Create and dispatch the mouse event
|
|
9
|
-
const event = new MouseEvent(eventType, {
|
|
10
|
-
view: window,
|
|
11
|
-
bubbles: true,
|
|
12
|
-
cancelable: true,
|
|
13
|
-
clientX,
|
|
14
|
-
clientY,
|
|
15
|
-
});
|
|
16
|
-
element.dispatchEvent(event);
|
|
17
|
-
};
|
|
18
|
-
export const clearIndexDB = async () => {
|
|
19
|
-
const databases = await indexedDB.databases();
|
|
20
|
-
for (const db of databases) {
|
|
21
|
-
indexedDB.deleteDatabase(db.name);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const getOptionName = (option) => {
|
|
25
|
-
switch (option) {
|
|
26
|
-
case "duplicate":
|
|
27
|
-
return "Duplicate";
|
|
28
|
-
case "new-folder":
|
|
29
|
-
return "New Folder";
|
|
30
|
-
case "delete":
|
|
31
|
-
return "Delete";
|
|
32
|
-
case "rename":
|
|
33
|
-
return "Rename";
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const getContentViewOptionName = (option) => {
|
|
37
|
-
switch (option) {
|
|
38
|
-
case "duplicate":
|
|
39
|
-
return "Duplicate";
|
|
40
|
-
case "delete":
|
|
41
|
-
return "Delete";
|
|
42
|
-
case "rename":
|
|
43
|
-
return "Rename";
|
|
44
|
-
case "switchboard-link":
|
|
45
|
-
return "Switchboard Link";
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
export const clickSidebarItemOption = (folderName, option) => {
|
|
49
|
-
cy.get(".mr-1")
|
|
50
|
-
.contains(folderName)
|
|
51
|
-
.closest("div")
|
|
52
|
-
.children("button")
|
|
53
|
-
.invoke("removeClass", "hidden")
|
|
54
|
-
.click()
|
|
55
|
-
.invoke("addClass", "hidden");
|
|
56
|
-
const optionName = getOptionName(option);
|
|
57
|
-
cy.contains(optionName).click();
|
|
58
|
-
};
|
|
59
|
-
export const newFolder = (parent, folderName) => {
|
|
60
|
-
cy.get(".mr-1")
|
|
61
|
-
.contains(parent)
|
|
62
|
-
.closest("div")
|
|
63
|
-
.children("button")
|
|
64
|
-
.invoke("removeClass", "hidden")
|
|
65
|
-
.click()
|
|
66
|
-
.invoke("addClass", "hidden");
|
|
67
|
-
cy.contains("New Folder").click();
|
|
68
|
-
cy.get('input[value="New Folder"]').clear().type(`${folderName}{enter}`);
|
|
69
|
-
cy.get(".mr-1")
|
|
70
|
-
.contains(parent)
|
|
71
|
-
.closest("div")
|
|
72
|
-
.children("button")
|
|
73
|
-
.invoke("addClass", "hidden");
|
|
74
|
-
};
|
|
75
|
-
export const selectSidebarItem = (item) => {
|
|
76
|
-
cy.get(".mr-1").contains(item).click();
|
|
77
|
-
};
|
|
78
|
-
export const addPublicDrive = (url) => {
|
|
79
|
-
cy.intercept("POST", url, (req) => {
|
|
80
|
-
if (req.body.operationName === "getDrive") {
|
|
81
|
-
req.alias = "graphqlQuery";
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
cy.get("p").contains("Public Drives").parent().find("button").click();
|
|
85
|
-
cy.get('input[placeholder="Drive URL"]').clear().type(url);
|
|
86
|
-
cy.contains("Add existing drive").click();
|
|
87
|
-
cy.wait("@graphqlQuery");
|
|
88
|
-
cy.get("button").contains("Confirm URL").should("not.be.disabled");
|
|
89
|
-
cy.get("button").contains("Confirm URL").click();
|
|
90
|
-
cy.get("button").contains("Add drive").should("not.be.disabled");
|
|
91
|
-
cy.get("button").contains("Add drive").click();
|
|
92
|
-
};
|
|
93
|
-
export const connectDebugMenu = (on = true) => {
|
|
94
|
-
cy.window().then((window) => {
|
|
95
|
-
window.localStorage.setItem("CONNECT_DEBUG", on ? "true" : "false");
|
|
96
|
-
});
|
|
97
|
-
cy.reload();
|
|
98
|
-
};
|
|
99
|
-
export const clickContentViewItem = (title) => {
|
|
100
|
-
cy.get("#content-view").contains(title).should("be.visible").click();
|
|
101
|
-
};
|
|
102
|
-
export const clickContentViewItemOption = (itemName, option) => {
|
|
103
|
-
cy.get("#content-view")
|
|
104
|
-
.contains(itemName)
|
|
105
|
-
.parent()
|
|
106
|
-
.next()
|
|
107
|
-
.invoke("attr", "style", "display: inline-block; width: 24px")
|
|
108
|
-
.click();
|
|
109
|
-
const optionName = getContentViewOptionName(option);
|
|
110
|
-
cy.contains(optionName).click();
|
|
111
|
-
};
|
|
112
|
-
export const getBreadcrumbItem = (title) => {
|
|
113
|
-
return cy
|
|
114
|
-
.get("#content-view")
|
|
115
|
-
.children()
|
|
116
|
-
.first()
|
|
117
|
-
.children()
|
|
118
|
-
.first()
|
|
119
|
-
.contains(title);
|
|
120
|
-
};
|
|
121
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../cypress/e2e/utils/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAoB,EAAE,EAAE;IACnD,0BAA0B,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,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AAK,CAAC,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../cypress/support/commands.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
/// <reference types="cypress" />
|
|
3
|
-
// ***********************************************
|
|
4
|
-
// This example commands.ts shows you how to
|
|
5
|
-
// create various custom commands and overwrite
|
|
6
|
-
// existing commands.
|
|
7
|
-
//
|
|
8
|
-
// For more comprehensive examples of custom
|
|
9
|
-
// commands please read more here:
|
|
10
|
-
// https://on.cypress.io/custom-commands
|
|
11
|
-
// ***********************************************
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// -- This is a parent command --
|
|
15
|
-
// Cypress.Commands.add('login', (email, password) => {});
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
// -- This is a child command --
|
|
19
|
-
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
// -- This is a dual command --
|
|
23
|
-
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
// -- This will overwrite an existing command --
|
|
27
|
-
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
|
28
|
-
//
|
|
29
|
-
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../cypress/support/commands.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,kDAAkD;AAClD,4CAA4C;AAC5C,+CAA+C;AAC/C,qBAAqB;AACrB,EAAE;AACF,4CAA4C;AAC5C,kCAAkC;AAClC,wCAAwC;AACxC,kDAAkD;AAClD,EAAE;AACF,EAAE;AACF,iCAAiC;AACjC,0DAA0D;AAC1D,EAAE;AACF,EAAE;AACF,gCAAgC;AAChC,yFAAyF;AACzF,EAAE;AACF,EAAE;AACF,+BAA+B;AAC/B,6FAA6F;AAC7F,EAAE;AACF,EAAE;AACF,gDAAgD;AAChD,6EAA6E;AAC7E,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"e2e.d.ts","sourceRoot":"","sources":["../../../cypress/support/e2e.ts"],"names":[],"mappings":"AAgBA,OAAO,eAAe,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/e2e.ts is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
// Import commands.js using ES2015 syntax:
|
|
16
|
-
import "./commands.js";
|
|
17
|
-
// Alternatively you can use CommonJS syntax:
|
|
18
|
-
// require('./commands')
|
|
19
|
-
//# sourceMappingURL=e2e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"e2e.js","sourceRoot":"","sources":["../../../cypress/support/e2e.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,+CAA+C;AAC/C,+CAA+C;AAC/C,EAAE;AACF,wDAAwD;AACxD,kCAAkC;AAClC,EAAE;AACF,uDAAuD;AACvD,+CAA+C;AAC/C,sCAAsC;AACtC,EAAE;AACF,0BAA0B;AAC1B,sCAAsC;AACtC,8DAA8D;AAE9D,0CAA0C;AAC1C,OAAO,eAAe,CAAC;AAEvB,6CAA6C;AAC7C,wBAAwB"}
|
package/dist/cypress.config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cypress.config.d.ts","sourceRoot":"","sources":["../cypress.config.ts"],"names":[],"mappings":";AAEA,wBAaG"}
|
package/dist/cypress.config.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "cypress";
|
|
2
|
-
export default defineConfig({
|
|
3
|
-
projectId: "74d1m9",
|
|
4
|
-
e2e: {
|
|
5
|
-
supportFile: "cypress/support/e2e.ts",
|
|
6
|
-
setupNodeEvents(on, config) {
|
|
7
|
-
// implement node event listeners here
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
env: {
|
|
11
|
-
TEST_PUBLIC_DRIVE: "https://apps.powerhouse.io/develop/powerhouse/switchboard/d/cypress-test",
|
|
12
|
-
TEST_PUBLIC_DRIVE_NAME: "CypressTest",
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=cypress.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cypress.config.js","sourceRoot":"","sources":["../cypress.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAe,YAAY,CAAC;IAC1B,SAAS,EAAE,QAAQ;IACnB,GAAG,EAAE;QACH,WAAW,EAAE,wBAAwB;QACrC,eAAe,CAAC,EAAE,EAAE,MAAM;YACxB,sCAAsC;QACxC,CAAC;KACF;IACD,GAAG,EAAE;QACH,iBAAiB,EACf,0EAA0E;QAC5E,sBAAsB,EAAE,aAAa;KACtC;CACF,CAAC,CAAC"}
|
package/dist/package.copy.json
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@powerhousedao/connect",
|
|
3
|
-
"productName": "Powerhouse-Connect",
|
|
4
|
-
"version": "6.0.0-dev.105",
|
|
5
|
-
"description": "Powerhouse Connect",
|
|
6
|
-
"main": "dist/index.html",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"engines": {
|
|
9
|
-
"node": ">=24.0.0"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"dist",
|
|
13
|
-
"nginx.conf",
|
|
14
|
-
"nginx.sh",
|
|
15
|
-
"scripts",
|
|
16
|
-
"assets",
|
|
17
|
-
"public",
|
|
18
|
-
"heroku",
|
|
19
|
-
".env"
|
|
20
|
-
],
|
|
21
|
-
"exports": {
|
|
22
|
-
"./main.js": {
|
|
23
|
-
"types": "./dist/src/main.d.ts",
|
|
24
|
-
"import": "./dist/src/main.js"
|
|
25
|
-
},
|
|
26
|
-
"./config": {
|
|
27
|
-
"import": "./dist/src/connect.config.js",
|
|
28
|
-
"types": "./dist/src/connect.config.d.ts"
|
|
29
|
-
},
|
|
30
|
-
"./assets/*": "./assets/*",
|
|
31
|
-
"./style.css": "./dist/style.css",
|
|
32
|
-
"./package.json": {
|
|
33
|
-
"import": "./dist/package.copy.json",
|
|
34
|
-
"types": "./dist/src/package-json.d.ts"
|
|
35
|
-
},
|
|
36
|
-
"./*": {
|
|
37
|
-
"types": "./dist/src/*/index.d.ts",
|
|
38
|
-
"import": "./dist/src/*/index.js"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"sideEffects": [
|
|
42
|
-
"./dist/src/main.js",
|
|
43
|
-
"./dist/style.css"
|
|
44
|
-
],
|
|
45
|
-
"license": "AGPL-3.0-only",
|
|
46
|
-
"author": "powerhouse.inc",
|
|
47
|
-
"repository": {
|
|
48
|
-
"type": "git",
|
|
49
|
-
"url": "https://github.com/powerhouse-inc/powerhouse"
|
|
50
|
-
},
|
|
51
|
-
"bugs": {
|
|
52
|
-
"url": "https://github.com/powerhouse-inc/powerhouse/issues"
|
|
53
|
-
},
|
|
54
|
-
"homepage": "https://github.com/powerhouse-inc/powerhouse#readme",
|
|
55
|
-
"scripts": {
|
|
56
|
-
"tsc": "tsc",
|
|
57
|
-
"lint": "eslint",
|
|
58
|
-
"test": "vitest --run",
|
|
59
|
-
"dev": "vite dev",
|
|
60
|
-
"build:css": "pnpm exec tailwindcss -i ./src/index.css -o ./dist/style.css",
|
|
61
|
-
"build:connect": "pnpm tsc && cp package.json dist/package.copy.json && pnpm build:css",
|
|
62
|
-
"build:all": "pnpm build:css && pnpm build:connect",
|
|
63
|
-
"build:debug": "PH_DEBUG_BUILD=true vite build",
|
|
64
|
-
"preview": "vite preview",
|
|
65
|
-
"cy:open": "cypress open",
|
|
66
|
-
"docker:build": "docker build -f ./Dockerfile --tag connect-test-dev --build-arg TAG=dev .",
|
|
67
|
-
"docker:run": "docker run -it -p 4000:4000 -v $(realpath ../../../monorepo):/monorepo -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf.template -e PH_USE_LOCAL=true -e PH_CONNECT_BASE_PATH=/develop/powerhouse/connect -e PORT=4000 connect-test-dev"
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"@openfeature/web-sdk": "1.6.2",
|
|
71
|
-
"@powerhousedao/design-system": "workspace:*",
|
|
72
|
-
"@powerhousedao/powerhouse-vetra-packages": "workspace:*",
|
|
73
|
-
"@powerhousedao/reactor-browser": "workspace:*",
|
|
74
|
-
"@powerhousedao/shared": "workspace:",
|
|
75
|
-
"@renown/sdk": "workspace:*",
|
|
76
|
-
"@sentry/react": "^10.17.0",
|
|
77
|
-
"graphql-request": "catalog:",
|
|
78
|
-
"i18next": "^25.5.3",
|
|
79
|
-
"kysely": "catalog:",
|
|
80
|
-
"kysely-pglite-dialect": "catalog:",
|
|
81
|
-
"react-error-boundary": "^4.0.11",
|
|
82
|
-
"react-hotkeys-hook": "^4.6.2",
|
|
83
|
-
"react-i18next": "^16.0.0",
|
|
84
|
-
"react-router-dom": "^6.11.2",
|
|
85
|
-
"tailwind-merge": "catalog:"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"@electric-sql/pglite": "catalog:",
|
|
89
|
-
"@electric-sql/pglite-tools": "catalog:",
|
|
90
|
-
"@openfeature/core": "1.9.1",
|
|
91
|
-
"@powerhousedao/builder-tools": "workspace:*",
|
|
92
|
-
"@powerhousedao/config": "workspace:*",
|
|
93
|
-
"@powerhousedao/document-engineering": "catalog:",
|
|
94
|
-
"@types/node": "catalog:",
|
|
95
|
-
"@types/react": "catalog:",
|
|
96
|
-
"@types/react-dom": "catalog:",
|
|
97
|
-
"@types/wicg-file-system-access": "^2023.10.7",
|
|
98
|
-
"@types/bun": "catalog:",
|
|
99
|
-
"cypress": "^14.5.4",
|
|
100
|
-
"document-drive": "workspace:*",
|
|
101
|
-
"document-model": "workspace:*",
|
|
102
|
-
"graphql": "catalog:",
|
|
103
|
-
"react": "catalog:",
|
|
104
|
-
"react-dom": "catalog:",
|
|
105
|
-
"tailwindcss": "catalog:",
|
|
106
|
-
"@tailwindcss/cli": "catalog:",
|
|
107
|
-
"vite": "catalog:",
|
|
108
|
-
"vite-bundle-analyzer": "^1.3.6",
|
|
109
|
-
"vite-plugin-svgr": "catalog:",
|
|
110
|
-
"vite-tsconfig-paths": "^6.1.1",
|
|
111
|
-
"tsconfig-paths": "4.2.0"
|
|
112
|
-
},
|
|
113
|
-
"peerDependencies": {
|
|
114
|
-
"react": ">=19.0.0",
|
|
115
|
-
"react-dom": ">=19.0.0",
|
|
116
|
-
"@electric-sql/pglite": ">=0.3.15",
|
|
117
|
-
"@electric-sql/pglite-tools": ">=0.2.20",
|
|
118
|
-
"document-drive": "workspace:*",
|
|
119
|
-
"document-model": "workspace:*"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-skeleton.d.ts","sourceRoot":"","sources":["../../scripts/render-skeleton.ts"],"names":[],"mappings":"AAIA,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,mBAMlD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { dirname } from "node:path";
|
|
2
|
-
import { createElement } from "react";
|
|
3
|
-
import { renderToStaticMarkup } from "react-dom/server";
|
|
4
|
-
export async function renderSkeleton(module) {
|
|
5
|
-
const AppSkeletonModule = await import(module);
|
|
6
|
-
const AppSkeleton = Object.values(AppSkeletonModule).at(0);
|
|
7
|
-
const html = renderToStaticMarkup(createElement(AppSkeleton));
|
|
8
|
-
const assetsPath = "file://" + dirname(dirname(module));
|
|
9
|
-
return html.replaceAll(assetsPath, ".");
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=render-skeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-skeleton.js","sourceRoot":"","sources":["../../scripts/render-skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAAc;IACjD,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAa,CAAC;IACvE,MAAM,IAAI,GAAG,oBAAoB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9D,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/analytics.tsx"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;QAChC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;KACnB;CACF;AAMD,eAAO,MAAM,SAAS,YA2BrB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { connectConfig } from "@powerhousedao/connect/config";
|
|
2
|
-
import { useAcceptedCookies } from "@powerhousedao/connect/hooks";
|
|
3
|
-
import { useEffect } from "react";
|
|
4
|
-
function gtag(...args) {
|
|
5
|
-
window.dataLayer?.push(...args);
|
|
6
|
-
}
|
|
7
|
-
export const Analytics = () => {
|
|
8
|
-
const gaTrackingId = connectConfig.gaTrackingId;
|
|
9
|
-
const [{ analytics }] = useAcceptedCookies();
|
|
10
|
-
const useAnalytics = gaTrackingId && analytics;
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
if (useAnalytics) {
|
|
13
|
-
// Create the GA script tag
|
|
14
|
-
const script = document.createElement("script");
|
|
15
|
-
script.src = `https://www.googletagmanager.com/gtag/js?id=${gaTrackingId}`;
|
|
16
|
-
script.async = true;
|
|
17
|
-
document.head.appendChild(script);
|
|
18
|
-
// Initialize GA
|
|
19
|
-
window.dataLayer = window.dataLayer || [];
|
|
20
|
-
gtag("js", new Date());
|
|
21
|
-
gtag("config", gaTrackingId);
|
|
22
|
-
// Clean up the script if no longer enabled
|
|
23
|
-
return () => {
|
|
24
|
-
document.head.removeChild(script);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}, [useAnalytics, gaTrackingId]);
|
|
28
|
-
return null;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=analytics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/components/analytics.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASlC,SAAS,IAAI,CAAC,GAAG,IAAuB;IACt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
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import "@powerhousedao/connect/i18n";
|
|
3
|
-
import { lazy, StrictMode, Suspense } from "react";
|
|
4
|
-
import AppSkeleton from "./app-skeleton.js";
|
|
5
|
-
import { App, CookieBanner } from "./index.js";
|
|
6
|
-
import { ModalsContainer } from "./modal/modals-container.js";
|
|
7
|
-
const Load = lazy(() => import("./load.js").then((m) => m.loadComponent()));
|
|
8
|
-
export const AppLoader = () => (_jsxs(StrictMode, { children: [_jsx(Suspense, { fallback: _jsx(AppSkeleton, {}), name: "AppLoader", children: _jsx(Load, { children: _jsx(App, {}) }) }), _jsx(Suspense, { name: "CookieBanner", children: _jsx(CookieBanner, {}) }), _jsx(Suspense, { name: "ModalsContainer", children: _jsx(ModalsContainer, {}) })] }));
|
|
9
|
-
//# sourceMappingURL=app-loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-loader.js","sourceRoot":"","sources":["../../../src/components/app-loader.tsx"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAC7B,MAAC,UAAU,eACT,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,WAAW,KAAG,EAAE,IAAI,EAAC,WAAW,YACnD,KAAC,IAAI,cACH,KAAC,GAAG,KAAG,GACF,GACE,EACX,KAAC,QAAQ,IAAC,IAAI,EAAC,cAAc,YAC3B,KAAC,YAAY,KAAG,GACP,EACX,KAAC,QAAQ,IAAC,IAAI,EAAC,iBAAiB,YAC9B,KAAC,eAAe,KAAG,GACV,IACA,CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/app-skeleton.tsx"],"names":[],"mappings":"AA8CA,eAAO,MAAM,WAAW,+CAkCvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getBasePath } from "@powerhousedao/connect/utils";
|
|
3
|
-
import { AnimatedLoader, ConnectSidebar, HomeScreen, } from "@powerhousedao/design-system/connect";
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
5
|
-
const LOADER_DELAY = 250;
|
|
6
|
-
const Loader = ({ delay = LOADER_DELAY }) => {
|
|
7
|
-
const isSSR = typeof window === "undefined";
|
|
8
|
-
const showInitialLoader = typeof document !== "undefined" &&
|
|
9
|
-
document.body.getAttribute("data-show-loader") === "true";
|
|
10
|
-
const [showLoading, setShowLoading] = useState(!delay || showInitialLoader);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
const id = setTimeout(() => {
|
|
13
|
-
setShowLoading(true);
|
|
14
|
-
}, delay);
|
|
15
|
-
return () => clearTimeout(id);
|
|
16
|
-
}, []);
|
|
17
|
-
return (_jsxs("div", { className: `skeleton-loader absolute inset-0 z-10 flex items-center justify-center ${showLoading ? "" : "hidden"}`, children: [_jsx("div", { className: "animate-pulse overflow-hidden rounded-full shadow-lg", children: _jsx(AnimatedLoader, {}) }), isSSR ? (_jsx("script", { dangerouslySetInnerHTML: {
|
|
18
|
-
__html: `setTimeout(() => {
|
|
19
|
-
document.querySelector('.skeleton-loader')?.classList.remove('hidden');
|
|
20
|
-
document.body.setAttribute('data-show-loader', 'true');
|
|
21
|
-
}, ${delay})`,
|
|
22
|
-
} })) : null] }));
|
|
23
|
-
};
|
|
24
|
-
export const AppSkeleton = () => {
|
|
25
|
-
const isSSR = typeof window === "undefined";
|
|
26
|
-
const isHomeScreen = !isSSR && window.location.pathname === getBasePath();
|
|
27
|
-
return (_jsxs("div", { className: "flex h-screen", children: [_jsx(ConnectSidebar, { className: "animate-pulse", onLogin: undefined, onDisconnect: undefined, onClickSettings: undefined, address: undefined }), _jsx(HomeScreen, { containerClassName: isSSR || !isHomeScreen ? "hidden home-screen" : undefined, children: null }), isSSR ? (_jsx("script", { dangerouslySetInnerHTML: {
|
|
28
|
-
__html: `
|
|
29
|
-
const baseEl = document.querySelector('base');
|
|
30
|
-
const href = baseEl?.getAttribute('href');
|
|
31
|
-
const basePath = href || '/';
|
|
32
|
-
if (window.location.pathname === basePath) {
|
|
33
|
-
document.querySelector('.home-screen')?.classList.remove('hidden')
|
|
34
|
-
}`,
|
|
35
|
-
} })) : null, _jsx(Loader, {})] }));
|
|
36
|
-
};
|
|
37
|
-
export default AppSkeleton;
|
|
38
|
-
//# sourceMappingURL=app-skeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-skeleton.js","sourceRoot":"","sources":["../../../src/components/app-skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EACL,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB,MAAM,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,YAAY,EAAsB,EAAE,EAAE;IAC9D,MAAM,KAAK,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;IAC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AChB,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,EAE3D,QAAQ,EAAE,IAAI,GACd,EACD,KAAK,CAAC,CAAC,CAAC,CACP,iBACE,uBAAuB,EAAE;oBACvB,MAAM,EAAE;;;;;;sBAME;iBACX,GACD,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,MAAM,KAAG,IACN,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/components/app.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,GAAG,+CAmCf,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Analytics, PackageInstallPrompt, Router, } from "@powerhousedao/connect/components";
|
|
3
|
-
import { ProcessorManagerProvider, SentryProvider, } from "@powerhousedao/connect/context";
|
|
4
|
-
import { DocumentEditorDebugTools, serviceWorkerManager, } from "@powerhousedao/connect/utils";
|
|
5
|
-
import { ToastContainer, WagmiContext, } from "@powerhousedao/design-system/connect";
|
|
6
|
-
import { useEffect } from "react";
|
|
7
|
-
export const App = () => {
|
|
8
|
-
// refresh page on vite preload error due to outdated chunks
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const handlePreloadError = () => {
|
|
11
|
-
console.log("Outdated chunks detected, reloading page...");
|
|
12
|
-
window.location.reload();
|
|
13
|
-
};
|
|
14
|
-
window.addEventListener("vite:preloadError", handlePreloadError);
|
|
15
|
-
return () => {
|
|
16
|
-
window.removeEventListener("vite:preloadError", handlePreloadError);
|
|
17
|
-
};
|
|
18
|
-
}, []);
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
if (import.meta.env.MODE === "development") {
|
|
21
|
-
window.documentEditorDebugTools = new DocumentEditorDebugTools();
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
serviceWorkerManager.registerServiceWorker(false);
|
|
25
|
-
}
|
|
26
|
-
}, []);
|
|
27
|
-
return (_jsx(SentryProvider, { children: _jsx(WagmiContext, { children: _jsxs(ProcessorManagerProvider, { children: [_jsx(ToastContainer, { position: "bottom-right", containerId: "connect" }), _jsx(PackageInstallPrompt, {}), _jsx(Router, {}), _jsx(Analytics, {})] }) }) }));
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=app.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/components/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,MAAM,GACP,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,wBAAwB,EACxB,cAAc,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,cAAc,EACd,YAAY,GACb,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,EAAE;IACtB,4DAA4D;IAC5D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,kBAAkB,GAAG,GAAG,EAAE;YAC9B,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;YAC3D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC3B,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;QAEjE,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAAC;QACtE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,aAAa,EAAE,CAAC;YAC3C,MAAM,CAAC,wBAAwB,GAAG,IAAI,wBAAwB,EAAE,CAAC;QACnE,CAAC;aAAM,CAAC;YACN,oBAAoB,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,cAAc,cACb,KAAC,YAAY,cACX,MAAC,wBAAwB,eACvB,KAAC,cAAc,IAAC,QAAQ,EAAC,cAAc,EAAC,WAAW,EAAC,SAAS,GAAG,EAChE,KAAC,oBAAoB,KAAG,EACxB,KAAC,MAAM,KAAG,EACV,KAAC,SAAS,KAAG,IACY,GACd,GACA,CAClB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAanE,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
const Button = ({ className, ...props }) => {
|
|
4
|
-
return (_jsx("button", { className: twMerge("shadow-button rounded-md bg-gray-500/20 px-4 py-1.5 text-gray-500 hover:bg-slate-100 hover:shadow-none", className), ...props }));
|
|
5
|
-
};
|
|
6
|
-
export default Button;
|
|
7
|
-
//# sourceMappingURL=button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,MAAM,GAA4D,CAAC,EACvE,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,iBACE,SAAS,EAAE,OAAO,CAChB,wGAAwG,EACxG,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-banner.d.ts","sourceRoot":"","sources":["../../../src/components/cookie-banner.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,sDAuExB,CAAC"}
|