@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.esm.js
CHANGED
|
@@ -1099,6 +1099,13 @@ const MENTOR_AI_CONFIG = {
|
|
|
1099
1099
|
description: "Allow users to report inappropriate content.",
|
|
1100
1100
|
type: "boolean",
|
|
1101
1101
|
},
|
|
1102
|
+
{
|
|
1103
|
+
slug: "enable_chat_history_export",
|
|
1104
|
+
label: "Chat History Export",
|
|
1105
|
+
defaultValue: true,
|
|
1106
|
+
description: "Allow users to export their chat history. When off, the export option is hidden from users.",
|
|
1107
|
+
type: "boolean",
|
|
1108
|
+
},
|
|
1102
1109
|
{
|
|
1103
1110
|
slug: "help_center_url",
|
|
1104
1111
|
label: "Help Center URL",
|
|
@@ -10387,7 +10394,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10387
10394
|
* Returns the mentor object if found, undefined otherwise
|
|
10388
10395
|
*/
|
|
10389
10396
|
async function determineMentorToRedirectTo() {
|
|
10390
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
10397
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
10391
10398
|
setIsLoading(true);
|
|
10392
10399
|
try {
|
|
10393
10400
|
// Get the user's recent mentors
|
|
@@ -10422,9 +10429,9 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10422
10429
|
console.log("[determineMentorToRedirectTo] starredMentors ", starredMentors);
|
|
10423
10430
|
if (starredMentors && starredMentors.length > 0) {
|
|
10424
10431
|
const starredMentor = starredMentors[0];
|
|
10425
|
-
|
|
10426
|
-
if (
|
|
10427
|
-
return starredMentor;
|
|
10432
|
+
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;
|
|
10433
|
+
if (uniqueId) {
|
|
10434
|
+
return { ...starredMentor, unique_id: uniqueId };
|
|
10428
10435
|
}
|
|
10429
10436
|
}
|
|
10430
10437
|
console.log("[determineMentorToRedirectTo] recentMentors ", recentMentors);
|
|
@@ -10441,12 +10448,12 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10441
10448
|
orderBy: "recently_accessed_at",
|
|
10442
10449
|
});
|
|
10443
10450
|
console.log("[determineMentorToRedirectTo] recentMentorsResult ", recentMentorsResult);
|
|
10444
|
-
recentMentors = ((
|
|
10451
|
+
recentMentors = ((_b = recentMentorsResult.data) === null || _b === void 0 ? void 0 : _b.results) || [];
|
|
10445
10452
|
// Check if we found recent mentors for the tenant
|
|
10446
10453
|
if (recentMentors.length > 0) {
|
|
10447
10454
|
console.log("found recent mentor", JSON.stringify({
|
|
10448
|
-
selectedMentorId: (
|
|
10449
|
-
mentorName: (
|
|
10455
|
+
selectedMentorId: (_c = recentMentors[0]) === null || _c === void 0 ? void 0 : _c.unique_id,
|
|
10456
|
+
mentorName: (_d = recentMentors[0]) === null || _d === void 0 ? void 0 : _d.name,
|
|
10450
10457
|
tenantKey,
|
|
10451
10458
|
}));
|
|
10452
10459
|
return recentMentors[0];
|
|
@@ -10462,7 +10469,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10462
10469
|
limit: QUERY_LIMIT,
|
|
10463
10470
|
orderBy: "recently_accessed_at",
|
|
10464
10471
|
});
|
|
10465
|
-
const featuredMentors = ((
|
|
10472
|
+
const featuredMentors = ((_e = featuredMentorsResult.data) === null || _e === void 0 ? void 0 : _e.results) || [];
|
|
10466
10473
|
console.log("featured mentors fetched", {
|
|
10467
10474
|
count: featuredMentors.length,
|
|
10468
10475
|
mentorIds: featuredMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
@@ -10506,8 +10513,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10506
10513
|
}
|
|
10507
10514
|
// If no default mentor, select the first featured mentor
|
|
10508
10515
|
console.log("found first featured mentor", {
|
|
10509
|
-
mentorId: (
|
|
10510
|
-
mentorName: (
|
|
10516
|
+
mentorId: (_f = featuredMentors[0]) === null || _f === void 0 ? void 0 : _f.unique_id,
|
|
10517
|
+
mentorName: (_g = featuredMentors[0]) === null || _g === void 0 ? void 0 : _g.name,
|
|
10511
10518
|
});
|
|
10512
10519
|
return featuredMentors[0];
|
|
10513
10520
|
}
|
|
@@ -10522,7 +10529,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10522
10529
|
limit: QUERY_LIMIT,
|
|
10523
10530
|
orderBy: "recently_accessed_at",
|
|
10524
10531
|
});
|
|
10525
|
-
const nonFeaturedMentors = ((
|
|
10532
|
+
const nonFeaturedMentors = ((_h = nonFeaturedMentorsResult.data) === null || _h === void 0 ? void 0 : _h.results) || [];
|
|
10526
10533
|
console.log("non-featured mentors fetched", {
|
|
10527
10534
|
count: nonFeaturedMentors.length,
|
|
10528
10535
|
mentorIds: nonFeaturedMentors.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
@@ -10530,8 +10537,8 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10530
10537
|
// Check if we found non-featured mentors
|
|
10531
10538
|
if (nonFeaturedMentors.length > 0) {
|
|
10532
10539
|
console.log("found first non-featured mentor", {
|
|
10533
|
-
mentorId: (
|
|
10534
|
-
mentorName: (
|
|
10540
|
+
mentorId: (_j = nonFeaturedMentors[0]) === null || _j === void 0 ? void 0 : _j.unique_id,
|
|
10541
|
+
mentorName: (_k = nonFeaturedMentors[0]) === null || _k === void 0 ? void 0 : _k.name,
|
|
10535
10542
|
});
|
|
10536
10543
|
return nonFeaturedMentors[0];
|
|
10537
10544
|
}
|
|
@@ -10552,7 +10559,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10552
10559
|
// @ts-expect-error - userId is passed but not in generated API types
|
|
10553
10560
|
userId: username,
|
|
10554
10561
|
});
|
|
10555
|
-
const seededMentorsDetails = (
|
|
10562
|
+
const seededMentorsDetails = (_l = seedMentorsResult.data) === null || _l === void 0 ? void 0 : _l.detail;
|
|
10556
10563
|
console.log("mentor seeding completed", {
|
|
10557
10564
|
success: !!seededMentorsDetails,
|
|
10558
10565
|
details: seededMentorsDetails,
|
|
@@ -10566,15 +10573,15 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
|
|
|
10566
10573
|
username,
|
|
10567
10574
|
limit: QUERY_LIMIT,
|
|
10568
10575
|
});
|
|
10569
|
-
const featuredMentorsAfterSeed = ((
|
|
10576
|
+
const featuredMentorsAfterSeed = ((_m = featuredMentorsAfterSeedResult.data) === null || _m === void 0 ? void 0 : _m.results) || [];
|
|
10570
10577
|
console.log("featured mentors after seeding", {
|
|
10571
10578
|
count: featuredMentorsAfterSeed.length,
|
|
10572
10579
|
mentorIds: featuredMentorsAfterSeed.map((m) => m === null || m === void 0 ? void 0 : m.unique_id),
|
|
10573
10580
|
});
|
|
10574
10581
|
if (featuredMentorsAfterSeed.length > 0) {
|
|
10575
10582
|
console.log("found seeded mentor", {
|
|
10576
|
-
mentorId: (
|
|
10577
|
-
mentorName: (
|
|
10583
|
+
mentorId: (_o = featuredMentorsAfterSeed[0]) === null || _o === void 0 ? void 0 : _o.unique_id,
|
|
10584
|
+
mentorName: (_p = featuredMentorsAfterSeed[0]) === null || _p === void 0 ? void 0 : _p.name,
|
|
10578
10585
|
});
|
|
10579
10586
|
return featuredMentorsAfterSeed[0];
|
|
10580
10587
|
}
|
|
@@ -15825,6 +15832,9 @@ function requireDynamicRenderingUtils () {
|
|
|
15825
15832
|
isHangingPromiseRejectionError: function() {
|
|
15826
15833
|
return isHangingPromiseRejectionError;
|
|
15827
15834
|
},
|
|
15835
|
+
makeDevtoolsIOAwarePromise: function() {
|
|
15836
|
+
return makeDevtoolsIOAwarePromise;
|
|
15837
|
+
},
|
|
15828
15838
|
makeHangingPromise: function() {
|
|
15829
15839
|
return makeHangingPromise;
|
|
15830
15840
|
}
|
|
@@ -15837,17 +15847,17 @@ function requireDynamicRenderingUtils () {
|
|
|
15837
15847
|
}
|
|
15838
15848
|
const HANGING_PROMISE_REJECTION = 'HANGING_PROMISE_REJECTION';
|
|
15839
15849
|
class HangingPromiseRejectionError extends Error {
|
|
15840
|
-
constructor(expression){
|
|
15841
|
-
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;
|
|
15850
|
+
constructor(route, expression){
|
|
15851
|
+
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;
|
|
15842
15852
|
}
|
|
15843
15853
|
}
|
|
15844
15854
|
const abortListenersBySignal = new WeakMap();
|
|
15845
|
-
function makeHangingPromise(signal, expression) {
|
|
15855
|
+
function makeHangingPromise(signal, route, expression) {
|
|
15846
15856
|
if (signal.aborted) {
|
|
15847
|
-
return Promise.reject(new HangingPromiseRejectionError(expression));
|
|
15857
|
+
return Promise.reject(new HangingPromiseRejectionError(route, expression));
|
|
15848
15858
|
} else {
|
|
15849
15859
|
const hangingPromise = new Promise((_, reject)=>{
|
|
15850
|
-
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(expression));
|
|
15860
|
+
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
|
|
15851
15861
|
let currentListeners = abortListenersBySignal.get(signal);
|
|
15852
15862
|
if (currentListeners) {
|
|
15853
15863
|
currentListeners.push(boundRejection);
|
|
@@ -15873,6 +15883,16 @@ function requireDynamicRenderingUtils () {
|
|
|
15873
15883
|
}
|
|
15874
15884
|
}
|
|
15875
15885
|
function ignoreReject() {}
|
|
15886
|
+
function makeDevtoolsIOAwarePromise(underlying) {
|
|
15887
|
+
// in React DevTools if we resolve in a setTimeout we will observe
|
|
15888
|
+
// the promise resolution as something that can suspend a boundary or root.
|
|
15889
|
+
return new Promise((resolve)=>{
|
|
15890
|
+
// Must use setTimeout to be considered IO React DevTools. setImmediate will not work.
|
|
15891
|
+
setTimeout(()=>{
|
|
15892
|
+
resolve(underlying);
|
|
15893
|
+
}, 0);
|
|
15894
|
+
});
|
|
15895
|
+
}
|
|
15876
15896
|
|
|
15877
15897
|
|
|
15878
15898
|
} (dynamicRenderingUtils));
|
|
@@ -16134,6 +16154,9 @@ function requireAppRouterHeaders () {
|
|
|
16134
16154
|
FLIGHT_HEADERS: function() {
|
|
16135
16155
|
return FLIGHT_HEADERS;
|
|
16136
16156
|
},
|
|
16157
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
16158
|
+
return NEXT_ACTION_NOT_FOUND_HEADER;
|
|
16159
|
+
},
|
|
16137
16160
|
NEXT_DID_POSTPONE_HEADER: function() {
|
|
16138
16161
|
return NEXT_DID_POSTPONE_HEADER;
|
|
16139
16162
|
},
|
|
@@ -16177,14 +16200,14 @@ function requireAppRouterHeaders () {
|
|
|
16177
16200
|
return RSC_HEADER;
|
|
16178
16201
|
}
|
|
16179
16202
|
});
|
|
16180
|
-
const RSC_HEADER = '
|
|
16181
|
-
const ACTION_HEADER = '
|
|
16182
|
-
const NEXT_ROUTER_STATE_TREE_HEADER = '
|
|
16183
|
-
const NEXT_ROUTER_PREFETCH_HEADER = '
|
|
16184
|
-
const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = '
|
|
16185
|
-
const NEXT_HMR_REFRESH_HEADER = '
|
|
16203
|
+
const RSC_HEADER = 'rsc';
|
|
16204
|
+
const ACTION_HEADER = 'next-action';
|
|
16205
|
+
const NEXT_ROUTER_STATE_TREE_HEADER = 'next-router-state-tree';
|
|
16206
|
+
const NEXT_ROUTER_PREFETCH_HEADER = 'next-router-prefetch';
|
|
16207
|
+
const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER = 'next-router-segment-prefetch';
|
|
16208
|
+
const NEXT_HMR_REFRESH_HEADER = 'next-hmr-refresh';
|
|
16186
16209
|
const NEXT_HMR_REFRESH_HASH_COOKIE = '__next_hmr_refresh_hash__';
|
|
16187
|
-
const NEXT_URL = '
|
|
16210
|
+
const NEXT_URL = 'next-url';
|
|
16188
16211
|
const RSC_CONTENT_TYPE_HEADER = 'text/x-component';
|
|
16189
16212
|
const FLIGHT_HEADERS = [
|
|
16190
16213
|
RSC_HEADER,
|
|
@@ -16199,6 +16222,7 @@ function requireAppRouterHeaders () {
|
|
|
16199
16222
|
const NEXT_REWRITTEN_PATH_HEADER = 'x-nextjs-rewritten-path';
|
|
16200
16223
|
const NEXT_REWRITTEN_QUERY_HEADER = 'x-nextjs-rewritten-query';
|
|
16201
16224
|
const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender';
|
|
16225
|
+
const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found';
|
|
16202
16226
|
|
|
16203
16227
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
16204
16228
|
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
@@ -16211,6 +16235,35 @@ function requireAppRouterHeaders () {
|
|
|
16211
16235
|
return appRouterHeaders.exports;
|
|
16212
16236
|
}
|
|
16213
16237
|
|
|
16238
|
+
var invariantError = {};
|
|
16239
|
+
|
|
16240
|
+
var hasRequiredInvariantError;
|
|
16241
|
+
|
|
16242
|
+
function requireInvariantError () {
|
|
16243
|
+
if (hasRequiredInvariantError) return invariantError;
|
|
16244
|
+
hasRequiredInvariantError = 1;
|
|
16245
|
+
(function (exports$1) {
|
|
16246
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
16247
|
+
value: true
|
|
16248
|
+
});
|
|
16249
|
+
Object.defineProperty(exports$1, "InvariantError", {
|
|
16250
|
+
enumerable: true,
|
|
16251
|
+
get: function() {
|
|
16252
|
+
return InvariantError;
|
|
16253
|
+
}
|
|
16254
|
+
});
|
|
16255
|
+
class InvariantError extends Error {
|
|
16256
|
+
constructor(message, options){
|
|
16257
|
+
super("Invariant: " + (message.endsWith('.') ? message : message + '.') + " This is a bug in Next.js.", options);
|
|
16258
|
+
this.name = 'InvariantError';
|
|
16259
|
+
}
|
|
16260
|
+
}
|
|
16261
|
+
|
|
16262
|
+
|
|
16263
|
+
} (invariantError));
|
|
16264
|
+
return invariantError;
|
|
16265
|
+
}
|
|
16266
|
+
|
|
16214
16267
|
var hasRequiredWorkUnitAsyncStorage_external;
|
|
16215
16268
|
|
|
16216
16269
|
function requireWorkUnitAsyncStorage_external () {
|
|
@@ -16227,12 +16280,12 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16227
16280
|
});
|
|
16228
16281
|
}
|
|
16229
16282
|
_export(exports$1, {
|
|
16283
|
+
getCacheSignal: function() {
|
|
16284
|
+
return getCacheSignal;
|
|
16285
|
+
},
|
|
16230
16286
|
getDraftModeProviderForCacheScope: function() {
|
|
16231
16287
|
return getDraftModeProviderForCacheScope;
|
|
16232
16288
|
},
|
|
16233
|
-
getExpectedRequestStore: function() {
|
|
16234
|
-
return getExpectedRequestStore;
|
|
16235
|
-
},
|
|
16236
16289
|
getHmrRefreshHash: function() {
|
|
16237
16290
|
return getHmrRefreshHash;
|
|
16238
16291
|
},
|
|
@@ -16242,49 +16295,28 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16242
16295
|
getRenderResumeDataCache: function() {
|
|
16243
16296
|
return getRenderResumeDataCache;
|
|
16244
16297
|
},
|
|
16298
|
+
getRuntimeStagePromise: function() {
|
|
16299
|
+
return getRuntimeStagePromise;
|
|
16300
|
+
},
|
|
16301
|
+
getServerComponentsHmrCache: function() {
|
|
16302
|
+
return getServerComponentsHmrCache;
|
|
16303
|
+
},
|
|
16304
|
+
isHmrRefresh: function() {
|
|
16305
|
+
return isHmrRefresh;
|
|
16306
|
+
},
|
|
16245
16307
|
throwForMissingRequestStore: function() {
|
|
16246
16308
|
return throwForMissingRequestStore;
|
|
16247
16309
|
},
|
|
16310
|
+
throwInvariantForMissingStore: function() {
|
|
16311
|
+
return throwInvariantForMissingStore;
|
|
16312
|
+
},
|
|
16248
16313
|
workUnitAsyncStorage: function() {
|
|
16249
16314
|
return _workunitasyncstorageinstance.workUnitAsyncStorageInstance;
|
|
16250
16315
|
}
|
|
16251
16316
|
});
|
|
16252
16317
|
const _workunitasyncstorageinstance = requireWorkUnitAsyncStorageInstance();
|
|
16253
16318
|
const _approuterheaders = requireAppRouterHeaders();
|
|
16254
|
-
|
|
16255
|
-
const workUnitStore = _workunitasyncstorageinstance.workUnitAsyncStorageInstance.getStore();
|
|
16256
|
-
if (!workUnitStore) {
|
|
16257
|
-
throwForMissingRequestStore(callingExpression);
|
|
16258
|
-
}
|
|
16259
|
-
switch(workUnitStore.type){
|
|
16260
|
-
case 'request':
|
|
16261
|
-
return workUnitStore;
|
|
16262
|
-
case 'prerender':
|
|
16263
|
-
case 'prerender-ppr':
|
|
16264
|
-
case 'prerender-legacy':
|
|
16265
|
-
// This should not happen because we should have checked it already.
|
|
16266
|
-
throw Object.defineProperty(new Error(`\`${callingExpression}\` cannot be called inside a prerender. This is a bug in Next.js.`), "__NEXT_ERROR_CODE", {
|
|
16267
|
-
value: "E401",
|
|
16268
|
-
enumerable: false,
|
|
16269
|
-
configurable: true
|
|
16270
|
-
});
|
|
16271
|
-
case 'cache':
|
|
16272
|
-
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", {
|
|
16273
|
-
value: "E37",
|
|
16274
|
-
enumerable: false,
|
|
16275
|
-
configurable: true
|
|
16276
|
-
});
|
|
16277
|
-
case 'unstable-cache':
|
|
16278
|
-
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", {
|
|
16279
|
-
value: "E69",
|
|
16280
|
-
enumerable: false,
|
|
16281
|
-
configurable: true
|
|
16282
|
-
});
|
|
16283
|
-
default:
|
|
16284
|
-
const _exhaustiveCheck = workUnitStore;
|
|
16285
|
-
return _exhaustiveCheck;
|
|
16286
|
-
}
|
|
16287
|
-
}
|
|
16319
|
+
const _invarianterror = requireInvariantError();
|
|
16288
16320
|
function throwForMissingRequestStore(callingExpression) {
|
|
16289
16321
|
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", {
|
|
16290
16322
|
value: "E251",
|
|
@@ -16292,43 +16324,143 @@ function requireWorkUnitAsyncStorage_external () {
|
|
|
16292
16324
|
configurable: true
|
|
16293
16325
|
});
|
|
16294
16326
|
}
|
|
16327
|
+
function throwInvariantForMissingStore() {
|
|
16328
|
+
throw Object.defineProperty(new _invarianterror.InvariantError('Expected workUnitAsyncStorage to have a store.'), "__NEXT_ERROR_CODE", {
|
|
16329
|
+
value: "E696",
|
|
16330
|
+
enumerable: false,
|
|
16331
|
+
configurable: true
|
|
16332
|
+
});
|
|
16333
|
+
}
|
|
16295
16334
|
function getPrerenderResumeDataCache(workUnitStore) {
|
|
16296
|
-
|
|
16297
|
-
|
|
16335
|
+
switch(workUnitStore.type){
|
|
16336
|
+
case 'prerender':
|
|
16337
|
+
case 'prerender-runtime':
|
|
16338
|
+
case 'prerender-ppr':
|
|
16339
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16340
|
+
case 'prerender-client':
|
|
16341
|
+
// TODO eliminate fetch caching in client scope and stop exposing this data
|
|
16342
|
+
// cache during SSR.
|
|
16343
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16344
|
+
case 'prerender-legacy':
|
|
16345
|
+
case 'request':
|
|
16346
|
+
case 'cache':
|
|
16347
|
+
case 'private-cache':
|
|
16348
|
+
case 'unstable-cache':
|
|
16349
|
+
return null;
|
|
16350
|
+
default:
|
|
16351
|
+
return workUnitStore;
|
|
16298
16352
|
}
|
|
16299
|
-
return null;
|
|
16300
16353
|
}
|
|
16301
16354
|
function getRenderResumeDataCache(workUnitStore) {
|
|
16302
|
-
|
|
16303
|
-
|
|
16355
|
+
switch(workUnitStore.type){
|
|
16356
|
+
case 'request':
|
|
16304
16357
|
return workUnitStore.renderResumeDataCache;
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16358
|
+
case 'prerender':
|
|
16359
|
+
case 'prerender-runtime':
|
|
16360
|
+
case 'prerender-client':
|
|
16361
|
+
if (workUnitStore.renderResumeDataCache) {
|
|
16362
|
+
// If we are in a prerender, we might have a render resume data cache
|
|
16363
|
+
// that is used to read from prefilled caches.
|
|
16364
|
+
return workUnitStore.renderResumeDataCache;
|
|
16365
|
+
}
|
|
16366
|
+
// fallthrough
|
|
16367
|
+
case 'prerender-ppr':
|
|
16368
|
+
// Otherwise we return the mutable resume data cache here as an immutable
|
|
16369
|
+
// version of the cache as it can also be used for reading.
|
|
16370
|
+
return workUnitStore.prerenderResumeDataCache;
|
|
16371
|
+
case 'cache':
|
|
16372
|
+
case 'private-cache':
|
|
16373
|
+
case 'unstable-cache':
|
|
16374
|
+
case 'prerender-legacy':
|
|
16375
|
+
return null;
|
|
16376
|
+
default:
|
|
16377
|
+
return workUnitStore;
|
|
16309
16378
|
}
|
|
16310
|
-
return null;
|
|
16311
16379
|
}
|
|
16312
16380
|
function getHmrRefreshHash(workStore, workUnitStore) {
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16381
|
+
if (workStore.dev) {
|
|
16382
|
+
switch(workUnitStore.type){
|
|
16383
|
+
case 'cache':
|
|
16384
|
+
case 'private-cache':
|
|
16385
|
+
case 'prerender':
|
|
16386
|
+
case 'prerender-runtime':
|
|
16387
|
+
return workUnitStore.hmrRefreshHash;
|
|
16388
|
+
case 'request':
|
|
16389
|
+
var _workUnitStore_cookies_get;
|
|
16390
|
+
return (_workUnitStore_cookies_get = workUnitStore.cookies.get(_approuterheaders.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : _workUnitStore_cookies_get.value;
|
|
16391
|
+
}
|
|
16316
16392
|
}
|
|
16317
|
-
return
|
|
16393
|
+
return undefined;
|
|
16394
|
+
}
|
|
16395
|
+
function isHmrRefresh(workStore, workUnitStore) {
|
|
16396
|
+
if (workStore.dev) {
|
|
16397
|
+
switch(workUnitStore.type){
|
|
16398
|
+
case 'cache':
|
|
16399
|
+
case 'private-cache':
|
|
16400
|
+
case 'request':
|
|
16401
|
+
return workUnitStore.isHmrRefresh ?? false;
|
|
16402
|
+
}
|
|
16403
|
+
}
|
|
16404
|
+
return false;
|
|
16405
|
+
}
|
|
16406
|
+
function getServerComponentsHmrCache(workStore, workUnitStore) {
|
|
16407
|
+
if (workStore.dev) {
|
|
16408
|
+
switch(workUnitStore.type){
|
|
16409
|
+
case 'cache':
|
|
16410
|
+
case 'private-cache':
|
|
16411
|
+
case 'request':
|
|
16412
|
+
return workUnitStore.serverComponentsHmrCache;
|
|
16413
|
+
}
|
|
16414
|
+
}
|
|
16415
|
+
return undefined;
|
|
16318
16416
|
}
|
|
16319
16417
|
function getDraftModeProviderForCacheScope(workStore, workUnitStore) {
|
|
16320
16418
|
if (workStore.isDraftMode) {
|
|
16321
16419
|
switch(workUnitStore.type){
|
|
16322
16420
|
case 'cache':
|
|
16421
|
+
case 'private-cache':
|
|
16323
16422
|
case 'unstable-cache':
|
|
16423
|
+
case 'prerender-runtime':
|
|
16324
16424
|
case 'request':
|
|
16325
16425
|
return workUnitStore.draftMode;
|
|
16326
|
-
default:
|
|
16327
|
-
return undefined;
|
|
16328
16426
|
}
|
|
16329
16427
|
}
|
|
16330
16428
|
return undefined;
|
|
16331
16429
|
}
|
|
16430
|
+
function getCacheSignal(workUnitStore) {
|
|
16431
|
+
switch(workUnitStore.type){
|
|
16432
|
+
case 'prerender':
|
|
16433
|
+
case 'prerender-client':
|
|
16434
|
+
case 'prerender-runtime':
|
|
16435
|
+
return workUnitStore.cacheSignal;
|
|
16436
|
+
case 'prerender-ppr':
|
|
16437
|
+
case 'prerender-legacy':
|
|
16438
|
+
case 'request':
|
|
16439
|
+
case 'cache':
|
|
16440
|
+
case 'private-cache':
|
|
16441
|
+
case 'unstable-cache':
|
|
16442
|
+
return null;
|
|
16443
|
+
default:
|
|
16444
|
+
return workUnitStore;
|
|
16445
|
+
}
|
|
16446
|
+
}
|
|
16447
|
+
function getRuntimeStagePromise(workUnitStore) {
|
|
16448
|
+
switch(workUnitStore.type){
|
|
16449
|
+
case 'prerender-runtime':
|
|
16450
|
+
case 'private-cache':
|
|
16451
|
+
return workUnitStore.runtimeStagePromise;
|
|
16452
|
+
case 'prerender':
|
|
16453
|
+
case 'prerender-client':
|
|
16454
|
+
case 'prerender-ppr':
|
|
16455
|
+
case 'prerender-legacy':
|
|
16456
|
+
case 'request':
|
|
16457
|
+
case 'cache':
|
|
16458
|
+
case 'unstable-cache':
|
|
16459
|
+
return null;
|
|
16460
|
+
default:
|
|
16461
|
+
return workUnitStore;
|
|
16462
|
+
}
|
|
16463
|
+
}
|
|
16332
16464
|
|
|
16333
16465
|
|
|
16334
16466
|
} (workUnitAsyncStorage_external));
|
|
@@ -16384,13 +16516,13 @@ function requireWorkAsyncStorage_external () {
|
|
|
16384
16516
|
return workAsyncStorage_external;
|
|
16385
16517
|
}
|
|
16386
16518
|
|
|
16387
|
-
var
|
|
16519
|
+
var boundaryConstants = {};
|
|
16388
16520
|
|
|
16389
|
-
var
|
|
16521
|
+
var hasRequiredBoundaryConstants;
|
|
16390
16522
|
|
|
16391
|
-
function
|
|
16392
|
-
if (
|
|
16393
|
-
|
|
16523
|
+
function requireBoundaryConstants () {
|
|
16524
|
+
if (hasRequiredBoundaryConstants) return boundaryConstants;
|
|
16525
|
+
hasRequiredBoundaryConstants = 1;
|
|
16394
16526
|
(function (exports$1) {
|
|
16395
16527
|
Object.defineProperty(exports$1, "__esModule", {
|
|
16396
16528
|
value: true
|
|
@@ -16408,6 +16540,9 @@ function requireMetadataConstants () {
|
|
|
16408
16540
|
OUTLET_BOUNDARY_NAME: function() {
|
|
16409
16541
|
return OUTLET_BOUNDARY_NAME;
|
|
16410
16542
|
},
|
|
16543
|
+
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
16544
|
+
return ROOT_LAYOUT_BOUNDARY_NAME;
|
|
16545
|
+
},
|
|
16411
16546
|
VIEWPORT_BOUNDARY_NAME: function() {
|
|
16412
16547
|
return VIEWPORT_BOUNDARY_NAME;
|
|
16413
16548
|
}
|
|
@@ -16415,10 +16550,11 @@ function requireMetadataConstants () {
|
|
|
16415
16550
|
const METADATA_BOUNDARY_NAME = '__next_metadata_boundary__';
|
|
16416
16551
|
const VIEWPORT_BOUNDARY_NAME = '__next_viewport_boundary__';
|
|
16417
16552
|
const OUTLET_BOUNDARY_NAME = '__next_outlet_boundary__';
|
|
16553
|
+
const ROOT_LAYOUT_BOUNDARY_NAME = '__next_root_layout_boundary__';
|
|
16418
16554
|
|
|
16419
16555
|
|
|
16420
|
-
} (
|
|
16421
|
-
return
|
|
16556
|
+
} (boundaryConstants));
|
|
16557
|
+
return boundaryConstants;
|
|
16422
16558
|
}
|
|
16423
16559
|
|
|
16424
16560
|
var scheduler = {};
|
|
@@ -16531,6 +16667,9 @@ function requireDynamicRendering () {
|
|
|
16531
16667
|
Postpone: function() {
|
|
16532
16668
|
return Postpone;
|
|
16533
16669
|
},
|
|
16670
|
+
PreludeState: function() {
|
|
16671
|
+
return PreludeState;
|
|
16672
|
+
},
|
|
16534
16673
|
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
16535
16674
|
return abortAndThrowOnSynchronousRequestDataAccess;
|
|
16536
16675
|
},
|
|
@@ -16555,8 +16694,11 @@ function requireDynamicRendering () {
|
|
|
16555
16694
|
createHangingInputAbortSignal: function() {
|
|
16556
16695
|
return createHangingInputAbortSignal;
|
|
16557
16696
|
},
|
|
16558
|
-
|
|
16559
|
-
return
|
|
16697
|
+
createRenderInBrowserAbortSignal: function() {
|
|
16698
|
+
return createRenderInBrowserAbortSignal;
|
|
16699
|
+
},
|
|
16700
|
+
delayUntilRuntimeStage: function() {
|
|
16701
|
+
return delayUntilRuntimeStage;
|
|
16560
16702
|
},
|
|
16561
16703
|
formatDynamicAPIAccesses: function() {
|
|
16562
16704
|
return formatDynamicAPIAccesses;
|
|
@@ -16570,6 +16712,9 @@ function requireDynamicRendering () {
|
|
|
16570
16712
|
isPrerenderInterruptedError: function() {
|
|
16571
16713
|
return isPrerenderInterruptedError;
|
|
16572
16714
|
},
|
|
16715
|
+
logDisallowedDynamicError: function() {
|
|
16716
|
+
return logDisallowedDynamicError;
|
|
16717
|
+
},
|
|
16573
16718
|
markCurrentScopeAsDynamic: function() {
|
|
16574
16719
|
return markCurrentScopeAsDynamic;
|
|
16575
16720
|
},
|
|
@@ -16588,9 +16733,6 @@ function requireDynamicRendering () {
|
|
|
16588
16733
|
trackDynamicDataInDynamicRender: function() {
|
|
16589
16734
|
return trackDynamicDataInDynamicRender;
|
|
16590
16735
|
},
|
|
16591
|
-
trackFallbackParamAccessed: function() {
|
|
16592
|
-
return trackFallbackParamAccessed;
|
|
16593
|
-
},
|
|
16594
16736
|
trackSynchronousPlatformIOAccessInDev: function() {
|
|
16595
16737
|
return trackSynchronousPlatformIOAccessInDev;
|
|
16596
16738
|
},
|
|
@@ -16599,6 +16741,9 @@ function requireDynamicRendering () {
|
|
|
16599
16741
|
},
|
|
16600
16742
|
useDynamicRouteParams: function() {
|
|
16601
16743
|
return useDynamicRouteParams;
|
|
16744
|
+
},
|
|
16745
|
+
warnOnSyncDynamicError: function() {
|
|
16746
|
+
return warnOnSyncDynamicError;
|
|
16602
16747
|
}
|
|
16603
16748
|
});
|
|
16604
16749
|
const _react = /*#__PURE__*/ _interop_require_default(React__default);
|
|
@@ -16607,8 +16752,10 @@ function requireDynamicRendering () {
|
|
|
16607
16752
|
const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
|
|
16608
16753
|
const _workasyncstorageexternal = requireWorkAsyncStorage_external();
|
|
16609
16754
|
const _dynamicrenderingutils = requireDynamicRenderingUtils();
|
|
16610
|
-
const
|
|
16755
|
+
const _boundaryconstants = requireBoundaryConstants();
|
|
16611
16756
|
const _scheduler = requireScheduler();
|
|
16757
|
+
const _bailouttocsr = requireBailoutToCsr();
|
|
16758
|
+
const _invarianterror = requireInvariantError();
|
|
16612
16759
|
function _interop_require_default(obj) {
|
|
16613
16760
|
return obj && obj.__esModule ? obj : {
|
|
16614
16761
|
default: obj
|
|
@@ -16619,16 +16766,15 @@ function requireDynamicRendering () {
|
|
|
16619
16766
|
return {
|
|
16620
16767
|
isDebugDynamicAccesses,
|
|
16621
16768
|
dynamicAccesses: [],
|
|
16622
|
-
syncDynamicExpression: undefined,
|
|
16623
16769
|
syncDynamicErrorWithStack: null
|
|
16624
16770
|
};
|
|
16625
16771
|
}
|
|
16626
16772
|
function createDynamicValidationState() {
|
|
16627
16773
|
return {
|
|
16628
|
-
|
|
16774
|
+
hasSuspenseAboveBody: false,
|
|
16629
16775
|
hasDynamicMetadata: false,
|
|
16630
16776
|
hasDynamicViewport: false,
|
|
16631
|
-
|
|
16777
|
+
hasAllowedDynamic: false,
|
|
16632
16778
|
dynamicErrors: []
|
|
16633
16779
|
};
|
|
16634
16780
|
}
|
|
@@ -16638,11 +16784,17 @@ function requireDynamicRendering () {
|
|
|
16638
16784
|
}
|
|
16639
16785
|
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
|
16640
16786
|
if (workUnitStore) {
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16787
|
+
switch(workUnitStore.type){
|
|
16788
|
+
case 'cache':
|
|
16789
|
+
case 'unstable-cache':
|
|
16790
|
+
// Inside cache scopes, marking a scope as dynamic has no effect,
|
|
16791
|
+
// because the outer cache scope creates a cache boundary. This is
|
|
16792
|
+
// subtly different from reading a dynamic data source, which is
|
|
16793
|
+
// forbidden inside a cache scope.
|
|
16794
|
+
return;
|
|
16795
|
+
case 'private-cache':
|
|
16796
|
+
// A private cache scope is already dynamic by definition.
|
|
16797
|
+
return;
|
|
16646
16798
|
}
|
|
16647
16799
|
}
|
|
16648
16800
|
// If we're forcing dynamic rendering or we're forcing static rendering, we
|
|
@@ -16657,29 +16809,29 @@ function requireDynamicRendering () {
|
|
|
16657
16809
|
});
|
|
16658
16810
|
}
|
|
16659
16811
|
if (workUnitStore) {
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16673
|
-
|
|
16674
|
-
|
|
16812
|
+
switch(workUnitStore.type){
|
|
16813
|
+
case 'prerender-ppr':
|
|
16814
|
+
return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
|
16815
|
+
case 'prerender-legacy':
|
|
16816
|
+
workUnitStore.revalidate = 0;
|
|
16817
|
+
// We aren't prerendering, but we are generating a static page. We need
|
|
16818
|
+
// to bail out of static generation.
|
|
16819
|
+
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", {
|
|
16820
|
+
value: "E550",
|
|
16821
|
+
enumerable: false,
|
|
16822
|
+
configurable: true
|
|
16823
|
+
});
|
|
16824
|
+
store.dynamicUsageDescription = expression;
|
|
16825
|
+
store.dynamicUsageStack = err.stack;
|
|
16826
|
+
throw err;
|
|
16827
|
+
case 'request':
|
|
16828
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
16829
|
+
workUnitStore.usedDynamic = true;
|
|
16830
|
+
}
|
|
16831
|
+
break;
|
|
16675
16832
|
}
|
|
16676
16833
|
}
|
|
16677
16834
|
}
|
|
16678
|
-
function trackFallbackParamAccessed(store, expression) {
|
|
16679
|
-
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
16680
|
-
if (!prerenderStore || prerenderStore.type !== 'prerender-ppr') return;
|
|
16681
|
-
postponeWithTracking(store.route, expression, prerenderStore.dynamicTracking);
|
|
16682
|
-
}
|
|
16683
16835
|
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
|
16684
16836
|
// We aren't prerendering but we are generating a static page. We need to bail out of static generation
|
|
16685
16837
|
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", {
|
|
@@ -16692,25 +16844,31 @@ function requireDynamicRendering () {
|
|
|
16692
16844
|
store.dynamicUsageStack = err.stack;
|
|
16693
16845
|
throw err;
|
|
16694
16846
|
}
|
|
16695
|
-
function trackDynamicDataInDynamicRender(
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
//
|
|
16847
|
+
function trackDynamicDataInDynamicRender(workUnitStore) {
|
|
16848
|
+
switch(workUnitStore.type){
|
|
16849
|
+
case 'cache':
|
|
16850
|
+
case 'unstable-cache':
|
|
16851
|
+
// Inside cache scopes, marking a scope as dynamic has no effect,
|
|
16852
|
+
// because the outer cache scope creates a cache boundary. This is
|
|
16853
|
+
// subtly different from reading a dynamic data source, which is
|
|
16700
16854
|
// forbidden inside a cache scope.
|
|
16701
16855
|
return;
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16856
|
+
case 'private-cache':
|
|
16857
|
+
// A private cache scope is already dynamic by definition.
|
|
16858
|
+
return;
|
|
16859
|
+
case 'prerender':
|
|
16860
|
+
case 'prerender-runtime':
|
|
16861
|
+
case 'prerender-legacy':
|
|
16862
|
+
case 'prerender-ppr':
|
|
16863
|
+
case 'prerender-client':
|
|
16864
|
+
break;
|
|
16865
|
+
case 'request':
|
|
16866
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
16867
|
+
workUnitStore.usedDynamic = true;
|
|
16868
|
+
}
|
|
16869
|
+
break;
|
|
16709
16870
|
}
|
|
16710
16871
|
}
|
|
16711
|
-
// Despite it's name we don't actually abort unless we have a controller to call abort on
|
|
16712
|
-
// There are times when we let a prerender run long to discover caches where we want the semantics
|
|
16713
|
-
// of tracking dynamic access without terminating the prerender early
|
|
16714
16872
|
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
|
16715
16873
|
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
|
16716
16874
|
const error = createPrerenderInterruptedError(reason);
|
|
@@ -16727,13 +16885,16 @@ function requireDynamicRendering () {
|
|
|
16727
16885
|
}
|
|
16728
16886
|
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
|
16729
16887
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
16888
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16889
|
+
// It is important that we set this tracking value after aborting. Aborts are executed
|
|
16890
|
+
// synchronously except for the case where you abort during render itself. By setting this
|
|
16891
|
+
// value late we can use it to determine if any of the aborted tasks are the task that
|
|
16892
|
+
// called the sync IO expression in the first place.
|
|
16730
16893
|
if (dynamicTracking) {
|
|
16731
16894
|
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
16732
|
-
dynamicTracking.syncDynamicExpression = expression;
|
|
16733
16895
|
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
16734
16896
|
}
|
|
16735
16897
|
}
|
|
16736
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16737
16898
|
}
|
|
16738
16899
|
function trackSynchronousPlatformIOAccessInDev(requestStore) {
|
|
16739
16900
|
// We don't actually have a controller to abort but we do the semantic equivalent by
|
|
@@ -16748,22 +16909,27 @@ function requireDynamicRendering () {
|
|
|
16748
16909
|
// since we need the throw semantics regardless of whether we abort it is easier to land
|
|
16749
16910
|
// this way. See how this was handled with `abortOnSynchronousPlatformIOAccess` for a closer
|
|
16750
16911
|
// to ideal implementation
|
|
16912
|
+
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16913
|
+
// It is important that we set this tracking value after aborting. Aborts are executed
|
|
16914
|
+
// synchronously except for the case where you abort during render itself. By setting this
|
|
16915
|
+
// value late we can use it to determine if any of the aborted tasks are the task that
|
|
16916
|
+
// called the sync IO expression in the first place.
|
|
16751
16917
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
16752
16918
|
if (dynamicTracking) {
|
|
16753
16919
|
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
|
16754
|
-
dynamicTracking.syncDynamicExpression = expression;
|
|
16755
16920
|
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
|
16756
|
-
if (prerenderStore.validating === true) {
|
|
16757
|
-
// We always log Request Access in dev at the point of calling the function
|
|
16758
|
-
// So we mark the dynamic validation as not requiring it to be printed
|
|
16759
|
-
dynamicTracking.syncDynamicLogged = true;
|
|
16760
|
-
}
|
|
16761
16921
|
}
|
|
16762
16922
|
}
|
|
16763
|
-
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
|
16764
16923
|
}
|
|
16765
16924
|
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
|
16766
16925
|
}
|
|
16926
|
+
function warnOnSyncDynamicError(dynamicTracking) {
|
|
16927
|
+
if (dynamicTracking.syncDynamicErrorWithStack) {
|
|
16928
|
+
// the server did something sync dynamic, likely
|
|
16929
|
+
// leading to an early termination of the prerender.
|
|
16930
|
+
console.error(dynamicTracking.syncDynamicErrorWithStack);
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16767
16933
|
const trackSynchronousRequestDataAccessInDev = trackSynchronousPlatformIOAccessInDev;
|
|
16768
16934
|
function Postpone({ reason, route }) {
|
|
16769
16935
|
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
@@ -16856,35 +17022,57 @@ function requireDynamicRendering () {
|
|
|
16856
17022
|
});
|
|
16857
17023
|
}
|
|
16858
17024
|
}
|
|
16859
|
-
function
|
|
16860
|
-
assertPostpone();
|
|
17025
|
+
function createRenderInBrowserAbortSignal() {
|
|
16861
17026
|
const controller = new AbortController();
|
|
16862
|
-
|
|
16863
|
-
|
|
16864
|
-
|
|
16865
|
-
|
|
16866
|
-
|
|
16867
|
-
}
|
|
17027
|
+
controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError('Render in Browser'), "__NEXT_ERROR_CODE", {
|
|
17028
|
+
value: "E721",
|
|
17029
|
+
enumerable: false,
|
|
17030
|
+
configurable: true
|
|
17031
|
+
}));
|
|
16868
17032
|
return controller.signal;
|
|
16869
17033
|
}
|
|
16870
17034
|
function createHangingInputAbortSignal(workUnitStore) {
|
|
16871
|
-
|
|
16872
|
-
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
17035
|
+
switch(workUnitStore.type){
|
|
17036
|
+
case 'prerender':
|
|
17037
|
+
case 'prerender-runtime':
|
|
17038
|
+
const controller = new AbortController();
|
|
17039
|
+
if (workUnitStore.cacheSignal) {
|
|
17040
|
+
// If we have a cacheSignal it means we're in a prospective render. If
|
|
17041
|
+
// the input we're waiting on is coming from another cache, we do want
|
|
17042
|
+
// to wait for it so that we can resolve this cache entry too.
|
|
17043
|
+
workUnitStore.cacheSignal.inputReady().then(()=>{
|
|
17044
|
+
controller.abort();
|
|
17045
|
+
});
|
|
17046
|
+
} else {
|
|
17047
|
+
// Otherwise we're in the final render and we should already have all
|
|
17048
|
+
// our caches filled.
|
|
17049
|
+
// If the prerender uses stages, we have wait until the runtime stage,
|
|
17050
|
+
// at which point all runtime inputs will be resolved.
|
|
17051
|
+
// (otherwise, a runtime prerender might consider `cookies()` hanging
|
|
17052
|
+
// even though they'd resolve in the next task.)
|
|
17053
|
+
//
|
|
17054
|
+
// We might still be waiting on some microtasks so we
|
|
17055
|
+
// wait one tick before giving up. When we give up, we still want to
|
|
17056
|
+
// render the content of this cache as deeply as we can so that we can
|
|
17057
|
+
// suspend as deeply as possible in the tree or not at all if we don't
|
|
17058
|
+
// end up waiting for the input.
|
|
17059
|
+
const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
|
|
17060
|
+
if (runtimeStagePromise) {
|
|
17061
|
+
runtimeStagePromise.then(()=>(0, _scheduler.scheduleOnNextTick)(()=>controller.abort()));
|
|
17062
|
+
} else {
|
|
17063
|
+
(0, _scheduler.scheduleOnNextTick)(()=>controller.abort());
|
|
17064
|
+
}
|
|
17065
|
+
}
|
|
17066
|
+
return controller.signal;
|
|
17067
|
+
case 'prerender-client':
|
|
17068
|
+
case 'prerender-ppr':
|
|
17069
|
+
case 'prerender-legacy':
|
|
17070
|
+
case 'request':
|
|
17071
|
+
case 'cache':
|
|
17072
|
+
case 'private-cache':
|
|
17073
|
+
case 'unstable-cache':
|
|
17074
|
+
return undefined;
|
|
16886
17075
|
}
|
|
16887
|
-
return controller.signal;
|
|
16888
17076
|
}
|
|
16889
17077
|
function annotateDynamicAccess(expression, prerenderStore) {
|
|
16890
17078
|
const dynamicTracking = prerenderStore.dynamicTracking;
|
|
@@ -16897,31 +17085,65 @@ function requireDynamicRendering () {
|
|
|
16897
17085
|
}
|
|
16898
17086
|
function useDynamicRouteParams(expression) {
|
|
16899
17087
|
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
17088
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
17089
|
+
if (workStore && workUnitStore) {
|
|
17090
|
+
switch(workUnitStore.type){
|
|
17091
|
+
case 'prerender-client':
|
|
17092
|
+
case 'prerender':
|
|
17093
|
+
{
|
|
17094
|
+
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
17095
|
+
if (fallbackParams && fallbackParams.size > 0) {
|
|
17096
|
+
// We are in a prerender with cacheComponents semantics. We are going to
|
|
17097
|
+
// hang here and never resolve. This will cause the currently
|
|
17098
|
+
// rendering component to effectively be a dynamic hole.
|
|
17099
|
+
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
|
17100
|
+
}
|
|
17101
|
+
break;
|
|
17102
|
+
}
|
|
17103
|
+
case 'prerender-ppr':
|
|
17104
|
+
{
|
|
17105
|
+
const fallbackParams = workUnitStore.fallbackRouteParams;
|
|
17106
|
+
if (fallbackParams && fallbackParams.size > 0) {
|
|
17107
|
+
return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
|
17108
|
+
}
|
|
17109
|
+
break;
|
|
17110
|
+
}
|
|
17111
|
+
case 'prerender-runtime':
|
|
17112
|
+
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", {
|
|
17113
|
+
value: "E771",
|
|
17114
|
+
enumerable: false,
|
|
17115
|
+
configurable: true
|
|
17116
|
+
});
|
|
17117
|
+
case 'cache':
|
|
17118
|
+
case 'private-cache':
|
|
17119
|
+
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", {
|
|
17120
|
+
value: "E745",
|
|
17121
|
+
enumerable: false,
|
|
17122
|
+
configurable: true
|
|
17123
|
+
});
|
|
16917
17124
|
}
|
|
16918
17125
|
}
|
|
16919
17126
|
}
|
|
16920
17127
|
const hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
|
16921
|
-
|
|
16922
|
-
const
|
|
16923
|
-
|
|
16924
|
-
|
|
17128
|
+
// Common implicit body tags that React will treat as body when placed directly in html
|
|
17129
|
+
const bodyAndImplicitTags = 'body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6';
|
|
17130
|
+
// Detects when RootLayoutBoundary (our framework marker component) appears
|
|
17131
|
+
// after Suspense in the component stack, indicating the root layout is wrapped
|
|
17132
|
+
// within a Suspense boundary. Ensures no body/html/implicit-body components are in between.
|
|
17133
|
+
//
|
|
17134
|
+
// Example matches:
|
|
17135
|
+
// at Suspense (<anonymous>)
|
|
17136
|
+
// at __next_root_layout_boundary__ (<anonymous>)
|
|
17137
|
+
//
|
|
17138
|
+
// Or with other components in between (but not body/html/implicit-body):
|
|
17139
|
+
// at Suspense (<anonymous>)
|
|
17140
|
+
// at SomeComponent (<anonymous>)
|
|
17141
|
+
// at __next_root_layout_boundary__ (<anonymous>)
|
|
17142
|
+
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]*\\)`);
|
|
17143
|
+
const hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
|
17144
|
+
const hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
|
17145
|
+
const hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
17146
|
+
function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
|
|
16925
17147
|
if (hasOutletRegex.test(componentStack)) {
|
|
16926
17148
|
// We don't need to track that this is dynamic. It is only so when something else is also dynamic.
|
|
16927
17149
|
return;
|
|
@@ -16931,92 +17153,112 @@ function requireDynamicRendering () {
|
|
|
16931
17153
|
} else if (hasViewportRegex.test(componentStack)) {
|
|
16932
17154
|
dynamicValidation.hasDynamicViewport = true;
|
|
16933
17155
|
return;
|
|
17156
|
+
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
|
17157
|
+
// For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
|
|
17158
|
+
// But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
|
|
17159
|
+
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
|
|
17160
|
+
dynamicValidation.hasAllowedDynamic = true;
|
|
17161
|
+
dynamicValidation.hasSuspenseAboveBody = true;
|
|
17162
|
+
return;
|
|
16934
17163
|
} else if (hasSuspenseRegex.test(componentStack)) {
|
|
16935
|
-
|
|
17164
|
+
// this error had a Suspense boundary above it so we don't need to report it as a source
|
|
17165
|
+
// of disallowed
|
|
17166
|
+
dynamicValidation.hasAllowedDynamic = true;
|
|
16936
17167
|
return;
|
|
16937
|
-
} else if (
|
|
16938
|
-
|
|
17168
|
+
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
|
17169
|
+
// This task was the task that called the sync error.
|
|
17170
|
+
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
|
16939
17171
|
return;
|
|
16940
17172
|
} else {
|
|
16941
|
-
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.
|
|
16942
|
-
const error =
|
|
17173
|
+
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`;
|
|
17174
|
+
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
|
16943
17175
|
dynamicValidation.dynamicErrors.push(error);
|
|
16944
17176
|
return;
|
|
16945
17177
|
}
|
|
16946
17178
|
}
|
|
16947
|
-
|
|
17179
|
+
/**
|
|
17180
|
+
* In dev mode, we prefer using the owner stack, otherwise the provided
|
|
17181
|
+
* component stack is used.
|
|
17182
|
+
*/ function createErrorWithComponentOrOwnerStack(message, componentStack) {
|
|
17183
|
+
const ownerStack = process.env.NODE_ENV !== 'production' && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
|
|
16948
17184
|
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
16949
17185
|
value: "E394",
|
|
16950
17186
|
enumerable: false,
|
|
16951
17187
|
configurable: true
|
|
16952
17188
|
});
|
|
16953
|
-
error.stack = '
|
|
17189
|
+
error.stack = error.name + ': ' + message + (ownerStack ?? componentStack);
|
|
16954
17190
|
return error;
|
|
16955
17191
|
}
|
|
16956
|
-
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16961
|
-
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
syncLogged = false;
|
|
16972
|
-
}
|
|
16973
|
-
if (dynamicValidation.hasSyncDynamicErrors && syncError) {
|
|
16974
|
-
if (!syncLogged) {
|
|
16975
|
-
// In dev we already log errors about sync dynamic access. But during builds we need to ensure
|
|
16976
|
-
// the offending sync error is logged before we exit the build
|
|
16977
|
-
console.error(syncError);
|
|
17192
|
+
var PreludeState = /*#__PURE__*/ function(PreludeState) {
|
|
17193
|
+
PreludeState[PreludeState["Full"] = 0] = "Full";
|
|
17194
|
+
PreludeState[PreludeState["Empty"] = 1] = "Empty";
|
|
17195
|
+
PreludeState[PreludeState["Errored"] = 2] = "Errored";
|
|
17196
|
+
return PreludeState;
|
|
17197
|
+
}({});
|
|
17198
|
+
function logDisallowedDynamicError(workStore, error) {
|
|
17199
|
+
console.error(error);
|
|
17200
|
+
if (!workStore.dev) {
|
|
17201
|
+
if (workStore.hasReadableErrorStacks) {
|
|
17202
|
+
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.`);
|
|
17203
|
+
} else {
|
|
17204
|
+
console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
17205
|
+
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
|
|
17206
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
|
|
16978
17207
|
}
|
|
16979
|
-
// The actual error should have been logged when the sync access ocurred
|
|
16980
|
-
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
16981
17208
|
}
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
17209
|
+
}
|
|
17210
|
+
function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
|
|
17211
|
+
if (prelude !== 0) {
|
|
17212
|
+
if (dynamicValidation.hasSuspenseAboveBody) {
|
|
17213
|
+
// This route has opted into allowing fully dynamic rendering
|
|
17214
|
+
// by including a Suspense boundary above the body. In this case
|
|
17215
|
+
// a lack of a shell is not considered disallowed so we simply return
|
|
17216
|
+
return;
|
|
16986
17217
|
}
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
enumerable: false,
|
|
17002
|
-
configurable: true
|
|
17003
|
-
});
|
|
17004
|
-
} else if (dynamicValidation.hasDynamicViewport) {
|
|
17005
|
-
if (syncError) {
|
|
17006
|
-
console.error(syncError);
|
|
17007
|
-
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", {
|
|
17008
|
-
value: "E573",
|
|
17009
|
-
enumerable: false,
|
|
17010
|
-
configurable: true
|
|
17011
|
-
});
|
|
17218
|
+
if (serverDynamic.syncDynamicErrorWithStack) {
|
|
17219
|
+
// There is no shell and the server did something sync dynamic likely
|
|
17220
|
+
// leading to an early termination of the prerender before the shell
|
|
17221
|
+
// could be completed. We terminate the build/validating render.
|
|
17222
|
+
logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
|
|
17223
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17224
|
+
}
|
|
17225
|
+
// We didn't have any sync bailouts but there may be user code which
|
|
17226
|
+
// blocked the root. We would have captured these during the prerender
|
|
17227
|
+
// and can log them here and then terminate the build/validating render
|
|
17228
|
+
const dynamicErrors = dynamicValidation.dynamicErrors;
|
|
17229
|
+
if (dynamicErrors.length > 0) {
|
|
17230
|
+
for(let i = 0; i < dynamicErrors.length; i++){
|
|
17231
|
+
logDisallowedDynamicError(workStore, dynamicErrors[i]);
|
|
17012
17232
|
}
|
|
17013
|
-
throw
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17233
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17234
|
+
}
|
|
17235
|
+
// If we got this far then the only other thing that could be blocking
|
|
17236
|
+
// the root is dynamic Viewport. If this is dynamic then
|
|
17237
|
+
// you need to opt into that by adding a Suspense boundary above the body
|
|
17238
|
+
// to indicate your are ok with fully dynamic rendering.
|
|
17239
|
+
if (dynamicValidation.hasDynamicViewport) {
|
|
17240
|
+
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`);
|
|
17241
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17242
|
+
}
|
|
17243
|
+
if (prelude === 1) {
|
|
17244
|
+
// If we ever get this far then we messed up the tracking of invalid dynamic.
|
|
17245
|
+
// We still adhere to the constraint that you must produce a shell but invite the
|
|
17246
|
+
// user to report this as a bug in Next.js.
|
|
17247
|
+
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.`);
|
|
17248
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17018
17249
|
}
|
|
17250
|
+
} else {
|
|
17251
|
+
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
|
|
17252
|
+
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`);
|
|
17253
|
+
throw new _staticgenerationbailout.StaticGenBailoutError();
|
|
17254
|
+
}
|
|
17255
|
+
}
|
|
17256
|
+
}
|
|
17257
|
+
function delayUntilRuntimeStage(prerenderStore, result) {
|
|
17258
|
+
if (prerenderStore.runtimeStagePromise) {
|
|
17259
|
+
return prerenderStore.runtimeStagePromise.then(()=>result);
|
|
17019
17260
|
}
|
|
17261
|
+
return result;
|
|
17020
17262
|
}
|
|
17021
17263
|
|
|
17022
17264
|
|
|
@@ -17179,6 +17421,9 @@ function requireNavigation_reactServer () {
|
|
|
17179
17421
|
unauthorized: function() {
|
|
17180
17422
|
return _unauthorized.unauthorized;
|
|
17181
17423
|
},
|
|
17424
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17425
|
+
return unstable_isUnrecognizedActionError;
|
|
17426
|
+
},
|
|
17182
17427
|
unstable_rethrow: function() {
|
|
17183
17428
|
return _unstablerethrow.unstable_rethrow;
|
|
17184
17429
|
}
|
|
@@ -17208,6 +17453,13 @@ function requireNavigation_reactServer () {
|
|
|
17208
17453
|
throw new ReadonlyURLSearchParamsError();
|
|
17209
17454
|
}
|
|
17210
17455
|
}
|
|
17456
|
+
function unstable_isUnrecognizedActionError() {
|
|
17457
|
+
throw Object.defineProperty(new Error('`unstable_isUnrecognizedActionError` can only be used on the client.'), "__NEXT_ERROR_CODE", {
|
|
17458
|
+
value: "E776",
|
|
17459
|
+
enumerable: false,
|
|
17460
|
+
configurable: true
|
|
17461
|
+
});
|
|
17462
|
+
}
|
|
17211
17463
|
|
|
17212
17464
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
17213
17465
|
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
@@ -17309,6 +17561,52 @@ function requireServerInsertedHtml_sharedRuntime () {
|
|
|
17309
17561
|
return serverInsertedHtml_sharedRuntime;
|
|
17310
17562
|
}
|
|
17311
17563
|
|
|
17564
|
+
var unrecognizedActionError = {exports: {}};
|
|
17565
|
+
|
|
17566
|
+
var hasRequiredUnrecognizedActionError;
|
|
17567
|
+
|
|
17568
|
+
function requireUnrecognizedActionError () {
|
|
17569
|
+
if (hasRequiredUnrecognizedActionError) return unrecognizedActionError.exports;
|
|
17570
|
+
hasRequiredUnrecognizedActionError = 1;
|
|
17571
|
+
(function (module, exports$1) {
|
|
17572
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
17573
|
+
value: true
|
|
17574
|
+
});
|
|
17575
|
+
function _export(target, all) {
|
|
17576
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
17577
|
+
enumerable: true,
|
|
17578
|
+
get: all[name]
|
|
17579
|
+
});
|
|
17580
|
+
}
|
|
17581
|
+
_export(exports$1, {
|
|
17582
|
+
UnrecognizedActionError: function() {
|
|
17583
|
+
return UnrecognizedActionError;
|
|
17584
|
+
},
|
|
17585
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17586
|
+
return unstable_isUnrecognizedActionError;
|
|
17587
|
+
}
|
|
17588
|
+
});
|
|
17589
|
+
class UnrecognizedActionError extends Error {
|
|
17590
|
+
constructor(...args){
|
|
17591
|
+
super(...args);
|
|
17592
|
+
this.name = 'UnrecognizedActionError';
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
function unstable_isUnrecognizedActionError(error) {
|
|
17596
|
+
return !!(error && typeof error === 'object' && error instanceof UnrecognizedActionError);
|
|
17597
|
+
}
|
|
17598
|
+
|
|
17599
|
+
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
17600
|
+
Object.defineProperty(exports$1.default, '__esModule', { value: true });
|
|
17601
|
+
Object.assign(exports$1.default, exports$1);
|
|
17602
|
+
module.exports = exports$1.default;
|
|
17603
|
+
}
|
|
17604
|
+
|
|
17605
|
+
|
|
17606
|
+
} (unrecognizedActionError, unrecognizedActionError.exports));
|
|
17607
|
+
return unrecognizedActionError.exports;
|
|
17608
|
+
}
|
|
17609
|
+
|
|
17312
17610
|
var bailoutToClientRendering = {exports: {}};
|
|
17313
17611
|
|
|
17314
17612
|
var hasRequiredBailoutToClientRendering;
|
|
@@ -17328,14 +17626,25 @@ function requireBailoutToClientRendering () {
|
|
|
17328
17626
|
});
|
|
17329
17627
|
const _bailouttocsr = requireBailoutToCsr();
|
|
17330
17628
|
const _workasyncstorageexternal = requireWorkAsyncStorage_external();
|
|
17629
|
+
const _workunitasyncstorageexternal = requireWorkUnitAsyncStorage_external();
|
|
17331
17630
|
function bailoutToClientRendering(reason) {
|
|
17332
17631
|
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
17333
17632
|
if (workStore == null ? void 0 : workStore.forceStatic) return;
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17633
|
+
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
17634
|
+
if (workUnitStore) {
|
|
17635
|
+
switch(workUnitStore.type){
|
|
17636
|
+
case 'prerender':
|
|
17637
|
+
case 'prerender-runtime':
|
|
17638
|
+
case 'prerender-client':
|
|
17639
|
+
case 'prerender-ppr':
|
|
17640
|
+
case 'prerender-legacy':
|
|
17641
|
+
throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(reason), "__NEXT_ERROR_CODE", {
|
|
17642
|
+
value: "E394",
|
|
17643
|
+
enumerable: false,
|
|
17644
|
+
configurable: true
|
|
17645
|
+
});
|
|
17646
|
+
}
|
|
17647
|
+
}
|
|
17339
17648
|
}
|
|
17340
17649
|
|
|
17341
17650
|
if ((typeof exports$1.default === 'function' || (typeof exports$1.default === 'object' && exports$1.default !== null)) && typeof exports$1.default.__esModule === 'undefined') {
|
|
@@ -17389,6 +17698,9 @@ function requireNavigation$1 () {
|
|
|
17389
17698
|
unauthorized: function() {
|
|
17390
17699
|
return _navigationreactserver.unauthorized;
|
|
17391
17700
|
},
|
|
17701
|
+
unstable_isUnrecognizedActionError: function() {
|
|
17702
|
+
return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
|
|
17703
|
+
},
|
|
17392
17704
|
unstable_rethrow: function() {
|
|
17393
17705
|
return _navigationreactserver.unstable_rethrow;
|
|
17394
17706
|
},
|
|
@@ -17421,6 +17733,7 @@ function requireNavigation$1 () {
|
|
|
17421
17733
|
const _segment = requireSegment();
|
|
17422
17734
|
const _navigationreactserver = requireNavigation_reactServer();
|
|
17423
17735
|
const _serverinsertedhtmlsharedruntime = requireServerInsertedHtml_sharedRuntime();
|
|
17736
|
+
const _unrecognizedactionerror = requireUnrecognizedActionError();
|
|
17424
17737
|
const useDynamicRouteParams = typeof window === 'undefined' ? requireDynamicRendering().useDynamicRouteParams : undefined;
|
|
17425
17738
|
function useSearchParams() {
|
|
17426
17739
|
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|