@burdenoff/microfe-devportal 2026.510.110
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/README.md +12 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/__tests__/utils/renderWithProviders.d.ts +32 -0
- package/dist/__tests__/utils/renderWithProviders.d.ts.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/dev/main.d.ts +8 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/devportal/AdminDevportalRoot.d.ts +17 -0
- package/dist/devportal/AdminDevportalRoot.d.ts.map +1 -0
- package/dist/devportal/AdminDevportalRoot.js +63 -0
- package/dist/devportal/AdminDevportalRoot.js.map +1 -0
- package/dist/devportal/AdminDevportalRoutes.d.ts +2 -0
- package/dist/devportal/AdminDevportalRoutes.d.ts.map +1 -0
- package/dist/devportal/AdminDevportalRoutes.js +41 -0
- package/dist/devportal/AdminDevportalRoutes.js.map +1 -0
- package/dist/devportal/DevportalRoot.d.ts +30 -0
- package/dist/devportal/DevportalRoot.d.ts.map +1 -0
- package/dist/devportal/DevportalRoot.js +138 -0
- package/dist/devportal/DevportalRoot.js.map +1 -0
- package/dist/devportal/DevportalRoutes.d.ts +18 -0
- package/dist/devportal/DevportalRoutes.d.ts.map +1 -0
- package/dist/devportal/DevportalRoutes.js +174 -0
- package/dist/devportal/DevportalRoutes.js.map +1 -0
- package/dist/devportal/components/AppCard.d.ts +35 -0
- package/dist/devportal/components/AppCard.d.ts.map +1 -0
- package/dist/devportal/components/AppCard.js +145 -0
- package/dist/devportal/components/AppCard.js.map +1 -0
- package/dist/devportal/components/ConfirmDialog.d.ts +29 -0
- package/dist/devportal/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/devportal/components/ConfirmDialog.js +154 -0
- package/dist/devportal/components/ConfirmDialog.js.map +1 -0
- package/dist/devportal/components/DataTable.d.ts +41 -0
- package/dist/devportal/components/DataTable.d.ts.map +1 -0
- package/dist/devportal/components/DataTable.js +126 -0
- package/dist/devportal/components/DataTable.js.map +1 -0
- package/dist/devportal/components/EmptyState.d.ts +15 -0
- package/dist/devportal/components/EmptyState.d.ts.map +1 -0
- package/dist/devportal/components/EmptyState.js +28 -0
- package/dist/devportal/components/EmptyState.js.map +1 -0
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts +10 -0
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +1 -0
- package/dist/devportal/components/FeatureFlaggedRoute.js +29 -0
- package/dist/devportal/components/FeatureFlaggedRoute.js.map +1 -0
- package/dist/devportal/components/FormField.d.ts +70 -0
- package/dist/devportal/components/FormField.d.ts.map +1 -0
- package/dist/devportal/components/FormField.js +177 -0
- package/dist/devportal/components/FormField.js.map +1 -0
- package/dist/devportal/components/GrantDelegationModal.d.ts +23 -0
- package/dist/devportal/components/GrantDelegationModal.d.ts.map +1 -0
- package/dist/devportal/components/GrantDelegationModal.js +359 -0
- package/dist/devportal/components/GrantDelegationModal.js.map +1 -0
- package/dist/devportal/components/LoadingState.d.ts +31 -0
- package/dist/devportal/components/LoadingState.d.ts.map +1 -0
- package/dist/devportal/components/LoadingState.js +32 -0
- package/dist/devportal/components/LoadingState.js.map +1 -0
- package/dist/devportal/components/PageLayout.d.ts +28 -0
- package/dist/devportal/components/PageLayout.d.ts.map +1 -0
- package/dist/devportal/components/PageLayout.js +63 -0
- package/dist/devportal/components/PageLayout.js.map +1 -0
- package/dist/devportal/components/PermissionGuard.d.ts +15 -0
- package/dist/devportal/components/PermissionGuard.d.ts.map +1 -0
- package/dist/devportal/components/PermissionGuard.js +36 -0
- package/dist/devportal/components/PermissionGuard.js.map +1 -0
- package/dist/devportal/components/SecretDisplay.d.ts +32 -0
- package/dist/devportal/components/SecretDisplay.d.ts.map +1 -0
- package/dist/devportal/components/SecretDisplay.js +119 -0
- package/dist/devportal/components/SecretDisplay.js.map +1 -0
- package/dist/devportal/components/SelectionCheckbox.d.ts +11 -0
- package/dist/devportal/components/SelectionCheckbox.d.ts.map +1 -0
- package/dist/devportal/components/SelectionCheckbox.js +26 -0
- package/dist/devportal/components/SelectionCheckbox.js.map +1 -0
- package/dist/devportal/components/StatCard.d.ts +27 -0
- package/dist/devportal/components/StatCard.d.ts.map +1 -0
- package/dist/devportal/components/StatCard.js +54 -0
- package/dist/devportal/components/StatCard.js.map +1 -0
- package/dist/devportal/components/StatusBadge.d.ts +33 -0
- package/dist/devportal/components/StatusBadge.d.ts.map +1 -0
- package/dist/devportal/components/StatusBadge.js +49 -0
- package/dist/devportal/components/StatusBadge.js.map +1 -0
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts +11 -0
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +1 -0
- package/dist/devportal/components/TelemetryErrorBoundary.js +49 -0
- package/dist/devportal/components/TelemetryErrorBoundary.js.map +1 -0
- package/dist/devportal/components/index.d.ts +20 -0
- package/dist/devportal/components/index.d.ts.map +1 -0
- package/dist/devportal/components/index.js +14 -0
- package/dist/devportal/constants/permissions.d.ts +90 -0
- package/dist/devportal/constants/permissions.d.ts.map +1 -0
- package/dist/devportal/constants/permissions.js +65 -0
- package/dist/devportal/constants/permissions.js.map +1 -0
- package/dist/devportal/events/index.d.ts +19 -0
- package/dist/devportal/events/index.d.ts.map +1 -0
- package/dist/devportal/events/index.js +28 -0
- package/dist/devportal/events/index.js.map +1 -0
- package/dist/devportal/hooks/DevPortalProvider.d.ts +18 -0
- package/dist/devportal/hooks/DevPortalProvider.d.ts.map +1 -0
- package/dist/devportal/hooks/DevPortalProvider.js +14 -0
- package/dist/devportal/hooks/DevPortalProvider.js.map +1 -0
- package/dist/devportal/hooks/index.d.ts +10 -0
- package/dist/devportal/hooks/index.d.ts.map +1 -0
- package/dist/devportal/hooks/index.js +4 -0
- package/dist/devportal/hooks/useGraphQL.d.ts +56 -0
- package/dist/devportal/hooks/useGraphQL.d.ts.map +1 -0
- package/dist/devportal/hooks/useGraphQL.js +223 -0
- package/dist/devportal/hooks/useGraphQL.js.map +1 -0
- package/dist/devportal/hooks/usePermission.d.ts +24 -0
- package/dist/devportal/hooks/usePermission.d.ts.map +1 -0
- package/dist/devportal/hooks/usePermission.js +20 -0
- package/dist/devportal/hooks/usePermission.js.map +1 -0
- package/dist/devportal/index.d.ts +36 -0
- package/dist/devportal/index.d.ts.map +1 -0
- package/dist/devportal/index.js +12 -0
- package/dist/devportal/pages/AdminReviewPage.d.ts +4 -0
- package/dist/devportal/pages/AdminReviewPage.d.ts.map +1 -0
- package/dist/devportal/pages/AdminReviewPage.js +344 -0
- package/dist/devportal/pages/AdminReviewPage.js.map +1 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +4 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.js +349 -0
- package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -0
- package/dist/devportal/pages/ApiKeysPage.d.ts +12 -0
- package/dist/devportal/pages/ApiKeysPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApiKeysPage.js +481 -0
- package/dist/devportal/pages/ApiKeysPage.js.map +1 -0
- package/dist/devportal/pages/AppLogsPage.d.ts +4 -0
- package/dist/devportal/pages/AppLogsPage.d.ts.map +1 -0
- package/dist/devportal/pages/AppLogsPage.js +196 -0
- package/dist/devportal/pages/AppLogsPage.js.map +1 -0
- package/dist/devportal/pages/ApplicationDetailPage.d.ts +7 -0
- package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationDetailPage.js +1269 -0
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -0
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts +4 -0
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationVersionsPage.js +384 -0
- package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -0
- package/dist/devportal/pages/ApplicationsPage.d.ts +10 -0
- package/dist/devportal/pages/ApplicationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/ApplicationsPage.js +357 -0
- package/dist/devportal/pages/ApplicationsPage.js.map +1 -0
- package/dist/devportal/pages/CreateApiKeyPage.d.ts +11 -0
- package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateApiKeyPage.js +285 -0
- package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -0
- package/dist/devportal/pages/CreateApplicationPage.d.ts +7 -0
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateApplicationPage.js +422 -0
- package/dist/devportal/pages/CreateApplicationPage.js.map +1 -0
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts +10 -0
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateOAuthClientPage.js +251 -0
- package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -0
- package/dist/devportal/pages/CreateOrganizationPage.d.ts +7 -0
- package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateOrganizationPage.js +499 -0
- package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -0
- package/dist/devportal/pages/CreateWebhookPage.d.ts +4 -0
- package/dist/devportal/pages/CreateWebhookPage.d.ts.map +1 -0
- package/dist/devportal/pages/CreateWebhookPage.js +283 -0
- package/dist/devportal/pages/CreateWebhookPage.js.map +1 -0
- package/dist/devportal/pages/DashboardPage.d.ts +10 -0
- package/dist/devportal/pages/DashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/DashboardPage.js +257 -0
- package/dist/devportal/pages/DashboardPage.js.map +1 -0
- package/dist/devportal/pages/DelegationsPage.d.ts +12 -0
- package/dist/devportal/pages/DelegationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/DelegationsPage.js +602 -0
- package/dist/devportal/pages/DelegationsPage.js.map +1 -0
- package/dist/devportal/pages/DocumentationPage.d.ts +4 -0
- package/dist/devportal/pages/DocumentationPage.d.ts.map +1 -0
- package/dist/devportal/pages/DocumentationPage.js +349 -0
- package/dist/devportal/pages/DocumentationPage.js.map +1 -0
- package/dist/devportal/pages/EditApplicationPage.d.ts +7 -0
- package/dist/devportal/pages/EditApplicationPage.d.ts.map +1 -0
- package/dist/devportal/pages/EditApplicationPage.js +569 -0
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -0
- package/dist/devportal/pages/ListingPreviewPage.d.ts +4 -0
- package/dist/devportal/pages/ListingPreviewPage.d.ts.map +1 -0
- package/dist/devportal/pages/ListingPreviewPage.js +353 -0
- package/dist/devportal/pages/ListingPreviewPage.js.map +1 -0
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts +10 -0
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/OAuthClientDetailPage.js +332 -0
- package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -0
- package/dist/devportal/pages/OAuthClientsPage.d.ts +11 -0
- package/dist/devportal/pages/OAuthClientsPage.d.ts.map +1 -0
- package/dist/devportal/pages/OAuthClientsPage.js +289 -0
- package/dist/devportal/pages/OAuthClientsPage.js.map +1 -0
- package/dist/devportal/pages/OrganizationDetailPage.d.ts +7 -0
- package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationDetailPage.js +635 -0
- package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -0
- package/dist/devportal/pages/OrganizationMembersPage.d.ts +4 -0
- package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationMembersPage.js +559 -0
- package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -0
- package/dist/devportal/pages/OrganizationsPage.d.ts +10 -0
- package/dist/devportal/pages/OrganizationsPage.d.ts.map +1 -0
- package/dist/devportal/pages/OrganizationsPage.js +199 -0
- package/dist/devportal/pages/OrganizationsPage.js.map +1 -0
- package/dist/devportal/pages/PublishPage.d.ts +4 -0
- package/dist/devportal/pages/PublishPage.d.ts.map +1 -0
- package/dist/devportal/pages/PublishPage.js +349 -0
- package/dist/devportal/pages/PublishPage.js.map +1 -0
- package/dist/devportal/pages/PublisherProfilePage.d.ts +12 -0
- package/dist/devportal/pages/PublisherProfilePage.d.ts.map +1 -0
- package/dist/devportal/pages/PublisherProfilePage.js +258 -0
- package/dist/devportal/pages/PublisherProfilePage.js.map +1 -0
- package/dist/devportal/pages/ResourcesPage.d.ts +4 -0
- package/dist/devportal/pages/ResourcesPage.d.ts.map +1 -0
- package/dist/devportal/pages/ResourcesPage.js +536 -0
- package/dist/devportal/pages/ResourcesPage.js.map +1 -0
- package/dist/devportal/pages/RevenueDashboardPage.d.ts +4 -0
- package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +1 -0
- package/dist/devportal/pages/RevenueRedirectPage.d.ts +4 -0
- package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +1 -0
- package/dist/devportal/pages/RevenueRedirectPage.js +14 -0
- package/dist/devportal/pages/RevenueRedirectPage.js.map +1 -0
- package/dist/devportal/pages/SettingsPage.d.ts +4 -0
- package/dist/devportal/pages/SettingsPage.d.ts.map +1 -0
- package/dist/devportal/pages/SettingsPage.js +365 -0
- package/dist/devportal/pages/SettingsPage.js.map +1 -0
- package/dist/devportal/pages/StoreSubmissionPage.d.ts +4 -0
- package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +1 -0
- package/dist/devportal/pages/StoreSubmissionPage.js +333 -0
- package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -0
- package/dist/devportal/pages/WebhookDetailPage.d.ts +4 -0
- package/dist/devportal/pages/WebhookDetailPage.d.ts.map +1 -0
- package/dist/devportal/pages/WebhookDetailPage.js +283 -0
- package/dist/devportal/pages/WebhookDetailPage.js.map +1 -0
- package/dist/devportal/pages/WebhooksPage.d.ts +10 -0
- package/dist/devportal/pages/WebhooksPage.d.ts.map +1 -0
- package/dist/devportal/pages/WebhooksPage.js +454 -0
- package/dist/devportal/pages/WebhooksPage.js.map +1 -0
- package/dist/devportal/providers/DevportalProvider.d.ts +13 -0
- package/dist/devportal/providers/DevportalProvider.d.ts.map +1 -0
- package/dist/devportal/providers/DevportalProvider.js +44 -0
- package/dist/devportal/providers/DevportalProvider.js.map +1 -0
- package/dist/devportal/store/devportalStore.d.ts +60 -0
- package/dist/devportal/store/devportalStore.d.ts.map +1 -0
- package/dist/devportal/store/devportalStore.js +93 -0
- package/dist/devportal/store/devportalStore.js.map +1 -0
- package/dist/devportal/types/index.d.ts +682 -0
- package/dist/devportal/types/index.d.ts.map +1 -0
- package/dist/devportal/types/index.js +107 -0
- package/dist/devportal/types/index.js.map +1 -0
- package/dist/devportal/utils/cn.d.ts +8 -0
- package/dist/devportal/utils/cn.d.ts.map +1 -0
- package/dist/devportal/utils/cn.js +10 -0
- package/dist/devportal/utils/cn.js.map +1 -0
- package/dist/devportal/utils/constants.d.ts +107 -0
- package/dist/devportal/utils/constants.d.ts.map +1 -0
- package/dist/devportal/utils/constants.js +64 -0
- package/dist/devportal/utils/constants.js.map +1 -0
- package/dist/devportal/utils/i18n.d.ts +13 -0
- package/dist/devportal/utils/i18n.d.ts.map +1 -0
- package/dist/devportal/utils/i18n.js +17 -0
- package/dist/devportal/utils/i18n.js.map +1 -0
- package/dist/devportal/utils/recaptcha.d.ts +2 -0
- package/dist/devportal/utils/recaptcha.d.ts.map +1 -0
- package/dist/devportal/utils/recaptcha.js +6 -0
- package/dist/devportal/utils/recaptcha.js.map +1 -0
- package/dist/generated/global-operations.d.ts +6237 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +1898 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +20716 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +46 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +27 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53363 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +24 -0
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -0
- package/dist/node_modules/@apollo/client/errors/ServerError.js +17 -0
- package/dist/node_modules/@apollo/client/errors/ServerError.js.map +1 -0
- package/dist/node_modules/@apollo/client/errors/utils.js +16 -0
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending.js +8 -0
- package/dist/node_modules/d3-array/src/ascending.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect.js +10 -0
- package/dist/node_modules/d3-array/src/bisect.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector.js +43 -0
- package/dist/node_modules/d3-array/src/bisector.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending.js +8 -0
- package/dist/node_modules/d3-array/src/descending.js.map +1 -0
- package/dist/node_modules/d3-array/src/max.js +14 -0
- package/dist/node_modules/d3-array/src/max.js.map +1 -0
- package/dist/node_modules/d3-array/src/min.js +14 -0
- package/dist/node_modules/d3-array/src/min.js.map +1 -0
- package/dist/node_modules/d3-array/src/number.js +15 -0
- package/dist/node_modules/d3-array/src/number.js.map +1 -0
- package/dist/node_modules/d3-array/src/quantile.js +25 -0
- package/dist/node_modules/d3-array/src/quantile.js.map +1 -0
- package/dist/node_modules/d3-array/src/quickselect.js +26 -0
- package/dist/node_modules/d3-array/src/quickselect.js.map +1 -0
- package/dist/node_modules/d3-array/src/range.js +10 -0
- package/dist/node_modules/d3-array/src/range.js.map +1 -0
- package/dist/node_modules/d3-array/src/sort.js +17 -0
- package/dist/node_modules/d3-array/src/sort.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks.js +34 -0
- package/dist/node_modules/d3-array/src/ticks.js.map +1 -0
- package/dist/node_modules/d3-color/src/color.js +291 -0
- package/dist/node_modules/d3-color/src/color.js.map +1 -0
- package/dist/node_modules/d3-color/src/define.js +13 -0
- package/dist/node_modules/d3-color/src/define.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent.js +9 -0
- package/dist/node_modules/d3-format/src/exponent.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +13 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +11 -0
- package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +12 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +13 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +29 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +20 -0
- package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +23 -0
- package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity.js +8 -0
- package/dist/node_modules/d3-format/src/identity.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale.js +86 -0
- package/dist/node_modules/d3-format/src/locale.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +9 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +9 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +9 -0
- package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array.js +15 -0
- package/dist/node_modules/d3-interpolate/src/array.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/basis.js +16 -0
- package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +13 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color.js +25 -0
- package/dist/node_modules/d3-interpolate/src/color.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +6 -0
- package/dist/node_modules/d3-interpolate/src/constant.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date.js +11 -0
- package/dist/node_modules/d3-interpolate/src/date.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number.js +10 -0
- package/dist/node_modules/d3-interpolate/src/number.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +16 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/object.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +19 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round.js +10 -0
- package/dist/node_modules/d3-interpolate/src/round.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string.js +28 -0
- package/dist/node_modules/d3-interpolate/src/string.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value.js +18 -0
- package/dist/node_modules/d3-interpolate/src/value.js.map +1 -0
- package/dist/node_modules/d3-path/src/path.js +65 -0
- package/dist/node_modules/d3-path/src/path.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band.js +52 -0
- package/dist/node_modules/d3-scale/src/band.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant.js +10 -0
- package/dist/node_modules/d3-scale/src/constant.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous.js +73 -0
- package/dist/node_modules/d3-scale/src/continuous.js.map +1 -0
- package/dist/node_modules/d3-scale/src/diverging.js +82 -0
- package/dist/node_modules/d3-scale/src/diverging.js.map +1 -0
- package/dist/node_modules/d3-scale/src/identity.js +20 -0
- package/dist/node_modules/d3-scale/src/identity.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init.js +29 -0
- package/dist/node_modules/d3-scale/src/init.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear.js +36 -0
- package/dist/node_modules/d3-scale/src/linear.js.map +1 -0
- package/dist/node_modules/d3-scale/src/log.js +77 -0
- package/dist/node_modules/d3-scale/src/log.js.map +1 -0
- package/dist/node_modules/d3-scale/src/nice.js +10 -0
- package/dist/node_modules/d3-scale/src/nice.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/pow.js.map +1 -0
- package/dist/node_modules/d3-scale/src/quantile.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js.map +1 -0
- package/dist/node_modules/d3-scale/src/quantize.js +33 -0
- package/dist/node_modules/d3-scale/src/quantize.js.map +1 -0
- package/dist/node_modules/d3-scale/src/radial.js +39 -0
- package/dist/node_modules/d3-scale/src/radial.js.map +1 -0
- package/dist/node_modules/d3-scale/src/sequential.js +67 -0
- package/dist/node_modules/d3-scale/src/sequential.js.map +1 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +30 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -0
- package/dist/node_modules/d3-scale/src/symlog.js +30 -0
- package/dist/node_modules/d3-scale/src/symlog.js.map +1 -0
- package/dist/node_modules/d3-scale/src/threshold.js +25 -0
- package/dist/node_modules/d3-scale/src/threshold.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +31 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -0
- package/dist/node_modules/d3-scale/src/time.js +47 -0
- package/dist/node_modules/d3-scale/src/time.js.map +1 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +19 -0
- package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area.js +55 -0
- package/dist/node_modules/d3-shape/src/area.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array.js +8 -0
- package/dist/node_modules/d3-shape/src/array.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant.js +10 -0
- package/dist/node_modules/d3-shape/src/constant.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +49 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +40 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +94 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +39 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +47 -0
- package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line.js +30 -0
- package/dist/node_modules/d3-shape/src/line.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math.js +8 -0
- package/dist/node_modules/d3-shape/src/math.js.map +1 -0
- package/dist/node_modules/d3-shape/src/noop.js +6 -0
- package/dist/node_modules/d3-shape/src/noop.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +15 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +8 -0
- package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +15 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +21 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/order/none.js +9 -0
- package/dist/node_modules/d3-shape/src/order/none.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path.js +19 -0
- package/dist/node_modules/d3-shape/src/path.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point.js +11 -0
- package/dist/node_modules/d3-shape/src/point.js.map +1 -0
- package/dist/node_modules/d3-shape/src/stack.js +34 -0
- package/dist/node_modules/d3-shape/src/stack.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js +15 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol.js +23 -0
- package/dist/node_modules/d3-shape/src/symbol.js.map +1 -0
- package/dist/node_modules/d3-time/src/day.js +21 -0
- package/dist/node_modules/d3-time/src/day.js.map +1 -0
- package/dist/node_modules/d3-time/src/duration.js +6 -0
- package/dist/node_modules/d3-time/src/duration.js.map +1 -0
- package/dist/node_modules/d3-time/src/hour.js +19 -0
- package/dist/node_modules/d3-time/src/hour.js.map +1 -0
- package/dist/node_modules/d3-time/src/interval.js +28 -0
- package/dist/node_modules/d3-time/src/interval.js.map +1 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/millisecond.js.map +1 -0
- package/dist/node_modules/d3-time/src/minute.js +19 -0
- package/dist/node_modules/d3-time/src/minute.js.map +1 -0
- package/dist/node_modules/d3-time/src/month.js +18 -0
- package/dist/node_modules/d3-time/src/month.js.map +1 -0
- package/dist/node_modules/d3-time/src/second.js +13 -0
- package/dist/node_modules/d3-time/src/second.js.map +1 -0
- package/dist/node_modules/d3-time/src/ticks.js +125 -0
- package/dist/node_modules/d3-time/src/ticks.js.map +1 -0
- package/dist/node_modules/d3-time/src/week.js +25 -0
- package/dist/node_modules/d3-time/src/week.js.map +1 -0
- package/dist/node_modules/d3-time/src/year.js +26 -0
- package/dist/node_modules/d3-time/src/year.js.map +1 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +62 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -0
- package/dist/node_modules/d3-time-format/src/locale.js +490 -0
- package/dist/node_modules/d3-time-format/src/locale.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +9 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +384 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +45 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +42 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +10 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +25 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/date-fns/constants.js +7 -0
- package/dist/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +8 -0
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +12 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/date-fns/format.js +61 -0
- package/dist/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +13 -0
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +16 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getWeek.js +13 -0
- package/dist/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +17 -0
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/isDate.js +8 -0
- package/dist/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/date-fns/isValid.js +12 -0
- package/dist/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +24 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +20 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +13 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +204 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +126 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +22 -0
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +12 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +11 -0
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +11 -0
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/toDate.js +9 -0
- package/dist/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/decimal.js-light/decimal.js +378 -0
- package/dist/node_modules/decimal.js-light/decimal.js.map +1 -0
- package/dist/node_modules/eventemitter3/index.js +95 -0
- package/dist/node_modules/eventemitter3/index.js.map +1 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +267 -0
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -0
- package/dist/node_modules/internmap/src/index.js +40 -0
- package/dist/node_modules/internmap/src/index.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +23 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +23 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +23 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +18 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_apply.js +19 -0
- package/dist/node_modules/lodash/_apply.js.map +1 -0
- package/dist/node_modules/lodash/_arrayEvery.js +14 -0
- package/dist/node_modules/lodash/_arrayEvery.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +17 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +15 -0
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +14 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +22 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +14 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_asciiToArray.js +13 -0
- package/dist/node_modules/lodash/_asciiToArray.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +16 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseEach.js +13 -0
- package/dist/node_modules/lodash/_baseEach.js.map +1 -0
- package/dist/node_modules/lodash/_baseEvery.js +18 -0
- package/dist/node_modules/lodash/_baseEvery.js.map +1 -0
- package/dist/node_modules/lodash/_baseExtremum.js +19 -0
- package/dist/node_modules/lodash/_baseExtremum.js.map +1 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +14 -0
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/lodash/_baseFor.js.map +1 -0
- package/dist/node_modules/lodash/_baseForOwn.js +16 -0
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +17 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +17 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseGt.js +13 -0
- package/dist/node_modules/lodash/_baseGt.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +13 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +17 -0
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +16 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +16 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +37 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +33 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +13 -0
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +18 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +18 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +19 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +19 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseLt.js +13 -0
- package/dist/node_modules/lodash/_baseLt.js.map +1 -0
- package/dist/node_modules/lodash/_baseMap.js +19 -0
- package/dist/node_modules/lodash/_baseMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +24 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseOrderBy.js +39 -0
- package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +15 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +17 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseRange.js +15 -0
- package/dist/node_modules/lodash/_baseRange.js.map +1 -0
- package/dist/node_modules/lodash/_baseRest.js +17 -0
- package/dist/node_modules/lodash/_baseRest.js.map +1 -0
- package/dist/node_modules/lodash/_baseSetToString.js +21 -0
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseSome.js +18 -0
- package/dist/node_modules/lodash/_baseSome.js.map +1 -0
- package/dist/node_modules/lodash/_baseSortBy.js +15 -0
- package/dist/node_modules/lodash/_baseSortBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +22 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseTrim.js +15 -0
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +15 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUniq.js +34 -0
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +13 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +18 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_castSlice.js +16 -0
- package/dist/node_modules/lodash/_castSlice.js.map +1 -0
- package/dist/node_modules/lodash/_compareAscending.js +20 -0
- package/dist/node_modules/lodash/_compareAscending.js.map +1 -0
- package/dist/node_modules/lodash/_compareMultiple.js +19 -0
- package/dist/node_modules/lodash/_compareMultiple.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseEach.js +20 -0
- package/dist/node_modules/lodash/_createBaseEach.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/dist/node_modules/lodash/_createCaseFirst.js +22 -0
- package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -0
- package/dist/node_modules/lodash/_createFind.js +27 -0
- package/dist/node_modules/lodash/_createFind.js.map +1 -0
- package/dist/node_modules/lodash/_createRange.js +19 -0
- package/dist/node_modules/lodash/_createRange.js.map +1 -0
- package/dist/node_modules/lodash/_createSet.js +16 -0
- package/dist/node_modules/lodash/_createSet.js.map +1 -0
- package/dist/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +42 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +42 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +39 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +17 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +24 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +17 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +17 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +28 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +13 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hasUnicode.js +14 -0
- package/dist/node_modules/lodash/_hasUnicode.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +15 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +20 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +16 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +16 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +17 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +14 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +18 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +15 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +13 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +16 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +16 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +21 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +15 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +16 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +16 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +18 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +16 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +14 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +15 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_overRest.js +20 -0
- package/dist/node_modules/lodash/_overRest.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +12 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +14 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +16 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_setToString.js +13 -0
- package/dist/node_modules/lodash/_setToString.js.map +1 -0
- package/dist/node_modules/lodash/_shortOut.js +21 -0
- package/dist/node_modules/lodash/_shortOut.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +13 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +14 -0
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_stringToArray.js +17 -0
- package/dist/node_modules/lodash/_stringToArray.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +17 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +22 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/dist/node_modules/lodash/_unicodeToArray.js +24 -0
- package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -0
- package/dist/node_modules/lodash/constant.js +15 -0
- package/dist/node_modules/lodash/constant.js.map +1 -0
- package/dist/node_modules/lodash/debounce.js +57 -0
- package/dist/node_modules/lodash/debounce.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +13 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/every.js +20 -0
- package/dist/node_modules/lodash/every.js.map +1 -0
- package/dist/node_modules/lodash/find.js +12 -0
- package/dist/node_modules/lodash/find.js.map +1 -0
- package/dist/node_modules/lodash/findIndex.js +20 -0
- package/dist/node_modules/lodash/findIndex.js.map +1 -0
- package/dist/node_modules/lodash/flatMap.js +16 -0
- package/dist/node_modules/lodash/flatMap.js.map +1 -0
- package/dist/node_modules/lodash/get.js +16 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +16 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +13 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +17 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +16 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isBoolean.js +16 -0
- package/dist/node_modules/lodash/isBoolean.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +13 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isEqual.js +15 -0
- package/dist/node_modules/lodash/isEqual.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +14 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isNaN.js +15 -0
- package/dist/node_modules/lodash/isNaN.js.map +1 -0
- package/dist/node_modules/lodash/isNil.js +13 -0
- package/dist/node_modules/lodash/isNil.js.map +1 -0
- package/dist/node_modules/lodash/isNumber.js +16 -0
- package/dist/node_modules/lodash/isNumber.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +14 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isPlainObject.js +21 -0
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/isString.js +17 -0
- package/dist/node_modules/lodash/isString.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +16 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +14 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +17 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/last.js +14 -0
- package/dist/node_modules/lodash/last.js.map +1 -0
- package/dist/node_modules/lodash/map.js +18 -0
- package/dist/node_modules/lodash/map.js.map +1 -0
- package/dist/node_modules/lodash/mapValues.js +20 -0
- package/dist/node_modules/lodash/mapValues.js.map +1 -0
- package/dist/node_modules/lodash/max.js +17 -0
- package/dist/node_modules/lodash/max.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +22 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/min.js +17 -0
- package/dist/node_modules/lodash/min.js.map +1 -0
- package/dist/node_modules/lodash/noop.js +11 -0
- package/dist/node_modules/lodash/noop.js.map +1 -0
- package/dist/node_modules/lodash/now.js +14 -0
- package/dist/node_modules/lodash/now.js.map +1 -0
- package/dist/node_modules/lodash/property.js +18 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/range.js +11 -0
- package/dist/node_modules/lodash/range.js.map +1 -0
- package/dist/node_modules/lodash/some.js +20 -0
- package/dist/node_modules/lodash/some.js.map +1 -0
- package/dist/node_modules/lodash/sortBy.js +19 -0
- package/dist/node_modules/lodash/sortBy.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +13 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +13 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/throttle.js +22 -0
- package/dist/node_modules/lodash/throttle.js.map +1 -0
- package/dist/node_modules/lodash/toFinite.js +15 -0
- package/dist/node_modules/lodash/toFinite.js.map +1 -0
- package/dist/node_modules/lodash/toInteger.js +16 -0
- package/dist/node_modules/lodash/toInteger.js.map +1 -0
- package/dist/node_modules/lodash/toNumber.js +26 -0
- package/dist/node_modules/lodash/toNumber.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +15 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/uniqBy.js +16 -0
- package/dist/node_modules/lodash/uniqBy.js.map +1 -0
- package/dist/node_modules/lodash/upperFirst.js +11 -0
- package/dist/node_modules/lodash/upperFirst.js.map +1 -0
- package/dist/node_modules/object-assign/index.js +41 -0
- package/dist/node_modules/object-assign/index.js.map +1 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +46 -0
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +49 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +272 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/dist/node_modules/prop-types/index.js +16 -0
- package/dist/node_modules/prop-types/index.js.map +1 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/dist/node_modules/prop-types/lib/has.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +84 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +64 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +65 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/Animate.js +374 -0
- package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +73 -0
- package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/configUpdate.js +173 -0
- package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/easing.js +152 -0
- package/dist/node_modules/react-smooth/es6/easing.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/index.js +9 -0
- package/dist/node_modules/react-smooth/es6/index.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +14 -0
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/util.js +92 -0
- package/dist/node_modules/react-smooth/es6/util.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +387 -0
- package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +499 -0
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +338 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +305 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +243 -0
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js +473 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +173 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +178 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +254 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +144 -0
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +143 -0
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +18 -0
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +121 -0
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +101 -0
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/LineChart.js +22 -0
- package/dist/node_modules/recharts/es6/chart/LineChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +1245 -0
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +9 -0
- package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +93 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +237 -0
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +171 -0
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Label.js +353 -0
- package/dist/node_modules/recharts/es6/component/Label.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +166 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Legend.js +234 -0
- package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +187 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Text.js +225 -0
- package/dist/node_modules/recharts/es6/component/Text.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Tooltip.js +182 -0
- package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +198 -0
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +40 -0
- package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +60 -0
- package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +57 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Cross.js +112 -0
- package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +136 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Dot.js +27 -0
- package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +205 -0
- package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +192 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Symbols.js +143 -0
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +175 -0
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +181 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/BarUtils.js +112 -0
- package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +234 -0
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +562 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +70 -0
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +108 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +58 -0
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Events.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/Global.js +21 -0
- package/dist/node_modules/recharts/es6/util/Global.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +9 -0
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +15 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +116 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +137 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +181 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +10 -0
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/TickUtils.js +31 -0
- package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +25 -0
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +23 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +16 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +17 -0
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +12 -0
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +88 -0
- package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +13 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +12 -0
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +87 -0
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/types.js +43 -0
- package/dist/node_modules/recharts/es6/util/types.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +132 -0
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/index.js +1 -0
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +32 -0
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/util/utils.js +79 -0
- package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +13 -0
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +53 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +123 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { useDevportal as e } from "../providers/DevportalProvider.js";
|
|
2
|
+
import { useDevportalEventBus as t } from "../events/index.js";
|
|
3
|
+
import { PageLayout as n, PageSection as r } from "../components/PageLayout.js";
|
|
4
|
+
import { CheckboxField as i, InputField as a, TextareaField as o } from "../components/FormField.js";
|
|
5
|
+
import { Alert as s } from "../components/ConfirmDialog.js";
|
|
6
|
+
import { useCreateWebhookMutation as c, useGetApplicationsQuery as l } from "../../generated/global-operations.js";
|
|
7
|
+
import { PermissionGuard as u } from "../components/PermissionGuard.js";
|
|
8
|
+
import "../components/index.js";
|
|
9
|
+
import { DEVPORTAL_PERMISSIONS as d } from "../constants/permissions.js";
|
|
10
|
+
import { getErrorMessage as f } from "../hooks/useGraphQL.js";
|
|
11
|
+
import { useDevportalPermission as p } from "../hooks/usePermission.js";
|
|
12
|
+
import "../hooks/index.js";
|
|
13
|
+
import { WEBHOOK_EVENTS as m } from "../types/index.js";
|
|
14
|
+
import { useTr as h } from "../utils/i18n.js";
|
|
15
|
+
import { useMemo as g, useState as _ } from "react";
|
|
16
|
+
import { Loader2 as v, Webhook as y } from "lucide-react";
|
|
17
|
+
import { useParams as b } from "react-router-dom";
|
|
18
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
19
|
+
//#region src/devportal/pages/CreateWebhookPage.tsx
|
|
20
|
+
var C = {
|
|
21
|
+
Application: m.filter((e) => e.startsWith("application.")),
|
|
22
|
+
Installation: m.filter((e) => e.startsWith("installation.")),
|
|
23
|
+
User: m.filter((e) => e.startsWith("user.")),
|
|
24
|
+
Workspace: m.filter((e) => e.startsWith("workspace.")),
|
|
25
|
+
Project: m.filter((e) => e.startsWith("project.")),
|
|
26
|
+
Task: m.filter((e) => e.startsWith("task.")),
|
|
27
|
+
Comment: m.filter((e) => e.startsWith("comment.")),
|
|
28
|
+
File: m.filter((e) => e.startsWith("file.")),
|
|
29
|
+
Member: m.filter((e) => e.startsWith("member."))
|
|
30
|
+
}, w = () => {
|
|
31
|
+
let { appId: m } = b(), { navigate: w, basePath: T } = e(), [E, D] = _({
|
|
32
|
+
applicationId: m || "",
|
|
33
|
+
name: "",
|
|
34
|
+
description: "",
|
|
35
|
+
url: "",
|
|
36
|
+
events: [],
|
|
37
|
+
retryEnabled: !0,
|
|
38
|
+
maxRetries: 3
|
|
39
|
+
}), [O, k] = _({}), [A, j] = _(null), { data: M, loading: N, error: P } = l({
|
|
40
|
+
variables: { limit: 100 },
|
|
41
|
+
skip: !!m,
|
|
42
|
+
fetchPolicy: "cache-and-network"
|
|
43
|
+
}), [F, { loading: I }] = c(), L = t(), R = h(), z = p(d.WEBHOOK_CREATE), B = g(() => M?.applications?.edges?.map((e) => e.node).map((e) => ({
|
|
44
|
+
id: e.id,
|
|
45
|
+
name: e.name,
|
|
46
|
+
slug: e.slug
|
|
47
|
+
})) ?? [], [M?.applications?.edges]), V = B.find((e) => e.id === E.applicationId), H = (e, t) => {
|
|
48
|
+
D((n) => ({
|
|
49
|
+
...n,
|
|
50
|
+
[e]: t
|
|
51
|
+
})), k((t) => {
|
|
52
|
+
if (!t[e]) return t;
|
|
53
|
+
let n = { ...t };
|
|
54
|
+
return delete n[e], n;
|
|
55
|
+
});
|
|
56
|
+
}, U = (e) => {
|
|
57
|
+
D((t) => ({
|
|
58
|
+
...t,
|
|
59
|
+
events: t.events.includes(e) ? t.events.filter((t) => t !== e) : [...t.events, e]
|
|
60
|
+
}));
|
|
61
|
+
}, W = (e) => {
|
|
62
|
+
let t = e.every((e) => E.events.includes(e));
|
|
63
|
+
D((n) => ({
|
|
64
|
+
...n,
|
|
65
|
+
events: t ? n.events.filter((t) => !e.includes(t)) : [...new Set([...n.events, ...e])]
|
|
66
|
+
}));
|
|
67
|
+
}, G = () => {
|
|
68
|
+
let e = {};
|
|
69
|
+
return E.applicationId || (e.applicationId = R("devportal.createWebhook.errors.appRequired", "Select an application")), E.name.trim() || (e.name = R("devportal.createWebhook.errors.nameRequired", "Name is required")), E.url.trim() ? /^https:\/\//i.test(E.url) || (e.url = R("devportal.createWebhook.errors.urlHttps", "Endpoint URL must use HTTPS")) : e.url = R("devportal.createWebhook.errors.urlRequired", "Endpoint URL is required"), E.events.length === 0 && (e.events = R("devportal.createWebhook.errors.eventsRequired", "Select at least one event")), E.retryEnabled && (E.maxRetries < 1 || E.maxRetries > 10) && (e.maxRetries = R("devportal.createWebhook.errors.retriesRange", "Retry count must be between 1 and 10")), k(e), Object.keys(e).length === 0;
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ x(u, {
|
|
72
|
+
permission: d.WEBHOOK_CREATE,
|
|
73
|
+
children: /* @__PURE__ */ x(n, {
|
|
74
|
+
title: R("devportal.createWebhook.title", "Create Webhook"),
|
|
75
|
+
description: R("devportal.createWebhook.description", "Set up a real webhook endpoint to receive platform events through the public gateway"),
|
|
76
|
+
backLink: E.applicationId ? `/apps/${E.applicationId}/webhooks` : "/webhooks",
|
|
77
|
+
backLabel: R("devportal.createWebhook.back", "Back to Webhooks"),
|
|
78
|
+
children: /* @__PURE__ */ S("form", {
|
|
79
|
+
onSubmit: async (e) => {
|
|
80
|
+
if (e.preventDefault(), j(null), G()) try {
|
|
81
|
+
let e = (await F({ variables: {
|
|
82
|
+
applicationId: E.applicationId,
|
|
83
|
+
input: {
|
|
84
|
+
name: E.name.trim(),
|
|
85
|
+
description: E.description.trim() || void 0,
|
|
86
|
+
url: E.url.trim(),
|
|
87
|
+
events: E.events,
|
|
88
|
+
retryEnabled: E.retryEnabled,
|
|
89
|
+
maxRetries: E.retryEnabled ? E.maxRetries : 0
|
|
90
|
+
}
|
|
91
|
+
} })).data?.createWebhook;
|
|
92
|
+
if (!e?.id) throw Error(R("devportal.createWebhook.errors.noId", "Webhook creation did not return an identifier"));
|
|
93
|
+
L.emit("devportal.webhook.created", {
|
|
94
|
+
webhookId: e.id,
|
|
95
|
+
applicationId: E.applicationId
|
|
96
|
+
}), w?.(`${T}/apps/${E.applicationId}/webhooks/${e.id}`);
|
|
97
|
+
} catch (e) {
|
|
98
|
+
j(e instanceof Error ? e.message : R("devportal.createWebhook.errors.createFailed", "Failed to create webhook"));
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
className: "space-y-6",
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ x(s, {
|
|
104
|
+
variant: "info",
|
|
105
|
+
children: R("devportal.createWebhook.info", "Webhook deliveries are signed and sent through the public global gateway. Use an HTTPS endpoint that accepts POST requests and returns a 2xx response for successful deliveries.")
|
|
106
|
+
}),
|
|
107
|
+
A && /* @__PURE__ */ x(s, {
|
|
108
|
+
variant: "error",
|
|
109
|
+
children: A
|
|
110
|
+
}),
|
|
111
|
+
P && !m && /* @__PURE__ */ x(s, {
|
|
112
|
+
variant: "error",
|
|
113
|
+
children: f(P)
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ x(r, {
|
|
116
|
+
title: R("devportal.createWebhook.basicInfo", "Basic Information"),
|
|
117
|
+
children: /* @__PURE__ */ S("div", {
|
|
118
|
+
className: "space-y-4 rounded-lg border bg-card p-4",
|
|
119
|
+
children: [
|
|
120
|
+
!m && /* @__PURE__ */ S("label", {
|
|
121
|
+
className: "grid gap-2 text-sm font-medium",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ x("span", { children: R("devportal.createWebhook.application", "Application") }),
|
|
124
|
+
/* @__PURE__ */ S("select", {
|
|
125
|
+
value: E.applicationId,
|
|
126
|
+
onChange: (e) => H("applicationId", e.target.value),
|
|
127
|
+
disabled: N,
|
|
128
|
+
"aria-label": R("devportal.createWebhook.application", "Application"),
|
|
129
|
+
className: "rounded-md border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary",
|
|
130
|
+
children: [/* @__PURE__ */ x("option", {
|
|
131
|
+
value: "",
|
|
132
|
+
children: R("devportal.createWebhook.errors.appRequired", "Select an application")
|
|
133
|
+
}), B.map((e) => /* @__PURE__ */ x("option", {
|
|
134
|
+
value: e.id,
|
|
135
|
+
children: e.name
|
|
136
|
+
}, e.id))]
|
|
137
|
+
}),
|
|
138
|
+
O.applicationId && /* @__PURE__ */ x("span", {
|
|
139
|
+
className: "text-sm text-status-error-text",
|
|
140
|
+
children: O.applicationId
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
}),
|
|
144
|
+
N && !m && /* @__PURE__ */ S("div", {
|
|
145
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
146
|
+
role: "status",
|
|
147
|
+
"aria-live": "polite",
|
|
148
|
+
children: [/* @__PURE__ */ x(v, {
|
|
149
|
+
className: "h-4 w-4 animate-spin",
|
|
150
|
+
"aria-hidden": "true"
|
|
151
|
+
}), R("devportal.createWebhook.loadingApps", "Loading applications...")]
|
|
152
|
+
}),
|
|
153
|
+
V && /* @__PURE__ */ S("div", {
|
|
154
|
+
className: "rounded-md border bg-muted/40 px-3 py-2 text-sm text-muted-foreground",
|
|
155
|
+
children: [
|
|
156
|
+
R("devportal.createWebhook.creatingFor", "Creating webhook for"),
|
|
157
|
+
" ",
|
|
158
|
+
/* @__PURE__ */ x("span", {
|
|
159
|
+
className: "font-medium text-foreground",
|
|
160
|
+
children: V.name
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ x(a, {
|
|
165
|
+
label: R("devportal.createWebhook.webhookName", "Webhook Name"),
|
|
166
|
+
value: E.name,
|
|
167
|
+
onChange: (e) => H("name", e.target.value),
|
|
168
|
+
placeholder: R("devportal.createWebhook.webhookNamePlaceholder", "Production webhook"),
|
|
169
|
+
error: O.name,
|
|
170
|
+
required: !0
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ x(o, {
|
|
173
|
+
label: R("devportal.createWebhook.descriptionLabel", "Description"),
|
|
174
|
+
value: E.description,
|
|
175
|
+
onChange: (e) => H("description", e.target.value),
|
|
176
|
+
placeholder: R("devportal.createWebhook.descriptionPlaceholder", "What this webhook is used for"),
|
|
177
|
+
rows: 2
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ x(a, {
|
|
180
|
+
label: R("devportal.createWebhook.endpointUrl", "Endpoint URL"),
|
|
181
|
+
type: "url",
|
|
182
|
+
value: E.url,
|
|
183
|
+
onChange: (e) => H("url", e.target.value),
|
|
184
|
+
placeholder: "https://your-app.example.com/webhooks/burdenoff",
|
|
185
|
+
hint: R("devportal.createWebhook.httpsOnly", "HTTPS only"),
|
|
186
|
+
error: O.url,
|
|
187
|
+
required: !0
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
})
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ x(r, {
|
|
193
|
+
title: R("devportal.createWebhook.subscribedEvents", "Subscribed Events"),
|
|
194
|
+
children: /* @__PURE__ */ S("div", {
|
|
195
|
+
className: "space-y-4 rounded-lg border bg-card p-4",
|
|
196
|
+
children: [O.events && /* @__PURE__ */ x("p", {
|
|
197
|
+
className: "text-sm text-status-error-text",
|
|
198
|
+
role: "alert",
|
|
199
|
+
children: O.events
|
|
200
|
+
}), Object.entries(C).map(([e, t]) => /* @__PURE__ */ S("section", {
|
|
201
|
+
className: "space-y-3 border-b pb-4 last:border-b-0 last:pb-0",
|
|
202
|
+
children: [/* @__PURE__ */ S("div", {
|
|
203
|
+
className: "flex items-center justify-between gap-3",
|
|
204
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
205
|
+
className: "font-medium",
|
|
206
|
+
children: R(`devportal.createWebhook.category.${e.toLowerCase()}`, e)
|
|
207
|
+
}), /* @__PURE__ */ x("button", {
|
|
208
|
+
type: "button",
|
|
209
|
+
onClick: () => W(t),
|
|
210
|
+
className: "text-xs font-medium text-primary hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
211
|
+
children: t.every((e) => E.events.includes(e)) ? R("devportal.createWebhook.deselectAll", "Deselect all") : R("devportal.createWebhook.selectAll", "Select all")
|
|
212
|
+
})]
|
|
213
|
+
}), /* @__PURE__ */ x("div", {
|
|
214
|
+
className: "grid gap-2 sm:grid-cols-2",
|
|
215
|
+
children: t.map((e) => /* @__PURE__ */ S("label", {
|
|
216
|
+
className: "flex items-center gap-2 rounded-md border bg-background px-3 py-2 text-sm",
|
|
217
|
+
children: [/* @__PURE__ */ x("input", {
|
|
218
|
+
type: "checkbox",
|
|
219
|
+
checked: E.events.includes(e),
|
|
220
|
+
onChange: () => U(e),
|
|
221
|
+
className: "rounded border-border-default text-primary focus:ring-primary",
|
|
222
|
+
"aria-label": e
|
|
223
|
+
}), /* @__PURE__ */ x("code", {
|
|
224
|
+
className: "text-xs text-foreground",
|
|
225
|
+
children: e
|
|
226
|
+
})]
|
|
227
|
+
}, e))
|
|
228
|
+
})]
|
|
229
|
+
}, e))]
|
|
230
|
+
})
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ x(r, {
|
|
233
|
+
title: R("devportal.createWebhook.retrySettings", "Retry Settings"),
|
|
234
|
+
children: /* @__PURE__ */ S("div", {
|
|
235
|
+
className: "space-y-4 rounded-lg border bg-card p-4",
|
|
236
|
+
children: [/* @__PURE__ */ x(i, {
|
|
237
|
+
label: R("devportal.createWebhook.enableRetries", "Enable retries"),
|
|
238
|
+
description: R("devportal.createWebhook.enableRetriesDesc", "Retry failed deliveries automatically"),
|
|
239
|
+
checked: E.retryEnabled,
|
|
240
|
+
onChange: (e) => H("retryEnabled", e.target.checked)
|
|
241
|
+
}), E.retryEnabled && /* @__PURE__ */ x(a, {
|
|
242
|
+
label: R("devportal.createWebhook.maxRetries", "Maximum retries"),
|
|
243
|
+
type: "number",
|
|
244
|
+
value: E.maxRetries,
|
|
245
|
+
onChange: (e) => H("maxRetries", Number(e.target.value)),
|
|
246
|
+
min: 1,
|
|
247
|
+
max: 10,
|
|
248
|
+
hint: R("devportal.createWebhook.attemptsHint", "1 to 10 attempts"),
|
|
249
|
+
error: O.maxRetries
|
|
250
|
+
})]
|
|
251
|
+
})
|
|
252
|
+
}),
|
|
253
|
+
/* @__PURE__ */ S("div", {
|
|
254
|
+
className: "flex flex-col gap-3 sm:flex-row",
|
|
255
|
+
children: [/* @__PURE__ */ x("button", {
|
|
256
|
+
type: "button",
|
|
257
|
+
onClick: () => w?.(`${T}${E.applicationId ? `/apps/${E.applicationId}/webhooks` : "/webhooks"}`),
|
|
258
|
+
className: "rounded-md border px-4 py-2 text-sm font-medium hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
259
|
+
children: R("devportal.common.cancel", "Cancel")
|
|
260
|
+
}), /* @__PURE__ */ S("button", {
|
|
261
|
+
type: "submit",
|
|
262
|
+
disabled: I || N || !z.allowed,
|
|
263
|
+
"aria-disabled": I || N || !z.allowed,
|
|
264
|
+
title: z.allowed ? void 0 : R("devportal.common.noPermission", "You do not have permission to perform this action"),
|
|
265
|
+
className: "inline-flex items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",
|
|
266
|
+
children: [I ? /* @__PURE__ */ x(v, {
|
|
267
|
+
className: "h-4 w-4 animate-spin",
|
|
268
|
+
"aria-hidden": "true"
|
|
269
|
+
}) : /* @__PURE__ */ x(y, {
|
|
270
|
+
size: 16,
|
|
271
|
+
"aria-hidden": "true"
|
|
272
|
+
}), I ? R("devportal.createWebhook.creating", "Creating...") : R("devportal.createWebhook.title", "Create Webhook")]
|
|
273
|
+
})]
|
|
274
|
+
})
|
|
275
|
+
]
|
|
276
|
+
})
|
|
277
|
+
})
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
//#endregion
|
|
281
|
+
export { w as CreateWebhookPage };
|
|
282
|
+
|
|
283
|
+
//# sourceMappingURL=CreateWebhookPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateWebhookPage.js","names":[],"sources":["../../../src/devportal/pages/CreateWebhookPage.tsx"],"sourcesContent":["import type { FC, FormEvent } from \"react\";\nimport { useMemo, useState } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { Loader2, Webhook } from \"lucide-react\";\nimport { PageLayout, PageSection } from \"../components/PageLayout\";\nimport {\n InputField,\n TextareaField,\n CheckboxField,\n} from \"../components/FormField\";\nimport { Alert } from \"../components/ConfirmDialog\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\nimport { PermissionGuard } from \"../components\";\nimport { DEVPORTAL_PERMISSIONS } from \"../constants/permissions\";\nimport { useDevportalEventBus } from \"../events\";\nimport { WEBHOOK_EVENTS } from \"../types\";\nimport {\n type GetApplicationsQuery,\n getErrorMessage,\n useCreateWebhookMutation,\n useGetApplicationsQuery,\n useDevportalPermission,\n} from \"../hooks\";\nimport { useTr } from \"../utils/i18n\";\n\nconst eventCategories = {\n Application: WEBHOOK_EVENTS.filter((event) =>\n event.startsWith(\"application.\"),\n ),\n Installation: WEBHOOK_EVENTS.filter((event) =>\n event.startsWith(\"installation.\"),\n ),\n User: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"user.\")),\n Workspace: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"workspace.\")),\n Project: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"project.\")),\n Task: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"task.\")),\n Comment: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"comment.\")),\n File: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"file.\")),\n Member: WEBHOOK_EVENTS.filter((event) => event.startsWith(\"member.\")),\n};\n\ninterface CreateWebhookFormState {\n applicationId: string;\n name: string;\n description: string;\n url: string;\n events: string[];\n retryEnabled: boolean;\n maxRetries: number;\n}\n\ntype ApplicationOption =\n GetApplicationsQuery[\"applications\"][\"edges\"][number][\"node\"];\n\nexport const CreateWebhookPage: FC = () => {\n const { appId } = useParams<{ appId: string }>();\n const { navigate, basePath } = useDevportal();\n const [formData, setFormData] = useState<CreateWebhookFormState>({\n applicationId: appId || \"\",\n name: \"\",\n description: \"\",\n url: \"\",\n events: [],\n retryEnabled: true,\n maxRetries: 3,\n });\n const [errors, setErrors] = useState<Record<string, string>>({});\n const [submitError, setSubmitError] = useState<string | null>(null);\n\n const {\n data: appsData,\n loading: appsLoading,\n error: appsError,\n } = useGetApplicationsQuery({\n variables: { limit: 100 },\n skip: !!appId,\n fetchPolicy: \"cache-and-network\",\n });\n const [createWebhook, { loading: isSubmitting }] = useCreateWebhookMutation();\n const bus = useDevportalEventBus();\n const tr = useTr();\n const createPerm = useDevportalPermission(\n DEVPORTAL_PERMISSIONS.WEBHOOK_CREATE,\n );\n\n const applications = useMemo(\n () =>\n appsData?.applications?.edges\n ?.map(\n (edge: GetApplicationsQuery[\"applications\"][\"edges\"][number]) =>\n edge.node,\n )\n .map((application: ApplicationOption) => ({\n id: application.id,\n name: application.name,\n slug: application.slug,\n })) ?? [],\n [appsData?.applications?.edges],\n );\n\n const selectedApplication = applications.find(\n (application: { id: string; name: string; slug: string }) =>\n application.id === formData.applicationId,\n );\n\n const handleChange = <K extends keyof CreateWebhookFormState>(\n key: K,\n value: CreateWebhookFormState[K],\n ) => {\n setFormData((previous) => ({\n ...previous,\n [key]: value,\n }));\n setErrors((previous) => {\n if (!previous[key as string]) return previous;\n const nextErrors = { ...previous };\n delete nextErrors[key as string];\n return nextErrors;\n });\n };\n\n const toggleEvent = (event: string) => {\n setFormData((previous) => ({\n ...previous,\n events: previous.events.includes(event)\n ? previous.events.filter((value) => value !== event)\n : [...previous.events, event],\n }));\n };\n\n const toggleCategory = (events: readonly string[]) => {\n const allSelected = events.every((event) =>\n formData.events.includes(event),\n );\n\n setFormData((previous) => ({\n ...previous,\n events: allSelected\n ? previous.events.filter((event) => !events.includes(event))\n : [...new Set([...previous.events, ...events])],\n }));\n };\n\n const validate = (): boolean => {\n const nextErrors: Record<string, string> = {};\n\n if (!formData.applicationId) {\n nextErrors.applicationId = tr(\n \"devportal.createWebhook.errors.appRequired\",\n \"Select an application\",\n );\n }\n if (!formData.name.trim()) {\n nextErrors.name = tr(\n \"devportal.createWebhook.errors.nameRequired\",\n \"Name is required\",\n );\n }\n if (!formData.url.trim()) {\n nextErrors.url = tr(\n \"devportal.createWebhook.errors.urlRequired\",\n \"Endpoint URL is required\",\n );\n } else if (!/^https:\\/\\//i.test(formData.url)) {\n nextErrors.url = tr(\n \"devportal.createWebhook.errors.urlHttps\",\n \"Endpoint URL must use HTTPS\",\n );\n }\n if (formData.events.length === 0) {\n nextErrors.events = tr(\n \"devportal.createWebhook.errors.eventsRequired\",\n \"Select at least one event\",\n );\n }\n if (\n formData.retryEnabled &&\n (formData.maxRetries < 1 || formData.maxRetries > 10)\n ) {\n nextErrors.maxRetries = tr(\n \"devportal.createWebhook.errors.retriesRange\",\n \"Retry count must be between 1 and 10\",\n );\n }\n\n setErrors(nextErrors);\n return Object.keys(nextErrors).length === 0;\n };\n\n const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n setSubmitError(null);\n\n if (!validate()) return;\n\n try {\n const result = await createWebhook({\n variables: {\n applicationId: formData.applicationId,\n input: {\n name: formData.name.trim(),\n description: formData.description.trim() || undefined,\n url: formData.url.trim(),\n events: formData.events,\n retryEnabled: formData.retryEnabled,\n maxRetries: formData.retryEnabled ? formData.maxRetries : 0,\n },\n },\n });\n\n const createdWebhook = result.data?.createWebhook;\n if (!createdWebhook?.id) {\n throw new Error(\n tr(\n \"devportal.createWebhook.errors.noId\",\n \"Webhook creation did not return an identifier\",\n ),\n );\n }\n\n bus.emit(\"devportal.webhook.created\", {\n webhookId: createdWebhook.id,\n applicationId: formData.applicationId,\n });\n\n navigate?.(\n `${basePath}/apps/${formData.applicationId}/webhooks/${createdWebhook.id}`,\n );\n } catch (error) {\n setSubmitError(\n error instanceof Error\n ? error.message\n : tr(\n \"devportal.createWebhook.errors.createFailed\",\n \"Failed to create webhook\",\n ),\n );\n }\n };\n\n return (\n <PermissionGuard permission={DEVPORTAL_PERMISSIONS.WEBHOOK_CREATE}>\n <PageLayout\n title={tr(\"devportal.createWebhook.title\", \"Create Webhook\")}\n description={tr(\n \"devportal.createWebhook.description\",\n \"Set up a real webhook endpoint to receive platform events through the public gateway\",\n )}\n backLink={\n formData.applicationId\n ? `/apps/${formData.applicationId}/webhooks`\n : \"/webhooks\"\n }\n backLabel={tr(\"devportal.createWebhook.back\", \"Back to Webhooks\")}\n >\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n <Alert variant=\"info\">\n {tr(\n \"devportal.createWebhook.info\",\n \"Webhook deliveries are signed and sent through the public global gateway. Use an HTTPS endpoint that accepts POST requests and returns a 2xx response for successful deliveries.\",\n )}\n </Alert>\n\n {submitError && <Alert variant=\"error\">{submitError}</Alert>}\n {appsError && !appId && (\n <Alert variant=\"error\">{getErrorMessage(appsError)}</Alert>\n )}\n\n <PageSection\n title={tr(\"devportal.createWebhook.basicInfo\", \"Basic Information\")}\n >\n <div className=\"space-y-4 rounded-lg border bg-card p-4\">\n {!appId && (\n <label className=\"grid gap-2 text-sm font-medium\">\n <span>\n {tr(\"devportal.createWebhook.application\", \"Application\")}\n </span>\n <select\n value={formData.applicationId}\n onChange={(changeEvent) =>\n handleChange(\"applicationId\", changeEvent.target.value)\n }\n disabled={appsLoading}\n aria-label={tr(\n \"devportal.createWebhook.application\",\n \"Application\",\n )}\n className=\"rounded-md border bg-background px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary\"\n >\n <option value=\"\">\n {tr(\n \"devportal.createWebhook.errors.appRequired\",\n \"Select an application\",\n )}\n </option>\n {applications.map(\n (application: { id: string; name: string }) => (\n <option key={application.id} value={application.id}>\n {application.name}\n </option>\n ),\n )}\n </select>\n {errors.applicationId && (\n <span className=\"text-sm text-status-error-text\">\n {errors.applicationId}\n </span>\n )}\n </label>\n )}\n\n {appsLoading && !appId && (\n <div\n className=\"flex items-center gap-2 text-sm text-muted-foreground\"\n role=\"status\"\n aria-live=\"polite\"\n >\n <Loader2\n className=\"h-4 w-4 animate-spin\"\n aria-hidden=\"true\"\n />\n {tr(\n \"devportal.createWebhook.loadingApps\",\n \"Loading applications...\",\n )}\n </div>\n )}\n\n {selectedApplication && (\n <div className=\"rounded-md border bg-muted/40 px-3 py-2 text-sm text-muted-foreground\">\n {tr(\n \"devportal.createWebhook.creatingFor\",\n \"Creating webhook for\",\n )}{\" \"}\n <span className=\"font-medium text-foreground\">\n {selectedApplication.name}\n </span>\n </div>\n )}\n\n <InputField\n label={tr(\n \"devportal.createWebhook.webhookName\",\n \"Webhook Name\",\n )}\n value={formData.name}\n onChange={(changeEvent) =>\n handleChange(\"name\", changeEvent.target.value)\n }\n placeholder={tr(\n \"devportal.createWebhook.webhookNamePlaceholder\",\n \"Production webhook\",\n )}\n error={errors.name}\n required\n />\n\n <TextareaField\n label={tr(\n \"devportal.createWebhook.descriptionLabel\",\n \"Description\",\n )}\n value={formData.description}\n onChange={(changeEvent) =>\n handleChange(\"description\", changeEvent.target.value)\n }\n placeholder={tr(\n \"devportal.createWebhook.descriptionPlaceholder\",\n \"What this webhook is used for\",\n )}\n rows={2}\n />\n\n <InputField\n label={tr(\n \"devportal.createWebhook.endpointUrl\",\n \"Endpoint URL\",\n )}\n type=\"url\"\n value={formData.url}\n onChange={(changeEvent) =>\n handleChange(\"url\", changeEvent.target.value)\n }\n placeholder=\"https://your-app.example.com/webhooks/burdenoff\"\n hint={tr(\"devportal.createWebhook.httpsOnly\", \"HTTPS only\")}\n error={errors.url}\n required\n />\n </div>\n </PageSection>\n\n <PageSection\n title={tr(\n \"devportal.createWebhook.subscribedEvents\",\n \"Subscribed Events\",\n )}\n >\n <div className=\"space-y-4 rounded-lg border bg-card p-4\">\n {errors.events && (\n <p className=\"text-sm text-status-error-text\" role=\"alert\">\n {errors.events}\n </p>\n )}\n {Object.entries(eventCategories).map(([category, events]) => (\n <section\n key={category}\n className=\"space-y-3 border-b pb-4 last:border-b-0 last:pb-0\"\n >\n <div className=\"flex items-center justify-between gap-3\">\n <h3 className=\"font-medium\">\n {tr(\n `devportal.createWebhook.category.${category.toLowerCase()}`,\n category,\n )}\n </h3>\n <button\n type=\"button\"\n onClick={() => toggleCategory(events)}\n className=\"text-xs font-medium text-primary hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary\"\n >\n {events.every((item) => formData.events.includes(item))\n ? tr(\n \"devportal.createWebhook.deselectAll\",\n \"Deselect all\",\n )\n : tr(\"devportal.createWebhook.selectAll\", \"Select all\")}\n </button>\n </div>\n <div className=\"grid gap-2 sm:grid-cols-2\">\n {events.map((eventName) => (\n <label\n key={eventName}\n className=\"flex items-center gap-2 rounded-md border bg-background px-3 py-2 text-sm\"\n >\n <input\n type=\"checkbox\"\n checked={formData.events.includes(eventName)}\n onChange={() => toggleEvent(eventName)}\n className=\"rounded border-border-default text-primary focus:ring-primary\"\n aria-label={eventName}\n />\n <code className=\"text-xs text-foreground\">\n {eventName}\n </code>\n </label>\n ))}\n </div>\n </section>\n ))}\n </div>\n </PageSection>\n\n <PageSection\n title={tr(\n \"devportal.createWebhook.retrySettings\",\n \"Retry Settings\",\n )}\n >\n <div className=\"space-y-4 rounded-lg border bg-card p-4\">\n <CheckboxField\n label={tr(\n \"devportal.createWebhook.enableRetries\",\n \"Enable retries\",\n )}\n description={tr(\n \"devportal.createWebhook.enableRetriesDesc\",\n \"Retry failed deliveries automatically\",\n )}\n checked={formData.retryEnabled}\n onChange={(changeEvent) =>\n handleChange(\"retryEnabled\", changeEvent.target.checked)\n }\n />\n\n {formData.retryEnabled && (\n <InputField\n label={tr(\n \"devportal.createWebhook.maxRetries\",\n \"Maximum retries\",\n )}\n type=\"number\"\n value={formData.maxRetries}\n onChange={(changeEvent) =>\n handleChange(\"maxRetries\", Number(changeEvent.target.value))\n }\n min={1}\n max={10}\n hint={tr(\n \"devportal.createWebhook.attemptsHint\",\n \"1 to 10 attempts\",\n )}\n error={errors.maxRetries}\n />\n )}\n </div>\n </PageSection>\n\n <div className=\"flex flex-col gap-3 sm:flex-row\">\n <button\n type=\"button\"\n onClick={() =>\n navigate?.(\n `${basePath}${formData.applicationId ? `/apps/${formData.applicationId}/webhooks` : \"/webhooks\"}`,\n )\n }\n className=\"rounded-md border px-4 py-2 text-sm font-medium hover:bg-accent focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary\"\n >\n {tr(\"devportal.common.cancel\", \"Cancel\")}\n </button>\n <button\n type=\"submit\"\n disabled={isSubmitting || appsLoading || !createPerm.allowed}\n aria-disabled={isSubmitting || appsLoading || !createPerm.allowed}\n title={\n !createPerm.allowed\n ? tr(\n \"devportal.common.noPermission\",\n \"You do not have permission to perform this action\",\n )\n : undefined\n }\n className=\"inline-flex items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary\"\n >\n {isSubmitting ? (\n <Loader2 className=\"h-4 w-4 animate-spin\" aria-hidden=\"true\" />\n ) : (\n <Webhook size={16} aria-hidden=\"true\" />\n )}\n {isSubmitting\n ? tr(\"devportal.createWebhook.creating\", \"Creating...\")\n : tr(\"devportal.createWebhook.title\", \"Create Webhook\")}\n </button>\n </div>\n </form>\n </PageLayout>\n </PermissionGuard>\n );\n};\n"],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Developer Portal Dashboard Page
|
|
5
|
+
*
|
|
6
|
+
* Shows an overview of the developer's applications, organizations,
|
|
7
|
+
* and key metrics using real data from the GraphQL API.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DashboardPage: FC;
|
|
10
|
+
//# sourceMappingURL=DashboardPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardPage.d.ts","sourceRoot":"","sources":["../../../src/devportal/pages/DashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AA6B3C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,EAyS3B,CAAC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { useDevportal as e } from "../providers/DevportalProvider.js";
|
|
2
|
+
import { EmptyState as t } from "../components/EmptyState.js";
|
|
3
|
+
import { PageLayout as n, PageSection as r } from "../components/PageLayout.js";
|
|
4
|
+
import { StatCard as i, StatCardGrid as a } from "../components/StatCard.js";
|
|
5
|
+
import { AppListItem as o } from "../components/AppCard.js";
|
|
6
|
+
import { useGetDevportalDashboardBootstrapQuery as s } from "../../generated/global-operations.js";
|
|
7
|
+
import { PermissionGuard as c } from "../components/PermissionGuard.js";
|
|
8
|
+
import "../components/index.js";
|
|
9
|
+
import { DEVPORTAL_PERMISSIONS as l } from "../constants/permissions.js";
|
|
10
|
+
import "../hooks/index.js";
|
|
11
|
+
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
|
+
import { Activity as d, AppWindow as f, ArrowRight as p, Building2 as m, DollarSign as h, Key as g, Loader2 as _, Plus as v, TrendingUp as y, Users as b, Webhook as x } from "lucide-react";
|
|
13
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
14
|
+
//#region src/devportal/pages/DashboardPage.tsx
|
|
15
|
+
var w = () => {
|
|
16
|
+
let { navigate: w, basePath: D } = e(), { t: O } = u(), k = (e, t) => {
|
|
17
|
+
let n = O(e);
|
|
18
|
+
return n === e ? t : n;
|
|
19
|
+
}, { data: A, loading: j } = s({ fetchPolicy: "cache-and-network" }), M = A?.myDeveloperOrganizations ?? [], N = A?.applications?.edges?.map((e) => e.node) ?? [], P = {
|
|
20
|
+
totalApps: A?.applications?.totalCount ?? 0,
|
|
21
|
+
totalOrgs: M.length,
|
|
22
|
+
totalApiKeys: 0,
|
|
23
|
+
totalWebhooks: 0,
|
|
24
|
+
totalApiCalls: M.reduce((e, t) => e + parseInt(t.totalApiCalls || "0"), 0),
|
|
25
|
+
activeInstalls: M.reduce((e, t) => e + (t.activeInstalls || 0), 0),
|
|
26
|
+
monthlyRevenue: M.reduce((e, t) => e + (t.totalRevenue || 0), 0),
|
|
27
|
+
errorRate: 0
|
|
28
|
+
}, F = (e) => {
|
|
29
|
+
w?.(`${D}${e}`);
|
|
30
|
+
}, I = j;
|
|
31
|
+
return /* @__PURE__ */ S(c, {
|
|
32
|
+
permission: l.APP_READ,
|
|
33
|
+
children: /* @__PURE__ */ C(n, {
|
|
34
|
+
title: k("devportal.developerPortal", "Developer Portal"),
|
|
35
|
+
description: k("devportal.buildManageMonitor", "Build, manage, and monitor your applications"),
|
|
36
|
+
actions: /* @__PURE__ */ C("button", {
|
|
37
|
+
onClick: () => F("/apps/new"),
|
|
38
|
+
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
|
|
39
|
+
children: [/* @__PURE__ */ S(v, { size: 16 }), k("devportal.createApp", "Create App")]
|
|
40
|
+
}),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ S(r, { children: /* @__PURE__ */ C(a, {
|
|
43
|
+
columns: 4,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ S(i, {
|
|
46
|
+
title: k("devportal.totalApps", "Total Apps"),
|
|
47
|
+
value: I ? /* @__PURE__ */ S(_, { className: "h-5 w-5 animate-spin" }) : P.totalApps,
|
|
48
|
+
icon: /* @__PURE__ */ S(f, { size: 20 }),
|
|
49
|
+
trend: void 0
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ S(i, {
|
|
52
|
+
title: k("devportal.organizations", "Organizations"),
|
|
53
|
+
value: I ? /* @__PURE__ */ S(_, { className: "h-5 w-5 animate-spin" }) : P.totalOrgs,
|
|
54
|
+
icon: /* @__PURE__ */ S(m, { size: 20 })
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ S(i, {
|
|
57
|
+
title: k("devportal.apiKeys", "API Keys"),
|
|
58
|
+
value: P.totalApiKeys,
|
|
59
|
+
icon: /* @__PURE__ */ S(g, { size: 20 }),
|
|
60
|
+
description: k("devportal.activeKeys", "Active keys")
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ S(i, {
|
|
63
|
+
title: k("devportal.webhooks", "Webhooks"),
|
|
64
|
+
value: P.totalWebhooks,
|
|
65
|
+
icon: /* @__PURE__ */ S(x, { size: 20 }),
|
|
66
|
+
description: k("devportal.configured", "Configured")
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}) }),
|
|
70
|
+
/* @__PURE__ */ S(r, {
|
|
71
|
+
title: k("devportal.usageOverview", "Usage Overview"),
|
|
72
|
+
children: /* @__PURE__ */ C(a, {
|
|
73
|
+
columns: 4,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ S(i, {
|
|
76
|
+
title: k("devportal.apiCalls", "API Calls"),
|
|
77
|
+
value: I ? /* @__PURE__ */ S(_, { className: "h-5 w-5 animate-spin" }) : P.totalApiCalls > 1e6 ? `${(P.totalApiCalls / 1e6).toFixed(1)}M` : P.totalApiCalls > 1e3 ? `${(P.totalApiCalls / 1e3).toFixed(1)}K` : P.totalApiCalls.toString(),
|
|
78
|
+
icon: /* @__PURE__ */ S(d, { size: 20 }),
|
|
79
|
+
trend: void 0
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ S(i, {
|
|
82
|
+
title: k("devportal.activeInstalls", "Active Installs"),
|
|
83
|
+
value: I ? /* @__PURE__ */ S(_, { className: "h-5 w-5 animate-spin" }) : P.activeInstalls > 1e3 ? `${(P.activeInstalls / 1e3).toFixed(1)}K` : P.activeInstalls.toString(),
|
|
84
|
+
icon: /* @__PURE__ */ S(b, { size: 20 }),
|
|
85
|
+
trend: void 0
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ S(i, {
|
|
88
|
+
title: k("devportal.monthlyRevenue", "Monthly Revenue"),
|
|
89
|
+
value: I ? /* @__PURE__ */ S(_, { className: "h-5 w-5 animate-spin" }) : `$${P.monthlyRevenue.toLocaleString()}`,
|
|
90
|
+
icon: /* @__PURE__ */ S(h, { size: 20 }),
|
|
91
|
+
trend: void 0
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ S(i, {
|
|
94
|
+
title: k("devportal.errorRate", "Error Rate"),
|
|
95
|
+
value: `${P.errorRate}%`,
|
|
96
|
+
icon: /* @__PURE__ */ S(y, { size: 20 }),
|
|
97
|
+
trend: void 0
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
})
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ C("div", {
|
|
103
|
+
className: "grid gap-6 lg:grid-cols-2",
|
|
104
|
+
children: [/* @__PURE__ */ S(r, {
|
|
105
|
+
title: k("devportal.recentApplications", "Recent Applications"),
|
|
106
|
+
actions: /* @__PURE__ */ C("button", {
|
|
107
|
+
onClick: () => F("/apps"),
|
|
108
|
+
className: "text-sm text-primary hover:underline flex items-center gap-1",
|
|
109
|
+
children: [
|
|
110
|
+
k("devportal.viewAll", "View all"),
|
|
111
|
+
" ",
|
|
112
|
+
/* @__PURE__ */ S(p, { size: 14 })
|
|
113
|
+
]
|
|
114
|
+
}),
|
|
115
|
+
children: I ? /* @__PURE__ */ S("div", {
|
|
116
|
+
className: "flex items-center justify-center py-8",
|
|
117
|
+
children: /* @__PURE__ */ S(_, { className: "h-6 w-6 animate-spin text-muted-foreground" })
|
|
118
|
+
}) : N.length > 0 ? /* @__PURE__ */ S("div", {
|
|
119
|
+
className: "space-y-2",
|
|
120
|
+
children: N.slice(0, 3).map((e) => /* @__PURE__ */ S(o, {
|
|
121
|
+
app: e,
|
|
122
|
+
onClick: () => F(`/apps/${e.id}`)
|
|
123
|
+
}, e.id))
|
|
124
|
+
}) : /* @__PURE__ */ S(t, {
|
|
125
|
+
icon: /* @__PURE__ */ S(f, { size: 24 }),
|
|
126
|
+
title: k("devportal.noApplicationsYet", "No applications yet"),
|
|
127
|
+
description: k("devportal.createFirstApplicationToGetStarted", "Create your first application to get started"),
|
|
128
|
+
action: /* @__PURE__ */ C("button", {
|
|
129
|
+
onClick: () => F("/apps/new"),
|
|
130
|
+
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",
|
|
131
|
+
children: [/* @__PURE__ */ S(v, { size: 16 }), k("devportal.createApp", "Create App")]
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
}), /* @__PURE__ */ S(r, {
|
|
135
|
+
title: k("devportal.quickActions", "Quick Actions"),
|
|
136
|
+
children: /* @__PURE__ */ C("div", {
|
|
137
|
+
className: "grid gap-3",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ S(T, {
|
|
140
|
+
title: k("devportal.createNewApp", "Create New App"),
|
|
141
|
+
description: k("devportal.startBuildingANewApplication", "Start building a new application"),
|
|
142
|
+
icon: /* @__PURE__ */ S(f, { size: 20 }),
|
|
143
|
+
onClick: () => F("/apps/new")
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ S(T, {
|
|
146
|
+
title: k("devportal.createOrganization", "Create Organization"),
|
|
147
|
+
description: k("devportal.setUpATeamToCollaborate", "Set up a team to collaborate"),
|
|
148
|
+
icon: /* @__PURE__ */ S(m, { size: 20 }),
|
|
149
|
+
onClick: () => F("/organizations/new")
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ S(T, {
|
|
152
|
+
title: k("devportal.generateApiKey", "Generate API Key"),
|
|
153
|
+
description: k("devportal.createCredentialsForYourApps", "Create credentials for your apps"),
|
|
154
|
+
icon: /* @__PURE__ */ S(g, { size: 20 }),
|
|
155
|
+
onClick: () => F("/api-keys")
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ S(T, {
|
|
158
|
+
title: k("devportal.configureWebhooks", "Configure Webhooks"),
|
|
159
|
+
description: k("devportal.setUpEventNotifications", "Set up event notifications"),
|
|
160
|
+
icon: /* @__PURE__ */ S(x, { size: 20 }),
|
|
161
|
+
onClick: () => F("/webhooks")
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
})
|
|
165
|
+
})]
|
|
166
|
+
}),
|
|
167
|
+
I ? /* @__PURE__ */ S(r, {
|
|
168
|
+
title: k("devportal.yourOrganizations", "Your Organizations"),
|
|
169
|
+
children: /* @__PURE__ */ S("div", {
|
|
170
|
+
className: "flex items-center justify-center py-8",
|
|
171
|
+
children: /* @__PURE__ */ S(_, { className: "h-6 w-6 animate-spin text-muted-foreground" })
|
|
172
|
+
})
|
|
173
|
+
}) : M.length > 0 ? /* @__PURE__ */ S(r, {
|
|
174
|
+
title: k("devportal.yourOrganizations", "Your Organizations"),
|
|
175
|
+
actions: /* @__PURE__ */ C("button", {
|
|
176
|
+
onClick: () => F("/organizations"),
|
|
177
|
+
className: "text-sm text-primary hover:underline flex items-center gap-1",
|
|
178
|
+
children: [
|
|
179
|
+
k("devportal.viewAll", "View all"),
|
|
180
|
+
" ",
|
|
181
|
+
/* @__PURE__ */ S(p, { size: 14 })
|
|
182
|
+
]
|
|
183
|
+
}),
|
|
184
|
+
children: /* @__PURE__ */ S("div", {
|
|
185
|
+
className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
186
|
+
children: M.slice(0, 3).map((e) => /* @__PURE__ */ S(E, {
|
|
187
|
+
org: e,
|
|
188
|
+
onClick: () => F(`/organizations/${e.id}`)
|
|
189
|
+
}, e.id))
|
|
190
|
+
})
|
|
191
|
+
}) : null
|
|
192
|
+
]
|
|
193
|
+
})
|
|
194
|
+
});
|
|
195
|
+
}, T = ({ title: e, description: t, icon: n, onClick: r }) => /* @__PURE__ */ C("button", {
|
|
196
|
+
onClick: r,
|
|
197
|
+
className: "flex items-center gap-4 rounded-lg border bg-card p-4 text-left hover:bg-accent transition-colors",
|
|
198
|
+
children: [/* @__PURE__ */ S("div", {
|
|
199
|
+
className: "rounded-lg bg-primary/10 p-2 text-primary",
|
|
200
|
+
children: n
|
|
201
|
+
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
202
|
+
className: "font-medium",
|
|
203
|
+
children: e
|
|
204
|
+
}), /* @__PURE__ */ S("p", {
|
|
205
|
+
className: "text-sm text-muted-foreground",
|
|
206
|
+
children: t
|
|
207
|
+
})] })]
|
|
208
|
+
}), E = ({ org: e, onClick: t }) => {
|
|
209
|
+
let { t: n } = u(), r = (e, t) => {
|
|
210
|
+
let r = n(e);
|
|
211
|
+
return r === e ? t : r;
|
|
212
|
+
};
|
|
213
|
+
return /* @__PURE__ */ C("button", {
|
|
214
|
+
onClick: t,
|
|
215
|
+
className: "rounded-lg border bg-card p-4 text-left hover:bg-accent transition-colors",
|
|
216
|
+
children: [/* @__PURE__ */ C("div", {
|
|
217
|
+
className: "flex items-center gap-3",
|
|
218
|
+
children: [e.logoUrl ? /* @__PURE__ */ S("img", {
|
|
219
|
+
src: e.logoUrl,
|
|
220
|
+
alt: e.name,
|
|
221
|
+
className: "h-10 w-10 rounded-lg object-cover"
|
|
222
|
+
}) : /* @__PURE__ */ S("div", {
|
|
223
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-primary/10 text-primary",
|
|
224
|
+
children: /* @__PURE__ */ S(m, { size: 20 })
|
|
225
|
+
}), /* @__PURE__ */ C("div", {
|
|
226
|
+
className: "flex-1 min-w-0",
|
|
227
|
+
children: [/* @__PURE__ */ S("p", {
|
|
228
|
+
className: "font-medium truncate",
|
|
229
|
+
children: e.name
|
|
230
|
+
}), /* @__PURE__ */ C("p", {
|
|
231
|
+
className: "text-sm text-muted-foreground",
|
|
232
|
+
children: [
|
|
233
|
+
e.publishedApps,
|
|
234
|
+
" ",
|
|
235
|
+
r("devportal.appsPublished", "apps published")
|
|
236
|
+
]
|
|
237
|
+
})]
|
|
238
|
+
})]
|
|
239
|
+
}), /* @__PURE__ */ C("div", {
|
|
240
|
+
className: "mt-3 flex gap-4 text-sm text-muted-foreground",
|
|
241
|
+
children: [/* @__PURE__ */ C("span", { children: [
|
|
242
|
+
(e.totalInstalls || 0).toLocaleString(),
|
|
243
|
+
" ",
|
|
244
|
+
r("devportal.installs", "installs")
|
|
245
|
+
] }), /* @__PURE__ */ C("span", { children: [
|
|
246
|
+
"$",
|
|
247
|
+
(e.totalRevenue || 0).toLocaleString(),
|
|
248
|
+
" ",
|
|
249
|
+
r("devportal.revenue", "revenue")
|
|
250
|
+
] })]
|
|
251
|
+
})]
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
//#endregion
|
|
255
|
+
export { w as DashboardPage };
|
|
256
|
+
|
|
257
|
+
//# sourceMappingURL=DashboardPage.js.map
|