@powerhousedao/connect 5.0.0-staging.9 → 5.0.1-staging.10
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/.env → .env} +4 -6
- package/README.md +3 -4
- package/assets/icon.icns +0 -0
- package/assets/icon.ico +0 -0
- package/assets/icon.png +0 -0
- package/assets/icons/Atlas-Logomark.svg +24 -0
- package/assets/icons/BBP-logo-hover-dark.svg +14 -0
- package/assets/icons/BBP-logo-hover-light.svg +14 -0
- package/assets/icons/BBP-logo-main.svg +14 -0
- package/assets/icons/collapse.svg +7 -0
- package/assets/icons/connect-small.svg +3 -0
- package/assets/icons/connect.svg +16 -0
- package/assets/icons/cross.svg +4 -0
- package/assets/icons/dark.svg +5 -0
- package/assets/icons/draft.svg +3 -0
- package/assets/icons/file.svg +3 -0
- package/assets/icons/file2.svg +10 -0
- package/assets/icons/folder.svg +3 -0
- package/assets/icons/light.svg +20 -0
- package/assets/icons/logo.svg +11 -0
- package/assets/icons/plus-circle.svg +5 -0
- package/assets/icons/refresh.svg +4 -0
- package/assets/icons/renown.svg +27 -0
- package/assets/icons/settings.svg +6 -0
- package/assets/icons/template.svg +3 -0
- package/assets/info.plist +85 -0
- package/dist/assets/AddDriveModal-_VEckfgs.js +1 -0
- package/dist/assets/ClearStorageModal-BIEumLFB.js +1 -0
- package/dist/assets/CookiesPolicyModal-DxXlDzMD.js +1 -0
- package/dist/assets/CreateDocumentModal-i8Mn-zHZ.js +1 -0
- package/dist/assets/DebugSettingsModal-B7_0MfyY.js +1 -0
- package/dist/assets/DeleteDriveModal-Z_QkBHwL.js +1 -0
- package/dist/assets/DeleteItemModal-PX5rpWQp.js +1 -0
- package/dist/assets/DisclaimerModal-DnyAi8SY.js +1 -0
- package/dist/assets/DriveSettingsModal-CKBxDPF4.js +1 -0
- package/dist/assets/ExportDocumentWithErrorsModal-PwfR0wZb.js +1 -0
- package/dist/assets/SettingsModal-CvlSE5u_.js +1 -0
- package/dist/assets/UpgradeDriveModal-C5OBv8od.js +1 -0
- package/dist/assets/config-CU-aFfVJ.js +1 -0
- package/dist/assets/design_system-wkSa2XkO.js +45 -0
- package/dist/assets/design_system_connect-KiHH4lsC.js +45 -0
- package/dist/assets/design_system_ui-yn9Bp8-M.js +1 -0
- package/dist/assets/document_drive-BEIKnuGM.js +305 -0
- package/dist/assets/document_engineering-DwkL4RC_.js +1 -0
- package/dist/assets/document_model-DXcLJEjZ.js +230 -0
- package/dist/assets/document_model_editor-Dzl0xzA_.js +23 -0
- package/dist/assets/drive_explorer-BXnew3vz.js +2 -0
- package/dist/assets/graphql-BS4Brs_E.js +75 -0
- package/dist/assets/graphql-editor-CYvFkX8-.js +73 -0
- package/dist/assets/graphql_request-9RNJ00DB.js +3 -0
- package/dist/assets/hmr-LMNkvzP7.js +1 -0
- package/dist/assets/hooks-D1J714hY.js +12 -0
- package/dist/assets/index-2InhLUpC.js +18 -0
- package/dist/assets/index-Br7E7qjt.css +1 -0
- package/dist/assets/json-editor-Meugtes8.js +1 -0
- package/dist/assets/react/jsx-runtime-DldvXD6N.js +1 -0
- package/dist/assets/react-DQSxOgtG.js +1 -0
- package/dist/assets/react-dom/client-BVPiT_FE.js +9 -0
- package/dist/assets/react-dom-D6zQJsh6.js +1 -0
- package/dist/assets/reactor_browser-CSyNHuU2.js +25 -0
- package/dist/assets/sentry_browser-B4YoBIIG.js +498 -0
- package/dist/assets/sentry_react-cODD7zWc.js +3 -0
- package/dist/assets/state-schemas-Dq1fQPOB.js +2 -0
- package/dist/assets/tailwind_merge-Dr4f9Rms.js +1 -0
- package/dist/assets/virtual_ph_external-packages-CM1tCR4L.js +1 -0
- package/dist/assets/zod-C6yxFxyo.js +1 -0
- package/dist/index.html +51 -75
- package/heroku/Dockerfile +98 -0
- package/heroku/Procfile +1 -0
- package/heroku/config/nginx.conf.template +77 -0
- package/heroku/heroku-entrypoint.sh +38 -0
- package/lib/cypress/e2e/navigation.cy.d.ts +2 -0
- package/lib/cypress/e2e/navigation.cy.d.ts.map +1 -0
- package/lib/cypress/e2e/navigation.cy.js +221 -0
- package/lib/cypress/e2e/navigation.cy.js.map +1 -0
- package/lib/cypress/e2e/utils/index.d.ts +15 -0
- package/lib/cypress/e2e/utils/index.d.ts.map +1 -0
- package/lib/cypress/e2e/utils/index.js +121 -0
- package/lib/cypress/e2e/utils/index.js.map +1 -0
- package/lib/cypress/support/commands.d.ts +2 -0
- package/lib/cypress/support/commands.d.ts.map +1 -0
- package/lib/cypress/support/commands.js +29 -0
- package/lib/cypress/support/commands.js.map +1 -0
- package/lib/cypress/support/e2e.d.ts +2 -0
- package/lib/cypress/support/e2e.d.ts.map +1 -0
- package/lib/cypress/support/e2e.js +19 -0
- package/lib/cypress/support/e2e.js.map +1 -0
- package/lib/cypress.config.d.ts +3 -0
- package/lib/cypress.config.d.ts.map +1 -0
- package/lib/cypress.config.js +15 -0
- package/lib/cypress.config.js.map +1 -0
- package/lib/package.copy.json +165 -0
- package/lib/scripts/render-skeleton.d.ts +2 -0
- package/lib/scripts/render-skeleton.d.ts.map +1 -0
- package/lib/scripts/render-skeleton.js +11 -0
- package/lib/scripts/render-skeleton.js.map +1 -0
- package/lib/src/components/analytics.d.ts +8 -0
- package/lib/src/components/analytics.d.ts.map +1 -0
- package/lib/src/components/analytics.js +30 -0
- package/lib/src/components/analytics.js.map +1 -0
- package/lib/src/components/app-loader.d.ts +7 -0
- package/lib/src/components/app-loader.d.ts.map +1 -0
- package/lib/src/components/app-loader.js +20 -0
- package/lib/src/components/app-loader.js.map +1 -0
- package/lib/src/components/app-skeleton.d.ts +3 -0
- package/lib/src/components/app-skeleton.d.ts.map +1 -0
- package/lib/src/components/app-skeleton.js +38 -0
- package/lib/src/components/app-skeleton.js.map +1 -0
- package/lib/src/components/app.d.ts +2 -0
- package/lib/src/components/app.d.ts.map +1 -0
- package/lib/src/components/app.js +18 -0
- package/lib/src/components/app.js.map +1 -0
- package/lib/src/components/button.d.ts +3 -0
- package/lib/src/components/button.d.ts.map +1 -0
- package/lib/src/components/button.js +7 -0
- package/lib/src/components/button.js.map +1 -0
- package/lib/src/components/cookie-banner.d.ts +2 -0
- package/lib/src/components/cookie-banner.d.ts.map +1 -0
- package/lib/src/components/cookie-banner.js +48 -0
- package/lib/src/components/cookie-banner.js.map +1 -0
- package/lib/src/components/document-editor-container.d.ts +2 -0
- package/lib/src/components/document-editor-container.d.ts.map +1 -0
- package/lib/src/components/document-editor-container.js +62 -0
- package/lib/src/components/document-editor-container.js.map +1 -0
- package/lib/src/components/dots-loader.d.ts +2 -0
- package/lib/src/components/dots-loader.d.ts.map +1 -0
- package/lib/src/components/dots-loader.js +15 -0
- package/lib/src/components/dots-loader.js.map +1 -0
- package/lib/src/components/drive-editor-container.d.ts +2 -0
- package/lib/src/components/drive-editor-container.d.ts.map +1 -0
- package/lib/src/components/drive-editor-container.js +25 -0
- package/lib/src/components/drive-editor-container.js.map +1 -0
- package/lib/src/components/drive-icon.d.ts +5 -0
- package/lib/src/components/drive-icon.d.ts.map +1 -0
- package/lib/src/components/drive-icon.js +15 -0
- package/lib/src/components/drive-icon.js.map +1 -0
- package/lib/src/components/editor-loader.d.ts +9 -0
- package/lib/src/components/editor-loader.d.ts.map +1 -0
- package/lib/src/components/editor-loader.js +19 -0
- package/lib/src/components/editor-loader.js.map +1 -0
- package/lib/src/components/editors.d.ts +10 -0
- package/lib/src/components/editors.d.ts.map +1 -0
- package/lib/src/components/editors.js +93 -0
- package/lib/src/components/editors.js.map +1 -0
- package/lib/src/components/footer.d.ts +2 -0
- package/lib/src/components/footer.d.ts.map +1 -0
- package/lib/src/components/footer.js +16 -0
- package/lib/src/components/footer.js.map +1 -0
- package/lib/src/components/index.d.ts +22 -0
- package/lib/src/components/index.d.ts.map +1 -0
- package/lib/src/components/index.js +22 -0
- package/lib/src/components/index.js.map +1 -0
- package/lib/src/components/login.d.ts +2 -0
- package/lib/src/components/login.d.ts.map +1 -0
- package/lib/src/components/login.js +12 -0
- package/lib/src/components/login.js.map +1 -0
- package/lib/src/components/modal/index.d.ts +19 -0
- package/lib/src/components/modal/index.d.ts.map +1 -0
- package/lib/src/components/modal/index.js +19 -0
- package/lib/src/components/modal/index.js.map +1 -0
- package/lib/src/components/modal/modals/AddDriveModal.d.ts +2 -0
- package/lib/src/components/modal/modals/AddDriveModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/AddDriveModal.js +113 -0
- package/lib/src/components/modal/modals/AddDriveModal.js.map +1 -0
- package/lib/src/components/modal/modals/ClearStorageModal.d.ts +2 -0
- package/lib/src/components/modal/modals/ClearStorageModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/ClearStorageModal.js +35 -0
- package/lib/src/components/modal/modals/ClearStorageModal.js.map +1 -0
- package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts +2 -0
- package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/CookiesPolicyModal.js +16 -0
- package/lib/src/components/modal/modals/CookiesPolicyModal.js.map +1 -0
- package/lib/src/components/modal/modals/CreateDocumentModal.d.ts +2 -0
- package/lib/src/components/modal/modals/CreateDocumentModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/CreateDocumentModal.js +24 -0
- package/lib/src/components/modal/modals/CreateDocumentModal.js.map +1 -0
- package/lib/src/components/modal/modals/DebugSettingsModal.d.ts +2 -0
- package/lib/src/components/modal/modals/DebugSettingsModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/DebugSettingsModal.js +108 -0
- package/lib/src/components/modal/modals/DebugSettingsModal.js.map +1 -0
- package/lib/src/components/modal/modals/DeleteDriveModal.d.ts +2 -0
- package/lib/src/components/modal/modals/DeleteDriveModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/DeleteDriveModal.js +32 -0
- package/lib/src/components/modal/modals/DeleteDriveModal.js.map +1 -0
- package/lib/src/components/modal/modals/DeleteItemModal.d.ts +3 -0
- package/lib/src/components/modal/modals/DeleteItemModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/DeleteItemModal.js +33 -0
- package/lib/src/components/modal/modals/DeleteItemModal.js.map +1 -0
- package/lib/src/components/modal/modals/DisclaimerModal.d.ts +3 -0
- package/lib/src/components/modal/modals/DisclaimerModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/DisclaimerModal.js +12 -0
- package/lib/src/components/modal/modals/DisclaimerModal.js.map +1 -0
- package/lib/src/components/modal/modals/DriveSettingsModal.d.ts +2 -0
- package/lib/src/components/modal/modals/DriveSettingsModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/DriveSettingsModal.js +28 -0
- package/lib/src/components/modal/modals/DriveSettingsModal.js.map +1 -0
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts +2 -0
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js +30 -0
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js.map +1 -0
- package/lib/src/components/modal/modals/SettingsModal.d.ts +3 -0
- package/lib/src/components/modal/modals/SettingsModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/SettingsModal.js +45 -0
- package/lib/src/components/modal/modals/SettingsModal.js.map +1 -0
- package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts +3 -0
- package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts.map +1 -0
- package/lib/src/components/modal/modals/UpgradeDriveModal.js +21 -0
- package/lib/src/components/modal/modals/UpgradeDriveModal.js.map +1 -0
- package/lib/src/components/modal/modals/settings/about.d.ts +2 -0
- package/lib/src/components/modal/modals/settings/about.d.ts.map +1 -0
- package/lib/src/components/modal/modals/settings/about.js +10 -0
- package/lib/src/components/modal/modals/settings/about.js.map +1 -0
- package/lib/src/components/modal/modals/settings/danger-zone.d.ts +2 -0
- package/lib/src/components/modal/modals/settings/danger-zone.d.ts.map +1 -0
- package/lib/src/components/modal/modals/settings/danger-zone.js +15 -0
- package/lib/src/components/modal/modals/settings/danger-zone.js.map +1 -0
- package/lib/src/components/modal/modals/settings/default-editor.d.ts +2 -0
- package/lib/src/components/modal/modals/settings/default-editor.d.ts.map +1 -0
- package/lib/src/components/modal/modals/settings/default-editor.js +18 -0
- package/lib/src/components/modal/modals/settings/default-editor.js.map +1 -0
- package/lib/src/components/modal/modals/settings/package-manager.d.ts +3 -0
- package/lib/src/components/modal/modals/settings/package-manager.d.ts.map +1 -0
- package/lib/src/components/modal/modals/settings/package-manager.js +87 -0
- package/lib/src/components/modal/modals/settings/package-manager.js.map +1 -0
- package/lib/src/components/modal/modals-container.d.ts +2 -0
- package/lib/src/components/modal/modals-container.d.ts.map +1 -0
- package/lib/src/components/modal/modals-container.js +62 -0
- package/lib/src/components/modal/modals-container.js.map +1 -0
- package/lib/src/components/modal/modals-error-boundary.d.ts +18 -0
- package/lib/src/components/modal/modals-error-boundary.d.ts.map +1 -0
- package/lib/src/components/modal/modals-error-boundary.js +22 -0
- package/lib/src/components/modal/modals-error-boundary.js.map +1 -0
- package/lib/src/components/ph-logo.d.ts +2 -0
- package/lib/src/components/ph-logo.d.ts.map +1 -0
- package/lib/src/components/ph-logo.js +7 -0
- package/lib/src/components/ph-logo.js.map +1 -0
- package/lib/src/components/reload-connect-toast.d.ts +2 -0
- package/lib/src/components/reload-connect-toast.d.ts.map +1 -0
- package/lib/src/components/reload-connect-toast.js +7 -0
- package/lib/src/components/reload-connect-toast.js.map +1 -0
- package/lib/src/components/root.d.ts +2 -0
- package/lib/src/components/root.d.ts.map +1 -0
- package/lib/src/components/root.js +8 -0
- package/lib/src/components/root.js.map +1 -0
- package/lib/src/components/router.d.ts +2 -0
- package/lib/src/components/router.d.ts.map +1 -0
- package/lib/src/components/router.js +41 -0
- package/lib/src/components/router.js.map +1 -0
- package/lib/src/components/search-bar.d.ts +2 -0
- package/lib/src/components/search-bar.d.ts.map +1 -0
- package/lib/src/components/search-bar.js +36 -0
- package/lib/src/components/search-bar.js.map +1 -0
- package/lib/src/components/sidebar.d.ts +2 -0
- package/lib/src/components/sidebar.d.ts.map +1 -0
- package/lib/src/components/sidebar.js +27 -0
- package/lib/src/components/sidebar.js.map +1 -0
- package/lib/src/connect.config.d.ts +113 -0
- package/lib/src/connect.config.d.ts.map +1 -0
- package/lib/src/connect.config.js +147 -0
- package/lib/src/connect.config.js.map +1 -0
- package/lib/src/context/index.d.ts +4 -0
- package/lib/src/context/index.d.ts.map +1 -0
- package/lib/src/context/index.js +4 -0
- package/lib/src/context/index.js.map +1 -0
- package/lib/src/context/processor-manager.d.ts +3 -0
- package/lib/src/context/processor-manager.d.ts.map +1 -0
- package/lib/src/context/processor-manager.js +189 -0
- package/lib/src/context/processor-manager.js.map +1 -0
- package/lib/src/context/read-mode.d.ts +2 -0
- package/lib/src/context/read-mode.d.ts.map +1 -0
- package/lib/src/context/read-mode.js +219 -0
- package/lib/src/context/read-mode.js.map +1 -0
- package/lib/src/context/sentry-provider.d.ts +6 -0
- package/lib/src/context/sentry-provider.d.ts.map +1 -0
- package/lib/src/context/sentry-provider.js +6 -0
- package/lib/src/context/sentry-provider.js.map +1 -0
- package/lib/src/feature-flags.d.ts +34 -0
- package/lib/src/feature-flags.d.ts.map +1 -0
- package/lib/src/feature-flags.js +124 -0
- package/lib/src/feature-flags.js.map +1 -0
- package/lib/src/globals.d.ts +9 -0
- package/lib/src/globals.d.ts.map +1 -0
- package/lib/src/globals.js +2 -0
- package/lib/src/globals.js.map +1 -0
- package/lib/src/hmr.d.ts +3 -0
- package/lib/src/hmr.d.ts.map +1 -0
- package/lib/src/hmr.js +2 -0
- package/lib/src/hmr.js.map +1 -0
- package/lib/src/hooks/index.d.ts +10 -0
- package/lib/src/hooks/index.d.ts.map +1 -0
- package/lib/src/hooks/index.js +10 -0
- package/lib/src/hooks/index.js.map +1 -0
- package/lib/src/hooks/useAcceptedCookies.d.ts +9 -0
- package/lib/src/hooks/useAcceptedCookies.d.ts.map +1 -0
- package/lib/src/hooks/useAcceptedCookies.js +34 -0
- package/lib/src/hooks/useAcceptedCookies.js.map +1 -0
- package/lib/src/hooks/useCheckLatestVersion.d.ts +2 -0
- package/lib/src/hooks/useCheckLatestVersion.d.ts.map +1 -0
- package/lib/src/hooks/useCheckLatestVersion.js +33 -0
- package/lib/src/hooks/useCheckLatestVersion.js.map +1 -0
- package/lib/src/hooks/useClientErrorHandler.d.ts +6 -0
- package/lib/src/hooks/useClientErrorHandler.d.ts.map +1 -0
- package/lib/src/hooks/useClientErrorHandler.js +120 -0
- package/lib/src/hooks/useClientErrorHandler.js.map +1 -0
- package/lib/src/hooks/useCookieBanner.d.ts +5 -0
- package/lib/src/hooks/useCookieBanner.d.ts.map +1 -0
- package/lib/src/hooks/useCookieBanner.js +32 -0
- package/lib/src/hooks/useCookieBanner.js.map +1 -0
- package/lib/src/hooks/useInitSentry.d.ts +2 -0
- package/lib/src/hooks/useInitSentry.d.ts.map +1 -0
- package/lib/src/hooks/useInitSentry.js +80 -0
- package/lib/src/hooks/useInitSentry.js.map +1 -0
- package/lib/src/hooks/useNodeActions.d.ts +6 -0
- package/lib/src/hooks/useNodeActions.d.ts.map +1 -0
- package/lib/src/hooks/useNodeActions.js +35 -0
- package/lib/src/hooks/useNodeActions.js.map +1 -0
- package/lib/src/hooks/useUndoRedoShortcuts.d.ts +8 -0
- package/lib/src/hooks/useUndoRedoShortcuts.d.ts.map +1 -0
- package/lib/src/hooks/useUndoRedoShortcuts.js +26 -0
- package/lib/src/hooks/useUndoRedoShortcuts.js.map +1 -0
- package/lib/src/hooks/useWindowSize.d.ts +5 -0
- package/lib/src/hooks/useWindowSize.d.ts.map +1 -0
- package/lib/src/hooks/useWindowSize.js +21 -0
- package/lib/src/hooks/useWindowSize.js.map +1 -0
- package/lib/src/hooks/utils.d.ts +7 -0
- package/lib/src/hooks/utils.d.ts.map +1 -0
- package/lib/src/hooks/utils.js +46 -0
- package/lib/src/hooks/utils.js.map +1 -0
- package/lib/src/i18n/index.d.ts +4 -0
- package/lib/src/i18n/index.d.ts.map +1 -0
- package/lib/src/i18n/index.js +26 -0
- package/lib/src/i18n/index.js.map +1 -0
- package/lib/src/i18n/locales/en.json +114 -0
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.d.ts.map +1 -0
- package/lib/src/index.js +2 -0
- package/lib/src/index.js.map +1 -0
- package/lib/src/main.d.ts +2 -0
- package/lib/src/main.d.ts.map +1 -0
- package/lib/src/main.js +5 -0
- package/lib/src/main.js.map +1 -0
- package/lib/src/pages/content.d.ts +2 -0
- package/lib/src/pages/content.d.ts.map +1 -0
- package/lib/src/pages/content.js +39 -0
- package/lib/src/pages/content.js.map +1 -0
- package/lib/src/pages/demo/atlas-import.d.ts +2 -0
- package/lib/src/pages/demo/atlas-import.d.ts.map +1 -0
- package/lib/src/pages/demo/atlas-import.js +122 -0
- package/lib/src/pages/demo/atlas-import.js.map +1 -0
- package/lib/src/pages/index.d.ts +4 -0
- package/lib/src/pages/index.d.ts.map +1 -0
- package/lib/src/pages/index.js +4 -0
- package/lib/src/pages/index.js.map +1 -0
- package/lib/src/pages/settings.d.ts +4 -0
- package/lib/src/pages/settings.d.ts.map +1 -0
- package/lib/src/pages/settings.js +9 -0
- package/lib/src/pages/settings.js.map +1 -0
- package/lib/src/service-worker.d.ts +2 -0
- package/lib/src/service-worker.d.ts.map +1 -0
- package/lib/src/service-worker.js +58 -0
- package/lib/src/service-worker.js.map +1 -0
- package/lib/src/services/hmr.d.ts +13 -0
- package/lib/src/services/hmr.d.ts.map +1 -0
- package/lib/src/services/hmr.js +85 -0
- package/lib/src/services/hmr.js.map +1 -0
- package/lib/src/services/index.d.ts +10 -0
- package/lib/src/services/index.d.ts.map +1 -0
- package/lib/src/services/index.js +9 -0
- package/lib/src/services/index.js.map +1 -0
- package/lib/src/services/logger.d.ts +2 -0
- package/lib/src/services/logger.d.ts.map +1 -0
- package/lib/src/services/logger.js +28 -0
- package/lib/src/services/logger.js.map +1 -0
- package/lib/src/services/renown/browser.d.ts +2 -0
- package/lib/src/services/renown/browser.d.ts.map +1 -0
- package/lib/src/services/renown/browser.js +6 -0
- package/lib/src/services/renown/browser.js.map +1 -0
- package/lib/src/services/renown/constants.d.ts +130 -0
- package/lib/src/services/renown/constants.d.ts.map +1 -0
- package/lib/src/services/renown/constants.js +41 -0
- package/lib/src/services/renown/constants.js.map +1 -0
- package/lib/src/services/renown/utils.d.ts +7 -0
- package/lib/src/services/renown/utils.d.ts.map +1 -0
- package/lib/src/services/renown/utils.js +20 -0
- package/lib/src/services/renown/utils.js.map +1 -0
- package/lib/src/services/storage/base-storage.d.ts +9 -0
- package/lib/src/services/storage/base-storage.d.ts.map +1 -0
- package/lib/src/services/storage/base-storage.js +21 -0
- package/lib/src/services/storage/base-storage.js.map +1 -0
- package/lib/src/services/storage/browser.d.ts +5 -0
- package/lib/src/services/storage/browser.d.ts.map +1 -0
- package/lib/src/services/storage/browser.js +25 -0
- package/lib/src/services/storage/browser.js.map +1 -0
- package/lib/src/services/storage/types.d.ts +6 -0
- package/lib/src/services/storage/types.d.ts.map +1 -0
- package/lib/src/services/storage/types.js +2 -0
- package/lib/src/services/storage/types.js.map +1 -0
- package/lib/src/services/toast.d.ts +8 -0
- package/lib/src/services/toast.d.ts.map +1 -0
- package/lib/src/services/toast.js +11 -0
- package/lib/src/services/toast.js.map +1 -0
- package/lib/src/store/document-model.d.ts +3 -0
- package/lib/src/store/document-model.d.ts.map +1 -0
- package/lib/src/store/document-model.js +79 -0
- package/lib/src/store/document-model.js.map +1 -0
- package/lib/src/store/editor.d.ts +5 -0
- package/lib/src/store/editor.d.ts.map +1 -0
- package/lib/src/store/editor.js +31 -0
- package/lib/src/store/editor.js.map +1 -0
- package/lib/src/store/external-packages.d.ts +4 -0
- package/lib/src/store/external-packages.d.ts.map +1 -0
- package/lib/src/store/external-packages.js +36 -0
- package/lib/src/store/external-packages.js.map +1 -0
- package/lib/src/store/index.d.ts +7 -0
- package/lib/src/store/index.d.ts.map +1 -0
- package/lib/src/store/index.js +7 -0
- package/lib/src/store/index.js.map +1 -0
- package/lib/src/store/reactor.d.ts +3 -0
- package/lib/src/store/reactor.d.ts.map +1 -0
- package/lib/src/store/reactor.js +177 -0
- package/lib/src/store/reactor.js.map +1 -0
- package/lib/src/store/user.d.ts +2 -0
- package/lib/src/store/user.d.ts.map +1 -0
- package/lib/src/store/user.js +16 -0
- package/lib/src/store/user.js.map +1 -0
- package/lib/src/store/utils.d.ts +2 -0
- package/lib/src/store/utils.d.ts.map +1 -0
- package/lib/src/store/utils.js +59 -0
- package/lib/src/store/utils.js.map +1 -0
- package/lib/src/utils/browser.d.ts +2 -0
- package/lib/src/utils/browser.d.ts.map +1 -0
- package/lib/src/utils/browser.js +9 -0
- package/lib/src/utils/browser.js.map +1 -0
- package/lib/src/utils/document-editor-debug-tools.d.ts +17 -0
- package/lib/src/utils/document-editor-debug-tools.d.ts.map +1 -0
- package/lib/src/utils/document-editor-debug-tools.js +55 -0
- package/lib/src/utils/document-editor-debug-tools.js.map +1 -0
- package/lib/src/utils/drive-preservation.d.ts +19 -0
- package/lib/src/utils/drive-preservation.d.ts.map +1 -0
- package/lib/src/utils/drive-preservation.js +51 -0
- package/lib/src/utils/drive-preservation.js.map +1 -0
- package/lib/src/utils/drive-sections.d.ts +31 -0
- package/lib/src/utils/drive-sections.d.ts.map +1 -0
- package/lib/src/utils/drive-sections.js +63 -0
- package/lib/src/utils/drive-sections.js.map +1 -0
- package/lib/src/utils/index.d.ts +12 -0
- package/lib/src/utils/index.d.ts.map +1 -0
- package/lib/src/utils/index.js +12 -0
- package/lib/src/utils/index.js.map +1 -0
- package/lib/src/utils/join.d.ts +2 -0
- package/lib/src/utils/join.d.ts.map +1 -0
- package/lib/src/utils/join.js +11 -0
- package/lib/src/utils/join.js.map +1 -0
- package/lib/src/utils/openUrl.d.ts +2 -0
- package/lib/src/utils/openUrl.d.ts.map +1 -0
- package/lib/src/utils/openUrl.js +3 -0
- package/lib/src/utils/openUrl.js.map +1 -0
- package/lib/src/utils/path.d.ts +4 -0
- package/lib/src/utils/path.d.ts.map +1 -0
- package/lib/src/utils/path.js +17 -0
- package/lib/src/utils/path.js.map +1 -0
- package/lib/src/utils/reactor.d.ts +6 -0
- package/lib/src/utils/reactor.d.ts.map +1 -0
- package/lib/src/utils/reactor.js +57 -0
- package/lib/src/utils/reactor.js.map +1 -0
- package/lib/src/utils/registerServiceWorker.d.ts +12 -0
- package/lib/src/utils/registerServiceWorker.d.ts.map +1 -0
- package/lib/src/utils/registerServiceWorker.js +97 -0
- package/lib/src/utils/registerServiceWorker.js.map +1 -0
- package/lib/src/utils/signature.d.ts +4 -0
- package/lib/src/utils/signature.d.ts.map +1 -0
- package/lib/src/utils/signature.js +36 -0
- package/lib/src/utils/signature.js.map +1 -0
- package/lib/src/utils/slug.d.ts +2 -0
- package/lib/src/utils/slug.d.ts.map +1 -0
- package/lib/src/utils/slug.js +4 -0
- package/lib/src/utils/slug.js.map +1 -0
- package/lib/src/workers/pglite-worker.d.ts +2 -0
- package/lib/src/workers/pglite-worker.d.ts.map +1 -0
- package/lib/src/workers/pglite-worker.js +32 -0
- package/lib/src/workers/pglite-worker.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/vite.config.d.ts +3 -0
- package/lib/vite.config.d.ts.map +1 -0
- package/lib/vite.config.js +55 -0
- package/lib/vite.config.js.map +1 -0
- package/package.copy.json +165 -0
- package/package.json +126 -66
- package/public/icon.ico +0 -0
- package/public/robots.txt +3 -0
- package/public/settings.png +0 -0
- package/scripts/render-skeleton.ts +8 -10
- package/src/index.css +4 -0
- package/dist/assets/AddDriveModal.CsX1V9k8.js +0 -2
- package/dist/assets/AddDriveModal.CsX1V9k8.js.map +0 -1
- package/dist/assets/AddLocalDriveModal.9wlqUaI7.js +0 -2
- package/dist/assets/AddLocalDriveModal.9wlqUaI7.js.map +0 -1
- package/dist/assets/AddRemoteDriveModal.BViKJcIG.js +0 -2
- package/dist/assets/AddRemoteDriveModal.BViKJcIG.js.map +0 -1
- package/dist/assets/ConfirmationModal.Cwd4p-FQ.js +0 -2
- package/dist/assets/ConfirmationModal.Cwd4p-FQ.js.map +0 -1
- package/dist/assets/CookiesPolicyModal.DBYakGYw.js +0 -2
- package/dist/assets/CookiesPolicyModal.DBYakGYw.js.map +0 -1
- package/dist/assets/CreateDocumentModal.BCLwbl_7.js +0 -2
- package/dist/assets/CreateDocumentModal.BCLwbl_7.js.map +0 -1
- package/dist/assets/DebugSettingsModal.C2JfEGKx.js +0 -7
- package/dist/assets/DebugSettingsModal.C2JfEGKx.js.map +0 -1
- package/dist/assets/DeleteDriveModal.ccJLuz-v.js +0 -2
- package/dist/assets/DeleteDriveModal.ccJLuz-v.js.map +0 -1
- package/dist/assets/DeleteItemModal.lxt16WLJ.js +0 -2
- package/dist/assets/DeleteItemModal.lxt16WLJ.js.map +0 -1
- package/dist/assets/DisclaimerModal.YKaHnRz1.js +0 -2
- package/dist/assets/DisclaimerModal.YKaHnRz1.js.map +0 -1
- package/dist/assets/DriveSettingsModal.DUtXh2J3.js +0 -2
- package/dist/assets/DriveSettingsModal.DUtXh2J3.js.map +0 -1
- package/dist/assets/SettingsModal.NCZyx-LZ.js +0 -2
- package/dist/assets/SettingsModal.NCZyx-LZ.js.map +0 -1
- package/dist/assets/UpgradeDriveModal.Bp1cbwzD.js +0 -2
- package/dist/assets/UpgradeDriveModal.Bp1cbwzD.js.map +0 -1
- package/dist/assets/app-form-input.DrsD0P0g.js +0 -2
- package/dist/assets/app-form-input.DrsD0P0g.js.map +0 -1
- package/dist/assets/atlas-import.S0zyqygI.js +0 -6
- package/dist/assets/atlas-import.S0zyqygI.js.map +0 -1
- package/dist/assets/ccip.DbzT2NeK.js +0 -2
- package/dist/assets/ccip.DbzT2NeK.js.map +0 -1
- package/dist/assets/confirmation-modal.BRg1WqhO.js +0 -2
- package/dist/assets/confirmation-modal.BRg1WqhO.js.map +0 -1
- package/dist/assets/content.BwwSwPoU.js +0 -11
- package/dist/assets/content.BwwSwPoU.js.map +0 -1
- package/dist/assets/creators.Beog8W4R.js +0 -2
- package/dist/assets/creators.Beog8W4R.js.map +0 -1
- package/dist/assets/crypto.DdbxIXEQ.js +0 -2
- package/dist/assets/crypto.DdbxIXEQ.js.map +0 -1
- package/dist/assets/disclosure.g6ojAjR7.js +0 -2
- package/dist/assets/disclosure.g6ojAjR7.js.map +0 -1
- package/dist/assets/document.CskU24Eo.js +0 -2
- package/dist/assets/document.CskU24Eo.js.map +0 -1
- package/dist/assets/documents.WANXuQQw.js +0 -2
- package/dist/assets/documents.WANXuQQw.js.map +0 -1
- package/dist/assets/drive-name.f6u15KL9.js +0 -2
- package/dist/assets/drive-name.f6u15KL9.js.map +0 -1
- package/dist/assets/drive.Bwke9qtc.js +0 -2
- package/dist/assets/drive.Bwke9qtc.js.map +0 -1
- package/dist/assets/drives.BT9_cNvB.js +0 -2
- package/dist/assets/drives.BT9_cNvB.js.map +0 -1
- package/dist/assets/drives.CnLEcvUe.js +0 -2
- package/dist/assets/drives.CnLEcvUe.js.map +0 -1
- package/dist/assets/dropdown-menu.CrltaMAi.js +0 -2
- package/dist/assets/dropdown-menu.CrltaMAi.js.map +0 -1
- package/dist/assets/form-input.CKWaNWHS.js +0 -2
- package/dist/assets/form-input.CKWaNWHS.js.map +0 -1
- package/dist/assets/index.B0KswTVc.js +0 -2
- package/dist/assets/index.B0KswTVc.js.map +0 -1
- package/dist/assets/index.B5Jahs6e.js +0 -210
- package/dist/assets/index.B5Jahs6e.js.map +0 -1
- package/dist/assets/index.B_w9kQDS.js +0 -2
- package/dist/assets/index.B_w9kQDS.js.map +0 -1
- package/dist/assets/index.CJhJIgr2.js +0 -5
- package/dist/assets/index.CJhJIgr2.js.map +0 -1
- package/dist/assets/index.CZGlv_DJ.js +0 -2
- package/dist/assets/index.CZGlv_DJ.js.map +0 -1
- package/dist/assets/index.Cy9Uih6l.js +0 -368
- package/dist/assets/index.Cy9Uih6l.js.map +0 -1
- package/dist/assets/index.DgMWNgC4.js +0 -2
- package/dist/assets/index.DgMWNgC4.js.map +0 -1
- package/dist/assets/index.DnmeBfoc.js +0 -2
- package/dist/assets/index.DnmeBfoc.js.map +0 -1
- package/dist/assets/index.LCmAGl8C.js +0 -114
- package/dist/assets/index.LCmAGl8C.js.map +0 -1
- package/dist/assets/index._iE_O567.js +0 -2
- package/dist/assets/index._iE_O567.js.map +0 -1
- package/dist/assets/index.esm.B0PnDknv.js +0 -2
- package/dist/assets/index.esm.B0PnDknv.js.map +0 -1
- package/dist/assets/index.jCXguwyn.js +0 -2
- package/dist/assets/index.jCXguwyn.js.map +0 -1
- package/dist/assets/index.rWEXHbK2.js +0 -2
- package/dist/assets/index.rWEXHbK2.js.map +0 -1
- package/dist/assets/index.rdGjBzAn.js +0 -2
- package/dist/assets/index.rdGjBzAn.js.map +0 -1
- package/dist/assets/location-info.CUOr58bf.js +0 -2
- package/dist/assets/location-info.CUOr58bf.js.map +0 -1
- package/dist/assets/main-BhSHpqSI.css +0 -1
- package/dist/assets/main.DaFo88Bw.js +0 -857
- package/dist/assets/main.DaFo88Bw.js.map +0 -1
- package/dist/assets/modal.oz3Jhm_k.js +0 -6
- package/dist/assets/modal.oz3Jhm_k.js.map +0 -1
- package/dist/assets/modals.Qs6mizxC.js +0 -2
- package/dist/assets/modals.Qs6mizxC.js.map +0 -1
- package/dist/assets/nodefs-CYAJKQhI.js +0 -2
- package/dist/assets/nodefs-CYAJKQhI.js.map +0 -1
- package/dist/assets/nodefs.DhjGeTvv.js +0 -2
- package/dist/assets/nodefs.DhjGeTvv.js.map +0 -1
- package/dist/assets/opfs-ahp-Br3qpBoL.js +0 -4
- package/dist/assets/opfs-ahp-Br3qpBoL.js.map +0 -1
- package/dist/assets/opfs-ahp.r3uiPDIk.js +0 -4
- package/dist/assets/opfs-ahp.r3uiPDIk.js.map +0 -1
- package/dist/assets/options.BWIJIz-I.js +0 -2
- package/dist/assets/options.BWIJIz-I.js.map +0 -1
- package/dist/assets/pglite-worker-DgAiCanq.js +0 -144
- package/dist/assets/pglite-worker-DgAiCanq.js.map +0 -1
- package/dist/assets/pglite-worker.BmajlV4J.js +0 -2
- package/dist/assets/pglite-worker.BmajlV4J.js.map +0 -1
- package/dist/assets/postgres-CkP7QCDB.data +0 -0
- package/dist/assets/postgres-CyuUVpXN.wasm +0 -0
- package/dist/assets/queue.CnIzwthA.js +0 -2
- package/dist/assets/queue.CnIzwthA.js.map +0 -1
- package/dist/assets/read-required-modal.DpPnKHjB.js +0 -2
- package/dist/assets/read-required-modal.DpPnKHjB.js.map +0 -1
- package/dist/assets/root.ZkWX3Xsc.js +0 -2
- package/dist/assets/root.ZkWX3Xsc.js.map +0 -1
- package/dist/assets/select.DJuJpI3A.js +0 -2
- package/dist/assets/select.DJuJpI3A.js.map +0 -1
- package/dist/assets/sharing-type-form-input.CUG75fNB.js +0 -2
- package/dist/assets/sharing-type-form-input.CUG75fNB.js.map +0 -1
- package/dist/assets/style-GxvX-8si.css +0 -1
- package/dist/assets/toggle.8B3GpI90.js +0 -2
- package/dist/assets/toggle.8B3GpI90.js.map +0 -1
- package/dist/assets/user.7iHZB6Al.js +0 -2
- package/dist/assets/user.7iHZB6Al.js.map +0 -1
- package/dist/assets/utils.BpWye9Xm.js +0 -2
- package/dist/assets/utils.BpWye9Xm.js.map +0 -1
- package/dist/external-packages.js +0 -1
- package/dist/fonts/Inter-Black.ttf +0 -0
- package/dist/fonts/Inter-Bold.ttf +0 -0
- package/dist/fonts/Inter-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter-ExtraLight.ttf +0 -0
- package/dist/fonts/Inter-Light.ttf +0 -0
- package/dist/fonts/Inter-Medium.ttf +0 -0
- package/dist/fonts/Inter-Regular.ttf +0 -0
- package/dist/fonts/Inter-SemiBold.ttf +0 -0
- package/dist/fonts/Inter-Thin.ttf +0 -0
- package/dist/fonts/Inter-VariableFont_slnt,wght.ttf +0 -0
- package/dist/hmr.js +0 -2
- package/dist/hmr.js.map +0 -1
- package/dist/service-worker.js +0 -2
- package/dist/service-worker.js.map +0 -1
- package/dist/swEnv.js +0 -70
- package/dist/vite-envs.sh +0 -494
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.CrltaMAi.js","sources":["../../../../packages/design-system/dist/src/ui/lib/cn.js","../../../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@18.3.7_@types+react@18.3.23__@types+react@_e7e3bd4993d41e946f89b4448c59672a/node_modules/@radix-ui/react-menu/dist/index.mjs","../../../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.1.16_@types+react-dom@18.3.7_@types+react@18.3.23__@typ_f804e2d0a5d9d4e221b66dd2b455c599/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../../../../packages/design-system/dist/src/powerhouse/components/dropdown-menu/dropdown-menu.js","../../../../packages/design-system/dist/src/connect/components/dropdown-menu/dropdown-menu.js"],"sourcesContent":["import { clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\nexport function cn(...inputs) {\n return twMerge(clsx(inputs));\n}\n//# sourceMappingURL=cn.js.map","\"use client\";\n\n// src/menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs, composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar Slot = createSlot(\"MenuContent.ScrollLock\");\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const ii = polygon[i];\n const jj = polygon[j];\n const xi = ii.x;\n const yi = ii.y;\n const xj = jj.x;\n const yj = jj.y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n CheckboxItem,\n Content2 as Content,\n Group,\n Item2 as Item,\n ItemIndicator,\n Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n Portal,\n RadioGroup,\n RadioItem,\n Root3 as Root,\n Separator,\n Sub,\n SubContent,\n SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = (props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DROPDOWN_MENU_NAME\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n};\nDropdownMenu.displayName = DROPDOWN_MENU_NAME;\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }\n);\nDropdownMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DropdownMenuPortal\";\nvar DropdownMenuPortal = (props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nDropdownMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nDropdownMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"DropdownMenuGroup\";\nvar DropdownMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nDropdownMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"DropdownMenuLabel\";\nvar DropdownMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nDropdownMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"DropdownMenuItem\";\nvar DropdownMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nDropdownMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"DropdownMenuCheckboxItem\";\nvar DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nDropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"DropdownMenuRadioGroup\";\nvar DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nDropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"DropdownMenuRadioItem\";\nvar DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nDropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"DropdownMenuItemIndicator\";\nvar DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nDropdownMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"DropdownMenuSeparator\";\nvar DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nDropdownMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"DropdownMenuArrow\";\nvar DropdownMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nDropdownMenuArrow.displayName = ARROW_NAME;\nvar DropdownMenuSub = (props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: \"DropdownMenuSub\"\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nvar SUB_TRIGGER_NAME = \"DropdownMenuSubTrigger\";\nvar DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n});\nDropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"DropdownMenuSubContent\";\nvar DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nDropdownMenuSubContent.displayName = SUB_CONTENT_NAME;\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Content, Item, Label, Portal, Root, Trigger, } from \"@radix-ui/react-dropdown-menu\";\nimport { forwardRef } from \"react\";\nexport const DropdownMenu = Root;\nexport const DropdownMenuTrigger = Trigger;\nexport const DropdownMenuContent = forwardRef(function DropdownMenuContent({ children, ...delegatedProps }, forwardedRef) {\n return (_jsx(Portal, { children: _jsx(Content, { ...delegatedProps, ref: forwardedRef, children: children }) }));\n});\nexport const DropdownMenuLabel = Label;\nexport const DropdownMenuItem = Item;\n//# sourceMappingURL=dropdown-menu.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from \"#powerhouse\";\nimport { twMerge } from \"tailwind-merge\";\nexport function ConnectDropdownMenu(props) {\n const { children, items, open, onItemClick, onOpenChange } = props;\n return (_jsxs(DropdownMenu, { onOpenChange: onOpenChange, open: open, children: [_jsx(DropdownMenuTrigger, { asChild: true, className: \"outline-none\", children: children }), _jsx(DropdownMenuContent, { className: \"modal-shadow cursor-pointer rounded-2xl bg-white text-sm font-medium text-slate-500\", children: items.map(({ id, label, icon, className }) => (_jsxs(DropdownMenuItem, { className: twMerge(\"flex items-center px-5 py-2 outline-none first-of-type:rounded-t-2xl first-of-type:pt-3 last-of-type:rounded-b-2xl last-of-type:pb-3 hover:bg-slate-50\", className), onClick: (e) => e.stopPropagation(), onSelect: () => onItemClick(id), children: [icon ? _jsx(\"span\", { className: \"mr-2 inline-block\", children: icon }) : null, label] }, id))) })] }));\n}\n//# sourceMappingURL=dropdown-menu.js.map"],"names":["cn","inputs","twMerge","clsx","SELECTION_KEYS","FIRST_KEYS","LAST_KEYS","FIRST_LAST_KEYS","SUB_OPEN_KEYS","SUB_CLOSE_KEYS","MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenuContext","createMenuScope","createContextScope","createPopperScope","createRovingFocusGroupScope","usePopperScope","useRovingFocusGroupScope","MenuProvider","useMenuContext","MenuRootProvider","useMenuRootContext","Menu","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","React","isUsingKeyboardRef","handleOpenChange","useCallbackRef","direction","useDirection","handleKeyDown","handlePointer","jsx","PopperPrimitive.Root","ANCHOR_NAME","MenuAnchor","forwardedRef","anchorProps","PopperPrimitive.Anchor","PORTAL_NAME","PortalProvider","usePortalContext","MenuPortal","forceMount","container","context","Presence","PortalPrimitive","CONTENT_NAME","MenuContentProvider","useMenuContentContext","MenuContent","portalContext","contentProps","rootContext","MenuRootContentModal","MenuRootContentNonModal","ref","composedRefs","useComposedRefs","hideOthers","MenuContentImpl","composeEventHandlers","event","Slot","createSlot","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","RemoveScroll","scrollLockWrapperProps","handleTypeaheadSearch","key","search","items","item","currentItem","currentMatch","_a","values","nextMatch","getNextMatch","newItem","_b","updateSearch","value","useFocusGuards","isPointerMovingToSubmenu","isPointerInGraceArea","intent","FocusScope","DismissableLayer","RovingFocusGroup.Root","PopperPrimitive.Content","getOpenState","isKeyDownInside","isModifierKey","isCharacterKey","candidateNodes","focusFirst","whenMouse","target","pointerXHasChanged","newDir","GROUP_NAME","MenuGroup","groupProps","Primitive","LABEL_NAME","MenuLabel","labelProps","ITEM_NAME","ITEM_SELECT","MenuItem","disabled","onSelect","itemProps","contentContext","isPointerDownRef","handleSelect","menuItem","itemSelectEvent","dispatchDiscreteCustomEvent","MenuItemImpl","isTypingAhead","textValue","isFocused","setIsFocused","textContent","setTextContent","RovingFocusGroup.Item","CHECKBOX_ITEM_NAME","MenuCheckboxItem","checked","onCheckedChange","checkboxItemProps","ItemIndicatorProvider","isIndeterminate","getCheckedState","RADIO_GROUP_NAME","RadioGroupProvider","useRadioGroupContext","MenuRadioGroup","onValueChange","handleValueChange","RADIO_ITEM_NAME","MenuRadioItem","radioItemProps","ITEM_INDICATOR_NAME","useItemIndicatorContext","MenuItemIndicator","itemIndicatorProps","indicatorContext","SEPARATOR_NAME","MenuSeparator","separatorProps","ARROW_NAME","MenuArrow","arrowProps","PopperPrimitive.Arrow","SUB_NAME","MenuSubProvider","useMenuSubContext","SUB_TRIGGER_NAME","MenuSubTrigger","subContext","openTimerRef","onPointerGraceIntentChange","scope","clearOpenTimer","pointerGraceTimer","composeRefs","contentRect","side","rightSide","bleed","contentNearEdge","contentFarEdge","SUB_CONTENT_NAME","MenuSubContent","subContentProps","isCloseKey","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","wrapArray","array","startIndex","_","index","normalizedSearch","char","currentMatchIndex","wrappedValues","v","isPointInPolygon","point","polygon","x","y","inside","i","j","ii","jj","xi","yi","xj","yj","area","cursorPos","handler","Root3","Anchor2","Portal","Content2","Group","Label","Item2","CheckboxItem","RadioGroup","RadioItem","ItemIndicator","Separator","Arrow2","SubTrigger","SubContent","DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","__scopeDropdownMenu","openProp","defaultOpen","menuScope","triggerRef","setOpen","useControllableState","useId","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","triggerProps","MenuPrimitive.Anchor","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","DropdownMenuContent","hasInteractedOutsideRef","MenuPrimitive.Content","originalEvent","ctrlLeftClick","isRightClick","DropdownMenuGroup","MenuPrimitive.Group","DropdownMenuLabel","MenuPrimitive.Label","DropdownMenuItem","MenuPrimitive.Item","DropdownMenuCheckboxItem","MenuPrimitive.CheckboxItem","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","DropdownMenuRadioItem","MenuPrimitive.RadioItem","INDICATOR_NAME","DropdownMenuItemIndicator","MenuPrimitive.ItemIndicator","DropdownMenuSeparator","MenuPrimitive.Separator","DropdownMenuArrow","MenuPrimitive.Arrow","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","DropdownMenuSubContent","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Root","forwardRef","delegatedProps","_jsx","Content","Item","ConnectDropdownMenu","onItemClick","_jsxs","id","label","icon","className","e"],"mappings":"6bAEO,SAASA,MAAMC,EAAQ,CAC1B,OAAOC,GAAQC,GAAKF,CAAM,CAAC,CAC/B,CCqBA,IAAIG,GAAiB,CAAC,QAAS,GAAG,EAC9BC,GAAa,CAAC,YAAa,SAAU,MAAM,EAC3CC,GAAY,CAAC,UAAW,WAAY,KAAK,EACzCC,GAAkB,CAAC,GAAGF,GAAY,GAAGC,EAAS,EAC9CE,GAAgB,CAClB,IAAK,CAAC,GAAGJ,GAAgB,YAAY,EACrC,IAAK,CAAC,GAAGA,GAAgB,WAAW,CACtC,EACIK,GAAiB,CACnB,IAAK,CAAC,WAAW,EACjB,IAAK,CAAC,YAAY,CACpB,EACIC,EAAY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@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsxs as n,jsx as r}from"react/jsx-runtime";import{forwardRef as g}from"react";import{y as t,W as b}from"./main.DaFo88Bw.js";const w=g(function(s,d){const{icon:a,errorMessage:o,isDirty:i,containerClassName:l,inputClassName:m,errorMessageClassName:c,hideErrors:p=!1,...f}=s,x=s.type??"text",e=!!o;return n("div",{children:[n("div",{className:t("mb-1 flex gap-2 rounded-md border border-gray-200 bg-gray-50 p-3 text-black placeholder:text-gray-50",e&&"border-red-900",l),children:[a&&r("span",{className:b((!i||e)&&"text-slate-200"),children:a}),r("input",{...f,className:t("w-full bg-transparent font-semibold outline-none",m),ref:d,type:x})]}),r("p",{className:t("hidden min-h-4 text-xs text-red-900",e&&"block",p&&"hidden",c),children:o})]})});export{w as F};
|
|
2
|
-
//# sourceMappingURL=form-input.CKWaNWHS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-input.CKWaNWHS.js","sources":["../../../../packages/design-system/dist/src/connect/components/form-input/form-input.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef, } from \"react\";\nimport { twJoin, twMerge } from \"tailwind-merge\";\nexport const FormInput = forwardRef(function FormInput(props, ref) {\n const { icon, errorMessage, isDirty, containerClassName, inputClassName, errorMessageClassName, hideErrors = false, ...delegatedProps } = props;\n const type = props.type ?? \"text\";\n const isError = !!errorMessage;\n return (_jsxs(\"div\", { children: [_jsxs(\"div\", { className: twMerge(\"mb-1 flex gap-2 rounded-md border border-gray-200 bg-gray-50 p-3 text-black placeholder:text-gray-50\", isError && \"border-red-900\", containerClassName), children: [icon && (_jsx(\"span\", { className: twJoin((!isDirty || isError) && \"text-slate-200\"), children: icon })), _jsx(\"input\", { ...delegatedProps, className: twMerge(\"w-full bg-transparent font-semibold outline-none\", inputClassName), ref: ref, type: type })] }), _jsx(\"p\", { className: twMerge(\"hidden min-h-4 text-xs text-red-900\", isError && \"block\", hideErrors && \"hidden\", errorMessageClassName), children: errorMessage })] }));\n});\n//# sourceMappingURL=form-input.js.map"],"names":["FormInput","forwardRef","props","ref","icon","errorMessage","isDirty","containerClassName","inputClassName","errorMessageClassName","hideErrors","delegatedProps","type","isError","_jsxs","twMerge","_jsx","twJoin"],"mappings":"mIAGY,MAACA,EAAYC,EAAW,SAAmBC,EAAOC,EAAK,CAC/D,KAAM,CAAE,KAAAC,EAAM,aAAAC,EAAc,QAAAC,EAAS,mBAAAC,EAAoB,eAAAC,EAAgB,sBAAAC,EAAuB,WAAAC,EAAa,GAAO,GAAGC,CAAc,EAAKT,EACpIU,EAAOV,EAAM,MAAQ,OACrBW,EAAU,CAAC,CAACR,EAClB,OAAQS,EAAM,MAAO,CAAE,SAAU,CAACA,EAAM,MAAO,CAAE,UAAWC,EAAQ,uGAAwGF,GAAW,iBAAkBN,CAAkB,EAAG,SAAU,CAACH,GAASY,EAAK,OAAQ,CAAE,UAAWC,GAAQ,CAACX,GAAWO,IAAY,gBAAgB,EAAG,SAAUT,CAAI,CAAE,EAAIY,EAAK,QAAS,CAAE,GAAGL,EAAgB,UAAWI,EAAQ,mDAAoDP,CAAc,EAAG,IAAKL,EAAK,KAAMS,CAAI,CAAE,CAAC,CAAC,CAAE,EAAGI,EAAK,IAAK,CAAE,UAAWD,EAAQ,sCAAuCF,GAAW,QAASH,GAAc,SAAUD,CAAqB,EAAG,SAAUJ,CAAY,CAAE,CAAC,CAAC,CAAE,CACrpB,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import*as i from"react";import{I as o}from"./main.DaFo88Bw.js";import{jsx as t}from"react/jsx-runtime";var d=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l="VisuallyHidden",e=i.forwardRef((r,a)=>t(o.span,{...r,ref:a,style:{...d,...r.style}}));e.displayName=l;var n=e;export{n as R};
|
|
2
|
-
//# sourceMappingURL=index.B0KswTVc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.B0KswTVc.js","sources":["../../../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@18.3.7_@types+react@18.3.23__@ty_bd769e2c7ddceeff6e63be21c84dfac7/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"],"sourcesContent":["// src/visually-hidden.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar VISUALLY_HIDDEN_STYLES = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n});\nvar NAME = \"VisuallyHidden\";\nvar VisuallyHidden = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...props,\n ref: forwardedRef,\n style: { ...VISUALLY_HIDDEN_STYLES, ...props.style }\n }\n );\n }\n);\nVisuallyHidden.displayName = NAME;\nvar Root = VisuallyHidden;\nexport {\n Root,\n VISUALLY_HIDDEN_STYLES,\n VisuallyHidden\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["VISUALLY_HIDDEN_STYLES","NAME","VisuallyHidden","React","props","forwardedRef","jsx","Primitive","Root"],"mappings":"uGAIA,IAAIA,EAAyB,OAAO,OAAO,CAEzC,SAAU,WACV,OAAQ,EACR,MAAO,EACP,OAAQ,EACR,QAAS,EACT,OAAQ,GACR,SAAU,SACV,KAAM,mBACN,WAAY,SACZ,SAAU,QACZ,CAAC,EACGC,EAAO,iBACPC,EAAiBC,EAAM,WACzB,CAACC,EAAOC,IACiBC,EACrBC,EAAU,KACV,CACE,GAAGH,EACH,IAAKC,EACL,MAAO,CAAE,GAAGL,EAAwB,GAAGI,EAAM,KAAK,CAC1D,CACA,CAEA,EACAF,EAAe,YAAcD,EAC1B,IAACO,EAAON","x_google_ignoreList":[0]}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import{bc as s,bd as R,be as A,al as x,bf as M,bg as N,q as L,bh as P,r as C}from"./main.DaFo88Bw.js";import{bm as Pt,by as Ct,bj as wt,bk as kt,b0 as vt,bt as Ut,bu as yt,bv as jt,c as Gt,v as Ht,bw as Xt,bx as Vt,bz as $t,bA as Ft,g as Wt,bB as Bt,bi as zt,bn as qt,bC as Qt,bo as Zt,bD as Jt,bp as Kt,bq as Yt,bE as eo,t as to,bF as oo,br as ro,bG as no,bH as ao,bs as io,bl as so}from"./main.DaFo88Bw.js";import{A as O,U as S,D as g,R as h,a as I,b as f,c as b,d as _,e as w,f as k,g as v,h as U,i as y,j,k as G,l as H,m as X,r as V,n as $,o as F,p as W,s as B,q as z,t as q,u as Q,v as Z,w as J,x as K,y as Y,z as ee,B as te,C as oe,E as re,F as ne,G as ae,H as ie,I as se,J as pe,K as le,L as de,M as me,N as ce,O as ue,P as Ee,Q as Oe,S as Se,T as ge,V as he,W as Ie,X as fe,Y as be,Z as _e,_ as De,$ as Te,a0 as Re,a1 as Ae,a2 as xe,a3 as Me,a4 as Ne,a5 as Le,a6 as Pe,a7 as Ce,a8 as we,a9 as ke,aa as ve,ab as Ue,ac as ye,ad as je,ae as Ge,af as He,ag as Xe,ah as Ve,ai as $e,aj as Fe,ak as We,al as Be}from"./creators.Beog8W4R.js";import{c as ze}from"./utils.BpWye9Xm.js";import{v as lo,a as mo,b as co,d as uo,e as Eo}from"./utils.BpWye9Xm.js";import"react/jsx-runtime";import"react-dom/client";import"react";import"react-dom";const qe=t=>s("ADD_CHANGE_LOG_ITEM",{...t},void 0,O,"global"),Qe=t=>s("UPDATE_CHANGE_LOG_ITEM",{...t},void 0,S,"global"),Ze=t=>s("DELETE_CHANGE_LOG_ITEM",{...t},void 0,g,"global"),Je=t=>s("REORDER_CHANGE_LOG_ITEMS",{...t},void 0,h,"global"),Ke=()=>s("RELEASE_NEW_VERSION",{},void 0,void 0,"global"),Ye=t=>s("ADD_OPERATION_EXAMPLE",{...t},void 0,I,"global"),et=t=>s("UPDATE_OPERATION_EXAMPLE",{...t},void 0,f,"global"),tt=t=>s("DELETE_OPERATION_EXAMPLE",{...t},void 0,b,"global"),ot=t=>s("REORDER_OPERATION_EXAMPLES",{...t},void 0,_,"global"),rt=Object.freeze(Object.defineProperty({__proto__:null,addChangeLogItem:qe,addModule:w,addOperation:k,addOperationError:v,addOperationExample:Ye,addStateExample:U,deleteChangeLogItem:Ze,deleteModule:y,deleteOperation:j,deleteOperationError:G,deleteOperationExample:tt,deleteStateExample:H,moveOperation:X,releaseNewVersion:Ke,reorderChangeLogItems:Je,reorderModuleOperations:V,reorderModules:$,reorderOperationErrors:F,reorderOperationExamples:ot,reorderStateExamples:W,setAuthorName:B,setAuthorWebsite:z,setInitialState:q,setModelDescription:Q,setModelExtension:Z,setModelId:J,setModelName:K,setModuleDescription:Y,setModuleName:ee,setOperationDescription:te,setOperationErrorCode:oe,setOperationErrorDescription:re,setOperationErrorName:ne,setOperationErrorTemplate:ae,setOperationName:ie,setOperationReducer:se,setOperationSchema:pe,setOperationScope:le,setOperationTemplate:de,setStateSchema:me,updateChangeLogItem:Qe,updateOperationExample:et,updateStateExample:ce},Symbol.toStringTag,{value:"Module"})),l={setModelNameOperation(t,e){t.name=e.input.name},setModelIdOperation(t,e){t.id=e.input.id},setModelExtensionOperation(t,e){t.extension=e.input.extension},setModelDescriptionOperation(t,e){t.description=e.input.description},setAuthorNameOperation(t,e){t.author=t.author||{name:"",website:null},t.author.name=e.input.authorName},setAuthorWebsiteOperation(t,e){t.author=t.author||{name:"",website:null},t.author.website=e.input.authorWebsite}},nt=t=>{const e={};return t.forEach((r,o)=>e[r]=o),(r,o)=>(e[o.id]||999999)-(e[r.id]||999999)},m={addModuleOperation(t,e){t.specifications[t.specifications.length-1].modules.push({id:e.input.id,name:e.input.name,description:e.input.description||"",operations:[]})},setModuleNameOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].id===e.input.id&&(r.modules[o].name=e.input.name||"")},setModuleDescriptionOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].id===e.input.id&&(r.modules[o].description=e.input.description||"")},deleteModuleOperation(t,e){const r=t.specifications[t.specifications.length-1];r.modules=r.modules.filter(o=>o.id!=e.input.id)},reorderModulesOperation(t,e){t.specifications[t.specifications.length-1].modules.sort(nt(e.input.order))}},at=t=>{const e={};return t.forEach((r,o)=>e[r]=o),(r,o)=>(e[o.id]||999999)-(e[r.id]||999999)},p={addOperationErrorOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.operationId&&r.modules[o].operations[n].errors.push({id:e.input.id,name:e.input.errorName||"",code:e.input.errorCode||"",description:e.input.errorDescription||"",template:e.input.errorTemplate||""})},setOperationErrorCodeOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)for(let a=0;a<r.modules[o].operations[n].errors.length;a++)r.modules[o].operations[n].errors[a].id==e.input.id&&(r.modules[o].operations[n].errors[a].code=e.input.errorCode||"")},setOperationErrorNameOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)for(let a=0;a<r.modules[o].operations[n].errors.length;a++)r.modules[o].operations[n].errors[a].id==e.input.id&&(r.modules[o].operations[n].errors[a].name=e.input.errorName||"")},setOperationErrorDescriptionOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)for(let a=0;a<r.modules[o].operations[n].errors.length;a++)r.modules[o].operations[n].errors[a].id==e.input.id&&(r.modules[o].operations[n].errors[a].description=e.input.errorDescription||"")},setOperationErrorTemplateOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)for(let a=0;a<r.modules[o].operations[n].errors.length;a++)r.modules[o].operations[n].errors[a].id==e.input.id&&(r.modules[o].operations[n].errors[a].template=e.input.errorTemplate||"")},deleteOperationErrorOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].errors=r.modules[o].operations[n].errors.filter(a=>a.id!=e.input.id)},reorderOperationErrorsOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.operationId&&r.modules[o].operations[n].errors.sort(at(e.input.order))}},it=t=>{const e={};return t.forEach((r,o)=>e[r]=o),(r,o)=>(e[o.id]||999999)-(e[r.id]||999999)},u={addOperationExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.operationId&&r.modules[o].operations[n].examples.push({id:e.input.id,value:e.input.example})},updateOperationExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)for(let a=0;a<r.modules[o].operations[n].examples.length;a++)r.modules[o].operations[n].examples[a].id==e.input.id&&(r.modules[o].operations[n].examples[a].value=e.input.example)},deleteOperationExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].examples=r.modules[o].operations[n].examples.filter(a=>a.id!=e.input.id)},reorderOperationExamplesOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.operationId&&r.modules[o].operations[n].examples.sort(it(e.input.order))}},st=t=>{const e={};return t.forEach((r,o)=>e[r]=o),(r,o)=>(e[o.id]||999999)-(e[r.id]||999999)},i={addOperationOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].id==e.input.moduleId&&r.modules[o].operations.push({id:e.input.id,name:e.input.name,description:e.input.description||"",schema:e.input.schema||"",template:e.input.template||e.input.description||"",reducer:e.input.reducer||"",errors:[],examples:[],scope:e.input.scope||"global"})},setOperationNameOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].name=e.input.name||"")},setOperationScopeOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].scope=e.input.scope||"global")},setOperationSchemaOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].schema=e.input.schema||"")},setOperationDescriptionOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].description=e.input.description||"")},setOperationTemplateOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].template=e.input.template||"")},setOperationReducerOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)for(let n=0;n<r.modules[o].operations.length;n++)r.modules[o].operations[n].id==e.input.id&&(r.modules[o].operations[n].reducer=e.input.reducer||"")},moveOperationOperation(t,e){const r=[],o=t.specifications[t.specifications.length-1];for(let n=0;n<o.modules.length;n++)o.modules[n].operations=o.modules[n].operations.filter(a=>a.id==e.input.operationId?(r.push(a),!1):!0);for(let n=0;n<o.modules.length;n++)o.modules[n].id==e.input.newModuleId&&o.modules[n].operations.push(...r)},deleteOperationOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].operations=r.modules[o].operations.filter(n=>n.id!=e.input.id)},reorderModuleOperationsOperation(t,e){const r=t.specifications[t.specifications.length-1];for(let o=0;o<r.modules.length;o++)r.modules[o].id==e.input.moduleId&&r.modules[o].operations.sort(st(e.input.order))}},pt=t=>{const e={};return t.forEach((r,o)=>e[r]=o),(r,o)=>(e[o.id]||999999)-(e[r.id]||999999)},d={setStateSchemaOperation(t,e){const r=t.specifications[t.specifications.length-1];if(Object.keys(r.state).includes(e.input.scope))r.state[e.input.scope].schema=e.input.schema;else throw new Error(`Invalid scope: ${e.input.scope}`)},setInitialStateOperation(t,e){const r=t.specifications[t.specifications.length-1];if(Object.keys(r.state).includes(e.input.scope))r.state[e.input.scope].initialValue=e.input.initialValue;else throw new Error(`Invalid scope: ${e.input.scope}`)},addStateExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];if(Object.keys(r.state).includes(e.input.scope))r.state[e.input.scope].examples.push({id:e.input.id,value:e.input.example});else throw new Error(`Invalid scope: ${e.input.scope}`)},updateStateExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];if(!Object.keys(r.state).includes(e.input.scope))throw new Error(`Invalid scope: ${e.input.scope}`);const o=r.state[e.input.scope].examples;for(let n=0;n<o.length;n++)o[n].id==e.input.id&&(o[n].value=e.input.newExample)},deleteStateExampleOperation(t,e){const r=t.specifications[t.specifications.length-1];if(Object.keys(r.state).includes(e.input.scope))r.state[e.input.scope].examples=r.state[e.input.scope].examples.filter(o=>o.id!=e.input.id);else throw new Error(`Invalid scope: ${e.input.scope}`)},reorderStateExamplesOperation(t,e){const r=t.specifications[t.specifications.length-1];if(Object.keys(r.state).includes(e.input.scope))r.state[e.input.scope].examples.sort(pt(e.input.order));else throw new Error(`Invalid scope: ${e.input.scope}`)}},c={addChangeLogItemOperation(t,e){throw new Error('Reducer "addChangeLogItemOperation" not yet implemented')},updateChangeLogItemOperation(t,e){throw new Error('Reducer "updateChangeLogItemOperation" not yet implemented')},deleteChangeLogItemOperation(t,e){throw new Error('Reducer "deleteChangeLogItemOperation" not yet implemented')},reorderChangeLogItemsOperation(t,e){throw new Error('Reducer "reorderChangeLogItemsOperation" not yet implemented')},releaseNewVersionOperation(t,e){throw new Error('Reducer "releaseNewVersionOperation" not yet implemented')}},lt=(t,e)=>{if(A(e))return t;switch(e.type){case"SET_MODEL_NAME":Be().parse(e.input),l.setModelNameOperation(t.global,e);break;case"SET_MODEL_ID":We().parse(e.input),l.setModelIdOperation(t.global,e);break;case"SET_MODEL_EXTENSION":Fe().parse(e.input),l.setModelExtensionOperation(t.global,e);break;case"SET_MODEL_DESCRIPTION":$e().parse(e.input),l.setModelDescriptionOperation(t.global,e);break;case"SET_AUTHOR_NAME":Ve().parse(e.input),l.setAuthorNameOperation(t.global,e);break;case"SET_AUTHOR_WEBSITE":Xe().parse(e.input),l.setAuthorWebsiteOperation(t.global,e);break;case"ADD_CHANGE_LOG_ITEM":O().parse(e.input),c.addChangeLogItemOperation(t.global,e);break;case"UPDATE_CHANGE_LOG_ITEM":S().parse(e.input),c.updateChangeLogItemOperation(t.global,e);break;case"DELETE_CHANGE_LOG_ITEM":g().parse(e.input),c.deleteChangeLogItemOperation(t.global,e);break;case"REORDER_CHANGE_LOG_ITEMS":h().parse(e.input),c.reorderChangeLogItemsOperation(t.global,e);break;case"RELEASE_NEW_VERSION":if(Object.keys(e.input).length>0)throw new Error("Expected empty input for action RELEASE_NEW_VERSION");c.releaseNewVersionOperation(t.global,e);break;case"ADD_MODULE":He().parse(e.input),m.addModuleOperation(t.global,e);break;case"SET_MODULE_NAME":Ge().parse(e.input),m.setModuleNameOperation(t.global,e);break;case"SET_MODULE_DESCRIPTION":je().parse(e.input),m.setModuleDescriptionOperation(t.global,e);break;case"DELETE_MODULE":ye().parse(e.input),m.deleteModuleOperation(t.global,e);break;case"REORDER_MODULES":Ue().parse(e.input),m.reorderModulesOperation(t.global,e);break;case"ADD_OPERATION_ERROR":ve().parse(e.input),p.addOperationErrorOperation(t.global,e);break;case"SET_OPERATION_ERROR_CODE":ke().parse(e.input),p.setOperationErrorCodeOperation(t.global,e);break;case"SET_OPERATION_ERROR_NAME":we().parse(e.input),p.setOperationErrorNameOperation(t.global,e);break;case"SET_OPERATION_ERROR_DESCRIPTION":Ce().parse(e.input),p.setOperationErrorDescriptionOperation(t.global,e);break;case"SET_OPERATION_ERROR_TEMPLATE":Pe().parse(e.input),p.setOperationErrorTemplateOperation(t.global,e);break;case"DELETE_OPERATION_ERROR":Le().parse(e.input),p.deleteOperationErrorOperation(t.global,e);break;case"REORDER_OPERATION_ERRORS":Ne().parse(e.input),p.reorderOperationErrorsOperation(t.global,e);break;case"ADD_OPERATION_EXAMPLE":I().parse(e.input),u.addOperationExampleOperation(t.global,e);break;case"UPDATE_OPERATION_EXAMPLE":f().parse(e.input),u.updateOperationExampleOperation(t.global,e);break;case"DELETE_OPERATION_EXAMPLE":b().parse(e.input),u.deleteOperationExampleOperation(t.global,e);break;case"REORDER_OPERATION_EXAMPLES":_().parse(e.input),u.reorderOperationExamplesOperation(t.global,e);break;case"ADD_OPERATION":Me().parse(e.input),i.addOperationOperation(t.global,e);break;case"SET_OPERATION_NAME":xe().parse(e.input),i.setOperationNameOperation(t.global,e);break;case"SET_OPERATION_SCOPE":Ae().parse(e.input),i.setOperationScopeOperation(t.global,e);break;case"SET_OPERATION_SCHEMA":Re().parse(e.input),i.setOperationSchemaOperation(t.global,e);break;case"SET_OPERATION_DESCRIPTION":Te().parse(e.input),i.setOperationDescriptionOperation(t.global,e);break;case"SET_OPERATION_TEMPLATE":De().parse(e.input),i.setOperationTemplateOperation(t.global,e);break;case"SET_OPERATION_REDUCER":_e().parse(e.input),i.setOperationReducerOperation(t.global,e);break;case"MOVE_OPERATION":be().parse(e.input),i.moveOperationOperation(t.global,e);break;case"DELETE_OPERATION":fe().parse(e.input),i.deleteOperationOperation(t.global,e);break;case"REORDER_MODULE_OPERATIONS":Ie().parse(e.input),i.reorderModuleOperationsOperation(t.global,e);break;case"SET_STATE_SCHEMA":he().parse(e.input),d.setStateSchemaOperation(t.global,e);break;case"SET_INITIAL_STATE":ge().parse(e.input),d.setInitialStateOperation(t.global,e);break;case"ADD_STATE_EXAMPLE":Se().parse(e.input),d.addStateExampleOperation(t.global,e);break;case"UPDATE_STATE_EXAMPLE":Oe().parse(e.input),d.updateStateExampleOperation(t.global,e);break;case"DELETE_STATE_EXAMPLE":Ee().parse(e.input),d.deleteStateExampleOperation(t.global,e);break;case"REORDER_STATE_EXAMPLES":ue().parse(e.input),d.reorderStateExamplesOperation(t.global,e);break;default:return t}},E=R(lt),dt={id:"",name:"",extension:"",description:"",author:{name:"",website:""},specifications:[{version:1,changeLog:[],state:{global:{schema:"",initialValue:"",examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[]}]},mt={},D="phdm",ct="powerhouse/document-model",T=t=>({...x(),global:{...dt,...(t==null?void 0:t.global)??{}},local:{...mt,...(t==null?void 0:t.local)??{}}}),ut=t=>{const e=M(T,t);return e.header.documentType=ct,e},Et=(t,e,r)=>N(t,e,D,r),Ot=(t,e)=>L(t,e),St=t=>P(t,E),gt=t=>C(t,E),ht=Object.freeze(Object.defineProperty({__proto__:null,createDocument:ut,createState:T,fileExtension:D,loadFromFile:St,loadFromInput:gt,saveToFile:Et,saveToFileHandle:Ot},Symbol.toStringTag,{value:"Module"})),It=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ft={id:"powerhouse/document-model",name:"DocumentModel",extension:"phdm",description:"The Powerhouse Document Model describes the state and operations of a document type.",author:{name:"Powerhouse",website:"https://www.powerhouse.inc/"},specifications:[{version:1,changeLog:[],state:{global:{schema:`type CodeExample {
|
|
2
|
-
id: ID!
|
|
3
|
-
value: String!
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type OperationError {
|
|
7
|
-
id: ID!
|
|
8
|
-
code: String
|
|
9
|
-
name: String
|
|
10
|
-
description: String
|
|
11
|
-
template: String
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type Operation {
|
|
15
|
-
id: ID!
|
|
16
|
-
name: String
|
|
17
|
-
schema: String
|
|
18
|
-
description: String
|
|
19
|
-
template: String
|
|
20
|
-
errors: [OperationError!]!
|
|
21
|
-
examples: [CodeExample!]!
|
|
22
|
-
reducer: String
|
|
23
|
-
scope: String
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type Module {
|
|
27
|
-
id: ID!
|
|
28
|
-
name: String!
|
|
29
|
-
description: String
|
|
30
|
-
operations: [Operation!]!
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type State {
|
|
34
|
-
schema: String!
|
|
35
|
-
initialValue: String!
|
|
36
|
-
examples: [CodeExample!]!
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
type ScopeState {
|
|
40
|
-
global: State!
|
|
41
|
-
local: State!
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type Author {
|
|
45
|
-
name: String!
|
|
46
|
-
website: String
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type DocumentSpecification {
|
|
50
|
-
version: Int!
|
|
51
|
-
state: ScopeState!
|
|
52
|
-
modules: [Module!]!
|
|
53
|
-
changeLog: [String!]!
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
type DocumentModelState {
|
|
57
|
-
name: String!
|
|
58
|
-
id: String!
|
|
59
|
-
extension: String!
|
|
60
|
-
description: String!
|
|
61
|
-
author: Author!
|
|
62
|
-
specifications: [DocumentSpecification!]!
|
|
63
|
-
}`,initialValue:`{
|
|
64
|
-
"id": "",
|
|
65
|
-
"name": "",
|
|
66
|
-
"extension": "",
|
|
67
|
-
"description": "",
|
|
68
|
-
"author": {
|
|
69
|
-
"name": "",
|
|
70
|
-
"website": ""
|
|
71
|
-
},
|
|
72
|
-
"specifications": [
|
|
73
|
-
{
|
|
74
|
-
"version": 1,
|
|
75
|
-
"changeLog": [],
|
|
76
|
-
"state": {
|
|
77
|
-
"schema": "",
|
|
78
|
-
"initialValue": "",
|
|
79
|
-
"examples": []
|
|
80
|
-
},
|
|
81
|
-
"modules": []
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}`,examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[{name:"header",operations:[{name:"SET_MODEL_NAME",id:"",description:"Sets the name of the document model",schema:`input SetModelNameInput {
|
|
85
|
-
name: String!
|
|
86
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_ID",id:"",description:"Sets the unique identifier for the document model",schema:`input SetModelIdInput {
|
|
87
|
-
id: String!
|
|
88
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_EXTENSION",id:"",description:"Sets the file extension associated with this document model",schema:`input SetModelExtensionInput {
|
|
89
|
-
extension: String!
|
|
90
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODEL_DESCRIPTION",id:"",description:"Sets the description text for the document model",schema:`input SetModelDescriptionInput {
|
|
91
|
-
description: String!
|
|
92
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_AUTHOR_NAME",id:"",description:"Sets the name of the document model author",schema:`input SetAuthorNameInput {
|
|
93
|
-
authorName: String!
|
|
94
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_AUTHOR_WEBSITE",id:"",description:"Sets the website URL of the document model author",schema:`input SetAuthorWebsiteInput {
|
|
95
|
-
authorWebsite: String!
|
|
96
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"versioning",operations:[{name:"ADD_CHANGE_LOG_ITEM",id:"",description:"Adds a new item to the document model changelog",schema:`input AddChangeLogItemInput {
|
|
97
|
-
id: ID!
|
|
98
|
-
insertBefore: ID
|
|
99
|
-
content: String!
|
|
100
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_CHANGE_LOG_ITEM",id:"",description:"Updates an existing changelog item",schema:`input UpdateChangeLogItemInput {
|
|
101
|
-
id: ID!
|
|
102
|
-
newContent: String!
|
|
103
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_CHANGE_LOG_ITEM",id:"",description:"Removes an item from the document model changelog",schema:`input DeleteChangeLogItemInput {
|
|
104
|
-
id: ID!
|
|
105
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_CHANGE_LOG_ITEMS",id:"",description:"Changes the order of changelog items",schema:`input ReorderChangeLogItemsInput {
|
|
106
|
-
order: [ID!]!
|
|
107
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"RELEASE_NEW_VERSION",schema:null,id:"",description:"Creates a new version of the document model specification",template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"module",operations:[{name:"ADD_MODULE",id:"",description:"Adds a new module to the document model specification",schema:`input AddModuleInput {
|
|
108
|
-
id: ID!
|
|
109
|
-
name: String!
|
|
110
|
-
description: String
|
|
111
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODULE_NAME",id:"",description:"Sets the name of an existing module",schema:`input SetModuleNameInput {
|
|
112
|
-
id: ID!
|
|
113
|
-
name: String
|
|
114
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_MODULE_DESCRIPTION",id:"",description:"Sets the description of an existing module",schema:`input SetModuleDescriptionInput {
|
|
115
|
-
id: ID!
|
|
116
|
-
description: String
|
|
117
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_MODULE",id:"",description:"Removes a module from the document model specification",schema:`input DeleteModuleInput {
|
|
118
|
-
id: ID!
|
|
119
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_MODULES",id:"",description:"Changes the order of modules in the document model specification",schema:`input ReorderModulesInput {
|
|
120
|
-
order: [ID!]!
|
|
121
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation-error",operations:[{name:"ADD_OPERATION_ERROR",id:"",description:"Adds a new error definition to an operation",schema:`input AddOperationErrorInput {
|
|
122
|
-
operationId: ID!
|
|
123
|
-
id: ID!
|
|
124
|
-
errorCode: String
|
|
125
|
-
errorName: String
|
|
126
|
-
errorDescription: String
|
|
127
|
-
errorTemplate: String
|
|
128
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_CODE",id:"",description:"Sets the error code for an operation error",schema:`input SetOperationErrorCodeInput {
|
|
129
|
-
id: ID!
|
|
130
|
-
errorCode: String
|
|
131
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_NAME",id:"",description:"Sets the name of an operation error",schema:`input SetOperationErrorNameInput {
|
|
132
|
-
id: ID!
|
|
133
|
-
errorName: String
|
|
134
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_DESCRIPTION",id:"",description:"Sets the description of an operation error",schema:`input SetOperationErrorDescriptionInput {
|
|
135
|
-
id: ID!
|
|
136
|
-
errorDescription: String
|
|
137
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_ERROR_TEMPLATE",id:"",description:"Sets the template for an operation error",schema:`input SetOperationErrorTemplateInput {
|
|
138
|
-
id: ID!
|
|
139
|
-
errorTemplate: String
|
|
140
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION_ERROR",id:"",description:"Removes an error definition from an operation",schema:`input DeleteOperationErrorInput {
|
|
141
|
-
id: ID!
|
|
142
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_OPERATION_ERRORS",id:"",description:"Changes the order of error definitions for an operation",schema:`input ReorderOperationErrorsInput {
|
|
143
|
-
operationId: ID!
|
|
144
|
-
order: [ID!]!
|
|
145
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation-example",operations:[{name:"ADD_OPERATION_EXAMPLE",id:"",description:"Adds a new code example to an operation",schema:`input AddOperationExampleInput {
|
|
146
|
-
operationId: ID!
|
|
147
|
-
id: ID!
|
|
148
|
-
example: String!
|
|
149
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_OPERATION_EXAMPLE",id:"",description:"Updates an existing code example for an operation",schema:`input UpdateOperationExampleInput {
|
|
150
|
-
id: ID!
|
|
151
|
-
example: String!
|
|
152
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION_EXAMPLE",id:"",description:"Removes a code example from an operation",schema:`input DeleteOperationExampleInput {
|
|
153
|
-
id: ID!
|
|
154
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_OPERATION_EXAMPLES",id:"",description:"Changes the order of code examples for an operation",schema:`input ReorderOperationExamplesInput {
|
|
155
|
-
operationId: ID!
|
|
156
|
-
order: [ID!]!
|
|
157
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"operation",operations:[{name:"ADD_OPERATION",id:"",description:"Adds a new operation to a module",schema:`input AddOperationInput {
|
|
158
|
-
moduleId: ID!
|
|
159
|
-
id: ID!
|
|
160
|
-
name: String!
|
|
161
|
-
schema: String
|
|
162
|
-
description: String
|
|
163
|
-
template: String
|
|
164
|
-
reducer: String
|
|
165
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_NAME",id:"",description:"Sets the name of an operation",schema:`input SetOperationNameInput {
|
|
166
|
-
id: ID!
|
|
167
|
-
name: String
|
|
168
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_SCHEMA",id:"",description:"Sets the GraphQL schema definition for an operation's input",schema:`input SetOperationSchemaInput {
|
|
169
|
-
id: ID!
|
|
170
|
-
schema: String
|
|
171
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_DESCRIPTION",id:"",description:"Sets the description of an operation",schema:`input SetOperationDescriptionInput {
|
|
172
|
-
id: ID!
|
|
173
|
-
description: String
|
|
174
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_TEMPLATE",id:"",description:"Sets the template code for an operation",schema:`input SetOperationTemplateInput {
|
|
175
|
-
id: ID!
|
|
176
|
-
template: String
|
|
177
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_OPERATION_REDUCER",id:"",description:"Sets the reducer function code for an operation",schema:`input SetOperationReducerInput {
|
|
178
|
-
id: ID!
|
|
179
|
-
reducer: String
|
|
180
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"MOVE_OPERATION",id:"",description:"Moves an operation from one module to another",schema:`input MoveOperationInput {
|
|
181
|
-
operationId: ID!
|
|
182
|
-
newModuleId: ID!
|
|
183
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_OPERATION",id:"",description:"Removes an operation from a module",schema:`input DeleteOperationInput {
|
|
184
|
-
id: ID!
|
|
185
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_MODULE_OPERATIONS",id:"",description:"Changes the order of operations within a module",schema:`input ReorderModuleOperationsInput {
|
|
186
|
-
moduleId: ID!
|
|
187
|
-
order: [ID!]!
|
|
188
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""},{name:"state",operations:[{name:"SET_STATE_SCHEMA",id:"",description:"Sets the GraphQL schema definition for document state",schema:`input SetStateSchemaInput {
|
|
189
|
-
scope: String!
|
|
190
|
-
schema: String!
|
|
191
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"SET_INITIAL_STATE",id:"",description:"Sets the initial state value for a document scope",schema:`input SetInitialStateInput {
|
|
192
|
-
scope: String!
|
|
193
|
-
initialValue: String!
|
|
194
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"ADD_STATE_EXAMPLE",id:"",description:"Adds a new state example to a document scope",schema:`input AddStateExampleInput {
|
|
195
|
-
scope: String!
|
|
196
|
-
id: ID!
|
|
197
|
-
insertBefore: ID
|
|
198
|
-
example: String!
|
|
199
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"UPDATE_STATE_EXAMPLE",id:"",description:"Updates an existing state example for a document scope",schema:`input UpdateStateExampleInput {
|
|
200
|
-
scope: String!
|
|
201
|
-
id: ID!
|
|
202
|
-
newExample: String!
|
|
203
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"DELETE_STATE_EXAMPLE",id:"",description:"Removes a state example from a document scope",schema:`input DeleteStateExampleInput {
|
|
204
|
-
scope: String!
|
|
205
|
-
id: ID!
|
|
206
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"},{name:"REORDER_STATE_EXAMPLES",id:"",description:"Changes the order of state examples for a document scope",schema:`input ReorderStateExamplesInput {
|
|
207
|
-
scope: String!
|
|
208
|
-
order: [ID!]!
|
|
209
|
-
}`,template:"",reducer:"",examples:[],errors:[],scope:"global"}],id:"",description:""}]}]},Mt={reducer:E,documentModel:ft,actions:{...rt,...It},utils:{...ht,...ze}};export{Pt as actions,w as addModule,k as addOperation,v as addOperationError,Ct as attachBranch,M as baseCreateDocument,P as baseLoadFromFile,C as baseLoadFromInput,N as baseSaveToFile,L as baseSaveToFileHandle,wt as buildOperationSignature,kt as buildOperationSignatureMessage,vt as buildSignedAction,s as createAction,Ut as createAuthState,yt as createBaseState,ut as createDocument,jt as createDocumentState,Gt as createPresignedHeader,R as createReducer,T as createState,Ht as createZip,Xt as defaultAuthState,x as defaultBaseState,Vt as defaultDocumentState,y as deleteModule,j as deleteOperation,G as deleteOperationError,Mt as documentModelDocumentModelModule,St as documentModelLoadFromFile,E as documentModelReducer,$t as garbageCollect,Ft as garbageCollectDocumentOperations,Wt as generateId,Bt as groupOperationsByScope,zt as hashDocumentStateForScope,A as isDocumentAction,qt as loadState,Qt as merge,Zt as noop,Jt as precedes,Kt as prune,Yt as redo,eo as removeExistingOperations,to as replayDocument,oo as reshuffleByTimestamp,B as setAuthorName,z as setAuthorWebsite,q as setInitialState,Q as setModelDescription,Z as setModelExtension,J as setModelId,K as setModelName,ee as setModuleName,ro as setName,te as setOperationDescription,ne as setOperationErrorName,ie as setOperationName,pe as setOperationSchema,me as setStateSchema,no as skipHeaderOperations,ao as sortOperations,io as undo,so as validateHeader,lo as validateInitialState,mo as validateModule,co as validateModuleOperation,uo as validateModules,Eo as validateStateSchemaName};
|
|
210
|
-
//# sourceMappingURL=index.B5Jahs6e.js.map
|