@nextsparkjs/core 0.1.0-beta.4 → 0.1.0-beta.41
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/components/api/keys/ApiKeyDisplay.js +5 -5
- package/dist/components/api/keys/CreateApiKeyDialog.js +11 -11
- package/dist/components/app/guards/DeveloperGuard.js +3 -3
- package/dist/components/app/guards/SuperAdminGuard.js +3 -3
- package/dist/components/app/guards/index.js +2 -2
- package/dist/components/app/index.js +5 -5
- package/dist/components/app/layouts/PublicFooter.js +2 -2
- package/dist/components/app/layouts/PublicNavbar.js +4 -4
- package/dist/components/app/layouts/index.js +2 -2
- package/dist/components/app/misc/ThemeToggle.js +4 -4
- package/dist/components/app/misc/index.js +1 -1
- package/dist/components/auth/DevKeyring.js +4 -4
- package/dist/components/auth/forms/LoginForm.js +16 -16
- package/dist/components/auth/forms/SignupForm.d.ts.map +1 -1
- package/dist/components/auth/forms/SignupForm.js +15 -14
- package/dist/components/auth/forms/index.js +2 -2
- package/dist/components/auth/index.js +5 -5
- package/dist/components/auth/layouts/AuthWrapperWithPreload.js +1 -1
- package/dist/components/auth/layouts/index.js +2 -2
- package/dist/components/billing/DowngradeWarning.js +2 -2
- package/dist/components/billing/FeatureGate.js +3 -3
- package/dist/components/billing/FeaturePlaceholder.js +2 -2
- package/dist/components/billing/InvoiceStatusBadge.js +2 -2
- package/dist/components/billing/InvoicesPagination.js +1 -1
- package/dist/components/billing/InvoicesTable.js +4 -4
- package/dist/components/billing/ManageBillingButton.js +2 -2
- package/dist/components/billing/PricingTable.js +5 -5
- package/dist/components/billing/SubscriptionStatus.js +6 -6
- package/dist/components/billing/UpgradeModal.js +2 -2
- package/dist/components/billing/UsageBar.js +3 -3
- package/dist/components/billing/UsageDashboard.js +2 -2
- package/dist/components/billing/index.js +11 -11
- package/dist/components/dashboard/block-editor/array-field.js +7 -7
- package/dist/components/dashboard/block-editor/block-canvas.js +1 -1
- package/dist/components/dashboard/block-editor/block-picker.js +4 -4
- package/dist/components/dashboard/block-editor/block-preview-canvas.js +3 -3
- package/dist/components/dashboard/block-editor/block-settings-panel.js +5 -5
- package/dist/components/dashboard/block-editor/builder-editor-view.js +16 -16
- package/dist/components/dashboard/block-editor/dynamic-form.js +13 -13
- package/dist/components/dashboard/block-editor/entity-fields-sidebar.js +6 -6
- package/dist/components/dashboard/block-editor/page-settings-panel.js +6 -6
- package/dist/components/dashboard/block-editor/sortable-block.js +4 -4
- package/dist/components/dashboard/block-editor/status-selector.js +1 -1
- package/dist/components/dashboard/index.js +2 -2
- package/dist/components/dashboard/layouts/AuthGuard.js +3 -3
- package/dist/components/dashboard/layouts/DashboardShell.d.ts +1 -1
- package/dist/components/dashboard/layouts/DashboardShell.d.ts.map +1 -1
- package/dist/components/dashboard/layouts/DashboardShell.js +14 -6
- package/dist/components/dashboard/layouts/Sidebar.js +5 -5
- package/dist/components/dashboard/layouts/TopNavbar.js +14 -14
- package/dist/components/dashboard/layouts/index.js +4 -4
- package/dist/components/dashboard/misc/NotificationsDropdown.js +7 -7
- package/dist/components/dashboard/misc/QuickCreateDropdown.js +4 -4
- package/dist/components/dashboard/misc/SearchDropdown.js +8 -8
- package/dist/components/dashboard/mobile/MobileBottomNav.js +6 -6
- package/dist/components/dashboard/mobile/MobileMoreSheet.js +9 -9
- package/dist/components/dashboard/mobile/MobileTopBar.js +5 -5
- package/dist/components/dashboard/mobile/QuickCreateSheet.js +3 -3
- package/dist/components/dashboard/mobile/index.js +4 -4
- package/dist/components/dashboard/navigation/DynamicNavigation.d.ts.map +1 -1
- package/dist/components/dashboard/navigation/DynamicNavigation.js +22 -15
- package/dist/components/devtools/BlockDetailViewer.js +7 -7
- package/dist/components/devtools/BlocksViewer.js +5 -5
- package/dist/components/devtools/ConfigViewer.js +5 -5
- package/dist/components/devtools/DevtoolsSidebar.js +2 -2
- package/dist/components/devtools/FeaturesViewer.js +5 -5
- package/dist/components/devtools/FileTree.js +1 -1
- package/dist/components/devtools/FlowsViewer.js +5 -5
- package/dist/components/devtools/MarkdownViewer.js +1 -1
- package/dist/components/devtools/TagsOverview.js +6 -6
- package/dist/components/devtools/TestCasesViewer.d.ts.map +1 -1
- package/dist/components/devtools/TestCasesViewer.js +37 -30
- package/dist/components/devtools/TestCoverageDashboard.d.ts +2 -0
- package/dist/components/devtools/TestCoverageDashboard.d.ts.map +1 -0
- package/dist/components/devtools/TestCoverageDashboard.js +234 -0
- package/dist/components/devtools/api-tester/ApiTester.js +12 -12
- package/dist/components/devtools/api-tester/AuthSelector.js +5 -5
- package/dist/components/devtools/api-tester/KeyValueEditor.js +3 -3
- package/dist/components/devtools/api-tester/MethodSelector.js +2 -2
- package/dist/components/devtools/api-tester/PathParamsEditor.js +3 -3
- package/dist/components/devtools/api-tester/PayloadEditor.js +3 -3
- package/dist/components/devtools/api-tester/ResponseViewer.js +5 -5
- package/dist/components/devtools/api-tester/index.js +9 -9
- package/dist/components/devtools/bdd/BDDHeader.js +3 -3
- package/dist/components/devtools/bdd/BDDTableOfContents.d.ts.map +1 -1
- package/dist/components/devtools/bdd/BDDTableOfContents.js +26 -2
- package/dist/components/devtools/bdd/BDDTestCard.d.ts.map +1 -1
- package/dist/components/devtools/bdd/BDDTestCard.js +80 -7
- package/dist/components/devtools/bdd/BDDTestViewer.js +8 -8
- package/dist/components/devtools/bdd/GherkinHighlighter.js +1 -1
- package/dist/components/devtools/bdd/index.js +6 -6
- package/dist/components/devtools/bdd/parser.d.ts.map +1 -1
- package/dist/components/devtools/bdd/parser.js +35 -2
- package/dist/components/devtools/bdd/types.d.ts +8 -1
- package/dist/components/devtools/bdd/types.d.ts.map +1 -1
- package/dist/components/devtools/index.d.ts +1 -0
- package/dist/components/devtools/index.d.ts.map +1 -1
- package/dist/components/devtools/index.js +16 -14
- package/dist/components/devtools/scheduled-actions/actions-table.js +4 -4
- package/dist/components/devtools/scheduled-actions/filters.js +3 -3
- package/dist/components/docs/docs-layout.js +2 -2
- package/dist/components/docs/docs-sidebar.d.ts +6 -0
- package/dist/components/docs/docs-sidebar.d.ts.map +1 -1
- package/dist/components/docs/docs-sidebar.js +88 -266
- package/dist/components/docs/index.d.ts +1 -0
- package/dist/components/docs/index.d.ts.map +1 -1
- package/dist/components/docs/index.js +7 -5
- package/dist/components/docs/superadmin-docs-sidebar.d.ts +7 -0
- package/dist/components/docs/superadmin-docs-sidebar.d.ts.map +1 -0
- package/dist/components/docs/superadmin-docs-sidebar.js +122 -0
- package/dist/components/entities/EntityBulkActions.js +5 -5
- package/dist/components/entities/EntityChildManager.js +9 -9
- package/dist/components/entities/EntityDetail.js +9 -9
- package/dist/components/entities/EntityDetailHeader.js +5 -5
- package/dist/components/entities/EntityDetailPage.js +6 -6
- package/dist/components/entities/EntityFieldRenderer.js +29 -29
- package/dist/components/entities/EntityForm.js +7 -7
- package/dist/components/entities/EntityList.js +13 -13
- package/dist/components/entities/EntityNavigation.js +6 -6
- package/dist/components/entities/EntityPageHeader.js +1 -1
- package/dist/components/entities/EntitySearch.js +8 -8
- package/dist/components/entities/EntityTable.js +12 -12
- package/dist/components/entities/ErrorBoundary.js +3 -3
- package/dist/components/entities/index.js +15 -15
- package/dist/components/entities/wrappers/EntityDetailWrapper.d.ts.map +1 -1
- package/dist/components/entities/wrappers/EntityDetailWrapper.js +29 -78
- package/dist/components/entities/wrappers/EntityFormWrapper.js +7 -7
- package/dist/components/entities/wrappers/EntityListWrapper.js +13 -13
- package/dist/components/entities/wrappers/index.js +3 -3
- package/dist/components/permissions/NoPermission.js +2 -2
- package/dist/components/permissions/PermissionGate.js +1 -1
- package/dist/components/permissions/PermissionsMatrix.js +4 -4
- package/dist/components/permissions/index.js +3 -3
- package/dist/components/public/entities/PublicEntityCard.js +2 -2
- package/dist/components/public/entities/PublicEntityDetail.js +9 -9
- package/dist/components/public/entities/PublicEntityGrid.js +9 -9
- package/dist/components/public/entities/index.js +3 -3
- package/dist/components/public/index.d.ts +10 -0
- package/dist/components/public/index.d.ts.map +1 -0
- package/dist/components/public/index.js +2 -0
- package/dist/components/public/pageBuilder/PageRenderer.d.ts +20 -0
- package/dist/components/public/pageBuilder/PageRenderer.d.ts.map +1 -0
- package/dist/components/public/pageBuilder/PageRenderer.js +41 -0
- package/dist/components/public/pageBuilder/index.d.ts +10 -0
- package/dist/components/public/pageBuilder/index.d.ts.map +1 -0
- package/dist/components/public/pageBuilder/index.js +4 -0
- package/dist/components/settings/SettingsPageSkeleton.js +2 -2
- package/dist/components/settings/index.js +2 -2
- package/dist/components/settings/layouts/SettingsSidebar.js +4 -4
- package/dist/components/settings/layouts/index.js +1 -1
- package/dist/components/shared/CopyableId.js +1 -1
- package/dist/components/shared/MultiSelectFilter.js +3 -3
- package/dist/components/shared/SearchInput.js +2 -2
- package/dist/components/shared/index.js +3 -3
- package/dist/components/superadmin/filters/FilterDropdown.js +2 -2
- package/dist/components/superadmin/filters/PaginationControls.js +3 -3
- package/dist/components/superadmin/filters/SearchInput.js +3 -3
- package/dist/components/superadmin/filters/index.js +3 -3
- package/dist/components/superadmin/index.js +8 -8
- package/dist/components/superadmin/layouts/SuperadminSidebar.d.ts.map +1 -1
- package/dist/components/superadmin/layouts/SuperadminSidebar.js +12 -4
- package/dist/components/superadmin/layouts/index.js +1 -1
- package/dist/components/superadmin/misc/ComponentGallery.js +16 -16
- package/dist/components/superadmin/misc/FieldTypesGallery.js +5 -5
- package/dist/components/superadmin/misc/ThemePreview.js +3 -3
- package/dist/components/superadmin/misc/index.js +3 -3
- package/dist/components/superadmin/tables/PlanFeaturesMatrix.js +4 -4
- package/dist/components/superadmin/tables/RolesPermissionsMatrix.js +4 -4
- package/dist/components/superadmin/tables/TeamsTable.js +5 -5
- package/dist/components/superadmin/tables/index.js +3 -3
- package/dist/components/teams/CreateTeamButton.js +3 -3
- package/dist/components/teams/CreateTeamDialog.js +7 -7
- package/dist/components/teams/InviteMemberButton.js +3 -3
- package/dist/components/teams/InviteMemberDialog.js +8 -8
- package/dist/components/teams/TeamBadge.js +1 -1
- package/dist/components/teams/TeamDetailSection.js +3 -3
- package/dist/components/teams/TeamMembersList.js +11 -11
- package/dist/components/teams/TeamPendingInvitations.js +6 -6
- package/dist/components/teams/TeamSwitchModal.js +4 -4
- package/dist/components/teams/TeamSwitcher.js +7 -7
- package/dist/components/teams/TeamSwitcherCompact.js +7 -7
- package/dist/components/teams/index.js +11 -11
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/address-input.js +4 -4
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/audio-upload.js +3 -3
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.js +2 -2
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/combobox.js +4 -4
- package/dist/components/ui/command.js +2 -2
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/country-select.js +2 -2
- package/dist/components/ui/currency-select.js +2 -2
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/double-range.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/file-upload.js +3 -3
- package/dist/components/ui/form.js +2 -2
- package/dist/components/ui/google-icon.js +1 -1
- package/dist/components/ui/image-upload.js +3 -3
- package/dist/components/ui/index.js +47 -47
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/last-used-badge.js +2 -2
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/multi-select.js +5 -5
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/password-input.js +3 -3
- package/dist/components/ui/phone-input.js +2 -2
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/rating.js +1 -1
- package/dist/components/ui/rich-text-editor.js +3 -3
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/simple-relation-select.js +4 -4
- package/dist/components/ui/skeleton-detail.js +2 -2
- package/dist/components/ui/skeleton-form.js +2 -2
- package/dist/components/ui/skeleton-list.js +2 -2
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tags-input.js +3 -3
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/timezone-select.js +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/user-display.js +4 -4
- package/dist/components/ui/user-select.js +8 -8
- package/dist/components/ui/video-upload.js +2 -2
- package/dist/components/users/tables/SuperAdminsTable.js +6 -6
- package/dist/components/users/tables/UsersTable.js +9 -9
- package/dist/contexts/SubscriptionContext.js +1 -1
- package/dist/contexts/TeamContext.js +4 -4
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/sidebar-context.js +1 -1
- package/dist/hooks/index.js +39 -39
- package/dist/hooks/useAuth.js +3 -3
- package/dist/hooks/useAuthMethodDetector.js +1 -1
- package/dist/hooks/useEnabledEntities.js +1 -1
- package/dist/hooks/useEnsureUserMetadata.js +1 -1
- package/dist/hooks/useEntity.js +2 -2
- package/dist/hooks/useEntityConfig.js +1 -1
- package/dist/hooks/useEntityMutations.js +1 -1
- package/dist/hooks/useEntityQuery.js +1 -1
- package/dist/hooks/useEntitySearch.js +3 -3
- package/dist/hooks/useEntityTranslations.js +3 -3
- package/dist/hooks/useEntityWithMeta.js +2 -2
- package/dist/hooks/useFeature.js +1 -1
- package/dist/hooks/useInvoice.js +1 -1
- package/dist/hooks/useInvoices.js +1 -1
- package/dist/hooks/useLocale.js +3 -3
- package/dist/hooks/useMembership.js +1 -1
- package/dist/hooks/useQuickCreateEntities.js +2 -2
- package/dist/hooks/useQuota.js +1 -1
- package/dist/hooks/useSearch.js +2 -2
- package/dist/hooks/useSidebarState.js +1 -1
- package/dist/hooks/useSubscription.js +1 -1
- package/dist/hooks/useTeam.js +1 -1
- package/dist/hooks/useTeamMembers.js +1 -1
- package/dist/hooks/useTeamsConfig.js +2 -2
- package/dist/hooks/useUrlFilters.js +4 -4
- package/dist/hooks/useUserProfile.js +1 -1
- package/dist/hooks/useUserSettings.js +1 -1
- package/dist/hooks/useValidationSchemas.js +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +29 -19
- package/dist/index.js +4 -4
- package/dist/lib/api/auth/dual-auth.js +3 -3
- package/dist/lib/api/auth/permissions.js +1 -1
- package/dist/lib/api/auth.js +3 -3
- package/dist/lib/api/entity/generic-handler.d.ts.map +1 -1
- package/dist/lib/api/entity/generic-handler.js +14 -100
- package/dist/lib/api/entity/public-resolver.js +1 -1
- package/dist/lib/api/entity/resolver.js +1 -1
- package/dist/lib/api/entity-handler.js +4 -4
- package/dist/lib/api/helpers.js +8 -8
- package/dist/lib/api/index.js +5 -5
- package/dist/lib/api/meta.middleware.js +2 -2
- package/dist/lib/api/permission-middleware.js +1 -1
- package/dist/lib/api/rate-limit.js +2 -2
- package/dist/lib/auth.js +5 -5
- package/dist/lib/billing/enforcement.js +1 -1
- package/dist/lib/billing/jobs.js +1 -1
- package/dist/lib/config/config-loader.js +1 -1
- package/dist/lib/config/config-sync.d.ts.map +1 -1
- package/dist/lib/config/config-sync.js +42 -19
- package/dist/lib/config/index.d.js +4 -4
- package/dist/lib/config/index.js +4 -4
- package/dist/lib/config/types.d.ts +14 -19
- package/dist/lib/config/types.d.ts.map +1 -1
- package/dist/lib/docs/parser.d.ts +1 -1
- package/dist/lib/docs/parser.d.ts.map +1 -1
- package/dist/lib/docs/parser.js +1 -1
- package/dist/lib/email/factory.d.ts.map +1 -1
- package/dist/lib/email/factory.js +4 -3
- package/dist/lib/email/index.d.js +3 -3
- package/dist/lib/email/index.js +3 -3
- package/dist/lib/entities/api-generator.js +3 -3
- package/dist/lib/entities/entity-hooks.js +1 -1
- package/dist/lib/entities/external-api-generator.js +4 -4
- package/dist/lib/entities/helpers.js +1 -1
- package/dist/lib/entities/meta-adapter.js +1 -1
- package/dist/lib/entities/queries.d.ts +48 -8
- package/dist/lib/entities/queries.d.ts.map +1 -1
- package/dist/lib/entities/queries.js +36 -12
- package/dist/lib/entities/registry.client.d.ts +1 -1
- package/dist/lib/entities/registry.client.d.ts.map +1 -1
- package/dist/lib/entities/registry.client.js +3 -22
- package/dist/lib/entities/registry.d.ts +25 -13
- package/dist/lib/entities/registry.d.ts.map +1 -1
- package/dist/lib/entities/registry.js +50 -55
- package/dist/lib/entities/testing.js +2 -2
- package/dist/lib/helpers/entity-meta.helpers.js +1 -1
- package/dist/lib/i18n/AuthTranslationPreloader.js +1 -1
- package/dist/lib/i18n/DashboardTranslationPreloader.js +1 -1
- package/dist/lib/i18n-utils.js +1 -1
- package/dist/lib/index.js +8 -8
- package/dist/lib/locale-client.js +1 -1
- package/dist/lib/locale.js +3 -3
- package/dist/lib/namespace-loader.js +2 -2
- package/dist/lib/oauth/encryption.js +1 -1
- package/dist/lib/oauth/index.js +4 -4
- package/dist/lib/oauth/metadata.js +1 -1
- package/dist/lib/oauth/token-refresh.js +2 -2
- package/dist/lib/permissions/check.js +2 -2
- package/dist/lib/permissions/hooks.js +2 -2
- package/dist/lib/permissions/init.js +1 -1
- package/dist/lib/plugins/plugin-loader.js +1 -1
- package/dist/lib/role-helpers.js +1 -1
- package/dist/lib/scheduled-actions/cleanup.js +2 -2
- package/dist/lib/scheduled-actions/index.d.js +5 -5
- package/dist/lib/scheduled-actions/index.js +5 -5
- package/dist/lib/scheduled-actions/processor.js +4 -4
- package/dist/lib/scheduled-actions/scheduler.js +2 -2
- package/dist/lib/services/base-entity.service.js +1 -1
- package/dist/lib/services/docs.service.d.ts +154 -0
- package/dist/lib/services/docs.service.d.ts.map +1 -0
- package/dist/lib/services/docs.service.js +277 -0
- package/dist/lib/services/index.d.js +18 -18
- package/dist/lib/services/index.d.ts +1 -0
- package/dist/lib/services/index.d.ts.map +1 -1
- package/dist/lib/services/index.js +36 -18
- package/dist/lib/services/invoice.service.js +1 -1
- package/dist/lib/services/membership.service.js +5 -5
- package/dist/lib/services/meta.service.js +2 -2
- package/dist/lib/services/plan.service.js +1 -1
- package/dist/lib/services/plugin.service.d.ts +1 -0
- package/dist/lib/services/plugin.service.d.ts.map +1 -1
- package/dist/lib/services/plugin.service.js +37 -11
- package/dist/lib/services/subscription.service.js +7 -7
- package/dist/lib/services/team-member.service.js +2 -2
- package/dist/lib/services/team.service.js +1 -1
- package/dist/lib/services/transactional-meta.service.js +1 -1
- package/dist/lib/services/usage.service.js +4 -4
- package/dist/lib/services/user-flags.service.js +1 -1
- package/dist/lib/services/user.service.js +2 -2
- package/dist/lib/teams/actions.js +1 -1
- package/dist/lib/teams/types.js +1 -1
- package/dist/lib/template-resolver.js +2 -2
- package/dist/lib/test/core-selectors.d.ts +15 -0
- package/dist/lib/test/core-selectors.d.ts.map +1 -1
- package/dist/lib/test/core-selectors.js +18 -2
- package/dist/lib/test/index.d.ts +9 -18
- package/dist/lib/test/index.d.ts.map +1 -1
- package/dist/lib/test/index.js +9 -9
- package/dist/lib/test/selectors.d.ts +33 -4
- package/dist/lib/test/selectors.d.ts.map +1 -1
- package/dist/lib/test/selectors.js +2 -2
- package/dist/lib/test/utils.d.ts +9 -1
- package/dist/lib/test/utils.d.ts.map +1 -1
- package/dist/lib/theme/ThemeProvider.js +3 -3
- package/dist/lib/theme/get-default-theme-mode.js +2 -2
- package/dist/lib/theme/theme-loader.js +2 -2
- package/dist/lib/translations/i18n-integration.js +3 -3
- package/dist/lib/translations/registry.d.ts +2 -0
- package/dist/lib/translations/registry.d.ts.map +1 -1
- package/dist/lib/translations/registry.js +31 -3
- package/dist/messages/de/devtools.json +22 -1
- package/dist/messages/de/docs.json +5 -1
- package/dist/messages/de/index.d.ts +26 -1
- package/dist/messages/de/index.d.ts.map +1 -1
- package/dist/messages/en/devtools.json +22 -1
- package/dist/messages/en/docs.json +5 -1
- package/dist/messages/en/index.d.ts +26 -1
- package/dist/messages/en/index.d.ts.map +1 -1
- package/dist/messages/es/devtools.json +22 -1
- package/dist/messages/es/docs.json +5 -1
- package/dist/messages/es/index.d.ts +49 -1
- package/dist/messages/es/index.d.ts.map +1 -1
- package/dist/messages/es/teams.json +27 -1
- package/dist/messages/fr/devtools.json +22 -1
- package/dist/messages/fr/docs.json +5 -1
- package/dist/messages/fr/index.d.ts +26 -1
- package/dist/messages/fr/index.d.ts.map +1 -1
- package/dist/messages/index.js +7 -7
- package/dist/messages/it/devtools.json +22 -1
- package/dist/messages/it/docs.json +5 -1
- package/dist/messages/it/index.d.ts +26 -1
- package/dist/messages/it/index.d.ts.map +1 -1
- package/dist/messages/pt/devtools.json +22 -1
- package/dist/messages/pt/docs.json +5 -1
- package/dist/messages/pt/index.d.ts +26 -1
- package/dist/messages/pt/index.d.ts.map +1 -1
- package/dist/presets/theme/tests/cypress/src/session-helpers.ts +27 -10
- package/dist/presets/theme/tests/cypress.config.ts +19 -5
- package/dist/providers/TranslationContextManager.js +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/styles/classes.json +9 -3
- package/dist/styles/ui.css +1 -1
- package/dist/templates/app/(auth)/forgot-password/page.tsx +1 -1
- package/dist/templates/app/(auth)/reset-password/page.tsx +9 -9
- package/dist/templates/app/(auth)/verify-email/page.tsx +1 -1
- package/dist/templates/app/(public)/[...slug]/page.tsx +1 -1
- package/dist/templates/app/accept-invite/[token]/page.tsx +1 -1
- package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +6 -1
- package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +6 -1
- package/dist/templates/app/api/v1/[entity]/[id]/route.ts +13 -7
- package/dist/templates/app/api/v1/[entity]/route.ts +12 -6
- package/dist/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +6 -1
- package/dist/templates/app/dashboard/(main)/[entity]/page.tsx +7 -1
- package/dist/templates/app/dashboard/(main)/layout.tsx +10 -8
- package/dist/templates/app/dashboard/settings/api-keys/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/billing/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/layout.tsx +1 -1
- package/dist/templates/app/dashboard/settings/notifications/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/password/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/profile/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/security/page.tsx +1 -1
- package/dist/templates/app/dashboard/settings/teams/page.tsx +1 -1
- package/dist/templates/app/devtools/scheduled-actions/page.tsx +1 -1
- package/dist/templates/app/superadmin/page.tsx +1 -1
- package/dist/templates/app/superadmin/subscriptions/page.tsx +1 -1
- package/dist/templates/app/superadmin/teams/page.tsx +1 -1
- package/dist/templates/app/superadmin/users/page.tsx +1 -1
- package/dist/templates/contents/themes/starter/config/app.config.ts +14 -11
- package/dist/templates/contents/themes/starter/config/dev.config.ts +9 -28
- package/dist/templates/contents/themes/starter/docs/superadmin/01-setup/01-configuration.md +31 -0
- package/dist/templates/contents/themes/starter/docs/superadmin/02-entities/01-tasks.md +176 -0
- package/dist/templates/contents/themes/starter/lib/selectors.ts +2 -2
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/access.bdd.md +262 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/access.cy.ts +171 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/navigation.bdd.md +261 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/navigation.cy.ts +157 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/pages.bdd.md +303 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/pages.cy.ts +184 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/docs/README.md +215 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/auth.bdd.md +354 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/auth.cy.ts +310 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/billing.bdd.md +276 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/billing.cy.ts +182 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-mobile.bdd.md +205 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-mobile.cy.ts +137 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-navigation.bdd.md +147 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-navigation.cy.ts +114 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-sidebar.bdd.md +111 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-sidebar.cy.ts +89 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-topnav.bdd.md +200 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-topnav.cy.ts +133 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/devtools.bdd.md +306 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/devtools.cy.ts +273 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/global-search.bdd.md +115 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/global-search.cy.ts +93 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-api-keys.bdd.md +266 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-api-keys.cy.ts +233 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-billing.bdd.md +78 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-billing.cy.ts +108 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-layout.bdd.md +138 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-layout.cy.ts +123 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-password.bdd.md +82 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-password.cy.ts +74 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-profile.bdd.md +77 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-profile.cy.ts +79 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-teams.bdd.md +130 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-teams.cy.ts +86 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/superadmin.bdd.md +261 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/superadmin.cy.ts +193 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/tasks.bdd.md +353 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/tasks.cy.ts +243 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/teams.bdd.md +278 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/teams.cy.ts +195 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-teams.bdd.md +261 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-teams.cy.ts +177 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-users.bdd.md +406 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-users.cy.ts +294 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/dashboard.bdd.md +235 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/dashboard.cy.ts +149 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/subscriptions-overview.bdd.md +290 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/subscriptions-overview.cy.ts +194 -0
- package/dist/templates/contents/themes/starter/tests/cypress/e2e/uat/entities/tasks/tasks-crud.bdd.md +278 -0
- package/{templates/contents/themes/starter/tests/cypress/e2e → dist/templates/contents/themes/starter/tests/cypress/e2e/uat/entities}/tasks/tasks-crud.cy.ts +24 -16
- package/dist/templates/contents/themes/starter/tests/cypress/src/components/DevKeyringPOM.ts +160 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/components/EntityForm.ts +375 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/components/EntityList.ts +389 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/components/TeamSwitcherPOM.ts +450 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/components/index.ts +13 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/core/BasePOM.ts +23 -120
- package/dist/templates/contents/themes/starter/tests/cypress/src/core/BlockEditorBasePOM.ts +576 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/core/DashboardEntityPOM.ts +29 -661
- package/dist/templates/contents/themes/starter/tests/cypress/src/core/index.ts +2 -0
- package/{templates/contents/themes/starter/tests/cypress/e2e/tasks → dist/templates/contents/themes/starter/tests/cypress/src/entities}/TasksPOM.ts +1 -1
- package/dist/templates/contents/themes/starter/tests/cypress/src/entities/index.ts +10 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/BillingPOM.ts +385 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/DashboardPOM.ts +245 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/DevtoolsPOM.ts +750 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/ScheduledActionsPOM.ts +463 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/SettingsPOM.ts +362 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/SuperadminPOM.ts +331 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/features/index.ts +18 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/helpers/ApiInterceptor.ts +14 -164
- package/dist/templates/contents/themes/starter/tests/cypress/src/index.ts +88 -0
- package/dist/templates/contents/themes/starter/tests/cypress/src/selectors.ts +4 -4
- package/dist/templates/contents/themes/starter/tests/cypress/src/session-helpers.ts +340 -77
- package/dist/templates/contents/themes/starter/tests/cypress/support/e2e.ts +37 -4
- package/dist/templates/contents/themes/starter/tests/cypress.config.ts +35 -19
- package/dist/templates/contents/themes/starter/tests/jest/__mocks__/jose.js +22 -0
- package/dist/templates/contents/themes/starter/tests/jest/__mocks__/next-server.js +56 -0
- package/dist/templates/contents/themes/starter/tests/jest/example.test.tsx +87 -0
- package/dist/templates/contents/themes/starter/tests/jest/jest.config.cjs +95 -0
- package/dist/templates/contents/themes/starter/tests/jest/services/tasks.service.test.ts +547 -0
- package/dist/templates/contents/themes/starter/tests/jest/setup.ts +170 -0
- package/dist/templates/contents/themes/starter/tests/jest/tsconfig.jest.json +8 -0
- package/dist/templates/scripts/cy-run-prod.cjs +277 -0
- package/dist/templates/tsconfig.cypress.json +2 -2
- package/dist/types/docs.d.ts +11 -6
- package/dist/types/docs.d.ts.map +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/user.types.js +1 -1
- package/package.json +29 -26
- package/scripts/build/docs-registry.mjs +68 -137
- package/scripts/build/registry/config.mjs +7 -4
- package/scripts/build/registry/generators/docs-registry.mjs +90 -0
- package/scripts/build/registry/generators/unified-registry.mjs +1 -0
- package/scripts/build/registry/post-build/page-generator.mjs +5 -3
- package/scripts/build/registry/post-build/route-cleanup.mjs +16 -7
- package/scripts/build/registry/watch.mjs +1 -1
- package/scripts/build/registry.mjs +17 -4
- package/scripts/create-theme.mjs +0 -0
- package/scripts/deploy/release-version.mjs +0 -0
- package/scripts/deploy/vercel-deploy.mjs +0 -0
- package/scripts/dev/watch-plugins.mjs +0 -0
- package/scripts/maintenance/update-core.mjs +0 -0
- package/scripts/setup/npm-postinstall.mjs +0 -0
- package/scripts/setup/setup-claude.mjs +0 -0
- package/scripts/test/cy.mjs +98 -8
- package/scripts/test/jest-theme.mjs +65 -0
- package/scripts/validation/check-imports.sh +0 -0
- package/templates/app/(auth)/forgot-password/page.tsx +1 -1
- package/templates/app/(auth)/reset-password/page.tsx +9 -9
- package/templates/app/(auth)/verify-email/page.tsx +1 -1
- package/templates/app/(public)/[...slug]/page.tsx +1 -1
- package/templates/app/accept-invite/[token]/page.tsx +1 -1
- package/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +6 -1
- package/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +6 -1
- package/templates/app/api/v1/[entity]/[id]/route.ts +13 -7
- package/templates/app/api/v1/[entity]/route.ts +12 -6
- package/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +6 -1
- package/templates/app/dashboard/(main)/[entity]/page.tsx +7 -1
- package/templates/app/dashboard/(main)/layout.tsx +10 -8
- package/templates/app/dashboard/settings/api-keys/page.tsx +1 -1
- package/templates/app/dashboard/settings/billing/page.tsx +1 -1
- package/templates/app/dashboard/settings/layout.tsx +1 -1
- package/templates/app/dashboard/settings/notifications/page.tsx +1 -1
- package/templates/app/dashboard/settings/page.tsx +1 -1
- package/templates/app/dashboard/settings/password/page.tsx +1 -1
- package/templates/app/dashboard/settings/profile/page.tsx +1 -1
- package/templates/app/dashboard/settings/security/page.tsx +1 -1
- package/templates/app/dashboard/settings/teams/page.tsx +1 -1
- package/templates/app/devtools/scheduled-actions/page.tsx +1 -1
- package/templates/app/superadmin/page.tsx +1 -1
- package/templates/app/superadmin/subscriptions/page.tsx +1 -1
- package/templates/app/superadmin/teams/page.tsx +1 -1
- package/templates/app/superadmin/users/page.tsx +1 -1
- package/templates/contents/themes/starter/config/app.config.ts +14 -11
- package/templates/contents/themes/starter/config/dev.config.ts +9 -28
- package/templates/contents/themes/starter/docs/superadmin/01-setup/01-configuration.md +31 -0
- package/templates/contents/themes/starter/docs/superadmin/02-entities/01-tasks.md +176 -0
- package/templates/contents/themes/starter/lib/selectors.ts +2 -2
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/access.bdd.md +262 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/access.cy.ts +171 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/navigation.bdd.md +261 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/navigation.cy.ts +157 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/pages.bdd.md +303 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/devtools/pages.cy.ts +184 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/docs/README.md +215 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/auth.bdd.md +354 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/auth.cy.ts +310 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/billing.bdd.md +276 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/billing.cy.ts +182 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-mobile.bdd.md +205 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-mobile.cy.ts +137 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-navigation.bdd.md +147 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-navigation.cy.ts +114 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-sidebar.bdd.md +111 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-sidebar.cy.ts +89 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-topnav.bdd.md +200 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/dashboard-topnav.cy.ts +133 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/devtools.bdd.md +306 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/devtools.cy.ts +273 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/global-search.bdd.md +115 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/global-search.cy.ts +93 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-api-keys.bdd.md +266 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-api-keys.cy.ts +233 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-billing.bdd.md +78 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-billing.cy.ts +108 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-layout.bdd.md +138 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-layout.cy.ts +123 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-password.bdd.md +82 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-password.cy.ts +74 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-profile.bdd.md +77 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-profile.cy.ts +79 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-teams.bdd.md +130 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/settings-teams.cy.ts +86 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/superadmin.bdd.md +261 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/superadmin.cy.ts +193 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/tasks.bdd.md +353 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/tasks.cy.ts +243 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/teams.bdd.md +278 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/selectors/teams.cy.ts +195 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-teams.bdd.md +261 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-teams.cy.ts +177 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-users.bdd.md +406 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/all-users.cy.ts +294 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/dashboard.bdd.md +235 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/dashboard.cy.ts +149 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/subscriptions-overview.bdd.md +290 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/_utils/superadmin/subscriptions-overview.cy.ts +194 -0
- package/templates/contents/themes/starter/tests/cypress/e2e/uat/entities/tasks/tasks-crud.bdd.md +278 -0
- package/{dist/templates/contents/themes/starter/tests/cypress/e2e → templates/contents/themes/starter/tests/cypress/e2e/uat/entities}/tasks/tasks-crud.cy.ts +24 -16
- package/templates/contents/themes/starter/tests/cypress/src/components/DevKeyringPOM.ts +160 -0
- package/templates/contents/themes/starter/tests/cypress/src/components/EntityForm.ts +375 -0
- package/templates/contents/themes/starter/tests/cypress/src/components/EntityList.ts +389 -0
- package/templates/contents/themes/starter/tests/cypress/src/components/TeamSwitcherPOM.ts +450 -0
- package/templates/contents/themes/starter/tests/cypress/src/components/index.ts +13 -0
- package/templates/contents/themes/starter/tests/cypress/src/core/BasePOM.ts +23 -120
- package/templates/contents/themes/starter/tests/cypress/src/core/BlockEditorBasePOM.ts +576 -0
- package/templates/contents/themes/starter/tests/cypress/src/core/DashboardEntityPOM.ts +29 -661
- package/templates/contents/themes/starter/tests/cypress/src/core/index.ts +2 -0
- package/{dist/templates/contents/themes/starter/tests/cypress/e2e/tasks → templates/contents/themes/starter/tests/cypress/src/entities}/TasksPOM.ts +1 -1
- package/templates/contents/themes/starter/tests/cypress/src/entities/index.ts +10 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/BillingPOM.ts +385 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/DashboardPOM.ts +245 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/DevtoolsPOM.ts +750 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/ScheduledActionsPOM.ts +463 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/SettingsPOM.ts +362 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/SuperadminPOM.ts +331 -0
- package/templates/contents/themes/starter/tests/cypress/src/features/index.ts +18 -0
- package/templates/contents/themes/starter/tests/cypress/src/helpers/ApiInterceptor.ts +14 -164
- package/templates/contents/themes/starter/tests/cypress/src/index.ts +88 -0
- package/templates/contents/themes/starter/tests/cypress/src/selectors.ts +4 -4
- package/templates/contents/themes/starter/tests/cypress/src/session-helpers.ts +340 -77
- package/templates/contents/themes/starter/tests/cypress/support/e2e.ts +37 -4
- package/templates/contents/themes/starter/tests/cypress.config.ts +35 -19
- package/templates/contents/themes/starter/tests/jest/__mocks__/jose.js +22 -0
- package/templates/contents/themes/starter/tests/jest/__mocks__/next-server.js +56 -0
- package/templates/contents/themes/starter/tests/jest/example.test.tsx +87 -0
- package/templates/contents/themes/starter/tests/jest/jest.config.cjs +95 -0
- package/templates/contents/themes/starter/tests/jest/services/tasks.service.test.ts +547 -0
- package/templates/contents/themes/starter/tests/jest/setup.ts +170 -0
- package/templates/contents/themes/starter/tests/jest/tsconfig.jest.json +8 -0
- package/templates/scripts/cy-run-prod.cjs +277 -0
- package/templates/tsconfig.cypress.json +2 -2
- package/tests/jest/__mocks__/@nextsparkjs/registries/docs-registry.ts +161 -0
- package/tests/jest/__mocks__/@nextsparkjs/registries/permissions-registry.ts +26 -0
- package/dist/lib/test/index.d.js +0 -33
- package/dist/lib/test/selectors.d.js +0 -4
- package/dist/lib/test/utils.d.js +0 -0
- package/dist/lib/testing-utils.d.js +0 -0
- package/dist/lib/testing-utils.d.ts +0 -215
- package/dist/lib/testing-utils.d.ts.map +0 -1
- package/dist/lib/testing-utils.js +0 -190
- package/dist/templates/app/components/page-renderer.d.ts.map +0 -1
- package/dist/templates/app/components/page-renderer.tsx +0 -89
- package/dist/testing/factories.d.ts +0 -15
- package/dist/testing/factories.d.ts.map +0 -1
- package/dist/testing/factories.js +0 -33
- package/dist/testing/index.d.ts +0 -4
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -14
- package/dist/testing/mocks.d.ts +0 -32
- package/dist/testing/mocks.d.ts.map +0 -1
- package/dist/testing/mocks.js +0 -49
- package/dist/testing/render-helpers.js +0 -24
- package/scripts/build/registry/generators/plugin-registry.mjs.bak +0 -219
- package/scripts/registry-build.js +0 -81
- package/scripts/registry-watch.js +0 -157
- package/templates/app/components/page-renderer.d.ts.map +0 -1
- package/templates/app/components/page-renderer.tsx +0 -89
- package/tests/cypress/support/allure.ts +0 -2
- package/tests/cypress/support/commands/auth.ts +0 -31
- package/tests/cypress/support/commands/forms.ts +0 -27
- package/tests/cypress/support/commands/index.ts +0 -7
- package/tests/cypress/support/commands/navigation.ts +0 -19
- package/tests/cypress/support/commands.js +0 -61
- package/tests/cypress/support/commands.ts +0 -71
- package/tests/cypress/support/e2e.js +0 -49
- package/tests/cypress/support/e2e.ts +0 -67
- package/tests/cypress/support/index.ts +0 -7
- package/tests/cypress/support/pom/BasePage.ts +0 -23
- package/tests/cypress/support/pom/index.ts +0 -1
- package/tests/cypress/support/test-commands.ts +0 -336
- /package/dist/{lib/test/core-selectors.d.js → templates/contents/themes/starter/blocks/.gitkeep} +0 -0
- /package/dist/templates/contents/themes/starter/docs/{01-overview → public/01-overview}/01-introduction.md +0 -0
- /package/dist/templates/contents/themes/starter/docs/{01-overview → public/01-overview}/02-customization.md +0 -0
- /package/dist/templates/contents/themes/starter/tests/cypress/e2e/{tasks → api/entities/tasks}/TaskAPIController.js +0 -0
- /package/dist/templates/{contents/themes/starter → features/pages}/blocks/hero/component.tsx +0 -0
- /package/dist/templates/{contents/themes/starter → features/pages}/blocks/hero/config.ts +0 -0
- /package/dist/templates/{contents/themes/starter → features/pages}/blocks/hero/fields.ts +0 -0
- /package/dist/templates/{contents/themes/starter → features/pages}/blocks/hero/index.ts +0 -0
- /package/dist/templates/{contents/themes/starter → features/pages}/blocks/hero/schema.ts +0 -0
- /package/{dist/lib/test/selector-factory.d.js → templates/contents/themes/starter/blocks/.gitkeep} +0 -0
- /package/templates/contents/themes/starter/docs/{01-overview → public/01-overview}/01-introduction.md +0 -0
- /package/templates/contents/themes/starter/docs/{01-overview → public/01-overview}/02-customization.md +0 -0
- /package/templates/contents/themes/starter/tests/cypress/e2e/{tasks → api/entities/tasks}/TaskAPIController.js +0 -0
- /package/templates/{contents/themes/starter → features/pages}/blocks/hero/component.tsx +0 -0
- /package/templates/{contents/themes/starter → features/pages}/blocks/hero/config.ts +0 -0
- /package/templates/{contents/themes/starter → features/pages}/blocks/hero/fields.ts +0 -0
- /package/templates/{contents/themes/starter → features/pages}/blocks/hero/index.ts +0 -0
- /package/templates/{contents/themes/starter → features/pages}/blocks/hero/schema.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { Button } from "../../ui/button";
|
|
5
|
-
import { Input } from "../../ui/input";
|
|
6
|
-
import { Alert, AlertDescription } from "../../ui/alert";
|
|
7
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card";
|
|
4
|
+
import { Button } from "../../ui/button.js";
|
|
5
|
+
import { Input } from "../../ui/input.js";
|
|
6
|
+
import { Alert, AlertDescription } from "../../ui/alert.js";
|
|
7
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card.js";
|
|
8
8
|
import { Copy, Eye, EyeOff, CheckCircle, AlertTriangle, X } from "lucide-react";
|
|
9
9
|
import { toast } from "sonner";
|
|
10
|
-
import { createCyId } from "../../../lib/test";
|
|
10
|
+
import { createCyId } from "../../../lib/test/index.js";
|
|
11
11
|
function ApiKeyDisplay({ apiKey, keyName, warning, onClose }) {
|
|
12
12
|
const [isVisible, setIsVisible] = useState(false);
|
|
13
13
|
const [copied, setCopied] = useState(false);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useMutation } from "@tanstack/react-query";
|
|
5
|
-
import { Button } from "../../ui/button";
|
|
6
|
-
import { Input } from "../../ui/input";
|
|
7
|
-
import { Label } from "../../ui/label";
|
|
8
|
-
import { Checkbox } from "../../ui/checkbox";
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
|
+
import { Input } from "../../ui/input.js";
|
|
7
|
+
import { Label } from "../../ui/label.js";
|
|
8
|
+
import { Checkbox } from "../../ui/checkbox.js";
|
|
9
9
|
import {
|
|
10
10
|
Dialog,
|
|
11
11
|
DialogContent,
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
DialogFooter,
|
|
14
14
|
DialogHeader,
|
|
15
15
|
DialogTitle
|
|
16
|
-
} from "../../ui/dialog";
|
|
16
|
+
} from "../../ui/dialog.js";
|
|
17
17
|
import {
|
|
18
18
|
Select,
|
|
19
19
|
SelectContent,
|
|
20
20
|
SelectItem,
|
|
21
21
|
SelectTrigger,
|
|
22
22
|
SelectValue
|
|
23
|
-
} from "../../ui/select";
|
|
24
|
-
import { Alert, AlertDescription } from "../../ui/alert";
|
|
25
|
-
import { Badge } from "../../ui/badge";
|
|
26
|
-
import { Separator } from "../../ui/separator";
|
|
23
|
+
} from "../../ui/select.js";
|
|
24
|
+
import { Alert, AlertDescription } from "../../ui/alert.js";
|
|
25
|
+
import { Badge } from "../../ui/badge.js";
|
|
26
|
+
import { Separator } from "../../ui/separator.js";
|
|
27
27
|
import { AlertTriangle, Info } from "lucide-react";
|
|
28
28
|
import { toast } from "sonner";
|
|
29
|
-
import { API_SCOPES, SCOPE_CATEGORIES } from "../../../lib/api/keys";
|
|
30
|
-
import { createCyId } from "../../../lib/test";
|
|
29
|
+
import { API_SCOPES, SCOPE_CATEGORIES } from "../../../lib/api/keys.js";
|
|
30
|
+
import { createCyId } from "../../../lib/test/index.js";
|
|
31
31
|
function CreateApiKeyDialog({ open, onClose, onSuccess }) {
|
|
32
32
|
const [name, setName] = useState("");
|
|
33
33
|
const [selectedScopes, setSelectedScopes] = useState([]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useSession } from "../../../lib/auth-client";
|
|
3
|
+
import { useSession } from "../../../lib/auth-client.js";
|
|
4
4
|
import { useRouter } from "next/navigation";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card";
|
|
6
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card.js";
|
|
7
7
|
import { AlertTriangle, ArrowLeft } from "lucide-react";
|
|
8
|
-
import { Button } from "../../ui/button";
|
|
8
|
+
import { Button } from "../../ui/button.js";
|
|
9
9
|
import { useTranslations } from "next-intl";
|
|
10
10
|
function DeveloperGuard({ children, fallback }) {
|
|
11
11
|
var _a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useSession } from "../../../lib/auth-client";
|
|
3
|
+
import { useSession } from "../../../lib/auth-client.js";
|
|
4
4
|
import { useRouter } from "next/navigation";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card";
|
|
6
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../../ui/card.js";
|
|
7
7
|
import { AlertTriangle, ArrowLeft } from "lucide-react";
|
|
8
|
-
import { Button } from "../../ui/button";
|
|
8
|
+
import { Button } from "../../ui/button.js";
|
|
9
9
|
import { useTranslations } from "next-intl";
|
|
10
10
|
function SuperAdminGuard({ children, fallback }) {
|
|
11
11
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeveloperGuard, useIsDeveloper } from "./DeveloperGuard";
|
|
2
|
-
import { SuperAdminGuard, useIsSuperAdmin, useCanAccessAdmin } from "./SuperAdminGuard";
|
|
1
|
+
import { DeveloperGuard, useIsDeveloper } from "./DeveloperGuard.js";
|
|
2
|
+
import { SuperAdminGuard, useIsSuperAdmin, useCanAccessAdmin } from "./SuperAdminGuard.js";
|
|
3
3
|
export {
|
|
4
4
|
DeveloperGuard,
|
|
5
5
|
SuperAdminGuard,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DeveloperGuard, useIsDeveloper } from "./guards/DeveloperGuard";
|
|
2
|
-
import { SuperAdminGuard, useIsSuperAdmin, useCanAccessAdmin } from "./guards/SuperAdminGuard";
|
|
3
|
-
import { PublicFooter } from "./layouts/PublicFooter";
|
|
4
|
-
import { PublicNavbar } from "./layouts/PublicNavbar";
|
|
5
|
-
import { ThemeToggle } from "./misc/ThemeToggle";
|
|
1
|
+
import { DeveloperGuard, useIsDeveloper } from "./guards/DeveloperGuard.js";
|
|
2
|
+
import { SuperAdminGuard, useIsSuperAdmin, useCanAccessAdmin } from "./guards/SuperAdminGuard.js";
|
|
3
|
+
import { PublicFooter } from "./layouts/PublicFooter.js";
|
|
4
|
+
import { PublicNavbar } from "./layouts/PublicNavbar.js";
|
|
5
|
+
import { ThemeToggle } from "./misc/ThemeToggle.js";
|
|
6
6
|
export {
|
|
7
7
|
DeveloperGuard,
|
|
8
8
|
PublicFooter,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Link from "next/link";
|
|
3
|
-
import { Separator } from "../../ui/separator";
|
|
3
|
+
import { Separator } from "../../ui/separator.js";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import { sel } from "../../../lib/test";
|
|
5
|
+
import { sel } from "../../../lib/test/index.js";
|
|
6
6
|
function PublicFooter() {
|
|
7
7
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
8
8
|
const t = useTranslations("footer");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Link from "next/link";
|
|
4
|
-
import { useAuth } from "../../../hooks/useAuth";
|
|
5
|
-
import { Button } from "../../ui/button";
|
|
6
|
-
import { ThemeToggle } from "../misc/ThemeToggle";
|
|
4
|
+
import { useAuth } from "../../../hooks/useAuth.js";
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
|
+
import { ThemeToggle } from "../misc/ThemeToggle.js";
|
|
7
7
|
import { Menu, X } from "lucide-react";
|
|
8
8
|
import { useState } from "react";
|
|
9
|
-
import { sel } from "../../../lib/test";
|
|
9
|
+
import { sel } from "../../../lib/test/index.js";
|
|
10
10
|
import { useTranslations } from "next-intl";
|
|
11
11
|
function PublicNavbar() {
|
|
12
12
|
const { user, isLoading } = useAuth();
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Moon, Sun, Monitor } from "lucide-react";
|
|
4
4
|
import { useTheme } from "next-themes";
|
|
5
|
-
import { Button } from "../../ui/button";
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
6
|
import {
|
|
7
7
|
DropdownMenu,
|
|
8
8
|
DropdownMenuContent,
|
|
9
9
|
DropdownMenuItem,
|
|
10
10
|
DropdownMenuTrigger
|
|
11
|
-
} from "../../ui/dropdown-menu";
|
|
11
|
+
} from "../../ui/dropdown-menu.js";
|
|
12
12
|
import { useEffect, useState, useCallback } from "react";
|
|
13
|
-
import { createTestId, createCyId, createAriaLabel } from "../../../lib/test";
|
|
13
|
+
import { createTestId, createCyId, createAriaLabel } from "../../../lib/test/index.js";
|
|
14
14
|
import { useTranslations } from "next-intl";
|
|
15
|
-
import { useAuth } from "../../../hooks/useAuth";
|
|
15
|
+
import { useAuth } from "../../../hooks/useAuth.js";
|
|
16
16
|
function ThemeToggle() {
|
|
17
17
|
const { setTheme, theme } = useTheme();
|
|
18
18
|
const { user } = useAuth();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback, useMemo } from "react";
|
|
4
4
|
import { Key, ChevronDown, User, Shield, Crown, ShieldCheck, UserCircle } from "lucide-react";
|
|
5
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
|
|
6
|
-
import { Button } from "../ui/button";
|
|
7
|
-
import { Badge } from "../ui/badge";
|
|
8
|
-
import { sel } from "../../lib/test";
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
|
|
6
|
+
import { Button } from "../ui/button.js";
|
|
7
|
+
import { Badge } from "../ui/badge.js";
|
|
8
|
+
import { sel } from "../../lib/test/index.js";
|
|
9
9
|
function parseTeamRoles(teamRoles) {
|
|
10
10
|
if (!teamRoles) return [];
|
|
11
11
|
const hasHighlight = teamRoles.includes("\u2B50");
|
|
@@ -6,23 +6,23 @@ import { useSearchParams } from "next/navigation";
|
|
|
6
6
|
import { useForm } from "react-hook-form";
|
|
7
7
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
import { useAuth } from "../../../hooks/useAuth";
|
|
10
|
-
import { useLastAuthMethod } from "../../../hooks/useLastAuthMethod";
|
|
11
|
-
import { Button } from "../../ui/button";
|
|
12
|
-
import { Input } from "../../ui/input";
|
|
13
|
-
import { Label } from "../../ui/label";
|
|
14
|
-
import { Alert, AlertDescription } from "../../ui/alert";
|
|
15
|
-
import { Checkbox } from "../../ui/checkbox";
|
|
16
|
-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../../ui/card";
|
|
17
|
-
import { Separator } from "../../ui/separator";
|
|
18
|
-
import { LastUsedBadge } from "../../ui/last-used-badge";
|
|
9
|
+
import { useAuth } from "../../../hooks/useAuth.js";
|
|
10
|
+
import { useLastAuthMethod } from "../../../hooks/useLastAuthMethod.js";
|
|
11
|
+
import { Button } from "../../ui/button.js";
|
|
12
|
+
import { Input } from "../../ui/input.js";
|
|
13
|
+
import { Label } from "../../ui/label.js";
|
|
14
|
+
import { Alert, AlertDescription } from "../../ui/alert.js";
|
|
15
|
+
import { Checkbox } from "../../ui/checkbox.js";
|
|
16
|
+
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../../ui/card.js";
|
|
17
|
+
import { Separator } from "../../ui/separator.js";
|
|
18
|
+
import { LastUsedBadge } from "../../ui/last-used-badge.js";
|
|
19
19
|
import { Mail, Lock, Loader2, AlertCircle, Users } from "lucide-react";
|
|
20
|
-
import { GoogleIcon } from "../../ui/google-icon";
|
|
21
|
-
import { createTestId, sel } from "../../../lib/test";
|
|
20
|
+
import { GoogleIcon } from "../../ui/google-icon.js";
|
|
21
|
+
import { createTestId, sel } from "../../../lib/test/index.js";
|
|
22
22
|
import { useTranslations } from "next-intl";
|
|
23
|
-
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader";
|
|
24
|
-
import { DevKeyring } from "../DevKeyring";
|
|
25
|
-
import { DEV_CONFIG } from "../../../lib/config/config-sync";
|
|
23
|
+
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader.js";
|
|
24
|
+
import { DevKeyring } from "../DevKeyring.js";
|
|
25
|
+
import { DEV_CONFIG } from "../../../lib/config/config-sync.js";
|
|
26
26
|
function getErrorMessageFromCode(error, t, context) {
|
|
27
27
|
const authError = error;
|
|
28
28
|
const errorCode = authError.code || getErrorCodeFromMessage(error.message);
|
|
@@ -198,7 +198,7 @@ function LoginForm() {
|
|
|
198
198
|
}
|
|
199
199
|
),
|
|
200
200
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
201
|
-
fromInvite && /* @__PURE__ */ jsxs(Alert, { className: "mb-4", "data-cy": "login
|
|
201
|
+
fromInvite && /* @__PURE__ */ jsxs(Alert, { className: "mb-4", "data-cy": sel("auth.login.inviteBanner"), children: [
|
|
202
202
|
/* @__PURE__ */ jsx(Users, { className: "h-4 w-4" }),
|
|
203
203
|
/* @__PURE__ */ jsx(AlertDescription, { children: t("login.inviteBanner") })
|
|
204
204
|
] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignupForm.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/forms/SignupForm.tsx"],"names":[],"mappings":"AA4BA,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"SignupForm.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/forms/SignupForm.tsx"],"names":[],"mappings":"AA4BA,wBAAgB,UAAU,4CAsgBzB"}
|
|
@@ -5,20 +5,20 @@ import Link from "next/link";
|
|
|
5
5
|
import { useSearchParams, useRouter } from "next/navigation";
|
|
6
6
|
import { useForm } from "react-hook-form";
|
|
7
7
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
8
|
-
import { useAuth } from "../../../hooks/useAuth";
|
|
9
|
-
import { Button } from "../../ui/button";
|
|
10
|
-
import { Input } from "../../ui/input";
|
|
11
|
-
import { Label } from "../../ui/label";
|
|
12
|
-
import { Alert, AlertDescription } from "../../ui/alert";
|
|
13
|
-
import { Checkbox } from "../../ui/checkbox";
|
|
14
|
-
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../../ui/card";
|
|
15
|
-
import { Separator } from "../../ui/separator";
|
|
16
|
-
import { PasswordInput } from "../../ui/password-input";
|
|
8
|
+
import { useAuth } from "../../../hooks/useAuth.js";
|
|
9
|
+
import { Button } from "../../ui/button.js";
|
|
10
|
+
import { Input } from "../../ui/input.js";
|
|
11
|
+
import { Label } from "../../ui/label.js";
|
|
12
|
+
import { Alert, AlertDescription } from "../../ui/alert.js";
|
|
13
|
+
import { Checkbox } from "../../ui/checkbox.js";
|
|
14
|
+
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../../ui/card.js";
|
|
15
|
+
import { Separator } from "../../ui/separator.js";
|
|
16
|
+
import { PasswordInput } from "../../ui/password-input.js";
|
|
17
17
|
import { Mail, User, Loader2, AlertCircle, ArrowRight, MailCheck, CheckCircle2, Users } from "lucide-react";
|
|
18
|
-
import { signupSchema } from "../../../lib/validation";
|
|
19
|
-
import { createTestId, sel } from "../../../lib/test";
|
|
18
|
+
import { signupSchema } from "../../../lib/validation.js";
|
|
19
|
+
import { createTestId, sel } from "../../../lib/test/index.js";
|
|
20
20
|
import { useTranslations } from "next-intl";
|
|
21
|
-
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader";
|
|
21
|
+
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader.js";
|
|
22
22
|
import { toast } from "sonner";
|
|
23
23
|
function SignupForm() {
|
|
24
24
|
const router = useRouter();
|
|
@@ -312,7 +312,7 @@ function SignupForm() {
|
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
314
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
315
|
-
fromInvite && /* @__PURE__ */ jsxs(Alert, { className: "mb-4", "data-cy": "signup
|
|
315
|
+
fromInvite && /* @__PURE__ */ jsxs(Alert, { className: "mb-4", "data-cy": sel("auth.signup.inviteBanner"), children: [
|
|
316
316
|
/* @__PURE__ */ jsx(Users, { className: "h-4 w-4" }),
|
|
317
317
|
/* @__PURE__ */ jsx(AlertDescription, { children: t("signup.inviteBanner") })
|
|
318
318
|
] }),
|
|
@@ -407,7 +407,7 @@ function SignupForm() {
|
|
|
407
407
|
),
|
|
408
408
|
errors.confirmPassword && /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: errors.confirmPassword.message })
|
|
409
409
|
] }),
|
|
410
|
-
error && /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
|
|
410
|
+
error && /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-cy": sel("auth.signup.error"), children: [
|
|
411
411
|
/* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4" }),
|
|
412
412
|
/* @__PURE__ */ jsx(AlertDescription, { children: error })
|
|
413
413
|
] }),
|
|
@@ -460,6 +460,7 @@ function SignupForm() {
|
|
|
460
460
|
onClick: handleGoogleSignUp,
|
|
461
461
|
disabled: !!loadingProvider,
|
|
462
462
|
className: "w-full",
|
|
463
|
+
"data-cy": sel("auth.signup.googleButton"),
|
|
463
464
|
children: [
|
|
464
465
|
loadingProvider === "google" ? /* @__PURE__ */ jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsxs("svg", { className: "mr-2 h-4 w-4", viewBox: "0 0 24 24", children: [
|
|
465
466
|
/* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LoginForm } from "./forms/LoginForm";
|
|
2
|
-
import { SignupForm } from "./forms/SignupForm";
|
|
3
|
-
import { AuthWrapper } from "./layouts/AuthWrapper";
|
|
4
|
-
import { AuthWrapperWithPreload } from "./layouts/AuthWrapperWithPreload";
|
|
5
|
-
import { DevKeyring } from "./DevKeyring";
|
|
1
|
+
import { LoginForm } from "./forms/LoginForm.js";
|
|
2
|
+
import { SignupForm } from "./forms/SignupForm.js";
|
|
3
|
+
import { AuthWrapper } from "./layouts/AuthWrapper.js";
|
|
4
|
+
import { AuthWrapperWithPreload } from "./layouts/AuthWrapperWithPreload.js";
|
|
5
|
+
import { DevKeyring } from "./DevKeyring.js";
|
|
6
6
|
export {
|
|
7
7
|
AuthWrapper,
|
|
8
8
|
AuthWrapperWithPreload,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader";
|
|
3
|
+
import { AuthTranslationPreloader } from "../../../lib/i18n/AuthTranslationPreloader.js";
|
|
4
4
|
function AuthWrapperWithPreload({ children }) {
|
|
5
5
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6
6
|
/* @__PURE__ */ jsx(AuthTranslationPreloader, {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthWrapper } from "./AuthWrapper";
|
|
2
|
-
import { AuthWrapperWithPreload } from "./AuthWrapperWithPreload";
|
|
1
|
+
import { AuthWrapper } from "./AuthWrapper.js";
|
|
2
|
+
import { AuthWrapperWithPreload } from "./AuthWrapperWithPreload.js";
|
|
3
3
|
export {
|
|
4
4
|
AuthWrapper,
|
|
5
5
|
AuthWrapperWithPreload
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslations } from "next-intl";
|
|
4
4
|
import { AlertTriangle } from "lucide-react";
|
|
5
|
-
import { Alert, AlertDescription, AlertTitle } from "../ui/alert";
|
|
6
|
-
import { Button } from "../ui/button";
|
|
5
|
+
import { Alert, AlertDescription, AlertTitle } from "../ui/alert.js";
|
|
6
|
+
import { Button } from "../ui/button.js";
|
|
7
7
|
function DowngradeWarning({
|
|
8
8
|
overLimitResources,
|
|
9
9
|
onConfirm,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useFeature } from "../../hooks/useFeature";
|
|
3
|
+
import { useFeature } from "../../hooks/useFeature.js";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import { Alert, AlertDescription, AlertTitle } from "../ui/alert";
|
|
6
|
-
import { Button } from "../ui/button";
|
|
5
|
+
import { Alert, AlertDescription, AlertTitle } from "../ui/alert.js";
|
|
6
|
+
import { Button } from "../ui/button.js";
|
|
7
7
|
import { Lock } from "lucide-react";
|
|
8
8
|
function FeatureGate({
|
|
9
9
|
feature,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "../ui/card";
|
|
4
|
-
import { Button } from "../ui/button";
|
|
3
|
+
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "../ui/card.js";
|
|
4
|
+
import { Button } from "../ui/button.js";
|
|
5
5
|
import { AlertTriangle, ArrowRight } from "lucide-react";
|
|
6
6
|
import { useTranslations } from "next-intl";
|
|
7
7
|
import Link from "next/link";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Badge } from "../ui/badge";
|
|
3
|
-
import { cn } from "../../lib/utils";
|
|
2
|
+
import { Badge } from "../ui/badge.js";
|
|
3
|
+
import { cn } from "../../lib/utils.js";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
function InvoiceStatusBadge({ status, className }) {
|
|
6
6
|
const t = useTranslations("settings.billing.invoices.status");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from "../ui/button";
|
|
2
|
+
import { Button } from "../ui/button.js";
|
|
3
3
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
function InvoicesPagination({
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
TableHead,
|
|
11
11
|
TableHeader,
|
|
12
12
|
TableRow
|
|
13
|
-
} from "../ui/table";
|
|
14
|
-
import { InvoiceStatusBadge } from "./InvoiceStatusBadge";
|
|
15
|
-
import { InvoicesEmptyState } from "./InvoicesEmptyState";
|
|
16
|
-
import { InvoicesPagination } from "./InvoicesPagination";
|
|
13
|
+
} from "../ui/table.js";
|
|
14
|
+
import { InvoiceStatusBadge } from "./InvoiceStatusBadge.js";
|
|
15
|
+
import { InvoicesEmptyState } from "./InvoicesEmptyState.js";
|
|
16
|
+
import { InvoicesPagination } from "./InvoicesPagination.js";
|
|
17
17
|
function InvoicesTable({
|
|
18
18
|
invoices,
|
|
19
19
|
isLoading = false,
|
|
@@ -3,8 +3,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import { CreditCard, ExternalLink, Loader2 } from "lucide-react";
|
|
6
|
-
import { Button } from "../ui/button";
|
|
7
|
-
import { useSubscription } from "../../hooks/useSubscription";
|
|
6
|
+
import { Button } from "../ui/button.js";
|
|
7
|
+
import { useSubscription } from "../../hooks/useSubscription.js";
|
|
8
8
|
import { toast } from "sonner";
|
|
9
9
|
function ManageBillingButton({ className }) {
|
|
10
10
|
const t = useTranslations("billing.portal");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { BILLING_REGISTRY } from "@nextsparkjs/registries/billing-registry";
|
|
4
|
-
import { useSubscription } from "../../hooks/useSubscription";
|
|
5
|
-
import { Button } from "../ui/button";
|
|
6
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../ui/card";
|
|
7
|
-
import { Badge } from "../ui/badge";
|
|
4
|
+
import { useSubscription } from "../../hooks/useSubscription.js";
|
|
5
|
+
import { Button } from "../ui/button.js";
|
|
6
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../ui/card.js";
|
|
7
|
+
import { Badge } from "../ui/badge.js";
|
|
8
8
|
import { Check, X } from "lucide-react";
|
|
9
9
|
import { useTranslations } from "next-intl";
|
|
10
|
-
import { cn } from "../../lib/utils";
|
|
10
|
+
import { cn } from "../../lib/utils.js";
|
|
11
11
|
function PricingTable({ onSelectPlan, className }) {
|
|
12
12
|
const t = useTranslations("billing");
|
|
13
13
|
const { planSlug: currentPlanSlug } = useSubscription();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useSubscription } from "../../hooks/useSubscription";
|
|
4
|
-
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
|
|
5
|
-
import { Badge } from "../ui/badge";
|
|
6
|
-
import { Button } from "../ui/button";
|
|
3
|
+
import { useSubscription } from "../../hooks/useSubscription.js";
|
|
4
|
+
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card.js";
|
|
5
|
+
import { Badge } from "../ui/badge.js";
|
|
6
|
+
import { Button } from "../ui/button.js";
|
|
7
7
|
import { useTranslations } from "next-intl";
|
|
8
8
|
import { Calendar, CreditCard } from "lucide-react";
|
|
9
|
-
import { Skeleton } from "../ui/skeleton";
|
|
10
|
-
import { ManageBillingButton } from "./ManageBillingButton";
|
|
9
|
+
import { Skeleton } from "../ui/skeleton.js";
|
|
10
|
+
import { ManageBillingButton } from "./ManageBillingButton.js";
|
|
11
11
|
function SubscriptionStatus({ onUpgrade, className }) {
|
|
12
12
|
const { plan, subscription, status, isTrialing, isLoading } = useSubscription();
|
|
13
13
|
const t = useTranslations("billing");
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
DialogDescription,
|
|
7
7
|
DialogHeader,
|
|
8
8
|
DialogTitle
|
|
9
|
-
} from "../ui/dialog";
|
|
10
|
-
import { PricingTable } from "./PricingTable";
|
|
9
|
+
} from "../ui/dialog.js";
|
|
10
|
+
import { PricingTable } from "./PricingTable.js";
|
|
11
11
|
import { useTranslations } from "next-intl";
|
|
12
12
|
function UpgradeModal({ open, onOpenChange, onSelectPlan }) {
|
|
13
13
|
const t = useTranslations("billing");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useQuota } from "../../hooks/useQuota";
|
|
3
|
+
import { useQuota } from "../../hooks/useQuota.js";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import { cn } from "../../lib/utils";
|
|
6
|
-
import { Skeleton } from "../ui/skeleton";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Skeleton } from "../ui/skeleton.js";
|
|
7
7
|
function UsageBar({ limitSlug, showLabel = true, className }) {
|
|
8
8
|
const quota = useQuota(limitSlug);
|
|
9
9
|
const t = useTranslations("billing.usage");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { BILLING_REGISTRY } from "@nextsparkjs/registries/billing-registry";
|
|
4
|
-
import { UsageBar } from "./UsageBar";
|
|
5
|
-
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
|
|
4
|
+
import { UsageBar } from "./UsageBar.js";
|
|
5
|
+
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card.js";
|
|
6
6
|
import { useTranslations } from "next-intl";
|
|
7
7
|
function UsageDashboard({ className }) {
|
|
8
8
|
const t = useTranslations("billing");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { InvoiceStatusBadge } from "./InvoiceStatusBadge";
|
|
2
|
-
import { InvoicesEmptyState } from "./InvoicesEmptyState";
|
|
3
|
-
import { InvoicesPagination } from "./InvoicesPagination";
|
|
4
|
-
import { InvoicesTable } from "./InvoicesTable";
|
|
5
|
-
import { FeatureGate } from "./FeatureGate";
|
|
6
|
-
import { FeaturePlaceholder } from "./FeaturePlaceholder";
|
|
7
|
-
import { UsageBar } from "./UsageBar";
|
|
8
|
-
import { PricingTable } from "./PricingTable";
|
|
9
|
-
import { SubscriptionStatus } from "./SubscriptionStatus";
|
|
10
|
-
import { UsageDashboard } from "./UsageDashboard";
|
|
11
|
-
import { UpgradeModal } from "./UpgradeModal";
|
|
1
|
+
import { InvoiceStatusBadge } from "./InvoiceStatusBadge.js";
|
|
2
|
+
import { InvoicesEmptyState } from "./InvoicesEmptyState.js";
|
|
3
|
+
import { InvoicesPagination } from "./InvoicesPagination.js";
|
|
4
|
+
import { InvoicesTable } from "./InvoicesTable.js";
|
|
5
|
+
import { FeatureGate } from "./FeatureGate.js";
|
|
6
|
+
import { FeaturePlaceholder } from "./FeaturePlaceholder.js";
|
|
7
|
+
import { UsageBar } from "./UsageBar.js";
|
|
8
|
+
import { PricingTable } from "./PricingTable.js";
|
|
9
|
+
import { SubscriptionStatus } from "./SubscriptionStatus.js";
|
|
10
|
+
import { UsageDashboard } from "./UsageDashboard.js";
|
|
11
|
+
import { UpgradeModal } from "./UpgradeModal.js";
|
|
12
12
|
export {
|
|
13
13
|
FeatureGate,
|
|
14
14
|
FeaturePlaceholder,
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
|
-
import { Button } from "../../ui/button";
|
|
6
|
-
import { Input } from "../../ui/input";
|
|
7
|
-
import { Textarea } from "../../ui/textarea";
|
|
8
|
-
import { Label } from "../../ui/label";
|
|
5
|
+
import { Button } from "../../ui/button.js";
|
|
6
|
+
import { Input } from "../../ui/input.js";
|
|
7
|
+
import { Textarea } from "../../ui/textarea.js";
|
|
8
|
+
import { Label } from "../../ui/label.js";
|
|
9
9
|
import {
|
|
10
10
|
Select,
|
|
11
11
|
SelectContent,
|
|
12
12
|
SelectItem,
|
|
13
13
|
SelectTrigger,
|
|
14
14
|
SelectValue
|
|
15
|
-
} from "../../ui/select";
|
|
16
|
-
import { ImageUpload } from "../../ui/image-upload";
|
|
17
|
-
import { Card, CardContent, CardHeader } from "../../ui/card";
|
|
15
|
+
} from "../../ui/select.js";
|
|
16
|
+
import { ImageUpload } from "../../ui/image-upload.js";
|
|
17
|
+
import { Card, CardContent, CardHeader } from "../../ui/card.js";
|
|
18
18
|
import { ChevronUp, ChevronDown, Trash2, Plus } from "lucide-react";
|
|
19
19
|
function ArrayField({ field, value, onChange }) {
|
|
20
20
|
const t = useTranslations("admin.blockEditor.form");
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
sortableKeyboardCoordinates,
|
|
17
17
|
verticalListSortingStrategy
|
|
18
18
|
} from "@dnd-kit/sortable";
|
|
19
|
-
import { SortableBlock } from "./sortable-block";
|
|
19
|
+
import { SortableBlock } from "./sortable-block.js";
|
|
20
20
|
function BlockCanvas({
|
|
21
21
|
blocks,
|
|
22
22
|
selectedBlockId,
|
|
@@ -3,10 +3,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useMemo } from "react";
|
|
4
4
|
import { useTranslations } from "next-intl";
|
|
5
5
|
import { Search, Plus } from "lucide-react";
|
|
6
|
-
import { Input } from "../../ui/input";
|
|
7
|
-
import { Button } from "../../ui/button";
|
|
8
|
-
import { Badge } from "../../ui/badge";
|
|
9
|
-
import { ScrollArea } from "../../ui/scroll-area";
|
|
6
|
+
import { Input } from "../../ui/input.js";
|
|
7
|
+
import { Button } from "../../ui/button.js";
|
|
8
|
+
import { Badge } from "../../ui/badge.js";
|
|
9
|
+
import { ScrollArea } from "../../ui/scroll-area.js";
|
|
10
10
|
function BlockPicker({ blocks, onAddBlock }) {
|
|
11
11
|
const t = useTranslations("admin.blockEditor.picker");
|
|
12
12
|
const [search, setSearch] = useState("");
|