@burdenoff/microfe-devportal 2026.1107.3 → 2026.1108.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/utils/renderWithProviders.d.ts +0 -2
- package/dist/_virtual/_rolldown/runtime.js +4 -5
- package/dist/dev/main.d.ts +0 -1
- package/dist/devportal/AdminDevportalRoot.d.ts +0 -2
- package/dist/devportal/AdminDevportalRoot.js +9 -6
- package/dist/devportal/AdminDevportalRoot.js.map +1 -1
- package/dist/devportal/AdminDevportalRoutes.d.ts +1 -2
- package/dist/devportal/AdminDevportalRoutes.js +1 -2
- package/dist/devportal/AdminDevportalRoutes.js.map +1 -1
- package/dist/devportal/DevportalRoot.d.ts +0 -2
- package/dist/devportal/DevportalRoot.js +13 -10
- package/dist/devportal/DevportalRoot.js.map +1 -1
- package/dist/devportal/DevportalRoutes.d.ts +1 -2
- package/dist/devportal/DevportalRoutes.js +46 -40
- package/dist/devportal/DevportalRoutes.js.map +1 -1
- package/dist/devportal/components/AppCard.d.ts +0 -2
- package/dist/devportal/components/AppCard.js +21 -22
- package/dist/devportal/components/AppCard.js.map +1 -1
- package/dist/devportal/components/ConfirmDialog.d.ts +0 -2
- package/dist/devportal/components/ConfirmDialog.js +9 -10
- package/dist/devportal/components/ConfirmDialog.js.map +1 -1
- package/dist/devportal/components/DataTable.d.ts +1 -3
- package/dist/devportal/components/DataTable.js +20 -21
- package/dist/devportal/components/DataTable.js.map +1 -1
- package/dist/devportal/components/EmptyState.d.ts +0 -2
- package/dist/devportal/components/EmptyState.js +1 -2
- package/dist/devportal/components/EmptyState.js.map +1 -1
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts +0 -2
- package/dist/devportal/components/FeatureFlaggedRoute.js +1 -2
- package/dist/devportal/components/FeatureFlaggedRoute.js.map +1 -1
- package/dist/devportal/components/FormField.d.ts +0 -2
- package/dist/devportal/components/FormField.js +23 -24
- package/dist/devportal/components/FormField.js.map +1 -1
- package/dist/devportal/components/GrantDelegationModal.d.ts +0 -2
- package/dist/devportal/components/GrantDelegationModal.js +1 -2
- package/dist/devportal/components/GrantDelegationModal.js.map +1 -1
- package/dist/devportal/components/ImageUploadField.d.ts +0 -2
- package/dist/devportal/components/ImageUploadField.js +1 -2
- package/dist/devportal/components/ImageUploadField.js.map +1 -1
- package/dist/devportal/components/LoadingState.d.ts +0 -2
- package/dist/devportal/components/LoadingState.js +6 -7
- package/dist/devportal/components/LoadingState.js.map +1 -1
- package/dist/devportal/components/ManifestViewer.d.ts +0 -2
- package/dist/devportal/components/ManifestViewer.js +1 -2
- package/dist/devportal/components/ManifestViewer.js.map +1 -1
- package/dist/devportal/components/MarkdownEditor.d.ts +0 -2
- package/dist/devportal/components/MarkdownEditor.js +1 -2
- package/dist/devportal/components/MarkdownEditor.js.map +1 -1
- package/dist/devportal/components/MultiSelectCombobox.d.ts +1 -2
- package/dist/devportal/components/MultiSelectCombobox.js +1 -2
- package/dist/devportal/components/MultiSelectCombobox.js.map +1 -1
- package/dist/devportal/components/NodeSmokePanel.d.ts +0 -2
- package/dist/devportal/components/NodeSmokePanel.js +17 -18
- package/dist/devportal/components/NodeSmokePanel.js.map +1 -1
- package/dist/devportal/components/OnboardingChecklist.d.ts +0 -2
- package/dist/devportal/components/OnboardingChecklist.js +15 -16
- package/dist/devportal/components/OnboardingChecklist.js.map +1 -1
- package/dist/devportal/components/PackageValidationPanel.d.ts +0 -2
- package/dist/devportal/components/PackageValidationPanel.js +12 -13
- package/dist/devportal/components/PackageValidationPanel.js.map +1 -1
- package/dist/devportal/components/PageLayout.d.ts +0 -2
- package/dist/devportal/components/PageLayout.js +16 -17
- package/dist/devportal/components/PageLayout.js.map +1 -1
- package/dist/devportal/components/PermissionGuard.d.ts +0 -2
- package/dist/devportal/components/PermissionGuard.js +5 -6
- package/dist/devportal/components/PermissionGuard.js.map +1 -1
- package/dist/devportal/components/RegisterPickupLocationModal.d.ts +0 -2
- package/dist/devportal/components/RegisterPickupLocationModal.js +13 -14
- package/dist/devportal/components/RegisterPickupLocationModal.js.map +1 -1
- package/dist/devportal/components/ReportOrderIssueModal.d.ts +0 -2
- package/dist/devportal/components/ReportOrderIssueModal.js +1 -2
- package/dist/devportal/components/ReportOrderIssueModal.js.map +1 -1
- package/dist/devportal/components/SecretDisplay.d.ts +0 -2
- package/dist/devportal/components/SecretDisplay.js +8 -9
- package/dist/devportal/components/SecretDisplay.js.map +1 -1
- package/dist/devportal/components/SectionNav.d.ts +0 -2
- package/dist/devportal/components/SectionNav.js +11 -12
- package/dist/devportal/components/SectionNav.js.map +1 -1
- package/dist/devportal/components/SelectionCheckbox.d.ts +1 -2
- package/dist/devportal/components/SelectionCheckbox.js +1 -2
- package/dist/devportal/components/SelectionCheckbox.js.map +1 -1
- package/dist/devportal/components/StatCard.d.ts +0 -2
- package/dist/devportal/components/StatCard.js +1 -2
- package/dist/devportal/components/StatCard.js.map +1 -1
- package/dist/devportal/components/StatusBadge.d.ts +0 -2
- package/dist/devportal/components/StatusBadge.js +18 -19
- package/dist/devportal/components/StatusBadge.js.map +1 -1
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts +0 -2
- package/dist/devportal/components/TelemetryErrorBoundary.js +1 -2
- package/dist/devportal/components/TelemetryErrorBoundary.js.map +1 -1
- package/dist/devportal/components/index.d.ts +0 -1
- package/dist/devportal/components/index.js +22 -21
- package/dist/devportal/constants/appCategories.d.ts +0 -1
- package/dist/devportal/constants/appCategories.js +1 -2
- package/dist/devportal/constants/appCategories.js.map +1 -1
- package/dist/devportal/constants/developerLinks.d.ts +0 -1
- package/dist/devportal/constants/developerLinks.js +23 -23
- package/dist/devportal/constants/developerLinks.js.map +1 -1
- package/dist/devportal/constants/permissions.d.ts +0 -1
- package/dist/devportal/constants/permissions.js +1 -2
- package/dist/devportal/constants/permissions.js.map +1 -1
- package/dist/devportal/events/index.d.ts +0 -1
- package/dist/devportal/events/index.js +1 -2
- package/dist/devportal/events/index.js.map +1 -1
- package/dist/devportal/hooks/DevPortalProvider.d.ts +1 -3
- package/dist/devportal/hooks/DevPortalProvider.js +2 -3
- package/dist/devportal/hooks/DevPortalProvider.js.map +1 -1
- package/dist/devportal/hooks/index.d.ts +0 -1
- package/dist/devportal/hooks/index.js +6 -5
- package/dist/devportal/hooks/useCarrierPickupLocations.d.ts +0 -1
- package/dist/devportal/hooks/useCarrierPickupLocations.js +1 -2
- package/dist/devportal/hooks/useCarrierPickupLocations.js.map +1 -1
- package/dist/devportal/hooks/useGraphQL.d.ts +0 -2
- package/dist/devportal/hooks/useGraphQL.js +42 -53
- package/dist/devportal/hooks/useGraphQL.js.map +1 -1
- package/dist/devportal/hooks/useIsSellerSection.d.ts +0 -1
- package/dist/devportal/hooks/useIsSellerSection.js +1 -2
- package/dist/devportal/hooks/useIsSellerSection.js.map +1 -1
- package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts +0 -1
- package/dist/devportal/hooks/useOrganizationPickupAddresses.js +3 -8
- package/dist/devportal/hooks/useOrganizationPickupAddresses.js.map +1 -1
- package/dist/devportal/hooks/usePackageUpload.d.ts +0 -1
- package/dist/devportal/hooks/usePackageUpload.js +4 -4
- package/dist/devportal/hooks/usePackageUpload.js.map +1 -1
- package/dist/devportal/hooks/usePermission.d.ts +0 -2
- package/dist/devportal/hooks/usePermission.js +2 -3
- package/dist/devportal/hooks/usePermission.js.map +1 -1
- package/dist/devportal/hooks/useProducts.d.ts +0 -1
- package/dist/devportal/hooks/useProducts.js +1 -2
- package/dist/devportal/hooks/useProducts.js.map +1 -1
- package/dist/devportal/hooks/useSellerOrganization.d.ts +0 -1
- package/dist/devportal/hooks/useSellerOrganization.js +1 -2
- package/dist/devportal/hooks/useSellerOrganization.js.map +1 -1
- package/dist/devportal/index.d.ts +0 -1
- package/dist/devportal/index.js +13 -12
- package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts +0 -2
- package/dist/devportal/pages/AdminOrganizationVerificationPage.js +13 -13
- package/dist/devportal/pages/AdminOrganizationVerificationPage.js.map +1 -1
- package/dist/devportal/pages/AdminReviewPage.d.ts +0 -2
- package/dist/devportal/pages/AdminReviewPage.js +134 -135
- package/dist/devportal/pages/AdminReviewPage.js.map +1 -1
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +0 -2
- package/dist/devportal/pages/AnalyticsDashboardPage.js +66 -67
- package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
- package/dist/devportal/pages/ApiKeysPage.d.ts +0 -2
- package/dist/devportal/pages/ApiKeysPage.js +127 -128
- package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
- package/dist/devportal/pages/AppLogsPage.d.ts +0 -2
- package/dist/devportal/pages/AppLogsPage.js +18 -19
- package/dist/devportal/pages/AppLogsPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationDetailPage.d.ts +0 -2
- package/dist/devportal/pages/ApplicationDetailPage.js +779 -778
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts +0 -2
- package/dist/devportal/pages/ApplicationVersionsPage.js +482 -483
- package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationsPage.d.ts +0 -2
- package/dist/devportal/pages/ApplicationsPage.js +35 -36
- package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
- package/dist/devportal/pages/CreateApiKeyPage.d.ts +0 -2
- package/dist/devportal/pages/CreateApiKeyPage.js +39 -39
- package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
- package/dist/devportal/pages/CreateApplicationPage.d.ts +0 -2
- package/dist/devportal/pages/CreateApplicationPage.js +136 -137
- package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts +0 -2
- package/dist/devportal/pages/CreateOAuthClientPage.js +25 -24
- package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
- package/dist/devportal/pages/CreateOrganizationPage.d.ts +0 -2
- package/dist/devportal/pages/CreateOrganizationPage.js +32 -39
- package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
- package/dist/devportal/pages/CreatePhysicalItemPage.d.ts +0 -2
- package/dist/devportal/pages/CreatePhysicalItemPage.js +102 -103
- package/dist/devportal/pages/CreatePhysicalItemPage.js.map +1 -1
- package/dist/devportal/pages/CreateWebhookPage.d.ts +0 -2
- package/dist/devportal/pages/CreateWebhookPage.js +31 -32
- package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
- package/dist/devportal/pages/DashboardPage.d.ts +0 -2
- package/dist/devportal/pages/DashboardPage.js +21 -22
- package/dist/devportal/pages/DashboardPage.js.map +1 -1
- package/dist/devportal/pages/DelegationsPage.d.ts +0 -2
- package/dist/devportal/pages/DelegationsPage.js +83 -84
- package/dist/devportal/pages/DelegationsPage.js.map +1 -1
- package/dist/devportal/pages/DocumentationPage.d.ts +0 -2
- package/dist/devportal/pages/DocumentationPage.js +1 -2
- package/dist/devportal/pages/DocumentationPage.js.map +1 -1
- package/dist/devportal/pages/EditApplicationPage.d.ts +0 -2
- package/dist/devportal/pages/EditApplicationPage.js +69 -70
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/EditPhysicalItemPage.d.ts +0 -2
- package/dist/devportal/pages/EditPhysicalItemPage.js +334 -335
- package/dist/devportal/pages/EditPhysicalItemPage.js.map +1 -1
- package/dist/devportal/pages/InvitationDecisionPage.d.ts +0 -2
- package/dist/devportal/pages/InvitationDecisionPage.js +16 -17
- package/dist/devportal/pages/InvitationDecisionPage.js.map +1 -1
- package/dist/devportal/pages/ListingPreviewPage.d.ts +0 -2
- package/dist/devportal/pages/ListingPreviewPage.js +14 -15
- package/dist/devportal/pages/ListingPreviewPage.js.map +1 -1
- package/dist/devportal/pages/NodeLifecyclePage.d.ts +0 -2
- package/dist/devportal/pages/NodeLifecyclePage.js +216 -221
- package/dist/devportal/pages/NodeLifecyclePage.js.map +1 -1
- package/dist/devportal/pages/OAuthCallbackPage.d.ts +0 -2
- package/dist/devportal/pages/OAuthCallbackPage.js +4 -5
- package/dist/devportal/pages/OAuthCallbackPage.js.map +1 -1
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts +0 -2
- package/dist/devportal/pages/OAuthClientDetailPage.js +17 -16
- package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -1
- package/dist/devportal/pages/OAuthClientsPage.d.ts +0 -2
- package/dist/devportal/pages/OAuthClientsPage.js +18 -19
- package/dist/devportal/pages/OAuthClientsPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationDetailPage.d.ts +0 -2
- package/dist/devportal/pages/OrganizationDetailPage.js +444 -450
- package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationMembersPage.d.ts +0 -2
- package/dist/devportal/pages/OrganizationMembersPage.js +240 -241
- package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationsPage.d.ts +0 -2
- package/dist/devportal/pages/OrganizationsPage.js +34 -35
- package/dist/devportal/pages/OrganizationsPage.js.map +1 -1
- package/dist/devportal/pages/PublishPage.d.ts +0 -2
- package/dist/devportal/pages/PublishPage.js +90 -91
- package/dist/devportal/pages/PublishPage.js.map +1 -1
- package/dist/devportal/pages/PublisherPayoutsPage.d.ts +19 -0
- package/dist/devportal/pages/PublisherPayoutsPage.js +650 -0
- package/dist/devportal/pages/PublisherPayoutsPage.js.map +1 -0
- package/dist/devportal/pages/PublisherProfilePage.d.ts +0 -2
- package/dist/devportal/pages/PublisherProfilePage.js +175 -163
- package/dist/devportal/pages/PublisherProfilePage.js.map +1 -1
- package/dist/devportal/pages/ResourcesPage.d.ts +0 -2
- package/dist/devportal/pages/ResourcesPage.js +17 -18
- package/dist/devportal/pages/ResourcesPage.js.map +1 -1
- package/dist/devportal/pages/RevenueDashboardPage.d.ts +0 -2
- package/dist/devportal/pages/RevenueDashboardPage.js +308 -308
- package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
- package/dist/devportal/pages/RevenueRedirectPage.d.ts +0 -2
- package/dist/devportal/pages/SellerDashboardPage.d.ts +0 -2
- package/dist/devportal/pages/SellerDashboardPage.js +14 -15
- package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
- package/dist/devportal/pages/SellerItemsPage.d.ts +0 -2
- package/dist/devportal/pages/SellerItemsPage.js +8 -9
- package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
- package/dist/devportal/pages/SellerOrdersPage.d.ts +0 -2
- package/dist/devportal/pages/SellerOrdersPage.js +10 -14
- package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
- package/dist/devportal/pages/SettingsPage.d.ts +0 -2
- package/dist/devportal/pages/SettingsPage.js +20 -21
- package/dist/devportal/pages/SettingsPage.js.map +1 -1
- package/dist/devportal/pages/SetupPage.d.ts +0 -2
- package/dist/devportal/pages/SetupPage.js +276 -277
- package/dist/devportal/pages/SetupPage.js.map +1 -1
- package/dist/devportal/pages/StoreSubmissionPage.d.ts +0 -2
- package/dist/devportal/pages/StoreSubmissionPage.js +4 -5
- package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -1
- package/dist/devportal/pages/WebhookDetailPage.d.ts +0 -2
- package/dist/devportal/pages/WebhookDetailPage.js +62 -67
- package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
- package/dist/devportal/pages/WebhooksPage.d.ts +0 -2
- package/dist/devportal/pages/WebhooksPage.js +130 -131
- package/dist/devportal/pages/WebhooksPage.js.map +1 -1
- package/dist/devportal/providers/DevportalProvider.d.ts +0 -2
- package/dist/devportal/providers/DevportalProvider.js +2 -3
- package/dist/devportal/providers/DevportalProvider.js.map +1 -1
- package/dist/devportal/store/devportalStore.d.ts +0 -2
- package/dist/devportal/store/devportalStore.js +1 -2
- package/dist/devportal/store/devportalStore.js.map +1 -1
- package/dist/devportal/types/index.d.ts +0 -2
- package/dist/devportal/types/index.js +1 -2
- package/dist/devportal/types/index.js.map +1 -1
- package/dist/devportal/utils/cn.d.ts +0 -2
- package/dist/devportal/utils/cn.js +2 -3
- package/dist/devportal/utils/cn.js.map +1 -1
- package/dist/devportal/utils/constants.d.ts +0 -1
- package/dist/devportal/utils/constants.js +1 -2
- package/dist/devportal/utils/constants.js.map +1 -1
- package/dist/devportal/utils/currency.d.ts +0 -1
- package/dist/devportal/utils/currency.js +1 -2
- package/dist/devportal/utils/currency.js.map +1 -1
- package/dist/devportal/utils/developerOnboarding.d.ts +0 -1
- package/dist/devportal/utils/developerOnboarding.js +4 -5
- package/dist/devportal/utils/developerOnboarding.js.map +1 -1
- package/dist/devportal/utils/graphqlEndpoint.d.ts +0 -1
- package/dist/devportal/utils/graphqlEndpoint.js +1 -2
- package/dist/devportal/utils/graphqlEndpoint.js.map +1 -1
- package/dist/devportal/utils/i18n.d.ts +0 -1
- package/dist/devportal/utils/i18n.js +1 -2
- package/dist/devportal/utils/i18n.js.map +1 -1
- package/dist/devportal/utils/nodeLifecycle.d.ts +0 -2
- package/dist/devportal/utils/nodeLifecycle.js +6 -7
- package/dist/devportal/utils/nodeLifecycle.js.map +1 -1
- package/dist/devportal/utils/publisherPayouts.d.ts +136 -0
- package/dist/devportal/utils/publisherPayouts.js +166 -0
- package/dist/devportal/utils/publisherPayouts.js.map +1 -0
- package/dist/devportal/utils/recaptcha.d.ts +0 -1
- package/dist/devportal/utils/recaptcha.js +1 -2
- package/dist/devportal/utils/recaptcha.js.map +1 -1
- package/dist/devportal/utils/submitForReview.d.ts +0 -1
- package/dist/devportal/utils/submitForReview.js +15 -14
- package/dist/devportal/utils/submitForReview.js.map +1 -1
- package/dist/devportal/utils/uploadErrors.d.ts +0 -1
- package/dist/devportal/utils/uploadErrors.js +30 -30
- package/dist/devportal/utils/uploadErrors.js.map +1 -1
- package/dist/generated/global-operations.d.ts +2614 -2317
- package/dist/generated/global-operations.js +412 -272
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2288 -339
- package/dist/generated/global-types.js +4 -3
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +31 -8
- package/dist/generated/wspace-operations.js +2 -3
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/ServerError.js +1 -2
- package/dist/node_modules/@apollo/client/errors/ServerError.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +16 -17
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/version.js +2 -3
- package/dist/node_modules/@apollo/client/version.js.map +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js +2 -3
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/d3-array/dist/d3-array.js +204 -0
- package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
- package/dist/node_modules/d3-color/dist/d3-color.js +388 -0
- package/dist/node_modules/d3-color/dist/d3-color.js.map +1 -0
- package/dist/node_modules/d3-format/dist/d3-format.js +186 -0
- package/dist/node_modules/d3-format/dist/d3-format.js.map +1 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +185 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +1 -0
- package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +39 -14
- package/dist/node_modules/d3-path/dist/d3-path.js.map +1 -0
- package/dist/node_modules/d3-scale/dist/d3-scale.js +622 -0
- package/dist/node_modules/d3-scale/dist/d3-scale.js.map +1 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js +901 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js.map +1 -0
- package/dist/node_modules/d3-time/dist/d3-time.js +241 -0
- package/dist/node_modules/d3-time/dist/d3-time.js.map +1 -0
- package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +229 -174
- package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +29 -22
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +3 -4
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +2 -5
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +2 -3
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
- package/dist/node_modules/date-fns/constants.js +5 -5
- package/dist/node_modules/date-fns/constants.js.map +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +2 -3
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +2 -3
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
- package/dist/node_modules/date-fns/format.js +15 -16
- package/dist/node_modules/date-fns/format.js.map +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +7 -8
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +8 -9
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +8 -9
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/getWeek.js +8 -9
- package/dist/node_modules/date-fns/getWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js +9 -10
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/isDate.js +2 -3
- package/dist/node_modules/date-fns/isDate.js.map +1 -1
- package/dist/node_modules/date-fns/isValid.js +6 -7
- package/dist/node_modules/date-fns/isValid.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js +2 -3
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
- package/dist/node_modules/date-fns/startOfDay.js +2 -3
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js +2 -3
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +6 -7
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfYear.js +3 -4
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/toDate.js +2 -3
- package/dist/node_modules/date-fns/toDate.js.map +1 -1
- package/dist/node_modules/decimal.js-light/decimal.js +33 -30
- package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
- package/dist/node_modules/eventemitter3/index.js +2 -3
- package/dist/node_modules/eventemitter3/index.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +109 -79
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js +76 -69
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
- package/dist/node_modules/lodash/_DataView.js +4 -5
- package/dist/node_modules/lodash/_DataView.js.map +1 -1
- package/dist/node_modules/lodash/_Hash.js +1 -2
- package/dist/node_modules/lodash/_Hash.js.map +1 -1
- package/dist/node_modules/lodash/_ListCache.js +1 -2
- package/dist/node_modules/lodash/_ListCache.js.map +1 -1
- package/dist/node_modules/lodash/_Map.js +4 -5
- package/dist/node_modules/lodash/_Map.js.map +1 -1
- package/dist/node_modules/lodash/_MapCache.js +1 -2
- package/dist/node_modules/lodash/_MapCache.js.map +1 -1
- package/dist/node_modules/lodash/_Promise.js +4 -5
- package/dist/node_modules/lodash/_Promise.js.map +1 -1
- package/dist/node_modules/lodash/_Set.js +4 -5
- package/dist/node_modules/lodash/_Set.js.map +1 -1
- package/dist/node_modules/lodash/_SetCache.js +1 -2
- package/dist/node_modules/lodash/_SetCache.js.map +1 -1
- package/dist/node_modules/lodash/_Stack.js +3 -3
- package/dist/node_modules/lodash/_Stack.js.map +1 -1
- package/dist/node_modules/lodash/_Symbol.js +1 -2
- package/dist/node_modules/lodash/_Symbol.js.map +1 -1
- package/dist/node_modules/lodash/_Uint8Array.js +1 -2
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
- package/dist/node_modules/lodash/_WeakMap.js +4 -5
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
- package/dist/node_modules/lodash/_apply.js +1 -2
- package/dist/node_modules/lodash/_apply.js.map +1 -1
- package/dist/node_modules/lodash/_arrayEvery.js +1 -2
- package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
- package/dist/node_modules/lodash/_arrayFilter.js +1 -2
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
- package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
- package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_arrayMap.js +1 -2
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
- package/dist/node_modules/lodash/_arrayPush.js +1 -2
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
- package/dist/node_modules/lodash/_arraySome.js +1 -2
- package/dist/node_modules/lodash/_arraySome.js.map +1 -1
- package/dist/node_modules/lodash/_asciiToArray.js +1 -2
- package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
- package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
- package/dist/node_modules/lodash/_baseEach.js +1 -2
- package/dist/node_modules/lodash/_baseEach.js.map +1 -1
- package/dist/node_modules/lodash/_baseEvery.js +1 -2
- package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
- package/dist/node_modules/lodash/_baseExtremum.js +1 -2
- package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
- package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
- package/dist/node_modules/lodash/_baseFlatten.js +1 -2
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
- package/dist/node_modules/lodash/_baseFor.js +1 -2
- package/dist/node_modules/lodash/_baseFor.js.map +1 -1
- package/dist/node_modules/lodash/_baseForOwn.js +4 -5
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
- package/dist/node_modules/lodash/_baseGet.js +1 -2
- package/dist/node_modules/lodash/_baseGet.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseGetTag.js +1 -2
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
- package/dist/node_modules/lodash/_baseGt.js +1 -2
- package/dist/node_modules/lodash/_baseGt.js.map +1 -1
- package/dist/node_modules/lodash/_baseHasIn.js +1 -2
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
- package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsNative.js +5 -6
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
- package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/_baseIteratee.js +6 -7
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
- package/dist/node_modules/lodash/_baseKeys.js +1 -2
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
- package/dist/node_modules/lodash/_baseLt.js +1 -2
- package/dist/node_modules/lodash/_baseLt.js.map +1 -1
- package/dist/node_modules/lodash/_baseMap.js +4 -5
- package/dist/node_modules/lodash/_baseMap.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatches.js +1 -2
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
- package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
- package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
- package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseProperty.js +1 -2
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
- package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
- package/dist/node_modules/lodash/_baseRange.js +1 -2
- package/dist/node_modules/lodash/_baseRange.js.map +1 -1
- package/dist/node_modules/lodash/_baseRest.js +1 -2
- package/dist/node_modules/lodash/_baseRest.js.map +1 -1
- package/dist/node_modules/lodash/_baseSetToString.js +5 -6
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseSlice.js +1 -2
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
- package/dist/node_modules/lodash/_baseSome.js +1 -2
- package/dist/node_modules/lodash/_baseSome.js.map +1 -1
- package/dist/node_modules/lodash/_baseSortBy.js +1 -2
- package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
- package/dist/node_modules/lodash/_baseTimes.js +1 -2
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
- package/dist/node_modules/lodash/_baseToString.js +6 -7
- package/dist/node_modules/lodash/_baseToString.js.map +1 -1
- package/dist/node_modules/lodash/_baseTrim.js +1 -2
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
- package/dist/node_modules/lodash/_baseUnary.js +1 -2
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
- package/dist/node_modules/lodash/_baseUniq.js +7 -8
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
- package/dist/node_modules/lodash/_cacheHas.js +1 -2
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_castPath.js +1 -2
- package/dist/node_modules/lodash/_castPath.js.map +1 -1
- package/dist/node_modules/lodash/_castSlice.js +1 -2
- package/dist/node_modules/lodash/_castSlice.js.map +1 -1
- package/dist/node_modules/lodash/_compareAscending.js +1 -2
- package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
- package/dist/node_modules/lodash/_compareMultiple.js +1 -2
- package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
- package/dist/node_modules/lodash/_coreJsData.js +1 -2
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseEach.js +1 -2
- package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
- package/dist/node_modules/lodash/_createBaseFor.js +1 -2
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
- package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
- package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
- package/dist/node_modules/lodash/_createFind.js +5 -6
- package/dist/node_modules/lodash/_createFind.js.map +1 -1
- package/dist/node_modules/lodash/_createRange.js +4 -5
- package/dist/node_modules/lodash/_createRange.js.map +1 -1
- package/dist/node_modules/lodash/_createSet.js +6 -7
- package/dist/node_modules/lodash/_createSet.js.map +1 -1
- package/dist/node_modules/lodash/_defineProperty.js +1 -2
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
- package/dist/node_modules/lodash/_equalArrays.js +1 -2
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
- package/dist/node_modules/lodash/_equalByTag.js +5 -6
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
- package/dist/node_modules/lodash/_equalObjects.js +1 -2
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
- package/dist/node_modules/lodash/_freeGlobal.js +1 -2
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
- package/dist/node_modules/lodash/_getAllKeys.js +1 -2
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
- package/dist/node_modules/lodash/_getMapData.js +1 -2
- package/dist/node_modules/lodash/_getMapData.js.map +1 -1
- package/dist/node_modules/lodash/_getMatchData.js +4 -5
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
- package/dist/node_modules/lodash/_getNative.js +1 -2
- package/dist/node_modules/lodash/_getNative.js.map +1 -1
- package/dist/node_modules/lodash/_getPrototype.js +1 -2
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_getRawTag.js +1 -2
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
- package/dist/node_modules/lodash/_getSymbols.js +1 -2
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
- package/dist/node_modules/lodash/_getTag.js +9 -10
- package/dist/node_modules/lodash/_getTag.js.map +1 -1
- package/dist/node_modules/lodash/_getValue.js +1 -2
- package/dist/node_modules/lodash/_getValue.js.map +1 -1
- package/dist/node_modules/lodash/_hasPath.js +8 -9
- package/dist/node_modules/lodash/_hasPath.js.map +1 -1
- package/dist/node_modules/lodash/_hasUnicode.js +1 -2
- package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
- package/dist/node_modules/lodash/_hashClear.js +1 -2
- package/dist/node_modules/lodash/_hashClear.js.map +1 -1
- package/dist/node_modules/lodash/_hashDelete.js +1 -2
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
- package/dist/node_modules/lodash/_hashGet.js +1 -2
- package/dist/node_modules/lodash/_hashGet.js.map +1 -1
- package/dist/node_modules/lodash/_hashHas.js +1 -2
- package/dist/node_modules/lodash/_hashHas.js.map +1 -1
- package/dist/node_modules/lodash/_hashSet.js +1 -2
- package/dist/node_modules/lodash/_hashSet.js.map +1 -1
- package/dist/node_modules/lodash/_isFlattenable.js +5 -6
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
- package/dist/node_modules/lodash/_isIndex.js +6 -7
- package/dist/node_modules/lodash/_isIndex.js.map +1 -1
- package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
- package/dist/node_modules/lodash/_isKey.js +1 -2
- package/dist/node_modules/lodash/_isKey.js.map +1 -1
- package/dist/node_modules/lodash/_isKeyable.js +1 -2
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
- package/dist/node_modules/lodash/_isMasked.js +1 -2
- package/dist/node_modules/lodash/_isMasked.js.map +1 -1
- package/dist/node_modules/lodash/_isPrototype.js +1 -2
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
- package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheClear.js +1 -2
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheGet.js +1 -2
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheHas.js +1 -2
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_listCacheSet.js +1 -2
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
- package/dist/node_modules/lodash/_mapToArray.js +1 -2
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
- package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
- package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
- package/dist/node_modules/lodash/_nativeCreate.js +1 -2
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
- package/dist/node_modules/lodash/_nativeKeys.js +1 -2
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
- package/dist/node_modules/lodash/_nodeUtil.js +1 -2
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
- package/dist/node_modules/lodash/_objectToString.js +1 -2
- package/dist/node_modules/lodash/_objectToString.js.map +1 -1
- package/dist/node_modules/lodash/_overArg.js +1 -2
- package/dist/node_modules/lodash/_overArg.js.map +1 -1
- package/dist/node_modules/lodash/_overRest.js +1 -2
- package/dist/node_modules/lodash/_overRest.js.map +1 -1
- package/dist/node_modules/lodash/_root.js +1 -2
- package/dist/node_modules/lodash/_root.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
- package/dist/node_modules/lodash/_setCacheHas.js +1 -2
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
- package/dist/node_modules/lodash/_setToArray.js +1 -2
- package/dist/node_modules/lodash/_setToArray.js.map +1 -1
- package/dist/node_modules/lodash/_setToString.js +1 -2
- package/dist/node_modules/lodash/_setToString.js.map +1 -1
- package/dist/node_modules/lodash/_shortOut.js +8 -9
- package/dist/node_modules/lodash/_shortOut.js.map +1 -1
- package/dist/node_modules/lodash/_stackClear.js +1 -2
- package/dist/node_modules/lodash/_stackClear.js.map +1 -1
- package/dist/node_modules/lodash/_stackDelete.js +1 -2
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
- package/dist/node_modules/lodash/_stackGet.js +1 -2
- package/dist/node_modules/lodash/_stackGet.js.map +1 -1
- package/dist/node_modules/lodash/_stackHas.js +1 -2
- package/dist/node_modules/lodash/_stackHas.js.map +1 -1
- package/dist/node_modules/lodash/_stackSet.js +1 -2
- package/dist/node_modules/lodash/_stackSet.js.map +1 -1
- package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
- package/dist/node_modules/lodash/_stringToArray.js +4 -5
- package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
- package/dist/node_modules/lodash/_stringToPath.js +1 -2
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
- package/dist/node_modules/lodash/_toKey.js +2 -3
- package/dist/node_modules/lodash/_toKey.js.map +1 -1
- package/dist/node_modules/lodash/_toSource.js +1 -2
- package/dist/node_modules/lodash/_toSource.js.map +1 -1
- package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
- package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
- package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
- package/dist/node_modules/lodash/constant.js +1 -2
- package/dist/node_modules/lodash/constant.js.map +1 -1
- package/dist/node_modules/lodash/debounce.js +1 -2
- package/dist/node_modules/lodash/debounce.js.map +1 -1
- package/dist/node_modules/lodash/eq.js +1 -2
- package/dist/node_modules/lodash/eq.js.map +1 -1
- package/dist/node_modules/lodash/every.js +7 -8
- package/dist/node_modules/lodash/every.js.map +1 -1
- package/dist/node_modules/lodash/find.js +1 -2
- package/dist/node_modules/lodash/find.js.map +1 -1
- package/dist/node_modules/lodash/findIndex.js +4 -5
- package/dist/node_modules/lodash/findIndex.js.map +1 -1
- package/dist/node_modules/lodash/flatMap.js +1 -2
- package/dist/node_modules/lodash/flatMap.js.map +1 -1
- package/dist/node_modules/lodash/get.js +1 -2
- package/dist/node_modules/lodash/get.js.map +1 -1
- package/dist/node_modules/lodash/hasIn.js +1 -2
- package/dist/node_modules/lodash/hasIn.js.map +1 -1
- package/dist/node_modules/lodash/identity.js +1 -2
- package/dist/node_modules/lodash/identity.js.map +1 -1
- package/dist/node_modules/lodash/isArguments.js +4 -5
- package/dist/node_modules/lodash/isArguments.js.map +1 -1
- package/dist/node_modules/lodash/isArray.js +1 -2
- package/dist/node_modules/lodash/isArray.js.map +1 -1
- package/dist/node_modules/lodash/isArrayLike.js +1 -2
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
- package/dist/node_modules/lodash/isBoolean.js +1 -2
- package/dist/node_modules/lodash/isBoolean.js.map +1 -1
- package/dist/node_modules/lodash/isBuffer.js +1 -2
- package/dist/node_modules/lodash/isBuffer.js.map +1 -1
- package/dist/node_modules/lodash/isEqual.js +1 -2
- package/dist/node_modules/lodash/isEqual.js.map +1 -1
- package/dist/node_modules/lodash/isFunction.js +1 -2
- package/dist/node_modules/lodash/isFunction.js.map +1 -1
- package/dist/node_modules/lodash/isLength.js +4 -6
- package/dist/node_modules/lodash/isLength.js.map +1 -1
- package/dist/node_modules/lodash/isNaN.js +1 -2
- package/dist/node_modules/lodash/isNaN.js.map +1 -1
- package/dist/node_modules/lodash/isNil.js +1 -2
- package/dist/node_modules/lodash/isNil.js.map +1 -1
- package/dist/node_modules/lodash/isNumber.js +1 -2
- package/dist/node_modules/lodash/isNumber.js.map +1 -1
- package/dist/node_modules/lodash/isObject.js +1 -2
- package/dist/node_modules/lodash/isObject.js.map +1 -1
- package/dist/node_modules/lodash/isObjectLike.js +1 -2
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
- package/dist/node_modules/lodash/isPlainObject.js +4 -5
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
- package/dist/node_modules/lodash/isString.js +4 -5
- package/dist/node_modules/lodash/isString.js.map +1 -1
- package/dist/node_modules/lodash/isSymbol.js +1 -2
- package/dist/node_modules/lodash/isSymbol.js.map +1 -1
- package/dist/node_modules/lodash/isTypedArray.js +1 -2
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
- package/dist/node_modules/lodash/keys.js +1 -2
- package/dist/node_modules/lodash/keys.js.map +1 -1
- package/dist/node_modules/lodash/last.js +1 -2
- package/dist/node_modules/lodash/last.js.map +1 -1
- package/dist/node_modules/lodash/map.js +6 -7
- package/dist/node_modules/lodash/map.js.map +1 -1
- package/dist/node_modules/lodash/mapValues.js +4 -5
- package/dist/node_modules/lodash/mapValues.js.map +1 -1
- package/dist/node_modules/lodash/max.js +5 -6
- package/dist/node_modules/lodash/max.js.map +1 -1
- package/dist/node_modules/lodash/memoize.js +1 -2
- package/dist/node_modules/lodash/memoize.js.map +1 -1
- package/dist/node_modules/lodash/min.js +5 -6
- package/dist/node_modules/lodash/min.js.map +1 -1
- package/dist/node_modules/lodash/noop.js +1 -2
- package/dist/node_modules/lodash/noop.js.map +1 -1
- package/dist/node_modules/lodash/now.js +1 -2
- package/dist/node_modules/lodash/now.js.map +1 -1
- package/dist/node_modules/lodash/property.js +6 -7
- package/dist/node_modules/lodash/property.js.map +1 -1
- package/dist/node_modules/lodash/range.js +1 -2
- package/dist/node_modules/lodash/range.js.map +1 -1
- package/dist/node_modules/lodash/some.js +7 -8
- package/dist/node_modules/lodash/some.js.map +1 -1
- package/dist/node_modules/lodash/sortBy.js +1 -2
- package/dist/node_modules/lodash/sortBy.js.map +1 -1
- package/dist/node_modules/lodash/stubArray.js +1 -2
- package/dist/node_modules/lodash/stubArray.js.map +1 -1
- package/dist/node_modules/lodash/stubFalse.js +1 -2
- package/dist/node_modules/lodash/stubFalse.js.map +1 -1
- package/dist/node_modules/lodash/throttle.js +4 -5
- package/dist/node_modules/lodash/throttle.js.map +1 -1
- package/dist/node_modules/lodash/toFinite.js +2 -3
- package/dist/node_modules/lodash/toFinite.js.map +1 -1
- package/dist/node_modules/lodash/toInteger.js +1 -2
- package/dist/node_modules/lodash/toInteger.js.map +1 -1
- package/dist/node_modules/lodash/toNumber.js +4 -5
- package/dist/node_modules/lodash/toNumber.js.map +1 -1
- package/dist/node_modules/lodash/toString.js +1 -2
- package/dist/node_modules/lodash/toString.js.map +1 -1
- package/dist/node_modules/lodash/uniqBy.js +1 -2
- package/dist/node_modules/lodash/uniqBy.js.map +1 -1
- package/dist/node_modules/lodash/upperFirst.js +1 -2
- package/dist/node_modules/lodash/upperFirst.js.map +1 -1
- package/dist/node_modules/object-assign/index.js +1 -2
- package/dist/node_modules/object-assign/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/prop-types/index.js.map +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
- package/dist/node_modules/prop-types/lib/has.js +1 -2
- package/dist/node_modules/prop-types/lib/has.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +31 -32
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/Animate.js +33 -41
- package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
- package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
- package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/easing.js +1 -2
- package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/index.js +1 -2
- package/dist/node_modules/react-smooth/es6/index.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
- package/dist/node_modules/react-smooth/es6/util.js +17 -16
- package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +103 -104
- package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +35 -36
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +60 -67
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +45 -46
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +20 -21
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Line.js +79 -80
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +29 -30
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +23 -24
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +31 -32
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +10 -11
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +2 -5
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/LineChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
- package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Cursor.js +17 -18
- package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +35 -36
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +16 -17
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Label.js +85 -86
- package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/LabelList.js +20 -21
- package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Legend.js +26 -23
- package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +16 -17
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Text.js +18 -21
- package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
- package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +3 -4
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Layer.js +5 -6
- package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
- package/dist/node_modules/recharts/es6/container/Surface.js +5 -6
- package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +21 -21
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Cross.js +4 -5
- package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +24 -25
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +33 -34
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +0 -1
- package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/Global.js +0 -1
- package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
- package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +4 -5
- package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +11 -12
- package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +5 -6
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
- package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
- package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +2 -3
- package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/index.js +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
- package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
- package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
- package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
- package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.d.ts +91 -1
- package/dist/translations/en.js +92 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +76 -60
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/utils/renderWithProviders.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/devportal/AdminDevportalRoot.d.ts.map +0 -1
- package/dist/devportal/AdminDevportalRoutes.d.ts.map +0 -1
- package/dist/devportal/DevportalRoot.d.ts.map +0 -1
- package/dist/devportal/DevportalRoutes.d.ts.map +0 -1
- package/dist/devportal/components/AppCard.d.ts.map +0 -1
- package/dist/devportal/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/devportal/components/DataTable.d.ts.map +0 -1
- package/dist/devportal/components/EmptyState.d.ts.map +0 -1
- package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +0 -1
- package/dist/devportal/components/FormField.d.ts.map +0 -1
- package/dist/devportal/components/GrantDelegationModal.d.ts.map +0 -1
- package/dist/devportal/components/ImageUploadField.d.ts.map +0 -1
- package/dist/devportal/components/LoadingState.d.ts.map +0 -1
- package/dist/devportal/components/ManifestViewer.d.ts.map +0 -1
- package/dist/devportal/components/MarkdownEditor.d.ts.map +0 -1
- package/dist/devportal/components/MultiSelectCombobox.d.ts.map +0 -1
- package/dist/devportal/components/NodeSmokePanel.d.ts.map +0 -1
- package/dist/devportal/components/OnboardingChecklist.d.ts.map +0 -1
- package/dist/devportal/components/PackageValidationPanel.d.ts.map +0 -1
- package/dist/devportal/components/PageLayout.d.ts.map +0 -1
- package/dist/devportal/components/PermissionGuard.d.ts.map +0 -1
- package/dist/devportal/components/RegisterPickupLocationModal.d.ts.map +0 -1
- package/dist/devportal/components/ReportOrderIssueModal.d.ts.map +0 -1
- package/dist/devportal/components/SecretDisplay.d.ts.map +0 -1
- package/dist/devportal/components/SectionNav.d.ts.map +0 -1
- package/dist/devportal/components/SelectionCheckbox.d.ts.map +0 -1
- package/dist/devportal/components/StatCard.d.ts.map +0 -1
- package/dist/devportal/components/StatusBadge.d.ts.map +0 -1
- package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +0 -1
- package/dist/devportal/components/index.d.ts.map +0 -1
- package/dist/devportal/constants/appCategories.d.ts.map +0 -1
- package/dist/devportal/constants/developerLinks.d.ts.map +0 -1
- package/dist/devportal/constants/permissions.d.ts.map +0 -1
- package/dist/devportal/events/index.d.ts.map +0 -1
- package/dist/devportal/hooks/DevPortalProvider.d.ts.map +0 -1
- package/dist/devportal/hooks/index.d.ts.map +0 -1
- package/dist/devportal/hooks/useCarrierPickupLocations.d.ts.map +0 -1
- package/dist/devportal/hooks/useGraphQL.d.ts.map +0 -1
- package/dist/devportal/hooks/useIsSellerSection.d.ts.map +0 -1
- package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts.map +0 -1
- package/dist/devportal/hooks/usePackageUpload.d.ts.map +0 -1
- package/dist/devportal/hooks/usePermission.d.ts.map +0 -1
- package/dist/devportal/hooks/useProducts.d.ts.map +0 -1
- package/dist/devportal/hooks/useSellerOrganization.d.ts.map +0 -1
- package/dist/devportal/index.d.ts.map +0 -1
- package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts.map +0 -1
- package/dist/devportal/pages/AdminReviewPage.d.ts.map +0 -1
- package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +0 -1
- package/dist/devportal/pages/ApiKeysPage.d.ts.map +0 -1
- package/dist/devportal/pages/AppLogsPage.d.ts.map +0 -1
- package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +0 -1
- package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +0 -1
- package/dist/devportal/pages/ApplicationsPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreateApplicationPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreatePhysicalItemPage.d.ts.map +0 -1
- package/dist/devportal/pages/CreateWebhookPage.d.ts.map +0 -1
- package/dist/devportal/pages/DashboardPage.d.ts.map +0 -1
- package/dist/devportal/pages/DelegationsPage.d.ts.map +0 -1
- package/dist/devportal/pages/DocumentationPage.d.ts.map +0 -1
- package/dist/devportal/pages/EditApplicationPage.d.ts.map +0 -1
- package/dist/devportal/pages/EditPhysicalItemPage.d.ts.map +0 -1
- package/dist/devportal/pages/InvitationDecisionPage.d.ts.map +0 -1
- package/dist/devportal/pages/ListingPreviewPage.d.ts.map +0 -1
- package/dist/devportal/pages/NodeLifecyclePage.d.ts.map +0 -1
- package/dist/devportal/pages/OAuthCallbackPage.d.ts.map +0 -1
- package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +0 -1
- package/dist/devportal/pages/OAuthClientsPage.d.ts.map +0 -1
- package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +0 -1
- package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +0 -1
- package/dist/devportal/pages/OrganizationsPage.d.ts.map +0 -1
- package/dist/devportal/pages/PublishPage.d.ts.map +0 -1
- package/dist/devportal/pages/PublisherProfilePage.d.ts.map +0 -1
- package/dist/devportal/pages/ResourcesPage.d.ts.map +0 -1
- package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +0 -1
- package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +0 -1
- package/dist/devportal/pages/SellerDashboardPage.d.ts.map +0 -1
- package/dist/devportal/pages/SellerItemsPage.d.ts.map +0 -1
- package/dist/devportal/pages/SellerOrdersPage.d.ts.map +0 -1
- package/dist/devportal/pages/SettingsPage.d.ts.map +0 -1
- package/dist/devportal/pages/SetupPage.d.ts.map +0 -1
- package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +0 -1
- package/dist/devportal/pages/WebhookDetailPage.d.ts.map +0 -1
- package/dist/devportal/pages/WebhooksPage.d.ts.map +0 -1
- package/dist/devportal/providers/DevportalProvider.d.ts.map +0 -1
- package/dist/devportal/store/devportalStore.d.ts.map +0 -1
- package/dist/devportal/types/index.d.ts.map +0 -1
- package/dist/devportal/utils/cn.d.ts.map +0 -1
- package/dist/devportal/utils/constants.d.ts.map +0 -1
- package/dist/devportal/utils/currency.d.ts.map +0 -1
- package/dist/devportal/utils/developerOnboarding.d.ts.map +0 -1
- package/dist/devportal/utils/graphqlEndpoint.d.ts.map +0 -1
- package/dist/devportal/utils/i18n.d.ts.map +0 -1
- package/dist/devportal/utils/nodeLifecycle.d.ts.map +0 -1
- package/dist/devportal/utils/recaptcha.d.ts.map +0 -1
- package/dist/devportal/utils/submitForReview.d.ts.map +0 -1
- package/dist/devportal/utils/uploadErrors.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -8
- package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -10
- package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -43
- package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -8
- package/dist/node_modules/d3-array/src/descending.js.map +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -14
- package/dist/node_modules/d3-array/src/max.js.map +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -14
- package/dist/node_modules/d3-array/src/min.js.map +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -15
- package/dist/node_modules/d3-array/src/number.js.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -25
- package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-array/src/quickselect.js +0 -26
- package/dist/node_modules/d3-array/src/quickselect.js.map +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -10
- package/dist/node_modules/d3-array/src/range.js.map +0 -1
- package/dist/node_modules/d3-array/src/sort.js +0 -17
- package/dist/node_modules/d3-array/src/sort.js.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -34
- package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -291
- package/dist/node_modules/d3-color/src/color.js.map +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -13
- package/dist/node_modules/d3-color/src/define.js.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -9
- package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -13
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -12
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -13
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -12
- package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -29
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -20
- package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -23
- package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -8
- package/dist/node_modules/d3-format/src/identity.js.map +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -86
- package/dist/node_modules/d3-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -9
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -9
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -9
- package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -15
- package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/basis.js +0 -16
- package/dist/node_modules/d3-interpolate/src/basis.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -13
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -25
- package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -6
- package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -11
- package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -10
- package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -16
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -14
- package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -14
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -19
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -10
- package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -28
- package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -18
- package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
- package/dist/node_modules/d3-path/src/path.js.map +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -52
- package/dist/node_modules/d3-scale/src/band.js.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -10
- package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -73
- package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -82
- package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -20
- package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -29
- package/dist/node_modules/d3-scale/src/init.js.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -36
- package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -77
- package/dist/node_modules/d3-scale/src/log.js.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -10
- package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -8
- package/dist/node_modules/d3-scale/src/number.js.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
- package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -37
- package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -37
- package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -33
- package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
- package/dist/node_modules/d3-scale/src/radial.js +0 -39
- package/dist/node_modules/d3-scale/src/radial.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -67
- package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -30
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -30
- package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -25
- package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -31
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -47
- package/dist/node_modules/d3-scale/src/time.js.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -19
- package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -55
- package/dist/node_modules/d3-shape/src/area.js.map +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -8
- package/dist/node_modules/d3-shape/src/array.js.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -10
- package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -49
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -50
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bump.js +0 -40
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -25
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -94
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -39
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -30
- package/dist/node_modules/d3-shape/src/line.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -8
- package/dist/node_modules/d3-shape/src/math.js.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/expand.js +0 -15
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/none.js +0 -8
- package/dist/node_modules/d3-shape/src/offset/none.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -15
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +0 -1
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -21
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/order/none.js +0 -9
- package/dist/node_modules/d3-shape/src/order/none.js.map +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -19
- package/dist/node_modules/d3-shape/src/path.js.map +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -11
- package/dist/node_modules/d3-shape/src/point.js.map +0 -1
- package/dist/node_modules/d3-shape/src/stack.js +0 -34
- package/dist/node_modules/d3-shape/src/stack.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -23
- package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -21
- package/dist/node_modules/d3-time/src/day.js.map +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -6
- package/dist/node_modules/d3-time/src/duration.js.map +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -19
- package/dist/node_modules/d3-time/src/hour.js.map +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -28
- package/dist/node_modules/d3-time/src/interval.js.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -14
- package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -19
- package/dist/node_modules/d3-time/src/minute.js.map +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -18
- package/dist/node_modules/d3-time/src/month.js.map +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -13
- package/dist/node_modules/d3-time/src/second.js.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -125
- package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -25
- package/dist/node_modules/d3-time/src/week.js.map +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -26
- package/dist/node_modules/d3-time/src/year.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -62
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -40
- package/dist/node_modules/internmap/src/index.js.map +0 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useTr as e } from "../utils/i18n.js";
|
|
2
2
|
import { cn as t } from "../utils/cn.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { computeOnboardingState as n } from "../utils/developerOnboarding.js";
|
|
4
|
+
import { DEVELOPER_LINKS as r } from "../constants/developerLinks.js";
|
|
5
|
+
import { useGetDeveloperOnboardingStatusQuery as i } from "../../generated/global-operations.js";
|
|
6
6
|
import { BookOpen as a, Check as o, ChevronRight as s, Code2 as c, Plug as l, Terminal as u } from "lucide-react";
|
|
7
7
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/devportal/components/OnboardingChecklist.tsx
|
|
9
9
|
var p = {
|
|
10
10
|
profile: {
|
|
11
11
|
key: "devportal.onboarding.steps.profile",
|
|
@@ -36,34 +36,34 @@ var p = {
|
|
|
36
36
|
id: "publishConnector",
|
|
37
37
|
key: "devportal.onboarding.links.publishConnector",
|
|
38
38
|
label: "Publish a connector",
|
|
39
|
-
url:
|
|
39
|
+
url: r.publishConnector,
|
|
40
40
|
icon: l
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
id: "nodeSdk",
|
|
44
44
|
key: "devportal.onboarding.links.nodeSdk",
|
|
45
45
|
label: "Node.js SDK",
|
|
46
|
-
url:
|
|
46
|
+
url: r.nodeSdk,
|
|
47
47
|
icon: c
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: "cli",
|
|
51
51
|
key: "devportal.onboarding.links.cli",
|
|
52
52
|
label: "CLI reference",
|
|
53
|
-
url:
|
|
53
|
+
url: r.cliReference,
|
|
54
54
|
icon: u
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: "guide",
|
|
58
58
|
key: "devportal.onboarding.links.guide",
|
|
59
59
|
label: "Registration guide",
|
|
60
|
-
url:
|
|
60
|
+
url: r.registrationGuide,
|
|
61
61
|
icon: a
|
|
62
62
|
}
|
|
63
|
-
], h = ({ onNavigate:
|
|
64
|
-
let a = e(), { data: c, loading: l, error: u } =
|
|
63
|
+
], h = ({ onNavigate: r }) => {
|
|
64
|
+
let a = e(), { data: c, loading: l, error: u } = i({ fetchPolicy: "no-cache" });
|
|
65
65
|
if (l && !c || u && !c) return null;
|
|
66
|
-
let h = c, g = h?.applications?.edges?.map((e) => e.node) ?? [], _ =
|
|
66
|
+
let h = c, g = h?.applications?.edges?.map((e) => e.node) ?? [], _ = n({
|
|
67
67
|
hasProfile: !!h?.myDeveloperProfile?.id,
|
|
68
68
|
organizationKinds: (h?.myDeveloperOrganizations ?? []).map((e) => e.kind),
|
|
69
69
|
applications: g,
|
|
@@ -91,12 +91,12 @@ var p = {
|
|
|
91
91
|
/* @__PURE__ */ d("ol", {
|
|
92
92
|
className: "mt-4 flex flex-col gap-2",
|
|
93
93
|
children: _.steps.map((e, n) => {
|
|
94
|
-
let
|
|
94
|
+
let i = p[e.id], c = _.nextStep?.id === e.id;
|
|
95
95
|
return /* @__PURE__ */ d("li", { children: /* @__PURE__ */ f("button", {
|
|
96
96
|
type: "button",
|
|
97
97
|
"data-testid": `devportal-onboarding-step-${e.id}`,
|
|
98
98
|
"data-done": e.done ? "true" : "false",
|
|
99
|
-
onClick: () =>
|
|
99
|
+
onClick: () => r(e.path),
|
|
100
100
|
className: t("flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left transition-colors", c ? "border-primary bg-action-primary-bg/5 hover:bg-action-primary-bg/10" : "border-border-subtle hover:bg-bg-muted"),
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ d("span", {
|
|
@@ -108,13 +108,13 @@ var p = {
|
|
|
108
108
|
className: "min-w-0 flex-1",
|
|
109
109
|
children: [/* @__PURE__ */ f("span", {
|
|
110
110
|
className: t("block text-sm font-medium", e.done ? "text-text-secondary line-through" : "text-text-primary"),
|
|
111
|
-
children: [a(
|
|
111
|
+
children: [a(i.key, i.title), /* @__PURE__ */ d("span", {
|
|
112
112
|
className: "sr-only",
|
|
113
113
|
children: e.done ? ` (${a("devportal.onboarding.done", "done")})` : ` (${a("devportal.onboarding.todo", "to do")})`
|
|
114
114
|
})]
|
|
115
115
|
}), /* @__PURE__ */ d("span", {
|
|
116
116
|
className: "block text-xs text-text-secondary",
|
|
117
|
-
children: a(
|
|
117
|
+
children: a(i.descKey, i.desc)
|
|
118
118
|
})]
|
|
119
119
|
}),
|
|
120
120
|
/* @__PURE__ */ d(s, {
|
|
@@ -145,7 +145,6 @@ var p = {
|
|
|
145
145
|
]
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
-
//#endregion
|
|
149
148
|
export { h as OnboardingChecklist };
|
|
150
149
|
|
|
151
150
|
//# sourceMappingURL=OnboardingChecklist.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingChecklist.js","names":[],"sources":["../../../src/devportal/components/OnboardingChecklist.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport {\n BookOpen,\n Check,\n ChevronRight,\n Plug,\n Terminal,\n Code2,\n} from \"lucide-react\";\nimport { useTr } from \"../utils/i18n\";\nimport { cn } from \"../utils/cn\";\nimport {\n computeOnboardingState,\n type OnboardingStepId,\n} from \"../utils/developerOnboarding\";\nimport { DEVELOPER_LINKS } from \"../constants/developerLinks\";\nimport {\n useGetDeveloperOnboardingStatusQuery,\n type GetDeveloperOnboardingStatusQuery,\n} from \"../../generated/global-operations\";\n\ntype OnboardingStatus = GetDeveloperOnboardingStatusQuery;\ntype OnboardingApp = OnboardingStatus[\"applications\"][\"edges\"][number][\"node\"];\ntype OnboardingOrg = OnboardingStatus[\"myDeveloperOrganizations\"][number];\n\nconst STEP_COPY: Record<\n OnboardingStepId,\n { key: string; title: string; descKey: string; desc: string }\n> = {\n profile: {\n key: \"devportal.onboarding.steps.profile\",\n title: \"Create your developer profile\",\n descKey: \"devportal.onboarding.steps.profileDesc\",\n desc: \"Tell customers who builds your apps: company, website and links.\",\n },\n organization: {\n key: \"devportal.onboarding.steps.organization\",\n title: \"Create a developer organization\",\n descKey: \"devportal.onboarding.steps.organizationDesc\",\n desc: \"The publisher identity that owns your apps and your team.\",\n },\n app: {\n key: \"devportal.onboarding.steps.app\",\n title: \"Register your first app\",\n descKey: \"devportal.onboarding.steps.appDesc\",\n desc: \"An API integration, workflow node or workflow template.\",\n },\n submit: {\n key: \"devportal.onboarding.steps.submit\",\n title: \"Submit it for review\",\n descKey: \"devportal.onboarding.steps.submitDesc\",\n desc: \"Reviewers check every submission before it is listed.\",\n },\n};\n\nconst RESOURCE_LINKS = [\n {\n id: \"publishConnector\",\n key: \"devportal.onboarding.links.publishConnector\",\n label: \"Publish a connector\",\n url: DEVELOPER_LINKS.publishConnector,\n icon: Plug,\n },\n {\n id: \"nodeSdk\",\n key: \"devportal.onboarding.links.nodeSdk\",\n label: \"Node.js SDK\",\n url: DEVELOPER_LINKS.nodeSdk,\n icon: Code2,\n },\n {\n id: \"cli\",\n key: \"devportal.onboarding.links.cli\",\n label: \"CLI reference\",\n url: DEVELOPER_LINKS.cliReference,\n icon: Terminal,\n },\n {\n id: \"guide\",\n key: \"devportal.onboarding.links.guide\",\n label: \"Registration guide\",\n url: DEVELOPER_LINKS.registrationGuide,\n icon: BookOpen,\n },\n] as const;\n\nexport interface OnboardingChecklistProps {\n /** Navigate to a devportal-relative path (the caller adds basePath). */\n onNavigate: (path: string) => void;\n}\n\n/**\n * \"Get started as a developer\" checklist on the devportal dashboard\n * (BOFF-10636). Shows the four steps of the public registration journey\n * with their live state, links each open step to the page that completes\n * it, and points at the connector publishing guide and the SDK/CLI docs.\n * Renders nothing once every step is done, or while the status loads, so it\n * never flashes for an established developer.\n */\nexport const OnboardingChecklist: FC<OnboardingChecklistProps> = ({\n onNavigate,\n}) => {\n const tr = useTr();\n // no-cache: the dashboard's own `applications(limit: 5)` query shares the\n // paginated cache entry, and a later five-app page replacing this 100-app\n // one would make the checklist read a truncated list as \"submitted\".\n const { data, loading, error } = useGetDeveloperOnboardingStatusQuery({\n fetchPolicy: \"no-cache\",\n });\n\n if (loading && !data) return null;\n if (error && !data) return null;\n\n const status: OnboardingStatus | undefined = data;\n const applications: OnboardingApp[] =\n status?.applications?.edges?.map(\n (edge: { node: OnboardingApp }) => edge.node,\n ) ?? [];\n const state = computeOnboardingState({\n hasProfile: !!status?.myDeveloperProfile?.id,\n organizationKinds: (status?.myDeveloperOrganizations ?? []).map(\n (org: OnboardingOrg) => org.kind,\n ),\n applications,\n totalApplications: status?.applications?.totalCount ?? 0,\n });\n\n if (state.isComplete) return null;\n\n return (\n <section\n aria-labelledby=\"devportal-onboarding-title\"\n data-testid=\"devportal-onboarding-checklist\"\n className=\"rounded-card border border-border-seam bg-bg-surface p-5\"\n >\n <div className=\"flex flex-wrap items-baseline justify-between gap-2\">\n <h2\n id=\"devportal-onboarding-title\"\n className=\"text-base font-semibold text-text-primary\"\n >\n {tr(\"devportal.onboarding.title\", \"Get started as a developer\")}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr(\"devportal.onboarding.progress\", \"{{done}} of {{total}} done\", {\n done: state.completedCount,\n total: state.steps.length,\n })}\n </p>\n </div>\n\n <ol className=\"mt-4 flex flex-col gap-2\">\n {state.steps.map((step, index) => {\n const copy = STEP_COPY[step.id];\n const isNext = state.nextStep?.id === step.id;\n return (\n <li key={step.id}>\n <button\n type=\"button\"\n data-testid={`devportal-onboarding-step-${step.id}`}\n data-done={step.done ? \"true\" : \"false\"}\n onClick={() => onNavigate(step.path)}\n className={cn(\n \"flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left transition-colors\",\n isNext\n ? \"border-primary bg-action-primary-bg/5 hover:bg-action-primary-bg/10\"\n : \"border-border-subtle hover:bg-bg-muted\",\n )}\n >\n <span\n className={cn(\n \"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold\",\n step.done\n ? \"bg-status-success-bg-subtle text-status-success-text\"\n : \"bg-bg-sunken text-text-secondary\",\n )}\n aria-hidden=\"true\"\n >\n {step.done ? <Check size={14} /> : index + 1}\n </span>\n <span className=\"min-w-0 flex-1\">\n <span\n className={cn(\n \"block text-sm font-medium\",\n step.done\n ? \"text-text-secondary line-through\"\n : \"text-text-primary\",\n )}\n >\n {tr(copy.key, copy.title)}\n <span className=\"sr-only\">\n {step.done\n ? ` (${tr(\"devportal.onboarding.done\", \"done\")})`\n : ` (${tr(\"devportal.onboarding.todo\", \"to do\")})`}\n </span>\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(copy.descKey, copy.desc)}\n </span>\n </span>\n <ChevronRight\n size={16}\n className=\"shrink-0 text-text-muted\"\n aria-hidden=\"true\"\n />\n </button>\n </li>\n );\n })}\n </ol>\n\n <div className=\"mt-4 flex flex-wrap gap-x-5 gap-y-2 border-t border-border-seam pt-4\">\n {RESOURCE_LINKS.map((link) => {\n const Icon = link.icon;\n return (\n <a\n key={link.id}\n href={link.url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:underline\"\n >\n <Icon size={14} aria-hidden=\"true\" />\n {tr(link.key, link.label)}\n </a>\n );\n })}\n </div>\n </section>\n );\n};\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"OnboardingChecklist.js","names":["STEP_COPY","RESOURCE_LINKS","DEVELOPER_LINKS","Plug","Code2","Terminal","BookOpen","OnboardingChecklist","tr","useTr","useGetDeveloperOnboardingStatusQuery","loading","data","error","status","applications","edge","state","computeOnboardingState","org","copy","step","isNext","onNavigate","cn","Check","index","ChevronRight","Icon","link"],"sources":["../../../src/devportal/components/OnboardingChecklist.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport {\n BookOpen,\n Check,\n ChevronRight,\n Plug,\n Terminal,\n Code2,\n} from \"lucide-react\";\nimport { useTr } from \"../utils/i18n\";\nimport { cn } from \"../utils/cn\";\nimport {\n computeOnboardingState,\n type OnboardingStepId,\n} from \"../utils/developerOnboarding\";\nimport { DEVELOPER_LINKS } from \"../constants/developerLinks\";\nimport {\n useGetDeveloperOnboardingStatusQuery,\n type GetDeveloperOnboardingStatusQuery,\n} from \"../../generated/global-operations\";\n\ntype OnboardingStatus = GetDeveloperOnboardingStatusQuery;\ntype OnboardingApp = OnboardingStatus[\"applications\"][\"edges\"][number][\"node\"];\ntype OnboardingOrg = OnboardingStatus[\"myDeveloperOrganizations\"][number];\n\nconst STEP_COPY: Record<\n OnboardingStepId,\n { key: string; title: string; descKey: string; desc: string }\n> = {\n profile: {\n key: \"devportal.onboarding.steps.profile\",\n title: \"Create your developer profile\",\n descKey: \"devportal.onboarding.steps.profileDesc\",\n desc: \"Tell customers who builds your apps: company, website and links.\",\n },\n organization: {\n key: \"devportal.onboarding.steps.organization\",\n title: \"Create a developer organization\",\n descKey: \"devportal.onboarding.steps.organizationDesc\",\n desc: \"The publisher identity that owns your apps and your team.\",\n },\n app: {\n key: \"devportal.onboarding.steps.app\",\n title: \"Register your first app\",\n descKey: \"devportal.onboarding.steps.appDesc\",\n desc: \"An API integration, workflow node or workflow template.\",\n },\n submit: {\n key: \"devportal.onboarding.steps.submit\",\n title: \"Submit it for review\",\n descKey: \"devportal.onboarding.steps.submitDesc\",\n desc: \"Reviewers check every submission before it is listed.\",\n },\n};\n\nconst RESOURCE_LINKS = [\n {\n id: \"publishConnector\",\n key: \"devportal.onboarding.links.publishConnector\",\n label: \"Publish a connector\",\n url: DEVELOPER_LINKS.publishConnector,\n icon: Plug,\n },\n {\n id: \"nodeSdk\",\n key: \"devportal.onboarding.links.nodeSdk\",\n label: \"Node.js SDK\",\n url: DEVELOPER_LINKS.nodeSdk,\n icon: Code2,\n },\n {\n id: \"cli\",\n key: \"devportal.onboarding.links.cli\",\n label: \"CLI reference\",\n url: DEVELOPER_LINKS.cliReference,\n icon: Terminal,\n },\n {\n id: \"guide\",\n key: \"devportal.onboarding.links.guide\",\n label: \"Registration guide\",\n url: DEVELOPER_LINKS.registrationGuide,\n icon: BookOpen,\n },\n] as const;\n\nexport interface OnboardingChecklistProps {\n /** Navigate to a devportal-relative path (the caller adds basePath). */\n onNavigate: (path: string) => void;\n}\n\n/**\n * \"Get started as a developer\" checklist on the devportal dashboard\n * (BOFF-10636). Shows the four steps of the public registration journey\n * with their live state, links each open step to the page that completes\n * it, and points at the connector publishing guide and the SDK/CLI docs.\n * Renders nothing once every step is done, or while the status loads, so it\n * never flashes for an established developer.\n */\nexport const OnboardingChecklist: FC<OnboardingChecklistProps> = ({\n onNavigate,\n}) => {\n const tr = useTr();\n // no-cache: the dashboard's own `applications(limit: 5)` query shares the\n // paginated cache entry, and a later five-app page replacing this 100-app\n // one would make the checklist read a truncated list as \"submitted\".\n const { data, loading, error } = useGetDeveloperOnboardingStatusQuery({\n fetchPolicy: \"no-cache\",\n });\n\n if (loading && !data) return null;\n if (error && !data) return null;\n\n const status: OnboardingStatus | undefined = data;\n const applications: OnboardingApp[] =\n status?.applications?.edges?.map(\n (edge: { node: OnboardingApp }) => edge.node,\n ) ?? [];\n const state = computeOnboardingState({\n hasProfile: !!status?.myDeveloperProfile?.id,\n organizationKinds: (status?.myDeveloperOrganizations ?? []).map(\n (org: OnboardingOrg) => org.kind,\n ),\n applications,\n totalApplications: status?.applications?.totalCount ?? 0,\n });\n\n if (state.isComplete) return null;\n\n return (\n <section\n aria-labelledby=\"devportal-onboarding-title\"\n data-testid=\"devportal-onboarding-checklist\"\n className=\"rounded-card border border-border-seam bg-bg-surface p-5\"\n >\n <div className=\"flex flex-wrap items-baseline justify-between gap-2\">\n <h2\n id=\"devportal-onboarding-title\"\n className=\"text-base font-semibold text-text-primary\"\n >\n {tr(\"devportal.onboarding.title\", \"Get started as a developer\")}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr(\"devportal.onboarding.progress\", \"{{done}} of {{total}} done\", {\n done: state.completedCount,\n total: state.steps.length,\n })}\n </p>\n </div>\n\n <ol className=\"mt-4 flex flex-col gap-2\">\n {state.steps.map((step, index) => {\n const copy = STEP_COPY[step.id];\n const isNext = state.nextStep?.id === step.id;\n return (\n <li key={step.id}>\n <button\n type=\"button\"\n data-testid={`devportal-onboarding-step-${step.id}`}\n data-done={step.done ? \"true\" : \"false\"}\n onClick={() => onNavigate(step.path)}\n className={cn(\n \"flex w-full items-center gap-3 rounded-lg border px-4 py-3 text-left transition-colors\",\n isNext\n ? \"border-primary bg-action-primary-bg/5 hover:bg-action-primary-bg/10\"\n : \"border-border-subtle hover:bg-bg-muted\",\n )}\n >\n <span\n className={cn(\n \"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold\",\n step.done\n ? \"bg-status-success-bg-subtle text-status-success-text\"\n : \"bg-bg-sunken text-text-secondary\",\n )}\n aria-hidden=\"true\"\n >\n {step.done ? <Check size={14} /> : index + 1}\n </span>\n <span className=\"min-w-0 flex-1\">\n <span\n className={cn(\n \"block text-sm font-medium\",\n step.done\n ? \"text-text-secondary line-through\"\n : \"text-text-primary\",\n )}\n >\n {tr(copy.key, copy.title)}\n <span className=\"sr-only\">\n {step.done\n ? ` (${tr(\"devportal.onboarding.done\", \"done\")})`\n : ` (${tr(\"devportal.onboarding.todo\", \"to do\")})`}\n </span>\n </span>\n <span className=\"block text-xs text-text-secondary\">\n {tr(copy.descKey, copy.desc)}\n </span>\n </span>\n <ChevronRight\n size={16}\n className=\"shrink-0 text-text-muted\"\n aria-hidden=\"true\"\n />\n </button>\n </li>\n );\n })}\n </ol>\n\n <div className=\"mt-4 flex flex-wrap gap-x-5 gap-y-2 border-t border-border-seam pt-4\">\n {RESOURCE_LINKS.map((link) => {\n const Icon = link.icon;\n return (\n <a\n key={link.id}\n href={link.url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:underline\"\n >\n <Icon size={14} aria-hidden=\"true\" />\n {tr(link.key, link.label)}\n </a>\n );\n })}\n </div>\n </section>\n );\n};\n"],"mappings":"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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
3
2
|
export interface PackageValidationIssue {
|
|
4
3
|
severity: "error" | "warning";
|
|
5
4
|
code: string;
|
|
@@ -28,4 +27,3 @@ interface PackageValidationPanelProps {
|
|
|
28
27
|
}
|
|
29
28
|
export declare const PackageValidationPanel: FC<PackageValidationPanelProps>;
|
|
30
29
|
export {};
|
|
31
|
-
//# sourceMappingURL=PackageValidationPanel.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cn as e } from "../utils/cn.js";
|
|
2
|
+
import { useTr as t } from "../utils/i18n.js";
|
|
3
3
|
import { NodeSmokePanel as n } from "./NodeSmokePanel.js";
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { AlertTriangle as i, CheckCircle2 as a, ChevronDown as o, ChevronUp as s, Loader2 as c, XCircle as l } from "lucide-react";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/devportal/components/PackageValidationPanel.tsx
|
|
8
8
|
function f(e) {
|
|
9
9
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
10
10
|
}
|
|
@@ -40,25 +40,25 @@ var h = ({ issues: e }) => /* @__PURE__ */ u("ul", {
|
|
|
40
40
|
children: e.message
|
|
41
41
|
})]
|
|
42
42
|
}, `${e.code}-${e.path}-${t}`))
|
|
43
|
-
}), g = ({ metadata:
|
|
44
|
-
className:
|
|
43
|
+
}), g = ({ metadata: t, defaultExpanded: r = !1, className: i }) => /* @__PURE__ */ d("div", {
|
|
44
|
+
className: e("space-y-1", i),
|
|
45
45
|
children: [/* @__PURE__ */ u(_, {
|
|
46
|
-
metadata:
|
|
46
|
+
metadata: t,
|
|
47
47
|
defaultExpanded: r
|
|
48
48
|
}), /* @__PURE__ */ u(n, {
|
|
49
|
-
metadata:
|
|
49
|
+
metadata: t,
|
|
50
50
|
defaultExpanded: r
|
|
51
51
|
})]
|
|
52
52
|
}), _ = ({ metadata: n, defaultExpanded: f = !1, className: p }) => {
|
|
53
|
-
let g =
|
|
53
|
+
let g = t(), _ = m(n), [v, y] = r(f);
|
|
54
54
|
if (_.kind === "none") return /* @__PURE__ */ u("p", {
|
|
55
|
-
className:
|
|
55
|
+
className: e("text-xs text-text-secondary", p),
|
|
56
56
|
"data-testid": "package-validation",
|
|
57
57
|
"data-state": "none",
|
|
58
58
|
children: g("devportal.packageValidation.none", "Package not validated (uploaded before validation existed)")
|
|
59
59
|
});
|
|
60
60
|
if (_.kind === "pending") return /* @__PURE__ */ d("p", {
|
|
61
|
-
className:
|
|
61
|
+
className: e("inline-flex items-center gap-1 text-xs text-status-info-text", p),
|
|
62
62
|
"data-testid": "package-validation",
|
|
63
63
|
"data-state": "pending",
|
|
64
64
|
children: [/* @__PURE__ */ u(c, {
|
|
@@ -68,13 +68,13 @@ var h = ({ issues: e }) => /* @__PURE__ */ u("ul", {
|
|
|
68
68
|
});
|
|
69
69
|
let b = _.kind === "failed", x = _.errors.length > 0 || _.warnings.length > 0, S = b ? g("devportal.packageValidation.failed", "Validation failed: {{count}} error(s)", { count: _.errors.length }) : g("devportal.packageValidation.passed", "Package validated");
|
|
70
70
|
return /* @__PURE__ */ d("div", {
|
|
71
|
-
className:
|
|
71
|
+
className: e("space-y-1", p),
|
|
72
72
|
"data-testid": "package-validation",
|
|
73
73
|
"data-state": _.kind,
|
|
74
74
|
children: [/* @__PURE__ */ d("button", {
|
|
75
75
|
type: "button",
|
|
76
76
|
onClick: () => x && y((e) => !e),
|
|
77
|
-
className:
|
|
77
|
+
className: e("inline-flex items-center gap-1 text-xs font-medium", b ? "text-status-error-text" : "text-status-success-text", x ? "hover:underline" : "cursor-default"),
|
|
78
78
|
"aria-expanded": x ? v : void 0,
|
|
79
79
|
children: [
|
|
80
80
|
u(b ? l : a, { size: 12 }),
|
|
@@ -108,7 +108,6 @@ var h = ({ issues: e }) => /* @__PURE__ */ u("ul", {
|
|
|
108
108
|
})]
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
//#endregion
|
|
112
111
|
export { g as PackageValidationPanel, m as readPackageValidationState };
|
|
113
112
|
|
|
114
113
|
//# sourceMappingURL=PackageValidationPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageValidationPanel.js","names":[],"sources":["../../../src/devportal/components/PackageValidationPanel.tsx"],"sourcesContent":["/**\n * PackageValidationPanel — shows the custom-node package validation report\n * (BOFF-4315) stored on `ApplicationVersion.metadata.packageValidation` by\n * global-devportal-svc.\n *\n * The service validates every uploaded NODE package before building it, and\n * refuses to submit or approve a version whose package failed. This panel is\n * how the developer learns why, and how the reviewing admin sees warnings\n * (dynamic code, unusual field types) that need a human decision.\n *\n * Below the report it shows the operation smoke run on the built node\n * (BOFF-9656, `NodeSmokePanel`), so the versions page and the admin review\n * card both show every pre-review check in one place.\n */\nimport { useState } from \"react\";\nimport type { FC } from \"react\";\nimport {\n AlertTriangle,\n CheckCircle2,\n ChevronDown,\n ChevronUp,\n Loader2,\n XCircle,\n} from \"lucide-react\";\n\nimport { cn } from \"../utils/cn\";\nimport { useTr } from \"../utils/i18n\";\nimport { NodeSmokePanel } from \"./NodeSmokePanel\";\n\nexport interface PackageValidationIssue {\n severity: \"error\" | \"warning\";\n code: string;\n path: string;\n message: string;\n}\n\nexport type PackageValidationState =\n | { kind: \"none\" }\n | { kind: \"pending\" }\n | {\n kind: \"passed\" | \"failed\";\n errors: PackageValidationIssue[];\n warnings: PackageValidationIssue[];\n validatedAt: string | null;\n runtime: string | null;\n operationCount: number;\n };\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction readIssues(value: unknown): PackageValidationIssue[] {\n if (!Array.isArray(value)) return [];\n return value.filter(isRecord).map((entry) => ({\n severity: entry.severity === \"warning\" ? \"warning\" : \"error\",\n code: typeof entry.code === \"string\" ? entry.code : \"\",\n path: typeof entry.path === \"string\" ? entry.path : \"\",\n message: typeof entry.message === \"string\" ? entry.message : \"\",\n }));\n}\n\n/** Parse the stored report defensively — metadata is untyped JSON. */\nexport function readPackageValidationState(\n metadata: unknown,\n): PackageValidationState {\n if (!isRecord(metadata)) return { kind: \"none\" };\n const report = metadata.packageValidation;\n if (!isRecord(report)) return { kind: \"none\" };\n if (report.pending === true) return { kind: \"pending\" };\n if (typeof report.valid !== \"boolean\") return { kind: \"none\" };\n return {\n kind: report.valid ? \"passed\" : \"failed\",\n errors: readIssues(report.errors),\n warnings: readIssues(report.warnings),\n validatedAt:\n typeof report.validatedAt === \"string\" ? report.validatedAt : null,\n runtime: typeof report.runtime === \"string\" ? report.runtime : null,\n operationCount:\n typeof report.operationCount === \"number\" ? report.operationCount : 0,\n };\n}\n\nconst IssueList: FC<{ issues: PackageValidationIssue[] }> = ({ issues }) => (\n <ul className=\"space-y-1\">\n {issues.map((issue, index) => (\n <li\n key={`${issue.code}-${issue.path}-${index}`}\n className=\"text-xs leading-snug\"\n >\n {issue.path && (\n <code className=\"mr-1 rounded bg-bg-sunken px-1 py-0.5 font-mono text-text-primary\">\n {issue.path}\n </code>\n )}\n <span\n className={\n issue.severity === \"error\"\n ? \"text-status-error-text\"\n : \"text-status-warning-text\"\n }\n >\n {issue.message}\n </span>\n </li>\n ))}\n </ul>\n);\n\ninterface PackageValidationPanelProps {\n metadata: unknown;\n /** Start expanded (the admin review card does; the versions table does not). */\n defaultExpanded?: boolean;\n className?: string;\n}\n\nexport const PackageValidationPanel: FC<PackageValidationPanelProps> = ({\n metadata,\n defaultExpanded = false,\n className,\n}) => (\n <div className={cn(\"space-y-1\", className)}>\n <ValidationReport metadata={metadata} defaultExpanded={defaultExpanded} />\n <NodeSmokePanel metadata={metadata} defaultExpanded={defaultExpanded} />\n </div>\n);\n\nconst ValidationReport: FC<PackageValidationPanelProps> = ({\n metadata,\n defaultExpanded = false,\n className,\n}) => {\n const tr = useTr();\n const state = readPackageValidationState(metadata);\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n if (state.kind === \"none\") {\n return (\n <p\n className={cn(\"text-xs text-text-secondary\", className)}\n data-testid=\"package-validation\"\n data-state=\"none\"\n >\n {tr(\n \"devportal.packageValidation.none\",\n \"Package not validated (uploaded before validation existed)\",\n )}\n </p>\n );\n }\n\n if (state.kind === \"pending\") {\n return (\n <p\n className={cn(\n \"inline-flex items-center gap-1 text-xs text-status-info-text\",\n className,\n )}\n data-testid=\"package-validation\"\n data-state=\"pending\"\n >\n <Loader2 size={12} className=\"animate-spin\" />\n {tr(\"devportal.packageValidation.pending\", \"Validating package…\")}\n </p>\n );\n }\n\n const failed = state.kind === \"failed\";\n const hasDetails = state.errors.length > 0 || state.warnings.length > 0;\n const summary = failed\n ? tr(\n \"devportal.packageValidation.failed\",\n \"Validation failed: {{count}} error(s)\",\n { count: state.errors.length },\n )\n : tr(\"devportal.packageValidation.passed\", \"Package validated\");\n\n return (\n <div\n className={cn(\"space-y-1\", className)}\n data-testid=\"package-validation\"\n data-state={state.kind}\n >\n <button\n type=\"button\"\n onClick={() => hasDetails && setExpanded((value) => !value)}\n className={cn(\n \"inline-flex items-center gap-1 text-xs font-medium\",\n failed ? \"text-status-error-text\" : \"text-status-success-text\",\n hasDetails ? \"hover:underline\" : \"cursor-default\",\n )}\n aria-expanded={hasDetails ? expanded : undefined}\n >\n {failed ? <XCircle size={12} /> : <CheckCircle2 size={12} />}\n {summary}\n {state.warnings.length > 0 && (\n <span className=\"inline-flex items-center gap-0.5 text-status-warning-text\">\n <AlertTriangle size={12} />\n {tr(\n \"devportal.packageValidation.warnings\",\n \"{{count}} warning(s)\",\n { count: state.warnings.length },\n )}\n </span>\n )}\n {hasDetails &&\n (expanded ? <ChevronUp size={12} /> : <ChevronDown size={12} />)}\n </button>\n {expanded && hasDetails && (\n <div className=\"max-w-md space-y-2 rounded-md border border-border-seam bg-bg-surface p-2\">\n {state.errors.length > 0 && (\n <div>\n <p className=\"mb-1 text-xs font-semibold text-status-error-text\">\n {tr(\"devportal.packageValidation.errorsTitle\", \"Errors\")}\n </p>\n <IssueList issues={state.errors} />\n </div>\n )}\n {state.warnings.length > 0 && (\n <div>\n <p className=\"mb-1 text-xs font-semibold text-status-warning-text\">\n {tr(\n \"devportal.packageValidation.warningsTitle\",\n \"Needs reviewer attention\",\n )}\n </p>\n <IssueList issues={state.warnings} />\n </div>\n )}\n <p className=\"text-[11px] text-text-secondary\">\n {[\n state.runtime &&\n tr(\n \"devportal.packageValidation.runtime\",\n \"Runtime: {{runtime}}\",\n {\n runtime: state.runtime,\n },\n ),\n tr(\n \"devportal.packageValidation.operations\",\n \"{{count}} operation(s)\",\n { count: state.operationCount },\n ),\n state.validatedAt && new Date(state.validatedAt).toLocaleString(),\n ]\n .filter(Boolean)\n .join(\" · \")}\n </p>\n </div>\n )}\n </div>\n );\n};\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"PackageValidationPanel.js","names":["isRecord","value","readIssues","entry","readPackageValidationState","metadata","report","IssueList","issues","issue","index","PackageValidationPanel","cn","className","ValidationReport","NodeSmokePanel","tr","useTr","state","expanded","setExpanded","useState","defaultExpanded","Loader2","failed","hasDetails","summary","jsx","XCircle","CheckCircle2","AlertTriangle","ChevronUp","ChevronDown"],"sources":["../../../src/devportal/components/PackageValidationPanel.tsx"],"sourcesContent":["/**\n * PackageValidationPanel — shows the custom-node package validation report\n * (BOFF-4315) stored on `ApplicationVersion.metadata.packageValidation` by\n * global-devportal-svc.\n *\n * The service validates every uploaded NODE package before building it, and\n * refuses to submit or approve a version whose package failed. This panel is\n * how the developer learns why, and how the reviewing admin sees warnings\n * (dynamic code, unusual field types) that need a human decision.\n *\n * Below the report it shows the operation smoke run on the built node\n * (BOFF-9656, `NodeSmokePanel`), so the versions page and the admin review\n * card both show every pre-review check in one place.\n */\nimport { useState } from \"react\";\nimport type { FC } from \"react\";\nimport {\n AlertTriangle,\n CheckCircle2,\n ChevronDown,\n ChevronUp,\n Loader2,\n XCircle,\n} from \"lucide-react\";\n\nimport { cn } from \"../utils/cn\";\nimport { useTr } from \"../utils/i18n\";\nimport { NodeSmokePanel } from \"./NodeSmokePanel\";\n\nexport interface PackageValidationIssue {\n severity: \"error\" | \"warning\";\n code: string;\n path: string;\n message: string;\n}\n\nexport type PackageValidationState =\n | { kind: \"none\" }\n | { kind: \"pending\" }\n | {\n kind: \"passed\" | \"failed\";\n errors: PackageValidationIssue[];\n warnings: PackageValidationIssue[];\n validatedAt: string | null;\n runtime: string | null;\n operationCount: number;\n };\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction readIssues(value: unknown): PackageValidationIssue[] {\n if (!Array.isArray(value)) return [];\n return value.filter(isRecord).map((entry) => ({\n severity: entry.severity === \"warning\" ? \"warning\" : \"error\",\n code: typeof entry.code === \"string\" ? entry.code : \"\",\n path: typeof entry.path === \"string\" ? entry.path : \"\",\n message: typeof entry.message === \"string\" ? entry.message : \"\",\n }));\n}\n\n/** Parse the stored report defensively — metadata is untyped JSON. */\nexport function readPackageValidationState(\n metadata: unknown,\n): PackageValidationState {\n if (!isRecord(metadata)) return { kind: \"none\" };\n const report = metadata.packageValidation;\n if (!isRecord(report)) return { kind: \"none\" };\n if (report.pending === true) return { kind: \"pending\" };\n if (typeof report.valid !== \"boolean\") return { kind: \"none\" };\n return {\n kind: report.valid ? \"passed\" : \"failed\",\n errors: readIssues(report.errors),\n warnings: readIssues(report.warnings),\n validatedAt:\n typeof report.validatedAt === \"string\" ? report.validatedAt : null,\n runtime: typeof report.runtime === \"string\" ? report.runtime : null,\n operationCount:\n typeof report.operationCount === \"number\" ? report.operationCount : 0,\n };\n}\n\nconst IssueList: FC<{ issues: PackageValidationIssue[] }> = ({ issues }) => (\n <ul className=\"space-y-1\">\n {issues.map((issue, index) => (\n <li\n key={`${issue.code}-${issue.path}-${index}`}\n className=\"text-xs leading-snug\"\n >\n {issue.path && (\n <code className=\"mr-1 rounded bg-bg-sunken px-1 py-0.5 font-mono text-text-primary\">\n {issue.path}\n </code>\n )}\n <span\n className={\n issue.severity === \"error\"\n ? \"text-status-error-text\"\n : \"text-status-warning-text\"\n }\n >\n {issue.message}\n </span>\n </li>\n ))}\n </ul>\n);\n\ninterface PackageValidationPanelProps {\n metadata: unknown;\n /** Start expanded (the admin review card does; the versions table does not). */\n defaultExpanded?: boolean;\n className?: string;\n}\n\nexport const PackageValidationPanel: FC<PackageValidationPanelProps> = ({\n metadata,\n defaultExpanded = false,\n className,\n}) => (\n <div className={cn(\"space-y-1\", className)}>\n <ValidationReport metadata={metadata} defaultExpanded={defaultExpanded} />\n <NodeSmokePanel metadata={metadata} defaultExpanded={defaultExpanded} />\n </div>\n);\n\nconst ValidationReport: FC<PackageValidationPanelProps> = ({\n metadata,\n defaultExpanded = false,\n className,\n}) => {\n const tr = useTr();\n const state = readPackageValidationState(metadata);\n const [expanded, setExpanded] = useState(defaultExpanded);\n\n if (state.kind === \"none\") {\n return (\n <p\n className={cn(\"text-xs text-text-secondary\", className)}\n data-testid=\"package-validation\"\n data-state=\"none\"\n >\n {tr(\n \"devportal.packageValidation.none\",\n \"Package not validated (uploaded before validation existed)\",\n )}\n </p>\n );\n }\n\n if (state.kind === \"pending\") {\n return (\n <p\n className={cn(\n \"inline-flex items-center gap-1 text-xs text-status-info-text\",\n className,\n )}\n data-testid=\"package-validation\"\n data-state=\"pending\"\n >\n <Loader2 size={12} className=\"animate-spin\" />\n {tr(\"devportal.packageValidation.pending\", \"Validating package…\")}\n </p>\n );\n }\n\n const failed = state.kind === \"failed\";\n const hasDetails = state.errors.length > 0 || state.warnings.length > 0;\n const summary = failed\n ? tr(\n \"devportal.packageValidation.failed\",\n \"Validation failed: {{count}} error(s)\",\n { count: state.errors.length },\n )\n : tr(\"devportal.packageValidation.passed\", \"Package validated\");\n\n return (\n <div\n className={cn(\"space-y-1\", className)}\n data-testid=\"package-validation\"\n data-state={state.kind}\n >\n <button\n type=\"button\"\n onClick={() => hasDetails && setExpanded((value) => !value)}\n className={cn(\n \"inline-flex items-center gap-1 text-xs font-medium\",\n failed ? \"text-status-error-text\" : \"text-status-success-text\",\n hasDetails ? \"hover:underline\" : \"cursor-default\",\n )}\n aria-expanded={hasDetails ? expanded : undefined}\n >\n {failed ? <XCircle size={12} /> : <CheckCircle2 size={12} />}\n {summary}\n {state.warnings.length > 0 && (\n <span className=\"inline-flex items-center gap-0.5 text-status-warning-text\">\n <AlertTriangle size={12} />\n {tr(\n \"devportal.packageValidation.warnings\",\n \"{{count}} warning(s)\",\n { count: state.warnings.length },\n )}\n </span>\n )}\n {hasDetails &&\n (expanded ? <ChevronUp size={12} /> : <ChevronDown size={12} />)}\n </button>\n {expanded && hasDetails && (\n <div className=\"max-w-md space-y-2 rounded-md border border-border-seam bg-bg-surface p-2\">\n {state.errors.length > 0 && (\n <div>\n <p className=\"mb-1 text-xs font-semibold text-status-error-text\">\n {tr(\"devportal.packageValidation.errorsTitle\", \"Errors\")}\n </p>\n <IssueList issues={state.errors} />\n </div>\n )}\n {state.warnings.length > 0 && (\n <div>\n <p className=\"mb-1 text-xs font-semibold text-status-warning-text\">\n {tr(\n \"devportal.packageValidation.warningsTitle\",\n \"Needs reviewer attention\",\n )}\n </p>\n <IssueList issues={state.warnings} />\n </div>\n )}\n <p className=\"text-[11px] text-text-secondary\">\n {[\n state.runtime &&\n tr(\n \"devportal.packageValidation.runtime\",\n \"Runtime: {{runtime}}\",\n {\n runtime: state.runtime,\n },\n ),\n tr(\n \"devportal.packageValidation.operations\",\n \"{{count}} operation(s)\",\n { count: state.operationCount },\n ),\n state.validatedAt && new Date(state.validatedAt).toLocaleString(),\n ]\n .filter(Boolean)\n .join(\" · \")}\n </p>\n </div>\n )}\n </div>\n );\n};\n"],"mappings":"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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
interface PageLayoutProps {
|
|
4
3
|
title: ReactNode;
|
|
5
4
|
description?: string;
|
|
@@ -40,4 +39,3 @@ export declare const PageSection: FC<{
|
|
|
40
39
|
className?: string;
|
|
41
40
|
} & HTMLAttributes<HTMLElement>>;
|
|
42
41
|
export {};
|
|
43
|
-
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cn as e } from "../utils/cn.js";
|
|
2
2
|
import { useTr as t } from "../utils/i18n.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useDevportal as n } from "../providers/DevportalProvider.js";
|
|
4
4
|
import { ArrowLeft as r } from "lucide-react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { AuroraBackground as o, PagePurpose as s } from "@burdenoff/fe-libs/ui";
|
|
7
|
-
|
|
7
|
+
// src/devportal/components/PageLayout.tsx
|
|
8
8
|
var c = ({ title: c, description: l, backLink: u, backLabel: d, actions: f, children: p, className: m, fullWidth: h = !1, purpose: g, purposeLearnMoreHref: _, purposeLearnMoreLabel: v, heroBackdrop: y = !1 }) => {
|
|
9
|
-
let { navigate: b, basePath: x } =
|
|
9
|
+
let { navigate: b, basePath: x } = n(), S = t(), C = d ?? S("devportal.back", "Back");
|
|
10
10
|
return /* @__PURE__ */ a("div", {
|
|
11
|
-
className:
|
|
11
|
+
className: e("flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8 lg:px-8 lg:py-10 xl:px-12", m),
|
|
12
12
|
children: [/* @__PURE__ */ a("div", {
|
|
13
|
-
className:
|
|
13
|
+
className: e("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", y && "relative overflow-hidden rounded-card border border-border-seam/60 px-5 py-5 sm:px-6 sm:py-6"),
|
|
14
14
|
children: [
|
|
15
15
|
y && /* @__PURE__ */ i(o, { intensity: "subtle" }),
|
|
16
16
|
/* @__PURE__ */ a("div", {
|
|
@@ -19,8 +19,8 @@ var c = ({ title: c, description: l, backLink: u, backLabel: d, actions: f, chil
|
|
|
19
19
|
u && /* @__PURE__ */ a("button", {
|
|
20
20
|
onClick: () => {
|
|
21
21
|
if (!b || !u) return;
|
|
22
|
-
let e = x?.endsWith("/") ? x.slice(0, -1) : x || "", t = u.startsWith("/") ? u : `/${u}
|
|
23
|
-
b(
|
|
22
|
+
let e = x?.endsWith("/") ? x.slice(0, -1) : x || "", t = u.startsWith("/") ? u : `/${u}`, n = e.length > 0 && (t === e || t.startsWith(`${e}/`));
|
|
23
|
+
b(n ? t : `${e}${t}`);
|
|
24
24
|
},
|
|
25
25
|
className: "mb-2 flex items-center gap-1 text-sm text-text-secondary hover:text-text-primary transition-colors",
|
|
26
26
|
children: [/* @__PURE__ */ i(r, { size: 16 }), C]
|
|
@@ -47,28 +47,27 @@ var c = ({ title: c, description: l, backLink: u, backLabel: d, actions: f, chil
|
|
|
47
47
|
})
|
|
48
48
|
]
|
|
49
49
|
}), /* @__PURE__ */ i("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: e("flex flex-col gap-4 sm:gap-6", !h && "max-w-7xl"),
|
|
51
51
|
children: p
|
|
52
52
|
})]
|
|
53
53
|
});
|
|
54
|
-
}, l = ({ title:
|
|
55
|
-
className:
|
|
54
|
+
}, l = ({ title: t, description: n, actions: r, children: o, className: s, ...c }) => /* @__PURE__ */ a("section", {
|
|
55
|
+
className: e("space-y-4", s),
|
|
56
56
|
...c,
|
|
57
|
-
children: [(
|
|
57
|
+
children: [(t || r) && /* @__PURE__ */ a("div", {
|
|
58
58
|
className: "flex items-center justify-between",
|
|
59
|
-
children: [/* @__PURE__ */ a("div", { children: [
|
|
59
|
+
children: [/* @__PURE__ */ a("div", { children: [t && /* @__PURE__ */ i("h2", {
|
|
60
60
|
className: "text-lg font-semibold",
|
|
61
|
-
children: e
|
|
62
|
-
}), t && /* @__PURE__ */ i("p", {
|
|
63
|
-
className: "text-sm text-text-secondary",
|
|
64
61
|
children: t
|
|
62
|
+
}), n && /* @__PURE__ */ i("p", {
|
|
63
|
+
className: "text-sm text-text-secondary",
|
|
64
|
+
children: n
|
|
65
65
|
})] }), r && /* @__PURE__ */ i("div", {
|
|
66
66
|
className: "flex items-center gap-2",
|
|
67
67
|
children: r
|
|
68
68
|
})]
|
|
69
69
|
}), o]
|
|
70
70
|
});
|
|
71
|
-
//#endregion
|
|
72
71
|
export { c as PageLayout, l as PageSection };
|
|
73
72
|
|
|
74
73
|
//# sourceMappingURL=PageLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/devportal/components/PageLayout.tsx"],"sourcesContent":["import type { FC, HTMLAttributes, ReactNode } from \"react\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AuroraBackground, PagePurpose } from \"@burdenoff/fe-libs/ui\";\nimport { cn } from \"../utils/cn\";\nimport { useTr } from \"../utils/i18n\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n backLink?: string;\n backLabel?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n fullWidth?: boolean;\n /**\n * Plain-language \"story\" for the page — WHAT it is for and the real use-case\n * — rendered as a calm {@link PagePurpose} under the header so every page is\n * self-explanatory for a new user. Keep it to one or two sentences.\n */\n purpose?: ReactNode;\n /** Optional \"Learn more\" link rendered at the end of the purpose line. */\n purposeLearnMoreHref?: string;\n purposeLearnMoreLabel?: string;\n /**\n * When true the page header sits over a subtle living-glass aurora backdrop\n * (Boff UI 2.0). Reserve this for the MFE's primary/overview page — one\n * aurora per MFE. The backdrop is decorative (-z-10) and never moves content.\n */\n heroBackdrop?: boolean;\n}\n\n/**\n * Standard page layout with header, optional back link, and actions\n */\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n backLink,\n backLabel,\n actions,\n children,\n className,\n fullWidth = false,\n purpose,\n purposeLearnMoreHref,\n purposeLearnMoreLabel,\n heroBackdrop = false,\n}) => {\n const { navigate, basePath } = useDevportal();\n const tr = useTr();\n const resolvedBackLabel = backLabel ?? tr(\"devportal.back\", \"Back\");\n\n const handleBack = () => {\n if (!navigate || !backLink) return;\n\n const normalizedBasePath = basePath?.endsWith(\"/\")\n ? basePath.slice(0, -1)\n : basePath || \"\";\n const normalizedBackLink = backLink.startsWith(\"/\")\n ? backLink\n : `/${backLink}`;\n const alreadyIncludesBasePath =\n normalizedBasePath.length > 0 &&\n (normalizedBackLink === normalizedBasePath ||\n normalizedBackLink.startsWith(`${normalizedBasePath}/`));\n\n navigate(\n alreadyIncludesBasePath\n ? normalizedBackLink\n : `${normalizedBasePath}${normalizedBackLink}`,\n );\n };\n\n return (\n <div\n className={cn(\n \"flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8 lg:px-8 lg:py-10 xl:px-12\",\n className,\n )}\n >\n {/* Header — optionally over a subtle living-glass aurora backdrop */}\n <div\n className={cn(\n \"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\",\n heroBackdrop &&\n \"relative overflow-hidden rounded-card border border-border-seam/60 px-5 py-5 sm:px-6 sm:py-6\",\n )}\n >\n {heroBackdrop && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"flex flex-col gap-1\">\n {backLink && (\n <button\n onClick={handleBack}\n className=\"mb-2 flex items-center gap-1 text-sm text-text-secondary hover:text-text-primary transition-colors\"\n >\n <ArrowLeft size={16} />\n {resolvedBackLabel}\n </button>\n )}\n <h1 className=\"text-2xl font-bold tracking-tight\">{title}</h1>\n {description && <p className=\"text-text-secondary\">{description}</p>}\n {purpose && (\n <PagePurpose\n className=\"mt-1 max-w-2xl\"\n learnMoreHref={purposeLearnMoreHref}\n learnMoreLabel={purposeLearnMoreLabel}\n >\n {purpose}\n </PagePurpose>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n\n {/* Content */}\n <div\n className={cn(\n \"flex flex-col gap-4 sm:gap-6\",\n !fullWidth && \"max-w-7xl\",\n )}\n >\n {children}\n </div>\n </div>\n );\n};\n\n/**\n * Section within a page\n */\nexport const PageSection: FC<\n {\n title?: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n } & HTMLAttributes<HTMLElement>\n> = ({ title, description, actions, children, className, ...rest }) => (\n <section className={cn(\"space-y-4\", className)} {...rest}>\n {(title || actions) && (\n <div className=\"flex items-center justify-between\">\n <div>\n {title && <h2 className=\"text-lg font-semibold\">{title}</h2>}\n {description && (\n <p className=\"text-sm text-text-secondary\">{description}</p>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n )}\n {children}\n </section>\n);\n"],"mappings":";;;;;;;AAoCA,
|
|
1
|
+
{"version":3,"file":"PageLayout.js","names":["PageLayout","useDevportal","tr","useTr","resolvedBackLabel","backLabel","cn","className","heroBackdrop","AuroraBackground","backLink","navigate","normalizedBasePath","basePath","normalizedBackLink","alreadyIncludesBasePath","ArrowLeft","title","description","purpose","PagePurpose","purposeLearnMoreHref","purposeLearnMoreLabel","actions","fullWidth","PageSection","rest","children"],"sources":["../../../src/devportal/components/PageLayout.tsx"],"sourcesContent":["import type { FC, HTMLAttributes, ReactNode } from \"react\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AuroraBackground, PagePurpose } from \"@burdenoff/fe-libs/ui\";\nimport { cn } from \"../utils/cn\";\nimport { useTr } from \"../utils/i18n\";\nimport { useDevportal } from \"../providers/DevportalProvider\";\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n backLink?: string;\n backLabel?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n fullWidth?: boolean;\n /**\n * Plain-language \"story\" for the page — WHAT it is for and the real use-case\n * — rendered as a calm {@link PagePurpose} under the header so every page is\n * self-explanatory for a new user. Keep it to one or two sentences.\n */\n purpose?: ReactNode;\n /** Optional \"Learn more\" link rendered at the end of the purpose line. */\n purposeLearnMoreHref?: string;\n purposeLearnMoreLabel?: string;\n /**\n * When true the page header sits over a subtle living-glass aurora backdrop\n * (Boff UI 2.0). Reserve this for the MFE's primary/overview page — one\n * aurora per MFE. The backdrop is decorative (-z-10) and never moves content.\n */\n heroBackdrop?: boolean;\n}\n\n/**\n * Standard page layout with header, optional back link, and actions\n */\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n backLink,\n backLabel,\n actions,\n children,\n className,\n fullWidth = false,\n purpose,\n purposeLearnMoreHref,\n purposeLearnMoreLabel,\n heroBackdrop = false,\n}) => {\n const { navigate, basePath } = useDevportal();\n const tr = useTr();\n const resolvedBackLabel = backLabel ?? tr(\"devportal.back\", \"Back\");\n\n const handleBack = () => {\n if (!navigate || !backLink) return;\n\n const normalizedBasePath = basePath?.endsWith(\"/\")\n ? basePath.slice(0, -1)\n : basePath || \"\";\n const normalizedBackLink = backLink.startsWith(\"/\")\n ? backLink\n : `/${backLink}`;\n const alreadyIncludesBasePath =\n normalizedBasePath.length > 0 &&\n (normalizedBackLink === normalizedBasePath ||\n normalizedBackLink.startsWith(`${normalizedBasePath}/`));\n\n navigate(\n alreadyIncludesBasePath\n ? normalizedBackLink\n : `${normalizedBasePath}${normalizedBackLink}`,\n );\n };\n\n return (\n <div\n className={cn(\n \"flex flex-col gap-6 px-4 py-6 sm:px-6 sm:py-8 lg:px-8 lg:py-10 xl:px-12\",\n className,\n )}\n >\n {/* Header — optionally over a subtle living-glass aurora backdrop */}\n <div\n className={cn(\n \"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\",\n heroBackdrop &&\n \"relative overflow-hidden rounded-card border border-border-seam/60 px-5 py-5 sm:px-6 sm:py-6\",\n )}\n >\n {heroBackdrop && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"flex flex-col gap-1\">\n {backLink && (\n <button\n onClick={handleBack}\n className=\"mb-2 flex items-center gap-1 text-sm text-text-secondary hover:text-text-primary transition-colors\"\n >\n <ArrowLeft size={16} />\n {resolvedBackLabel}\n </button>\n )}\n <h1 className=\"text-2xl font-bold tracking-tight\">{title}</h1>\n {description && <p className=\"text-text-secondary\">{description}</p>}\n {purpose && (\n <PagePurpose\n className=\"mt-1 max-w-2xl\"\n learnMoreHref={purposeLearnMoreHref}\n learnMoreLabel={purposeLearnMoreLabel}\n >\n {purpose}\n </PagePurpose>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n\n {/* Content */}\n <div\n className={cn(\n \"flex flex-col gap-4 sm:gap-6\",\n !fullWidth && \"max-w-7xl\",\n )}\n >\n {children}\n </div>\n </div>\n );\n};\n\n/**\n * Section within a page\n */\nexport const PageSection: FC<\n {\n title?: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n } & HTMLAttributes<HTMLElement>\n> = ({ title, description, actions, children, className, ...rest }) => (\n <section className={cn(\"space-y-4\", className)} {...rest}>\n {(title || actions) && (\n <div className=\"flex items-center justify-between\">\n <div>\n {title && <h2 className=\"text-lg font-semibold\">{title}</h2>}\n {description && (\n <p className=\"text-sm text-text-secondary\">{description}</p>\n )}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </div>\n )}\n {children}\n </section>\n);\n"],"mappings":";;;;;;;AAoCA,IAAaA,KAAmC,EAC9C,UACA,gBACA,aACA,cACA,YACA,aACA,cACA,eAAY,IACZ,YACA,yBACA,0BACA,kBAAe,SACX;CACJ,IAAM,EAAE,aAAU,gBAAaC,EAAa,GACtCC,IAAKC,EAAM,GACXC,IAAoBC,KAAaH,EAAG,kBAAkB,MAAM;CAuBlE,OACE,kBAAC,OAAD;EACE,WAAWI,EACT,2EACAC,CACF;EAJF,UAAA,CAOE,kBAAC,OAAD;GACE,WAAWD,EACT,sEACAE,KACE,8FACJ;GALF,UAAA;IAOGA,KAAgB,kBAACC,GAAD,EAAkB,WAAU,SAAU,CAAA;IACvD,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACGC,KACC,kBAAC,UAAD;OACE,eAxCa;QACvB,IAAI,CAACC,KAAY,CAACD,GAAU;QAE5B,IAAME,IAAqBC,GAAU,SAAS,GAAG,IAC7CA,EAAS,MAAM,GAAG,EAAE,IACpBA,KAAY,IACVC,IAAqBJ,EAAS,WAAW,GAAG,IAC9CA,IACA,IAAIA,KACFK,IACJH,EAAmB,SAAS,MAC3BE,MAAuBF,KACtBE,EAAmB,WAAW,GAAGF,EAAmB,EAAE;QAE1D,EACEG,IACID,IACA,GAAGF,IAAqBE,GAC9B;OACF;OAsBY,WAAU;OAFZ,UAAA,CAIE,kBAACE,GAAD,EAAW,MAAM,GAAK,CAAA,GACrBZ,CACK;;MAEV,kBAAC,MAAD;OAAI,WAAU;OAAqC,UAAAa;MAAU,CAAA;MAC5DC,KAAe,kBAAC,KAAD;OAAG,WAAU;OAAuB,UAAAA;MAAe,CAAA;MAClEC,KACC,kBAACC,GAAD;OACE,WAAU;OACV,eAAeC;OACf,gBAAgBC;OAEf,UAAAH;MACU,CAAA;KAEZ;;IACJI,KAAW,kBAAC,OAAD;KAAK,WAAU;KAA2B,UAAAA;IAAa,CAAA;GAChE;EAGL,CAAA,GAAA,kBAAC,OAAD;GACE,WAAWjB,EACT,gCACA,CAACkB,KAAa,WAChB;GAEC;EACE,CAAA,CACF;;AAET,GAKaC,KAQR,EAAE,UAAO,gBAAa,YAAS,aAAU,cAAW,GAAGC,QAC1D,kBAAC,WAAD;CAAS,WAAWpB,EAAG,aAAaC,CAAS;CAAG,GAAImB;CAApD,UAAA,EACIT,KAASM,MACT,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,kBAAC,OAAD,EAAA,UAAA,CACGN,KAAS,kBAAC,MAAD;GAAI,WAAU;GAAyB,UAAAA;EAAU,CAAA,GAC1DC,KACC,kBAAC,KAAD;GAAG,WAAU;GAA+B,UAAAA;EAAe,CAAA,CAE1D,EAAA,CAAA,GACJK,KAAW,kBAAC,OAAD;GAAK,WAAU;GAA2B,UAAAA;EAAa,CAAA,CAChE;CAEN,CAAA,GAAAI,CACM"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { DevportalPermission } from '../constants/permissions';
|
|
3
|
-
|
|
4
3
|
interface PermissionGuardProps {
|
|
5
4
|
/**
|
|
6
5
|
* Required RBAC permission. Optional when `authOnly` is set — self-scoped
|
|
@@ -25,4 +24,3 @@ interface PermissionGuardProps {
|
|
|
25
24
|
*/
|
|
26
25
|
export declare const PermissionGuard: FC<PermissionGuardProps>;
|
|
27
26
|
export {};
|
|
28
|
-
//# sourceMappingURL=PermissionGuard.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PageLoadingState as e } from "./LoadingState.js";
|
|
2
|
+
import { useTr as t } from "../utils/i18n.js";
|
|
3
3
|
import { AccessDenied as n } from "@burdenoff/fe-libs/shared/components";
|
|
4
4
|
import { usePermissions as r } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
5
5
|
import { Fragment as i, jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import { useAuth as o } from "@burdenoff/fe-libs/shared/providers/shell/AuthProvider";
|
|
7
|
-
|
|
7
|
+
// src/devportal/components/PermissionGuard.tsx
|
|
8
8
|
var s = ({ permission: s, authOnly: c = !1, children: l }) => {
|
|
9
9
|
let u = null, d = !1, f = !1, p = !1;
|
|
10
10
|
try {
|
|
@@ -18,10 +18,10 @@ var s = ({ permission: s, authOnly: c = !1, children: l }) => {
|
|
|
18
18
|
} catch {
|
|
19
19
|
p = !1;
|
|
20
20
|
}
|
|
21
|
-
let m = typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname.endsWith(".local.burdenoff.com")) && p, h =
|
|
21
|
+
let m = typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname.endsWith(".local.burdenoff.com")) && p, h = t();
|
|
22
22
|
return d ? /* @__PURE__ */ a("div", {
|
|
23
23
|
className: "flex min-h-screen items-center justify-center bg-bg-canvas",
|
|
24
|
-
children: /* @__PURE__ */ a(
|
|
24
|
+
children: /* @__PURE__ */ a(e, {})
|
|
25
25
|
}) : c ? u !== null && !p && !m ? /* @__PURE__ */ a(n, {
|
|
26
26
|
title: h("devportal.accessDenied", "Access Denied"),
|
|
27
27
|
description: h("devportal.noPermissionView", "You don't have permission to view this page.")
|
|
@@ -30,7 +30,6 @@ var s = ({ permission: s, authOnly: c = !1, children: l }) => {
|
|
|
30
30
|
description: h("devportal.noPermissionView", "You don't have permission to view this page.")
|
|
31
31
|
}) : /* @__PURE__ */ a(i, { children: l });
|
|
32
32
|
};
|
|
33
|
-
//#endregion
|
|
34
33
|
export { s as PermissionGuard };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=PermissionGuard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionGuard.js","names":[],"sources":["../../../src/devportal/components/PermissionGuard.tsx"],"sourcesContent":["import type { FC, ReactNode } from \"react\";\nimport { usePermissions } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport { useAuth } from \"@burdenoff/fe-libs/shared/providers/shell/AuthProvider\";\nimport { AccessDenied } from \"@burdenoff/fe-libs/shared/components\";\nimport { PageLoadingState } from \"./LoadingState\";\nimport { useTr } from \"../utils/i18n\";\nimport type { DevportalPermission } from \"../constants/permissions\";\n\ninterface PermissionGuardProps {\n /**\n * Required RBAC permission. Optional when `authOnly` is set — self-scoped\n * developer surfaces gate on authentication only (see `authOnly`).\n */\n permission?: DevportalPermission;\n /**\n * Self-scoped mode. The corresponding backend fields are gated with\n * `@rbac(scopeType: \"self\")` — an authentication gate whose resolvers filter\n * strictly to the caller's own resources. Such fields carry no RBAC\n * permission in `myPermissions`, so a permission check would wrongly deny\n * every normal member. In this mode we render for any authenticated user and\n * let the backend self-enforce per resource.\n */\n authOnly?: boolean;\n children: ReactNode;\n}\n\n/**\n * Wraps page content with a permission check.\n * Shows a loading state while permissions resolve, then either\n * renders children (if permitted) or an AccessDenied screen.\n */\nexport const PermissionGuard: FC<PermissionGuardProps> = ({\n permission,\n authOnly = false,\n children,\n}) => {\n let hasPermission: ((permission: DevportalPermission) => boolean) | null =\n null;\n let isLoading = false;\n let isRbacAdmin = false;\n let isAuthenticated = false;\n\n try {\n const permissions = usePermissions();\n hasPermission = permissions.hasPermission as (\n permission: DevportalPermission,\n ) => boolean;\n isLoading = permissions.isLoading;\n isRbacAdmin =\n permissions.permissions?.permissions?.some(\n (entry) => entry.resourceType === \"rbac\" && entry.level === \"ADMIN\",\n ) ?? false;\n } catch {\n // Standalone/dev mode intentionally allows rendering without shell RBAC context.\n hasPermission = null;\n isLoading = false;\n isRbacAdmin = false;\n }\n\n try {\n const auth = useAuth();\n isAuthenticated = auth.isAuthenticated;\n } catch {\n isAuthenticated = false;\n }\n\n const isLocalShellDev =\n typeof window !== \"undefined\" &&\n (window.location.hostname === \"localhost\" ||\n window.location.hostname.endsWith(\".local.burdenoff.com\"));\n\n const allowLocalShellBypass = isLocalShellDev && isAuthenticated;\n const tr = useTr();\n\n if (isLoading) {\n return (\n <div className=\"flex min-h-screen items-center justify-center bg-bg-canvas\">\n <PageLoadingState />\n </div>\n );\n }\n\n // Self-scoped surface: gate on authentication only. The backend\n // (@rbac scopeType: \"self\") filters to the caller's own resources, so we\n // must not require an RBAC permission the member legitimately lacks.\n if (authOnly) {\n // When the shell RBAC context is unavailable (standalone/dev), render.\n if (hasPermission !== null && !isAuthenticated && !allowLocalShellBypass) {\n return (\n <AccessDenied\n title={tr(\"devportal.accessDenied\", \"Access Denied\")}\n description={tr(\n \"devportal.noPermissionView\",\n \"You don't have permission to view this page.\",\n )}\n />\n );\n }\n return <>{children}</>;\n }\n\n if (\n permission &&\n hasPermission &&\n !hasPermission(permission) &&\n !isRbacAdmin &&\n !allowLocalShellBypass\n ) {\n return (\n <AccessDenied\n title={tr(\"devportal.accessDenied\", \"Access Denied\")}\n description={tr(\n \"devportal.noPermissionView\",\n \"You don't have permission to view this page.\",\n )}\n />\n );\n }\n\n return <>{children}</>;\n};\n"],"mappings":";;;;;;;AA+BA,
|
|
1
|
+
{"version":3,"file":"PermissionGuard.js","names":["_Fragment","PermissionGuard","hasPermission","isLoading","isRbacAdmin","isAuthenticated","permissions","usePermissions","entry","useAuth","allowLocalShellBypass","tr","useTr","PageLoadingState","authOnly","AccessDenied","Fragment","permission"],"sources":["../../../src/devportal/components/PermissionGuard.tsx"],"sourcesContent":["import type { FC, ReactNode } from \"react\";\nimport { usePermissions } from \"@burdenoff/fe-libs/shared/providers/shell\";\nimport { useAuth } from \"@burdenoff/fe-libs/shared/providers/shell/AuthProvider\";\nimport { AccessDenied } from \"@burdenoff/fe-libs/shared/components\";\nimport { PageLoadingState } from \"./LoadingState\";\nimport { useTr } from \"../utils/i18n\";\nimport type { DevportalPermission } from \"../constants/permissions\";\n\ninterface PermissionGuardProps {\n /**\n * Required RBAC permission. Optional when `authOnly` is set — self-scoped\n * developer surfaces gate on authentication only (see `authOnly`).\n */\n permission?: DevportalPermission;\n /**\n * Self-scoped mode. The corresponding backend fields are gated with\n * `@rbac(scopeType: \"self\")` — an authentication gate whose resolvers filter\n * strictly to the caller's own resources. Such fields carry no RBAC\n * permission in `myPermissions`, so a permission check would wrongly deny\n * every normal member. In this mode we render for any authenticated user and\n * let the backend self-enforce per resource.\n */\n authOnly?: boolean;\n children: ReactNode;\n}\n\n/**\n * Wraps page content with a permission check.\n * Shows a loading state while permissions resolve, then either\n * renders children (if permitted) or an AccessDenied screen.\n */\nexport const PermissionGuard: FC<PermissionGuardProps> = ({\n permission,\n authOnly = false,\n children,\n}) => {\n let hasPermission: ((permission: DevportalPermission) => boolean) | null =\n null;\n let isLoading = false;\n let isRbacAdmin = false;\n let isAuthenticated = false;\n\n try {\n const permissions = usePermissions();\n hasPermission = permissions.hasPermission as (\n permission: DevportalPermission,\n ) => boolean;\n isLoading = permissions.isLoading;\n isRbacAdmin =\n permissions.permissions?.permissions?.some(\n (entry) => entry.resourceType === \"rbac\" && entry.level === \"ADMIN\",\n ) ?? false;\n } catch {\n // Standalone/dev mode intentionally allows rendering without shell RBAC context.\n hasPermission = null;\n isLoading = false;\n isRbacAdmin = false;\n }\n\n try {\n const auth = useAuth();\n isAuthenticated = auth.isAuthenticated;\n } catch {\n isAuthenticated = false;\n }\n\n const isLocalShellDev =\n typeof window !== \"undefined\" &&\n (window.location.hostname === \"localhost\" ||\n window.location.hostname.endsWith(\".local.burdenoff.com\"));\n\n const allowLocalShellBypass = isLocalShellDev && isAuthenticated;\n const tr = useTr();\n\n if (isLoading) {\n return (\n <div className=\"flex min-h-screen items-center justify-center bg-bg-canvas\">\n <PageLoadingState />\n </div>\n );\n }\n\n // Self-scoped surface: gate on authentication only. The backend\n // (@rbac scopeType: \"self\") filters to the caller's own resources, so we\n // must not require an RBAC permission the member legitimately lacks.\n if (authOnly) {\n // When the shell RBAC context is unavailable (standalone/dev), render.\n if (hasPermission !== null && !isAuthenticated && !allowLocalShellBypass) {\n return (\n <AccessDenied\n title={tr(\"devportal.accessDenied\", \"Access Denied\")}\n description={tr(\n \"devportal.noPermissionView\",\n \"You don't have permission to view this page.\",\n )}\n />\n );\n }\n return <>{children}</>;\n }\n\n if (\n permission &&\n hasPermission &&\n !hasPermission(permission) &&\n !isRbacAdmin &&\n !allowLocalShellBypass\n ) {\n return (\n <AccessDenied\n title={tr(\"devportal.accessDenied\", \"Access Denied\")}\n description={tr(\n \"devportal.noPermissionView\",\n \"You don't have permission to view this page.\",\n )}\n />\n );\n }\n\n return <>{children}</>;\n};\n"],"mappings":";;;;;;;AA+BA,IAAaC,KAA6C,EACxD,eACA,cAAW,IACX,kBACI;CACJ,IAAIC,IACF,MACEC,IAAY,IACZC,IAAc,IACdC,IAAkB;CAEtB,IAAI;EACF,IAAMC,IAAcC,EAAe;EAKnC,AAJA,IAAgBD,EAAY,eAG5B,IAAYA,EAAY,WACxB,IACEA,EAAY,aAAa,aAAa,MACnC,MAAUE,EAAM,iBAAiB,UAAUA,EAAM,UAAU,OAC9D,KAAK;CACT,QAAQ;EAIN,AAFA,IAAgB,MAChB,IAAY,IACZ,IAAc;CAChB;CAEA,IAAI;EAEF,IADaC,EACK,CAAA,CAAK;CACzB,QAAQ;EACN,IAAkB;CACpB;CAOA,IAAMC,IAJJ,OAAO,SAAW,QACjB,OAAO,SAAS,aAAa,eAC5B,OAAO,SAAS,SAAS,SAAS,sBAAsB,MAEXL,GAC3CM,IAAKC,EAAM;CA+CjB,OA7CIT,IAEA,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACU,GAAD,CAAmB,CAAA;CAChB,CAAA,IAOLC,IAEEZ,MAAkB,QAAQ,CAACG,KAAmB,CAACK,IAE/C,kBAACK,GAAD;EACE,OAAOJ,EAAG,0BAA0B,eAAe;EACnD,aAAaA,EACX,8BACA,8CACF;CACD,CAAA,IAGE,kBAAAX,GAAA,EAAG,YAAW,CAAA,IAIrBiB,KACAf,KACA,CAACA,EAAce,CAAU,KACzB,CAACb,KACD,CAACM,IAGC,kBAACK,GAAD;EACE,OAAOJ,EAAG,0BAA0B,eAAe;EACnD,aAAaA,EACX,8BACA,8CACF;CACD,CAAA,IAIE,kBAAAX,GAAA,EAAG,YAAW,CAAA;AACvB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
3
2
|
export interface RegisterPickupLocationModalProps {
|
|
4
3
|
open: boolean;
|
|
5
4
|
onOpenChange: (open: boolean) => void;
|
|
@@ -25,4 +24,3 @@ export interface RegisterPickupLocationModalProps {
|
|
|
25
24
|
* supported, full stop.
|
|
26
25
|
*/
|
|
27
26
|
export declare const RegisterPickupLocationModal: FC<RegisterPickupLocationModalProps>;
|
|
28
|
-
//# sourceMappingURL=RegisterPickupLocationModal.d.ts.map
|