@iblai/web-utils 1.11.8 → 1.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.esm.js.map +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/web-utils/src/__tests__/index.mobile.test.d.ts +7 -0
- package/dist/auth/web-utils/src/__tests__/index.web.test.d.ts +8 -0
- package/dist/auth/web-utils/src/constants/__tests__/chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/constants/chat.d.ts +8 -0
- package/dist/auth/web-utils/src/features/apple-restriction/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/apple-restriction/slice.d.ts +7 -0
- package/dist/auth/web-utils/src/features/chat/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/chat/slice.d.ts +164 -0
- package/dist/auth/web-utils/src/features/chat-input/__tests__/api-slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/chat-input/api-slice.d.ts +12 -0
- package/dist/auth/web-utils/src/features/csv/combine-csv.d.ts +35 -0
- package/dist/auth/web-utils/src/features/csv/index.d.ts +1 -0
- package/dist/auth/web-utils/src/features/files/__tests__/filesSlice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/files/filesSlice.d.ts +23 -0
- package/dist/auth/web-utils/src/features/host-chat/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/host-chat/slice.d.ts +17 -0
- package/dist/auth/web-utils/src/features/index.d.ts +11 -0
- package/dist/auth/web-utils/src/features/monetization/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/monetization/slice.d.ts +16 -0
- package/dist/auth/web-utils/src/features/rbac/__tests__/rbac-slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/rbac/rbac-slice.d.ts +13 -0
- package/dist/auth/web-utils/src/features/subscription/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/subscription/constants.d.ts +12 -0
- package/dist/auth/web-utils/src/features/subscription/slice.d.ts +28 -0
- package/dist/auth/web-utils/src/features/top-banner/__tests__/slice.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/top-banner/slice.d.ts +24 -0
- package/dist/auth/web-utils/src/features/tracking/__tests__/time-tracker.test.d.ts +1 -0
- package/dist/auth/web-utils/src/features/tracking/examples.d.ts +4 -0
- package/dist/auth/web-utils/src/features/tracking/index.d.ts +6 -0
- package/dist/auth/web-utils/src/features/tracking/time-tracker.d.ts +29 -0
- package/dist/auth/web-utils/src/features/tracking/use-time-tracker-native.d.ts +14 -0
- package/dist/auth/web-utils/src/features/tracking/use-time-tracker.d.ts +14 -0
- package/dist/auth/web-utils/src/hoc/index.d.ts +2 -0
- package/dist/auth/web-utils/src/hoc/with-permissions.d.ts +44 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-accessing-public-route.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-cached-session-id.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-chat-file-upload.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-embed-mode.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-event-callback.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-event-listener.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-file-drag-drop.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-local-storage.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-mentor-settings.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-model-file-upload-capabilities.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-os.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-responsive.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-attachment.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-free-trial-dialog.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-call.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-show-voice-recorder.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-timer.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-tokens.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-user-agreement.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-user.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-voice-chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/__tests__/use-welcome-message.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/__tests__/chat-history.utils.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/chat-history.utils.d.ts +10 -0
- package/dist/auth/web-utils/src/hooks/chat/ollama-client.d.ts +57 -0
- package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.d.ts +61 -0
- package/dist/auth/web-utils/src/hooks/chat/use-advanced-chat.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-history.d.ts +17 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.d.ts +146 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat-v2.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-chat.d.ts +53 -0
- package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.d.ts +14 -0
- package/dist/auth/web-utils/src/hooks/chat/use-get-chat-details.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.d.ts +24 -0
- package/dist/auth/web-utils/src/hooks/chat/use-mentor-tools.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/index.d.ts +42 -0
- package/dist/auth/web-utils/src/hooks/profile/use-profile-image-upload.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/profile/use-user-profile-update.d.ts +28 -0
- package/dist/auth/web-utils/src/hooks/stripe/__tests__/use-stripe-upgrade.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/stripe/use-stripe-upgrade.d.ts +14 -0
- package/dist/auth/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +70 -0
- package/dist/auth/web-utils/src/hooks/subscription/constants.d.ts +4 -0
- package/dist/auth/web-utils/src/hooks/subscription/use-subscription-handler.d.ts +11 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/__tests__/use-402-error-check.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +78 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/constants.d.ts +56 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-402-error-check.d.ts +22 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +71 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/config-loader.test.d.ts +10 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/__tests__/use-tenant-metadata.test.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/config-loader.d.ts +41 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/constants.d.ts +9 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/index.d.ts +5 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/types.d.ts +9 -0
- package/dist/auth/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +29 -0
- package/dist/auth/web-utils/src/hooks/use-accessing-public-route.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/use-cached-session-id.d.ts +8 -0
- package/dist/auth/web-utils/src/hooks/use-chat-file-upload.d.ts +17 -0
- package/dist/auth/web-utils/src/hooks/use-day-js.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-embed-mode.d.ts +1 -0
- package/dist/auth/web-utils/src/hooks/use-event-callback.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-event-listener.d.ts +6 -0
- package/dist/auth/web-utils/src/hooks/use-file-drag-drop.d.ts +15 -0
- package/dist/auth/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-local-storage.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-mentor-settings.d.ts +46 -0
- package/dist/auth/web-utils/src/hooks/use-model-file-upload-capabilities.d.ts +21 -0
- package/dist/auth/web-utils/src/hooks/use-os.d.ts +8 -0
- package/dist/auth/web-utils/src/hooks/use-responsive.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-show-attachment.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-show-free-trial-dialog.d.ts +31 -0
- package/dist/auth/web-utils/src/hooks/use-show-voice-call.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-show-voice-recorder.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-tenant-switch-sync.d.ts +13 -0
- package/dist/auth/web-utils/src/hooks/use-timer.d.ts +7 -0
- package/dist/auth/web-utils/src/hooks/use-tokens.d.ts +2 -0
- package/dist/auth/web-utils/src/hooks/use-user-agreement.d.ts +18 -0
- package/dist/auth/web-utils/src/hooks/use-user.d.ts +23 -0
- package/dist/auth/web-utils/src/hooks/use-voice-chat.d.ts +11 -0
- package/dist/auth/web-utils/src/hooks/use-welcome-message.d.ts +16 -0
- package/dist/auth/web-utils/src/index.d.ts +8 -0
- package/dist/auth/web-utils/src/index.mobile.d.ts +86 -0
- package/dist/auth/web-utils/src/index.web.d.ts +142 -0
- package/dist/auth/web-utils/src/providers/__tests__/auth-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/mentor-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/service-worker-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/__tests__/tenant-provider.test.d.ts +1 -0
- package/dist/auth/web-utils/src/providers/auth-provider.d.ts +129 -0
- package/dist/auth/web-utils/src/providers/index.d.ts +4 -0
- package/dist/auth/web-utils/src/providers/mentor-provider.d.ts +44 -0
- package/dist/auth/web-utils/src/providers/service-worker-provider.d.ts +21 -0
- package/dist/auth/web-utils/src/providers/tenant-provider.d.ts +77 -0
- package/dist/auth/web-utils/src/services/__tests__/event-bus.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/__tests__/file-upload.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/__tests__/register-sw.test.d.ts +1 -0
- package/dist/auth/web-utils/src/services/event-bus.d.ts +6 -0
- package/dist/auth/web-utils/src/services/file-upload.d.ts +60 -0
- package/dist/auth/web-utils/src/services/index.d.ts +3 -0
- package/dist/auth/web-utils/src/services/register-sw.d.ts +71 -0
- package/dist/auth/web-utils/src/types/chat.d.ts +1 -0
- package/dist/auth/web-utils/src/types/file-upload.d.ts +62 -0
- package/dist/auth/web-utils/src/types/index.d.ts +68 -0
- package/dist/auth/web-utils/src/types/subscription.d.ts +40 -0
- package/dist/auth/web-utils/src/utils/__tests__/auth.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/constants.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/helpers.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/platform.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/tauri-api-cache.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/__tests__/tenant-switch.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/constants.d.ts +69 -0
- package/dist/auth/web-utils/src/utils/data/__tests__/advanced-tab.test.d.ts +1 -0
- package/dist/auth/web-utils/src/utils/data/advanced-tab.d.ts +62 -0
- package/dist/auth/web-utils/src/utils/helpers.d.ts +33 -0
- package/dist/auth/web-utils/src/utils/index.d.ts +6 -0
- package/dist/auth/web-utils/src/utils/platform.d.ts +9 -0
- package/dist/auth/web-utils/src/utils/tauri-api-cache.d.ts +19 -0
- package/dist/index.esm.js +575 -262
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +588 -275
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +4 -4
- package/dist/web-utils/src/hooks/subscription-v2/use-subscription-handler.d.ts +3 -3
- package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +3 -3
- package/dist/web-utils/src/hooks/use-isomorphic-layout-effect.d.ts +2 -2
- package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +21 -21
- package/dist/web-utils/src/hooks/use-user-agreement.d.ts +3 -6
- package/dist/web-utils/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -2
- package/dist/data-layer/src/config.d.ts +0 -8
- package/dist/data-layer/src/constants.d.ts +0 -31
- package/dist/data-layer/src/core/index.d.ts +0 -11
- package/dist/data-layer/src/features/analytics/api-slice.d.ts +0 -3756
- package/dist/data-layer/src/features/analytics/constants.d.ts +0 -133
- package/dist/data-layer/src/features/analytics/custom-api-slice.d.ts +0 -8
- package/dist/data-layer/src/features/analytics/types.d.ts +0 -696
- package/dist/data-layer/src/features/api-keys/api-slice.d.ts +0 -702
- package/dist/data-layer/src/features/apps/api-slice.d.ts +0 -720
- package/dist/data-layer/src/features/artifacts/api-slice.d.ts +0 -1798
- package/dist/data-layer/src/features/artifacts/constants.d.ts +0 -42
- package/dist/data-layer/src/features/artifacts/types.d.ts +0 -37
- package/dist/data-layer/src/features/audit-logs/api-slice.d.ts +0 -268
- package/dist/data-layer/src/features/audit-logs/constants.d.ts +0 -11
- package/dist/data-layer/src/features/audit-logs/types.d.ts +0 -32
- package/dist/data-layer/src/features/auth/api-slice.d.ts +0 -639
- package/dist/data-layer/src/features/auth/constants.d.ts +0 -20
- package/dist/data-layer/src/features/auth/types.d.ts +0 -33
- package/dist/data-layer/src/features/billing/api-slice.d.ts +0 -359
- package/dist/data-layer/src/features/billing/constants.d.ts +0 -16
- package/dist/data-layer/src/features/billing/custom-api-slice.d.ts +0 -634
- package/dist/data-layer/src/features/billing/types.d.ts +0 -36
- package/dist/data-layer/src/features/call-configurations/api-slice.d.ts +0 -855
- package/dist/data-layer/src/features/call-configurations/constants.d.ts +0 -16
- package/dist/data-layer/src/features/call-configurations/types.d.ts +0 -49
- package/dist/data-layer/src/features/career/api-slice.d.ts +0 -3080
- package/dist/data-layer/src/features/catalog/api-slice.d.ts +0 -10260
- package/dist/data-layer/src/features/chat/api-slice.d.ts +0 -1977
- package/dist/data-layer/src/features/chat/constants.d.ts +0 -8
- package/dist/data-layer/src/features/chat/custom-api-slice.d.ts +0 -272
- package/dist/data-layer/src/features/chat-files/api-slice.d.ts +0 -185
- package/dist/data-layer/src/features/chat-files/types.d.ts +0 -32
- package/dist/data-layer/src/features/chat-history/api-slice.d.ts +0 -1528
- package/dist/data-layer/src/features/chat-privacy/api-slice.d.ts +0 -1398
- package/dist/data-layer/src/features/chat-privacy/constants.d.ts +0 -13
- package/dist/data-layer/src/features/claw/api-slice.d.ts +0 -5471
- package/dist/data-layer/src/features/claw/constants.d.ts +0 -126
- package/dist/data-layer/src/features/claw/types.d.ts +0 -275
- package/dist/data-layer/src/features/constants.d.ts +0 -3
- package/dist/data-layer/src/features/core/api-slice.d.ts +0 -9045
- package/dist/data-layer/src/features/core/constants.d.ts +0 -51
- package/dist/data-layer/src/features/core/custom-api-slice.d.ts +0 -1766
- package/dist/data-layer/src/features/core/custom-public-image-asset-api-slice.d.ts +0 -373
- package/dist/data-layer/src/features/core/types.d.ts +0 -73
- package/dist/data-layer/src/features/course-metadata/api-slice.d.ts +0 -1728
- package/dist/data-layer/src/features/course-metadata/types.d.ts +0 -179
- package/dist/data-layer/src/features/courses/api-slice.d.ts +0 -664
- package/dist/data-layer/src/features/courses/types.d.ts +0 -26
- package/dist/data-layer/src/features/credentials/api-slice.d.ts +0 -6360
- package/dist/data-layer/src/features/credentials/constants.d.ts +0 -36
- package/dist/data-layer/src/features/credentials/custom-api-slice.d.ts +0 -1839
- package/dist/data-layer/src/features/credentials/types.d.ts +0 -39
- package/dist/data-layer/src/features/custom-domain/api-slice.d.ts +0 -602
- package/dist/data-layer/src/features/custom-domain/constants.d.ts +0 -20
- package/dist/data-layer/src/features/custom-domain/types.d.ts +0 -46
- package/dist/data-layer/src/features/datasets/api-slice.d.ts +0 -439
- package/dist/data-layer/src/features/disclaimers/api-slice.d.ts +0 -912
- package/dist/data-layer/src/features/disclaimers/constants.d.ts +0 -27
- package/dist/data-layer/src/features/disclaimers/types.d.ts +0 -67
- package/dist/data-layer/src/features/edx-proctoring/api-slice.d.ts +0 -590
- package/dist/data-layer/src/features/edx-proctoring/constants.d.ts +0 -15
- package/dist/data-layer/src/features/edx-proctoring/types.d.ts +0 -61
- package/dist/data-layer/src/features/edx-sso/api-slice.d.ts +0 -334
- package/dist/data-layer/src/features/edx-sso/types.d.ts +0 -10
- package/dist/data-layer/src/features/llms/api-slice.d.ts +0 -373
- package/dist/data-layer/src/features/mcp/api-slice.d.ts +0 -2613
- package/dist/data-layer/src/features/mcp/constants.d.ts +0 -57
- package/dist/data-layer/src/features/mcp/types.d.ts +0 -176
- package/dist/data-layer/src/features/memory/api-slice.d.ts +0 -3462
- package/dist/data-layer/src/features/memory/constants.d.ts +0 -80
- package/dist/data-layer/src/features/memory/types.d.ts +0 -190
- package/dist/data-layer/src/features/mentor/api-slice.d.ts +0 -7984
- package/dist/data-layer/src/features/mentor/constants.d.ts +0 -45
- package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +0 -957
- package/dist/data-layer/src/features/mentor/privacy.d.ts +0 -61
- package/dist/data-layer/src/features/mentor/types.d.ts +0 -83
- package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +0 -785
- package/dist/data-layer/src/features/moderation-logs/api-slice.d.ts +0 -705
- package/dist/data-layer/src/features/monetization/constants.d.ts +0 -76
- package/dist/data-layer/src/features/monetization/custom-api-slice.d.ts +0 -5178
- package/dist/data-layer/src/features/monetization/types.d.ts +0 -229
- package/dist/data-layer/src/features/notifications/api-slice.d.ts +0 -1728
- package/dist/data-layer/src/features/notifications/constants.d.ts +0 -26
- package/dist/data-layer/src/features/notifications/custom-api-slice.d.ts +0 -996
- package/dist/data-layer/src/features/notifications/types.d.ts +0 -69
- package/dist/data-layer/src/features/per-learner/api-slice.d.ts +0 -1329
- package/dist/data-layer/src/features/periodic-agents/api-slice.d.ts +0 -2347
- package/dist/data-layer/src/features/platform/api-slice.d.ts +0 -2553
- package/dist/data-layer/src/features/platform/constants.d.ts +0 -17
- package/dist/data-layer/src/features/platform/custom-api-slice.d.ts +0 -493
- package/dist/data-layer/src/features/platform/types.d.ts +0 -61
- package/dist/data-layer/src/features/projects/api-slice.d.ts +0 -2026
- package/dist/data-layer/src/features/projects/constants.d.ts +0 -51
- package/dist/data-layer/src/features/projects/types.d.ts +0 -79
- package/dist/data-layer/src/features/prompts/api-slice.d.ts +0 -2464
- package/dist/data-layer/src/features/reports/api-slice.d.ts +0 -789
- package/dist/data-layer/src/features/retirement/api-slice.d.ts +0 -165
- package/dist/data-layer/src/features/retirement/constants.d.ts +0 -7
- package/dist/data-layer/src/features/retirement/types.d.ts +0 -3
- package/dist/data-layer/src/features/search/ai-search-api-slice.d.ts +0 -1413
- package/dist/data-layer/src/features/search/api-slice.d.ts +0 -2017
- package/dist/data-layer/src/features/search/constants.d.ts +0 -41
- package/dist/data-layer/src/features/search/types.d.ts +0 -161
- package/dist/data-layer/src/features/sessions/api-slice.d.ts +0 -969
- package/dist/data-layer/src/features/sessions/constants.d.ts +0 -3
- package/dist/data-layer/src/features/sessions/url.d.ts +0 -9
- package/dist/data-layer/src/features/skills/api-slice.d.ts +0 -1389
- package/dist/data-layer/src/features/stripe/api-slice.d.ts +0 -803
- package/dist/data-layer/src/features/stripe/constants.d.ts +0 -19
- package/dist/data-layer/src/features/stripe/types.d.ts +0 -19
- package/dist/data-layer/src/features/tenant/api-slice.d.ts +0 -832
- package/dist/data-layer/src/features/tenant/constants.d.ts +0 -11
- package/dist/data-layer/src/features/tenant/types.d.ts +0 -19
- package/dist/data-layer/src/features/tenant-logo/api-slice.d.ts +0 -349
- package/dist/data-layer/src/features/tenant-logo/constants.d.ts +0 -24
- package/dist/data-layer/src/features/tools/api-slice.d.ts +0 -417
- package/dist/data-layer/src/features/training-documents/api-slice.d.ts +0 -1523
- package/dist/data-layer/src/features/user/api-slice.d.ts +0 -2128
- package/dist/data-layer/src/features/user/constants.d.ts +0 -47
- package/dist/data-layer/src/features/user/types.d.ts +0 -134
- package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +0 -762
- package/dist/data-layer/src/features/utils.d.ts +0 -94
- package/dist/data-layer/src/features/watched-groups/api-slice.d.ts +0 -2481
- package/dist/data-layer/src/features/watched-groups/constants.d.ts +0 -66
- package/dist/data-layer/src/features/watched-groups/types.d.ts +0 -143
- package/dist/data-layer/src/features/workflows/api-slice.d.ts +0 -2454
- package/dist/data-layer/src/features/workflows/constants.d.ts +0 -57
- package/dist/data-layer/src/features/workflows/types.d.ts +0 -130
- package/dist/data-layer/src/index.d.ts +0 -121
- package/dist/data-layer/src/reducers/index.d.ts +0 -2
- package/dist/data-layer/src/reducers/mentor.d.ts +0 -2
- package/dist/data-layer/src/reducers/skills.d.ts +0 -2
- package/dist/data-layer/src/services/StorageService.d.ts +0 -5
- package/dist/data-layer/src/utils/index.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -9,20 +9,20 @@ var iblaiApi = require('@iblai/iblai-api');
|
|
|
9
9
|
var axios = require('axios');
|
|
10
10
|
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
var n = Object.create(null);
|
|
13
|
+
if (e) {
|
|
14
|
+
Object.keys(e).forEach(function (k) {
|
|
15
|
+
if (k !== 'default') {
|
|
16
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return e[k]; }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return Object.freeze(n);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
@@ -1119,6 +1119,13 @@ const MENTOR_AI_CONFIG = {
|
|
|
1119
1119
|
description: "Allow users to report inappropriate content.",
|
|
1120
1120
|
type: "boolean",
|
|
1121
1121
|
},
|
|
1122
|
+
{
|
|
1123
|
+
slug: "enable_chat_history_export",
|
|
1124
|
+
label: "Chat History Export",
|
|
1125
|
+
defaultValue: true,
|
|
1126
|
+
description: "Allow users to export their chat history. When off, the export option is hidden from users.",
|
|
1127
|
+
type: "boolean",
|
|
1128
|
+
},
|
|
1122
1129
|
{
|
|
1123
1130
|
slug: "help_center_url",
|
|
1124
1131
|
label: "Help Center URL",
|
|
@@ -10407,7 +10414,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10407
10414
|
* Returns the mentor object if found, undefined otherwise
|
|
10408
10415
|
*/
|
|
10409
10416
|
async function determineMentorToRedirectTo() {
|
|
10410
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
10417
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
10411
10418
|
setIsLoading(true);
|
|
10412
10419
|
try {
|
|
10413
10420
|
// Get the user's recent mentors
|
|
@@ -10442,9 +10449,9 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10442
10449
|
console.log("[determineMentorToRedirectTo] starredMentors ", starredMentors);
|
|
10443
10450
|
if (starredMentors && starredMentors.length > 0) {
|
|
10444
10451
|
const starredMentor = starredMentors[0];
|
|
10445
|
-
|
|
10446
|
-
if (
|
|
10447
|
-
return starredMentor;
|
|
10452
|
+
const uniqueId = (_a = starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.unique_id) !== null && _a !== void 0 ? _a : starredMentor === null || starredMentor === void 0 ? void 0 : starredMentor.mentor;
|
|
10453
|
+
if (uniqueId) {
|
|
10454
|
+
return { ...starredMentor, unique_id: uniqueId };
|
|
10448
10455
|
}
|
|
10449
10456
|
}
|
|
10450
10457
|
console.log("[determineMentorToRedirectTo] recentMentors ", recentMentors);
|
|
@@ -10461,12 +10468,12 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10461
10468
|
orderBy: "recently_accessed_at",
|
|
10462
10469
|
});
|
|
10463
10470
|
console.log("[determineMentorToRedirectTo] recentMentorsResult ", recentMentorsResult);
|
|
10464
|
-
recentMentors = ((
|
|
10471
|
+
recentMentors = ((_b = recentMentorsResult.data) === null || _b === void 0 ? void 0 : _b.results) || [];
|
|
10465
10472
|
// Check if we found recent mentors for the tenant
|
|
10466
10473
|
if (recentMentors.length > 0) {
|
|
10467
10474
|
console.log("found recent mentor", JSON.stringify({
|
|
10468
|
-
selectedMentorId: (
|
|
10469
|
-
mentorName: (
|
|
10475
|
+
selectedMentorId: (_c = recentMentors[0]) === null || _c === void 0 ? void 0 : _c.unique_id,
|
|
10476
|
+
mentorName: (_d = recentMentors[0]) === null || _d === void 0 ? void 0 : _d.name,
|
|
10470
10477
|
tenantKey,
|
|
10471
10478
|
}));
|
|
10472
10479
|
return recentMentors[0];
|
|
@@ -10482,7 +10489,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10482
10489
|
limit: QUERY_LIMIT,
|
|
10483
10490
|
orderBy: "recently_accessed_at",
|
|
10484
10491
|
});
|
|
10485
|
-
const featuredMentors = ((
|
|
10492
|
+
const featuredMentors = ((_e = featuredMentorsResult.data) === null || _e === void 0 ? void 0 : _e.results) || [];
|
|
10486
10493
|
console.log("featured mentors fetched", {
|
|
10487
10494
|
count: featuredMentors.length,
|
|
10488
10495
|
mentorIds: featuredMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
@@ -10526,8 +10533,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10526
10533
|
}
|
|
10527
10534
|
// If no default mentor, select the first featured mentor
|
|
10528
10535
|
console.log("found first featured mentor", {
|
|
10529
|
-
mentorId: (
|
|
10530
|
-
mentorName: (
|
|
10536
|
+
mentorId: (_f = featuredMentors[0]) === null || _f === void 0 ? void 0 : _f.unique_id,
|
|
10537
|
+
mentorName: (_g = featuredMentors[0]) === null || _g === void 0 ? void 0 : _g.name,
|
|
10531
10538
|
});
|
|
10532
10539
|
return featuredMentors[0];
|
|
10533
10540
|
}
|
|
@@ -10542,7 +10549,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10542
10549
|
limit: QUERY_LIMIT,
|
|
10543
10550
|
orderBy: "recently_accessed_at",
|
|
10544
10551
|
});
|
|
10545
|
-
const nonFeaturedMentors = ((
|
|
10552
|
+
const nonFeaturedMentors = ((_h = nonFeaturedMentorsResult.data) === null || _h === void 0 ? void 0 : _h.results) || [];
|
|
10546
10553
|
console.log("non-featured mentors fetched", {
|
|
10547
10554
|
count: nonFeaturedMentors.length,
|
|
10548
10555
|
mentorIds: nonFeaturedMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
@@ -10550,8 +10557,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10550
10557
|
// Check if we found non-featured mentors
|
|
10551
10558
|
if (nonFeaturedMentors.length > 0) {
|
|
10552
10559
|
console.log("found first non-featured mentor", {
|
|
10553
|
-
mentorId: (
|
|
10554
|
-
mentorName: (
|
|
10560
|
+
mentorId: (_j = nonFeaturedMentors[0]) === null || _j === void 0 ? void 0 : _j.unique_id,
|
|
10561
|
+
mentorName: (_k = nonFeaturedMentors[0]) === null || _k === void 0 ? void 0 : _k.name,
|
|
10555
10562
|
});
|
|
10556
10563
|
return nonFeaturedMentors[0];
|
|
10557
10564
|
}
|
|
@@ -10572,7 +10579,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10572
10579
|
// @ts-expect-error - userId is passed but not in generated API types
|
|
10573
10580
|
userId: username,
|
|
10574
10581
|
});
|
|
10575
|
-
const seededMentorsDetails = (
|
|
10582
|
+
const seededMentorsDetails = (_l = seedMentorsResult.data) === null || _l === void 0 ? void 0 : _l.detail;
|
|
10576
10583
|
console.log("mentor seeding completed", {
|
|
10577
10584
|
success: !!seededMentorsDetails,
|
|
10578
10585
|
details: seededMentorsDetails,
|
|
@@ -10586,15 +10593,15 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10586
10593
|
username,
|
|
10587
10594
|
limit: QUERY_LIMIT,
|
|
10588
10595
|
});
|
|
10589
|
-
const featuredMentorsAfterSeed = ((
|
|
10596
|
+
const featuredMentorsAfterSeed = ((_m = featuredMentorsAfterSeedResult.data) === null || _m === void 0 ? void 0 : _m.results) || [];
|
|
10590
10597
|
console.log("featured mentors after seeding", {
|
|
10591
10598
|
count: featuredMentorsAfterSeed.length,
|
|
10592
10599
|
mentorIds: featuredMentorsAfterSeed.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
10593
10600
|
});
|
|
10594
10601
|
if (featuredMentorsAfterSeed.length > 0) {
|
|
10595
10602
|
console.log("found seeded mentor", {
|
|
10596
|
-
mentorId: (
|
|
10597
|
-
mentorName: (
|
|
10603
|
+
mentorId: (_o = featuredMentorsAfterSeed[0]) === null || _o === void 0 ? void 0 : _o.unique_id,
|
|
10604
|
+
mentorName: (_p = featuredMentorsAfterSeed[0]) === null || _p === void 0 ? void 0 : _p.name,
|
|
10598
10605
|
});
|
|
10599
10606
|
return featuredMentorsAfterSeed[0];
|
|
10600
10607
|
}
|
|
@@ -15845,6 +15852,9 @@ function requireDynamicRenderingUtils () {
|
|
|
15845
15852
|
isHangingPromiseRejectionError: function() {
|
|
15846
15853
|
return isHangingPromiseRejectionError;
|
|
15847
15854
|
},
|
|
15855
|
+
makeDevtoolsIOAwarePromise: function() {
|
|
15856
|
+
return makeDevtoolsIOAwarePromise;
|
|
15857
|
+
},
|
|
15848
15858
|
makeHangingPromise: function() {
|
|
15849
15859
|
return makeHangingPromise;
|
|
15850
15860
|
}
|
|
@@ -15857,17 +15867,17 @@ function requireDynamicRenderingUtils () {
|
|
|
15857
15867
|
}
|
|
15858
15868
|
const HANGING_PROMISE_REJECTION = 'HANGING_PROMISE_REJECTION';
|
|
15859
15869
|
class HangingPromiseRejectionError extends Error {
|
|
15860
|
-
constructor(expression){
|
|
15861
|
-
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`), this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
|
15870
|
+
constructor(route, expression){
|
|
15871
|
+
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${route}".`), this.route = route, this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
|
15862
15872
|
}
|
|
15863
15873
|
}
|
|
15864
15874
|
const abortListenersBySignal = new WeakMap();
|
|
15865
|
-
function makeHangingPromise(signal, expression) {
|
|
15875
|
+
function makeHangingPromise(signal, route, expression) {
|
|
15866
15876
|
if (signal.aborted) {
|
|
15867
|
-
return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
15877
|
+
return Promise.reject(new HangingPromiseRejectionError(route, expression));
|
|
15868
15878
|
} else {
|
|
15869
15879
|
const hangingPromise = new Promise((_, reject)=>{
|
|
15870
|
-
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
15880
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
|
|
15871
15881
|
let currentListeners = abortListenersBySignal.get(signal);
|
|
15872
15882
|
if (currentListeners) {
|
|
15873
15883
|
currentListeners.push(boundRejection);
|
|
@@ -15893,6 +15903,16 @@ function requireDynamicRenderingUtils () {
|
|
|
15893
15903
|
}
|
|
15894
15904
|
}
|
|
15895
15905
|
function ignoreReject() {}
|
|
15906
|
+
function makeDevtoolsIOAwarePromise(underlying) {
|
|
15907
|
+
// in React DevTools if we resolve in a setTimeout we will observe
|
|
15908
|
+
// the promise resolution as something that can suspend a boundary or root.
|
|
15909
|
+
return new Promise((resolve)=>{
|
|
15910
|
+
// Must use setTimeout to be considered IO React DevTools. setImmediate will not work.
|
|
15911
|
+
setTimeout(()=>{
|
|
15912
|
+
resolve(underlying);
|
|
15913
|
+
}, 0);
|
|
15914
|
+
});
|
|
15915
|
+
}
|
|
15896
15916
|
|
|
15897
15917
|
|
|
15898
15918
|
} (dynamicRenderingUtils));
|
|
@@ -16154,6 +16174,9 @@ function requireAppRouterHeaders () {
|
|
|
16154
16174
|
FLIGHT_HEADERS: function() {
|
|
16155
16175
|
return FLIGHT_HEADERS;
|
|
16156
16176
|
},
|
|
16177
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
16178
|
+
return NEXT_ACTION_NOT_FOUND_HEADER;
|
|
16179
|
+
},
|
|
16157
16180
|
NEXT_DID_POSTPONE_HEADER: function() {
|
|
16158
16181
|
return NEXT_DID_POSTPONE_HEADER;
|
|
16159
16182
|
},
|
|
@@ -16197,14 +16220,14 @@ function requireAppRouterHeaders () {
|
|
|
16197
16220
|
return RSC_HEADER;
|
|
16198
16221
|
}
|
|
16199
16222
|
});
|
|
16200
|
-
const RSC_HEADER = '
|
|
16201
|
-
const ACTION_HEADER = '
|
|
16202
|
-
const NEXT_ROUTER_STATE_TREE_HEADER = '
|
|
16203
|
-
const NEXT_ROUTER_PREFETCH_HEADER = '
|
|
16204
|
-
const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = '
|
|
16205
|
-
const NEXT_HMR_REFRESH_HEADER = '
|
|
16223
|
+
const RSC_HEADER = 'rsc';
|
|
16224
|
+
const ACTION_HEADER = 'next-action';
|
|
16225
|
+
const NEXT_ROUTER_STATE_TREE_HEADER = 'next-router-state-tree';
|
|
16226
|
+
const NEXT_ROUTER_PREFETCH_HEADER = 'next-router-prefetch';
|
|
16227
|
+
const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = 'next-router-segment-prefetch';
|
|
16228
|
+
const NEXT_HMR_REFRESH_HEADER = 'next-hmr-refresh';
|
|
16206
16229
|
const NEXT_HMR_REFRESH_HASH_COOKIE = '__next_hmr_refresh_hash__';
|
|
16207
|
-
const NEXT_URL = '
|
|
16230
|
+
const NEXT_URL = 'next-url';
|
|
16208
16231
|
const RSC_CONTENT_TYPE_HEADER = 'text/x-component';
|
|
16209
16232
|
const FLIGHT_HEADERS = [
|
|
16210
16233
|
RSC_HEADER,
|
|
@@ -16219,6 +16242,7 @@ function requireAppRouterHeaders () {
|
|
|
16219
16242
|
const NEXT_REWRITTEN_PATH_HEADER = 'x-nextjs-rewritten-path';
|
|
16220
16243
|
const NEXT_REWRITTEN_QUERY_HEADER = 'x-nextjs-rewritten-query';
|
|
16221
16244
|
const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender';
|
|
16245
|
+
const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found';
|
|
16222
16246
|
|
|
16223
16247
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
16224
16248
|
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
@@ -16231,6 +16255,35 @@ function requireAppRouterHeaders () {
|
|
|
16231
16255
|
return appRouterHeaders.exports;
|
|
16232
16256
|
}
|
|
16233
16257
|
|
|
16258
|
+
var invariantError = {};
|
|
16259
|
+
|
|
16260
|
+
var hasRequiredInvariantError;
|
|
16261
|
+
|
|
16262
|
+
function requireInvariantError () {
|
|
16263
|
+
if (hasRequiredInvariantError) return invariantError;
|
|
16264
|
+
hasRequiredInvariantError = 1;
|
|
16265
|
+
(function (exports$1) {
|
|
16266
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
16267
|
+
value: true
|
|
16268
|
+
});
|
|
16269
|
+
Object.defineProperty(exports$1, "InvariantError", {
|
|
16270
|
+
enumerable: true,
|
|
16271
|
+
get: function() {
|
|
16272
|
+
return InvariantError;
|
|
16273
|
+
}
|
|
16274
|
+
});
|
|
16275
|
+
class InvariantError extends Error {
|
|
16276
|
+
constructor(message, options){
|
|
16277
|
+
super("Invariant: " + (message.endsWith('.') ? message : message + '.') + " This is a bug in Next.js.", options);
|
|
16278
|
+
this.name = 'InvariantError';
|
|
16279
|
+
}
|
|
16280
|
+
}
|
|
16281
|
+
|
|
16282
|
+
|
|
16283
|
+
} (invariantError));
|
|
16284
|
+
return invariantError;
|
|
16285
|
+
}
|
|
16286
|
+
|
|
16234
16287
|
var hasRequiredWorkUnitAsyncStorage_external;
|
|
16235
16288
|
|
|
16236
16289
|
function requireWorkUnitAsyncStorage_external () {
|
|
@@ -16247,12 +16300,12 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16247
16300
|
});
|
|
16248
16301
|
}
|
|
16249
16302
|
_export(exports$1, {
|
|
16303
|
+
getCacheSignal: function() {
|
|
16304
|
+
return getCacheSignal;
|
|
16305
|
+
},
|
|
16250
16306
|
getDraftModeProviderForCacheScope: function() {
|
|
16251
16307
|
return getDraftModeProviderForCacheScope;
|
|
16252
16308
|
},
|
|
16253
|
-
getExpectedRequestStore: function() {
|
|
16254
|
-
return getExpectedRequestStore;
|
|
16255
|
-
},
|
|
16256
16309
|
getHmrRefreshHash: function() {
|
|
16257
16310
|
return getHmrRefreshHash;
|
|
16258
16311
|
},
|
|
@@ -16262,49 +16315,28 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16262
16315
|
getRenderResumeDataCache: function() {
|
|
16263
16316
|
return getRenderResumeDataCache;
|
|
16264
16317
|
},
|
|
16318
|
+
getRuntimeStagePromise: function() {
|
|
16319
|
+
return getRuntimeStagePromise;
|
|
16320
|
+
},
|
|
16321
|
+
getServerComponentsHmrCache: function() {
|
|
16322
|
+
return getServerComponentsHmrCache;
|
|
16323
|
+
},
|
|
16324
|
+
isHmrRefresh: function() {
|
|
16325
|
+
return isHmrRefresh;
|
|
16326
|
+
},
|
|
16265
16327
|
throwForMissingRequestStore: function() {
|
|
16266
16328
|
return throwForMissingRequestStore;
|
|
16267
16329
|
},
|
|
16330
|
+
throwInvariantForMissingStore: function() {
|
|
16331
|
+
return throwInvariantForMissingStore;
|
|
16332
|
+
},
|
|
16268
16333
|
workUnitAsyncStorage: function() {
|
|
16269
16334
|
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
16270
16335
|
}
|
|
16271
16336
|
});
|
|
16272
16337
|
const _workunitasyncstorageinstance = requireWorkUnitAsyncStorageInstance();
|
|
16273
16338
|
const _approuterheaders = requireAppRouterHeaders();
|
|
16274
|
-
|
|
16275
|
-
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
16276
|
-
if (!workUnitStore) {
|
|
16277
|
-
throwForMissingRequestStore(callingExpression);
|
|
16278
|
-
}
|
|
16279
|
-
switch(workUnitStore.type){
|
|
16280
|
-
case 'request':
|
|
16281
|
-
return workUnitStore;
|
|
16282
|
-
case 'prerender':
|
|
16283
|
-
case 'prerender-ppr':
|
|
16284
|
-
case 'prerender-legacy':
|
|
16285
|
-
// This should not happen because we should have checked it already.
|
|
16286
|
-
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
16287
|
-
value: "E401",
|
|
16288
|
-
enumerable: false,
|
|
16289
|
-
configurable: true
|
|
16290
|
-
});
|
|
16291
|
-
case 'cache':
|
|
16292
|
-
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", {
|
|
16293
|
-
value: "E37",
|
|
16294
|
-
enumerable: false,
|
|
16295
|
-
configurable: true
|
|
16296
|
-
});
|
|
16297
|
-
case 'unstable-cache':
|
|
16298
|
-
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`), "__NEXT_ERROR_CODE", {
|
|
16299
|
-
value: "E69",
|
|
16300
|
-
enumerable: false,
|
|
16301
|
-
configurable: true
|
|
16302
|
-
});
|
|
16303
|
-
default:
|
|
16304
|
-
const _exhaustiveCheck = workUnitStore;
|
|
16305
|
-
return _exhaustiveCheck;
|
|
16306
|
-
}
|
|
16307
|
-
}
|
|
16339
|
+
const _invarianterror = requireInvariantError();
|
|
16308
16340
|
function throwForMissingRequestStore(callingExpression) {
|
|
16309
16341
|
throw Object.defineProperty(new Error(`\`${callingExpression}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
16310
16342
|
value: "E251",
|
|
@@ -16312,43 +16344,143 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16312
16344
|
configurable: true
|
|
16313
16345
|
});
|
|
16314
16346
|
}
|
|
16347
|
+
function throwInvariantForMissingStore() {
|
|
16348
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Expected workUnitAsyncStorage to have a store.'), "__NEXT_ERROR_CODE", {
|
|
16349
|
+
value: "E696",
|
|
16350
|
+
enumerable: false,
|
|
16351
|
+
configurable: true
|
|
16352
|
+
});
|
|
16353
|
+
}
|
|
16315
16354
|
function getPrerenderResumeDataCache(workUnitStore) {
|
|
16316
|
-
|
|
16317
|
-
|
|
16355
|
+
switch(workUnitStore.type){
|
|
16356
|
+
case 'prerender':
|
|
16357
|
+
case 'prerender-runtime':
|
|
16358
|
+
case 'prerender-ppr':
|
|
16359
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16360
|
+
case 'prerender-client':
|
|
16361
|
+
// TODO eliminate fetch caching in client scope and stop exposing this data
|
|
16362
|
+
// cache during SSR.
|
|
16363
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16364
|
+
case 'prerender-legacy':
|
|
16365
|
+
case 'request':
|
|
16366
|
+
case 'cache':
|
|
16367
|
+
case 'private-cache':
|
|
16368
|
+
case 'unstable-cache':
|
|
16369
|
+
return null;
|
|
16370
|
+
default:
|
|
16371
|
+
return workUnitStore;
|
|
16318
16372
|
}
|
|
16319
|
-
return null;
|
|
16320
16373
|
}
|
|
16321
16374
|
function getRenderResumeDataCache(workUnitStore) {
|
|
16322
|
-
|
|
16323
|
-
|
|
16375
|
+
switch(workUnitStore.type){
|
|
16376
|
+
case 'request':
|
|
16324
16377
|
return workUnitStore.renderResumeDataCache;
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16378
|
+
case 'prerender':
|
|
16379
|
+
case 'prerender-runtime':
|
|
16380
|
+
case 'prerender-client':
|
|
16381
|
+
if (workUnitStore.renderResumeDataCache) {
|
|
16382
|
+
// If we are in a prerender, we might have a render resume data cache
|
|
16383
|
+
// that is used to read from prefilled caches.
|
|
16384
|
+
return workUnitStore.renderResumeDataCache;
|
|
16385
|
+
}
|
|
16386
|
+
// fallthrough
|
|
16387
|
+
case 'prerender-ppr':
|
|
16388
|
+
// Otherwise we return the mutable resume data cache here as an immutable
|
|
16389
|
+
// version of the cache as it can also be used for reading.
|
|
16390
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16391
|
+
case 'cache':
|
|
16392
|
+
case 'private-cache':
|
|
16393
|
+
case 'unstable-cache':
|
|
16394
|
+
case 'prerender-legacy':
|
|
16395
|
+
return null;
|
|
16396
|
+
default:
|
|
16397
|
+
return workUnitStore;
|
|
16329
16398
|
}
|
|
16330
|
-
return null;
|
|
16331
16399
|
}
|
|
16332
16400
|
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16401
|
+
if (workStore.dev) {
|
|
16402
|
+
switch(workUnitStore.type){
|
|
16403
|
+
case 'cache':
|
|
16404
|
+
case 'private-cache':
|
|
16405
|
+
case 'prerender':
|
|
16406
|
+
case 'prerender-runtime':
|
|
16407
|
+
return workUnitStore.hmrRefreshHash;
|
|
16408
|
+
case 'request':
|
|
16409
|
+
var _workUnitStore_cookies_get;
|
|
16410
|
+
return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
|
|
16411
|
+
}
|
|
16336
16412
|
}
|
|
16337
|
-
return
|
|
16413
|
+
return undefined;
|
|
16414
|
+
}
|
|
16415
|
+
function isHmrRefresh(workStore, workUnitStore) {
|
|
16416
|
+
if (workStore.dev) {
|
|
16417
|
+
switch(workUnitStore.type){
|
|
16418
|
+
case 'cache':
|
|
16419
|
+
case 'private-cache':
|
|
16420
|
+
case 'request':
|
|
16421
|
+
return workUnitStore.isHmrRefresh ?? false;
|
|
16422
|
+
}
|
|
16423
|
+
}
|
|
16424
|
+
return false;
|
|
16425
|
+
}
|
|
16426
|
+
function getServerComponentsHmrCache(workStore, workUnitStore) {
|
|
16427
|
+
if (workStore.dev) {
|
|
16428
|
+
switch(workUnitStore.type){
|
|
16429
|
+
case 'cache':
|
|
16430
|
+
case 'private-cache':
|
|
16431
|
+
case 'request':
|
|
16432
|
+
return workUnitStore.serverComponentsHmrCache;
|
|
16433
|
+
}
|
|
16434
|
+
}
|
|
16435
|
+
return undefined;
|
|
16338
16436
|
}
|
|
16339
16437
|
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
16340
16438
|
if (workStore.isDraftMode) {
|
|
16341
16439
|
switch(workUnitStore.type){
|
|
16342
16440
|
case 'cache':
|
|
16441
|
+
case 'private-cache':
|
|
16343
16442
|
case 'unstable-cache':
|
|
16443
|
+
case 'prerender-runtime':
|
|
16344
16444
|
case 'request':
|
|
16345
16445
|
return workUnitStore.draftMode;
|
|
16346
|
-
default:
|
|
16347
|
-
return undefined;
|
|
16348
16446
|
}
|
|
16349
16447
|
}
|
|
16350
16448
|
return undefined;
|
|
16351
16449
|
}
|
|
16450
|
+
function getCacheSignal(workUnitStore) {
|
|
16451
|
+
switch(workUnitStore.type){
|
|
16452
|
+
case 'prerender':
|
|
16453
|
+
case 'prerender-client':
|
|
16454
|
+
case 'prerender-runtime':
|
|
16455
|
+
return workUnitStore.cacheSignal;
|
|
16456
|
+
case 'prerender-ppr':
|
|
16457
|
+
case 'prerender-legacy':
|
|
16458
|
+
case 'request':
|
|
16459
|
+
case 'cache':
|
|
16460
|
+
case 'private-cache':
|
|
16461
|
+
case 'unstable-cache':
|
|
16462
|
+
return null;
|
|
16463
|
+
default:
|
|
16464
|
+
return workUnitStore;
|
|
16465
|
+
}
|
|
16466
|
+
}
|
|
16467
|
+
function getRuntimeStagePromise(workUnitStore) {
|
|
16468
|
+
switch(workUnitStore.type){
|
|
16469
|
+
case 'prerender-runtime':
|
|
16470
|
+
case 'private-cache':
|
|
16471
|
+
return workUnitStore.runtimeStagePromise;
|
|
16472
|
+
case 'prerender':
|
|
16473
|
+
case 'prerender-client':
|
|
16474
|
+
case 'prerender-ppr':
|
|
16475
|
+
case 'prerender-legacy':
|
|
16476
|
+
case 'request':
|
|
16477
|
+
case 'cache':
|
|
16478
|
+
case 'unstable-cache':
|
|
16479
|
+
return null;
|
|
16480
|
+
default:
|
|
16481
|
+
return workUnitStore;
|
|
16482
|
+
}
|
|
16483
|
+
}
|
|
16352
16484
|
|
|
16353
16485
|
|
|
16354
16486
|
} (workUnitAsyncStorage_external));
|
|
@@ -16404,13 +16536,13 @@ function requireWorkAsyncStorage_external () {
|
|
|
16404
16536
|
return workAsyncStorage_external;
|
|
16405
16537
|
}
|
|
16406
16538
|
|
|
16407
|
-
var
|
|
16539
|
+
var boundaryConstants = {};
|
|
16408
16540
|
|
|
16409
|
-
var
|
|
16541
|
+
var hasRequiredBoundaryConstants;
|
|
16410
16542
|
|
|
16411
|
-
function
|
|
16412
|
-
if (
|
|
16413
|
-
|
|
16543
|
+
function requireBoundaryConstants () {
|
|
16544
|
+
if (hasRequiredBoundaryConstants) return boundaryConstants;
|
|
16545
|
+
hasRequiredBoundaryConstants = 1;
|
|
16414
16546
|
(function (exports$1) {
|
|
16415
16547
|
Object.defineProperty(exports$1, "__esModule", {
|
|
16416
16548
|
value: true
|
|
@@ -16428,6 +16560,9 @@ function requireMetadataConstants () {
|
|
|
16428
16560
|
OUTLET_BOUNDARY_NAME: function() {
|
|
16429
16561
|
return OUTLET_BOUNDARY_NAME;
|
|
16430
16562
|
},
|
|
16563
|
+
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
16564
|
+
return ROOT_LAYOUT_BOUNDARY_NAME;
|
|
16565
|
+
},
|
|
16431
16566
|
VIEWPORT_BOUNDARY_NAME: function() {
|
|
16432
16567
|
return VIEWPORT_BOUNDARY_NAME;
|
|
16433
16568
|
}
|
|
@@ -16435,10 +16570,11 @@ function requireMetadataConstants () {
|
|
|
16435
16570
|
const METADATA_BOUNDARY_NAME = '__next_metadata_boundary__';
|
|
16436
16571
|
const VIEWPORT_BOUNDARY_NAME = '__next_viewport_boundary__';
|
|
16437
16572
|
const OUTLET_BOUNDARY_NAME = '__next_outlet_boundary__';
|
|
16573
|
+
const ROOT_LAYOUT_BOUNDARY_NAME = '__next_root_layout_boundary__';
|
|
16438
16574
|
|
|
16439
16575
|
|
|
16440
|
-
} (
|
|
16441
|
-
return
|
|
16576
|
+
} (boundaryConstants));
|
|
16577
|
+
return boundaryConstants;
|
|
16442
16578
|
}
|
|
16443
16579
|
|
|
16444
16580
|
var scheduler = {};
|
|
@@ -16551,6 +16687,9 @@ function requireDynamicRendering () {
|
|
|
16551
16687
|
Postpone: function() {
|
|
16552
16688
|
return Postpone;
|
|
16553
16689
|
},
|
|
16690
|
+
PreludeState: function() {
|
|
16691
|
+
return PreludeState;
|
|
16692
|
+
},
|
|
16554
16693
|
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
16555
16694
|
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
16556
16695
|
},
|
|
@@ -16575,8 +16714,11 @@ function requireDynamicRendering () {
|
|
|
16575
16714
|
createHangingInputAbortSignal: function() {
|
|
16576
16715
|
return createHangingInputAbortSignal;
|
|
16577
16716
|
},
|
|
16578
|
-
|
|
16579
|
-
return
|
|
16717
|
+
createRenderInBrowserAbortSignal: function() {
|
|
16718
|
+
return createRenderInBrowserAbortSignal;
|
|
16719
|
+
},
|
|
16720
|
+
delayUntilRuntimeStage: function() {
|
|
16721
|
+
return delayUntilRuntimeStage;
|
|
16580
16722
|
},
|
|
16581
16723
|
formatDynamicAPIAccesses: function() {
|
|
16582
16724
|
return formatDynamicAPIAccesses;
|
|
@@ -16590,6 +16732,9 @@ function requireDynamicRendering () {
|
|
|
16590
16732
|
isPrerenderInterruptedError: function() {
|
|
16591
16733
|
return isPrerenderInterruptedError;
|
|
16592
16734
|
},
|
|
16735
|
+
logDisallowedDynamicError: function() {
|
|
16736
|
+
return logDisallowedDynamicError;
|
|
16737
|
+
},
|
|
16593
16738
|
markCurrentScopeAsDynamic: function() {
|
|
16594
16739
|
return markCurrentScopeAsDynamic;
|
|
16595
16740
|
},
|
|
@@ -16608,9 +16753,6 @@ function requireDynamicRendering () {
|
|
|
16608
16753
|
trackDynamicDataInDynamicRender: function() {
|
|
16609
16754
|
return trackDynamicDataInDynamicRender;
|
|
16610
16755
|
},
|
|
16611
|
-
trackFallbackParamAccessed: function() {
|
|
16612
|
-
return trackFallbackParamAccessed;
|
|
16613
|
-
},
|
|
16614
16756
|
trackSynchronousPlatformIOAccessInDev: function() {
|
|
16615
16757
|
return trackSynchronousPlatformIOAccessInDev;
|
|
16616
16758
|
},
|
|
@@ -16619,6 +16761,9 @@ function requireDynamicRendering () {
|
|
|
16619
16761
|
},
|
|
16620
16762
|
useDynamicRouteParams: function() {
|
|
16621
16763
|
return useDynamicRouteParams;
|
|
16764
|
+
},
|
|
16765
|
+
warnOnSyncDynamicError: function() {
|
|
16766
|
+
return warnOnSyncDynamicError;
|
|
16622
16767
|
}
|
|
16623
16768
|
});
|
|
16624
16769
|
const _react = /*#__PURE__*/ _interop_require_default(React);
|
|
@@ -16627,8 +16772,10 @@ function requireDynamicRendering () {
|
|
|
16627
16772
|
const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
|
|
16628
16773
|
const _workasyncstorageexternal = requireWorkAsyncStorage_external();
|
|
16629
16774
|
const _dynamicrenderingutils = requireDynamicRenderingUtils();
|
|
16630
|
-
const
|
|
16775
|
+
const _boundaryconstants = requireBoundaryConstants();
|
|
16631
16776
|
const _scheduler = requireScheduler();
|
|
16777
|
+
const _bailouttocsr = requireBailoutToCsr();
|
|
16778
|
+
const _invarianterror = requireInvariantError();
|
|
16632
16779
|
function _interop_require_default(obj) {
|
|
16633
16780
|
return obj && obj.__esModule ? obj : {
|
|
16634
16781
|
default: obj
|
|
@@ -16639,16 +16786,15 @@ function requireDynamicRendering () {
|
|
|
16639
16786
|
return {
|
|
16640
16787
|
isDebugDynamicAccesses,
|
|
16641
16788
|
dynamicAccesses: [],
|
|
16642
|
-
syncDynamicExpression: undefined,
|
|
16643
16789
|
syncDynamicErrorWithStack: null
|
|
16644
16790
|
};
|
|
16645
16791
|
}
|
|
16646
16792
|
function createDynamicValidationState() {
|
|
16647
16793
|
return {
|
|
16648
|
-
|
|
16794
|
+
hasSuspenseAboveBody: false,
|
|
16649
16795
|
hasDynamicMetadata: false,
|
|
16650
16796
|
hasDynamicViewport: false,
|
|
16651
|
-
|
|
16797
|
+
hasAllowedDynamic: false,
|
|
16652
16798
|
dynamicErrors: []
|
|
16653
16799
|
};
|
|
16654
16800
|
}
|
|
@@ -16658,11 +16804,17 @@ function requireDynamicRendering () {
|
|
|
16658
16804
|
}
|
|
16659
16805
|
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
16660
16806
|
if (workUnitStore) {
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16807
|
+
switch(workUnitStore.type){
|
|
16808
|
+
case 'cache':
|
|
16809
|
+
case 'unstable-cache':
|
|
16810
|
+
// Inside cache scopes, marking a scope as dynamic has no effect,
|
|
16811
|
+
// because the outer cache scope creates a cache boundary. This is
|
|
16812
|
+
// subtly different from reading a dynamic data source, which is
|
|
16813
|
+
// forbidden inside a cache scope.
|
|
16814
|
+
return;
|
|
16815
|
+
case 'private-cache':
|
|
16816
|
+
// A private cache scope is already dynamic by definition.
|
|
16817
|
+
return;
|
|
16666
16818
|
}
|
|
16667
16819
|
}
|
|
16668
16820
|
// If we're forcing dynamic rendering or we're forcing static rendering, we
|
|
@@ -16677,29 +16829,29 @@ function requireDynamicRendering () {
|
|
|
16677
16829
|
});
|
|
16678
16830
|
}
|
|
16679
16831
|
if (workUnitStore) {
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16832
|
+
switch(workUnitStore.type){
|
|
16833
|
+
case 'prerender-ppr':
|
|
16834
|
+
return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
16835
|
+
case 'prerender-legacy':
|
|
16836
|
+
workUnitStore.revalidate = 0;
|
|
16837
|
+
// We aren't prerendering, but we are generating a static page. We need
|
|
16838
|
+
// to bail out of static generation.
|
|
16839
|
+
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
16840
|
+
value: "E550",
|
|
16841
|
+
enumerable: false,
|
|
16842
|
+
configurable: true
|
|
16843
|
+
});
|
|
16844
|
+
store.dynamicUsageDescription = expression;
|
|
16845
|
+
store.dynamicUsageStack = err.stack;
|
|
16846
|
+
throw err;
|
|
16847
|
+
case 'request':
|
|
16848
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
16849
|
+
workUnitStore.usedDynamic = true;
|
|
16850
|
+
}
|
|
16851
|
+
break;
|
|
16695
16852
|
}
|
|
16696
16853
|
}
|
|
16697
16854
|
}
|
|
16698
|
-
function trackFallbackParamAccessed(store, expression) {
|
|
16699
|
-
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
16700
|
-
if (!prerenderStore || prerenderStore.type !== 'prerender-ppr') return;
|
|
16701
|
-
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
16702
|
-
}
|
|
16703
16855
|
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
16704
16856
|
// We aren't prerendering but we are generating a static page. We need to bail out of static generation
|
|
16705
16857
|
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
@@ -16712,25 +16864,31 @@ function requireDynamicRendering () {
|
|
|
16712
16864
|
store.dynamicUsageStack = err.stack;
|
|
16713
16865
|
throw err;
|
|
16714
16866
|
}
|
|
16715
|
-
function trackDynamicDataInDynamicRender(
|
|
16716
|
-
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
//
|
|
16867
|
+
function trackDynamicDataInDynamicRender(workUnitStore) {
|
|
16868
|
+
switch(workUnitStore.type){
|
|
16869
|
+
case 'cache':
|
|
16870
|
+
case 'unstable-cache':
|
|
16871
|
+
// Inside cache scopes, marking a scope as dynamic has no effect,
|
|
16872
|
+
// because the outer cache scope creates a cache boundary. This is
|
|
16873
|
+
// subtly different from reading a dynamic data source, which is
|
|
16720
16874
|
// forbidden inside a cache scope.
|
|
16721
16875
|
return;
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16876
|
+
case 'private-cache':
|
|
16877
|
+
// A private cache scope is already dynamic by definition.
|
|
16878
|
+
return;
|
|
16879
|
+
case 'prerender':
|
|
16880
|
+
case 'prerender-runtime':
|
|
16881
|
+
case 'prerender-legacy':
|
|
16882
|
+
case 'prerender-ppr':
|
|
16883
|
+
case 'prerender-client':
|
|
16884
|
+
break;
|
|
16885
|
+
case 'request':
|
|
16886
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
16887
|
+
workUnitStore.usedDynamic = true;
|
|
16888
|
+
}
|
|
16889
|
+
break;
|
|
16729
16890
|
}
|
|
16730
16891
|
}
|
|
16731
|
-
// Despite it's name we don't actually abort unless we have a controller to call abort on
|
|
16732
|
-
// There are times when we let a prerender run long to discover caches where we want the semantics
|
|
16733
|
-
// of tracking dynamic access without terminating the prerender early
|
|
16734
16892
|
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
16735
16893
|
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
16736
16894
|
const error = createPrerenderInterruptedError(reason);
|
|
@@ -16747,13 +16905,16 @@ function requireDynamicRendering () {
|
|
|
16747
16905
|
}
|
|
16748
16906
|
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
16749
16907
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
16908
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16909
|
+
// It is important that we set this tracking value after aborting. Aborts are executed
|
|
16910
|
+
// synchronously except for the case where you abort during render itself. By setting this
|
|
16911
|
+
// value late we can use it to determine if any of the aborted tasks are the task that
|
|
16912
|
+
// called the sync IO expression in the first place.
|
|
16750
16913
|
if (dynamicTracking) {
|
|
16751
16914
|
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
16752
|
-
dynamicTracking.syncDynamicExpression = expression;
|
|
16753
16915
|
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
16754
16916
|
}
|
|
16755
16917
|
}
|
|
16756
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16757
16918
|
}
|
|
16758
16919
|
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
16759
16920
|
// We don't actually have a controller to abort but we do the semantic equivalent by
|
|
@@ -16768,22 +16929,27 @@ function requireDynamicRendering () {
|
|
|
16768
16929
|
// since we need the throw semantics regardless of whether we abort it is easier to land
|
|
16769
16930
|
// this way. See how this was handled with `abortOnSynchronousPlatformIOAccess` for a closer
|
|
16770
16931
|
// to ideal implementation
|
|
16932
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16933
|
+
// It is important that we set this tracking value after aborting. Aborts are executed
|
|
16934
|
+
// synchronously except for the case where you abort during render itself. By setting this
|
|
16935
|
+
// value late we can use it to determine if any of the aborted tasks are the task that
|
|
16936
|
+
// called the sync IO expression in the first place.
|
|
16771
16937
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
16772
16938
|
if (dynamicTracking) {
|
|
16773
16939
|
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
16774
|
-
dynamicTracking.syncDynamicExpression = expression;
|
|
16775
16940
|
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
16776
|
-
if (prerenderStore.validating === true) {
|
|
16777
|
-
// We always log Request Access in dev at the point of calling the function
|
|
16778
|
-
// So we mark the dynamic validation as not requiring it to be printed
|
|
16779
|
-
dynamicTracking.syncDynamicLogged = true;
|
|
16780
|
-
}
|
|
16781
16941
|
}
|
|
16782
16942
|
}
|
|
16783
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16784
16943
|
}
|
|
16785
16944
|
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
16786
16945
|
}
|
|
16946
|
+
function warnOnSyncDynamicError(dynamicTracking) {
|
|
16947
|
+
if (dynamicTracking.syncDynamicErrorWithStack) {
|
|
16948
|
+
// the server did something sync dynamic, likely
|
|
16949
|
+
// leading to an early termination of the prerender.
|
|
16950
|
+
console.error(dynamicTracking.syncDynamicErrorWithStack);
|
|
16951
|
+
}
|
|
16952
|
+
}
|
|
16787
16953
|
const trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
16788
16954
|
function Postpone({ reason, route }) {
|
|
16789
16955
|
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
@@ -16876,35 +17042,57 @@ function requireDynamicRendering () {
|
|
|
16876
17042
|
});
|
|
16877
17043
|
}
|
|
16878
17044
|
}
|
|
16879
|
-
function
|
|
16880
|
-
assertPostpone();
|
|
17045
|
+
function createRenderInBrowserAbortSignal() {
|
|
16881
17046
|
const controller = new AbortController();
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
}
|
|
17047
|
+
controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError('Render in Browser'), "__NEXT_ERROR_CODE", {
|
|
17048
|
+
value: "E721",
|
|
17049
|
+
enumerable: false,
|
|
17050
|
+
configurable: true
|
|
17051
|
+
}));
|
|
16888
17052
|
return controller.signal;
|
|
16889
17053
|
}
|
|
16890
17054
|
function createHangingInputAbortSignal(workUnitStore) {
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
17055
|
+
switch(workUnitStore.type){
|
|
17056
|
+
case 'prerender':
|
|
17057
|
+
case 'prerender-runtime':
|
|
17058
|
+
const controller = new AbortController();
|
|
17059
|
+
if (workUnitStore.cacheSignal) {
|
|
17060
|
+
// If we have a cacheSignal it means we're in a prospective render. If
|
|
17061
|
+
// the input we're waiting on is coming from another cache, we do want
|
|
17062
|
+
// to wait for it so that we can resolve this cache entry too.
|
|
17063
|
+
workUnitStore.cacheSignal.inputReady().then(()=>{
|
|
17064
|
+
controller.abort();
|
|
17065
|
+
});
|
|
17066
|
+
} else {
|
|
17067
|
+
// Otherwise we're in the final render and we should already have all
|
|
17068
|
+
// our caches filled.
|
|
17069
|
+
// If the prerender uses stages, we have wait until the runtime stage,
|
|
17070
|
+
// at which point all runtime inputs will be resolved.
|
|
17071
|
+
// (otherwise, a runtime prerender might consider `cookies()` hanging
|
|
17072
|
+
// even though they'd resolve in the next task.)
|
|
17073
|
+
//
|
|
17074
|
+
// We might still be waiting on some microtasks so we
|
|
17075
|
+
// wait one tick before giving up. When we give up, we still want to
|
|
17076
|
+
// render the content of this cache as deeply as we can so that we can
|
|
17077
|
+
// suspend as deeply as possible in the tree or not at all if we don't
|
|
17078
|
+
// end up waiting for the input.
|
|
17079
|
+
const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
|
|
17080
|
+
if (runtimeStagePromise) {
|
|
17081
|
+
runtimeStagePromise.then(()=>(0, _scheduler.scheduleOnNextTick)(()=>controller.abort()));
|
|
17082
|
+
} else {
|
|
17083
|
+
(0, _scheduler.scheduleOnNextTick)(()=>controller.abort());
|
|
17084
|
+
}
|
|
17085
|
+
}
|
|
17086
|
+
return controller.signal;
|
|
17087
|
+
case 'prerender-client':
|
|
17088
|
+
case 'prerender-ppr':
|
|
17089
|
+
case 'prerender-legacy':
|
|
17090
|
+
case 'request':
|
|
17091
|
+
case 'cache':
|
|
17092
|
+
case 'private-cache':
|
|
17093
|
+
case 'unstable-cache':
|
|
17094
|
+
return undefined;
|
|
16906
17095
|
}
|
|
16907
|
-
return controller.signal;
|
|
16908
17096
|
}
|
|
16909
17097
|
function annotateDynamicAccess(expression, prerenderStore) {
|
|
16910
17098
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
@@ -16917,31 +17105,65 @@ function requireDynamicRendering () {
|
|
|
16917
17105
|
}
|
|
16918
17106
|
function useDynamicRouteParams(expression) {
|
|
16919
17107
|
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
|
|
17108
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
17109
|
+
if (workStore && workUnitStore) {
|
|
17110
|
+
switch(workUnitStore.type){
|
|
17111
|
+
case 'prerender-client':
|
|
17112
|
+
case 'prerender':
|
|
17113
|
+
{
|
|
17114
|
+
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
17115
|
+
if (fallbackParams && fallbackParams.size > 0) {
|
|
17116
|
+
// We are in a prerender with cacheComponents semantics. We are going to
|
|
17117
|
+
// hang here and never resolve. This will cause the currently
|
|
17118
|
+
// rendering component to effectively be a dynamic hole.
|
|
17119
|
+
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
17120
|
+
}
|
|
17121
|
+
break;
|
|
17122
|
+
}
|
|
17123
|
+
case 'prerender-ppr':
|
|
17124
|
+
{
|
|
17125
|
+
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
17126
|
+
if (fallbackParams && fallbackParams.size > 0) {
|
|
17127
|
+
return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
17128
|
+
}
|
|
17129
|
+
break;
|
|
17130
|
+
}
|
|
17131
|
+
case 'prerender-runtime':
|
|
17132
|
+
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
17133
|
+
value: "E771",
|
|
17134
|
+
enumerable: false,
|
|
17135
|
+
configurable: true
|
|
17136
|
+
});
|
|
17137
|
+
case 'cache':
|
|
17138
|
+
case 'private-cache':
|
|
17139
|
+
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
17140
|
+
value: "E745",
|
|
17141
|
+
enumerable: false,
|
|
17142
|
+
configurable: true
|
|
17143
|
+
});
|
|
16937
17144
|
}
|
|
16938
17145
|
}
|
|
16939
17146
|
}
|
|
16940
17147
|
const hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
16941
|
-
|
|
16942
|
-
const
|
|
16943
|
-
|
|
16944
|
-
|
|
17148
|
+
// Common implicit body tags that React will treat as body when placed directly in html
|
|
17149
|
+
const bodyAndImplicitTags = 'body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6';
|
|
17150
|
+
// Detects when RootLayoutBoundary (our framework marker component) appears
|
|
17151
|
+
// after Suspense in the component stack, indicating the root layout is wrapped
|
|
17152
|
+
// within a Suspense boundary. Ensures no body/html/implicit-body components are in between.
|
|
17153
|
+
//
|
|
17154
|
+
// Example matches:
|
|
17155
|
+
// at Suspense (<anonymous>)
|
|
17156
|
+
// at __next_root_layout_boundary__ (<anonymous>)
|
|
17157
|
+
//
|
|
17158
|
+
// Or with other components in between (but not body/html/implicit-body):
|
|
17159
|
+
// at Suspense (<anonymous>)
|
|
17160
|
+
// at SomeComponent (<anonymous>)
|
|
17161
|
+
// at __next_root_layout_boundary__ (<anonymous>)
|
|
17162
|
+
const hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${bodyAndImplicitTags}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`);
|
|
17163
|
+
const hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
17164
|
+
const hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
17165
|
+
const hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
17166
|
+
function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
16945
17167
|
if (hasOutletRegex.test(componentStack)) {
|
|
16946
17168
|
// We don't need to track that this is dynamic. It is only so when something else is also dynamic.
|
|
16947
17169
|
return;
|
|
@@ -16951,93 +17173,113 @@ function requireDynamicRendering () {
|
|
|
16951
17173
|
} else if (hasViewportRegex.test(componentStack)) {
|
|
16952
17174
|
dynamicValidation.hasDynamicViewport = true;
|
|
16953
17175
|
return;
|
|
17176
|
+
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
17177
|
+
// For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
|
|
17178
|
+
// But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
|
|
17179
|
+
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
|
|
17180
|
+
dynamicValidation.hasAllowedDynamic = true;
|
|
17181
|
+
dynamicValidation.hasSuspenseAboveBody = true;
|
|
17182
|
+
return;
|
|
16954
17183
|
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
16955
|
-
|
|
17184
|
+
// this error had a Suspense boundary above it so we don't need to report it as a source
|
|
17185
|
+
// of disallowed
|
|
17186
|
+
dynamicValidation.hasAllowedDynamic = true;
|
|
16956
17187
|
return;
|
|
16957
|
-
} else if (
|
|
16958
|
-
|
|
17188
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
17189
|
+
// This task was the task that called the sync error.
|
|
17190
|
+
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
16959
17191
|
return;
|
|
16960
17192
|
} else {
|
|
16961
|
-
const message = `Route "${route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it.
|
|
16962
|
-
const error =
|
|
17193
|
+
const message = `Route "${workStore.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`;
|
|
17194
|
+
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
16963
17195
|
dynamicValidation.dynamicErrors.push(error);
|
|
16964
17196
|
return;
|
|
16965
17197
|
}
|
|
16966
17198
|
}
|
|
16967
|
-
|
|
17199
|
+
/**
|
|
17200
|
+
* In dev mode, we prefer using the owner stack, otherwise the provided
|
|
17201
|
+
* component stack is used.
|
|
17202
|
+
*/ function createErrorWithComponentOrOwnerStack(message, componentStack) {
|
|
17203
|
+
const ownerStack = process.env.NODE_ENV !== 'production' && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
|
|
16968
17204
|
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
16969
17205
|
value: "E394",
|
|
16970
17206
|
enumerable: false,
|
|
16971
17207
|
configurable: true
|
|
16972
17208
|
});
|
|
16973
|
-
error.stack = '
|
|
17209
|
+
error.stack = error.name + ': ' + message + (ownerStack ?? componentStack);
|
|
16974
17210
|
return error;
|
|
16975
17211
|
}
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
syncLogged = false;
|
|
16992
|
-
}
|
|
16993
|
-
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
16994
|
-
if (!syncLogged) {
|
|
16995
|
-
// In dev we already log errors about sync dynamic access. But during builds we need to ensure
|
|
16996
|
-
// the offending sync error is logged before we exit the build
|
|
16997
|
-
console.error(syncError);
|
|
17212
|
+
var PreludeState = /*#__PURE__*/ function(PreludeState) {
|
|
17213
|
+
PreludeState[PreludeState["Full"] = 0] = "Full";
|
|
17214
|
+
PreludeState[PreludeState["Empty"] = 1] = "Empty";
|
|
17215
|
+
PreludeState[PreludeState["Errored"] = 2] = "Errored";
|
|
17216
|
+
return PreludeState;
|
|
17217
|
+
}({});
|
|
17218
|
+
function logDisallowedDynamicError(workStore, error) {
|
|
17219
|
+
console.error(error);
|
|
17220
|
+
if (!workStore.dev) {
|
|
17221
|
+
if (workStore.hasReadableErrorStacks) {
|
|
17222
|
+
console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
|
|
17223
|
+
} else {
|
|
17224
|
+
console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
17225
|
+
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
|
|
17226
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
|
|
16998
17227
|
}
|
|
16999
|
-
// The actual error should have been logged when the sync access ocurred
|
|
17000
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17001
17228
|
}
|
|
17002
|
-
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17229
|
+
}
|
|
17230
|
+
function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
|
|
17231
|
+
if (prelude !== 0) {
|
|
17232
|
+
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
17233
|
+
// This route has opted into allowing fully dynamic rendering
|
|
17234
|
+
// by including a Suspense boundary above the body. In this case
|
|
17235
|
+
// a lack of a shell is not considered disallowed so we simply return
|
|
17236
|
+
return;
|
|
17006
17237
|
}
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17013
|
-
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
enumerable: false,
|
|
17022
|
-
configurable: true
|
|
17023
|
-
});
|
|
17024
|
-
} else if (dynamicValidation.hasDynamicViewport) {
|
|
17025
|
-
if (syncError) {
|
|
17026
|
-
console.error(syncError);
|
|
17027
|
-
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route "${route}" has a \`generateViewport\` that could not finish rendering before ${syncExpression} was used. Follow the instructions in the error for this expression to resolve.`), "__NEXT_ERROR_CODE", {
|
|
17028
|
-
value: "E573",
|
|
17029
|
-
enumerable: false,
|
|
17030
|
-
configurable: true
|
|
17031
|
-
});
|
|
17238
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
17239
|
+
// There is no shell and the server did something sync dynamic likely
|
|
17240
|
+
// leading to an early termination of the prerender before the shell
|
|
17241
|
+
// could be completed. We terminate the build/validating render.
|
|
17242
|
+
logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
|
|
17243
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17244
|
+
}
|
|
17245
|
+
// We didn't have any sync bailouts but there may be user code which
|
|
17246
|
+
// blocked the root. We would have captured these during the prerender
|
|
17247
|
+
// and can log them here and then terminate the build/validating render
|
|
17248
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
17249
|
+
if (dynamicErrors.length > 0) {
|
|
17250
|
+
for(let i = 0; i < dynamicErrors.length; i++){
|
|
17251
|
+
logDisallowedDynamicError(workStore, dynamicErrors[i]);
|
|
17032
17252
|
}
|
|
17033
|
-
throw
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17253
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17254
|
+
}
|
|
17255
|
+
// If we got this far then the only other thing that could be blocking
|
|
17256
|
+
// the root is dynamic Viewport. If this is dynamic then
|
|
17257
|
+
// you need to opt into that by adding a Suspense boundary above the body
|
|
17258
|
+
// to indicate your are ok with fully dynamic rendering.
|
|
17259
|
+
if (dynamicValidation.hasDynamicViewport) {
|
|
17260
|
+
console.error(`Route "${workStore.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`);
|
|
17261
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17262
|
+
}
|
|
17263
|
+
if (prelude === 1) {
|
|
17264
|
+
// If we ever get this far then we messed up the tracking of invalid dynamic.
|
|
17265
|
+
// We still adhere to the constraint that you must produce a shell but invite the
|
|
17266
|
+
// user to report this as a bug in Next.js.
|
|
17267
|
+
console.error(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`);
|
|
17268
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17269
|
+
}
|
|
17270
|
+
} else {
|
|
17271
|
+
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
|
|
17272
|
+
console.error(`Route "${workStore.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`);
|
|
17273
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17038
17274
|
}
|
|
17039
17275
|
}
|
|
17040
17276
|
}
|
|
17277
|
+
function delayUntilRuntimeStage(prerenderStore, result) {
|
|
17278
|
+
if (prerenderStore.runtimeStagePromise) {
|
|
17279
|
+
return prerenderStore.runtimeStagePromise.then(()=>result);
|
|
17280
|
+
}
|
|
17281
|
+
return result;
|
|
17282
|
+
}
|
|
17041
17283
|
|
|
17042
17284
|
|
|
17043
17285
|
} (dynamicRendering));
|
|
@@ -17199,6 +17441,9 @@ function requireNavigation_reactServer () {
|
|
|
17199
17441
|
unauthorized: function() {
|
|
17200
17442
|
return _unauthorized.unauthorized;
|
|
17201
17443
|
},
|
|
17444
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17445
|
+
return unstable_isUnrecognizedActionError;
|
|
17446
|
+
},
|
|
17202
17447
|
unstable_rethrow: function() {
|
|
17203
17448
|
return _unstablerethrow.unstable_rethrow;
|
|
17204
17449
|
}
|
|
@@ -17228,6 +17473,13 @@ function requireNavigation_reactServer () {
|
|
|
17228
17473
|
throw new ReadonlyURLSearchParamsError();
|
|
17229
17474
|
}
|
|
17230
17475
|
}
|
|
17476
|
+
function unstable_isUnrecognizedActionError() {
|
|
17477
|
+
throw Object.defineProperty(new Error('`unstable_isUnrecognizedActionError` can only be used on the client.'), "__NEXT_ERROR_CODE", {
|
|
17478
|
+
value: "E776",
|
|
17479
|
+
enumerable: false,
|
|
17480
|
+
configurable: true
|
|
17481
|
+
});
|
|
17482
|
+
}
|
|
17231
17483
|
|
|
17232
17484
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
17233
17485
|
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
@@ -17329,6 +17581,52 @@ function requireServerInsertedHtml_sharedRuntime () {
|
|
|
17329
17581
|
return serverInsertedHtml_sharedRuntime;
|
|
17330
17582
|
}
|
|
17331
17583
|
|
|
17584
|
+
var unrecognizedActionError = {exports: {}};
|
|
17585
|
+
|
|
17586
|
+
var hasRequiredUnrecognizedActionError;
|
|
17587
|
+
|
|
17588
|
+
function requireUnrecognizedActionError () {
|
|
17589
|
+
if (hasRequiredUnrecognizedActionError) return unrecognizedActionError.exports;
|
|
17590
|
+
hasRequiredUnrecognizedActionError = 1;
|
|
17591
|
+
(function (module, exports$1) {
|
|
17592
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
17593
|
+
value: true
|
|
17594
|
+
});
|
|
17595
|
+
function _export(target, all) {
|
|
17596
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
17597
|
+
enumerable: true,
|
|
17598
|
+
get: all[name]
|
|
17599
|
+
});
|
|
17600
|
+
}
|
|
17601
|
+
_export(exports$1, {
|
|
17602
|
+
UnrecognizedActionError: function() {
|
|
17603
|
+
return UnrecognizedActionError;
|
|
17604
|
+
},
|
|
17605
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17606
|
+
return unstable_isUnrecognizedActionError;
|
|
17607
|
+
}
|
|
17608
|
+
});
|
|
17609
|
+
class UnrecognizedActionError extends Error {
|
|
17610
|
+
constructor(...args){
|
|
17611
|
+
super(...args);
|
|
17612
|
+
this.name = 'UnrecognizedActionError';
|
|
17613
|
+
}
|
|
17614
|
+
}
|
|
17615
|
+
function unstable_isUnrecognizedActionError(error) {
|
|
17616
|
+
return !!(error && typeof error === 'object' && error instanceof UnrecognizedActionError);
|
|
17617
|
+
}
|
|
17618
|
+
|
|
17619
|
+
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
17620
|
+
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
17621
|
+
Object.assign(exports$1.default, exports$1);
|
|
17622
|
+
module.exports = exports$1.default;
|
|
17623
|
+
}
|
|
17624
|
+
|
|
17625
|
+
|
|
17626
|
+
} (unrecognizedActionError, unrecognizedActionError.exports));
|
|
17627
|
+
return unrecognizedActionError.exports;
|
|
17628
|
+
}
|
|
17629
|
+
|
|
17332
17630
|
var bailoutToClientRendering = {exports: {}};
|
|
17333
17631
|
|
|
17334
17632
|
var hasRequiredBailoutToClientRendering;
|
|
@@ -17348,14 +17646,25 @@ function requireBailoutToClientRendering () {
|
|
|
17348
17646
|
});
|
|
17349
17647
|
const _bailouttocsr = requireBailoutToCsr();
|
|
17350
17648
|
const _workasyncstorageexternal = requireWorkAsyncStorage_external();
|
|
17649
|
+
const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
|
|
17351
17650
|
function bailoutToClientRendering(reason) {
|
|
17352
17651
|
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
17353
17652
|
if (workStore == null ? void 0 : workStore.forceStatic) return;
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17653
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
17654
|
+
if (workUnitStore) {
|
|
17655
|
+
switch(workUnitStore.type){
|
|
17656
|
+
case 'prerender':
|
|
17657
|
+
case 'prerender-runtime':
|
|
17658
|
+
case 'prerender-client':
|
|
17659
|
+
case 'prerender-ppr':
|
|
17660
|
+
case 'prerender-legacy':
|
|
17661
|
+
throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(reason), "__NEXT_ERROR_CODE", {
|
|
17662
|
+
value: "E394",
|
|
17663
|
+
enumerable: false,
|
|
17664
|
+
configurable: true
|
|
17665
|
+
});
|
|
17666
|
+
}
|
|
17667
|
+
}
|
|
17359
17668
|
}
|
|
17360
17669
|
|
|
17361
17670
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
@@ -17409,6 +17718,9 @@ function requireNavigation$1 () {
|
|
|
17409
17718
|
unauthorized: function() {
|
|
17410
17719
|
return _navigationreactserver.unauthorized;
|
|
17411
17720
|
},
|
|
17721
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17722
|
+
return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
|
|
17723
|
+
},
|
|
17412
17724
|
unstable_rethrow: function() {
|
|
17413
17725
|
return _navigationreactserver.unstable_rethrow;
|
|
17414
17726
|
},
|
|
@@ -17441,6 +17753,7 @@ function requireNavigation$1 () {
|
|
|
17441
17753
|
const _segment = requireSegment();
|
|
17442
17754
|
const _navigationreactserver = requireNavigation_reactServer();
|
|
17443
17755
|
const _serverinsertedhtmlsharedruntime = requireServerInsertedHtml_sharedRuntime();
|
|
17756
|
+
const _unrecognizedactionerror = requireUnrecognizedActionError();
|
|
17444
17757
|
const useDynamicRouteParams = typeof window === 'undefined' ? requireDynamicRendering().useDynamicRouteParams : undefined;
|
|
17445
17758
|
function useSearchParams() {
|
|
17446
17759
|
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|